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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c12bc6fa7adfc6eae327069b0170b1dad10e7206 | 9ff1058a0500be499fd3de9ec0beccd697d5273c | /DWIProcessing/Preprocessing/PNC/preprocPNC_v1.py | 1ad2d145b43118a7419a6f7f7407225200cd6450 | [] | no_license | jrussell9000/NeuroScripts | 93f53c7d38c1d51fdc0cf39096e0996daee887cf | e41558754bd36385f94934333cb39a6500abfd9f | refs/heads/master | 2021-06-09T20:30:59.956137 | 2021-04-08T18:45:39 | 2021-04-08T18:45:39 | 151,635,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,908 | py | #!/usr/bin/env python3
# coding: utf-8
import os
import shutil
import subprocess
from joblib import parallel_backend, delayed, Parallel
from pathlib import Path
#####################################
# ----PREPREOCESSING PARAMETERS---- #
#####################################
# --Change as needed - last set for BRC Yo... | [
"jrussell9000@gmail.com"
] | jrussell9000@gmail.com |
4beef22bf29700d3794b948c98dbaa4b55e1f8e0 | 7db6c1865cf9102808824ff06cda747b6e572a21 | /Python/Test/Time/time_count.py | 9d6d2bf361c05494395587a1c48789d455799998 | [] | no_license | hyteer/testing | 1f6cabc1d2b67faa4533e6ad7eb5be8c13d542c9 | 1d8b47b3bbb2daf00e4f15b5d18e86111ea4e113 | refs/heads/master | 2020-05-21T16:19:08.243676 | 2017-01-03T01:25:17 | 2017-01-03T01:25:17 | 60,914,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | import time
from datetime import datetime
def compute(i):
for i in range(1,i):
i = i+1
return i
start_time = datetime.now()
print "start:%s" % str(start_time)
n = compute(100000)
end_time = datetime.now()
print "end:%s" % str(end_time)
#elapsed_time = end_time - start_time
#print "elapsed_time:%s" % str(elap... | [
"hyteer@qq.com"
] | hyteer@qq.com |
88f98b361bb900da84472e106fdc314378c2e695 | facbdbdadacd23f6c83d266116dc14744741070f | /Core_Python/Day-22/Dict/13.py | b12af90d65221bfd295325d609af46cfb2c20761 | [] | no_license | Yogesh-Singh-Gadwal/YSG_Python | 51b6b53fe34567bf066b6e487c00da766b47ac6b | f0d6841e1f92d1d2b27d8ecdd332d40b49a5ca69 | refs/heads/master | 2023-06-06T04:40:12.004713 | 2021-07-06T19:59:26 | 2021-07-06T19:59:26 | 292,482,586 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | # dict
import time
d1 = {
"a":"micky",
"b":"akira",
"c":"rahul"
}
print(d1)
print(type(d1))
print()
time.sleep(3)
d1['d'] = 'amit'
print(d1)
| [
"noreply@github.com"
] | Yogesh-Singh-Gadwal.noreply@github.com |
a72087a44335f22fff3c3d621b637d544e2e3392 | 07cabeb47bd7c9a4e06e824ece28631c7d7441a1 | /virtual/bin/isort | 2e2a74cd71c3ca27a9b212875725fc510dc66f43 | [
"MIT"
] | permissive | Jeffmusa/PITCH-POOL | bd2b27ea5bc5b47499c0b822c46ff518eae5f2f4 | 96654a3ba7fc3f4ba00d7fb617644cc9cd5ba041 | refs/heads/master | 2020-03-28T04:17:07.471479 | 2018-09-13T13:21:17 | 2018-09-13T13:21:17 | 147,705,197 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 236 | #!/home/vicklyne/Pitch/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jeffmusa@gmail.com"
] | jeffmusa@gmail.com | |
fc99177cb2c2d349aa7b8d333935662131b2b0d2 | ba86ef56fb2ff1a8bf9be3058b58b9e48e7b50ce | /apps/rrhh/urls/activoUrls.py | f9ebbd3822e6e27218afabebd53c16babc23aa94 | [] | no_license | robertowest/lubre_homepage | 277f8fc81512b482fbea539234f30ef3eb801480 | 9de02443ba2ee3cd48afd2b7d580a09081fe84f2 | refs/heads/master | 2023-07-14T04:39:38.640155 | 2021-08-30T17:43:56 | 2021-08-30T17:43:56 | 223,473,409 | 0 | 0 | null | 2020-05-07T13:50:46 | 2019-11-22T19:34:22 | Python | UTF-8 | Python | false | false | 563 | py | from django.urls import path
from apps.rrhh.views import activoViews as views
app_name = "activo"
urlpatterns = [
path('', views.ActivoTemplateView.as_view(), name='index'),
path('listado/', views.ActivosListView.as_view(), name='list'),
path('<int:fk>/crear/', views.ActivoCreateView.as_view(), name='cre... | [
"roberto.west@gmail.com"
] | roberto.west@gmail.com |
d1ca7482114376f98e1dcdf854e9233fdc546a85 | 71f7d58c9a33fc8fdfdd85d5f432565010856c5a | /ciscripts/check/project/__init__.py | 69052c33b396fab013dd28c9d6aedeb5ed0e50c7 | [
"MIT"
] | permissive | polysquare/polysquare-ci-scripts | 32a3bbcab62d77c1dfcbbf0ad78a23306e67d8c6 | 9978f0600ea964a9f2dffd9f4eb01a10d08d6788 | refs/heads/master | 2022-10-27T23:37:25.192253 | 2018-02-22T02:03:11 | 2018-02-22T02:03:20 | 28,320,857 | 2 | 2 | MIT | 2022-10-23T07:10:40 | 2014-12-22T01:58:27 | Python | UTF-8 | Python | false | false | 193 | py | # /ciscripts/check/project/__init__.py
#
# Module loader file for /ciscripts/check/project.
#
# See /LICENCE.md for Copyright information
"""Module loader file for /ciscripts/check/project."""
| [
"smspillaz@gmail.com"
] | smspillaz@gmail.com |
a40241e3028bcbd61a3f99c32bbbcd513a9624c9 | e0f133b49f9f0f416f14da70a2cadb7011c0cb7b | /new_spider/extractor/souhu_learning/souhu_extractor.py | dfe47174d0ba973418907950c1f51c2e8a8f0f9a | [] | no_license | cash2one/python_frame | ac52d052fd3698303f1f4fa022f3b35a56e07533 | 2dbda155780a19cf42d5376104879d0667fbbf75 | refs/heads/master | 2021-06-18T13:28:40.356527 | 2017-06-28T02:51:35 | 2017-06-28T02:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,564 | py | # -*- coding: utf8 -*-
import traceback
import datetime
import re
import json
from lxml.html import fromstring
import sys
import random
reload(sys)
sys.setdefaultencoding('utf8')
from store.sx_basestore import BaseStore
from bs4 import BeautifulSoup
'''
使用bs 解析
'''
class SourceExtractor (object):
'''
... | [
"1925453680@qq.com"
] | 1925453680@qq.com |
7d17d96e13057b1f94d9771992243f7e923410b6 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v7_2_0/interface/hundredgigabitethernet/switchport/__init__.py | 5aee5f6f90f1fafbc5ecf6e1dd1f68151d3786c2 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,646 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
49cf7d40a41f08cf4b9942fb0992993977cdd6cb | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/Gluon_ResNet50_v1b_for_PyTorch/timm/models/layers/halo_attn.py | 5cb9d54dd40bdc666fb9eb7c60ee2eaa1c43e199 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"CC-BY-NC-4.0",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 7,400 | py | # Copyright 2019 Ross Wightman
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
9090de0981c2a4334712d26275bc1f06aeb6a383 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_lees.py | 0c52ef364ea8500533dfc82c6c80a47232551d67 | [
"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 | 217 | py |
from xai.brain.wordbase.nouns._lee import _LEE
#calss header
class _LEES(_LEE, ):
def __init__(self,):
_LEE.__init__(self)
self.name = "LEES"
self.specie = 'nouns'
self.basic = "lee"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e86906546d5709bb143c540a3d02b9fb77e10673 | 27b86f422246a78704e0e84983b2630533a47db6 | /tests/test_05_tools/test_534_dwg_info.py | 3b9e92c3d0eced9c637c8286aceef1c82a2dbdfa | [
"MIT"
] | permissive | mozman/ezdxf | 7512decd600896960660f0f580cab815bf0d7a51 | ba6ab0264dcb6833173042a37b1b5ae878d75113 | refs/heads/master | 2023-09-01T11:55:13.462105 | 2023-08-15T11:50:05 | 2023-08-15T12:00:04 | 79,697,117 | 750 | 194 | MIT | 2023-09-14T09:40:41 | 2017-01-22T05:55:55 | Python | UTF-8 | Python | false | false | 988 | py | # Copyright (c) 2022, Manfred Moitzi
# License: MIT License
import pytest
from ezdxf.dwginfo import dwg_info
R12 = "41 43 31 30 30 39"
R2000 = "41 43 31 30 31 35"
R2018 = "41 43 31 30 33 32"
R20XX = "41 43 31 30 33 33"
unknown1 = "32 32 31 30 33 32"
unknown2 = ""
def data(s) -> bytes:
return bytes(int(x, 16) ... | [
"me@mozman.at"
] | me@mozman.at |
f60fa889f48e5d98c9ed095639ff9bbcdbced23b | 364085d006bb0e31f915091a07125501ab455277 | /amplify/agent/util/http.py | 2a6ec08a67743e03fcc23d237fde672d3aa78fd6 | [
"BSD-2-Clause"
] | permissive | digideskio/digidesk-amplified | 6f64768c28b7ecc32088259f07498df6956341ae | 547f899d6fd47dc726df28ee90bf3511f02bd6cf | refs/heads/master | 2020-12-30T23:21:08.300692 | 2016-04-14T12:20:01 | 2016-04-14T12:20:01 | 56,352,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,597 | py | # -*- coding: utf-8 -*-
import ujson
import time
import requests
import logging
import zlib
from amplify.agent import Singleton
from amplify.agent.context import context
requests.packages.urllib3.disable_warnings()
"""
WHY DO YOU DISABLE THIS WARNING?
We don't want to show you redundant messages.
IS IT A REAL PRO... | [
"dedm@nginx.com"
] | dedm@nginx.com |
e0bfd11f7270a4b660b186cb8e2368ef570c68ff | aa0bf4e774ff82065927dbddf34be19c09b64c9c | /examples/ex1.py | 64ac038d0826dd17f9a516ada94d2873b01d30ab | [
"BSD-3-Clause"
] | permissive | grst/ipymd | 510ea6feb2726fadfe24ebbcbf3981c104fad8d8 | 4a57c4212b8e71848d51826859c2a3e478037e28 | refs/heads/grst | 2023-04-02T14:38:34.154687 | 2020-12-02T11:37:38 | 2020-12-02T11:37:38 | 87,005,381 | 38 | 6 | BSD-3-Clause | 2018-08-28T11:33:46 | 2017-04-02T18:08:34 | HTML | UTF-8 | Python | false | false | 511 | py | # List of ipymd cells expected for this example.
output = [
{'cell_type': 'markdown',
'source': '# Header'},
{'cell_type': 'markdown',
'source': 'A paragraph.'},
{'cell_type': 'markdown',
'source': 'Python code:'},
{'cell_type': 'code',
'input': 'print("Hello world!")',
'out... | [
"cyrille.rossant@gmail.com"
] | cyrille.rossant@gmail.com |
48218e1f9f444bb01ae4752bef0b91bea2ed4dcb | c6a101547c2b7f36fe83a725974a8a7f02cf176d | /data_structures/bst/bt_to_bst.py | a3943ce19459c0432a31bde8205bf3bcf1beb69f | [
"MIT"
] | permissive | prabhupant/python-ds | 737cc35574de5c2ece0f0813cf00775324a8dbe7 | f7d6d78fedaf84b7527965bb1798b7a8da989474 | refs/heads/master | 2023-08-22T05:04:22.937675 | 2022-10-04T01:29:39 | 2022-10-04T01:29:39 | 199,366,418 | 2,325 | 704 | MIT | 2022-10-10T13:01:10 | 2019-07-29T02:48:57 | Python | UTF-8 | Python | false | false | 767 | py | class Node:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
def store_inorder(root, inorder):
if root is None:
return
store_inorder(root.left, inorder)
inorder.append(root.data)
store_inorder(root.right, inorder)
def count_nodes(root):... | [
"prabhupant09@gmail.com"
] | prabhupant09@gmail.com |
0fa67e76425e468c985c3025e54b6202be4272fd | f9e265f39cdfa568e67acb50840f9655fc4d65f7 | /builtinfunctionstypes.py | b39cd0b6875e905da2d2d93d4b3b82210ca30fcf | [] | no_license | raymondmar61/pythonwilliamfiset | 5a4fc7faba6880f3df6b3ded98cc6d17925e7895 | aae7c533f48efbe91a4e7c2d640f2032cd97e1f3 | refs/heads/master | 2021-01-25T04:42:19.546278 | 2017-09-28T22:15:30 | 2017-09-28T22:15:30 | 93,469,377 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | #williamfiset 30 Builtins 5 of 6 Types
# tuple, list, str, bool, int, float
from math import pi as PIE
print(tuple("My_Python")) #print ('M', 'y', '_', 'P', 'y', 't', 'h', 'o', 'n')
print(tuple((1,2,3))) #print (1, 2, 3)
print(tuple( ['G','N','U'] )) #print ('G', 'N', 'U'). List becomes a tuple
print(list(range(10))... | [
"raym61@hotmail.com"
] | raym61@hotmail.com |
57145efae0a73a250ab079b71515694b7e3fa35e | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.2/desktop/freedesktop/hal/actions.py | 8548d7eb4c9dc4cbaff444aa99ef55843bd1fd65 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,796 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2007 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import libtools
from pisi.acti... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
54c170d0ddb924fd6e0c42ffd2a7d2a6f7895aea | 8ef8e6818c977c26d937d09b46be0d748022ea09 | /cv/detection/autoassign/pytorch/mmdet/apis/inference.py | b3e6f862f8b76afdf8b73439796ac89352b2d48b | [
"Apache-2.0"
] | permissive | Deep-Spark/DeepSparkHub | eb5996607e63ccd2c706789f64b3cc0070e7f8ef | 9d643e88946fc4a24f2d4d073c08b05ea693f4c5 | refs/heads/master | 2023-09-01T11:26:49.648759 | 2023-08-25T01:50:18 | 2023-08-25T01:50:18 | 534,133,249 | 7 | 6 | Apache-2.0 | 2023-03-28T02:54:59 | 2022-09-08T09:07:01 | Python | UTF-8 | Python | false | false | 8,736 | py | # Copyright (c) OpenMMLab. All rights reserved.
import warnings
from pathlib import Path
import mmcv
import numpy as np
import torch
from mmcv.ops import RoIPool
from mmcv.parallel import collate, scatter
from mmcv.runner import load_checkpoint
from mmdet.core import get_classes
from mmdet.datasets import... | [
"jia.guo@iluvatar.ai"
] | jia.guo@iluvatar.ai |
971cbd5365ebabe295b53bc89246a7dab9884348 | 18239524612cf572bfeaa3e001a3f5d1b872690c | /clients/oathkeeper/python/ory_oathkeeper_client/models/swagger_create_rule_parameters.py | fa695454e4e5de58f8d17064a76a47b6c668c873 | [
"Apache-2.0"
] | permissive | simoneromano96/sdk | 2d7af9425dabc30df830a09b26841fb2e8781bf8 | a6113d0daefbbb803790297e4b242d4c7cbbcb22 | refs/heads/master | 2023-05-09T13:50:45.485951 | 2021-05-28T12:18:27 | 2021-05-28T12:18:27 | 371,689,133 | 0 | 0 | Apache-2.0 | 2021-05-28T12:11:41 | 2021-05-28T12:11:40 | null | UTF-8 | Python | false | false | 3,509 | py | # coding: utf-8
"""
ORY Oathkeeper
ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. # noqa: E501
The version of the OpenAPI document: v0.0.0-alpha.37
Contact: hi@ory.am
Genera... | [
"noreply@github.com"
] | simoneromano96.noreply@github.com |
4415b7bf0416b19028465628c5d14a17d2e84962 | 932a6797f1e97c7f8c96af83647fc27d2324765e | /python/1138. Alphabet Board Path.py | 6b59f12b589ba7b471f1b8f5ad023ddb023c67ed | [] | no_license | rhzx3519/leetcode | 1245e0a19dbcb4b853eb0ac369601f31171b55c5 | 2fe336e0de336f6d5f67b058ddb5cf50c9f00d4e | refs/heads/master | 2023-08-17T01:27:49.674440 | 2023-08-16T23:08:59 | 2023-08-16T23:08:59 | 85,682,362 | 3 | 1 | null | 2021-05-08T12:10:56 | 2017-03-21T09:23:02 | Python | UTF-8 | Python | false | false | 1,864 | py | class Solution(object):
def alphabetBoardPath(self, target):
"""
:type target: str
:rtype: str
"""
board = ["abcde", "fghij", "klmno", "pqrst", "uvwxy", "z"]
m, n = len(board), len(board[0])
vis = [[-1]*len(board[0]) for _ in range(len(board))]
dirt = ... | [
"louzhenghao@itiger.com"
] | louzhenghao@itiger.com |
a344d7024b0846d0428ce64b15b6e3afecb52464 | 1ee910d6602123eb1328f56419b04e31b3761b6b | /bin/pilfile.py | 9958e72c9cff0d5f0c078db012a9bcb82355fa89 | [
"MIT"
] | permissive | mraza007/Pizza-or-Not-a-Pizza | 7fc89e0905c86fbd3c77a9cc834a4b6098912aeb | 6ad59d046adbd6be812c7403d9cb8ffbdbd6b0b8 | refs/heads/master | 2022-12-15T15:47:34.779838 | 2018-07-04T02:28:56 | 2018-07-04T02:28:56 | 127,992,302 | 30 | 4 | MIT | 2022-11-22T00:43:51 | 2018-04-04T01:56:26 | Python | UTF-8 | Python | false | false | 2,604 | py | #!/home/muhammad/image-recognition/bin/python3
#
# The Python Imaging Library.
# $Id$
#
# a utility to identify image files
#
# this script identifies image files, extracting size and
# pixel mode information for known file formats. Note that
# you don't need the PIL C extension to use this module.
#
# History:
# 0.0 ... | [
"muhammadraza0047@gmail.com"
] | muhammadraza0047@gmail.com |
bee9bac253802fcac7d2c1eb66160555ca7defa8 | 3345eebefad6f4348f29cdec2f2d59a89c843861 | /mac/shop/migrations/0003_contact.py | ef5562ab9bfba669d4149c8dd469d07e2bea2681 | [] | no_license | AyushiiJain/My-Ecommerce-Website | fc8e9ccc2a106f2341e1fcb5b718679e2fd7b3bd | 9bdfc9bbd1c7d4573db2d9138b9996abe2f5c1ad | refs/heads/master | 2023-05-17T09:24:23.932158 | 2021-06-09T08:54:36 | 2021-06-09T08:54:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | # Generated by Django 3.2.2 on 2021-05-11 07:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0002_auto_20210508_0633'),
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
... | [
"msinghal3102@gmail.com"
] | msinghal3102@gmail.com |
b8c8c14f81dd191c2eef1374e99d8ae9fd4ca9c4 | 00af09f4ac6f98203910d86c3791c152184ace9a | /Lib/plistlib.py | 0a7bee5507f5fd3113ea27573283e2142f88e3e7 | [] | no_license | orf53975/CarnosOS | 621d641df02d742a2452fde2f28a28c74b32695a | d06849064e4e9f30ef901ad8cf90960e1bec0805 | refs/heads/master | 2023-03-24T08:06:48.274566 | 2017-01-05T16:41:01 | 2017-01-05T16:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94,571 | py | <<<<<<< HEAD
<<<<<<< HEAD
r"""plistlib.py -- a tool to generate and parse MacOSX .plist files.
The property list (.plist) file format is a simple XML pickle supporting
basic object types, like dictionaries, lists, numbers and strings.
Usually the top level object is a dictionary.
To write out a plist file, use the du... | [
"Weldon@athletech.org"
] | Weldon@athletech.org |
2e67cfa924d6e66b5a606f3dd3c8371825938f80 | d12c4bb550c71bb3eaad5dbea099fa79d8001316 | /CodingNinjasOOPS/MethodOverrriding2.py | ba5f63e34530b739d0a728f0ae2216e44eaac359 | [] | no_license | nilesh7808/Coding-Ninjas-DSA-Programs | 8fdd980424e8b21026825ff5d444df7d70545629 | bfdc2bd9b317721d30b8109e6fb37c61bfc577e8 | refs/heads/master | 2023-04-29T02:54:01.247715 | 2021-05-22T03:34:34 | 2021-05-22T03:34:34 | 369,706,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py |
class vehicle:
def __init__(self,color):
self.color = color
def print(self):
print("The color of Car is:",self.color)
class Car(vehicle):
def print(self):
super().print() # Now it will look to the parent class
print("This is Pretty Good ")
c = Car("Black")
c.pri... | [
"rajnilesh088@gmail.com"
] | rajnilesh088@gmail.com |
bebb93feff90d5c700d2dac9c625f44c6b54a245 | 6732dce33ccc8d3912c7dd9bb5a029988586a649 | /samples/apps/search_organize_users.py | 0e3db637d8cf7cb4f2b9ef4ce7081cabd4862e0d | [
"Apache-2.0"
] | permissive | hamada2029/gdata-python3 | 8a0d3cb53b707b7ad2f826a486df254c813e7463 | c1028f6567b480908b90848523bebaf78e6b49f7 | refs/heads/master | 2021-01-22T12:53:28.196826 | 2014-11-30T07:05:30 | 2014-11-30T07:05:30 | 46,613,040 | 1 | 0 | null | 2015-11-21T11:44:20 | 2015-11-21T11:44:19 | null | UTF-8 | Python | false | false | 5,004 | py | #!/usr/bin/python
#
# Copyright 2011 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... | [
"jvarshney20@gmail.com"
] | jvarshney20@gmail.com |
e815ef00e7e2a01d38ebb75253c4bf54a9f245ad | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/TileCalorimeter/TileExample/TileSimEx/scripts/makePlot.py | 769edfceb2d903852931704bb7f471b328dc6ce2 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,939 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
#-----------------------------------------------------
# Author: Dengfeng Zhang
# dengfeng.zhang@cern.ch
#-----------------------------------------------------
# This script has for functions:
# GetPlotSingleProperty(): Get energy respon... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
4343b66f7f4aa4b421a9916100526490275a5e63 | e4de060c295fba0d0386d0a7678e744ced18b920 | /build/move_base_flex/mbf_costmap_core/catkin_generated/pkg.installspace.context.pc.py | d99db631ffe34a45fa7eeeca31b56d21fdb231f6 | [] | no_license | jbenzhhn/carla_hhn | af9497d01ce1f34ee0016ca660a0cc5af5f71be8 | abd803bcdd506641c8152ec994468518ea809f1b | refs/heads/master | 2023-04-05T10:50:28.934452 | 2021-04-07T14:31:41 | 2021-04-07T14:31:41 | 355,151,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | 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 = "std_msgs;geometry_msgs;mbf_abstract_core;mbf_utility;tf;costmap_2d;nav_core".replace(';', ' ')
PKG_CONFIG_LI... | [
"johannes.benz@hs-heilbronn.de"
] | johannes.benz@hs-heilbronn.de |
011004d9088a8eae9ee9471922e947f0df13e0e9 | 1d7ae7f6e7a0df98d92f9ec5f277752d14924a94 | /fake-very-small-test/tmp/Environment_jq.py | 5e6d4b61381271a2d593cd1c8cc162dbd1a0feb7 | [] | no_license | lindsaymorgan/Mobike-Bike-Sharing-System-Dispatch-Optimization-Using-Reinforcement-Learning | 1e6b1aa3c64d2ff2e31b5d9dcc4abdc11e10679c | 6c8a329fae5c2ac8db45a3d8c55b308aae8ad804 | refs/heads/master | 2023-05-02T07:39:49.089459 | 2021-05-23T02:26:14 | 2021-05-23T02:26:14 | 279,467,461 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,717 | py | import numpy as np
from copy import deepcopy
import scipy.stats as stats
class State:
def __init__(self, state, region_count, car_num, out_nums, in_nums, capacity_each_step, reward=0, t=0, reward_sum=0, R=None):
self.region_count = region_count
self.car_num = car_num
self.state = state
... | [
"lindsaymarymorgan@gmail.com"
] | lindsaymarymorgan@gmail.com |
3f9e557501df5b989853196d4359ca663f35ee37 | 266b3911034ffe37f6c1c88ae4061f5792676c8b | /scripts/irods/logging_infrastructure.py | d368b224ecfbbe73002eb15b15cd538eb3162081 | [
"BSD-3-Clause"
] | permissive | trel/irods | cca485264f4189cb9fc9ce63f204faf5ff9f1ff5 | dc462b0e90f3d715546329570f5950dd425dc489 | refs/heads/master | 2022-05-20T16:51:46.864969 | 2021-10-04T17:55:26 | 2021-10-04T17:59:34 | 73,592,300 | 1 | 0 | NOASSERTION | 2021-10-04T17:59:35 | 2016-11-13T03:03:35 | C++ | UTF-8 | Python | false | false | 1,536 | py | #! /usr/bin/python
from __future__ import print_function
import os
import sys
import platform
import subprocess
import shutil
import logging
from .log import register_tty_handler
def rsyslog_config_path():
return '/etc/rsyslog.d/00-irods.conf'
def logrotate_config_path():
return '/etc/logrotate.d/irods'
d... | [
"terrellrussell@gmail.com"
] | terrellrussell@gmail.com |
356f23dcc0f34092b262caed148b54b7583618e5 | ace7e98719c756cff4e4baf7c92e546cbc0b92ca | /LeetCode/firstMissingPositive.py | 37817e06877b8d07f503696fc1fe9d2f340a9bb4 | [] | no_license | armsky/OnlineJudge | f4159326c92a794695cca8a162280fef32f95a2a | c658b78c920aa94c25b3d932cd7e46c0df82b19a | refs/heads/master | 2020-04-15T01:21:18.158217 | 2015-12-11T03:05:28 | 2015-12-11T03:05:28 | 21,989,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | """
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant space.
"""
class Solution:
# @param A, a list of integers
# @return an integer
def firstMissingPositive(self... | [
"armsky1988@gmail.com"
] | armsky1988@gmail.com |
f073c567c4891983543a7c56592a594bf7f068cc | 0e02b452a10c5adff4e988da912b385a3335aba8 | /Noun Phrase Frequencies Visualization/NPFreqSolrDash/nounphrase_visualization_yearly.py | 4e50843dc68e870f2f6700d4c61af016551c0c36 | [] | no_license | tf-dbis-uni-freiburg/arxiv-cs-analysis | 2006bd4c862ba84e137de801d37598f907a8c426 | 40180718c357ec9304e6047fdfe17fed2b22a530 | refs/heads/master | 2021-03-27T08:50:23.081860 | 2019-01-15T23:49:43 | 2019-01-15T23:49:43 | 106,251,614 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,623 | py | """ This module is used to visualize the yearly doc frequencies (no. of docs in which a phrase is present per year) and
phrase frequencies (no. of times a phrase is present per year) of noun phrase(s) chosen by the user in a Dash user interface.
A Solr query is made for the query/queries, results are aggregated yearly,... | [
"ashwath92@gmail.com"
] | ashwath92@gmail.com |
ca9dd99a19a954466f615b47a1b8dbff97ea320d | bc7ae358f8932d2bc5358c70f6c1edd92905aeb9 | /transparent test.py | 2cb32e0157490b5231ac64cbc8bc1f60fe954ddd | [] | no_license | Aaron-Hsiao1/Python_Sylvan | 415b383bebff619062ee6ef70339ec6a1fe43965 | b293e36caf215be7721cf869b494d0fd4860e5b2 | refs/heads/master | 2023-07-19T19:04:55.211094 | 2021-08-21T19:34:03 | 2021-08-21T19:34:03 | 323,982,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import pygame
pygame.init()
X = 570
Y = 900
screen_width = 1000
screen_height = 1000
Width = 30
Height = 30
Speed = 8
looping = True
screen = pygame.display.set_mode((screen_width, screen_height))
pygame.display.set_caption("blank")
while looping:
pygame.time.delay(5)
for event in pygame.event.get():
... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
8ffaa6d47074616ebc145529b8fae389dbe8f338 | fb55adfc901176c1bae6914b51c0eedc7eab44a3 | /tasks.py | 79acd1db41870a008b6336a3f9a68773cdc68847 | [
"MIT"
] | permissive | yijiangh/coop_assembly | b82ab7b17b956ff33beafe329a48c083cfb7f940 | 71108b0639323cf3d996d63b0f702d45f4d60d67 | refs/heads/master | 2023-04-03T07:36:36.444159 | 2020-02-05T16:40:08 | 2020-02-05T16:40:08 | 228,839,363 | 8 | 0 | MIT | 2019-12-18T12:51:08 | 2019-12-18T12:51:06 | null | UTF-8 | Python | false | false | 6,917 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import codecs
import contextlib
import glob
import os
import sys
from shutil import rmtree
from xml.dom.minidom import parse
from invoke import Collection, Exit, task
# For automatic doc deployment
# from paramiko import SSHClient
# from paramiko.client i... | [
"yijiangh@mit.edu"
] | yijiangh@mit.edu |
fb3e5fb2d325fe624ac277cba857887429060102 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/storage-blob-preview/azext_storage_blob_preview/vendored_sdks/azure_storage_blob/v2019_12_12/_shared/authentication.py | b11dc57578087edc183689b24d68b515df7a6a00 | [
"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,199 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import lo... | [
"noreply@github.com"
] | ebencarek.noreply@github.com |
02356b4c95f1fe3d5b2b19948af77d16597c26f6 | dffb9a8855adecc4bd4d21b9168a4e9bdc75e508 | /arrandmatrix/q9.py | e71297c66dbcfdb2e98b4e05b14779bcc6c7eb44 | [
"MIT"
] | permissive | ResolveWang/algorithm_qa | 95278c4459e38c55225304210770efb61d934fcc | a0cb649acaf8cf9d808272bc15f1951f2c05c828 | refs/heads/master | 2021-07-17T09:32:01.845815 | 2018-08-13T13:54:42 | 2018-08-13T13:54:42 | 100,107,109 | 90 | 29 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | """
问题描述:给定一个排序数组arr和整数k,不重复打印arr中所有相加和为k的不降序二元组。
例如,arr=[-8, -4, -3, 0, 1, 2, 4, 5, 8, 9], k=10,打印结果为:
1,9
2,8
补充题目:
给定排序数组arr和整数k,不重复打印arr中所有相加和为k的不降序三元组。
例如,arr=[-8, -4, -3, 0, 1, 2, 4, 5, 8, 9], k=10,打印结果为:
-4, 5, 9
-3, 4, 9
-3, 5, 8
0, 1, 9
0, 2, 8
1, 4, 5
"""
class KnumOfSum:
@classmethod
def get_two_t... | [
"1796246076@qq.com"
] | 1796246076@qq.com |
055160178fb7c1930792888ea5adaa86078353fc | 6ecf40c771874f31fa19f9534677c95c731352e9 | /SnapLimitReconstructor_Old.py | a392ca94928b1415a51d86e123387a049c797a00 | [] | no_license | fstakem/OptNetFilt | 1c86e82629352ee8ee9eb270aa3be01c6202696d | c862f3d1dd09ad9cdd146871761cb1f814e82de9 | refs/heads/master | 2016-09-11T03:06:06.466206 | 2014-06-07T02:03:04 | 2014-06-07T02:03:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,503 | py | # .---------------------------------------------------------------------------.
# | |
# | S N A P L I M I T R E C O N S T R U C T O R |
# | ... | [
"fstakem@gmail.com"
] | fstakem@gmail.com |
c533a3df7e8cc711386467ffd3b763470cc473f5 | 41e3065d6f29449251f1cc79cb340fa273ac5c61 | /0x07-python-test_driven_development/2-matrix_divided.py | 863f0dc62cc8b16f472da3460c0908a01aaa3834 | [] | no_license | BD20171998/holbertonschool-higher_level_programming | 856fa3a7fcfafd3e17ebd7dd4cf9d3e5a609fd1f | bfa78d25bd4527e06cf1bf54cbc00722449d9a30 | refs/heads/master | 2021-07-16T01:58:42.911959 | 2020-11-15T07:18:19 | 2020-11-15T07:18:19 | 226,976,859 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | #!/usr/bin/python3
"""
This is an example of the matrix_divided function.
>>> matrix = [[1, 2, 3], [4, 5, 6]]
>>> print(matrix_divided(matrix, 3))
[[0.33, 0.67, 1.0], [1.33, 1.67, 2.0]]
"""
def matrix_divided(matrix, div):
"""
This function divides a matrix by an integer or float and returns a new
matri... | [
"robert.deprizio@gmail.com"
] | robert.deprizio@gmail.com |
a42ee1435bedd3c4a0940ee63ffcaa7c0387407f | 612325535126eaddebc230d8c27af095c8e5cc2f | /depot_tools/git_upstream_diff.py | cc0a2006e585c1a00a443d4763335359281640b6 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/proto-quic_1V94 | 1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673 | feee14d96ee95313f236e0f0e3ff7719246c84f7 | refs/heads/master | 2023-04-01T14:36:53.888576 | 2019-10-17T02:23:04 | 2019-10-17T02:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | #!/usr/bin/env python
# Copyright 2014 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.
import argparse
import sys
import subprocess2
import git_common as git
def main(args):
default_args = git.config_list... | [
"2100639007@qq.com"
] | 2100639007@qq.com |
2b55e707ba9ff684d0159528ae983b83dceb3b6d | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_22433.py | a406e0709451fe6478ee3ca985fe25f91ec65b95 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # How to disable button until check box is checked in pyqt?
connect(checkbox, SIGNAL(stateChanged(int)), button, SLOT(buttonStateChanged(int)));
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
c5d99d7ef7f2e3f44b277992637c51bbbcdc00d1 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/EightTeV/TprimeTprime/TprimeTprimeToTHTHinc_M_625_TuneZ2star_8TeV-madgraph_cff.py | 4d932f949768263c528bf82c33419cee1ca13447 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 5,115 | py | import FWCore.ParameterSet.Config as cms
#from Configuration.Generator.PythiaUEZ2Settings_cfi import *
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6HadronizerFilter",
pythiaHepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0)... | [
"sha1-5c9a4926c1ea08b633689ec734e2440da58b8c56@cern.ch"
] | sha1-5c9a4926c1ea08b633689ec734e2440da58b8c56@cern.ch |
476f7082b9b260260f80644006a9ada67ee8fcb7 | 25b914aecd6b0cb49294fdc4f2efcfdf5803cc36 | /homeassistant/components/color_extractor/__init__.py | 73e8e09101c38ea10b25ef93ae14eb5b08dbdd04 | [
"Apache-2.0"
] | permissive | jason0x43/home-assistant | 9114decaa8f7c2f1582f84e79dc06736b402b008 | 8bf6aba1cf44ee841de063755c935ea78040f399 | refs/heads/dev | 2023-03-04T01:14:10.257593 | 2022-01-01T12:11:56 | 2022-01-01T12:11:56 | 230,622,861 | 1 | 1 | Apache-2.0 | 2023-02-22T06:15:07 | 2019-12-28T14:45:43 | Python | UTF-8 | Python | false | false | 4,528 | py | """Module for color_extractor (RGB extraction from images) component."""
import asyncio
import io
import logging
from PIL import UnidentifiedImageError
import aiohttp
import async_timeout
from colorthief import ColorThief
import voluptuous as vol
from homeassistant.components.light import (
ATTR_RGB_COLOR,
DO... | [
"noreply@github.com"
] | jason0x43.noreply@github.com |
1b7ce49e1222b0fe960952fc254de4119bfb963e | 80b7f2a10506f70477d8720e229d7530da2eff5d | /uhd_restpy/testplatform/sessions/ixnetwork/topology/spbsimedgetopologylist_5e9b551439bb252c1fa3e2c6948a1432.py | 82f7b45a6002ca0d6bd4fe30fda2e1c885a047d8 | [
"MIT"
] | permissive | OpenIxia/ixnetwork_restpy | 00fdc305901aa7e4b26e4000b133655e2d0e346a | c8ecc779421bffbc27c906c1ea51af3756d83398 | refs/heads/master | 2023-08-10T02:21:38.207252 | 2023-07-19T14:14:57 | 2023-07-19T14:14:57 | 174,170,555 | 26 | 16 | MIT | 2023-02-02T07:02:43 | 2019-03-06T15:27:20 | Python | UTF-8 | Python | false | false | 10,573 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
dba9130365a99707f7878bd20cab0e0664a2c04d | b55bfe14e10ff28569eebab73c3b1e509eec4e1a | /Starfish/model.py | 66f94063e69d1c6205e57d013bbd465d0ef8dc74 | [
"BSD-3-Clause"
] | permissive | ellipticalboy/Starfish | da7e440e9f433b32da0cc37030a636954e3942fb | 9d3c99021b7b7c4c90020162258801c590f2f11e | refs/heads/master | 2021-01-18T02:46:16.934126 | 2015-09-23T09:21:05 | 2015-09-23T09:21:05 | 34,518,507 | 0 | 0 | null | 2015-04-24T12:52:56 | 2015-04-24T12:52:55 | null | UTF-8 | Python | false | false | 34,513 | py | import numpy as np
from emcee import GibbsSampler, ParallelSampler
from . import constants as C
from .grid_tools import Interpolator
from .spectrum import ModelSpectrum, ModelSpectrumHA
import json
import h5py
import logging
import matplotlib.pyplot as plt
from itertools import zip_longest
def grouper(iterable, n, fil... | [
"iancze@gmail.com"
] | iancze@gmail.com |
db10855a9829a6b7fc7b3239048bf8d6e30c8849 | 83e18f5d4fcd7084defb32981337a8f9b646c4c7 | /python/91.decode-ways.py | 926f10a41f2cdbf2fa346422937918a04b9d8437 | [
"MIT"
] | permissive | Zhenye-Na/leetcode | 709037a318e1be7e6ab92751f8695d888900591a | 18d91a6ba813f91531b04632563212dfde2cceb9 | refs/heads/master | 2023-04-10T07:06:06.502224 | 2023-04-01T00:18:44 | 2023-04-01T00:18:44 | 145,656,854 | 19 | 9 | MIT | 2022-05-16T03:14:02 | 2018-08-22T04:39:25 | Python | UTF-8 | Python | false | false | 2,549 | py | #
# @lc app=leetcode id=91 lang=python3
#
# [91] Decode Ways
#
# https://leetcode.com/problems/decode-ways/description/
#
# algorithms
# Medium (27.50%)
# Likes: 4791
# Dislikes: 3513
# Total Accepted: 593.9K
# Total Submissions: 2.1M
# Testcase Example: '"12"'
#
# A message containing letters from A-Z can be en... | [
"nazhenye@gmail.com"
] | nazhenye@gmail.com |
b042229ecf57d55791109c255c5332fd28a2c071 | c1a1d21ff56175c00f89cfb721f3eec1575e1b2e | /code/python/leetcode/pascals-triangle-ii.py | 36f76aa085ab7d4d90bb6611a02743c65d565a16 | [] | no_license | zhuzeyu22/cowry | ee8501049447b694d35cce88392405610334382e | e135038caff7fc0743e33525413d415ac69ac898 | refs/heads/master | 2020-05-29T11:53:10.981688 | 2016-06-02T14:18:31 | 2016-06-02T14:18:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | class Solution:
# @return a list of lists of integers
def generate(self, numRows):
if numRows == 0:
return []
l = [[1],]
while len(l) < numRows:
nrow = [1] + [0] * (len(l)-1) + [1]
for i in range(1, len(nrow) - 1):
# print i, nrow, l
... | [
"geekan@foxmail.com"
] | geekan@foxmail.com |
8904c1ec13f8e7ca960fa0862d9094244fd30a15 | 5ebfbdf37806f8c571b85e70c755e274b7ec3b92 | /tf/compose/modify.py | 0da2bb1bc637c92884445d19c69dee7ae38960c6 | [
"MIT"
] | permissive | moranegg/text-fabric | 4992d81a8038a20e4381d17e0b5e9e08cf73ff72 | d9214b7d60991189682ad91d3fc5588410462f24 | refs/heads/master | 2020-09-24T23:59:29.873507 | 2019-10-31T16:37:59 | 2019-10-31T16:37:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,760 | py | import collections
from ..fabric import Fabric
from ..core.data import WARP
from ..core.timestamp import Timestamp
from ..core.helpers import itemize, isInt, collectFormats, dirEmpty
OTYPE = WARP[0]
OSLOTS = WARP[1]
OTEXT = WARP[2]
VALTP = "valueType"
GENERATED = set(
"""
writtenBy
dateWritten
versi... | [
"dirk.roorda@dans.knaw.nl"
] | dirk.roorda@dans.knaw.nl |
6076b1d83d498c7d5098c42a7e74abd9531c111f | 47082917dde1e8af42197dbc299e69e62297b34f | /config/urls.py | 6352f0ca3dac2706a3823b1f981270aedd27e0c3 | [] | no_license | navill/Dstagram-repository | 66520ed6fd5e8cf3fe633c04c7a1eaaae9bc57c0 | fb44acea8906fcac5724d4f9bdfdfe4e218f947a | refs/heads/master | 2020-06-10T20:59:28.581733 | 2019-06-25T16:31:58 | 2019-06-25T16:31:58 | 193,745,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"blue_jihoon@naver.com"
] | blue_jihoon@naver.com |
1f4f62246a43fa178cc25b4a6b8a2617bdb8d082 | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/fusion/tests/wpst_crm/feature_tests/TBIRD/Non-Redundant-Nitro-Grow/data_ha.py | 3ef502d474e92c96999d5c63a96777977159f176 | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,434 | py | from data_common import *
CONFIG = 'HA'
update_downlink_speed = \
[
{
"op": "replace",
"path": "/downlinkSpeedMode",
"value": "SPEED_25GB"
}
]
uplink_set_1 = {
'name': 'US1',
'ethernetNetworkType': 'Tagged',
'networkType': 'Ethernet',
'lacpTi... | [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
a4e1afe224daa8082b4cdfd04c6122d18cf4637c | 8cc862aa51d3fec95d094dc4bd3151e1155d240a | /pythonProject/imports/using_sys.py | 4c609d014e0a48228c4d6084ff8263843af572e3 | [] | no_license | activehuahua/python | bcbf3a2190025e2315399bfd0c725f598211632b | cc36a93c01c53f856426ccf2724848142524d9c0 | refs/heads/master | 2023-04-14T10:23:21.590765 | 2019-08-12T06:52:15 | 2019-08-12T06:52:15 | 160,277,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | # -*- coding: utf-8 -*-
'''
@Author : zhaojianghua
@File : using_sys.py
@Time : 2018/12/5 9:54
'''
import sys
print('命令行参数如下:')
for i in sys.argv:
print(i)
print('\n\nPython 路径为:', sys.path, '\n') | [
"zhaojianghua@pretang.com"
] | zhaojianghua@pretang.com |
dba0a06a82fbbfd3e411a7aa0a4f2a0711b37607 | 423ca5205aaf0b2d3bfff9affe2172fec21bfad0 | /web/pgadmin/browser/server_groups/servers/databases/schemas/domains/domain_constraints/tests/test_domain_constraints_add.py | b7f603fdfd4c1adca8a359d0d07247caee18a598 | [
"PostgreSQL"
] | permissive | adityatoshniwal/pgadmin4 | 25cc665d1438f82bdb17f13270933c43e3a98f4b | 2aea5b41ad8b6bd4a408a87a6743fcbfc88ed329 | refs/heads/master | 2023-09-03T20:04:15.941551 | 2023-07-31T09:32:30 | 2023-07-31T09:32:30 | 419,212,569 | 0 | 0 | NOASSERTION | 2023-01-02T05:37:03 | 2021-10-20T06:34:38 | Python | UTF-8 | Python | false | false | 4,748 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2023, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import json
impor... | [
"akshay.joshi@enterprisedb.com"
] | akshay.joshi@enterprisedb.com |
047ddbf79cd824eea356100f84caef3d7a7612d3 | e4a9a67f1d79b3430aa43ebdb905a08717ee118a | /COT/helpers/tests/test_vmdktool.py | 58e36f57ba914bde6ee0b591ad71cdbf5d7e9a20 | [
"MIT"
] | permissive | digideskio/cot | 30c724c5b76abd5187a9c1e3c6f15a462b324da8 | 8fc84c8c72a9acb4adffca859154055f2857b53f | refs/heads/master | 2021-01-12T20:50:05.208963 | 2016-05-11T15:31:29 | 2016-05-11T15:31:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,826 | py | #!/usr/bin/env python
#
# test_vmdktool.py - Unit test cases for COT.helpers.vmdktoolsubmodule.
#
# March 2015, Glenn F. Matthews
# Copyright (c) 2014-2015 the COT project developers.
# See the COPYRIGHT.txt file at the top-level directory of this distribution
# and at https://github.com/glennmatthews/cot/blob/master/C... | [
"glenn@e-dad.net"
] | glenn@e-dad.net |
6a3224e913eb781e8bbc458e3aa6542e3d77fee1 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/recommender/v1/recommender_v1_messages.py | eda70fa864fcf63f971b6e745b71d29eb49dc075 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 28,004 | py | """Generated message classes for recommender version v1.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools.base.py import extra_types
package = 'recommender'
class GoogleCloudRec... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
21a55c48c32b7f9d97cc1dbe4eb947d069f083cd | e11dff811ca981f428644fd70d10a7369c671bcb | /src/tools/ecos/cvxpy/doc/source/conf.py | 8aff00ceb390bff1a69901c078f9f08166fdb1a6 | [
"GPL-3.0-only",
"GPL-3.0-or-later",
"MIT"
] | permissive | riadnassiffe/Simulator | 3c4a036b5635534929fdb04b0e9c96d64c0da71f | 7d9ff09f26367d3714e3d10be3dd4a9817b8ed6b | refs/heads/master | 2021-06-20T09:31:36.033427 | 2021-04-17T00:03:17 | 2021-04-17T00:03:17 | 16,033,879 | 0 | 0 | MIT | 2021-03-22T23:20:34 | 2014-01-18T20:58:10 | Jupyter Notebook | UTF-8 | Python | false | false | 8,937 | py | # -*- coding: utf-8 -*-
#
# CVXPY documentation build configuration file, created by
# sphinx-quickstart on Mon Jan 27 20:47:07 2014.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All c... | [
"riad.nassiffe@gmail.com"
] | riad.nassiffe@gmail.com |
e99a04d4cf4a320eea6c46709c2ddc8dda6c5981 | b648a0ff402d23a6432643879b0b81ebe0bc9685 | /scripts/json-equals.py | 7704bba587a813f68c8ef03a1c5c9db9af33cc46 | [
"Apache-2.0"
] | permissive | jviotti/binary-json-size-benchmark | 4712faca2724d47d23efef241983ce875dc71cee | 165b577884ef366348bf48042fddf54aacfe647a | refs/heads/main | 2023-04-18T01:40:26.141995 | 2022-12-19T13:25:35 | 2022-12-19T13:25:35 | 337,583,132 | 21 | 1 | Apache-2.0 | 2022-12-17T21:53:56 | 2021-02-10T01:18:05 | C++ | UTF-8 | Python | false | false | 323 | py | import sys
import json
with open(sys.argv[1], mode='r') as json_data:
data1 = json.loads(json_data.read())
with open(sys.argv[2], mode='r') as json_data:
data2 = json.loads(json_data.read())
if data1 == data2:
print("Files are equal!")
sys.exit(0)
else:
print("Files are NOT equal!")
sys.exit(... | [
"jv@jviotti.com"
] | jv@jviotti.com |
8018f217c6e18cdb2bb6f2517df37cde252a8c36 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007/programming/libs/exiv2/actions.py | 368c4462143cec10373c6bedb7c05cc40a320ad6 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure()
def build():
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
3d41370064cc5c6bec3ad723efc74e67f721926e | 80301f1cffc5afce13256e2ecab6323c5df00194 | /cn.fc/py/R3401.蔡斯.py | 9fa95698861d8f5919977d10088b392520536ce9 | [] | no_license | ZhenjianYang/SoraVoiceScripts | c1ddf7c1bbcb933243754f9669bd6b75777c87b9 | 94a948090aba0f63b10b2c69dc845dc99c822fc4 | refs/heads/master | 2023-04-18T04:54:44.306652 | 2023-04-06T11:15:17 | 2023-04-06T11:15:17 | 103,167,541 | 43 | 11 | null | 2021-03-06T08:52:54 | 2017-09-11T17:36:55 | Python | UTF-8 | Python | false | false | 37,356 | py | from ED6ScenarioHelper import *
def main():
# 蔡斯
CreateScenaFile(
FileName = 'R3401 ._SN',
MapName = 'Zeiss',
Location = 'R3401.x',
MapIndex = 1,
MapDefaultBGM = "ed60030",
Flags = 0,
Ent... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
b54da796c8f41bc31e9c535663ef12d38bbd0a51 | 6a0157b40e54d9c6fcca1f96c4dd0ebd8101813b | /motsfinder/axisym/curve/expcalc.py | 5e0ca4e59c313db74164088098d022811d80c854 | [
"MIT"
] | permissive | cevans216/distorted-motsfinder-public | 15ba97d632928e36c6a8ac159a6a2c79b7ae6156 | a7f28b13f3b80b5980ef9eccf705146b77691498 | refs/heads/master | 2020-07-28T05:38:16.662849 | 2019-07-26T17:44:55 | 2019-07-26T17:44:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,938 | py | r"""@package motsfinder.axisym.curve.expcalc
Computation class storing interim results of expansion calculations.
The implementation here uses the formulas derived in
\ref thornburg2003_1 "[1]". Specifically, we make heavy use of the quantities
`A, B, C, D` defined in \ref thornburg2003_1 "[1]" in equation (12) to co... | [
"daniel.dpk@gmail.com"
] | daniel.dpk@gmail.com |
90d887816136ef7ea406db5120f7ddfd8554e2c9 | f58a1dcae97115b566409704dcf1a46a5f86df47 | /Bellevue University/Courses/DSC640/Matplotlib for python Developers/7900_Code/Chapter 03/7900_03_15.py | 20b070bc387075f7ddde931334627adb0d70a5ca | [] | no_license | safarie1103/Safarie1103 | 318519ace23c33fcf6d36337392156e5381abd49 | a86172bfc47eff0af65285b641af0ad26e13fd12 | refs/heads/master | 2023-06-13T01:43:35.761325 | 2023-06-07T16:01:16 | 2023-06-07T16:01:16 | 205,732,823 | 0 | 1 | null | 2022-11-28T15:55:13 | 2019-09-01T21:11:38 | null | UTF-8 | Python | false | false | 169 | py | #!/usr/bin/python
import matplotlib.pyplot as plt
plt.figure(figsize=(3,3))
x = [45, 35, 20]
labels = ['Cats', 'Dogs', 'Fishes']
plt.pie(x, labels = labels)
plt.show() | [
"54446804+safarie1103@users.noreply.github.com"
] | 54446804+safarie1103@users.noreply.github.com |
f5e1b29ce42118842f5d23bc27518c4a367946ef | 8585e7b3bbb71218fcb4dcb8fb99b46f6973ed72 | /healthack/construct_dirs.py | 9d57d47edf4a4cc7a436084333b5f4f8b8baa03f | [] | no_license | koike-ya/health | eeed56a8940d1c30333069a2ab339bb6d5937118 | 87bd1842d49e34abef8c66f666b6526d3fb18522 | refs/heads/master | 2021-10-11T13:59:19.625847 | 2019-01-27T08:55:09 | 2019-01-27T08:55:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from pathlib import Path
Path(Path.cwd() / "setup.py").touch(exist_ok=True)
Path(Path.cwd() / "config").mkdir(exist_ok=True)
Path(Path.cwd() / "config" / "const.py").touch(exist_ok=True)
Path(Path.cwd() / "notebooks").mkdir(exist_ok=True)
Path(Path.cwd() / "data" / "processed").mkdir(exist_ok=True, parents=True)
Path(... | [
"makeffort134@gmail.com"
] | makeffort134@gmail.com |
f26b1b6ad59d2ffe788cde505e0b664cb9acd360 | 06f036994ccb76d93cfc2a7ae9fc3d5c221724ee | /qmla/analysis/outputs.py | 4b778feb0d5864237e030dc64637e88c4d4e65fd | [
"MIT"
] | permissive | flynnbr11/QMLA | 13b43b7789632ca18306b8818fd90b702cc139eb | ac8cfe1603658ee9b916452f29b99460ee5e3d44 | refs/heads/master | 2023-05-04T04:58:28.461900 | 2021-10-27T22:10:35 | 2021-10-27T22:10:35 | 95,233,038 | 15 | 11 | MIT | 2023-03-31T14:59:08 | 2017-06-23T15:33:06 | Python | UTF-8 | Python | false | false | 15,532 | py | import os
import sys
import numpy as np
import pandas as pd
import pickle
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.gridspec import GridSpec
from scipy import stats
import lfig
__all__ = ["plot_dynamics_multiple_models"]
def format_exponent(n):
a = "%E" % n
val = a.split("E")... | [
"flynnbr@tcd.ie"
] | flynnbr@tcd.ie |
e0c7b019890ee9b53c7d4fa7a809375a21ccfc2b | 4864e58bb9ac93c34f2988f50bec143fbe7b5278 | /blog/migrations/0019_auto_20210114_1845.py | db6d08a76a1bd9374d50ba620e0ae0600f5031ca | [] | no_license | Subhrans/Blog_App | 7e536b868645c5ffc0a35a4a63b206ddd5ab0965 | a81b4adeb8c0cb3bea5ffa85c6f1e2954c23e54a | refs/heads/main | 2023-04-21T05:25:09.113818 | 2021-05-08T18:23:38 | 2021-05-08T18:23:38 | 327,252,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | # Generated by Django 3.0.1 on 2021-01-14 13:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0018_auto_20210114_0331'),
]
operations = [
migrations.RemoveField(
model_name='post',
... | [
"subhransud525@gmail.com"
] | subhransud525@gmail.com |
590d8055aec2d9c89103005c1b857abc0f8fab1d | 7d4a3504bb9daa2589e2580de21e0e15c334787c | /tst/select/select_suite.py | 1226f95721a4f90fecbad8c9e3c507bf770c10a1 | [
"MIT"
] | permissive | ericwu/pumbaa | 4cfac76c29dc35223a3df1a89dbde2f6bbf44719 | e355c0a9ec28cfcfa3daabea9ba4c7cb55907efb | refs/heads/master | 2021-01-13T16:53:42.408105 | 2017-01-23T18:31:04 | 2017-01-23T18:31:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | #
# @section License
#
# The MIT License (MIT)
#
# Copyright (c) 2016, Erik Moqvist
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the... | [
"erik.moqvist@gmail.com"
] | erik.moqvist@gmail.com |
194f0811f4c2ee6cea15e7c6797edd4496899d26 | d282fe910d95b3f23254e5e0d5309c082de81419 | /Ent/E4/demo_skylineviewer.py | 2bf167edf196ad83e52e2d6df59c9ed989dffc8f | [
"Apache-2.0"
] | permissive | Mi7ai/Algoritmia2 | 54fff6d3925ddc8067303d2e507ccde8ba9a025a | 2f1c7b3990e4971f4f977fd0ea4d308004ab3db5 | refs/heads/master | 2021-06-21T18:45:57.875364 | 2021-03-22T12:54:47 | 2021-03-22T12:54:47 | 207,576,996 | 0 | 0 | null | 2021-03-22T12:54:47 | 2019-09-10T14:08:46 | Assembly | UTF-8 | Python | false | false | 346 | py | from Utils.skylineviewer import SkylineViewer
buildings = [(1, 10, 3), (2, 5, 5), (3, 6, 3), (4, 7, 5), (10, 10, 3), (9, 4, 6), (20, 8, 4), (22, 6, 6), (25, 10, 2)]
skyline = [1, 10, 4, 7, 9, 4, 10, 10, 13, 4, 15, 0, 20, 8, 24, 6, 25, 10, 27, 6, 28]
viewer = SkylineViewer(skyline)
for b in buildings:
viewer.add... | [
"hottmayer@gmail.com"
] | hottmayer@gmail.com |
323b5f80a3a048ee37471233c5e6663d18ed90b6 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A3/task3/BD_198_225_960_HjAczew.py | 153f36b21dacb14ce5be9b6efaf652ff426bd9c2 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 1,380 | py | import findspark
findspark.init()
from pyspark import SparkConf,SparkContext
from pyspark.streaming import StreamingContext
#from pyspark.sql import Row,SQLContext
import sys
import requests
import re
from operator import add
def process_rdd(time, rdd):
# print("----------=========- %s -=========----------" % str(tim... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
31dd5aa0b605e5b6df526693e182a266f34af494 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02719/s761928282.py | a68bf0b133d3fcf6004cc605a97270348340d011 | [] | 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 | 115 | py | N, K = list(map(lambda n: int(n), input().split(" ")))
while N > int(K/2):
N = min([abs(N-K), N % K])
print(N) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
97bcf5441c08a2e89ecd3c1db61840c55422e13d | 0b0d3246d39974cb8faff7d269da2d539415afab | /problem_python/p283.py | 3a6704dc2d9bb763a3c83885a6be6906ca384262 | [] | no_license | xionghhcs/leetcode | 972e7ae4ca56b7100223630b294b5a97ba5dd7e8 | 8bd43dcd995a9de0270b8cea2d9a48df17ffc08b | refs/heads/master | 2020-03-07T17:18:08.465559 | 2019-09-29T11:11:26 | 2019-09-29T11:11:26 | 127,607,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | class Solution:
def moveZeroes(self, nums):
"""
:type nums: List[int]
:rtype: void Do not return anything, modify nums in-place instead.
"""
def swap(a, i, j):
tmp = a[i]
a[i] = a[j]
a[j] = tmp
for i in range(len(nums)):
... | [
"xionghhcs@163.com"
] | xionghhcs@163.com |
4c81f1a6460a9bb7ccdc7063e49e475861567b6c | 164ffe077dde59373ad9fadcfd727f279a1cfe93 | /jni_build/jni/include/tensorflow/python/ops/numerics.py | bd96d9a72cc653be506d2fa812d7b341a44bdafe | [] | no_license | Basofe/Community_Based_Repository_Traffic_Signs | 524a4cfc77dc6ed3b279556e4201ba63ee8cf6bd | a20da440a21ed5160baae4d283c5880b8ba8e83c | refs/heads/master | 2021-01-22T21:17:37.392145 | 2017-09-28T21:35:58 | 2017-09-28T21:35:58 | 85,407,197 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | # Copyright 2015 The TensorFlow 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... | [
"helder_m_p_novais@hotmail.com"
] | helder_m_p_novais@hotmail.com |
37490c2e36c27fde373437a4c3e932557b84fc75 | 4d360320e06339a4f7d2a2723cddf02ff02a306e | /0x06-python-classes/3-square.py | f4c53a022a14d9265165fae9db6fb90f9362d80f | [] | no_license | AmineNeifer/holbertonschool-higher_level_programming | fd6ccdb1b5f0dc85e10750e9f2c7824290697e85 | f5c42bff003b85a7c19702e0233997645fce2fb1 | refs/heads/master | 2020-09-29T02:56:52.286548 | 2020-05-15T00:12:50 | 2020-05-15T00:12:50 | 226,933,206 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | #!/usr/bin/python3
class Square:
def __init__(self, size=0):
"""Args:
size: size of the Square.
"""
if type(size) is not int:
raise TypeError("size must be an integer")
elif size < 0:
raise ValueError("size must be >= 0")
else:
... | [
"amineneifer2000@gmail.com"
] | amineneifer2000@gmail.com |
a95c0d6cbc8db379f298e52cebd758fbec611534 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/layout/uniformtext/_mode.py | a3fdc332612749ea2308c67e4091aac3c79eb00a | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 468 | py | import _plotly_utils.basevalidators
class ModeValidator(_plotly_utils.basevalidators.EnumeratedValidator):
def __init__(self, plotly_name="mode", parent_name="layout.uniformtext", **kwargs):
super(ModeValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
8c4471b5f0528f4af6e01a68521acbbfc97f6172 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /mojo/public/tools/bindings/generators/mojom_cpp_generator.py | 07eb45bfc3ec2681a844efcd9b5295fe3abc7456 | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 25,270 | py | # Copyright 2013 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.
"""Generates C++ source files from a mojom.Module."""
import mojom.generate.generator as generator
import mojom.generate.module as mojom
import mojom.genera... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
33f989d69d8aef0c49fbf0a3dbee6ff0647c9d01 | 253f3a81b582ee53b86451dc5a06d6dc8923b0dd | /src/commands/commandslist.py | 946bf2c4b052a3394de39102411e47b230dc7f67 | [] | no_license | bdubyapee/akriosmud | c02ff2c9e3916efedc4837b19e02caf6255045f9 | d6c234e22fc56422315553217639bcb3e4c49984 | refs/heads/master | 2020-04-16T04:53:02.163852 | 2020-02-17T01:09:10 | 2020-02-17T01:09:10 | 165,284,647 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | # Project: Akrios
# Filename: commands/commandlist.py
#
# Capability: player
#
# Command Description: Listing of currently available commands filtered by capabilities.
#
# By: Jubelo
from commands import *
name = "commandslist"
version = 1
requirements = {'capability': ['player'],
'generic_fail': "Se... | [
"phippsb@gmail.com"
] | phippsb@gmail.com |
ebe543088903155d46d06e03f07284f75a632e35 | 09996c147d498e61352683c5e7df0f3cd517ea27 | /test/oldcrab/whelicity_DataDoubleEl_SE_GH_cfg.py | 485f08167cd51bc90018ac079a2e540233e35f86 | [] | no_license | shchenarani/whelicityAnalyzer | 3e3320a6d03eab21de6d51dad60f057b6a2f3d47 | 8b4586f7210c6a166b949470c22310b25683da4f | refs/heads/master | 2021-09-10T12:22:52.088849 | 2018-03-26T07:52:54 | 2018-03-26T07:52:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("TEST")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
process.source = cms.Source ("PoolSource",f... | [
"hesam.kaveh@gmail.com"
] | hesam.kaveh@gmail.com |
29a1f916d57515291923131169a4a24024185702 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /aav/util/model_utils.py | 70f397164e6eed14c9701edf79d67e33b353a1f5 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 3,577 | py | # coding=utf-8
# Copyright 2022 The Google Research Authors.
#
# 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
e7d70888cafcdf8d8f016d284cb11462549acf2c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_189/ch30_2019_08_26_19_06_32_624802.py | 0bf8b64bd817ff2689f3209d5285dc5d58edda50 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def distancia(ang,vel):
import math
dist=((vel**2)*math.sin(2*ang))/9.8
return dist
if 98<=distancia(ang,vel)<=102:
print("Acertou!")
elif distancia(ang,vel)>102:
print("Muito longe")
else:
print("Muito perto")
| [
"you@example.com"
] | you@example.com |
0294350b106cf605e7bc42c9069605f5e39f7c89 | 22bf2740e893b5020088b0d47f7b57eb2f9a2b5f | /version3/source/insert.py | 435e9f58028892f9d0b4a196e61675f5c9c0353e | [] | no_license | letianccc/latin_database | f2c1f9c58f398d322f722a3b1dade2296a2da19a | 1aa6c7eed57f6ea72d6e82e0a19b7a9614fb34c8 | refs/heads/master | 2021-04-15T09:26:48.132616 | 2018-04-12T23:40:17 | 2018-04-12T23:40:17 | 126,196,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from version3.source.catalog import Catalog
class Insert:
def __init__(self, table_name, tuple_, tran_id=None):
self.table_name = table_name
self.tuple = tuple_
self.tran_id = tran_id
def execute(self):
hf = Catalog.name_to_file(self.table_name)
hf.insert_tuple(self.t... | [
"704364447@qq.com"
] | 704364447@qq.com |
07e22436ef683aac6402b919ca8971015eb64d89 | 938a496fe78d5538af94017c78a11615a8498682 | /algorithms/401-500/434.number-of-segments-in-a-string.py | 30057d9c241f8500cb524ddb181e94c26947fdca | [] | no_license | huilizhou/Leetcode-pyhton | 261280044d15d0baeb227248ade675177efdb297 | 6ae85bf79c5a21735e3c245c0c256f29c1c60926 | refs/heads/master | 2020-03-28T15:57:52.762162 | 2019-11-26T06:14:13 | 2019-11-26T06:14:13 | 148,644,059 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # 字符串中的单词数
class Solution(object):
def countSegments(self, s):
"""
:type s: str
:rtype: int
"""
# 人家的解法
s = s.strip()
if len(s) == 0:
return 0
else:
sum = 0
s = s.split(' ')
for v in s:
if... | [
"2540278344@qq.com"
] | 2540278344@qq.com |
8a76e10c251ffe4ca5c2f5adaf0fea29dc57a5b3 | 29ec9a3ba90f12da111d3e25cf75bc7c3db5d8ac | /tests/test_core.py | 27223608f8d79526ceb4cdbed94134a7a6f2049f | [] | no_license | frnsys/drip | cf16d1d917dc7433bb2b279e6dcea18d0394a2ae | 9b9733900c6ca799650e665f228c525dfa143476 | refs/heads/master | 2021-01-10T11:06:57.133358 | 2016-02-28T04:00:31 | 2016-02-28T04:00:31 | 52,692,220 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,581 | py | import json
from datetime import datetime
from drip.datastore import db
from drip.cluster import cluster
from drip.nlp import title, multisummarize
from drip.models import Event, Story, Article, Feed, Source, Keyword
from tests import TestCase
class CoreTest(TestCase):
def setUp(self):
self.events = json.... | [
"f+accounts@frnsys.com"
] | f+accounts@frnsys.com |
cb9110d27d0004f8563f7d1a8891ee2eb95d49ef | 4bfc3c184e736bb68dccbb6d5657f11c950df002 | /tests/common/test_run/atan2_run.py | 93b020c539675af05a758ffe81d5f4fcf035e136 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | laekov/akg | 159aa64ef6135222b5af784c408731275dfa9bdb | 5316b8cb2340bbf71bdc724dc9d81513a67b3104 | refs/heads/master | 2022-12-01T04:09:03.548063 | 2020-08-19T08:38:57 | 2020-08-19T08:41:28 | 288,678,192 | 0 | 0 | Apache-2.0 | 2020-08-19T08:41:30 | 2020-08-19T08:36:53 | Python | UTF-8 | Python | false | false | 1,719 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"ckey.chengbin@huawei.com"
] | ckey.chengbin@huawei.com |
b45b2b0b78cb932e1697bb6f7b744db3618136d2 | 855e455b7113d32ad7bebca8e64cece441308b70 | /adafruit_matrixportal/wifi.py | e9411a9fe01ef6b5288209b6bb65a68689dbccaa | [
"MIT"
] | permissive | dsstewa/Adafruit_CircuitPython_MatrixPortal | f7687077d9d8ac83980f5ec75a52e1ca3942a1e3 | 885fb7edfbda0b763dbddbf9865d3fa62528e4c9 | refs/heads/master | 2023-02-09T23:03:50.751414 | 2021-01-05T18:22:43 | 2021-01-05T18:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,845 | py | # SPDX-FileCopyrightText: 2020 Melissa LeBlanc-Williams, written for Adafruit Industries
#
# SPDX-License-Identifier: Unlicense
"""
`adafruit_matrixportal.wifi`
================================================================================
Helper library for the MatrixPortal M4 or Adafruit RGB Matrix Shield + Metro ... | [
"melissa@adafruit.com"
] | melissa@adafruit.com |
72461308ceaf06759f6556c4bf62da939683c9d0 | 1575d5acc07eb67cb4e3cd523a24bb1d39efcb84 | /nn-pima/cv2MLP.py | 3518ebea717713ebf5dd3b51f3e480d47cf3ed97 | [] | no_license | ChenLiangbo/DeepLearning | 4bd80ddb2a41b883ef70947a8b1fdb3b19656df0 | 3464c27116dc00bd597d2b9c25313964e1d89797 | refs/heads/master | 2020-12-24T12:39:27.666215 | 2017-05-09T13:49:44 | 2017-05-09T13:49:44 | 72,974,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | #!usr/bin/env/python
# -*- coding: utf-8 -*-
import numpy as np
from bayesClassifier import BayesClassifier
import cv2
dataset = np.load('pima-indians.npy')
columns = np.hsplit(dataset,9)
xsample = np.hstack(columns[0:8])
ysample = columns[8]
shape = xsample.shape
xsample = np.float32(xsample)
ysample = np.float32(y... | [
"chenlb@polarwin.cn"
] | chenlb@polarwin.cn |
f31463bbe7a8decc63c1e4e4655c094c558d31fe | c148fbeff2f5188baed64dfdd3d781b8b15bc7d5 | /tools/build_variables.py | db521a047960e0ee62638abc416ebbb65084f2cb | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | abhattce/pytorch | 46b37747456f9997634f3a11c94e5af61c60442e | 01d7d3de46a3766f60465d266ca204fa5c0df5c6 | refs/heads/master | 2020-05-15T01:45:12.371014 | 2019-04-18T06:52:44 | 2019-04-18T06:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,288 | py | # In the open-source build, these are generated into
# torch/csrc/{autgrad,jit}/generated. In fbcode, this distinction is
# not currently relevant so they are combined into one list.
from __future__ import absolute_import, division, print_function, unicode_literals
load("@bazel_skylib//lib:new_sets.bzl", "sets")
GENE... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e02c5e9a1c49d874e1b079d301802f321137b37f | 06f379b97fd704c27f6fed584e1087f32a47fbfe | /mrjob/boto_2_1_1_83aae37b.py | 6962cd2d80afc125716dbecaeb0b95ad469080c2 | [
"Apache-2.0"
] | permissive | bchess/mrjob | 45c7a0a6693463d3a7462a9fec543b149092b747 | 7415f57884f2ba4313ef9164e023174d5f36abae | refs/heads/master | 2021-01-15T19:49:16.511468 | 2011-12-27T21:03:16 | 2011-12-27T21:03:16 | 2,647,531 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,326 | py | # Copyright (c) 2010 Spotify AB
# Copyright (c) 2010-2011 Yelp
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, m... | [
"dave@yelp.com"
] | dave@yelp.com |
ac95c0ed8b59e75ac4515c61349a08280c450c4c | 112aa4e67487571452477b0246a0061318065acf | /SDN_Python/SDN_Python/urls.py | 1fbaadc8ef9c51b1ec54bfc00aa480bc41453ff4 | [] | no_license | jayluxferro/OBP-SDN | a62779ab2670a6419cfe8632b46d6d27a0caf666 | 9cc5386573b270423bcf63aef93e58b6f49bc450 | refs/heads/master | 2023-03-23T14:08:44.303565 | 2021-03-22T10:11:38 | 2021-03-22T10:11:38 | 177,524,706 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | """SDN_Python URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"jayluxferro@sperixlabs.org"
] | jayluxferro@sperixlabs.org |
3aad3f01945c664308ccc3b561e0e56cfa002712 | d27af9d58b91b8cd998ac0eb87d980d304ff0670 | /Beginner-Contest/ABC102/ABC102_C.py | 8253d9718ee6884db84fd77f2eb490882b54cfce | [] | no_license | mongesan/Atcoder-m0_ngesan-py | 29dd79daab149003ffc8b6b6bad5fa2e7daa9646 | 6654af034d4ff4cece1be04c2c8b756976d99a4b | refs/heads/master | 2023-08-20T19:50:04.547025 | 2021-10-27T12:24:51 | 2021-10-27T12:24:51 | 258,486,105 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9 | py | #ABC102_C | [
"syun1.mongesan@gmail.com"
] | syun1.mongesan@gmail.com |
0c6469587fb87fb9776a74d943a5d7a7ee89bd7e | 51e6234f683ed70207f53d6ee3f537c715082517 | /test/setup.py | d98509b0fedc1c07bf389086c75fd98e825bbd80 | [
"BSD-2-Clause"
] | permissive | ninjaaron/fast-entry_points | d13d36ee7c4d73a425fba1d0f167aba1e8970127 | a3a26f320c7ae2191fde71b79d4f4bf325d162f3 | refs/heads/master | 2021-10-09T16:16:14.618890 | 2021-10-07T11:55:03 | 2021-10-07T11:55:03 | 64,887,433 | 131 | 23 | BSD-2-Clause | 2021-06-21T19:49:44 | 2016-08-03T23:57:37 | Python | UTF-8 | Python | false | false | 236 | py | from setuptools import setup
import fastentrypoints
setup(
name='dummypkg',
version='0.0.0',
py_modules=['dummy'],
description='dummy package for the test',
entry_points={'console_scripts': ['hello=dummy:main']},
)
| [
"ninjaaron@gmail.com"
] | ninjaaron@gmail.com |
371e51252c8dd93d6a036b76d919eb54d33bbba8 | 237162607427106ae9564670d47427a62356861f | /core/migrations/0153_divisionlocation.py | 87a4cdf31d325f60c95cbffe34744975f8ef282d | [] | no_license | pitipund/basecore | 8648c1f4fa37b6e6075fd710ca422fe159ba930e | a0c20cec1e17dd0eb6abcaaa7d2623e38b60318b | refs/heads/master | 2020-09-13T20:16:02.622903 | 2019-11-20T09:07:15 | 2019-11-20T09:07:15 | 221,885,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2019-01-14 11:43
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0029_auto_20190114_1040'),
('core', '0152... | [
"longman_694@hotmail.com"
] | longman_694@hotmail.com |
15551af86e94ba02d1ac2f0711c56efd691bcc5b | 3ee04e8eef626c3d65f7b4ff218fbb01ba7dcff4 | /main/migrations/0010_auto_20180331_1204.py | a80cf707c589b92029eb2d2c4ac58bd6c57d808f | [] | no_license | David-OConnor/books | 44499fba804394187103567b021252ecff9b906c | 1c03b8c026de08eb1989e99171af01e7e8a7bbc9 | refs/heads/master | 2021-01-10T18:07:40.559040 | 2019-10-18T18:57:06 | 2019-10-18T18:57:06 | 43,619,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # Generated by Django 2.0.3 on 2018-03-31 12:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0009_auto_20180331_1117'),
]
operations = [
migrations.CreateModel(
name='AdelaideWork',
fields=[
... | [
"david.alan.oconnor@gmail.com"
] | david.alan.oconnor@gmail.com |
3b0dbff77c453d04d05c68a3fe87fc404a795510 | dc76018904675c64b6eb728d253a162802a584be | /urls.py | d4c2bf2fa81994fffdc6df56a2b8599172bf517e | [] | no_license | edb-gjengen/mbftns | ee36b0e28b5d8f0200b1407bb3940f220a75e553 | 0434c7ec16743467602481615ef1b87bf53df565 | refs/heads/master | 2021-01-20T20:53:17.284180 | 2012-09-05T12:18:29 | 2012-09-05T12:18:29 | 65,237,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^$', 'main.views.index', name='index'),
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('main.urls')),
url(r'^accounts/login', 'django.contrib... | [
"nikolaik@gmail.com"
] | nikolaik@gmail.com |
838eda0275474ae5c472ea23d89a3ed57c710874 | 1a29735113eeb8061527c9e785fb3e16abe10449 | /lib/pymod/pymod/test/command/refresh.py | 1ba750637b0f0e168538bde48a54c2f2fd2ceed5 | [] | no_license | tjfulle/Modulecmd.py | db3fb96db63e42666056e8086f433a779f5bfc86 | 42e3d34b76a53f4ff557e96ba2af3cb83b963ad2 | refs/heads/master | 2023-02-21T10:16:49.408099 | 2021-11-18T06:29:59 | 2021-11-18T06:29:59 | 141,306,544 | 0 | 0 | null | 2019-05-09T04:51:09 | 2018-07-17T15:09:16 | Python | UTF-8 | Python | false | false | 739 | py | import pytest
import pymod.mc
from pymod.main import PymodCommand
@pytest.fixture()
def modules_path(tmpdir, namespace, modulecmds):
m = modulecmds
one = tmpdir.mkdir("1")
one.join("a.py").write(m.setenv("a"))
one.join("b.py").write(m.setenv("b"))
one.join("c.py").write(m.setenv("c"))
one.joi... | [
"tjfulle@sandia.gov"
] | tjfulle@sandia.gov |
cf7bf48f6a2df6d3cec9391c5bb31ea49634341b | c2fcc0709ed113037201c707fcebe298966e5694 | /tests/test_base.py | 5eec23115c64d8b527e308c49cb795e72b51b47e | [] | no_license | HyperSuprime-Cam/astshim | da1364f301847d8a2cdb6fad63e96aeb4780f694 | a72da6bbfa9d1fec5e5d87d1aa560234f2b95958 | refs/heads/master | 2022-04-03T16:35:25.002206 | 2020-01-23T20:12:51 | 2020-01-23T20:12:51 | 109,919,007 | 0 | 0 | null | 2017-11-08T02:46:38 | 2017-11-08T02:46:38 | null | UTF-8 | Python | false | false | 1,069 | py | import unittest
import numpy as np
from numpy.testing import assert_equal
import astshim as ast
from astshim.test import ObjectTestCase
class TestBase(ObjectTestCase):
def test_arrayFromVector(self):
nAxes = 3
nValues = 5
np.random.seed(1)
dataVec = np.random.rand(nAxes * nValue... | [
"rowen@uw.edu"
] | rowen@uw.edu |
bf41b56921afb1efed93ac1950ab83f8c7977aa1 | ec677ccd7d536b889260469f062f2c5db2f23a99 | /runoschool/runoschool/urls.py | e1a382bc28bf06185aebd89c7189c0676278de40 | [] | no_license | samuelatuma1/runo | fa93f523eaed6dc04068cddaf3d67fd908dfc7bf | 33b6c636e27b3157a7e0bee4a5e7dc76a58dd0e2 | refs/heads/master | 2023-07-14T12:43:38.284693 | 2021-08-22T16:56:48 | 2021-08-22T16:56:48 | 386,833,990 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | """runoschool URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"atumasaake@gmail.com"
] | atumasaake@gmail.com |
9d2ef5da9fc5d97e998e8ead3784d778354cd46f | b06978b6020ce3240912ba5c131c4f38a86d7996 | /Pycharm_files/Dictionaries/Chapter_5_reading.py | 5200f5c68a50cfdff5f9eff732463af79a87c2c7 | [] | no_license | mn4774jm/PycharmProjects | 95dc8ee6b89a85ba02d4134aa5b5bce11004647b | 886bcf2400abc9a1f797fe98d09241f99fa16322 | refs/heads/master | 2021-08-09T10:20:27.907847 | 2020-09-04T15:21:21 | 2020-09-04T15:21:21 | 219,878,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,906 | py | # # Birthdays.py
#
# birthdays = {'Alice':'Apr 1', 'Bob':'Dec 12', 'Carol':'Mar 4'}
#
# while True:
# print('Enter a name: (blank to quit)')
# name = input()
# if name =='':
# break
#
# if name in birthdays:
# print(birthdays[name] + ' is the birthday of '+ name)
# else:
# pr... | [
"mn4774jm@go.minneapolis.edu"
] | mn4774jm@go.minneapolis.edu |
7642e99717c9f80209dd05eb0cc3bd3525ee7d19 | 92a1d7c2bb2119c67d9e33f1e48a1a02335772ce | /book/p8/8_10.py | 3519916dc5e72c9ccce016fab3c0190fe9f2d6f8 | [] | no_license | zephyr123/blibli | b615fb2ee2f1f98deaf5709640e18d3be1a656ac | d45ba1bcce66dc1df185a475abe01f744c128c1b | refs/heads/master | 2021-07-07T09:23:18.347107 | 2020-03-08T13:40:29 | 2020-03-08T13:40:29 | 244,829,368 | 0 | 0 | null | 2021-06-10T22:38:02 | 2020-03-04T06:55:15 | Python | UTF-8 | Python | false | false | 307 | py | def show_magicians(names):
for name in names:
print(name)
def make_great(names):
while names:
curr_names = "the Great " + names.pop()
mod_names.append(curr_names)
magic_names = ['liuqian','zhuxun','dongqing']
mod_names = []
make_great(magic_names)
show_magicians(mod_names) | [
"huys19@qq.com"
] | huys19@qq.com |
e8cb02f30831c8e4ad17d9e2d6f87fb1386d7d12 | daee54824cb107f9b5749e3c12e7f09f544bac0e | /modules/vtk_basic/vtkJPEGWriter.py | cd7a99ec769de84b521d124207929c1fb3f9fdcc | [] | no_license | JoonVan/devide | 8fa556d2b42c5ad70c3595303253f2a171de0312 | 586225d68b079e2a96007bd33784113b3a19a538 | refs/heads/master | 2020-12-26T06:25:01.744966 | 2017-01-22T19:47:50 | 2017-01-22T19:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | # class generated by DeVIDE::createDeVIDEModuleFromVTKObject
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase
import vtk
class vtkJPEGWriter(SimpleVTKClassModuleBase):
def __init__(self, module_manager):
SimpleVTKClassModuleBase.__init__(
self, module_manager,
vtk.vtk... | [
"cpbotha@users.noreply.github.com"
] | cpbotha@users.noreply.github.com |
b17ffa7de9e79f3f88860099d16d5ecd324368a4 | 70f1c694bea6178c98b134b9c44952ef6693be9f | /Manuscript/figure/Figure_MITE_auto_promoter/Auto_target/scripts/make_activeTE-pep-msa-one.py | 5f10b1bc98f0a04409b2db8ab671d463341e6a2d | [] | no_license | JinfengChen/Rice_pop | 5c19c5837805e51ddb3b2ffba4baffdc59c9bfd3 | ef272bf4825b29610c94de55eb53f231fb5febc6 | refs/heads/master | 2020-04-07T04:55:36.606594 | 2018-03-02T16:52:53 | 2018-03-02T16:52:53 | 33,501,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | #!/usr/bin/env python
import sys
import os
import fnmatch
import os.path
import subprocess as subp
import fastaIO
args = sys.argv[1:]
def usage():
print """
Usage: make_activeTE-pep-msa.py <pep-cluster_MSA_folder> <match_pattern> <run_name> <found_superfamily_list>
"""
sys.exit(-1)
if (len(ar... | [
"jinfeng7chen@gmail.com"
] | jinfeng7chen@gmail.com |
b02f08e27f8000cd103dda67c861f67cd6103769 | 77e303d8353170f4181ab9ff66ac77cb57d46caf | /src/508A.py | 4df01f6a789a6ea263d31dfc23439685b3bc3af6 | [
"MIT"
] | permissive | viing937/codeforces | 14f689f2e3360939912e927fb830c69f7116b35c | 5bd8c2bec0e48cb2b4830c26849ea7fda447267c | refs/heads/master | 2022-09-25T19:51:03.891702 | 2022-08-15T15:32:54 | 2022-08-15T15:32:54 | 32,905,529 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # coding: utf-8
n, m, k = [int(i) for i in input().split()]
mark = [[0 for i in range(m+2)] for j in range(n+2)]
for c in range(k):
i, j = [int(i) for i in input().split()]
mark[i][j] = 1
if ( mark[i-1][j-1]==1 and mark[i][j-1]==1 and mark[i-1][j]==1 ) \
or ( mark[i][j-1]==1 and mark[i+1][j]==1 and mark... | [
"viing937@gmail.com"
] | viing937@gmail.com |
09529835a8153d35821c70fe6e90354fc9ab7438 | edcd74f8f65119bdbe737360c2ca33b4a6da160a | /python/problem-math/sum_of_square_numbers.py | 0b0dfde875e4a0b998dba553d721bfd19bf60025 | [] | no_license | hyunjun/practice | 72e83de6a1d5e04ddcd16526f16110ea2dd00373 | 5376dd48b1cefb4faba9d2ef6a8a497b6b1d6c67 | refs/heads/master | 2023-08-31T07:00:37.320351 | 2023-08-17T07:29:24 | 2023-08-17T07:29:24 | 2,704,126 | 3 | 2 | null | 2022-12-14T20:25:07 | 2011-11-03T18:28:44 | Python | UTF-8 | Python | false | false | 807 | py | # https://leetcode.com/problems/sum-of-square-numbers
# https://leetcode.com/problems/sum-of-square-numbers/solution
import math
class Solution:
# 90.88%
def judgeSquareSum(self, c):
if c < 0:
return False
if 0 == c:
return True
smaller, larger = 1, int... | [
"agapelover4u@yahoo.co.kr"
] | agapelover4u@yahoo.co.kr |
adbb25263a000d69f883646bd0fbdb9d76a046b6 | cb10a56ab0515703bf65c5d9ab6e9c75b2e53031 | /src/images/training_images/try.py | d447233f1299786ae5526dc3aeb5b1f9382ae69a | [
"MIT"
] | permissive | JuanMorenoS/Captcha-With-Neuronal-Network | 2d09bc6e5ac308559aa7d8a0aa590b3c847e6022 | 3c4a119cb4df999011760caaa8f8271027de4897 | refs/heads/master | 2020-03-11T00:47:36.133301 | 2018-05-05T23:51:25 | 2018-05-05T23:51:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from PIL import Image
import pytesseract
import argparse
import cv2
import os
for i in range(4746,10001):
print(i,pytesseract.image_to_string(Image.open(str(i)+".jpg") ,config='-c tessedit_char_whitelist=abcdef0123456789') )
| [
"="
] | = |
f23f7227996acd01fd328809befc31c62faa0a5b | ea178f0977127189c7559dfa9ca2faadceef5ff8 | /python/jittor/test/test_new_fused_op.py | 32b9c488039e6b263c6ec0c9b443abf92f54ef20 | [
"Apache-2.0"
] | permissive | AbbasMZ/jittor | a0bb5b2cbceeffb40c61405b863e7e4b91567756 | fcec57f70422b52d6b8d0235e29f91fd2212f559 | refs/heads/master | 2023-06-20T07:07:22.952846 | 2021-07-15T14:40:54 | 2021-07-15T14:40:54 | 386,115,280 | 0 | 0 | Apache-2.0 | 2021-07-15T00:42:22 | 2021-07-15T00:39:53 | null | UTF-8 | Python | false | false | 1,451 | py | # ***************************************************************
# Copyright (c) 2021 Jittor. All Rights Reserved.
# Maintainers:
# Guowei Yang <471184555@qq.com>
# Dun Liang <randonlang@gmail.com>.
#
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this ... | [
"randonlang@gmail.com"
] | randonlang@gmail.com |
cb05cede811123fa5e3a317f94586695225fe6ed | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Generators/MadGraphModels/python/models/scalar_singlet_750_UFO/coupling_orders.py | fe4f223b9c8dbcde3bda5f37220247ddec40d888 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | # This file was automatically created by FeynRules 2.3.7
# Mathematica version: 10.2.0 for Linux x86 (64-bit) (July 28, 2015)
# Date: Thu 26 Nov 2015 09:52:28
from object_library import all_orders, CouplingOrder
QCD = CouplingOrder(name = 'QCD',
expansion_order = 99,
hierarch... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
8dbc5c3a580ccb580ec81f61fc49b76815891337 | e7b312b4cc3355f4ca98313ef2ac9f3b0d81f245 | /kickstart/2018/round_c/a/make_large_input.py | 04519b5c74a2e0bdcab79f66b28555502a3fd222 | [] | no_license | minus9d/programming_contest_archive | 75466ab820e45ee0fcd829e6fac8ebc2accbbcff | 0cb9e709f40460305635ae4d46c8ddec1e86455e | refs/heads/master | 2023-02-16T18:08:42.579335 | 2023-02-11T14:10:49 | 2023-02-11T14:10:49 | 21,788,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import array
from bisect import *
from collections import *
import fractions
import heapq
from itertools import *
import math
import random
import re
import string
import sys
T = 100
print(T)
for t in range(T):
N = 1000
print(N)
used = set()
for n in ra... | [
"minus9d@gmail.com"
] | minus9d@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.