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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
41c34df88625b98c3fb8db316735a000d16b5f94 | d6839608315afea71d630e80f497d62f4db8394d | /avion.py | ab7b269c7172229ce50817cc168e991863072e0f | [
"MIT"
] | permissive | Win-Htet-Aung/kattis-solutions | 895a60052f727a41388dd539205ec56f2e2794eb | 2f9d5e596b0290854767c15c0de6a2b5ba5a9a9d | refs/heads/master | 2023-01-14T07:54:17.375659 | 2023-01-06T16:02:12 | 2023-01-06T16:02:12 | 228,601,550 | 0 | 0 | null | 2022-10-19T04:40:36 | 2019-12-17T11:27:01 | Python | UTF-8 | Python | false | false | 125 | py | blimps = [str(i) for i in range(1, 6) if 'FBI' in input()]
if blimps:
print(' '.join(blimps))
else:
print('HE GOT AWAY!')
| [
"whaung1998@gmail.com"
] | whaung1998@gmail.com |
6f2668b7fc9cb9115c0c540360b6d82bef6db594 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ccm/huaweicloudsdkccm/v1/model/batch_operate_tag_request_body.py | 76136670d87fa7e6b2e9dd5fa625e0aec82a0d4f | [
"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 | 3,282 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class BatchOperateTagRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
75419b501b60466eb6c64ce892fb4c006f7d5616 | 837d52d759b7793875d7ba786adb108ed6ccd037 | /eqip/gunpowder_utils.py | 1c6bb69c4dc3deccce42bcfa4b0c7fadc2e13d8d | [
"BSD-2-Clause"
] | permissive | saalfeldlab/eqip | 3098a77fdc87ef84601991d0cdbd0189a8091865 | 151af6fd3c3c9eabe19e14a1c3c04437def79393 | refs/heads/master | 2020-04-12T11:52:33.143689 | 2020-03-17T13:02:03 | 2020-03-17T13:02:05 | 162,474,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | import logging
_logger = logging.getLogger(__name__)
import glob
import itertools
from gunpowder import ArrayKey, ArraySpec, Hdf5Source
from fuse import Z5Source
RAW_KEY = ArrayKey('RAW')
DEFECT_MASK_KEY = ArrayKey('DEFECT_MASK')
LABELS_KEY = ArrayKey('LABELS')
NEURON_IDS_KEY ... | [
"hanslovskyp@janelia.hhmi.org"
] | hanslovskyp@janelia.hhmi.org |
9127c4491b2fc7001569404cccfae74993794209 | 6bd4eff3c0ca5b2dd575dbee2b0a02a898f642d6 | /清洗代码/cpws/pro/heilongjiang.py | 69b767624410281168c72d5dab9651ad2cd8d93f | [] | no_license | marvinlizhaorui/youshu | 620a9820c6bb4b4729b9a1cbccf4d426afde110e | bf62387ffe564668681b8a514b98d539b7290b4c | refs/heads/master | 2020-04-09T07:39:27.525808 | 2018-09-27T13:05:40 | 2018-09-27T13:05:40 | 160,164,943 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | from IKEA.mysql.mysqlbase import MysqlBase
import re
from pyquery import PyQuery as pq
connector = {
'host': '10.1.1.40',
'user': 'xuewensi',
'password': 'SE2LIPIhCo8gprAY',
'db': 'judge_doc'
}
def heilongjiang_article(items):
content = items['content']
content = re.sub(' ', '', con... | [
"30498473+zhaoqiji@users.noreply.github.com"
] | 30498473+zhaoqiji@users.noreply.github.com |
39edd8bf78fd6aee9b44d35fd150813c50b4ddd3 | 4cb9a9042a7b1a8737b0226cd045ce0ff47072ed | /egs/wham/lstm-tasnet/local/test_separate-noisy.py | 384c5743cf1d836f9fd362e26025de96d9bff96f | [] | no_license | shelly-tang/DNN-based_source_separation | 4f2270aaf9cdc720649a4ff381a552e80f9cd9f8 | 4f7f77406cf580785ebf932d78069e7d6e35b765 | refs/heads/main | 2023-08-25T10:03:53.875951 | 2021-10-09T18:19:43 | 2021-10-09T18:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,571 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import torch
import torch.nn as nn
from utils.utils import set_seed
from dataset import WaveTestDataset, TestDataLoader
from adhoc_driver import Tester
from adhoc_model import LSTMTasNet
from criterion.sdr import NegSDR, NegSISDR
from criterion.pit import... | [
"40362510+tky823@users.noreply.github.com"
] | 40362510+tky823@users.noreply.github.com |
9417aee5dc7426e394f40af3caffd7fd6ee7eef2 | ddc6e402758c364d25ce9caeda7b3cd94dbcd546 | /Medium/144_BinaryTreePreorderTraversal.py | 0178a1c8d00bd9b5b38896d59b2eb6a4557f0177 | [] | no_license | J-pcy/Jffery_Leetcode_Python | f01cdbb31a114bc6ed91139d0bd2cdddda35a503 | f34c370fbb9fb171d5ec33337116a764c25cd2dd | refs/heads/master | 2020-03-20T20:20:02.931776 | 2018-11-02T19:41:36 | 2018-11-02T19:41:36 | 137,682,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | """
Given a binary tree, return the preorder traversal of its nodes' values.
Example:
Input: [1,null,2,3]
1
\
2
/
3
Output: [1,2,3]
Follow up: Recursive solution is trivial, could you do it iteratively?
"""
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# ... | [
"chenyupe@usc.edu"
] | chenyupe@usc.edu |
9d50253f100f0f17fb1afeb9306a082ea9869d0d | e46a9761421b639ed2a919a74e26f99d7dcb0ce7 | /tracext/github.py | 5aa3712c2e3369420e1584488cd0f303461088b2 | [
"BSD-3-Clause"
] | permissive | gijs/trac-github | ddbe47330384e1d10406349998d3a9a9034ec9d8 | 5da56fe8b0a427aaa11ae231e3c3535e878c0006 | refs/heads/master | 2020-04-07T18:37:41.053490 | 2012-10-16T21:16:30 | 2012-10-16T21:16:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,060 | py | import fnmatch
import json
import re
from trac.config import ListOption, Option
from trac.core import Component, implements
from trac.resource import ResourceNotFound
from trac.timeline.api import ITimelineEventProvider
from trac.util.translation import _
from trac.versioncontrol.api import is_default, NoSuchChangeset... | [
"aymeric.augustin@m4x.org"
] | aymeric.augustin@m4x.org |
72d87b2ec67a18732e4e163e0d649ca15321692d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03496/s040906579.py | fe4702f47b6a50ea1a0fe1382b086a23777442b9 | [] | 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 | 2,063 | py | #!/usr/bin/env python3
from collections import defaultdict,deque
from heapq import heappush, heappop
from bisect import *
import sys, random, itertools, math
sys.setrecursionlimit(10**5)
input = sys.stdin.readline
sqrt = math.sqrt
def LI(): return list(map(int, input().split()))
def LF(): return list(map(float, input()... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a2772b67fe74efa4c34b4fad27572188d0f6b80f | 46f8860e0e8d4252ad85d2121bb2387c74287a14 | /problem/p_0098_validate_binary_search_tree/solutions.py | 2683217d7422f147b20bafca8129c7e2b2ddf39d | [] | no_license | Lee-W/leetcode | 2a11c853cf0a7f8bca39f94f93cc75401e5a1afa | b66e5a6016525bec98e7865d6e31f1dc9f0b4be6 | refs/heads/master | 2023-09-01T15:52:56.570276 | 2022-08-02T07:22:11 | 2022-08-02T07:22:11 | 180,076,811 | 3 | 1 | null | 2023-08-11T19:57:00 | 2019-04-08T05:35:55 | Python | UTF-8 | Python | false | false | 2,267 | py | from typing import Optional
# Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
@staticmethod
def find_rightmost(node: TreeNode) -> TreeNode:
rightmost = n... | [
"weilee.rx@gmail.com"
] | weilee.rx@gmail.com |
6a5470634c21338c6004f45ed009cdf9a231c7fb | 6b87649ff35c01f8b288da870776552a20e96913 | /examples/NN/1_MNIST/mnist_mlp_train_batch.py | 30b42077a306084022c93dcfe2a9714f441308e1 | [
"MIT"
] | permissive | salvacarrion/pyeddl | e2289afd3b0e42d6a3313ba9faf80654f789bf31 | bcff8d3dee58bc488ed0494bc58b58398fa021e4 | refs/heads/master | 2022-01-14T20:13:55.139064 | 2021-11-12T16:04:13 | 2021-11-12T16:04:13 | 224,464,012 | 0 | 0 | MIT | 2019-11-27T15:44:10 | 2019-11-27T15:44:09 | null | UTF-8 | Python | false | false | 4,288 | py | # Copyright (c) 2019-2021 CRS4
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribut... | [
"simleo@crs4.it"
] | simleo@crs4.it |
2b7ca4f439194fecb3a4c56fbe03fd79dc10c84b | 7902dfff535160194052f8f72445c2d150dd5a3a | /googleAu/googleAu/settings.py | 8b0b74f1aa12863ee64449df8358b21456043e45 | [] | no_license | ShanuJayaweera/journeyRide | f2664e5c1b228a914033b6a025e207487ff5cb2c | 8dc07196aba2b9509c1b7d639bdec3d78c9d9d55 | refs/heads/master | 2022-02-21T02:56:51.089009 | 2019-08-10T16:45:44 | 2019-08-10T16:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,584 | py | """
Django settings for googleAu project.
Generated by 'django-admin startproject' using Django 2.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"you@example.com"
] | you@example.com |
773040fc606597ad486b0b3e9a071571a46bbdc1 | c121a3df58a0b1b5665439f94f7c7f83c1b0492b | /code/model/unet/ff.py | b8ff109fdcc568ad236d0efa81ed63bc8b0fe4bc | [
"MIT"
] | permissive | Rhoana/icon | a73d100336ae3845e7b326357c9598fbeabefbd8 | 1666ed2651c7ca81e0343ace3641d862684509a7 | refs/heads/master | 2022-10-11T21:28:38.579729 | 2022-09-30T13:58:36 | 2022-09-30T13:58:36 | 91,745,495 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 36,759 | py | import os
import sys
import skimage.transform
import skimage.exposure
import time
import glob
import numpy as np
import mahotas
import random
import matplotlib
import matplotlib.pyplot as plt
import scipy
import scipy.ndimage
import json
from scipy.ndimage.filters import maximum_filter
base_path = os.path.dirname(__fi... | [
"felix.e.gonda@gmail.com"
] | felix.e.gonda@gmail.com |
706c863ab1647bde71a2db8ee2d122c5d9713807 | 43ae9f032b54f438c74598feb20a49e0e7d62393 | /mmdet/models/anchorfree_heads/__init__.py | d3ec18f6e685250ba5b8e4cadb004f6310cf49d4 | [
"Apache-2.0"
] | permissive | ziming-liu/ObjectDet | 5818c1824376178614a5b5b94afa2f912ede3ad1 | 6e25fa784114b9773b052d9d5465aa6fed93468a | refs/heads/master | 2020-06-20T07:48:50.441825 | 2020-06-02T10:38:22 | 2020-06-02T10:38:22 | 197,048,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from .fsaf_head import FSAFHead
from .fsaf_retina_head import FSAF_RETINA_Head
__all__ = ['FSAFHead','FSAF_RETINA_Head']
| [
"zimingemail@163.com"
] | zimingemail@163.com |
e0e1095752ccff458f51f040a2c69c37a1b35268 | 14f085fe9db8179dd44c18f00c1184881dcfe21a | /testing/circ1.py | 30cdd6ca9ed58559265cf0c42dfc85adb0d66ddd | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause-Open-MPI",
"LGPL-2.1-or-later",
"LicenseRef-scancode-other-permissive",
"Python-2.0",
"BSL-1.0",
"BSD-2-Clause",
"MPL-2.0"
] | permissive | devsim/devsim | 7ba495952239d4e9c0170c0a5a89905aa9eb3e1e | 3d979d6a98685b2e51c15eebd20afdc1e643fc3a | refs/heads/main | 2023-08-31T10:40:41.346966 | 2023-08-30T16:42:56 | 2023-08-30T16:42:56 | 8,838,727 | 158 | 69 | Apache-2.0 | 2023-07-15T03:21:34 | 2013-03-17T18:01:17 | C++ | UTF-8 | Python | false | false | 2,522 | py | # Copyright 2013 DEVSIM LLC
#
# SPDX-License-Identifier: Apache-2.0
#### circ1.tcl
####
#### two devices which connected to one another
import devsim
import test_common
devices=("MyDevice1", "MyDevice2")
region="MyRegion"
####
#### Meshing
####
test_common.CreateSimpleMesh(device=devices[0], region=region)
devsim.c... | [
"juan@tcad.com"
] | juan@tcad.com |
acc4a3faf3245518287b85d581f192bd615ef2a4 | 97269aff7ac32e9a63c52aac8288a44341d38463 | /backend/garpix_notify/models/config.py | e79d1af197fa558b6e4f93a8a8e56f185541b2c8 | [
"MIT"
] | permissive | Beerhead/garpix_notify | cd4d9105b70527551f014b99ac27b905fe40ea91 | a56d17ef278a2e96342e144bc918a647f4cc5d22 | refs/heads/master | 2023-08-11T22:35:31.548931 | 2021-10-01T10:29:06 | 2021-10-01T10:29:06 | 412,359,820 | 0 | 0 | MIT | 2021-10-01T06:49:14 | 2021-10-01T06:49:13 | null | UTF-8 | Python | false | false | 5,995 | py | from django.db import models
from solo.models import SingletonModel
class NotifyConfig(SingletonModel):
periodic = models.IntegerField(default=60, verbose_name='Периодичность отправки уведомлений (сек.)')
email_max_day_limit = models.IntegerField(default=240, verbose_name='Дневной лимит отправки писем')
... | [
"crusat@yandex.ru"
] | crusat@yandex.ru |
1cacb9782da30613cea0dbcf9a0b8d8242153b37 | d653492bf2439c5535b1b1f0ccf53e01c72e7af3 | /tests/test_hacker_news_to_sqlite.py | c5593c287912abc7f6c1190bc168b8d58e2737be | [
"Apache-2.0"
] | permissive | intfrr/hacker-news-to-sqlite | e6c7fa2b471606cc9f12c5b22e67e9a7ab855352 | c8697b3e4ef044412209b52c70548fedbcb346c7 | refs/heads/master | 2021-05-23T15:34:57.130464 | 2020-03-22T15:44:45 | 2020-03-22T15:44:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | import pytest
import sqlite_utils
from click.testing import CliRunner
from hacker_news_to_sqlite import cli
import json
def test_import_user(tmpdir, requests_mock):
db_path = str(tmpdir / "data.db")
requests_mock.get(
"https://hacker-news.firebaseio.com/v0/user/simonw.json",
text=json.dumps(
... | [
"swillison@gmail.com"
] | swillison@gmail.com |
523d9ee2f601c100a18a25234f104a59e275c803 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-iothubprovisioningservices/azure/mgmt/iothubprovisioningservices/models/certificate_list_description.py | 5d24e2c49cbd8ab67ee6f218ccd25ad15bfe7ee7 | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 989 | 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 ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
b0541d0d86201c2155636364784f89f8df92ec65 | 6181fcd4a266d963a0ee85971768c97922ca77cd | /src/garage/sampler/_functions.py | ac6545b0634bd2568c988d76fb762f6fcad1b929 | [
"MIT"
] | permissive | rlworkgroup/garage | 5d215bbecb3a4e74b504988d6684a7b04df69a80 | 2d594803636e341660cab0e81343abbe9a325353 | refs/heads/master | 2023-08-21T22:58:49.338034 | 2023-01-04T06:06:27 | 2023-01-04T06:06:27 | 136,846,372 | 1,832 | 363 | MIT | 2023-09-11T11:36:40 | 2018-06-10T21:31:23 | Python | UTF-8 | Python | false | false | 1,384 | py | """Functions used by multiple Samplers or Workers."""
from garage import Environment
from garage.sampler.env_update import EnvUpdate
def _apply_env_update(old_env, env_update):
"""Use any non-None env_update as a new environment.
A simple env update function. If env_update is not None, it should be
the c... | [
"noreply@github.com"
] | rlworkgroup.noreply@github.com |
16bafb5b05658683776c017ec4f3ad65a78caf00 | 83b242997a1560214285fd38ab4d39a0b1210ddc | /SOL4Py/ZScrolledImageView.py | c745e347d040d7fe6da00a34c079e515f27c8386 | [] | no_license | ivartz/vid2fft | 0a25d853e178b43fd0a5f765934887963f5c37f9 | 1b6ec82de04f86819ab4c1056d4f9d9bde1ed9c8 | refs/heads/master | 2020-08-07T21:44:28.745553 | 2019-10-08T09:18:41 | 2019-10-08T09:18:41 | 213,594,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | #/******************************************************************************
#
# Copyright (c) 2018 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free ... | [
"djloek@gmail.com"
] | djloek@gmail.com |
ef409d38f34f9cab2ecd6afc696e8c481df10974 | 819479bc6920113073efded94aad5e765a315101 | /chapter15/my-robot-skill/__init__.py | 557e5dcacf7be74efe78998876068882bad54179 | [
"MIT"
] | permissive | PacktPublishing/Learn-Robotics-Programming-Second-Edition | a419ee2a3877856103a7d81a4e6f847d646307f9 | 7181e42f4e6cb038d70d15bae927895f556c5ab8 | refs/heads/master | 2023-02-08T21:03:05.379100 | 2023-01-30T09:40:04 | 2023-01-30T09:40:04 | 229,885,343 | 37 | 21 | MIT | 2022-02-27T11:56:57 | 2019-12-24T06:34:41 | Python | UTF-8 | Python | false | false | 1,072 | py | from adapt.intent import IntentBuilder
from mycroft import MycroftSkill, intent_handler
from mycroft.util.log import LOG
import requests
class MyRobot(MycroftSkill):
def __init__(self):
super().__init__()
self.base_url = self.settings.get("base_url")
@intent_handler(IntentBuilder("")
... | [
"danny@orionrobots.co.uk"
] | danny@orionrobots.co.uk |
a713678e48c9e928085b7e440fd0547767ec397d | 58c122786263edf8aec4a6b6b4986b2f3d4ff1d5 | /modules/unit_tests/s3/__init__.py | 39d88b2944a66bf7980eb78a912d3dd65ef5a50d | [
"MIT"
] | permissive | andygimma/eden | c9d0819e87ef05ff607cac6120dbddc86e55bc31 | 716d5e11ec0030493b582fa67d6f1c35de0af50d | refs/heads/master | 2021-01-15T21:54:03.240072 | 2012-11-16T05:13:11 | 2012-11-16T05:13:11 | 6,726,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | from unit_tests.s3.s3aaa import *
from unit_tests.s3.s3import import *
from unit_tests.s3.s3model import *
from unit_tests.s3.s3resource import *
from unit_tests.s3.s3search import *
from unit_tests.s3.s3rest import *
from unit_tests.s3.s3widgets import *
from unit_tests.s3.s3xml import *
| [
"dominic@nursix.org"
] | dominic@nursix.org |
fd6e8e3a1dfc4068dc427ee066b97f52155a6e85 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02879/s494375814.py | 7da43fd8885bc49c28ec181b332698a0a3050397 | [] | 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 | 122 | py | A,B=map(int,input().split())
check=[1,2,3,4,5,6,7,8,9]
if A in check and B in check:
print(A*B)
else:
print("-1")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8e9c08a4bd17d722dfb20b566654770181158f07 | 677988c5658f9328aca14a94f4f5c6007b666be4 | /purchase_webkit/__openerp__.py | d16bf47688edf843a0639b9ec8d669d8ffe4846a | [] | no_license | VitalPet/7.0-webkit-reports | 6f94e449a5c9e18c74990c7a8afe71d269644bf3 | 423045b157687dbc53bba4354185db9489e915a3 | refs/heads/master | 2016-09-06T04:06:20.675526 | 2015-01-06T21:39:53 | 2015-01-06T21:39:53 | 28,884,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2011-2013 Serpent Consulting Services Pvt. Ltd. (<http://www.serpentcs.com>)
#
# This program is free software: you can redistribute it and/or modi... | [
"bthomas@vitalpet.com"
] | bthomas@vitalpet.com |
252fce5af7bcc82bdd3770ee695d923f71e77aa9 | ae6189642a07fd789f51caadb924328a54919cac | /100-problems/review/breadth-first-search/31-illumination-2.py | 2b1a1da7062ecdd25b7aaceb1412df1009894e8d | [] | no_license | d-matsui/atcorder | 201e32403653b2fdf0d42188faf095eb8b793b86 | 22ec1af8206827e10a986cb24cf12acc52ab1d6a | refs/heads/master | 2020-09-27T23:15:27.281877 | 2020-09-01T13:24:34 | 2020-09-01T13:24:34 | 226,632,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | #!/usr/bin/env python3
from pprint import pprint
from collections import deque
import sys
sys.setrecursionlimit(10 ** 6)
INF = float('inf')
W, H = map(int, input().split())
dummy_row = [0] * (W + 2)
field = [dummy_row]
for _ in range(H):
dummy = [0]
row = dummy + list(map(int, input().split())) + dummy
... | [
"mti.daiki@gmail.com"
] | mti.daiki@gmail.com |
ad1d842767dc3510bcd65d9caf13512f3e9f7531 | 2635c2e2c31a7badb8b188306c3cdfc61dc1ecc8 | /ihm_hist_modelo/models/historico_variaciones.py | ae7917971d3e35d05b8e9d94241a3ce1ac30293f | [] | no_license | rosalesdc/ihm_testing | ec4ebf26c3c7602267a04fd183de4064f9d16bc1 | d91ebeac5504c9f29a21b2b0f05bc16ed240ff48 | refs/heads/master | 2020-04-17T01:21:03.214595 | 2019-10-29T23:05:52 | 2019-10-29T23:05:52 | 166,088,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py |
# -*- coding: utf-8 -*-
from odoo import api
from odoo import fields
from odoo import models
from odoo.addons import decimal_precision as dp
class HistoricoVariaciones(models.Model):
_name = 'historico.variaciones'
date_order = fields.Datetime(
string="Fecha de pedido"
... | [
"rosales9146@gmail.com"
] | rosales9146@gmail.com |
00430f687cba973a013e6ce6ac5b3f1c4650844c | 575d197af5bbc31b89df37f8733e81707294948c | /Python1/examples/reduce_sum.py | ec03f88fde10b5b3a46aad483dc59555abc2749d | [] | no_license | tisnik/python-programming-courses | 5c7f1ca9cae07a5f99dd8ade2311edb30dc3e088 | 4e61221b2a33c19fccb500eb5c8cdb49f5b603c6 | refs/heads/master | 2022-05-13T07:51:41.138030 | 2022-05-05T15:37:39 | 2022-05-05T15:37:39 | 135,132,128 | 3 | 2 | null | 2021-04-06T12:19:16 | 2018-05-28T08:27:19 | Python | UTF-8 | Python | false | false | 102 | py | from functools import reduce
x = range(1, 101)
print(x)
y = reduce(lambda a, b: a + b, x)
print(y)
| [
"ptisnovs@redhat.com"
] | ptisnovs@redhat.com |
7ee5ef7fa1d48f57363d791b73e4db387eaa7dca | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/02_preprocessing/merraLagScripts/270-tideGauge.py | a5bee4cabc3b9ca5698d3e86c9b399de1b9b237e | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
90c5a0d859284dcc62e903dc154d37abb8ede8b3 | b2d202223b0c16897f656122cd8bebaab618eb19 | /text_word_count.py | 34d5a94e9871f3efd8d82082023b673fcfd941dc | [] | no_license | aambrioso1/HCC-Programming-Project | be4ff1535776b839c197fd496afcabbceb0642a5 | a6215207a381e862369adb4d799cb1fcbb7918f0 | refs/heads/master | 2022-02-03T10:52:43.172015 | 2022-01-21T22:04:26 | 2022-01-21T22:04:26 | 156,882,613 | 0 | 1 | null | 2020-05-08T14:39:54 | 2018-11-09T15:41:55 | Python | UTF-8 | Python | false | false | 2,551 | py | """
Written by Ambrioso @ 2020
A program to count words in text and confirm Zipf's Law:
https://en.wikipedia.org/wiki/Zipf%27s_law
Nice Video about the law: https://youtu.be/fCn8zs912OE
(Law and graph introduced from: 0 to 1:20 min)
Note the program using a module my_plot_module.py that must be in the working direc... | [
"aambrioso1@gmail.com"
] | aambrioso1@gmail.com |
ec71bb811e945e05f770b3694eb04f5661ee260d | b48ca98425b9510d16623277a0761a33c00d028d | /SeatReservation-Version3.0/SeatReservation-master/venv/Lib/site-packages/urllib3/contrib/pyopenssl.py | 3e6dad8a282964cc01cbe68b8cde841f8e924360 | [] | no_license | billgoo/WHULibSeatReservation | f74a01db19f51a2034772d932c59afd9f63c7753 | 5423ef7df253739ccf279365c1dec1ebfe7f2c4f | refs/heads/master | 2020-04-02T07:18:33.174744 | 2018-12-23T15:26:15 | 2018-12-23T15:26:15 | 154,190,237 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,775 | py | """
SSL with SNI_-support for Python 2. Follow these instructions if you would
like to verify SSL certificates in Python 2. Note, the default libraries do
*not* do certificate checking; you need to do additional work to validate
certificates yourself.
This needs the following packages installed:
* pyOpenSSL (... | [
"noreply@github.com"
] | billgoo.noreply@github.com |
7352aef95c00821352a287158f1bed35c92a054c | 018db4f6ab0f882b5b1da915048c581ccd066944 | /count_alphabet.py | 41bf934ee7324859417895cf0febd2764c601c85 | [] | no_license | nomadlife/python-exercise | 7c26d8ce29b5e28d7f0716c576e5aafc9c968bf3 | 62dc653f24577fd923251191b87c4ad77f7bf33c | refs/heads/master | 2021-11-25T09:03:16.431239 | 2021-10-31T10:39:27 | 2021-10-31T10:39:27 | 102,733,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | def usage():
print("""
Usage:
python count_alphabet.py [textfile]
options:
-h --help Show this screen
""")
import sys, getopt
def main(argv):
try:
opts, atgs = getopt.getopt(argv, 'h', ['help'])
except:
print('Usage: python count_alphabet.py [textfile] ')
... | [
"joonwoo3816@gmail.com"
] | joonwoo3816@gmail.com |
2675764b8d9552ae5adf8cfbe7d9c319fdbd425e | fc212767c6c838360b62a3dcd8030a1dfcbf62fc | /muddery/web/utils/general_context.py | 82b032cbedf4f89340c92817728a67cecd545f80 | [
"BSD-3-Clause"
] | permissive | caibingcheng/muddery | 24d6eba76358621736e6a3d66333361239c35472 | dcbf55f4e1c18a2c69576fd0edcec4699c1519b9 | refs/heads/master | 2021-05-19T09:49:19.319735 | 2020-03-29T03:55:51 | 2020-03-29T03:55:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,775 | py | #
# This file defines global variables that will always be
# available in a view context without having to repeatedly
# include it. For this to work, this file is included in
# the settings file, in the TEMPLATE_CONTEXT_PROCESSORS
# tuple.
#
from django.conf import settings
from muddery.utils import utils
from muddery... | [
"luyijun999@gmail.com"
] | luyijun999@gmail.com |
92624557260d9f8aadafe81c5e31cdfad801267d | 47866c22fc23afe74fce200a5269d0d657062dc8 | /2019-05-beautiful-days-at-the-movies/solution.py | 1e90044f883c9fc964d91488f6e617ad1cd1f312 | [] | no_license | wlifferth/Hackerrank | a6503e691b3031867330b782013bb8efca34f993 | b3aa71a7d05d74afcebe98a0bfc94949206d7776 | refs/heads/master | 2021-04-12T03:56:26.999866 | 2020-09-01T03:42:01 | 2020-09-01T03:42:01 | 125,760,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the beautifulDays function below.
def beautifulDays(i, j, k):
beautiful_count = 0
for x in range(i, j + 1):
if is_beautiful(x, k):
beautiful_count += 1
return beautiful_count
def is_beautiful(x, k):
... | [
"wlifferth@icloud.com"
] | wlifferth@icloud.com |
f98fbfd697c516e6f757bd236f83217c16ca5f71 | 87a9c35577aec76d07028bdc7e155a0e7d90bece | /hello.py | 1de3754901c794c73d3588b14491e616feee5cca | [] | no_license | htzs12/flask_study | d8fc2df2b34598a57519418fbb0c8006a519b8a2 | e47460aab33f90f46813c8e5c1130c2e88f5443e | refs/heads/master | 2020-05-31T23:38:50.307895 | 2019-07-15T09:06:01 | 2019-07-15T09:06:01 | 190,542,273 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | import os
from datetime import datetime
from flask import Flask, request, make_response, redirect, render_template, url_for, session, flash
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
from flask_bootstrap import Bootstrap
from flask_moment i... | [
"www.htzs@qq.com"
] | www.htzs@qq.com |
2818358b1fc0a49d79c78879969dc7f5336b0846 | 7316b60dcb8de197f075863c5014ff5b9c1ef3ce | /metrics_dashboard/tests/widget_pool_tests.py | 7d9c8efd24f28dd6ae67ff722f78fee8a6a3c454 | [
"MIT"
] | permissive | jirah/django-metrics-dashboard | 944c154222968c6f9d45dfd96ce1062f446bbd4d | f4275398960b286a087af94b3929397d1d8e173f | refs/heads/master | 2020-12-25T12:18:08.151073 | 2013-03-06T15:07:14 | 2013-03-06T15:07:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,332 | py | """Tests for the Widget Pool of the ``django-metrics-dashboard`` app."""
from django.test import TestCase
from django.core.exceptions import ImproperlyConfigured
from metrics_dashboard.exceptions import WidgetAlreadyRegistered
from metrics_dashboard.tests.mixins import WidgetTestCaseMixin
from metrics_dashboard.tests.... | [
"mbrochh@gmail.com"
] | mbrochh@gmail.com |
2d78b9b213cdfc223f305ab6a495f4096cc58d79 | c7272b4f02a44cbe1b2eb29a40ec9abcd9f17f8a | /mainapp/migrations/0007_auto__add_field_main_invite.py | e059e26abf7f305a92a5e37ef498a640f69e95ad | [] | no_license | crakama/portfolio | 2b5d4ca7b18ba7c82fae73a2c6e8d2dc39d427d7 | 4cbf083330f315d61bab3facc8a1dd8edcb121f3 | refs/heads/master | 2021-01-09T20:52:37.402806 | 2016-06-22T20:59:30 | 2016-06-22T20:59:30 | 59,672,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Main.invite'
db.add_column(u'mainapp_main', 'invite',
... | [
"crakama89@gmail.com"
] | crakama89@gmail.com |
5e993bf38a9b48415ce4d2efcf4dec35832c914f | 6b52fba84fb75c568652ceb6a89608a685f1e633 | /queueWithMin.py | 59a34d0346b6c811a1544534660562ea4207d57d | [
"Apache-2.0"
] | permissive | yubinbai/python_practice | dfdbfa1c506998c149086a73bd1c6905e6168674 | f3754ef00ab357299ccb3ac72bea6663bb61b1c7 | refs/heads/master | 2021-01-24T21:47:52.765703 | 2015-04-21T04:48:08 | 2015-04-21T04:48:08 | 34,236,328 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | ''' Design a queue that supports push_rear, pop_front, and get_min in O(1).
Would that be elegantly possible too? '''
import collections
class minQueue:
data = collections.deque()
minCandidates = collections.deque() # save the possible mins
def isEmpty(self):
return len(self.data) == 0
def... | [
"baiyubin@gmail.com"
] | baiyubin@gmail.com |
c4ff3018ae521c0d97d0590d931a85c1ac6fbc9b | 8dd519098e0066a985d654576c5350280e5a9042 | /master/Chapter16/libc/ksy/fbs.py | 77b147b17f525f3d748bec1c67c6af458c971fdd | [] | no_license | mecha2k/rl_handson | 491f0dfb161d0d968eb2941ade9de1c33addb282 | b6f025e1cca07cfddc6eb5c4b78dc2c7a3b6071a | refs/heads/master | 2023-03-22T05:49:19.932512 | 2021-03-15T22:49:33 | 2021-03-15T22:49:33 | 330,268,772 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | # This is a generated file! Please edit source .ksy file and use kaitai-struct-compiler to rebuild
import array
import struct
import zlib
from enum import Enum
from pkg_resources import parse_version
from kaitaistruct import __version__ as ks_version, KaitaiStruct, KaitaiStream, BytesIO
if parse_version(ks_version)... | [
"mecha2k@naver.com"
] | mecha2k@naver.com |
aaba4ed3d49959241ad174dd25170147bb890f75 | 010155b47952e4ea622c31c58b887383aa803e6c | /venv/Scripts/pip3-script.py | d4079280474cf4b2ede9112ab1f50a130d5ed8bd | [] | no_license | ybsdegit/Leetcode_practice | be7773c4886fb7da01c187dd2909071502b49369 | b3a0c4421c3b41537cadfe44b312f735af3ab52a | refs/heads/master | 2020-04-27T12:01:17.079059 | 2019-03-08T07:35:47 | 2019-03-08T07:35:47 | 174,318,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | #!C:\Users\admin\PycharmProjects\Leetcode_practice\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"ybsdeyx@163.com"
] | ybsdeyx@163.com |
a3c2011df6f60635fe5310ce190a764590047246 | dac7095e7b5ad4dae993871c1ae45cbb7a5ce5f7 | /Character/19.M&N/Naruge_ACC.py | a4e7210c885d531192dd2d5c9e3e13e0ec43314e | [] | no_license | Lastation/RenewalAniChaos | d12a8423f4b83cb019495c59ed059451e67e0483 | c3edb29af58925de55c11110ccaf927d2b5d1b39 | refs/heads/master | 2023-08-24T11:28:35.614844 | 2023-08-22T21:23:14 | 2023-08-22T21:23:14 | 246,617,812 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,326 | py | Trigger { -- Skill : S
players = {Force1, Force2},
conditions = {
Deaths(CurrentPlayer, Exactly, 4000, " * Infested Kerrigan");
Bring(CurrentPlayer, AtLeast, 1, " * Infested Kerrigan", "Anywhere");
Deaths(CurrentPlayer, Exactly, 320, " `SkillStep");
},
actions = {
Comment("Skill : Co... | [
"ghtjd000129@naver.com"
] | ghtjd000129@naver.com |
3b90499f155f35756229615c972b8825c13bc8a9 | 5fb2e5ec8c20dcd8716bb944321d802f849106fb | /web3_test.py | dbc3a445e0a9deece24c0bd046a41fc023d10b40 | [] | no_license | AsiganTheSunk/CLI | 1f1f3a43b407586394acbb725ea94b5ee7606201 | bba3176e3015413b6b3fe7eeddaba3fa89115635 | refs/heads/master | 2022-12-21T19:32:59.451468 | 2019-10-28T09:04:34 | 2019-10-28T09:04:34 | 218,005,958 | 0 | 1 | null | 2022-12-10T10:48:08 | 2019-10-28T09:03:17 | Python | UTF-8 | Python | false | false | 14,513 | py |
from web3 import Web3
project_api_key = ' https://mainnet.infura.io/v3/b3fa360a82cd459e8f1b459b3cf9127c'
test_safe_addr = '0x522715235d66faeF072509697445A66B442faD88'
web3 = Web3(Web3.HTTPProvider(project_api_key))
print(web3.isConnected())
print(web3.eth.blockNumber)
balance = web3.eth.getBalance(test_safe_addr)
... | [
"asiganthesunk@gmail.com"
] | asiganthesunk@gmail.com |
f329ee6f136a664725907af53b0ea24756159058 | f2aec3224fb3e1a6c780f82def626be3565a0e8e | /examples/Goldstein_Taylor_inverse/KL_one_term_coefficient_heat_approx/data.py | e7061f8deb5f50df6125182d8b527da0adaae3a9 | [] | no_license | Orcuslc/MultiScale-PINN | a000ce5afcb7d91ccdd535cc45bd2000c917463f | 32f1de843ec96231d6d9859815ad1b08cef718d2 | refs/heads/master | 2022-12-13T13:07:59.881197 | 2020-09-15T22:46:45 | 2020-09-15T22:46:45 | 291,526,555 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | import numpy as np
import jax
import jax.numpy as jnp
from jax import random
from collections import namedtuple
from scipy.io import loadmat
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
from jaxmeta.data import tensor_grid
from dataset import Batch_Gene... | [
"orcuslc@hotmail.com"
] | orcuslc@hotmail.com |
63bf05f8d18c0f17cdc85fd2e9fd089697224da1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02640/s504112073.py | b10e123e20d6e06d9c3f46a189e0592ace4793e0 | [] | 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 | 100 | py | n,m = map(int,input().split())
if n*2 <= m <= n*4 and m%2==0:
print('Yes')
else:
print('No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c0b10fafc88947bfec34db6bc246f249f818150f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02756/s144133044.py | fa353be2e03c00e80633e067fd5ef393621e890c | [] | 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 | 460 | py | S=input()
Q=int(input())
A=[list(input().split()) for i in range(Q)]
c=0
R=""
L=""
for i in range(Q):
if A[i][0]=="1":
c+=1
continue
if c%2==1 and A[i][0]=="2":
if A[i][1]=="1":
R=R+A[i][2]
elif A[i][1]=="2":
L=A[i][2]+L
elif c%2==0 and A[i][0]=="2":
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
322a1a1a3749c565c241e1a07092b3b252b233a4 | ecdf9256853e11d6105e2b9ad92ba912602d97d7 | /InterviewBit/max_non_negative_sub_array.py | 0b571bb3388aaeceebbf1e6f0cdfe4a981eebf7b | [] | no_license | rgsriram/Algorithms | 364fda568356834e32ec247438d21202bebc838d | d4f9acb1a60bd098a601d8173dfdad447a02fd74 | refs/heads/master | 2021-01-10T05:11:05.688731 | 2019-03-20T04:59:10 | 2019-03-20T04:59:10 | 49,176,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | def max_positive_sub_array(arr):
n = len(arr)
if n <= 0:
return 0
tmp_total = -1
tmp_size = 0
total = 0
size = 0
results = []
start = None
for i in range(n):
if arr[i] > 0:
if start is None:
start = i
tmp_tota... | [
"srignsh22@gmail.com"
] | srignsh22@gmail.com |
dad846e5e37e59f1588bf69cab0d77e288b04b5f | adf9b45f2dad66c109a9eb1b991e71d46bbdb7c8 | /src/posts/migrations/0001_initial.py | 05cbb8c80a4bae218316a1ab1b5b0176f9f8f3a3 | [] | no_license | bchuey/basic_blog | 22571d9555b7db422852427ade083f7f3dc37029 | 17ad54c0eb3f7270492d62501fe02904c1874a0c | refs/heads/master | 2021-01-19T20:31:11.262006 | 2017-04-18T16:50:17 | 2017-04-18T16:50:17 | 88,515,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.13 on 2017-04-17 21:59
from __future__ import unicode_literals
from django.db import migrations, models
import posts.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"bchuey415@gmail.com"
] | bchuey415@gmail.com |
3d4965d587aa355d9f21f3b95a18af3f5f730176 | f33fff1f392d19c46a38c5a053bd206186a5c9d4 | /contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/menus.py | 8218f7410794cde2226409e65f04285cdfbe4cc4 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | david-waterworth/catboost | 6d276d284dc0dee4908d88aa6c3b3cdd19918a63 | 134c66156105cb8f7f6e4478dacf727ea53d0d29 | refs/heads/master | 2022-03-10T11:31:31.795631 | 2022-03-07T01:20:08 | 2022-03-07T01:20:08 | 175,712,691 | 0 | 1 | Apache-2.0 | 2019-07-30T23:35:34 | 2019-03-14T22:59:46 | C++ | UTF-8 | Python | false | false | 25,404 | py | import math
from itertools import zip_longest
from typing import (
TYPE_CHECKING,
Callable,
Dict,
Iterable,
List,
Optional,
Tuple,
TypeVar,
Union,
cast,
)
from prompt_toolkit.application.current import get_app
from prompt_toolkit.buffer import CompletionState
from prompt_toolkit... | [
"arcadia-devtools@yandex-team.ru"
] | arcadia-devtools@yandex-team.ru |
220154d444b0cd1bd4faaf9436fde6bb5f1860a4 | dc54eedd8d3890b061689ae19055aa8cf719484a | /mysite/blog/forms.py | bc44534408226e564f2ade738c64b6e0b6af373b | [] | no_license | davejonesbkk/mysite | 57e840b9d5b14887236b0eec41de6a7c4ecaa1c4 | d1dad88743864ad997ae81db38406558d73880f2 | refs/heads/master | 2021-01-16T21:50:47.771634 | 2016-06-11T01:51:13 | 2016-06-11T01:51:13 | 60,886,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from django import forms
class EmailPostForm(forms.Form):
name = forms.CharField(max_length=25)
email = forms.EmailField()
to = forms.EmailField()
comments = forms.CharField(required=False,
widget=forms.Textarea)
| [
"davejonesbkk@gmail.com"
] | davejonesbkk@gmail.com |
88e5896cbb70685e04232849d4a66f201316bad5 | 471b5d4df7c92af540c3d348594cc6ea98d65fed | /dojo_python/django/integration_project/apps/logreg/migrations/0001_initial.py | 842a92ab7a41887ed2d075a119079d164ff9701d | [] | no_license | samuellly/dojo_assignment_file | 929c6d747077b47b35179f190075b1d9a54e257c | 37363982238fa7591a139a3af9beb20a8e165997 | refs/heads/master | 2021-01-13T05:30:02.462066 | 2017-05-20T00:27:47 | 2017-05-20T00:27:47 | 80,334,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-24 02:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | [
"gjqorgus900327@gmail.com"
] | gjqorgus900327@gmail.com |
c60fd72c8c056325f4ba794e38d1261a1448bc1b | 161726e113e37b5699bd3e6409093519cf1280dd | /train_mnist.py | 21af200350b3d61af9ed897fee307cfa4a850f79 | [] | no_license | RaymoneLin21/NeuralODE | b51cbe57c95c350c172f774f013fb719beb6b7c9 | bb3ccbe72cce69b87af59ba829728a618d6de613 | refs/heads/master | 2022-12-12T04:40:29.447386 | 2020-09-16T03:31:55 | 2020-09-16T03:31:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,185 | py | from __future__ import print_function
import argparse
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.optim.lr_scheduler import StepLR, MultiStepLR
from NeuralODE import NeuralODE
def conv3x3(in_... | [
"397653553@qq.com"
] | 397653553@qq.com |
661dad97b11d570c45458142cb9db1b0b00b5442 | a9d4beb507b284e0a30b6f6522d448bec37ab7d6 | /math/0x00-linear_algebra/12-bracin_the_elements.py | 7b60ad83a9ba794d2ae198ebc0889fad94cf22f1 | [] | no_license | Danucas/holbertonschool-machine_learning | b9aedaccb93627adb9514f6c2fae1b67a1aeb0af | 83e6185ebe3935f4fea27afa5db9f448722f2e2a | refs/heads/main | 2023-07-12T17:08:02.813748 | 2021-08-17T05:22:30 | 2021-08-17T05:22:30 | 318,015,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python3
"""
Element-wise ndarray operations
"""
def np_elementwise(mat1, mat2):
"""
tuple returning each operation
"""
return (
mat1 + mat2,
mat1 - mat2,
mat1 * mat2,
mat1 / mat2,
)
| [
"danrodcastillo1994@gmail.com"
] | danrodcastillo1994@gmail.com |
6a237f6d79d2188e7f05f40ce3c1444a47be324b | d99b43605d53d23faef954fcef31e77329693469 | /stateful-autonomous/autonomous/drive_backwards.py | d6cc551505c58734d948c76548170b78cb50ecd4 | [] | no_license | M-Shadow/examples | 28c7ae87307a146b078476c95a144c0d0499ace1 | 6faed57a208ef875f7d3fed41a000434202c76c2 | refs/heads/master | 2020-08-20T05:54:13.651559 | 2019-10-18T10:18:10 | 2019-10-18T10:18:10 | 215,988,786 | 0 | 0 | null | 2019-10-18T09:27:59 | 2019-10-18T09:27:55 | null | UTF-8 | Python | false | false | 541 | py | from robotpy_ext.autonomous import StatefulAutonomous, timed_state
class DriveBackwards(StatefulAutonomous):
MODE_NAME = "Drive Backwards"
def initialize(self):
# This allows you to tune the variable via the SmartDashboard over
# networktables
self.register_sd_var("drive_speed", -1)... | [
"dustin@virtualroadside.com"
] | dustin@virtualroadside.com |
395fd3d3ff1b9e2cb4c2d028dc3d1eef64db4255 | 36933adc3ce0f5cc1c1fa9475ab7675e6bd4cbf5 | /chap2/06_PrintListReversedOrder/ReplacesSpaces.py | 14a77e912f8ae308c3b90fcebcea2c836311c26f | [] | no_license | freephys/CodingInterviewChinese2 | d3cc33bc25bd6dedf1f582563684974bc84d5115 | c1fa624301297a359be98278258c8c1dd302535b | refs/heads/master | 2023-04-07T07:11:44.624369 | 2021-04-03T06:01:03 | 2021-04-03T06:01:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | def reversePrint(head):
stack = []
while head != None:
stack.append(head)
head = head.next
array = []
while len(stack) > 0:
array.append(stack.pop().val)
return array | [
"2194454302@qq.com"
] | 2194454302@qq.com |
4caadcb574abcc54b8a76fe830ee61a1d39afd06 | 786de89be635eb21295070a6a3452f3a7fe6712c | /CorAna/tags/V00-00-21/src/Logger.py | 213fdab9d9e04888a606fd652b15bbd10126f916 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,536 | py | #--------------------------------------------------------------------------
# File and Version Information:
# $Id$
#
# Description:
# Module Logger...
#
#------------------------------------------------------------------------
"""Is intended as a log-book for this project
This software was developed for the LCLS pr... | [
"dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | dubrovin@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
773f183b924e07596d377477afde6a73f03a98a5 | 7f4005d6df7fc95086df0d8b84aa6400ad2c34e2 | /docs/conf.py | 9f416daf7e7bf768dde8fcb25a5b0f2e93cadb8a | [
"BSD-3-Clause"
] | permissive | fengsp/simple-queue-service | 74fa312dd90b9ec0d56b89e92277af6a256eb6aa | f18dc72a623750a58f2f5a1b768b35f81f0943f5 | refs/heads/master | 2023-08-16T23:33:22.528140 | 2014-05-16T08:49:34 | 2014-05-16T08:49:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,101 | py | # -*- coding: utf-8 -*-
#
# sqs documentation build configuration file, created by
# sphinx-quickstart on Wed Jan 22 18:07:25 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All c... | [
"fsp261@gmail.com"
] | fsp261@gmail.com |
80de2c0bc5e386d7ead925681f69b960cfb6d94b | 389569a591284a2adcdc38046114e7b1038afd94 | /trax-selenium/correctResults.py | 6cc5bbc652aed714e52b6c4dafc291da73cdbcdc | [] | no_license | xytysingle/AnnotationTool | b797daf2fd472f602341b16f24fb1ed9b702aef1 | a217d4376ceee739e0d8c43515c403133982e86e | refs/heads/master | 2020-04-11T18:16:10.438919 | 2019-07-31T10:21:18 | 2019-07-31T10:21:18 | 161,992,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | import json
import requests
def downloadResults(index):
anno_url = 'http://annotation.lingmou.ai:8000/index.php/annotation/view?image={}'.format(index)
response = requests.get(anno_url).text
response = json.loads(response)
try:
bboxes = response["bboxes"]
t_bboxes = getTraxResults(inde... | [
"2463072824@qq.com"
] | 2463072824@qq.com |
96cce0c5ebad11c82d49631a6defdd692b22e9c4 | fa6c6bcbf5af438bceee09c83ebc2b3ef2bab346 | /transformers-master/examples/multi-task_pre_qc.py | 8dbc25a05d891d21b580e5473aba825ed2559b7b | [
"MIT",
"Apache-2.0"
] | permissive | natuan/BERT-Tickets | e8f438f9424275e195525d8789480a634552f835 | 4d8e0356939e7045e2f5ee908412a5026051d162 | refs/heads/master | 2023-01-04T03:51:24.040468 | 2020-10-27T15:58:21 | 2020-10-27T15:58:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,020 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | [
"wiwjp619@gmail.com"
] | wiwjp619@gmail.com |
8bedf39e99b9d3fabd34926aff464951e3c467d1 | ec45bee420713f64d2d00a5d1c15a9a5f66a940b | /my_cv/07/07_03_example/car_detector/pyramid.py | 7328ee62072c516628cfab179adb2521a4b995f2 | [
"MIT"
] | permissive | strawsyz/straw | a7dc5afef9525eeb3b1a471b5a90d869a3ba5084 | cdf785856941f7ea546aee56ebcda8801cbb04de | refs/heads/master | 2023-06-08T17:18:53.073514 | 2023-06-05T05:51:41 | 2023-06-05T05:51:41 | 253,447,370 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | import cv2
"""金字塔算法的函数"""
def resize(img, scale_factor):
"""通过指定因子来调整图像大小"""
return cv2.resize(img, (int(img.shape[1] * (1 / scale_factor)), int(img.shape[0] * (1 / scale_factor))),
interpolation=cv2.INTER_AREA)
def pyramid(image, scale=1.5, min_size=(200, 80)):
yield image
w... | [
"836400042@qq.com"
] | 836400042@qq.com |
a53ab6927d99fc12d6a578c9683328f210443d4e | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2141/60762/270141.py | 884198f3c9e0a9b002f07bf853f829db5fb864d0 | [] | 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 | 210 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
import math
t = int(input())
for g in range(0, t):
s=int(input())
for i in range (1,s+1):
print(bin(i).replace("0b",""),end=" ")
print()
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
4a55f295cc83f9cda0d37a0f2f7cf99f51eafe54 | b4ca99fdb2e7f5da8eb559adf647a0bc69e2d7c5 | /SuppliersInfo/request_data/search_list.py | ced67c6c4683c294c166b6fec888222011cdb460 | [] | no_license | RoyalClown/MyPython | 4f6b68e0f5f883c187cf8253df0c5feeab3de8fd | baf13612d8d36e519ce54825c4b664597789128a | refs/heads/master | 2021-01-11T13:29:30.332280 | 2017-05-31T02:56:07 | 2017-05-31T02:56:07 | 81,513,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,255 | py | import json
import re
import socket
import requests
import time
from pymongo import MongoClient
from Lib.Currency.ThreadingPool import ThreadingPool
from Lib.NetCrawl.Proxy_Pool import ProxyPool
from SuppliersInfo.request_data.Constant import TianYan_Headers, TianYan_Cookies
class SearchList:
def __init__(self... | [
"421581115@qq.com"
] | 421581115@qq.com |
1c73d83309e277f27c18ff72448b57a1e4f68fd7 | 6d0ff35d1345ea03831d48ed03aa3ea2c5fe4341 | /openapi_stream/jsonschema/visitors.py | e5b5fddaca362c191f294b669ec00eb76aaff24e | [] | no_license | podhmo/openapi-stream | a001b8967bb086c7e88cf8c8faa630ca12b724b8 | 89ffb541ea09f37b1a15c8ce50ca4eaa382cb81d | refs/heads/master | 2020-05-27T10:05:58.819329 | 2019-06-04T20:01:18 | 2019-06-04T20:01:18 | 188,577,528 | 0 | 0 | null | 2019-06-04T20:06:32 | 2019-05-25T14:42:14 | Python | UTF-8 | Python | false | false | 1,660 | py | import logging
from dictknife.langhelpers import reify
from ..context import Context
from ..interfaces import Visitor
from . import nodes
logger = logging.getLogger(__name__)
# visitor = {schemas, paths, all}
# iterator ?
class ToplevelVisitor(Visitor):
"""openAPI v3 node"""
@reify
def schema(self):
... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
6bc8298cf2877a416b17605a9c5ee563df9ff0da | e83c9ca0e6199d459ebc6f880c4ce3e2cbedb4c2 | /Settings/UI/game_menu_ui.py | 03e6cc9ec7d763287ca938a814556d28887d3c43 | [
"CC-BY-4.0",
"CC-BY-NC-SA-4.0",
"MIT",
"CC-BY-SA-4.0",
"CC0-1.0"
] | permissive | kergalym/Korlan | 2b9088fbea63ea580f3935a2b786e2b8fff3bc8e | c8758ae26df77835604e01bc59e36c3049617757 | refs/heads/master | 2023-09-01T09:48:21.147248 | 2023-07-09T23:51:39 | 2023-07-09T23:51:39 | 209,037,703 | 1 | 1 | BSD-3-Clause | 2019-12-16T18:53:24 | 2019-09-17T11:39:26 | Python | UTF-8 | Python | false | false | 16,567 | py | import json
import logging
from os.path import exists
from pathlib import Path
from direct.gui.DirectGui import *
from direct.gui.OnscreenImage import OnscreenImage
from panda3d.core import TransparencyAttrib
from direct.showbase.ShowBaseGlobal import aspect2d
from panda3d.core import FontPool
from panda3d.core impor... | [
"kegalym2@mail.ru"
] | kegalym2@mail.ru |
52124ab0d419eb69006f64142cb07c7a80106656 | 8dc745854d73e362aa60747b3ab1b5a0dd975902 | /demo/basics/even.py | c7897df33b28b76cfa5b6f07841338360920b9c1 | [] | no_license | srikanthpragada/PYTHON_27_AUG_2020 | 08a5898fe1a0ae110b74897ce6cce6595bdfce45 | af2aebbb0d83c5e8f381cdda844ab66d2362019c | refs/heads/master | 2022-12-30T10:12:56.688671 | 2020-10-09T14:20:43 | 2020-10-09T14:20:43 | 291,730,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | # Take a number and display whether it is even number
num = input("Enter a number : ")
n = int(num) # Convert string to int
if n % 2 == 0:
print("Even")
else:
print("Odd")
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
f5a472b516a724dca97b537124c12ec918bb829a | 5c0a253bf2fb83db01abc99097871c965f4cf565 | /spark/crm/PROC_O_CEN_CBOD_LNLNSINT.py | 8ae8aed0bb0663203fc6fdf9fbac5cca67f11c91 | [] | no_license | airuibel/python-1 | 3b16553ede9d069ec56efbb12a89a4de6917a447 | 94f387e2d406fab2128bcfffce6146da720b2ccc | refs/heads/master | 2020-07-05T15:43:00.957221 | 2017-09-17T14:05:48 | 2017-09-17T14:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,939 | py | #coding=UTF-8
from pyspark import SparkContext, SparkConf, SQLContext, Row, HiveContext
from pyspark.sql.types import *
from datetime import date, datetime, timedelta
import sys, re, os
st = datetime.now()
conf = SparkConf().setAppName('PROC_O_CEN_CBOD_LNLNSINT').setMaster(sys.argv[2])
sc = SparkContext(conf = conf)
s... | [
"cysuncn@126.com"
] | cysuncn@126.com |
8f3f7d9074be580ce3f5b9b55219373a2b9cc174 | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /AtCoder_Virtual_Contest/macle_20220629/b/main.py | 21ce13b031a2a4544de6b7e0ac5dcdf56c9ee927 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 607 | py | # -*- coding: utf-8 -*-
def main():
from math import ceil
import sys
input = sys.stdin.readline
n = int(input())
a = list(map(int, input().split()))
two_count = 0
four_count = 0
for ai in a:
if ai % 4 == 0:
four_count += 1
elif ai % 2 == 0:
tw... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
a03cfd6aa9958bd6de540db42efd2a1f977999e7 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnunseat.py | b172f876f55f18a1d9a87a1f149501d3f65a8fed | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 123 | py | ii = [('CookGHP3.py', 2), ('BailJD2.py', 1), ('CookGHP2.py', 1), ('IrviWVD.py', 2), ('MereHHB3.py', 2), ('WilbRLW3.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
18480747b68fab6035332c57d378c375ed57582f | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Utils/python/getEventListFilter_cff.py | 74ba78ca4f0c3c8a2229b9b9de343467eb22cea0 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,272 | py | import FWCore.ParameterSet.Config as cms
import os
import subprocess
def getEventListFilter(fileName,date,filter):
# create filter
EventListFilter = cms.EDFilter('EventListFilter',
inputFileList = cms.string(''),
TagMode = cms.bool(True)
)
#get current and data dirs
cur_dir = o... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
17126f2a332e6b6247986617b3e8f59f4bd720cc | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/34/sol.py | 4e88a4c6cc2517bdc4aabdd3758d2e1ca6186d41 | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 1,261 | py |
Search for the position target-0.5 and target+0.5, a simple python code with a little trick
https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/discuss/14713
* Lang: python3
* Author: tusizi
* Votes: 15
class Solution:
# @param A, a list of integers
# @param targe... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
291fecf9ff66709fe7c44d409cd269e5b633574d | f26e3ae9c30d0555753aea5788f8174da0daf86e | /solution/145BinaryTreePostorderTraversal.py | 6e20cae5577ba616e9c3c0a45efb1ea43af91d5c | [] | no_license | Alarical/LeetCode | f98ddf1bbb6e80ce28b0bb2bde0698e42be55bbf | 622aa534e1f38624f25e33336c91957cc5bb0bd8 | refs/heads/master | 2020-05-07T05:37:14.162400 | 2020-02-07T17:15:13 | 2020-02-07T17:15:13 | 180,275,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def postorderTraversal(self, root: TreeNode) -> List[int]:
res = []
def dfs(root):
if root == None:
... | [
"zrh2014@163.com"
] | zrh2014@163.com |
4cdbc8c37ec469ea4526ea94638df5670904751c | a5698f82064aade6af0f1da21f504a9ef8c9ac6e | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/create_dns_name_response.py | 9adf535113b88e2923e266910d0d1e8f4bcce12c | [
"Apache-2.0"
] | permissive | qizhidong/huaweicloud-sdk-python-v3 | 82a2046fbb7d62810984399abb2ca72b3b47fac6 | 6cdcf1da8b098427e58fc3335a387c14df7776d0 | refs/heads/master | 2023-04-06T02:58:15.175373 | 2021-03-30T10:47:29 | 2021-03-30T10:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | # coding: utf-8
import pprint
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class CreateDnsNameResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dic... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
f36c32b601565f75aa5bee2c7d446ef675265546 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /codestar_write_2/team-member_disassociate.py | bc375388a1780fe00f9012c8ffeec548e13c05ec | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codestar/disassociate-team-member.html
if __name... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
73d11b9fc7f63d5662d59aa923c3f0b4de01a014 | 38c10c01007624cd2056884f25e0d6ab85442194 | /build/android/incremental_install/create_install_script.py | 5040a5651fbfb0ee3ba1c13551c536b3e7b79bf7 | [
"BSD-3-Clause"
] | permissive | zenoalbisser/chromium | 6ecf37b6c030c84f1b26282bc4ef95769c62a9b2 | e71f21b9b4b9b839f5093301974a45545dad2691 | refs/heads/master | 2022-12-25T14:23:18.568575 | 2016-07-14T21:49:52 | 2016-07-23T08:02:51 | 63,980,627 | 0 | 2 | BSD-3-Clause | 2022-12-12T12:43:41 | 2016-07-22T20:14:04 | null | UTF-8 | Python | false | false | 4,290 | py | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Creates a script to run an "_incremental" .apk."""
import argparse
import os
import pprint
import sys
sys.path.append(os.path.joi... | [
"zeno.albisser@hemispherian.com"
] | zeno.albisser@hemispherian.com |
90d6cc0eb08dcfed9ad5480f29b13887d1233395 | e05acb9670f1ab322c537deabf7d7854113cb28f | /main.py | 3a06db36876d63de6015c8f6e6244ddd585d7726 | [] | no_license | sapnattarde/TerrificSkyblueCommunication | caf2ce865bddba393e062e5748bd677cfece24b4 | 6f3f53728e87219684b8d6137f5b64fa70ad3d80 | refs/heads/master | 2022-11-18T06:09:14.746170 | 2020-07-19T19:30:54 | 2020-07-19T19:30:54 | 280,935,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | m = int(input("Enter first number"))
n = int(input("Enter second number"))
c = m + n
print("Addition is: " + str(c)) | [
"replituser@example.com"
] | replituser@example.com |
f6e7dfbde87c45a9a9d73b5cd4d04d273e34b8ed | 1de0d8a869433329a9735ff526a3f1d86b5c6c74 | /apps/dashboard/migrations/0002_auto_20210503_1310.py | 815d49bf56f785bc251b0e8e56d979a63bcf0e79 | [] | no_license | DeepakDarkiee/techbox | f5767f9f353cad96e51dd475bace952ce5fd5af0 | 8c7f1044b6f38d28a25d3469a871ad1d0c20c3a4 | refs/heads/master | 2023-05-30T19:55:35.681606 | 2021-06-16T10:22:45 | 2021-06-16T10:22:45 | 363,356,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | # Generated by Django 3.2 on 2021-05-03 13:10
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='asset',
name='id',
field=... | [
"mdipakpatidar@gmail.com"
] | mdipakpatidar@gmail.com |
3c68ba8f8e0a72a8e10a82ee0ce5d790636ed585 | bb3ae8193289e98e01bea265646f7c77f20558af | /app/cliente/models.py | b28d52a2b464ab9a415d5e15e45f946b86d7d5c0 | [] | no_license | chrisstianandres/almacen_yamaha | 4edbbc827bba7143f466d11c066e522cb8357b25 | 711096cd958e92cb6ec9423730a92120ac614337 | refs/heads/master | 2023-05-13T14:15:30.184461 | 2021-06-07T15:02:46 | 2021-06-07T15:02:46 | 370,217,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | from datetime import datetime
from django.db import models
from django.forms import model_to_dict
# Create your models here.
tipo = (
(1, 'CEDULA'),
(0, 'RUC'),
)
class cliente(models.Model):
nombres = models.CharField(max_length=50)
tipo_doc = models.IntegerField(choices=tipo, default=1)
numero_... | [
"steven23s@outlook.es"
] | steven23s@outlook.es |
62b0faee11aec7b97178b8456dab80450625085b | de86833991145d26a277adcdaab2247cec163cc6 | /backend/pugorugh/migrations/0003_auto_20181013_0104.py | d2a88574217a9025f470b780e6782fa16198e386 | [] | no_license | jhoover4/pug-or-ugh-api | bdbd322da326015982ba1c97dc8fd362a2cfd5be | 9c789e9b5d95b4d852c797a870cf7f1258996169 | refs/heads/master | 2023-05-26T00:38:47.566782 | 2023-05-15T23:17:20 | 2023-05-15T23:17:20 | 150,185,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.9 on 2018-10-13 01:04
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pugorugh', '0002_auto_20181013_0101'),
]
operations = [
migrations.AlterFiel... | [
"jordan@hoovermld.com"
] | jordan@hoovermld.com |
bd2dd540b86f3dd18e07506809882b2f48efa627 | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-VideoToolbox/PyObjCTest/test_vtcompressionproperties.py | d6ea06debd0845de47b3560064b483ea09fa4ebf | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,238 | py | from PyObjCTools.TestSupport import *
import VideoToolbox
class TestVTCompressionProperties (TestCase):
def test_constants(self):
self.assertEqual(VideoToolbox.kVTUnlimitedFrameDelayCount, -1)
@min_os_level('10.8')
def test_constants10_8(self):
self.assertIsInstance(VideoToolbox.kVTCompr... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
9be198ec9c5c3e1c9ee735c318cae5f71e556c96 | 45a0434de7cb5aaf51f372a9ea39c2e62528e8d7 | /decoder_inspec_fsoftmax_v2.py | cdc12c5cda1409b5c95ebfa9a29bc40befc4558b | [] | no_license | hongtaowutj/Seq2Seq-Keyphrase-Generation | 44b5b24f3af7a85c24fc5ef231c53c1dac7e48ff | 6f2d08222b108b543b7628b32e98480f2e3a32b0 | refs/heads/master | 2020-03-27T10:43:09.941194 | 2018-07-23T07:21:35 | 2018-07-23T07:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,802 | py | import os
import sys
sys.path.append(os.getcwd())
import numpy as np
from datetime import datetime
import time
import tensorflow as tf
from keras.models import Model
import keras.backend as K
from keras.models import load_model
from keras.utils import to_categorical
from utils.data_connector import DataCon... | [
"i.nimah@tue.nl"
] | i.nimah@tue.nl |
8f1784237962636015e0b5c6815f25fda058c6d5 | eb7047d5a8c00d4370a55c2806a2f051287b452d | /tests/pytests/problems/TestSubfieldVelocity.py | aac44be5aed3972d4834445cf0ba5599dfc6aea2 | [
"MIT"
] | permissive | mousumiroy-unm/pylith | 8361a1c0fbcde99657fd3c4e88678a8b5fc8398b | 9a7b6b4ee8e1b89bc441bcedc5ed28a3318e2468 | refs/heads/main | 2023-05-27T18:40:57.145323 | 2021-06-09T19:32:19 | 2021-06-09T19:32:19 | 373,931,160 | 0 | 0 | MIT | 2021-06-04T18:40:09 | 2021-06-04T18:40:09 | null | UTF-8 | Python | false | false | 1,129 | py | #!/usr/bin/env nemesis
#
# ======================================================================
#
# Brad T. Aagaard, U.S. Geological Survey
# Charles A. Williams, GNS Science
# Matthew G. Knepley, University of Chicago
#
# This code was developed as part of the Computational Infrastructure
# for Geodynamics (http://g... | [
"baagaard@usgs.gov"
] | baagaard@usgs.gov |
54a909e9bd53e3522faf01c6a146159c0a926520 | 60ec81571533bbfda62ed3b383c3ae984af005a8 | /petstagram/pets/migrations/0004_auto_20201208_0324.py | 01f53c9d274bebfd7b6da6b9ab5eefd129c5c47f | [] | no_license | fingerman/django-projects | f35f4a39810b0db6294bfe689c30ad62947839b9 | ba3606abf7d77025ff08ffaffb64110ea2f4f92c | refs/heads/master | 2023-02-27T05:18:53.600833 | 2021-01-31T21:07:25 | 2021-01-31T21:07:25 | 334,756,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.1.2 on 2020-12-08 03:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pets', '0003_auto_20201207_1228'),
]
operations = [
migrations.AlterField(
model_name='pet',
name='image',
... | [
"adamov.george@gmail.com"
] | adamov.george@gmail.com |
510f86ce38765997ba6eaa39b3a0a57f89c758e5 | 111f6b492c4fa448ddf5a57ece6a7f5709dab269 | /seed/utils.py | 2722d26ee75d57d58f6d85043a4c219bfe7fe7d7 | [] | no_license | curiousTauseef/biotools | 14e483ce3e56a79beafbd88dc8e4ba96b7cc60c8 | a92042d6d53055f5d0b34cdbd4efadcb3be978b2 | refs/heads/master | 2021-09-07T21:57:49.740747 | 2018-03-01T17:25:17 | 2018-03-01T17:25:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,048 | py |
import zlib
def parse_fasta(fasta) :
lines = fasta.splitlines()
header_line = lines[0][1:];
headers = header_line.split('|')
ret = dict()
ret['headers'] = headers;
ret['body'] = lines[1:];
return ret
class SequencePageBuilder:
def __init__(self, seq_collect, organism, taxon, build, pa... | [
"scott.frees@gmail.com"
] | scott.frees@gmail.com |
817b164559223f90cefc3a448160f64f65037308 | db3418c5d4515066bc533f5ec3e263124445d581 | /rewrite/status_monitor.py | 8299d36fe98dfa60ef8ec1768dc49fca876b0ac6 | [] | no_license | ArchiversAnonymous/xA-Scraper | a7b20befd801197240da90dbd979a6dffb6f1859 | 7d308d74270306a8a2673e6f52774838e205beed | refs/heads/master | 2021-01-01T17:24:09.999683 | 2017-07-19T04:57:35 | 2017-07-19T04:57:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py |
import logging
import rewrite.database
import abc
class StatusMixin(metaclass=abc.ABCMeta):
# Abstract class (must be subclassed)
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def pluginName(self):
return None
@abc.abstractmethod
def db(self):
return None
def __init__(self):
super().__init__()
... | [
"something@fake-url.com"
] | something@fake-url.com |
7b8a7f9d4a965584024c9382444a710499eefecb | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /eve-8.51.857815/eve/client/script/ui/shared/stateFlag.py | 9b755b1b572a39f16d4374424b2ab274d2777c16 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,120 | py | #Embedded file name: eve/client/script/ui/shared\stateFlag.py
from carbonui import const as uiconst
from carbonui.primitives.container import Container
from carbonui.primitives.fill import Fill
from carbonui.primitives.sprite import Sprite
import inventorycommon.const as inventoryConst
from utillib import KeyVal
def G... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
7935d65b9c5c6785eb1afc1b2f117471b735539b | f2fb544ec1f515cdecf4c943ebcb763a0ce1fe37 | /my_notes/finding_conf_ext.py | c4bcfd8e639e42f4578f4eceb7c553a6597c1c40 | [] | no_license | HL7/davinci-deqm | 43c232d45cd8e5d346518352dc1090ebd4eac203 | adeb756b16e677cf757a387dab5baaeabd80032c | refs/heads/master | 2023-09-01T20:39:04.954339 | 2023-08-24T17:18:03 | 2023-08-24T17:18:03 | 141,480,311 | 6 | 18 | null | 2023-09-14T16:27:08 | 2018-07-18T19:23:35 | HTML | UTF-8 | Python | false | false | 439 | py | from nested_lookup import nested_lookup
from pathlib import Path
my_document = Path(r'/Users/ehaas/Documents/FHIR/Davinci-DEQM/input/resources/capabilitystatement-consumer-client.json').read_text()
results = nested_lookup(
key = '{"extension":[{"url":"http://hl7.org/fhir/StructureDefinition/capabilitystatement-ex... | [
"ehaas@healthedatainc.com"
] | ehaas@healthedatainc.com |
a111230a3e9a536b5c8c12ef0203b97184e95b7e | b75dc721dfd0d3b65328462934a3bc74a200efd7 | /pylark/api_service_drive_folder_create.py | 3654ad4d06bb1412ef2c13fbb6d1e47a4252d4e5 | [
"Apache-2.0"
] | permissive | zxy198717/pylark | 1c3616f307eb97b7873d228e9416cb295720c93a | df6986b92b7e1a3732151e8c23ac358ccd2c29f6 | refs/heads/master | 2023-08-25T19:59:40.602765 | 2021-10-28T14:52:35 | 2021-10-28T14:52:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,506 | py | # Code generated by lark_sdk_gen. DO NOT EDIT.
from pylark.lark_request import RawRequestReq, _new_method_option
from pylark import lark_type_enum, lark_type_sheet
import attr
import typing
import io
@attr.s
class CreateDriveFolderReq(object):
folder_token: str = attr.ib(
default="", metadata={"req_type"... | [
"chyroc@qq.com"
] | chyroc@qq.com |
86d6c26af73ba8b57adbfd551a39c6d4cc8ce38f | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_software_termination/12-2Nested_false-termination_3.py | 571e0a88fd600cef6637113526f251db32fc1001 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,437 | py | from typing import Tuple, FrozenSet
from pysmt.environment import Environment as PysmtEnv
from pysmt.fnode import FNode
import pysmt.typing as types
from utils import symb_to_next
from hint import Hint, Location
def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode,
... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
2429a6919fcc1d4877096bdb03ee3764858151d7 | 0540646230fba0c17c9e8c305eabe25f2983da09 | /recodoc2/apps/channel/management/commands/postparsechannel.py | a32f7110ed36fdaeb81660abea54e32525584436 | [
"BSD-3-Clause"
] | permissive | xwyangjshb/recodoc2 | 444d2d49827fd23d9e06bdbdc464f7e30fb6db64 | 592c90fdd8e5bd8f9cbb3229771731294f4a1fba | refs/heads/develop | 2022-01-18T07:37:23.548156 | 2016-09-19T20:09:33 | 2016-09-19T20:09:33 | 448,440,462 | 1 | 0 | NOASSERTION | 2022-01-16T02:36:51 | 2022-01-16T02:36:50 | null | UTF-8 | Python | false | false | 960 | py | from __future__ import unicode_literals
from django.core.management.base import NoArgsCommand
from channel.actions import post_process_channel
from optparse import make_option
from docutil.commands_util import recocommand
from docutil.str_util import smart_decode
class Command(NoArgsCommand):
option_list = NoArgs... | [
"bart@cs.mcgill.ca"
] | bart@cs.mcgill.ca |
86eeaeaadbb95263f624a64b70dddbc0a88c27a7 | 734b529f006fb26b10a9c1872d588c811f6ccdc9 | /276_paint_fence.py | 988f7b6f404b0fdeb8fa9a84bf09b7a19cecdfe2 | [] | no_license | tooyoungtoosimplesometimesnaive/probable-octo-potato | 934417699df7470e3cae2da778cdf36de62a2b81 | 696a25f8597e2a5bc5ab788924418d6423160af1 | refs/heads/master | 2021-07-12T10:15:57.093533 | 2019-01-24T07:57:57 | 2019-01-24T07:57:57 | 129,855,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | class Solution(object):
def numWays(self, n, k):
"""
:type n: int
:type k: int
:rtype: int
"""
# dp[i][k] : number of ways paint 0-i with i painted with color k
# dp[i][k] = dp[i-2][c1] + dp[i-2][c2]... + sum(dp[i-1][0..k])
# dp[i][0] = dp[i-2][1] + ..... | [
"xingmarc@yeah.net"
] | xingmarc@yeah.net |
0eb096a1bc7fe71a01fb9e89b32618edec72701b | b1878f78661e3b4b11c26fca23d3703d936a02e4 | /source/samps/example_conversion/5.h6_tri/main_spmps.py | 816da8b97ec32ffd67bf958671584692df72046e | [] | no_license | zhendongli2008/zmpo_dmrg | c15872ff8032f6b9d3b295868ea1aeff6917ac58 | 2444ae845373ea3822c25313d25ebaf66474b50c | refs/heads/master | 2020-03-28T04:26:56.872073 | 2019-10-07T09:09:54 | 2019-10-07T09:09:54 | 147,715,300 | 9 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,910 | py | #
# (H2)5
#
# 29 98 98 1 T -9.5146270734 0.107E-13 0.444E-08
# 29 98 98 2 T -9.1593501796 0.355E-14 0.687E-08
# 29 98 98 3 T -9.1593501557 0.160E-13 0.789E-08
# 29 98 98 4 T -9.1593493623 0.178E-13 ... | [
"zhendongli2008@gmail.com"
] | zhendongli2008@gmail.com |
95c2d0d02ff990ce05b46765749b5c89a7a655cd | 2432996ac1615cd36d61f0feeff8a359d2b438d8 | /env/lib/python3.8/site-packages/setuptools/command/egg_info.py | 0855207ceb9dc5988e198005e2bd08bbab363555 | [
"Apache-2.0"
] | permissive | Parveshdhull/AutoTyper | dd65d53ece7c13fbc1ead7ce372947483e05e2e3 | 7fabb30e15b770d790b69c2e4eaf9bbf5a4d180c | refs/heads/main | 2023-05-08T14:10:35.404160 | 2023-05-07T20:43:15 | 2023-05-07T20:43:15 | 315,415,751 | 26 | 18 | Apache-2.0 | 2023-05-07T20:43:16 | 2020-11-23T19:13:05 | Python | UTF-8 | Python | false | false | 25,560 | py | """setuptools.command.egg_info
Create a distribution's .egg-info directory and contents"""
from distutils.filelist import FileList as _FileList
from distutils.errors import DistutilsInternalError
from distutils.util import convert_path
from distutils import log
import distutils.errors
import distutils.filelist
import... | [
"parvesh.dhullmonu@gmail.com"
] | parvesh.dhullmonu@gmail.com |
7332fbf24a1b93f07da8f045348c08024f983116 | 8db454f43761408c1e400a95c3fcedc1b4dbb4e2 | /evaluation/utils/logging.py | 059af9483ff814b2e4c087d0a39000ed44c9a60c | [
"MIT"
] | permissive | vontell/dynabench | c76e332edc99e9b485268a929ea9a112e2d28c26 | 5d88346cbbfe5868395cb303eee591487cafbf0f | refs/heads/main | 2023-09-03T19:31:10.605809 | 2021-09-24T17:44:11 | 2021-09-24T17:44:11 | 410,181,468 | 0 | 0 | MIT | 2021-09-25T05:08:18 | 2021-09-25T05:08:18 | null | UTF-8 | Python | false | false | 985 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
import os
import sys
def init_logger(name):
logger = logging.getLogger()
logger.setLevel(logging.NOTSET)
stderr_h... | [
"douwe.kiela@cl.cam.ac.uk"
] | douwe.kiela@cl.cam.ac.uk |
02bea1fbd60bcb5fc82122f5333a465194b2ee27 | c08d8126a90f773f0cf04237157a578f82b0a2ac | /libs/img_preprocess.py | ffd1699189bf4827738f101cfc4994ff96b59f02 | [] | no_license | GOSSAN0602/baidu_car_pose_estimation | cf2d4a8b69f629b01bc70f657c4f0981999034a4 | 2a2e77bae99011890ca7861a24298ebffa604b3d | refs/heads/master | 2020-12-05T07:20:42.358114 | 2020-01-08T15:27:49 | 2020-01-08T15:27:49 | 232,045,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | import numpy as np
import pandas as pd
from math import sqrt, acos, pi, sin, cos
import cv2
import sys
sys.path.append('./')
from libs.data_utils import *
from torch.utils.data import Dataset, DataLoader
IMG_WIDTH = 1600
IMG_HEIGHT = 700
MODEL_SCALE = 8
def _regr_preprocess(regr_dict):
for name in ['x', 'y', 'z'... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
670dee7152168de18bfb4983c2bc20687ea6dd1c | a9a8931d6877d6e0f4f11cbd7b50322819e0fe45 | /hpc/REBAGG-GN_2.py | edb21fb1f7a1fd5e3e6019bc054f25bbec93b48e | [] | no_license | jafetgado/tomerdesign | 8517f9f8266bcf1db64fdf00d12294f682cd412d | a0d0961a11d7d84be5343d374198ab0f5084c2b3 | refs/heads/master | 2022-05-31T18:15:55.045419 | 2020-04-25T05:49:32 | 2020-04-25T05:49:32 | 258,499,679 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,388 | py | """
Template script for hyperparameter tuning with HPC
Evaluates the performance of a strategy for a single
set of hyperparameter combinations)
"""
# Imports
#============#
import numpy as np
import pandas as pd
import joblib
import itertools
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble ... | [
"japhethgado@gmail.com"
] | japhethgado@gmail.com |
743f0aaf022035877fa2e45263ea7a6a9a5d857e | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYBBHToTauTau_M-180_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467545/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_12/run_cfg.py | c8fd33d8510707d96b0d84baa0d563dacedecf5f | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,157 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/SUSYBBHToTauTau_M-180_8TeV-pythia6-tauola/Summer12_DR53X-PU_S10_START53_V7A-v1/AODSIM/PAT_CMG_V5_16_0_1377467545/HTT_24Jul_newTES_manzoni_Up_Jo... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
98faa6f50026d4478130610eddd077e8684c353d | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/test/connectivity/acts/framework/acts/controllers/relay_lib/sain_smart_board.py | eaac17e890de833a29468b87b8d9b6fc94865351 | [] | no_license | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,002 | py | #!/usr/bin/env python3
#
# Copyright 2016 - The Android Open Source Project
#
# 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
#
# ... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
911db2d132201cf3eef105961c28efb44903d630 | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/plone.app.layout-2.7.5-py2.7.egg/plone/app/layout/links/viewlets.py | 99884af10529d1a4ac83064d47103ad7024e04e2 | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,095 | py | # -*- coding: utf-8 -*-
from Acquisition import aq_inner
from plone.app.layout.viewlets import ViewletBase
from plone.app.uuid.utils import uuidToObject
from plone.memoize import ram
from plone.memoize import view
from plone.memoize.compress import xhtml_compress
from plone.registry.interfaces import IRegistry
from Pro... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
97809e8f1656968e662a6c77653412cf6e9e5a2f | 910eb6e2905fd10337b67f6265d80fa975c63768 | /freenasUI/storage/migrations/0054_migrate_follow_delete.py | 850e93ef75cc3eaea3a4a0c52400f7c669367878 | [] | no_license | truenas/freenas-migrate93 | b6e7a32615137677dbb20f002f0455f5ca3cf5a2 | 9cd6170fc7bf636d55b0513af794f955fb7bfbce | refs/heads/master | 2023-08-18T20:24:45.513212 | 2023-02-07T12:58:01 | 2023-02-07T12:58:01 | 77,483,696 | 1 | 0 | null | 2023-04-27T10:41:55 | 2016-12-27T21:28:51 | Python | UTF-8 | Python | false | false | 9,680 | py | # -*- coding: utf-8 -*-
from south.db import db
from south.v2 import SchemaMigration
class Migration(SchemaMigration):
def forwards(self, orm):
if not db.dry_run:
for repl in orm.Replication.objects.all():
repl.repl_followdelete = repl.repl_userepl
repl.save()
... | [
"suraj@ixsystems.com"
] | suraj@ixsystems.com |
14c9736d26f9d2e49f27aa236e7478e01e2ddd43 | 1fd0a3d4d9d1c35d167c1b8759196fbe057c6540 | /src/surveys18/tests/test_longtermlack.py | ac4c81be5d595b4d419899fa3ce4ac4d52aa4bad | [
"MIT"
] | permissive | wups101/alss-dev | ef67bf803fca2d874e6ef53ba6a1b05d825d75dc | 6dde342e4de4f0d94df2769e83f6fefc79100daf | refs/heads/master | 2020-04-29T07:44:01.541917 | 2018-10-15T17:26:40 | 2018-10-31T04:37:12 | 175,963,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | from django.test import TestCase
from django.core.management import call_command
from surveys18.models import Survey, LongTermLack, WorkType, Month
class ModelTestCase(TestCase):
"""
models: Survey, LongTermLack
reference models : WorkType, Month
data: longtermlack.yaml, survey.yaml, work-type.yaml, mo... | [
"travishen.tw@gmail.com"
] | travishen.tw@gmail.com |
79e62b309b57094e5057c80dc49e79dd0d4e6762 | 2b7152394cabe02f37003a2b0bdcee733a4c236f | /LINUX系统/linux实战/5.0/11--简单web服务器多任务版线程.py | af9b63bcd092d884b6c16785c879dbfcdb9e51dc | [] | no_license | ChangRui-Yao/pygame | 6593d7c574064efccb218363f2aa22111a369009 | 8cd6def0eb667e5a187d863ccc696def7faa44dc | refs/heads/master | 2022-03-27T12:31:22.327711 | 2019-12-23T16:50:42 | 2019-12-23T16:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,901 | py | """
#1导入模块
#2创建套接字
#3设置地址重用
#4绑定端口
#5设置监听 让套接字由主动变为被动
#6接受客户端的连接 定义函数request_handler()
#7接受客户端发送的请求协议
#8判断协议是否为空
#9拼接响应报文
#10关闭操作
"""
import socket
from application import app
import sys
import threading
"""
1在类的初始化方法中配置当前的项目
{"2048":"./2048"}
2给类增加初始化项目配置的方法init__porject()
2.1显示可以可以发布的所有游戏 菜单
... | [
"1520288462@qq.com"
] | 1520288462@qq.com |
047e46f6f1986e0b4f76621fa827c4356bc0c952 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part006724.py | bd24a73fabda56aa345fe03a5f49758a34100c33 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,592 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
0259e836abd12cc1857fae1a81967882e2f83e87 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/doctor/migrations/0232_auto_20190326_1349.py | b28feb15be2a8b73559c1d0eb1efbed94da14507 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # Generated by Django 2.0.5 on 2019-03-26 08:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('doctor', '0231_merge_20190326_1308'),
]
operations = [
migrations.AlterField(
model_name='cancellationreason',
name=... | [
"sonamsinha@policybazaar.com"
] | sonamsinha@policybazaar.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.