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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c20a68dd175a412ae674307f5b8185795a974a9a | 69aba5a9c34ec162c069cda9ff683b1ac204daa6 | /starionbank/settings.py | 99cc318f780e2a4316237d5e3633f75851ff8b86 | [] | no_license | hristo-grudev/starionbank | a3b2ddada8efaff0330d905902ff58cc5ca3d7d9 | 4ac825b85310b6be65f95977323858dde1bea896 | refs/heads/main | 2023-04-01T12:25:05.414437 | 2021-04-09T11:34:03 | 2021-04-09T11:34:03 | 356,247,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | BOT_NAME = 'starionbank'
SPIDER_MODULES = ['starionbank.spiders']
NEWSPIDER_MODULE = 'starionbank.spiders'
FEED_EXPORT_ENCODING = 'utf-8'
LOG_LEVEL = 'ERROR'
DOWNLOAD_DELAY = 0
ROBOTSTXT_OBEY = True
ITEM_PIPELINES = {
'starionbank.pipelines.StarionbankPipeline': 100,
}
USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; W... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
9b23a8031f4df44c6c0406ebc4ffc353c2fc3eb9 | 12abe02e205d3e8dabe78fb5a93ccca89e2c42c4 | /toontown/parties/DistributedParty.py | 4843bbb62c305687e6cea58567f7465f04038d1e | [] | no_license | nate97/toontown-src-py3.0 | 55092b2973b76e6b6d566887f44c52822684394c | f76c515801ae08c40b264b48365211fd44b137eb | refs/heads/master | 2022-07-07T05:23:22.071185 | 2022-06-22T16:36:10 | 2022-06-22T16:36:10 | 187,682,471 | 15 | 8 | null | null | null | null | UTF-8 | Python | false | false | 19,079 | py | import random
import time
import datetime
from panda3d.core import Vec4, TextNode, CardMaker, NodePath
from direct.distributed import DistributedObject
from direct.task.Task import Task
from direct.interval.IntervalGlobal import *
from direct.gui.DirectGui import DirectLabel
from direct.gui import OnscreenText
from too... | [
"nathanielfuhr@gmail.com"
] | nathanielfuhr@gmail.com |
75ae3505c5d5417ea860319dec805ddb2aebbe7a | 5a357e80a49438e68f8a0d6497864e0616d39a0f | /mac/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/buildartifacts/v1alpha2/buildartifacts_v1alpha2_messages.py | 318677d6c2ffba688941ae394cae294ba21cf2c5 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bopopescu/cndw | 2dc443644a69ee6ef132414916bd14fe5cd7e60d | ee432efef88a4351b355f3d6d5350defc7f4246b | refs/heads/master | 2022-11-23T16:11:46.077619 | 2019-12-16T04:51:01 | 2019-12-16T04:51:01 | 282,462,882 | 0 | 0 | Apache-2.0 | 2020-07-25T14:42:23 | 2020-07-25T14:42:23 | null | UTF-8 | Python | false | false | 39,249 | py | """Generated message classes for buildartifacts version v1alpha2.
Store and manage build artifacts in a scalable and integrated service built on
Google infrastructure.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.ba... | [
"raphael.carrier@gmail.com"
] | raphael.carrier@gmail.com |
f0c3be2ad92956d53461d95b56f3de3306fb44d3 | 9492a315f2c79760b59bd167c83e8fc9a79a3b66 | /day20/day20.py | a5129cafd761cf74f418acab0616c304838f3f63 | [] | no_license | prescod/advent-of-code-2019 | e78242e5b6cf2366cd830c94b3f73fd4ccdb8b52 | 2f6961fb24ed785033aee2f68b5b54e3c81be9eb | refs/heads/master | 2021-06-29T23:32:20.616107 | 2020-02-17T22:03:59 | 2020-02-17T22:03:59 | 228,294,730 | 0 | 0 | null | 2021-05-16T07:16:07 | 2019-12-16T03:25:57 | Python | UTF-8 | Python | false | false | 3,313 | py | import re
import string
import networkx
from networkx.algorithms.shortest_paths.generic import shortest_path
class Map:
def build_map(self, cells):
self.map = map = {}
self.portals = portals = {}
self.connections = networkx.Graph()
for rownum, row in enumerate(cells, 1):
... | [
"pprescod@salesforce.com"
] | pprescod@salesforce.com |
2a1b9a1a58bd6d9604dc683782c46e73889cdfc4 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/205db4b41feef2473585802fcda2c129ffe49099-<create_app>-fix.py | bbd93388449ff471c1e858f9b917a57d6a79e60e | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,496 | py |
def create_app(config=None, session=None, testing=False, app_name='Airflow'):
global app, appbuilder
app = Flask(__name__)
if conf.getboolean('webserver', 'ENABLE_PROXY_FIX'):
app.wsgi_app = ProxyFix(app.wsgi_app, num_proxies=None, x_for=1, x_proto=1, x_host=1, x_port=1, x_prefix=1)
app.secret... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
db35d293c636d089303de72f9960ec76dc5a8815 | 45ee96b582d7b3e045819db510088d2cb640dfde | /BOJ/Previous/SW 역량 테스트 준비/기초 (동적 계획법)/스티커.py | e10e7da372142d8b682b1f1c58b5f9f4b4c4a896 | [] | no_license | tom9744/Algorithms | e54b649014f3b478bfbc7a0f9e8e56ad5dbc1304 | 4496b1c992ab4322289e5a200567f3df00478917 | refs/heads/master | 2023-05-06T00:59:12.767655 | 2021-05-26T16:26:50 | 2021-05-26T16:26:50 | 330,401,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | # 9465: 스티커
T = int(input())
for _ in range(T):
n = int(input())
stickers = []
for _ in range(2):
stickers.append(list(map(int, input().split())))
DP = [[0] * n for _ in range(2)]
DP[0][0], DP[1][0] = stickers[0][0], stickers[1][0]
for index in range(1, n):
# N이 1인 경우, N-1일 때... | [
"tom9744@gmail.com"
] | tom9744@gmail.com |
79e2de9ecaf41ea90330262ca5e7e69af4f5dfde | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/datamanage/utils/random.py | ba243697c25fea934cd743a7e81863726a2adfb4 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 1,748 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
---------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
f9576b3ca9d5e9318277f3148b01bea3d30111c7 | 3e4a41564186acb67354a34187102187feb9a1a4 | /app01/models.py | ce4b39645c8710b9e07ed0a5b9101031918555de | [] | no_license | gaoi311/day72auth | f791f8144c37d233aa26e565af6fab60d507c03b | 758f646516f72e4d428f1d09c803e4a8b80bfdd0 | refs/heads/master | 2021-03-01T04:32:22.900511 | 2020-03-08T04:48:19 | 2020-03-08T04:48:19 | 245,753,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | from django.db import models
from django.contrib.auth.models import AbstractUser
class UserInfo(AbstractUser):
phone = models.CharField(max_length=11)
| [
"13956965930@163.com"
] | 13956965930@163.com |
eebcd114b17393a1db52b368b6756b487c7e539c | 67998c80970bf1971412995fbc1591549013b39a | /Exercicios/2EstruturaDeDecisao/EX1.py | 80e1fb93959a8068efc82b4b83314a95695beccd | [] | no_license | luanaAlm/Python | 97195e41060896b4cb9ee2d4abc2b7f10268083b | 8e403231370ad47003e1467495f70b7e22c385bb | refs/heads/master | 2023-02-11T06:32:06.157497 | 2021-01-08T19:26:37 | 2021-01-08T19:26:37 | 275,230,494 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | """
Faça um Programa que peça dois números e imprima o maior deles.
"""
num1 = int(input("Digite o 1 numero: "))
num2 = int(input("Digite o 2 numero: "))
print('O maior número é:')
print(max(num1, num2)) | [
"luanarodrigues3211@gmail.com"
] | luanarodrigues3211@gmail.com |
9ab8d8cc722007b67e23c891be69f3ef9a85dd27 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/57e355c516b6deaa97ca7ac7ec83e5fc0f50ab87-<create_custom_dag_permission_view>-bug.py | dde8ec2e61dd9848483cc668d1e59d8a2f693a11 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,690 | py |
def create_custom_dag_permission_view(self):
'\n Workflow:\n 1. when scheduler found a new dag, we will create an entry in ab_view_menu\n 2. we fetch all the roles associated with dag users.\n 3. we join and create all the entries for ab_permission_view_menu\n (predefined per... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
13fe4acb3138c5a0d098e18277e61fc53f84434c | 00bc2f8368390abbd793bdd9d059f08f0fa7016d | /setup.py | b07cf8043b001644768eabdd38901b1026acbdc5 | [
"BSD-3-Clause"
] | permissive | django-xxx/django-excel | ac2fcd237f37a2ee2bed130425fcf8b7faf1ff1c | e616a3aa109bed161b67e36ef35fab7112ba802b | refs/heads/master | 2021-07-15T15:24:55.233973 | 2017-10-20T22:56:47 | 2017-10-20T22:56:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,774 | py | # Template by setupmobans
import os
import sys
import codecs
from shutil import rmtree
from setuptools import setup, find_packages, Command
PY2 = sys.version_info[0] == 2
PY26 = PY2 and sys.version_info[1] < 7
NAME = 'django-excel'
AUTHOR = 'C.W.'
VERSION = '0.0.9'
EMAIL = 'wangc_2011@hotmail.com'
LICENSE = 'New BSD'
... | [
"wangc_2011@hotmail.com"
] | wangc_2011@hotmail.com |
dea31616a2c1b3193f034e76b34c812d5ee90814 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/ntpath.py | 643cdcd5d1a4ade01adb491e745fb946310c38e0 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 12,394 | py | # 2015.11.10 21:33:25 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/ntpath.py
"""Common pathname manipulations, WindowsNT/95 version.
Instead of importing this module directly, import os and refer to this
module as os.path.
"""
import os
import sys
import stat
import genericpath
import warnings
f... | [
"info@webium.sk"
] | info@webium.sk |
b6472ec4f547809175d1ca9f13af809fae758741 | 20e76b2d528ff36b35cc4ae0a3db838ae030a048 | /django_dramatiq/test.py | 1bb2f6c25217cb7e37c683b0d66dfd733686752a | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | Bogdanp/django_dramatiq | 1638e0bc66e0464b312cf95773b475cf26d03083 | 5081942ab4a48d7db4bd6e905a606978fbd69f52 | refs/heads/master | 2023-08-20T00:48:43.097802 | 2023-08-11T07:14:32 | 2023-08-11T07:14:32 | 108,956,841 | 304 | 96 | NOASSERTION | 2023-07-24T06:04:27 | 2017-10-31T06:51:36 | Python | UTF-8 | Python | false | false | 438 | py | from django.test import TransactionTestCase
from dramatiq import Worker, get_broker
class DramatiqTestCase(TransactionTestCase):
def _pre_setup(self):
super()._pre_setup()
self.broker = get_broker()
self.broker.flush_all()
self.worker = Worker(self.broker, worker_timeout=100)
... | [
"popa.bogdanp@gmail.com"
] | popa.bogdanp@gmail.com |
2e4353a276f1033709ea074dbb3f96d299f1f444 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/cloud/ingressbytesaghist5min.py | f1f0094d343c07d23878e981596e7bfd3817b92a | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,838 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
994d07b57bd85f64b2651b5bd858189b51caed04 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_dawdled.py | 9eb5181b779ac9523489c6531fb469952241728e | [
"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 | 238 | py |
from xai.brain.wordbase.verbs._dawdle import _DAWDLE
#calss header
class _DAWDLED(_DAWDLE, ):
def __init__(self,):
_DAWDLE.__init__(self)
self.name = "DAWDLED"
self.specie = 'verbs'
self.basic = "dawdle"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
42a653689e5a0a5edf63916aad60ce0e1e3b1efd | f50f1aa1f8f139d546db3230a1cb1f53043fd9e6 | /system/base/which/actions.py | 2856c1c94f2d03da54da136b30c1ff60a1978ff7 | [] | no_license | pars-linux/corporate2 | 7887961d1552d39bc3b0bef4a60fd3413d9b82bb | 14d1eacfc824fb8d0bff8173e7ac06b36b88d10d | refs/heads/master | 2020-05-26T15:02:12.005654 | 2017-02-27T03:07:14 | 2017-02-27T03:07:14 | 82,476,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configu... | [
"eki@420bcd57-4a62-4fd6-832e-5ede16c90cc9"
] | eki@420bcd57-4a62-4fd6-832e-5ede16c90cc9 |
605f249814cc5bd7625e7e5eef9e3e39042ed5ca | 30b2eb381ec8f3225671274e77a55b63206dfb60 | /leetcode/p1365/smaller_numbers_than_current01.py | 7e4ba7a1d6f7815bd36b603968b31353c27781f6 | [] | no_license | b1ueskydragon/PythonGround | 52888f32336e5e20be8490454beb67e676be7057 | 5a401250e88926235f581e6c004d1a4acb44230d | refs/heads/master | 2021-07-10T03:00:38.340959 | 2021-04-02T03:34:29 | 2021-04-02T03:34:29 | 98,208,402 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | class Solution:
# the number of smaller than the current number == the number of ordering ascendant.
# O(N logN) Time O(N) Space.
def smallerNumbersThanCurrent(self, nums: [int]) -> [int]:
order = dict()
for i, v in enumerate(sorted(nums)):
if v not in order: # since duplicated... | [
"dragoalie@gmail.com"
] | dragoalie@gmail.com |
20f4285968a798a3c7cd375d34dce16aa6356b00 | 2e781ae772afd09c9b3ca9c9fa2f8edc05899756 | /secondapp/wsgi.py | bdc000418cfc84410ced9af32ee1f0ad4b4bccb9 | [] | no_license | mehulchopradev/charles-django-secondapp | 145f6d99f97c7ec4a25d27940e9419ead23e7137 | b5b240f97d1fd06f29c5393110d2815f5f996860 | refs/heads/master | 2020-04-02T10:58:44.048636 | 2018-10-25T17:01:34 | 2018-10-25T17:01:34 | 154,364,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for secondapp 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"mehul.chopra.dev@gmail.com"
] | mehul.chopra.dev@gmail.com |
5e71c1676bab4ed9f12e553319f18559073ec15e | 34f9f75223e4ba4d66ad42682348498af8e81350 | /geospy | 0a64296f3f54ce0b41d16677014a00b0121fd9b6 | [
"MIT"
] | permissive | swagkarna/geospy | 190e69324f6b246e5aa01f497c3878ad7b0cdeca | 148193649ed2fa8c1ac0596c6d28822908be7923 | refs/heads/master | 2021-07-22T02:09:46.426871 | 2020-02-05T19:52:21 | 2020-02-05T19:52:21 | 238,675,668 | 14 | 1 | MIT | 2021-01-27T06:33:12 | 2020-02-06T11:42:00 | null | UTF-8 | Python | false | false | 4,541 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# MIT License
#
# Copyright (C) 2019-2020, Entynetproject. All Rights Reserved.
#
# 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 restri... | [
"noreply@github.com"
] | swagkarna.noreply@github.com | |
02384d5300df06daa2b68cba1143a64e508e6356 | 139de641cdaf5f135e8260357623d32f42b14a78 | /examples/unsteady_ring_vortex_lattice_method_solver_variable_example.py | b6f5cbfc39054618211a655935ab632eed6b17f8 | [
"MIT"
] | permissive | qxzsilver1/PteraSoftware | 024c663532b907ab47de3800f53e9961faba741c | 500b68aa9679240f2492c90954beb591a9e30d4c | refs/heads/master | 2023-03-11T05:41:15.654219 | 2021-02-28T05:47:23 | 2021-02-28T05:47:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,374 | py | """ This is script is an example of how to run Ptera Software's unsteady ring vortex lattice method solver on a
custom airplane with variable geometry."""
# First, import the software's main package. Note that if you wished to import this software into another package, you
# would first install the software by running... | [
"camerongurban@gmail.com"
] | camerongurban@gmail.com |
82830b1415e4f477f3f7b8a9aa2f8fc4e2661e08 | e081eebc37aef48084fa62a1b36443f03b9e2abe | /Simple Statistics.py | 75bf542cffc13661319bc722e5e6c96bb2b3c7d7 | [] | no_license | S-C-U-B-E/CodeChef-Practise-Beginner-Python | 93fa202eede83cf4f58177bffb4ecc4ddb7f19bc | 78a02303b3cdd7eb7b0c45be59a1c282234f8719 | refs/heads/master | 2021-03-24T01:10:43.913150 | 2020-03-16T12:49:12 | 2020-03-16T12:49:12 | 247,501,633 | 16 | 8 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | for _ in range(int(input())):
n,k=map(int,input().split())
a=[int(x)for x in input().split()]
a.sort()
if k==0:print(sum(a)/n)
else: print( sum(a[k:-k])/(n-(2*k)) )
| [
"sssanyal10@gmail.com"
] | sssanyal10@gmail.com |
4525833b80dea2df778dcd9952924d5e93409efd | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/frsand012/question4.py | b10513105b86cf7e0f7ade430d19de460b65e82c | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | def histogram():
histogram = input("Enter a space-seperated list of marks: \n")
# Allows program to recognise inputs into a list by putting a space between them
list_marks = histogram.split
# This will convert the strings into a list of numbers in order to use format
for j in range(len(... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
9bfdcf1f2a65e1e827d04dffba28e2919c22db31 | e659e7e3d19b602e47b6414abcdb48b99a67a7bf | /table_5_switch_sizes_experiment/scripts/test_amplification_graph.py | 051c3d437e250d57d4034a2a054ac51e0271d46a | [
"Apache-2.0"
] | permissive | 0xADE1A1DE/GoT | 8dd8878ce8acc12f805ad2a8583755f6cb36388f | 5bac7ece92f61025b7c1942c59b95e8a999ec231 | refs/heads/main | 2023-08-04T11:17:16.207184 | 2023-04-28T11:57:35 | 2023-04-28T11:57:35 | 610,082,520 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | import matplotlib.pyplot as plt
import argparse
import numpy
import math
import re
FIRST_EXP_INDICATOR = "RAM"
SECOND_EXP_INDICATOR = "IC"
XLABEL = "Time in ms"
YLABEL = "amount"
LEGEND_FIRST_EXP = "root out of cache"
LEGEND_SECOND_EXP = "root in cache"
DEFAULT_TITLE = "Graph of 'test_amplification... | [
"user@example.com"
] | user@example.com |
f6223003593043a15c13dddfbb22fb977e57bbf8 | e3f8e163cfd46086f18a748eb2debe1b20759610 | /backend/base/urls/user_urls.py | 4b42cac2be9cead06bf1af044ab8a6dedd3dbd11 | [] | no_license | davemolk/ecommerce | 6e7ca77b188f839ca1471d203f4e58a2f8c65fcf | 3f038e152a37671ceed4dd608dac6e753a8a7d63 | refs/heads/main | 2023-07-08T04:42:01.806830 | 2021-08-16T21:59:53 | 2021-08-16T21:59:53 | 395,487,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | from django.urls import path
from base.views import user_views as views
from rest_framework_simplejwt.views import (TokenObtainPairView)
urlpatterns = [
path('', views.getUsers, name="users"),
path('register/', views.registerUser, name="register"),
path('login/', views.MyTokenObtainPairView.as_view(), na... | [
"davemolk@gmail.com"
] | davemolk@gmail.com |
20bf1bbd6dd8bef7324a88ae98f7765f3abc7e15 | b7b71d87de87b12417fd99fc6277085ef5195ebd | /fridge.py | e811fee152ee4f7cd644260086cfce21ae47ec86 | [] | no_license | botaklolol/Kattis | 30d8d826160f7bc49cd9fb871d1d61dd1b9ca522 | 43ccd2c52c3ea519a3d5ad0ef372bab55ec20d45 | refs/heads/master | 2022-03-27T02:43:55.090517 | 2019-12-27T03:30:32 | 2019-12-27T03:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | import sys
def main():
nums = sys.stdin.readline().strip()
freq = [0 for i in xrange(10)]
for i in nums:
i = int(i)
freq[i] += 1
f = sorted(map(lambda x: (x[1],x[0]), enumerate(freq)))
m = f[0]
if m[1] != 0:
print str(m[1])*(m[0]+1)
else:
m2 = f[1]
if m[0] == m2[0] > 0:
print s... | [
"hermon@tresata.com"
] | hermon@tresata.com |
e75383a30dfa298d104dd23d530017ca62007e62 | bf548b525bdd0f229fd727b59b329abb74776ac0 | /crm_serverhost/crm_serverhost/wsgi.py | 1240feeb9389b3a889374a0f8fc4c2b78f4aad74 | [] | no_license | xuliwei1216/idc_server_crm | 6b07e9e4a33622498fe10d1cd3fda44d80000c62 | 71159e4ec51b0343067bf943db73499ed986b7d6 | refs/heads/master | 2020-03-27T22:55:06.152440 | 2018-09-04T01:41:13 | 2018-09-04T01:41:13 | 147,271,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for crm_serverhost 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"admin@example.com"
] | admin@example.com |
6b6c605bad60e96539116ce5d20a3c03d4bcc822 | 4f66d18df046d2db1216dbdc97782afea0b070a7 | /Practices/linked_lists.py | 00c95088dac4c303922dce4f9767bc20c9a0010f | [] | no_license | sourenaKhanzadeh/CSCA48 | 8051dccb0097389569d78fd65513ce427e895e08 | 2e21db23525f1f0cbae9c009795daae5bef2b36e | refs/heads/master | 2020-05-23T20:29:37.866420 | 2019-05-16T02:07:37 | 2019-05-16T02:07:37 | 186,932,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,171 | py | class Node():
'''represents a node as a building block of a single linked list'''
def __init__(self, element, next_node=None):
'''(Node, obj, Node) ->
construct a node as building block of a single linked list'''
self._element = element
self._next = next_node
def set_next(... | [
"soure@DESKTOP-6PVNFEF.(none)"
] | soure@DESKTOP-6PVNFEF.(none) |
a0473eb60ebcacd9d07628c124249a002f89bd1c | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/zetcode/008_Drawing/001_Drawing text.py | 89418009b27ad77cb6cd3d3c0179c82e0e6115f1 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,244 | py | """
ZetCode PyQt4 tutorial
In this example, we draw text in Russian azbuka.
author: Jan Bodnar
website: zetcode.com
last edited: September 2011
"""
import sys
from PySide import QtGui, QtCore
class Example(QtGui.QWidget):
def __init__(self):
super(Example, self).__init__()
self.initUI()
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
7ec633909a257fb6b916f7b32699adc9987d6fc4 | 6896fce8ee082f9730c056436e49ef0d16a6ea03 | /repository/WebSpider/urlhandler.py | 674e5a69b41d75d82b2b6ce55461f05cce1a5edf | [] | no_license | Sugeei/python-practice | 5022ae7c34bc04972edebc15936248cb9869ec54 | 048df40500a059e4380f3ecc2581de96c9a1fc9b | refs/heads/master | 2022-12-07T06:34:40.740379 | 2022-11-13T11:48:29 | 2022-11-13T11:48:29 | 121,074,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,373 | py | #!usr/bin/env python
#_*_ coding: utf-8 _*_
#
# functions to get item urls
from bs4 import BeautifulSoup
import requests
from datetime import datetime, timedelta
import time
import re, random
from mongoconn import mongoset, mongoinsert
from user_agent import ua
def get_soup(url):
idx = random.randint(0, len(ua)... | [
"215626824@qq.com"
] | 215626824@qq.com |
4112230cf0f9f38e78f5402859c596f999ff0d53 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0_cuda/build/autoware_map_msgs/devel/lib/python2.7/dist-packages/autoware_map_msgs/msg/_OppositeLaneRelation.py | 49d3e189883e16750df3ebc48c449d07c9208310 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,036 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from autoware_map_msgs/OppositeLaneRelation.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class OppositeLaneRelation(genpy.Message):
_md5sum = "1cd180a4c94ee476a03a85... | [
"907097904@qq.com"
] | 907097904@qq.com |
b6f82659e4df43cf98781941c28d707e19ef50b3 | b2a45f26d41930e4e9d304bcff74221029fe48c1 | /leetcode/hash table/medium/49. Group Anagrams.py | f492c68774c01e9f64a3754979c427c54bcc1041 | [] | no_license | Hk4Fun/algorithm_offer | 29db9a9565f6e7400539f8c3b85cceb524918964 | b1764cd62e1c8cb062869992d9eaa8b2d2fdf9c2 | refs/heads/master | 2021-07-01T04:22:58.168117 | 2019-04-02T12:26:32 | 2019-04-02T12:26:32 | 115,990,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,219 | py | __author__ = 'Hk4Fun'
__date__ = '2018/5/12 2:12'
'''题目描述:
Given an array of strings, group anagrams together.
Example:
Input: ["eat", "tea", "tan", "ate", "nat", "bat"],
Output:
[
["ate","eat","tea"],
["nat","tan"],
["bat"]
]
Note:
All inputs will be in lowercase.
The order of your output does not matter.
'''... | [
"941222165chenhongwen@gmail.com"
] | 941222165chenhongwen@gmail.com |
ab59292a34288e1d54a3a458e7ad568df6a48811 | dd573ed68682fd07da08143dd09f6d2324f51345 | /algorithm_study/programmers/perm.py | b765e70377cb27561fb3272a5d5201726d84388f | [] | no_license | chelseashin/My-Algorithm | 0f9fb37ea5c6475e8ff6943a5fdaa46f0cd8be61 | db692e158ebed2d607855c8e554fd291c18acb42 | refs/heads/master | 2021-08-06T12:05:23.155679 | 2021-07-04T05:07:43 | 2021-07-04T05:07:43 | 204,362,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import sys
import itertools
sys.stdin = open("input.txt")
def solution(numbers):
global answer
numbers = sorted(numbers, reverse=True, key=lambda x: (str(x)*4).ljust(4))
print(numbers)
for i in numbers:
answer += str(i)
if answer[0] == '0': #모두 0인 경우 -> 테스트11
return '0'
ret... | [
"chaewonshin95@gmail.com"
] | chaewonshin95@gmail.com |
87382f2fce222b83532bbdc4bf3aa49b9732d7e4 | 3922e9b41bf8bf5dd0a0d9abc8852d147a02db0f | /main/migrations/0059_auto_20160924_0751.py | 64f1e0050e78e11e2433881f9dbb9b08c4d62169 | [] | no_license | levi-p/market | 3ddd0ca20818139c96fa102256f21249d85f104f | 5deb8dbf83ddeb07415bd21703b57f3c3d54aa54 | refs/heads/master | 2020-07-10T18:03:30.316598 | 2017-01-20T15:00:39 | 2017-01-20T15:00:39 | 67,126,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-09-24 07:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0058_auto_20160924_0750'),
]
operations = [
... | [
"levipda@gmail.com"
] | levipda@gmail.com |
8520d21be2bf4ccdeea2e73a2504ae8876acf76e | 42c4c940cd097d1535a58cd5d838c2ec07b77bb8 | /scripts/dbscan_cluster_example.py | dca8545a34571f49566d70a34807ec1652704851 | [] | no_license | amlalejini/cse881_mining_for_ecotypes | 60ab0aba9c42c09c639c4873054438cf443f946e | 0374e5e28632d6a86a6473203ec4fc27ec171ad2 | refs/heads/master | 2021-01-10T22:52:27.148019 | 2016-12-04T01:37:51 | 2016-12-04T01:37:51 | 70,342,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | from sklearn.cluster import DBSCAN
from comp_ops import EditDistance, SimpleMatchingSimilarity
import numpy as np
EPSILON = 0.07
MIN_PTS = 5
def AvidaOrgDist(a, b):
"""
Given two data points, calculate distance between them.
"""
if a["genotype_id"] == b["genotype_id"]: return 0.0
genDist = EditDis... | [
"amlalejini@gmail.com"
] | amlalejini@gmail.com |
debb30a5db2a1235e144b905dddc9e2230bde9a9 | e8bacf4e4443ea2b8459bf7975d1ff315746cc61 | /.venv/lib/python3.8/site-packages/pygments/styles/algol_nu.py | b5428f818b2e8589e376826f091c3d9e90e9fe67 | [
"Apache-2.0"
] | permissive | WhiteBuffaloTribe/Dragon-Token | 657589873de5a62be858f152808c5bc2edd1fd56 | d9b4d54268e03de1987522a779ed805137e9468f | refs/heads/main | 2023-07-11T06:13:33.525775 | 2021-08-20T21:52:05 | 2021-08-20T21:52:05 | 398,401,607 | 0 | 0 | Apache-2.0 | 2021-08-20T21:13:26 | 2021-08-20T21:13:26 | null | UTF-8 | Python | false | false | 2,278 | py | # -*- coding: utf-8 -*-
"""
pygments.styles.algol_nu
~~~~~~~~~~~~~~~~~~~~~~~~
Algol publication style without underlining of keywords.
This style renders source code for publication of algorithms in
scientific papers and academic texts, where its format is frequently used.
It is based on the ... | [
"noreply@github.com"
] | WhiteBuffaloTribe.noreply@github.com |
1228e283f7d5434e881a44ed819d45f247a139c4 | 916c1313c623c799e98d1bd897b3aef510172639 | /py/phl/phlurl_request__t.py | d28871ee47905782891e722fcba8b8e9bdbb37f2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bloomberg/phabricator-tools | 377ba3dba299c5d21a015bb039ae920fae5478ef | 09bd1587fe8945d93a891162fd4c89640c6fada7 | refs/heads/master | 2021-01-02T19:43:48.274684 | 2019-01-11T13:34:55 | 2019-01-11T13:34:55 | 8,464,182 | 154 | 40 | Apache-2.0 | 2022-02-14T09:57:48 | 2013-02-27T20:02:50 | Python | UTF-8 | Python | false | false | 9,366 | py | """Test suite for phlurl_request."""
# =============================================================================
# TEST PLAN
# -----------------------------------------------------------------------------
# Here we detail the things we are concerned to test and specify which tests
... | [
"jevripiotis@bloomberg.net"
] | jevripiotis@bloomberg.net |
c8de1e72b90e3e6fe41187096863640bbc467ec0 | 297a02ba1f43ac8e354061b789cd5f871354790c | /pure/bin/rst2html4.py | acad64ef838b3fc413e029b02d8148f44184b6a1 | [] | no_license | Yolo-Cultivate/atec_nlp_sim | eb483a6e7e837ab3d3857979d96cc3d45a436178 | f50dba4f2f871cb0c8a5eee018c5f0234fdd8b2d | refs/heads/master | 2020-09-24T13:44:59.031092 | 2018-05-11T08:33:16 | 2018-05-11T08:33:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | #!/Users/liujinyang/PycharmProjects/atec_nlp_sim/pure/bin/python
# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing (X)HTML.
The output conforms ... | [
"liujy725@gmail.com"
] | liujy725@gmail.com |
48fa48709d2dcd1bb74c0201a76a2a60bf65f893 | 2c1284428541df7ea5a2b349723793c931605fa9 | /Classes/Examples/Shape_Lab/word_search.py | 694fd810201f40c749580ae3c0ac557208ad77bf | [] | no_license | fbhs-cs/CS1-classcode | 28d1677e901c2d3dd6fbf7fa26427f05fbeee6cf | b310989b4669a976eda1e6566519c73ec0f06fd1 | refs/heads/master | 2022-04-03T14:48:59.071648 | 2019-12-19T13:55:45 | 2019-12-19T13:55:45 | 103,865,752 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | def substring(p, w):
return p.count(w)
def substring_ignore_spaces(p, w):
return p.replace(" ","").count(w)
def main():
phrase = "How much wood could a woodchuck chuck" +\
"If a wood chuck could chuck wood"
print(substring(phrase,"wood")) # 4
print(substring(phrase... | [
"cpurdy@flourbluffschools.net"
] | cpurdy@flourbluffschools.net |
84881f8870687dd60fb96f298fb8171d915ff9d9 | 2236aee2948a27423c219fdd7bad85e85c210e36 | /scripts/div_p2p_figs | 07f57551640fdf1a0e479305069f6ffda3c45a7b | [
"MIT"
] | permissive | mliroz/diversity_p2p | 43f9dbbba3fb66e66dcc2843dbb39c78b0d167a8 | aab3598dd7a77cef021ffbda90cf4658f2685f88 | refs/heads/master | 2016-08-03T08:44:29.521642 | 2015-01-15T09:59:56 | 2015-01-15T09:59:56 | 26,120,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,053 | #!/usr/bin/env python
import json
import os
import sys
from stats.csv import CsvGenerator
from stats.data import get_varying_combinations, FigureLines
from stats.gnuplot import GnuPlotGenerator
def convert_number(string):
try:
return int(string)
except ValueError:
pass
try:
return... | [
"miguel.liroz_gistau@inria.fr"
] | miguel.liroz_gistau@inria.fr | |
07cda197c61cd8d2f09ffe7e7eee34d8ab860be3 | 57a6ce54d3c99ff6bf407e7bea1d8e0f8e2a03bd | /multi_agent/runner/a2c.py | 48789b333e1f7a606e351251dd233def42a639fd | [] | no_license | nicehiro/catch-me-if-you-can | dd78a2734689d9a26a10a01a0221f3e5a81b2f6d | 45422690315a9d2813fbd01f2e707d33ff583c92 | refs/heads/master | 2020-08-22T01:50:13.605035 | 2020-01-14T05:21:12 | 2020-01-14T05:21:12 | 216,293,163 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,466 | py | import time
import gym
import torch
from grid_world.envs import AgentType
from agent.a2c_agent import A2CAgent, A2CNet
from agent.actor_critic_agent import ActorCriticNet
from agent.greedy_agent import GreedyAgent
from multi_agent.runner.greedy_run import runner_greedy
from utils import get_reverse_action
def train... | [
"wfy11235813@gmail.com"
] | wfy11235813@gmail.com |
2dfe908b2fdcb816e7a7343a873d57668da54ecc | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_118/1633.py | 00b64102efe7fc9a6eaabec11dbcd581ab7fead0 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/python
ans = [1, 4, 9, 121, 484, 10201, 12321, 14641, 40804, 44944, 1002001, 1234321, 4008004, 100020001, 102030201, 104060401, 121242121, 123454321, 125686521, 400080004, 404090404, 10000200001, 10221412201, 12102420121, 12345654321, 40000800004, 1000002000001, 1002003002001, 1004006004001, 1020304030201, 1... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7b5cdead8bf8ff40f986d0da375be9619a508771 | 2e228c4d272e5e333c773815a8c5b6a28bd37429 | /tests/test_hermkes_kuehn_riggelsen_2013.py | d68ddd2adc771c3a9c9154b22978f876e59e3237 | [
"MIT"
] | permissive | songzhenhe/pygmm | c2c2d7b909846e4b73b97d5132aa8a1e91314f93 | 0ad5c870a102ec483a725d1f7f87507cd419c378 | refs/heads/master | 2022-09-22T01:53:12.550120 | 2020-06-03T20:44:28 | 2020-06-03T20:44:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy as np
import pytest
from pygmm.model import Scenario
from pygmm.hermkes_kuehn_riggelsen_2014 \
import HermkesKuehnRiggelsen2014 as HKR13
# Relative tolerance for all tests
RTOL = 1e-2
names = ('mag', 'depth_hyp', 'mechanism', 'dist_jb', 'v_s30')
# These te... | [
"albert.kottke@gmail.com"
] | albert.kottke@gmail.com |
23ad3a40be3f6fbfa4169a2ef9f5cd1b4c9875fb | 1647dd424edd275a4b078bcc5a0cba7312e81fdc | /zci_bio/chloroplast/not_used/run_orientate.py | 88289fa4978b91048ccd7313f77474c00643dc3c | [
"MIT"
] | permissive | CroP-BioDiv/zcitools | a72646bec8795bd24aca2dc7fa91c116be6abd7a | 3340a92f710f4acb5d3507bec639c40a17dfb5f2 | refs/heads/master | 2022-09-23T07:09:16.671748 | 2022-09-17T11:09:21 | 2022-09-17T11:09:21 | 222,237,739 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,113 | py | #!/usr/bin/python3
import os
import yaml
import shutil
from concurrent.futures import ThreadPoolExecutor
import multiprocessing
from zipfile import ZipFile
_DEFAULT_EXE_NAME = 'mafft'
_ENV_VAR = 'MAFFT_EXE'
_install_instructions = """
MAFFT is not installed!
Check web page https://mafft.cbrc.jp/alignment/software/ f... | [
"ante.turudic@gmail.com"
] | ante.turudic@gmail.com |
af1442ba5a0bbae6600d62014eb94848ae7a134b | 4a48be90338902499605a770ec38d062434ee56d | /util.py | 118dbaef27bf88839606ec55e4943240efe6675c | [
"MIT"
] | permissive | xianlinzhang/hoper | 7a36bd3cd9a906ef4c5be1fae9a9ce19001cc7b6 | b72ddd4ed215ad34502919c58265b3b284adc87e | refs/heads/master | 2023-03-23T21:12:03.897463 | 2021-03-09T11:13:39 | 2021-03-09T11:13:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | if __name__ == '__main__':
from hoper.hoper import main
main()
| [
"sttv-pc@mail.ru"
] | sttv-pc@mail.ru |
f9e6c146539d9bb75a59b25370fb89aff1d8bb0b | 49a167d942f19fc084da2da68fc3881d44cacdd7 | /kubernetes_asyncio/test/test_authorization_v1_api.py | 8547d7fdbfe206405863b2813f97d0537faa8654 | [
"Apache-2.0"
] | permissive | olitheolix/kubernetes_asyncio | fdb61323dc7fc1bade5e26e907de0fe6e0e42396 | 344426793e4e4b653bcd8e4a29c6fa4766e1fff7 | refs/heads/master | 2020-03-19T12:52:27.025399 | 2018-06-24T23:34:03 | 2018-06-24T23:34:03 | 136,546,270 | 1 | 0 | Apache-2.0 | 2018-06-24T23:52:47 | 2018-06-08T00:39:52 | Python | UTF-8 | Python | false | false | 1,504 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.10.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import u... | [
"tomasz.prus@gmail.com"
] | tomasz.prus@gmail.com |
4b630e18556f4333e9c82d6102d9eae7b76ef027 | a3597afc5aaf15723dba35d5b114f2b3e129a168 | /mars/oscar/backends/ray/tests/test_communication.py | 14a70f826c7bcf3d49b3dbaf928bf6b2128b76a4 | [
"BSD-3-Clause",
"CC0-1.0",
"ISC",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | hekaisheng/mars | 5edff06194779d6005bd768dabadd9191c812cb3 | 49ce0c1c691d405040e53b8eb8d8af9b7e87ae55 | refs/heads/master | 2023-01-10T06:24:05.532213 | 2021-12-07T08:21:56 | 2021-12-07T08:21:56 | 160,764,275 | 0 | 2 | Apache-2.0 | 2021-01-10T08:43:43 | 2018-12-07T03:12:41 | Python | UTF-8 | Python | false | false | 4,376 | py | # Copyright 1999-2021 Alibaba Group Holding 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 a... | [
"noreply@github.com"
] | hekaisheng.noreply@github.com |
d2bb9c5283f25e84031310bcb25c4b8da8f74436 | 14956dbed8ae4fba1d65b9829d9405fcf43ac698 | /School Exercises/2. NYJC A Level Computing 2019-2020/Tests and Exams/JC1/JC1 Practical Test 4 Corrections/Q1.py | 78dfe6b0c95eb94a714c25959df1cf8ba1ecc4a6 | [] | no_license | Hackin7/Programming-Crappy-Solutions | ae8bbddad92a48cf70976cec91bf66234c9b4d39 | ffa3b3c26a6a06446cc49c8ac4f35b6d30b1ee0f | refs/heads/master | 2023-03-21T01:21:00.764957 | 2022-12-28T14:22:33 | 2022-12-28T14:22:33 | 201,292,128 | 12 | 7 | null | 2023-03-05T16:05:34 | 2019-08-08T16:00:21 | Roff | UTF-8 | Python | false | false | 1,725 | py | import datetime
###Task 1.1##############
def readFile():
###Reading File##################
dataFile = open("DATA.TXT", "r")
data = dataFile.read()
dataFile.close()
values = data.split("\n")
processedValues = []
for i in range(len(values)):
###Processing each line of data... | [
"zunmun@gmail.com"
] | zunmun@gmail.com |
7ceb64a008b8a7cb4dfb06b34bbc1c6a2167572b | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part005407.py | 9ac0a6ca594ee3d35964d4faee726b18cc43105e | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,925 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
c4aa6f8fe003ed2126fb54cdee771b0be9bcaf3d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy1849.py | fe633f5202c20e939ce3bf9b7118fe9bbfcc1197 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,729 | py | # qubit number=5
# total number=64
import cirq
import qiskit
from qiskit.providers.aer import QasmSimulator
from qiskit.test.mock import FakeVigo
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
f5d9b04ad192fd2f3a620d384f9c499f001147e7 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_index_task_create_response.py | 581eb03c73d8ac4824329db976a8f2c21b9a6b98 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 720 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.indexapi.model.index_task_create_response import IndexTaskCreateResponse
class TestIndexTaskCreateResponse(unittest.TestCase):
"""Ind... | [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
c62b8adfbf5bcfb01ca5471d8ecb2282cc6305e5 | 4116790ee11de30eade92cabd5cddcb0978eb2c9 | /protwo/apptwo/migrations/0001_initial.py | cc6c6a5e399ea1da733d827fcfdee63c53973f94 | [] | no_license | Joel-hanson/djangomytutorial | 4e8aadbccea831bb8f7e4cf0de3d35e4bfeaadc0 | 93d2925ae1a8d5f5dcec03e0c85b3ff0e492d125 | refs/heads/master | 2021-08-30T10:48:42.207229 | 2017-12-17T14:43:34 | 2017-12-17T14:43:34 | 108,539,027 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-23 08:49
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"joelhanson025@gmail.com"
] | joelhanson025@gmail.com |
9c2d76358bc15dcca59bcb21ab0e7d0b3489b401 | 020eb7ca1826df843cc294590ce55ef8b2076263 | /coursework/using-try-except-statements/.guides/tests/problem2/modlib.py | 5d7e0449ddd27f60fc7904eaaa92e728742aefcb | [] | no_license | murffious/pythonclass-cornell | d95e3a4a50653f3caee462fcd6bd6a5f476c7248 | da4abfac3af0f4706c1c4afcf1ff978aa41e765c | refs/heads/master | 2023-02-06T05:27:41.199544 | 2020-03-23T17:27:36 | 2020-03-23T17:27:36 | 227,713,413 | 0 | 0 | null | 2023-02-02T05:14:41 | 2019-12-12T23:11:32 | Python | UTF-8 | Python | false | false | 10,103 | py | """
Utilities for sandboxing and manipulating modules.
The utilities in this module are typically used by graders, to import and
sandbox student submissions. That is why this module is internal, and we
have not yet generated Sphinx documentation for it.
:author: Walker M. White (wmw2)
:version: June 9, 2019
"""
imp... | [
"titan.murff@gmail.com"
] | titan.murff@gmail.com |
724814359887039fd6c9327edd11d4b6757a1357 | 928903fccc6c8cb5f7366736040d2a604a198dd9 | /求1+2+...+n.py | 82605fc0623f0ea16d4d837515103f90a77aa3f3 | [] | no_license | houhailun/algorithm_code | 6d967bd76017e5b9295e156dfeb8e79cb7b89041 | c182bf29baea866c7b2e6260ef2036a7f4da6b1c | refs/heads/master | 2021-06-13T10:56:45.247928 | 2021-03-30T02:23:15 | 2021-03-30T02:23:15 | 158,809,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
题目:求1+2+...+n
题目描述:求1+2+3+...+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)
解题思路:可以利用类的构建函数来实现
"""
class Solution:
def get_sum_1(self, n):
"""利用python的语言特性"""
if n <= 0:
return -1
return sum(list(range(n+1)))
... | [
"hailun.hou@dmall.com"
] | hailun.hou@dmall.com |
f2d5f836a03f19c3a266320da81b6703b4bf5b8a | c27c51f5c33e0431dbe7db6e18c21b249d476cfa | /OpenSource_Python_Code/horizon-master/openstack_dashboard/dashboards/project/images_and_snapshots/tests.py | 324991b7e63aed81548e45e17fbcb8d1d6981e5e | [
"Apache-2.0"
] | permissive | bopopescu/Python_Stuff | 9bef74e0db17bb5e3ba2d908ced01ee744820d80 | 9aa94a0fa5e4e802090c7b29ec88b840e304d9e5 | refs/heads/master | 2022-11-20T06:54:36.581623 | 2017-12-04T18:56:02 | 2017-12-04T18:56:02 | 282,171,169 | 0 | 0 | null | 2020-07-24T08:54:37 | 2020-07-24T08:54:36 | null | UTF-8 | Python | false | false | 15,388 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2012 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Copyright 2012 Nebula, Inc.
# Copyright 2012 OpenStack Foundation
#
# Licensed under the Apache License, Versio... | [
"thelma1944@gmail.com"
] | thelma1944@gmail.com |
0a17936003288a268951ddb51a39f9bbf7b0c4dd | c44be013445048e3a1f3eca32df11a2367821ceb | /pyOCD/target/target_MKW36Z512xxx4.py | 5640edf5342441057a611e6f56e4b92f4b63b351 | [
"Apache-2.0"
] | permissive | LGG001/pyOCD | ba0597c81cb87998efd901642365a3d660b28b9a | a3c04629e7de7484fbcb23c1aaa74b66580a3cfe | refs/heads/master | 2020-03-27T13:26:00.220527 | 2018-08-27T21:17:37 | 2018-08-27T21:17:37 | 146,609,358 | 0 | 1 | Apache-2.0 | 2018-08-29T14:07:23 | 2018-08-29T14:07:22 | null | UTF-8 | Python | false | false | 13,395 | py | """
mbed CMSIS-DAP debugger
Copyright (c) 2017-2018 ARM Limited
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 ... | [
"flit@me.com"
] | flit@me.com |
1d54b716c62d88c01aae2d1d90bcc074605d867b | a83dc7ccce7962addbb7a7d3f45eea1dac000a21 | /08day/2.循环.py | 4078d915ef0d773ac29ea4141b874583dafa6fc7 | [] | no_license | liruixiong/1808 | 879bb90587db0a7073e1a9b5b6c98e7d754feaf9 | 45f67f0ea8b25a7a68efd07272f6f361eae625c3 | refs/heads/master | 2020-03-25T19:34:37.676624 | 2018-08-22T01:49:04 | 2018-08-22T01:49:04 | 144,089,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import random
i = 0
while i < 3:
player = int(input("请输入 1.石头 2.剪刀 3.布 :"))
computer = random.randint (1,3)
if ((player == 1 and computer ==2) or (player == 2 and computer ==3) or (player == 3 and computer ==1)):
print("你赢了!")
elif player == computer:
print("平局")
else:
print("你输了!")
i+=1
| [
"1356703763@qq.com"
] | 1356703763@qq.com |
e1f624220ab614d8c054502ec9295908a68897bc | 19d6bddc562b8cc3c7a6e67465f7601c74979e05 | /venv/bin/f2py | d078f02b1a89263b86e10a85e3b0fef3617a265b | [] | no_license | SuReLI/llrl | 3bca1d1c755e5c59a5d242c18df997ed17f546d0 | 5f581cdded3cdecf69a8af76dc624494d82a4034 | refs/heads/master | 2023-01-08T04:04:28.358563 | 2020-11-06T10:27:33 | 2020-11-06T10:27:33 | 169,303,041 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 424 | #!/home/e.lecarpentier/Documents/git/llrl/llrl-code/myvenv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'numpy==1.16.4','console_scripts','f2py'
__requires__ = 'numpy==1.16.4'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"erwan.lc2@gmail.com"
] | erwan.lc2@gmail.com | |
c937a7bfa16634700e8397f0298f3d3564ee51c3 | bf0d0b123c1a42a1db5b174ceac9d10d8f63d923 | /基础练习/15.py | 7ac3a42211bf20987350c14940afd057b24120f4 | [] | no_license | 1751660300/lanqiaobei | 30fd047a788288b85499f4ee754d60333cb5bb51 | 4f83f2cb5a15e0af3c220aae62a821b7fbfd2e1f | refs/heads/master | 2022-12-31T13:41:41.637481 | 2020-10-16T13:30:38 | 2020-10-16T13:30:38 | 304,635,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | # -*- coding:utf-8 -*-
n = int(input())
m = int(input())
print(m+n)
| [
"1751660300@qq.com"
] | 1751660300@qq.com |
56af325d2c65efcb48b43e7fcea574c1b323d694 | f303abd351b5502138a8812f65e4ba7701faf485 | /Seq2Seq/seq2seq_basic.py | 0b1d3eef80c700942205d17405f6472cd21a3446 | [] | no_license | markWJJ/Open_domain_QA | 55b8c992de615fc00dbd8c264fd6d2f50df77df8 | a06bb9511f832d6f30a67b4a420c4f2de0d7b14d | refs/heads/master | 2021-09-06T01:16:38.964566 | 2018-02-01T08:16:59 | 2018-02-01T08:16:59 | 114,727,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,366 | py | '''
seq2seq 模型基类
'''
from abc import ABCMeta,abstractmethod
class Seq2SeqBasic(metaclass=ABCMeta):
def __init__(self):
pass
@abstractmethod
def __init_ops__(self):
'''
设定变量和占位输入
:return:
'''
pass
@abstractmethod
def __encoder__(self,encoder_input... | [
"363451547@qq.com"
] | 363451547@qq.com |
1f4cafbbbca34876a67079b2256872b296ab0046 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03408/s485664623.py | eade317a074037aa979b5f6d446b2f3b17844cfe | [] | 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 | 216 | py | n = int(input())
s = [input().split() for i in range(n)]
m = int(input())
t = [input().split() for i in range(m)]
ans = 0
for i in range(n):
temp = s.count(s[i]) - t.count(s[i])
ans = max(ans,temp)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
80ac5ba8c1c283f99fb7cfbda1289563fc2c1ba6 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/appcenter_sdk/models/DestinationId.py | 7ac98d89430994d72f3abbb7adca7d83d2c981ac | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 4,598 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
import pprint
import re # noqa: F401
import six
class DestinationId(... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
3b8e0ae5dc1757030a2bf2ea57512203c9265132 | 8126d1bc2afe0925a24fce039d0f02a3bd7acbae | /tests/test_to_cpptraj_mask.py | 1515f01bc21383bb16d830c58ee5c96db82ee4b2 | [
"BSD-2-Clause"
] | permissive | rafwiewiora/pytraj | 54fb6fe07a754f65b865dd161f64c7af15fc3926 | 91a019ea406081ccf0043170cc64c48b4a5ea04a | refs/heads/master | 2021-01-20T17:33:05.974254 | 2016-03-11T21:25:32 | 2016-03-11T21:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,019 | py | from __future__ import print_function
import unittest
import pytraj as pt
from pytraj.utils import eq, aa_eq
class Test(unittest.TestCase):
def test_0(self):
traj = pt.iterload("./data/Tc5b.x", "./data/Tc5b.top")
# rmsd
flist = [pt.rmsd,
pt.radgyr,
pt.mol... | [
"hainm.comp@gmail.com"
] | hainm.comp@gmail.com |
607f2249be8d72a980805c7fe153d84afe27a7f9 | 60a7e7dc2ba82c5c74352dc8466a9becba068e2e | /ecoenv/bin/markdown_py | 8d402534a16d1518c9f6347c857dfa8da6017b5b | [] | no_license | TestTask12/SKD-Django- | d7b445d8afd32fe5aa877c31451b7f2d932d2fe7 | 47bf79071d2781d129794e9b47d396cfd9162d00 | refs/heads/master | 2023-07-06T10:08:04.156998 | 2021-08-02T12:26:04 | 2021-08-02T12:26:04 | 387,738,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/ts/Desktop/test_task12/SKD-Django-/ecoenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from markdown.__main__ import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"sumankumariideal@gmail.com"
] | sumankumariideal@gmail.com | |
87ebb716af3e07c1a3e614f73f3aaead45740e05 | 9fc690fdb5df8089b5914c157ba22d2ccee8630d | /video_serve.py | 5829f2c55c98a5fcba8e143781c236256ecec232 | [] | no_license | philzook58/leftman | a1849d7d43ebf564dd4692705c5bd593d75b3625 | daad298c8ff44ad3bef4eaccdce910ae225b479c | refs/heads/master | 2020-07-01T21:52:06.510201 | 2019-05-27T18:06:47 | 2019-05-27T18:06:47 | 74,254,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | import socket
import time
import picamera
# connect with
#vlc tcp/h264://my_pi_address:8000/
camera = picamera.PiCamera()
camera.resolution = (640, 480)
camera.framerate = 24
server_socket = socket.socket()
server_socket.bind(('0.0.0.0', 8000))
server_socket.listen(0)
# Accept a single connection and make a file-li... | [
"philip@FartMachine7.local"
] | philip@FartMachine7.local |
a18139c825186cf24e9dde504c733837e7f775d5 | 7a20dac7b15879b9453150b1a1026e8760bcd817 | /Curso/Challenges/URI/1145LogicalSequence2.py | 61152045781e9eec8beedc59625332ea9b4331ed | [
"MIT"
] | permissive | DavidBitner/Aprendizado-Python | 7afbe94c48c210ddf1ab6ae21109a8475e11bdbc | e1dcf18f9473c697fc2302f34a2d3e025ca6c969 | refs/heads/master | 2023-01-02T13:24:38.987257 | 2020-10-26T19:31:22 | 2020-10-26T19:31:22 | 283,448,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | A, B = input().split(" ")
x, y = int(A), int(B)
base = 1
for i in range(1, y + 1):
print(f"{i}", end="")
if base != x:
print(" ", end="")
if base == x:
print()
base = 0
base += 1
| [
"david-bitner@hotmail.com"
] | david-bitner@hotmail.com |
aeaf5dbcca0b355cc979d9fa1f22aae7899baa0e | 6caab8d886e8bd302d1994ff663cf5ccb5e11522 | /MyNotes_01/Step01/4-CORE/day04_17/assignment_3_edited.py | de9003a6b655857785fb2802de51d3862c151101 | [] | no_license | ZimingGuo/MyNotes01 | 7698941223c79ee754b17296b9984b731858b238 | 55e6681da1a9faf9c0ec618ed60f5da9ecc6beb6 | refs/heads/master | 2022-07-30T21:30:32.100042 | 2020-05-19T16:59:09 | 2020-05-19T16:59:09 | 265,254,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,812 | py | # author: Ziming Guo
# time: 2020/2/29
"""
作业:
1. 定义敌人类(姓名,攻击力,防御力,血量)
创建敌人列表,使用list_helper实现下列功能.
(1) 查找姓名是"灭霸"的敌人
(2) 查找攻击力大于10的所有敌人
(3) 查找活的敌人数量
2. 在list_helper中增加判断是否存在某个对象的方法.返回值:true/false
案例1:判断敌人列表中是否存在"成昆"
案例2:判断敌人列表中是否攻击力小于5或者防御力小于10的敌人.
步骤:
实现每个需求/单独封装变化/定义不变的函数("继承"/"多态")
将不变的... | [
"guoziming99999@icloud.com"
] | guoziming99999@icloud.com |
21a23293eed64add2500263d039a31afdc6b1f93 | 7f4fb112bc9ab2b90f5f2248f43285ce9ac2e0a0 | /src/igem/neutronics/helium/container/borosilicate-glass-backfill/5cm/0wt/plot_all.in.one_cask.thickness_dose.rate_t4045_surface.py | cdeb273c342e2c60890a625253aa72f939d11115 | [] | no_license | TheDoctorRAB/plot | dd3b5134c91c8fa7032fcc077c5427b26a80e49d | ed6746d511222c03e79f93548fe3ecd4286bf7b1 | refs/heads/master | 2021-07-11T10:21:19.347531 | 2020-07-16T17:13:15 | 2020-07-16T17:13:15 | 20,462,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,319 | py | ########################################################################
# R.A.Borrelli
# @TheDoctorRAB
# rev.11.March.2015
########################################################################
#
# Plot routine
# All in one file, with no separate control input, lib files
# Plot data is contained in a separate data f... | [
"borrelli@localhost.localdomain"
] | borrelli@localhost.localdomain |
08154b1ed29c9670ad990ce6627ca5d189c1c905 | 5dd47abf7061201d9378e73e51f08fbb314ba2fd | /daq_server/daq/interface/contrib/nb_i2c/nb_i2c.py | 47f03b33697ebd1ef3d101b78a8ace9fdc963d06 | [
"Unlicense"
] | permissive | NOAA-PMEL/envDataSystem | 4d264ae5209015e4faee648f37608d68a4461d0a | 4db4a3569d2329658799a3eef06ce36dd5c0597d | refs/heads/master | 2023-02-23T22:33:14.334737 | 2021-07-22T01:09:16 | 2021-07-22T01:09:16 | 191,809,007 | 1 | 0 | Unlicense | 2023-02-08T00:45:54 | 2019-06-13T17:50:03 | Python | UTF-8 | Python | false | false | 13,071 | py | import asyncio
from daq.interface.interface import Interface, InterfaceFactory
from daq.interface.ifdevice import IFDevice
# from shared.data.message import Message
# from shared.data.status import Status
# import json
import binascii
from struct import unpack
from struct import error as structerror
class NB_I2C_Inte... | [
"derek.coffman@noaa.gov"
] | derek.coffman@noaa.gov |
01c97cdde29a9d83d72e53abdba99c484646546d | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/phl_529/sdB_PHL_529_coadd.py | 8989013a033260f9857cedf37493f9bd8a0db732 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[351.786542,-4.409944], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_PHL_529/sdB_PHL_529_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_PHL_529... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
6f35edb7d455d9edc0ef844296025b8f8c6edd00 | 68c182cbb167ec6870ec1a301958e71ce8f9bcbb | /test/functional/mempool_package_onemore.py | 7f917a2d2d628cf2b2c114b404f212dc472ccc3f | [
"MIT"
] | permissive | megamcloud/umkoin | de10e9bbe0afbdc7210db56e41f823a0805283be | 3e0d7a48f459ff09f0b9e02c3ed30563670009c8 | refs/heads/master | 2022-05-30T00:18:10.962521 | 2020-04-26T08:21:01 | 2020-04-26T08:21:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,979 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test descendant package tracking carve-out allowing one final transaction in
an otherwise-full packa... | [
"vmta@yahoo.com"
] | vmta@yahoo.com |
0d07f6549fcf29e9c80b04ced3408b3bc73c4bd7 | a97c7f1370d18523b3f434bc40f451e2c9c34fa3 | /kivymd_extensions/akivymd/uix/charts.py | 3b3d2c9d3736173e2b5b6ad55de9fd48937d0b98 | [
"MIT"
] | permissive | dark-matter08/akivymd | 8509e5429ec5fb8dc6ba7ec6374666339952e66b | a773900cf07297a14e2227bbf12cd4bcf1a3b279 | refs/heads/main | 2023-08-14T19:06:07.089021 | 2021-09-15T08:24:25 | 2021-09-15T08:24:25 | 410,039,490 | 1 | 0 | MIT | 2021-09-24T16:56:55 | 2021-09-24T16:56:54 | null | UTF-8 | Python | false | false | 15,632 | py | from kivy.animation import Animation
from kivy.clock import Clock
from kivy.graphics import Color, Ellipse
from kivy.lang.builder import Builder
from kivy.properties import (
BooleanProperty,
ColorProperty,
ListProperty,
NumericProperty,
ObjectProperty,
OptionProperty,
StringProperty,
)
from... | [
"quitegreensky@gmail.com"
] | quitegreensky@gmail.com |
405a70f00429f703edd593a68ca9be8a3462fe78 | 402537ee248b91a127772f7ce00a4b2f93fe1d06 | /chapter8/src/tests/unit/test_service.py | f288af8d7d733264aa920d341085242d1bb9e4a2 | [] | no_license | babjo/architecture-patterns-with-python | 56ac7b1801cf658fc912ffa7b22398d015d8ee8f | 705a68b34b2c11e2eb18b11444819f964ab6fce9 | refs/heads/master | 2023-07-14T23:01:51.246828 | 2021-08-25T13:25:06 | 2021-08-25T13:25:06 | 394,334,509 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | from unittest import mock
import pytest
from chapter8.src.src.allocation.adapters import repository
from chapter8.src.src.allocation.service_layer import services, unit_of_work
class FakeRepository(repository.AbstractRepository):
def __init__(self, products):
super().__init__()
self._products = se... | [
"kd980311@naver.com"
] | kd980311@naver.com |
88e653aa0cdd85d77798ccfcb9f9ae94b77e5dbd | 955505183accdc802e65ef6c03d5fcb7ac574a53 | /srm/Single Round Match 648/KitayutaMart2.py | 6602b55138759fc45245f32bb37a7f836d4eecf2 | [] | no_license | parthpankajtiwary/topcoder | db5d290fa198876fa5994d7d7af1b6716cc3519a | 71d6809a369f699d568b7c56311c451ce5e2a30f | refs/heads/master | 2021-01-23T13:37:17.911535 | 2015-02-05T17:46:40 | 2015-02-05T17:46:40 | 29,402,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,940 | py | # -*- coding: utf-8 -*-
import math,string,itertools,fractions,heapq,collections,re,array,bisect
class KitayutaMart2:
def numBought(self, K, T):
return int(math.log((T+K)/K, 2))
# CUT begin
# TEST CODE FOR PYTHON {{{
import sys, time, math
def tc_equal(expected, received):
try:
_t = type(expe... | [
"parthpankajtiwary@gmail.com"
] | parthpankajtiwary@gmail.com |
45d2afda23e174b30cb2c61ce8823397a7a50b73 | d05b336beab6cfe0c650267e8cf729d4d40bc84a | /site/_build/jupyter_execute/assignments/assignment1/01starter.py | d2012659c08245ffe74e87865d5c30bf905e2612 | [
"MIT"
] | permissive | rpi-techfundamentals/website_fall_2020_qm | e1eb61e6f41f890fa72d4c25dafb07c237eea61d | 517b24801286140af5f1e10ee9099cf5d0a28b7c | refs/heads/master | 2022-12-30T21:02:06.602565 | 2020-10-15T20:18:43 | 2020-10-15T20:18:43 | 288,610,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,825 | py | # Assignment 4
##  Before you start working on this assignment please click File -> Save a Copy in Drive.
Before you turn this problem in, make sure everything runs as expected. First, restart the kernel (in the menubar, select... | [
"jkuruzovich@gmail.com"
] | jkuruzovich@gmail.com |
79277422cc59c0cd77785da39af4f61d8a2b3660 | 311ce6fbe1b264f2b656ba235371e756695dca53 | /plot5/pinfo.py | b3bcf4417a18aba5612d8d51684ca067f6ce2efa | [
"MIT"
] | permissive | parkermac/LiveOcean | 94bc9cb9fba1bdc2e206488e0e2afadfafeabb34 | 4bd2776cf95780a7965a18addac3c5e395703ce5 | refs/heads/master | 2022-11-30T10:21:50.568014 | 2022-11-21T16:32:55 | 2022-11-21T16:32:55 | 35,834,637 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,556 | py | """"
Dictionaries of defaults to be used for plotting.
"""
from cmocean import cm
cmap_dict = {'salt': cm.haline,
'temp': 'rainbow',# cm.thermal,
'NO3': cm.turbid,
'phytoplankton': 'Spectral_r',
'zooplankton': 'Spectral_r',
'oxygen': cm.oxy,
... | [
"p.maccready@gmail.com"
] | p.maccready@gmail.com |
23a0f8118a103b86b0ed5fb90d6a737858ac75b6 | 081e220a2b2d407b1f8a31b6c96a2fcf85722e8a | /L3/code/read_file.py | fb1e7b85e67aa82f2db81d3fdf294867b72021e8 | [] | no_license | king-menin/AaDSaP3_fZtH | 6b90e223482afd75d999e23b126134922c07ebd3 | 51118a2b8c4de4986c1fca56dd2d4e601635dbea | refs/heads/master | 2022-11-20T20:54:14.191890 | 2020-07-20T18:15:36 | 2020-07-20T18:15:36 | 276,994,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | f = open('L3/text.txt')
print(f.read(1))
print(f.read())
| [
"king_menin@gmail.com"
] | king_menin@gmail.com |
454254c2e339e01c0a4b0b5bc67770b528a81e37 | dfcb65de02953afaac24cc926ee32fcdede1ac21 | /src/pyrin/utils/number.py | 3f47f0d67bf3395dc29dda42a3e9f90ba9d366a5 | [
"BSD-3-Clause"
] | permissive | mononobi/pyrin | 031d0c38da945b76b07ea100554ffc7f8081b05e | 9d4776498225de4f3d16a4600b5b19212abe8562 | refs/heads/master | 2023-08-31T03:56:44.700142 | 2023-08-20T22:20:06 | 2023-08-20T22:20:06 | 185,481,041 | 20 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | # -*- coding: utf-8 -*-
"""
utils number module.
"""
from decimal import Decimal
def coerce_to_int(value):
"""
gets the integer equivalent of given decimal or float value.
if the real value does not have an int equivalent, it returns the same input.
for example:
coerce_to_int(1.2) -> 1.2
c... | [
"mohamadnobakht@gmail.com"
] | mohamadnobakht@gmail.com |
4448a9ee690b74766418f6974d586c4cd20f96fd | e7bce99964589be242a0feec696545543324573b | /idaray.py | 280e4091a3b6dfc518115efa4b9fa9131641d180 | [] | no_license | fengjixuchui/IDARay-Plugin | d55f9c65dc9a9984bfa628844d8041a475e5fce2 | e471852be4c54b222293fdb64d06ad3cdcedd5cf | refs/heads/master | 2020-07-06T03:55:32.713138 | 2018-11-16T11:25:21 | 2018-11-16T11:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,758 | py | '''
IDARay - A simple IDA plugin that matches the database against multiple YARA files.
Author : Souhail Hammou
Plugin tested under IDA Pro 6.8
Feel free to copy or edit the plugin.
'''
from idc import *
from idaapi import *
import yara
import os
class YARAScan() :
def __init__(self, directory) :
sel... | [
"noreply@github.com"
] | fengjixuchui.noreply@github.com |
5d41de655129c3b4843e9f5a376c291bef330393 | ac602af60908dca8a1f07db0710dee8ada3028a3 | /AML702_Prog_Assgn/guisetup.py | 3023ac992838ac7d91f17a711daa51fce2537915 | [
"MIT"
] | permissive | AjinkyaDahale/AML702_Prog_Assgn | aa21968d8ce9deb9cf102c592ceb1b37ce3c7abf | 0f1e44631ff0ff6e9d3ec4786af06ddf3b6af4c5 | refs/heads/master | 2021-01-19T09:44:21.310966 | 2015-05-09T14:54:38 | 2015-05-09T14:54:38 | 35,199,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,910 | py | #!/usr/bin/python3
# Created by Ajinkya Dahale for AML702 Sem. II 2014-15.
from gi.repository import Gtk
from matplotlib.figure import Figure
from numpy import sin, cos, pi, linspace, log
import numpy as np
#Possibly this rendering backend is broken currently
#from matplotlib.backends.backend_gtk3agg import FigureCa... | [
"="
] | = |
86156051f5c1dc08821f47c86994358ddc24bea3 | cbd981272b3a786deef5f40a7ea0fa230d9fbbb2 | /24-lobby-layout/solution24.py | d97e04d29e25af3689385478ca0e2fd43d2f25d5 | [
"MIT"
] | permissive | johntelforduk/advent-of-code-2020 | d99110dd5059cccad25696025fcf8d1bae5da10b | 138df3a7b12e418f371f641fed02e57a98a7392e | refs/heads/main | 2023-02-09T07:49:22.743462 | 2021-01-01T14:04:14 | 2021-01-01T14:04:14 | 309,707,598 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,255 | py | # Solution to day 24 of AOC 2020, Lobby Layout.
# https://adventofcode.com/2020/day/24
import sys
import pygame
import imageio # For making animated GIFs.
VERBOSE = ('-v' in sys.argv)
class Floor:
def __init__(self, zoom: int):
# Define the colors we will use in RGB format.
... | [
"jtelford1@gmail.com"
] | jtelford1@gmail.com |
2201b4aa20d2b9bd0b8f629b65d43851bc91cc74 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/49/usersdata/2/17354/submittedfiles/pico.py | 14124ce6e511837c18437ec7665175a0cacbe5a8 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,482 | py | # -*- coding: utf-8 -*-
from __future__ import division
'''
Dizemos que uma sequência com pelo menos 3 números inteiros e sem elementos consecutivos iguais é um pico, se tem um pedaço inicial crescente (estritamente)
depois fica decrescente (estritamente) até o final. Escreva um programa que verifique se um conjunto... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b50598f3bd99d7bbebf65cef9c1f8758fce77af6 | 16047f965a69893a8cd2c8d18fbd7b9c86a07eb3 | /src/networkx/readwrite/json_graph/tests/test_tree.py | c69a31439c85b23dadc3b6ded0b4d01fe4213904 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | guctum/aws-kube-codesuite | 9ce2cc02fe5fa15c2e175fb697138014fb162f1e | 5d62beaadc13bec745ac7d2fc18f07805e91cef3 | refs/heads/master | 2021-05-24T10:08:00.651840 | 2020-04-23T20:21:46 | 2020-04-23T20:21:46 | 253,511,083 | 0 | 0 | Apache-2.0 | 2020-04-06T13:48:14 | 2020-04-06T13:48:13 | null | UTF-8 | Python | false | false | 1,047 | py | import json
from nose.tools import assert_equal, assert_raises, assert_not_equal, assert_true, raises
import networkx as nx
from networkx.readwrite.json_graph import *
class TestTree:
def test_graph(self):
G=nx.DiGraph()
G.add_nodes_from([1,2,3],color='red')
G.add_edge(1,2,foo=7)
G... | [
"olari@784f435df7a4.ant.amazon.com"
] | olari@784f435df7a4.ant.amazon.com |
d52b6378863402648acce6ce2eb2a6f75f1b8cda | 174ad2b84041ee9dface6f822737cd30e39aa04d | /PythonHomeWork(Essential)/PythonHomeWork_8/Task2/reader.py | 61faba502ade29ca7aeef66600c3f71fcbf154e1 | [] | no_license | duk1edev/projects | 88f26830ac16f0fc889cace8ffab756788ee0b24 | 74bdea8b56bee9e1c0d8a78405ad0ca7bad38543 | refs/heads/master | 2020-06-24T17:15:17.891008 | 2019-11-29T17:23:54 | 2019-11-29T17:23:54 | 199,027,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import pickle
import config
def count_sum(filename):
sum_ = 0
with open(filename, 'rb') as file:
try:
while True:
sum_ += pickle.load(file)
except EOFError:
pass
return sum_
if __name__ == '__main__':
sum_ = count_sum(config.FILENAME)
p... | [
"duk1e.ptc.ua@yandex.ru"
] | duk1e.ptc.ua@yandex.ru |
6b1239ac576f4d8b1f319023ac35b21dda808cbe | 213682d70d45739b8a4fd7c0fcf05437a0704c4d | /pipeline/ve/lib/python2.7/site-packages/radical/pilot/agent/rm/loadleveler.py | 516d52d0098a73609a4a1840278531d70ef51817 | [] | no_license | ATLAS-Titan/misc | d272adfe13fcbbea1562ca98c718bc1465032421 | 0a20d158d0d9a95ef72b6a8d0bccbb68193e98c0 | refs/heads/master | 2020-12-24T06:31:10.696708 | 2017-07-18T14:55:41 | 2017-07-18T14:55:41 | 73,486,659 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 24,327 | py |
__copyright__ = "Copyright 2016, http://radical.rutgers.edu"
__license__ = "MIT"
import os
import copy
import time
import subprocess
from ... import utils as rpu
from ... import states as rps
from ... import constants as rpc
from base import LRMS
# =======================================================... | [
"alessio.angius.research@gmail.com"
] | alessio.angius.research@gmail.com |
745c87343a42c2dfdd38d42d2c7d6d58c6ae13a6 | 5e8b38fd33e03673f03dbc14689df0f23e031cb2 | /web/pgadmin/browser/tests/test_ldap_with_mocking.py | b73521249b23909545b8074b758f4ea4b1baadd6 | [
"PostgreSQL"
] | permissive | akibrhast/pgadmin4 | fb32ec7837f616fd84ead921b760e8cf0e04ddc6 | eb971a03200ffb26279f8986a2023cc09b72815d | refs/heads/master | 2022-11-30T00:55:57.162411 | 2020-06-08T06:56:12 | 2020-06-08T06:56:12 | 270,741,072 | 0 | 0 | NOASSERTION | 2020-08-12T23:46:34 | 2020-06-08T16:26:58 | null | UTF-8 | Python | false | false | 2,739 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2020, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import config as ... | [
"akshay.joshi@enterprisedb.com"
] | akshay.joshi@enterprisedb.com |
c4bee86d9b327775c9fa5162ef90dd7cec64935c | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/2d85cb3dedda2e82cfad9819db4430ed61ca1699-<merge_syslog_global>-fix.py | d17d63e3858633cb8b985b45926cc2ed79ab9640 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | def merge_syslog_global(self):
'config global'
conf_str = CE_NC_MERGE_CENTER_GLOBAL_INFO_HEADER
if self.info_center_enable:
conf_str += ('<icEnable>%s</icEnable>' % self.info_center_enable)
if self.packet_priority:
if (self.state == 'present'):
packet_priority = self.packet_p... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
ef2b1fea5cc653ca65cea377872155acab870305 | dfe40e7ac7e69db8c6ccead1a2d65a58bd956909 | /2 - Estructuras de datos/06Diccionarios_iteracion.py | 84c0fd44fa33d83a83fc69cf41d87fef3d3657ed | [] | no_license | 1gn1z/Curso_Python_U | 1a9a9e1e82313f803f86da792ea525b6ee7a2ccc | d5d6d30dcfe81ebb941318e187a974d0c52d254b | refs/heads/main | 2023-03-20T03:49:14.862818 | 2021-03-16T01:49:26 | 2021-03-16T01:49:26 | 348,177,225 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,374 | py | Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> # D I C C I O N A R I O S
>>> # I T E R A C I O N
>>>
>>> # Iteracion se refiere a recorrer los elementos del diccionario.
>>>
>>> # RECORDA... | [
"noreply@github.com"
] | 1gn1z.noreply@github.com |
07bf0297fa41bc828c7815a3112ad4694c5a34e3 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/numpy/2018/4/fromnumeric.py | 75bcedd81c32d10219aece42f0a02705bfc0649a | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 103,075 | py | """Module containing non-deprecated functions borrowed from Numeric.
"""
from __future__ import division, absolute_import, print_function
import types
import warnings
import numpy as np
from .. import VisibleDeprecationWarning
from . import multiarray as mu
from . import umath as um
from . import numerictypes as nt
... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
595a311f63dd6c0c50aa019109380ff73a35aedb | 3e7a8c5630de986a4d02011b1bd368c041f3f477 | /作图/判断某个经纬度是否在某个城市.py | 161602f9fd1606c024a137744551204b918ef99a | [] | no_license | gswyhq/hello-world | b9ef715f80d2b39c8efaa1aa2eb18a6257e26218 | b1ab053a05e1f8c63b8b04d6904a3cdca450bd9f | refs/heads/master | 2023-05-26T13:15:36.788620 | 2023-05-19T13:38:50 | 2023-05-19T13:38:50 | 158,821,148 | 16 | 6 | null | 2021-03-19T02:59:48 | 2018-11-23T11:04:43 | Python | UTF-8 | Python | false | false | 1,292 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 第一步,获取城市的行政区域边界对应的经纬度坐标
# 第二步,用matplotlib.path,确定某个点的坐标是否在某个多边形范围内
# 深圳 113.7964, 22.7856
# 广州 113.5107, 23.2196
import json
# 数据来源:https://github.com/longwosion/geojson-map-china.git
with open(r'D:\Users\gswyhq\github_project\geojson-map-china\geometryProvince\44.j... | [
"gswyhq@126.com"
] | gswyhq@126.com |
5d32a256f09a8d95cbcd8b1aa12d2909609ff580 | 5ddc0cc9a788cc51cebe5407d1ea3a16203835ca | /sunshine_conversations_client/model/conversation_typing_event.py | 515a094c9678031c4ba2820d78fa19116b43d5ae | [
"Apache-2.0"
] | permissive | pizanao/sunshine-conversations-python | 117f18d48ecd772114853a1b1551883f7f2d1d76 | 28c710c36344d50ffa26c953c6e9ee6815f2b211 | refs/heads/master | 2023-08-13T22:09:35.470568 | 2021-09-28T17:18:04 | 2021-09-28T17:18:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,296 | py | # coding: utf-8
"""
Sunshine Conversations API
The version of the OpenAPI document: 9.4.5
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from sunshine_conversations_client.configuration import Configuration
from sunshine_conversations_client.undefine... | [
"zendesk-ops-ci@zendesk.com"
] | zendesk-ops-ci@zendesk.com |
6293f41ff906051f8d42b29db2bb519afb3398a7 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/hz_32/sdB_HZ_32_lc.py | 142fb92c10573daf5c95d037807a4fcb278758b6 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[192.756542,37.181108], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_HZ_32 /sdB_HZ_32_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__ == "__mai... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
410444b402e84239689e1ffab631c152e8167385 | bd0cabc8f76d6861e6cc13c72eb178d3e9b697b7 | /adwords_python3_examples_10.1.0/v201708/shopping/add_shopping_campaign_for_showcase_ads.py | 34f36f2e6f7e2b028ef156ac77cded560b6d59a9 | [
"MIT"
] | permissive | xyla-io/hazel | 4d8334766b6176bda21c99fefd4cfb64f05ffc5d | 260ce906761d8b808c21ca61b44cc71ca3329e8c | refs/heads/main | 2022-12-27T13:57:07.421062 | 2020-10-14T19:01:16 | 2020-10-14T19:01:16 | 304,109,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,248 | py | #!/usr/bin/env python
#
# Copyright 2017 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 requir... | [
"gregory@incipia.co"
] | gregory@incipia.co |
8164742a4dbb58422b43ab78f603d20d35e218fb | b9a13721faff87b17f601572825ce959d209eb84 | /mysite/tests.py | 9f6c9cacd6d702563d2dddbf802c7947bdffe2d3 | [] | no_license | GoodnessEzeokafor/unijos_project | 2240eeb858bc1a8497056b48c4efd26a135b8e63 | 34b7ef7aab45f2bc4c2d2a150d006e190d44359e | refs/heads/master | 2021-06-11T13:55:53.017144 | 2019-05-25T21:05:20 | 2019-05-25T21:05:20 | 185,005,319 | 1 | 4 | null | 2021-06-01T23:54:10 | 2019-05-05T08:51:28 | Python | UTF-8 | Python | false | false | 331 | py | from django.test import (
SimpleTestCase,
Client,
TestCase
)
class HomeViewTest(SimpleTestCase):
def test_home(self):
c = Client()
resp = c.get('')
self.assertEqual(resp.status_code, 302)
self.assertEqual(resp.url, '/accounts/login')
self.assertTemplateUsed('h... | [
"gootech442@gmail.com"
] | gootech442@gmail.com |
fbdc8b23c5033fcc504d90b2711c0f85b1840ce5 | c83e356d265a1d294733885c373d0a4c258c2d5e | /mayan/apps/common/tests/mixins.py | eab890b6e91e7217a652dce830b6316439fe6067 | [
"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 | 5,544 | py | from ..classes import ModelCopy
class CommonAPITestMixin:
def _request_content_type_list_api_view(self):
return self.get(viewname='rest_api:content-type-list')
class CommonViewTestMixin:
def _request_about_view(self):
return self.get(viewname='common:about_view')
class ObjectC... | [
"79801878+Meng87@users.noreply.github.com"
] | 79801878+Meng87@users.noreply.github.com |
0ffdd3ad07eb90c5bb29d8a02d7d7bd72fc805be | 5c629dd9ac7c8fac799bc2074fb264f93c186c56 | /cli/fedora-san-set | 94f98423242c5393b732a2357fe2f1da1952df0a | [] | no_license | weikunzz/test_cases | cd59ebeb11d17dd2c4c1931255e2867776f7ae5a | aa459e9d77b87fbbcb0552e340785b8caffea6ce | refs/heads/master | 2023-04-03T11:01:45.464530 | 2022-09-10T13:20:16 | 2022-09-10T13:20:16 | 92,358,277 | 0 | 0 | null | 2023-03-31T14:31:09 | 2017-05-25T02:51:53 | Python | UTF-8 | Python | false | false | 3,847 | #!/usr/bin/python
# coding:utf-8
# -*- copyright -*-
import getopt
import sys
import os
import re
def error(error_number):
if 610 == error_number:
print "Error(610): Invalid input!"
elif 902 == error_number:
print "Error(902): Name of the target. Only lowercase letters, numbers and '.' ':' '-... | [
"root@localhost.localdomain"
] | root@localhost.localdomain | |
073e084c58c89f9732b3f652bff63f60a552a35f | 10fddce056973c339b1d939110ca2b29591e77f7 | /wc_utils/quilt.py | 3d2c5f66a7754d20eb00ef26f98c26208704cfae | [
"MIT"
] | permissive | KarrLab/wc_utils | 4ed3bdfa558171ab32293a452f9e6e02b3fc16f1 | a4c0e2e8b9bd88356729e38faf5c0d09d61ff921 | refs/heads/master | 2022-05-01T06:17:54.910791 | 2020-09-28T22:38:30 | 2020-09-28T22:38:30 | 69,289,809 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,016 | py | """ High-level interface for the Quilt data revisioning system
:Author: Jonathan Karr <jonrkarr@gmail.com>
:Date: 2019-10-08
:Copyright: 2018-2019, Karr Lab
:License: MIT
"""
from wc_utils.config import get_config
import boto3
import datetime
import json
import os
import requests
import quilt3
class QuiltManager(ob... | [
"jonrkarr@gmail.com"
] | jonrkarr@gmail.com |
26fa594d421ea435319da4199596ad347c31fe8c | 31077368f96736766298be4f242ac85f65068c18 | /config/settings.py | 206f3fd0033b38678649ee75fb86e68f018ff396 | [] | no_license | eyeduh/socialNetworkAPI | ab369456eef1219318bf9f09560f6bb3808944c3 | 4b428cd904ad9837f4c0656806c95fbd22e9e9cf | refs/heads/master | 2023-07-18T21:26:49.135125 | 2021-09-16T06:11:12 | 2021-09-16T06:11:12 | 406,844,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,652 | py | """
Django settings for socialNetworkAPI project.
Generated by 'django-admin startproject' using Django 3.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
fro... | [
"ida@Aidas-MacBook-Pro.local"
] | ida@Aidas-MacBook-Pro.local |
1750fe038f3251de131dcec0cd72cb7df9d9cb98 | 6630694f401f6f475dd81bb01ff9368db844ccff | /.dev_scripts/generate_readme.py | 27a14e407c24b3d33cfd336d1f52f6d2ef28e13b | [
"Apache-2.0"
] | permissive | open-mmlab/mmpretrain | 98a4d6b3bb747efc3d50decebf84fc3ffa41076a | d2ccc44a2c8e5d49bb26187aff42f2abc90aee28 | refs/heads/main | 2023-08-30T19:11:24.771498 | 2023-08-23T02:45:18 | 2023-08-23T02:45:18 | 278,415,292 | 652 | 186 | Apache-2.0 | 2023-09-08T08:01:40 | 2020-07-09T16:25:04 | Python | UTF-8 | Python | false | false | 13,647 | py | # flake8: noqa
import argparse
import re
import warnings
from pathlib import Path
from modelindex.load_model_index import load
from modelindex.models.ModelIndex import ModelIndex
from tabulate import tabulate
MMPT_ROOT = Path(__file__).absolute().parents[1]
prog_description = """\
Use metafile to generate a README.m... | [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
8f160c4636523265b3f1ffb009a2fab0c22e5b6e | 0c22b34f272a9f75e348c218b22c6b548e05f772 | /sheets/python/uninstall-package-setup.py | d751484702650df1a9cabe6066c05793c8084419 | [
"MIT"
] | permissive | drmingdrmer/cheatsheet | 8eee95bee6ad7889772821012924d2fe75d641ea | b9b38c8bec80b697e73d7ae3701d2482449e1a4d | refs/heads/master | 2021-01-15T08:43:08.677128 | 2019-05-19T15:58:43 | 2019-05-19T15:58:43 | 53,997,348 | 6 | 10 | null | 2020-01-13T05:15:24 | 2016-03-16T03:17:53 | Shell | UTF-8 | Python | false | false | 29 | py | pip uninstall <package_name>
| [
"drdr.xp@gmail.com"
] | drdr.xp@gmail.com |
80f6b28da0ff1dc5dfce1018d03d82fe45bb08b6 | b0a124a3e2077407b0c26f91611ac9d0c767d5ef | /venv/Lib/site-packages/django/contrib/contenttypes/fields.py | 4015f16c6b09ae6859cbfa9e34bde02b0bc19904 | [
"Apache-2.0"
] | permissive | Racherin/pricetracker | 0d03ca6dd99f3008a1488e99651663af27d0808c | 1778088023f383e297e9120dc6b351e5c066e7c7 | refs/heads/master | 2022-12-12T03:45:12.495867 | 2020-10-03T14:44:36 | 2020-10-03T14:44:36 | 241,890,489 | 4 | 1 | Apache-2.0 | 2022-12-08T03:39:31 | 2020-02-20T13:27:06 | Python | UTF-8 | Python | false | false | 27,336 | py | import functools
import itertools
import operator
from collections import defaultdict
from django.contrib.contenttypes.models import ContentType
from django.core import checks
from django.core.exceptions import FieldDoesNotExist, ObjectDoesNotExist
from django.db import DEFAULT_DB_ALIAS, models, router, transaction
fr... | [
"meertavincan@gmail.com"
] | meertavincan@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.