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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
453b93fc1b6f3e0f8ee45cf3702ee4dbb7370a83 | 4d6975caece0acdc793a41e8bc6d700d8c2fec9a | /leetcode/963.three-equal-parts/963.three-equal-parts.py | ac79ab4d212a72437194a3c510f1cb0e9831a6e0 | [] | no_license | guiconti/workout | 36a3923f2381d6e7023e127100409b3a2e7e4ccb | 5162d14cd64b720351eb30161283e8727cfcf376 | refs/heads/master | 2021-08-03T10:32:02.108714 | 2021-07-26T04:38:14 | 2021-07-26T04:38:14 | 221,025,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py | class Solution:
def threeEqualParts(self, arr: List[int]) -> List[int]:
| [
"guibasconti@gmail.com"
] | guibasconti@gmail.com |
2e61a75b1f3159a26f99c6856de297e1936462a3 | 8310622d9f504b6ffdac62b57727afbc0af9992e | /problems/problems@101~200/problem_162/Hexadecimal_numbers.py | 0ab26d0339b45f05f153ada5056add6219c8610c | [] | no_license | smsxgz/euler_project | aba61131682d04ee614167181e7d77e979db7e02 | df373a5cdf2c3c106763ee2c25671f85f9ec3a9b | refs/heads/master | 2023-02-22T12:00:24.801942 | 2023-02-04T13:23:27 | 2023-02-04T13:23:27 | 98,957,903 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | n = 0
for k in range(3, 17):
m = 15 * 16**(k - 1) - (15**k + 2 * 14 * 15**
(k - 1)) + (2 * 14**k + 13 * 14**(k - 1)) - 13**k
if k == 3:
print(m)
n += m
print(hex(n))
| [
"smsxgz@gmail.com"
] | smsxgz@gmail.com |
123ef74cbbbc9c71c0e72270501ad9436e4674cf | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /models/research/swivel/wordsim.py | 439d093f11de75607754632fc84a7d4dea95747e | [
"Apache-2.0"
] | permissive | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 2,517 | py | #!/usr/bin/env python
#
# Copyright 2016 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 require... | [
"gmonkman@mistymountains.biz"
] | gmonkman@mistymountains.biz |
5f0f0571c66281c5a92ae6f76a226bf6109f2588 | 5515b79ab3dc12f9b5117bd9c3beb39fbad198cc | /middlewares/__init__.py | 5aad822c19c4ed2df42ad9f60452ce62891f688d | [] | no_license | Chenger1/SwipeTelegramBot | 17904eb44776052938da18a452594ef6ae9313eb | 1ac4e86339aec3ae17b22a4d2c06001cd4b01c99 | refs/heads/main | 2023-07-14T05:56:11.596278 | 2021-08-18T12:31:58 | 2021-08-18T12:31:58 | 388,511,755 | 0 | 0 | null | 2021-08-08T22:19:24 | 2021-07-22T15:32:36 | Python | UTF-8 | Python | false | false | 488 | py | from aiogram import Dispatcher
from data.config import I18N_DOMAIN, LOCALES_DIR
from loader import dp
from .throttling import ThrottlingMiddleware
from .language import ACLMiddleware
def setup_middleware():
# Устанавливаем миддлварь
i18n_ = ACLMiddleware(I18N_DOMAIN, LOCALES_DIR)
dp.middleware.setup(i18... | [
"exs2199@gmail.com"
] | exs2199@gmail.com |
c187a7a01c74659a57be0805011863c63eec89f1 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-deh/huaweicloudsdkdeh/v1/model/batch_delete_dedicated_host_tags_request.py | d10a3ef88aa3aa3ffda7173164316f9be54b17ed | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,519 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class BatchDeleteDedicatedHostTagsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
a054496745bb40792965f65968850a5df725cb90 | cf59d92614a3505aeed9455482ef327572578228 | /venv/bin/jupyter-troubleshoot | 2f72a7c774175ff127ffcad344d20be8894ef2f4 | [
"MIT"
] | permissive | slarkjm0803/autobets | e1d1a3b00cf94ee90fd1fed7464431677b4f9e11 | f92a5d999acaf5d7c83ca2768a260c2282eabbee | refs/heads/master | 2020-09-23T21:40:46.057648 | 2019-11-29T11:42:37 | 2019-11-29T11:42:37 | 225,591,526 | 1 | 0 | MIT | 2019-12-03T10:22:21 | 2019-12-03T10:22:20 | null | UTF-8 | Python | false | false | 262 | #!/Users/mac/PycharmProjects/autobets/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.troubleshoot import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mac@macs-MacBook-Pro.local"
] | mac@macs-MacBook-Pro.local | |
2bbf8c99ea9aaba3001ad14fe8ab365dc25d0f5d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_joshes.py | 899a037817f7722c99dc8c579c857e84046b438a | [
"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 | 226 | py |
from xai.brain.wordbase.verbs._josh import _JOSH
#calss header
class _JOSHES(_JOSH, ):
def __init__(self,):
_JOSH.__init__(self)
self.name = "JOSHES"
self.specie = 'verbs'
self.basic = "josh"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5795e4bfa392c6ec404a4e3cc63f74cba6c53480 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/videoanalyzer/azure-mgmt-videoanalyzer/azure/mgmt/videoanalyzer/aio/operations/_operation_results_operations.py | c5156f79a9bc2d390f074d3850fb41f3b4cff510 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 5,316 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
1e6b0f2307a497e5e53ec48c5671ce7a0188ec39 | bef3a5af16d50e68db158a906fbfdb323d7d0733 | /scripts/do_scatters.py | c3f208da50821f2cd63dc4e2d4abde280aff3450 | [] | no_license | flaviovdf/competition-models | 413a29054ec77e5a093ca1eb4e6ec112b1b95728 | 6b52b082f93145921b5b17de718aa6316d2b1c40 | refs/heads/master | 2020-07-04T09:15:21.940045 | 2015-12-28T16:44:42 | 2015-12-28T16:44:42 | 20,268,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,591 | py | #!/usr/bin/env python
from __future__ import division, print_function
from sklearn import linear_model
from matplotlib import pyplot as plt
import numpy as np
import plac
def main(ids_fpath, rates_fpath, plays_fpath):
mb_to_name = {}
name_to_mb = {}
with open(ids_fpath) as f:
for line in f:
... | [
"flaviovdf@gmail.com"
] | flaviovdf@gmail.com |
c1a23830661aae1169a40e347d789f2684bf1e48 | 34e8d8702a26e33622ec9c1cf21f55abf910bd8c | /bw2io/extractors/csv.py | 8bd22371f76b60dc65e6eea2ad02655143102574 | [] | no_license | PascalLesage/brightway2-io | 72775595f8964a21b8c571db4dcdffc2e7b88329 | 3076770e1fd8b38fef31fa0e547facbcb6650cd8 | refs/heads/master | 2022-12-04T07:09:35.633060 | 2020-07-01T10:39:56 | 2020-07-01T10:39:56 | 285,389,011 | 0 | 0 | null | 2020-08-05T19:47:10 | 2020-08-05T19:47:09 | null | UTF-8 | Python | false | false | 373 | py | # -*- coding: utf-8 -*-
import os
import csv
class CSVExtractor(object):
@classmethod
def extract(cls, filepath):
assert os.path.exists(filepath), "Can't file file at path {}".format(filepath)
with open(filepath) as f:
reader = csv.reader(f)
data = [row for row in reade... | [
"cmutel@gmail.com"
] | cmutel@gmail.com |
40c830c44eb8d5a8f86678b190be3e83ca70d750 | 70ed0a22937378b923a77749df38a61b7c1f7add | /jagare/converter/commit.py | c81c5546394706c0bccdd70e64aa1a4f859a7cc8 | [] | no_license | tclh123/jagare-rpc | cffdee5e87b4ad00f0c33c58b5a00e3ad06a3eab | de12c8c5d540e90aeaa360fbe6254688ad4c08cd | refs/heads/master | 2021-01-15T09:37:28.232631 | 2014-06-04T16:22:15 | 2014-06-04T16:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | # coding: utf-8
"""
struct Commit {
1: required string type, # 'commit'
2: required string sha,
3: required list<string> parents, # shas
4: required string tree, # sha of the tree object attached to the commit
5: required Signature committer,
6: required Signature author,
7: required str... | [
"tclh123@gmail.com"
] | tclh123@gmail.com |
986fafde8562495ace1dfe67a159589060bca348 | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_restorabledroppeddatabase_info.py | 0d5b7fd4e73f119db9340d53142e7fc9283cfd6a | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 9,467 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
e8699382e8ae88507b27988b724c70ac96d54c2f | d57b51ec207002e333b8655a8f5832ed143aa28c | /.history/l3/dz/GameBot_20200620182301.py | 828c8db971f7acb419cae9d32967a89d315790f2 | [] | no_license | yevheniir/python_course_2020 | b42766c4278a08b8b79fec77e036a1b987accf51 | a152d400ab4f45d9d98d8ad8b2560d6f0b408c0b | refs/heads/master | 2022-11-15T07:13:24.193173 | 2020-07-11T15:43:26 | 2020-07-11T15:43:26 | 278,890,802 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,293 | py | import discord
import random
TOKEN = 'NzIzNTQzNDk1OTc2OTQzNjI2.XuzKbw.sVfmaFwGyA7agglqtgDdoUBKiDA'
list1 = []
client = discord.Client()
bot_player = {}
win_bot = []
win_bot.append(0)
win_player = []
win_player.append(0)
bot_player = {"Бот": win_bot,
"Игрок": win_player
}
first_c... | [
"yevheniira@intelink-ua.com"
] | yevheniira@intelink-ua.com |
a667310187aa30b7808931181ffd30a86d1be517 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-sddp/aliyunsdksddp/request/v20190103/DescribeDataLimitDetailRequest.py | 66a2e93d3f972d45756dd03fad798e75f38d411c | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,613 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
32037052f37c116da8781fdd7a71e71184b79a30 | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba1481.pngMap.py | ae9d5d4a691b6f1fcb1c427248bf9a0e98856ee1 | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba1481.pngMap = [
'11111111110000000000000000111111111111111111111111111111110000000000000000000000000000000000000111111111111111100000000000000000',
'11111111110000000000000000111111111111111111111111111111110000000000000000000000000000000000001111111111111111100001000000000000',
'1111111111000000000000000011111111111... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
db59a9d35475b939c95421a85a469899fb221212 | 2aac5c508641e0e9f8f7de9f0f7833a9b9107b10 | /source1/bsp/lumps/model_lump.py | 7f490ce65fed7db66830de55c7a8ce83b00cbe47 | [
"MIT"
] | permissive | half5life/SourceIO | 1d2e90a05706d9dd5721afd6501327e0c16a1160 | f3dc6db92daa537acbb487ce09f371866f6e3e7f | refs/heads/master | 2023-03-22T08:27:15.792325 | 2021-03-15T11:26:10 | 2021-03-15T11:26:10 | 345,146,708 | 0 | 0 | MIT | 2021-03-15T11:26:11 | 2021-03-06T16:56:37 | Python | UTF-8 | Python | false | false | 577 | py | from typing import List
from .. import Lump, lump_tag
from ..datatypes.model import Model, RespawnModel
@lump_tag(14, 'LUMP_MODELS')
class ModelLump(Lump):
def __init__(self, bsp, lump_id):
super().__init__(bsp, lump_id)
self.models: List[Model] = []
def parse(self):
reader = self.re... | [
"med45c@gmail.com"
] | med45c@gmail.com |
164bef8814cf463fbd8347f8ed0b69148afade9a | d92b87b49ccda07c1523769ad91bd07d319eaab1 | /toqito/states/chessboard.py | b88eb0ce9554bb8fdf8725d1f3ea871bade9a724 | [
"MIT"
] | permissive | ayazskhan/toqito | a965720d4f896d3e6727a08e3ed0f7cde4dc5c8f | 0846fb13bc25e82dc602f6184b8d5ecfcfcf8218 | refs/heads/master | 2022-12-25T22:50:27.313455 | 2020-09-28T16:24:16 | 2020-09-28T16:24:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,040 | py | """Chessboard state."""
from typing import List
import numpy as np
def chessboard(
mat_params: List[float], s_param: float = None, t_param: float = None
) -> np.ndarray:
r"""
Produce a chessboard state [BP00]_.
Generates the chessboard state defined in [BP00]_. Note that, for certain choices of
... | [
"vincentrusso1@gmail.com"
] | vincentrusso1@gmail.com |
ae73832910611ed728d4352f954d63507b078cd3 | ae3e09f8aa3c54a91d29833bed26de032ee1f0d6 | /C. Yuhao and a Parenthesis.py | 430da23202adc5eb6b9c026f95a960ff60d967dd | [] | no_license | thecodearrow/100-Days-Of-Code | c0604c8922cb4b9c9655bcf7db8fba6fa0a629d2 | 790ef030375340bf7824380775ee239557034836 | refs/heads/master | 2021-11-24T18:56:45.611895 | 2021-10-29T00:03:38 | 2021-10-29T00:03:38 | 118,704,025 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | #http://codeforces.com/contest/1097/problem/C
import sys
import math
from collections import defaultdict
def getInputFromLine():
return [int(x) for x in input().split()]
try:
sys.stdin = open('input.txt', 'r')
sys.stdout = open('output.txt', 'w')
except:
pass
def mirror(s):
s=s[::-1]
m=""
for ... | [
"you@example.com"
] | you@example.com |
65a607155c70bfe5aad3197898c156c38f26f59c | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/impl/lobby/awards/__init__.py | 465f87ba720e314ee0cbbb36c279e990182e8066 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 311 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/impl/lobby/awards/__init__.py
from shared_utils import CONST_CONTAINER
class SupportedTokenTypes(CONST_CONTAINER):
BATTLE_TOKEN = 'battleToken'
TOKENS = 'tokens'
PROGRESSION_XP_TOKEN = 'progressionXPToken'
| [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
67c3ed498ff90804fddcd1b5670e11105fde15f2 | 5acc20092ee93935594a7e0522924245a43e5531 | /feature_selection/plot_select_from_model_boston.py | 9f27a604d83a531bb95997cee1558fc059ba8a52 | [] | no_license | shengchaohua/sklearn-examples | aae2332c4382a57a70c1887777c125e6dc4579d6 | 1dac6a9b5e703185a8da1df7c724022fbd56a9e4 | refs/heads/master | 2020-05-05T01:19:20.037746 | 2019-10-18T08:55:01 | 2019-10-18T08:55:01 | 179,599,221 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import matplotlib.pyplot as plt
import numpy as np
from sklearn.datasets import load_boston
from sklearn.feature_selection import SelectFromModel
from sklearn.linear_model import LassoCV
# Load the boston dataset.
boston = load_boston()
X, y = boston.data, boston.target
# We use the base estimator LassoCV since the ... | [
"shengchaohua163@163.com"
] | shengchaohua163@163.com |
70f621d07f3916ead89774507c510d3cdc1fe1bd | 67f3ef9af94ad92677ea772e3e671eae4934c10b | /Stepik/Python3_1/Lesson452.py | 9913cfcaf4181f210e8dc5e8c8e0310c7b507738 | [] | no_license | Ihar-Limitless/PythonWorkspace | a820a69c2a610bf3c209e783ac16962eb99f1751 | 4b684a209cd35a6ea8af349afc1a380aed84662e | refs/heads/master | 2020-07-17T14:56:32.552712 | 2020-05-20T08:47:40 | 2020-05-20T08:47:40 | 206,040,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | # import csv, collections
# with open(r'd:/PythonWorkspace/Stepik/crimes.csv') as f:
# data = csv.reader(f)
# for i in data:
# print(i)
# print(collections.Counter(row[5] for row in data if '2015' in row[2]))
#
# import csv
#
# with open("Crimes.csv") as fi:
# reader = csv.reader(fi)
# next... | [
"01codename01@gmail.com"
] | 01codename01@gmail.com |
781eef84dfbe21f5c7fd4840436c42051d0c3859 | 029aa4fa6217dbb239037dec8f2e64f5b94795d0 | /Python算法指南/栈_heapq_deque/200_逆波兰表达式求值_栈的应用.py | 41595da2b1b998c1229b1e528e91e30e1db5f53d | [] | no_license | tonyyo/algorithm | 5a3f0bd4395a75703f9ee84b01e42a74283a5de9 | 60dd5281e7ce4dfb603b795aa194a67ff867caf6 | refs/heads/master | 2022-12-14T16:04:46.723771 | 2020-09-23T06:59:33 | 2020-09-23T06:59:33 | 270,216,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | class Solution:
def evalRPN2(self, tokens):
stack = []
for i in tokens:
if i not in ('+', '-', '*', '/'):
stack.append(int(i))
else:
op2 = stack.pop()
op1 = stack.pop()
if i == '+': stack.append(op1 + op2)
... | [
"1325338208@qq.com"
] | 1325338208@qq.com |
dfcfe43bab212cefb635a2746e2d5c8710e65661 | cb9281a34c3c5a36d4b3a846fb6ff22ede12f2f6 | /communities_CK_one_network_with_main_GC.py | 3b90ea26d0159d6b50b08a9cd6c7187a9378dcb5 | [] | no_license | juliettapc/CalorieKing | 9cb9f35ae9b239d2284175b0802cf2c60dc79d1d | 5f80bffb65fe4644a81ae2ab0b1738861e028331 | refs/heads/master | 2022-02-10T07:52:24.133379 | 2022-02-08T01:25:18 | 2022-02-08T01:25:18 | 153,174,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,612 | py | import subprocess as sp
import networkx as nx
def main():
file1 = open('summary_modularity_analysis_GC','wt') # one summary file for everything
print >> file1, "data: #_points time_scale GC_size <k> k(hub) modularity #_communities <community_size> max_community_size\n"
file1.close()
... | [
"julia@chem-eng.northwestern.edu"
] | julia@chem-eng.northwestern.edu |
eb8fa5427f66f56ef70b366075195c87104efe23 | c5e86a17588fe447f5708c809334fa1ba0f55823 | /beacot/qa/rpc-tests/test_framework/test_framework.py | 3696906ab0d191f171983669d14dd9c40991fbac | [
"MIT"
] | permissive | ashwinshetttty/Beacot-Coin | bcc934e9d74df7c2e0c61c8d568414167636f665 | 3ab9a57ccefc5fc05448eff8d1bb6e1e6790f4e7 | refs/heads/master | 2023-08-30T18:01:54.913801 | 2021-10-14T07:13:38 | 2021-10-14T07:13:38 | 417,014,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,221 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Base class for RPC testing
import logging
import optparse
import os
import sys
import shutil
import te... | [
"you@example.com"
] | you@example.com |
160289ff688bc965bd43eefb6191f2d312a43beb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02694/s200861425.py | 4b469ff53f2bc90a3841359fd40ef2a55766bd47 | [] | 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 | 90 | py | x = int(input())
a = 100
i = 0
while a < x:
i += 1
a += a // 100
print(i)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5be1057357ca33e65e6cafbd5328dd42ab0dd6cb | abeec076f89231c4dd589e84def8301e653d6e20 | /pages/views.py | 5052137eabc399ac2ce69d4c3ee03c3ff3a1008c | [] | no_license | gibil5/pcm_restaurant | 1cde6ee2780d3aa39dbc26dd9583f8465a1ff13a | a56ec01c533ed2b6e198de9813f9518a3eca2d14 | refs/heads/master | 2020-08-29T20:10:13.606229 | 2019-12-01T19:48:47 | 2019-12-01T19:48:47 | 218,160,478 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
# Create your views here.
# ------------------------------------------------ Home ---------------------
def home(request):
ctx = {}
output = render(request, 'pages/home.html', ctx)
return HttpResponse(output)
| [
"jrevilla55@gmail.com"
] | jrevilla55@gmail.com |
2f335708256187e77033287574a3fb0a96501daa | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Rasterio_osgeo_shapely_PIL_pyproj_numpy/source/docutils/languages/fa.py | 48aa588deb4066e1034b9e603893fded6779dba7 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 2,044 | py | # -*- coding: utf-8 -*-
# $Id: fa.py 4564 2016-08-10 11:48:42Z
# Author: Shahin <me@5hah.in>
# Copyright: This module has been placed in the public domain.
# New language mappings are welcome. Before doing a new translation, please
# read <http://docutils.sf.net/docs/howto/i18n.html>. Two files must be
# translated ... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
a8c82d26a3f03fe05f4ce33a1d93a3003463983e | 18b3d06a8a93839f7e7a1cf536a71bfc0adf8e20 | /devel/lib/python2.7/dist-packages/msgs_demo/msg/_GetMapFeedback.py | 446f7fdb8b177dd8f01c4c16e0931a2dccbd66a2 | [] | no_license | akingse/ros_tutorial_ws | dc52cbbf443f7823a0abd9223fef076cf959a24e | 7c776d2f62af0455a899c80e171d5210e0a8b382 | refs/heads/main | 2023-03-01T04:48:54.510004 | 2021-02-08T14:08:18 | 2021-02-08T14:09:30 | 337,094,532 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,118 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from msgs_demo/GetMapFeedback.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class GetMapFeedback(genpy.Message):
_md5sum = "d41d8cd98f00b204e9800998ecf8... | [
"akingse@qq.com"
] | akingse@qq.com |
a02a3e1aaed8310d24cd73055fd40d4605004c89 | b46594de5c173e891e04556d9a3866fa5bbbf32d | /python/argon/common.py | 0257923dd35bf5864ccb710efdbbc513cdf1659d | [] | no_license | ssorj/argon | 7e36cd64b7ac3b79a9b94a759347963673b05f3c | 1db9e74428ac0ade435cf36f5e3d3c82f460961d | refs/heads/master | 2021-05-11T03:19:02.661533 | 2019-01-06T14:48:31 | 2019-01-06T14:48:31 | 117,912,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,133 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"jross@apache.org"
] | jross@apache.org |
e6507dc8f2184041c78bf5342bf5f63ee0e6e5bd | 725abfa74e3800622837e60615dc15c6e91442c0 | /venv/Lib/site-packages/django/db/backends/utils.py | 1aefb0653aa9e254988d4018f9fc091650b27b84 | [] | no_license | Malak-Abdallah/TODOlist | 4840e2e0a27e6499ae6b37524bb3e58455d08bfb | fd35754e8eac9b262fae17ec16ad9fb510a12f5d | refs/heads/master | 2023-07-16T11:38:48.759232 | 2021-08-31T09:43:11 | 2021-08-31T09:43:11 | 401,600,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,652 | py | import datetime
import decimal
import functools
import hashlib
import logging
import time
from contextlib import contextmanager
from django.db import NotSupportedError
logger = logging.getLogger("django.db.backends")
class CursorWrapper:
def __init__(self, cursor, db):
self.cursor = cursor
self.... | [
"malkobeidallah@gmail.com"
] | malkobeidallah@gmail.com |
b624987f59ba7fdd8d21977422b1355a8e3e5847 | c7792b5e5ae5e74d643518a5b0644020288fc6da | /whichbugs.py | e8aa2354b97b600b4c5a6a49f4954a3a80a38897 | [
"BSD-2-Clause"
] | permissive | agroce/fuzzgoattriage | 0dc99daf2d061aaa0f58ceef3657b6f9ff411613 | 173c585cc7e87bcb2b82ae22fde56935352cd597 | refs/heads/master | 2020-07-29T14:49:39.691056 | 2019-09-20T18:07:19 | 2019-09-20T18:07:19 | 209,830,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | import subprocess
import glob
import os
import sys
dnull = open(os.devnull, 'w')
ms = glob.glob("justbug*")
ms = map(lambda x: "./" +x, ms)
if True:
for t in glob.glob("out/crashes/id*"):
print t
i = 0
for m in ms:
r = subprocess.call(["ulimit -t 1;" + m + " " + t], shell=True... | [
"agroce@gmail.com"
] | agroce@gmail.com |
57b3d7204d3454cd3a8b66c7f36e2c1017b07255 | 2a54a1d9996778362421299a936bb0dadaace958 | /units/adms/mysite/iclock/models/model_devoperate.py | b05e500934966760202e07897b6ed3452ae1eb50 | [] | no_license | icprog/zktime_wlm | 6d0719b5210c4d3196b5958bccbb7e606785ece3 | 449c487ce4664dde734f8007a974ed883801d106 | refs/heads/master | 2021-03-21T10:20:54.157131 | 2018-11-24T04:10:42 | 2018-11-24T04:10:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,786 | py | # -*- coding: utf-8 -*-
#! /usr/bin/env python
import datetime
from django.db import models, connection
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from django.core.cache import cache
from base.operation import OperationBase, Operation, ModelOperation
from base.ca... | [
"657984027@qq.com"
] | 657984027@qq.com |
88177735f8868cfda2b92a9a23a7e0b8b1b50b4e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/109/usersdata/224/63305/submittedfiles/av2_p3_civil.py | 74e486626635478f0d456283a47e71aba216271f | [] | 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 | 668 | py | # -*- coding: utf-8 -*-
import numpy as np
def somatorioDaColuna(A,j):
soma2=0
for i in range(0,A.shape[0],1):
soma2=soma2+1
return(soma2)
def somatorioDaLinha(A,i):
soma=0
for j in range(0,A.shape[1],1):
soma=soma+A[i,j]
return (soma)
n=int(input('Digite a dimensão da Matr... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
49fe190f0f418cee0e3a2eede3469a3c263b4dd6 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Games/got-tyrion-web/flask/lib/python2.7/site-packages/pip/_vendor/cachecontrol/__init__.py | 612abcc11e161b614239ba31c3000f491bd9b5ce | [] | no_license | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:bb3ecec6cf61426531b71a1dd56c95a148fa25a6fb35f88b1023c716e73edb65
size 302
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
279bccd834532c0a1dd881e625f22c20d4468ac6 | 55e28e35db5bf6a844df3fb47080500b115a893e | /day13/s7.py | 60b61e339ca0556100e396336b41b952c378ed49 | [] | no_license | pylarva/Python | 5743ffa4a69db42b642d51b62f9e9b69ddbc1a72 | 71b484950e6dbdcf708726a68a3386d0d6ddc07f | refs/heads/master | 2020-04-19T09:11:11.195393 | 2017-11-16T07:32:59 | 2017-11-16T07:32:59 | 67,507,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,045 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:pylarva
# bolg:www.lichengbing.com
from sqlalchemy import create_engine,and_,or_,func,Table
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String,ForeignKey,UniqueConstraint,DateTime
from sqlalchemy.orm import sessi... | [
"1326126359@qq.com"
] | 1326126359@qq.com |
bd37d5d53f0d15aec98b1f5d09c49c7ab1b8e1ac | 3be1ddf42236a1b33ec74ed3bfdd0f8918513733 | /coding-challenges/week12/day03/Q.2.py | 1a8fd269545bd4e6e303677b5387c464cca85f59 | [] | no_license | aabhishek-chaurasia-au17/MyCoding_Challenge | 84ef926b550b3f511f1c642fe35f4303c8abb949 | 419d02ad8740a2c00403fd30c661074266d2ba8f | refs/heads/main | 2023-08-29T09:52:36.796504 | 2021-11-07T07:32:09 | 2021-11-07T07:32:09 | 359,842,173 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | """
Q-2 )Write steps in heapify/percolate down method, and write time
complexity and space complexity analysis.(5 marks)
(Super Easy)
"""
heap = [111, 22, 33, 4, 15, 64, 7, 8, 9]
def heapsort():
global heap
while len(heap) != 0:
print(heap[0])
heap[0], heap[-1] = heap[-1], heap[0]
... | [
"abhishekc838@gmail.com"
] | abhishekc838@gmail.com |
f5ba5767d75aa13b3c93663c3462dbf7a20eff7b | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/detection/SSD_for_PyTorch/configs/faster_rcnn/faster_rcnn_r50_caffe_fpn_mstrain_1x_coco-person.py | dd7eddfab7b40870df07c1e6045e9372de27c830 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,051 | py | # Copyright 2022 Huawei Technologies Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | [
"chenyong84@huawei.com"
] | chenyong84@huawei.com |
e4820e819afe8515dcfc4c70add913784166710c | 70cbc3e6002ccc0e2bf570c90e675c34a84b7ce9 | /device_list_api/wsgi.py | 9b5fa97e8c000353672604ae680c71b2545301e3 | [] | no_license | shotaro0726/dvice_manager | 61d31da512b3401a5864d06ad1c9269f22bace87 | 431ea9c7098dfcea46a57404541a34847559ddba | refs/heads/master | 2022-09-21T03:25:34.702838 | 2020-05-30T17:27:40 | 2020-05-30T17:27:40 | 268,010,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
WSGI config for device_list_api 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJAN... | [
"shoutaro0726@gmail.com"
] | shoutaro0726@gmail.com |
7c8d25b8c58f79d83c263c0664d30b7997f41902 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_QC428.py | 65e336bc4f3e6fcbdf417489f4dbaa53551064de | [
"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 | 5,508 | py | # qubit number=3
# total number=77
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
769fb486715718f376703c406914f71e8c68b786 | 29540b843fa1fc8e0fa5979c2b0029ec7f957b55 | /unit/migrations/0007_airman_phone_number.py | 90ca3ae6f04a044c2d9e21c2b87e37b693a15739 | [] | no_license | lopezjronald/asts-fitness-program-v2 | 7ae5282e03f124d912e834e43907af3af4608a4e | a6e111265e9d86dfb101b9df1d2629010cf9066d | refs/heads/main | 2023-03-07T12:11:18.704931 | 2021-02-17T11:04:18 | 2021-02-17T11:04:18 | 316,976,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Generated by Django 3.1.3 on 2021-02-17 07:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('unit', '0006_auto_20201201_2013'),
]
operations = [
migrations.AddField(
model_name='airman',
name='phone_number',
... | [
"lopez.j.ronald@gmail.com"
] | lopez.j.ronald@gmail.com |
885b6854611137eb3ef2001628a9f8a75b508036 | 5b52320d3cc707285390e02bec8b33c51229054d | /server/user_settings/migrations/0007_auto_20201214_1822.py | 7b18e97498a11c5e817f81fbcb340f637d8387e6 | [] | no_license | Aviemusca/bjj-digraph | abb541f81a72acb2020e480dfac2f85a98cbfe73 | 9e01ff8ab73f6d9d16606ec1c8b7c91cdfa9cd2c | refs/heads/main | 2023-03-05T02:08:17.260158 | 2021-02-19T14:22:50 | 2021-02-19T14:22:50 | 337,366,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # Generated by Django 3.1.3 on 2020-12-14 18:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("user_settings", "0006_auto_20201211_1347"),
]
operations = [
migrations.AddField(
model_name="usergamenodesettings",
... | [
"yvan@metatech.ie"
] | yvan@metatech.ie |
c700637541affd3d5b62be7bfe9b067396960cf7 | c32d1463914c8fb3d597361ba5a4a17e499bd888 | /models/backbones/resnet.py | ba23b353a0533b4903a778a6504886b2f8e86fd2 | [
"MIT"
] | permissive | DonYum/face_recognition_framework | aee7d6a902f6c7c0ea8513fd0204b73b34d7994b | 924b74f868bb06295d21122e3926d37a5d419d6e | refs/heads/master | 2020-12-03T23:38:58.082336 | 2020-01-03T11:29:51 | 2020-01-03T11:29:51 | 231,524,940 | 0 | 0 | MIT | 2020-01-03T06:17:28 | 2020-01-03T06:17:28 | null | UTF-8 | Python | false | false | 5,551 | py | import torch.nn as nn
import math
__all__ = ['resnet18', 'resnet34', 'resnet50', 'resnet101',
'resnet152']
def conv3x3(in_planes, out_planes, stride=1):
"""3x3 convolution with padding"""
return nn.Conv2d(in_planes, out_planes, kernel_size=3, stride=stride,
padding=1, bias=Fal... | [
"xiaohangzhan@outlook.com"
] | xiaohangzhan@outlook.com |
b38317fd7e15bf95d4c1d380413c57ceab3a3398 | ad9bd58a3ec8fa08dfcc994d4101ee815a9f5bc0 | /02_algorithm/baekjoon/all_problem/1076.py | 67a85516fa5d7cb85edc31570f22d7c7fd99149f | [] | no_license | wally-wally/TIL | 93fc1d0e3bc7d030341ed54155294c68c48b4c7d | 936783bc86f563646c0398c24e2fcaa707f0ed23 | refs/heads/master | 2023-04-28T08:59:48.235747 | 2023-04-12T12:06:52 | 2023-04-12T12:06:52 | 195,918,111 | 40 | 7 | null | 2020-09-29T16:20:46 | 2019-07-09T02:31:02 | Python | UTF-8 | Python | false | false | 356 | py | import sys
sys.stdin = open('input_1076.txt', 'r')
color_code = {'black': 0, 'brown': 1, 'red': 2, 'orange': 3, 'yellow': 4,
'green': 5, 'blue': 6, 'violet': 7, 'grey': 8, 'white': 9}
result = 0
for i in range(3):
if i <= 1: result += color_code[input()] * (10 if not i else 1)
else: result *= 10 ... | [
"wallys0213@gmail.com"
] | wallys0213@gmail.com |
a46201db45bff3afbcf83488cf2e86acdbb5a26b | 327b5efff2b24d42f1b1c7d13b6788c240d3b8d4 | /sapi_app/urls.py | 9730a941d9b75507e9bf636135ee1db10c010c34 | [
"MIT"
] | permissive | calixo888/sapi | 523c35240d19faeed4d4673bdb4ca4ec210d5671 | a2ff327795a7ea088cb158f7738af9121e465a08 | refs/heads/master | 2022-04-30T14:06:35.474634 | 2020-10-25T23:18:49 | 2020-10-25T23:18:49 | 237,724,096 | 0 | 0 | MIT | 2022-04-22T23:03:11 | 2020-02-02T05:34:45 | JavaScript | UTF-8 | Python | false | false | 422 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url("^$", views.index, name="index"),
url("^forgot-api-key/$", views.forgot_api_key, name="forgot_api_key"),
url("^documentation/$", views.documentation, name="documentation"),
url("^get-api-key/$", views.get_api_key, name="get_api_ke... | [
"calix.huang1@gmail.com"
] | calix.huang1@gmail.com |
788c0a4dc0b12e463c564f5fcf938d4a40d4b387 | e5ae250c070a4e23717f25bdaa99b2e310b05cd2 | /sorting3.py | 95855664abeb1c26e873f0b51baeb2835c1fb52d | [
"MIT"
] | permissive | matthewmuccio/InterviewPrepKit | d3c95c1c2dfb58761f3a61f35ffc72be3c0aebb7 | 13dabeddc3c83866c88bef1c80498c313e4c233e | refs/heads/master | 2020-03-27T15:10:21.540776 | 2018-11-05T16:13:12 | 2018-11-05T16:13:12 | 146,702,058 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python3
from functools import cmp_to_key
class Player:
def __init__(self, name, score):
self.name = name
self.score = score
def __repr__(self):
pass
def comparator(a, b):
val = b.score - a.score
if val == 0:
return -1 if a.name < b.name ... | [
"me@matthewmuccio.com"
] | me@matthewmuccio.com |
88f58ea4b1a9bc0da59f6bb65127b965dd49e239 | a900b91c2a5f901097a9f4a4d6a64df848f655dd | /onmt/train_utils/accent_gan_trainer.py | 2d3a2c220780c66ff4481823091cd9ecf625ba7d | [
"MIT"
] | permissive | thanhleha-kit/NMTGMinor | 3c2c89811a72cbc7955144a2f19e20a2f51c334c | 6db79a28634405df5aba19cc940290caaa21096e | refs/heads/master | 2021-06-12T08:55:24.977989 | 2021-06-01T13:45:44 | 2021-06-01T13:45:44 | 375,394,363 | 1 | 0 | NOASSERTION | 2021-06-09T14:59:10 | 2021-06-09T14:59:09 | null | UTF-8 | Python | false | false | 39,439 | py | from __future__ import division
import datetime
import gc
import inspect
import math
import os
import re
import time
import torch
from apex import amp
import onmt
import onmt.markdown
import onmt.modules
from onmt.data.data_iterator import DataIterator
from onmt.data.dataset import rewrap
from onmt.model_factory impo... | [
"quanpn90@gmail.com"
] | quanpn90@gmail.com |
e47dcd7a4fc5c0e91cf776cb94d341b8a1c11633 | 3ededad93e7e3cbcea4baad101812187fc449d89 | /torch_geometric_temporal/data/discrete/static_graph_discrete_signal.py | 82751531b4259edae4213d0b08979778a0133f32 | [
"MIT"
] | permissive | LFrancesco/pytorch_geometric_temporal | 04612030d3ef3ef34f856dd2c03a57d006287e0d | 0964515a6041ce0cceb12e36ed640df22c046b4d | refs/heads/master | 2023-03-27T13:51:37.134564 | 2021-03-20T14:54:19 | 2021-03-20T14:54:19 | 349,710,635 | 0 | 0 | MIT | 2021-03-20T14:54:20 | 2021-03-20T11:51:32 | null | UTF-8 | Python | false | false | 3,227 | py | import torch
import numpy as np
from typing import List, Union
from torch_geometric.data import Data
Edge_Index = Union[np.ndarray, None]
Edge_Weight = Union[np.ndarray, None]
Features = List[Union[np.ndarray, None]]
Targets = List[Union[np.ndarray, None]]
class StaticGraphDiscreteSignal(object):
r""" A data i... | [
"benedek.rozemberczki@gmail.com"
] | benedek.rozemberczki@gmail.com |
702bc20295f20d7d22a54fc0691eb5d930eb225d | 73b21ee53c73f37f0295534e21da5a83e77b328d | /ML/day3/test6.py | 04ecbd0b6555569bc336692db2d58679c08ebdc1 | [] | no_license | tauovir/Nielit | 2f5e0d49a5c20e90de8a74644a8a0ed1da07dd0f | 225351b770b88b2655431ab3ec04533e30b36057 | refs/heads/master | 2020-04-05T08:00:45.199440 | 2019-05-29T10:43:54 | 2019-05-29T10:43:54 | 156,697,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | from sklearn.datasets import load_iris
from sklearn.neighbors import KNeighborsClassifier
from sklearn.model_selection import train_test_split
from sklearn.model_selection import cross_val_score
from sklearn.metrics import accuracy_score,confusion_matrix,classification_report
import matplotlib.pyplot as plt
iris = ... | [
"taukir707@gmail.com"
] | taukir707@gmail.com |
b3a53c0c17fa29b1ed7afe845c1b6db30deba156 | d0f2f7f220c825d827643ca81a08a23cfb871965 | /backend/code/alembic/versions/32038b09fa26_new_initial_commit.py | 0631ea23ef8f36803d341f6925285a39fc1171d9 | [] | no_license | socek/rankor | 7e5e73f8f13bc3d12bd1b18ef01bef04f8f38f0a | eaf5002dd1e852895670517a8cdcb07bf7c69f66 | refs/heads/master | 2021-04-12T07:52:20.341699 | 2018-06-03T20:07:17 | 2018-06-03T20:07:17 | 125,769,351 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,355 | py | """new initial commit
Revision ID: 32038b09fa26
Revises:
Create Date: 2018-05-13 20:36:23.880081
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '32038b09fa26'
down_revision = None
branch_labels = None
depends_on = Non... | [
"d.dlugajczyk@clearcode.cc"
] | d.dlugajczyk@clearcode.cc |
2fa9b51aec2e39ae9b67da9ffec162473eb20bb7 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4496/codes/1712_2507.py | 1c645da33dc35399c4e2e0dc8179eaa9c5bcc4e3 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | qip = int(input("qtd inicial de pirarucus: "))
pc = int(input("percentual de creescimento: "))
t = 0
while(qip<8000 and qip>0):
qv=int(input("retirados para venda: "))
qip= qip+((qip*pc)/100)-qv
t=t+1
if(qip>8000):
print("MAXIMO")
else:
print("ZERO")
print(t) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
a68dd26e9ee124b1f7779140374b4b4cc7cac486 | d83118503614bb83ad8edb72dda7f449a1226f8b | /src/dprj/platinumegg/app/cabaret/views/mgr/model_edit/card_level_exp.py | 00ad22f0b5e7b05bfe2992f08674a0fae99eae83 | [] | no_license | hitandaway100/caba | 686fe4390e182e158cd9714c90024a082deb8c69 | 492bf477ac00c380f2b2758c86b46aa7e58bbad9 | refs/heads/master | 2021-08-23T05:59:28.910129 | 2017-12-03T19:03:15 | 2017-12-03T19:03:15 | 112,512,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | # -*- coding: utf-8 -*-
from platinumegg.app.cabaret.views.mgr.model_edit import AdminModelEditHandler,\
AppModelForm, ModelEditValidError
from platinumegg.app.cabaret.models.CardLevelExp import CardLevelExpMster
from defines import Defines
class Handler(AdminModelEditHandler):
"""マスターデータの操作.
"""
clas... | [
"shangye@mail.com"
] | shangye@mail.com |
f2da2236b2af5e8cc428d8bc6dac3e08b19e574c | 4f4776eb69cbea9ee1c87a22732c5d778855c83a | /leetcode/Set_Matrix_Zeroes.py | a92db433c9375325332006cef0655b1f3ede7dd5 | [] | no_license | k4u5h4L/algorithms | 4a0e694109b8aadd0e3b7a66d4c20692ecdef343 | b66f43354792b1a6facff90990a7685f5ed36a68 | refs/heads/main | 2023-08-19T13:13:14.931456 | 2021-10-05T13:01:58 | 2021-10-05T13:01:58 | 383,174,341 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | '''
Set Matrix Zeroes
Medium
Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0's, and return the matrix.
You must do it in place.
Example 1:
Input: matrix = [[1,1,1],[1,0,1],[1,1,1]]
Output: [[1,0,1],[0,0,0],[1,0,1]]
Example 2:
Input: matrix = [[0,1,2,0],[3,4,5,2],[1,... | [
"noreply@github.com"
] | k4u5h4L.noreply@github.com |
3777e1676ddc316177897ba2a27039f169052c00 | f3fdfdf714e23ef69c9ce6631c188f1ebc328546 | /spider/utilities/util_urlfilter.py | 6c9b9fbf5967dd5550b517c4295741067f36b2e4 | [
"BSD-2-Clause"
] | permissive | liujie40/PSpider | bf2a134812ce81357588b260cee9e3d039c73df0 | f1162c777ec87250edfd2532882eb15b8d712e6a | refs/heads/master | 2022-02-21T18:20:41.468852 | 2022-01-19T06:55:54 | 2022-01-19T06:56:00 | 112,547,656 | 1 | 0 | null | 2017-11-30T01:17:47 | 2017-11-30T01:17:47 | null | UTF-8 | Python | false | false | 1,175 | py | # _*_ coding: utf-8 _*_
"""
util_urlfilter.py by xianhu
"""
from .util_config import CONFIG_RE_URL_LEGAL, CONFIG_RE_URL_ILLEGAL
class UrlFilter(object):
"""
class of UrlFilter, to filter urls by regexs and set
"""
def __init__(self, black_patterns=(CONFIG_RE_URL_ILLEGAL,), white_patterns=(CONFIG_RE... | [
"qixianhu@qq.com"
] | qixianhu@qq.com |
6a86f70dfd375605c250defd38f4fa8d093d11e7 | 0bb8296a1bfdba0c264ad7d764482dd3c724563a | /torcms/core/privilege.py | f0eff529668ff0889c7c2885bf5c165386453b1d | [
"MIT"
] | permissive | dlnan/TorCMS | c489a6ab573815f288d11efe4738f4c23323c9ea | 8bf71beb98d867cde5ef3aa749adae61f66356be | refs/heads/master | 2023-06-22T17:23:45.281281 | 2021-07-13T14:07:05 | 2021-07-13T14:07:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,998 | py | # -*- coding:utf-8 -*-
'''
针对增删改查的权限进行处理。
'''
from config import ROLE_CFG
def is_prived(usr_rule, def_rule):
'''
Compare between two role string.
'''
for iii in range(4):
if def_rule[iii] == '0':
continue
if usr_rule[iii] >= def_rule[iii]:
return True
retu... | [
"bukun@osgeo.cn"
] | bukun@osgeo.cn |
af96329dc1386af2578b528f0c0b0d3626ce19a3 | cc1472e5c7409db30b3e17271d1bd123f1c8abb3 | /3.Lambda functions and error-handling/Error handling with try-except.py | c7fa20b1591f40f231ecbcbc56155681e66f5a24 | [] | no_license | Mat4wrk/Python-Data-Science-Toolbox-Part-1-Datacamp | 8fd4528397f6be1fdbca06be4b7d22630bbf2f7f | 5d8d1320263021e02341a392fd8766a201ad8a8b | refs/heads/main | 2023-03-04T16:18:56.631589 | 2021-02-13T11:29:12 | 2021-02-13T11:29:12 | 338,530,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # Define shout_echo
def shout_echo(word1, echo=1):
"""Concatenate echo copies of word1 and three
exclamation marks at the end of the string."""
# Initialize empty strings: echo_word, shout_words
echo_word = ""
shout_words = ""
# Add exception handling with try-except
try:
# Concate... | [
"noreply@github.com"
] | Mat4wrk.noreply@github.com |
efd5051555a1671ac149d0de3d0e37719c92eba1 | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Media/Animation_parts/EasingMode.py | 21e313268898de24943c5fb9a0285de8c2aec25f | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | class EasingMode(Enum,IComparable,IFormattable,IConvertible):
"""
Defines the modes in which classes derived from System.Windows.Media.Animation.EasingFunctionBase perform their easing.
enum EasingMode,values: EaseIn (0),EaseInOut (2),EaseOut (1)
"""
def __eq__(self,*args):
""" x.__eq__(y) <==> x==yx.__eq__(... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
7082cde9cf2222c4bd04b2f2f4926e998a7aeb4b | e1d9fe469422519084fbe9d8cea4c75e6c0828a3 | /import.py | d3dc52f2f40bc4ff2f176db4003b5415f3c1e528 | [] | no_license | DerThorsten/theplantlist | 3c9a1b0d38d793aad3030c9ea6c4afbd7a6b7b71 | f8be85a3c0d0fb644d0049be5d998c3768ab50d1 | refs/heads/master | 2020-03-18T16:48:05.148593 | 2017-03-01T04:40:04 | 2017-03-01T04:40:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py |
import pandas as pd
import gc
import os
store = []
for file in os.listdir("."):
if file.endswith(".csv"):
data = pd.read_csv(file, dtype=pd.np.object)
store += data['Genus'].tolist()
gc.collect()
store = map(lambda x: x.lower(), store)
print(len(store), len(pd.np.unique(store)))
| [
"kislov@easydan.com"
] | kislov@easydan.com |
f04cda7b171c4dffe9a99f2306de25129b8f8c29 | c922252e52eea97b7557937a2558bbec664d2e07 | /newsfeed/wsgi.py | 8a3ec5a03277be826eece4cbf71cfac7dc213775 | [] | no_license | strar-buck/twitter_insta_news_feed | cfe1d4cd88b6dc938134d82ec0c960090390aee3 | 22858054ebf7821d4e5469163b14b542983fadff | refs/heads/master | 2021-06-11T01:26:30.671568 | 2017-02-01T09:11:09 | 2017-02-01T09:11:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | """
WSGI config for newsfeed 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/1.8/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"djangopycon@gmail.com"
] | djangopycon@gmail.com |
4a8e1050ebad2ddf5f56ca78e92c3f67009533d6 | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201019102609.py | 77ffd2756680b25d322e412add76538e7e19698c | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from wagtail.core import blocks
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
required = True,
elp_text='Tekst do wyświetlenia',
)
class Meta:
template = 'streams/title_block.html'
icon = 'edycja'
label = 'Tytuł'
help_text = 'Wyśrodkowany tek... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
0d97595c8e7c5dbc0fbc7767f79e518f3093d714 | 4970f0d662ca0d5d8c270b36e6858aa313c67dcc | /lk/classes/commands_config_keys.py | 51eeabf18415c7f2bd97d18edc0b53cbd5816584 | [] | no_license | eyalev/lk | 3168de19edf09f32b9277d3bf786d445855a6df1 | 59079e9071d7fbccc438e3ea3f9c8914f4767b78 | refs/heads/master | 2020-12-24T08:24:11.079329 | 2017-03-24T16:48:17 | 2017-03-24T16:48:17 | 40,901,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py |
commands_dir_key = 'commands_dir'
commands_key = 'commands'
relative_path_key = 'relative_path'
repo_url_key = 'repo_url'
file_name_key = 'file_name'
local_path_key = 'local_path'
local_repo_path_key = 'local_repo_path'
local_repo_command_path_key = 'local_repo_command_path'
last_push_timestamp_key = 'last_push_times... | [
"eyalev@gmail.com"
] | eyalev@gmail.com |
e0b3f02bf9aab17200129623ef552108b30151b0 | a660f0674e816e7f97353c0eec7c9960eed36889 | /ipde/annular/modified_helmholtz.py | e46efe73a9c0e28e019350b7d5ce0fe3d4bfc96e | [
"Apache-2.0"
] | permissive | dbstein/ipde | da4642cbd26e4857c966123ed6654f38ddf5dff6 | a254bf128eba835284935290b8de09eb1374aa3f | refs/heads/master | 2022-07-22T14:29:47.420137 | 2022-07-13T18:30:10 | 2022-07-13T18:30:10 | 215,557,734 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,712 | py | import numpy as np
from ipde.utilities import fast_dot, concat, fast_LU_solve, mfft, mifft, fourier_multiply, fft, ifft, ffourier_multiply
import scipy as sp
import scipy.linalg
from personal_utilities.scipy_gmres import right_gmres, gmres
import numexpr as ne
from ipde.sparse_matvec import zSpMV_viaMKL
import numba
d... | [
"dstein@flatironinstitute.org"
] | dstein@flatironinstitute.org |
760b723d21d604814cee51e8a214cc8cc7d6fd3c | 152ff2ef15245883b0b7cc3208fe71edcb4ba446 | /my_uu/__migrations/0008_auto__chg_field_unsubscribe_user__add_unique_unsubscribe_user.py | a347708702d7da7f84875413ebc6e8a1906f20a5 | [] | no_license | pvoytko/my-uu.ru | 302d947f48446ec8c86177867ef9607f692a4a0f | 00b77f02d230bf2f7adb5bd02eebbaf165f70d39 | refs/heads/master | 2021-06-10T08:11:09.282716 | 2021-04-08T10:21:55 | 2021-04-08T10:21:55 | 15,873,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,167 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Unsubscribe.user'
db.alter_column(u'my_uu_unsubscribe', 'user_id', self.gf('d... | [
"devnull@localhost"
] | devnull@localhost |
eb4def72637372ee312f3439627f207f24dc0828 | 71f3ecb8fc4666fcf9a98d39caaffc2bcf1e865c | /.history/第3章/ling_20200607212959.py | b5ed0fb3001268d28f8627a5245565a97d0a52b5 | [
"MIT"
] | permissive | dltech-xyz/Alg_Py_Xiangjie | 03a9cac9bdb062ce7a0d5b28803b49b8da69dcf3 | 877c0f8c75bf44ef524f858a582922e9ca39bbde | refs/heads/master | 2022-10-15T02:30:21.696610 | 2020-06-10T02:35:36 | 2020-06-10T02:35:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | #!/usr/bin/env python
# coding=utf-8
'''
@version:
@Author: steven
@Date: 2020-05-27 22:20:22
@LastEditors: steven
@LastEditTime: 2020-06-07 21:29:59
@Description:最少的零钱数给顾客。
'''
# 检验一个输入数是否为正整数:#https://www.quora.com/How-can-I-make-sure-the-user-inputs-a-positive-integer-in-Python
def pos_num(n,i):
d = [0.01,0.02,0... | [
"a867907127@gmail.com"
] | a867907127@gmail.com |
10d126a84296968c3598e1dcecbc83d5f10b8b6a | bec99dad2e4d4bc893a317409d95a344d38756f5 | /store/management/commands/data/units.py | ef24804822f878fe8636a62b0a83c84e824710b9 | [] | no_license | solotony/go5 | bfde50028db37de0dc0f6342a46b0a2d693b9de1 | 3a7e47c81e1b485d5ef9e6911ab064baa4d63cf5 | refs/heads/master | 2023-03-03T06:08:22.706991 | 2021-02-14T10:53:06 | 2021-02-14T10:53:06 | 302,860,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,157 | py | from django.utils.translation import gettext_lazy as _
UNITS = [
(16, _('Length'), _('INCH'), _('Inch'), 2, None, _('"')),
(17, _('Weight'), _('KG'), _('kilogram'), 1, 1000, _('kg')... | [
"as@solotony.com"
] | as@solotony.com |
8f339cb9c53e93b193dba8fd6b109b15ecaf18d3 | 694427fd2155fea664241f9e029f955d83fef2a2 | /deploy_tools/fabfile.py | 61536b3938dd326356a8d9cf17e7d5c1e2159022 | [] | no_license | fbidu/superlists | 2ea67f5405ac8237d135f8ad315f4bc53a06239f | 391f8fa8396f8c8890a30f3b18d95a47778c2505 | refs/heads/master | 2021-06-18T20:43:58.159824 | 2019-09-12T15:48:52 | 2019-09-12T15:48:52 | 172,391,723 | 0 | 0 | null | 2021-01-28T11:16:37 | 2019-02-24T21:20:57 | JavaScript | UTF-8 | Python | true | false | 1,182 | py | import random
from fabric.contrib.files import append, exists
from fabric.api import cd, env, local, run
REPO_URL = "https://github.com/fbidu/superlists.git"
def _get_latest_source():
if exists(".git"):
run("git fetch")
else:
run(f"git clone {REPO_URL} .")
current_commit = local("git ... | [
"felipe@felipevr.com"
] | felipe@felipevr.com |
e9bb9fa6c3131fe1c09815de84bbcae7570fe34c | bf2aa4eab14a6a5347fe4af65cc4a37f512a465d | /people/migrations/0108_auto_20200530_0602.py | 76b15ad9f9532587e2fa3e0edf18453d24e8c970 | [] | no_license | drdavidknott/betterstart | 0cda889f5cd6bb779f6d1fa75cb4f2ef08eb626c | 59e2f8282b34b7c75e1e19e1cfa276b787118adf | refs/heads/master | 2023-05-04T07:32:24.796488 | 2023-04-16T15:26:30 | 2023-04-16T15:26:30 | 173,626,906 | 0 | 0 | null | 2023-02-18T07:27:55 | 2019-03-03T20:37:01 | Python | UTF-8 | Python | false | false | 1,058 | py | # Generated by Django 3.0.3 on 2020-05-30 05:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('people', '0107_auto_20200530_0549'),
]
operations = [
migrations.AddField(
model_name='profile',
name='requested_res... | [
"dkoysta@gmail.com"
] | dkoysta@gmail.com |
f9aa2c51297ea2624dae2f4826d88086a7d086af | 07f815078189169cd2944105ef373b522aef8f33 | /Scrapy_spider/build_medals_table/build_medals_table/pipelines.py | 2c36fefd6e33f0cfbf1cb15f83f538e1451b98e2 | [
"MIT"
] | permissive | chrisjdavie/Olympics_redo | ecc5c0a593085ba5d3d9ce608362ccb1fece8eec | 43abe8d9bd9da4e9b15013b12bc3b5a740c55871 | refs/heads/master | 2021-01-20T10:11:05.994665 | 2015-01-23T14:58:10 | 2015-01-23T14:58:10 | 29,680,905 | 0 | 0 | null | 2015-01-22T16:51:11 | 2015-01-22T13:50:53 | OpenEdge ABL | UTF-8 | Python | false | false | 296 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class BuildMedalsTablePipeline(object):
def process_item(self, item, spider):
return item
| [
"chris.d@theasi.co"
] | chris.d@theasi.co |
b329f311049bd7d44b6015d99b738c1211c60ac4 | ecf257614e183bda87f73ce8d77daa563ea66fa7 | /hebpipe/lib/xrenner/modules/xrenner_coref.py | fe1c2485719ecc353c3a6bc1eb0111d7b3bfdb23 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | amir-zeldes/HebPipe | 7aa9990d49f86ce97cb1e094791b480514e98d44 | 4f395349b58a055c778d4db46d8d9f54daa71794 | refs/heads/master | 2023-08-31T20:39:18.991834 | 2023-08-22T00:49:44 | 2023-08-22T00:49:44 | 148,917,890 | 31 | 8 | NOASSERTION | 2023-08-22T00:49:40 | 2018-09-15T16:10:05 | Lex | UTF-8 | Python | false | false | 11,367 | py | from .xrenner_marker import *
from .xrenner_compatible import *
from .xrenner_propagate import *
from .xrenner_rule import CorefRule, ConstraintMatcher
"""
Coreference resolution module. Iterates through markables to find possible matches based on rules.
Author: Amir Zeldes
"""
def find_antecedent(markable, previou... | [
"amir.zeldes@georgetown.edu"
] | amir.zeldes@georgetown.edu |
410a8345d5cf16c2a42d45dd39d76a69d0927350 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2241/60658/264268.py | fe070c1a30602ace785b1942e5e375a843dd86ec | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | target = int(input())
ans = 0
i = 1
while target>0:
ans+=(target%i==0)
target-=i
i+=1
print(ans) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
349c0c0214a8062a6fed23e1e2968bfb83a10f1e | d838bed08a00114c92b73982a74d96c15166a49e | /docs/data/learn/Bioinformatics/input/ch4_code/src/helpers/DnaUtils.py | 7e027494e7ddf73aff79ccb6bbbd85e722d9f961 | [] | no_license | offbynull/offbynull.github.io | 4911f53d77f6c59e7a453ee271b1e04e613862bc | 754a85f43159738b89dd2bde1ad6ba0d75f34b98 | refs/heads/master | 2023-07-04T00:39:50.013571 | 2023-06-17T20:27:05 | 2023-06-17T23:27:00 | 308,482,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from random import Random
from typing import Optional, List
def generate_random_genome(size: int, r: Optional[Random] = None) -> str:
if r is None:
r = Random()
return ''.join([r.choice(['A', 'C', 'T', 'G']) for i in range(size)])
def generate_random_cyclic_genome(size: int, copies: int, r: Optional... | [
"offbynull@gmail.com"
] | offbynull@gmail.com |
3643aaa66a11bc0bb9a6cbd437878ad7d0c62ef8 | 64c8d431c751b1b7a7cb7224107ee40f67fbc982 | /code/python/echomesh/command/Broadcast.py | f9eb8a40450ff4d2509558545ac4f074fcf98b99 | [
"MIT"
] | permissive | silky/echomesh | 6ac4755e4ff5ea3aa2b2b671c0979068c7605116 | 2fe5a00a79c215b4aca4083e5252fcdcbd0507aa | refs/heads/master | 2021-01-12T20:26:59.294649 | 2013-11-16T23:29:05 | 2013-11-16T23:29:05 | 14,458,268 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from echomesh.command import Show
from echomesh.util import Log
LOGGER = Log.logger(__name__)
def broadcast(echomesh_instance, on_or_off=None):
if on_or_off is None:
Show.broadcast(echomesh_instance)
else:
on_or_off = on_o... | [
"tom@swirly.com"
] | tom@swirly.com |
733d2b44064406a6ec1bfc170f23600b23a3d6b0 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog/optimized_4945.py | 0761af1c78b2bcc7bb0e79dc2d58cf94ac6c73e6 | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,846 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
ccae95d130e10c420a1123ca43de367cbe9d79fe | 6bc4160d9f9e59df4f019cd0979b9c1266e6feec | /src/swarm_worker.py | 31359438848bc9742fbb7f01fde8dd622ff9b8ba | [
"MIT"
] | permissive | raymondlwb/docker-pygen | f00c3f17fa8ffde4426e55150775767f945d3038 | a7d1e70daba58c8bf44949b56453bdf017a56b4d | refs/heads/master | 2021-05-01T21:13:57.990953 | 2018-01-25T22:52:24 | 2018-01-25T22:52:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,646 | py | import re
import sys
import json
import signal
import argparse
import six
import requests
from actions import Action
from api import DockerApi
from http_server import HttpServer
from metrics import MetricsServer, Counter
from utils import get_logger, set_log_level
logger = get_logger('pygen-worker')
request_counter... | [
"rycus86@gmail.com"
] | rycus86@gmail.com |
20cefe9ac9bcbd200cb13ed15b3144b20d500662 | 928b064b76b4218bfddd8c648a07709d0c7d1b93 | /htmlthingy/_converter.py | 5b0fb9224e185eb7d23a3da48e1738e1c896f735 | [
"MIT"
] | permissive | Akuli/htmlthingy | ebc6ebda2e0421f526f973992da34485d6c9a939 | 9f554e9d8e9bc11acb4aeb43e14b76ee1b164c59 | refs/heads/master | 2022-12-09T02:52:09.431346 | 2020-09-07T15:23:14 | 2020-09-07T15:23:19 | 107,789,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,542 | py | import operator
import re
import textwrap
from htmlthingy import tags
def _match_after(regex, the_string, startpos):
for match in regex.finditer(the_string):
if match.start() >= startpos:
return match
return None
class MarkupConverter:
"""Convert markup into HTML.
This class us... | [
"akuviljanen17@gmail.com"
] | akuviljanen17@gmail.com |
c94c93a473f20902ced88bade76c7e8d1ae31b1f | d5e94042ac2b248b7701117a6ea941bcc862067a | /upvote/gae/modules/santa_api/main_test.py | cacbfc13901e6c3eb8f97c8ec22633bb4a553014 | [
"Apache-2.0"
] | permissive | codegrande/upvote | f373105203a0595f76c29e138a18a95dc24a63df | e05d477bb13e470127b109eb8905a66a06eed5ac | refs/heads/master | 2020-03-07T19:40:47.185833 | 2019-06-20T14:35:20 | 2019-06-20T14:35:20 | 127,677,753 | 0 | 0 | null | 2018-04-01T22:49:28 | 2018-04-01T22:49:27 | null | UTF-8 | Python | false | false | 957 | py | # 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 required by applicable law or a... | [
"msuozzo@google.com"
] | msuozzo@google.com |
d66de0e407ab4f4ed1c8b9e8493cb21c10148fc4 | a9d5033858bf54768dbed97e5bac85af2eb7ce2c | /models/engine/file_storage.py | 270bc1b30472aed3e76b3a4c9308f5d64a2195e4 | [] | no_license | merryta/AirBnB_clone | 71942d65e91fd61029e4619ccdeebbb6ed13f9eb | 4e476d2a3565798f60cab82961146210a6170bf9 | refs/heads/main | 2023-07-18T14:30:49.227401 | 2021-09-01T13:15:53 | 2021-09-01T13:15:53 | 390,437,596 | 0 | 1 | null | 2021-07-28T17:14:06 | 2021-07-28T17:14:05 | null | UTF-8 | Python | false | false | 1,489 | py | #!/usr/bin/python3
"""
File storage module
"""
import json
from models.base_model import BaseModel
from models.user import User
from models.state import State
from models.city import City
from models.amenity import Amenity
from models.place import Place
from models.review import Review
class FileStorage:
"""seria... | [
"shikandadennis07@gmail.com"
] | shikandadennis07@gmail.com |
561e2326627bbb9767ed6374fef7c9e77c6c0ae9 | b7fc15a7aa3596facb7373bae9ea12124729cec3 | /Anotações de aula/Unidade20 - Hashing/criar.py | 8412b3adaae8d9a438e0593c13ca051b54b66acd | [] | no_license | gigennari/mc202 | 0801d081eb347b1106626dfa80c9f2a3e09e49ad | 22c88873028204fe86138bc241c547042417889e | refs/heads/master | 2023-03-30T17:02:32.569080 | 2021-03-18T18:03:15 | 2021-03-18T18:03:15 | 354,131,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | """
1º caso de teste: 10 100
2º caso de teste: 100000 72000
3º caso de teste: 100000 720000
"""
import random
numero_palavras = 10000
numero_ocorrencias = 72000
palavras = list()
num = 0
while len(palavras) < numero_palavras:
palavras.append('palavra' + str(num))
num += 1
num = 0
while num < numero_ocorr... | [
"g198010@dac.unicamp.br"
] | g198010@dac.unicamp.br |
ab8fb83994515cf9e89d97044d98deb791d77949 | f75632bafa7d9771655a2030cbf009e73682d0f2 | /woot/apps/distribution/tasks.py | 3f68728a4931983442732570a6c290a6a7202037 | [] | no_license | NicholasPiano/arktic | 563acab350e9d4f1ef5375d9237cba6d2df04295 | f28d868373f00aa8a817239f5bc167dadb50b053 | refs/heads/master | 2016-09-08T01:20:06.885034 | 2015-02-28T16:28:57 | 2015-02-28T16:28:57 | 19,547,469 | 0 | 1 | null | 2014-09-23T11:27:00 | 2014-05-07T19:31:26 | JavaScript | UTF-8 | Python | false | false | 3,292 | py | #apps.distribution.tasks
#django
from django.conf import settings
#local
from apps.distribution.models import Client, Project
from apps.transcription.models import Grammar
from apps.transcription.models import Transcription, CSVFile, WavFile
from libs.utils import generate_id_token
#util
import os
#third party
from... | [
"nicholas.d.piano@gmail.com"
] | nicholas.d.piano@gmail.com |
38993334e2ac97d9cadceb588d4434dc6502e8b1 | 2c84afdb7d80fd482738e2f8f715b717fecd0332 | /setup.py | 8367fcb7679105852081e44bb26831582a9372c6 | [
"Apache-2.0"
] | permissive | templeblock/g2pM | 16c36da17121a4f249f64d7895de38e50c459bda | e5b4f903364e496beebf03af7b40d4b5e8b2419f | refs/heads/master | 2022-11-23T13:46:50.952224 | 2020-07-27T03:07:28 | 2020-07-27T03:07:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | import setuptools
setuptools.setup(
name="g2pM",
version="0.1.2.4",
license='Apache License 2.0',
author="Seanie Lee",
author_email="lsnfamily02@gmail.com",
description="g2pM: A Neural Grapheme-to-Phoneme Conversion Package for MandarinChinese",
long_description=open('README.md').read(),
... | [
"lsnfamily02@naver.com"
] | lsnfamily02@naver.com |
f822112fc9a971124348558fda6eb04497c71c8e | be2185ca694c8f476b1425128669b1fa086c7107 | /tests/sandbox/handlers/test.py | 619f8afb89036a055c9b4e52d23b928650860100 | [] | no_license | scorphus/cow | 51983b13cd81d40a938762c1da4217a5d8584601 | bd633305f8bbdc4f5773685a8533edf76503e8e6 | refs/heads/master | 2021-01-16T21:58:38.097609 | 2014-07-15T18:00:09 | 2014-07-15T18:00:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from tornado.web import RequestHandler
class TestHandler(RequestHandler):
def get(self):
self.write(self.application.config.TESTCONF)
| [
"heynemann@gmail.com"
] | heynemann@gmail.com |
f636a2d707f57716c0f778ca500d9a5f8ff46b41 | 8e69eee9b474587925e22413717eb82e4b024360 | /v1.0.0.test/toontown/coghq/DistributedCountryClubBattleAI.py | be61dbe9e49a5cd8aa2e40b365c680060ab6f387 | [
"MIT"
] | permissive | TTOFFLINE-LEAK/ttoffline | afaef613c36dc3b70514ccee7030ba73c3b5045b | bb0e91704a755d34983e94288d50288e46b68380 | refs/heads/master | 2020-06-12T15:41:59.411795 | 2020-04-17T08:22:55 | 2020-04-17T08:22:55 | 194,348,185 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | from toontown.toonbase import ToontownGlobals
from toontown.coghq import DistributedLevelBattleAI
from direct.directnotify import DirectNotifyGlobal
from direct.fsm import State
from direct.fsm import ClassicFSM, State
from toontown.battle.BattleBase import *
import CogDisguiseGlobals
from toontown.toonbase.ToontownBat... | [
"s0mberdemise@protonmail.com"
] | s0mberdemise@protonmail.com |
3c7e3656ee88fd41d3feeb0279d5c585f3780f0f | b08f5367ffd3bdd1463de2ddc05d34cbfba6796e | /arrays/enumerate_primes.py | 6c7038972e282198034637fed64a0a7c27849707 | [] | no_license | uohzxela/fundamentals | cb611fa6c820dc8643a43fd045efe96bc43ba4ed | 6bbbd489c3854fa4bf2fe73e1a2dfb2efe4aeb94 | refs/heads/master | 2020-04-04T03:56:44.145222 | 2018-04-05T01:08:14 | 2018-04-05T01:08:14 | 54,199,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 496 | py | def enum_primes(n):
primes = []
is_primes = [True for i in xrange(n+1)]
for i in xrange(2, n+1):
if is_primes[i]:
for j in xrange(i*i, n+1, i):
is_primes[j] = False
primes.append(i)
return primes
assert enum_primes(200) == [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59,
61, 67, 71, 73... | [
"uohzxela@gmail.com"
] | uohzxela@gmail.com |
07c6192b7b075ee10dcfa5d5494b1986e19a39f6 | bc441bb06b8948288f110af63feda4e798f30225 | /topology_sdk/model/ops_automation/job_details_pb2.py | d2cba7c54d957a7db62940c518ec57ca9f04de40 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 10,214 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: job_details.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf... | [
"service@easyops.cn"
] | service@easyops.cn |
e6634981904e2b25a3fc4a233753b07e3e20c60b | fa032ddde94e7e397b15940159c706dadc89559c | /packages/std/nodes/std___If0/std___If0___METACODE.py | 861f76d269249d5ad29ed8b79a4fe738116bed05 | [
"MIT"
] | permissive | rkoschmitzky/pyScript | dd97ccb5d196c610de5df982ea006fa58652b82d | b60c6d3cdc3856e3b59843feaa7bdd2461f10158 | refs/heads/master | 2022-11-09T12:52:54.055020 | 2020-06-13T09:17:01 | 2020-06-13T09:17:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,504 | py | from custom_src.NodeInstance import NodeInstance
from custom_src.Node import Node
# USEFUL
# self.input(index) <- access to input data
# self.outputs[index].set_val(val) <- set output data port value
# self.main_widget <- access to main widget
# self.exec_output(index) ... | [
"leon.thomm@gmx.de"
] | leon.thomm@gmx.de |
2b19d579f3da6bd7b7e1259c5e69e68e9e083a04 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/env_info.py | b4922f230a4b405600fc3104026de9308661d152 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,936 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class EnvInfo:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6db96b1402f7b74098c653be32e69a153e0e21db | a660f0674e816e7f97353c0eec7c9960eed36889 | /examples/embedded_boundary.py | 97e535165514712553cbcd0b5270a719c6cb82eb | [
"Apache-2.0"
] | permissive | dbstein/ipde | da4642cbd26e4857c966123ed6654f38ddf5dff6 | a254bf128eba835284935290b8de09eb1374aa3f | refs/heads/master | 2022-07-22T14:29:47.420137 | 2022-07-13T18:30:10 | 2022-07-13T18:30:10 | 215,557,734 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,258 | py | import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import pybie2d
from ipde.embedded_boundary import EmbeddedBoundary
from ipde.heavisides import SlepianMollifier
from ipde.derivatives import fd_x_4, fd_y_4, fourier
from personal_utilities.arc_length_reparametrization import arc_length_paramete... | [
"dstein@flatironinstitute.org"
] | dstein@flatironinstitute.org |
43bf04948b4c8cc7dce04c4cf69f8c9dca6edab9 | 3c4e5c4ccb10b6aa529de50c61839e9207aa6306 | /tests/models/stats_result.py | db8128a1e1c54029e9af1a5e637e2e84a178a974 | [
"MIT"
] | permissive | stefaneutu/Jelly-Bot | 8ccde6482f767e8dfe85fdd1684760e64c86d227 | e3463760c8325c160acbe87c1374c2bab73e2731 | refs/heads/master | 2022-09-10T06:02:51.557389 | 2020-05-22T00:36:03 | 2020-05-22T00:36:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,537 | py | from datetime import datetime, timezone, date, timedelta
from time import gmtime, strftime
from bson import ObjectId
from django.test import TestCase
from pymongo.collection import Collection
from extutils.dt import TimeRange
from flags import MessageType, BotFeature
from tests.base import TestDatabaseMixin
from mode... | [
"raenonx0710@gmail.com"
] | raenonx0710@gmail.com |
c6cd2fc9dc2c9064c937f58a6dbfe5b5065a343e | 5da5473ff3026165a47f98744bac82903cf008e0 | /scripts/configure_release_please/configure_release_please.py | 6d457a63a8297a9d6910a911b66280d01abbfeeb | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 5,416 | py | import json
from pathlib import Path
from typing import Union, Dict, List, Tuple
import re
SCRIPT_DIR = Path(__file__).resolve().parent
ROOT_DIR = Path(SCRIPT_DIR / ".." / "..").resolve()
PACKAGES_DIR = ROOT_DIR / "packages"
def get_version_for_package(version_path: Path) -> Tuple[int]:
"""
Given a `version_... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
3159244fd02b2ff10c466b4c0a2f67ecdf62d672 | 92a619c043e0c26fb65e58619a0e1c5090a9efe0 | /Grokking_the_Coding_Interviews/p125_k_pairs_with_largest_sum.py | d4cd0c92088a92b85a86448e9706fa355f351ac0 | [] | no_license | curieshicy/My_Utilities_Code | 39150171f8e0aa4971cfc3d7adb32db7f45e6733 | 8b14a5c1112794d3451486c317d5e3c73efcd3b5 | refs/heads/master | 2022-06-22T06:06:39.901008 | 2022-06-20T16:00:51 | 2022-06-20T16:00:51 | 177,379,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | import heapq
def find_k_largest_pairs(nums1, nums2, k):
result = []
max_heap = []
i = 0
j = 0
while len(max_heap) < k:
if i + 1 < len(nums1) and j + 1 < len(nums2):
heapq.heappush(max_heap, (-nums1[i] - nums2[j], (nums1[i], nums2[j])))
heapq.heappush(max_hea... | [
"noreply@github.com"
] | curieshicy.noreply@github.com |
bc6c4a4c0bd8880ce526d203d61b4232b89dc9e9 | 4c8295990aad62b0edbf5c31ee8db9ee485fbea7 | /tests/test_room.py | d39e4d8fb46d5a586d11bf0e1d9b7a7704a1d81e | [
"MIT"
] | permissive | frostburn/image-source-reverb | 7b72e2d215f4f2dcedafb1cf2ecddd6ffca71c2f | 84c467249fb5fb1e978009510889a0447a625cda | refs/heads/master | 2021-04-16T18:54:36.948737 | 2020-03-23T14:57:13 | 2020-03-23T14:57:13 | 249,377,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import numpy as np
from image_source_reverb.room import Plane, Room
def test_mirrors_origin():
p = Plane([1, 0], distance=1.1)
x = p.mirror_point([0, 0])
assert np.allclose(x, [-2.2, 0])
def test_ignores_backside():
p = Plane([2, 1])
assert p.mirror_point([-2, -2]) is None
def test_triangle_ref... | [
"lumi.pakkanen@gmail.com"
] | lumi.pakkanen@gmail.com |
4c9ff60522b7965fb8c10f42157fec743e28aaee | 135999da46a46d95c5e8aa3e3dc840a589b46dc7 | /ch01Text/1.3re/FindingPatterns.py | 94e03f06bfbeb0fcb531ddb8957afcd53fcfdb52 | [
"MIT"
] | permissive | eroicaleo/ThePythonStandardLibraryByExample | 53e6b32f6b2c3125a0bf4023d5df8705756a756d | b9c48c026e6966eee32cd51b0c49a79a5cbdceb9 | refs/heads/master | 2016-09-05T18:48:30.325386 | 2014-09-09T06:58:21 | 2014-09-09T06:58:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #!/usr/bin/env python3
import re
pattern = 'this'
text = 'Does this text match the pattern?'
match = re.search(pattern, text)
start = match.start()
end = match.end()
print('Found "%s"\nin "%s"\nfrom %d to %d ("%s")' % (match.re.pattern, match.string, start, end, text[start:end]))
| [
"eroicaleo@gmail.com"
] | eroicaleo@gmail.com |
bc8ec7fa1aecc078fe811fbfae170f535f47fa6a | f22ca9aecda111a019502b462ce6772cb22d9425 | /test/test_order_abandoned.py | 02747404be9cb2f354e82036be14d89526568537 | [] | no_license | sivanv-unbxd/a2c-sdk-pim | cac05bc6335ddc3c4121d43e2dc476a6fec14965 | 51a07a0b7f90d74569ad14b47b174da7ac1fc374 | refs/heads/main | 2023-05-29T05:45:32.279821 | 2021-06-09T03:52:11 | 2021-06-09T03:52:11 | 375,218,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | # coding: utf-8
"""
Swagger API2Cart
API2Cart # noqa: E501
OpenAPI spec version: 1.1
Contact: contact@api2cart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client.models.orde... | [
"sivanv@unbxd.com"
] | sivanv@unbxd.com |
56df43e391086e06e386cee6ba4bd80b14b84822 | 921aa8e9f63ddd9e671b33e01fd18af1dafaffae | /keras/dtensor/__init__.py | bcc8b6e2c8db4d14482bec1d0bd5f90dfc108152 | [
"Apache-2.0"
] | permissive | Vishu26/keras | d116f875afb6c4ce5b7fbc783918463abfd9405a | c6fcaf79242ead384709973124069281f704b41d | refs/heads/master | 2022-05-29T06:24:56.299097 | 2022-03-11T10:37:09 | 2022-03-11T10:37:09 | 119,832,678 | 0 | 0 | null | 2018-02-01T12:25:54 | 2018-02-01T12:25:54 | null | UTF-8 | Python | false | false | 1,284 | py | # Copyright 2022 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5fd9bfc0c389d764ee513da806b8852833cdbb96 | 07b75ac7273a92ddb617023a90667f9609250419 | /A0/slam_03_c_find_cylinders_question.py | a9a1842270878fddf91edb9a6d633df61b8b12ec | [] | no_license | khaledgabr77/SLAM-Learn | be151e7ec01b39d2ff894403f29705c3258354f5 | a6fc208dbbcabb1b8fd8164dcebc5a5b8d212424 | refs/heads/master | 2022-11-07T05:34:39.433870 | 2020-06-29T22:47:25 | 2020-06-29T22:47:25 | 275,672,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | # For each cylinder in the scan, find its ray and depth.
# 03_c_find_cylinders
# Claus Brenner, 09 NOV 2012
from pylab import *
from lego_robot import *
# Find the derivative in scan data, ignoring invalid measurements.
def compute_derivative(scan, min_dist):
jumps = [ 0 ]
for i in range(1, len(scan) ... | [
"khaledgabr77@gmail.com"
] | khaledgabr77@gmail.com |
7c1452fbcea938785de3c562f1d098d900b97550 | 8a166a0ad64efccb6231b2a351a65a54d6e0fa8e | /tests/test_quadApprox.py | eb8a76a20b9a819098ae632305cf43e3785c57d4 | [] | no_license | frossie-shadow/astshim | 6c29d584b5e6522e319f81672eb9512f0f62d8d0 | f6b1fd7af3e7147e4266d1bb44b9a8be5df29870 | refs/heads/master | 2021-01-19T17:50:13.479819 | 2017-08-03T17:56:29 | 2017-08-03T17:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | from __future__ import absolute_import, division, print_function
import unittest
import numpy as np
from numpy.testing import assert_allclose
import astshim
from astshim.test import MappingTestCase
class TestQuadApprox(MappingTestCase):
def test_QuadApprox(self):
# simple parabola
coeff_f = np.... | [
"rowen@uw.edu"
] | rowen@uw.edu |
079c41f794ad86e3d9b2fc122f2516e676cdd849 | b059c2cf1e19932abb179ca3de74ced2759f6754 | /S20/用协程实现TCP server端/server端.py | 7b4194d0d3f898fdcf9dfcf1c9dce3b34b1472bd | [] | no_license | Lwk1071373366/zdh | a16e9cad478a64c36227419d324454dfb9c43fd9 | d41032b0edd7d96e147573a26d0e70f3d209dd84 | refs/heads/master | 2020-06-18T02:11:22.740239 | 2019-07-10T08:55:14 | 2019-07-10T08:55:14 | 196,130,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # from gevent import monkey;monkey.patch_all()
# from socket import *
# import gevent
# def sever(ipport):
# s = socket(AF_INET,SOCK_STREAM)
# s.setsockopt(SOL_SOCKET,SO_REUSEADDR,1)
# s.bind(ipport)
# s.listen(5)
# while True:
# cnn, addr = s.accept()
# print('%s is from %s'%(cnn, a... | [
"1071373366@qq.com"
] | 1071373366@qq.com |
33ab547fa528dc26b3e4296150c3b317e78c2b17 | a4ad068e96b772786e5eeb0bec027b759924cd12 | /chatapp/migrations/0001_initial.py | f939dede1ad22b16638cd88ed590b1da3951dcc8 | [] | no_license | kolamor/chatrest | 54f04459ec323df7d8a1603a3a91432d360b1b1d | f48084b14ecc516cff7acf80349113afca18ecb9 | refs/heads/master | 2020-04-03T18:04:58.808642 | 2018-11-04T23:35:53 | 2018-11-04T23:35:53 | 155,470,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | # Generated by Django 2.1.2 on 2018-10-31 13:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"kolamorev@mail.ru"
] | kolamorev@mail.ru |
41f5c58f77649619cdd25701bcfe33c729f7cb27 | c237dfae82e07e606ba9385b336af8173d01b251 | /lib/python/Products/ZCTextIndex/PipelineFactory.py | db26faffb6f4c1f06f8114d6fa52e1212d487bbf | [
"ZPL-2.0"
] | permissive | OS2World/APP-SERVER-Zope | 242e0eec294bfb1ac4e6fa715ed423dd2b3ea6ff | dedc799bd7eda913ffc45da43507abe2fa5113be | refs/heads/master | 2020-05-09T18:29:47.818789 | 2014-11-07T01:48:29 | 2014-11-07T01:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | [
"martin@os2world.com"
] | martin@os2world.com |
f9708f992615e8edde8247e26bb3fbfa8054cbe0 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_19413.py | dc23e47f7fa018a4eed46872ce144ce63316e29c | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | # parsing .xml blast output with re
Bio.Blast.NCBIXML
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
77433b38a0a5abc355c4e2066d00ae7b3f9227dc | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/hashSet_20200803081841.py | 6a89f7864e8b0daabfa670dc0ec35c942841797a | [] | 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 | 92 | py | class myHashSet:
def __init__(self):
def add(self,key:int):
def remove() | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.