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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1feabc96aca894f238bcb02c6dd427e82c92710 | 22dd40f8e440f48f35543706c176910be3fd0a7a | /virtual/bin/django-admin.py | b1ca2623badb3663e2dc777b229f6a44191ab2c6 | [] | no_license | Mathewsalufwani/The-Moringa-Tribune | 3b5c8adbbb40e60928bdf21ac2787a77c72b70e9 | 16d49ae7d86f51385562f18b2da8bcaaa81e63cc | refs/heads/master | 2023-08-17T15:54:14.876803 | 2020-07-29T13:41:23 | 2020-07-29T13:41:23 | 283,489,291 | 0 | 0 | null | 2021-09-22T19:31:17 | 2020-07-29T12:10:42 | Python | UTF-8 | Python | false | false | 172 | py | #!/home/alufwany/Documents/The-Moringa-Tribune/virtual/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"mathewalufwani@gmail.com"
] | mathewalufwani@gmail.com |
965a6fcfa0ebf3872f47679d024a3d543dd6fbe7 | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /apps/cloud_api_generator/generatedServer/backplane.py | da0d46c941fd8b95499a6613aeea7b0b5c4c5552 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 15,639 | py | from pylabs import q
from cloud_api_rootobjects import cloud_api_backplane
from cloud_api.BaseCloudAPI import BaseCloudAPI
class backplane(BaseCloudAPI):
def __init__(self):
self._rootobject = cloud_api_backplane.backplane()
@q.manage.applicationserver.expose_authenticated
def listLans (self, back... | [
"devnull@localhost"
] | devnull@localhost |
4fe42ac7cdd7822f0e1888c23b1bce1a210dd863 | d3192b76f276d5102b231baf470f32d39a5e4854 | /src/trajtracker/stimuli/__init__.py | 1d4afad6d933f3472926a9144613ea4a1fbd3ed1 | [] | no_license | drordotan/trajtracker | 874529e1c253f6d2c7527967616adf1c03977e05 | f76693c14d649899cfab5b2bbad4835dbf1cd15c | refs/heads/master | 2021-06-15T05:31:06.404147 | 2017-03-27T18:49:21 | 2017-03-27T18:49:21 | 81,454,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | """
TrajTracker - stimuli package
@author: Dror Dotan
@copyright: Copyright (c) 2017, Dror Dotan
"""
# Import the package classes
from _NumberLine import NumberLine
from _StimulusSelector import StimulusSelector
| [
"dror.dotan@gmail.com"
] | dror.dotan@gmail.com |
b63a48c7350a0be3b381d6cf747524bec8a344a9 | 0b868fe1c0d20fcafed594ffcfac237b985eb332 | /Algorithms/134. Gas Station/Solution.py | 02f09e99d5470cf3bf16ea3152d5bbce6965f43d | [] | no_license | AlisonZXQ/leetcode | f43f12009b3bbf35c1dfaf06cfc6689089a3d51b | bd6b18f134336513bbc3112be6e33c79374a7cb1 | refs/heads/master | 2021-01-19T17:14:28.398493 | 2016-10-14T01:34:56 | 2016-10-14T01:34:56 | 82,442,695 | 1 | 0 | null | 2017-02-19T07:27:35 | 2017-02-19T07:27:35 | null | UTF-8 | Python | false | false | 709 | py | #coding=utf-8
__author__ = 'xuxuan'
class Solution(object):
def canCompleteCircuit(self, gas, cost):
"""
:type gas: List[int]
:type cost: List[int]
:rtype: int
"""
l=len(gas)
remider=[gas[i]-cost[i] for i in range(l)]
if sum(remider)<0:
ret... | [
"524058708@qq.com"
] | 524058708@qq.com |
615566788b32a563b40563be0b84391b77b6ac61 | dab869acd10a3dc76e2a924e24b6a4dffe0a875f | /Laban/build/bdist.win32/winexe/temp/pandas.algos.py | 7fd03182789f4d14b2b2b64de6fe0456f9ffcce3 | [] | no_license | ranBernstein/Laban | d82aff9b0483dd007e03a06e51f7d635f62ed05d | 54c88afa9493deacbdd182904cc5d180ecb208b4 | refs/heads/master | 2021-01-23T13:17:51.777880 | 2017-02-14T09:02:54 | 2017-02-14T09:02:54 | 25,508,010 | 3 | 1 | null | 2017-02-14T09:02:55 | 2014-10-21T07:16:01 | Tcl | UTF-8 | Python | false | false | 362 | py |
def __load():
import imp, os, sys
try:
dirname = os.path.dirname(__loader__.archive)
except NameError:
dirname = sys.prefix
path = os.path.join(dirname, 'pandas.algos.pyd')
#print "py2exe extension module", __name__, "->", path
mod = imp.load_dynamic(__name__, path)
##... | [
"bernstein.ran@gmail.com"
] | bernstein.ran@gmail.com |
59e4dc326e4859b309fdecf33ecf0c6a3b075ca4 | 81579ecd0678d652bbb57ff97529631fcfb74b12 | /corehq/apps/users/dbaccessors/__init__.py | 17d0dd2f79846477accc5331c0ed45d62726beb0 | [
"BSD-3-Clause"
] | permissive | dungeonmaster51/commcare-hq | 64fece73671b03c1bca48cb9d1a58764d92796ea | 1c70ce416564efa496fb4ef6e9130c188aea0f40 | refs/heads/master | 2022-12-03T21:50:26.035495 | 2020-08-11T07:34:59 | 2020-08-11T07:34:59 | 279,546,551 | 1 | 0 | BSD-3-Clause | 2020-07-31T06:13:03 | 2020-07-14T09:51:32 | Python | UTF-8 | Python | false | false | 241 | py | from .all_commcare_users import (
get_all_commcare_users_by_domain,
get_practice_mode_mobile_workers,
get_user_docs_by_username,
)
from .couch_users import (
get_user_id_and_doc_type_by_domain,
get_user_id_by_username,
)
| [
"orange.jenny@gmail.com"
] | orange.jenny@gmail.com |
8b4ce0dac0782c47424b08ec1c6de4e166d84e4f | bf8870d923adca9877d4b4dacef67f0a454727a8 | /codeforces.com/contest/1/a/pr.py | 7c66e540b35e928c5236bc07ce0891226ebbd075 | [] | no_license | artkpv/code-dojo | 6f35a785ee5ef826e0c2188b752134fb197b3082 | 0c9d37841e7fc206a2481e4640e1a024977c04c4 | refs/heads/master | 2023-02-08T22:55:07.393522 | 2023-01-26T16:43:33 | 2023-01-26T16:43:33 | 158,388,327 | 1 | 0 | null | 2023-01-26T08:39:46 | 2018-11-20T12:45:44 | C# | UTF-8 | Python | false | false | 236 | py | #!python3
"""
6 6 4
11112222
11112222
11112222
11112222
3333
n%a == 0 : n//a else n//a + 1
"""
n, m, a = [int(i) for i in input().strip().split(' ')]
x = n//a + (1 if n%a > 0 else 0)
y = m//a + (1 if m%a > 0 else 0)
print(x * y)
| [
"artyomkarpov@gmail.com"
] | artyomkarpov@gmail.com |
fcc33055f2138589f1f07e03312778d44a1b33b0 | cd557e3c2b34f30f2e7caf7c79c07ff6e109fbd3 | /k2/addons/k2-infra/setup.py | 990afcc142b8591c002441aad0b147bff9f50d4f | [
"Apache-2.0"
] | permissive | Zenterio/opensourcelib | f005174c049df0f5deddc1269d7c343a8e219ca5 | 07f0dabffaceb7b6202b5f691cbad46dac5868a8 | refs/heads/master | 2022-12-09T02:53:36.444094 | 2021-04-28T18:03:24 | 2021-05-27T13:14:58 | 186,092,997 | 5 | 6 | NOASSERTION | 2022-12-07T23:37:26 | 2019-05-11T05:44:37 | Groovy | UTF-8 | Python | false | false | 953 | py | import os
from setuptools import find_packages, setup
setup(
name='k2-infra',
version='0.0.1+' + os.getenv('BUILD_NUMBER', '0'),
description='Addons for testing inftrastructure.',
maintainer='Zenterio AB',
maintainer_email='foss@zenterio.com',
license='Apache 2.0',
packages=find_packages(
... | [
"per.bohlin@zenterio.com"
] | per.bohlin@zenterio.com |
33adf90519e533c35721ecc53ace42935b9d12b3 | 39e05a48b4e7941c57da4eb62207ee3b8ffcd6b4 | /cpx_light_sensor.py | 07fa51f794509844c8102a0ff256d9b9e97ff40f | [
"MIT"
] | permissive | kattni/Welcome_to_CircuitPython_CPX | effdac1ca57274dbbd1f5edc12594a5a131ee554 | e1854679c587905cf032fdec2e701bd4614fc414 | refs/heads/master | 2020-03-14T18:50:39.885324 | 2018-05-04T18:41:56 | 2018-05-04T18:41:56 | 131,750,302 | 4 | 1 | MIT | 2018-05-06T00:51:57 | 2018-05-01T18:47:18 | Python | UTF-8 | Python | false | false | 147 | py | import time
from adafruit_circuitplayground.express import cpx
while True:
print("Lux:", cpx.light)
print((cpx.light),)
time.sleep(1)
| [
"kattni@adafruit.com"
] | kattni@adafruit.com |
de25f6677fc334cf0eb602dce1bea75dd4a86350 | 34b4d55b753773b9dcfdd086cf0c2532e30025e0 | /wizards/account_move_report.py | 55b31a41f15a15b809ae8efd9ac9e3d8dbba4210 | [] | no_license | levislibra/financiera_tablero_control | fe3badd61a5d6a3a576ccb85a2c441f3d4f79fcf | d71dfaddeee80898b2eb5b1862c4c72959414e3f | refs/heads/master | 2023-07-31T11:22:40.042868 | 2023-07-09T18:58:59 | 2023-07-09T18:58:59 | 224,718,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,441 | py | # -*- coding: utf-8 -*-
from openerp import fields, models, api
import xlwt
import base64
import StringIO
import json
class AccountMoveReport(models.TransientModel):
_name = 'account.move.report'
_description = 'Reporte de Asientos contables'
date_init = fields.Date("Fecha desde")
date_finish = fields.Date("Fech... | [
"levislibra@hotmail.com"
] | levislibra@hotmail.com |
78bfcd7f29c18b42498332b420ed25d41d0f1920 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/joshbohde-django-backbone-example/allPythonContent.py | 01471d98d01aa89a88255f8927ed3fa5044f719d | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,050 | py | __FILENAME__ = local_settings
########NEW FILE########
__FILENAME__ = manage
#!/usr/bin/env python
from django.core.management import execute_manager
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
bb8994767412bb69ced410ddff01c6e973323528 | 30ffd343c65bea60eb8b64aa5ae7bc962ad47604 | /Build A Python REST API With Django/restapi/src/updates/api/mixins.py | b1c74fd62cea57e9415b95372173ff303b991d1a | [
"MIT"
] | permissive | kadhirash/Build-A-Python-REST-API-With-Django | fc63d205c3bdd3755cc3fb69023e35e00d78cab4 | 8ccb90ab27378aafb84652052aa66292bd1e6c02 | refs/heads/master | 2022-12-31T08:55:21.309062 | 2020-10-17T01:15:07 | 2020-10-17T01:15:07 | 303,760,095 | 1 | 0 | null | 2020-10-16T15:14:27 | 2020-10-13T16:14:35 | Python | UTF-8 | Python | false | false | 293 | py | from django.views.decorators.csrf import csrf_exempt
from django.utils.decorators import method_decorator
class CSRFExemptMixin(object):
@method_decorator(csrf_exempt)
def dispatch(self, *args, **kwargs):
return super().dispatch(*args, **kwargs) # super(CSRFExemptMixin, self) | [
"kadhirash@gmail.com"
] | kadhirash@gmail.com |
f79a43d47a57422dbcbc433a7db6946c26abb2a8 | 6f151b64427d47571ff8d02a24a98c9cbd8c68a5 | /[剑指offer-03]findRepeatNumber.py | 4e2dd0256e7d8a0f4c65ca46d839b15d378af4f2 | [
"MIT"
] | permissive | Menah3m/leetcode-Python | 50c0a0e518274cfa9a5ce939c37c075ce226dd04 | 212cae16ae868e5f031d3aeb8f614c539c1a27f1 | refs/heads/master | 2021-04-02T03:24:35.855185 | 2020-12-15T09:39:03 | 2020-12-15T09:39:03 | 248,238,533 | 0 | 0 | null | 2020-12-15T09:39:05 | 2020-03-18T13:25:55 | Python | UTF-8 | Python | false | false | 663 | py |
'''思路:创建空集合,判断数组元素是否已存在,
如果存在,则说明重复,返回该值,如果不存在,则添加到集合中
时间复杂度 O(n)
'''
class Solution:
def findRepeatNumber(self, nums: List[int]) -> int:
s = set()
for num in nums:
if num in s:
return num
else:
s.add(num)
# 代码2
class Solution:
def f... | [
"568200065@qq.com"
] | 568200065@qq.com |
292ea0e0071270ad4e4813cc31e30f676c9d61a1 | e7efae2b83216d9621bd93390959d652de779c3d | /snmp/datadog_checks/snmp/exceptions.py | d7e5ed8b6e84fb2fbdc7256ac3fd64716ac1ee2c | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause",
"Apache-2.0",
"MIT",
"BSD-3-Clause-Modification",
"Unlicense",
"LGPL-3.0-only",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"CC0-1.0"
] | permissive | DataDog/integrations-core | ee1886cc7655972b2791e6ab8a1c62ab35afdb47 | 406072e4294edff5b46b513f0cdf7c2c00fac9d2 | refs/heads/master | 2023-08-31T04:08:06.243593 | 2023-08-30T18:22:10 | 2023-08-30T18:22:10 | 47,203,045 | 852 | 1,548 | BSD-3-Clause | 2023-09-14T16:39:54 | 2015-12-01T16:41:45 | Python | UTF-8 | Python | false | false | 658 | py | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
"""
Re-export PySNMP exceptions that we use, so that we can access them from a single module.
"""
from pysnmp.error import PySnmpError
from pysnmp.smi.error import SmiError
__all__ = ['PySnmpError', 'SmiError'... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
59715fe52bcc908c10ecb3fee4280b45678e34f6 | 615e3cdc2c136b2f66b5c553d375823d3580fd08 | /cursopython/venv/ex008(1).py | 27fb649ba247a63253541cafd044b052c61fcf9d | [] | no_license | Android-Ale/PracticePython | 859a084e224cfb52eed573e38d7d9dc91f405885 | cab2ac7593deb22e6bb05a95ecd19a8ea2c96b0a | refs/heads/master | 2023-05-06T06:33:36.724569 | 2021-05-15T00:12:06 | 2021-05-15T00:12:06 | 369,307,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | n1 =int(input('Digite o primeiro número:'))
n2 =int(input('Digite o segundo número:'))
n3 = n1+n2
print('A soma do número {} e {} é {}'.format(n1,n2,n3))
#com o uso da mascára ({}) você pode reduzir a construção do código
#utilizando a mascára e a função .format | [
"alesson9silva@gmail.com"
] | alesson9silva@gmail.com |
23fbc4a3143b4e08a2756ca8fd37a88812df78fe | a9d385b4afa2e81c7420c336af70bbd982f47af3 | /store/pagination.py | c369c5c67ac26ea560831ac933b784c18c46d935 | [
"MIT"
] | permissive | Wikidata/editgroups | 219d38d1ea0dceedaf4ce68857868088fa246c96 | a90532314248e004646e6238469253a0c12abdf4 | refs/heads/master | 2023-08-19T17:23:17.142999 | 2023-08-14T07:02:43 | 2023-08-14T07:02:43 | 124,276,332 | 16 | 1 | MIT | 2023-09-11T10:36:53 | 2018-03-07T18:18:51 | Python | UTF-8 | Python | false | false | 1,164 | py | from rest_framework import pagination
from rest_framework.response import Response
from collections import OrderedDict
class PaginationWithoutCounts(pagination.LimitOffsetPagination):
def paginate_queryset(self, queryset, request, view=None):
self.limit = self.get_limit(request)
if self.limit is No... | [
"antonin@delpeuch.eu"
] | antonin@delpeuch.eu |
42a8a99b6b84c500f56cfe326ece7999b65e62ab | 99d7765da35926279c4a4fd7313d55908786f4b8 | /0/2/2798/2798.py | 626cea018058fb2dc20b87eb8fc77a80ec38899d | [
"MIT"
] | permissive | chr0m3/boj-codes | b8294c5d4d10a5af25b5276427bccd74d0866ef5 | d71d0a22d0a3ae62c225f382442461275f56fe8f | refs/heads/master | 2021-08-16T15:24:57.733088 | 2021-03-22T13:13:10 | 2021-03-22T13:13:10 | 91,523,558 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | from itertools import combinations
n, m = map(int, input().split())
cards = map(int, input().split())
total = 0
for i in combinations(cards, 3):
temp = sum(i)
if total < sum(i) <= m:
total = temp
if temp == m:
break
print(total)
| [
"chr0m3@users.noreply.github.com"
] | chr0m3@users.noreply.github.com |
4eadca970b79581639aa5d3924e2fdade9182ffb | 07eaef75c6bc0066d56a8810711e82b0e8b01dda | /options/graph/cover_time.py | dc756f0d065a24be113b2a2f7992d6243f29f606 | [] | no_license | jinnaiyuu/Optimal-Options-ICML-2019 | eb10da610d8ad7828f364c1bdb2e058aa35e7d65 | 4f5cd1776b47f9b16c1022d22b2cc91d6044775b | refs/heads/master | 2021-06-21T06:54:41.968578 | 2021-02-18T09:14:09 | 2021-02-18T09:14:09 | 186,303,067 | 13 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | import random
import numpy as np
import networkx as nx
from options.graph.spectrum import ComputeFiedlerVector, ComputeConnectivity
from options.util import AddEdge, neighbor
# def HittingTime(G, t):
# """
# Given a graph adjacency matrix and a start and goal state,
# return a hitting time.
# """
# ... | [
"ddyuudd@gmail.com"
] | ddyuudd@gmail.com |
7ea0bbcdb9c21ea43f730947ac79b94efa72ea56 | b55faaeb874097eb199375cdba3b7a8bab53b3c6 | /proyecto/couchin/hospedajes/urls.py | f2b4a84c01d04461d2e26044367278652436c644 | [] | no_license | albinegro/ingenieria2 | aefff1521cfb1a2e258070193dd38e701231eda0 | fd7484086fde6ad07df9fbfb54e786cbac8b86a9 | refs/heads/master | 2021-01-21T04:39:42.030222 | 2016-06-24T19:41:43 | 2016-06-24T19:41:43 | 54,141,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | from django.conf.urls import include, url
from hospedajes import views
urlpatterns = [
url(r'^view/detail/(?P<hospe_id>\d+)/$', views.view_detail, name='view_detail'),
url(r'^list/couchin/$', views.list_couchin, name='list_couchin'),
url(r'^my/list/couchin/(?P<user_id>\d+)/$', views.my_hospedajes, name='my... | [
"you@example.com"
] | you@example.com |
77beb233b0428d505c4ca84abc2e699ab92f3973 | 95bc7b6cc482a6dc2cbaa7613024b63af0e8395e | /legal_e/masters/state_master.py | 006f536a4f2ddf6b8d42fbae2b94d24010f99b45 | [] | no_license | r-bhargavi/indialaw_11 | 89a2c1a530dc422a7a64804f13d713d332759306 | 8ff9de49c997533cc523ddff1ec4faa121473ba5 | refs/heads/master | 2020-04-02T22:39:50.620111 | 2018-10-29T18:27:11 | 2018-10-29T18:27:11 | 154,840,355 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # -*- coding: utf-8 -*-
from odoo import fields, models, api
class CountryState(models.Model):
_description="Country state"
_inherit = 'res.country.state'
zone_ids= fields.One2many('state.zone', 'state_id', 'Zones')
region=fields.Selection([('north','North'),('east','East'),('west','West'),('... | [
"bhargavi1809@gmail.com"
] | bhargavi1809@gmail.com |
6ebd3165dfd5f3e6b6e39353229e0c61a24a004b | c2849586a8f376cf96fcbdc1c7e5bce6522398ca | /ch32/ex32-32.py | d204247855ebaad50de490ecab621c83e500fa85 | [] | no_license | freebz/Learning-Python | 0559d7691517b4acb0228d1cc76de3e93915fb27 | 7f577edb6249f4bbcac4f590908b385192dbf308 | refs/heads/master | 2020-09-23T01:48:24.009383 | 2019-12-02T12:26:40 | 2019-12-02T12:26:40 | 225,371,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # 내장 함수 super: 나아진 것인가 악화된 것인가?
# super에 대한 엄청난 논쟁
# 전형적인 슈퍼클래스 호출 형태: 이식성이 있으며 일반적임
class C: # 파이썬 2.X와 3.X에서
def act(self):
print('spam')
class D(C):
def act(self):
C.act(self) # 슈퍼클래스의 이름을 명명하고 self를 전달
print('eggs')
X = D()
X.act()
# spam
# egg... | [
"freebz@hananet.net"
] | freebz@hananet.net |
e54521058545f4415aa7c88432ef9539a5f63c34 | 4e229e075a3f5e71a33525981fa51fd7878c9715 | /sacrerouge/data/pyramid.py | c009dee8d8934ca2db31038341a13dec05160cce | [] | no_license | CogComp/content-analysis-experiments | 57d68441272c39b687656976d20eddd817c28250 | f6abd72029b6853627ddd191979f105a9385eed7 | refs/heads/master | 2023-06-27T00:29:34.115264 | 2021-08-04T14:36:17 | 2021-08-04T14:36:17 | 305,768,372 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,361 | py | import bisect
import os
import re
from lxml import etree
from typing import List, Set, Tuple
def _find_closest_match(matches: List[int], index: int) -> int:
differences = [abs(match - index) for match in matches]
min_diff = min(differences)
min_index = differences.index(min_diff)
start = matches[min_i... | [
"danfdeutsch@gmail.com"
] | danfdeutsch@gmail.com |
7f11ee19083f824ed88c4145d41b4d47e1692be4 | f13191be8670d3b6a11d32c92e2a407e62247130 | /criptobot/settings.py | 0c5cea4e029bf22eb661bc3024d50cc913d2b90a | [] | no_license | rodrigues87/criptobot | 95a7672257440335d8579d53be1cd0f71639ba68 | 86a3f17d1b7a52048cd7addf975b91a2d670db37 | refs/heads/master | 2023-02-10T05:10:32.634614 | 2020-12-26T00:06:00 | 2020-12-26T00:06:00 | 323,152,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | """
Django settings for criptobot project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"pedroh.mix@gmail.com"
] | pedroh.mix@gmail.com |
7e4d50ffc89272d317068b79b2faeb030b4c9b70 | a5bd5132ee71b9c04826c7bbd8f45459e1b29590 | /elasticsearchs生产/web/comm/dataimport.py | 8da73a00992c4cf78da83195235847bf43c0cb90 | [] | no_license | lizhenfen/works | e463cf36bd018ec3c6bdbc1e870778cabb644060 | 7304a3dbe68c57e918080cac217267afc692da9a | refs/heads/master | 2021-01-19T22:53:14.542066 | 2017-05-17T03:38:06 | 2017-05-17T03:38:06 | 88,405,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,287 | py | from elasticsearch import Elasticsearch
import csv
import json
import elasapi
import time
import database
es = Elasticsearch(['192.168.15.212:9200'])
# 创建拜访记录索引
def create_index(index="test-index"):
# 创建索引
data = {
"mappings": {
"custvisit": {
"properties": {
... | [
"743564797@qq.com"
] | 743564797@qq.com |
3fb37d9a827fffbb6898b97a96468bbd0a27008d | 1edfe2fe5ae6ed81d1453446569b8fa594738cb9 | /announcement/migrations/0028_auto_20200409_2135.py | 42923c657c3315b60f03ec36da03fdbbee8f1c82 | [] | no_license | parvatiandsons2/djangoproject | 71bfbcfa6b06406b8a77ebb30f7d468d787e92dd | 901062c839dde608d9c2c865b61dbc0902988e66 | refs/heads/master | 2022-04-28T21:53:17.333272 | 2020-04-16T12:26:29 | 2020-04-16T12:26:29 | 255,407,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | # Generated by Django 3.0.3 on 2020-04-09 16:05
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('announcement', '0027_auto_20200409_2135'),
]
operations = [
migrations.AlterField(
model_name='announcement',
... | [
"parvatiandsons2@gmail.com"
] | parvatiandsons2@gmail.com |
1fa1ab081abf8464cc447163eed519ff33c68f19 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /squiggles/generate_data_test.py | 14cf61d0f75678a9490aa210122bd30ee5addc41 | [
"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 | 4,704 | 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 |
682875d3dde4fa6c1e16e1e998e3485ba15904b4 | 565fc3b3e04c8cb2144bca8a512b879f09d08753 | /micro_framework/store/redis_backend/utils.py | b58cda9a009683f01b77898e31461cbc9b0d9224 | [
"MIT"
] | permissive | lacoski/django-micro-framework | f2a465943490532d24ba0c2736b70d8a955bd816 | 80b8cb52ecc3f24e8282e9deaae94edba78bdbec | refs/heads/master | 2023-01-05T07:19:36.934197 | 2020-01-15T07:36:11 | 2020-01-15T07:36:11 | 231,289,077 | 1 | 1 | MIT | 2022-12-26T20:39:38 | 2020-01-02T01:55:55 | Python | UTF-8 | Python | false | false | 246 | py | import json
def data_to_json(data):
return json.dumps(data)
def byte_to_string(data):
return data.decode("utf8")
def redis_to_data(data):
if isinstance(data, bytes):
data = byte_to_string(data)
return json.loads(data)
| [
"123xuzu@gmail.com"
] | 123xuzu@gmail.com |
bbb224da0513cb93449d2caae92c0e7ffac94a99 | 222b17dacb95640499ebd484697ead32e83b9ac1 | /is_after.py | 7173f6c1660d16e3cea546e6372359ed3e071d52 | [] | no_license | cicekozkan/python-examples | 08330ef0fb1678cace17716ac2f490a3c5b95dd2 | 01b0e654c884946f8353995333a6946062c9c158 | refs/heads/master | 2021-01-14T14:06:37.585963 | 2014-12-26T07:55:13 | 2014-12-26T07:55:13 | 25,510,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Nov 12 10:20:44 2014
@author: asus
"""
def is_after(t1,t2):
"""takes two Time objects, t1 and t2, and returns True if t1
follows t2 chronologically and False otherwise"""
# Hint: convert time to seconds and compare
second1 = (t1.hour)*60*60 + (t1.minute)*60 ... | [
"cicekozkan@gmail.com"
] | cicekozkan@gmail.com |
79b758e87ab599bfeec2a04e09c9db578b3e5f4f | dae6a9df55d72fd15cc4fb43db6c240da52963bc | /env/bin/django-admin.py | d610e094ecc2f7dac5a92ce2197ad0f1c0f69974 | [] | no_license | mohamed-arshad-ch/CartWallet | c02d0fe27f4d9450b9fd91c103791fae3b6d3820 | 2b7d0c9660034678d2560c85225039f3fa445ee5 | refs/heads/master | 2023-01-11T07:25:54.145436 | 2020-11-15T08:57:26 | 2020-11-15T08:57:26 | 312,993,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | #!/home/mach/Documents/Projects In django/Interview/env/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-admi... | [
"you@example.com"
] | you@example.com |
1bae57b1d55e61a240fe78daea3e0b777ac65897 | 12854e1de4f41ec30db48ad5847a1e7a0b61a0e9 | /201901SSAFY/05PS/190405 PS/SW2112.py | 53592fe9c564579b0626a8ba8e28cc5b47394b34 | [] | no_license | egyeasy/TIL | b3192184cb50f255cc5473468d34d65820b29849 | 8985b97d267edc70d21b4cc4a1e275c8c94ccafc | refs/heads/master | 2023-01-08T12:09:40.993410 | 2019-07-25T10:05:42 | 2019-07-25T10:05:42 | 163,810,472 | 0 | 0 | null | 2023-01-04T17:34:02 | 2019-01-02T07:47:20 | Jupyter Notebook | UTF-8 | Python | false | false | 2,570 | py | import sys
sys.stdin = open('2112.txt', 'r')
def backtrack(row_idx, cnt_change):
global min_changed
if cnt_change == total_change:
if judge_done() and cnt_change < min_changed:
min_changed = cnt_change
return
if arr_change[row_idx]:
# print(arr_change, row_idx, cnt_chan... | [
"dz1120@gmail.com"
] | dz1120@gmail.com |
73b309adafb435b837e61aa6fa13e28fd2bd55f7 | 0f900c47ebe52c20c03f559d8e77c95f965c511d | /statciAndClass/classAndStatic.py | 97ac5d82106e70144b447be9694154b2176555df | [] | no_license | PGaholic/pythonParctise | ed931dca39ee4d9289c0df29e71c611a2f02506b | f49e617807ddbd9782d91f91896bbfc78e6b5c5f | refs/heads/master | 2020-03-23T23:49:24.168917 | 2016-05-05T14:02:13 | 2016-05-05T14:02:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | def foo(x):
print "executing foo(%s)"%(x)
class A(object):
def foo(self,x):
print "executing foo(%s,%s)"%(self,x)
@classmethod
def class_foo(cls,x):
print "executing class_foo(%s,%s)"%(cls,x)
@staticmethod
def static_foo(x):
print "executing static_foo(%s)"%x
a=A() | [
"wxwang@tju.edu.cn"
] | wxwang@tju.edu.cn |
6aaaa5926e7419dfff4ee9acbd2511f53995b41f | 72b00923d4aa11891f4a3038324c8952572cc4b2 | /python/design_pattern/decorator/CoffeeShopCompromise.py | 404761eedc1b7a342add4066011bcd87fd09fba1 | [] | no_license | taowuwen/codec | 3698110a09a770407e8fb631e21d86ba5a885cd5 | d92933b07f21dae950160a91bb361fa187e26cd2 | refs/heads/master | 2022-03-17T07:43:55.574505 | 2022-03-10T05:20:44 | 2022-03-10T05:20:44 | 87,379,261 | 0 | 0 | null | 2019-03-25T15:40:27 | 2017-04-06T02:50:54 | C | UTF-8 | Python | false | false | 1,571 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
class DrinkComponent:
def get_desc(self):
return self.__class__.__name__
def get_total(self):
return self.__class__.cost
class Espresso(DrinkComponent):
cost = 0.75
class CafeMocha(DrinkComponent):
cost = 1.25
class CafeLatte(DrinkC... | [
"taowuwen@gmail.com"
] | taowuwen@gmail.com |
035c0b2c6d46bef5d99e308569f5404dc67b6676 | f9ba63b545b8177e4945815bc4ea05298c85498c | /other_Exmple/Decorators.py | 551c40c7250480d0a299f0b5f91e7333355d345c | [] | no_license | kevalrathod/Python-Learning-Practice | 75f5f898240bf44128586f409706f36766bb20dd | 3ea35e70bbc24643e6c2ab756d4394505631c820 | refs/heads/master | 2021-07-12T00:41:28.138285 | 2019-01-09T17:05:31 | 2019-01-09T17:05:31 | 136,570,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | def Outer():
msg='hi'
def inner():
print(msg)
return inner
myFunc=Outer()
myFunc() | [
"kevalrathod1111@gmail.com"
] | kevalrathod1111@gmail.com |
56bff6a354d8a98c1cead9853d5d288422e31dd0 | 1498148e5d0af365cd7fd16197174174a7fa9800 | /t000835.py | 8f68a2442d39f77570f2e82ea1d58febfead6d7e | [] | no_license | feiyanshiren/myAcm | 59a2b80fe7e02787defcb152eee3eae26135322a | 00c7082d5143ddf87aeeafbdb6ce29da46dc8a12 | refs/heads/master | 2023-09-01T12:12:19.866447 | 2023-09-01T09:09:56 | 2023-09-01T09:09:56 | 148,560,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | try:
c = "CAmEm"
while 1:
s = input()
j = 0
b = 1
for i in range(len(s)):
if j == 5: j =0
if s[i] != c[j]:
b = 0
break
j += 1
if b: print("YES")
else: print("NO")
except: pass | [
"feiyanshiren@163.com"
] | feiyanshiren@163.com |
0abb017577fa158e1bd7aacdb206bf01ace0c5b0 | 99ba551645dc9beed36f0478b396977c50c3e7ef | /leetcode-vscode/142.环形链表-ii.py | 1835dcd4539b9ff6339882f8cfaa140b1f2f7255 | [] | no_license | wulinlw/leetcode_cn | 57381b35d128fb3dad027208935d3de3391abfd0 | b0f498ebe84e46b7e17e94759dd462891dcc8f85 | refs/heads/master | 2021-08-09T17:26:45.688513 | 2021-07-15T14:38:30 | 2021-07-15T14:38:30 | 134,419,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | #
# @lc app=leetcode.cn id=142 lang=python3
#
# [142] 环形链表 II
#
# https://leetcode-cn.com/problems/linked-list-cycle-ii/description/
#
# algorithms
# Medium (48.71%)
# Likes: 390
# Dislikes: 0
# Total Accepted: 58.6K
# Total Submissions: 119.3K
# Testcase Example: '[3,2,0,-4]\n1'
#
# 给定一个链表,返回链表开始入环的第一个节点。 如果链表无... | [
"wulinlw@gmail.com"
] | wulinlw@gmail.com |
a7a6d4497a3d54ef556ae8cd4e1828f15f32acf8 | aff612112744272579ec081b189d087e636d923a | /libmultifeed.py | 21ad3d05d12e2b8e87349bd84404876023cc53e2 | [] | no_license | pythonguru101/CrpytoCurrentMarket | a76bfe9ab647058fcedfd63bbe41f8f421ac385e | b207f54e15883db277b31f60bc8bbca42c9f61b5 | refs/heads/master | 2022-12-16T00:50:02.828610 | 2020-02-27T04:04:38 | 2020-02-27T04:04:38 | 236,615,768 | 0 | 1 | null | 2022-12-08T03:35:04 | 2020-01-27T23:10:02 | Python | UTF-8 | Python | false | false | 11,302 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sys
import os
import time
import datetime
import re
import commands
#import subprocess
import libdb_mysql
from operator import itemgetter
db = libdb_mysql.libdb_mysql()
class libmultifeed:
"Class to capture streaming data in real time"
# -- constructor ... | [
"pythonguru101@gmail.com"
] | pythonguru101@gmail.com |
d0e85594d959bf91d7345f965bb100e479313980 | 844b5a836545ddfb3c82b644f5c1f3fb40e6307e | /scripts/goodreads/fetched/book_foo.py | 5147216c9dd9e11b5846f99e4f4ad529a587c068 | [] | no_license | datademofun/goodreads-nyt-api-explorer | c8a980a11cc25caed7ea3b3e34e408fcdf48309c | 73a463b86f63db13f53eb63599addc9940d7e394 | refs/heads/master | 2021-01-22T16:48:41.006241 | 2016-04-28T04:19:26 | 2016-04-28T04:19:26 | 57,183,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | import requests
API_ENDPOINT = 'https://www.goodreads.com/book'
def fetch_book_ids(api_key, isbns):
"""
arguments:
`api_key` is Goodreads API key
`isbns` is either a sequence of isbns string; or a comma-delimited string
returns:
A requests.Response object...
let the c... | [
"dansonguyen@gmail.com"
] | dansonguyen@gmail.com |
10ba7034b02a062bf3d2a823086c8513a75ec12c | b05761d771bb5a85d39d370c649567c1ff3eb089 | /venv/lib/python3.10/site-packages/jedi/third_party/django-stubs/django-stubs/db/models/sql/where.pyi | 91f1b71866fb4c53a7a24b6f52a21159204eb589 | [] | no_license | JawshyJ/Coding_Practice | 88c49cab955eab04609ec1003b6b8c20f103fc06 | eb6b229d41aa49b1545af2120e6bee8e982adb41 | refs/heads/master | 2023-02-19T10:18:04.818542 | 2023-02-06T21:22:58 | 2023-02-06T21:22:58 | 247,788,631 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | pyi | /home/runner/.cache/pip/pool/48/5f/da/7522da7f5e0caa229df9b8ee59e5fd79914c0445ecb4c1e7652f61953e | [
"37465112+JawshyJ@users.noreply.github.com"
] | 37465112+JawshyJ@users.noreply.github.com |
a30bcf73afe63bee2961cd79eeae13ebfab66b48 | 07620d7b43568cffe951f2cf033a280646961974 | /util/vanilla_util.py | c1b7f560ea67cb663256ea3185e51af608052eff | [] | no_license | matthewzhang1998/snip | 8c396718a6e03b7197621deb649b26945d5f09f4 | 152df22ee077d98c8c37e851a5e72e87c2b3710c | refs/heads/master | 2020-04-07T10:18:30.812114 | 2019-01-31T21:53:24 | 2019-01-31T21:53:24 | 158,281,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,172 | py | import tensorflow as tf
from util.network_util import *
class DenseFullyConnected(object):
def __init__(self, input_depth, hidden_size, scope,
activation_type, normalizer_type, weight,
train=True):
self._scope = scope
self.input_depth = input_depth
self.h... | [
"matthew.zhang@mail.utoronto.ca"
] | matthew.zhang@mail.utoronto.ca |
179a6db68edc7a9287c896b7180bac4d767f1f7a | cd7778c69d8b5396c5463da0a9175fd7671d52e5 | /code/examples/ssl_tls.py | d73cce431b16a01534072280b8c643d1ecb7a317 | [
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sky-chen/pymqi | 5358e093ef2708fa87e4614d29d6bf0fa62f71bf | 7bfedcf076dc56559efe133dd9213b483bae34d7 | refs/heads/master | 2020-12-11T09:17:47.238745 | 2014-11-13T16:09:57 | 2014-11-13T16:09:57 | 23,863,682 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | # See discussion and more examples at http://packages.python.org/pymqi/examples.html
# or in doc/sphinx/examples.rst in the source distribution.
import logging
import pymqi
import CMQC
logging.basicConfig(level=logging.INFO)
queue_manager = "QM01"
channel = "SSL.SVRCONN.1"
host = "192.168.1.135"
port = "1434"
queue... | [
"dsuch-github@gefira.pl"
] | dsuch-github@gefira.pl |
0e6a94818caad7695cfc44edc461f6ee21bf9189 | 8f8ac99fd3ed9ceb36778b404f6fdd0b6899d3f4 | /pyobjc-framework-GameController/PyObjCTest/test_gccontrollerelement.py | df113258b0aef820cbd9df762a1ef12f2febd0a5 | [
"MIT"
] | permissive | strogo/pyobjc | ac4201c7742eb75348328eeecb7eedf4e3458de3 | 2579c5eaf44b0c5af77ee195c417d2c65e72dfda | refs/heads/master | 2023-07-13T00:41:56.448005 | 2021-08-24T06:42:53 | 2021-08-24T06:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | from PyObjCTools.TestSupport import TestCase, min_os_level
import objc
import GameController
class TestGCControllerElement(TestCase):
def test_constants(self):
self.assertEqual(GameController.GCSystemGestureStateEnabled, 0)
self.assertEqual(GameController.GCSystemGestureStateAlwaysReceive, 1)
... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
b757b2b0ba4148ee6d6821aebac9dcdcab295df4 | 9c83300b5cbb7d2b736c3be06e96144f4f775c7f | /aiida_lammps/tests/test_potential_data.py | a6d6fb43e1ebee64296207e3947253709574c9c6 | [
"MIT"
] | permissive | chrisjsewell/aiida-lammps | 80cf3ebd0d0eb96fe68253371409a04acc1299f7 | 8f618541784bbd6360efc653350570cf76398e83 | refs/heads/master | 2022-04-30T03:50:47.455155 | 2021-06-17T12:15:47 | 2021-06-17T12:15:47 | 148,841,763 | 0 | 0 | MIT | 2018-09-17T15:10:43 | 2018-09-14T21:05:00 | Python | UTF-8 | Python | false | false | 1,344 | py | import pytest
from aiida_lammps.data.potential import EmpiricalPotential
def test_list_potentials():
assert set(EmpiricalPotential.list_types()).issuperset(
["eam", "lennard_jones", "reaxff", "tersoff"]
)
def test_load_type():
EmpiricalPotential.load_type("eam")
@pytest.mark.parametrize(
... | [
"chrisj_sewell@hotmail.com"
] | chrisj_sewell@hotmail.com |
2410325dcb31a718b0b7f8c0867853941cb98173 | f4795e9015e4af3f6518efd5f16effc4094d700c | /25 prog.py | 0a863d91b23117c3d4d0e20776483e3d4b67bed3 | [] | no_license | Akhil-64/python | 1d1fe8e3957acd7f5b53b42fd6834d3862ca7acf | 0df9602f5ed794be2a91e1e8072b967597e1e259 | refs/heads/master | 2020-06-19T18:40:19.252057 | 2019-12-11T22:14:19 | 2019-12-11T22:14:19 | 196,826,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | print("enter characters")
a=0
count=0
count2=0
while(a!="*"):
a=str(input())
if(a>='a' and a<='z'):
count+=1
elif(a>='A' and a<='Z'):
count2+=1
print("upper case",count2)
print("lower case",count)
| [
"noreply@github.com"
] | Akhil-64.noreply@github.com |
12ac83aeb4569f4e65cd586f3d3b022ae704a4cf | d8fe3b5243bec2b61fd7907c4ff799b24bb617e5 | /Codewars/LinkedListsInsertNthNode.py | 1d0837dacc9cc0d182f371124b78ce7b8ef7e7a0 | [
"Unlicense"
] | permissive | SelvorWhim/competitive | b89ed252512d88d9346d168dc6b48e0a42a6142d | 1c73a5c7b2d0dc1b6c4f3f06ace69cdf5c6a34c0 | refs/heads/master | 2023-04-13T01:02:52.083519 | 2023-04-11T10:14:38 | 2023-04-11T10:14:38 | 96,573,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | class Node(object):
def __init__(self, data, next = None): # added option to construct with provided next pointer for simplicity
self.data = data
self.next = next
def insert_nth(head, index, data):
if index == 0: # separate case because head changes
return Node(data, head)
it = ... | [
"Carmeverre@gmail.com"
] | Carmeverre@gmail.com |
f0729edd1977b9101e84e877abdd4517b98280cf | b005d794cfd8e3b063b08d6a266b1e07f0f0f5e9 | /src/webapp/libs/gdata/service.py | f7142afda889848f3e0ad5938e652a4a1dfe2a33 | [] | no_license | GeoRemindMe/GeoRemindMe_Web | 593c957faa5babb3040da86d94a5d884ad4b2db3 | d441693eedb32c36fe853895110df808a9959941 | refs/heads/master | 2021-01-16T18:29:39.633445 | 2011-11-05T23:50:37 | 2011-11-05T23:50:37 | 1,841,418 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 70,069 | py | #!/usr/bin/python
#
# Copyright (C) 2006,2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"jneight@gmail.com"
] | jneight@gmail.com |
32d58d8575b0cdc85b9493d67f989ad9183dcad4 | 4a238068e29a1f6871cc049a0486b20b27e781de | /Supermicro/benchmarks/ssd/implementations/mxnet_j2/ssd/feature.py | 1273a0755ae61ae5f54d3ba81010ae4a6d61727e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Pixelz-Inc/training_results_v1.0 | 61b4555ad482b189d1966be3edd127858addd628 | c507130c4e04c1f274a9ae8b7284aac79f26325a | refs/heads/master | 2023-08-18T22:46:13.316503 | 2021-10-22T04:01:57 | 2021-10-22T04:01:57 | 399,047,712 | 0 | 0 | NOASSERTION | 2021-08-23T09:37:25 | 2021-08-23T09:37:25 | null | UTF-8 | Python | false | false | 9,078 | py | # pylint: disable=abstract-method
"""Feature extraction blocks.
Feature or Multi-Feature extraction is a key component in object detection.
Class predictor/Box predictor are usually applied on feature layer(s).
A good feature extraction mechanism is critical to performance.
"""
import mxnet as mx
from mxnet.base import... | [
"vsb@fb.com"
] | vsb@fb.com |
546d1ff58e4afd3352b8718be8af7dd9e86280bc | a81c1492783e7cafcaf7da5f0402d2d283b7ce37 | /google/ads/google_ads/v6/services/transports/geo_target_constant_service_grpc_transport.py | f5e2f1ab8337d75227997b0925947bdafd5a0d68 | [
"Apache-2.0"
] | permissive | VincentFritzsche/google-ads-python | 6650cf426b34392d1f58fb912cb3fc25b848e766 | 969eff5b6c3cec59d21191fa178cffb6270074c3 | refs/heads/master | 2023-03-19T17:23:26.959021 | 2021-03-18T18:18:38 | 2021-03-18T18:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,273 | py | # -*- coding: utf-8 -*-
#
# Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"noreply@github.com"
] | VincentFritzsche.noreply@github.com |
8712263c1acc0a7c2d4b87657cd121e19a603640 | 9201240f43937b9dd4341358062824619b64a8dc | /cbs/base/__init__.py | 0bbb140af958023e52c4d1d26fcbc4a75452ea2e | [
"BSD-2-Clause"
] | permissive | MarkusH/django-classy-settings | 60fda08b26f9787ffdb391ff73736730b849d972 | 11ad00f1900ed1b4a9d699978548adc8cbba1a1b | refs/heads/master | 2021-01-16T19:44:06.932001 | 2015-08-17T02:25:07 | 2015-08-17T02:25:07 | 40,856,299 | 0 | 0 | null | 2015-08-17T02:20:32 | 2015-08-17T02:20:32 | null | UTF-8 | Python | false | false | 629 | py |
import inspect
import os
class CoreSettings(object):
'''
Settings not likely to change between versions
'''
@property
def BASE_DIR(self):
return os.path.dirname(
os.path.dirname(
os.path.abspath(inspect.getfile(self.__class__))
)
)
DEB... | [
"curtis@tinbrain.net"
] | curtis@tinbrain.net |
062f0a3ea6165f232eed90e7f2eafa32b67790d1 | 5baf3cb8b08dcea2d53d2ef022e5c6d4b2468494 | /test/test_io_k8s_apimachinery_pkg_version_info.py | c310492742f948ced844a39ca03bf912b44f5b2a | [] | no_license | atengler/swagger-kqueen-python | a4fc0de38378a08c6c2e0c339032ed4ad63f09f5 | 01225c74a743636483211f0274f772193517ffaf | refs/heads/master | 2021-08-07T18:16:28.453730 | 2017-11-08T17:24:53 | 2017-11-08T17:29:03 | 110,007,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # coding: utf-8
"""
Kubernetes Queen API
A simple API to interact with Kubernetes clusters
OpenAPI spec version: 0.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
import unittest
import swagger_client
from swa... | [
"atengler@mirantis.com"
] | atengler@mirantis.com |
7d1045c50da8399a7b15b3a40e19c579d6065c01 | 4246b31decc48e83c7b780a97d8bd1f698b939e6 | /.PyCharm40/system/python_stubs/-1247972723/lxml/etree/ErrorLevels.py | cea04babfafa26ebdcb88db9ecaf4c5339210e03 | [] | no_license | sunileman/pycharm | d5a1694af76764f50535ced529d398780a09b75e | 880a1804fd3de4a4cd3d0c1da27a5ad8d3559137 | refs/heads/master | 2021-01-19T05:26:09.453603 | 2016-06-29T16:38:55 | 2016-06-29T16:38:55 | 61,857,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | # encoding: utf-8
# module lxml.etree
# from /usr/lib64/python2.7/site-packages/lxml/etree.so
# by generator 1.136
"""
The ``lxml.etree`` module implements the extended ElementTree API
for XML.
"""
# imports
import __builtin__ as __builtins__ # <module '__builtin__' (built-in)>
from object import object
class ErrorL... | [
"sunilemanjeegmail.com"
] | sunilemanjeegmail.com |
d078fc5a0af085902f5e5828782e9b6ab090494f | 48b7b96a5caf2102ae6ca5626efc0135d4088a75 | /server/template/views.py | 29d374209693621bf737dd5a20200160a3b403ab | [] | no_license | DonAurelio/coder | ced49498e0e0717fa8f0c523e5a2ff87895f162d | 429d2e4c43d66770792200bac6cd103f86dcf8b1 | refs/heads/master | 2023-01-11T08:59:43.749545 | 2019-10-02T19:58:07 | 2019-10-02T19:58:07 | 106,939,435 | 2 | 1 | null | 2022-12-29T07:03:46 | 2017-10-14T15:33:08 | JavaScript | UTF-8 | Python | false | false | 6,153 | py | from django.http import JsonResponse
from django.db import IntegrityError
from django.views.generic import TemplateView
from django.views.decorators.csrf import csrf_exempt
from django.utils.decorators import method_decorator
from providers.models import Service, Resource
from project.models import Project, File
impo... | [
"aurelio.vivas@correounivalle.edu.co"
] | aurelio.vivas@correounivalle.edu.co |
633b81659336b13ea72b1c705dbe3eabe0dafdd2 | de392462a549be77e5b3372fbd9ea6d7556f0282 | /issues_9001/migrations/0016_auto_20200806_1445.py | 33583a141c4cd3d600fc58070855615d8403f18c | [] | no_license | amutebe/AMMS_General | 2830770b276e995eca97e37f50a7c51f482b2405 | 57b9b85ea2bdd272b44c59f222da8202d3173382 | refs/heads/main | 2023-07-17T02:06:36.862081 | 2021-08-28T19:07:17 | 2021-08-28T19:07:17 | 400,064,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | # Generated by Django 3.0.2 on 2020-08-06 11:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('issues_9001', '0015_auto_20200806_1418'),
]
operations = [
migrations.AlterField(
model_name='mod9001_interestedparties',
... | [
"mutebe2@gmail.com"
] | mutebe2@gmail.com |
6eca2a2d17393cdc35ba85a22bca70512b551a97 | 70450f0c551adf47b450468e424f4f90bebfb58d | /icetray/resources/test/try_copy.py | 7e43a8c75a8172e1e5b0d3c1517127d9cafc616a | [
"MIT"
] | permissive | hschwane/offline_production | ebd878c5ac45221b0631a78d9e996dea3909bacb | e14a6493782f613b8bbe64217559765d5213dc1e | refs/heads/master | 2023-03-23T11:22:43.118222 | 2021-03-16T13:11:22 | 2021-03-16T13:11:22 | 280,381,714 | 0 | 0 | MIT | 2020-07-17T09:20:29 | 2020-07-17T09:20:29 | null | UTF-8 | Python | false | false | 625 | py | #!/usr/bin/env python
#
# Checking that the driving time exists
#
import sys
from I3Tray import *
from icecube import icetray
tray = I3Tray()
# generate empty frames
tray.Add("BottomlessSource")
tray.Add("AddNulls", where = ["src1", "src2"])
# verify they are there
tray.Add("FrameCheck",
ensure_physics_has = ... | [
"aolivas@umd.edu"
] | aolivas@umd.edu |
88032acdae159679f6cbb3cbafc284fc9328e78b | 2b167e29ba07e9f577c20c54cb943861d0ccfa69 | /numerical_analysis_backup/large-scale-multiobj2/core-arch5-guard0-beta0-hebbe/pareto22.py | 692a6b356203507134c30bfa32a047886c955df9 | [] | no_license | LiYan1988/kthOld_OFC | 17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f | b1237577ea68ad735a65981bf29584ebd889132b | refs/heads/master | 2021-01-11T17:27:25.574431 | 2017-01-23T05:32:35 | 2017-01-23T05:32:35 | 79,773,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 15:15:10 2016
@author: li
optimize both throughput and connections
"""
#import sys
#sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs')
import csv
from gurobipy import *
import numpy as np
from arch5_decomposition_new import Arch5_decompose
np.random... | [
"li.yan.ly414@gmail.com"
] | li.yan.ly414@gmail.com |
fb43dc876e2f762f42c5396e681722293e9a7336 | 2136701f48ad131084b331039d864f85988cf451 | /spider/work/media_huanan/somenew/lianx.py | d8ef18f5c0cd612306d8247fd472acfc76ff35da | [] | no_license | cuiyulin77/other | 9d374a47d482f1c3f9ef0f3ac4429487643b04b9 | c00cafaf7607452966fa523c4d0b04edb7f153e6 | refs/heads/master | 2020-05-18T04:24:26.095929 | 2019-04-30T06:37:53 | 2019-04-30T06:37:53 | 184,169,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | #!/usr/bin/env python
#coding=utf-8
import math
import datetime
# 求输入数字的平方,如果平方运算后小于 50 则退出。
a = [1,2,3,None,(),[],]
print(len(a))
| [
"494658565@qq.com"
] | 494658565@qq.com |
31a3e0cf7a4a431f28026adcbb49b2cd91cda1ac | 06292f96cba132ca57777672a447cfff7c5abee6 | /week6/programingCode/tempCodeRunnerFile.py | 63170c4ed1afb3642715d8c76ff8c18328b4aac2 | [] | no_license | kietteik/ppl | 1746440b12affe71e67d6f958922b32b1fdaab5c | 2ee60582e81595b8d8b5d0f8212d20151cfe9264 | refs/heads/master | 2023-03-01T00:24:36.969189 | 2021-01-31T05:15:13 | 2021-01-31T05:15:13 | 305,802,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py |
# class Program(): # decl:list(VarDecl)
# def __init__(self, decl: list):
# self.decl = decl
# def __str__(self):
# result = ''
# for i in self.decl:
# result += str(i)
# return result | [
"kietteikdoi@gmail.com"
] | kietteikdoi@gmail.com |
cd18e964a0d1a44e894db37dae495e69272fd6aa | 6d9dc23f633c348e236a6ee6cdc570d42538e1d3 | /RNN_SENTIMENT_ANALYSIS/app.py | effc437fee1d6f5951232c45ceeba880fa3a6321 | [] | no_license | chutianwen/TensorflowProjects | 4358c78339242cf91a7960a5cfd411386ccef158 | 989799c17fc30b9066d393e39e48c3e685762cf2 | refs/heads/master | 2022-11-19T07:38:27.513214 | 2017-08-17T16:23:02 | 2017-08-17T16:23:02 | 98,471,862 | 0 | 1 | null | 2022-10-30T09:09:49 | 2017-07-26T22:51:32 | Python | UTF-8 | Python | false | false | 392 | py | from DataCenter import DataCenter
from NeuralNetworks import NeuralNetworks
from helper import logger
if __name__ == "__main__":
logger.info("Start Job...")
inputs, targets = DataCenter().run()
neural_network = NeuralNetworks(inputs, targets, split_fraction=0.8, embed_size=300, lstm_size=256)
neural_n... | [
"tianwen.chu@fedcentric.com"
] | tianwen.chu@fedcentric.com |
60e8638d2776990bc2d045d7c33443dfe98f85cd | 5c84124e6ffdbb3a1e787a8ecd1e2a1117220b0d | /.history/pwd_20210906062146.py | b459d8cfaf8973382738cfcc2ab3b0412f5a8b9b | [
"MIT"
] | permissive | GraceOswal/Password-Locker | d96eecf442817ee9b490050629ceb43463a7c508 | 57da03c46e4044bea681e59c56bcb9ed3a79db71 | refs/heads/master | 2023-07-28T01:45:59.916339 | 2021-09-07T14:11:10 | 2021-09-07T14:11:10 | 403,255,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,230 | py | #!/usr/bin/env python3.8
from passlock import User, Credentials
def create_new_user(username,password):
'''
Function to create a new user with a username and password
'''
new_user = User(username,password)
return new_user
def save_user(user):
'''
Function to save a new user
'''
u... | [
"graceoswal88@gmail.com"
] | graceoswal88@gmail.com |
03c525fd35aa0c4182bda9145a3898b30d4a19ef | 666e6233275d23dda84a24fa55aa38243ec91536 | /src/toolshelf/commands/export.py | 7f81a7aaf33328b38b0a8435162e49d687fbbe2c | [
"MIT"
] | permissive | catseye/toolshelf | 5f4dbf8902ddbe4c3fcb2d240fc5b3a977ed2cb0 | d597455a57610d34658fa37a3ec8c780996cd65f | refs/heads/master | 2020-12-24T06:02:39.836314 | 2017-05-31T13:42:36 | 2017-05-31T13:42:36 | 4,310,103 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | """
Clones a copy of each of the docked sources to the output directory.
"""
import os
from toolshelf.toolshelf import BaseCommand
class Command(BaseCommand):
def perform(self, shelf, source):
dest_dir = os.path.join(shelf.options.output_dir, source.name)
if os.path.isdir(dest_dir):
s... | [
"cpressey@catseye.tc"
] | cpressey@catseye.tc |
cb1ec24121ab1f31ef277322946d8eec1aa5b992 | 6d5fcd3a46cf5a1d5480b84ee82c41b3a7283b65 | /0x02-python-import_modules/4-hidden_discovery.py | 1c6580426e030966f5472c01b8267b92f86854f9 | [] | no_license | Nesgomez9/holbertonschool-higher_level_programming | f8e6fa39d9c68e60ddd9e0082b3b83e891e8620e | b7b22d0f28eed0953fafff941c9100c9970a2336 | refs/heads/master | 2020-09-29T02:08:56.666164 | 2020-06-24T02:23:42 | 2020-06-24T02:23:42 | 226,923,230 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | #!/usr/bin/python3
if __name__ == '__main__':
import hidden_4
for names in dir(hidden_4):
if not names.startswith("__"):
print("{}".format(names))
| [
"nicolico99@hotmail.com"
] | nicolico99@hotmail.com |
ebcc3de6d4b8d32edb27c970840beace7f2cb26a | 836693663046321e9f77e998d85c76bf43e4230c | /examples/flask/catch_specific_exception/app.py | 1d27328c9eeb46585742fe2e054f5d3e43594c77 | [] | no_license | szabgab/code-maven.com | 6364be5c1f86a61a6fdb97480f78a0e1dcb87f1d | 1dc8fc34776a53e6ada24e2be8e27292667f873c | refs/heads/main | 2023-09-03T02:53:14.972731 | 2023-08-28T15:19:01 | 2023-08-28T15:19:01 | 29,928,137 | 33 | 66 | null | 2023-09-14T17:20:31 | 2015-01-27T18:25:22 | HTML | UTF-8 | Python | false | false | 626 | py | from flask import Flask
import datetime
app = Flask(__name__)
@app.errorhandler(Exception)
def server_error(err):
app.logger.exception(err)
return "Some general exception", 500
@app.errorhandler(ZeroDivisionError)
def server_error(err):
app.logger.exception(err)
return "Cannot divide by 0", 500
@a... | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
b1ecbcd7d4a10ba5f6e3d439d80f03e8ff4a2952 | 25ef6e5d6e8a8a88001e0776c105c286af89ec84 | /vclurk/git_updater.py | 279aa669c12f37c7aef0aa5aa2636d1b9653f8fe | [
"MIT"
] | permissive | takluyver/vclurk | 02178aba13e8590207ffae9677f613209803081e | e966bfef32c19a8db41247453d51685d3ae3a1dd | refs/heads/master | 2023-06-19T18:51:34.795414 | 2016-03-03T17:42:13 | 2016-03-03T17:42:13 | 49,457,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | import asyncio
import os
import re
cmd = asyncio.create_subprocess_exec
@asyncio.coroutine
def fetch(repo, remote='origin', loop=None):
proc = yield from cmd('git', 'fetch', remote,
stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.STDOUT,
loop=loop)
branch_update_re = r... | [
"thomas@kluyver.me.uk"
] | thomas@kluyver.me.uk |
2a42bcf9cf29b899620fa6d68b47bcfd1ec87b8d | d5cc0c9f8d94e9d020b3e50c0a125d2041dd3baa | /AttendifySite(Flask)/env/lib/python3.6/site-packages/turicreate/_scripts/_pylambda_worker.py | e3de600ada2ae158dff4a7bfb3d538469ca378e5 | [
"MIT"
] | permissive | arnavgup/Attendify_iOS | be896579de4560cff36a4b163384d0eeabbb7dd9 | c2efc3273a7b99c09d918567718ac87d7f0179d8 | refs/heads/master | 2022-10-31T13:16:11.081902 | 2018-12-09T00:11:42 | 2018-12-09T00:11:42 | 158,432,022 | 3 | 2 | MIT | 2022-10-10T10:53:53 | 2018-11-20T18:10:16 | Swift | UTF-8 | Python | false | false | 6,137 | py | # -*- coding: utf-8 -*-
# Copyright © 2017 Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can
# be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
from __future__ import print_function as _
from __future__ import division as _
from... | [
"gyao@andrew.cmu.edu"
] | gyao@andrew.cmu.edu |
1e4a110186b5c369644d1ee9dec788321b4dea3b | d1fb8bb087564052674cb33ac6d75daca4ae586a | /Databricks/doc13. Domain Click.py | b9cd10be769f754f7ea7b941dc1366265b56ea0e | [] | no_license | YunsongZhang/lintcode-python | 7db4ca48430a05331e17f4b79d05da585b1611ca | ea6a0ff58170499c76e9569074cb77f6bcef447a | refs/heads/master | 2020-12-24T03:05:43.487532 | 2020-01-30T19:58:37 | 2020-01-30T19:58:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | # 第一题:给广告在每个domain上被click的次数. 1point3acres.com/bbs
# 要求返回domain及其所有sub domain 被click的总次数
# 输入:[
# ["google.com", "60"],
# ["yahoo.com", "50"],
# ["sports.yahoo.com", "80"]
# ]
# 输出:[
# ["com", "190"], (60+50+80)
# ["google.com", "60"],
# ... | [
"haixiang6123@gmail.com"
] | haixiang6123@gmail.com |
afb85d189ed4e51fabba831a28772f9c826e94f0 | 6bbf2b1d9a2118901ee91c223b2a4ed929e760dd | /setup.py | 4cb4ffce7cc3ad25ac2edb75ebc5db8f56373536 | [
"ISC"
] | permissive | pgq/python-skytools | 35c0b0cdf9639b1b82248551e759cc8224256905 | 0b846b65de4090228355a8494a3c731480f6dfbe | refs/heads/master | 2023-08-30T22:23:24.381848 | 2023-08-27T14:45:39 | 2023-08-27T14:45:39 | 60,341,358 | 8 | 4 | ISC | 2021-04-15T17:58:05 | 2016-06-03T10:57:37 | Python | UTF-8 | Python | false | false | 883 | py | """Setup for skytools module.
"""
from typing import Tuple
from setuptools import Extension, setup
try:
from wheel.bdist_wheel import bdist_wheel
class bdist_wheel_abi3(bdist_wheel):
def get_tag(self) -> Tuple[str, str, str]:
python, abi, plat = super().get_tag()
if python.star... | [
"markokr@gmail.com"
] | markokr@gmail.com |
48001f2411eaed579ca271112a18b008eb91cdc2 | 13c57575ee72e4dfa6c798173232aeffedb110a2 | /tensorflow_probability/python/distributions/mvn_diag_plus_low_rank_covariance_test.py | 6d76f9e966f9805a1597fb02e62c69c0eb691a91 | [
"Apache-2.0"
] | permissive | MBounouar/probability | 5599f11d68742c707e37d79f7939c982f5579fa1 | 4fb2e2876ae4a1f37619602def29f2092746938f | refs/heads/master | 2022-09-19T20:37:45.515837 | 2022-08-30T18:53:48 | 2022-08-30T18:55:03 | 180,814,080 | 0 | 0 | null | 2019-04-11T14:50:14 | 2019-04-11T14:50:14 | null | UTF-8 | Python | false | false | 2,588 | py | # Copyright 2021 The TensorFlow Probability 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 applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
1621bab385f9b227be860340ad5ea99640fcd96b | 4df32cdc140f3a15c9a540787241c513ff4652a4 | /exercicios_resolvidos3/exercicios3/capitulo 08/exercicio-08-04.py | af3fd098296a9deb6dd4cc174b53f5382bccf5c0 | [
"MIT"
] | permissive | tiagosm1/Python_Nilo_Ney | 04039c4a9294d480b0493d71e46cc850168c5365 | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | refs/heads/main | 2023-02-18T22:07:46.696674 | 2020-12-23T11:27:30 | 2020-12-23T11:27:30 | 317,965,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2020
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"72826762+tiagosm1@users.noreply.github.com"
] | 72826762+tiagosm1@users.noreply.github.com |
ff62a00479ce55ad8b065a4c0d727dc50b63ba66 | 3f763cf893b09a3be562858613c928703ff349e4 | /client/verta/verta/_bases/_lazy_list.py | 3bf29347e9ffbc2ddd98057268799fc879c4b230 | [
"Apache-2.0"
] | permissive | VertaAI/modeldb | 636e46fc025b01a514d599b10e228c8735503357 | ec9ac7712500adb13fd815dfd476ce9f536c6921 | refs/heads/main | 2023-08-31T00:45:37.220628 | 2023-08-30T18:45:13 | 2023-08-30T18:45:13 | 71,305,435 | 844 | 142 | Apache-2.0 | 2023-09-14T19:24:13 | 2016-10-19T01:07:26 | Java | UTF-8 | Python | false | false | 5,162 | py | # -*- coding: utf-8 -*-
import abc
import copy
import re
from verta._vendored import six
from verta._protos.public.common import CommonService_pb2 as _CommonCommonService
from verta._internal_utils import _utils
from ._paginated_iterable import _PaginatedIterable
@six.add_metaclass(abc.ABCMeta)
class _LazyList(_Pa... | [
"noreply@github.com"
] | VertaAI.noreply@github.com |
ee07a99a6d0fcdbd4ddf5a395a3e9e9e22358b36 | b1303152c3977a22ff9a0192c0c32310e65a6d77 | /python/714.best-time-to-buy-and-sell-stock-with-transaction-fee.py | cf7c8f9563fafb0bb75c761a12820a7db0927196 | [
"Apache-2.0"
] | permissive | stavanmehta/leetcode | 1b8da1c2bfacaa76ddfb96b8dbce03bf08c54c27 | 1224e43ce29430c840e65daae3b343182e24709c | refs/heads/master | 2021-07-15T16:02:16.107962 | 2021-06-24T05:39:14 | 2021-06-24T05:39:14 | 201,658,706 | 0 | 0 | Apache-2.0 | 2021-06-24T05:39:15 | 2019-08-10T16:59:32 | Java | UTF-8 | Python | false | false | 86 | py | class Solution:
def maxProfit(self, prices: List[int], fee: int) -> int:
| [
"noreply@github.com"
] | stavanmehta.noreply@github.com |
583b4ded93cb4d822ed5868a71142760cd5afa1a | ab32e6384b7c679a327a4bf1df6dd24c058b78a5 | /notifications/tasks.py | 2adaa9480ae47e68866ea144fca2ebf67f8ca41a | [] | no_license | webmaxdev0110/digi-django | ad2497791d6d3b6aa74eb697dd7eef324ebb5846 | 4cd52c07bb64e9d9381a957323d277489a02181a | refs/heads/master | 2020-03-23T13:37:12.600565 | 2017-07-10T10:23:15 | 2017-07-10T10:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from celery.task import task
from notifications.apis import (
send_sms_message,
send_email,
)
from emondo.celery import app
@app.task
def send_one_off_sms_message(number, text, provider='plivo'):
send_sms_message(number, text, provider)
@app.task
def send_one_off_email(subject, to_address, text_email='... | [
"webmax0110.dev@gmail.com"
] | webmax0110.dev@gmail.com |
90cf8c8487511fb51a0d87d1f80bc09bfec4cfa9 | bf3c0b0b2f5eed28043caa155f001bb656ed41a5 | /softboxen/cli/factory.py | 9105b002614fa04acbd3e81a399d590a9b1287d9 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | etingof/softboxen | 0787a004f13d7f3d19f4cbf090e55bc229b8470a | 2a7ba85669d563de9824e3962bd48a0849482e3f | refs/heads/master | 2023-03-27T16:56:14.460474 | 2020-04-18T12:30:11 | 2020-04-18T12:30:11 | 239,087,167 | 3 | 1 | BSD-2-Clause | 2020-06-26T06:50:37 | 2020-02-08T07:29:53 | Python | UTF-8 | Python | false | false | 1,814 | py | #
# This file is part of softboxen software.
#
# Copyright (c) 2020, Ilya Etingof <etingof@gmail.com>
# License: https://github.com/etingof/softboxen/LICENSE.rst
#
import logging
import pkg_resources
from softboxen import exceptions
from softboxen.cli import base
LOG = logging.getLogger(__name__)
def load_clis(na... | [
"etingof@gmail.com"
] | etingof@gmail.com |
46bcae099dc6c2df71f1f3423bbad3125de17812 | cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98 | /leet/facebook/strings_arrays/word_search_II.py | 9a5b2a87f27666d1e9fbe21863e5a043186632cd | [] | no_license | arsamigullin/problem_solving_python | 47715858a394ba9298e04c11f2fe7f5ec0ee443a | 59f70dc4466e15df591ba285317e4a1fe808ed60 | refs/heads/master | 2023-03-04T01:13:51.280001 | 2023-02-27T18:20:56 | 2023-02-27T18:20:56 | 212,953,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | # Algo
# we compose trie structure from the given words
# iterating over board we see if the current letter in trie (actually in top trie level)
# if it is there we start to check the current letter's neighbors
#
class Solution:
def findWords(self, board: list, words: list) ->list:
WORD_KEY = '$'
#... | [
"ar.smglln@gmail.com"
] | ar.smglln@gmail.com |
901e47633adbb48416c6738f022caedf50bd4a0d | 633944f913050debf0764c2a29cf3e88f912670e | /v8/depot_tools/bootstrap-3.8.0b1.chromium.1_bin/python3/lib/python3.8/encodings/hz.py | 4cdc66f6b63a0048afa2ceefe4b8a95ee21db32c | [
"BSD-3-Clause",
"bzip2-1.0.6",
"SunPro",
"Apache-2.0"
] | permissive | bopopescu/V8-lgtm | 0474c2ff39baf754f556ef57619ceae93e7320fd | da307e2f7abfca5fa0e860a809de6cd07fd1b72b | refs/heads/master | 2022-02-16T19:10:54.008520 | 2019-09-25T07:51:13 | 2019-09-25T07:51:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | ../../../../.cipd/pkgs/2/_current/lib/python3.8/encodings/hz.py | [
"jundong.xjd@antfin.com"
] | jundong.xjd@antfin.com |
9ad3bb942c48d0b266d9162b6b18e49ac86ffea5 | b49a40b66b7870c9b6bde6ffc3e1d9dc839ba3f5 | /Audiobook.py | 7534f99e3415ddbf764ef264c4de1393e60dd621 | [
"MIT"
] | permissive | Ash515/DigitalGyan | e0c6a68d891a401f6481ff5f28d2d92408e2deff | be7f4a92876d722c1d22db294a65cb0d52a59e1c | refs/heads/master | 2023-05-05T10:10:51.870556 | 2021-05-27T04:38:55 | 2021-05-27T04:38:55 | 300,318,166 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | import pyttsx3
import PyPDF2
book=open('unit 3.pdf','rb')
pdfReader=PyPDF2.PdfFileReader(book)
pages=pdfReader.numPages
print(pages)
speaker = pyttsx3.init()
for num in range(0,pages):
page = pdfReader.getPage(0)
text = page.extractText()
speaker.say(text)
speaker.runAndWait() | [
"noreply@github.com"
] | Ash515.noreply@github.com |
8f77ec31158fe4efaae7ff58bad1a14edb0afd5f | 5a2349399fa9d57c6e8cc6e0f7226d683391a362 | /src/qt/qtwebkit/Tools/Scripts/webkitpy/port/test.py | 76fea3ba182853f4d5badf54248a7a2d51a84557 | [
"BSD-3-Clause"
] | permissive | aharthcock/phantomjs | e70f3c379dcada720ec8abde3f7c09a24808154c | 7d7f2c862347fbc7215c849e790290b2e07bab7c | refs/heads/master | 2023-03-18T04:58:32.428562 | 2023-03-14T05:52:52 | 2023-03-14T05:52:52 | 24,828,890 | 0 | 0 | BSD-3-Clause | 2023-03-14T05:52:53 | 2014-10-05T23:38:56 | C++ | UTF-8 | Python | false | false | 26,286 | py | # Copyright (C) 2010 Google Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this list of conditions and the ... | [
"ariya.hidayat@gmail.com"
] | ariya.hidayat@gmail.com |
d7ab171309f6b8a17d2ab04a1f6af7364abeedcb | 80ea4c1ce04ee8e0ecd85ee71f8bffdbcbd368aa | /user_profiles/test_forms.py | 2dfc9fa54d4e7caff0cd02a37d1410919b71ebf0 | [
"MIT"
] | permissive | Oswaldinho24k/geo-csv | 659ad24f5e8bcecc869143a61e58b38260cc1901 | 0100435c5d5a5fd12133b376b305e8fa79ddb8f0 | refs/heads/master | 2020-03-15T21:20:34.095967 | 2018-05-06T15:45:34 | 2018-05-06T15:45:34 | 132,353,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,364 | py | from django.test import TestCase
from .factories import ClientFactory
from .forms import DeleteClientForm
from .models import Client
class ClientFormsTest(TestCase):
""" Suite to test the forms related to the Client model.
Attributes:
-----------
self.client : Client
Client model to be used ... | [
"oswalfut_96@hotmail.com"
] | oswalfut_96@hotmail.com |
a6fe43204939b4dc2440954b91011d03f96540ec | 103f62c1d60dafaaf0e150b2a7d5274de16316f2 | /python/geometry/lines.py | 5910b8c8346437407c36af1aaf1ef4996738edde | [] | no_license | bichael-b-biggins/notebook | 7bb477b9c811e16bf812f530e55a447be5bf632b | bc1203f631c67d308f9f2d87ebead4a090229d7b | refs/heads/master | 2020-04-02T08:04:53.888131 | 2018-11-24T09:17:24 | 2018-11-24T09:17:24 | 154,228,395 | 4 | 1 | null | 2018-11-24T09:17:25 | 2018-10-22T22:58:14 | Python | UTF-8 | Python | false | false | 426 | py | # Return true if line segments (x1, y1)->(x2, y2) and (x3, y3)->(x4, y4)
# intersect.
def intersect(x1, y1, x2, y2, x3, y3, x4, y4):
denom = ((x1 - x2) * (y3 - y4)) - ((y1 - y2) * (x3 - x4))
if denom == 0:
return False
x = (((y1 - y3) * (x4 - x3)) - ((x1 - x3) * (y4 - y3))) / denom
y = (((y1 - y... | [
"iandioch11@gmail.com"
] | iandioch11@gmail.com |
0a7a30b9a635bf519a7e7b65be3c657cb25232bf | 120cf0958e68ac4ec08b35e2df5c63874949d823 | /U-net/whole.py | e00a31922b00b669d66b536c3eabfe4f22a6ce19 | [] | no_license | CheungBH/human_segment | d3ad5ee0e270dd65458e61e26e371b70daea14ce | 5171a688eba4fa1f4a91e4acc09e15657570f41e | refs/heads/master | 2020-07-26T00:47:37.675904 | 2019-09-14T17:19:48 | 2019-09-14T17:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,117 | py | from keras.preprocessing.image import ImageDataGenerator
from matplotlib import pyplot as plt
import numpy as np
import os
import cv2
data_gen_args = dict(featurewise_center=False,
featurewise_std_normalization=False,
rescale=1 / 255.0,
rotation_range=90,
... | [
"534660436@qq.com"
] | 534660436@qq.com |
869989766c8c6fe7628501ec3aa4380702ca898f | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/dataproc/v1beta2/dataproc-v1beta2-py/google/cloud/dataproc_v1beta2/types/autoscaling_policies.py | 7e7fd933c78ba6b69fa4f7d2973a9e276f657e53 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,048 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
575da726359126eb649499bd105c64175a24bba5 | c53b3e120c59557daaa2fa5b7626413105eb5965 | /tendenci/apps/newsletters/urls.py | dff0014245a5639b314c3e1197430e94c005e09b | [] | no_license | chendong0444/ams | 8483334d9b687708d533190b62c1fa4fd4690f2c | f2ac4ecc076b223c262f2cde4fa3b35b4a5cd54e | refs/heads/master | 2021-05-01T03:59:18.682836 | 2018-07-23T06:33:41 | 2018-07-23T06:33:41 | 121,194,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,059 | py | from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required
from tendenci.apps.site_settings.utils import get_setting
from tendenci.apps.newsletters.views import (
NewsletterGeneratorView,
NewsletterListView,
NewsletterGeneratorOrigView,
MarketingActionStepOneVi... | [
"chendong@shinezone.com"
] | chendong@shinezone.com |
c091b39d4525b9db3c9abbeb5c009f616ec63c24 | fe19d2fac4580d463132e61509bd6e3cc2cf958d | /toontown/coghq/DistributedBarrelBase.py | 2fc0458ee77964caddae988a8c25ed6859fa4be9 | [] | no_license | t00nt0wn1dk/c0d3 | 3e6db6dd42c3aa36ad77709cf9016176a3f3a44f | 7de105d7f3de0f8704b020e32fd063ee2fad8d0d | refs/heads/master | 2021-01-01T16:00:15.367822 | 2015-03-21T21:25:52 | 2015-03-21T21:25:55 | 32,647,654 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,379 | py | # 2013.08.22 22:18:26 Pacific Daylight Time
# Embedded file name: toontown.coghq.DistributedBarrelBase
from pandac.PandaModules import *
from direct.interval.IntervalGlobal import *
from toontown.toonbase.ToontownGlobals import *
from toontown.coghq import BarrelBase
from otp.level import BasicEntities
from direct.dire... | [
"anonymoustoontown@gmail.com"
] | anonymoustoontown@gmail.com |
8247a9da0754764be2b5901b7b9ade08a20ab871 | 5faafe0b6da50332d02859db2e6c92f27e599de3 | /le2m/creator/filestocopy/creator_Params.py | 19f63c499c7a2597a31ceb75c4b69bcca6d656c2 | [] | no_license | dimdub34/le2m-v2.1 | e2dc7e5d0ac9c422d65f08d8350c8be89ba266a5 | 97880d470b0f130250ca15ab153a945ab32f4969 | refs/heads/master | 2020-04-12T05:32:59.820746 | 2020-03-10T08:06:41 | 2020-03-10T08:06:41 | 50,585,248 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | # -*- coding: utf-8 -*-
"""=============================================================================
This modules contains the variables and the parameters.
Do not change the variables.
Parameters that can be changed without any risk of damages should be changed
by clicking on the configure sub-menu at the server s... | [
"dimitri.dubois@umontpellier.fr"
] | dimitri.dubois@umontpellier.fr |
07beeac2fd2fd66ca92952df4893c1a8676a6855 | 097a7cb751a7c5b311b11fea60278081c751dcc1 | /src/twisted/names/test/test_util.py | 88bf89313e4c894003a901419102b48fdead9f57 | [
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dchenk/twisted | b12449d968804ebd832d4a814e3fc858420b0e51 | 4a0ac6edba947c77ea95085e75f5b7bc7ddffb12 | refs/heads/master | 2021-07-24T15:59:39.735816 | 2020-08-24T23:12:15 | 2020-08-24T23:12:15 | 211,361,245 | 0 | 1 | NOASSERTION | 2019-10-02T18:36:33 | 2019-09-27T16:34:31 | null | UTF-8 | Python | false | false | 3,858 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Utilities for Twisted.names tests.
"""
from random import randrange
from zope.interface import implementer
from zope.interface.verify import verifyClass
from twisted.internet.address import IPv4Address
from twisted.internet.defer import su... | [
"dcherchenko@gmail.com"
] | dcherchenko@gmail.com |
9ce681261527b31056c3a785eef616df3b8f854f | ccf8e79c163965884973d26e8b3c0e4dfddba573 | /samples/old/qwb_block_2.py | 010ebc186bd3e2c5cb3fd3963adfa06f72dba2fd | [] | no_license | zhl2008/ctf-framework | 7a7842ef150a73da86cfef69c19132e7ad26647e | fb0a0c2af8a22f9d0506b678e61d6088902b7011 | refs/heads/master | 2018-11-21T21:31:17.908678 | 2018-11-08T15:02:31 | 2018-11-08T15:02:31 | 112,556,645 | 27 | 10 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | #!/usr/bin/env python
from framework.http import http
from framework.config import *
from framework.function import *
from urllib import quote
import traceback
import hashlib
import time
def vulnerable_attack(target,target_port,cmd):
try:
# This payload may not work under some ph... | [
"zhl2008vvvss@gmail.com"
] | zhl2008vvvss@gmail.com |
3bf9a736e4deaacb688d7f3bf7cccc0357980f70 | 364dbaa888d9b15568afb6239c53365c2bb22fa1 | /dependencies/jedi/evaluate/compiled/access.py | 182b934611114e4a9ceadabc647fd11b981c0621 | [
"MIT"
] | permissive | primitiveman/SublimeJEDI | 96117ce1f5365b94732f527ab991b0c11b6b37dc | 7e324d8f3f5ee15fb06193e4fde82eb465058397 | refs/heads/master | 2020-12-01T18:32:11.104872 | 2019-10-01T08:20:35 | 2019-10-01T08:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,339 | py | from __future__ import print_function
import inspect
import types
import sys
import operator as op
from collections import namedtuple
from jedi._compatibility import unicode, is_py3, builtins, \
py_version, force_unicode
from jedi.evaluate.compiled.getattr_static import getattr_static
ALLOWED_GETITEM_TYPES = (str... | [
"srusskih@users.noreply.github.com"
] | srusskih@users.noreply.github.com |
4c96174ebc58089a9f1463ea249a47bdb6de5e5d | dca0bd2e04dda3801d395c2a6ab2f9d95be79551 | /Python/PCC/Chapter5/Checking_usernames.py | e7e4cd558a512dbc9d16ac5fcb68c269bf28260f | [] | no_license | A-khateeb/Full-Stack-Development-Path | ab8c86abea2f983fb8e0046a65b99772416c754c | 5a5eaa198367cc95a6b5638e9740f4ad564dec23 | refs/heads/master | 2021-06-01T23:52:04.965494 | 2020-05-01T22:59:20 | 2020-05-01T22:59:20 | 89,286,943 | 2 | 0 | null | 2017-12-22T22:21:52 | 2017-04-24T21:04:07 | Shell | UTF-8 | Python | false | false | 320 | py | current_users = ["Ahmad","Ali","Muhammad","Mustafa","Afeef","Mahmoud","admin"]
new_users = ["Ahmad","Abdallah","Muhammad","Mustafa","Afeef","Malek","Ihab"]
for i in new_users:
if i not in current_users:
print("The username is available " + i)
else:
print("The username is already taken! " + i )
| [
"khateebafeef@gmail.com"
] | khateebafeef@gmail.com |
a49fcbaaea1d8f087b93f30983577092c83903fc | c34aed00b6678cddbdcc482d1de5e2404d84e399 | /specific-parts/specific-addons/todo_website/controllers/main.py | f136a69cf0489f726efae251e3e8f8d5d9db48c1 | [] | no_license | vonpupp/odoo-module-tutorial | 1cdd14acd2b38dca421b8805dbd6f40299b1c143 | 7f121ec30ad3186760242af29e36ae71f08fc948 | refs/heads/master | 2021-01-13T05:47:22.365701 | 2017-01-25T14:56:14 | 2017-01-25T14:56:14 | 76,273,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | # -*- coding: utf-8 -*-
from odoo import http
from odoo.http import request
class Main(http.Controller):
"""Controller example for the website frontend"""
@http.route('/todo', auth='user', website=True)
def index(self, **kwargs):
TodoTask = request.env['todo.task']
tasks = TodoTask.searc... | [
"vonpupp@gmail.com"
] | vonpupp@gmail.com |
3c014e22f91a361b86b2c7b8ddb21a0b3d604916 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /Cp3JRpooAqfA4kGkv_19.py | 19b50a9be2cf97fe5bdb374e4d29c418b9a3dcdf | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py |
def node_type(_N, _P, n):
if n not in _N:
return "Not exist"
root = _N.pop(_P.index(-1))
if n == root:
return "Root"
if n not in _P:
return "Leaf"
return "Inner"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e092d8ef6813a7f08e67419306fd8f9cb440e42c | c291ba4506a8998df8d7f384c911f6a0a1294001 | /bai__14/BaiTapOnTap.py | f7ad831db7d1fe2669a981a36e5850aa0b072488 | [] | no_license | thanh-falis/Python | f70804ea4a3c127dcb7738d4e7c6ddb4c5a0a9d4 | fa9f98d18e0de66caade7c355aa6084f2d61aab3 | refs/heads/main | 2023-08-18T17:34:29.851365 | 2021-09-30T12:09:30 | 2021-09-30T12:09:30 | 398,952,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Câu 6:
i1 = 2
i2 = 5
i3 = -3
d1 = 2.0
d2 = 5.0
d3 = -0.5
"""
# (a)
print(i1 + (i2 * i3))
# (b)
print(i1*(i2+i3))
# (c)
print(i1/(i2+i3))
# (d)
print(i1//(i2+i3))
# (e)
print(i1/i2+i3)
# (f)
print(i1//i2+i3)
# (g)
print(3+4+5/3)
# (h)
print(3+4+5//3)
# (i)
print((3+4+5)/3)
# (j)
print((3+4+5)//3)
# (k)
print(d1+(d2*d3... | [
"thanhelma2020|@gmail.com"
] | thanhelma2020|@gmail.com |
b2677d57e8a7c9937dab5dcc2632eaa7008766d7 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/tape_20200717144131.py | a63edc786fe75b7dfcc5959d2063e3c94f807983 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | def tape(A):
# goal is to find minimal abs difference
# so its i - i:len(A)
i = 0
min_diff = abs(A[0] - sum(A[1:]))
#
# print('min',min_diff)
if A != []:
while i < len(A)-1:
# print('i',sum(A[:i+1]),'sum',sum(A[i+1:len(A)]))
total = sum(A[:i+1]) - sum(A[i... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
c0584b07c9e0280cf8ba2d19ec64af96ca3b7083 | fb33b689b8ebd54695828dab3f9d1db074203d34 | /practice/hash/idiom/processers/analyze_data.py | 450c0edb3dbfe6f7a392c67498e6e5afa7b479a5 | [] | no_license | takumikaka/workspace | 471ab6e60d47f61ae36e4b95e8d58b0840188f65 | f72946ff5f46b549dfab51a0038f05478b301490 | refs/heads/master | 2021-05-06T11:58:24.334256 | 2019-03-22T08:32:18 | 2019-03-22T08:32:18 | 113,008,406 | 1 | 0 | null | 2018-02-23T12:28:54 | 2017-12-04T07:14:00 | Python | UTF-8 | Python | false | false | 1,120 | py | # -*- coding: utf-8 -*-
from processers.read_json import readJson
from processers.random_lst import randomLst
from processers.get_cwd import getCwd
import os
class analyzeData(object):
def __init__(self):
self.read_json = readJson()
self.random_lst = randomLst()
self.get_cwd = getCwd()
... | [
"qk2006qk@163.com"
] | qk2006qk@163.com |
91d87c8ca73af8fd333d8ab95ff60de0b5b34b72 | 5f5a7bdac85e6719ab52a60238869b7d30bb783a | /PDEnet_2.0/PDE-Net/burgerscomparecoeffs.py | 9304297d0cc47d8e9ffe52653907ace6aeef742b | [] | no_license | msaad1311/PDEs-using-NN | 3909aadee62d8eae3bc053dfee86126d48b2363c | cf536bb0d245982b72e4416ea329419e59baf1c9 | refs/heads/main | 2023-05-05T12:12:05.579726 | 2021-05-25T17:37:04 | 2021-05-25T17:37:04 | 338,437,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | """
compare coeffs
change name1, name2 to compare coeffs between different tasks
"""
#%%
from numpy import *
import torch
import matplotlib.pyplot as plt
import conf
name1 = 'burgers-2-upwind-sparse0-noise0.001-block6'
name2 = 'burgers-2-upwind-sparse0.005-noise0.001-block6'
D = []
D.append(torch.load('coeffs/burgers/'... | [
"50722220+msaad1311@users.noreply.github.com"
] | 50722220+msaad1311@users.noreply.github.com |
99834d084543a4413671e13997e6f4f547c16e90 | c166a041ced9adf232e71115430f64812b393f6e | /id0_rsa_api/settings.py | acc8edd7a237d7e2e1492ff322e2624e41909811 | [] | no_license | AntonKueltz/id0-rsa-api | 89f737d4436cf21b6b3c9db057f816f8c9c6f1bb | 969e95792f5c6bc9c93c77810d499d997dc3750c | refs/heads/master | 2020-04-04T12:41:05.583905 | 2018-11-08T04:06:38 | 2018-11-08T04:06:38 | 155,934,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | """
Django settings for id0_rsa_api project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import o... | [
"kueltz.anton@gmail.com"
] | kueltz.anton@gmail.com |
366deed5612692f4652d4461e37642154232950b | 6f1d2b0bca75be9c932b1728b4b050bb2741695e | /617.合并二叉树.py | 84eb32eb7da754e707696cd7540ee61dcf735fb9 | [] | no_license | yangyuxiang1996/leetcode | 8c529da7a5f432bf6f14847d1c063077d2034c2a | 6e18c5d257840489cc3fb1079ae3804c743982a4 | refs/heads/main | 2023-07-17T00:55:51.230915 | 2021-09-05T01:48:31 | 2021-09-05T01:48:31 | 372,850,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | #
# @lc app=leetcode.cn id=617 lang=python
#
# [617] 合并二叉树
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution(object):
def mergeTree... | [
"18310206637@163.com"
] | 18310206637@163.com |
f4f74a6135925ad676e078fcaf1f14d5f15aaa0b | 9b722ca41671eb2cea19bac5126d0920639261bd | /.history/app_20201124124938.py | 84043d99906150dcb6ba511a9e470856ba00b9d5 | [] | no_license | thawalk/db_flask_server | 7928fd481f99d30bdccc60d97f02db78324cfdbe | cd55f1c9bf84c734457ee02d9f64a6833e295fad | refs/heads/master | 2023-01-25T02:40:19.097457 | 2020-12-06T07:45:50 | 2020-12-06T07:45:50 | 314,229,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,032 | py | import json
import pymongo
from flask import Flask, jsonify, url_for, request, redirect,Response,Request
import pymongo
from bson.json_util import dumps
import mysql.connector
from werkzeug.serving import run_simple
import os
from dotenv import load_dotenv
import datetime
import time
app = Flask(__name__)
test_collec... | [
"akmal_hakim_teo@hotmail.com"
] | akmal_hakim_teo@hotmail.com |
3ba32113cda72d08e0694da4a0cfadcf459d90b3 | 5cb9dccbcccb8a2137368dd0615fe3e3c7761707 | /simulations/kinova/devel/lib/python2.7/dist-packages/moveit_msgs/msg/_ExecuteTrajectoryActionFeedback.py | 2b20c2ce416737bf3d9aa0e0c4a5d41c153b41c6 | [] | no_license | Simon-Steinmann/sim2real-modular-RL-project | b2467a393014e106043f6128a026f5eac934a83d | 4027590ac94de2d5c914731c09efcf2f318b9ca3 | refs/heads/master | 2020-07-29T01:30:56.450919 | 2019-10-12T09:33:00 | 2019-10-12T09:33:00 | 209,605,548 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | /home/acis/sim2real/simulations/kinova/devel/.private/moveit_msgs/lib/python2.7/dist-packages/moveit_msgs/msg/_ExecuteTrajectoryActionFeedback.py | [
"simon.steinmann91@gmail.com"
] | simon.steinmann91@gmail.com |
648ddc409c8ed36acc054ffd04a2b4416dbe707c | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Zaditen_eye_drops,_solution_SmPC.py | e09306706b68514baeacab499a15e04c83bace84 | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | {'_data': [['Common',
[['Eye',
u'\xf6gonirritation, \xf6gonsm\xe4rta, punktformig keratit, punktformiga korneala erosioner.']]],
['Uncommon',
[['Eye',
u'\xf6verg\xe5ende dimsyn omedelbart efter applicering, torrhetsk\xe4nsla i \xf6gat, \xf6gonlocksf\xf6r\xe... | [
"daro@daro-ThinkPad-X220.(none)"
] | daro@daro-ThinkPad-X220.(none) |
9e9be26a81f90f5bc078d187c0bc206dc59c6ca5 | b89ec2839b4a6bd4e2d774f64be9138f4b71a97e | /dataent/tests/test_exporter_fixtures.py | 9401ac1f0fcdad676f0f5352f2afe3f2b9801a4d | [
"MIT"
] | permissive | dataent/dataent | ec0e9a21d864bc0f7413ea39670584109c971855 | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | refs/heads/master | 2022-12-14T08:33:48.008587 | 2019-07-09T18:49:21 | 2019-07-09T18:49:21 | 195,729,981 | 0 | 0 | MIT | 2022-12-09T17:23:49 | 2019-07-08T03:26:28 | Python | UTF-8 | Python | false | false | 8,751 | py | # Copyright (c) 2015, Dataent Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import dataent
import dataent.defaults
from dataent.core.doctype.data_import.data_import import export_csv
import unittest
import os
class TestDataImportFixtures(unittest.TestCa... | [
"38303879+dataent@users.noreply.github.com"
] | 38303879+dataent@users.noreply.github.com |
ae23a58afcda2e7fe011528c728538bb6f2e4bbd | 0189fb41f64511eafb8bd4d5b42c484c1ae0f504 | /ibis/mapd/client.py | a436bc4f791688423f094a859b75fe77efca6f59 | [
"Apache-2.0"
] | permissive | tonyfast/ibis | e3cf327bd4f3860f22cbf010e19406e52ed89974 | 42944dc935c44f440a4442d3cdc6ded846de257e | refs/heads/master | 2021-06-01T15:21:54.389739 | 2019-01-31T14:25:51 | 2019-01-31T14:25:51 | 135,764,696 | 0 | 0 | Apache-2.0 | 2019-01-14T17:30:47 | 2018-06-01T21:24:22 | Python | UTF-8 | Python | false | false | 21,053 | py | from pkg_resources import parse_version
from ibis.client import Database, Query, SQLClient, DatabaseEntity
from ibis.mapd.compiler import MapDDialect, build_ast
from ibis.mapd import ddl
from ibis.sql.compiler import DDL, DML
from ibis.util import log
from pymapd.cursor import Cursor
try:
from pygdf.dataframe impo... | [
"cpcloud@gmail.com"
] | cpcloud@gmail.com |
5c43f269b621461f5af26cbf2b55d627d13bd022 | c89f5856fe74cff49a9d96dde9ed0117109e3845 | /A-bit-of-py/ds_str_methods.py | 68dcfe5013bed62b84b7d14920cc44b99fdda50a | [] | no_license | sinoclover/python | b2b3f435d15840ec16a34c62d50308bdfb9d6c3e | 02f5347bc8219f1df52486077adf0017fe6d5211 | refs/heads/master | 2020-08-27T22:14:20.672846 | 2019-12-01T13:27:42 | 2019-12-01T13:27:42 | 158,791,898 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | # 这是一个字符串对象
name = 'Swaroop'
if name.startswith('Swa'):
print('Yes, the string starts with "Swa"')
if 'a' in name:
print('Yes, it contains the string "a"')
if name.find('war') != -1:
print('Yes, it contains the string "war"')
delimiter = '_*_'
mylist = ['Brazil', 'Russia', 'India', 'China']
print(delim... | [
"zzxy123007@163.com"
] | zzxy123007@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.