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
42555bcf961f52c5bf3b9a8580126bd0133beeb3
8345e14eb66fe277617057f903b8c46dfda9ff15
/python/odml/odml_to_html.py
959ddab735b0647560e9a00837c548d3fd160b8b
[ "BSD-3-Clause" ]
permissive
mpsonntag/snippets
4cdcd50ce74b280f689259f6eca262d63b87c4b4
698f2c01732e00326bde81f728f77f0de7377eba
refs/heads/master
2023-08-09T18:34:48.946482
2023-07-25T06:17:10
2023-07-25T06:17:10
89,686,850
0
0
BSD-3-Clause
2023-02-23T16:32:13
2017-04-28T08:44:20
HTML
UTF-8
Python
false
false
1,415
py
""" Load an odML xml file containing a full and valid stylesheet tag and use the stylesheet information to transform the odml document to html. """ import argparse from lxml import etree LOCAL_FILE = "resources/browser_display/custom_style.odml" def odml_to_html(odml_filename): """ Load an odML xml file co...
[ "michael.p.sonntag@gmail.com" ]
michael.p.sonntag@gmail.com
4eea885823e32d01caf086f0ad0dc255b61ff43e
2ed2dd917afb05d194e87f989d78953b31a5781b
/lesson19/mission03.py
cf74a163984c4bb40f469565410a6b26939f91dd
[]
no_license
RenegaDe1288/pythonProject
4058d549db7c37652f77438c31f8b31476497d98
801c06f3be22ed63214987b11d6f1b3fd2fe5b44
refs/heads/master
2023-08-17T13:20:50.777842
2021-10-05T10:51:00
2021-10-05T10:51:00
393,145,207
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
contacts = dict() while True: contact = input('Введите имя и телефон через пробел: ').split() if contact[0].isalpha() and contact[1].isdigit(): if contact[0] not in contacts: contacts[contact[0]] = contact[1] print(contacts) else: print('Данное имя уже есть в...
[ "D121188@yandex.ru" ]
D121188@yandex.ru
ba41c003c4ba72a10f840429f52107c91ff64dad
b3c47795e8b6d95ae5521dcbbb920ab71851a92f
/HackerRank/Python/Introduction/Python If-Else.py
afbb6ff2512211d15d061b8f1ad73c0316187d9b
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Wizmann/ACM-ICPC
6afecd0fd09918c53a2a84c4d22c244de0065710
7c30454c49485a794dcc4d1c09daf2f755f9ecc1
refs/heads/master
2023-07-15T02:46:21.372860
2023-07-09T15:30:27
2023-07-09T15:30:27
3,009,276
51
23
null
null
null
null
UTF-8
Python
false
false
227
py
#!/bin/python import math import os import random import re import sys if __name__ == '__main__': n = int(raw_input().strip()) if n % 2 == 1 or 6 <= n <= 20: print 'Weird' else: print 'Not Weird'
[ "noreply@github.com" ]
Wizmann.noreply@github.com
d30d7ea76bc25e7def545dca25db241f0c651a3c
709b1549033c9a547c67ee507fdc10b7e5d234ad
/test/test_resource_collection_action_template_resource.py
e6fe3b09eba5132fd33205a39130d8af53bbb6d0
[ "Apache-2.0" ]
permissive
cvent/octopus-deploy-api-client
d622417286b348c0be29678a86005a809c77c005
0e03e842e1beb29b132776aee077df570b88366a
refs/heads/master
2020-12-05T14:17:46.229979
2020-01-07T05:06:58
2020-01-07T05:06:58
232,135,963
0
1
null
null
null
null
UTF-8
Python
false
false
1,283
py
# coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a Generated by: https://github.com/swagger-api...
[ "d.jain@cvent.com" ]
d.jain@cvent.com
e0d0e152d95150ba290d5e68925025e487d606a8
5535f5d93c717d43423187f0a1960219b1cd92d7
/carla_multiprocess_two_unique.py
6245f1f18701715cae1ba2cb0f4a24962cefd3d6
[]
no_license
Gabesarch/CarlaMultiview
b41b611d878effaf8b724f6ed20f57e6fa48c829
79d3bce6519d71f57a12bffeb5bef6b449843b97
refs/heads/master
2022-12-17T14:34:17.792195
2020-09-24T21:02:18
2020-09-24T21:02:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
714
py
from subprocess import Popen, PIPE import shlex import time carla_sim = "../../CarlaUE4.sh -carla-server -windows -ResX=100 -ResY=100 -benchmark" carla_sim_args = shlex.split(carla_sim) cnt = 0 for i in range(26): for j in range(30): p1 = Popen(carla_sim_args, stdout=PIPE, stderr=PIPE) time.sleep(...
[ "shamitlal@yahoo.com" ]
shamitlal@yahoo.com
b7f98daa8bb4c3bf29f7e2821e9535ac0058a4e5
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/7Y2C8g3fXXyK2R9Bn_15.py
b9cf501bb62f4e7816d3f830e1d0c52dcad11c72
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
def keyword_cipher(key, message): k = '' for i in key: if i not in k: k+=i abc = 'abcdefghijklmnopqrstuvwxyz' for i in k: abc = abc.replace(i,'',1) new_abc = (k+abc)[:26] return ''.join(new_abc[ord(i)-97] if 0<=ord(i)-97<=26 else i for i in message)
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
12883dd8bbeee56e5f976d66aa243c0099bbeaef
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/1165/codes/1590_825.py
aa39666a05a7f7ec43d9a87ef06e3656208bc723
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
166
py
raio = float(input("insira o valor do raio: ")) from math import* area = pi * raio **2 volume = (4/3) * pi * raio**3 print(round(area, 3)) print(round(volume, 3))
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
21157625d16ab821e31f2a167b8991e72e0f496d
c3082eb2adc43b311dd3c9ff16fd3ed9df85f266
/python/examples/pytest/test_with_params.py
68791654993f87e6c0392c4fd78fbeed3420e4b5
[]
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
240
py
import pytest @pytest.mark.parametrize("name,email", [ ("Foo", "foo@email.com"), ("Bar", "bar@email.com"), ]) def test_cases(name, email): print(f"name={name} email={email}") assert email.lower().startswith(name.lower())
[ "gabor@szabgab.com" ]
gabor@szabgab.com
8090c52b98ae5093c036b946d4630f21d790c136
e82adedd55c4fa0eac7c69dca386ffa826555cb7
/branches/mps_minimal_entity/bbcwsgitools.py
b16e2f63dd7b49d8a5365ebbab084b3431df9cf9
[]
no_license
BGCX067/facilitate-svn-to-git
fd293a82bbeb8d8794237d70c6a37003273e8745
c943d17ec6d284c8788e5c36598168f7d850e289
refs/heads/master
2016-09-01T08:55:15.359367
2015-12-28T14:43:30
2015-12-28T14:43:30
48,875,477
0
0
null
null
null
null
UTF-8
Python
false
false
4,946
py
#!/usr/bin/python import cgitb cgitb.enable() import cgi import cjson import sys import os class Functional(object): """This class is a WSGI leaf that is designed to wrap functional code on the edge of a web application. This is specifically designed to allow integration of normal functions into co...
[ "you@example.com" ]
you@example.com
e62b9604a3b0f077d205562ce6a32bcb8f1d828b
8608d41727258f6bcc7770e41b8318dd6b52a6af
/msldap/network/socks.py
684026a318d411f9d99a1272033aeccce47f0396
[ "MIT" ]
permissive
RiccardoAncarani/msldap
2acc9d334ee220a9ef4c1d4b89125edb87e73f85
3fb194aff7ad55db18e4091e084836b1b28b3053
refs/heads/master
2022-11-15T14:46:08.264950
2020-07-03T21:25:11
2020-07-03T21:25:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,949
py
# # # # # # import enum import asyncio import ipaddress from msldap import logger from asysocks.client import SOCKSClient from asysocks.common.comms import SocksQueueComms from msldap.protocol.utils import calcualte_length class SocksProxyConnection: """ Generic asynchronous TCP socket class, nothing SMB relat...
[ "info@skelsec.com" ]
info@skelsec.com
e4df3ac9d5f7766a331bb4f281605f8456f9b712
6e5ef508452b6a162572b7609150867df25acc04
/nlpaug/util/audio/loader.py
953be3ec84c5884264eae14d8298001b1a718db6
[ "MIT" ]
permissive
atksh/nlpaug
c2b3001e6d20e839e87710cd857b0ba59cebe9c1
790a984d1998514022cfe791a9a0736f34982e13
refs/heads/master
2022-12-04T02:36:35.905533
2020-08-11T10:28:59
2020-08-11T10:28:59
286,706,255
0
0
MIT
2020-08-11T09:47:26
2020-08-11T09:47:25
null
UTF-8
Python
false
false
467
py
try: import librosa except ImportError: # No installation required if not using this function pass class AudioLoader: @staticmethod def load_audio(file_path): return librosa.load(file_path) @staticmethod def load_mel_spectrogram(file_path, n_mels=128, fmax=8000): audio, sa...
[ "makcedward@gmail.com" ]
makcedward@gmail.com
1c38b652f9a346e1225d89b42b80498351572a1f
7b1b4ed8bd4c887362b367625a833c28aa919dd8
/wpaudit/providers/aws/resources/rds/instances.py
0dd8f886b30d05e4a7e150ac0cc811adb6326389
[]
no_license
wperic/wpaudit
6bbd557c803ce9bceb764c1451daeb5e440a3d9c
ed69c1eabcf85e80ed8fe5397d2d369fd3ff35d8
refs/heads/main
2023-07-16T21:36:57.528548
2021-09-03T10:35:43
2021-09-03T10:35:43
402,716,870
0
0
null
null
null
null
UTF-8
Python
false
false
1,859
py
from wpaudit.providers.aws.facade.base import AWSFacade from wpaudit.providers.aws.resources.base import AWSResources class RDSInstances(AWSResources): def __init__(self, facade: AWSFacade, region: str, vpc: str): super().__init__(facade) self.region = region self.vpc = vpc async def ...
[ "90035639+wperic@users.noreply.github.com" ]
90035639+wperic@users.noreply.github.com
ef10e990e66f7202dfa16d148259699f3e3a63b2
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_304/ch47_2019_03_29_13_27_52_931974.py
12327bd68d19ca3e91bb874e1980ff4b28390331
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
mes=['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'] a=int(input('digite um numero de 1 a 12: ') i=0 while i<len(mes): if i+1==a: print(mes[i]) i+=1
[ "you@example.com" ]
you@example.com
51f56a67699d3b06448a46f2acdfbb37c8cd9678
27fd33abe12f48b0cfdafef7a624e4a96b311744
/stock_picking_complete/__openerp__.py
85261923af02ffd84028dd1e8ee1d29f0816abd7
[]
no_license
mgielissen/julius-openobject-addons
7b9966ed2894ce82b5fb396bca1bd9984f263737
3e35f7ba7246c54e5a5b31921b28aa5f1ab24999
refs/heads/master
2021-01-16T20:41:49.131160
2016-03-01T12:31:05
2016-03-01T12:31:05
52,984,093
1
0
null
2016-03-02T17:53:42
2016-03-02T17:53:42
null
UTF-8
Python
false
false
1,539
py
# -*- coding: utf-8 -*- ################################################################################# # # OpenERP, Open Source Management Solution # Copyright (C) 2012 Julius Network Solutions (<http://www.julius.fr/>) contact@julius.fr # # This program is free software: you can redistribute it and/or modi...
[ "mathieu@julius.fr" ]
mathieu@julius.fr
e6298e9c3807f76dcf32d59f360a1259683fbf96
3f4d51e9148baf6959edd24006fe1547803fbc5c
/practice/tensorflow_web/low_level_APIs/introduction_4.py
647e924a8d3e5c6eb1737568f1d1165bfa788be0
[]
no_license
hdyssting/Repo_machine_learning
ed465d06245d1de74ce04b32d9e792e177cdcb85
63579453998f7c9ccfb4533bcfe63523a3294612
refs/heads/master
2020-07-27T08:12:05.986323
2019-07-26T22:08:06
2019-07-26T22:08:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,275
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf # Here we train a model: y = A * x + b # Define input and output data x = tf.constant([[1], [2], [3], [4]], dtype=tf.float32) y_true = tf.constant([[0], [-1], [-2], [-3]], dtype=tf.flo...
[ "31248391+whoiszyc@users.noreply.github.com" ]
31248391+whoiszyc@users.noreply.github.com
a4585f19833881828646584ba7f308f89e8aa613
471ea669e21abdb4e4915610b4b5eb43ea3cffe9
/2017校招真题编程题汇总/60.统计字符.py
2c66ef0ebdc80259b20f78fb592432114788d294
[]
no_license
JiahuaLink/nowcoder-leetcode
26aed099e215cfc1d8e8afffc62fafa26b26b06f
0155fc33511cbe892f58550d561d3aa3efcd56b9
refs/heads/master
2023-07-09T03:05:31.227720
2021-08-03T06:50:36
2021-08-03T06:50:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
211
py
# 使用字典存放并累加字符个数 s = raw_input() d = {} for i in s: if i in d: d[i] += 1 else: d[i] = 1 if d[i] == 3 and i.isalpha(): print(i) break
[ "noreply@github.com" ]
JiahuaLink.noreply@github.com
29d543c4d1f86415faa4206861abc3ee0db8822e
49fa43ae11cd06f68efb65a9f59add168b205f29
/python/298_binary-tree-longest-consecutive-sequence/binaryTreeLongestConsecutiveSequence.py
312437b6d270bd6665c5a5cccf9c45ed2ec1aeb4
[]
no_license
kfrancischen/leetcode
634510672df826a2e2c3d7cf0b2d00f7fc003973
08500c39e14f3bf140db82a3dd2df4ca18705845
refs/heads/master
2021-01-23T13:09:02.410336
2019-04-17T06:01:28
2019-04-17T06:01:28
56,357,131
2
1
null
null
null
null
UTF-8
Python
false
false
1,019
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 longestConsecutive(self, root): """ :type root: TreeNode :rtype: int """ if n...
[ "kfrancischen@gmail.com" ]
kfrancischen@gmail.com
8a7b2037c534849106d5865e39afd1335381cf0d
6679ab23bf4f0100eb07cf13be21a8c1b1ae4c1f
/이코테 (동빈북)/Part3/19_Samsung/47_청소년 상어.py
a7a95884b34dd639542953e0235a32b72f0ac882
[]
no_license
gimquokka/problem-solving
1c77e0ad1828fa93ebba360dcf774e38e157d7b6
f3c661241d3e41adee330d19db3a66e20d23cf50
refs/heads/master
2023-06-28T10:19:07.230366
2021-07-29T11:29:26
2021-07-29T11:29:26
365,461,737
4
0
null
null
null
null
UTF-8
Python
false
false
2,432
py
import copy arr = [[None]*4 for i in range(4)] for i in range(4): data = list(map(int, input().split())) for j in range(4): arr[i][j] = [data[j*2], data[j*2+1]-1] ''' # Input Check for i in range(4): print(arr[i]) ''' # Global Vars result = 0 dx = [-1, -1, 0, 1, 1, 1, 0, -1] dy = [0, -1, -1, -1,...
[ "gimquokka@gmail.com" ]
gimquokka@gmail.com
6ecf37fa9e443388a6eae805bd21d43290ac4e28
a72cf04d363f5ff0d10bbf2d96b8310a76e75df7
/FormMaker/asgi.py
62ae54648436b0b23ffbdcef3a2419d5f4bf6d31
[]
no_license
boyuan12/FormMaker
7b8fcb9ac162a70ad240b5a4a3213e7f6b612077
4a4c4da917f05386c95cbbcec5fb12332d505e5d
refs/heads/master
2023-01-24T07:27:51.977544
2020-11-17T23:37:21
2020-11-17T23:37:21
302,199,215
1
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" ASGI config for FormMaker project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
[ "boyuanliu6@yahoo.com" ]
boyuanliu6@yahoo.com
c17302bc68e9d904c7514926a86644a31d558ebe
b805ded84cff8878ae70d772e50cface0c3aa45c
/spider/codes/46_hupu_news.py
5b69c78f78dac243cd7ed03fec0d118ff593be66
[]
no_license
CNZedChou/python-web-crawl-learning
74f014fe95797d3f534e373de8451d2dfcc0600c
5edf8f53e1bb9df3661ec007bb4d7f0ba04ab013
refs/heads/master
2022-11-10T08:26:53.275547
2020-07-06T02:33:03
2020-07-06T02:33:03
275,563,035
0
0
null
null
null
null
UTF-8
Python
false
false
2,714
py
# !/usr/bin/python3 # -*- coding: utf-8 -*- """ @Author : Zed @Version : V1.0.0 ------------------------------------ @File : 46_hupu_news.py @Description : @CreateTime : 2020-6-28 11:35 ------------------------------------ @ModifyTime : """ import hashlib import requests from...
[ "1021844583@qq.com" ]
1021844583@qq.com
f3fef5b7372538033b100594aaea5d49cea3f29d
790e797fecb4d57d7af37db512f44b47cd956483
/migrations/versions/2019_06_10_1f4e87f7575c_rename_in_options.py
8e9a669954f9d691c0ada70ef83871ade11ff6fa
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RuslanBitcash/ultimate-poll-bot
fc4d5d9a3e8c5bb0200b7d935e2e049f34d9ee10
33bc71b56f79453359043bd0e778cd153d3a83a3
refs/heads/master
2021-02-10T07:46:39.453842
2020-02-21T11:51:59
2020-02-21T11:51:59
244,362,504
1
0
MIT
2020-03-02T12:12:34
2020-03-02T12:12:33
null
UTF-8
Python
false
false
483
py
"""Rename in_options Revision ID: 1f4e87f7575c Revises: 89a2912d10e3 Create Date: 2019-06-10 15:07:06.724336 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '1f4e87f7575c' down_revision = '89a2912d10e3' branch_labels = None depends_on = None def upgrade(): ...
[ "arne@twobeer.de" ]
arne@twobeer.de
50634c1409d24d735eadada6b40bd6ae02c69b71
292d23019c18d0b724aed88f04a0f20b5b616bb9
/Python1/homework/Utility.py
e9d800c5ac9402e649cdb76640b7be1c15a11112
[]
no_license
RedAnanas/macbendi
6f1f6fd41ed1fe8b71408dffa0b964464bd00aa8
8d5aa39d9389937f0e0c3f7a7d6532537f33cda8
refs/heads/master
2023-06-11T18:57:31.061009
2021-06-29T15:04:56
2021-06-29T15:04:56
380,759,110
0
0
null
null
null
null
UTF-8
Python
false
false
1,259
py
#! /usr/bin/env python # -*- coding: utf-8 -*- import xlrd def read_excel(file, index=0): # 定义一个读取excel文件的的方法,返回获取到的表格sheet对象 data = xlrd.open_workbook(file) sheet = data.sheets()[index] return sheet def get_params(parameters): # 定义一个解析字符串参数到python字典对象的方法 lines = parameters.s...
[ "1315157388@qq.com" ]
1315157388@qq.com
6cc57b8d5c0f27a03c0f778b5a285f0332622eb0
316c473d020f514ae81b7485b10f6556cf914fc0
/re/maoyan2.py
ff901c059cbed5c9a5cf403d2b9c3e3dee77bce5
[ "Apache-2.0" ]
permissive
silianpan/seal-spider-demo
ca96b12d4b6fff8fe57f8e7822b7c0eb616fc7f3
7bdb77465a10a146c4cea8ad5d9ac589c16edd53
refs/heads/master
2023-06-20T03:47:04.572721
2023-05-24T06:27:13
2023-05-24T06:27:13
189,963,452
1
1
Apache-2.0
2022-12-08T03:24:54
2019-06-03T08:15:56
Python
UTF-8
Python
false
false
856
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019-06-23 16:40 # @Author : liupan # @Site : # @File : maoyan2.py.py # @Software: PyCharm import requests from lxml import etree res = requests.get('https://maoyan.com/board') ret = etree.HTML(res.text) imgs = ret.xpath('//a[@class="image-link"]//img...
[ "1206284818@qq.com" ]
1206284818@qq.com
df26e3a527daed3668670d691e0c023ac0614737
16a67b62df3aa1de00476884552285c05b803f1d
/InspectionTool/compare_languages.py
a745b3579e681c7f50a054273393edc36df36411
[ "Apache-2.0" ]
permissive
cltl/DutchDescriptions
88a642b59634140dfa3aaf9d11fab811017c7f75
6fb4d8234a926b19befd997730a2da6b11d7b628
refs/heads/master
2020-06-24T11:32:52.327833
2017-08-30T12:07:45
2017-08-30T12:07:45
96,933,991
2
0
null
null
null
null
UTF-8
Python
false
false
6,420
py
""" Flask website to inspect image descriptions in three different languages. * Use `python compare_languages.py` to run the tool * Open http://127.0.0.1:5001/ in a web browser. """ # Flask-related imports: from flask import Flask, request, render_template # Other imports go here: from collections import Counter, de...
[ "emielonline@gmail.com" ]
emielonline@gmail.com
308bbcabe1c38f05741b2f026d0d18e90d6835a7
1284718203be50b23dcd1f6159746cfa42a04163
/python_visual_mpc/visual_mpc_core/envs/sawyer_robot/visual_mpc_rospkg/src/utils/cam_tf_tree_broadcaster.py
764e93c0376fd1d632daeaf7de9d02c2a576b3fd
[]
no_license
febert/robustness_via_retrying
8fe4106d7705228ff339f9643518a80c0a243d36
1def282dc22f24b72c51ff1ef9ea1a7a83291369
refs/heads/master
2020-03-31T19:33:39.664525
2018-11-07T21:52:56
2018-11-07T21:52:56
152,502,702
17
2
null
null
null
null
UTF-8
Python
false
false
720
py
#!/usr/bin/env python import roslib #roslib.load_manifest('learning_tf') import rospy import tf if __name__ == '__main__': rospy.init_node('fixed_tf_broadcaster') br = tf.TransformBroadcaster() rate = rospy.Rate(10.0) while not rospy.is_shutdown(): br.sendTransform((0.0, 0.0, 0.0), ...
[ "sdasari@berkeley.edu" ]
sdasari@berkeley.edu
02e722dcae1708e624593aa126c5a43392177ec7
c3082eb2adc43b311dd3c9ff16fd3ed9df85f266
/python/examples/advanced/no_context_fh.py
799614294ccb166eb22e9b19b57100ad424b5b0e
[]
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
441
py
import sys import re def do_something(filename): fh = open(filename) while True: line = fh.readline() if line is None: break line = line.rstrip("\n") if re.search(r'\A\s*\Z', line): return print(line) fh.close() def main(): if len(sys....
[ "gabor@szabgab.com" ]
gabor@szabgab.com
2b0165b5592f61de098ae5a61f04f64a131532e5
2e0697fe92c0f7f0386762dd21ba7ab7ec0980d8
/LaTeX/src/python/queuestack3.py
7ffedc34d2ecbbfa8a110801d9f3d94b7d96a818
[ "MIT" ]
permissive
yogeshhk/TeachingDataScience
b5a6383ecca51dee97ae8c9ea58660d34d6eea78
e2b7739543094f1c1db3ac2f46a9f3f8e2bd7eec
refs/heads/master
2023-09-01T02:13:15.402306
2023-08-21T11:41:14
2023-08-21T11:41:14
181,239,962
93
55
MIT
2022-08-02T11:22:42
2019-04-13T23:43:45
Jupyter Notebook
UTF-8
Python
false
false
315
py
class StackQueue: def __init__(self): self.s1 = Stack() self.s2 = Stack() def enqueue(self, item): self.s1.push(item) def dequeue(self): if len(self.s2) == 0: while len(self.s1) > 0: self.s2.push(self.s1.pop()) return self.s2.pop()
[ "yogeshkulkarni@yahoo.com" ]
yogeshkulkarni@yahoo.com
2dda17f5c3b219f45ab8e70b14548ad360694b70
45ba55b4fbdaf1657fde92beaeba4f173265afcd
/tests/types/resolving/test_forward_references.py
43587e1422998a7e4bd6139f2ec19fb98c048925
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
strawberry-graphql/strawberry
af96afd4edd1788c59e150597a12501fbc7bf444
6d86d1c08c1244e00535840d9d87925431bc6a1c
refs/heads/main
2023-08-30T03:34:12.929874
2023-08-24T12:01:09
2023-08-24T12:01:09
162,690,887
3,408
529
MIT
2023-09-14T21:49:44
2018-12-21T08:56:55
Python
UTF-8
Python
false
false
837
py
import pytest import strawberry from strawberry.annotation import StrawberryAnnotation def test_forward_reference(): global ForwardClass annotation = StrawberryAnnotation("ForwardClass", namespace=globals()) @strawberry.type class ForwardClass: backward: bool resolved = annotation.reso...
[ "noreply@github.com" ]
strawberry-graphql.noreply@github.com
48b489d525b02987dbf1aa35f07c644a3a612e97
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/googlecloudsdk/api_lib/pubsub/lite_topics.py
290c0cb7b06157f15abd5774184850d5b6cc4914
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
3,467
py
# -*- coding: utf-8 -*- # # Copyright 2021 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 requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
6b45f9519b6beef227cc833256cf6885576857c2
bb86c598d82e0fa095cbc045ddfc4ba0f494b5d3
/backend/mobile_app_test_dev_1912/wsgi.py
90b76bc0993f402be2bf766c3cf4b1950fe7c4d7
[]
no_license
crowdbotics-apps/mobile-app-test-dev-1912
7971fc5f501301308b5cf53102c9a59b9a6c3001
65553eb7d579b75a7465a9822fdf2867cddb65c4
refs/heads/master
2022-04-12T01:29:31.344470
2020-03-10T19:25:26
2020-03-10T19:25:26
246,388,748
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
""" WSGI config for mobile_app_test_dev_1912 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefa...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
d149f90eca370f9d091096c02b1a2fd69feea8c3
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/2304140b7e1d481996ce4e8bb488fba8.py
758f8f4bb3c9681bf866142934fef06fe7056f33
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
329
py
# # Skeleton file for the Python "Bob" exercise. # def hey(what): if what.isupper(): return"Whoa, chill out!" elif what.endswith("?") or what.endswith(" "): return"Sure." elif what == "" or what.isspace(): return"Fine. Be that way!" else: return"Whatever....
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
f83d02f38cc4356988f710fa99718b6552b0a26c
3d4a3bebf614086cce8a22510d8c27c0bea52f92
/Ori/plotting/area1_1.py
f709c4f742836ade0d6ddb613042353d87ba17cd
[]
no_license
caelus95/MantaOcean
dc031518051daac9b718b4c7664a057a956475f8
dbc5774f6ecd949a8d8f58c66d0101f816b90dc9
refs/heads/master
2023-06-18T22:00:26.353952
2021-06-29T13:25:48
2021-06-29T13:25:48
365,965,350
0
0
null
null
null
null
UTF-8
Python
false
false
1,452
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Oct 19 11:47:29 2020 @author: shamu """ from scipy.stats import sem import numpy as np import pandas as pd import matplotlib.pyplot as plt # Import Data df = pd.read_csv("https://github.com/selva86/datasets/raw/master/economics.csv") # Prepare Data x =...
[ "caelus9536@gmail.com" ]
caelus9536@gmail.com
c2d89e0baf9f49ee4ede594890df5ed796ce7dba
c42142003122bc8172b00ccee0e733417d06fde0
/webstore/order/views.py
b5f5f9c41226578ac6863847971e69d856a4d4fc
[]
no_license
sloniewski/django_webstore
53fbe52b7284220a106b7d96abcc06308e1d1b23
76b46396b6915e21d65e1ad0fbc8786d6f15b122
refs/heads/master
2021-10-10T16:32:09.942377
2019-01-13T22:37:44
2019-01-13T22:37:44
115,758,610
1
3
null
null
null
null
UTF-8
Python
false
false
3,044
py
from django.http import Http404 from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import redirect, get_object_or_404, reverse from django.views.generic import DetailView, FormView, ListView from webstore.cart.models import Cart from webstore.delivery.forms import ChooseDeliveryForm from w...
[ "sloniewski.maciej@gmail.com" ]
sloniewski.maciej@gmail.com
3f8599a7b36e4d08615e28e92762c30c33563889
e262e64415335060868e9f7f73ab8701e3be2f7b
/.history/yaml_demo_20201111171251.py
3b6ee20784d144662026ebe41ff04cbf023ccc56
[]
no_license
Allison001/developer_test
6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63
b8e04b4b248b0c10a35e93128a5323165990052c
refs/heads/master
2023-06-18T08:46:40.202383
2021-07-23T03:31:54
2021-07-23T03:31:54
322,807,303
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
import yaml # print(yaml.load(""" # - Hesperiidae # - Papilionidae # - Apatelodidae # - Epiplemidae # """,Loader=yaml.FullLoader)) # print(yaml.load(""" # a: 1 # b: 2 # """,Loader=yaml.FullLoader)) print(yaml.load("demo.yaml"),Lo)
[ "zhangyingxbba@gmail.com" ]
zhangyingxbba@gmail.com
46c4bc803400f42d5a21d5ff528b1397b30b871a
39cc92a2ca5932707f4d0f58af35339d78a4a5b5
/python-stack/django/django_orm/login_registration/login_registration/login/models.py
64b1661eec09e638fd47870f4434f96fd1daf114
[]
no_license
karmel-yacoub/python
07a159a29fac954129adc2bc097010ee1fa35689
5a0fd0a06abfaf707ee1dbead262a67f0540ba19
refs/heads/master
2023-05-02T19:58:35.930849
2021-05-30T13:00:13
2021-05-30T13:00:13
364,500,597
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
from django.db import models # Create your models here. class Users(models.Model): first_name = models.CharField(max_length=255, default='name', null = False) # we added a defult and null just becouse i chande in model) last_name= models.CharField(max_length=255) email = models.CharField(max_length=255, de...
[ "johndoe@example.com" ]
johndoe@example.com
b72fdd90427a8a97a43da034d6c3826b9bc89945
6ae778a837f9f261fd4d21452518dac0dae0d345
/setup.py
b6c2dd8001675bf35db4ba44d581dd0e6e084026
[ "BSD-2-Clause" ]
permissive
OpenTreeOfLife/python-opentree
9f3211b75a7a980dcd2f8039b06c9cc0292f7028
9ec817a1a4117bd960ff072bb9f771f203dd338d
refs/heads/main
2023-08-16T18:02:35.882949
2023-08-15T18:28:18
2023-08-15T18:28:18
227,424,690
3
5
BSD-2-Clause
2023-08-15T18:28:20
2019-12-11T17:38:19
Python
UTF-8
Python
false
false
3,604
py
#!/usr/bin/env python import sys import os # setup.py largely based on # http://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/ # Also see Jeet Sukumaran's DendroPy ############################################################################### # setuptools/distutils/etc. import and configuration...
[ "mtholder@gmail.com" ]
mtholder@gmail.com
099c208709b669e669e1ebfef3990ce244ea9f01
39cd9aa81927c20d85d1b65e55523455626ee902
/python_work/chapter_8/functions_1.py
3ddabd2feebdaa7f14cab3312652df490472e178
[]
no_license
SMS-NED16/crash-course-python
acf363562a813f7deb36614dc935be4ed2d07fee
e6e6cb787d208f51f114f71331c43af1ddc1e4c2
refs/heads/master
2020-03-09T02:29:35.241621
2018-04-21T16:09:16
2018-04-21T16:09:16
128,541,065
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
#first function def greet_user(): """Display a simple greeting""" print("Hello!") #passing information to a funciton def greet_user_1(username): """Display a simple greeting with the username""" print("Hello, " + username.title() + "!") #call greet_user greet_user() #call greet_user_1 greet_user_1("Saad") greet...
[ "saadmsiddiqui96@gmail.com" ]
saadmsiddiqui96@gmail.com
5a852d757fd411cf547a705132c2f1d429e80acc
e62b1e748582584a5c2a05fff970fe09e72752b4
/app/migrations/0065_auto_20180208_1919.py
bf6c6ee5849602ab11b6a203ed0420018d565a50
[]
no_license
wlodekf/jpk
5957b515ecbcded9b4f27d6a0785ee89e3a0d585
1c200350f57469e890a124d07f741d836d9a0833
refs/heads/master
2023-07-10T20:15:11.111276
2021-08-11T12:21:14
2021-08-11T12:21:14
394,978,461
1
0
null
null
null
null
UTF-8
Python
false
false
675
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.13.dev20170130170755 on 2018-02-08 19:19 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0064_auto_20170311_1251'), ] operations = [ migrat...
[ "wlodekf@softprodukt.com.pl" ]
wlodekf@softprodukt.com.pl
3a3ba79263fbf9c00dc92bccb368af3421035d17
dfaa71f8064d3d0773941cf14ab86ff57ff67284
/part35/mywebsite/urls.py
7e1cb201c6c84ef70c6eb6f4a7ca680043789783
[ "Apache-2.0" ]
permissive
yllew36/WellyGI
e94c5000ff3a7f2fd7316d22ad166fbf7916ea23
7d53fac4c81bb994f61b22761e5ac7e48994ade4
refs/heads/master
2020-09-05T15:49:37.386078
2019-11-15T08:16:59
2019-11-15T08:16:59
220,148,061
1
0
null
null
null
null
UTF-8
Python
false
false
235
py
from django.contrib import admin from django.urls import path, include from . import views urlpatterns = [ path('blog/', include(('blog.urls', 'blog'))), path('admin/', admin.site.urls), path('',views.index, name='index') ]
[ "yllew36@gmail.com" ]
yllew36@gmail.com
14760cda4ec119d52cbd37ee8fae15889f6e8dfa
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/detection/SOLOv1/mmcv/docs/conf.py
2f50112699746ab402a026f3392eb4f5e96d2aae
[ "LicenseRef-scancode-proprietary-license", "BSD-2-Clause", "Apache-2.0", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
6,106
py
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the BSD 3-Clause License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law or agreed to in ...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
f4346136994ed9b2eedd0b91f923f9505773c770
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/histogram/error_y/_traceref.py
793b02b71753b7fb0488fd0bec152c8a9286b920
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
469
py
import _plotly_utils.basevalidators class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): def __init__( self, plotly_name='traceref', parent_name='histogram.error_y', **kwargs ): super(TracerefValidator, self).__init__( plotly_name=plotly_...
[ "adam.kulidjian@gmail.com" ]
adam.kulidjian@gmail.com
43e8d2990c395bd68e5b56a98a8306c7e3f8afae
30569618ec13465ee323f27797933ba85035711a
/test/test_user_create_request.py
948ff4f306117300f382dab5f1980ba1fe56a943
[ "MIT" ]
permissive
ike709/tgs4-api-pyclient
c0fdd7e648fd4fb77f0caf3253a7e1daafc0477a
97918cfe614cc4ef06ef2485efff163417a8cd44
refs/heads/main
2023-03-14T08:11:06.146596
2021-03-01T18:21:33
2021-03-01T18:21:33
336,353,718
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
# coding: utf-8 """ TGS API A production scale tool for BYOND server management # noqa: E501 OpenAPI spec version: 9.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.model...
[ "sparebytes@protonmail.com" ]
sparebytes@protonmail.com
be7b2c84b95867b5c654f916edb1862739284084
b54c39099dfbd0437b74e6b49684829306f817c6
/i_util/input_thread.py
5c6b8060b927cb42c123ee5c6689cf56ab2fa259
[]
no_license
xtuyaowu/gsxt_crawler
e13dac628e7f960b2b71cd2f316a0f78f59ea576
0cc6a2c64455196bd3d643ca5a0236af529c9718
refs/heads/master
2020-03-09T02:13:59.732404
2017-10-26T12:45:02
2017-10-26T12:45:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,757
py
# coding=utf-8 import sys import threading import time from beanstalkc import SocketError from i_util.logs import LogHandler from i_util.pybeanstalk import PyBeanstalk sys.path.append('..') class InputThread(threading.Thread): def __init__(self, beanstalk_conf, log=None, process_pool=None): threading.T...
[ "youfeng@haizhi.com" ]
youfeng@haizhi.com
f596a70e856d933ea6a4f0e57ec3c2062aada5ab
b99ef49bb3cb89751bd5958da504cc8915163cbc
/python/main_load_one_session.py
4fc4a9c513e3996e78606e98e9d90769052aa35a
[]
no_license
SSkromne/PSBImaging
09fe8a5b34193dc86ea87a6e72da483f28e2d060
32781d52b30f7a1a141e2e7dcf969ef79f447111
refs/heads/main
2023-08-30T15:42:38.164027
2021-11-03T16:26:08
2021-11-03T16:26:08
424,296,199
0
0
null
2021-11-03T16:17:25
2021-11-03T16:17:24
null
UTF-8
Python
false
false
1,815
py
import sys,os import neuroseries as nts import numpy as np import pandas as pd import neuroseries as nts from pylab import * # from wrappers import * # from functions import * import sys import scipy.signal from pycircstat.descriptive import mean as circmean from matplotlib.colors import hsv_to_rgb from wrappers import...
[ "guillaume.viejo@gmail.com" ]
guillaume.viejo@gmail.com
f5ff8794a9d938822c3ae41b150d6f5d3199f5e5
90d66609acc2a5eb64724ab84ac224bd0f17d633
/PortGui.py
3b6414ae7e1b412bdd45e03b8c5936e454c5d16c
[]
no_license
n3twk/Gui-portscanner
93cc4d3b04f3b4ebbea7153f38b96102a2e1b2af
f12f229abdeb57465a6013eadaa7a6d2e0550496
refs/heads/master
2020-03-15T13:30:13.751096
2018-05-04T17:40:29
2018-05-04T17:40:29
132,168,397
0
0
null
null
null
null
UTF-8
Python
false
false
1,729
py
#!/usr/bin/env python from easygui import * import socket import threading import Queue choices = ["Host/IP", "Start Port", "End Port"] Answers = multenterbox("Please Enter The Required Fields", "Port Scanner", choices) ip,startport,endport = Answers #ip = "127.0.0.1" ports = range(int(startport), int(endport)) pri...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
a9753b29d5adc10212fa0b5ea66d9b5080cc2675
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2306/48102/267720.py
316e49fa544ecbc3315a2c95f420dc21269d4032
[]
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
1,754
py
class Node(object): def __init__(self, ele: int, f=None, l_n=None, r_n=None): self.element = ele self.fa = f self.left = l_n self.right = r_n def create_tree(curr: Node, cmd_ls: list): def search(curr_n: Node, cmd: list): nonlocal temp_n if not curr_n: ...
[ "1069583789@qq.com" ]
1069583789@qq.com
5b1f1733324236b8d177dd4c602dd91af1d2290d
2d5648035b8bd32b4a6ded311e48975e5ea100d4
/runs/snort/10KB/src8-tgt1/ftp-par-ftp-iter00500.cfg.py
f3846ebda553286408458d4c3ebabf59d2a1d82a
[ "MIT" ]
permissive
Largio/broeval
3975e54a1eaead6686c53e5e99250a00becbe1e0
89e831d07f066100afdd1a5b220f9f08f1c10b3d
refs/heads/master
2021-05-08T08:54:06.498264
2017-11-10T17:09:02
2017-11-10T17:09:02
92,508,227
0
0
null
null
null
null
UTF-8
Python
false
false
746
py
# Write results to this file OUTFILE = 'runs/snort/10KB/src8-tgt1/ftp-par-ftp-iter00500.result.csv' # Source computers for the request SOURCE = ['10.0.0.11', '10.0.0.12', '10.0.0.13', '10.0.0.14', '10.0.0.31', '10.0.0.32', '10.0.0.33', '10.0.0.34'] # Target machines for the requests (aka server) TARGET = ['10.0.0.2'...
[ "larswiete@googlemail.com" ]
larswiete@googlemail.com
6599b4fb19c4631504d245d137776872328424fd
ab5684c8bc6de5c0c8d98b3a2a86b741d2e0e7d8
/execicios/basico/aula14.py
6176c7a919842af77c47193e9c653c30f684e96d
[ "MIT" ]
permissive
dilsonm/Udemy
7ff63cc78200020e843850947fcb1b70630ba101
9b504968b91f5a2fd32101f87cf59ace063d52b8
refs/heads/master
2022-10-10T06:09:23.128561
2020-06-11T17:25:33
2020-06-11T17:25:33
267,133,899
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
''' Jogo palavra secreta ''' palavra = 'brasileiro' pcerta = '' contador = 0 while True: letra = input('Digite uma letra: ') if len(letra) != 1: print('Não vale, voce digitou mais que um caracater') secreto = '' for c in palavra: if letra in c: secreto += c else: ...
[ "dilson.mascarenhas@gmail.com" ]
dilson.mascarenhas@gmail.com
bfe472b2dec5a45f89742ebf62da1ff7bfca39fa
a00d1c778ac0682a338ddb9fb296065662b6930d
/examples/dump.py
481c9e207c0edbb006cc99b83d337116330b5561
[ "Apache-2.0" ]
permissive
dtmilano/AndroidViewClient
1dfcd24d48e788bc5abcf262978bd82693d9ac26
0fd25a52aad2e3297100ddc70b2329e32951ad58
refs/heads/master
2023-08-31T15:15:26.430712
2023-08-20T03:11:41
2023-08-20T03:11:41
3,332,415
1,369
331
Apache-2.0
2020-12-15T05:07:06
2012-02-02T06:04:40
Python
UTF-8
Python
false
false
166
py
#! /usr/bin/env python print ''' Notice: ------- 'dump.py' was moved to the 'tools' directory and renamed 'dump'. A simpler example is now in 'dump-simple.py'. '''
[ "dtmilano@gmail.com" ]
dtmilano@gmail.com
12967ef6f4e191786b531c4b2507e50ec4313b61
b643abbcfb5dc46a2d311f179f740cbe44f6a922
/tasks/views.py
2cd10e743bfa78a44a0f6dcca54b0baec3876933
[]
no_license
safwanvk/productivity
e7126d2ce77649e80ada365ab4616baa91b289ec
141598632da0acd6c47ff34446ccbef9f7b980ac
refs/heads/main
2023-03-10T19:06:57.589215
2021-03-01T14:41:24
2021-03-01T14:41:24
342,141,156
0
0
null
null
null
null
UTF-8
Python
false
false
2,983
py
from django.shortcuts import render # Create your views here. # ViewSets define the view behavior. from rest_framework import viewsets, generics from rest_framework.generics import get_object_or_404 from rest_framework.response import Response from datetime import datetime, timedelta from .models import Task # Empl...
[ "safwanvalakundil@gmail.com" ]
safwanvalakundil@gmail.com
e53812bf3a8219df8121d1b2283de36bea417de7
1b981e0a5ec6f2caaaf607cef997e10139369ba5
/main/migrations/0009_auto_20200826_1600.py
4d803904ca51816d388760be5b580f1d9fd0acaa
[]
no_license
EarthmanAman/School-Management-System
c40a4bbf162e0fe029a01f4dbb848cd927fbb3bd
12aa739eb09c8d2ff73ad776ca85b55bbe3e9a3a
refs/heads/master
2022-12-10T01:52:24.250796
2020-08-29T20:39:40
2020-08-29T20:39:40
266,368,310
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
# Generated by Django 3.0.6 on 2020-08-26 16:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0008_auto_20200814_1121'), ] operations = [ migrations.AlterField( model_name='pupil', name='middle_name', ...
[ "hashimathman@gmail.com" ]
hashimathman@gmail.com
6ee91338ecb11cbb9fe329463ce3f35674e33999
1ab5c39319564d20babedfb823307829cf489695
/projectroles/migrations/0015_fix_appsetting_constraint.py
1362e6209a5e55274ca26ea37380796e2ee5ac68
[ "MIT" ]
permissive
bihealth/sodar-core
1c64368544d20b0934688a81d9cff7b27135a5ac
6156b6409af01828fca506796a736b4f4669f33e
refs/heads/main
2023-08-16T22:52:43.749729
2023-06-01T12:15:30
2023-06-01T12:15:30
165,220,058
7
0
MIT
2021-05-03T13:11:57
2019-01-11T09:50:04
Python
UTF-8
Python
false
false
609
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-05-14 15:33 from __future__ import unicode_literals from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('djangoplugins', '0001_initial'), migrations.swappable_depe...
[ "mikko.nieminen@bihealth.de" ]
mikko.nieminen@bihealth.de
a52f30737da151e0bb8e64c5f6b7423703da80d0
8d2abf7ad4c3f35801f6bfdb38a4d6cddf1e0fbd
/0411/test1.py
aa9ee192b6be441829dbd3a1f53707909e7fe96e
[]
no_license
erroren/Python_A
e9dfba73fc09160e4d3b8ea994183e2735f9d36e
47901316902705e513ea7d6e016f98f1cd2d3e85
refs/heads/master
2020-05-04T14:27:29.118843
2019-06-13T08:50:03
2019-06-13T08:50:03
179,197,541
1
0
null
null
null
null
UTF-8
Python
false
false
314
py
from socket import * if __name__ == '__main__': server = socket(AF_INET, SOCK_STREAM) server.bind(("192.168.12.155", 8888)) server.listen() users = [] while True: client, addr = server.accept() print(client.name) users.append(addr) print("当前用户", users)
[ "hcy@qq.com" ]
hcy@qq.com
05e997744a3bf8c2ca7111a3f0d6e2dc23750347
bc5666da5490bccad53d319543003ea65ccb559b
/tools/paste.py
4c9437718c044aeeb2bcde9d4de03d4e940d60d0
[]
no_license
zhangjunyi1225054736/ACDT
7c53bb62f86374489880c562ae8e8e7d733f90ca
066f589b9930965952d10bfd79857277c12bca0b
refs/heads/master
2020-06-03T20:18:03.981778
2019-08-24T09:41:03
2019-08-24T09:41:03
191,716,691
3
2
null
null
null
null
UTF-8
Python
false
false
2,251
py
#coding=utf-8 from xml.dom import minidom,Node import cv2 import string import random import numpy as np import matplotlib.pyplot as plt from PIL import Image,ImageDraw import os ''' Created by Junyi Zhang 2019/4/29 This file is for filtering the RGB images ''' res='/home/zhangdongyu/object-detection/detectron/dat...
[ "1225054736@qq.com" ]
1225054736@qq.com
e446072f3e482089480ea08a038e6aa3416b179e
5a42f9119431a962cc0154ea966c8cd320788320
/chapter23/thread2.py
2932e070997eae092de4f65025ddc127c4aa4ff2
[]
no_license
hyperaeon/pythonBibile
3ef08e6531019500af9a3b81a7a8a5a9e913e2c8
52975d8ba60de9f0d75e1b59565ea891f9d33db4
refs/heads/master
2021-01-21T05:21:23.347265
2017-04-23T03:04:01
2017-04-23T03:04:01
83,177,522
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
__author__ = 'hzliyong' import threading def run(x, y): for i in range(x, y): print(i) t1 = threading.Thread(target = run, args = (15, 20)) t1.start() t2 = threading.Thread(target = run, args = (7, 11)) t2.start()
[ "hzliyong@corp.netease.com" ]
hzliyong@corp.netease.com
d2a8aba6e3580bdee3543c33fed3ec8efe4e93e5
b38c93bd0d01ae269bfa03ca1aef49531dc9f378
/drf_attachment_upload/models.py
9054ab8b1d0ac7cf43249e3f278f43afed6a9d71
[]
no_license
elfgzp/django_chunked_upload_demo
8e4c476013704c4cbb7e9ad29d2eff37ddc2c4cf
e1a0e063d89bfa5c7253b61135be1194b20a3c59
refs/heads/master
2020-04-14T20:17:57.329475
2019-01-07T06:42:22
2019-01-07T06:42:22
164,088,620
1
0
null
null
null
null
UTF-8
Python
false
false
3,766
py
# -*- coding: utf-8 -*- __author__ = 'gzp' import os from hashlib import md5 from django.core.files.base import ContentFile from django.db import models, transaction from django.utils import timezone from django import conf from .settings import ( UPLOAD_PATH, STORAGE ) from .exceptions import CompletedFi...
[ "741424975@qq.com" ]
741424975@qq.com
317ac647819c2c637d07546080074adc2d07645c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03345/s427590588.py
6172ab5b1a514b54558f90d9c8b0f18f5f7e4369
[]
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
161
py
A, B, C, K = map(int, input().split()) if abs(A-B) > 10**18: print('unfair') else: if K % 2 == 0: print(A-B) else: print((A-B)*(-1))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
441ccf0dc03d68b4f3acce9becfaf90384c143b9
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_213/98.py
1f25fcf296c10c84ba71a7258cbb209482270a0e
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,793
py
#import string,itertools,fractions,heapq,re,array,bisect #from math import * from collections import defaultdict def rl(s): return xrange(len(s)) INF = 2147483647 import sys stdin = sys.stdin T = int( stdin.readline().strip() ) for icase in range(1, T+1): N, C, M = map(int, stdin.readline().strip().spl...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
c0e16a67535a95f5a0c8216ac92836af88534908
cf2b8c952512a16bc7a1038f3239370cada02561
/function/sorted.py
1078c533aeafcb28eeff00a080b2eaac876b2bbd
[]
no_license
liupengzhouyi/LearnPython3
ad382b99423b7bb10612c255bbbeabbbf79500ad
6b001ae169288af1dd0776d4519905a6e0d1ab87
refs/heads/master
2023-04-07T20:08:41.207008
2023-03-27T04:18:43
2023-03-27T04:18:43
174,716,342
1
0
null
null
null
null
UTF-8
Python
false
false
335
py
print(sorted([34,-67,9,-8,7,12])) print(sorted([34,-67,9,-8,7,12],key=abs)) print(sorted(['a', 'kihjb', 'L', 'ihkun', 'YVG'], key=str.lower)) print(sorted([34,-67,9,-8,7,12], reverse=True)) L = [('Lio', 13),('asd', 12)] print(sorted(L, key = lambda t : str(t[0]).lower())) print(sorted(L, key = lambda t : t[1], ...
[ "liupeng.0@outlook.com" ]
liupeng.0@outlook.com
1e58ed9a3eb086fa877e8712b5f48df9c6cffca7
53ccc4f5198d10102c8032e83f9af25244b179cf
/SoftUni Lessons/Python Development/Python Advanced January 2020/Python OOP/03. DEFINING CLASSES/02. Scope Mess.py
7debc91d552377b5935dc96268e33ecc9d436de4
[]
no_license
SimeonTsvetanov/Coding-Lessons
aad32e0b4cc6f5f43206cd4a937fec5ebea64f2d
8f70e54b5f95911d0bdbfda7d03940cb824dcd68
refs/heads/master
2023-06-09T21:29:17.790775
2023-05-24T22:58:48
2023-05-24T22:58:48
221,786,441
13
6
null
null
null
null
UTF-8
Python
false
false
1,029
py
""" # This is from work at home: x = "global" def outer(): global x x = "local" def inner(): global x x = "nonlocal" print("inner:", x) def change_global(): global x x = "global: changed!" print("outer:", x) inner() print("outer:", x) ...
[ "noreply@github.com" ]
SimeonTsvetanov.noreply@github.com
02fac676a0fd7501111aaa22f4ae22ea58313b0b
94fcfd5d260dd2e76ce388e3579109d2bbbd28a2
/proxies/spider/log_ip_model.py
c283a6372d0e4816e554c95939cb50823e2ecf4f
[]
no_license
roceys/bilibili_video_views_spider
5a26e3727a37ab523271666bf4cb2e7e71190d9d
a722a7e6b742ced8ccff50a45f07d49eeec1365b
refs/heads/master
2022-06-16T20:21:57.230291
2020-05-15T09:06:34
2020-05-15T09:06:34
289,457,498
1
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
import os import re import time from threading import RLock from memory.redis_memory import RedisExpSet from utils.logger import log class LogQueue: re_path = "'set row', '(.*?)'" key = 'xici:xici_proxy_queue' poll_heart_beat = 4 queue_exp = 10 * 60 queue_size = 100 mem_set = RedisExpSet(key) ...
[ "283438692@qq.com" ]
283438692@qq.com
acd40afa87c78d55578e6584c203f3cd766587b3
c037ebcb87d35b72a6cc86b0a809d02da25bc2e9
/bot/cogs/core/snippets.py
41cde407f845318831f38d9b6c2b0d6acd8e946f
[ "MIT" ]
permissive
discollaboration/snippets
ec3cd082150b1f019812e6475fac01f9676c96ba
d8e35b59de57486386cc2e1547513bda109abe63
refs/heads/master
2023-02-14T04:07:47.206643
2021-01-12T10:50:19
2021-01-12T10:50:19
327,273,113
0
0
null
null
null
null
UTF-8
Python
false
false
7,942
py
from re import compile from discord import Embed from discord.ext import commands from requests import post from git import Repo import redis from bot.bot import Bot sr = compile(r"\{\{\S+\}\}") special = ["member_count", "user_count", "bot_count"] help_text = "**__Available commands:__**\n" help_text += "`snippet c...
[ "vcokltfre@gmail.com" ]
vcokltfre@gmail.com
556f5f159a319713000b4f5fccfc7c5cde81899c
f1e05a4998e6ea1620ddb584eaedc6255f09600f
/graphene/core/classtypes/inputobjecttype.py
43f4c897c173ee031bd22d7e91cf9f85fbe4c6fa
[ "MIT" ]
permissive
adamcharnock/graphene
32201a46f79ce5ac6c6d758cc63a9cebe0332347
2264c3dce27f549fb4fd0f21500249379b695871
refs/heads/feature/django
2020-04-01T17:43:55.383609
2016-01-02T20:36:06
2016-01-02T20:36:06
46,986,411
1
0
null
2016-01-02T20:36:09
2015-11-27T15:12:34
Python
UTF-8
Python
false
false
675
py
from functools import partial from graphql.core.type import GraphQLInputObjectType from .base import FieldsClassType class InputObjectType(FieldsClassType): class Meta: abstract = True def __init__(self, *args, **kwargs): raise Exception("An InputObjectType cannot be initialized") @cl...
[ "me@syrusakbary.com" ]
me@syrusakbary.com
638580c371d69adba42e0ff1e556fed435316924
04e87b83f836deea333049d5111f0732b024b69e
/autorepair.py
031d453e726346abd60a0f643632b91133275f6d
[]
no_license
yku/konkore-tools
2d80cd0abeb84473436b4c605b7f98e9fae00228
28ef2f97fe89c500c51cd00e76ff009dbb50123e
refs/heads/master
2020-12-24T11:17:13.206492
2013-07-24T02:29:09
2013-07-24T02:29:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,854
py
# coding: utf-8 from __future__ import print_function import sys import random import requests import json import time class NotExpectedResult(Exception): pass class Client(object): prefix = 'http://203.104.105.167/kcsapi' def __init__(self, token): self.session = requests.session() sel...
[ "inada-n@klab.com" ]
inada-n@klab.com
0157c0a3d294cb2bd053a8110b8b3fdb2bc1ba84
6b8f8a2f6b515f3de42e9a2b5f94d51cf16b6d61
/contentful_management/content_type_field_types.py
63536da9ca00685a307ef8cb04a69fb25425942e
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
fullstackenviormentss/contentful-management.py
840e5cb36d663e9472d25039465c7a1d8548a9e2
ea7f59acbfd950dd6178137396219ab4d9a89fc7
refs/heads/master
2020-03-15T22:39:12.936669
2018-04-17T15:34:24
2018-04-17T15:34:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,286
py
try: import simplejson as json except ImportError: import json import dateutil.parser from .utils import unicode_class """ contentful_management.content_type_field_types ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This module implements the field coercion classes. :copyright: (c) 2017 by Contentful GmbH....
[ "david.litvakb@gmail.com" ]
david.litvakb@gmail.com
cedc7b13056f95264f4153135a1422136ac0c147
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/Ay9wPrqRJnBmvbFmi_5.py
80a7d8161ecdb1320009b6ea6a0bf52f51c80de6
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
580
py
""" Given two integers `a` and `b`, return how many times `a` can be **halved** while still being greater than `b`. ### Examples halve_count(1324, 98) ➞ 3 # (1324 -> 662 -> 331 -> 165.5) halve_count(624, 8) ➞ 6 # (624 -> 312 -> 156 -> 78 -> 39 -> 19.5 -> 9.75) halve_count(1000, 3) ➞ 8...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
8fc6a5401e9843c37c22ac4623acba7d5608025b
9eab77cb998e94ceb2b2d08738b05a98982505f1
/text_generation/pythonCodes/02-text_generation.py
6b2e737bf5e3986843a33ed3d41dfa9a1e921a44
[]
no_license
behrouzmadahian/python
1584dd13cde8531e69bb6fab76f148dc3fc0da57
5d4dbde8d570623fe785e78a3e45cd05ea80aa08
refs/heads/master
2021-06-28T16:53:09.927450
2020-09-21T14:02:55
2020-09-21T14:02:55
156,713,696
1
0
null
null
null
null
UTF-8
Python
false
false
7,321
py
import tensorflow as tf import numpy as np import random import os ''' We will use GloVe pre-trained word embeddings which have length =50 The word2Vec has 3 million words of each 300 length! a little memory intensive! Glove contains 400000 words with word vector representation of length 50! The training set we...
[ "noreply@github.com" ]
behrouzmadahian.noreply@github.com
7d7acc3dad63951997677a6b2d353cb9e30fb5b6
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/438/usersdata/309/98427/submittedfiles/pico.py
484a4b29d994ffbb00ff1c5607f3b26d3e8c181c
[]
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
746
py
# -*- coding: utf-8 -*- def pico(lista): x=[] n=len(lista) for i in range (0,n-1,1): if (lista[i] > lista [i+1]): x.append(1) if (lista[i] < lista [i+1]): x.append(2) if (lista[i]==lista[i+1]): x.append(0) k= sorted(x) if (x==...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
f15bcc38a20485ea44344a3152aa98e385132070
57775b4c245723078fd43abc35320cb16f0d4cb6
/URI Online Judge/1018.py
64ae3f8c1b61ba76ff76feb3eda8eb77ccf13075
[]
no_license
farhapartex/code-ninja
1757a7292ac4cdcf1386fe31235d315a4895f072
168fdc915a4e3d3e4d6f051c798dee6ee64ea290
refs/heads/master
2020-07-31T16:10:43.329468
2020-06-18T07:00:34
2020-06-18T07:00:34
210,668,245
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
try: n = int(input()) print(n) print("{0} nota(s) de R$ 100,00".format(n//100)) print("{0} nota(s) de R$ 50,00".format( (n%100)//50 )) print("{0} nota(s) de R$ 20,00".format( ((n%100)%50)//20 )) print("{0} nota(s) de R$ 10,00".format( (((n%100)%50)%20)//10 )) print("{0} nota(s) de R$ 5,00".f...
[ "farhapartex@gmail.com" ]
farhapartex@gmail.com
52a6ce2866f436c4de4ab347e61a05585bff8a6f
8f8663fd34074137a8b58de8db172f432305ac1b
/风格迁移(Neural Style)/transformer_net.py
0ccfd0a3f40021f2bd292533feebe9c73ca6db7b
[ "MIT" ]
permissive
MrGo2008/AnnotatedNetworkModelGit
ead706241074cac697afdaf465f0ed483a9a7ded
013bbd0216fc5d13ac4f721892d69b6e8ccadb05
refs/heads/master
2020-04-01T17:05:55.422044
2018-10-09T00:47:37
2018-10-09T00:47:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,255
py
# coding:utf8 """ code refer to https://github.com/abhiskk/fast-neural-style/blob/master/neural_style/transformer_net.py """ import torch as t from torch import nn import numpy as np # 风格转化网络===============未详细看 class TransformerNet(nn.Module): def __init__(self): super(TransformerNet, self).__init__() ...
[ "1055271769@qq.com" ]
1055271769@qq.com
914ba5eaff83bbfd1908c5eec6b77778a29d9080
41f5fb2b76efe6f7a10c96ff197b0785e247ca12
/gather/gathered/markov_funcdriver_mc.py
78d7115d391f3c465ee056441c708172a1227ee3
[ "BSD-2-Clause", "BSD-Advertising-Acknowledgement" ]
permissive
jtwhite79/my_python_junk
2f33d102e0e2875cf617b11dc31127678e9e9756
2ee0044f9b455d40e3b1967081aa7ac2dbfa64c9
refs/heads/master
2021-01-23T05:45:21.432421
2014-07-01T17:30:40
2014-07-01T17:30:40
4,587,435
3
0
null
null
null
null
UTF-8
Python
false
false
3,818
py
#--transition matrix shape #-- wet dry 2 0 #--wet 2 #--dry 0 #-- import os,re import datetime import numpy as np from numpy import ma from matplotlib.dates import * import matplotlib.ticker as ticker import pylab import calcprob reload(calcprob) path = 'markov\\' files = os.listdir(path) mon_labe...
[ "jtwhite79@yahoo.com" ]
jtwhite79@yahoo.com
35fe8f3c6aca43df8ef257b08d2b46850a964775
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02784/s797931682.py
7ebc4e83aa37f9d1b9bbea52293d797347ec9fd7
[]
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
336
py
import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines sys.setrecursionlimit(10 ** 9) INF = 1 << 60 MOD = 1000000007 def main(): H, N, *A = map(int, read().split()) if H <= sum(A): print('Yes') else: print('No') return if __name__ == '__main...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7c0838f5848e03981e1560e11c2d68533309b088
7c69c27a1c6ff2a1552900f4c1001281f4447233
/luogu/p1068.py
491e484ba77fee9d80932c7d0c3fb1efaacdd762
[]
no_license
Hamiltonxx/pyalgorithms
894a0228928819601a816c472689ce96a11e1d25
92284f6105c5deb7f843ff299ee3ceb6382cf879
refs/heads/master
2023-09-04T13:01:46.465661
2023-09-02T05:50:23
2023-09-02T05:50:23
231,999,229
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
n,m = map(int,input().split()) m = int(m*1.5) stu = [] for _ in range(n): stu.append(tuple(map(int,input().split()))) stu.sort(key=lambda x:(-x[1],x[0])) score = stu[m-1][1] for j in range(m,n): if stu[j][1] != score: break print(score, end=" ") print(j) for st in stu[:j]: print(st[0], end=" ") ...
[ "hamiltonhgz@gmail.com" ]
hamiltonhgz@gmail.com
d358a549f7714b6d3d28cc8d35ea650ab0d54dbb
3b9b4049a8e7d38b49e07bb752780b2f1d792851
/src/third_party/grpc/src/python/grpcio/tests/unit/_core_over_links_base_interface_test.py
2b8981c7523e171c279e4374310f29aa6f5fe621
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
webosce/chromium53
f8e745e91363586aee9620c609aacf15b3261540
9171447efcf0bb393d41d1dc877c7c13c46d8e38
refs/heads/webosce
2020-03-26T23:08:14.416858
2018-08-23T08:35:17
2018-09-20T14:25:18
145,513,343
0
2
Apache-2.0
2019-08-21T22:44:55
2018-08-21T05:52:31
null
UTF-8
Python
false
false
6,218
py
# Copyright 2015, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
[ "changhyeok.bae@lge.com" ]
changhyeok.bae@lge.com
df331ad3c7df1643564d4f4471f0406e7433d599
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/src/datadog_api_client/v2/model/incident_service_response.py
2258dbd44f2f14ffd17549ce7839b03ec81e05f4
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
1,932
py
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import annotations from typing import List, Union, TYPE_CHECKING from ...
[ "noreply@github.com" ]
DataDog.noreply@github.com
861b47e336eea3787facfcaec377df41f10724c0
a249db986dba158d228781a721e4b73a9a167d02
/powerhose/exc.py
a4f19782272c7d9d615e2f3093e917f824d93247
[]
no_license
szaydel/powerhose
af164bf8b526bbd57fbcec12aa153d327709c03b
3dfb0b4fa39ab2a0fb99af411d434ccb85b605ff
refs/heads/master
2021-01-17T08:13:49.802569
2019-03-27T20:29:46
2019-03-27T20:29:46
7,411,971
0
0
null
2020-03-01T03:14:00
2013-01-02T19:25:16
Python
UTF-8
Python
false
false
378
py
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. class TimeoutError(Exception): pass class ExecutionError(Exception): pass class DuplicateBrokerError(Except...
[ "tarek@ziade.org" ]
tarek@ziade.org
e0c1ceef7151397c84393474e848eb8149bf117e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/215/usersdata/273/113700/submittedfiles/av2_p2_m2.py
c105a5d3baef33dd840259aadbfd70f1a781b9ea
[]
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
411
py
# -*- coding: utf-8 -*- n=int(input('Digite a quantidade de numeros da lista: ')) entrada=int(input('Digite a porta de entrada: ')) saida=int(input('Digite a porta de saida: ')) a=[] soma=0 for i in range(1,n+1,1): vida=int(input('Digite o numero de vidas para a sala: ')) a.append(vida) while (entrada<sa...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
24490db5302e0487322c116746242b15ed03921c
53ccc4f5198d10102c8032e83f9af25244b179cf
/SoftUni Lessons/Python Development/Python Basics April 2019/Past Exams and Problems/8 - 6 and 7 April 2019/02. Godzilla vs. Kong.py
b0bb8b4f100fc6f0a0db4ecad31ee4232027f3b5
[]
no_license
SimeonTsvetanov/Coding-Lessons
aad32e0b4cc6f5f43206cd4a937fec5ebea64f2d
8f70e54b5f95911d0bdbfda7d03940cb824dcd68
refs/heads/master
2023-06-09T21:29:17.790775
2023-05-24T22:58:48
2023-05-24T22:58:48
221,786,441
13
6
null
null
null
null
UTF-8
Python
false
false
456
py
budget = float(input()) people_count = int(input()) one_dress = float(input()) decor = budget * 0.1 dresses = people_count * one_dress if people_count > 150: dresses -= dresses * 0.1 total = dresses + decor if total > budget: print("Not enough money!") print(f"Wingard needs {abs(total - bu...
[ "noreply@github.com" ]
SimeonTsvetanov.noreply@github.com
88c9c0371093ba28a5fb34eecc8346a7233659a3
09996c147d498e61352683c5e7df0f3cd517ea27
/test/ElMu/crabMCWW1_ElMu.py
2214c14a479ce91a451631572101131ba59184f1
[]
no_license
shchenarani/whelicityAnalyzer
3e3320a6d03eab21de6d51dad60f057b6a2f3d47
8b4586f7210c6a166b949470c22310b25683da4f
refs/heads/master
2021-09-10T12:22:52.088849
2018-03-26T07:52:54
2018-03-26T07:52:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
from CRABClient.UserUtilities import config, getUsernameFromSiteDB config = config() config.General.requestName = 'WW26Feb' #config.General.requestName = 'TTJetsDiLepOut04' #config.General.requestName = 'DataMuEG' config.General.workArea = 'crab_projects' config.General.transferOutputs = True config.General.tran...
[ "hesam.kaveh@gmail.com" ]
hesam.kaveh@gmail.com
f1f2811fd1418b1f4cbb3d6e7afa35fd375a5d6c
7ad50e95e1453ffef1b52b6e6507606f1f4b1f47
/tests/test_list_comp.py
d984e0f552e3262b21b3669b724fbdb2feaf8524
[]
no_license
cournape/parakeet
bfe503b8f2361b2c75ef54d83d60e8f8904a0072
d2b8dc63e6d73ff189e18ac0c3ef515223ce0da3
refs/heads/master
2021-01-17T21:58:36.039909
2013-06-26T18:47:05
2013-06-26T18:47:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
import numpy as np import testing_helpers from testing_helpers import expect x = np.array([1,2,3,4,5]) def identity_comprehension(x): return [xi for xi in x] def test_identity_comprehension(): expect(identity_comprehension, [x], x) def sqr_elts(x): return [xi**2 for xi in x] def test_sqr_elts(): expect...
[ "alex.rubinsteyn@gmail.com" ]
alex.rubinsteyn@gmail.com
cc51949d79b77c9bf8c4079c3619f3866275d000
36b9fa9f2d8ff655546a33cb47ddacd009bc00c9
/autogalaxy/profiles/light/snr/__init__.py
9552fff58a1ce27909530a13e73288abd40a5d94
[ "MIT" ]
permissive
Jammy2211/PyAutoGalaxy
67b76968b8516309b2ebdbff7affd5c1923cf0b1
d1a2e400b7ac984a21d972f54e419d8783342454
refs/heads/main
2023-08-19T01:00:22.320073
2023-08-17T15:39:46
2023-08-17T15:39:46
216,190,501
27
9
MIT
2023-09-13T14:07:43
2019-10-19T10:45:44
Python
UTF-8
Python
false
false
371
py
from .abstract import LightProfileSNR from .gaussian import Gaussian, GaussianSph from .sersic import ( Sersic, SersicSph, ) from .exponential import Exponential, ExponentialSph from .dev_vaucouleurs import DevVaucouleurs, DevVaucouleursSph from .chameleon import Chameleon, ChameleonSph from .eff impor...
[ "james.w.nightingale@durham.ac.uk" ]
james.w.nightingale@durham.ac.uk
a93418b619845acfcbbe524078f351a4507aa4ba
7bc54bae28eec4b735c05ac7bc40b1a8711bb381
/src/dataset_specific/msmarco/passage/runner/build_ranked_list.py
c5e91aa4927b85611807084f57799b55cb8c59fc
[]
no_license
clover3/Chair
755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e
a2102ebf826a58efbc479181f1ebb5de21d1e49f
refs/heads/master
2023-07-20T17:29:42.414170
2023-07-18T21:12:46
2023-07-18T21:12:46
157,024,916
0
0
null
2023-02-16T05:20:37
2018-11-10T21:55:29
Python
UTF-8
Python
false
false
2,261
py
import argparse import sys from typing import List, Iterable, Callable, Dict, Tuple, Set from cpath import output_path, at_output_dir from misc_lib import path_join, select_first_second, group_by, get_first from dataset_specific.msmarco.passage.passage_resource_loader import load_qrel, tsv_iter from trec.ranked_list_u...
[ "lesterny@gmail.com" ]
lesterny@gmail.com
d8c78f4d58e3bd19c27ef86c5d8ea65685f93d4a
b222a5b5a84ce5d4fa0ddb084cffd1619a84a17c
/kangaroo/kangaroo.py
42eb7e1e0b022660f5731f95146dddf3f876f0da
[]
no_license
unabl4/HR
a51a5d461b3d126e1021646b9f210e099b8627b3
1aaf96734b8845c911d20a4955d3ffd64a2d16b9
refs/heads/master
2021-04-05T23:55:27.202440
2018-11-04T22:44:46
2018-11-04T22:44:46
125,117,758
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
# https://www.hackerrank.com/challenges/kangaroo/problem #!/bin/python3 import math import os import random import re import sys # x1+t*v1=x2+t*v2 # x1+t*v1-x2-t*v2=0 # x1-x2+tv1-tv2=0 # x1-x2+t(v1-v2)=0 # t(v1-v2)=x2-x1 # t = (x2-x1)/(v1-v2) # Complete the kangaroo function below. def kangaroo(x1, v1, x2, v2): ...
[ "unabl4@gmail.com" ]
unabl4@gmail.com
0b1ba00db0b909b918506514ad81fba1e78997b3
a60e8a64e784215bec488d4840520e1d443d2804
/Wprowadzenie do funkcji/II. Wprowadzenie do funkcji/Python/kwadrat_liczby.py
671c46737815f4a5bfc8c47f59387b53477ae06f
[]
no_license
blackbat13/CS-HTiEW
534f87884dcdc821ddecbf9ffdde89f8608d0a55
ea6b197103b53d44db82b4e5864f1f2129995cc5
refs/heads/master
2021-06-03T20:58:58.715690
2021-05-21T07:54:14
2021-05-21T07:54:14
132,580,293
0
1
null
null
null
null
UTF-8
Python
false
false
167
py
def kwadrat_liczby(liczba): return liczba * liczba liczba = int(input("Podaj liczbę ")) wynik = kwadrat_liczby(liczba) print(f'Kwadrat podanej liczby: {wynik}')
[ "blackbat13@gmail.com" ]
blackbat13@gmail.com
f87f54eecf9c19a577f2683acf15c47c7730cb2e
f462679e25ee5dbae2a761f0222bc547f7b9da65
/srcPython/cd.py
706040fac9bab5c5eb0afdbc667dc25664c9065f
[ "Apache-2.0" ]
permissive
FengYongQ/spock
f31a2f9cac58fbb1912f8e7b066b5318e0223835
08c01c01521429a70b5387e8769558e788f7cd3e
refs/heads/master
2021-06-13T03:09:23.903196
2020-01-25T03:32:41
2020-01-25T03:32:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,670
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "bussyvirat@gmail.com" ]
bussyvirat@gmail.com
914d9eef62631814ff97367dcd2df05e2290b33a
b8728f7bdb75365edcb0108d18b4ee0e1757aa0c
/models/evaluate.py
65a86ff15a440cd3fe2c36b2889949f7b1638a37
[ "Apache-2.0" ]
permissive
ii0/text-classifier
5e5c0428071e1c8a3e3dfa05715505bbe66f6af1
9ed913db33dcb7a51544419e2a16693668363267
refs/heads/master
2020-04-17T03:17:01.853753
2019-01-17T06:44:16
2019-01-17T06:44:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,353
py
# -*- coding: utf-8 -*- # Author: XuMing <xuming624@qq.com> # Brief: import numpy as np from matplotlib import pylab import matplotlib.pyplot as plt from sklearn import metrics from sklearn.metrics import classification_report from sklearn.metrics import precision_recall_curve def evaluate(y_true, y_pred): """ ...
[ "507153809@qq.com" ]
507153809@qq.com
bd175c2a3a7f041c6e921088908dcd27dae4a6b0
e6dd6badd9073f7411704f97cd53c4c71595b55d
/python/n168_convertTitle.py
3bbead32bd5bdef80eac86ff5c46e247cb95bf00
[]
no_license
binkesi/leetcode_easy
8f753fe3306ed5e678146469bbbf35f3e1bb741c
79878064daa7a7f1505f895287ee07f7a081dc6a
refs/heads/master
2020-12-10T05:46:57.134697
2020-05-25T03:00:03
2020-05-25T03:00:03
233,516,663
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
# https://leetcode-cn.com/problems/excel-sheet-column-title/ class Solution: def convertToTitle(self, n: int) -> str: res = "" while n > 0: mod = (n - 1) % 26 res = res + chr(mod + 65) n = (n - 1) // 26 res = res[::-1] return res if __name__ ==...
[ "sjtusgn@163.com" ]
sjtusgn@163.com
ee9390377ceb309cdb5046b9e858e6057fe09f21
4a3e4c20cc7de2e80ed038bbfe9b359ba75daf07
/configs/RS-data/DOTA/train+val/FCOS/CBAM/cbam-resnet101-caffe-center-FPN-R4.py
ddae5be8554967faf6bc99497b2638f557edd637
[ "Apache-2.0" ]
permissive
CLIFF-BOT/mmdetection-1.0
b0b4f9b5586476f96ef55cf68373110f28e503a7
a16a7c6a8f0bf029100b85f0bd1b64093e7809af
refs/heads/master
2023-01-02T07:02:35.496174
2020-10-29T03:26:18
2020-10-29T03:26:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,255
py
# model settings model = dict( type='FCOS', pretrained='open-mmlab://resnet101_caffe', backbone=dict( type='ResNet', depth=101, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=False), style='caffe'), ...
[ "nicholasirving@outlook.com" ]
nicholasirving@outlook.com
4a2ee781d49eeda93770286178e614f9d42e4898
4256bc0e097af39ebb170438d373ceb2486e25e2
/jingtai/assets.py
b3982214726dd80617887954d20ffc5c52473aba
[ "Apache-2.0" ]
permissive
feihong/jingtai
b0f4e21fcbb573c16b98919745ccd90122be9f6a
637ed42dcc20ed011ff93993fddc6d187b084c1d
refs/heads/master
2021-01-09T20:33:07.811190
2016-06-27T15:49:05
2016-06-27T15:49:05
61,161,498
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
mode = 'serve' def stylesheet(url): if mode != 'serve': base, ext = url.rsplit('.', 1) url = base + '.css' return '<link rel="stylesheet" href="%s">' % url def script(url): if mode != 'serve': base, ext = url.rsplit('.', 1) url = base + '.js' return '<script src="%s">...
[ "feihong.hsu@gmail.com" ]
feihong.hsu@gmail.com
ff9f1f98e57b5393c82daf06e4a6a639e6f3e722
c4fc08f1b19bcb39f6d304987e7c0c3a1b12a6b5
/golly/Scripts/Python/LifeGenes/lifegenes_core/tests/cell_test.py
565276889c537a714a48d6b59d6f3d14591b5f01
[ "MIT" ]
permissive
7yl4r/LifeGenes
ba35da389b13f17e6de06f41f8ad016be6707e09
cb2928ba9ddadd785fc55be443c117fb34eae967
refs/heads/master
2020-04-13T21:17:59.191858
2014-11-30T18:03:10
2014-11-30T18:03:10
10,677,365
11
0
null
null
null
null
UTF-8
Python
false
false
5,093
py
# this set of unit tests is meant to be run from a command line to test aspects of the LifeGenes outside of golly. import logging from LifeGenes.lifegenes_core.cell import Cell,DNA_MINLEN,DNA_MAXLEN,MAX_COLOR,MIN_COLOR,NN_MIN,NN_MAX,BASES from random import randrange from math import floor # test the cell class def ...
[ "murray.tylar@gmail.com" ]
murray.tylar@gmail.com
5f5237b6806fd21cbeea5a016e6d69c34743bec2
fb58f481494a232c8c5f89efcf938fa4af014d25
/scripts/tri_create/tri_primitives.py
a3cfd7232a37b6954dadc0f827362281c56a810d
[]
no_license
alexha98/MotionExplorer
d491cd582ea62d9cd31929d2264e424725ec320c
4e8b5c81f7dbc257c8a4562a5e7c0ff27e7dad83
refs/heads/master
2023-03-08T20:29:00.646507
2020-06-06T18:38:18
2020-06-06T18:38:18
270,878,691
0
0
null
2020-07-13T21:53:09
2020-06-09T01:55:56
null
UTF-8
Python
false
false
4,576
py
import openmesh import numpy as np class MetaMesh: def __init__(self): self.mesh = openmesh.TriMesh() def write(self, fname): openmesh.write_mesh(fname, self.mesh) print("Wrote Mesh to",fname) def AddCylinder(self, x, y, z, radius, height): vhandle = [] N=16 zLow = z - 0.5*height z...
[ "andreas.orthey@gmx.de" ]
andreas.orthey@gmx.de
1706ba46156274dd7156b42459c411c6232a93b1
0cb72fac7926b7415af3bff1bf7dbe03e96fead5
/LC_Compare_Version_Numbers.py
a08e733f3dddea7124514954479f0bd4f308e3d3
[]
no_license
venkatsvpr/Problems_Solved
586b5ef9f5868785cb52552da674ed003e139278
11c81645893fd65f585c3f558ea837c7dd3cb654
refs/heads/master
2022-11-11T21:53:27.469213
2022-10-14T05:59:11
2022-10-14T05:59:11
114,329,154
5
1
null
null
null
null
UTF-8
Python
false
false
1,337
py
""" 165. Compare Version Numbers Compare two version numbers version1 and version2. If version1 > version2 return 1; if version1 < version2 return -1;otherwise return 0. You may assume that the version strings are non-empty and contain only digits and the . character. The . character does not represent a decimal poin...
[ "venkatakrishnansvpr@gmail.com" ]
venkatakrishnansvpr@gmail.com
18c6a1670d975b1522480f5749f0569ba11cd64f
ca7697e9035231a9cf27daaa957ac8465af60ff1
/py_reader_test.py
adb232cc4772a4aacd71377a821ecfb0bef4b29e
[]
no_license
chenwhql/PaddleScripts
4d10b9e9ebc18ab823fb058eb2fc5ec00826e9ee
d4e08cd83c9cdf8678739d20db5a0fb180915756
refs/heads/master
2022-11-11T10:11:32.302287
2022-11-04T06:11:08
2022-11-04T06:11:08
225,184,564
0
2
null
2021-03-07T22:23:14
2019-12-01T15:34:51
Python
UTF-8
Python
false
false
1,300
py
import paddle import paddle.fluid as fluid import paddle.dataset.mnist as mnist def network(image, label): # user defined network, here a softmax regession example predict = fluid.layers.fc(input=image, size=10, act='softmax') return fluid.layers.cross_entropy(input=predict, label=label) reader = fluid.la...
[ "chenweihang@baidu.coom" ]
chenweihang@baidu.coom
3278db8a83b8549001c5652ef35a3522ee431f78
d18ed72d6f8d27dd8a13eab5c6366f9dca48aa6b
/espresso/tags/qecalc-0.2.2/qecalc/qetask/dynmattask.py
a6c231f6ffd108cd8c783529443793fbb7f43be5
[]
no_license
danse-inelastic/AbInitio
6f1dcdd26a8163fa3026883fb3c40f63d1105b0c
401e8d5fa16b9d5ce42852b002bc2e4274afab84
refs/heads/master
2021-01-10T19:16:35.770411
2011-04-12T11:04:52
2011-04-12T11:04:52
34,972,670
1
2
null
null
null
null
UTF-8
Python
false
false
2,996
py
#!/usr/bin/env python # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # QEcalc by DANSE Inelastic group # Nikolay Markovskiy # California Institute of Technology # (C) 2009 All Rights Reserved # # File coded by:...
[ "markovskiy@gmail.com" ]
markovskiy@gmail.com
139c11556b86b30d1483226767d19a851f37ae6c
c167d1618c1df50de21238a00d4168505dce868f
/0x0c-python-almost_a_circle/tests/test_models/test_rectangle_13.py
4cc3b04a90ac4e1bd55ab4b56e567eaf13f0512f
[]
no_license
keen-s/alx-higher_level_programming
8201845d7142bfdcbfa603fa3d135e3fabbe2bf2
7a70051b8cf89441f034c4886f51a99ae85e4f34
refs/heads/main
2023-08-12T18:23:30.985481
2021-10-18T20:48:29
2021-10-18T20:48:29
403,688,815
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
#!/usr/bin/python3 """Test cases for Square class""" import unittest from models.rectangle import Rectangle from models.base import Base from models.square import Square import io from contextlib import redirect_stdout class TestRectangleClass_dict(unittest.TestCase): """Test Square""" def setUp(self): ...
[ "keen_spe@DESKTOP-C7LRBS8.localdomain" ]
keen_spe@DESKTOP-C7LRBS8.localdomain
719540c7dd4c256f3fa6d448184e178cff156963
b7ddcba90214e32407f66321f2df62d405828461
/cms/cms_body/migrations/0001_initial.py
609f0d83682c4dc674ff6d716360ff1dafb179c6
[]
no_license
bart3k1/CMS
62e6c1696ae4d60478206b63772babb9bbb1ba1c
2849903cb9d12fd514aef574c6a5a4eaa776b853
refs/heads/master
2022-08-16T15:54:08.408722
2020-03-05T18:01:58
2020-03-05T18:01:58
127,267,720
0
0
null
2022-06-27T16:10:37
2018-03-29T09:18:41
TSQL
UTF-8
Python
false
false
6,888
py
# Generated by Django 2.0.4 on 2018-04-21 16:59 from django.conf import settings import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import tinymce.models class Migration(migrations.Migration): ...
[ "bart3k1@gmail.com" ]
bart3k1@gmail.com
6c06724f20a19641a1e183f649cbc020201adc5b
c824722d02a36f888f74bf60455361a2a1fe5212
/rnacentral_pipeline/rnacentral/search_export/metadata.py
ab75a993b6f056d986481b11344c180d743f2902
[ "GPL-1.0-or-later", "Apache-2.0", "Artistic-1.0-Perl", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RNAcentral/rnacentral-import-pipeline
d1b52291fc083470d75cf400b10792e1613662db
4505f748f9a932ffe4663c16b6c81574e4c04178
refs/heads/master
2023-08-31T23:37:29.744476
2023-04-11T11:10:48
2023-04-11T11:10:48
29,351,993
5
0
Apache-2.0
2023-07-12T13:58:10
2015-01-16T14:34:15
Python
UTF-8
Python
false
false
4,594
py
# -*- coding: utf-8 -*- """ Copyright [2009-2020] EMBL-European Bioinformatics Institute 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...
[ "bsweeney@ebi.ac.uk" ]
bsweeney@ebi.ac.uk
2a25191811cd95f68be8048e2f2c326889c4297b
5703f5acc526793192e41e64c3892802f45a463f
/coursera_app/models.py
291d34eac587f89b76cc4dab5dd24f789b74696d
[]
no_license
alclass/coursera_django
dfcd6ff386c63356d81924c3c9b39c81e83f5465
986cdb22e89557a7cc634b7805becb92b1257d3b
refs/heads/master
2021-01-20T07:50:59.304346
2013-08-23T03:09:17
2013-08-23T03:09:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,731
py
import datetime from django.db import models from coursera_django.defaults import LECTURE_INDEX_INTERPOLATE_URL # Create your models here. class Category(models.Model): ''' CourseraCourse's Category Django's Model ''' #institution_id = models.IntegerField(unique=True) # id = models.IntegerField(unique=Tr...
[ "livrosetc@yahoo.com.br" ]
livrosetc@yahoo.com.br
7ffcbcad35750e2a7962cfd717bb9b6d59b3a719
a15e6e9de3a11b78f12489379a83f31de2588cb9
/configs/retinanet/retinanet_r50_fpn_1x_coco_egp.py
f5bba0e204c9f63113806b1a0ae16756907afa22
[]
no_license
Ixiaohuihuihui/ERL-Net-for-Underwater-Object-Detection
0b3e08803990f86a35272be5031609d715fea4c1
71a5e2b1ff66fe14bb4dae1f1b0bf47d08c44df0
refs/heads/main
2023-06-02T04:44:21.445175
2021-06-21T07:47:44
2021-06-21T07:47:44
356,869,899
1
0
null
null
null
null
UTF-8
Python
false
false
6,439
py
# -*- coding: utf-8 -*- # @Time : 2021/1/27 9:55 # @Author : Linhui Dai # @FileName: retinanet_r50_fpn_1x_coco_egp.py # @Software: PyCharm model = dict( type='RetinaNet', pretrained='torchvision://resnet50', backbone=dict( type='', depth=50, num_stages=4, out_...
[ "1577884743@qq.com" ]
1577884743@qq.com
67ab49f903b49806f73929fcd54e9ccab379fe52
37d8802ecca37cc003053c2175f945a501822c82
/10-贪心算法/0055-跳跃游戏.py
3eb24fb4f14106953acc122b2342f6993c639b7b
[ "Apache-2.0" ]
permissive
Sytx74/LeetCode-Solution-Python
cc0f51e31a58d605fe65b88583eedfcfd7461658
b484ae4c4e9f9186232e31f2de11720aebb42968
refs/heads/master
2020-07-04T18:17:24.781640
2019-07-30T03:34:19
2019-07-30T03:34:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
# 55. 跳跃游戏 # 给定一个非负整数数组,你最初位于数组的第一个位置。 # # 数组中的每个元素代表你在该位置可以跳跃的最大长度。 # # 判断你是否能够到达最后一个位置。 class Solution(object): def canJump(self, nums): """ :type nums: List[int] :rtype: bool """ l = len(nums) if l == 0: return True max_arrive = nums[0] ...
[ "121088825@qq.com" ]
121088825@qq.com