blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34dabfaf114c859834bf8f2b8df7583d891745bb | 6c1933a3694d6a5befe782e95a4034575fe96a63 | /strings/count_Ts.py | a93d2d839f1b54e0ff24392e5af95bb469d321c3 | [] | no_license | katrek/learningbook | 20de4fe0843ef33a18018fa4169172083ab420e5 | a4d882f522a69617c980f3bc98464a4042d8d23d | refs/heads/master | 2020-04-22T11:50:49.427813 | 2019-03-04T08:15:01 | 2019-03-04T08:15:01 | 170,354,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | # This program counts the number of times
# the letter T (uppercase or lowercase)
# appears in a string.
def main():
# Create a variable to use to hold the count
# The variable must start with 0.
count = 0
# Get a string from the user
my_string = input('Enter a sentence: ')
# Count the Ts
... | [
"akatrek@gmail.com"
] | akatrek@gmail.com |
b39240fd3ecb43034a6fd9481b23da0a188f5b9b | eedea7d2f6ad0f497f1469ab78ea00c3c33bd57a | /hamon_shu/segments/segment_02/.handlers.py | 05335f68abbbc85f92d8e55195a7be4c67eb9250 | [] | no_license | GregoryREvans/hamon_shu | 750927aec941f60bf0b90ee2196a886c19c611ad | 8081ee57fce8db07c3492e67e7a634e3b08f3bb3 | refs/heads/master | 2022-02-27T06:22:44.449635 | 2022-02-10T13:48:23 | 2022-02-10T13:48:23 | 144,753,533 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,525 | py | import abjad
handler_to_value = dict(
[
(
'violin_1_pitch_handler_two',
dict(
[
('pitch_count', 60),
('chord_boolean_count', -1),
('chord_groups_count', -1),
]
),
... | [
"gregoryrowlandevans@gmail.com"
] | gregoryrowlandevans@gmail.com |
326a0471da1c7533d4d4d479008aa4ac0104fbf6 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_168/78.py | e9f599963fb626cb7e5361db569b6480d4061af1 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | def shoot(x, n, m, i, j, di, dj):
while 0 <= i and i < n and 0 <= j and j < m:
i += di
j += dj
if 0 <= i and i < n and 0 <= j and j < m and x[i][j] != '.':
return True
return False
def fail(x, n, m, i, j, di, dj):
if shoot(x, n, m, i, j, di, dj):
return 0
i... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8fbb76879f325945c09353ed6fc34d423c236185 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_freedmen.py | 9fcd092dafa3654c67aa821a36c2c005b9e936c5 | [
"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 | 250 | py |
from xai.brain.wordbase.nouns._freedman import _FREEDMAN
#calss header
class _FREEDMEN(_FREEDMAN, ):
def __init__(self,):
_FREEDMAN.__init__(self)
self.name = "FREEDMEN"
self.specie = 'nouns'
self.basic = "freedman"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6e745a7e9688972239426bb82b10885ebedb14cf | 964f2882117ff656d7a2757c233c6dd88226d975 | /packages/models-library/tests/test_service_settings_labels.py | a4f98e18cf7bdfc0609d359377e6cebd15bfad01 | [
"MIT"
] | permissive | ignapas/osparc-simcore | a002dd47d7689af9c1c650eea33e31add2b182c1 | cb62e56b194265a907f260f3071c55a65f569823 | refs/heads/master | 2023-01-22T08:55:32.580775 | 2022-12-09T15:57:36 | 2022-12-09T15:57:36 | 170,852,656 | 0 | 0 | MIT | 2023-01-09T05:03:04 | 2019-02-15T11:12:34 | Python | UTF-8 | Python | false | false | 4,991 | py | # pylint:disable=unused-variable
# pylint:disable=unused-argument
# pylint:disable=redefined-outer-name
from collections import namedtuple
from copy import deepcopy
from pprint import pformat
from typing import Any
import pytest
from models_library.service_settings_labels import (
PathMappingsLabel,
SimcoreSe... | [
"noreply@github.com"
] | ignapas.noreply@github.com |
600c64a6d15fa03d9177fd01005f85d4ea9f9f44 | 71660e47b7b6f704c0329b646c0a65cb8732880a | /vissl/engines/__init__.py | 0e72d0143746ee9c2dcef587dc4504031d16ca37 | [
"MIT"
] | permissive | dailing/vissl | 1a278ea0fb060ca65cbbbed90280026dcbd74668 | 7ad8ecad2ade3074912f7d8ef57debe95bfd9939 | refs/heads/master | 2023-06-03T05:45:19.329156 | 2021-06-21T21:08:11 | 2021-06-21T21:09:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | 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.
from vissl.engines.engine_registry import register_engine, run_engine # noqa
from vissl.engines.extract_features import extract_main # noqa
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
7608ff71191692b21bb793bffbc9d84e22d7da38 | 832852c679816673f708860929a36a20ca8d3e32 | /Configurations/ggH_SF/Full2016_nAODv5/maxDNN/cuts_2j_dymvaOptim.py | 3b213c3ebfbba55e732be2303447f8e547a68e04 | [] | no_license | UniMiBAnalyses/PlotsConfigurations | c4ec7376e2757b838930dfb2615e1dc99a64e542 | 578fe518cfc608169d3418bcb63a8342d3a24390 | refs/heads/master | 2023-08-31T17:57:45.396325 | 2022-09-01T10:13:14 | 2022-09-01T10:13:14 | 172,092,793 | 0 | 13 | null | 2023-04-27T10:26:52 | 2019-02-22T15:52:44 | Python | UTF-8 | Python | false | false | 6,778 | py |
supercut = ' mll > 12 \
&& Lepton_pt[0]>20 \
&& Lepton_pt[1]>10 \
&& (abs(Lepton_pdgId[0])==13 || Lepton_pt[0]>25) \
&& (abs(Lepton_pdgId[1])==13 || Lepton_pt[1]>13) \
&& (nLepton>=2 && Alt$(Lepton_pt[2],0)<10) \
&& abs(Lepton_eta[0])<2.5 && abs(L... | [
"davide.di.croce@cern.ch"
] | davide.di.croce@cern.ch |
5e598527209c7bd0a4183e7c16f91b5d8d42e06c | a6296e4681fbf4a2282b3d77f7ffc3e0cf3b700d | /list_property/custom_namedlist.py | 2da60839be29c47a884a9f4bee4b2746ca25e437 | [
"MIT"
] | permissive | justengel/list_property | 331769d49268735bca9ddd5058f27bfbf8070f61 | 34a43976a0f12a84d387c3851beb1fcebc2182ce | refs/heads/master | 2020-03-23T11:09:15.219529 | 2018-07-18T20:28:58 | 2018-07-18T20:28:58 | 141,486,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | from .custom_property import list_property
__all__ = ['NamedList', 'namedlist']
class NamedListMetaclass(type):
def __new__(typ, name, bases, attrs):
cls = super().__new__(typ, name, bases, attrs)
cls.__properties__ = [attr for attr in dir(cls) if isinstance(getattr(cls, attr), list_property)]
... | [
"jtengel08@gmail.com"
] | jtengel08@gmail.com |
7183b395369fb2cad65cb1de32df5e2f8cb8ae5e | 9ca6ec384f99fb8be5b2fc05bee405fd22607485 | /exos/exo2.py | 26d3038a0d0d51d5fae07eab4e9540f43a73c5ac | [] | no_license | gb-0001/python-refinitiv | 39e5b6b2b264aee5a560dba00c6f26c19d6cdf65 | 06119b94f2fb73b776d816a40e1a4a451763b6c2 | refs/heads/master | 2023-04-09T13:55:19.956342 | 2021-04-21T09:01:11 | 2021-04-21T09:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | '''
*** Exo 2 ***
Ecrire un programme python qui propose à l'utilisateur
de deviner un nombre caché (exemple: 560) et
affichera en fonction de la réponse de l'utilisateur:
- "c'est plus" si le nombre saisi est inférieur au nombre caché
- "c'est moins" si le nombre saisi est supérieur au nombre caché
Tant que l'utilis... | [
"opusidea@gmail.com"
] | opusidea@gmail.com |
346ed74309df7fa44322893cf06faf1b47a2a228 | 054b665faf3c099efb3e24768b4dcb24e054b011 | /flask/bin/pip-2.7 | 76d9553d171453470fb8e113ec24df113c931249 | [] | no_license | linqili2006/mywebsite | 8cbec2c32e8a38db2e7d5e0e6745800dd09f239a | 4ff202d75cab59d507755f48020d02c2ec0a6eb7 | refs/heads/master | 2020-03-15T11:14:24.543491 | 2018-05-10T08:31:59 | 2018-05-10T08:31:59 | 132,116,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | 7 | #!/root/website/flask/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.4.1','console_scripts','pip-2.7'
__requires__ = 'pip==1.4.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==1.4.1', 'console_scripts', 'pip-2.7')()
)
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
4f3af2198a7225f81bb39715d75d3564e1c1bfda | 738c7fe93e7b045ab417a4258b74857c8887fa41 | /CpWebSourcePlatform/apps/blog/views.py | 97e991f3a09f4e04308f3db51af77a2629d136ea | [] | no_license | AmirHuang/CpWebSourcePlatform | da61bf5c5de2f4318f9e092cd8ae7f63d196ea35 | 82d8259164e83da4f50b0b5bc6fb8fb1d1f2a454 | refs/heads/master | 2020-04-25T03:45:07.304614 | 2019-02-25T10:48:54 | 2019-02-25T10:48:54 | 172,487,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,048 | py | from .models import BlogActicle, BlogActicleBanner, BlogCategory
from .serializers import BlogActicleSerializers, BlogActicleBannerSerializers, BlogCategorySerializers, \
BlogActiclePublicSerializers
from django.http import Http404
from rest_framework.views import APIView
from rest_framework.response import Respons... | [
"429771087@qq.com"
] | 429771087@qq.com |
e9a9e42fa4577b9e5879c27a5e383eabc09a5db7 | 1ad4b4f46e9e3cafdf8ccb17eb7703905847fda2 | /text paper/5method override.py | 202a0d87a5b82bfc7677aeee232734e11168857e | [] | no_license | febacc103/febacc103 | 09711cd1d9e4c06bdb1631a72d86fe34e3edd13d | d5ebf3534a9ec2f3634f89c894816b22a7fbaa80 | refs/heads/master | 2023-03-29T22:25:48.073291 | 2021-04-20T08:31:44 | 2021-04-20T08:31:44 | 359,677,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | # 5. What is method overriding give an example using Books class?
#===============================================================
# Overriding is the property of a class to change
# the implementation of a method provided by one
# of its base classes. ... Method overriding is thus
# a part of the inheritance mechanis... | [
"febajohnjoicyblesson@gmail.com"
] | febajohnjoicyblesson@gmail.com |
5d3d0d452b4724f77676b09b7d81634d2c3fbf1c | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Detectron/lib/utils/io.py | 3e75499df0514c48b466aaf13e03a2d4011c8495 | [
"MIT",
"Apache-2.0"
] | permissive | 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 | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:2046fe0be4ae0121a62583ea3521a7ec5832ea9f0cfbb3135cd05f293d4bc580
size 4760
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
ef36c98ff28729a05721d5275994440c4b1b49b5 | e5cf5318900c0128140dafc26c8eab750246b21d | /scripts/data_convert/msmarco/convert_queries.py | 95f85e3dc8433a9c4ebb3d5bd0211ee6bc52dbc3 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | dzynin/FlexNeuART | 113f000bdd5da36ef2273f017e72b0de19f01cce | 741734527e6e3add6ed1de893c49517999a36688 | refs/heads/master | 2023-04-21T16:59:28.870489 | 2021-04-27T02:16:49 | 2021-04-27T02:16:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,666 | py | #!/usr/bin/env python
# Convert MSMARCO queries
import sys
import json
import argparse
import pytorch_pretrained_bert
sys.path.append('.')
from scripts.data_convert.text_proc import SpacyTextParser
from scripts.data_convert.convert_common import STOPWORD_FILE, BERT_TOK_OPT_HELP, BERT_TOK_OPT, \
FileWrapper, read_... | [
"leo@boytsov.info"
] | leo@boytsov.info |
335d9bee562e127a1da8811a82f9a7643b8f388a | 7af92e61743bf07b1f96bff1b10ae873b6e1afea | /roadsinHackerland.py | a8cb425ff8e33c5a0544da0cd6d89f5996fd70e1 | [] | no_license | udwivedi394/graphTheory | 13c6cef37998e8804daef65b72cae2d979b3e307 | 70be616b5a6ba7bda7c311f3724125673fa35717 | refs/heads/master | 2021-05-14T09:46:38.551503 | 2018-10-02T16:23:44 | 2018-10-02T16:23:44 | 116,335,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,989 | py | import sys
class Node:
def __init__(self,data):
self.data = data
self.rank = 0
self.parent = self
#Return the overall Rank of current set
def findRank(self):
temp = self.findSet()
return temp.rank
#Fi... | [
"utkarshdwivedi394@gmail.com"
] | utkarshdwivedi394@gmail.com |
b7a40c783d085a9b264fa7bfc44385ec9a4ddcef | 04a40566d258744d6dc2b361debbb41215206cbe | /01-resnets/code/data_loader/data_loader_util.py | b8c2baef8951cecf6efdd8258390b1ee9f2e7556 | [] | no_license | keivanB/papers | ec1fec83bb9be37d82129951d4f4188c4fce40c2 | c8cd485a1b1c0697a4a4734bb6a2a32fd9c93a5d | refs/heads/master | 2020-04-01T07:38:33.225626 | 2018-11-27T16:36:07 | 2018-11-27T16:36:07 | 152,997,498 | 0 | 0 | null | 2018-10-14T16:59:12 | 2018-10-14T16:59:11 | null | UTF-8 | Python | false | false | 1,618 | py | import torch.utils.data as data
import torchvision
import torchvision.transforms as transforms
def get_cifar_loaders(batch_size, num_workers):
"""Get the `DataLoader`s for this experiment.
Args:
batch_size: Batch size for each `DataLoader`.
num_workers: Number of worker threads for each `Data... | [
"chutechristopher@gmail.com"
] | chutechristopher@gmail.com |
b2a6e7a0c802dc945e7bd16c610a6b84d3c1a187 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2645/60694/283292.py | 0a6b73a41973925581f90ae9cd96a723eef19d17 | [] | 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 | 295 | py | import math
def eatable(K):
return sum(math.ceil(p//K) for p in piles) <= H
piles = eval(input())
H = int(input())
piles.sort()
n = len(piles)
lo, hi = 1, piles[-1]
while lo < hi:
mi = (lo + hi) // 2
if not eatable(mi):
lo = mi + 1
else:
hi = mi
print(lo)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
146f1bd15ca0c981c0fdfab12e8f0022dc4b8bed | 181e9cc9cf4e52fcc6e9979890cc5b41e7beb756 | /Module 2/8/optical_flow.py | 07265bd486c096847a83b24b7b2105c54bd53c09 | [
"MIT"
] | permissive | PacktPublishing/OpenCV-Computer-Vision-Projects-with-Python | ace8576dce8d5f5db6992b3e5880a717996f78cc | 45a9c695e5bb29fa3354487e52f29a565d700d5c | refs/heads/master | 2023-02-09T14:10:42.767047 | 2023-01-30T09:02:09 | 2023-01-30T09:02:09 | 71,112,659 | 96 | 72 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | import cv2
import numpy as np
def start_tracking():
cap = cv2.VideoCapture(0)
scaling_factor = 0.5
num_frames_to_track = 5
num_frames_jump = 2
tracking_paths = []
frame_index = 0
tracking_params = dict(winSize = (11, 11), maxLevel = 2,
criteria = (cv2.TERM_CRITERIA_EPS | cv2.TE... | [
"prasadr@packtpub.com"
] | prasadr@packtpub.com |
06a013d515063e5e111d708abaec37946b034460 | e953679220ff59b58eb964b97a98ef026283c8e6 | /Ch23/stack.py | 1791c00c369728cdaf25f18088eef294ec44fbf4 | [] | no_license | lhy0807/A2CS | 9e440b85b53c79eb0367f3c478f866911422b8d8 | 6d793c1cc4989b123ba8ff1676e376681531c7d2 | refs/heads/master | 2021-04-15T06:10:36.178244 | 2018-03-23T02:54:55 | 2018-03-23T02:54:55 | 125,968,982 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | '''
Stack and Queue Demo
Tianhe Zhang S3C2
'''
nullPtr = -1
class Node(object):
def __init__(self, data, ptr):
self.data = data
self.ptr = ptr
class Stack(object):
def __init__(self, space):
self.space = space
self.startPtr = nullPtr
self.freePtr = 0
self.record = []
for i in range(space):
newNod... | [
"lihongyu0807@icloud.com"
] | lihongyu0807@icloud.com |
14fd5e3a891a56b1846fc53491c98caed781cdc1 | 14bca3c05f5d8de455c16ec19ac7782653da97b2 | /lib/kubernetes/__init__.py | 7dc22994fecd6a57e8fc2bbf75a8912e2444696e | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hovu96/splunk_as_a_service_app | 167f50012c8993879afbeb88a1f2ba962cdf12ea | 9da46cd4f45603c5c4f63ddce5b607fa25ca89de | refs/heads/master | 2020-06-19T08:35:21.103208 | 2020-06-16T19:07:00 | 2020-06-16T19:07:00 | 196,641,210 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | # Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"robert.fujara@gmail.com"
] | robert.fujara@gmail.com |
ac36c8ce5dfd392dbb60fc56b074198f4aaf3ad3 | 1985e545df5ddfee396e87af6501fe517661cc77 | /bin/make_slides_latex | 0ab0b3d4da608fbd2545f1575110858b17767c0a | [
"MIT"
] | permissive | blester125/dotfiles | 46e657966582ba0b4552317107c85a44426ce9fd | 03b6856552040246b4d60330d0af6f37b440024d | refs/heads/master | 2023-07-24T11:13:11.989638 | 2023-07-12T13:30:15 | 2023-07-12T14:50:18 | 127,983,262 | 1 | 0 | null | 2022-02-12T23:09:41 | 2018-04-04T00:10:30 | Emacs Lisp | UTF-8 | Python | false | false | 1,866 | #!/usr/bin/python3
import os
import argparse
import textwrap
from datetime import datetime
def slides(title, author, affiliation, month, day, year):
return textwrap.dedent(r"""
\documentclass{beamer}
\usefonttheme[onlymath]{serif}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{... | [
"blester125@gmail.com"
] | blester125@gmail.com | |
2d8ee210a856ac054047f076257cc2193f4eae69 | 8a2083328c59b67a08c7c1b76568ac62ae632628 | /W6/api_service/urls.py | 79e63752be5e1e7debbbb5cdccfb964018397fa2 | [] | no_license | kasra-najafi/BootCampTabestan99 | 8a5964af2aa5033140d1c1b85fc0fdbc13f68683 | c8de2b7f1eead7a5a4c6a7e054b110b6c5aed5ca | refs/heads/master | 2022-12-12T22:01:25.868417 | 2020-09-10T14:22:21 | 2020-09-10T14:22:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | from django.urls import path, include
from rest_framework import routers
from rest_framework.urlpatterns import format_suffix_patterns
from . import views
router = routers.DefaultRouter()
# router.register('movie', views.MovieView)
# router.register('salon', views.SalonView)
# router.register('cinema', views.CinemaVie... | [
"teghfo@gmail.com"
] | teghfo@gmail.com |
2dc741ed1a74d1acd37a4d2bcb5fb0f0da822a6d | 79e1a5ad019b261034bc6338e894679d3f5d54d9 | /Search in Rotated Sorted Array.py | 7577b548b7c5f1d0afbfd732119ed546f960924d | [
"MIT"
] | permissive | ngdeva99/Fulcrum | c615f457ec34c563199cc1dab243ecc62e23ad0b | 3a5c69005bbaf2a5aebe13d1907f13790210fb32 | refs/heads/master | 2022-12-15T19:35:46.508701 | 2020-09-09T06:47:48 | 2020-09-09T06:48:08 | 294,027,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | class Solution(object):
def search(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
# worst soln O(n)
if target in nums:
return nums.index(target)
else:
return -1
| [
"31466229+ngdeva99@users.noreply.github.com"
] | 31466229+ngdeva99@users.noreply.github.com |
3bae37ab2be5d5df876579debb8c5b2d84567824 | 556da038494ad93b03923577b48f89dd6d70fb48 | /1123 Is It a Complete AVL Tree.py | b80514a01f9fe79cd448a85d7dce05e9f4a1f466 | [] | no_license | junyechen/PAT-Advanced-Level-Practice | f5c9f604c458965c2165960aaac714f69ce1057b | 401c9d3040a0273c0e2461c963b781bcebd33667 | refs/heads/master | 2020-06-19T10:55:19.564725 | 2020-05-12T10:21:14 | 2020-05-12T10:21:14 | 196,684,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,964 | py | """
An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any time they differ by more than one, rebalancing is done to restore this property. Figures 1-4 illustrate the rotation rules.
F1.jpg F2.jpg
F3.jpg F4.jpg
Now given ... | [
"chenjunyeword@outlook.com"
] | chenjunyeword@outlook.com |
000d8b674f9d6bf558f2ad9bbcfec27a3c8c5e5d | 00b2483123c0dac4483725eed199430b237696b4 | /template_utils/templatetags/philterz.py | 49d5ec0404853b5eca8407ca1a6612e526380ea8 | [
"BSD-3-Clause"
] | permissive | springmerchant/django-template-utils | 4f50c76cd76c9571f587138284d64fd818ccc1d7 | a280bfc73e70426c354af4fd6f34cb65edeb61dd | refs/heads/master | 2021-01-18T07:47:04.369761 | 2009-10-29T17:59:23 | 2009-10-29T17:59:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from django import template
from template_utils import filters
register = template.Library()
for name,filter_func in filters.items():
register.filter(name, filter_func) | [
"justquick@gmail.com"
] | justquick@gmail.com |
b72c61790768caf7ddd40e925a18c490f701c2c2 | 9947d1e328a3262a35a61385dc537c3dc557ab7d | /数据分析/day05/demo07_sjph.py | 8b3ed1c199bf87a6be6eb992af2684f9b6ed937e | [] | no_license | nuass/lzh | d0a7c74a3295523d1fe15eeaa73997fc04469f06 | 3cb1cf1e448b88ade226d113a7da4eab7bbb5c09 | refs/heads/master | 2021-02-06T06:10:32.772831 | 2019-06-10T08:54:49 | 2019-06-10T08:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,633 | py | # coding=utf-8
"""
数据平滑
1、计算两只股票的收益率曲线并绘制
2、分析曲线形状,确定投资策略
"""
import numpy as np
import matplotlib.pyplot as mp
import datetime as dt
import matplotlib.dates as md
def dmy2ymd(dmy):
#把二进制字符串转为普通字符串
dmy = str(dmy,encoding='utf-8')
t=dt.datetime.strptime(dmy,'%d-%m-%Y')
s=t.date().strftime('%Y-%m-%d')
... | [
"1581627402@qq.com"
] | 1581627402@qq.com |
2a1c018f6703f1b3ca0e7dd870682aa996c0bb44 | f5d77defeaa244ed8df517d13f21cd6f073adebc | /programas/menuMatricesBien.py | a6965b5713951995d7683434d8a5d834feca9404 | [] | no_license | lizetheP/PensamientoC | 02a02cf6d537e1637a933a4f3957995f6690d7d6 | 5d5740e0afa4fc487fdc5f2c466df63e9b4a664f | refs/heads/master | 2023-08-10T08:07:09.604983 | 2023-08-08T16:53:10 | 2023-08-08T16:53:10 | 200,893,283 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | def main():
r = int(input("Introduce el número de renglones: "))
c = int(input("Introduce el número de columnas: "))
m = creaMatriz(r, c)
continua = True
while continua == True:
menu()
opcion = int(input("Introduce una opcion: "))
if opcion == 1:
imprime_matriz(m... | [
"lizetheperez@gmail.com"
] | lizetheperez@gmail.com |
7198a324184785aebf8480881a3c40c2bfd83147 | ebcea394905df8222c257c8c6c469627a6e48095 | /PyQt5/object_detection/builders/region_similarity_calculator_builder_test.py | 4e14556344509ed5159f7f7b24ff599b469ec41d | [] | no_license | valiok98/Python-Qt5-Tensorflow | 2773cfc2a0e569ed53cf3d90066885f17abe8c6a | e03ccc2884b687a36fbe47f5ff320837be3e217a | refs/heads/master | 2021-09-17T20:41:01.908602 | 2018-03-31T12:42:25 | 2018-03-31T12:42:25 | 103,644,683 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | # Copyright 2017 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... | [
"valentin1998v@gmail.com"
] | valentin1998v@gmail.com |
7d7b52fdc14896dc450acd885abaade312c79314 | c099611e42319053888a747ea78468224e45a725 | /Polar-slepian/V_28/polarfilesim_FERvsp_FRon512_0e01.py | 729cea36803ed8b4a701ec961cad512d458c71d4 | [] | no_license | sbsoumya/PolarProject-Code_Res | 118f54593716520c71cdc0e479236ffdc1a94f89 | 12a3b6fb24cf8160a519c74b064fd845066cbe0b | refs/heads/master | 2021-06-27T21:04:41.057937 | 2019-03-22T20:56:44 | 2019-03-22T20:56:44 | 129,615,052 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | #-------------------------------------------------------------------------------
# Name: polarchannelsim_FERvsR_derate.py
# Purpose: FER VS R simulation for given code and different rates
# p
# Author: soumya
#
# Created: 19/08/2017
#----------------------------------------
import numpy a... | [
"soumya.s.banerjee17@gmail.com"
] | soumya.s.banerjee17@gmail.com |
b28f86009c545dda8122ea50e738ce26a7a8bf8f | 96b828a27ef829d11c488fcb3a918f8a45cf5c6c | /docs/code/answers/geocoder_cli_example/cli.py | d49440157653aa2c112ea957e36e87be207dee1e | [] | no_license | stanfordjournalism/compciv-2017-classsite | 07071ad1fb3c23d8d86089c992e3b695b4b7334a | 1b5b243db9130aa480cb147cd5dc6c1726e438e3 | refs/heads/master | 2021-01-12T01:51:24.202423 | 2017-03-04T02:19:20 | 2017-03-04T02:19:20 | 78,438,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | from argparse import ArgumentParser
from geocoder import geocode
import json
if __name__ == '__main__':
parser = ArgumentParser(description='Use Mapzen to geocode a location')
parser.add_argument('location', type=str,
help='A human-readable description of your location/address')
... | [
"dansonguyen@gmail.com"
] | dansonguyen@gmail.com |
788fc853a9bc6dd38382b3aa2c23a05ca47f8059 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/network/v20200601/get_virtual_network_gateway_advertised_routes.py | 12615dcb3e30dd09a0cc7d5046011e105f5e53b0 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 2,718 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | test-wiz-sec.noreply@github.com |
ecf53884239bea0f047927f8f693da61a51e6354 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_19221.py | ff1b91bdfc966fd232578587be239b172029434a | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | # Dynamically query a subset of columns in sqlalchemy
columns = ['id', 'name']
print session.query(select(from_obj=User, columns=columns)).all()
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4fd0458346cfc1f300a6b78b7ba03809bf1c3d3f | ec931947aa3e06ce565637e7ee1cb707f56375a2 | /aoc2018/day6/day6_part2.py | fb8337d87afdfcb2240afef7c44b2166da73dd16 | [] | no_license | chrisglencross/advent-of-code | 5f16ed7e2265d27ce15f502ce2a1c2f11fc99fc0 | 21623d4aa01a9e20285a0233c50f8f56c4099af5 | refs/heads/master | 2023-01-24T22:01:30.829679 | 2023-01-12T23:03:03 | 2023-01-12T23:03:03 | 224,833,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | with open("input", "r") as f:
lines = f.readlines()
coords = []
for line in lines:
vals = line.split(",")
coords.append(tuple([int(vals[0]), int(vals[1])]))
min_x = min(coords, key=lambda coord: coord[0])[0] - 1
max_x = max(coords, key=lambda coord: coord[0])[0] + 1
min_y = min(coords, key=lambda coord: c... | [
"chris@glencross.org"
] | chris@glencross.org |
62ff4e83b1550dfb0cb3a8ebf0e60136e91b130b | e1e5ffef1eeadd886651c7eaa814f7da1d2ade0a | /Systest/tests/acl-new/ACL_FUN_031.py | c7a7f4f52e9f3d9e171a0004cb7de3cba746a1d7 | [] | no_license | muttu2244/MyPython | 1ddf1958e5a3514f9605d1f83c0930b24b856391 | 984ca763feae49a44c271342dbc15fde935174cf | refs/heads/master | 2021-06-09T02:21:09.801103 | 2017-10-10T07:30:04 | 2017-10-10T07:30:04 | 13,803,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,529 | py | #!/usr/bin/env python2.5
"""
#######################################################################
#
# Copyright (c) Stoke, Inc.
# All Rights Reserved.
#
# This code is confidential and proprietary to Stoke, Inc. and may only
# be used under a license from Stoke.
#
####################################################... | [
"muttu2244@yahoo.com"
] | muttu2244@yahoo.com |
39f8fa3b4b676a7f77f18b6dfd2d1da31e7f16ee | 400571adc11a8cbeefcf7c3fee84af78d7354c3d | /functionalprograms/harmonic.py | b9ee2c26835637bc63f903eba109f82f1236798d | [] | no_license | noothanprem/python | b91c0d65d436ad905301d163db115b87fdfaf4d2 | d736c2606ef2844b524889e2c4a8ded80fd1269d | refs/heads/master | 2020-07-21T08:21:47.187512 | 2019-09-16T13:42:39 | 2019-09-16T13:42:39 | 206,795,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | """
Name : Harmonic.py
Date : 26/08/2019
Purpose : Prints the Nth harmonic number: 1/1 + 1/2 + ... + 1/N
"""
from Utility import utility
while True:
try:
#Taking the input value from the user
n=int(input("Enter the harmonic value : "))
harm=0.0
#calling the function in ... | [
"you@example.com"
] | you@example.com |
091444136782e22cecfc963d232c079c5d4e98a9 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/v2021_06_01_preview/aio/_app_platform_management_client.py | 70ef58681d10a97647256b465412b959decc02cc | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 7,416 | 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"
] | kurtzeborn.noreply@github.com |
50f6c375f06290a4bd62a1727f1a019e50dc1a71 | 388081b4b22f62920b4f33f8ee6a13ca389dc7c2 | /backend/pubsub.py | 8a393eecc4ca82498365f5f12b127b9aa47fa46e | [] | no_license | NishanthMHegde/CompleteBlockchain | 44e28a3f342539d11c8ac14861bf05fb6397d0aa | bba3c1ff3b4c10abc09e0233b9184b308450e9d5 | refs/heads/master | 2022-12-05T01:06:39.386223 | 2020-08-29T17:37:43 | 2020-08-29T17:37:43 | 281,154,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | from pubnub.pubnub import PubNub
from pubnub.pnconfiguration import PNConfiguration
from pubnub.callbacks import SubscribeCallback
from backend.blockchain.block import Block
from backend.wallet.transaction_pool import TransactionPool
from backend.wallet.transactions import Transactions
pnconfig = PNConfiguration()
pnc... | [
"="
] | = |
a4627337713ae4cdab4c55b56f6553ba75d8ab09 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2847/60658/233839.py | 8769d41faecdf83e2f74e5762b014b1cf9ddda04 | [] | 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 | 132 | py | n = int(input())
li = [int(x) for x in input().split()]
start,end=[int(x) for x in input().split()]
print(sum(li[start-1:end-1]))
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
8652f6feddf3c9d4300b09c18409285c0134dee0 | 0cf3a74494ed92bcdeaf0220ad44475c1b6b2c1c | /airflow/providers/tableau/operators/tableau_refresh_workbook.py | 306c3ded629bf75550db1664059f5e5ecd58ebda | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | bolkedebruin/airflow | 064a0c32dff267f586c3fd4dc4beaae12273d180 | e1fe30c70d0fe9c033db9daf9d4420f7fa815b2d | refs/heads/master | 2023-06-09T11:37:57.734560 | 2022-02-23T12:38:27 | 2022-02-23T12:38:27 | 38,505,714 | 2 | 7 | Apache-2.0 | 2022-03-01T01:22:16 | 2015-07-03T18:27:44 | Python | UTF-8 | Python | false | false | 3,305 | 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 u... | [
"noreply@github.com"
] | bolkedebruin.noreply@github.com |
d09b1e53f500c7525745b23ce47c8741da7d91ce | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_venturing.py | 6e28c8495a42a130b7dc59b180e4d8f4b4de0e52 | [
"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 | 247 | py |
from xai.brain.wordbase.verbs._venture import _VENTURE
#calss header
class _VENTURING(_VENTURE, ):
def __init__(self,):
_VENTURE.__init__(self)
self.name = "VENTURING"
self.specie = 'verbs'
self.basic = "venture"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
318cc033527dc0efcad1e745b383033a4a3fb1b3 | dd4d2589d1f14303cacd3b7ee1dd5f6bacd3bf3c | /lc_previous/single-row-keyboard.py | d8aef3d4f8edad5a077c42b385d456661cbe57a9 | [] | no_license | salujaharkirat/ds-algo | ec22eaae81bdb78f2818248508325a536aedbb7b | 819b5971826d97ec600b92776c5158518c9cbf22 | refs/heads/master | 2023-05-02T17:20:49.425484 | 2021-05-23T07:54:29 | 2021-05-23T07:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | class Solution:
def calculateTime(self, keyboard: str, word: str) -> int:
temp = keyboard.find(word[0]) # 2
count = temp #2
for i in range(1, len(word)):
count += abs(temp - keyboard.find(word[i]))
temp = keyboard.find(word[i])
return count
| [
"saluja.harkirat@gmail.com"
] | saluja.harkirat@gmail.com |
26ed431dfbd9705c0e56ad327d292204542f140e | 10008e34625fcc803e814671bfbbe4173cc16540 | /jigna/vue_template.py | 10569332e899bd88d4c5dad6015c51ae5c99fb99 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/jigna | a375a17806c9b414b6663099f4d7b620ec95c97f | 00192450515099d8abc74866ffe1e4f743fe2279 | refs/heads/master | 2023-03-27T04:52:45.490089 | 2019-07-22T21:06:31 | 2019-07-22T21:06:31 | 11,196,735 | 17 | 14 | NOASSERTION | 2022-09-19T18:31:34 | 2013-07-05T09:58:52 | Python | UTF-8 | Python | false | false | 1,375 | py | #
# Enthought product code
#
# (C) Copyright 2013-2016 Enthought, Inc., Austin, TX
# All right reserved.
#
from textwrap import dedent
# Local imports
from .template import Template
class VueTemplate(Template):
"""A template for vue.js templates. Note that this assumes that the
ViewModel is attached to the... | [
"prabhu@aero.iitb.ac.in"
] | prabhu@aero.iitb.ac.in |
c0c8b98c001970ed70da3633b5681e7f725eb608 | 09912a852e0e20d6a475ef904724f80072a68359 | /eds/FrontEnd/server/openmtc-ngsi/src/openmtc_ngsi/tests/ngsi_base.py | c1f34d0163fcba44baaf7dd08d6a4a6e4f4989bd | [
"Apache-2.0"
] | permissive | elastest/elastest-device-emulator-service | 034aa19438383df0975bf86d49e231342d63002f | f512355c5fde6bf027d23558e256b96e2296e0f2 | refs/heads/master | 2021-03-09T15:13:30.676138 | 2020-01-13T12:02:02 | 2020-01-13T12:02:02 | 91,440,225 | 3 | 9 | Apache-2.0 | 2018-12-03T14:59:27 | 2017-05-16T09:26:10 | Python | UTF-8 | Python | false | false | 6,513 | py | import unittest
from openmtc.exc import SCLConflict
from openmtc_ngsi.ngsi import NGSI_9
from openmtc_ngsi.exc import NGSIError
from openmtc_ngsi.tests.xml import registerContextRequestXML
from openmtc_ngsi.requests import RegisterContextRequest
from openmtc_ngsi.ngsi_json import NGSIJSONWriter
from futile.StringIO imp... | [
"sro"
] | sro |
51b9bca07fa1fb160b51340cbc712c779b7beff7 | 07622a0fb38e843ab0eef4f69bb8fb25d107c06d | /pretrained_mol_sim/Theano-master/theano/gof/tests/test_link.py | 1d56ac8bd6e9f69dda6177d90df70ed873910b3f | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | andreeadeac22/graph_coattention | fa59d77252625e4bee1cb9670e4a0fd0fec98135 | 23781fedaa942ca5614054f965cb7b6543e533fa | refs/heads/master | 2023-08-08T01:51:51.368457 | 2020-02-19T04:56:59 | 2020-02-19T04:56:59 | 207,414,336 | 15 | 4 | MIT | 2023-07-22T15:47:39 | 2019-09-09T22:13:34 | Python | UTF-8 | Python | false | false | 6,263 | py | from __future__ import absolute_import, print_function, division
from copy import deepcopy
import unittest
import numpy
import theano
from theano.gof import graph
from theano.gof.graph import Variable, Apply, Constant
from theano.gof.type import Type
from theano.gof.op import Op
from theano.gof import fg
from theano... | [
"andreeadeac22@gmail.com"
] | andreeadeac22@gmail.com |
92a0083f4b08b19f5b654fa7d95e7f338f8c2fb2 | 11812a0cc7b818292e601ecdd4aa4c4e03d131c5 | /05_mysql数据库/mysql_11_python操作sql.py | b9c61a25fa7fb31800ebc2dccae4649513085046 | [] | no_license | SunshineFaxixi/Python_Learning | f1e55adcfa898489cc9146ccfb220f0b48a31a22 | ab3ca44d013311b6de02124091acc4c36a83c4d9 | refs/heads/master | 2021-08-16T05:47:29.963118 | 2021-01-04T13:48:30 | 2021-01-04T13:48:30 | 238,857,341 | 1 | 0 | null | 2020-03-03T13:53:08 | 2020-02-07T06:21:46 | HTML | UTF-8 | Python | false | false | 705 | py | #coding:utf-8
from pymysql import *
def main():
# 创建Connection连接
conn = connect(host='localhost', port=3306, user='root', password='mysql', database='jingdong', charset='utf8')
# 获得Cursor对象
cs1 = conn.cursor()
# 执行select语句,并返回受影响的行数:查询一条数据
count = cs1.execute('select * from goods;')
# 打印受... | [
"xxhan2018@163.com"
] | xxhan2018@163.com |
532bcf8ae0ee40dc3eb4bd7170acfcb5d21cc4b9 | 1f2ade8c03a076ca774f6a535082fd2d3a468f96 | /txchat/txchat/client.py | 1ca81dc2af9c7e598c35066f4a5466ea6de2c38f | [] | no_license | kneufeld/chatroom | a48668e0b1210004d0803afd637cc877a610555c | 3b3c46abdc525309d3a39f04041748dddbefb54b | refs/heads/master | 2021-01-19T00:15:59.558234 | 2015-03-28T14:16:22 | 2015-03-28T14:16:22 | 32,901,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | from __future__ import print_function
import os
from twisted.internet.task import react
from twisted.internet.defer import Deferred, inlineCallbacks
from twisted.internet.protocol import Factory
from twisted.internet.protocol import Protocol
from twisted.internet.endpoints import TCP4ClientEndpoint, connectProtocol
f... | [
"meejah@meejah.ca"
] | meejah@meejah.ca |
267652c39768dc94e7405da3455bcd2af9d2d01d | 2e6c379a22e87ad15f6d9c0356e615f42609e0eb | /Hackerrank/WeekOfCode/WoC28/TheValueOfFriendship.py | 43ce3207290cb8ed36d4c9c1081da448586bf012 | [] | no_license | opethe1st/CompetitiveProgramming | 49f24b1b0c6bf737c5698a15edfdf5009a308a52 | 84ab62144f6b389ef74b7e8956b7e02e0f2ab108 | refs/heads/master | 2021-01-13T10:35:08.339291 | 2020-09-14T21:23:34 | 2020-09-14T21:23:34 | 69,969,077 | 7 | 2 | null | 2019-02-17T18:36:34 | 2016-10-04T13:46:21 | Python | UTF-8 | Python | false | false | 1,573 | py | import time
countnodes=0
def dfs(node):
global G
global countnodes
stack = [node]
while stack:
vertex = stack.pop()
if not visited[vertex]:
visited[vertex]=True
countnodes+=1
for v in G[vertex]:
stack.append(v)
start = time.time()
def... | [
"ogunks@live.com"
] | ogunks@live.com |
b2c41e0470d3181e98c0afa54ddfe1b17e35d7ff | 8e67d8618b9be7c777597b650876fa20082a6ebb | /13458.py | a3123478b53535d2918cc1bd0af2ce75faf80ce4 | [] | no_license | ljm9748/practice_codingtest | c5a2cc315c1ccd8f48a9424d13d2097c9fed0efc | 367710238976c1a2f8b42bfc3fc2936c47b195c5 | refs/heads/master | 2023-01-14T12:29:32.530648 | 2020-11-18T17:49:50 | 2020-11-18T17:49:50 | 282,162,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | roomnum=int(input())
people=input().split()
main, sub= input().split()
main=int(main)
sub=int(sub)
ans=0
for peop in people:
#print(ans)
ans += 1
if int(peop)<=main:
continue
else:
peop=int(peop)-main
if peop%sub != 0:
ans += 1
ans += peop//sub
print(ans) | [
"ljm9748@naver.com"
] | ljm9748@naver.com |
73de5d483b19502d99934dc40b1b21fc3d6c082a | c340835e4444c664fc2b261238e3738cf5bf7196 | /climbing_stairs.py | 98366235b73f864768577ea21c1769c0b7cb60f0 | [] | no_license | z-o-e/LeetCode_OJ_Python | 49f2a7378eb98f707c97d7757cc19ef19622db42 | ad7f5152fe404bdd4e91710d9a719f392bec7a96 | refs/heads/master | 2021-03-12T22:39:44.898502 | 2014-10-16T05:30:25 | 2014-10-16T05:30:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | class Solution:
# @param n, an integer
# @return an integer
def climbStairs(self,n):
prev = 0
cur = 1
for i in range(n):
tmp = cur
cur = cur+prev
prev = tmp
return cur
| [
"hyzhang22@gmail.com"
] | hyzhang22@gmail.com |
dbc8d7557f6dfcfbf5a27d1443b30db0fc155508 | 5cb924f15ae0f6d44c5b4a521ebf72c4617936c2 | /py/plugins/portscan.py | f7b4e776c8ca9b4644c0596ea32d640da90d8421 | [] | no_license | T0gether-zzz/w8scan | 1e0b8a901d98e5e774817081acacf89bda0a0fd9 | 14c403255f491b8d998ecc74041b5ccdb7fb2b47 | refs/heads/master | 2022-12-21T05:08:51.684366 | 2022-12-09T02:59:22 | 2022-12-09T02:59:22 | 221,867,910 | 0 | 0 | null | 2019-11-15T07:25:37 | 2019-11-15T07:25:34 | null | UTF-8 | Python | false | false | 946 | py | # 端口扫描插件
import socket,time,thread
import urlparse
class PortScan:
def __init__(self,ip):
socket.setdefaulttimeout(3)
self.lock = thread.allocate_lock()
self.ip = ip
try:
for i in range(0, 65530):
thread.start_new_thread(self.socket_port, (ip, int(i)))
... | [
"34109680@qq.com"
] | 34109680@qq.com |
e850915077752409ad3bca8b330fb86f06e9bb35 | fb65b7c000642dca68c93ee85a87795b3f30fe21 | /Advance_Python/Quantifiers/Rule7.py | b766e7eae0c3cbae746a9b99174676e917c49ba9 | [] | no_license | toncysara17/luminarpythonprograms | f41b446251feba641e117d87ce235dc556086f8f | 17bc37c3f83c0e9792aaa8bccd901371a6413f14 | refs/heads/master | 2023-04-17T18:51:31.493118 | 2021-04-20T05:25:02 | 2021-04-20T05:25:02 | 358,550,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | #Quantifiers
import re
x = "a$" #check ending with a
r="aaa abc aaaa cga"
matcher=re.finditer(x,r)
for match in matcher:
print(match.start())
print(match.group()) | [
"toncysara12@gmail.com"
] | toncysara12@gmail.com |
455687993066193da245230356ec83ca3ed75ffa | 380a47268c5975473a2e7c38c747bc3bdbd981b1 | /benchmark/third_party/DeepSpeed/csrc/aio/py_test/ds_aio_basic.py | cf70b6655e9c1366371d24a6fb33808c41729e93 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | FMInference/FlexGen | 07aa9b1918c19b02077e13ad07e76840843810dd | d34f7b4b43ed87a374f394b0535ed685af66197b | refs/heads/main | 2023-07-24T02:29:51.179817 | 2023-07-21T22:38:31 | 2023-07-21T22:38:31 | 602,270,517 | 6,821 | 411 | Apache-2.0 | 2023-07-07T22:59:24 | 2023-02-15T21:18:53 | Python | UTF-8 | Python | false | false | 4,262 | py | """
Copyright 2020 The Microsoft DeepSpeed Team
Licensed under the MIT license.
Functionality of swapping optimizer tensors to/from (NVMe) storage devices.
"""
import torch
import os
import time
from deepspeed.ops.aio import AsyncIOBuilder
from multiprocessing import Pool, Barrier
from test_ds_aio_utils import report... | [
"sqy1415@gmail.com"
] | sqy1415@gmail.com |
04bad3e7e96c1f7304a49effe7f1aa4d78526132 | b84842cfa24fce5b1a8d093bdf45885b0f5ab434 | /configuration/logging/main.py | 9b861944bf3350ed922aabc8c501e78db5a6a4ee | [] | no_license | CodedQuen/Programming-Google-App-Engine | fc0f4572a60f3d91f08a15f2b2d19d71673d2de6 | bd3430b84db6477737a7332a358ed37a6ea36b23 | refs/heads/master | 2022-04-25T01:14:08.620872 | 2020-04-30T07:02:26 | 2020-04-30T07:02:26 | 260,136,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | import datetime
import logging
import sys
import webapp2
class MainPage(webapp2.RequestHandler):
def get(self):
logging.debug('debug level')
logging.info('info level')
logging.warning('warning level')
logging.error('error level')
logging.critical('critical level')... | [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
6df27e5c03baf10c8e272457985a7ddc038b2e7c | a08176ef0bf654635e4c7ffd83ee1cf58b7c7bcb | /yk_blog/models.py | 66b4ce07724e3766304da2c083698ef37d0fa09a | [] | no_license | yangkun6/blog | e88e5dcfd46db7cce1d6459a524c4d1094ec625c | fb296ed9afc575ef4ba3f1a38839738e351cf708 | refs/heads/master | 2020-03-07T10:08:29.669959 | 2018-03-30T12:12:22 | 2018-03-30T12:12:22 | 127,409,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | # coding:utf-8
from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField
# Create your models
class Author(models.Model):#作者表
name = models.CharField(max_length=32,verbose_name='作者姓名')
email = models.EmailField(verbose_name='作者邮箱')
age = models.IntegerField(verbose_name='作者年龄'... | [
"you@example.com"
] | you@example.com |
8af9315cf579a0691f62583d1dc67022321befbe | 4dddd01ca6a60f2fa408ee55fbaebe868917184a | /myinterface/websockets/ws_client.py | 2b5945dff8ae8103a4e303b7bfc914ce59c72e7a | [] | no_license | fanpl-sourse/all_study_practice | 6f056c18f0eb7afd6af649e5b595895683bb0cbd | b02f25231855e149b95476b20dd8d53318cfe1a5 | refs/heads/master | 2023-01-22T09:13:15.107616 | 2020-11-30T05:53:43 | 2020-11-30T05:53:43 | 304,493,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | # -*- coding: utf-8 -*-
# @Time : 2020/11/21 16:49
# @Author : 饭盆里
# @File : ws_client.py
# @Software: PyCharm
# @desc :
import asyncio
import websockets
async def hello():
uri = 'ws://127.0.0.1:8211'
async with websockets.connect(uri) as websocket:
name = input("you are ? ")
await w... | [
"fanpengli@fangdd.com"
] | fanpengli@fangdd.com |
b93a7133e53b462bb76941328281ba9cd0b2d03a | 4c455970572cd1531f0df4cd1705f655c00f8356 | /beegarden/themes/default/__init__.py | b5ddd8c4bebc6502bec74dda9412e916fb71f127 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Fugachi/beegarden | 44dd8d016471cb1a3d9c12d6a7f41aad2d05cf67 | a0278a9e227b7f02c3ed5d46b41deb4da6d399a8 | refs/heads/master | 2020-05-01T23:44:40.688988 | 2016-05-30T09:46:13 | 2016-05-30T09:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # -*- coding: utf-8 -*-
import os
PICTURES_PATH = os.path.dirname(__file__)
BACKGROUND_COLOR = (85, 107, 47)
FIELD_WIDTH = 1200
FIELD_HEIGHT = 600
METER_1_COLOR = (0, 255, 70)
METER_2_COLOR = (232, 129, 31)
TEAMS_COUNT = 4
DEBUG = False
MAX_HEALTH = 100
STING_POWER = 50
HEALTH_TOP_UP_SPEED = 0.5
BEEHIVE_SAFE_DI... | [
"suguby@gmail.com"
] | suguby@gmail.com |
1cf095e0a7d126f06a9fbe8c6dcf2b1c5f89315f | 82149a84b47fb37238452a658d5f3a8f23342658 | /Launchpad_MK2/Colors.py | f7007f55023226272f5808cddfb4dd533ca8cf10 | [] | no_license | maratbakirov/AbletonLive11_MIDIRemoteScripts | 408c90522d8f54b878e595b0d8af28ad5008a4a1 | 2b25ba9351764c49f7fd1f99875e28e67b002f30 | refs/heads/master | 2023-04-12T04:44:16.715220 | 2021-05-09T11:48:24 | 2021-05-09T11:48:24 | 365,708,395 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,777 | py | #Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Launchpad_MK2/Colors.py
from __future__ import absolute_import, print_function, unicode_literals
from builtins import object
from _Framework.ButtonElement import Color
from .consts import BLINK_LED_CH... | [
"mbakirov@hotmail.com"
] | mbakirov@hotmail.com |
f326d1b94a0865f09b980a7fd082d1c64569f705 | aa4024b6a846d2f6032a9b79a89d2e29b67d0e49 | /GM2AUTOSAR_MM/transformation/faulty_from_DSLTrans/HConnVirtualDevice2Distributable1.py | 283d3616c656a6fc1b7cb1c13e3a3d535d46bbfd | [
"MIT"
] | permissive | levilucio/SyVOLT | 41311743d23fdb0b569300df464709c4954b8300 | 0f88827a653f2e9d3bb7b839a5253e74d48379dc | refs/heads/master | 2023-08-11T22:14:01.998341 | 2023-07-21T13:33:36 | 2023-07-21T13:33:36 | 36,246,850 | 3 | 2 | MIT | 2023-07-21T13:33:39 | 2015-05-25T18:15:26 | Python | UTF-8 | Python | false | false | 4,703 | py | from core.himesis import Himesis
import uuid
class HConnVirtualDevice2Distributable1(Himesis):
def __init__(self):
"""
Creates the himesis graph representing the DSLTrans rule ConnVirtualDevice2Distributable1.
"""
# Flag this instance as compiled now
self.is_compi... | [
"bentleyjoakes@gmail.com"
] | bentleyjoakes@gmail.com |
d07b13aa2c6b8bf613b9ea8f09b1478290186bb4 | 65459c30edb8e4819c137c8456bb12a964898316 | /venv/Scripts/pip-script.py | db814aa837aa91ef055c87cd7a26f5a445fc44c7 | [] | no_license | MiscCoding/2ndOrderLanguageModel | e308a58f53631b0c56f87a2800ba912740d1d480 | 682e721c982efb841167861cd335bf126eed4d6c | refs/heads/master | 2021-01-05T03:18:51.071115 | 2020-02-16T10:02:43 | 2020-02-16T10:02:43 | 240,859,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | #!C:\Users\neoge_nb4nkvy\PycharmProjects\2ndOrderLanguageModel\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.e... | [
"neogeo-s@hanmail.net"
] | neogeo-s@hanmail.net |
d25f3bdabdb9ef8342ec2eb53ca8bf68dc56cceb | b47c45b8cedac82c0b669e56795bce1cc50be5f5 | /save.py | b5c00a168a076c436f1303613584d56afd52e6b3 | [] | no_license | westscz/Maxdila | 07075271521eb9f7cae9cfc6ee2974962b915846 | 8d34346345624dfa558ecb556d74c5a5455e94d3 | refs/heads/master | 2021-06-24T22:13:36.160679 | 2020-11-11T13:26:17 | 2020-11-11T13:26:17 | 154,186,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,461 | py | from pprint import pprint
class Save:
morale_values = ['?', '?', 'słabe', 'średnie', 'dobre', 'wysokie', 'bardzo wysokie'] # 12 ?! WTF
def get_next_int(self, open_file):
return int(next(open_file))
def get_next_bool(self, open_file):
return next(open_file)[:-1] is not 'FALSE'
def loa... | [
"(none)"
] | (none) |
8790966e3e341d425086159d4669d433313da05d | 1facb18aaf0b7e3073847acd68aae8b0364dc8a9 | /python/super.py | ce41053b7d1b4d37896502112ef8c5f060358673 | [] | no_license | lopesivan/sandbox | e5abcd0569efccb8bd8442635ef8626a3d3c1f09 | 19f5d18063b1cfdbb413546c4d26fa16d4ead184 | refs/heads/master | 2020-11-26T23:48:47.387595 | 2019-10-06T19:05:10 | 2019-10-06T19:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #!/usr/bin/env python
#
# Kudos: http://stackoverflow.com/questions/576169/python-super
#
class A(object):
def routine(self):
print "A.routine()"
class B(A):
def routine(self):
print "B.routine()"
# Note that the following error:
# "super() argument 1 must be type, not classobj... | [
"von@vwelch.com"
] | von@vwelch.com |
351a8a11acd0862ea213f00255c2f32d4b0959c5 | 4b167378821bc5b1ff9c154cf331f4dcf7f9f425 | /models/univariate_LSTM_cpu_sgd.py | 3cc6396d86726faea90f87a3060ed7836ac636e3 | [] | no_license | thangbk2209/GGClusterTraceDataAnalysis | eb83e719363d1b3cd264f3c0f63a21defa3970f4 | 2214c713d733e444d808dac3d6671a1229ce7b85 | refs/heads/master | 2021-09-15T21:32:47.151694 | 2018-06-11T04:20:55 | 2018-06-11T04:20:55 | 112,274,195 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,831 | py | # LSTM for international airline passengers problem with window regression framing
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from pandas import read_csv
import math
import pandas as pd
from keras.models import Sequential
from keras.layers import Dense
from keras.layers i... | [
"thangbk2209@gmail.com"
] | thangbk2209@gmail.com |
f1db2dabd9c1b0236e6e4707d154c1a0fe07970d | 726ce8dddbb12af1662e002633bfe538ddf77708 | /PyOpenGL-2.0.2.01-py2.5-win32.egg/OpenGL/GL/INTEL/_texture_scissor.py | 58716cdae011748a107b3cdd8ad5a308cb1c6b41 | [] | no_license | bopopescu/BCPy2000-1 | f9264bb020ba734be0bcc8e8173d2746b0f17eeb | 0f877075a846d17e7593222628e9fe49ab863039 | refs/heads/master | 2022-11-26T07:58:03.493727 | 2019-06-02T20:25:58 | 2019-06-02T20:25:58 | 282,195,357 | 0 | 0 | null | 2020-07-24T10:52:24 | 2020-07-24T10:52:24 | null | UTF-8 | Python | false | false | 287 | py | def __bootstrap__():
global __bootstrap__, __loader__, __file__
import sys, pkg_resources, imp
__file__ = pkg_resources.resource_filename(__name__,'_texture_scissor.pyd')
__loader__ = None; del __bootstrap__, __loader__
imp.load_dynamic(__name__,__file__)
__bootstrap__()
| [
"vanessa_kamara@my.uri.edu"
] | vanessa_kamara@my.uri.edu |
01d5bace35a816b11153aba914b0ab855fc0cd46 | 923f707341f7e6a4c86673c52ca796f40638619c | /78. Subsets.py | 428a43bec43d9f2dab952abf114e74f6d2dc7c8d | [] | no_license | Huijuan2015/leetcode_Python_2019 | bb1e54801faa15ee3ef2a7bd7628b6a16033f7c7 | 36c584e8f92a0725bab7a567dfd10b918408627b | refs/heads/master | 2020-04-22T13:31:55.203162 | 2020-03-10T00:00:58 | 2020-03-10T00:00:58 | 170,412,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | class Solution(object):
def subsets(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
self.res = []
self.findPath(nums, 0, [])
return self.res
def findPath(self, nums, idx, path):
if idx == len(nums):
self.res.... | [
"huijuan1991@hotmail.com"
] | huijuan1991@hotmail.com |
00832af127aa68ebc142168f593714b835f926de | 16050f8da45e59d13ba183add0b3f3df5a0087ac | /hyp.py | 24269badfe339079e3e6cca4cfdcb17dff5306a1 | [] | no_license | RenzhiDaDa/Rotated-RetinaNet | eee964013a69ce4eb335e1da0c9cc913e9610423 | 611933154dca54ba283e20e7ea2b7067861c43a5 | refs/heads/master | 2023-06-18T19:49:38.350444 | 2021-07-06T12:22:36 | 2021-07-06T12:22:36 | 360,192,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | # lr
lr0: 0.0001
warmup_lr: 0.00001
warm_epoch:1
# setting
num_classes: 1
# training
epochs: 100
batch_size: 1
save_interval: 50
test_interval: 1
| [
"chaser.ming@gmail.com"
] | chaser.ming@gmail.com |
a2938fd817b51a36b3d80e38cce6acdf84ad5d04 | 6d768c542399d67e056a8b6cc5e4252227b5fa0c | /drones_project/settings.py | e33cdae30305d1bd8f976db25c13474f3c3a66b4 | [
"MIT"
] | permissive | arminpourbeik/drones-api | cd2e783934e84e041407ab19b61bfbd59b76ea56 | 7acacf15acbe83e6344d46459c080d60e9db7c53 | refs/heads/main | 2023-02-02T15:00:41.674866 | 2020-12-19T19:39:21 | 2020-12-19T19:39:21 | 322,332,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,941 | py | from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key u... | [
"armin.pourbeik@gmail.com"
] | armin.pourbeik@gmail.com |
2361655557e559fd6ca16cb03859745f9352ad54 | f5bba3e7ef74f0c5dda05d093a5e2735a2b91eb9 | /tvrenamr/logs.py | c1d3db42d19c1d1c9dcf3ce92bfd530c5f3d7393 | [
"MIT"
] | permissive | svisser/tvrenamr | 701f589a600631c45ec6122fec9f89cf8395c206 | 139ded052d20ab182bc187fe8f20f294bc6da316 | refs/heads/master | 2021-01-20T16:34:28.158699 | 2014-12-14T16:47:06 | 2014-12-14T16:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | py | import logging
import logging.handlers
import os
def convert_log_level(level=26):
"""
Get a numeric log level from a string. The default 26 is for SHORT logs.
:param level
:return level
"""
# annoying but the level can be passed in as None
if not level:
level = 26
levels = {'... | [
"george@ghickman.co.uk"
] | george@ghickman.co.uk |
d8cc1890c94548e4209a03d375edac5ed5970225 | 2cd2e01a948bf360d29d4de1cbfa5c4a076c5bcc | /src/cltkv1/tokenize/old_norse/params.py | 4d76881c269875808039c3a99c34022add0e537b | [
"MIT"
] | permissive | todd-cook/cltkv1 | c4ccf1c2a12fb6c476bcac4373229422bd8a02cc | 90c3daaafda242a1982b38c2b11c52aedab7ddf8 | refs/heads/master | 2022-11-13T02:50:16.523173 | 2020-06-28T02:02:47 | 2020-06-28T02:02:47 | 276,302,479 | 0 | 0 | MIT | 2020-07-01T07:02:59 | 2020-07-01T07:02:59 | null | UTF-8 | Python | false | false | 366 | py | """ Params: Old Norse
"""
__author__ = [
"Clément Besnier <clemsciences@aol.com>",
"Patrick J. Burns <patrick@diyclassics.org>",
]
__license__ = "MIT License."
# As far as I know, hyphens were never used for compounds, so the tokenizer treats all hyphens as line-breaks
OldNorseTokenizerPatterns = [(r"\'", r"'... | [
"kyle@kyle-p-johnson.com"
] | kyle@kyle-p-johnson.com |
8b06719435aa2032f9ea5c74cda2c8069884c0cc | 2ad52a65c45051f26fe26631a31f80279522ddb7 | /build/turtlebot3_simulations/turtlebot3_gazebo/catkin_generated/pkg.installspace.context.pc.py | 89848cabfeb332104ab3d85d721059b3fe7d7665 | [] | no_license | aryamansriram/Movel_Nav | a64c32528b7ce0a5a19127ba3a9379dca0201356 | 0e5e64232a01771999d34694f3bf6840f0c1e3ee | refs/heads/master | 2023-01-03T20:35:22.041816 | 2020-10-21T13:37:11 | 2020-10-21T13:37:11 | 305,279,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "roscpp;std_msgs;sensor_msgs;geometry_msgs;nav_msgs;tf;gazebo_ros".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WIT... | [
"aryaman.sriram@gmail.com"
] | aryaman.sriram@gmail.com |
a56b0f43ebb055a955f4b91d655e5a6258a88316 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/pa3/sample/call_with_args-62.py | 4f9f4f43d1a4dd278da2ce2bcebc76151bda09ff | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | def f(x:int) -> int:
print("start f")
print(x)
g(1, x)
print("end f")
return $ID
def g(y:int, z:int) -> object:
print("start g")
print(y)
print(z)
h("h")
print("end g")
def h(msg: str) -> object:
print(msg)
print(f(4))
| [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
56f4db815464164dca473402336da39fcdba854d | 9f387c703dbf4d970d0259424c7b299108c369f5 | /dd_sdk_1_0/dd_sdk_1_0/models/filesys_modify_ops.py | 9177d423a4bcefbabc66c3e02c4630ffe8dc1fa7 | [] | no_license | gcezaralmeida/datadomain_sdk_python | c989e6846bae9435c523ab09e230fc12d020f7f1 | e102ec85cea5d888c8329626892347571832e079 | refs/heads/main | 2023-08-23T22:42:47.083754 | 2021-10-25T21:52:49 | 2021-10-25T21:52:49 | 370,805,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,292 | py | # coding: utf-8
"""
DataDomain Rest API Documentation
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # no... | [
"root@s6006st157.petrobras.biz"
] | root@s6006st157.petrobras.biz |
5fd49f494b2b838a3482980a68ee44e46623577d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02410/s906651945.py | 5994492f3b28fd261d02d1352610aa7ca109b6f7 | [] | 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 | 363 | py | h,w= [int(i) for i in input().split()]
x=[[int(0)for i in range(w)]for j in range(h)]
z=[int(0 ) for i in range(w)]
for i in range(h):
y=[int(k) for k in input().split()]
for s in range(w):
x[i][s]=y[s]
for s in range(w):
z[s]=int(input())
for i in range(h):
count=0
for s in range(w):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6eed796c4646e9c5c07bbf85d7d007048853ede1 | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/BillAccountsGetRequest.py | ee88bbee2b0c2e64f107900eeeb038f5b475d896 | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class BillAccountsGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.aids = None
self.fields = None
def getapiname(self):
return 'taobao.bill.accoun... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
d10c78f88f98a3be61fa933ce992b949dfeb81db | d772869033c47a666622e9ee518bb306db5451a5 | /unified/modules/main/categories/accounting_invoicing/xero/entities/xero_invoice.py | da50c020a25e0b110bf4d62235f327a613008e45 | [] | no_license | funny2code/unified_api | 920f1e19b2304e331b019f8a531d412b8759e725 | ffa28ba0e5c0bd8ad7dd44a468e3d1e777bba725 | refs/heads/main | 2023-08-31T16:00:17.074427 | 2021-10-04T04:09:45 | 2021-10-04T04:09:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | from dataclasses import dataclass
from accounting_invoicing.entities.invoice import Invoice
from accounting_invoicing.xero import util
@dataclass
class XeroInvoice(Invoice):
organization_id: str = None
item_code: str = None
quantity: str = None
unit_price: str = None
discount: str = None
accou... | [
"baidawardipendar@gmail.com"
] | baidawardipendar@gmail.com |
48d0a43fd14d16e80e27430a7eca20b2532741bf | e298bf40ae88c2bd8e0a07f3e92f3e08a92edcc6 | /keystoneauth1/tests/unit/test_betamax_serializer.py | 05056e14821aababc7a81ec00da546c9464d5540 | [] | no_license | KevinKaiQian/polar-bear | 46a814c746246394f76505846166673a049f12f2 | 61d4e0ccd7328a6aa543af3b75e5f7fedf98bf8e | refs/heads/master | 2022-04-29T02:15:35.536039 | 2021-05-19T12:33:07 | 2021-05-19T12:33:07 | 172,068,536 | 2 | 0 | null | 2022-03-29T21:56:51 | 2019-02-22T13:11:58 | Python | UTF-8 | Python | false | false | 1,984 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
1d3160661f1b48fa56a02a364187eda4d6dd9bdd | 4ef688b93866285bcc27e36add76dc8d4a968387 | /moto/mediaconnect/urls.py | 75f24e173d40ce687beabb03d6dfb00bd9247d7c | [
"Apache-2.0"
] | permissive | localstack/moto | cec77352df216cac99d5e0a82d7ada933950a0e6 | b0b2947e98e05d913d7ee2a0379c1bec73f7d0ff | refs/heads/localstack | 2023-09-01T05:18:16.680470 | 2023-07-10T09:00:26 | 2023-08-07T14:10:06 | 118,838,444 | 22 | 42 | Apache-2.0 | 2023-09-07T02:07:17 | 2018-01-25T00:10:03 | Python | UTF-8 | Python | false | false | 1,121 | py | from .responses import MediaConnectResponse
url_bases = [
r"https?://mediaconnect\.(.+)\.amazonaws.com",
]
response = MediaConnectResponse()
url_paths = {
"{0}/v1/flows$": response.dispatch,
"{0}/v1/flows/(?P<flowarn>[^/.]+)$": response.dispatch,
"{0}/v1/flows/(?P<flowarn>[^/.]+)/vpcInterfaces$": r... | [
"noreply@github.com"
] | localstack.noreply@github.com |
6dc95ec44638ba3fae62440e52bc35d76eebc7fa | 741ee09b8b73187fab06ecc1f07f46a6ba77e85c | /AutonomousSourceCode/data/raw/sort/8e70a99e-d9e0-43dd-92cb-145c8269f8c0__SelectionSort.py | 498707c9f714b885f65517fe506d5d31dc91aa87 | [] | no_license | erickmiller/AutomatousSourceCode | fbe8c8fbf215430a87a8e80d0479eb9c8807accb | 44ee2fb9ac970acf7389e5da35b930d076f2c530 | refs/heads/master | 2021-05-24T01:12:53.154621 | 2020-11-20T23:50:11 | 2020-11-20T23:50:11 | 60,889,742 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | ##############################################################################################################################
# Project: Selection Sort
# Time Complexity: O(n2)
# Space Complexity: O(1)
# Stability: Not stable
# Info: ... | [
"erickmiller@gmail.com"
] | erickmiller@gmail.com |
9b9e47ae2a88e97c4c88d6b7f2f048642b6f2f52 | fc6809a89979b23b53103224d30fcd66739e7d45 | /studyproject/secondapp/urls.py | 6d4410265ad22938e0dd83fc593746a3a194559c | [] | no_license | SUJEONG999/Django_pratice | b97371d3f80f55bf419c7cf906a8c071c31f6de0 | e2f1cdcbb1d1cc3c9e20e105621bc9c31d877934 | refs/heads/master | 2023-02-27T22:48:26.027877 | 2021-02-03T14:14:02 | 2021-02-03T14:14:02 | 333,454,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.exam1, name='exam1'),
path('exam2/', views.exam2, name='exam2'),
path('exam2_1/', views.exam2_1, name='exam2_1'),
path('exam3/', views.exam3, name='exam3'),
path('exam4/', views.exam4, name='exam4'),
path('exam5/', v... | [
"ejd090393@gmail.com"
] | ejd090393@gmail.com |
332dd81bd654d419aa0ab72a80a856550d58edda | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03046/s648899043.py | c7f33cd66e2bf7359ad68555df1dc4decc183dab | [] | 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 | 320 | py | m, k = map(int, input().split())
if m==1 and k==0:
print(0,0,1,1)
exit()
if m==k==1:
print(-1)
exit()
if 2**m<=k:
print(-1)
exit()
ans = [k]
for i in range(2**m):
if i != k:
ans.append(i)
ans.append(k)
for i in reversed(range(2**m)):
if i != k:
ans.append(i)
print(*ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9bb9e2a6e620080d496936566fb0b58eb6e60b67 | 6ab6c60d4ff44b9b0810d945f382b79319788a8f | /setup.py | 879d52a4882ba4dc734617c776ff5f9d55669708 | [] | no_license | godblessyouyou/sptt | d83d565b97ca08e618243a1f9f2a82f4dece1f60 | 0fd50b1b342d35bf22bef15e23fed0eeb5c459bb | refs/heads/master | 2021-01-17T08:44:36.675135 | 2017-03-05T07:16:29 | 2017-03-05T07:16:29 | 83,952,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = [
'Click>=6.0',
# TODO: put package requirements here
]
test_requirem... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
60c397b7fa0caca4ae1c68271ecfcfc67a912e24 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_weirdest.py | fae73d3f30bb27efbeb6b19d1c97a8c6d03f5f4d | [
"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 | 245 | py |
from xai.brain.wordbase.adjectives._weird import _WEIRD
#calss header
class _WEIRDEST(_WEIRD, ):
def __init__(self,):
_WEIRD.__init__(self)
self.name = "WEIRDEST"
self.specie = 'adjectives'
self.basic = "weird"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
32c4dbc189e3ef9c9ba4b450d03936f43eb777a4 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-network/azure/mgmt/network/v2017_08_01/models/patch_route_filter_rule_py3.py | 9cec9cfdb33db858b510b39b774245835560b7b4 | [
"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 | 3,100 | 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 ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
64374c50564396066362b396a35a11fab804fd1b | 95540a155c043dd84ea6c0fb7d59ba06dc78b875 | /python/9/20 教学管理系统/项目/myPro/myPro/urls.py | d3410dc210c5c4e37e5f0484f48cb52d404b5ae0 | [] | no_license | Lilenn/must | 41b95d8e80f48a6b82febb222936bbc3502cc01f | a510a8d0e58fde1bc97ab7ad9bd2738158dcba5e | refs/heads/master | 2020-04-09T23:09:20.116439 | 2018-12-06T09:02:09 | 2018-12-06T09:02:09 | 160,648,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,026 | py | """myPro URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"846077763@qq.com"
] | 846077763@qq.com |
0da22359cc22d59fa30c54084f1a2e1c078ffe13 | 4c2ffec49d18913ff5bcd006d6cde7b0371e9f6a | /src/middlewared/middlewared/pytest/unit/plugins/test_pool.py | 412df5d85f0f5ba252662e3334ff2893c8f539c9 | [] | no_license | cyberpower678/freenas | 7b6bbcd7288ef76af66c9f0482652e16b6c4a540 | 3bd269199b404b8d3efe9e867d2c4f37ab187c4b | refs/heads/master | 2022-11-26T10:49:04.041283 | 2020-08-06T18:31:00 | 2020-08-06T18:31:00 | 285,836,451 | 2 | 0 | null | 2020-08-07T13:31:58 | 2020-08-07T13:31:57 | null | UTF-8 | Python | false | false | 903 | py | import textwrap
import pytest
from middlewared.plugins.pool import parse_lsof
@pytest.mark.parametrize("lsof,dirs,result", [
(
textwrap.dedent("""\
p535
cpython3.7
f5
n/usr/lib/data
p536
cpython3.7
f5
n/dev/z... | [
"themylogin@gmail.com"
] | themylogin@gmail.com |
6af25873ec799701ac79216d056ebc143a991453 | a7d5fad9c31dc2678505e2dcd2166ac6b74b9dcc | /dlkit/abstract_osid/osid/license.py | b03a71f2b314c591a316fef14570d1838b5d203c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mitsei/dlkit | 39d5fddbb8cc9a33e279036e11a3e7d4fa558f70 | 445f968a175d61c8d92c0f617a3c17dc1dc7c584 | refs/heads/master | 2022-07-27T02:09:24.664616 | 2018-04-18T19:38:17 | 2018-04-18T19:38:17 | 88,057,460 | 2 | 1 | MIT | 2022-07-06T19:24:50 | 2017-04-12T13:53:10 | Python | UTF-8 | Python | false | false | 1,836 | py | # -*- coding: utf-8 -*-
"""Core Service Interface Definitions
osid version 3.0.0
Copyright (c) 2002-2004, 2006-2008 Massachusetts Institute of
Technology.
Copyright (c) 2009-2012 Ingenescus. All Rights Reserved.
This Work is being provided by the copyright holder(s) subject to the
following license. By obtaining, us... | [
"cjshaw@mit.edu"
] | cjshaw@mit.edu |
b20b524f61b9022b32cd9d31ae8a0bf39be4db79 | ff1a0c651542396ca6abeff8531e4dd4cf4d0def | /utils/wx.py | 305d38a7c3070f9a6d960e39ffd00d8d49850320 | [] | no_license | zptime/interact | 4129fe8a42352ee7f402d57a74603e3d8dcceb49 | fd6c1ba12877c274c07110a95f5f9971fe1a878e | refs/heads/master | 2023-01-04T17:00:54.084476 | 2019-12-08T13:46:38 | 2019-12-08T13:46:38 | 226,673,825 | 0 | 0 | null | 2022-12-27T14:59:08 | 2019-12-08T13:42:25 | JavaScript | UTF-8 | Python | false | false | 1,901 | py | # coding=utf-8
from urlparse import urljoin
import os
import requests
import logging
import json
from applications.user_center.agents import get_uc_internal_domain_list
from applications.user_center.utils import RoundTripDecoder
from utils.errcode import WX_FETCH_VOICE_FAIL, WX_GET_ACCESS_TOKEN_FAIL
from uti... | [
"1063764688@qq.com"
] | 1063764688@qq.com |
46567a7b0a2032642ad65290787b0dcf200cb9f0 | a14b3e43705d74da97451de8663e9a98c088aec3 | /dohq_teamcity/models/vcs_status.py | e17ed3cddde028912753ccb18652d2cf75268362 | [
"MIT"
] | permissive | devopshq/teamcity | b5a36d6573cdde2f7c72e77a8e605198a7c7124d | 7a73e05c0a159337ed317f8b8d8072e478a65ca6 | refs/heads/develop | 2023-01-16T07:06:07.514297 | 2022-12-30T10:24:07 | 2022-12-30T10:24:07 | 153,228,762 | 29 | 13 | MIT | 2023-09-08T08:49:56 | 2018-10-16T05:42:15 | Python | UTF-8 | Python | false | false | 2,203 | py | # coding: utf-8
from dohq_teamcity.custom.base_model import TeamCityObject
# from dohq_teamcity.models.vcs_check_status import VcsCheckStatus # noqa: F401,E501
class VcsStatus(TeamCityObject):
"""NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
... | [
"allburov@gmail.com"
] | allburov@gmail.com |
97dab6cab60f2b2bd38e03fe6788e9cdd2bf1de3 | ab9d10f43173da753921415af0c07ef2dce3ed33 | /earlier-2020/python_mod_tutorials/mlutiprocess/tsubprocess.py | 9e7a4ccd5715f86cbff964b31cec96522e7d4aff | [
"Apache-2.0"
] | permissive | qianjinfighter/py_tutorials | e34f211735ab9827fc36b3e1cc72eba02fd6f4c2 | fed8e6c8d79f854a1cebcfd5c37297a163846208 | refs/heads/master | 2023-02-20T19:03:00.641107 | 2021-01-20T07:04:30 | 2021-01-20T07:04:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import subprocess
import time
# obj = subprocess.Popen(['python' ,'tsleep.py'], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
obj = subprocess.Popen(['python' ,'tsleep.py'])
# out,err = obj.communicate()
# print(out)
# obj.wait(2)
# print(obj.poll())
# time.sleep(2)
while True:
time.slee... | [
"transcendentsky@gmail.com"
] | transcendentsky@gmail.com |
6dc65d872d45ea164ab43525bedd6566971b6d58 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02901/s910176589.py | 8d6471bf6baa40512bb4955d46daff0150998477 | [] | 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 | 798 | py | import sys
def main():
input = sys.stdin.readline
N,M=map(int, input().split())
A,B,C=[],[],[]
for _ in range(M):
a,b=map(int, input().split())
A.append(a)
B.append(b-1)
C.append(list(map(lambda x:int(x)-1, input().split())))
#dp[i][j]=i番目の鍵まで見たとき、jの宝箱を開けられるようになった場合の... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7ed97924c969e4e32044a392de1488e91ab4290f | 0ee39556b48fe2b8427b97c2d14731cdbcedbd30 | /main.py | bba1dc976ae1585feac7e93ac28b211c35abece1 | [] | no_license | zibb03/BlackBox | 9978df048abb4d45cba2553d3d0d8e426433cbee | 65388af4a24b10757eaedbc685bb5a100b3b5b97 | refs/heads/main | 2023-08-22T04:04:57.650444 | 2021-10-02T05:04:34 | 2021-10-02T05:04:34 | 383,138,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,122 | py | # main.py
import cv2
import os
import ai
# 영상 처리
def video_processing(video_path, background):
face_mask_recognition_model = cv2.dnn.readNet(
'C:/Users/user/Documents/GitHub/blackbox/models/face_mask_recognition.prototxt',
'C:/Users/user/Documents/GitHub/blackbox/models/face_mask_recognition.caffem... | [
"64014435+zibb03@users.noreply.github.com"
] | 64014435+zibb03@users.noreply.github.com |
2b27e7a2a4e7460fdf50bf531978e0b5f4ea0c02 | 27c94d7e040902d3cdadd5862b15e67ec2ee4b6e | /xautodl/models/cell_searchs/search_model_darts_nasnet.py | 7cfdb47836e33d106d3ab758ea8564013e6da95a | [
"MIT"
] | permissive | D-X-Y/AutoDL-Projects | 8a0779a7710d809af2b052787928d8d34c14d0d9 | f46486e21b71ae6459a700be720d7648b5429569 | refs/heads/main | 2023-08-13T10:53:49.550889 | 2022-04-24T22:18:16 | 2022-04-24T22:18:16 | 168,538,768 | 989 | 197 | MIT | 2022-04-24T22:16:21 | 2019-01-31T14:30:50 | Python | UTF-8 | Python | false | false | 6,430 | py | ####################
# DARTS, ICLR 2019 #
####################
import torch
import torch.nn as nn
from copy import deepcopy
from typing import List, Text, Dict
from .search_cells import NASNetSearchCell as SearchCell
# The macro structure is based on NASNet
class NASNetworkDARTS(nn.Module):
def __init__(
... | [
"280835372@qq.com"
] | 280835372@qq.com |
51aadf25dc076bdcc46c39c9b24805b4128bd6c5 | 5845ee6d82d9f691e846360fa267b9cca6829d99 | /supervised_learning/0x06-keras/13-predict.py | e6012cab30f9023015c7765a6ef73341f7d4d14f | [] | no_license | jlassi1/holbertonschool-machine_learning | 6e8c11ebaf2fd57e101bd0b20b7d83358cc15374 | d45e18bcbe1898a1585e4b7b61f3a7af9f00e787 | refs/heads/main | 2023-07-02T20:25:52.216926 | 2021-08-11T14:19:49 | 2021-08-11T14:19:49 | 317,224,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/env python3
""" 13. Predict """
import tensorflow.keras as K
def predict(network, data, verbose=False):
"""function that makes a prediction using a neural network"""
return network.predict(data, verbose=verbose)
| [
"khawlajlassi1990@gmail.com"
] | khawlajlassi1990@gmail.com |
91f5a82f7e5df943a4f4e68d94fa3f8283ed31ac | a4daf0bfff6cfdb9ae9d9fd99fbb2df1a9aea845 | /easy_images/conf/app_settings.py | a7ed81975325be21f99b6232ecf9a01ee3cb8712 | [] | no_license | Gointer/easy-images | ca29dcf4f88b88e5014c8792c882af871f84f799 | 132d43c507ce0e5355757923a28f81889bdb7e82 | refs/heads/master | 2021-01-23T23:25:17.012989 | 2015-07-07T01:04:39 | 2015-07-07T01:04:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,905 | py | from django.conf import settings as django_settings
class AppSettings(object):
"""
A holder for app-specific default settings (project settings have
priority).
Settings split with two underscores are looked up from project settings
as a dictionary, for example::
# In myapp.conf:
... | [
"smileychris@gmail.com"
] | smileychris@gmail.com |
d2959cac8e253c8eb2217fcac17e2c06e072643c | 08eef4241e62bcff651e3002fc0809fe50aaaee3 | /unsupervised_learning/0x02-hmm/2-absorbing.py | 97591f0a8ce8c85dd1d220f662f8fa1f85f2cede | [] | no_license | Gaspela/holbertonschool-machine_learning | c4e470fed0623a5ef1399125b9f17fd4ae5c577b | b0c18df889d8bd0c24d4bdbbd69be06bc5c0a918 | refs/heads/master | 2023-04-02T00:34:16.350074 | 2021-04-03T02:27:41 | 2021-04-03T02:27:41 | 275,862,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | #!/usr/bin/env python3
"""
Absorbing Chains
"""
import numpy as np
def absorbing(P):
"""
P is a is a square 2D numpy.ndarray of shape (n, n) representing the
standard transition matrix
P[i, j] is the probability of transitioning from state i to state j
n is the number of states in the markov chai... | [
"samirmillanorozco@hotmail.com"
] | samirmillanorozco@hotmail.com |
2cc9b79f6a14304a72524de11a1c7b11e8c4b1c1 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/1294.py | 9c6bae4305bb8f61fad8ae6294dd15b924149e81 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | #!/usr/bin/env python3
T = int(input())
for t in range(1, T+1):
S, K = input().split()
S = [ 1 if s=='+' else -1 for s in S]
K = int(K)
pcnt = 0
n = 0
for i in range(len(S)-K+1):
if S[i] == -1:
for j in range(K):
S[i+j] *= -1
n += 1
for ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
19b0fff0df677e85eaab65148123d7ff5cf6aea4 | cd9f819b968def4f9b57448bdd926dc5ffa06671 | /B_物件導向Python與TensorFlow應用_鄭仲平_廣稅文化_2019/Ch10/ex10-04.py | 2938bff72f8983f3c8fe553d9fe15a8c7434ce60 | [] | no_license | AaronCHH/jb_pyoop | 06c67f3c17e722cf18147be4ae0fac81726e4cbc | 356baf0963cf216db5db7e11fb67234ff9b31b68 | refs/heads/main | 2023-04-02T05:55:27.477763 | 2021-04-07T01:48:04 | 2021-04-07T01:48:13 | 344,676,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,497 | py | from abc import ABC, abstractmethod
class ICell(ABC):
@abstractmethod
def GetPower(self):
pass
@abstractmethod
def SetLinkToNext(self, nc):
pass
class ILight(ABC):
@abstractmethod
def AddCell(self, cp):
pass
@abstractmethod
def Power(self):
pass
class Panas... | [
"aaronhsu219@gmail.com"
] | aaronhsu219@gmail.com |
38f2c8c5aaa9b13fc231f75e346503e18e7a76e6 | 46d3b41f98164bd869ac7f987a644ba0d6839e2c | /chat_message/tests.py | 1573d434b31233309d3ebf352b1ad87d054734aa | [] | no_license | Dimas4/Blog | dc22392c82ffb7050418d05b4f149d79c91bca30 | c9d6322bcf0a4b35f80c51830d1f4d5ad7f41bb3 | refs/heads/master | 2021-07-22T00:31:59.491338 | 2018-12-01T12:55:21 | 2018-12-01T12:55:21 | 135,898,131 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from django.contrib.auth.models import User
from django.test import TestCase
from accounts.models import UserProfile
from .models import Messages
class ChatTest(TestCase):
def setUp(self):
user = User.objects.create(username="admin", email="admin@mail.ru", password="adminadmin")
user_profile = Us... | [
"vaniashatuhomail@mail.ru"
] | vaniashatuhomail@mail.ru |
ed2bbad3804a1679f3211bbb4cb1e05fa8f23879 | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /ARC020/ARC020e.py | 3fb6dca801c396ba1e3b51146ac8e12109102dd9 | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #ARC020e
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
if __name__ == '__main__':
main() | [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
f92e3845080d0a95837073e550ec61628829bb78 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part003525.py | 43c14845da9a92c51f7ad39fcf26fdbd97dabae2 | [] | 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,296 | 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 |
649c2a65d3fcc1ab2fb930695cbfb94bac697201 | 72fcc9b617014484a1c021fa90af57b457aba5ba | /08.Hashing/22_sort_elements_frequency.py | 9a13fcc6977f45753107f647bb8fe698081fab6e | [] | no_license | shindesharad71/Data-Structures | 249cb89fc3b54a3d8a67e4e9db832e256d072ee6 | a7cd247228a723e880bccd3aa24c072722785f6d | refs/heads/main | 2023-07-24T21:01:08.070082 | 2021-09-03T04:02:05 | 2021-09-03T04:02:05 | 370,706,713 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | # Sort elements by frequency | Set 4 (Efficient approach using hash)
# https://www.geeksforgeeks.org/sort-elements-frequency-set-4-efficient-approach-using-hash/
from collections import defaultdict
def sort_by_freq(arr: list, n: int):
d = defaultdict(lambda: 0)
for i in range(n):
d[arr[i]] += 1
... | [
"shindesharad71@gmail.com"
] | shindesharad71@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.