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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6640f7ae8b1855e37ca2bb49587ede0bf5f2a525 | 6a41dd36ddd3e501b62ff253b40bf9bbbaa722c2 | /코딩오답/오답03.py | a9f6c42b3f113758b38a0c35737da719f644327e | [] | no_license | skysamer/first_python | 9ba79b194d838e0cdeab6f2e7a4207d71c73ed63 | 638622f51434eda65ef3300e3ce5db3a2a79db2a | refs/heads/master | 2023-02-03T08:21:23.370285 | 2020-12-27T13:39:20 | 2020-12-27T13:39:20 | 307,953,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | list_of_list=[
[1, 2, 3],
[4, 5, 6, 7],
[8, 9],
]
for line in list_of_list:
for item in line:
print(item)
# 1
# 2
# 3
# 4
# 5
# 6
# 7
# 8
# 9
| [
"skyslayer123@naver.com"
] | skyslayer123@naver.com |
5db710d5daf2c06e17c9d537bf382a6aaf8987dc | 1e7a2a03fef545619945e2dd881d9405c0959b31 | /labman/gui/handlers/auth.py | aae0833e0d7ccc4c86cabf6106b3981e712cc1e2 | [
"BSD-3-Clause"
] | permissive | nreeve17/labman | bca300ee3ce52f96d83a866e5ede455fab70c2b8 | cc643228f601236bbd7348f8215b00daa3e61358 | refs/heads/master | 2021-09-06T18:58:13.890245 | 2018-02-05T22:48:16 | 2018-02-05T22:48:16 | 120,044,962 | 0 | 0 | null | 2018-02-03T00:12:41 | 2018-02-03T00:12:41 | null | UTF-8 | Python | false | false | 1,490 | py | # ----------------------------------------------------------------------------
# Copyright (c) 2017-, labman development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------... | [
"josenavasmolina@gmail.com"
] | josenavasmolina@gmail.com |
a61f8c7141e4d1f4ac5757a1ba565e2c14914c9f | c2a03f1cdc338c9078534d8eb2213b214a251e73 | /Pollapp/views.py | 356b37b17d72c90fd4396def27f7776d9614820c | [] | no_license | risification/onlinde_test | 9a2db6a945734cc74ee8bc8408ac0ce39fa9d3b3 | 3e1e7e5aca4fa59db08f6394c85ce00652c0871b | refs/heads/master | 2023-03-14T08:24:53.574738 | 2021-03-05T17:22:08 | 2021-03-05T17:22:08 | 344,850,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | from django.shortcuts import render
from .models import Poll, Question
from .forms import AnswerForm
from django.http import HttpResponse
# Create your views here.
def poll_page(request):
poll = Poll.objects.all()
return render(request, 'Poll/poll.html', {'poll': poll})
def question_page(request, id_poll):
... | [
"sultangaziev01@bk.ru"
] | sultangaziev01@bk.ru |
6c93ea7887c227aa05f4563d5391ae3dc80941a3 | 0eaab1305900d8e70dd746d676126d1667d9c314 | /winregrc/collector.py | 00cd86f31d6a14c554b9132fd0852c63cb4f0d42 | [
"Apache-2.0"
] | permissive | scudette/winreg-kb | 89ffc7f63c2630b266bed41d1c66dff64fd1d32d | f81b8bcaef8365d0c52bf3c87af2bccb4274bece | refs/heads/master | 2020-06-08T20:51:37.427445 | 2019-06-14T06:47:16 | 2019-06-14T06:47:16 | 193,304,780 | 1 | 0 | null | 2019-06-23T04:07:02 | 2019-06-23T04:07:02 | null | UTF-8 | Python | false | false | 3,913 | py | # -*- coding: utf-8 -*-
"""Windows volume collector."""
from __future__ import unicode_literals
from dfvfs.helpers import volume_scanner as dfvfs_volume_scanner
from dfvfs.lib import definitions as dfvfs_definitions
from dfvfs.path import factory as dfvfs_path_spec_factory
from dfvfs.resolver import resolver as dfvfs... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
a013bfd614f01f8138748b177bd78152abdcc7a3 | 44b6bc41fe8e424196f98dbc5b2f050c1f9645f8 | /platforms/windows/dos/17072.py | 40119e550ee1da439adf6922d425147183333a93 | [] | no_license | angeloobeta/exploit-database | 21283dd8549f47836a35af6f3ea7b63b8dba11ea | 43f3d9e94c01a7f51e30561a96214af231dd9d36 | refs/heads/master | 2021-08-08T21:07:38.794539 | 2017-11-11T05:01:28 | 2017-11-11T05:01:28 | 110,380,452 | 0 | 1 | null | 2017-11-11T21:09:05 | 2017-11-11T21:09:04 | null | UTF-8 | Python | false | false | 25,785 | py | # done by BraniX <branix@hackers.org.pl>
# www.hackers.org.pl
# found: 2011.03.27
# published: 2011.03.29
# tested on: Windows XP SP3 Home Edition
# tested on: Windows XP SP3 Professional Edition
# App: Windows Explorer 6.0.2900.5512 (Shmedia.dll 6.0.2900.5512)
# App Url: http://www.micro$oft.com
# Shmedia.d... | [
"info@exploit-db.com"
] | info@exploit-db.com |
a6e3e7723b1c6314f82564eb711a6401b7bd795b | e7af0c1de1185bdda5ff43669ca465e828332581 | /public/fit.py | ffb1a4f76c2b4db8583c2b0b60173fb8995105b8 | [
"MIT"
] | permissive | KoshikawaShinya/ppwa | 511f7dbe9818039bafb8cce4b469b3c3f7349423 | b5278a9775ee12d1621021bebdcae2b271474958 | refs/heads/master | 2022-12-09T15:51:52.956493 | 2020-08-19T10:41:03 | 2020-08-19T10:41:03 | 287,700,134 | 0 | 0 | null | 2020-08-15T07:33:45 | 2020-08-15T07:33:44 | null | UTF-8 | Python | false | false | 1,854 | py | import glob
import os
import cv2
import pickle
import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report
from tensorflow.python import keras as K
img_size = 300
img_num = 2
with open('count.pickle', 'rb') as f:
count ... | [
"satowimp0319@gmail.com"
] | satowimp0319@gmail.com |
56618462619a5fbdf553629f377f72a79e0f0732 | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py | 944e403f7d222fde30692a4be7ee8280576fe50b | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:7e5b35f67d58e239f0381b19cfff45d358b4f311f68195c4232c8399677e98a5
size 33591
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
218858f59480e0196ac56ea89486303734741c50 | c75ec82316ed5322c5844912ce9c528c24360b9f | /nsd1903/python01/day04/randpass.py | 42d359e1d3b8ae650b80e350b9b857d65d06d6d2 | [] | no_license | MrZhangzhg/nsd2019 | a94cde22f2e4bd648bb9e56ca63827f558f3c083 | 54f6d2c7b348a69f13ad5f38f2fbdc8207528749 | refs/heads/master | 2021-08-22T17:38:27.697675 | 2020-02-22T08:36:21 | 2020-02-22T08:36:21 | 183,539,489 | 21 | 24 | null | 2020-05-17T12:07:55 | 2019-04-26T02:06:16 | HTML | UTF-8 | Python | false | false | 191 | py | from random import choice
all_chs = '1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'
result = ''
for i in range(8):
ch = choice(all_chs)
result += ch
print(result)
| [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
1838ac019d3d1931bbc379fca3daf7b5a624bd1c | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/request/AlipayMerchantComplainReconciliationQueryRequest.py | 9ca5de878179b1a08db1e17407bb49c9a9377f13 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 4,045 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMerchantComplainReconciliationQueryModel import AlipayMerchantComplainReconciliationQueryModel
class AlipayMerchantComplainRec... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
786edfe6db7cbf98fc8b5771ee273030a79fe00a | 79e19819aec49b500825f82a7de149eb6a0ba81d | /leetcode/27.py | 2d8bf84dbb95a493a05cbdcf8d0945cb7dd76212 | [] | no_license | seoyeonhwng/algorithm | 635e5dc4a2e9e1c50dc0c75d9a2a334110bb8e26 | 90406ee75de69996e666ea505ff5d9045c2ad941 | refs/heads/master | 2023-05-03T16:51:48.454619 | 2021-05-26T00:54:40 | 2021-05-26T00:54:40 | 297,548,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # 삭제할 원소를 맨 뒤로 몰아넣고, 배열의 크기를 줄인다!
class Solution:
def removeElement(self, nums: List[int], val: int) -> int:
i = 0
n = len(nums)
while i < n:
if nums[i] == val:
nums[i] = nums[n - 1]
n -= 1
else:
i += 1
... | [
"seoyeon@nowbusking.com"
] | seoyeon@nowbusking.com |
9f5a61b76b64485a122ac7bc5c40f97ea8a1f888 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/eqptcapacity/polentry1qtr.py | 9cf4678534d481afb1da77b78f8111526bfa7dcc | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 11,650 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
aa6356be04c2d65cffc046602f1a25268f5b78cf | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_supply.py | 3f1e672b7dd59f95b8e9b7d5379b7b0f045b0c6b | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py |
#calss header
class _SUPPLY():
def __init__(self,):
self.name = "SUPPLY"
self.definitions = [u'to provide something that is wanted or needed, often in large quantities and over a long period of time: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e99c0e9346727fd5be1ba28f95eca900b459bac4 | dfb2c26b2657e7f5fc12657452fe8f06b15a5a7e | /thread_utils/__init__.py | 364681f106006ec0946f73ecf5d9eafd9ead7440 | [] | no_license | sqlitech/PythonUtils | 3b8d7cd7c71e74670bf2411118e98787e4a4fa2c | 5eb9d5d651a803e54d4664cdd9d407a596bd3e31 | refs/heads/master | 2020-06-25T20:21:48.708676 | 2018-06-27T03:15:13 | 2018-06-27T03:15:13 | 199,413,166 | 0 | 1 | null | 2019-07-29T08:39:54 | 2019-07-29T08:39:54 | null | UTF-8 | Python | false | false | 43 | py | # -*-encoding:utf-8-*-
from async import *
| [
"karlvorndoenitz@gmail.com"
] | karlvorndoenitz@gmail.com |
663771fc38f04f61b54985175f6ebf9fecc4190c | 35a398d96c8433eeb8d807f155504e072a098a04 | /hwilib/devices/trezorlib/log.py | 50f778a12dabeb0f0459e24400dbadbc90bc2acd | [
"MIT"
] | permissive | Sjors/HWI | a98ea8dcd8655fc65d8a4225e1c0bf09462525d2 | b3b9f8818d9a851e9a88368f83de77ce504c522c | refs/heads/master | 2021-11-29T04:08:26.538699 | 2021-01-29T03:13:44 | 2021-01-29T03:14:02 | 148,819,675 | 2 | 0 | MIT | 2018-09-14T17:15:17 | 2018-09-14T17:15:17 | null | UTF-8 | Python | false | false | 1,799 | py | # This file is part of the Trezor project.
#
# Copyright (C) 2012-2018 SatoshiLabs and contributors
#
# This library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# as published by the Free Software Foundation.
#
# This library is distrib... | [
"achow101-github@achow101.com"
] | achow101-github@achow101.com |
6ffb9cb32cac8e80fef5bec34b6dabd6cf1572ea | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_Wxyz_focus_Z_ok_to_Cxy_focus/Pyr_wiDiv_ch032/pyr_5s/L7/step10_a.py | 38fd5b1327ad6d9b6bbc1ac9811b71d71d296c9f | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634,345 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
ed9f248c4a3a90143c4c4a9fa970e44a0d7b69c9 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/azure_stack/profile_2019_03_01_hybrid/operations/_util.py | 7f0f515e93c51f2802407cbe7f176fe90553fb6c | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 592 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
cedc36ff24c7551d29d2d758e7ec05c63bdeb54f | 860c31e414c4c280b70ec0872042d715a2d56978 | /torch_ecg/augmenters/random_flip.py | 8e568a5e53279bd331a03438f99ca8d76c73c9f6 | [
"MIT"
] | permissive | DeepPSP/torch_ecg | 255e49ff436e13044a1f049141f982680e56970e | a40c65f4fefa83ba7d3d184072a4c05627b7e226 | refs/heads/master | 2023-09-01T06:47:17.153216 | 2023-08-31T18:00:47 | 2023-08-31T18:00:47 | 298,482,237 | 111 | 16 | MIT | 2023-08-21T11:25:07 | 2020-09-25T06:03:17 | Python | UTF-8 | Python | false | false | 3,705 | py | """
"""
from numbers import Real
from typing import Any, List, Optional, Sequence, Tuple, Union
import numpy as np
import torch
from torch import Tensor
from .base import Augmenter
__all__ = [
"RandomFlip",
]
class RandomFlip(Augmenter):
"""Randomly flip the ECGs along the voltage axis.
Parameters
... | [
"wenh06@gmail.com"
] | wenh06@gmail.com |
4fdb87404cde51d55e157b2a585ba2b14eeeef11 | 9c58a1f594e18cee20128f2c8dad8257429b10d1 | /returns_management/models/amz_return_message.py | efebf7e1850f51ccbec5bee4b9d2b212c023cdc5 | [] | no_license | gastonfeng/Odoo-eBay-Amazon | e8919768b2a1500209f209ee3aecc7f2fb10cda7 | a9c4a8a7548b19027bc0fd904f8ae9249248a293 | refs/heads/master | 2022-04-05T00:23:50.483430 | 2020-02-19T04:58:56 | 2020-02-19T04:58:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,401 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from odoo import models, fields, api
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT
import logging
import locale
import re
_logger = logging.getLogger(__name__)
class AmzReturnMessage(models.Model):
_name = 'sale.store.amz.return.message'
_inherit = [... | [
"yjm@mail.ru"
] | yjm@mail.ru |
02477477bced69dfa14b2f606809e5fa1938461d | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_backend_instances_v2_request.py | 474669c5d89f50b1eda068f6274602635a9fff48 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,109 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdateBackendInstancesV2Request:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
53cf32460a454ad7d0d66d9f77cabc86af34ee10 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/sql/azure-mgmt-sql/azure/mgmt/sql/aio/operations/_sql_vulnerability_assessment_baselines_operations.py | e3200f1df96e49a046add9c8f03244b987031569 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 11,794 | 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"
] | Azure.noreply@github.com |
a6dbd80f6affd77ffea6e3c619cbf570c687d395 | c64bb34a3dde14d3c9bf813bde414a7b3f10611d | /ommat_addons/manufacturing_change_two/models/models.py | 54d7e25e2870844b7639a07f30f6e9c82cc8b2d4 | [] | no_license | sm2x/my_work | ebf2e1abd06191ee59b0d82a23534274a81a3195 | efc469aee4cd20b038d48d4c09f8257f3f04ba1c | refs/heads/master | 2021-01-07T20:41:45.254025 | 2020-02-12T16:02:46 | 2020-02-12T16:02:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,505 | py | # -*- coding: utf-8 -*-
from dateutil.relativedelta import relativedelta
from odoo import models, fields, api, _
from odoo.exceptions import ValidationError
class new_fields_mrp_bom(models.Model):
_inherit = 'mrp.bom'
pro = fields.Boolean(related=False, string='Production')
lab = fields.Boolean(related... | [
"ragaamaherhanna@gmail.com"
] | ragaamaherhanna@gmail.com |
269a453e77012b0ffb441e1a0f07293fec6eb70c | afc85d75ac2115f33a00d535a0f08104571a1e4a | /Ex87.py | 404c5a22a285e0a880bf24c609529823cf1c801d | [] | no_license | BrunoCerberus/Algoritmo | aa80651920705a88248fa32d700555672964dae4 | 8fad13cf936eb7120f26a699bca4a8ad76d1a53f | refs/heads/master | 2016-09-08T01:23:09.210110 | 2015-07-08T06:39:52 | 2015-07-08T06:39:52 | 29,315,141 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | """
Programa que calcula o total de elementos separadamente
por linha, e os exibe.
"""
a = [[1,2],[3,4,5],[6,7]]
total1, total2, total3 = 0,0,0
# percorre os elementos da primeira liha
for column in range(len(a[0])):
total1 += a[0][column]
# percorre os elementos da segunda linha
for column in range(len(a[1])):
... | [
"bruno.guitarpro@gmail.com"
] | bruno.guitarpro@gmail.com |
a8a774633139c03938895ba6eb2851db9c02b02f | 495531870c08ea3495bb45393b05f907366f052e | /x7-src/dashboard/steer/steer/dashboards/engine/instances_and_volumes/tests.py | 7aca763ebbbf750b2f4f736e1d46d747c87480ad | [
"Apache-2.0"
] | permissive | wendy-king/x7_venv | 5fcb326cf3ecaa26d3b839af743b027d23af29e0 | d8266c1dc474935c54126ce36d1a6410a7e452f5 | refs/heads/master | 2021-01-01T06:33:24.605851 | 2012-01-19T15:54:44 | 2012-01-19T15:54:44 | 3,209,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,638 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2011 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2011 Nebula, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# no... | [
"king_wendy@sina.com"
] | king_wendy@sina.com |
e280b5a3a149a8222d07e449c825e541ea713970 | 3058fa7653137ea32b552d800377e19927dbc86b | /Subject4_Science/E3_Sci_StreetView/3_StreetView_Sci_CNN.py | 4ae55feeff5676dcf1e76772514b879b58452f22 | [] | no_license | heatherbaier/schoolCNN | 9b1a3301b8e49294f298c384e9f69fe25c1bf4eb | df1120d07b37881df801a2a828fc7715b1ea74af | refs/heads/master | 2020-12-09T04:31:40.800407 | 2020-01-27T08:24:40 | 2020-01-27T08:24:40 | 232,407,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,460 | py | from __future__ import print_function, division
from torchvision import datasets, models, transforms
from imgaug import parameters as iap
from imgaug import augmenters as iaa
from torch.optim import lr_scheduler
import matplotlib.pyplot as plt
import torch.optim as optim
import torch.nn as nn
import imgaug as ia
impor... | [
"hmbaier@email.wm.edu"
] | hmbaier@email.wm.edu |
63f452ce469a6a29fa2d5230bc8d393acbd2e94e | a1f6290c078b3d9bd004c777972ce4d5bc8af749 | /IVote/.history/app_20211026171321.py | 474758214e2ca9afa1695dc9d67f4dcbd11c788a | [] | no_license | CS699-IITB-Autumn-2021/project-alpha_team | 2803b99b49dcfe6f1acdcdf768791d58e0441d05 | d3a7105d6d0d702d4b31a80a331b3772a03f2428 | refs/heads/master | 2023-08-19T17:32:01.401161 | 2021-10-27T19:14:08 | 2021-10-27T19:14:08 | 413,135,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,535 | py | from posixpath import lexists
import re
import sqlite3
import random
import os.path
from flask import Flask, render_template, request,redirect,session
from flask.helpers import url_for
from datetime import date
from datetime import datetime
from pathlib import Path
from werkzeug.utils import redirect
from generateResul... | [
"ashwinpatidar609@gmail.com"
] | ashwinpatidar609@gmail.com |
50f7434229ae157f44b1726a7e098f852970cab7 | 78f43f8bd07ae0fc91738a63cd7bbca08ae26066 | /leetcode/twopointer/two_sum_ii_input_array_is_sorted_twopointer.py | d3fbe0fe52b8997b0ce0589ddcc703213e1ff0cf | [] | no_license | hanrick2000/LeetcodePy | 2f3a841f696005e8f0bf4cd33fe586f97173731f | b24fb0e7403606127d26f91ff86ddf8d2b071318 | refs/heads/master | 2022-04-14T01:34:05.044542 | 2020-04-12T06:11:29 | 2020-04-12T06:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from typing import List
class Solution:
def twoSum(self, numbers: List[int], target: int) -> List[int]:
L = len(numbers)
p1, p2 = 0, L-1
if L <= 1: return []
while p1 < p2:
diff = target - numbers[p1]
if diff < numbers[p2]:
p2 -= 1
... | [
"dofu@ebay.com"
] | dofu@ebay.com |
14f4eccc41465e450e48c6dc0efbf946375796c6 | 50f15c1d9bdd580dcd7d082d723a7f78aae696de | /ave/components/requirements.py | b859c2eab7dc231c498eb07a62aa651b0db0f099 | [
"MIT"
] | permissive | AVEgame/AVE | 78107942056eafd0dced09f3927d45b092727984 | d9292af865ddebe125ede1aabba9fb360bfa03f7 | refs/heads/master | 2021-01-22T07:07:22.164595 | 2020-07-24T13:40:16 | 2020-07-24T13:40:16 | 29,246,001 | 3 | 0 | MIT | 2020-07-24T13:40:18 | 2015-01-14T13:43:17 | Python | UTF-8 | Python | false | false | 3,483 | py | """Conditions that are required to show a line, option or item name."""
from .numbers import Constant
class Requirement:
"""A base requirement."""
def has(self, character):
"""Check if the character satisifies this."""
raise NotImplementedError()
def get_all(self):
"""Get all it... | [
"matthew.w.scroggs@gmail.com"
] | matthew.w.scroggs@gmail.com |
d6f0c8d246d7f204951c27dc7bfcad1a0ce9d702 | 5e557741c8867bca4c4bcf2d5e67409211d059a3 | /benchmarks/fastrnns/bench.py | b7c315b27fefecee093b530fcd7614d04f5672d7 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | Pandinosaurus/pytorch | a2bb724cfc548f0f2278b5af2fd8b1d2758adb76 | bb8978f605e203fbb780f03010fefbece35ac51c | refs/heads/master | 2023-05-02T20:07:23.577610 | 2021-11-05T14:01:30 | 2021-11-05T14:04:40 | 119,666,381 | 2 | 0 | NOASSERTION | 2021-11-05T19:55:56 | 2018-01-31T09:37:34 | C++ | UTF-8 | Python | false | false | 10,272 | py | import argparse
from collections import namedtuple
import torch
import gc
import sys
import json
import copy
import time
from .fuser import set_fuser
from .runner import get_nn_runners
BenchResult = namedtuple('BenchResult', [
'name', 'avg_fwd', 'std_fwd', 'info_fwd', 'avg_bwd', 'std_bwd', 'info_bwd',
])
def f... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7975bc63573e9c2bae7ca54b0b9772152873656a | 12ecd25d75023b7269e9eb103c5cab01b9798859 | /questions/migrations/0001_initial.py | 3fb589ac7a7434f86b4ca8c86b18895480b46ae1 | [
"MIT"
] | permissive | alexyvassili/otuspy-hasker | dfe8881cc6d150dd98298cd308af19bc3d06a068 | b094401fd863eab8006c6d4a92d2c08efb815f95 | refs/heads/master | 2023-02-17T18:28:00.002133 | 2022-06-17T21:10:49 | 2022-06-17T21:10:49 | 133,680,455 | 0 | 1 | MIT | 2023-02-15T18:45:59 | 2018-05-16T14:44:23 | JavaScript | UTF-8 | Python | false | false | 781 | py | # Generated by Django 2.0.5 on 2018-05-23 09:05
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"escantor@gmail.com"
] | escantor@gmail.com |
f2e2e84612c442fb0b08b491827aeed5390ab984 | bc539788b876773e294383863252c1637de9eb7f | /scrapy/PycharmProjects/Reptile/ven/6-python发送邮件-测试.py | cb5c6ed0e152de7335e4a7db2b59cd04278b645c | [] | no_license | umsung/scrapy | 4eb56bf74f3e617e49dcdec61cf77010eb912f4f | deacd9f289159c5af114b0dd3110448ad7eb43e8 | refs/heads/master | 2020-05-31T14:11:46.530793 | 2019-10-16T01:32:25 | 2019-10-16T01:32:25 | 190,321,772 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
def send_mail(subject='subject', content='content'):
# mail server
mail_host = 'smtp.sina.com'
mail_port = 25
mail_user = '' # 账号
mail_pwd = '' # 密码
# mail message
# ... | [
"545699233@qq.com"
] | 545699233@qq.com |
23cac2a90471800dcb06f401d6accba6a9b068b5 | 49a6f4076d287af69834f22b9af0b4c05ad32556 | /docs/conf.py | 6005be4b757601f5a22187dc8949749ba13bfcea | [
"Zlib"
] | permissive | ywg121020/libusb | fcd9597c10a9a857fa4934cb4c94296813a64820 | 0755dc25c60bfb92fa41dfe460c1b9fa638be913 | refs/heads/master | 2020-06-11T00:34:04.840221 | 2019-02-15T13:47:05 | 2019-02-15T13:47:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,320 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
import sys
import os
top_dir = os.path.join(os.path.dirname(__file__), os.p... | [
"akarpierz@gmail.com"
] | akarpierz@gmail.com |
8d5788663ac2a8631c337da7c2251331c5de6e80 | 3fbd26091ebbc13913f9c7be1aaf10d477c79536 | /week01/zuoye/requests_maoyan/.history/maoyan_20200628012930.py | b4d45d5f82cd1ac6af42e71cf24f78dcfed08446 | [] | no_license | shuncon/Python001-class01 | d28faf3d5d8e9ea4cee93bcae7143a26fd8c472e | df19758181cdaf37f30d4b518600fc4612590499 | refs/heads/master | 2022-11-13T19:31:27.019214 | 2020-07-10T14:58:25 | 2020-07-10T14:58:25 | 273,135,541 | 0 | 0 | null | 2020-06-18T03:46:56 | 2020-06-18T03:46:55 | null | UTF-8 | Python | false | false | 1,583 | py | #-*-conding:utf-8 -*-
import requests
import lxml
from bs4 import BeautifulSoup as bfs
headers = {
'user-agent' :'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36',
'Cookie': '__mta=143555850.1593182389402.1593186588642.1593186951752.13; _lxsdk_cui... | [
"1428834423@qq.com"
] | 1428834423@qq.com |
7073414c50df76a49a5045cbf9c5f48b0a0da33a | 1bc41de1c91561f37284d7de25c01fb1ff0373a4 | /django_core_utils/constants.py | cbbf827350f7f9ca3dce81c4eabbe604652680e6 | [
"MIT"
] | permissive | ajaniv/django-core-utils | 7e36022956849cb0fc5afdc1440fd3413740cf02 | 4ae9fc325f4bc9e3a3e723207d48133f772804c3 | refs/heads/master | 2020-04-04T21:17:45.840269 | 2019-03-11T23:35:31 | 2019-03-11T23:35:31 | 52,732,860 | 1 | 0 | MIT | 2019-03-11T23:35:32 | 2016-02-28T17:12:35 | Python | UTF-8 | Python | false | false | 313 | py | """
.. module:: django_core_utils.constants
:synopsis: django_core_utils constants module.
django_core_utils constants module.
The *constants* module contains public constant definitions.
"""
HTTP_GET = "GET"
HTTP_POST = "POST"
HTTP_DELETE = "DELETE"
HTTP_PUT = "PUT"
SITE_LABEL = "sl"
UNKNOWN = "UNKNOWN"
| [
"amnon.janiv@ondalear.com"
] | amnon.janiv@ondalear.com |
76d55cda48cfc76fb1f21ee550827b7267464301 | 9c315e3762961668a1fe58ad811ae87c5fbf7539 | /apertium-tools/scraper/scrp-azathabar.py | 0f0d7586b0f74692b378218abc3e342939da4b40 | [] | no_license | frankier/apertium | f2b893115c413203b1194e5c0d4feb0adf2b1b3e | d3f5515bf2455f3046314a62ea564457bcf504b8 | refs/heads/gnulib | 2021-01-20T21:00:53.139135 | 2016-05-27T17:30:01 | 2016-05-27T17:30:01 | 59,847,975 | 0 | 1 | null | 2016-07-07T12:39:01 | 2016-05-27T16:21:14 | HTML | UTF-8 | Python | false | false | 5,564 | py | #!/usr/bin/env python3
from datetime import date, timedelta
from urllib import request
#from lxml import etree
import lxml.html
import lxml.html.clean
from scrapers import ScraperAzathabar
from scraper_classes import Source, Writer
import urllib.error
import http.client
import curses
import sys
import signal
domain =... | [
"unhammer@72bbbca6-d526-0410-a7d9-f06f51895060"
] | unhammer@72bbbca6-d526-0410-a7d9-f06f51895060 |
0dba12150c173f3c6fc7ce27a5c922cd86afe827 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/automl_HPOlib/HPOlib-master/HPOlib/Plotting/plot_util.py | 09677ec7ca5947ace327c84039e55c32120354a1 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 15,727 | py | ##
# wrapping: A program making it easy to use hyperparameter
# optimization software.
# Copyright (C) 2013 Katharina Eggensperger and Matthias Feurer
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Found... | [
"659338505@qq.com"
] | 659338505@qq.com |
abd9ecd9cb7b6e414f4ff573b0d132b752e8c1a2 | 68f7087d91b6cbaeb10e7aeeb383fcea20d6759d | /VistekDeviceManage/site-packages/vistek_onvif/onvif_wrap.py | 991e9f2ac4bf92b2002ae09981f775c8abf5dfcf | [] | no_license | yuetianle-Media/VistekDeviceManage | 7cd05d0e0582dc342150307afdfcf6a9b63bc371 | e0e83d4de01657faf409fa8141645d5b3a3a0812 | refs/heads/master | 2020-07-14T08:41:48.513315 | 2016-08-29T06:09:19 | 2016-08-29T06:09:19 | 66,067,186 | 0 | 0 | null | 2016-08-19T08:39:51 | 2016-08-19T08:39:51 | null | UTF-8 | Python | false | false | 16,735 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import onvif, os, sys, collections, threading, time, logging, traceback,logging.handlers
from onvif import ONVIFCamera
import Vistek.Data as v_data
import eventlet
import onvif_global_value
try:
import Queue
except:
import queue as Queue
if not os.path.exists("log")... | [
"ghlghy199076@163.com"
] | ghlghy199076@163.com |
d736a4ccfdcc6273173962b84962e7197e204b18 | 866dee1b3d01b863c31332ec81330d1b5ef5c6fa | /openquake.hazardlib/openquake/hazardlib/tests/gsim/raghukanth_iyengar_2007_test.py | ade25256d8d0e00119510016353fae82d27aa2b9 | [
"MIT",
"AGPL-3.0-only"
] | permissive | rainzhop/ConvNetQuake | 3e2e1a040952bd5d6346905b83f39889c6a2e51a | a3e6de3f7992eac72f1b9883fec36b8c7fdefd48 | refs/heads/master | 2020-08-07T16:41:03.778293 | 2019-11-01T01:49:00 | 2019-11-01T01:49:00 | 213,527,701 | 0 | 0 | MIT | 2019-10-08T02:08:00 | 2019-10-08T02:08:00 | null | UTF-8 | Python | false | false | 4,430 | py | # The Hazard Library
# Copyright (C) 2012-2016 GEM Foundation
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#... | [
"rainzhop@gmail.com"
] | rainzhop@gmail.com |
0540326a34c8eea969ab2b250c2b3f1ec56b7c6a | 289e17a9b3d0cf187f403894ebfb1007dcb1b3dc | /old-leetcode/older/455AssignCookies.py | 675b3deca4cadfed6019c625c6b235707590c23c | [] | no_license | congyingTech/Basic-Algorithm | 7ddb376e49ef3b1c0d989fb1d4a4949d2d121d63 | 18c06a96bb14688e4a1d5fb6baf235a6b53bd3ae | refs/heads/master | 2021-11-27T07:01:05.474609 | 2021-11-15T07:16:31 | 2021-11-15T07:16:31 | 224,206,231 | 10 | 3 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | class Solution(object):
def findContentChildren(self, g, s):
"""
:type g: List[int]
:type s: List[int]
:rtype: int
"""
if __name__ == '__main__':
a = Solution()
g = [1,2,3,4]
s = [2,4,6,8]
print(a.findContentChildren(g, s)) | [
"congyingTech@163.com"
] | congyingTech@163.com |
ebebf49828ccb7b90e9a49da0fb21464b90fbbe0 | 5c29360b142773c87cae6b245b48cefa7cce708c | /inventory/inventory/report/alokasi_barang_terkirim/alokasi_barang_terkirim.py | 9186e5fdbc59477a87e9214eeccd3b9205565207 | [
"MIT"
] | permissive | bobzz-zone/inventory | 4f496d57189496f0cdc58c5510b51d26f5ad8a68 | 0cf5f3c5cc5e77a577605f99b8210fb0178aea30 | refs/heads/master | 2020-05-22T09:30:20.896237 | 2016-10-28T14:28:31 | 2016-10-28T14:28:31 | 65,599,131 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,859 | py | # Copyright (c) 2013, Myme and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
def execute(filters=None):
columns, data = [], []
columns = []
select_field = ""
group_clause = ""
order_clause = ""
left_join = ""
if filters.get("group_by") ==... | [
"bobzz.zone@gmail.com"
] | bobzz.zone@gmail.com |
5cd5c23e6afd2f10efdc27cbbfc89a7c2f9d17d9 | b5a31a9b0827232fb8efa2a56db90d396abbbcef | /Data Structures/Stack.py | 84e9a0f480d06fa2389166dc1b9da774001d5e87 | [] | no_license | Storiesbyharshit/Competetive-Coding | 3a693b2b3193df6fea1b9bc3bbbbb2dfb79eecfd | 722c216ee8931754eb7de0660d2aeb21544cf48b | refs/heads/master | 2022-12-12T03:50:59.348383 | 2020-09-09T17:26:01 | 2020-09-09T17:26:01 | 281,312,841 | 2 | 2 | null | 2020-08-28T05:06:11 | 2020-07-21T06:20:05 | Python | UTF-8 | Python | false | false | 326 | py | class Stack:
def __init__(self):
self.stack = []
def isEmpty(self):
return self.stack == []
def push(self, data):
self.stack.append(data)
def pop(self):
data = self.stack[-1]
del self.stack[-1]
return data
def peek(self):
return self.stack[-1]
def sizeStack(self):
return len(self.s... | [
"noreply@github.com"
] | Storiesbyharshit.noreply@github.com |
514679e96bcbea4084d4e89e8174f9f6f3c1c9db | b3729186993105603a77016d6a911932fec06630 | /manage.py | c08ce0ec89afe776811b072eec0aabbcb0ea1511 | [] | no_license | MichalDrosio/grades | 05425498bbee3873ebe7128f96227491861b1395 | a6fa146ef1ac06f23f423eaf2de43c23f0faf754 | refs/heads/main | 2022-12-30T06:31:04.100722 | 2020-10-16T13:22:10 | 2020-10-16T13:22:10 | 302,673,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'can.settings')
try:
from django.core.management import execute_from_command_line
except ImportEr... | [
"drosio.michal@gmail.com"
] | drosio.michal@gmail.com |
da7ce1aef3312b4041c16a690b5921d4eebe669f | c97b9ae1bf06757ba61f90905e4d9b9dd6498700 | /venv/Lib/site-packages/shapely/algorithms/polylabel.py | 2869a0ab011af07a9cb05229a701e2b1ba8fd562 | [] | no_license | Rahulk1p/image-processor | f7ceee2e3f66d10b2889b937cdfd66a118df8b5d | 385f172f7444bdbf361901108552a54979318a2d | refs/heads/main | 2023-03-27T10:09:46.080935 | 2021-03-16T13:04:02 | 2021-03-16T13:04:02 | 348,115,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:597fdfa5049872301df5a7b2eaca0b4d5ce5dd97bdfc31f574663654b2341f22
size 4675
| [
"rksc.k1p@gmail.com"
] | rksc.k1p@gmail.com |
68989c58d3143706f0ff6d4c919e22855714c894 | 52389ba81fa5abe009b2dee5deb83fabe56982a8 | /kgtk/cli/tail.py | bf327303d5eb480123f504ed88c4d47fdef28569 | [
"MIT"
] | permissive | Qanu-survey/kgtk | 4111a817bd81e9d48b0b0b421f733f2f25e45d7a | 95024bfc61c12282c75d53d256115cdf41837f04 | refs/heads/master | 2023-09-01T03:17:34.712634 | 2021-10-23T00:30:45 | 2021-10-23T00:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,058 | py | """This utility is analogous to the POSIX 'tail' command.
For "-n N", pass just the last N data edges of a KGTK input file to the KGTK output file.
The POSIX 'tail' command's notion of '-n +N' is not supported.
The header record, cotaining the column names, is always passed and is not
included in N.
Multiplier suf... | [
"rogers@isi.edu"
] | rogers@isi.edu |
67fe1507b996d283661d40cca7f5ffaec7b9ad5c | 1f006f0c7871fcde10986c4f5cec916f545afc9f | /apps/ice/plugins/required/plugin_auth_ldap_test.py | 790563538a3ae1cca495208198b7d61596441ab3 | [] | no_license | ptsefton/integrated-content-environment | 248b8cd29b29e8989ec1a154dd373814742a38c1 | c1d6b5a1bea3df4dde10cb582fb0da361dd747bc | refs/heads/master | 2021-01-10T04:46:09.319989 | 2011-05-05T01:42:52 | 2011-05-05T01:42:52 | 36,273,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | #!/usr/bin/env python
# Copyright (C) 2007 Distance and e-Learning Centre,
# University of Southern Queensland
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2... | [
"raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05"
] | raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05 |
7b0151f365485c4c49e2ff58ec33293dc6a48996 | eb99769b7c9e0eb1cf3b88878934a400ba42f0bf | /news/migrations/0002_favoriteitem.py | 054ed15c2d05e485c9d310ce8e7432b2650c6d91 | [] | no_license | Levalife/petsterr2.0 | 3657b200b9e236b81896f4ac104932e85517ceb3 | 43d20e65362596d72942fe624c29fd4f84d90f9a | refs/heads/master | 2023-01-13T04:58:23.496527 | 2018-09-13T09:50:48 | 2018-09-13T09:50:48 | 203,134,329 | 0 | 0 | null | 2023-01-05T21:55:18 | 2019-08-19T08:48:32 | Python | UTF-8 | Python | false | false | 1,358 | py | # Generated by Django 2.0.6 on 2018-07-09 10:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('news', '0001_initial'),
... | [
"levushka14@gmail.com"
] | levushka14@gmail.com |
94e03b2534aad88510168b1b286c1c69c38c9c59 | 7170e8a71c85bf88c43ae7524ffab25cf853b916 | /awswrangler/__metadata__.py | b3ae6c0df2a77d84e65a606e7447b3fca0127a9e | [
"Apache-2.0"
] | permissive | ibanmarco/aws-data-wrangler | b18aa898e2c0f33f225c44cdebf11b25f6637f63 | e99937296075c671e5f8a0998b430879c808687d | refs/heads/master | 2022-12-29T21:18:18.351632 | 2020-10-19T19:13:58 | 2020-10-19T19:13:58 | 289,549,549 | 0 | 0 | Apache-2.0 | 2020-10-19T19:13:59 | 2020-08-22T19:01:24 | Python | UTF-8 | Python | false | false | 286 | py | """Metadata Module.
Source repository: https://github.com/awslabs/aws-data-wrangler
Documentation: https://aws-data-wrangler.readthedocs.io/
"""
__title__: str = "awswrangler"
__description__: str = "Pandas on AWS."
__version__: str = "1.9.6"
__license__: str = "Apache License 2.0"
| [
"igorborgest@gmail.com"
] | igorborgest@gmail.com |
280b193fda89b737c832f4360d1e6a627aa012db | d48b89048d4fe8f09d1fcc1702f89b195186e025 | /portfolio/settings.py | 1bc72b7660ac6fbed74985a0433e7bf586ff4454 | [] | no_license | Aitodev/portfoliotestwithstudents | 833e32f80afc5361204880031bdcbba3af580421 | fb8e220bb504253ce47856ea46e1a28d3b6e46ef | refs/heads/master | 2022-12-11T23:13:00.170658 | 2020-09-24T04:20:11 | 2020-09-24T04:20:11 | 298,162,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the se... | [
"guruitcompany@gmail.com"
] | guruitcompany@gmail.com |
4b61cdfe5342b7c9620f14ce0febe8663b51fffd | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /2t6NvMe27HtSmqC4F_9.py | 5a367fa275b81bfe1cef01467c4a3e4dccdd6e0e | [] | 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 | 1,153 | py | """
Write three functions:
1. boolean_and
2. boolean_or
3. boolean_xor
These functions should evaluate a list of `True` and `False` values, starting
from the leftmost element and evaluating pairwise.
### Examples
boolean_and([True, True, False, True]) ➞ False
# [True, True, False, True] => [True, F... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
41f654ef6d53ddd5b0dd9ad92e5c7c59858f5527 | 741c5c70bf4a0adb05db6b0777c8d07e28eb9cf6 | /lib/python3.4/site-packages/IPython/nbformat/v3/validator.py | bc037cce2b4a6337067ab018bbfd06fe6ddc9505 | [] | no_license | andybp85/hyLittleSchemer | e686d2dc0f9067562367ea1173f275e8e2d2cb85 | af5cb6adf6a196cc346aa7d14d7f9509e084c414 | refs/heads/master | 2021-01-19T07:48:31.309949 | 2015-01-04T00:57:30 | 2015-01-04T00:57:30 | 28,496,304 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,786 | py | from __future__ import print_function
#!/usr/bin/env python
# -*- coding: utf8 -*-
import argparse
import traceback
import json
from IPython.external.jsonschema import Draft3Validator, validate, ValidationError
import IPython.external.jsonpointer as jsonpointer
from IPython.utils.py3compat import iteritems
def nbval... | [
"andy@youshallthrive.com"
] | andy@youshallthrive.com |
101791f75248e23711a3f1cccf9fa0bdf8c2ba68 | c4b8e1e09dedbccd37ca008ecaaca4438610bbaf | /google_or_tools/circuit.py | 6b66df28031dfa54488a90ae0f6ab74b12c7d1e5 | [
"MIT"
] | permissive | hakank/hakank | 4806598b98cb36dd51b24b0ab688f52dadfe9626 | c337aaf8187f15dcdc4d5b09cd2ed0dbdb2e72c2 | refs/heads/master | 2023-08-15T00:21:52.750270 | 2023-07-27T16:21:40 | 2023-07-27T16:21:40 | 11,933,517 | 336 | 97 | MIT | 2023-07-27T11:19:42 | 2013-08-06T20:12:10 | JavaScript | UTF-8 | Python | false | false | 3,206 | py | # Copyright 2010 Hakan Kjellerstrand hakank@gmail.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | [
"hakank@gmail.com"
] | hakank@gmail.com |
aa76d1630dc7831741c9ddd5d4369448e608559c | 750f6d44fc8aa00a2011070af681936c53a6127e | /Question_11_20/q19.py | 4702fdfae98fa1fe8953c0bd6c0cf364aa89eb71 | [] | no_license | ryuseiasumo/Gazoshori100knock | 2aab4bf625183e597a7e8401af4ec1dc67d334ad | 71ae0ce1d712ae5979aa5be3d088290934e26369 | refs/heads/master | 2022-06-19T10:06:16.169369 | 2020-05-10T03:48:17 | 2020-05-10T03:48:17 | 254,810,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,616 | py | import cv2
import sys
sys.path.append("..")
import numpy as np
from Question_01_10.q2 import Gray
def zero_padding(_img, K_size = 5):
pad = K_size//2
out = np.pad(_img, ([pad,pad],[pad,pad]), "constant")
return out
def Log_fillter(_img, K_size = 5, sigma = 3):
img = _img.copy()
pad = K_size//2
... | [
"ryusao5656@icloud.com"
] | ryusao5656@icloud.com |
29c2efec1dab3982a89e48c821ee9c8b852062a3 | f12f299984060186ad8422913ed591cac1fd918d | /miscellaneous/odd_even_jump.py | 44b387b4c86d4f79aee8830bc8d895e058b8bb36 | [] | no_license | pitikdmitry/leetcode | 775f9163850dd5d6cdb971603c6fd4615c7f89d7 | f82a36be6d8dcf842354d759bab98dd915173fd5 | refs/heads/master | 2023-01-23T23:42:01.568390 | 2020-12-07T09:03:45 | 2020-12-07T09:03:45 | 240,458,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | '''
You are given an integer array A. From some starting index, you can make a series of jumps.
The (1st, 3rd, 5th, ...) jumps in the series are called odd numbered jumps, and the (2nd, 4th, 6th, ...) jumps in the series are called even numbered jumps.
You may from index i jump forward to index j (with i < j) in the ... | [
"pitik.dmitry@mail.ru"
] | pitik.dmitry@mail.ru |
5658fc51036576756e2e818068317ea39e8b4c02 | fa5510464ba1573f41c94b4dd652fc684036beac | /FlaskURLShortener/main.py | f965c3e14b301c251cb9108cd21ff0bc8a3700e2 | [] | no_license | AndrewErmakov/WebDevelopmentTraining | 5371265f1737f929c454134a8ed032bdeda5e8ef | 86aeab91157dab57be41b7a10b60535a39ea0a84 | refs/heads/master | 2023-05-11T06:43:14.422330 | 2021-06-27T18:56:13 | 2021-06-27T18:56:13 | 246,019,245 | 1 | 0 | null | 2023-05-01T22:52:00 | 2020-03-09T11:35:41 | Python | UTF-8 | Python | false | false | 1,626 | py | from flask import (
Flask,
render_template,
request,
redirect,
url_for,
flash,
abort,
session,
jsonify)
import json
import os.path
app = Flask(__name__)
app.secret_key = 'shtopor'
@app.route('/')
def index():
return render_template('index.html', codes=session.keys())
@app.r... | [
"andrew.67@list.ru"
] | andrew.67@list.ru |
f509745a558fc1e998a4da4875a540a353adf7ab | afc677459e46635ceffccf60d1daf50e62694557 | /ACME/transform/RandomScaling.py | e48ad04f0eca3ce1ef9b0a164f92ce91f4ee8876 | [
"MIT"
] | permissive | mauriziokovacic/ACME | 056b06da4bf66d89087fcfcbe0fd0a2e255d09f3 | 2615b66dd4addfd5c03d9d91a24c7da414294308 | refs/heads/master | 2020-05-23T23:40:06.667416 | 2020-01-10T14:42:01 | 2020-01-10T14:42:01 | 186,997,977 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import torch
from ..utility.islist import *
from ..math.normvec import *
from .Transform import *
class RandomScaling(Transform):
def __init__(self, attr=['pos', 'norm']):
super(RandomScaling, self).__init__()
self.attr = attr if islist(attr) else [attr]
def __eval__(self, x, *args, *... | [
"maurizio.kovacic@gmail.com"
] | maurizio.kovacic@gmail.com |
71665b70d45138e620cfc606a18cb9ff5b7b5ff2 | 11f7207d5e7c1c6c3329f7ae9d4fa1507c806110 | /test_faker_producer.py | c862e7e93684590ba0067889bc781f55559f764b | [] | no_license | gmdmgithub/pandas-playground | 4a7a654a27acb0d14b442afdee6af22d67f64852 | a24267ab6b79c2351e9220bd11e028a190df21c2 | refs/heads/master | 2022-12-09T20:26:55.233005 | 2019-10-07T15:02:38 | 2019-10-07T15:02:38 | 205,238,397 | 0 | 0 | null | 2022-12-08T06:36:42 | 2019-08-29T19:42:31 | Python | UTF-8 | Python | false | false | 233 | py | import unittest
import faker_producer as fp
class TestFakerProducer(unittest.TestCase):
def test_first_name(self):
self.assertIsNone(fp.first_name(None))
self.assertIsNotNone(fp.first_name('Alex'))
| [
"gmika@interia.pl"
] | gmika@interia.pl |
bc0cc3c965bd0986cdcb2ad70947c4f1c090a79b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02233/s629912444.py | b438e72f5bac040431451dc0f4cb4283a499aed9 | [] | 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 | 127 | py | n=int(input())
a,b=1,1
if n<=1:
print(1)
else:
for i in range(n-1):
c=a+b
a=b
b=c
print(c)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c3ab16220b5902f75045e7bbb8d1a43f0bd8deb9 | 49600905e4aaa4929758997c5d1df09ff693534a | /njunmt/data/text_inputter.py | b6c2046d7ca7f1578310ce5af9768c88b61673fe | [
"Apache-2.0"
] | permissive | zhaocq-nlp/NJUNMT-tf | 3466d967cdc96b2dc6b0fb6a3e769ec1b83010d2 | 01155c740705f1641ebf3134829cea0e212f2d28 | refs/heads/v0.6 | 2018-12-04T18:55:36.641444 | 2018-01-26T06:39:42 | 2018-01-26T06:39:42 | 115,672,915 | 114 | 44 | Apache-2.0 | 2018-01-27T13:54:31 | 2017-12-29T01:17:43 | Python | UTF-8 | Python | false | false | 29,753 | py | # Copyright 2017 Natural Language Processing Group, Nanjing University, zhaocq.nlp@gmail.com.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2... | [
"zhaocq@nlp.nju.edu.cn"
] | zhaocq@nlp.nju.edu.cn |
93f2537480291a57fcaebe66bd44da2a87e8be9e | 2002be85574bcce8b74b4230c8cfef295a104f92 | /deliravision/torch/models/gans/enhanced_super_resolution/__init__.py | bb48bc57ae5a961c578af544e76d84e92f2169f1 | [
"BSD-2-Clause"
] | permissive | delira-dev/vision_torch | 062b259bd1600be75af201ca9649d6582a5c93ac | d944aa67d319bd63a2add5cb89e8308413943de6 | refs/heads/master | 2022-03-05T11:04:39.035448 | 2019-09-27T19:24:50 | 2019-09-27T19:24:50 | 200,359,229 | 5 | 0 | BSD-2-Clause | 2019-08-13T18:33:58 | 2019-08-03T09:52:39 | Python | UTF-8 | Python | false | false | 98 | py | from deliravision.models.gans.enhanced_super_resolution.esr_gan import EnhancedSuperResolutionGAN
| [
"justus.schock@rwth-aachen.de"
] | justus.schock@rwth-aachen.de |
b370208f59708c4250a1eb9f3c929edf4c85b117 | b4849ca0f38c29407a9a88007a7ecb11035851eb | /setup.py | 011c251fcb84d42621397affd3b8ebe1d7cad831 | [
"MIT"
] | permissive | qianshuqinghan/dicom2nifti | e85619051470d01f0db11deffa821edac2cf4c67 | 79ed535835bd3be003d27a03c119d3a1cb46a0ac | refs/heads/master | 2020-04-01T03:58:12.176680 | 2018-10-11T17:39:24 | 2018-10-11T17:39:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | from distutils.core import setup
from setuptools import find_packages
version = '2.0.4'
long_description = """
With this package you can convert dicom images to nifti files.
There is support for most anatomical CT and MR data.
For MR specifically there is support for most 4D data (like DTI and fMRI)
"""
setup(
na... | [
"arne.brys@icometrix.com"
] | arne.brys@icometrix.com |
9dabdb65c1ec3b2d7f17d7d6a72ad18da35458b0 | 93db77d922572c51678d68ca6c62b04b6be0d83a | /code/文本摘要/analyser.py | 25beafdb91bb39225fe2bbf26ba06dd7d1bf7e70 | [] | no_license | gmftbyGMFTBY/BITNLP | 9b80900d9da39fa27fc1cbe25d7329b448e3fcf1 | 41ddcd4df1277ef429d70ddab8cde751cbecced0 | refs/heads/master | 2021-05-08T23:04:36.954316 | 2018-01-31T14:27:46 | 2018-01-31T14:27:46 | 114,972,685 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | #!/usr/bin/python3
# Author : GMFTBY
# Time : 2017.1.23
'''
This script try to use the Edmundson Algorithm to analyse the result of the summary
'''
import TFIDF
def Edmundson(result, answer):
# result 机器摘要
# answer 参考摘要
r_s = set(TFIDF.cut_by_sentence(result))
r_a = set(TFIDF.cut_by_sentence(an... | [
"18811371908@163.com"
] | 18811371908@163.com |
f7e3df9d2c601ce3a1dde43c93a654fc9db98c82 | 2a28a94fc8eb08961e76c61ab73889135153502b | /test/tests_file_controller.py | 7790e78dace3fe43f4a65345c6179958af38d99a | [
"MIT"
] | permissive | aspose-cells-cloud/aspose-cells-cloud-python | 45fc7e686b442302a29a8223e7dbddb71950438c | 270d70ce7f8f3f2ecd9370b1dacfc4789293097e | refs/heads/master | 2023-09-04T01:29:44.242037 | 2023-08-23T13:13:30 | 2023-08-23T13:13:30 | 123,092,364 | 6 | 5 | null | null | null | null | UTF-8 | Python | false | false | 3,261 | py | # coding: utf-8
from __future__ import absolute_import
import os
import sys
import unittest
import warnings
ABSPATH = os.path.abspath(os.path.realpath(os.path.dirname(__file__)) + "/..")
sys.path.append(ABSPATH)
from asposecellscloud.rest import ApiException
from asposecellscloud.apis.cells_api import CellsApi
impo... | [
"roy.wang@aspose.com"
] | roy.wang@aspose.com |
3bcf02b6585973dc6d8ead444f231a4e92e2c4c0 | 79030ecbe234e6906ec4925f0f816e626e30734a | /QQSpider2_new/mongo_temp.py | ac447a05a4be2424ae27873bddaef5746699b13b | [] | no_license | TSLNIHAOGIT/QQSpider | b6789e53aedb17e8f98c73ef83c15e7a1a6986d1 | 6f5c22e0ad0c22d193ec777e9dcb6294a2536934 | refs/heads/master | 2020-04-14T19:09:49.638777 | 2019-01-04T02:39:13 | 2019-01-04T02:39:13 | 164,047,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | from pymongo import MongoClient
import datetime
class MongoManager(object):
def __init__(self, server_ip='localhost', client=None):
print(server_ip)
self.client = MongoClient(server_ip, 27017) if client is None else client
# self.redis_client = redis.StrictRedis(host=server_ip, port=6379, d... | [
"2509072638@qq.com"
] | 2509072638@qq.com |
18e718a6321ba39deab46746fac8de2a9e46c65e | 5dc77586e3e0f9de1f032fd2ca68494d8e58928f | /tests/execution_engine/test_pandas_execution_engine.py | 0410690db1a47d44ad4c414f4ffa0ebb01a80696 | [
"Apache-2.0"
] | permissive | great-expectations/great_expectations | dd7c22e6277d6b08bee3ff38a015e6e8cd434df6 | b0290e2fd2aa05aec6d7d8871b91cb4478e9501d | refs/heads/develop | 2023-09-04T09:30:26.395518 | 2023-09-02T00:00:13 | 2023-09-02T00:00:13 | 103,071,520 | 8,931 | 1,535 | Apache-2.0 | 2023-09-14T19:57:16 | 2017-09-11T00:18:46 | Python | UTF-8 | Python | false | false | 23,770 | py | import os
from typing import Dict, Tuple
from unittest import mock
import pandas as pd
import pytest
import great_expectations.exceptions as gx_exceptions
from great_expectations.compatibility import aws, azure, google
from great_expectations.core.batch_spec import RuntimeDataBatchSpec, S3BatchSpec
# noinspection Py... | [
"noreply@github.com"
] | great-expectations.noreply@github.com |
2440df8c04a8ff17110262f019f91d6b325a3e50 | 716abd9e5ba4b72b72cc5f724a6cc0a6ad4390d1 | /8-Working with Python Modules/37-getpass-module.py | 9b32db78d59efce0394ef03d7cefa784cd9b1224 | [] | no_license | devopstasks/PythonScripting | ac45edd72dc134ec3539b962f02dfc866f365ecf | 48bc37733ae6b3be4e2d64909ffe0962b6908518 | refs/heads/master | 2023-03-29T11:18:01.329452 | 2021-04-07T03:25:20 | 2021-04-07T03:25:20 | 350,388,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | '''
============================
getpass() prompts the usser for a password without echoing.The getpass module provides a secure
way to handle the passsword prompts where program interact with the users via the terminal.
getuser() function displays the login name of the user. This function checks the environment varia... | [
"rpadhan2015@gmail.com"
] | rpadhan2015@gmail.com |
dc5f089560924477896016bb260ab44854dd8657 | 95c09d4e6d9396a0b2c20c14b56d3eb15ba4f20e | /pdm/installers/uninstallers.py | b0e68354e0e49d2b4131d9b4945ee14e161779ca | [
"MIT"
] | permissive | frafra/pdm | 0bc901bd7f4d3cd784fb42051591e95239d03f60 | 12c5c4f91bbb7260be7d93f3e3914ba708309032 | refs/heads/main | 2023-07-13T16:38:47.512887 | 2021-08-20T00:46:27 | 2021-08-20T00:46:27 | 398,244,097 | 0 | 0 | MIT | 2021-08-20T10:48:23 | 2021-08-20T10:48:22 | null | UTF-8 | Python | false | false | 10,490 | py | from __future__ import annotations
import abc
import glob
import os
import shutil
from pathlib import Path
from tempfile import TemporaryDirectory
from typing import Iterable, Type, TypeVar, cast
from pdm import termui
from pdm._types import Distribution
from pdm.exceptions import UninstallError
from pdm.installers.p... | [
"mianghong@gmail.com"
] | mianghong@gmail.com |
af02d32f9a6520f9d256420f9097e7778dad4acd | 39689ee725bc7183d5d59fb34f7d2ffe5fd6ad36 | /ABC_A/ABC142A.py | 826ae07f226d78522817a44bd69684709a6e7e52 | [] | no_license | yu5shi8/AtCoder | b6eb920a9046bdfa98012dd3fc65f75f16214ffe | f9ca69001ece8379e3a70c993c44b540f8be2217 | refs/heads/master | 2021-06-15T17:58:07.027699 | 2021-03-20T14:04:03 | 2021-03-20T14:04:03 | 177,757,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | # -*- coding: utf-8 -*-
# A - Odds of Oddness
# https://atcoder.jp/contests/abc142/tasks/abc142_a
N = int(input())
if N % 2 != 0:
num = N // 2 + 1
else:
num = N // 2
ans = num / N
print('{:.06f}'.format(ans))
# 21:00 - 21:05(AC)
| [
"royal_unicorn411@hotmail.co.jp"
] | royal_unicorn411@hotmail.co.jp |
ed8a4c0c136e477c942f8c3a86c55171d995ac60 | d5be74d2de6fa0ded61d6c3ee7c91a403c0f90db | /tests/behave/features/steps/qrhei.py | d2b7556a64001e67f250b41cc98083845db657ff | [
"MIT"
] | permissive | tmancal74/quantarhei | 43cf9d4be857b8e6db1274ebb8a384f1545cd9ad | fa3042d809005d47106e53609e6a63aa780c477c | refs/heads/master | 2023-05-11T06:57:36.368595 | 2023-05-02T13:10:18 | 2023-05-02T13:10:18 | 63,804,925 | 20 | 22 | MIT | 2022-12-21T14:10:00 | 2016-07-20T18:30:25 | Python | UTF-8 | Python | false | false | 1,870 | py | """
Autogenerated by ghenerate script, part of Quantarhei
http://github.com/tmancal74/quantarhei
Tomas Mancal, tmancal74@gmai.com
Generated on: 2018-06-06 15:00:05
Edit the functions below to give them desired functionality.
In present version of `ghenerate`, no edits or replacements
are ... | [
"tmancal74@gmail.com"
] | tmancal74@gmail.com |
ba9ff63d687e7e07f7e50782cbf97d733c1fef07 | f1a1e764c4ed1238c63c3f4908bd8bebdfb3197f | /opencv-starter/udemy/noise.py | 731911a56b3499f4dbbc9b86c308053b60761107 | [] | no_license | razmik/computer-vision-python | e4eadac1fae4fd0483189a23958ba7c794cbd68e | 21f5557af9804fa01bcfddc085504678828c94ef | refs/heads/master | 2021-01-25T06:35:55.600991 | 2017-06-13T01:40:59 | 2017-06-13T01:40:59 | 93,591,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,281 | py | import numpy as np
import os
from skimage.util import random_noise
import matplotlib.pyplot as plt
import scipy.misc
import cv2
"""
Parameters
----------
image : ndarray
Input image data. Will be converted to float.
mode : str
One of the following strings, selecting the type of noise to add:
'gauss' G... | [
"razmik89@gmail.com"
] | razmik89@gmail.com |
40c3c590320e9ad5cfb2362493d179d28943aeaa | 510a042cc6ead9ee708a85e431bd5d271102da9c | /backend/admin/macro.py | 759fe7ba7c87e9c15bbdb860994805de91adf74c | [
"MIT"
] | permissive | rushilsrivastava/flask-react-spa | 8ad7683f9fc5a8fc2cbc551df6e135b82a8aef19 | 7cf45c92c0db411156fd6fd53c3febc84f81eba7 | refs/heads/master | 2022-11-17T19:03:16.447828 | 2020-07-18T22:44:52 | 2020-07-18T22:44:52 | 265,141,635 | 1 | 0 | MIT | 2020-05-19T04:12:11 | 2020-05-19T04:12:10 | null | UTF-8 | Python | false | false | 691 | py | def macro(name):
"""Replaces flask_admin.model.template.macro, adding support for using
macros imported from another file
For Example::
class FooAdmin(ModelAdmin):
column_formatters = {
'col_name': macro('<macro_import_name_inside_template>.<macro_name>')
}
... | [
"briancappello@gmail.com"
] | briancappello@gmail.com |
27cdacfee09e4e1c2c9057af17e1eb5ef6004409 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/python/b63a17321b0865613f47eca68b65ccbb2894fa9erun.py | b63a17321b0865613f47eca68b65ccbb2894fa9e | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 1,027 | py | """myapp.py
Usage:
(window1)$ python myapp.py -l info
(window2)$ python
>>> from myapp import add
>>> add.delay(16, 16).get()
32
You can also specify the app to use with celeryd::
$ celeryd -l info --app=myapp.celery
"""
import sys
sys.path.insert(0,'lib')
sys.path.insert(0, 'lib/celery')
sys... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
857719d772c77bc910a2a9a26c7b07c6b1f1ca34 | 3395a234e7c80d011607e79c49cd48bf516f256b | /dependencies/jedi/third_party/typeshed/third_party/2/six/moves/xmlrpc_client.pyi | 1b3bd7468cfa146462d762a2a5e7d14d1f238ffb | [
"MIT",
"Apache-2.0"
] | permissive | srusskih/SublimeJEDI | 67329b72e184bc9584843968dcc534a002c797a1 | 95c185d778425c04536d53517b0e3fe6dedf8e59 | refs/heads/master | 2023-08-24T11:30:37.801834 | 2022-08-30T09:04:17 | 2022-08-30T09:04:17 | 6,241,108 | 669 | 125 | MIT | 2022-08-30T09:04:18 | 2012-10-16T08:23:57 | Python | UTF-8 | Python | false | false | 24 | pyi | from xmlrpclib import *
| [
"srusskih@users.noreply.github.com"
] | srusskih@users.noreply.github.com |
4789e8cbb3ac096ea2f1fcca098891ef05488484 | 4e5141121d8b4015db233cbc71946ec3cfbe5fe6 | /samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-ipv4-arp-cfg/nc-update-xr-ipv4-arp-cfg-10-ydk.py | 8fa6211b688d0ec4c961bf8810acadbbe1a699e5 | [
"Apache-2.0"
] | permissive | itbj/ydk-py-samples | 898c6c9bad9d6f8072892300d42633d82ec38368 | c5834091da0ebedbb11af7bbf780f268aad7040b | refs/heads/master | 2022-11-20T17:44:58.844428 | 2020-07-25T06:18:02 | 2020-07-25T06:18:02 | 282,382,442 | 1 | 0 | null | 2020-07-25T06:04:51 | 2020-07-25T06:04:50 | null | UTF-8 | Python | false | false | 2,663 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
e05e89a8cc45a7fd835f8907cb25a8e9832090b9 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/ml/azure-ai-ml/azure/ai/ml/_utils/_storage_utils.py | abe32c22964c58192cf3d71b3014bfcb4b142c57 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-python-cwi",
"PSF-2.0",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"Python-2.0",
"MPL-2.0",
"LicenseRef-scancode-other-copyleft",
... | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 8,103 | py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
import logging
import re
from typing import Optional, Tuple, Union
from azure.ai.ml._artifacts._blob_storage_helper import BlobStorageClie... | [
"noreply@github.com"
] | Azure.noreply@github.com |
74df06b01faeb3ebf08331a61bb0ae9a7f7e4705 | 2b0654193b3090b309a7ea6240fc57be01c0aa43 | /xam/linear_model/auc_regressor.py | a4052bde26ea46ba09fbb8a0517cc1eb01753302 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Python-Repository-Hub/xam | 86043af1cc9edd2c779ecb76e2ad5fe20044d3b0 | 93c066990d976c7d4d74b63fb6fb3254ee8d9b48 | refs/heads/master | 2022-04-07T11:33:10.455356 | 2020-02-04T20:38:45 | 2020-02-04T20:38:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | from functools import partial
import scipy as sp
from sklearn import linear_model
from sklearn import metrics
class AUCRegressor():
def _auc_loss(self, coef, X, y):
fpr, tpr, _ = metrics.roc_curve(y, sp.dot(X, coef))
return -metrics.auc(fpr, tpr)
def fit(self, X, y, verbose=False):
... | [
"maxhalford25@gmail.com"
] | maxhalford25@gmail.com |
87288fea8165e3ccfadfccce0ad9128d031a9760 | 0644c03cc3f89b0fc22d9e548a2d06e6a594f1b4 | /pabi_base/models/res_investment_structure.py | c3ed23de10b6fea7458a17f6f6a0e81a64860fa6 | [] | no_license | phongyanon/pb2_addons | 552fbf4cd904c81a1fd0ac5817dc1cf8f3377096 | 4c69002eeda2de8e806c8a168d8ba9f28527c8d2 | refs/heads/master | 2021-01-19T13:20:53.749866 | 2017-12-20T11:12:51 | 2017-12-20T11:12:51 | 97,184,424 | 0 | 0 | null | 2017-07-14T02:29:53 | 2017-07-14T02:29:52 | null | UTF-8 | Python | false | false | 3,469 | py | # -*- coding: utf-8 -*-
from openerp import fields, models, api
from openerp.addons.pabi_base.models.res_common import ResCommon
CONSTRUCTION_PHASE = {
'1-design': '1-Design',
'2-control': '2-Control',
'3-construct': '3-Construct',
'4-procure': '4-Procurement',
'5-other': '5-Others',
}
# Investme... | [
"kittiu@gmail.com"
] | kittiu@gmail.com |
667b89dec3e842d6015cbe4a72ffe366da95bcf0 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20161010/example_yaml/01cc.py | e9af9b204c556569002ac8f1244ad7c6ae27567b | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 2,719 | py | SafeConstructor.add_constructor(
'tag:yaml.org,2002:null',
SafeConstructor.construct_yaml_null)
SafeConstructor.add_constructor(
'tag:yaml.org,2002:bool',
SafeConstructor.construct_yaml_bool)
SafeConstructor.add_constructor(
'tag:yaml.org,2002:int',
SafeConstructor.cons... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
4746f82e2d5ad8079a4557a45cd4a09eba253752 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-policyinsights/azure/mgmt/policyinsights/models/policy_definition_summary_py3.py | 6ed5afbba2da97206e215dc580d8c25f7cbcb7ab | [
"MIT"
] | permissive | xiafu-msft/azure-sdk-for-python | de9cd680b39962702b629a8e94726bb4ab261594 | 4d9560cfd519ee60667f3cc2f5295a58c18625db | refs/heads/master | 2023-08-12T20:36:24.284497 | 2019-05-22T00:55:16 | 2019-05-22T00:55:16 | 187,986,993 | 1 | 0 | MIT | 2020-10-02T01:17:02 | 2019-05-22T07:33:46 | Python | UTF-8 | Python | false | false | 1,765 | 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
ac521f40077e998cd74f25609bde0b95df5e5258 | 8cdc63b549f5a7f1aca7b476a5a918e5c05e38c5 | /app/account/authentication.py | 8a8033971e3e0561994788b43e15e5dada3c0e08 | [
"MIT"
] | permissive | rogeriopaulos/gep | 984e3bcd8bd4569031577e1d28a8c47c6aace91f | e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2 | refs/heads/main | 2023-08-14T08:41:19.558899 | 2021-09-15T02:51:46 | 2021-09-15T02:51:46 | 402,270,601 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | # -*- coding: utf-8 -*-
from django.contrib.auth.models import User
class EmailAuthBackend(object):
def authenticate(self, username=None, password=None):
try:
user = User.objects.get(email=username)
if user.check_password(password):
return user
return ... | [
"rogeriopaulos@gmail.com"
] | rogeriopaulos@gmail.com |
06ae159ec81acf80cbb7b8a38ccee9c9863f9f61 | c22da67f4b1ac5e7fc28a9f81bf9fccefb33308e | /campus/mi/2019_fall_1.py | 6ed4262c1b44d7c133b63eba4ff47ead975e8d70 | [] | no_license | iamkissg/nowcoder | 3b9d7ffffaba2c1ee43647595ae86619e2efb504 | 9b7e590d8f2e200d1ac98672d10f3ae9216a13e1 | refs/heads/master | 2020-05-04T10:35:55.606425 | 2020-04-28T12:49:52 | 2020-04-28T12:49:52 | 179,091,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | def is_huiwen(ll):
len_ll = len(ll)
if len_ll == 0:
# 假定空链表是回文的
# raise ValueError('Empty input.')
return True
if len_ll == 1:
return True
for i in range(len_ll//2+1):
if ll[i] != ll[len_ll-1-i]:
return False
else:
return True
ll = in... | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
93facca6d7d15082320c04bb9f392522ee8a120d | cf9103d28a1c09bd9d7aeffdb43e95961ae50f5d | /LSTM/data.py | 00861d2151263c1a890e2879b64ba862b2e9ca6a | [] | no_license | AhmedSSoliman/NLP_models | d308993c07edb62809140952be304f222328b46c | c223d2398e55a6a87d45cf8c3ffed543a649bda4 | refs/heads/master | 2023-04-17T05:41:38.261185 | 2021-04-23T11:06:17 | 2021-04-23T11:06:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,978 | py | import os
import torch
#from .tokenizer import tokenize
from collections import defaultdict
import logging
from tqdm import tqdm
#------------------------------------------------------------------------
from nltk.tokenize import sent_tokenize
from nltk.tokenize import word_tokenize
import os
import re
import inflect
... | [
"alexandre-pasquiou@orange.fr"
] | alexandre-pasquiou@orange.fr |
d6bebea6f5eb3b2edc9a167664fd7feeb9a2d97a | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /Wicd/rev519-568/right-branch-568/wicd/backends/be-ip4network/wired/ui/gtkui.py | cdc56a51e6c38b0cc00182b964bced86b604f3bc | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | import sys, os
import logging
sys.path.insert(0, os.path.abspath(
os.path.join(os.path.dirname(
os.path.realpath(__file__)
),
'../..')))
logging.debug(sys.path[0])
from gtkuibase import ShortInterfaceUiBase
sys.path.pop(0)
class WiredShortInterfaceUi(ShortInterfaceUiBase):
def _... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
668473f0b568f0a3a6cf3a6c8bf0d3e79566f6c3 | 0bc777a57e39c466a9482af9a6eda698ab3c1437 | /HeavyIonsAnalysis/JetAnalysis/python/jets/akPuSoftDropZ05B153PFJetSequence_pPb_data_cff.py | be94241948e1f5b33e3b6f3cb936c7128ae735a8 | [] | no_license | stahlleiton/cmssw | 3c78d80b9372fdf2a37f424372504b23c9dc4f78 | fcfda663dc8c315b505eb6bcc7e936401c01c4d1 | refs/heads/EWQAnalysis2017_8030 | 2023-08-23T13:50:40.837198 | 2017-11-09T17:45:31 | 2017-11-09T17:45:31 | 45,795,305 | 0 | 3 | null | 2021-04-30T07:36:28 | 2015-11-08T19:28:54 | C++ | UTF-8 | Python | false | false | 17,572 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"marta.verweij@cern.ch"
] | marta.verweij@cern.ch |
634bb7fc2f31ce753fb555853c2a0acf4d53bf66 | d7a68c636e6128533b17975655bd6b46ed222916 | /adapter-transformers-adapters3.1.0/src/transformers/models/vit/convert_dino_to_pytorch.py | 8922684594a59e4e60aad1a5961fa1ac3a7bfe5f | [
"Apache-2.0"
] | permissive | cambridgeltl/autopeft | 69179f8faf2cc4d2164ff78e544dc3fe2d39c331 | d8ad6bea93aa413a54d0e09fe25bdd62b46cfcf5 | refs/heads/main | 2023-05-23T09:21:59.912941 | 2023-04-25T14:35:31 | 2023-04-25T14:35:31 | 594,316,585 | 26 | 4 | Apache-2.0 | 2023-04-25T14:35:32 | 2023-01-28T06:39:25 | Python | UTF-8 | Python | false | false | 8,856 | py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"hz416@cam.ac.uk"
] | hz416@cam.ac.uk |
15fd3e2083ed3d05dd57c9731f3d952acc1107d6 | 674e5072af9433f0f41d9520a260acf4ac4616f8 | /mysite/mysite/views.py | ef985e7f90c71c47ff414656b28b0326f0966563 | [] | no_license | dh-linux/eg_django | 0446b62e2a691951ae7de30bfd3e2d1b526dd112 | ed225eedc50255303a8305b667c5f57ec367ae71 | refs/heads/master | 2021-04-15T03:33:38.693205 | 2016-08-03T09:08:53 | 2016-08-03T09:08:53 | 64,833,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from django.http import HttpResponse
from django.shortcuts import render_to_response, render
def search_form(request):
return render_to_response('search_form.html')
def search(request):
if 'q' in request.GET:
message = 'You search : %s' % request.GET['q']
else:
message = 'You submitted an empty form.'
return ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9fe28abefb259f74efd5f4ae8626643f992ca4fd | 60ca69e2a4c6b05e6df44007fd9e4a4ed4425f14 | /beginner_contest/165/B.py | 1933a54f16ef1d57c4ed38dcabb1ebdb098de06d | [
"MIT"
] | permissive | FGtatsuro/myatcoder | 12a9daafc88efbb60fc0cd8840e594500fc3ee55 | 25a3123be6a6311e7d1c25394987de3e35575ff4 | refs/heads/master | 2021-06-13T15:24:07.906742 | 2021-05-16T11:47:09 | 2021-05-16T11:47:09 | 195,441,531 | 0 | 0 | MIT | 2021-05-16T11:47:10 | 2019-07-05T16:47:58 | Python | UTF-8 | Python | false | false | 210 | py | import sys
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
x = int(input())
year = 1
total = 100
while True:
total = int(total * 1.01)
if total >= x:
break
year += 1
print(year)
| [
"204491+FGtatsuro@users.noreply.github.com"
] | 204491+FGtatsuro@users.noreply.github.com |
3bd4055b0aefecf40596614a4fb6c677aafaabd1 | 4ef31d0f04f4d6d7725a530bffb1a4b115283d6f | /site/_build/jupyter_execute/notebooks/08-intro-nlp/05-bag-popcorn-bag-words.py | a280b560fcd100111038cdb1565d87ecf0e99d42 | [
"MIT"
] | permissive | rpi-techfundamentals/introml_website_fall_2020 | 98bb1cc4712f416b393b996b849f39c660167057 | b85e5c297954bcaae565a8d25a18d2904d40f543 | refs/heads/master | 2023-07-14T16:49:21.625260 | 2020-12-10T17:51:34 | 2020-12-10T17:51:34 | 287,033,509 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 11,803 | py | [](http://rpi.analyticsdojo.com)
<center><h1> Bag of Words</h1></center>
<center><h3><a href = 'http://rpi.analyticsdojo.com'>rpi.analyticsdojo.com</a></h3></center>
This is adopted from: [Bag of Words Me... | [
"jkuruzovich@gmail.com"
] | jkuruzovich@gmail.com |
02662542389abbb0e92a4e8e6133371ba0804813 | 41209325da09107de74e5864821e7e429f16df6b | /h2o-py/tests/testdir_demos/notebooks/pyunit_prep_airlines.py | 2392e0832111bebbb52d2087ddd2c48f25f9a74b | [
"Apache-2.0"
] | permissive | Sam7/h2o-3 | 8719fdced9f738db95f525165806dd7e585c53c6 | c107d383ea4e201eea6e3e30129ed3d2748d6e61 | refs/heads/master | 2021-01-18T06:49:02.662728 | 2015-08-04T03:28:38 | 2015-08-04T03:28:38 | 40,160,767 | 0 | 0 | null | 2015-08-04T03:14:37 | 2015-08-04T03:14:37 | null | UTF-8 | Python | false | false | 342 | py | import sys
sys.path.insert(1, "../../../")
import h2o
def prep_airlines(ip,port):
# Connect to a pre-existing cluster
h2o.init(ip,port)
# execute ipython notebook
h2o.ipy_notebook_exec(h2o.locate("h2o-py/demos/prep_airlines.ipynb"),save_and_norun=False)
if __name__ == "__main__":
h2o.run_test(sys... | [
"eric.eckstrand@gmail.com"
] | eric.eckstrand@gmail.com |
66f954f76279951de08e260c1e5652866f7842e0 | b3879bc761ac38dab903da57c4061ad79fd70c6d | /курсы пайтон модуль 4/задание 26.py | 2b39f54e860189efac740823746dfecbc9b1c91b | [] | no_license | Ruslan5252/all-of-my-projects-byPyCharm | 4df70cc3a31c4a5d97560fa858a706edcc856299 | 817d5f711408590ea141590ae52c6d888dfa2015 | refs/heads/master | 2023-05-03T01:06:30.156731 | 2021-05-29T13:51:16 | 2021-05-29T13:51:16 | 371,970,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | n = int(input("Введите количество элементов массива = "))
b = []
m=""
sum = 0
count = 0
for i in range(n):
a = int(input("введите число = "))
b.append(a)
print(b)
m=int(input("введите число m = "))
for i in b:
if i>m:
count+=1
sum+=i
aver=sum/count
print(aver) | [
"r.u.s_2000@mail.ru"
] | r.u.s_2000@mail.ru |
3e54db497d49da0138de012bb12ff3abbe2a31b7 | 08401cff6a54ca358d3d563c0cbc1acf26e9960d | /Simulation_Tool/New_SimulationEnvironment_Ladybug/Sensitivity/SensitivityEnvelopAnnual.py | 99fc1eb259284e048e510c5edccd8aab1fe972b9 | [] | no_license | architecture-building-systems/ASF_Simulation | 5f55ba474a06d48e4e629db77e794874cc376d44 | 8cabb20da689f61891966dfa5d15cc82771050d3 | refs/heads/main | 2022-10-28T08:27:10.781156 | 2022-10-03T19:19:19 | 2022-10-03T19:19:19 | 46,800,943 | 9 | 3 | null | 2022-10-03T19:19:20 | 2015-11-24T15:36:58 | HTML | UTF-8 | Python | false | false | 6,604 | py | """
Created on March 20 2017
@author: Prageeth Jayathissa
"""
import unittest
import os
import sys
import pandas as pd
import time
import numpy as np
from j_paths import PATHS
paths = PATHS()
sys.path.insert(0, paths['5R1C_ISO_simulator'])
sys.path.insert(0, paths['main'])
from SimulationClass import ASF_Simulatio... | [
"p.jayathissa@gmail.com"
] | p.jayathissa@gmail.com |
2317d058180aaf1d421414b1a7f8fef85d9d7ffc | fe9573bad2f6452ad3e2e64539361b8bc92c1030 | /Assignment/data_analysis/proving_fairness.py | f22b4ba82046ae8cb0861fd1f78fe43ddc168c11 | [] | no_license | OceanicSix/Python_program | e74c593e2e360ae22a52371af6514fcad0e8f41f | 2716646ce02db00306b475bad97105b260b6cd75 | refs/heads/master | 2022-01-25T16:59:31.212507 | 2022-01-09T02:01:58 | 2022-01-09T02:01:58 | 149,686,276 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from card_analyze import Card_analysis
#create a deck with 4 suits in it
a=Card_analysis(4)
#show the diagram
a.draw_average_value() | [
"byan0007@student.monash.edu"
] | byan0007@student.monash.edu |
d459d0fd5da7c1b4733bab84227575675b742b81 | 3a8110706a67e111305a943ab7590d94782b0f6a | /temp_file.py | 32a89fc94f6b8f71abd85a5d234030af2d27d891 | [] | no_license | pawwahn/python_practice | 41fac14f7107fd8f7c8a33fa7e09561f24bf9376 | 9e6564582abeb9f65c95de86121199939d0ee388 | refs/heads/master | 2022-10-04T10:32:49.952690 | 2022-09-15T09:43:18 | 2022-09-15T09:43:18 | 223,134,205 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | text = 'asd sdhosa afo hasdfoi fasd '
pattern = 'afo'
def KnuthMorrisPratt(text, pattern):
'''Yields all starting positions of copies of the pattern in the text.
Calling conventions are similar to string.find, but its arguments can be
lists or iterators, not just strings, it returns all matches, not just
... | [
"pavan.skt@gmail.com"
] | pavan.skt@gmail.com |
a5256482ac3f5b173c2f34566009130210b5e73d | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/arc/arc044/D/answers/693063_tnk0812.py | 808ab63297d877c466eb4ff8d1c1b5f6b9ceab7a | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | def main():
R = 10**9+7
N = int(input())
a = list(map(int, input().split(" ")))
if a[0] != 0:
return 0
amax = max(a)
h = [0] * (amax+1)
for i in a:
h[i] += 1
if h[0] != 1:
return 0
ans = 1
b = 1
for i in h[1:]:
if i == 0:
return ... | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
bc41d44f837d58b0e1bf29a353682983da671142 | 863bd9a0e98ea98615296bc498f0225d5864406a | /fhir/resources/STU3/structuredefinition.py | abeb94053768539c4b83bd8055197f3f8ec16474 | [
"BSD-3-Clause"
] | permissive | BTsykaniuk/fhir.resources | ec6087514c65a10941a79716b7eb6ae1ed1745ef | 4e78732950150de3de98698fab02d9aee5e1f3e4 | refs/heads/main | 2023-04-14T14:41:56.046039 | 2021-05-03T09:32:43 | 2021-05-03T09:32:43 | 363,876,237 | 0 | 0 | NOASSERTION | 2021-05-03T09:17:12 | 2021-05-03T09:17:11 | null | UTF-8 | Python | false | false | 30,076 | py | # -*- coding: utf-8 -*-
"""
Profile: http://hl7.org/fhir/StructureDefinition/StructureDefinition
Release: STU3
Version: 3.0.2
Revision: 11917
Last updated: 2019-10-24T11:53:00+11:00
"""
import typing
from pydantic import Field, root_validator
from pydantic.error_wrappers import ErrorWrapper, ValidationError
from pydan... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
339ee1a6ae6f55d7ed98ae1c6906e31fd243914d | 91438802ee114b2fb945aae4105a17993dd6953d | /build/learning_ros_noetic/Part_1/example_ros_service/catkin_generated/pkg.installspace.context.pc.py | f8ed8bfecc5e6967674ef6da63cd664c6b2eeaca | [] | no_license | AlexLam616/Baxter-robot | 3a4cef31fe46da0fdb23c0e3b5808d84b412d037 | d10fdcd35f29427ca14bb75f14fa9c64af3b028c | refs/heads/master | 2023-05-12T01:25:56.454549 | 2021-05-25T02:02:09 | 2021-05-25T02:02:09 | 367,070,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;nav_msgs;geometry_msgs;message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX =... | [
"1155135145@link.cuhk.edu.hk"
] | 1155135145@link.cuhk.edu.hk |
ac99a5886f3a2a1b61a3b4229237a77c3f47b84d | c7014b5d347d63db9293260173642e41a3c73ccc | /.history/bacalab/settings/production_20190521163656.py | b2c5a0106006969ed89b327922ea11aafcd1ea18 | [] | no_license | helder-a-reis/bacalab | 6f03d218d6234fc656814f443afecf9b28f67e59 | 2b34c9ff6f303561d7b787d766d6f20d849bc3f1 | refs/heads/master | 2023-04-27T09:52:29.493627 | 2019-06-13T14:06:38 | 2019-06-13T14:06:38 | 171,745,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | from .base import *
import django_heroku
ALLOWED_HOSTS = ['bacalab.herokuapp.com']
# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql',
'NAME': 'bacalab',
'USER': os.environ.get('DB_USER'),
... | [
"helderreis78@gmail.com"
] | helderreis78@gmail.com |
72b60e128ce87535ce290e408646476df218ff65 | 3ea75e35408de10bba250f52120b5424bd50fdd9 | /py/plotDensComparisonDF.py | 307a27df27548ae09a70af92516d47b63d31d9a7 | [] | no_license | jobovy/segue-maps | 9848fe59ee24a11a751df4f8855c40f2480aef23 | ed20b1058a98618700a20da5aa9b5ebd2ea7719b | refs/heads/main | 2022-11-30T15:27:08.079999 | 2016-12-20T04:28:26 | 2016-12-20T04:28:26 | 40,663,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,592 | py | #ython plotDensComparisonDF.py --type=z --dfeh=1. --dafe=0.6 -f ../fakeDF/fakeDF_dfeh1._dafe0.6_q0.7.fits --savenorm=../fakeDF/fakeDFFit_dfeh1._dafe0.6_q0.7_justpot_norm.sav --nmcv=100 --minndata=10000 ../figs/fakeDFFit_dfeh1._dafe0.6_q0.7_
import os, os.path
import numpy
import cPickle as pickle
from optparse import ... | [
"jo.bovy@gmail.com"
] | jo.bovy@gmail.com |
ec626dc70cae86ce5e4964a304e8be838b6eefa0 | 8ce656578e04369cea75c81b529b977fb1d58d94 | /bank_guarantee/management/commands/export_bank_config.py | c52f95d875669bff83d718689ce7e6d95ae76981 | [] | no_license | JJvzd/django_exp | f9a08c40a6a7535777a8b5005daafe581d8fe1dc | b1df4681e67aad49a1ce6426682df66b81465cb6 | refs/heads/master | 2023-05-31T13:21:24.178394 | 2021-06-22T10:19:43 | 2021-06-22T10:19:43 | 379,227,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,898 | py | from django.core.management import BaseCommand
from bank_guarantee.models import RequestPrintForm, OfferPrintForm
from clients.models import Bank
class Command(BaseCommand):
""" команда в процессе разработки """
help = 'Экспортирует конфиг банка по коду банка'
def add_arguments(self, parser):
pa... | [
"javad@MacBook-Pro-Namig.local"
] | javad@MacBook-Pro-Namig.local |
7fad11fabe4b33ddbf34788cfb4383664f2e3679 | 298266f026dd1762f4469f3b1343d0fbde51076c | /core/environnement/base/order_n_price_managment.py | 1a3c681f97e27bcec4209428ba0883e1b93e1b2c | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | elvis121193/TradzQAI | 721f7e57cfb9fc1014fc0f7dc4936f9fe6978b43 | 5cb8775833cb438e7e57a676702d05ab1733edb6 | refs/heads/master | 2020-04-01T20:46:49.304246 | 2018-10-08T10:52:11 | 2018-10-08T10:52:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | import time
class onpm(object):
def __init__(self):
self.orders = []
self.order_number = 0
self.decay = 0.01
self.max_pip_diff = 5
def bestPriceFunc(self, bids, asks, order, side, tid):
id = tid
if not tid:
id = self.order_number
self.o... | [
"awakeproduction@hotmail.fr"
] | awakeproduction@hotmail.fr |
40e5c01b7b17b21b34690cf16d24daa0d37bb3b8 | 023763d9f86116381f5765c51fb8b403e8eef527 | /BootCamp_easy/agc012_a.py | c741541fb1fcb7ee964e0dfb2106f92bccd6d35c | [] | no_license | Hilary02/atcoder | d45589682159c0f838561fc7d0bd25f0828e578b | 879c74f3acc7befce75abd10abf1ab43967fc3c7 | refs/heads/master | 2021-07-18T11:34:22.702502 | 2021-07-11T09:04:12 | 2021-07-11T09:04:12 | 144,648,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | n = int(input())
la = [int(w) for w in input().split()]
la.sort()
ans = 0
for i in range(1, n+1):
ans += la[-2 * i]
print(ans)
| [
"c011605154@edu.teu.ac.jp"
] | c011605154@edu.teu.ac.jp |
9c5152d4fff88be75490b75d261de4694934beb3 | 4fc016459e4c78680c61488c771eb6b7eb20d5fe | /Python-Algorithms-DataStructure/src/leet/166_FractiontoRecurringDecimal.py | b2a0d7150c268c7ce26934a19ec65bceec14faa7 | [] | no_license | coremedy/Python-Algorithms-DataStructure | 7c318de68fd9694377a0a4369d8dbeb49e1e17aa | 3873502679a5def6af4be03028542f07d059d1a9 | refs/heads/master | 2021-01-25T07:34:17.714241 | 2015-11-05T10:17:40 | 2015-11-05T10:17:40 | 27,949,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | '''
Created on 2015-08-30
'''
class Solution(object):
def fractionToDecimal(self, numerator, denominator):
"""
:type numerator: int
:type denominator: int
:rtype: str
"""
if denominator == 0:
return None
sign, numerator, denominator =... | [
"coremedy@hotmail.com"
] | coremedy@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.