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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
03a090ef84ebad55c3aca6d91af5ba0140a7717e | 0d8ee78f61660343e5feec41a53269dbf5585fa3 | /Demo11/detect_nan.py | 17ba54a1b6bb67f238e3c1cd79adac06a036808d | [] | no_license | x-jeff/Python_Code_Demo | 41b033f089fa19d8c63b2f26bf66ef379738c4ad | 9bc458b08cfae0092e8f11a54031ca2e7017affc | refs/heads/master | 2023-07-29T16:34:34.222620 | 2023-07-09T10:38:23 | 2023-07-09T10:38:23 | 176,306,727 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,509 | py | import numpy as np
import pandas as pd
#使用np.nan表示缺失值
print(np.nan)
#构建一组含有缺失值的数据
df=pd.DataFrame([["Tim","M",24,169,100],["Jack","M",np.nan,177,140],["Jessy","F",21,162,np.nan],["Mary","F",23,159,87]])
#赋予列名
df.columns=["Name","Gender","Age","Height","Weight"]
print(df)
#判断是否存在缺失值
#检查第1行是否存在缺失值
print(df.loc[0].isnu... | [
"[email protected]"
] | |
79ca884a8a20ea2993f277d5ff1ca22a268617bf | e0c8662a56d89730043146ddc340e9e0b9f7de72 | /plugin/1193d0d2-1596.py | 393dab9cbff6fc791ad1a466479311cea838e4a3 | [] | no_license | izj007/bugscan_poc | f2ef5903b30b15c230b292a1ff2dc6cea6836940 | 4490f3c36d4033bdef380577333722deed7bc758 | refs/heads/master | 2020-09-22T17:20:50.408078 | 2019-01-18T09:42:47 | 2019-01-18T09:42:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | #coding:utf-8
from lib.curl import *
# -*- coding: utf-8 -*-
"""
POC Name : WordPress eShop Plugin 6.2.8 Multiple Cross Site Scripting Vulnerabilities
From : http://www.exploit-db.com/exploits/36038/
"""
def assign(service, arg):
if service == "wordpress":
return True, arg
def audit(arg):
payloads = (... | [
"[email protected]"
] | |
4019557ed0cfcbf40d9968b2c7b943898e927a02 | 8b5d68c9398186cae64dbcc5b293d62d69e1921d | /src/python/knowledge_base/resolvers/external_uri_resolver.py | 04e75899a585cc5c3a751bae5e325ba7624f7e60 | [
"Apache-2.0"
] | permissive | reynoldsm88/Hume | ec99df21e9b9651ec3cacfb8655a510ba567abc9 | 79a4ae3b116fbf7c9428e75a651753833e5bc137 | refs/heads/master | 2020-07-24T21:28:39.709145 | 2019-07-10T15:43:24 | 2019-07-10T15:43:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,032 | py |
from knowledge_base import KnowledgeBase
from kb_resolver import KBResolver
from utilities.awake_db import AwakeDB
class ExternalURIResolver(KBResolver):
def __init__(Self):
pass
def resolve(self, kb, awake_db):
print "ExternalURIResolver RESOLVE"
resolved_kb = KnowledgeBase()
... | [
"[email protected]"
] | |
be3e5ac6319e9a7c5be95767c07575e031faad4e | 06f7ffdae684ac3cc258c45c3daabce98243f64f | /vsts/vsts/service_endpoint/v4_1/models/__init__.py | 47ad6d9342d71732fff5ee083b4be1aa50f569bb | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | kenkuo/azure-devops-python-api | 7dbfb35f1c9637c9db10207824dd535c4d6861e8 | 9ac38a97a06ee9e0ee56530de170154f6ed39c98 | refs/heads/master | 2020-04-03T17:47:29.526104 | 2018-10-25T17:46:09 | 2018-10-25T17:46:09 | 155,459,045 | 0 | 0 | MIT | 2018-10-30T21:32:43 | 2018-10-30T21:32:42 | null | UTF-8 | Python | false | false | 3,189 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"[email protected]"
] | |
0c0bbbb50d63c87813b656441d38ee608227be9a | 8b7778d3c65f3688105e43718152da2c734ffa26 | /3.Application_Test/cases/YBJZ_Test/Pay_Test.py | 1fa5b3afab9534fdabc988bd759629709f20a863 | [] | no_license | zzworkaccount/OpenSourceLibrary | ab49b3f431c0474723dfad966ca09e29b07527eb | 0f99f881eb8a1f4ddebbc5e7676289d01e6ffe19 | refs/heads/main | 2023-01-29T05:02:56.341004 | 2020-12-03T12:05:59 | 2020-12-03T12:05:59 | 315,920,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | # 支出
import unittest
from time import sleep
from lib.Tally.Action import Action
class Test_Pay(unittest.TestCase):
def setUp(self):
self.lg = Action()
self.driver = self.lg.driver
def test_pay(self ):
"""支出"""
self.lg.do_pay()
sleep(1)
count = 0
# 获取... | [
"[email protected]"
] | |
9552995971c569ff4f8f6eca60a9625ec1a652e2 | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /pyapps/sampleapp/impl/action/core/job/getXMLSchema/1_job_getXMLSchema.py | 02e7f9e335610b4d5303567e07cd2003e0de3f8c | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 147 | py | __author__ = 'incubaid'
__priority__= 3
def main(q, i, p, params, tags):
params['result'] = ''
def match(q, i, params, tags):
return True | [
"devnull@localhost"
] | devnull@localhost |
fe4a67605c3ed774089ea1c726953328a7291e58 | 15581a76b36eab6062e71d4e5641cdfaf768b697 | /LeetCode_30days_challenge/2020/May/First Bad Version.py | 714967601f2406326187fa685495ac2b041efcf6 | [] | no_license | MarianDanaila/Competitive-Programming | dd61298cc02ca3556ebc3394e8d635b57f58b4d2 | 3c5a662e931a5aa1934fba74b249bce65a5d75e2 | refs/heads/master | 2023-05-25T20:03:18.468713 | 2023-05-16T21:45:08 | 2023-05-16T21:45:08 | 254,296,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | def firstBadVersion(n):
l = 0
r = n
while l <= r:
m = l + (r-l) // 2
if isBadVersion(m):
r = m-1
ans = m
else:
l = m+1
return ans
| [
"[email protected]"
] | |
48a0486d3ecc70762a4a94e5d1b121b090b5cb54 | 7357d367b0af4650ccc5b783b7a59090fdde47bb | /workalendar/usa/new_jersey.py | 9bd916ca02e66d3026491150081c6ec359dc4184 | [
"MIT"
] | permissive | BarracudaPff/code-golf-data-python | fb0cfc74d1777c4246d56a5db8525432bf37ab1a | 42e8858c2ebc6a061012bcadb167d29cebb85c5e | refs/heads/main | 2023-05-29T05:52:22.856551 | 2020-05-23T22:12:48 | 2020-05-23T22:12:48 | 378,832,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from ..registry_tools import iso_register
from .core import UnitedStates
@iso_register("US-NJ")
class NewJersey(UnitedStates):
"""New Jersey"""
include_good_friday = True
include_election_day_every_year = True | [
"[email protected]"
] | |
85680cb8d5a23c4dd6047fa67e2115f85b2e1ca1 | ca17bd80ac1d02c711423ac4093330172002a513 | /find_leaves/FindLeaves.py | abce20d217199c2a3c79ac375c09f9dd3dcd5f44 | [] | no_license | Omega094/lc_practice | 64046dea8bbdaee99d767b70002a2b5b56313112 | e61776bcfd5d93c663b247d71e00f1b298683714 | refs/heads/master | 2020-03-12T13:45:13.988645 | 2018-04-23T06:28:32 | 2018-04-23T06:28:32 | 130,649,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | import sys
sys.path.append("/Users/jinzhao/leetcode/")
from leetcode.common import *
class Solution(object):
def isLeaf(self, root):
if root:
return not root.left and not root.right
return False
def deleteLeaf(self, root, solution):
if root:
if root.left:
... | [
"[email protected]"
] | |
52f0bbbdbef2c865ea39664ab4a748fe1eddfdcd | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/quantum/azext_quantum/commands.py | 8dba4d309945625ee9a7487899150bcbc8cc9495 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 5,417 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"[email protected]"
] | |
a4abde74b1d48317424e2021da5db8a2da70ee28 | 14e36010b98895e08bd9edfcbc60dce30cbfb82b | /oneflow/python/test/modules/test_argmax.py | 2f6e97661d6adf0677afe950e239b03a88c32db5 | [
"Apache-2.0"
] | permissive | duzhanyuan/oneflow | a9719befbfe112a7e2dd0361ccbd6d71012958fb | c6b47a3e4c9b5f97f5bc9f60bc1401313adc32c5 | refs/heads/master | 2023-06-21T20:31:55.828179 | 2021-07-20T16:10:02 | 2021-07-20T16:10:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,326 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | [
"[email protected]"
] | |
aebfc07c7c0647c4cf50ffd3727a29c3a1a1bbf5 | 8dbb2a3e2286c97b1baa3ee54210189f8470eb4d | /kubernetes-stubs/client/models/v1_portworx_volume_source.pyi | b25062ce2dce6c1b5d1c6d991321863933c2432c | [] | no_license | foodpairing/kubernetes-stubs | e4b0f687254316e6f2954bacaa69ff898a88bde4 | f510dc3d350ec998787f543a280dd619449b5445 | refs/heads/master | 2023-08-21T21:00:54.485923 | 2021-08-25T03:53:07 | 2021-08-25T04:45:17 | 414,555,568 | 0 | 0 | null | 2021-10-07T10:26:08 | 2021-10-07T10:26:08 | null | UTF-8 | Python | false | false | 565 | pyi | import datetime
import typing
import kubernetes.client
class V1PortworxVolumeSource:
fs_type: typing.Optional[str]
read_only: typing.Optional[bool]
volume_id: str
def __init__(
self,
*,
fs_type: typing.Optional[str] = ...,
read_only: typing.Optional[bool] = ...,
... | [
"[email protected]"
] | |
949ad3a1372e9c39832994758556504087695f10 | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Dsz/PyScripts/Lib/dsz/mca/survey/cmd/registryquery/__init__.py | 83cc81184494f05024215cd8ec32607526a0ff9d | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 362 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: __init__.py
from errors import *
from types import *
from type_Params import *
from type_KeyInfo import *
from typ... | [
"[email protected]"
] | |
1e749a5b71a5aaeafceab5a016ab8fc7637dfd16 | 8d5c9369b0fb398c5a6078f6cac43ba8d67202fa | /bscan.spec | 279792b27d524a1ad2c5efe84281796470e6b245 | [
"MIT"
] | permissive | raystyle/bscan | 45191c2c0d26fe450c5d95567b83d47dfcb4c692 | 1edf0c0e738153a294d5cdc1b69d8f167152d5a2 | refs/heads/master | 2020-04-25T03:15:37.186913 | 2019-02-09T22:23:44 | 2019-02-09T22:23:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | spec | # -*- mode: python -*-
block_cipher = None
added_files = [
('bscan/configuration/', 'configuration',),
]
a = Analysis(
['bscan/__main__.py'],
binaries=[],
datas=added_files,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_pri... | [
"[email protected]"
] | |
e16d5a370589fd4fcb8ab0377701d48a1d1d0853 | e21c70d5b03633b4e0a89dfccb0cb8ccd88612d0 | /venv/lib/python3.5/site-packages/celery/worker/autoscale.py | e21f73a0b61f250f23f6950d29d8adb767250aa1 | [
"MIT"
] | permissive | LavanyaRamkumar/Networking-app_Dynamic-Quiz | 4d5540088b1e2724626dda8df0fd83442391b40f | 4de8329845712864d3cc8e8b81cfce5a1207224d | refs/heads/master | 2023-02-09T12:08:19.913354 | 2019-10-26T04:23:54 | 2019-10-26T04:23:54 | 173,337,916 | 1 | 1 | MIT | 2023-02-02T04:48:55 | 2019-03-01T16:56:13 | Python | UTF-8 | Python | false | false | 4,883 | py | # -*- coding: utf-8 -*-
"""Pool Autoscaling.
This module implements the internal thread responsible
for growing and shrinking the pool according to the
current autoscale settings.
The autoscale thread is only enabled if
the :option:`celery worker --autoscale` option is used.
"""
from __future__ import absolute_import... | [
"[email protected]"
] | |
466965dcbb3fd44bda5de7f81e42d31ae7e715c4 | c5a360ae82b747307b94720e79e2e614d0c9f70f | /step2_process_data_format_by_keras.py | 818e00fc1f1b23a04f91efd4f4c676aa8a55aca4 | [] | no_license | gswyhq/chinese_wordseg_keras | cf99156773d4555acddf3163457f9bc224a16477 | 7f1de5fb1e3372fac9df75d3d839aa92fa4601c9 | refs/heads/master | 2020-05-02T13:49:32.099129 | 2019-03-28T14:07:46 | 2019-03-28T14:11:49 | 177,993,542 | 0 | 0 | null | 2019-03-27T12:49:37 | 2019-03-27T12:49:37 | null | UTF-8 | Python | false | false | 4,090 | py | #!/usr/bin/python3
# coding=utf-8
# ### 基于深度学习的中文分词尝试
# - 基于word2vec + 神经网络进行中文分词
# - 步骤1:使用的是sogou的语料库建立初始的字向量。
# - 步骤2:读入有标注的训练语料库,处理成keras需要的数据格式。
# - 步骤3:根据训练数据建模,使用CNN方法
# - 步骤4:读入无标注的检验语料库,用CNN模型进行分词标注
# - 步骤5:检查最终的效果
# - 参考资料:[中文分词资源](http://www.52nlp.cn/%E4%B8%AD%E6%96%87%E5%88%86%E8%AF%8D%... | [
"[email protected]"
] | |
d1ce2f47b5065975e22b593396c700d64efe1e9f | 8a3e2d3aa46224bb0fa8ff2351f3a0bb339b0abd | /my_site/campaign/forms.py | 3f7e74dbce84eaa30d8118c3816d03edc36af25e | [] | no_license | Mosaab4/Task | 85ceeab56b3ffe57049d3474c97964d51ace3471 | 4d0d250c06e97a74ce723e91addc9c17faef5b4e | refs/heads/master | 2020-03-23T15:33:53.417503 | 2018-07-20T21:37:14 | 2018-07-20T21:37:14 | 141,757,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | from django import forms
from django.forms import SelectDateWidget
from .models import Campaign
class CampaignForm(forms.ModelForm):
stop_date = forms.DateField(
widget=forms.DateInput(
attrs={
'type': 'date',
'class': 'form-control'
}
... | [
"[email protected]"
] | |
b8f92479cf86e0f5872b64f2bc3d32b9b1e0f0a4 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/radiocell/testcase/allpreferencecases/precase_log.py | 5de436ca260389960142a69aa2c35fe93a6bb02c | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,780 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"[email protected]"
] | |
d600b8b2c4530936de8246363f50622650126ebf | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/02_preprocessing/concat82/62-tideGauge.py | f2b56a3028ad9bd3ebd829ae2f793963efbc05f3 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 13 10:02:00 2020
---------------------------------------------------------
This script concatenates yearly predictor files
Browses the predictor folders for the chosen TG
Concatenates the yearly csvs for the chosen predictor
Saves the concatenated csv in a separate dire... | [
"[email protected]"
] | |
f8df77cd858240028f56eee704517225c5904b92 | 94a69d05880fdb03ad915a63f3575ff01e5df0e6 | /isobar/io/midi/output.py | fbe793950ad0b3554dc0d03d9073936ce9a6c46e | [
"MIT"
] | permissive | ideoforms/isobar | 06f2a5553b33e8185c6f9aed06224811589f7b70 | 12b03500ea882f17c3521700f7f74b0e36e4b335 | refs/heads/master | 2023-07-20T20:31:13.040686 | 2023-07-17T19:19:01 | 2023-07-17T19:19:01 | 2,155,202 | 320 | 53 | MIT | 2023-05-01T21:29:46 | 2011-08-04T15:12:03 | Python | UTF-8 | Python | false | false | 3,799 | py | import os
import mido
import logging
from ..output import OutputDevice
from ...exceptions import DeviceNotFoundException
from ...constants import MIDI_CLOCK_TICKS_PER_BEAT
log = logging.getLogger(__name__)
class MidiOutputDevice (OutputDevice):
def __init__(self, device_name=None, send_clock=False, virtual=False)... | [
"[email protected]"
] | |
7120668501fd24173b3eeac50a49ced2c1bd7cea | 39fbf1f554651f089dbf8478f009e38a2cbb7c25 | /RL/analyze.random-search.py | 282c8597a966b866b1b837a297a921ce6bfac83d | [
"Apache-2.0"
] | permissive | Libardo1/icnn | 20b323aed5a3975c8083fb8f6234305f8cd275d1 | 2056ca88d0b0dac4d8ee1a48a8b8a9f676bafd4f | refs/heads/master | 2021-01-20T15:23:06.016978 | 2016-08-01T19:35:32 | 2016-08-01T19:35:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,154 | py | #!/usr/bin/env python3
import argparse
import os
import sys
import shutil
from subprocess import Popen, PIPE
import json
import operator
import numpy as np
import numpy.random as npr
pythonCmd = 'python3'
rlDir = os.path.dirname(os.path.realpath(__file__))
plotSrc = os.path.join(rlDir, 'plot-all.py')
mainSrc = os.pa... | [
"[email protected]"
] | |
1e12863ed3a72096532a03ece32b12e9211e3a96 | a59d55ecf9054d0750168d3ca9cc62a0f2b28b95 | /platform/gsutil/gslib/tests/test_perfdiag.py | 154b60919fd93d78dc4900e94ebc93c1dbbbc19d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/google-cloud-sdk | bb2746ff020c87271398196f21a646d9d8689348 | b34e6a18f1e89673508166acce816111c3421e4b | refs/heads/master | 2022-11-26T07:33:32.877033 | 2014-06-29T20:43:23 | 2014-06-29T20:43:23 | 282,306,367 | 0 | 0 | NOASSERTION | 2020-07-24T20:04:47 | 2020-07-24T20:04:46 | null | UTF-8 | Python | false | false | 4,129 | py | # Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"[email protected]"
] | |
8e4474d37dbadeacda29af5e1b54ffe20ecd50a6 | 9789aaa94e4a321fed2a1f624ef180d938f1fe56 | /src/common/appenginepatch/ragendja/sites/dynamicsite.py | 6726a46f3ba6519e5807b3b081d1ea305ce0e818 | [
"MIT",
"Apache-2.0"
] | permissive | fantascy/snsanalytics | 61ff6b8f384f0bd4be8f89a2a19101ad2cf1bc77 | 927f186c7f5a1d534e0ff7ce7aff46a0c1a36c51 | refs/heads/master | 2021-01-13T14:18:05.684839 | 2016-11-06T07:43:35 | 2016-11-06T07:43:35 | 72,827,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | from django.conf import settings
from django.core.cache import cache
from django.contrib.sites.models import Site
from ragendja.dbutils import db_create
from ragendja.pyutils import make_tls_property
_default_site_id = getattr(settings, 'SITE_ID', None)
SITE_ID = settings.__class__.SITE_ID = make_tls_property()
class... | [
"[email protected]"
] | |
e181215cb13fb8115ec569045a2a436e59e5014d | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/SBSteat_20190605143628.py | 436cd5b69bcdf8df0610fd888bd8a19bbd9dbf67 | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | def SBS(A,B):
if A==0 or B ==0:
return 0
elif set(A)<=set(B) or set(B)<=set(A):
return 1
else:
return len(set(A)&set(B)) /len(set(A)|set(B))
def StrToList(A):
C=[]
for i in A:
C.append(i)
return C
import re
f = open('D:\DeepLearning ER\Z1006014.txt','r',errors=... | [
"[email protected]"
] | |
0f0419366d770abc9585bc6c697d5ec7c3484d0b | 000a4b227d970cdc6c8db192f4437698cb782721 | /python/helpers/typeshed/stubs/pytz/pytz/tzinfo.pyi | c2c68526870de2234b2bef2a4957d2805ca999af | [
"Apache-2.0",
"MIT"
] | permissive | trinhanhngoc/intellij-community | 2eb2f66a2a3a9456e7a0c5e7be1eaba03c38815d | 1d4a962cfda308a73e0a7ef75186aaa4b15d1e17 | refs/heads/master | 2022-11-03T21:50:47.859675 | 2022-10-19T16:39:57 | 2022-10-19T23:25:35 | 205,765,945 | 1 | 0 | Apache-2.0 | 2019-09-02T02:55:15 | 2019-09-02T02:55:15 | null | UTF-8 | Python | false | false | 2,045 | pyi | import datetime
from abc import abstractmethod
from typing import Any
class BaseTzInfo(datetime.tzinfo):
zone: str | None # Actually None but should be set on concrete subclasses
# The following abstract methods don't exist in the implementation, but
# are implemented by all sub-classes.
@abstractmeth... | [
"[email protected]"
] | |
02753e92896aace5a8746356bcdc3beaf50d75d0 | 255e90b6e98753c1b7530279064a9cf5da1a6866 | /tests/migrations/0003_radiology_lab_name.py | 7fd80843e89a480259326bde399b61a4a0ecdc38 | [] | no_license | MindSparkTm/clinicmanagement | 31b5f66552da3cf51f900e2fd8a75c6e8228c56c | 5c327126af75d342890645ead7dd835ef45111f7 | refs/heads/master | 2020-03-31T22:18:14.201928 | 2018-05-07T10:45:56 | 2018-05-07T10:45:56 | 152,613,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-04-30 10:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tests', '0002_auto_20180301_2340'),
]
operations = [
migrations.AddField(
... | [
"[email protected]"
] | |
872419719c7dbbacb98e8fe230dda1d95c9a3bb5 | effab126713f246b35f43da6e24060fb5dbf7335 | /dpxdt/server/utils.py | 965851c3ad359459aff494c7ace9ec690aa87908 | [
"Apache-2.0"
] | permissive | jujugrrr/dpxdt | 0a4552a2a87739e972960016881a36b6cd31648d | ee579f6027d0349e971a3eab070dad5756c54dcd | refs/heads/master | 2021-01-23T20:38:32.729314 | 2013-07-01T05:38:24 | 2013-07-01T05:38:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,478 | py | #!/usr/bin/env python
# Copyright 2013 Brett Slatkin
#
# 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 o... | [
"[email protected]"
] | |
fe07dd098da9c672cc8538933b82862e8803d26b | 5cee94279b59f56c39987b94d4a85ca8a4f6966d | /app/asset/urls.py | 0a25a3c193a2987565c8e0ea2c27cd6c82ca1265 | [
"MIT"
] | permissive | S3Infosoft/s3-dam | 19c10965dfb17d20c08f0e78b3b096febd646a96 | 67488be012d42cf5826350bff218db2bde70c5e5 | refs/heads/master | 2021-05-18T03:53:35.365250 | 2020-05-14T13:34:02 | 2020-05-14T13:34:02 | 251,092,565 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | from django.urls import path
from . import views
urlpatterns = [
path("uploadPhoto", views.uploadPhoto, name="uploadPhoto"),
path("uploadDocument/", views.uploadDocument, name="uploadDocument"),
path("viewDocument/", views.viewDocument, name="viewDocument"),
]
| [
"[email protected]"
] | |
f9b1b694244da3da3ffd59310e2ccfbf529dcd42 | 497e25618ccb09b6f237bb99400d1595d86e15ab | /src/12_ItemSetsGenerator.py | 6d595fbcc263d9b28b8df68fd1bce336abd6f64b | [
"CC-BY-4.0"
] | permissive | curation-library-t/dataset2 | dec966efb8b7ba1f2f94c69a293c6272df8ebcd5 | 681bd425a34d5ca04888e1c1bceefdf69008365d | refs/heads/master | 2021-01-03T10:03:43.702735 | 2020-03-10T04:03:25 | 2020-03-10T04:03:25 | 240,017,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import sys
import urllib
import json
import argparse
import urllib.request
import os
import yaml
import shutil
dir = "../docs/omeka/item_sets"
if os.path.exists(dir):
shutil.rmtree(dir)
os.makedirs(dir, exist_ok=True)
def item_sets_generator():
f = open("settings.yml", "r+")
data = yaml.load(f)
api_u... | [
"[email protected]"
] | |
130b47b6f853783598aaa0f501090f289177b6d9 | d2c229f74a3ca61d6a22f64de51215d9e30c5c11 | /test/python/circuit/library/test_permutation.py | bf4da582b6ad52f9dbf9fc95e2ab2575ecbaf4ea | [
"Apache-2.0"
] | permissive | 1ucian0/qiskit-terra | 90e8be8a7b392fbb4b3aa9784c641a818a180e4c | 0b51250e219ca303654fc28a318c21366584ccd3 | refs/heads/main | 2023-08-31T07:50:33.568824 | 2023-08-22T01:52:53 | 2023-08-22T01:52:53 | 140,555,676 | 6 | 1 | Apache-2.0 | 2023-09-14T13:21:54 | 2018-07-11T09:52:28 | Python | UTF-8 | Python | false | false | 7,222 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"[email protected]"
] | |
2a04439769c443bb7d6866e0bfea6b0721b05f7e | 8f1137592d670ce134821106f736e231b03ead87 | /tools/train.py | 21516fd5c10c33bf28186ffedadee978be1c9997 | [
"MIT"
] | permissive | mousecpn/DMC-Domain-Generalization-for-Underwater-Object-Detection | fa426c834fa2a5cd2fe98c50dd4dfeda64fcdc79 | 133797cfb7553557fb81a37e3c99c88154a13765 | refs/heads/master | 2023-05-23T16:49:34.795363 | 2023-02-13T02:23:31 | 2023-02-13T02:23:31 | 501,597,077 | 16 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,020 | py | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import copy
import os
import os.path as osp
import time
import warnings
import mmcv
import torch
from mmcv import Config, DictAction
from mmcv.runner import get_dist_info, init_dist
from mmcv.utils import get_git_hash
from mmdet import __version__
from m... | [
"[email protected]"
] | |
97113931b94c55421f7eaf0342e8779940eeaccc | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/model/distinguished_name.py | 9b1dc6bbb69cd65ec3602053c227ff83175ff3b8 | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,640 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DistinguishedName:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key ... | [
"[email protected]"
] | |
6ec74b00beccb475fbc8db105e3048f59664ccac | df541a802b2dfa89d3aab14af627358dc7c76e6e | /接口自动化/Frame_relevance/main.py | e79ef2e1e37151445218b5da1d27c4a22b306a77 | [] | no_license | gupan2018/PyAutomation | de966aff91f750c7207c9d3f3dfb488698492342 | 230aebe3eca5799c621673afb647d35a175c74f1 | refs/heads/master | 2021-09-07T19:44:20.710574 | 2017-12-22T15:58:23 | 2017-12-22T15:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | __author__ = 'Administrator'
'''
根据添加项目--审核--注册--充值--投资,做一个完整的业务流程的自动化代码请求
'''
from Frame_relevance.database import Database
from Frame_relevance.runcase import Runcase
from Frame_relevance.HttpRequest import HttpRequest
path_background = "db_background.conf"
path_test_data = "test_data.conf"
path_http = "http.conf"... | [
"[email protected]"
] | |
4aaa44a645f108b0de973b6f7119085e4cfadb95 | 45da48ae0a87f4bb27409bfe2e947b29a2d4a0d0 | /znake/znake/test/test_tools.py | 314367afe4e3c68ddcd06ff272e50992230a2700 | [
"Apache-2.0"
] | permissive | per-bohlin/opensourcelib | 3923165982ae1b2c78602a3485684ded75c28c36 | e48427fd0b5d87ea21484e85d2575c8b8879b9a3 | refs/heads/master | 2020-05-21T21:34:15.112527 | 2019-05-11T16:57:58 | 2019-05-11T16:57:58 | 186,156,987 | 0 | 0 | NOASSERTION | 2019-05-11T16:34:39 | 2019-05-11T16:34:39 | null | UTF-8 | Python | false | false | 1,495 | py | from unittest import TestCase
from unittest.mock import Mock
from znake.tools import _render_isort, _render_yapf, render_flake8_check, render_pydocstyle_check
class TestToolsRenderCommandLine(TestCase):
@staticmethod
def get_ctx(tool):
ctx = Mock()
ctx.znake.static.packages = ['my_package', ... | [
"[email protected]"
] | |
a704c7629480555065e3767614ff66caab4f1096 | bacabd549ca67204bd3ec22f0f9020a4287aa6c5 | /ui/dispatcher_tab.py | 87144b13fd78c80105599462550a5804ad38e78a | [] | no_license | gladiopeace/csc-manager-ui | 5b8b642695742e906c779bbb18759084ed4791a9 | ec7660b91aed0f8512183b147cb49994c925bc41 | refs/heads/master | 2023-06-26T17:22:31.434146 | 2021-07-23T13:32:33 | 2021-07-23T13:32:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | import logging
import tkinter
class DispatcherTab(tkinter.Frame):
def __init__(self, parent, in_callback=None, out_callback=None):
self.logger = logging.getLogger(f'{self.__class__.__name__}', )
self.parent = parent
self.in_callback = in_callback
self.out_callback = out_callback
... | [
"[email protected]"
] | |
fa9a485adbdcf00e88ce9e816a00db9e0b6e9d2a | bdb1c323968cd9d5441a187a29ed7e25a2e4f07e | /cp0/people/management/commands/UPdate.py | e42d81d517445ea10d217cff37e1280e3c12f9e1 | [] | no_license | liangzhaowang/automation_system | beee351dd9f09a51e2b81617ac5bee63023ea9b8 | f77ef433c2366253dc9d9fdb7c54911cb38ed3e8 | refs/heads/master | 2022-02-19T11:07:44.047000 | 2019-09-23T02:16:00 | 2019-09-23T02:16:00 | 209,732,359 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,650 | py | from django.core.management.base import BaseCommand
import json
import time
from people.models import bxtp_m
from people.models import bxtp_o
from Patches import Patches
from people.models import bkc_m
from people.models import bkc_o
from data.models import Task
class Command(BaseCommand):
def handle(self,*args,... | [
"[email protected]"
] | |
58204fab93085a4af72d6ba4ffef814213fd27a0 | a9243f735f6bb113b18aa939898a97725c358a6d | /0.14/_downloads/plot_decoding_time_generalization_conditions.py | 98b29ed251d7f7287579cc2c0e3049cdb118be34 | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 2,991 | py | """
=========================================================================
Decoding sensor space data with generalization across time and conditions
=========================================================================
This example runs the analysis described in [1]_. It illustrates how one can
fit a linear cla... | [
"[email protected]"
] | |
05c2a6863ff170102ac029bc54b72165cc024208 | f66b8a4d5d2f9f9faeb23a2bbbf6524ec49b2051 | /surreal/__init__.py | 2d52593edffe3efb913070aa7a4219fbe7fb3203 | [
"Apache-2.0"
] | permissive | ducandu/surreal | 237f4188ba270bab7495cb782ed10ee463fe78a7 | 8abfb18538340d50146c9c44f5ecb8a1e7d89ac3 | refs/heads/master | 2020-08-01T14:10:00.327798 | 2019-11-09T15:32:13 | 2019-11-09T15:32:13 | 211,018,247 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | # Copyright 2019 ducandu GmbH. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"[email protected]"
] | |
0adbdd2bd8d43634f5c96ccc4a3c8740c82a3216 | de4da7c45581f72adaf8e328a89cb3d57fe3613f | /appengine/olamundo/sorteio.py | a6f9e22632289da4d7a3116e0e402b2005a1840c | [] | no_license | ramalho/propython | 2469be7492554762d05f9b0ce5c0dc3a51bd3a18 | 76c2b52755e08d49929cdc2a523db72735240e72 | refs/heads/master | 2022-06-01T22:51:07.659074 | 2022-05-22T18:22:21 | 2022-05-22T18:22:21 | 140,458 | 39 | 13 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | # coding: utf-8
from random import shuffle
def parear(nomes, embaralhar=True):
u'''Dada uma lista de nomes, garar uma lista de pares ordenados
de nomes, onde:
- cada nome aparece uma vez e apenas uma vez em cada posição
- se existe um par a, b, não existirá o par b, a
... | [
"[email protected]"
] | |
c79903a6216c94eb3633b54c28d4bdfc5e67a99e | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /tools/chrome_proxy/integration_tests/chrome_proxy_pagesets/pass_through.py | cc1d267d32fd0971958e46cfd6e27da2af5628b2 | [
"LGPL-2.0-or-later",
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-only",
"MIT",
"LicenseRef-scancode-unknown",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-only"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 1,318 | py | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from common.chrome_proxy_shared_page_state import ChromeProxySharedPageState
from telemetry.page import page as page_module
from telemetry import story
clas... | [
"[email protected]"
] | |
e056bd156b04aa2a41d8cfda5e58af59dbed6b8c | 4c514345b4759ed4d17f48565ae66dbd7313a0e8 | /database/match_query.py | 5e7c6e4ee818c1e183fa2b609979a449e1133e02 | [
"MIT"
] | permissive | csteward24/the-blue-alliance | a6f193176b5c3f3eadb73126d14d06ce299c4185 | cb3c5ce9078983306e6c83067ae62f5848ffe290 | refs/heads/master | 2020-12-11T05:45:15.029275 | 2016-03-11T19:49:32 | 2016-03-11T19:49:32 | 53,530,477 | 1 | 0 | null | 2016-03-09T20:45:46 | 2016-03-09T20:45:46 | null | UTF-8 | Python | false | false | 1,616 | py | from google.appengine.ext import ndb
from database.database_query import DatabaseQuery
from models.event import Event
from models.match import Match
class EventMatchesQuery(DatabaseQuery):
CACHE_VERSION = 0
CACHE_KEY_FORMAT = 'event_matches_{}' # (event_key)
def __init__(self, event_key):
self.... | [
"[email protected]"
] | |
47489d28c2824bf881262a0cb690632b0f06a466 | 6eb56f2e3f14f2373be07fe95b1c6fedf1e2d49f | /month04/Django/my_django_test/my_test_site/my_test_site/wsgi.py | 6f99386c8bf33243c58777fcefe3b43edecaa629 | [
"Apache-2.0"
] | permissive | chaofan-zheng/python_leanring_code | fe22b0370cadebf7456477269aff4a35cef0eb41 | 0af44ff39b9ded2c1d2cc96c6d356d21170ac04d | refs/heads/main | 2023-02-28T07:56:46.457552 | 2021-02-10T15:08:33 | 2021-02-10T15:08:33 | 323,584,115 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for my_test_site 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.setdefault('DJANGO_... | [
"[email protected]"
] | |
d70c588617cd936f303f45bd05a8f14dd95db981 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_05_02_preview/operations/_trusted_access_roles_operations.py | 63b63ca700ec5026c217f4203ddfdc330e525f96 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 7,294 | 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... | [
"[email protected]"
] | |
52e6250f9fd41a90fb895ac16801170303863407 | 6be29c75fe23bf38ac2df4125242e767fb37d41c | /tests/parsers/sqlite_plugins/interface.py | c0f3af0d7986a8e2dc78f12799da84559dca1a96 | [
"Apache-2.0"
] | permissive | Laxman-SM/plaso | 579c7954b2622368427740e2b5687bf2efe249e7 | bec7b974ec9c2967be58fc704afca936591e46d3 | refs/heads/master | 2021-01-22T05:32:59.383909 | 2017-05-26T04:15:29 | 2017-05-26T04:15:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,497 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""Tests for the SQLite plugin interface."""
import sys
import unittest
from plaso.containers import time_events
from plaso.lib import eventdata
from plaso.lib import timelib
from plaso.parsers import sqlite
from plaso.parsers.sqlite_plugins import interface
from tests impor... | [
"[email protected]"
] | |
8e057d2ce2408c7882a9090ddf70294e23500b13 | 65a32b8a8a97c126843d2cfe79c43193ac2abc23 | /chapter16/fib_test_2.py | c722f4d40ff1ba55c39a6f1db4cb394a86e1710c | [] | no_license | zhuyuedlut/advanced_programming | 9af2d6144e247168e492ddfb9af5d4a5667227c4 | a6e0456dd0b216b96829b5c3cef11df706525867 | refs/heads/master | 2023-03-19T09:21:31.234000 | 2020-10-09T13:09:38 | 2020-10-09T13:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | def memoize(f):
memo = {}
def helper(x):
if x not in memo:
memo[x] = f(x)
return memo[x]
return helper
@memoize
def fib(n):
if n == 0:
return 0
elif n == 1:
return 1
else:
return fib(n-1) + fib(n-2)
def fib_seq(n):
res = []
if n > 0... | [
"[email protected]"
] | |
94f28c8e8785258f7272399beffdb289c6c802c0 | 035f7cbf8a16d2936b3df13c3966e954c6b6a13a | /lab/soc_module.py | e91f1b4bcb8ea1ab10d5cadb5d859c11f9bb6aed | [
"BSD-3-Clause"
] | permissive | 2i2c-org/utoronto-demo | 84d043b446f4c8ed5f5375175ac482deba8c2955 | 8e2cd4a9f04e3399bc2437e95975c80f5899cef1 | refs/heads/master | 2022-11-13T11:12:33.333581 | 2020-07-07T17:00:24 | 2020-07-07T17:00:24 | 277,604,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,475 | py | import pandas as pd
import os
import folium
import geojson
import random
import numpy as np
from sklearn import preprocessing
import re
from geopy.geocoders import Nominatim
import time
import certifi
import ssl
import geopy.geocoders
# ctx = ssl.create_default_context(cafile=certifi.where())
# geopy.geocoders.options... | [
"[email protected]"
] | |
78c4520f26fc5a405e8b5516a71476aa9983b266 | 61f9c7094be028e040d1234f05ee6d7370c2206d | /pytext/models/decoders/mlp_decoder_n_tower.py | 6e2e0c6810eef0ce327e48063f8f785200ccca9b | [
"BSD-3-Clause"
] | permissive | timgates42/pytext | 3ce5473fecca5174108a4eb63209a3eecfb6d8dd | 5f2c3ca6c3ba56e1001e95825abd7ee295de1dff | refs/heads/main | 2023-03-15T07:33:21.217159 | 2022-07-11T16:06:16 | 2022-07-11T16:06:16 | 231,028,915 | 0 | 0 | NOASSERTION | 2019-12-31T05:04:01 | 2019-12-31T05:04:00 | null | UTF-8 | Python | false | false | 3,970 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from typing import List
import torch
import torch.nn as nn
from pytext.config.module_config import Activation
from pytext.models.decoders.decoder_base import DecoderBase
from pytext.optimizer import get_activation
from pytex... | [
"[email protected]"
] | |
3574d97da998084641fea6ef4eeadcf842506678 | 0682577346d5be6452f93e17cf06df70acb95135 | /src/bin2header.py | 4755e84c32cb3efc4ebf88c35ecbf0cdd727554f | [
"MIT"
] | permissive | cenit/bin2header | c8bf30cf371378a7f31c4eef37ffbe228fa41638 | 9860f292a0a109a1b999dd3cafe07fdb952a1e18 | refs/heads/dev/msvc | 2023-04-18T02:12:04.133748 | 2021-03-24T19:22:18 | 2021-03-24T20:59:12 | 340,431,411 | 0 | 0 | MIT | 2021-05-02T08:15:26 | 2021-02-19T16:47:07 | C++ | UTF-8 | Python | false | false | 3,545 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright © 2019 Jordan Irwin (AntumDeluge) <[email protected]>
#
# This file is part of the bin2header project & is distributed under the
# terms of the MIT/X11 license. See: LICENSE.txt
import sys, os, array
if sys.version_info.major < 3:
print('\nERROR: Pytho... | [
"[email protected]"
] | |
021380e13d2eae318fc3807aa19a45be981051fb | e20ed90b9be7a0bcdc1603929d65b2375a224bf6 | /generated-libraries/python/netapp/lun/lun_stats_get_iter_key_td.py | b900171ae83a9786718d2f883283ee90bf322dc9 | [
"MIT"
] | permissive | radekg/netapp-ontap-lib-gen | 530ec3248cff5ead37dc2aa47ced300b7585361b | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | refs/heads/master | 2016-09-06T17:41:23.263133 | 2015-01-14T17:40:46 | 2015-01-14T17:40:46 | 29,256,898 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | from netapp.netapp_object import NetAppObject
class LunStatsGetIterKeyTd(NetAppObject):
"""
Key typedef for table lunStats
"""
_key_3 = None
@property
def key_3(self):
"""
Field qtree
"""
return self._key_3
@key_3.setter
def key_3(self, val):
... | [
"[email protected]"
] | |
6080e8e27370523a1a15d482bd31e6589aa63cc2 | 1c5f4a13a5d67201b3a21c6e61392be2d9071f86 | /.VirtualEnv/Lib/site-packages/influxdb_client/domain/variable_assignment.py | f36ac8c683bd2b04ca15fcea617fca76518bfe9c | [] | no_license | ArmenFirman/FastAPI-InfluxDB | 19e3867c2ec5657a9428a05ca98818ca7fde5fd0 | b815509c89b5420f72abf514562e7f46dcd65436 | refs/heads/main | 2023-06-24T20:55:08.361089 | 2021-07-29T00:11:18 | 2021-07-29T00:11:18 | 390,462,832 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,256 | py | # coding: utf-8
"""
Influx OSS API Service.
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from influxdb_client.do... | [
"[email protected]"
] | |
5137a2d0697ff6d46bc41528064261cdc36a3fcc | 6a2a4f97009e31e53340f1b4408e775f3051e498 | /Iniciante/p2031.py | 89cb880da36fcb459e803f82f4d976c547bff06d | [] | no_license | rafacasa/OnlineJudgePythonCodes | 34c31f325cccb325f074492b40591ad880175816 | 030c18f9020898fdc4f672f9cc17723236e1271d | refs/heads/master | 2023-07-15T12:09:45.534873 | 2023-06-27T00:24:03 | 2023-06-27T00:24:03 | 250,595,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | qtd = int(input())
for i in range(qtd):
j1 = input()
j2 = input()
if j1 == 'ataque':
if j2 == 'ataque':
print('Aniquilacao mutua')
continue
else:
print('Jogador 1 venceu')
continue
if j1 == 'pedra':
if j2 == 'ataque':
p... | [
"[email protected]"
] | |
c945c8268924f58b87f20e45705848eca360c58a | 59a688e68421794af64bfe69a74f64b2c80cd79d | /graph_theory/utils_graph_theory.py | fd125946005681bf4598d211b4d0027d1ecc27c5 | [] | no_license | hearues-zueke-github/python_programs | f23469b306e057512aadecad0ca0a02705667a15 | d24f04ca143aa93f172210a4b9dfdd9bf1b79a15 | refs/heads/master | 2023-07-26T00:36:56.512635 | 2023-07-17T12:35:16 | 2023-07-17T12:35:16 | 117,093,746 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,290 | py | import numpy as np
# hamilton cycles
def get_cycles_of_1_directed_graph(l_edges_directed):
nodes_from, nodes_to = list(zip(*l_edges_directed))
all_nodes = sorted(set(nodes_from+nodes_to))
unique_nodes_from, counts = np.unique(nodes_from, return_counts=True)
assert np.all(counts==1)
edges_directed... | [
"[email protected]"
] | |
61987d03b4832d555efd81438653636012699b92 | 4da9c19d9839c670fda30a45a7e223da624eee4a | /Codechef Problem solutions/lapindromes.py | 9070865b0cf0bb49ceaf98a28dcc869c6166e819 | [] | no_license | JineshKamdar98/Codchef-Problem-Solutions | 3e1737669cc0657ccc224e06f800b587130f5787 | 4447679aa3fb45a2d57f93bf3f724f6223049506 | refs/heads/master | 2020-05-05T06:38:10.306619 | 2019-04-06T06:16:10 | 2019-04-06T06:16:10 | 179,795,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | t=int(input())
while(t!=0):
s=input()
p=list(s[:len(s)//2])
q=list(s[-(len(s)//2):])
if(sorted(p)==sorted(q)):
print('YES')
else:
print('NO')
t-=1
| [
"[email protected]"
] | |
111dbc26616d818e6e15afdd77e8e66d50541599 | 4bd5e9b67d98bfcc9611bd8b774c9ab9f4f4d446 | /Python基础笔记/12/代码/1.类的定义.py | 611f8b67880c998961906ccb1093d893e099e0c3 | [] | no_license | zhenguo96/test1 | fe21510aea7feb674e52fd7a86d4177666f841c5 | 0d8de7e73e7e635d26462a0bc53c773d999498be | refs/heads/master | 2020-05-03T13:09:53.592103 | 2019-04-06T07:08:47 | 2019-04-06T07:08:47 | 178,646,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,325 | py | """
类:人
属性(静态特征):
姓名
性别
年龄
行为(动态特征):
吃饭
睡觉
打豆豆
"""
"""
1.类名命名规范:
数字、字符、下划线组成、不能以数字开头
不能是保留字
区分大小写
2.命名风格:大驼峰:每个单词首字母大写
3.类体:以冒号开头,必须缩进
"""
class Person:
# 构造方法
"""
方法和函数的区别: 方法第一个参数必须是self,函数没有self
方法... | [
"[email protected]"
] | |
bfdc184ec6e550e1526742ddaa73ce54cdbabee9 | b509b4c3ba811ee5cbbc8ae5a580c78dc66c3437 | /backend/vehicle/migrations/0001_initial.py | d442d5d68a3d15410380299dcfa2ac14cffe213f | [] | no_license | crowdbotics-apps/application-24933 | d0a35800eee010daebae321e321e9f906cbc2e4a | dadd878c63f6d74f4f57d9a04eec818d77ba3595 | refs/heads/master | 2023-03-13T22:34:01.776842 | 2021-03-09T16:02:32 | 2021-03-09T16:02:32 | 346,061,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | # Generated by Django 2.2.19 on 2021-03-09 16:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('taxi_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
n... | [
"[email protected]"
] | |
fbe04451994e0024a6b2f42914705abc22316a48 | d88360329b36f9c9fd7ee7efb118d45f7dc44f5e | /backend/api/apps.py | c33832e843d3833d7b2d6cddd0f32158ebcdc0e6 | [] | no_license | hyunmin0317/Study-App | 265a19723010b3150eac41fbaea7aa6f229e6140 | 32835258ec6ce0a981f2a359776e944b52adde81 | refs/heads/master | 2023-07-17T23:36:55.645573 | 2021-09-08T06:33:54 | 2021-09-08T06:33:54 | 398,130,964 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | from django.apps import AppConfig
class ApiConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'api'
| [
"[email protected]"
] | |
bb19442ce68445b7d0832bfe6249aa389dff37a8 | a8123a86db99b9365b10ba76dd509d58caa7bc10 | /python/practice/start_again/2023/07252023/valid_sudoku.py | bace8ea77bfaad4e5b056c4e5d44463b4ad85bc9 | [] | no_license | smohapatra1/scripting | c0404081da8a10e92e7c7baa8b540acc16540e77 | 3628c9109204ad98231ae8ee92b6bfa6b27e93cd | refs/heads/master | 2023-08-22T20:49:50.156979 | 2023-08-22T20:43:03 | 2023-08-22T20:43:03 | 147,619,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,506 | py | # 36. Valid Sudoku
# Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:
# Each row must contain the digits 1-9 without repetition.
# Each column must contain the digits 1-9 without repetition.
# Each of the nine 3 x 3 sub-boxes of the grid must con... | [
"[email protected]"
] | |
fb2a76cd6a85c90f75d740c9a18b28efbc09de86 | e94b018362431ce8b22fe306aa0db23e82362b82 | /tests/common/test_util.py | ead5c31bf85ad9b6d671e2ac78f9c47528fa9607 | [
"MIT"
] | permissive | tybiot/SBMLLint | 71745fb44f2a6e1be83e0d6854aa7b1caa700a4d | f11124c4059f40496454ba1adc814f1bd33c783b | refs/heads/master | 2022-11-13T20:27:48.343268 | 2020-06-28T23:56:40 | 2020-06-28T23:56:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | from SBMLLint.common import constants as cn
from SBMLLint.common import exceptions
from SBMLLint.common import util
import libsbml
import numpy as np
import os
import unittest
NUM_S1 = 2
NUM_S2 = 3
IGNORE_TEST = False
ANTIMONY_STG = '''
%dS1 -> %dS2; 1
S1 = 0
S2 = 0
''' % (NUM_S1, NUM_S2)
ZIP_PATH = os.path.join(cn... | [
"[email protected]"
] | |
58467f4df4f61b2e8564e17b1028b7aef8aea879 | 2b5b082ca006eb8063a4a43f4998f4c0268a46e6 | /sessauth2/sessauth2/asgi.py | dcaac02c620f4158a3c708ba0533fcbea01eccc9 | [] | no_license | shobhit1215/Rest_Framework_tut | a52ae5b7a1f0213ace19d9b2b5d557b15d36c376 | 351da2564a55d1530f5517627cce73663252d07c | refs/heads/main | 2023-05-26T04:47:01.336843 | 2021-06-03T12:43:51 | 2021-06-03T12:43:51 | 373,503,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for sessauth2 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"[email protected]"
] | |
b6334ff9ea75bda1417ea705234c6515841b743d | cdfcac165a7c06a137cb3563dbe31d3044494a95 | /6_SGD/1_0_gradientTape.py | 402b93080c204c3e0fdb1f37475164524621c459 | [] | no_license | fzingithub/learningTensorflowProject | 141b3d980a7aa6f729cea18a72ae83d591812c83 | 5607be5f8daeb5591aba719e69b53b34b93d1e03 | refs/heads/master | 2020-05-19T19:05:17.495549 | 2019-09-25T06:48:04 | 2019-09-25T06:48:04 | 185,169,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | # -*- coding: utf-8 -*-
'''
Created on 2019/5/7
Author: zhe
Email: [email protected]
'''
import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
# w = tf.constant(1.)
# x = tf.constant(2.)
# y = x * w
# with tf.GradientTape() as tape:
# tape.watch([w])
# y2 = x * w
#
# grad1 = tape.gradient... | [
"[email protected]"
] | |
873c85d7134a8df275df8a80775826b5150e310d | ec80586b3aa3e90178a59446b33948012121b56f | /relationship_app/admin.py | 022de5e18e33d4fb2cca13f2b8d97b6f3ba98602 | [] | no_license | amritghimire/se | 567f050969e0e2ad667684f1d6ca03a2f21071bf | 6c150cb75e61b43cc938216a4e5f661d5a97aa11 | refs/heads/master | 2021-03-19T17:24:20.234650 | 2019-09-03T05:55:04 | 2019-09-03T05:55:04 | 112,606,113 | 0 | 0 | null | 2019-09-03T05:56:46 | 2017-11-30T11:57:56 | JavaScript | UTF-8 | Python | false | false | 201 | py | from django.contrib import admin
from .models import Relationship,RelationshipWithQuestion
# Register your models here.
admin.site.register(Relationship)
admin.site.register(RelationshipWithQuestion)
| [
"[email protected]"
] | |
2acba97797af6087bb411fa464e5be1ea2a890ed | c83e356d265a1d294733885c373d0a4c258c2d5e | /mayan/apps/documents/migrations/0071_auto_20201128_0330.py | 6583b82c2de0181c330da3426f188f2204c35e62 | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/fall-2021-hw2-451-unavailable-for-legal-reasons_6YX3 | 4160809d2c96707a196b8c94ea9e4df1a119d96a | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | refs/heads/master | 2023-08-21T23:36:41.230179 | 2021-10-02T03:51:12 | 2021-10-02T03:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('documents', '0070_auto_20201128_0249'),
]
operations = [
migrations.RenameField(
model_name='document',
old_name='date_added',
new_name='datetime_crea... | [
"[email protected]"
] | |
a436ead0e31e3f5f505f43aab6f77de6ca2edc9e | e71fa62123b2b8f7c1a22acb1babeb6631a4549b | /xlsxwriter/test/comparison/test_escapes02.py | 1a1af325a8fe56d1c47442561a85b514ba40e94d | [
"BSD-2-Clause"
] | permissive | timgates42/XlsxWriter | 40480b6b834f28c4a7b6fc490657e558b0a466e5 | 7ad2541c5f12b70be471b447ab709c451618ab59 | refs/heads/main | 2023-03-16T14:31:08.915121 | 2022-07-13T23:43:45 | 2022-07-13T23:43:45 | 242,121,381 | 0 | 0 | NOASSERTION | 2020-02-21T11:14:55 | 2020-02-21T11:14:55 | null | UTF-8 | Python | false | false | 943 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c), 2013-2022, John McNamara, [email protected]
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompar... | [
"[email protected]"
] | |
a6ffc620d1d3aee1f0cdf209cf463c92bf609284 | 50948d4cb10dcb1cc9bc0355918478fb2841322a | /azure-mgmt-network/azure/mgmt/network/v2018_07_01/models/express_route_circuits_routes_table_list_result.py | 692bb9903130c0dd3e820e34bf91cfa419fcb98f | [
"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,282 | 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 ... | [
"[email protected]"
] | |
9e51529629c36bcf385786cb805d47763c6f5ab2 | 0c325cf7a68ef51067ed8db566d525a20de5b635 | /other/panda365/panda365/pd/api/fields.py | 42906c17d0e2cd22fb5c65f2f94fbe5c1743ff4f | [] | no_license | alinzel/NOTES | 2ab6aa1ef1d601a9ae8c0d23c0df2bca7e1aa241 | 3e0594641a605580e920d0b08a251fbc99f34e2f | refs/heads/master | 2023-01-08T22:48:30.762625 | 2020-01-17T09:14:47 | 2020-01-17T09:14:47 | 175,339,492 | 0 | 0 | null | 2022-12-27T15:01:19 | 2019-03-13T03:28:08 | HTML | UTF-8 | Python | false | false | 6,120 | py | from base64 import b64decode
from io import BytesIO
from marshmallow import fields, validate, ValidationError
from sqlalchemy import inspect
from werkzeug.datastructures import FileStorage
import binascii
import uuid
class DataURL(fields.String):
"""
data url as defined in RFC 2397:
data:[mimetype][;... | [
"[email protected]"
] | |
3f197feb9ea3a2c2da2ddc7cde1f71136c78662a | 35baf7fe5bb66f2402de400383b8aa426c097bfb | /co2_diag/recipes/seasonal_cycles.py | 95de0cc00e4835814255f8121b1a1b9cd8473448 | [
"BSD-3-Clause"
] | permissive | BunnyVon/gdess | 24f0e7e1e6d2a00dbbcd9e3fa72e65d983b6567a | 09b83b3d7ade133b6d993e010912bee86c24c934 | refs/heads/main | 2023-07-18T06:11:09.937268 | 2021-09-05T19:09:10 | 2021-09-05T19:09:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,919 | py | """ This produces plots of seasonal cycles of atmospheric CO2
This function parses:
- observational data from Globalview+ surface stations
- model output from CMIP6
================================================================================
"""
from co2_diag import set_verbose, benchmark_recipe
from co2_diag.rec... | [
"[email protected]"
] | |
f78f19d145b126047de673d89f70e08fdc0684a7 | 3cf0d750948a758d5771dd778fbb783d64a044ae | /src/pads/tests/test_lca.py | b11cbc743ce87210e3a1d60e058e855380055c1b | [
"CC-BY-NC-SA-4.0",
"Apache-2.0",
"MIT"
] | permissive | hbulpf/pydemo | 6552a08b3c85721ac1b2ba335b030e234ad03b6c | ea3e9f9086116a86ecef803e9e3179a34c94c20f | refs/heads/master | 2022-11-30T21:06:29.933820 | 2022-01-15T17:05:16 | 2022-01-15T17:05:16 | 237,584,300 | 6 | 1 | Apache-2.0 | 2022-11-22T09:49:38 | 2020-02-01T08:20:43 | Python | UTF-8 | Python | false | false | 1,413 | py | import random
import unittest
from pads.lca import RangeMin
from pads.lca import LogarithmicRangeMin
from pads.lca import LCA
from pads.lca import OfflineLCA
class RandomRangeMinTest(unittest.TestCase):
def testRangeMin(self):
for trial in range(20):
data = [random.choice(range(1000000))
... | [
"[email protected]"
] | |
c9b58a0e23df735180efc08cacda6fe5dd2b365f | 612e9449ddbe95f1b4a0dd21e13e46661e39c872 | /lib/formats/json.py | 3c6e746b04f54281505f5b27327aa67f161ddd3f | [] | no_license | racposner/label_reconciliations | 0ad22c8250a5d6662e9aeebeb97741146ac8fdac | 4c916994e7f193e6ed0b1c6b18f247239f1d847a | refs/heads/master | 2022-11-27T02:00:51.108238 | 2020-07-28T18:47:53 | 2020-07-28T18:47:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | """Import a flat JSON file as unreconciled data."""
import pandas as pd
import lib.util as util
def read(args):
"""Read a JSON file into a data-frame."""
unreconciled = pd.read_json(args.input_file)
unreconciled = util.unreconciled_setup(args, unreconciled)
return unreconciled, {}
| [
"[email protected]"
] | |
8c0e06b23fc473400d9b904b94698f979e0ff6ef | 9b34e542589b7d0d327d3255ac4fcd0bcf5e7216 | /first one from right to left in binary.py | e09a044e3aaf81efa19205fa549a8331750abc86 | [] | no_license | Sravaniram/pythonprogramming | 9ee23cd2ff925fa2c6af320d59643747db173cd7 | 4c09c6787a39b18a12dfcbb2c33fcceabd4fc621 | refs/heads/master | 2020-03-26T23:26:03.391360 | 2019-04-23T12:49:53 | 2019-04-23T12:49:53 | 145,541,824 | 1 | 9 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | n,m=map(int,input().split())
k=bin(n*m)
c=0
for x in range(len(k)-1,1,-1):
c=c+1
if(k[x]=='1'):
print(c)
break
| [
"[email protected]"
] | |
d4b58b2e033e8c716f005be46976aa0c5a9599e7 | 347c70d4851b568e03e83387f77ae81071ab739e | /fn_proofpoint_tap/fn_proofpoint_tap/util/selftest.py | f923ce1c4bd5ea486dbcb877544c0adc313565cb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | neetinkandhare/resilient-community-apps | 59d276b5fb7a92872143ce2b94edd680738693ce | 3ecdabe6bf2fc08f0f8e58cbe92553270d8da42f | refs/heads/master | 2021-12-27T09:05:36.563404 | 2021-09-29T13:04:56 | 2021-09-29T13:04:56 | 159,804,866 | 1 | 0 | MIT | 2021-08-03T19:45:45 | 2018-11-30T10:07:32 | Python | UTF-8 | Python | false | false | 1,750 | py | # -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
# (c) Copyright IBM Corp. 2019. All Rights Reserved.
"""Function implementation
test with: resilient-circuits selftest -l fn_proofpoint_campaign
"""
import logging
import os
from requests.auth import HTTPBasicAuth
from resilient_lib impo... | [
"[email protected]"
] | |
85e1dfdd04e38ad955261cc8e671a25fb7798885 | 26dec2f8f87a187119336b09d90182d532e9add8 | /mcod/histories/apps.py | a7f0a00b9687b8ac862b1830d5b72c8fe03043fe | [] | no_license | olekstomek/mcod-backend-dane.gov.pl | 7008bcd2dbd0dbada7fe535536b02cf27f3fe4fd | 090dbf82c57633de9d53530f0c93dddf6b43a23b | refs/heads/source-with-hitory-from-gitlab | 2022-09-14T08:09:45.213971 | 2019-05-31T06:22:11 | 2019-05-31T06:22:11 | 242,246,709 | 0 | 1 | null | 2020-02-24T22:39:26 | 2020-02-21T23:11:50 | Python | UTF-8 | Python | false | false | 187 | py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class HistoriesConfig(AppConfig):
name = 'mcod.histories'
verbose_name = _('Histories')
| [
"[email protected]"
] | |
0bba8246a143872757d6de146020f6d5366ab9fb | 6dcf2d8ce367d6afd64024e5f41d4a11c27ca3d5 | /gmecol/migrations/0002_auto__add_field_game_image_url__add_field_game_remote_id__add_field_pl.py | 293eada3da4be3326dd035ea611a874e7f9c658c | [
"BSD-2-Clause"
] | permissive | iyox/gmecol | 75cc02870958fb0c747f93f62c42868eaf11601b | c03ff0fdfca7cb73fe8646e1ed4543db7d2e6c89 | refs/heads/master | 2021-01-15T16:58:27.692794 | 2012-09-06T03:50:39 | 2012-09-06T03:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,919 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Game.image_url'
db.add_column('gmecol_game', 'image_url',
self.gf('dja... | [
"[email protected]"
] | |
9c37792e8f94df710b6d3440b26852c0adaa94e4 | 79baf4404e51bdc0f33038b3b16bea86ff09e82f | /azext_iot/tests/digitaltwins/test_dt_generic_unit.py | 0893dc929dab4b65fd9bf2a07dadc07136a01af7 | [
"MIT"
] | permissive | Azure/azure-iot-cli-extension | 80b6cb29e907f7512c7361a85d6bfdea5ae2dd9e | bdbe65c3874ff632c2eba25c762e9ea8e9175b5f | refs/heads/dev | 2023-09-04T10:57:16.118442 | 2023-08-28T17:12:05 | 2023-08-28T17:12:05 | 103,456,760 | 95 | 80 | NOASSERTION | 2023-09-13T00:02:54 | 2017-09-13T22:04:36 | Python | UTF-8 | Python | false | false | 1,280 | 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.
# -----------------------------------------------------... | [
"[email protected]"
] | |
2e5c9db597970c087922fe5fb4e821040099e528 | d92ce9a32bf20086e30701585a4e73c1f2469aff | /FunDooapp/virtualenv/bin/pyreverse | 4bb367f33b44c24c82bc7034882867f23526d633 | [] | no_license | Prem-chouhan/fellowshipProgram_PremsinghChouhan | f61cf4407458f14ef7eb6d80effb25f9592d2552 | 33e6b57f6c75a80d8a3d1f868d379e85365a1336 | refs/heads/master | 2020-09-14T12:45:16.269268 | 2019-12-23T14:24:10 | 2019-12-23T14:24:10 | 223,128,906 | 0 | 1 | null | 2020-07-22T11:50:46 | 2019-11-21T08:47:28 | Python | UTF-8 | Python | false | false | 271 | #!/home/admin-1/PycharmProjects/FunDooapp/virtualenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"[email protected]"
] | ||
b4f53d695d80feab5e9b69fa72d78e8512187c80 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_affiliations.py | 42384cf4a16916f7866a17a2fbb1a0dcf5f45e29 | [
"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 | 242 | py |
#calss header
class _AFFILIATIONS():
def __init__(self,):
self.name = "AFFILIATIONS"
self.definitions = affiliation
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['affiliation']
| [
"[email protected]"
] | |
fed4bdd2449e04bd15775b80ce99c2bf71bc3df3 | bbe447a740929eaee1955bd9c1517cf760dd5cb9 | /aralib/adwordsApi/examples/v201003/add_negative_campaign_criterion.py | 54e653048ddbd0762277bfa7d7600e8aed50b548 | [
"Apache-2.0"
] | permissive | MujaahidSalie/aranciulla | f3d32e7dd68ecfca620fe4d3bf22ecb4762f5893 | 34197dfbdb01479f288611a0cb700e925c4e56ce | refs/heads/master | 2020-09-07T02:16:25.261598 | 2011-11-01T21:20:46 | 2011-11-01T21:20:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,065 | py | #!/usr/bin/python
#
# Copyright 2010 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"[email protected]"
] | |
d90727f571830e06611f1580efa36793cde8b63e | b08bddd99d49ff242aa890b491cbbdf09ce128f0 | /apps/login_app/migrations/0004_auto_20170823_1152.py | 3226750b3561b5ea2af2985e960273767eed143f | [] | no_license | HollinRoberts/friends | 24b99c031a7771ad1b35a22112658f01fe3d8090 | ae22c690f6800c74b6f794f44eefd97b607d008a | refs/heads/master | 2021-01-20T05:28:42.381205 | 2017-08-25T22:41:21 | 2017-08-25T22:41:21 | 101,447,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-23 18:52
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('login_app', '0003_auto_20170823_1148'),
]
operations = [
migrations.AddFiel... | [
"[email protected]"
] | |
c4f9a57a58113e650a9ac005d75441afa0d6d22e | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/stacksNqueues_20200722084452.py | d0552e00c0ca213a09d1eebd1be5b92128dad478 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | # we'll use a list to rep stack and a queue
# empty list
# stack is last in first out
stack = []
stack.append(1)
stack.append(2)
stack.append(3)
stack.append(4)
# remove item from stack(pop)
x = stack.pop()
from collections import deque
# create empty deque
queue = deque()
queue.append(1)
queue.append(2)
queu... | [
"[email protected]"
] | |
ca9694bf200c7f1b74e093a94f8a7fb7b3f38eb3 | 94f156b362fbce8f89c8e15cd7687f8af267ef08 | /endterm/main/permissions.py | fa03d8dfbbb352fd4d500b5d47d7396758ac8649 | [] | no_license | DastanB/AdvancedDjango | 6eee5477cd5a00423972c9cc3d2b5f1e4a501841 | 2b5d4c22b278c6d0e08ab7e84161163fe42e9a3f | refs/heads/master | 2020-07-17T19:21:16.271964 | 2019-12-03T21:58:51 | 2019-12-03T21:58:51 | 206,081,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from rest_framework.permissions import IsAuthenticated, BasePermission
from django.contrib.auth.models import User
class ArticlePermission(BasePermission):
message = 'You must be the owner of the project.'
def has_permission(self, request, view):
return True
def has_object_permission(self, reques... | [
"[email protected]"
] | |
27612de0eb84d3c9a15217b1cf2ccef7a2e61e91 | 95df12156e4dd24ed3646a93da972ab1a8e654f5 | /propmix/hpiraw/hpiraw_api_server/hpiraw/dbauth.py | 046ff02ca76ec3638b865c08fa7bf60437ba96d4 | [] | no_license | sijuaugustin/ingts | 1cf05e9acaac85181f82b8442537755a7799e300 | 68df567caa7c581e89eea7130fa8a45cd83a40ae | refs/heads/master | 2020-06-01T15:49:23.620893 | 2017-06-13T06:56:27 | 2017-06-13T06:56:27 | 94,078,907 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | '''
Created on Jan 6, 2017
@author: joseph
'''
DATABASE_ACCESS = {'name': 'hpi_api',
'password': 'hpi@!23',
'source': 'cognubauth'
}
| [
"[email protected]"
] | |
4216ba8538130d5be7bb47ed1e6f3ccb8612f153 | db4f69e1643b61c411fee9190a3ae8f77ee2db04 | /polyaxon/api/experiment_groups/serializers.py | 3bafa236ca3b166d8ecdadbbad365de6ba88f485 | [
"MIT"
] | permissive | gzcf/polyaxon | f159c4138fee5b1f47fb57aa6bda440fe29812fb | 77ac8838c6444a36541e6c28aba7ae42de392fee | refs/heads/master | 2021-04-18T21:22:54.269899 | 2018-08-24T09:22:22 | 2018-08-24T09:22:22 | 126,830,407 | 0 | 0 | MIT | 2018-04-20T18:07:17 | 2018-03-26T13:08:02 | Python | UTF-8 | Python | false | false | 4,125 | py | from rest_framework import fields, serializers
from rest_framework.exceptions import ValidationError
from api.utils.serializers.bookmarks import BookmarkedSerializerMixin
from db.models.experiment_groups import ExperimentGroup, ExperimentGroupStatus
from libs.spec_validation import validate_group_spec_content
class ... | [
"[email protected]"
] | |
893dfeefb69b21a01de2a54510f145d36809b70b | 58bc54ce2f5d4beaac2366bf5b0bb76e51ebfda3 | /pytorch_toolbelt/datasets/segmentation.py | cadd5b4769c66e66c8cb6b0a8d058123710d1111 | [
"MIT"
] | permissive | anashas/pytorch-toolbelt | 1fbe76648719b2e1832e9fcbd0b2c30f134882cc | a04e28b10a43747ab75f88503ee771f89edf59fb | refs/heads/master | 2023-03-15T00:31:48.045880 | 2021-03-02T20:36:27 | 2021-03-02T20:36:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,487 | py | from functools import partial
from typing import Optional, List, Callable
import albumentations as A
import cv2
import numpy as np
from skimage.measure import block_reduce
from torch.utils.data import Dataset
from .common import (
read_image_rgb,
INPUT_IMAGE_KEY,
INPUT_IMAGE_ID_KEY,
INPUT_INDEX_KEY,
... | [
"[email protected]"
] | |
4508094ece806298cf2145b030d29774f438347a | e4f8b14cead542586a96bcaa75993b0a29b3c3d0 | /pyNastran/utils/log.py | 8b482bf35aacb394dae8997f2100b891fd92ef91 | [] | no_license | afcarl/cyNastran | f1d1ef5f1f7cb05f435eac53b05ff6a0cc95c19b | 356ee55dd08fdc9880c5ffba47265125cba855c4 | refs/heads/master | 2020-03-26T02:09:00.350237 | 2014-08-07T00:00:29 | 2014-08-07T00:00:29 | 144,398,645 | 1 | 0 | null | 2018-08-11T15:56:50 | 2018-08-11T15:56:50 | null | UTF-8 | Python | false | false | 5,063 | py | import sys
import platform
import os
def make_log(display=False):
"""
Creates 'pyNastran.log' file with information about working environment,
such as Python version, platform, architecture, etc. Useful for debugging.
:param display: do not only create file but also print log information
"""
s... | [
"mesheb82@abe5364a-6225-a519-111c-932ebcde5b3b"
] | mesheb82@abe5364a-6225-a519-111c-932ebcde5b3b |
18358ae17ee34ba9ba626dedeb0a03bc901ffec5 | bc526da042a8d5d2a239989efecb35fd4272e611 | /odps/ml/regression/tests/test_regression.py | 674999ee51b95dcb4d72bfbe4ee01d68c24a34df | [
"Apache-2.0"
] | permissive | forvendettaw/aliyun-odps-python-sdk | 595928fff039ae43d2736c53fc27d947def24e35 | a490a255efd0553cca4454d79ed83b777aae8888 | refs/heads/master | 2021-01-12T02:47:31.578957 | 2017-01-05T03:05:06 | 2017-01-05T03:05:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,191 | py | # encoding: utf-8
# 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
# "Licens... | [
"[email protected]"
] | |
560210583dcd9e410b9a6d3ce7eccb94b910daaf | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_ashuwp_A.py | 2b4922b913d674d05b48e7ff31fca4b01cb5237e | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 441 | py | def sheep(num):
if num == 0:
return "INSOMNIA"
itr = tr = 0
while tr != 1023:
cnt = 0
itr += 1
temp = str(num * itr)
for k in temp:
cnt |= 1 << int(k)
tr |= cnt
return num * itr
if __name__ == "__main__":
tc = i... | [
"[[email protected]]"
] | |
3aa435659cdd66419cc6a2c5579e721ad5ecf45d | 4b3ae6048ced0d7f88a585af29fa3a7b15005749 | /Python/Django/AJAX/user_login/apps/orm_app/migrations/0001_initial.py | fed103cb60fdb32297924849629a3e26c80f3a0a | [] | no_license | ajag408/DojoAssignments | a6320856466ac21d38e8387bdcbbe2a02009e418 | 03baa0ff5261aee6ffedf724657b3a8c7cdffe47 | refs/heads/master | 2022-12-11T15:50:46.839881 | 2021-06-07T20:57:17 | 2021-06-07T20:57:17 | 79,872,914 | 0 | 0 | null | 2022-12-08T00:35:09 | 2017-01-24T02:58:15 | Python | UTF-8 | Python | false | false | 877 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-07-25 03:49
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',
... | [
"[email protected]"
] | |
a8785d9e209ad0d74353f91f65a34d7c4e5ab111 | 3e45ea5b84fdce1d1c391929e6e95c5ecbfdbf98 | /day03/app03_1/migrations/0005_animal_cat_dog.py | 293a57087d20852f2a63c1505c8803080066aa6e | [
"Apache-2.0"
] | permissive | General-Coder/Django-Introduction | 3cc75bc2098a0f90769d375aeee8f999a4f6fcc6 | e88b12682f9abc46a90a0fc79e7443537230a506 | refs/heads/master | 2020-04-05T07:34:44.540644 | 2018-11-11T14:30:12 | 2018-11-11T14:30:12 | 156,681,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-10-24 16:46
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app03_1', '0004_teacher_xz'),
]
operations = [
... | [
"[email protected]"
] | |
dff4df7f2b57a2ea5b48b4b41f6928afa2de7294 | 3a9f2b3d79cf214704829427ee280f4b49dca70a | /saigon/rat/u/fm/_report_mgmt_cfg.py | 031da9c2287b3c40022bf4816bc7505478d10035 | [] | no_license | jichunwei/MyGitHub-1 | ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791 | f826fc89a030c6c4e08052d2d43af0b1b4b410e3 | refs/heads/master | 2021-01-21T10:19:22.900905 | 2016-08-20T03:34:52 | 2016-08-20T03:34:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,184 | py | '''
This tea to work with Reports page.
1. Reports foundation development
+ to cover those pages: Device View, Active Firmware, Historical
Connectivity, Association, Provision, Events, Speed Flex
+ to provide basic report activities:
+ fill in report options (inc. filters)
+ generate the report
+ ... | [
"[email protected]"
] | |
96aa5a1461e19e2949d8c3ae4a84b8a9c7751ff7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02255/s769034459.py | 6f0767f2d12bd0d4ef95fa9cd88e9316da5284d9 | [] | 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 | 587 | py | import sys
def insert_sort(array):
for i in range(0, len(array)):
v = array[i]
j = i - 1
while (j >= 0) and (array[j] > v):
array[j + 1] = array[j]
j -= 1
array[j + 1] = v
print print_list(array)
return array
def print_list(array):
s = ""
... | [
"[email protected]"
] | |
9621f6de9e603b381c794751a9e39256ceb86e62 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_intermarrying.py | 448779925828137d3486fd5f49c4d3a4f0523579 | [
"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 | 242 | py |
#calss header
class _INTERMARRYING():
def __init__(self,):
self.name = "INTERMARRYING"
self.definitions = intermarry
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['intermarry']
| [
"[email protected]"
] | |
f3d200f5ad3c364311c5a8d6f245b9b7602b099e | 31009efe0b3882551f03dcaa9c71756c7c6f6ede | /src/main/resources/twisted/test/stdio_test_loseconn.py | 7f95a016b4a41e7ef1c45723dd2ebd0778ee341e | [
"Apache-2.0",
"ZPL-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | riyafa/autobahntestsuite-maven-plugin | b533433c75f7daea2757158de54c6d80d304a962 | 737e6dad2d3ef794f30f0a2013a77e28decd2ec4 | refs/heads/master | 2020-08-16T13:31:39.349124 | 2019-10-16T09:20:55 | 2019-10-16T09:20:55 | 215,506,990 | 0 | 0 | Apache-2.0 | 2019-10-16T09:18:34 | 2019-10-16T09:18:34 | null | UTF-8 | Python | false | false | 1,514 | py | # -*- test-case-name: twisted.test.test_stdio.StandardInputOutputTestCase.test_loseConnection -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Main program for the child process run by
L{twisted.test.test_stdio.StandardInputOutputTestCase.test_loseConnection} to
test that ITransport.lose... | [
"[email protected]"
] | |
3453ef9fb376dd038b165acdf01d35326cba96a5 | ae8590dc2dd0dd6530868ccd52702d06e5d96fa1 | /copy of source code.py | b5a8ca45a3da63b6f0813916fd6af3bbdc1b8dd5 | [] | no_license | abhisek08/Python-Basics-Part-1- | e3bec8e4d7f9e484c4bcade7763842334c93f4b0 | 3687dd6ebb01f2289b3fa226cea28b564894a68f | refs/heads/master | 2022-09-08T11:42:28.871012 | 2020-05-25T07:58:01 | 2020-05-25T07:58:01 | 266,717,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 161 | py | '''
Write a Python program to create a copy of its own source code.
'''
print()
print((lambda str='print(lambda str=%r: (str %% str))()': (str % str))())
print() | [
"[email protected]"
] | |
6271957d52b5f94a002352d4446b733e556860f3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03060/s903224060.py | f50e8567bb440e68db273f2b40d0b0d865cac43a | [] | 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 | 461 | py | import sys
sys.setrecursionlimit(10**6)
n = int(input())
v = list(map(int, input().split()))
c = list(map(int, input().split()))
#n, m = map(int, input().split())
#s = input()
#s,t = input().split()
#a = [int(input()) for _ in range(n)]
#
#readline = sys.stdin.readline
#n,m = [int(i) for i in readline().split()]
#ab =... | [
"[email protected]"
] | |
2558d70cd897e6f36debd3e0e01e05c3f02cf98a | 5b9b1139848db270f5987d4d539c39a30115e87b | /solutions/inod.py | be970934ef14c54ddf4e4fd8782a9c1426f94dc3 | [] | no_license | mady1258/Bioinformatics_Stronghold | 3d0f82b3cff0066246eb6641368a4ea4fe366362 | 6c7daf1ea92b2a74657c9ce40a19d356177d983e | refs/heads/master | 2023-02-04T14:00:54.985085 | 2020-12-23T11:32:03 | 2020-12-23T11:32:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import sys
if __name__ == "__main__":
'''
Given: A positive integer n (3≤n≤10000).
Return: The number of internal nodes of any unrooted binary tree having n leaves.
'''
n = int(sys.stdin.readline().rstrip())
# An unrooted tree with n leaves and m internal nodes should have n + 3m total degrees... | [
"[email protected]"
] | |
533f6ecce51b82f53b872fc88c7b8e9ebcf7864b | fb2cc597f319380d228fc15c4008760a82203687 | /var/spack/repos/builtin/packages/e3sm-kernels/package.py | 2e8534ee60c1371305fb8b850092d450a78a511f | [
"Apache-2.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"LGPL-2.1-only"
] | permissive | JayjeetAtGithub/spack | c41b5debcbe139abb2eab626210505b7f930d637 | 6c2df00443a2cd092446c7d84431ae37e64e4296 | refs/heads/develop | 2023-03-21T02:35:58.391230 | 2022-10-08T22:57:45 | 2022-10-08T22:57:45 | 205,764,532 | 0 | 0 | MIT | 2019-09-02T02:44:48 | 2019-09-02T02:44:47 | null | UTF-8 | Python | false | false | 1,887 | py | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import os
from spack.package import *
class E3smKernels(MakefilePackage):
"""
Climate kernels for Co-design tha... | [
"[email protected]"
] | |
d8534409bd889016971a612a14dde9520fab2066 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/3491924/snippet.py | 206562a28b41564df1d60ab42576e7b4bb1dd96a | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 860 | py | import os
from urlparse import urlparse
from flask import Flask
from pymongo import MongoClient
MONGO_URL = os.environ.get('MONGOHQ_URL')
if MONGO_URL:
# Get client
client = MongoClient(MONGO_URL)
# Get database
db = client[urlparse(MONGO_URL).path[1:]]
else:
# Not on an app with the MongoHQ add-on, do some... | [
"[email protected]"
] | |
7eae6423802f038e65f587ba7edb68bb345f425b | 7a7a0663efd2c25adf26f6552e3c4e95e9ac4e63 | /holon/models/rmm.py | b27372b02be9352ffcb461a93b9dea68933d012b | [] | no_license | smizell/holon | 2c5654094cb007a9fceae621630126d9173c4f2c | 9cdf39b74cee31ed9c84c94b792814f0b9fc6483 | refs/heads/main | 2023-02-03T15:46:41.059117 | 2020-12-09T23:10:39 | 2020-12-09T23:10:39 | 317,355,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | from holon.principles import Principle
level0 = Principle(
name="RMM Level 0",
reference="https://martinfowler.com/articles/richardsonMaturityModel.html#level0",
)
level1 = Principle(
name="RMM Level 1",
reference="https://martinfowler.com/articles/richardsonMaturityModel.html#level1",
)
level2 = Princ... | [
"[email protected]"
] | |
284fb1b51ef430201f817392977842c1cd80a739 | 49f61714a6f78d984fd2194d6064d84e891bc5b7 | /2019-1/231/users/4237/codes/1796_1613.py | 34c1d6c7aa6950bb644b8a059a48fc732ab82aae | [] | no_license | psbarros/Variaveis3 | b5c4e1517e7d94a846ee03791d25d5821a1c651c | 3dcf6f810709ce03c78335acf9533e008a2ae125 | refs/heads/master | 2023-06-13T07:05:00.878430 | 2021-07-06T17:51:37 | 2021-07-06T17:51:37 | 383,549,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from numpy import*
vet = input("Digite a atividade fisica ai: ")
tempo = array(eval(input("E o tempo: ")))
i = 0
if(vet == 'ALONGAMENTO'):
total = 3*tempo
i = i + 1
elif(vet == 'CORRIDA')
total | [
"[email protected]"
] | |
175287ff552e87d65033887d77371e0b868bf754 | 11ad22552bf6719214239a95d032f5559bf57dc5 | /eventregistry/QueryStory.py | c139a651db188cdf76bd89d15031f14e17ff796f | [
"MIT"
] | permissive | arunkumar6545/event-registry-python | 803914d00a1ce6dda40a1673debac75222b0614e | 2ccff7799a03f71189ed666f25f3eb673c1a8263 | refs/heads/master | 2020-09-10T15:46:57.804243 | 2019-11-16T16:57:06 | 2019-11-16T16:57:06 | 221,745,070 | 0 | 0 | MIT | 2019-11-14T16:52:00 | 2019-11-14T16:51:59 | null | UTF-8 | Python | false | false | 6,706 | py | from eventregistry.Base import *
from eventregistry.ReturnInfo import *
class QueryStory(Query):
"""
Class for obtaining available info for one or more stories (clusters) in the Event Registry
NOTE: Story in our terminology is a cluster of articles (and not a single article). An event is
then somethin... | [
"[email protected]"
] | |
f5c72b1f3b8cbbe42360e74a8ca4056e885d0bab | ec760cb774a45a12d40529036b7fca3dd589223c | /services/TS29222_CAPIF_Routing_Info_API/capif_routing_info/models/ipv4_address_range.py | 8bf453284830c0d9696da8ccd2b8deea4ae98178 | [
"Apache-2.0"
] | permissive | EVOLVED-5G/CAPIF_API_Services | e4d7f8c7fc9a69aa364787471c5bd54d51fd1cb8 | c907c68d54adf3e3ad7be15ac6707b8c64a1b778 | refs/heads/develop | 2023-07-29T09:31:23.176795 | 2023-05-31T12:56:33 | 2023-05-31T12:56:33 | 416,657,882 | 15 | 5 | Apache-2.0 | 2023-09-04T12:01:57 | 2021-10-13T08:46:52 | Python | UTF-8 | Python | false | false | 3,479 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from capif_routing_info.models.base_model_ import Model
import re
from capif_routing_info import util
import re # noqa: E501
class Ipv4AddressRange(Model):
"""NO... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.