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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f4ea431a64ee3f7838cdbbd2108d6cc1468e93fa | 8cfee59143ecd307fe7d7a27986c3346aa8ce60c | /AI/텐서플로우/Culculator.py | b205b26689dc86578d5e07185713bc6a9a4fe5f9 | [] | no_license | kiminhan/Python | daafc1fde804f172ebfb1385ab9d6205c7a45970 | dc6af486aaf7d25dbe13bcee4e115207f37d4696 | refs/heads/master | 2020-03-08T19:18:10.173346 | 2018-09-06T06:11:40 | 2018-09-06T06:11:40 | 128,288,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | import tensorflow as tf
a = tf.constant(2)
b = tf.constant(3)
c = tf.constant(4)
# add_op = a+b
calc1_op = a+b+c
calc2_op = (a+b)*c
sess = tf.Session()
res1 = sess.run(calc1_op)
print(res1)
res2 = sess.run(calc2_op)
print(res2) | [
"rladlsgks4@naver.com"
] | rladlsgks4@naver.com |
1837c5dbe40bbd4bf0f3d1f0a30512487cf985c8 | 4138be36f76f33815360ca74a3c80dd1b99bee19 | /gm2m/version.py | 2423d45762adf54b646fc7c637b9143b4873c930 | [
"MIT"
] | permissive | mikewolfd/django-gm2m | e385385b56fb2faa2277e270884f65f60e62ab0c | a8cecc4d6d56c83e8d9c623888f5d07cb6ad8771 | refs/heads/master | 2021-08-22T23:32:17.459805 | 2017-07-19T02:11:21 | 2017-07-19T02:11:21 | 112,767,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | import subprocess
__version_info__ = (0, 5, 0, 'alpha', 0)
def get_version(version=__version_info__):
dev_st = {'alpha': 'a', 'beta': 'b', 'rc': 'c', 'final': ''}
assert len(version) == 5
assert version[3] in dev_st.keys()
n = 2 + (version[2] != 0)
version_str = '.'.join([str(v) f... | [
"thomas@ksytek.com"
] | thomas@ksytek.com |
b9f95663d38ab0169b955255e7ae4b2067e2dd71 | 49c986c1a7351d51fd6654f09d4493fa8dffc6cd | /이코테/C14/26-1.py | fe6053891dec516f43820a2fd34b3b38ca73d5c7 | [] | no_license | beomseok-kang/Algorithms-Python | 53ca2cdbb718e2817eb0086662aea55cd3868559 | e06a015e3a8c909643e2fa60808d5157fbb7c3bd | refs/heads/master | 2022-12-24T04:42:04.586375 | 2020-10-03T09:09:23 | 2020-10-03T09:09:23 | 291,429,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | # n = int(input())
# cards = []
# for _ in range(n):
# cards.append(int(input()))
# cards.sort()
# deck = cards[0]
# total = 0
# for i in range(1, n):
# deck += cards[i]
# total += deck
# print(total) | [
"beom.kang17@gmail.com"
] | beom.kang17@gmail.com |
da4b2cc4c95455736c59ac302747f1b61bfc4676 | d1d79d0c3889316b298852834b346d4246825e66 | /blackbot/core/wss/ttp/art/art_T1105-4.py | f46695d149503bf3822a9067d51b69cb73662768 | [] | no_license | ammasajan/Atomic-Red-Team-Intelligence-C2 | 78d1ed2de49af71d4c3c74db484e63c7e093809f | 5919804f0bdeb15ea724cd32a48f377bce208277 | refs/heads/master | 2023-07-17T12:48:15.249921 | 2021-08-21T20:10:30 | 2021-08-21T20:10:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,877 | py | from blackbot.core.utils import get_path_in_package
from blackbot.core.wss.atomic import Atomic
from terminaltables import SingleTable
import os
import json
class Atomic(Atomic):
def __init__(self):
self.name = 'CommandControl/T1105-4'
self.controller_type = ''
self.external_id = 'T1105'
... | [
"root@uw2artic201.blackbot.net"
] | root@uw2artic201.blackbot.net |
efa09c46e8ad81268a726dd39eb37072c9b713fe | 515a97129ce1b2b8eecca4b2087fde8985b82d5b | /Code-Scraps/old_modules/SpiceBot/development/Define.py | 67f9fe912044545244eab28f03bb76a117c0f9e8 | [] | no_license | SpiceBot/scraps | 3ad6e81ac75e2b6a684fea64eb7e75477b0f4f63 | 90125e1397b57ac87cae5f3e506363aa04ddffdc | refs/heads/master | 2020-05-02T21:51:01.297114 | 2019-03-28T15:38:28 | 2019-03-28T15:38:28 | 178,232,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | #!/usr/bin/env python
# coding=utf-8
from __future__ import unicode_literals, absolute_import, print_function, division
import sopel.module
import sys
import os
moduledir = os.path.dirname(__file__)
shareddir = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
sys.path.append(shareddir)
from BotShared import ... | [
"sam@deathbybandaid.net"
] | sam@deathbybandaid.net |
2d55e059b18911342e1e07a02585f72b0bc2f597 | 4a04459da0bb672087151eb2bd15ffa67fd91edf | /utils.py | 353c056a40f1b327bdb230affdc4677a5095a869 | [] | no_license | rtavenar/hdp_traj | 9088ffd30083fee56c373a9e461157b8ec2b53f1 | 2c8a1e1025b06496f9e702d049adcd4203cedc8b | refs/heads/master | 2020-03-22T20:00:22.014641 | 2018-07-11T12:29:09 | 2018-07-11T12:29:09 | 140,567,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py | import json
import csv
import numpy
from gensim.corpora import Dictionary
__author__ = 'Romain Tavenard romain.tavenard[at]univ-rennes2.fr'
def read_traj_ais(fname):
traj_json = json.load(open(fname, "r"))
print(traj_json)
def read_traj_synthetic(fname):
traj_csv = []
for obs in csv.DictReader(open... | [
"romain.tavenard@univ-rennes2.fr"
] | romain.tavenard@univ-rennes2.fr |
4c54519bfdeb7f513aae49b4e1651c899bb3ffd7 | bd201c7750f8918dfafadc11a4b5d3e8bee27a4e | /stdlib/3/multiprocessing/managers.pyi | 692fb2eb37747d426d2eb6536fdc011ea0178e87 | [
"MIT",
"Apache-2.0"
] | permissive | o11c/typeshed | 7cdcd90c85c8220872014bf03d66504c08edb422 | e4a7edb949e0b920b16f61aeeb19fc3d328f3012 | refs/heads/master | 2020-12-11T09:06:38.502097 | 2015-10-12T22:27:37 | 2015-10-12T22:28:04 | 44,358,157 | 1 | 0 | null | 2015-10-16T02:41:17 | 2015-10-16T02:41:17 | null | UTF-8 | Python | false | false | 179 | pyi | # Stubs for multiprocessing.managers
# NOTE: These are incomplete!
from typing import Any
class BaseManager():
def register(typeid: str, callable: Any = None) -> None: ...
| [
"kramm@google.com"
] | kramm@google.com |
1ce12f91bb5f7939ec9f37b47fc43d21af93821a | d25837f11e742c2e1a49aa7e19c170087663ee79 | /NPD/apps.py | ae24afe8b97529ba18722b8bff25e3dd90f0086f | [] | no_license | simranpandita/TEproject | 08aac1e33d9583ac34d9449f207b718c8c87b4f3 | c8da9c0d211254ae26b8f4eb8f527d5954c087e9 | refs/heads/master | 2020-12-20T19:11:11.785807 | 2020-01-25T14:37:52 | 2020-01-25T14:37:52 | 236,182,161 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | from django.apps import AppConfig
class NpdConfig(AppConfig):
name = 'NPD'
| [
"unknown@example.com"
] | unknown@example.com |
d4653297bc9caa7309ff00f64dd9530d31df6198 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/354.py | 92da73b61d3b6afaeb091dad5f185a4378475334 | [] | 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 | 931 | py | #!/usr/bin/python
import sys
def parse(f):
L, D, N = map(int, f.readline().rstrip().split(' '))
words = []
for d in range(D):
words.append(f.readline().rstrip())
pats = []
for n in range(N):
pats.append(pat2sets(f.readline().rstrip()))
return (L, D, N, words, pats)
def match(word, pat):
retu... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
6abc63c354dc754ff88113c9dd32508273484ee6 | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/IPython/core/interactiveshell.py | 848a14a481ce4393822db4431c66bece0dbf91b9 | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 150,272 | py | # -*- coding: utf-8 -*-
"""Main IPython class."""
#-----------------------------------------------------------------------------
# Copyright (C) 2001 Janko Hauser <jhauser@zscout.de>
# Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu>
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distribu... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
7f51c86609aee9eb9a24ab9df8125c19c3aae964 | cbf37e782425e378676814be6b41fab5596ded65 | /frontend/pysheep/benchmark_utils.py | 0d8269fd9ffb91f29f0dfa39dcce9024c31ff79e | [
"MIT"
] | permissive | PhilipTurk/SHEEP | 7c971fcdd6002b385208eba6701d83ed2817f415 | b0c95516184536cafe5111438b93fa8140538f22 | refs/heads/master | 2020-06-18T07:56:49.710405 | 2019-02-18T15:45:13 | 2019-02-18T15:45:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,945 | py | """
A set of scripts, likely to be run via Jupyter notebook, to allow setting input
and parameter values to temporary files, and running the benchmark job.
"""
import requests
import os, uuid
import random
import re
from . import common_utils
from . import sheep_client
from .database import BenchmarkMeasurement, Tim... | [
"nbarlow@turing.ac.uk"
] | nbarlow@turing.ac.uk |
36dc797bf1f2f8709ce45f1a700c47debd1f52b2 | aa0270b351402e421631ebc8b51e528448302fab | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2020_06_01/operations/_agent_pools_operations.py | 33b4811784376bb87d5ec87170ceebe2201124bf | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 42,256 | 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"
] | fangchen0601.noreply@github.com |
567e2ea5e21f4285f7b0f912163c86e87c0d96b0 | 3bd961816fe9b9048108f8a5a254b931dd79bde4 | /manga_py/providers/darkskyprojects_org.py | 8a4b9ebdcacde83e810bd893d190a2583bd43bcf | [
"MIT"
] | permissive | eduhoribe/manga-py | 6243115549d78c1599c6b043fe7cd897e2f517d3 | fe7eb2e08532b3c75b4f7ac8cc4132f0e7a65eb4 | refs/heads/stable_1.x | 2023-01-14T01:48:34.873530 | 2020-11-17T04:30:15 | 2020-11-17T04:30:15 | 307,992,359 | 1 | 0 | MIT | 2020-11-15T00:00:45 | 2020-10-28T11:18:18 | Python | UTF-8 | Python | false | false | 981 | py | from manga_py.provider import Provider
from .helpers.std import Std
class DarkSkyProjectsOrg(Provider, Std):
def get_archive_name(self) -> str:
return self.normal_arc_name({'vol': [
self.chapter_id,
self.get_chapter_index()
]})
def get_chapter_index(self) -> str:
... | [
"sttv-pc@mail.ru"
] | sttv-pc@mail.ru |
cab8341c8c0253e63a00f518c4bfcfca88a0eb37 | 09ae3f372d1000f118ad80874870ae420a4be66f | /scikit-learn-master/benchmarks/bench_tsne_mnist.py | fafc3d2ea236bf0449bdab1416a61193a6b9da29 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | lqkweb/learnMLflow | 998f80c3828879b8d542125bc95c6345b8e9b29a | 13c5decaebba95b1b90f92021be35e343b4764af | refs/heads/master | 2022-10-18T06:17:23.584172 | 2019-01-18T09:51:38 | 2019-01-18T09:51:38 | 166,145,472 | 2 | 0 | Apache-2.0 | 2022-09-30T18:26:17 | 2019-01-17T02:22:29 | Python | UTF-8 | Python | false | false | 6,062 | py | """
=============================
MNIST dataset T-SNE benchmark
=============================
"""
from __future__ import division, print_function
# License: BSD 3 clause
import os
import os.path as op
from time import time
import numpy as np
import json
import argparse
from joblib import Memory
from sklearn.dataset... | [
"leiqk@dxy.cn"
] | leiqk@dxy.cn |
1d730d3ab851f25cfa928817cc51c692d01d9359 | 269308cb9ca28bdf1f3a42106f819ce8c25533c8 | /numcodecs/tests/test_vlen_utf8.py | 314d6f512e3c4575d867bdd482973ff3b6203b05 | [
"MIT"
] | permissive | jrbourbeau/numcodecs | 43163e6f8a549e90cf8c190c09c1bb562ad2227a | 91416a1d8fc351c2687a60cecd8c5bf024f2cb11 | refs/heads/master | 2022-08-02T03:56:54.887939 | 2020-03-08T23:40:21 | 2020-03-08T23:40:21 | 250,308,727 | 0 | 0 | MIT | 2020-03-26T16:15:36 | 2020-03-26T16:15:35 | null | UTF-8 | Python | false | false | 2,625 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, division
import unittest
import numpy as np
import pytest
from numcodecs.compat import PY2
try:
from numcodecs.vlen import VLenUTF8
except ImportError: # pragma: no cover
raise unittest.SkipTest("vlen-utf8 not available")
from ... | [
"alimanfoo@googlemail.com"
] | alimanfoo@googlemail.com |
5ac5c5a85861575b0f116b89380e9895d8add661 | fe6e0a2cfb00d34b58f64f164a747e3df08e8a9d | /vip-server/app/center/core/order.py | 1af757fe077b2a3ca72e244e94b227d22a646a5c | [] | no_license | huboqiao/kmvip | c141814666631c35b8adeec3d3beb5aca0d2d1cd | 11ae7e1f78943c8425516c4f06acf043a99acdcc | refs/heads/master | 2020-02-26T14:58:31.573602 | 2016-08-03T06:29:41 | 2016-08-03T06:29:41 | 64,809,269 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,446 | py | # --*-- coding:utf-8 --*--
'''
Created on 2014年10月15日
@author: huaan
'''
import hashlib,struct
import time,sys
from lib.db import Mysql
import json
reload(sys)
sys.setdefaultencoding( "utf-8" )
class Order(Mysql):
def __init__(self):
Mysql.__init__(self)
def orderA... | [
"42320756@qq.com"
] | 42320756@qq.com |
a3ca1a3a6e2dce981ecc9f6e7a953f95c965084e | f1a1990df35843ad716c08602acdb2b209652ab3 | /algorithm/leetCode/0145_binary_tree_postorder_traversal.py | 815164338c359bec1a9f66015017a96d4dba7d76 | [] | no_license | dictator-x/practise_as | e3f3de6fe6b87a87680130766e6c54b92e810d61 | fe30d8ca54309caff975684648495ea953022048 | refs/heads/master | 2021-01-01T23:32:07.843212 | 2020-07-31T18:42:07 | 2020-07-31T18:42:07 | 239,390,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | """
145. Binary Tree Postorder Traversal
"""
from typing import List
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def postorderTraversal(self, root: TreeNode) -> List[int]:
if not root: ret... | [
"dictator.xwu@gmail.com"
] | dictator.xwu@gmail.com |
79d544736f93e823ffccf10a4a3ace9ac5120017 | fea398a9638acdfa2fb06e7a9695d5894452ded7 | /0x08-python-more_classes/4-rectangle.py | 431bbb3a903aa7ab5fdc0f45613564921d0be105 | [] | no_license | OscarDRT/holbertonschool-higher_level_programming | d15585aa93ced9bc04464ced9bfd4197e73c42fa | f57ef3344df6350bded78ffce975eea693e67727 | refs/heads/master | 2020-09-30T19:56:30.788311 | 2020-05-14T19:52:10 | 2020-05-14T19:52:10 | 227,360,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | #!/usr/bin/python3
class Rectangle:
def __init__(self, width=0, height=0):
self.width = width
self.height = height
@property
def width(self):
return self.__width
@width.setter
def width(self, value):
if type(value) != int:
raise TypeError("width must be ... | [
"oscarnetworkingpro@gmail.com"
] | oscarnetworkingpro@gmail.com |
cb597ee58c394f8ed48661b001d3df72ada8cd8e | 112882b8d6c5071e7d2610c595bfca9210c79a0a | /tools/leetcode.072.Edit Distance/leetcode.072.Edit Distance.submission9.py | f3ea18e45a7fc1fd556c8fd014aba48aafbd4c61 | [
"MIT"
] | permissive | tedye/leetcode | 193b1900d98e35d5c402013cbe3bc993d0235da2 | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | refs/heads/master | 2021-01-01T19:06:06.408135 | 2015-10-24T06:44:40 | 2015-10-24T06:44:40 | 41,804,923 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | class Solution:
# @return an integer
def minDistance(self, word1, word2):
dist = [i for i in range(len(word1)+1)]
cur = []
for i in range(1,len(word2)+1):
cur += [i]
for j in range(1,len(word1)+1):
if word2[i-1] == word1[j-1]:
c... | [
"tedye@bu.edu"
] | tedye@bu.edu |
261438704a7e191fcdc5cc9e86f4579f1aecd75a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_136/1873.py | 4afdd457fea3574c1cbf8f151ac6f7f789a462e8 | [] | 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 | 523 | py | from _hashlib import new
fin = open('a.in', 'r')
out = open('a.out','w')
n = int(fin.readline())
print(n)
for i in range(n):
line = fin.readline()
c, f, x = map(float, line.split())
print('%f %f %f' % (c, f, x))
t_farm = 0
v = 2
t = x / v
while True:
t_farm += c / ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f6f42bcd050a043ae54ca35f43efc7e5e00f3a78 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_7/gdnzik001/push.py | 66b182914ecdd3a9b7a0e0a65c17583d0c7040d3 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | """Program to write functions to repeatedlymerge adjacent numbers in a grid
Zikho Godana
01 May 2014"""
height=4
def push_up(grid):
"""merge grid values upwards"""
for row in range(height):
for col in range(height):
if row>0:
if grid[row][col]!=0:
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
e972400ea0f2c92efb2e6aee0059c6c2864bc893 | ca045f22bc2660a24d44ecacdb41f7a646df3d19 | /src/exemplos/5_EstruturasDeDados/4_Vetor/0-vetor.py | b2985d296442defe6579067ff03243bda6641364 | [] | no_license | gabriel1997castro/CIC-APC | db7e4114bfa0925e976b64638cac9e94845d8376 | 217f66ab04b0529886d2ef22ce1de15103440ba3 | refs/heads/master | 2020-12-25T11:32:06.276710 | 2016-01-27T02:57:24 | 2016-01-27T02:57:24 | 50,466,976 | 0 | 0 | null | 2016-01-26T23:32:49 | 2016-01-26T23:32:49 | null | UTF-8 | Python | false | false | 582 | py | # -*- coding: utf-8 -*-
# @file: 0-vetor.py
# @author: Guilherme N. Ramos (gnramos@unb.br)
# @disciplina: Algoritmos e Programação de Computadores
#
# Exemplo uso de vetor. Em Python, vetores são implementados como listas.
vetor = [0]*10
for i in range(10):
vetor[i] = input("Digite o " + str(i) + "-ési... | [
"ramos@gnramos.com"
] | ramos@gnramos.com |
c814d3a6232b2112094c4cbcddffcd370e861c18 | c5d87c7f25e3fe9b17c1e88993b0ed6831e52acb | /GdalDemo/raster_to_line_gdal.py | 2a5eb97dd7b51669002234ca1d2c6ddc8965d914 | [] | no_license | GIS90/python_base_use | e55d55f9df505dac45ddd332fb65dcd08e8e531f | 7166ca85975bb7c56a5fbb6b723fd8300c4dd5d1 | refs/heads/master | 2020-04-02T08:33:49.461307 | 2018-10-23T03:33:41 | 2018-10-23T03:33:41 | 154,249,857 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,984 | py | # -*- coding: utf-8 -*-
"""
------------------------------------------------
@version: ??
@author: PyGoHU
@contact: gaoming971366@163.com
@software: PyCharm Community Edition
@file: raster_to_line_gdal.py
@time: 2016/8/30 21:07
@describe:
@remark:
------------------------------------------------
"""
... | [
"mingliang.gao@qunar.com"
] | mingliang.gao@qunar.com |
66208c13a8a48543715a5df8cd17da06b132cedd | caf8cbcafd448a301997770165b323438d119f5e | /.history/chapter01/variable_20201121083035.py | 3a5c146727d4972d5616a37a433e4a3dd5f6eded | [
"MIT"
] | permissive | KustomApe/nerdape | 03e0691f675f13ce2aefa46ee230111247e90c72 | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | refs/heads/main | 2023-01-23T10:13:26.584386 | 2020-11-28T22:29:49 | 2020-11-28T22:29:49 | 309,897,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | # 整数型、文字型、浮動小数点型
# int()型、str()型、float()型
# トップス、ボトムス、下着類
1234
# シングルクオート
'エル'
# ダブルクオート
"nerdape"
1.23
4.56
num = 1234
# print()関数
print(num)
# 関数はミニプログラム
# print() python側が用意した関数
strings = 'nerdape'
print(strings)
syosu = 1.23
print(syosu) | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
f7b707cbc41e7395a24fbc3dadb151baf3c71383 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2939/60586/292859.py | 290e192394c038ed5faf9243217b250a63dc34b5 | [] | 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 | 344 | py | s=input()
if s=="10 5":
print(1379151719313335)
print(95719313335,end="")
elif s=="2 1":
print(13)
print(3,end="")
elif s=="11 2":
print(137915171931333539)
print(7915171931333539,end="")
elif s=="5 4":
print(137915)
print(95,end="")
elif s=="6 3":
print(13791517)
print(91517,en... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
64fa38b617fe44d36ee67b87aeed2182e73630ac | 5bfbf31332a5c4750ab57d305f400aa5e20bf6bd | /contrib/great_expectations_zipcode_expectations/great_expectations_zipcode_expectations/expectations/expect_column_values_to_be_valid_wyoming_zip.py | 3e946f18fccdfa821bc52a4eb7e30dda44e9f54c | [
"Apache-2.0"
] | permissive | alexsherstinsky/great_expectations | 9d4ae4c06546c5ab2ee0d04fb7840e3515c25677 | 2fc4bb36a5b3791c8ada97c5364531cd7510d4ed | refs/heads/develop | 2023-08-04T13:13:38.978967 | 2023-07-24T18:29:46 | 2023-07-24T18:29:46 | 203,888,556 | 1 | 0 | Apache-2.0 | 2020-07-27T09:12:21 | 2019-08-22T23:31:19 | Python | UTF-8 | Python | false | false | 5,522 | py | from typing import Optional
import zipcodes
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.execution_engine import PandasExecutionEngine
from great_expectations.expectations.expectation import ColumnMapExpectation
from great_expectations.expectati... | [
"noreply@github.com"
] | alexsherstinsky.noreply@github.com |
baf16103f503fef39e3e408f23a04df4659d3180 | f06cf7cf7fe12a50f45edbd56b20acfc28606a44 | /String/window_containing_other_string.py | 5926a5fff4bc0c2a36ef88be9bfd3f507566f9f3 | [] | no_license | prashant97sikarwar/data-structure-and-algorithms | 53e016e50cf2ba26d2504f5a5f1ba39ca35f13f4 | 3ebe367c96a7bd82a427fc2beb7c8edd37247de7 | refs/heads/master | 2023-01-18T16:15:44.935431 | 2020-11-22T14:59:54 | 2020-11-22T14:59:54 | 257,667,068 | 0 | 0 | null | 2020-10-02T09:59:27 | 2020-04-21T17:32:43 | Python | UTF-8 | Python | false | false | 1,361 | py | no_of_chars = 256
def findSubString(string, pat):
len1 = len(string)
len2 = len(pat)
if len1 < len2:
return '-1'
hash_pat = [0] * no_of_chars
hash_str = [0] * no_of_chars
for i in range(0, len2):
hash_pat[ord(pat[i])] += 1
start, start_index, min_len ... | [
"prashant97sikarwar@gmail.com"
] | prashant97sikarwar@gmail.com |
038915243b736c9738f8fcd95affaeb04cb7960a | a6851ef213c7657ba5289a063cd4cdb5bf76fa4d | /picarus/api/hadoop/row_check.py | 035f0ee3869fbe8eeacdce53f4f0b45a8f197ae8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | strategist922/picarus | 9efac9d0311f43575d514db974b32974ecc14478 | 722489d26906f183964bc589e9326c1f3d60d5ca | refs/heads/master | 2021-01-18T09:01:20.093362 | 2013-03-24T05:23:11 | 2013-03-24T05:23:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | import hadoopy_hbase
import logging
import time
import tempfile
import zlib
import json
import os
import random
import numpy as np
import imfeat
import picarus.modules
import picarus.api
logging.basicConfig(level=logging.DEBUG)
a = hadoopy_hbase.connect()
#hrc = picarus.modules.HashRetrievalClassifier()
#hrc.load(open... | [
"bwhite@dappervision.com"
] | bwhite@dappervision.com |
653ca1bf1316dac74d674bb4627483ffdd8f397c | dbde211b68ba49790e664764cca6029790297f7c | /LeetCode/1678. Goal Parser Interpretation(EASY).py | 54e309394387ddd73c1d452937353435248b730c | [] | no_license | ineed-coffee/PS_source_code | 6706eb29e7d38336ee98875589596e760ab46686 | 4ecd0a40cc73207d19d43c558983943b86a929aa | refs/heads/master | 2023-05-22T07:34:15.407371 | 2021-06-14T09:59:44 | 2021-06-14T09:59:44 | 279,225,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | class Solution:
def interpret(self, command: str) -> str:
command = command.replace("()","o")
command = command.replace("(al)","al")
return command
| [
"leey93ssu@gmail.com"
] | leey93ssu@gmail.com |
07b6f7a525d488abab39c01eb84de93b903bc646 | 875188967ac96bdabc2780983ef2db32c8c727ef | /ebirdtaiwan/home/migrations/0010_homepage.py | 9b8995665be006bffbc5be724ff2dd270516dde5 | [
"MIT"
] | permissive | even311379/EbirdTaiwan2020 | b57ef8db79ef0d6b452016b6aa48bee2afe227b2 | 2c1aa4d7346b5ade909d45f7c245fa4988394124 | refs/heads/master | 2022-12-28T01:04:48.431595 | 2020-10-16T15:03:52 | 2020-10-16T15:03:52 | 289,954,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # Generated by Django 3.1 on 2020-09-08 13:47
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wagtailcore', '0052_pagelogentry'),
('home', '0009_auto_20200908_2138'),
]
operations = [
migrations.... | [
"even311379@hotmail.com"
] | even311379@hotmail.com |
a17edd87c7f235acfc31cbb7abd7ced8d5902b20 | 5e8832e7a49e121c4db1f57d036fe39b4250246a | /49_group_anagrams.py | 863f2372b660daad23dea6be24586b3e0811c96d | [] | no_license | shaniavina/Leetcode_Python | 9e80477794cd80e00a399d65b76088eea41d80d1 | 185bf1542265f5f4feca2e937d1d36a7bb4a5d2b | refs/heads/master | 2022-10-12T10:56:23.476219 | 2022-09-21T01:53:40 | 2022-09-21T01:53:40 | 52,979,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | class Solution(object):
def groupAnagrams(self, strs):
"""
:type strs: List[str]
:rtype: List[List[str]]
"""
dic = {}
for word in strs:
key = ''.join(sorted(word))
if key in dic:
dic.get(key).append(word)
else:
... | [
"noreply@github.com"
] | shaniavina.noreply@github.com |
354e0d75da15bcd6c207b6eccefa9f11de0a7aff | a0788b4020ab5e16917d551a0c9a13d26fe99eeb | /blogProject/blogProject/settings.py | 7f593cdd71d7c561b136f7bc987ca10aed6e8864 | [] | no_license | AnaRya/roocklab | 29a10b08979d7355358438ee8f82e461e57d44e4 | 5e0eaf3cdfe0062e85193d567e451bac835e1575 | refs/heads/master | 2020-03-10T14:21:31.064981 | 2018-05-04T15:32:07 | 2018-05-04T15:32:07 | 129,424,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,764 | py | """
Django settings for blogProject project.
Generated by 'django-admin startproject' using Django 1.11.12.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impo... | [
"alexander.ksenzov@gmail.com"
] | alexander.ksenzov@gmail.com |
2974667ca9e8f180b7ad93777c9ed504e13ef974 | 0b25b1c2ea3e3f05ea388e1105cd2fab50e7ba54 | /educa/courses/fields.py | 684dbf20b0097d4f01ef64e5746ed9a45802f2dd | [] | no_license | webclinic017/Django-project | f8337aeb296d12760143951635d0297c13313a50 | e757aef633c63aaf857afd1f274d42d16703ca0c | refs/heads/master | 2022-12-25T17:30:14.503627 | 2020-10-12T08:47:08 | 2020-10-12T08:47:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,201 | py | from django.db import models
from django.core.exceptions import ObjectDoesNotExist
class OrderField(models.PositiveIntegerField):
def __init__(self, for_fields=None, *args, **kwargs):
self.for_fields = for_fields
super(OrderField, self).__init__(*args, **kwargs)
def pre_save(self, model_instance... | [
"moreshubham203@gmail.com"
] | moreshubham203@gmail.com |
c8bcc7374ef071ad76b487a101213e862cb29696 | fa0c53ac2a91409eaf0fc7c082a40caae3ffa0d8 | /com/lc/python_1_100_Days_Demo/Day01-15/Day09/code/association.py | b0102062cfcb0367215d76df010b7eae701a7890 | [] | no_license | ahviplc/pythonLCDemo | aba6d8deb1e766841461bd772560d1d50450057b | 22f149600dcfd4d769e9f74f1f12e3c3564e88c2 | refs/heads/master | 2023-07-24T01:41:59.791913 | 2023-07-07T02:32:45 | 2023-07-07T02:32:45 | 135,969,516 | 7 | 2 | null | 2023-02-02T03:24:14 | 2018-06-04T04:12:49 | Python | UTF-8 | Python | false | false | 1,219 | py | """
对象之间的关联关系
Version: 0.1
Author: LC
DateTime:2018年9月18日13:44:19
一加壹博客最Top-一起共创1+1>2的力量!~LC
LC博客url: http://oneplusone.top/index.html
"""
from math import sqrt
class Point(object):
def __init__(self, x=0, y=0):
self._x = x
self._y = y
def move_to(self, x, y):
self._x = x
self._y = y
def move_by(sel... | [
"ahlc@sina.cn"
] | ahlc@sina.cn |
ecd7eb43d41377ac0a53abedcbd892cd457d7a32 | d1742451b25705fc128acc245524659628ab3e7d | /Team Forming Contest/Technocracy/TFC3/G - Search for Pretty Integers.py | 989bb43b507b62821dc5fabe0c7ee87bdac51d62 | [] | no_license | Shovon588/Programming | ebab793a3c97aedddfcad5ea06e7e22f5c54a86e | e4922c9138998358eed09a1be7598f9b060c685f | refs/heads/master | 2022-12-23T18:29:10.141117 | 2020-10-04T17:29:32 | 2020-10-04T17:29:32 | 256,915,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | n, m = input().split()
a = set(input().split())
b = set(input().split())
print(min(a&b) if a&b else min(min(a)+min(b), min(b)+min(a)) )
| [
"mainulislam588@gmail.com"
] | mainulislam588@gmail.com |
f6926e5182a10a81d659899e3c70e7cc751ae5b0 | f0dc3453e34ca25f15eef001d207ef2b03459bdb | /project/ximalaya/download.py | 7a1590116fe278a6fc7c0009f6cb6c3e27a36e80 | [] | no_license | vonboe/Py3Crawler | b2723d85b8470efa8baf5c3d24200deced290685 | c8e1807ef0fb3f5eb489dc9b1b64854bfd1621d5 | refs/heads/master | 2021-01-05T14:22:51.169965 | 2019-11-18T04:55:39 | 2019-11-18T04:55:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,518 | py | # -*- coding:UTF-8 -*-
"""
指定喜马拉雅歌曲下载
https://www.ximalaya.com/
@author: hikaru
email: hikaru870806@hotmail.com
如有问题或建议请联系
"""
import tkinter
from tkinter import filedialog
from common import *
from project.ximalaya import ximalaya
def main():
# 初始化
ximalaya_class = ximalaya.XiMaLaYa(extra_sys_config={crawle... | [
"hikaru870806@hotmail.com"
] | hikaru870806@hotmail.com |
4d4b4f92f6a93179ed8211e013c1ab35569774b4 | ef6ba1ba86a3da26382eab0e163e49ee9b3395d1 | /setup.py | 7d5cc0a27fc0845e3108c0743b10173fae0b81f6 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | effigies/texext | 3976b700c3606440dd13a6e5c7c85bb8e27f85dd | 545ecf3715ab43bfb95859861fbb17af1fef512d | refs/heads/master | 2021-02-18T06:29:46.076604 | 2019-12-31T14:07:02 | 2019-12-31T14:07:02 | 245,170,805 | 0 | 0 | NOASSERTION | 2020-03-05T13:30:11 | 2020-03-05T13:30:10 | null | UTF-8 | Python | false | false | 2,291 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
''' Installation script for texext package '''
import sys
# For some commands, use setuptools.
if len(set(('develop', 'bdist_egg', 'bdist_rpm', 'bdist', 'bdist_dumb',
'install_egg_info', 'egg_info', 'easy_install', 'bdist_wheel',
'bdist_mpkg')).inte... | [
"matthew.brett@gmail.com"
] | matthew.brett@gmail.com |
b4237b96ac27bd562907fc498ead282303714c96 | 482ec3480e8418dda62f85a5359e70c89256f1a8 | /pythonTutorial/udemy/mysite/posts/forms.py | 0a3ed04de7edf3c93bedb62340cb3b0b3efb83fa | [] | no_license | rajatgirotra/study | 84d319968f31f78798a56362546f21d22abd7ae7 | acbb6d21a8182feabcb3329e17c76ac3af375255 | refs/heads/master | 2023-09-01T20:48:31.137541 | 2023-08-29T01:41:17 | 2023-08-29T01:41:17 | 85,041,241 | 6 | 1 | null | 2023-05-01T19:25:38 | 2017-03-15T07:17:24 | C++ | UTF-8 | Python | false | false | 312 | py | from django import forms
from .models import Post
class PostForm(forms.ModelForm):
class Meta:
# tell django which model you are using
model = Post
# tell django which fields out of the Post model you are using
fields = [
'title',
'content'
] | [
"rajatgirotra@yahoo.com"
] | rajatgirotra@yahoo.com |
3adeb9987ffcd360be40a5d48b18b8618aa98f6b | b911843074e06707c4404588e78c78dfe11d6742 | /Fundamentals/session03/homework/serious_2_6.py | d462b77c8acdf9972e7c5aaab9e8ad23784f846f | [] | no_license | AnhQuann/nguyenanhquan-fundameltal-c4e14 | afc4ea5d108729231357057a62ae3be81b183b6c | 2f0edb00a2b79f28d4f85786ee008845489b7b0f | refs/heads/master | 2021-09-03T16:46:41.976317 | 2018-01-10T14:54:14 | 2018-01-10T14:54:14 | 111,936,679 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | ship_size = [5, 7, 300, 90, 24, 50, 75]
print('Hello, my name is Hiep and these are my ship sizes')
print(ship_size)
print()
for month in range(3):
print('MONTH', month+1, ":")
for j in range(len(ship_size)):
if ship_size[j] == max(ship_size):
ship_size[j] = 8
break
print(... | [
"anhquan19051905@gmail.com"
] | anhquan19051905@gmail.com |
76e72020f75996d9c3f60b919e85a6ff6dbaf1b9 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/baiduads/cluescore/model/submit_clue_task_response.py | 33c59f7550f8f63d105bd9d2877d708847ddf959 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 10,943 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
ch... | [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
d5dfbed03389f2665478f79d9cd76d9eac9dab74 | a2e852a19d3b3e1b5c4915f51600a8fbf81bdc49 | /INICIANTE/1866 - Conta.py | f2d13d3f0992945d26c257d010f6be677a06f37d | [] | no_license | VGasparini/URIOnline | 0eace9f1afed08e69bde2667b5f08448e4bb6ec8 | b4386a16cbeb38e5ab35e85fadd46657cb030c6a | refs/heads/master | 2021-01-18T20:51:29.571536 | 2018-11-02T17:18:54 | 2018-11-02T17:18:54 | 86,994,289 | 1 | 1 | null | 2022-12-18T16:53:56 | 2017-04-02T15:10:05 | Python | UTF-8 | Python | false | false | 251 | py | # Autor: [loopTree] VGasparini 🎈<gasparini.vinicius@hotmail.com>
# Nome: Conta
# Nível: 1
# Categoria: INICIANTE
# URL: https://www.urionlinejudge.com.br/judge/pt/problems/view/1866
n = int(input())
for i in range(n):
print(int(input())%2)
| [
"noreply@github.com"
] | VGasparini.noreply@github.com |
a768c197f611074c07e6a03ff40b7d7637e91545 | 2269285e9f2d54df990b716f145fb5c464bf1583 | /TargetDetection/TargetDetection/TargetModels/faster_rcnn/network_files/boxes.py | 62fedb132a8ffb80d58ecb913887a040534b629b | [] | no_license | Scottyoung99/ASL-Detection | 6178f09d967619b7b762d1d519114c1fbb67ade6 | 36e5dba973c8a0192f4918a44ed6dcbdd7f17c75 | refs/heads/main | 2023-02-25T10:31:50.489391 | 2021-01-17T09:57:22 | 2021-01-17T09:57:22 | 330,075,490 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,166 | py | import torch
from torch.jit.annotations import Tuple
from torch import Tensor
import torchvision
def nms(boxes, scores, iou_threshold):
# type: (Tensor, Tensor, float) -> Tensor
"""
Performs non-maximum suppression (NMS) on the boxes according
to their intersection-over-union (IoU).
NMS iterative... | [
"709223294@qq.com"
] | 709223294@qq.com |
ce034195ab088d91535f4dd75f999ac6f03cf2c8 | 71f2866fb241f0fbeef51fc203028e1e26f4e251 | /pytai/kaitai/formats/genmidi_op2.py | b6b734325564d6290f35fec2e104745e93bb9a59 | [
"CC0-1.0",
"Unlicense",
"WTFPL",
"BSD-3-Clause-Attribution",
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | angea/pytai | 5dba1cfe94df4daf735260e2dd062b815724b722 | 2db2518be9c4324aed182f36208c0e0ccf53a96c | refs/heads/main | 2023-09-04T19:34:59.635493 | 2021-10-31T16:07:25 | 2021-10-31T16:07:25 | 423,192,202 | 0 | 0 | NOASSERTION | 2021-10-31T15:55:19 | 2021-10-31T15:55:18 | null | UTF-8 | Python | false | false | 14,720 | py | # Creative Commons Legal Code
#
# CC0 1.0 Universal
#
# CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
# LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
# ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
# INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMON... | [
"Dvd848@users.noreply.github.com"
] | Dvd848@users.noreply.github.com |
984391c6fff45ab54d193f9a90e5385a3861032f | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Cetrotide_WC500024863.1.py | c563861fef604bef618ecfe994ce4e9ca87bede5 | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | {'_data': [['Common',
[['Reproductive system',
u'Milt till m\xe5ttligt ovariellt hyperstimuleringssyndrom (WHO grad I eller II) kan f\xf6rekomma, vilket \xe4r en inneboende risk vid stimuleringsbehandling (se avsnitt 4.4.)'],
['General',
u'Lokala reaktioner vid in... | [
"daro@daro-ThinkPad-X220.(none)"
] | daro@daro-ThinkPad-X220.(none) |
d7ec2bc09ddd386c3f17b5adf8ab109966e02bc7 | 505dc9404c89e56aea70f2db9fc1b3fb311fc5d9 | /usr/lib/enigma2/python/Components/Renderer/speedyAnimatedWeatherPixmap.py | 08cd3bb41e6663b49550e6f9e1655c831c3f7a8d | [] | no_license | e2plugins/4ATV_speedy_blue | ae8181ed4017beb4b48e58fe7cbbcbe2a1696057 | c84da50a0d872a2e74812214eed5532ed0893534 | refs/heads/master | 2022-11-14T17:09:41.134795 | 2020-07-12T06:24:24 | 2020-07-12T06:24:24 | 277,350,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,801 | py | # by nikolasi for maggy
from Tools.LoadPixmap import LoadPixmap
from Components.Renderer.Renderer import Renderer
from enigma import ePixmap, eTimer
from Tools.Directories import fileExists
import os
class speedyAnimatedWeatherPixmap(Renderer):
__module__ = __name__
def __init__(self):
Renderer.__init... | [
"captain.onboard@web.de"
] | captain.onboard@web.de |
5de682c552b890bdfef3c21fff27a5281dd42367 | 625d113273cf9bd6474e8ac12cd8afe2e4f8d50b | /Mono Captcha.py | 3aae814990a93fce5a203be2e44e39fbdac05207 | [] | no_license | hrvach/CheckiO | 9e4b04cf93c8f4da7bd61b55a3cf9bdcaea0836f | d25bbdb3b33441f45f4b587fd2a651c5c086484a | refs/heads/master | 2020-03-25T02:25:57.273381 | 2018-08-02T12:13:28 | 2018-08-02T12:13:28 | 143,289,238 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # migrated from python 2.7
font=[list(map(int, list(bin(x)[2:].zfill(15)))) for x in [31279,9184,20157,18107,28831,30386,15031,20120,32447,14014]]
def checkio(a):
sliding_window = [sum(x,()) for x in zip(zip(*a)[1:],zip(*a)[2:],zip(*a)[3:])[::4]]
correlation_index = [[sum([i[0]==i[1] for i in zip(a[0],a[1])]) ... | [
"github@hrvoje.org"
] | github@hrvoje.org |
d9c691a6431e20f171e068c6b62417486566e3e7 | adcbefa6cba639ec8c8eb74766b7f6cd5301d041 | /coffeehouse_nlpfr/corpus/reader/wordnet.py | 4b8626652f721e4d389cc3161a7f0edd275b2e0a | [] | no_license | intellivoid/CoffeeHouse-NLPFR | b39ae1eaeb8936c5c5634f39e0a30d1feece6705 | 8ad1b988ddba086478c320f638d10d0c0cacca4c | refs/heads/master | 2022-11-28T02:13:40.670494 | 2020-06-07T04:02:00 | 2020-06-07T04:02:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79,097 | py | # -*- coding: utf-8 -*-
# Natural Language Toolkit: WordNet
#
# Copyright (C) 2001-2019 NLTK Project
# Author: Steven Bethard <Steven.Bethard@colorado.edu>
# Steven Bird <stevenbird1@gmail.com>
# Edward Loper <edloper@gmail.com>
# Nitin Madnani <nmadnani@ets.org>
# Nasruddin A’aidil Shar... | [
"netkas@intellivoid.info"
] | netkas@intellivoid.info |
376fe88a34bc9e08f8d10ae35c8e14c23e5adf56 | da41330635bf649be367c2aeb0883998c1ebab8b | /unsupported/tests/test_nifti.py | 175f868855cbfbad29c71d635d9e0ced7fdde85c | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | NDAR/NITRC-Pipeline-for-NDAR | 1c849d4e43d8b25279cf9a42a39c290c399213dc | 1a495df9f5d019a927566629fe89dd474fc25f78 | refs/heads/master | 2021-01-17T12:13:42.764506 | 2014-11-14T16:24:41 | 2014-11-14T16:24:41 | 22,345,036 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | import os
import nose.tools
import ndar
def test_nifti_nifti():
"""image is already a NIfTI-1 file"""
im = ndar.Image('test_data/06025B_mprage.nii.gz')
assert im.nifti_1 == im.path(im.files['NIfTI-1'][0])
def test_nifti_unzipped_nifti():
"""image is already an uncompressed NIfTI-1 file"""
im = nda... | [
"christian.haselgrove@umassmed.edu"
] | christian.haselgrove@umassmed.edu |
af41c409dfc2cfd9e8bfaee8c7eed3e475362bfd | c7d91529db199322e39e54fe4051a75704ea843e | /剑指/二刷/和为s的两个数字_S.py | 44c0310ec520753d2ba90f52a45ec64cd36a1b48 | [] | no_license | 2226171237/Algorithmpractice | fc786fd47aced5cd6d96c45f8e728c1e9d1160b7 | 837957ea22aa07ce28a6c23ea0419bd2011e1f88 | refs/heads/master | 2020-12-26T07:20:37.226443 | 2020-09-13T13:31:05 | 2020-09-13T13:31:05 | 237,431,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | '''
输入一个递增排序的数组和一个数字s,在数组中查找两个数,使得它们的和正好是s。
如果有多对数字的和等于s,则输出任意一对即可。
示例 1:
输入:nums = [2,7,11,15], target = 9
输出:[2,7] 或者 [7,2]
限制:
1 <= nums.length <= 10^5
1 <= nums[i] <= 10^6
来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/he-wei-sde-liang-ge-shu-zi-lcof
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
'''
class Solution(obj... | [
"2226171237@qq.com"
] | 2226171237@qq.com |
7166e6782500c06352b1ab463f08ad8fe8ddca92 | e432286f2b8d7de684064bb228878f118da94bab | /sudoku/sudoku.py | b9fd729014e470cdfc466e28898630cd39146cdf | [] | no_license | anubhav-shukla/pygame | bc57b9d7788aaa238bd6212aceef17d7f04ebc6c | b71a7ab42c574d35490ee0fc87a8dffb585f2234 | refs/heads/main | 2023-05-11T19:33:56.928888 | 2021-06-08T17:22:23 | 2021-06-08T17:22:23 | 360,643,935 | 0 | 0 | null | 2021-06-08T17:22:24 | 2021-04-22T18:24:58 | Python | UTF-8 | Python | false | false | 9,598 | py | import pygame
import time
pygame.font.init()
class Sudoku:
board = [
[7, 8, 0, 4, 0, 0, 1, 2, 0],
[6, 0, 0, 0, 7, 5, 0, 0, 9],
[0, 0, 0, 6, 0, 1, 0, 7, 8],
[0, 0, 7, 0, 4, 0, 2, 6, 0],
[0, 0, 1, 0, 5, 0, 9, 3, 0],
[9, 0, 4, 0, 6, 0, 0, 0, 5],
... | [
"noreply@github.com"
] | anubhav-shukla.noreply@github.com |
9d8ef2b1ca53baf6d7d5c45d4d20a6bc444ba72e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/59/usersdata/233/48801/submittedfiles/testes.py | ead7cc65185c9c9a97a0bddaac1954289e5b6aa8 | [] | 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 | 158 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
n=int(raw_input('Digite um número: '))
for list in range(1,n+1,1):
print(list)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
01cd341314d19eb545e3fd58afa29886bb33895c | 59b492bb248b50bf23950d4ff68f444b650805ec | /src/StacksQueues/impl.loopqueue/LQueue.py | 79ce55782baaad36bcdd316409d631a599fc9a6b | [] | no_license | mtianyan/AlgoPlay | be9ec594015508801739b334e2017701813ccfd8 | 166106dbb71cf8a0a8495e08174f97a48a0fa8c6 | refs/heads/master | 2023-02-21T08:59:47.475121 | 2021-01-15T22:33:12 | 2021-01-15T22:33:12 | 325,931,862 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,731 | py | # -*- coding: utf-8 -*-
# NOTE: 从 array_and_list 第一章拷贝的代码
class Array(object):
def __init__(self, size=32):
self._size = size
self._items = [None] * size
def __getitem__(self, index):
return self._items[index]
def __setitem__(self, index, value):
self._items[index] = val... | [
"1147727180@qq.com"
] | 1147727180@qq.com |
a1fb84876c043a7bd9d94001909e12b108b88298 | 4c36958358221cc18437833c6f269840b52e52f4 | /pipeline.py | 166f5d463f01f7ed615063e50ae7f9f8b5519d71 | [] | no_license | shank16/advance-lane-finding | 0ad5239a17d9b5f47699e6b95abafb29547c5002 | a6828bfe1119edee9c18a54422ec3068b49acb2d | refs/heads/master | 2021-06-14T18:22:59.616634 | 2017-03-17T22:27:58 | 2017-03-17T22:27:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | import cv2
from utils import draw_windows
from utils import CameraCalibrator, ProjectionManager, LineTracker, ImageFilter, DiagnosticMgr
from moviepy.editor import VideoFileClip
def process_image(frame):
global cam_calibration
global img_filter
global projmgr
global curve_centers
global debug
... | [
"tdat.nguyen93@gmail.com"
] | tdat.nguyen93@gmail.com |
fdb15e5ace4da1b4de863d60634d45cfd6c62a14 | 099b57613250ae0a0c3c75cc2a9b8095a5aac312 | /leetcode/String/反转/345. Reverse Vowels of a String.py | 91a896abfae47d9cbe3bd90d6741b31aa6ab36ce | [] | no_license | MitsurugiMeiya/Leetcoding | 36e41c8d649b777e5c057a5241007d04ad8f61cd | 87a6912ab4e21ab9be4dd6e90c2a6f8da9c68663 | refs/heads/master | 2022-06-17T19:48:41.692320 | 2020-05-13T16:45:54 | 2020-05-13T16:45:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | """
只反转字符串里的元音字母"aeiou"(包括大写)
"""
class Solution(object):
def reverseVowels(self, s):
"""
:type s: str
:rtype: str
"""
if not s or len(s) == 0: return ""
s = list(s)
vowels = ["a", "e", "i", "o", "u", "A", "E", "I", "O", "U"]
left, right = 0, len(s) - ... | [
"yifu3@ualberta.ca"
] | yifu3@ualberta.ca |
0061ccf78e4b157a1267542ffef2b8657cf90b2f | 7eb8b253fff92b984e728822423fa2d62baf7956 | /dlp_mpi/split/managed.py | bc9db8bc1862bc1e157e17274f90b19a306beb92 | [] | no_license | LukasDrude/dlp_mpi | ada3fe4321f1ec38d04fca60809cf89b43270b66 | 78b0769787dc398cf349276fbd2f647893aa5d54 | refs/heads/master | 2020-09-08T05:32:39.838903 | 2019-11-11T17:22:52 | 2019-11-11T17:22:52 | 221,030,185 | 0 | 0 | null | 2019-11-11T17:06:36 | 2019-11-11T17:06:35 | null | UTF-8 | Python | false | false | 12,619 | py | from enum import IntEnum, auto
import dlp_mpi
from dlp_mpi import MPI, COMM
from dlp_mpi import RANK, SIZE
__all__ = [
'split_managed'
]
class _tags(IntEnum):
# The first time the worker request a task, this tag is send:
# need new data
start = auto()
# The last time the worker request a ta... | [
"cbj@mail.uni-paderborn.de"
] | cbj@mail.uni-paderborn.de |
1704ea5f968e349c38d2911b9f55d6168f021905 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03096/s565472854.py | 9303a9977cabba456b8b9c565e6ba7c55f29b95a | [] | 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 | 1,287 | py | #!/usr/bin/env python3
import sys
MOD = 1000000007 # type: int
MAX_N = 200000
def solve(N, C):
last = [-1] * MAX_N
pairs = []
for i, c in enumerate(C):
try:
prev = last[c - 1]
except:
if c >= N:
return
else:
raise Excepti... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6ed95898d877f4870771badd434dfd9b2e6a2526 | a9d197b21b73b25b8b87d2711fa53531ff40e155 | /14 Containers/list_comprehensive.py | 1e69ed048fb8244efccc2fbafcf052d1400aef0d | [] | no_license | CodedQuen/Python-essential-reference | 460109acc901b687d9d4071331df488612e4f452 | c2c222b6616d7ebe78bec3f0a90598582b8f6bf3 | refs/heads/master | 2022-06-15T12:19:34.475686 | 2020-05-04T08:29:25 | 2020-05-04T08:29:25 | 261,105,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | __author__ = 'rafael'
# Traditional
squares = []
for x in range(10):
squares.append(x**2)
print(squares)
# list comprehensions
squares = [x**2 for x in range(10)]
print(squares)
# Traditional with condition
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9]
even =[]
for x in numbers:
if x % 2 == 0:
... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
c3a5127abc373c9dc30df079a5d04cbbe071c1bd | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Forms/__init___parts/ItemChangedEventHandler.py | 9f11e96caa7b2bdc7f288f69104eb50bd383e07a | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,795 | py | class ItemChangedEventHandler(MulticastDelegate,ICloneable,ISerializable):
"""
Represents the method that will handle the System.Windows.Forms.CurrencyManager.ItemChanged event of the System.Windows.Forms.CurrencyManager class.
ItemChangedEventHandler(object: object,method: IntPtr)
"""
def BeginInvoke(self,sen... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
6817b3eb7405f553d78057e201ab7b0fcd63a5ff | a33e11102b4b934d603f84d18a96cf38239b78f2 | /3_Inheritance/Programmer.py | ff466645a03742c9abbaebf43e4f1bd99809b7e1 | [] | no_license | l2sega/OOP | ddd5244197160d0609c8696f2810834e17820c1f | e918f7f62e68b372b08827b7c419eb0897be44c3 | refs/heads/master | 2021-01-10T08:00:07.598831 | 2015-12-07T18:11:32 | 2015-12-07T18:11:32 | 47,569,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # 3_Inheritance
from Person import *
class Programmer(Person):
__exp_of_prog = 0
def get_experience_of_programming(self):
return self.__experience_of_rpogramming
def set_experience_of_programming(self, ex_pr):
self.__exp_of_prog = ex_pr
def description_of_person(self):
... | [
"you@example.com"
] | you@example.com |
96631f9978bb612c49381072307e64c5311a5317 | 1a166165ab8287d01cbb377a13efdb5eff5dfef0 | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_12_01/operations/_express_route_circuits_operations.py | ba9ea36c378c110388ef31ebdc86a16f959d5177 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | manoj0806/azure-sdk-for-python | 7a14b202ff80f528abd068bf50334e91001a9686 | aab999792db1132232b2f297c76800590a901142 | refs/heads/master | 2023-04-19T16:11:31.984930 | 2021-04-29T23:19:49 | 2021-04-29T23:19:49 | 363,025,016 | 1 | 0 | MIT | 2021-04-30T04:23:35 | 2021-04-30T04:23:35 | null | UTF-8 | Python | false | false | 53,704 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | manoj0806.noreply@github.com |
0b7c5657b839d26461deb7b7f216986c45a4bff8 | ea3897a5ffe63abd7ced5676c9121f6bb970bb97 | /detransapp/forms/infrator.py | b563a479b01ee4186c90ff6f2cd79d5f816e8347 | [] | no_license | brunowber/transnote2 | a045bdef18a9b07b70cc74483023dd877728682c | 7b799a71380aca342e879c5556cc24fcebdac1ca | refs/heads/master | 2020-04-10T08:53:29.613086 | 2018-03-15T19:52:53 | 2018-03-15T19:52:53 | 124,267,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | # coding: utf-8
"""Formulario de infrator"""
from django import forms
from detransapp.models import Infrator
class FormInfrator(forms.ModelForm):
"""Classes de infrator"""
class Meta:
model = Infrator
fields = "__all__"
| [
"bm.morais21@gmail.com"
] | bm.morais21@gmail.com |
c97fdb7f491f61e3abbba634fe4379ce2f3d6d37 | 4e6565fbccd4175e4acc26f9b4cedeea5054a872 | /extensions/aria_extension_tosca/simple_v1_0/modeling/constraints.py | 7c99eab7402846a6a77bf2b8d16eb3b47b5a2e94 | [
"Apache-2.0"
] | permissive | azbarcea/incubator-ariatosca | 789fc3612fd7cb463fd7e68ab3802aa85a706802 | 24d693d762e4a56d6bf16d8c29d76c1f2909098d | refs/heads/master | 2021-01-21T08:15:41.513345 | 2017-05-15T11:26:34 | 2017-05-15T21:09:49 | 91,622,847 | 0 | 0 | null | 2017-05-17T21:46:02 | 2017-05-17T21:46:02 | null | UTF-8 | Python | false | false | 5,344 | 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 use ... | [
"tal.liron@gmail.com"
] | tal.liron@gmail.com |
88bb1484be6aabb7de2e939ebd56ddaecfcc435e | a90678592951fd44cc05be552d510dd166de4779 | /django3/django3/wsgi.py | 369f61f5a9473a5c54df6b104862dfebbcfcdec0 | [] | no_license | qiangayz/MyCode | 9ac3d8997f06047b0d72ceaebc9412e7b714ce31 | fa2c65bd061c8c4e236a9864b49109aa6cd660e7 | refs/heads/master | 2020-03-09T02:44:15.344859 | 2018-07-25T17:49:32 | 2018-07-25T17:49:32 | 128,547,414 | 0 | 1 | null | 2018-04-12T17:45:35 | 2018-04-07T16:32:50 | CSS | UTF-8 | Python | false | false | 392 | py | """
WSGI config for django3 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"38162672+qiangayz@users.noreply.github.com"
] | 38162672+qiangayz@users.noreply.github.com |
b88bfcee9eb8b458b42b17519ab07ae2b61c0058 | e7e74b72d5367ad03adcf20b3220620baddcc113 | /gotify/models/email_notifier.py | 6142ad077818c1dedbb769d3f8e75aed3744c3d0 | [
"MIT"
] | permissive | akx/gentry | be044a51d0b4d3dd875e320c5ecc3c02c0bc249c | 5a550e34ced37f8f83a10001a3ef0b1480983781 | refs/heads/master | 2023-02-21T21:42:55.205987 | 2022-07-05T22:34:27 | 2022-07-21T11:46:46 | 98,209,171 | 4 | 1 | MIT | 2023-02-15T20:41:40 | 2017-07-24T16:02:32 | Python | UTF-8 | Python | false | false | 923 | py | import json
from django.core.mail import send_mail
from django.db import models
from gotify.models.notifier import Notifier
class EmailNotifier(Notifier):
emails = models.TextField()
@property
def recipient_list(self):
return {
address for address in (line.strip() for line in self.e... | [
"akx@iki.fi"
] | akx@iki.fi |
2e29b16331ecac0ba190f38016bbb7f6092424ea | cac8987fad2cf1363d6654d8365a93209233300c | /CA116-CA117 Programming 1 & 2/2017-04-18/ca117/nolanm45/patterns_62.py | 0fd1a15969d9b82b06f4603c296b639cb4223ff3 | [] | no_license | Mattnolan45/College-Work | 5c580696b0a841752ca3311cc4c88f8e91b8fd9c | d46cdb0d8bcb8f69d9e24b0d1b78d66616d80b96 | refs/heads/master | 2022-12-12T13:36:01.513725 | 2020-05-27T16:25:22 | 2020-05-27T16:25:22 | 174,000,356 | 0 | 0 | null | 2022-12-08T10:33:46 | 2019-03-05T18:35:07 | Java | UTF-8 | Python | false | false | 480 | py | import re
import sys
def main():
lines=sys.stdin.read()
print(re.findall(r"\b\d{1,2}[/]\d{1,2}[/]\d{2,4}\b",lines))
print(re.findall(r"\b\d{1,2}[-]\d{1,2}[-]\d{2,4}\b",lines))
print(re.findall(r"\b\d{1,2}[/-]\d{1,2}[/-]\d{2,4}\b",lines))
print(re.findall(r"\b\d{2}[-\s]\d{7}\b",lines))
print(re... | [
"matthewnolan.nolan@gmail.com"
] | matthewnolan.nolan@gmail.com |
6f27506e51362641fc0d9097b96f6a74b3484909 | 34d8b1b2b7fcedba12207bbb9fd1aeed58b0d7c4 | /PyModels/bot/plain_file_faq_storage.py | 4c775562b40322ad9ed180ea553251f6df4a03ac | [] | no_license | DnAp/chatbot | 8bc91f78fd9688c77665015962774eeb40f87f53 | fe7aa2b06910e3cb7cd75e62feb95967891fd647 | refs/heads/master | 2022-01-17T16:54:05.252316 | 2019-07-10T06:12:38 | 2019-07-10T06:12:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,221 | py | # -*- coding: utf-8 -*-
import logging
import io
from base_faq_storage import BaseFaqStorage
class PlainFileFaqStorage(BaseFaqStorage):
"""
Реализация хранилища FAQ на базе простого текстового файла без разметки.
См. пример https://github.com/Koziev/chatbot/blob/master/data/faq2.txt
"""
def __in... | [
"inkoziev@gmail.com"
] | inkoziev@gmail.com |
7310e6d772a7c4f8a7404ecb1509d61aee6d2327 | 968913bda3879ef316100410cdb2b01333ac14a8 | /003_Algorithms/breadth-first-search/breadth_first_search.py | aed31b905c8db6452cdba8f545923eee9a018fa9 | [] | no_license | sm2774us/2021_Interview_Prep | 02b6a81ee52f3cb14d9e060839a01aadd84e231f | c6689411a4334d53c88581a296e57c314b50f46c | refs/heads/main | 2023-03-02T05:30:17.156821 | 2021-01-26T04:31:02 | 2021-01-26T04:31:02 | 332,603,676 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | from collections import deque
#Creating the graph manually
#The graph is the same used in Chapter 4.1 (page 533) of the book "Algorithm II"
vertex_list = [[2,1,5], [0,2], [0,1,3,4], [2,5,4], [2,3], [3,0]]
#List used to mark visited vertex
marked_list = [False, False, False, False, False, False]
#List used to sign from... | [
"sm2774us@gmail.com"
] | sm2774us@gmail.com |
d64830642f1179dde11226d281dcbd6ddb049e1d | 0b72b6dc7559b8a4950714a9fa62765c3eb49ab0 | /todo/test_views.py | faf6ad99fba0d302b8122e3ef9e1c803a9e44c90 | [] | no_license | kydzoster/ci-hello-jango | efe85dbed7abded09c506ca1291b4670093f6f07 | 0ad736d33d5bb460958c0dc1e45ec8c6a62da0e8 | refs/heads/master | 2023-07-18T20:30:31.712102 | 2020-06-04T11:52:57 | 2020-06-04T11:52:57 | 269,055,991 | 0 | 0 | null | 2021-09-22T19:10:07 | 2020-06-03T10:17:00 | HTML | UTF-8 | Python | false | false | 2,037 | py | from django.test import TestCase
from .models import Item
class TestViews(TestCase):
# this will test http response
def test_get_todo_list(self):
response = self.client.get('/')
self.assertEqual(response.status_code, 200)
# to confirm that the view uses correct template
self.as... | [
"kydzoster@gmail.com"
] | kydzoster@gmail.com |
6e55c317f62fc12df8d56caca64b11d84d6eba7a | ad69df518c785648db03cd39e682394f9825416e | /Models_Prac/randomGen/apps/user_page/views.py | d032d4778cb932332559beb0f08ae6acb98cdd2e | [] | no_license | jsterling23/Django_Projects | ea24c0b615b3897e831b04e80453d47d5fc74e6d | 733d3f045b466a1da7fd8cabb91ac8d233c1dfc4 | refs/heads/master | 2020-03-23T00:21:08.749080 | 2018-07-21T05:24:31 | 2018-07-21T05:24:31 | 140,858,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import messages
from django.shortcuts import render, redirect
from ..logReg.models import User
from ..home.models import Thought
from ..user_page.models import Bio
# Create your views here.
def index(req):
if 'logged_in... | [
"jerrypadilla23@gmail.com"
] | jerrypadilla23@gmail.com |
344e9476f50f454aac1d36f70a40f1c29c4fd560 | 2c3367295e679b12c8ceb78745f2db7ebe338e18 | /opentech/apply/home/apps.py | a2bf8ec18475de73106bdbb6092b598547093bf1 | [
"BSD-2-Clause"
] | permissive | stdevteam/opentech.fund | 9f0d4b6274d1524207837bf54d21dfa8284cad3c | 6888dc5aa1a8c60f17629dff03877412275e08a5 | refs/heads/master | 2022-05-11T16:53:19.075549 | 2022-04-05T12:04:47 | 2022-04-05T12:04:47 | 161,327,565 | 0 | 0 | NOASSERTION | 2018-12-11T12:02:07 | 2018-12-11T12:02:07 | null | UTF-8 | Python | false | false | 123 | py | from django.apps import AppConfig
class HomeConfig(AppConfig):
name = 'opentech.apply.home'
label = 'apply_home'
| [
"todd.dembrey@torchbox.com"
] | todd.dembrey@torchbox.com |
265ddc7fc4d2c905f623dd333edd858c5f695f86 | 71a7ed5dd56b89aea1795a3db1469e3006be783f | /configs/hand/2d_kpt_sview_rgb_img/deeppose/rhd2d/res50_rhd2d_256x256.py | d092c5daad4e345f6749014c6c7da33fdb17ac8b | [
"Apache-2.0"
] | permissive | RunningLeon/mmpose | b6091416a2565778a1438b23edaa6620a2088a3e | 9ef202c0a4b2c28add32b530caf2ea0354843fe4 | refs/heads/master | 2023-06-30T04:46:52.917877 | 2021-08-05T08:54:24 | 2021-08-05T08:54:24 | 335,275,684 | 0 | 0 | Apache-2.0 | 2021-02-02T12:06:57 | 2021-02-02T12:06:57 | null | UTF-8 | Python | false | false | 3,655 | py | log_level = 'INFO'
load_from = None
resume_from = None
dist_params = dict(backend='nccl')
workflow = [('train', 1)]
checkpoint_config = dict(interval=10)
evaluation = dict(interval=10, metric=['PCK', 'AUC', 'EPE'], save_best='AUC')
optimizer = dict(
type='Adam',
lr=5e-4,
)
optimizer_config = dict(grad_clip=Non... | [
"noreply@github.com"
] | RunningLeon.noreply@github.com |
bca6f5303d6159365b37724fbb4866c03cd47e23 | 0005e05b9d8b8ad0d3c3c0539b2ded9db6e9f1dd | /test/test_tododelete_result_data.py | 69b5a56402ef281dcba19fe3e8e259de60d8669b | [] | no_license | termicoder/codechef-client-lib | a3e3de2b300355c5daa5ed3fad03a9859af13d86 | 74d6b21787c75a987e3451751f5554e4cc6cf469 | refs/heads/master | 2020-03-27T17:58:45.298121 | 2018-09-30T18:03:14 | 2018-09-30T18:03:14 | 146,889,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # coding: utf-8
"""
CodeChef API
CodeChef API to support different applications. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import codechef_client
from codechef_client.m... | [
"diveshuttamchandani@gmail.com"
] | diveshuttamchandani@gmail.com |
44beb3d30e89be434403c409c11ce1a774eee7c5 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/datahub/databus/shippers/queue_pulsar/shipper.py | e62bcb3d889895d1688285fd8e5b6a8751e54595 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 3,084 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
97da5f9ed2403cbfb999fd206cd86a65a5020ecb | c160a1b94a00ce253a1580edcd98153e23cfb383 | /solutions/python/grid.py | b076cfc34becbff0f5ee005ce90ed293a065a7eb | [
"MIT"
] | permissive | skeate/aoc | bcab38b34939058cb93e8f6566be634491097910 | 0f93ac5f266a7a9b143523a5493194bd5d3c6e02 | refs/heads/master | 2022-12-27T16:16:10.422594 | 2022-12-15T22:26:29 | 2022-12-15T22:26:29 | 317,359,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | import os
from itertools import zip_longest
def same(x): return x
def noop(a,b): pass
class Grid:
def __init__(self, visit=noop, start=(0,0)):
self.grid = {}
self.loc = start
self._visit = visit
self.grid[start] = self.visit()
def visit(self):
return self._visit(self.g... | [
"skeate@gmail.com"
] | skeate@gmail.com |
19230c364581de587da4be991464cbf8e5d3a301 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq2368.py | fb02a8b97b554b2851468bd1d908bafd0a4c40a1 | [
"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 | 3,037 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=39
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
0ee40e47f60a57f933c70898f8cbfd68c59d8de6 | c8f5b7fc5bd5de3e086dfe573adbd8d3d675fc5f | /cct/qtgui2/devices/connectioneditor/connectioneditor.py | 6ead8c001f838d2ce34a192d4f598e82d5d70851 | [
"BSD-3-Clause"
] | permissive | awacha/cct | 3b44fd7cf7a66dc3112abae3d8a156e26aad8c22 | 4a00f6817843d287680787725ba917cf801d9063 | refs/heads/master | 2023-02-03T17:18:55.624721 | 2022-08-22T06:20:28 | 2022-08-22T06:20:28 | 44,253,619 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,947 | py | from typing import Optional
from PyQt5 import QtWidgets, QtCore
from PyQt5.QtCore import pyqtSlot as Slot
from .connectioneditor_ui import Ui_Form
from ....core2.devices.device.telemetry import TelemetryInformation
from ...utils.window import WindowRequiresDevices
from .newconnectiondialog import NewConnectionDialog
... | [
"awacha@gmail.com"
] | awacha@gmail.com |
7aea0dd7f0b272507549dc2acda9de336497e3eb | 0ed0f9b98be3eb4f87aedfb67210b01a3bd4ffe4 | /Validation/prod/common/pass1.3_computeStat.py | 9dabd2494fb62f3e9b6e9e99a85a3dced376677d | [] | no_license | jshlee/CATTools | 6e6714225010fa5dfcc819f578d3ad0b8458a8dc | 3805086b4577b439ecef5369d5bd56f25cfe1ca3 | refs/heads/cat80x | 2021-01-21T16:44:52.978003 | 2017-10-17T18:46:58 | 2017-10-17T18:46:58 | 25,828,473 | 1 | 2 | null | 2017-10-17T18:46:59 | 2014-10-27T16:32:59 | C++ | UTF-8 | Python | false | false | 1,847 | py | #!/usr/bin/env python
import os
from ROOT import *
## Load JSON file and categorize datasets
import json
import pandas as pd
pd.options.display.max_rows = 999
dataDir = "%s/src/CATTools/CatAnalyzer/data/dataset" % os.environ["CMSSW_BASE"]
dsets = pd.DataFrame.from_dict(json.loads(open("%s/dataset.json" % dataDir).rea... | [
"jhgoh@cern.ch"
] | jhgoh@cern.ch |
b3ad213e7df90faebb3ed18bb0cf6beb7ae9ba8b | d362a983e055984c588ee81c66ba17d536bae2f5 | /backend/agent/migrations/0038_remove_beautician_serving_in.py | 2d0f761d4808fc04921f7fc4263f611c9ca2ab23 | [] | no_license | prrraveen/Big-Stylist-CRM | 1d770b5ad28f342dfc5d40002ddc3ee7cc6f840a | 6cd84ce7b01a49a09b844c27ecc4575dcca54393 | refs/heads/master | 2021-01-10T04:37:43.414844 | 2015-12-15T10:47:21 | 2015-12-15T10:47:21 | 49,239,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('agent', '0037_pincode_localities'),
]
operations = [
migrations.RemoveField(
model_name='beautician',
... | [
"prrraveen@gmail.com"
] | prrraveen@gmail.com |
f9922b9d3bae440ccb0610f88d4514d6b857adfa | a873f3cd46a10ad879fc56d78e1f533d8bf486c0 | /a_web/demo/books/migrations/0001_initial.py | e1a5d7ac565fa41f343d7d8db7feecefdf2baaed | [] | no_license | shenhaiyu0923/resful | d0301b39363e6b3d3659f62fa4a9b2532ebcd225 | 1e66cae7d68fa231794776953cc1a5e999bf36c6 | refs/heads/master | 2021-07-08T20:46:57.300298 | 2021-06-01T08:17:27 | 2021-06-01T08:17:27 | 244,308,016 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,061 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2020-03-02 08:09
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"jwang9@vova.com.hk"
] | jwang9@vova.com.hk |
73af5d54ade5a5774012cb896ba9efde50161f03 | 19919c7c7f4ccfc4842e016c8ece818cd144de14 | /Base/Get_Driver.py | 5f86b1201b6babeb3fdd83bfddf04c81495c59e3 | [] | no_license | Cz1660/GitTestSetting_0225 | b9e08e74dc0eb27aa39f204763140f0d772e5796 | ba59ca5b16d1e9784a19b2c70d7ca27e923289f4 | refs/heads/master | 2020-04-25T02:52:49.869443 | 2019-02-25T08:08:21 | 2019-02-25T08:08:21 | 172,456,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from appium import webdriver
class Get_Driver:
def get_driver(self,appPackage,appActivity):
self.desired = {}
self.desired['platformName'] = 'Android'
self.desired['platformVersion'] = '8.0.0'
self.desired['deviceName'] = 'HUAWEI nova2'
self.desired['appPackage'] = appPacka... | [
"you@example.com"
] | you@example.com |
ec3ba31eeb69ab63d3e143775f83466f06aa6ea0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/80/usersdata/147/48115/submittedfiles/moedas.py | a4067a6260de0b909a14118260d5027646fbc947 | [] | 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 | 246 | py | # -*- coding: utf-8 -*-
from __future__ import division
a=int(input('digite a:'))
b=int(input('digite b:'))
c=int(input('digite c:'))
i=1
cont=0
resto=0
while c//i!=0:
cont=cont+1
i=i+1
if c%i!=0:
resto=(c%i)
print(cont)
print(resto)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d8096faa00f8915f1969549c2188ed9dee744c00 | e3efabcafdbf8dc88841ded4fd2d2854772044d1 | /config.py | 1cbdc627018747d7b8b251cd9eb92f2e55cb6bc6 | [
"BSD-3-Clause",
"MIT"
] | permissive | reubano/ebay-search-api | df3c4152184d0aeb014c8cad4a41dd8532187823 | b1acd92dd195fe17d39317904e0704e4a425e3fa | refs/heads/master | 2021-01-23T11:56:01.055238 | 2017-06-20T11:12:40 | 2017-06-20T11:12:40 | 19,175,031 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,143 | py | # -*- coding: utf-8 -*-
"""
config
~~~~~~
Provides the flask config options
###########################################################################
# WARNING: if running on a a staging server, you MUST set the 'STAGE' env
# heroku config:set STAGE=true --remote staging
#################... | [
"reubano@gmail.com"
] | reubano@gmail.com |
7b50de229e7863db9841d282a03efbaf5a930532 | 32218d307c2bb58672112370a31e16d3b9cc4c50 | /tushare/__init__.py | 37da945cfafb7add1dd9e025f4d80fa6d9eb2bef | [
"BSD-3-Clause"
] | permissive | kiinoo/tushare | d409d30d802ea6d7dd113fb8b14b4ffbf6ac5597 | f408b10751ca060fcd9d77b3383263de8b35b2ba | refs/heads/master | 2021-01-22T16:45:44.937242 | 2015-08-02T08:10:45 | 2015-08-02T08:10:45 | 39,777,523 | 0 | 0 | null | 2015-07-27T14:01:51 | 2015-07-27T14:01:51 | null | UTF-8 | Python | false | false | 2,395 | py | __version__ = '0.3.4'
__author__ = 'Jimmy Liu'
"""
for trading data
"""
from tushare.stock.trading import (get_hist_data, get_tick_data,
get_today_all, get_realtime_quotes,
get_h_data, get_today_ticks,
get... | [
"jimmysoa@sina.cn"
] | jimmysoa@sina.cn |
4f1af7a9aacd95d75a78f76813936f1bc34ceb0d | 44fb2fe531a0ff2144e4f0c2d4dd611f86f93cfb | /FuckLeetcode/47. 全排列 II.py | dedf1988d849d1f4370cfce2adb61f11a464d17d | [] | no_license | Alex-Beng/ojs | d9f1a49f76dc6b6429951330af526e0df2152be8 | 26a467dfe8acd8ae4be0cd2784d79eebf09c06ce | refs/heads/master | 2023-07-12T05:36:36.176271 | 2023-07-07T15:09:39 | 2023-07-07T15:09:39 | 152,544,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | from copy import deepcopy
class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
def dfs(n, layer, used, curr, ans):
if layer == n:
# print(curr)
ans.append(deepcopy(curr))
else:
for i in range(n):
... | [
"599267065@qq.com"
] | 599267065@qq.com |
7b3823ecb281b9ea378ca0e4243791daf7be5a40 | adc646a248ca0e599689af869999ddc2dec4a63d | /Python3/237.delete-node-in-a-linked-list.py | 5558e23f7230fa687c76b28113b8d1a231ec99ba | [
"MIT"
] | permissive | 610yilingliu/leetcode | fd3a5675932e7056641bd878afe36b55ad53490b | 3fd33092f53de25e8014c05af4ac3e6754f54e23 | refs/heads/master | 2023-04-27T22:22:27.103682 | 2023-04-14T16:33:40 | 2023-04-14T16:33:40 | 247,016,311 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | #
# @lc app=leetcode id=237 lang=python3
#
# [237] Delete Node in a Linked List
#
# @lc code=start
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def deleteNode(self, node):
"""
:type node: ListNode
... | [
"yilingliu1994@gmail.com"
] | yilingliu1994@gmail.com |
d64db83afad265ffcc9cae77ba1b514afe5188b2 | 61b86dee4dc477d6abbc7cd49693c5496928a976 | /venv/Lib/site-packages/pip/_internal/cli/base_command.py | 7e80f23340265ccbaf18a18378ed6bac02e077f8 | [] | no_license | Spirovanni/techforce3 | 3a748a49025808ac1adabc38f9f3251a3d60a68f | 5e9e80df43a887ba32f35f82b0119a15f7483d07 | refs/heads/master | 2020-09-21T11:21:19.492747 | 2019-12-07T16:06:05 | 2019-12-07T16:06:05 | 224,771,839 | 0 | 0 | null | 2019-12-06T06:06:16 | 2019-11-29T03:42:04 | Python | UTF-8 | Python | false | false | 13,107 | py | """Base Command class, and related routines"""
from __future__ import absolute_import, print_function
import logging
import logging.config
import optparse
import os
import platform
import sys
import traceback
from pip._internal.cli import cmdoptions
from pip._internal.cli.cmdoptions import make_search_scope
from pip.... | [
"blackshieldsx@gmail.com"
] | blackshieldsx@gmail.com |
630913d770b73fedbabcfec731b4cc54d4ece04d | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /kill_process.py | d07fe15152d06bf213f2ba932f6351b8cb609921 | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 4,520 | py | '''
You have n processes forming a rooted tree structure. You are given two integer arrays pid and ppid, where pid[i] is the ID of the ith process and ppid[i] is the ID of the ith process's parent process.
Each process has only one parent process but may have multiple children processes. Only one process has ppid[i] =... | [
"noreply@github.com"
] | erjan.noreply@github.com |
9478c3c91058bd588bf97b715f2380989ea45794 | 20cf2cb73adfed63cf182fc12a09aa3aadc033c6 | /class.py | ccf3d94b4796fd2057fc9fe5169616f40aa46c58 | [] | no_license | arunkumar27-ank-tech/Python-Programs | 678ae558e8c141a6302e2705849c97258974c4eb | a56788057d1bf8848681e38eb569874d84db7337 | refs/heads/master | 2023-06-16T14:50:36.146381 | 2021-07-15T13:57:54 | 2021-07-15T13:57:54 | 386,305,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | class Arun:
def __init__(self, name, age):
self. n = name
self. a = age
def func(self):
print("the details is ", self.n, self.a)
obj1 = Arun('arun', 22)
obj1.func()
| [
"arunkumar834428@gmail.com"
] | arunkumar834428@gmail.com |
1f3acd1b7658546833166ea3a06e14bf4d2dc8d1 | 2c190c1f324659a76bd7a701f09f49760b946a02 | /person.py | 547cdb0f5a4df655d4fa9f4ec0a19c6a60d72d65 | [] | no_license | erikaosgue/Git-GitHup-Practice | cc9882c000e4cdd09dfcf8e1e8ddb5459147c5a9 | 3e618fa943395fe30768e82a936d18d4e4c244bb | refs/heads/master | 2023-05-01T19:57:24.067849 | 2021-05-20T03:47:09 | 2021-05-20T03:47:09 | 367,688,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/python3
# Exercise to practice git with a simple class
class Person:
# constructor for Person Class
def __init__(self, name, age):
self.name = name
self.age = age
def myfunc(self):
print("Hello my name is " + self.name)
person1 = Person("Amanda", 22)
# Print the ... | [
"1476@holbertonschool.com"
] | 1476@holbertonschool.com |
882c9e01045db45df0ab9d39424d7ceb27a691dc | a8769709aeb7299fa3757f0e7bba5c617eb8cfe3 | /lesson-3/k8s/lib/python2.7/site-packages/kubernetes/client/models/v1_service_account_token_projection.py | a9ff17589f4c3fb5c27b854a85630b34b6476cd4 | [
"Apache-2.0"
] | permissive | simox-83/workshop-k8s | 2ac5e8b282bb7c3337acc726a7d972717bf649cc | 04cb18e8b5925a3cfd84ca316952a6cb64960b31 | refs/heads/master | 2020-03-31T20:52:21.421995 | 2018-10-11T14:43:08 | 2018-10-11T14:43:08 | 152,558,678 | 0 | 0 | Apache-2.0 | 2018-10-11T08:37:20 | 2018-10-11T08:37:20 | null | UTF-8 | Python | false | false | 6,265 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.11.3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"simone.dandreta@concur.com"
] | simone.dandreta@concur.com |
2b9441f1518dcc4b56399c2815b4ab9300e948e9 | a181b2f877a1b963102ff143fa1d2fbcb930102b | /com/cskaoyan/object/AdvanceObject/MethodType.py | 1fa65150bc6c8430194404caadc56cbb4f2d3ba1 | [] | no_license | tangkangtai/pythonProject3 | bab2533aba9d411ffb3d69bf97ef3ff5418bef05 | 2b86622b335b8d122b8ab6a74c3e8fb280d619a8 | refs/heads/master | 2023-03-30T06:36:49.439429 | 2021-03-30T12:00:23 | 2021-03-30T12:00:23 | 316,452,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py |
from types import MethodType
class Student(object):
pass
s1 = Student()
#python 3目前不可用
#s1.set_age = MethodType(set_age,s1,Student)
# s1.set_age(23)
# print(s1.age)
#这种绑定 只将方法绑定到s1对象上面
# s2 = Student()
# s2.set_age(24)
# print(s2.age)
def set_age(self,age):
self.age = age
#-----------------------
print('... | [
"1179167225@qq.com"
] | 1179167225@qq.com |
d3dbd8a9d64161c83aa909c824126929b072c04e | 426a3f961982db52360a3e66c326b36a1d0a91ae | /File Input & Output Function/create diff list.py | 8738adae07d3154e7decae7979bb2aa037d5a978 | [] | no_license | Sibinvarghese/PythonPrograms | c121f8eaf06b2fcbbd15f64b54c13771e82e5d99 | c0e0951dab3ff0921ae2e25dfb086bb94d805464 | refs/heads/master | 2023-02-17T10:27:59.876242 | 2021-01-13T03:51:51 | 2021-01-13T03:51:51 | 329,186,398 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | f=open("employee demo ","r" )
id=[]
name=[]
sal=[]
for line in f:
lines=line.rstrip("\n").split(",")
id1=lines[0]
name1=lines[1]
sal1=lines[2]
id.append(id1)
name.append(name1)
sal.append(sal1)
print(id,name,sal) | [
"sibinmvarghese@gmail.com"
] | sibinmvarghese@gmail.com |
24cee9ef3896433bf1ad75325a2fd6be6ebe8890 | aa7878b7975a669d5ca29a7efada73d7cf48202c | /pld.py | 0cfa75c92c3400622910ec9c876bbba66ca54ff8 | [
"MIT"
] | permissive | bmorris3/arcsat_monitoring | 11e4f11d9934b22cbadc6144b65b5b66302c9821 | 158988c49ef9384e905c02dd855bfaf855da140a | refs/heads/master | 2023-05-30T19:54:18.767192 | 2018-06-18T22:23:16 | 2018-06-18T22:23:16 | 121,421,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,826 | py | import numpy as np
# Iterate!
def Init(fpix, K = 5):
'''
'''
# Compute the 1st order PLD model
fsap = np.sum(fpix, axis = 1)
A = fpix / fsap.reshape(-1,1)
w = np.linalg.solve(np.dot(A.T, A), np.dot(A.T, fsap))
model = np.dot(A, w)
fdet = fsap - model + 1
# The data matrix
F =... | [
"brettmorris21@gmail.com"
] | brettmorris21@gmail.com |
713b4149076553580c970c0ff329fd6ecc94bd03 | d6589ff7cf647af56938a9598f9e2e674c0ae6b5 | /iovcc-20180501/alibabacloud_iovcc20180501/client.py | c235e01fe02613e79f149b7a4ca967cdcb364f08 | [
"Apache-2.0"
] | permissive | hazho/alibabacloud-python-sdk | 55028a0605b1509941269867a043f8408fa8c296 | cddd32154bb8c12e50772fec55429a9a97f3efd9 | refs/heads/master | 2023-07-01T17:51:57.893326 | 2021-08-02T08:55:22 | 2021-08-02T08:55:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331,214 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from typing import Dict
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_tea_util.client import Client as UtilClient
from alibabacloud_endpoi... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
198ff4a8dfe3692a385a0fc8c2c474abbfa30f79 | 87c3f0cc9d181a525ed6249cde81f8e483f30223 | /tests/test_warn.py | 825a71a1a78a9946c36e736d60c924304390ac96 | [
"MIT"
] | permissive | jwilk/anorack | 35f0afd3b69eb390bdf73f350937fdf27a67fa53 | c189b95262878112cfe6f73cc3bda0fd380d11e0 | refs/heads/master | 2023-07-25T12:11:41.031553 | 2023-07-17T21:01:39 | 2023-07-17T21:01:39 | 62,392,075 | 35 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | # Copyright © 2016-2021 Jakub Wilk <jwilk@jwilk.net>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, mer... | [
"jwilk@jwilk.net"
] | jwilk@jwilk.net |
33837656c35ecd37ba14e9df1296351299282be9 | d66818f4b951943553826a5f64413e90120e1fae | /hackerearth/Basic Programming/Implementation/Basics of Implementation/The art of verification/test.py | e6fd525ebadce34504688a43f004a25b37679292 | [
"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 | 727 | py | import io
import unittest
from contextlib import redirect_stdout
from unittest.mock import patch
class TestQ(unittest.TestCase):
@patch(
"builtins.input",
return_value="http://www.cleartrip.com/signin/service?username=test&pwd=test&profile=developer&role=ELITE&key=manager",
)
def test_case... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
be009a921a73797b5c464c5daefe70001fe6f656 | 10fbe5526e5f0b8588b65f70f088cd86b6e9afbe | /geemkrwi/migrations/0014_auto_20150218_1628.py | e9b7ac6b3c2a1007a9666fa70256b0b80145af26 | [] | no_license | MarkusH/django-migrations-benchmark | eb4b2312bb30a5a5d2abf25e95eca8f714162056 | e2bd24755389668b34b87d254ec8ac63725dc56e | refs/heads/master | 2016-09-05T15:36:45.250134 | 2015-03-31T23:44:28 | 2015-03-31T23:44:28 | 31,168,231 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('avwpufexob', '0013_auto_20150218_1628'),
('geemkrwi', '0013_wilsmoea_lpmmn'),
]
operations = [
migrations.CreateMode... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
3f4a2d9ef61a2adcf829dabc23897dece46df261 | c0075f31ff48142a05d92f11840229beee09f697 | /tests/plugins/test_pixiv.py | 8d547d3dbadc6e88d5f2c37e850a9991a8933867 | [
"BSD-Source-Code",
"BSD-2-Clause"
] | permissive | beardypig/streamlink | c1d44605ced0c924257b4813649acb406b035cb8 | 54c25e49a45a5545d2d9a545320cd2034ea41cd3 | refs/heads/master | 2021-12-12T04:31:02.955852 | 2020-11-10T06:18:33 | 2020-11-10T06:39:46 | 70,149,227 | 5 | 2 | BSD-2-Clause | 2019-08-08T11:56:37 | 2016-10-06T11:52:09 | Python | UTF-8 | Python | false | false | 566 | py | import unittest
from streamlink.plugins.pixiv import Pixiv
class TestPluginPixiv(unittest.TestCase):
def test_can_handle_url(self):
should_match = [
'https://sketch.pixiv.net/@exampleuser',
'https://sketch.pixiv.net/@exampleuser/lives/000000000000000000',
]
for url... | [
"gravyboat@users.noreply.github.com"
] | gravyboat@users.noreply.github.com |
54fb0c1ba4f22838fc6317dbe2ba56a27fb1d04b | f2658c4bd7f833ace25ac2b63e88317b05f4602d | /2017 July/2017-July-11/st_rdf_test/model/WaysNavigableLinkAdasRegioncode.py | adf4e3fe9747e75b1425409b538d2cefac9b43f9 | [] | no_license | xiaochao00/telanav_diary | e4c34ac0a14b65e4930e32012cc2202ff4ed91e2 | 3c583695e2880322483f526c98217c04286af9b2 | refs/heads/master | 2022-01-06T19:42:55.504845 | 2019-05-17T03:11:46 | 2019-05-17T03:11:46 | 108,958,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,699 | py | #-------------------------------------------------------------------------------
# Name: WaysNavigableLink model
# Purpose: this model is used to mapping the rdf_nav_link, rdf_link and rdf_access
# columns: [ link_id,iso_country_code,access_id,status_id,functional_class,controlled_access,travel_... | [
"1363180272@qq.com"
] | 1363180272@qq.com |
d11dd142101d3e542c52af2df6d118f774c36db1 | 2e29036d10a1e2bf86b622270783810f0d6bc34e | /temp_converter.py | fe1238150007299a2a1efe1d674a18e531bbb128 | [] | no_license | golammahmud/tkinter-gui-tempereture-converter | 22f45968e210b474eff8aad5b907f1450a47bfb6 | 2597f0b3c7358585faa86f4410858cdb525a4c6c | refs/heads/master | 2023-04-21T04:25:17.229489 | 2021-05-23T04:17:19 | 2021-05-23T04:17:19 | 369,958,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,944 | py | from functools import partial
from tkinter import *
import math
from tkinter import messagebox
width=500
height=500
root=Tk(className="Tkinter Temprature converter")
root.geometry(f'{width}x{height}')
# root.resizable(False, False)
title=Label(root, text="Temperature converter in Python",font='lucida 15 bold italic')
... | [
"golam.mahmud99@gmail.com"
] | golam.mahmud99@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.