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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f67969324b7b88047980838503dae8b978c474ed | 1a86413d97fdbb3228ea3f00444881f723d73652 | /land_ingest/psv_processor/generate-new-files.py | 12054ecdecbdb716b7e7c277b1060c16ebf83ce7 | [
"BSD-3-Clause"
] | permissive | glamod/glamod-land-ingest | f7105f953660231fac434034a088c8118dcd9b63 | a30c1030d39b5c5b1688d78db082c09167c2bd9c | refs/heads/master | 2020-05-04T07:55:49.956203 | 2019-04-02T12:53:58 | 2019-04-02T12:53:58 | 179,037,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,820 | py | import pandas as pd
import argparse
import sys
import os
import re
import datetime as dt
from collections import OrderedDict
from pandas.testing import assert_frame_equal
BASE_PATH = '/gws/nopw/j04/c3s311a_lot2/data/glamod_land_delivery_2018_12_31_Beta/'
FIXED_PATH = '/gws/nopw/j04/c3s311a_lot2/data/beta_fix7/'
STAT... | [
"ag.stephens@stfc.ac.uk"
] | ag.stephens@stfc.ac.uk |
1653c4111074a8ee0622a4f24e3279ad845f4ce0 | 5bd624a1c1d4834b49fe5e2d2bf9446d08a36161 | /pytype/pytd/pytd.py | a8d781d94d18c8d3df397214701e996872e9cfe9 | [
"Apache-2.0",
"MIT"
] | permissive | tharvik/pytype | ce3c7eca73082b047508df715ce7d179f28e15ba | df526720c96b08d328b2214d08eaa67ca342b01a | refs/heads/master | 2020-12-01T09:32:24.823351 | 2016-07-12T00:29:39 | 2016-07-12T14:18:14 | 63,402,024 | 0 | 0 | null | 2016-07-15T07:41:27 | 2016-07-15T07:41:27 | null | UTF-8 | Python | false | false | 14,304 | py | # -*- coding:utf-8; python-indent:2; indent-tabs-mode:nil -*-
# Copyright 2013 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/... | [
"kramm@google.com"
] | kramm@google.com |
feccd33264447c92abf14e4458ead9f06a2faa3f | d4f1bd5e52fe8d85d3d0263ede936928d5811bff | /Python/Problem Solving/ETC_algorithm_problem/5-11-2 max heap.py | d2ff607ea6054165b71bd00604e33c7b4fd62e91 | [] | no_license | ambosing/PlayGround | 37f7d071c4402599995a50cac1e7f1a85c6d10dd | 0d5262dbb2fa2128ecb3fd969244fa647b104928 | refs/heads/master | 2023-04-08T04:53:31.747838 | 2023-03-23T06:32:47 | 2023-03-23T06:32:47 | 143,112,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | import heapq
h = []
while True:
n = int(input())
if n == -1:
break
elif n == 0:
print(heapq.heappop(h)[1])
else:
heapq.heappush(h, (-n, n))
| [
"ambosing_@naver.com"
] | ambosing_@naver.com |
db2d73da906d6f138497d0b5d139584dad651cf8 | fd9cc4cdf9daca76b048b1697ba2aa3a51c17c76 | /FlaskWebAPI/application/entities/countries/interface_test.py | fb5bbe432aa43c3ea02a30d987efb08b4173ef08 | [] | no_license | dangost/PythonWebService | cdb40ebce00060591c6ce00f4dafdd109427b8a8 | 37c1438b6c26df0c0a440dd3a637d2633e94f1b2 | refs/heads/master | 2022-12-12T20:45:52.817606 | 2020-08-31T14:27:46 | 2020-08-31T14:27:46 | 289,210,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | from application.entities.countries.interface import BaseCountriesRepository
| [
"dangost16@gmail.com"
] | dangost16@gmail.com |
d38db2fa69e1cec7a307c36300e70bf1c784d05c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04043/s722084447.py | 63049b4fc35548c7e3243a14c504967fc3f86476 | [] | 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 | 148 | py | A, B, C = map(int, input().split())
num = [0]*11
num[A] += 1
num[B] += 1
num[C] += 1
ans = 'YES' if num[5] == 2 and num[7] == 1 else 'NO'
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9f0b2d91751a39fb0928cb1695e4ef33be1ad02d | d260f1492f1d3cffb72bd4e8c67da7b0724fa5d5 | /kubeflow/fairing/preprocessors/full_notebook.py | 84ff8f31a9bf417bb912c022cc61bddfa05ca6e0 | [
"Apache-2.0"
] | permissive | wyw64962771/fairing | 3be92ab22d596a360c6f8d70f678b3ada265e649 | 0cc639870ea3f773c5ae8a53c0ab16d4cda2ea6c | refs/heads/master | 2020-08-19T13:28:24.778189 | 2019-10-17T12:08:39 | 2019-10-17T12:08:39 | 215,924,578 | 1 | 0 | Apache-2.0 | 2019-10-18T02:23:58 | 2019-10-18T02:23:58 | null | UTF-8 | Python | false | false | 2,380 | py | import os
from kubeflow.fairing.preprocessors.base import BasePreProcessor
from kubeflow.fairing.constants import constants
from kubeflow.fairing.notebook import notebook_util
class FullNotebookPreProcessor(BasePreProcessor):
""" The Full notebook preprocess for the context which comes from BasePreProcessor.
... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
50d1f8e859d7710b2a71797166f82bbf97dcfb1f | df1ed60ce7d95a31565c5963ccda404d16b780ba | /src/h02_learn/dataset/dep_label.py | 2667a9d3378c4777ae28ec7222d485504c635aef | [
"MIT"
] | permissive | imperialite/info-theoretic-probing | 471a3c726e8b4e433ae8acaa070fbd964c6640a1 | 70414d5466e8c372187730c018064dd9309dd09a | refs/heads/master | 2022-04-23T00:53:23.283886 | 2020-04-27T16:19:07 | 2020-04-27T16:19:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | import numpy as np
import pandas as pd
from sklearn.decomposition import PCA
import torch
from torch.utils.data import Dataset
from h01_data.process import get_data_file_base as get_file_names
from util import constants
from util import util
from .pos_tag import PosTagDataset
class DepLabelDataset(PosTagDataset):
... | [
"tiagopms@gmail.com"
] | tiagopms@gmail.com |
e8f98be5b7ab2b73eb661006b68ed05132abcd26 | 1bfad01139237049eded6c42981ee9b4c09bb6de | /RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/bgpipv6evpnvpws.py | b056247e24115b64997226aec74465e157386f30 | [
"MIT"
] | permissive | kakkotetsu/IxNetwork | 3a395c2b4de1488994a0cfe51bca36d21e4368a5 | f9fb614b51bb8988af035967991ad36702933274 | refs/heads/master | 2020-04-22T09:46:37.408010 | 2019-02-07T18:12:20 | 2019-02-07T18:12:20 | 170,284,084 | 0 | 0 | MIT | 2019-02-12T08:51:02 | 2019-02-12T08:51:01 | null | UTF-8 | Python | false | false | 37,758 | py |
# Copyright 1997 - 2018 by IXIA Keysight
#
# 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, p... | [
"hubert.gee@keysight.com"
] | hubert.gee@keysight.com |
806c4c878888711dca3ec79b8fe335bae9900008 | 430b9e03e36e355bba475df49505011f99fa0819 | /web/第4课:页面交互操作/d5_鼠标操作.py | 7d4eb25bce43899556d622d03e2e63d1e93a663c | [] | no_license | gaoyang1224/mysite | b43e5d5e378b810b94dd60ffcac1c992173cc11a | 72150c67b9590b0498241a1eacb2669a836520ff | refs/heads/master | 2023-05-01T21:42:40.096287 | 2021-05-20T14:40:30 | 2021-05-20T14:40:30 | 368,254,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | import time
from selenium import webdriver
from selenium.webdriver import ActionChains
driver = webdriver.Firefox()
driver.implicitly_wait(4)
driver.get('file:///D:/classes/web_auto_testing/%E7%AC%AC4%E8%AF%BE%EF%BC%9A%E9%A1%B5%E9%9D%A2%E4%BA%A4%E4%BA%92%E6%93%8D%E4%BD%9C/alert_demo.html')
# 复杂版:
# 初始化 ActionChains... | [
"15195989321@163.com"
] | 15195989321@163.com |
a4da331d66a9bc9ab226ec4306a45994e44a8df7 | 3e59c64c78aa3ffc4ca6ee358ee1a3ba61e2d4af | /energy/activation.py | 596fbb09332eba316b94d644fc50b0773c482779 | [
"MIT"
] | permissive | pminervini/DeepKGC | de35f75fac9c64ca6e09e4ab244552792669678d | ed55d0a28d7607324def7c48ebde98786c11d5e1 | refs/heads/master | 2016-09-06T02:36:47.748324 | 2015-07-06T12:35:07 | 2015-07-06T12:35:07 | 38,617,255 | 5 | 5 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | # -*- coding: utf-8 -*-
import theano.tensor as T
# Activation functions
def htanh(x):
return -1. * (x < -1.) + x * (x < 1.) * (x >= -1.) + 1. * (x >= 1)
def hsigm(x):
return x * (x < 1) * (x > 0) + 1. * (x >= 1)
def rect(x):
return x * (x > 0)
def sigm(x):
return T.nnet.sigmoid(x)
def tanh(x):
... | [
"p.minervini@gmail.com"
] | p.minervini@gmail.com |
d42e178adedceb3d83a4176e7940c42721a0994f | a2b23a8ab40a01903438b22cf964704ad90ea414 | /0x0A-python-inheritance/10-square.py | 945e59b894388c2c68e3a4beff404c0670f4ff3b | [] | no_license | Katorea132/higher_level_programming | b78809d5d2a052c1e9680d24cc547d12ac69c41e | 746f094c10fed8c2497b65c7a18c782e1b7cd3a9 | refs/heads/master | 2022-12-17T04:39:57.794263 | 2020-09-24T19:30:57 | 2020-09-24T19:30:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #!/usr/bin/python3
"""THis module is for squares
"""
Rekt = __import__("9-rectangle").Rectangle
class Square(Rekt):
"""The square class from the super class rectangle from
the super class geometry
Args:
Rekt (class): super class
"""
def __init__(self, size):
"""Initializer
... | [
"katorea132@gmail.com"
] | katorea132@gmail.com |
3fcee134c03e33b7dcf94b71921e4a066cf3c566 | 105ef2d5f8bba13c15deb8c4a2a9af307b4e547a | /Baekjoon/python/11053.py | 212a1537f73cd5c4d20725f1cd212c45c8474320 | [] | no_license | caniro/algo-note | 1ec4c0e08adcb542d3356daf7b6e943af722394f | d237a5b58a67ca453dc7a1a335f99428af2c5df5 | refs/heads/master | 2023-08-29T22:39:35.189711 | 2021-11-04T11:18:07 | 2021-11-04T11:18:07 | 260,473,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | # 가장 긴 증가하는 부분 수열 : https://www.acmicpc.net/problem/11053
from sys import stdin
input = stdin.readline
INF = 1e9
def lis(arr):
if not arr:
return 0
c = [-INF] + [INF] * len(arr)
c[1] = arr[0]
max_length = 1
def search(low, high, value):
if low == high:
return low
... | [
"caniro@naver.com"
] | caniro@naver.com |
6af8e050da68bfdedfdc86850a2cfb29c077ba0a | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/twilio/twilio/rest/preview/trusted_comms/business/__init__.py | f8c935fdadfa88c9e90f8212fc00caf550491736 | [
"LicenseRef-scancode-other-permissive"
] | 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:4568e5a8fab302e3c70ed11607b218146e4027e860e186373a1901bf7e49b1cc
size 8394
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
375a99607fd2f2f1a217329571e15ee926971bc9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/1332.py | 14d48f941dcb48478886f954b0ba13b7112a23ce | [] | 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 | 610 | py | def line(f):
return f.readline().strip()
f = open("A-small-attempt0.in", "r")
o = open("1.out", "w")
T = int(line(f))
for t in xrange(T):
ans1 = int(line(f))
arr1 = []
for i in xrange(4):
arr1.append(map(int, line(f).split()))
ans2 = int(line(f))
arr2 = []
for i in xrange(4):
arr2.append(map(in... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
45792ef3fd3e901732b4fa5547b889acb1f5ba55 | baf8ccd12b27d0882c75a9c3845a0679e831f618 | /22_numerai/rl/sarsa.py | b42dcf00bd73335c856a2ee0f4ee839362e9fd06 | [
"MIT"
] | permissive | Tjorriemorrie/trading | c55d545a0a09e3fb92673696e95dd66b02858ab6 | aafa15a6c564bfa86948ab30e33d554172b38a3e | refs/heads/master | 2022-12-13T20:57:23.591343 | 2021-07-07T20:28:34 | 2021-07-07T20:28:34 | 28,739,306 | 2 | 2 | MIT | 2022-07-06T20:01:28 | 2015-01-03T08:55:17 | q | UTF-8 | Python | false | false | 2,238 | py | import gzip
import logging
import operator
import os
import pickle
from world import World
logging.getLogger(__name__)
class Sarsa():
def __init__(self, filename):
self.filename = filename
self.world = World()
self.alpha = 0.
self.epsilon = self.alpha / 2.
self.delta = No... | [
"jacoj82@gmail.com"
] | jacoj82@gmail.com |
c09732f66b28e55cad678be37b13b597723a0410 | d12b59b33df5c467abf081d48e043dac70cc5a9c | /ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/l2tpcapacity_1fb03b1eecddd532c02195eaf76667b2.py | 1845fd0d4f5769a607323c17e090b428a5725628 | [
"MIT"
] | permissive | ajbalogh/ixnetwork_restpy | 59ce20b88c1f99f95a980ff01106bda8f4ad5a0f | 60a107e84fd8c1a32e24500259738e11740069fd | refs/heads/master | 2023-04-02T22:01:51.088515 | 2021-04-09T18:39:28 | 2021-04-09T18:39:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,059 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# 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,... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
c0b2dc52c6067fe4d6acf3ac56599bffd2491b3e | e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488 | /minfraud/komand_minfraud/actions/email_lookup/action.py | 9925063bfcaa673b4be293d6606ed91c7b12b331 | [
"MIT"
] | permissive | OSSSP/insightconnect-plugins | ab7c77f91c46bd66b10db9da1cd7571dfc048ab7 | 846758dab745170cf1a8c146211a8bea9592e8ff | refs/heads/master | 2023-04-06T23:57:28.449617 | 2020-03-18T01:24:28 | 2020-03-18T01:24:28 | 248,185,529 | 1 | 0 | MIT | 2023-04-04T00:12:18 | 2020-03-18T09:14:53 | null | UTF-8 | Python | false | false | 2,803 | py | import komand
from .schema import EmailLookupInput, EmailLookupOutput
# Custom imports below
import minfraud
class EmailLookup(komand.Action):
def __init__(self):
super(self.__class__, self).__init__(
name='email_lookup',
description='Query email info',
inpu... | [
"jonschipp@gmail.com"
] | jonschipp@gmail.com |
8dae3ca824e26c97a94c7051f539dda7571c8482 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/v1_0/calendar_v1_0/azext_calendar_v1_0/vendored_sdks/calendar/aio/operations/_users_events_calendar_operations.py | 7667aac8777412b86e848c9b3827e2c95d9a37a4 | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 90,659 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
2e0cec4b5e1bec814164ba1d46fcb45d8a657b93 | 42d3d37a3dd22402154da4f4bd020afd7b7bad58 | /examples/adspygoogle/adwords/v201109/basic_operations/add_ad_groups.py | af1d61fdd7c560ea8a6a05c35e2fac85f4c8c218 | [
"Apache-2.0"
] | permissive | nearlyfreeapps/python-googleadwords | 1388316ec4f8d9d6074688ec4742872b34b67636 | b30d90f74248cfd5ca52967e9ee77fc4cd1b9abc | refs/heads/master | 2020-06-03T23:05:08.865535 | 2012-08-02T21:46:16 | 2012-08-02T21:46:16 | 5,278,295 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,856 | py | #!/usr/bin/python
#
# Copyright 2011 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"ahalligan@nearlyfreehosting.com"
] | ahalligan@nearlyfreehosting.com |
57999ae9ce2381856766849022c89cd3e153c7e4 | 9b4fe9c2693abc6ecc614088665cbf855971deaf | /744.find-smallest-letter-greater-than-target.py | 49625d5f3841c1e6060e6f275b7326d894db8a48 | [
"MIT"
] | permissive | windard/leeeeee | e795be2b9dcabfc9f32fe25794878e591a6fb2c8 | 0dd67edca4e0b0323cb5a7239f02ea46383cd15a | refs/heads/master | 2022-08-12T19:51:26.748317 | 2022-08-07T16:01:30 | 2022-08-07T16:01:30 | 222,122,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | # coding=utf-8
#
# @lc app=leetcode id=744 lang=python
#
# [744] Find Smallest Letter Greater Than Target
#
# https://leetcode.com/problems/find-smallest-letter-greater-than-target/description/
#
# algorithms
# Easy (43.56%)
# Likes: 245
# Dislikes: 376
# Total Accepted: 46.6K
# Total Submissions: 104.9K
# Testca... | [
"windard@qq.com"
] | windard@qq.com |
52c105db51a9729ca761c5db76853562fb4dd51a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03044/s052008101.py | 8dc7ecea338f828c998221cffb71731fd4019ce9 | [] | 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 | 768 | py | import sys
from collections import deque
read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
def main():
N = int(readline())
G = [[] for _ in range(N)]
for _ in range(N - 1):
u, v, w = map(int, readline().split())
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
069e8afc3bae88fc490dc7db80adf1c3c2ff5992 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2375/60595/257705.py | dfc1e79a8269cf592621f58eb91b8d16b18a863c | [] | 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 | 1,701 | py | class Graph(object):
def __init__(self, maps):
self.maps = maps
self.nodenum = self.get_nodenum()
self.edgenum = self.get_edgenum()
def get_nodenum(self):
return len(self.maps)
def get_edgenum(self):
count = 0
for i in range(self.nodenum):
for j in... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
615e70e685775ea91236d4f9d8bf8ffa6acd6d50 | 9e28200b71d43de1e122a964e88f1b547bfde465 | /question_leetcode/159_3.py | ac9e41c85595c93128f7e311a207156c3c39e650 | [] | no_license | paul0920/leetcode | 6f8a7086eefd3e9bccae83752ef41cbfee1acaea | 474886c5c43a6192db2708e664663542c2e39548 | refs/heads/master | 2023-08-19T14:10:10.494355 | 2021-09-16T20:26:50 | 2021-09-16T20:26:50 | 290,560,326 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | import collections
s = "ecebaa"
s = "bacc"
start = 0
count = collections.defaultdict(int)
res = 0
res_string = []
for idx, c in enumerate(s):
count[c] += 1
if len(count) > 2:
count[s[start]] -= 1
if not count[s[start]]:
count.pop(s[start])
start += 1
res = max(re... | [
"39969716+paul0920@users.noreply.github.com"
] | 39969716+paul0920@users.noreply.github.com |
853bd821d4c8c5ac1a86b930a9840d78d132224a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02873/s837577213.py | b7d5cafe31946f81d03165a317e1a59b8ade8854 | [] | 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 | 342 | py | s=input()
l=[]
i=0
while i<len(s):
k=0
while s[i]=='<' if i<len(s) else False:
k+=1
i+=1
if k>0:
l.append(k)
k=0
while s[i]=='>' if i<len(s) else False:
k+=1
i+=1
if k>0:
l.append(k)
sm=0
for i in l:
sm+=(i*(i+1))//2
for i in range(0 if s[0]=='<' else 1,len(l)-1,2):
sm-=min(l[i],... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d6d1beb28158c44d313682bf5c100994d4d897db | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4005/codes/1791_1621.py | 88314ecf676c1eade669782dcfbe3233714d8418 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | from numpy import*
a=array(input(":").upper())
q=array(int(input(":")))
soma=0
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
0986e209f3f4491736d25bff9acd114e0c92e812 | 4c9eb8584b16bb103a1401a8f297f62589941c01 | /flo/cli/Rdr2Geo.py | 37d70f06ef8cebd48f5ae3fad9407d2f1276678c | [] | no_license | pyre/flo | d62e0bba61926fd395df1c2767198c5743ade531 | 7b61a7a4cf12d4448b99f1b841866fe31a27bb61 | refs/heads/master | 2023-03-08T11:21:55.874526 | 2021-09-28T06:47:10 | 2021-09-28T06:47:10 | 156,036,991 | 5 | 0 | null | 2023-02-28T17:42:13 | 2018-11-04T00:51:52 | JavaScript | UTF-8 | Python | false | false | 509 | py | #-*- coding: utf-8 -*-
# support
import flo
# superclass
from .Workflow import Workflow
# declaration
class Rdr2Geo(Workflow, family="flo.cli.rdr2geo"):
"""
Invoke the {rdr2geo} workflow to compute the transformation from radar coordinates to
geodetic coordinates for a given SLC
"""
# public s... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
cd1eb7e40c810db20c3ae7b49d3798be2f3e58b5 | 34597ad1d89ee507473c5d91f03a5819143ec48f | /EBOs/UserV1/model.py | ab856ee1f233ace7266afeb7b415be1894a6ca4b | [] | no_license | rmetcalf9/dockPondSampleEBOs | 082c3a18961665e02402f0f14e3180019fc75bde | abd8d973feee03bcbf52938d6364c93d38aa2d5c | refs/heads/master | 2020-03-12T16:26:11.636502 | 2018-06-29T10:58:17 | 2018-06-29T10:58:17 | 130,716,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py |
from flask_restplus import fields
def getModel(flaskRestPlusAPI):
#Function must be declared inside getModel function as this is the only part that is imported by dockPond
def getTypeModel(flaskRestPlusAPI, typeName):
if typeName=='http://ic.ac.uk/AIAMetaData/AIAComponents/EnterpriseObjectLibrary/Core/IC_EBO/... | [
"rmetcalf9@googlemail.com"
] | rmetcalf9@googlemail.com |
02cca8d92f564c91c6c3d266eaef9202830aaabd | 2fdc719bea50f10e2a4fc507d25b83ff4e612071 | /projects/buck/bucklets/tools/download_all.py | a70cbda5baa067b219192369df1ce9371cbd8098 | [
"Apache-2.0"
] | permissive | aslamz/appium | 5610b61598b5d74a41c43b2d6729f21f6978b7c8 | 778fe9c92041c99f06d9d074caed2f9c61c8bbb0 | refs/heads/master | 2022-06-01T18:46:07.210870 | 2021-01-04T12:56:25 | 2021-01-04T12:56:25 | 40,705,347 | 0 | 0 | Apache-2.0 | 2022-05-20T20:52:31 | 2015-08-14T08:53:27 | Ruby | UTF-8 | Python | false | false | 1,306 | py | #!/usr/bin/python
# Copyright (C) 2013 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
#
# Unless required by ap... | [
"code@bootstraponline.com"
] | code@bootstraponline.com |
5d60063af802f6cb1f0a9b6e580171f272016318 | 9ce3080999a69f1d330356645fe3e655052cf954 | /aiida_registry/make_pages.py | 0c4911cf752d6d8c8ef644290e6d20c49269cc15 | [] | no_license | chrisjsewell/aiida-registry | b0969b8298e8e5108653ec56ac54a8807e3cc1e6 | a2cc2cf6c61e835e535d6af6125efcdf7dcae33b | refs/heads/master | 2021-06-16T10:17:19.887994 | 2019-10-30T18:00:55 | 2019-10-30T18:00:55 | 148,847,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,634 | py | # -*- coding: utf-8 -*-
"""Generate HTML pages for plugin registry.
Reads plugin-metadata.json produced by fetch_metadata.
"""
from __future__ import absolute_import
from __future__ import print_function
import codecs
import json
import os
import shutil
from collections import defaultdict
from jinja2 import Environme... | [
"leopold.talirz@gmail.com"
] | leopold.talirz@gmail.com |
54af66ff4d6027355a3710a71ff0203770426322 | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/whitenoise/httpstatus_backport.py | fcb1c22f1d45ec7f7fc3b25ffc361c1df72b45bc | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 558 | py | """
Very partial backport of the `http.HTTPStatus` enum from Python 3.5
This implements just enough of the interface for our purposes, it does not
attempt to be a full implementation.
"""
class HTTPStatus(int):
phrase = None
def __new__(cls, code, phrase):
instance = int.__new__(cls, c... | [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
39cd46f95479b5459cef6c53ce8edc1945642153 | 79bb7105223895235263fd391906144f9f9645fd | /python/kernel_tests/identity_op_py_test.py | 7cde987900cb2e034c0d925eba85540adc313147 | [] | no_license | ml-lab/imcl-tensorflow | f863a81bfebe91af7919fb45036aa05304fd7cda | 54ab3ec2e32087ce70ecae2f36b56a8a92f2ba89 | refs/heads/master | 2021-01-22T06:37:18.129405 | 2016-06-08T15:53:28 | 2016-06-08T15:53:28 | 63,518,098 | 1 | 2 | null | 2016-07-17T06:29:14 | 2016-07-17T06:29:13 | null | UTF-8 | Python | false | false | 2,365 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"mrlittlezhu@gmail.com"
] | mrlittlezhu@gmail.com |
00c674bec719f04e064532c7307ee71bc50f8bbc | 8b6cd902deb20812fba07f1bd51a4460d22adc03 | /back-end/.history/djreact/users/serializers_20191221131418.py | 4a84b43397e2a944a5fd21996d7d0d6712fd600d | [] | no_license | vishaldenzil/Django-react- | f3a49d141e0b6882685b7eaa4dc43c84857f335a | 35b6d41f6dacb3bddcf7858aa4dc0d2fe039ff98 | refs/heads/master | 2022-11-08T09:27:02.938053 | 2020-05-29T04:53:52 | 2020-05-29T04:53:52 | 267,768,028 | 0 | 1 | null | 2022-10-15T14:08:30 | 2020-05-29T04:52:20 | Python | UTF-8 | Python | false | false | 190 | py | from rest_framework import serializers
from .models import User
class UserRegistrationSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = __all__
| [
"vishal.denzil@ezedox.com"
] | vishal.denzil@ezedox.com |
f89422d908d4ded0742b533ea5c45917262a21e9 | e47b6d86c2309c857c9af4e84ff2e30455030681 | /Bridge.py | 0c456d90f8e0be7e8fb10b816da313a991482ee8 | [] | no_license | bigeyesung/DesignPattern | 39aec1d9c549ec7fce5bfe5a67a65267692786d8 | 4d2e48f6f053b5a9b6a87e73cdb79c5978592ab6 | refs/heads/master | 2020-08-17T11:05:42.104343 | 2020-07-07T20:02:42 | 2020-07-07T20:02:42 | 215,656,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | from abc import ABC, abstractmethod
class Abstraction:
def __init__(self, implementation: Implementation):
self.implementation = implementation
def operation(self):
return self.implementation.operation_implementation()
class ExtendedAbstraction(Abstraction):
def operation(self):
... | [
"sungchenhsi@gmail.com"
] | sungchenhsi@gmail.com |
ee92648ad5b8a4be878dc87469075f80bd3a442d | cdd79cef15bdf6a0b9098e27028bbe38607bc288 | /蟻本/2-3_最長共通部分文字列問題_配るDP.py | d9e557cf8591cc2a57a19eb9d8c300f6120fd617 | [] | no_license | nord2sudjp/atcoder | ee35a3eb35717485dc62627172de24c9dac102fb | 6b1cc5102a615492cc7ff8a33813bbb954641782 | refs/heads/master | 2023-08-25T11:27:14.205593 | 2021-09-27T05:43:04 | 2021-09-27T05:43:04 | 302,855,505 | 0 | 0 | null | null | null | null | SHIFT_JIS | Python | false | false | 620 | py | N,M=map(int,input().split())
S=input()
T=input()
MAX_N=N+2
MAX_M=M+2
DP=[[0]*(MAX_N) for _ in range(MAX_M)]
#DP[i+1][j+1] : S[i]T[j]に対するLCSの長さ
for i in range(N):
for j in range(M):
# i,jは文字列としては現在を見ている
# DPとしては過去のDPを見ている
# DP[i][j]は文字列S[i]T[j]までの共通文字列の長さを表す
DP[i][j+1]=max(DP[i][... | [
"nord2sudjp@gmail.com"
] | nord2sudjp@gmail.com |
8055239902f815052d3b4a078afeb5a0d13730b7 | 459929ce79538ec69a6f8c32e608f4e484594d68 | /venv/Lib/site-packages/kubernetes/client/models/extensions_v1beta1_ingress_backend.py | efa600d193b4a86f19a2dcc154c8bf3990938050 | [] | no_license | yychai97/Kubernetes | ec2ef2a98a4588b7588a56b9d661d63222278d29 | 2955227ce81bc21f329729737b5c528b02492780 | refs/heads/master | 2023-07-02T18:36:41.382362 | 2021-08-13T04:20:27 | 2021-08-13T04:20:27 | 307,412,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,474 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: release-1.15
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class Exten... | [
"49704239+yychai97@users.noreply.github.com"
] | 49704239+yychai97@users.noreply.github.com |
bbb90548f8bac0d1b4062e9b26e835791376a92c | a94c446a0d9ce77df965674f63be54d54b2be577 | /raspy/components/potentiometers/microchip/register_memory_address.py | 2c00349ad860e9bab97439a83e7dadd9917a5182 | [
"MIT"
] | permissive | cyrusbuilt/RasPy | 3434e02c2bff09ef9f3ff4995bda14edc781c14b | 1e34840cc90ea7f19317e881162209d3d819eb09 | refs/heads/master | 2020-03-18T20:19:27.426002 | 2018-08-03T17:07:25 | 2018-08-03T17:07:25 | 135,207,376 | 0 | 0 | MIT | 2018-08-03T17:07:26 | 2018-05-28T20:42:17 | Python | UTF-8 | Python | false | false | 480 | py | """Register memory addresses."""
WIPER0 = 0x00
"""Wiper 0."""
WIPER1 = 0x01
"""Wiper 1."""
WIPER0_NV = 0x02
"""Wiper 0 non-volatile."""
WIPER1_NV = 0x03
"""Wiper 1 non-volatile."""
TCON01 = 0x04
"""Terminal control for wipers 0 and 1."""
WIPER2 = 0x06
"""Wiper 2."""
WIPER3 = 0x07
"""Wiper 3."""
WIPER2_NV = 0x0... | [
"cyrusbuilt@gmail.com"
] | cyrusbuilt@gmail.com |
e7b7bc0fa2a5b32fb56f559e5bdd1a625c0572ed | 8f439e50c741483ffefd5bad16f11d4b60da8fe9 | /examples/infomax_transductive.py | 785c7864d2eb6dd43726820bbc8b4e4abf238b6c | [
"MIT"
] | permissive | sumanthratna/pytorch_geometric | 19d66b6cc874fbce9207efc204a0ed1f9bb04d88 | 9c6a069c995cac38e4f3a2f1e9cfc7cebac889c6 | refs/heads/master | 2023-08-29T09:58:33.807755 | 2021-09-08T16:00:09 | 2021-09-08T16:00:09 | 404,423,682 | 2 | 0 | MIT | 2021-09-08T20:58:23 | 2021-09-08T16:44:15 | null | UTF-8 | Python | false | false | 1,720 | py | import os.path as osp
import torch
import torch.nn as nn
from torch_geometric.datasets import Planetoid
from torch_geometric.nn import GCNConv, DeepGraphInfomax
dataset = 'Cora'
path = osp.join(osp.dirname(osp.realpath(__file__)), '..', 'data', dataset)
dataset = Planetoid(path, dataset)
class Encoder(nn.Module):
... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
24696d3d7d1ec6758135a501519de7bf80fc9c3f | 1208ac3718420c4a118ab6b777d99980b85f952a | /123.py | 5f73d229ebcbe9954cec2122d838cef49c4cf56b | [] | no_license | deimelperez/150_Py_challenges | 6ab9aea77c9c117b682790bfe36fb5e280cb8afc | b58f55312e7abf30cb7cb6d68b249bb5dcd3c862 | refs/heads/master | 2023-03-13T02:30:15.095467 | 2021-03-04T19:02:11 | 2021-03-04T19:02:11 | 344,579,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | import os
import csv
clear = lambda: os.system('cls')
def prompt():
ch = 0
while ch != 1 and ch != 2 and ch != 3 and ch != 4:
clear()
print('1- Add to file')
print('2- View all records')
print('3- Delete record')
print('4- Exit')
ch = int(input('Select an optio... | [
"deimelperez@gmail.com"
] | deimelperez@gmail.com |
cff764949b2ed11e5a93eb1010ee840f4c990c13 | f7d3c8483521ec45bf0bb0927c0c57a275e03996 | /ch04-linear/linear_ml.py | fe394af134bee53da6a57b9be7d233d6d95f245d | [] | no_license | buzzzzx/DataScienceLearning | 2fe7fef6fb8538e2acd46d19643ff4fc50dc249a | af38157f01ba3682141b11788276daf6d6002b37 | refs/heads/master | 2020-03-23T16:40:21.517239 | 2018-07-24T15:10:17 | 2018-07-24T15:10:17 | 141,699,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,808 | py | # -*- coding: utf-8 -*-
__author__ = 'buzz'
__date__ = '2018/7/16 下午2:42'
"""
1. spit the data: trainData, testData
2. train the model
3. evaluate the model, get the MSE and COD
4. visualization
"""
import os
import sys
from sklearn import linear_model
import numpy as np
import matplotlib.pyplot as plt
import pandas... | [
"buzzzzx233@gmail.com"
] | buzzzzx233@gmail.com |
ccb6cff749499176fa4d9de1366c42f43483fafb | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Official/cv/image_segmentation/UNet_Industrial_for_TensorFlow/model/layers/__init__.py | a7816ce0045ac92926203a79ec08c91e0727c967 | [
"Apache-2.0"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 2,506 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
#
# Copyright (c) 2019, 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 L... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
96f85c38df153deb1653e341c876ccc4fc255a21 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02879/s387457862.py | 04f057243e2adabe89adf048f7b2c93b05844897 | [] | 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 | 93 | py | a, b = map(int, input().split())
if a <= 9 and b <= 9:
print(a * b)
else:
print("-1") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6d66d2cdb6781a847e3e9c871a7d560d72c7b3c5 | b87f66b13293782321e20c39aebc05defd8d4b48 | /maps/build/Traits/integrationtests/ui/instance_drag_test.py | 74dcc024c6f16f6dde1583cd5dc3b07f36b3a95c | [] | no_license | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,611 | py | #------------------------------------------------------------------------------
# Copyright (c) 2005, Enthought, Inc.
# All rights reserved.
#
# This software is provided without warranty under the terms of the BSD
# license included in /LICENSE.txt and may be redistributed only
# under the conditions described in the... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
db27d9c00b53a47982cfeea67dd63ecb1da8129b | b9cda298b1e8da3a657aea29080a467055bae421 | /scandium/tpl/project_template/setup.pyt | cc777de4496e074ae1f3fefcdbd641970330004f | [] | no_license | vasfili/scandium | 9fa98c18100b18f8dac60955e5602ca038e681db | 843757d13a70a407626a0a7d5f6407a21d74e5f9 | refs/heads/master | 2020-12-13T22:34:50.661608 | 2015-10-14T13:14:27 | 2015-10-14T13:14:27 | 44,236,746 | 0 | 0 | null | 2015-10-14T09:11:37 | 2015-10-14T09:11:36 | Python | UTF-8 | Python | false | false | 5,219 | pyt | from setuptools import setup, find_packages
from py2exe.build_exe import py2exe as build_exe
from distutils.sysconfig import get_python_lib
import fnmatch
import py2exe
import sys
import os
# If run without args, build executables, in quiet mode.
if len(sys.argv) == 1:
sys.argv.append("py2exe")
sys.argv.append... | [
"matt@bennett.name"
] | matt@bennett.name |
8449cd14afa4652b75eadf140e87adf6909ad3d1 | 1539f86f91ce0ee6150fba7363976d32cd37ece2 | /codes_auto/99.recover-binary-search-tree.py | 71f632672d901d70aa7038b3688b89a5cf53aea0 | [] | no_license | zhpbo/LeetCode_By_Python | fdee0a8b7ea7ed1f61a99f0041e1c748e50f138c | 0017b9db891d36789116f7299d32510a373e68da | refs/heads/master | 2023-07-09T15:38:45.003002 | 2020-08-18T07:04:51 | 2020-08-18T07:04:51 | 281,598,190 | 0 | 0 | null | 2021-08-18T04:58:39 | 2020-07-22T06:47:05 | null | UTF-8 | Python | false | false | 995 | py | #
# @lc app=leetcode.cn id=99 lang=python3
#
# [99] recover-binary-search-tree
#
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def recoverTree(self, root: TreeNode) -> None:
"... | [
"liuyang0001@outlook.com"
] | liuyang0001@outlook.com |
6ece9e8b26aba619307519cdbbc359223e72c41a | 57d5ebeece91f5759d54e898154f11e97c6e5609 | /tests/add_trailing_comma_test.py | ee7bed3b6df646ee1055c45a784166a530c78b5b | [
"MIT"
] | permissive | chriskuehl/add-trailing-comma | 0c50e16fd6d25057d025f75a23ddde0aafec4dbd | d26f8ca449eb12cfaec3d3cd1f8ced789bd73e9a | refs/heads/master | 2020-12-02T07:46:50.317774 | 2017-07-10T01:29:14 | 2017-07-10T01:29:14 | 96,725,169 | 0 | 0 | null | 2017-07-10T01:53:11 | 2017-07-10T01:53:11 | null | UTF-8 | Python | false | false | 3,624 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import ast
import sys
import pytest
from add_trailing_comma import _fix_calls
from add_trailing_comma import main
@pytest.mark.parametrize(
'src',
(
# No relevant multiline calls
'x = 5',
... | [
"asottile@umich.edu"
] | asottile@umich.edu |
607b14e2c65395162c1e43a9e0046c08f05de656 | 7465148de5d656ebfe68b588a2f271a11384ed6a | /examples/multiple_actions_docker/second.py | e1f78138fe14078b2864bf7a2b3a58b404a44222 | [] | no_license | fiefdx/LitePipeline | 1462dacdd1a0f2c67972b6014b428c2c45d46949 | 09608f8c5f248d2ba10e5840bf00d69e76ed6291 | refs/heads/master | 2023-04-14T11:45:18.929249 | 2023-04-02T06:48:30 | 2023-04-02T06:48:30 | 226,355,739 | 2 | 0 | null | 2023-04-01T17:49:14 | 2019-12-06T15:17:33 | Python | UTF-8 | Python | false | false | 1,206 | py | # -*- coding: utf-8 -*-
import os
import sys
import time
import json
import logging
import datetime
from pathlib import Path
import tornado
from litepipeline_helper.models.action import Action
import logger
LOG = logging.getLogger(__name__)
home = str(Path.home())
if __name__ == "__main__":
workspace, input_... | [
"fiefdx@163.com"
] | fiefdx@163.com |
51a5adfbaade61004be3dca483ae4850f82444ba | a2b20597759990445081057d35d113434cfcf970 | /stubs/integration_test/fixture_stubs/django/db/__init__.pyi | 5319b5a66ff2a2a4b828e875de269690e72683c4 | [
"MIT"
] | permissive | facebook/pyre-check | 34059599c02b65605c574f13555229f3b931fd4e | fe8ccedc572cc1faa1fd01e9138f65e982875002 | refs/heads/main | 2023-09-03T19:10:11.587028 | 2023-09-02T07:40:35 | 2023-09-02T07:40:35 | 110,274,488 | 6,703 | 575 | MIT | 2023-09-13T17:02:32 | 2017-11-10T17:31:36 | OCaml | UTF-8 | Python | false | false | 843 | pyi | # Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# pyre-unsafe
from typing import Any
from django.db.backends.base.base import BaseDatabaseWrapper
from django.db.utils import (
Connec... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
3e0591086d651f921210267a7a24e4842272772c | 62fc811f203f041c07d4bc782ce5f7f5cb8dd7c6 | /test.py | 01b7128de9357da4fab8a70928f00beee19546bf | [] | no_license | riaz/Recee | 71dba563383059bac474bf361f216adfdebab8ae | a68c356a5c77ef0365f45c557d945d50fadcb430 | refs/heads/master | 2021-01-10T05:07:40.018566 | 2015-11-16T04:46:31 | 2015-11-16T04:46:31 | 46,204,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | from openalpr import Alpr
import sys
alpr = Alpr("eu", "nplate_train/openalpr.conf.in", "nplate_train/runtime_data")
if not alpr.is_loaded():
print("Error loading OpenALPR")
sys.exit(1)
#alpr.set_top_n(20)
alpr.set_default_region("eu")
results = alpr.recognize_file("/home/riaz/Desktop/hack/2009_09_08_drive_0... | [
"riaz.2012@gmail.com"
] | riaz.2012@gmail.com |
9dd7a920b8c9aaa780d588326e861519a2da8ca1 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_383/ch18_2019_03_21_00_26_29_879325.py | f8de6535586f5e1582515556af18efa461925a5e | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | def encontra_cateto(hipotenusa,cateto):
cateto2=((hipotenusa**2)-(cateto**2))**(1/2)
return cateto2 | [
"you@example.com"
] | you@example.com |
a2c55b36e5abd15a11aed5da04519c8e52823407 | 17be0e9275082c3239fedc11bc617ecd5856136c | /letor/offline/train_one_state.py | ee6031ab06d7a984a088428fc91a8abe491fd882 | [] | no_license | mdkmongo/semantichealth.github.io | 8bb814bfd3b0b3a71828625a2acebfd8013e2eef | 6462ba2cc406967b0371b09822e4c26860e96c91 | refs/heads/master | 2021-01-21T08:24:07.128484 | 2016-08-19T05:35:04 | 2016-08-19T05:35:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | from s3_helpers import *
from get_rank_for_state_plan import *
from query_characterizer import *
import pickle
def train_one_state(click_data, state, log, s3_fea):
'''
'''
# set folder name of S3
s3clnt = s3_helper()
log.trace('characterize queries for state %s' %state)
s_rows = click_data[cli... | [
"ynglei@gmail.com"
] | ynglei@gmail.com |
8df1690d1f23f89363ab4c98e63ee1b3d812a469 | 505dc9404c89e56aea70f2db9fc1b3fb311fc5d9 | /usr/lib/enigma2/python/Components/Renderer/speedyflipclockfortuna_metall1.py | ec87abf72fe3c8bbce8261dc3e619d1ce0ca2573 | [] | no_license | e2plugins/4ATV_speedy_blue | ae8181ed4017beb4b48e58fe7cbbcbe2a1696057 | c84da50a0d872a2e74812214eed5532ed0893534 | refs/heads/master | 2022-11-14T17:09:41.134795 | 2020-07-12T06:24:24 | 2020-07-12T06:24:24 | 277,350,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | # FlipClock
# Copyright (c) .:TBX:. 2016
# Mod by Maggy
# Th4ATV_2_2_speedy_black_mod program 4ATV_2_2_speedy_black_mod free software: you can red4ATV_2_2_speedy_black_modtribute it and/or modify
# it under the terms of the GNU General Public License as publ4ATV_2_2_speedy_black_modhed by
# the Free Software Foundation... | [
"captain.onboard@web.de"
] | captain.onboard@web.de |
77028e65d46a2e748e17451d5f7ea8d70505ece8 | afdda41e01518db1a2685e9eb7fad524d7b5c69b | /ABC161/D/test.py | a064933ef448b042dd8bc488c08b80b5cdfacac1 | [] | no_license | kame3niku9/atcoder | 4bea5598b6529b7dd5d84a4b342b7ef650b81141 | b5042f31d43425e4ca1e02cc4bbfecbd5a738b49 | refs/heads/master | 2022-07-10T11:37:47.560392 | 2020-11-22T13:47:08 | 2020-11-22T13:47:08 | 233,927,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | from main import resolve
import sys
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.seek(0)
out = sys... | [
"kame3niku9@gmail.com"
] | kame3niku9@gmail.com |
fb3292faa83df637e9541d37e4a20e7c4c8eaabc | 3562a01673bc62df91fdff621e48b82b15cb330c | /Part 1 - Data Preprocessing/Section 2 -------------------- Part 1 - Data Preprocessing --------------------/data_preprocess.py | 4a7456da3e023a18c6b161a2a1cd77ee4e089c56 | [] | no_license | laksh10-stan/Machine-Learning-A-Z | 16bf070a6ddbde812b053b84d9f09186cf9a0257 | ba2ac016879dc5ea4be4d670e7a8de5e24abbae2 | refs/heads/master | 2021-02-08T20:46:36.892343 | 2020-03-01T17:54:16 | 2020-03-01T17:54:16 | 244,195,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 23 00:25:37 2019
@author: laksh
"""
#importing libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
#import dataset
dataset = pd.read_csv('Data.csv')
X = dataset.iloc[:,:-1].values
y = dataset.iloc[:,3].values
#taking care of the missing da... | [
"43860070+Kushjadaun@users.noreply.github.com"
] | 43860070+Kushjadaun@users.noreply.github.com |
6fcb98bf130d6fe7794dcbb0f39cba96ea071f2b | 316eada5e13da6207801831b115cb8bc0a8ed970 | /politician/urls.py | 60abfdbfc4ac76261894f1a93d0a5ba1e3722102 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | edward-ly/WeVoteServer | d942ecba975e2b5a2082a078c9bd2b35ad58d3d3 | 24b9f0d0cd065f933707dd08391f3883bab9fb37 | refs/heads/develop | 2021-01-23T21:21:39.227475 | 2019-05-09T16:04:36 | 2019-05-09T16:04:36 | 102,893,733 | 0 | 0 | null | 2017-09-08T18:51:44 | 2017-09-08T18:44:40 | Python | UTF-8 | Python | false | false | 1,260 | py | # politician/urls.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
from . import views_admin
from django.conf.urls import url
urlpatterns = [
url(r'^$', views_admin.politician_list_view, name='politician_list',),
url(r'^edit_process/$', views_admin.politician_edit_process_view, name='politici... | [
"dale.mcgrew@wevoteusa.org"
] | dale.mcgrew@wevoteusa.org |
a1407bef754ce906c79d678043c844ba8180c32a | 47243c719bc929eef1475f0f70752667b9455675 | /bungeni.main/branches/pre-mr-merge/bungeni/models/orm.py | 97a2bcb2469cadc27c2c77f64d2192a5b1e961cd | [] | no_license | malangalanga/bungeni-portal | bbf72ce6d69415b11287a8796b81d4eb6520f03a | 5cf0ba31dfbff8d2c1b4aa8ab6f69c7a0ae9870d | refs/heads/master | 2021-01-19T15:31:42.943315 | 2014-11-18T09:03:00 | 2014-11-18T09:03:00 | 32,453,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,055 | py |
import sqlalchemy as rdb
from sqlalchemy.orm import mapper, relation, column_property, backref
import schema
import domain
# Users
# general representation of a person
mapper(domain.User, schema.users,
properties={"user_addresses": relation(domain.UserAddress)}
)
# Groups
mapper(domain.Group, schema.groups,
... | [
"ashok.hariharan@fc5d704a-7d24-0410-8c4a-57ddeba10ffc"
] | ashok.hariharan@fc5d704a-7d24-0410-8c4a-57ddeba10ffc |
2971a3b1ec52cbc72aa4073ad4c8172d91dccafd | 4b265adfae6d91d614a628705571805a2c3d241e | /migrations/versions/3e4b752d4b66_.py | 4be97e84029f717fc303084c944902289e0ab040 | [] | no_license | 1010784344/mybbs | 02d85a661f42b648cd0939c0550959d758f0717d | 0787c77c32f78de6e6cf16db55c3502bf43307d2 | refs/heads/master | 2022-12-22T17:45:55.908981 | 2020-03-02T06:44:10 | 2020-03-02T06:44:10 | 244,299,839 | 0 | 0 | null | 2022-09-16T18:18:56 | 2020-03-02T06:45:01 | Python | UTF-8 | Python | false | false | 1,042 | py | """empty message
Revision ID: 3e4b752d4b66
Revises: 907d0dec1971
Create Date: 2018-06-10 22:55:59.028570
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3e4b752d4b66'
down_revision = '907d0dec1971'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"1010784344@qq.com"
] | 1010784344@qq.com |
b441d0ca2ecfaf7defd1eaf369f3be18a2441a4e | 2a1f4c4900693c093b2fcf4f84efa60650ef1424 | /py/cli/factory_env_unittest.py | d04bc714f33ffe86931dfcac330040122dbf74b8 | [
"BSD-3-Clause"
] | permissive | bridder/factory | b925f494303728fa95017d1ba3ff40ac5cf6a2fd | a1b0fccd68987d8cd9c89710adc3c04b868347ec | refs/heads/master | 2023-08-10T18:51:08.988858 | 2021-09-21T03:25:28 | 2021-09-21T03:25:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | #!/usr/bin/env python3
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import glob
import os
import unittest
from cros.factory.cli import factory_env
from cros.factory.utils import process_utils
FAC... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
6f3d59a5ac32817a6c36952aa29e3cdf020c6b25 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02687/s942211700.py | 9fe247fc4e86e7d6a02581a8de06497d47b904f9 | [] | 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 | 60 | py | s = {input()}
test = {'ABC', 'ARC'}
print(list(test - s)[0]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
bfe2741feb16a2c462c0fd4040ed8d43e1017389 | c5c56d7c14b4518e53bcde2527b9cc6e53a7e1b9 | /doctests/yatzy.py | 6dc991e1845f9366663dfba8bb5396adf434c97b | [] | no_license | lancelote/pluralsight-unit-testing-python | 0402a39e3800eec49f2be529e684d028689d3b47 | fd5ce8264bc95ed66109c4fa575a177248c3d49a | refs/heads/master | 2021-01-10T08:06:39.605195 | 2016-03-23T08:15:25 | 2016-03-23T08:15:25 | 51,952,064 | 4 | 6 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | # coding=utf-8
""""
Yatzy Game
"""
from operator import itemgetter
def dice_counts(dice):
"""Make a dictionary of how many of each value are in the dice
Args:
dice (lst): A sorted list of 5 integers indicating the dice rolled
Returns:
dict: How many of each value are in the dice
E... | [
"karateev.pavel@ya.ru"
] | karateev.pavel@ya.ru |
c37d59611b5baee508727e5a3157ac82893f1bf2 | 54053da876c54cebf241ff74360a71bef44e030c | /django/agecalculator/manage.py | ed85fc9969a825aba7eb861b88569fd28ebe7ac5 | [] | no_license | neeteliz/luminarpython1 | 15cd4e169d9209a1ceea425000c7621e0dcfb9f5 | 9187a3c6a1cde5a57aa62a7b56f53e37361e72aa | refs/heads/master | 2020-12-08T11:40:32.573020 | 2020-02-12T06:02:50 | 2020-02-12T06:02:50 | 232,972,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "agecalculator.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django... | [
"jaseentha1997@gmail.com"
] | jaseentha1997@gmail.com |
22f25d5fd6e16c9f624041b28bb63a5c58cbb490 | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba0892.pngMap.py | d050ebdbdb8e5564a858cf28c735506b3aed9f60 | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba0892.pngMap = [
'11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111',
'11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111',
'1111111111111111111111111111111111111... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
91b0db98ecd89c19b85d3d89b875b8fb59e63615 | d110546d747d7e3865ce5742d5fca09f404623c0 | /tests/pytests/unit/modules/test_devmap.py | f7fc9f09ea1f41f68a666b5c0b0b0a4431769644 | [
"Apache-2.0",
"MIT",
"BSD-2-Clause"
] | permissive | saltstack/salt | 354fc86a7be1f69514b3dd3b2edb9e6f66844c1d | 1ef90cbdc7203f97775edb7666db86a41eb9fc15 | refs/heads/master | 2023-07-19T20:56:20.210556 | 2023-06-29T23:12:28 | 2023-07-19T11:47:47 | 1,390,248 | 11,026 | 6,296 | Apache-2.0 | 2023-09-14T20:45:37 | 2011-02-20T20:16:56 | Python | UTF-8 | Python | false | false | 991 | py | """
:codeauthor: Rupesh Tare <rupesht@saltstack.com>
"""
import os.path
import pytest
import salt.modules.devmap as devmap
from tests.support.mock import MagicMock, patch
@pytest.fixture
def configure_loader_modules():
return {devmap: {}}
def test_multipath_list():
"""
Test for Device-Mapper Mul... | [
"mwilhite@vmware.com"
] | mwilhite@vmware.com |
db3caed3bea7b8e75f04ec4721bc0ebd0e3624b1 | ede96590eee4880ff83d1f1d8db5229e92c6e919 | /leasing/metadata.py | 0639d907861c764c94129916cc3f6a2315f07bc7 | [
"MIT"
] | permissive | igordavydsson/mvj | a4c5b39e7be9f95e15a2e906ad61b98611998063 | b467c6229f9d458d56b66f628b0841adb67a2970 | refs/heads/master | 2020-04-22T20:42:06.650182 | 2019-02-12T13:50:57 | 2019-02-12T13:50:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | from django.utils.encoding import force_text
from django.utils.translation import ugettext_lazy as _
from enumfields.drf import EnumField
from rest_framework.fields import ChoiceField, DecimalField
from rest_framework.metadata import SimpleMetadata
from rest_framework.relations import PrimaryKeyRelatedField
from field... | [
"mikko.keskinen@anders.fi"
] | mikko.keskinen@anders.fi |
471b5a634eac53812dbe5e6260c757c693f8a688 | 4f00c6a08db5755b294bd519b9377866f5ff6c19 | /src/tests/google/net/proto2/python/internal/python_message.py | 557dfc1d9d0b1bac8d18ec77d1eb4182d51becdc | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | cooljeanius/cauliflowervest | 02035a8455b1dde469ebfd0b202c02456820a679 | a9bc209b610a927083bf16274d8451c6c45227bf | refs/heads/main | 2022-12-24T15:28:30.616604 | 2020-09-25T23:55:15 | 2020-09-25T23:55:15 | 303,812,548 | 1 | 0 | Apache-2.0 | 2023-09-04T16:48:46 | 2020-10-13T19:46:58 | Python | UTF-8 | Python | false | false | 32,904 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"egall@gwmail.gwu.edu"
] | egall@gwmail.gwu.edu |
66228a98b7aef124fd015c3823c8dd4f0b4d939d | a34a6861adabdffba0dec1bf9ba2d6b48c4564cb | /model.py | db2d48ca5676c1d6378ff82589047949cbfd1179 | [] | no_license | AotY/gumbel_softx_vae | d4095212117cdbdd71434fd47f51ae0aef42869f | f345efe797fb9adc00f5d4e288da80102f23850e | refs/heads/master | 2020-04-02T03:31:28.336284 | 2018-10-21T05:11:36 | 2018-10-21T05:11:36 | 153,970,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,875 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright © 2018 LeonTao
#
# Distributed under terms of the MIT license.
"""
"""
import torch
import torch.nn as nn
import torch.funtional as F
from gumbel_softmax import GumbelSoftmax
class GumbelVAE(nn.Module):
def __init__(self,
input_size=7... | [
"694731929@qq.com"
] | 694731929@qq.com |
4370fadd7890d92918d28af2040293ff1d87db32 | 0c0a6a41b5bb15e74f2e938218a971d6036dfd0d | /drf26/manage.py | 15cab87dfcd5367687a68ba0fa354a330b9f5615 | [] | no_license | kamal0072/API-s-based-on-drf-and-python | 54067cd1b364a50ace2c3f4b35cccaafc977d39f | b31299ff2bc32f836c85f402dbe2cfa34f34dd69 | refs/heads/master | 2023-03-25T16:51:36.511505 | 2021-03-24T16:27:46 | 2021-03-24T16:27:46 | 351,147,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'drf26.settings')
try:
from django.core.management import execute_from_command_line
except Import... | [
"hasan.kamaal0072@gmail.com"
] | hasan.kamaal0072@gmail.com |
393e6e059bafb801328b3a9ff0a87ac4bfd2eba2 | e92a3d0fb77120be99de6040cb6cd34eda0a95f4 | /Работа с фнукциями, система модулей/code/all_function_6.py | 1640864694684c8fd29dc41e4038b8f29151ff46 | [] | no_license | Python18Academy/python_first_level | 495f85631f5afc737aa156ef8ca0ea307340c322 | 9ce490da3108474b135a17086f4d11f2a3bbbe55 | refs/heads/master | 2023-09-04T17:00:36.920987 | 2021-03-31T18:44:37 | 2021-03-31T18:44:37 | 331,934,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from pirog import *
make_pirog('большой', 7)
make_pirog('маленький', 3) | [
"isakura313@gmail.com"
] | isakura313@gmail.com |
c4bc04bf5d469f3e5315f2941b33cfd2a704a7ed | 35ab93904c03c1494b470fe60ff17a6e3b8858e4 | /tests/mocks/committees.py | 56d14dbb8a5c2c603ea525703c8a13ac295bf0d4 | [
"MIT"
] | permissive | alefbt/knesset-data-pipelines | cb6220fc96c95f50925e4b99d8682760729cf067 | ed743fb4c84ce9e9ae0b935d686d05673d868416 | refs/heads/master | 2021-06-22T20:06:17.254073 | 2017-08-13T17:08:40 | 2017-08-13T17:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,195 | py | from datapackage_pipelines_knesset.committees.processors.download_committee_meeting_protocols import DownloadCommitteeMeetingProtocolsProcessor
from datapackage_pipelines_knesset.committees.processors.parse_committee_meeting_protocols import ParseCommitteeMeetingProtocolsProcessor
from datapackage_pipelines_knesset.com... | [
"ori@uumpa.com"
] | ori@uumpa.com |
5b8612f3e472db95cd9fdaa093ba14d6411ec101 | dd89a85bbefa12a6c8e8b66ffc84c08767f0e841 | /backend/task_profile/migrations/0001_initial.py | c7740497962e5be06a671658b9c15cad0b155cb6 | [] | no_license | crowdbotics-apps/sample-27023 | ac5f358cba9432b02080d3f3177efd23d35a08ed | e2e1f0d918e6cc47a87bfd7f318f1b6797f19d2d | refs/heads/master | 2023-04-30T14:24:59.449141 | 2021-05-21T03:01:21 | 2021-05-21T03:01:21 | 369,397,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | # Generated by Django 2.2.20 on 2021-05-21 03:01
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
op... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
29c050fb32b9bd65213c7fe6ed14f05bcdb546d8 | 4914e1e18cabd3db104386b13a48e3371f6c4d25 | /tov/NM_expansion.py | 3baaa5e68ef7945ac5e87b48e503e2f26043444a | [] | no_license | sotzee/ns | 592b21c013657ca202ab1138d92c32960d7e2170 | 70faa8e97560ec4072e5f0f697e3f2471f1303f7 | refs/heads/master | 2021-06-19T15:51:03.271980 | 2019-06-10T14:16:21 | 2019-06-10T14:16:21 | 115,557,527 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,016 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 4 17:36:17 2018
@author: sotzee
"""
from scipy.misc import derivative
from scipy.constants import c,G,e
from scipy.interpolate import interp1d
from unitconvert import toMev4#,toMevfm
import numpy as np
import scipy.optimize as opt
#import matplotl... | [
"tianqi.zhao@stonybrook.edu"
] | tianqi.zhao@stonybrook.edu |
6299b8252a37bfdcec01408fc9c1f999e384a38e | 27fc04a95b0d268adef4d4497c27ea9ae295d8a4 | /ch09/6.sub.py | 5129aa1ce0d9395a17421f1d77d219755a2a58f0 | [] | no_license | s-kyum/Python | 2b35b333557db0698a3fd305d550baaa5304f206 | e5b31036acd2bfb79f98ff02d59096a2429eb41f | refs/heads/master | 2023-07-09T18:45:26.179057 | 2021-08-23T03:07:57 | 2021-08-23T03:07:57 | 378,803,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | import re
p = re.compile('blue|red')
s= p.sub('A', 'blue socks and red shoes') #sub() - B를 A로 변경
print(s) | [
"s-kyum@naver.com"
] | s-kyum@naver.com |
aae4b4bc0babf621630c5ce16a27e2c6b8abf57a | e8a48749014f372633de65d79bfa26a3ad743d89 | /src/transformers/models/vision_encoder_decoder/modeling_tf_vision_encoder_decoder.py | ba65525ae00b125084e843d2eec2fea2a3ed915e | [
"Apache-2.0"
] | permissive | pvcastro/pytorch-pretrained-BERT | 183b7291972c8d8c66c995647df66c1fe439a763 | 49cd736a288a315d741e5c337790effa4c9fa689 | refs/heads/master | 2022-08-19T08:55:16.332585 | 2022-06-30T16:11:08 | 2022-06-30T16:11:08 | 168,367,637 | 1 | 0 | Apache-2.0 | 2019-01-30T15:39:42 | 2019-01-30T15:39:41 | null | UTF-8 | Python | false | false | 37,964 | py | # coding=utf-8
# Copyright 2022 HuggingFace Inc. team.
#
# 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... | [
"noreply@github.com"
] | pvcastro.noreply@github.com |
f8b2e6eb000e9bb4ab907381ef8afbef0d9ae96e | 453df013de5dc74291db65436011b661d969e4b6 | /soccer/gameplay2/plays/restarts/kick_penalty.py | 3476f67818ae84d74caf1477ebca2fda655fab5d | [] | no_license | david2194/robocup-software | 3f04eb7de4b84cafdab1a956df7cc48c3d3d4604 | 6f98c38ddb129ca49be357fc230990c16eadf9d4 | refs/heads/master | 2021-01-17T21:39:47.832797 | 2014-07-15T01:31:51 | 2014-07-15T01:31:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | import play
import behavior
import robocup
import main
import tactics.line_up
import tactics.penalty
# one robot kicks the ball, the others just line up and wait
class KickPenalty(play.Play):
def __init__(self):
super().__init__(continuous=True)
self.add_transition(behavior.Behavior.State.start,... | [
"justbuchanan@gmail.com"
] | justbuchanan@gmail.com |
0d6c12a20b87eb1a3983e038e756badb1c55e1c1 | 55c24645dd63a1c41037dcfb9fb45bc7bcdea4be | /venv/lib/python3.7/site-packages/sqlalchemy/__init__.py | a8209abb0731906a86b9be969f0404a04d25f2f6 | [] | no_license | abdullah-nawaz/flask-boilerplate | 7c42801a21ee3e6a647cc8a7d92e0285f8e86cad | 01bc7fe1140e8ec613de4a38546a07ddfbdbd254 | refs/heads/master | 2022-12-02T05:06:08.297759 | 2020-06-24T21:36:32 | 2020-06-24T21:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,659 | py | # sqlalchemy/__init__.py
# Copyright (C) 2005-2020 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from . import util as _util # noqa
from .inspection import inspect # noqa
f... | [
"muhammadabdullah@wanclouds.net"
] | muhammadabdullah@wanclouds.net |
6822f81d9f94b272ee76b01d65f926ac917a2f80 | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/test/test_runtime_raw_extension.py | ee67e7a373c69490627d5edc9482fa2e486fd0ae | [
"Apache-2.0",
"MIT"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 968 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import kube... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
50c91ad80d12b49cb8dd5fa2e3e23d87d64c3ce0 | 46667df8344db58698838d677bdae377b3c3c53c | /Data Manipulation with Pandas/Part 2/25.upsampling-data.py | 18d91a2eac217beb607b6e8648ee86d48cbb6b62 | [] | no_license | bennysetiawan/DQLab-Career-2021 | 278577cdddb3852c57f799cd1207b4ff45962960 | 0822d15e3b24cf0146c23456d4b65b0fb00a53fc | refs/heads/master | 2023-06-06T13:24:21.289929 | 2021-06-23T17:09:14 | 2021-06-23T17:09:14 | 379,657,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import pandas as pd
# Load dataset https://dqlab-dataset.s3-ap-southeast-1.amazonaws.com/LO4/global_air_quality_4000rows.csv
gaq = pd.read_csv('https://dqlab-dataset.s3-ap-southeast-1.amazonaws.com/LO4/global_air_quality_4000rows.csv')
gaq['timestamp'] = pd.to_datetime(gaq['timestamp'])
gaq = gaq.set_index('timestamp')... | [
"setiawanb25@gmail.com"
] | setiawanb25@gmail.com |
f04775a90eb47f46df8bc83f530d0483eb919a60 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/tenth/rank_1ay7_O.py | 0e06f6a99063b4335484694384ed33130ec83f0a | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
556405e629f0f2151963bc39b08f1197eac1b386 | 78b160d8131f3c4b7aef0d051b040825a9c50e0d | /algoexpert/easy/palindromeCheck.py | 67e4ca78dd3bd4d9c8bce9e602b51280a4a5ece4 | [
"MIT"
] | permissive | ardakkk/Algorithms-and-Data-Structures | 744f8c9ffb233b95040e5bdcbddb9f5d2ff7a5ba | c428bb0bd7eeb6c34448630f88f13e1329b54636 | refs/heads/master | 2021-07-08T22:40:40.361282 | 2020-07-20T10:39:58 | 2020-07-20T10:39:58 | 156,005,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | # Time: O(n^2) | Space: O(n)
# def isPalindrome(string):
# reversedString = ""
#
# for i in reversed(range(len(string))):
# reversedString += string[i]
# return string == reversedString
# Time: O(n) | Space: O(n)
# def isPlaindrome(string):
# reversedChars = []
#
# for i in reversed(range(l... | [
"ardakfuse@gmail.com"
] | ardakfuse@gmail.com |
85848666ff2722fdc295c2a9d73fb1963e6f41d4 | 15b12d69ac3123d1562986970ce01d7a47d171de | /typings/nltk/translate/meteor_score.pyi | 1cde9aead19696ebb82604513df27febecc0a9d7 | [
"Apache-2.0"
] | permissive | simplymanas/python-learning | 9b67b5a7acfb3a7c2455a7d1fc66203a2b419c37 | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | refs/heads/master | 2021-07-11T06:40:24.803589 | 2021-06-20T12:06:02 | 2021-06-20T12:06:02 | 241,769,614 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,369 | pyi | """
This type stub file was generated by pyright.
"""
def _generate_enums(hypothesis, reference, preprocess=...):
"""
Takes in string inputs for hypothesis and reference and returns
enumerated word lists for each of them
:param hypothesis: hypothesis string
:type hypothesis: str
:param refere... | [
"manas.dash@tesco.com"
] | manas.dash@tesco.com |
e73bc712fb8c9aaa9b6e279837ea9cba1a4624f9 | 09dd58f46b1e914278067a69142230c7af0165c2 | /blackmamba/lib/flake8/options/aggregator.py | 5b8ab9c33b475d3ad576e839636fd2baf3f73f86 | [
"MIT"
] | permissive | zrzka/blackmamba | 4e70262fbe3702553bf5d285a81b33eb6b3025ea | b298bc5d59e5aea9d494282910faf522c08ebba9 | refs/heads/master | 2021-01-01T18:43:19.490953 | 2020-01-20T08:26:33 | 2020-01-20T08:26:33 | 98,410,391 | 72 | 12 | MIT | 2020-01-20T08:26:35 | 2017-07-26T10:21:15 | Python | UTF-8 | Python | false | false | 3,255 | py | """Aggregation function for CLI specified options and config file options.
This holds the logic that uses the collected and merged config files and
applies the user-specified command-line configuration on top of it.
"""
import logging
from flake8.options import config
LOG = logging.getLogger(__name__)
def aggregat... | [
"rvojta@me.com"
] | rvojta@me.com |
6d41bc6c5b7e28373bc88fa9ad52239f056dbc2c | 36821b9fcdbefe88a60f584e7d39695ca5fe6177 | /codeforces/1453/A.py | a93ebbcf9a29319282fbae77a215b4aaceb35e41 | [] | no_license | shubham409/CodeSubmits | 231fc40a64ad97323e558ba2fa252c62f34c7809 | 5da4d9cc87d4ac8f54175723c2acf77fc5784f21 | refs/heads/master | 2023-06-26T06:17:30.255973 | 2021-06-03T18:24:00 | 2021-07-29T20:35:01 | 329,399,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | def fun(ls, lt):
st = set(ls)
count = 0
for i in lt:
if(i in st):
count += 1
print(count)
T = int(input())
for i in range(T):
n, k = list(map(int, input().split()))
ls = list(map(int, input().split()))
lt = list(map(int, input().split()))
fun(ls, lt) | [
"sm091274@gmail.com"
] | sm091274@gmail.com |
58789926c4ec41d87ecb91c85728560a035ea6c8 | 2c3e2d7da1e62bd75229fad0c8e18431a420b8a1 | /tidy_headers/_parse_array.py | ac1f4780b57b533b14d09b060e35fe2b661aa445 | [
"MIT"
] | permissive | ksunden/tidy_headers | 9526c3b522257f9dec4729fcdbcc09e7db68b6b3 | 060942204b5bb87a8b209e81e1b64fd3cbb0691f | refs/heads/master | 2020-03-13T02:55:24.394455 | 2017-11-13T03:08:06 | 2017-11-13T03:08:06 | 130,934,077 | 0 | 0 | null | 2018-04-25T01:34:24 | 2018-04-25T01:34:24 | null | UTF-8 | Python | false | false | 2,092 | py | """Parse array."""
# --- import -------------------------------------------------------------------------------------
import re
import numpy as np
from ._utilities import flatten_list
# --- parse --------------------------------------------------------------------------------------
def array2string(array, sep... | [
"blaise@untzag.com"
] | blaise@untzag.com |
d8bb8e646968f06a0614abc39cd6ba7e62e1df63 | ddd35c693194aefb9c009fe6b88c52de7fa7c444 | /Live 10.1.18/VCM600/VCM600.py | d7805481023c57c96160c4fb4feb1534cdf912e5 | [] | no_license | notelba/midi-remote-scripts | 819372d9c22573877c7912091bd8359fdd42585d | e3ec6846470eed7da8a4d4f78562ed49dc00727b | refs/heads/main | 2022-07-30T00:18:33.296376 | 2020-10-04T00:00:12 | 2020-10-04T00:00:12 | 301,003,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,780 | py | # uncompyle6 version 3.7.4
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.8.5 (default, Aug 12 2020, 00:00:00)
# [GCC 10.2.1 20200723 (Red Hat 10.2.1-1)]
# Embedded file name: c:\Jenkins\live\output\Live\win_64_static\Release\python-bundle\MIDI Remote Scripts\VCM600\VCM600.py
# Compiled at: 2020-07-14 15:33... | [
"notelba@example.com"
] | notelba@example.com |
c63fca29896bfff9b615895fc46e9674f2c87b44 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_292/ch79_2020_04_07_15_56_18_513329.py | d012de9b08ecbc09c2525d1628c5a9a84c203598 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | def monta_dicionario(l1,l2):
dicionario = {}
for i in range(len(l1)):
dicionario[l1[i]]=l2[i]
return dicionario | [
"you@example.com"
] | you@example.com |
08959099af5bd095a8dc537ede88a16da5dbe231 | 797e83cd492c22c8b7e456b76ae9efb45e102e30 | /chapter1_A_Sneak_Preview/Step2/dump_db_pickle.py | 2efbafd3db26064e7f0fb1eacb1af56595a51304 | [] | no_license | skyaiolos/ProgrammingPython4th | 013e2c831a6e7836826369d55aa9435fe91c2026 | a6a98077440f5818fb0bd430a8f9a5d8bf0ce6d7 | refs/heads/master | 2021-01-23T11:20:38.292728 | 2017-07-20T03:22:59 | 2017-07-20T03:22:59 | 93,130,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | import pickle
# dbfile = open('people-pickle', 'rb') # use binary mode files in 3.X
with open('people-pickle', 'rb') as f:
db = pickle.load(f)
for key in db:
print(key, '=>\n ', db[key])
print(db['sue']['name'])
# bob =>
# {'name': 'Bob Smith', 'age': 42, 'pay': 30000, 'job': 'dev'}
# sue =>
# {'name':... | [
"skyaiolos@aliyun.com"
] | skyaiolos@aliyun.com |
00c0734af882609c9d0bb4bb27ff77f501034d52 | cdbaec17aa8411a1455b42520154cc9f30da3550 | /Leetcode 5/Pacific Atlantic Water Flow 2.py | 5ad9ed017d084ffd7100e845cc4497821387d475 | [] | no_license | PiyushChaturvedii/My-Leetcode-Solutions-Python- | bad986978a7e72a3fda59b652cda79802377ab2f | 86138195f6f343f0acc97da286f4f4811a0d0e48 | refs/heads/master | 2021-10-09T20:19:11.186191 | 2019-01-03T05:15:33 | 2019-01-03T05:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | class Solution(object):
def pacificAtlantic(self, matrix):
"""
:type matrix: List[List[int]]
:rtype: List[List[int]]
"""
m = len(matrix)
n = len(matrix[0]) if m else 0
if m * n == 0: return []
topEdge = [(0, y) for y in range(n)]
left... | [
"noreply@github.com"
] | PiyushChaturvedii.noreply@github.com |
1fbe035cdeff7017e360ea5dbf43f22876d2e3a9 | af7df9d77a2545b54d8cd03e7f4633dce6125f4a | /ch08/viewer-pil.py | a954ddc59ca3ec169dfbc48de4909a0fb22381eb | [] | no_license | socrates77-sh/PP4E | 71e6522ea2e7cfd0c68c1e06ceb4d0716cc0f0bd | c92e69aea50262bfd63e95467ae4baf7cdc2f22f | refs/heads/master | 2020-05-29T08:46:47.380002 | 2018-11-16T10:38:44 | 2018-11-16T10:38:44 | 69,466,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | """
show one image with PIL photo replacement object
handles many more image types; install PIL first: placed in Lib\site-packages
"""
import os
import sys
from tkinter import *
from PIL.ImageTk import PhotoImage # <== use PIL replacement class
# rest of code unchanged
imgdir = 'E:\\workspace\\PP4E-Examples-1.2\... | [
"zhwenrong@sina.com"
] | zhwenrong@sina.com |
4b1f81a7f96f17aceb49489dc87ce9196f26aebb | 8f24e443e42315a81028b648e753c50967c51c78 | /rllib/models/jax/jax_action_dist.py | 864cd065cee6c7efd858dbb23cc9e1fbc01c5e88 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | simon-mo/ray | d07efdada8d05c6e10417f96e8dfc35f9ad33397 | 1e42e6cd15e2fb96c217cba8484e59ed0ef4b0c8 | refs/heads/master | 2023-03-06T00:09:35.758834 | 2022-12-23T18:46:48 | 2022-12-23T18:46:48 | 122,156,396 | 4 | 2 | Apache-2.0 | 2023-03-04T08:56:56 | 2018-02-20T04:47:06 | Python | UTF-8 | Python | false | false | 2,423 | py | import time
from ray.rllib.models.action_dist import ActionDistribution
from ray.rllib.models.modelv2 import ModelV2
from ray.rllib.utils.annotations import override
from ray.rllib.utils.framework import try_import_jax, try_import_tfp
from ray.rllib.utils.typing import TensorType, List
jax, flax = try_import_jax()
tf... | [
"noreply@github.com"
] | simon-mo.noreply@github.com |
1578d7b129691847b352ad44b707bf582bf35fbd | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.TOP/Sun-ExtA_12/pdf_to_json_test_Latn.TOP_Sun-ExtA_12.py | e426ed44c203532496b95fe8493f518f68f56d58 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.TOP/Sun-ExtA_12/udhr_Latn.TOP_Sun-ExtA_12.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
4745b8d827dfe75a35c8fa2d314cc3b102d77917 | 8edd8241d25612081ec6ae0b83064c25e372f09a | /backend/test_r1_dev_9459/settings.py | 540afcd60e77936a6747c534bc24915f4302c98d | [] | no_license | crowdbotics-apps/test-r1-dev-9459 | 89e7c07601c3b99b22bb3af69b05adeee5fd7eb1 | d68ea32a223823a1f7822ad65b63490e09c13bac | refs/heads/master | 2022-12-14T20:55:42.958720 | 2020-08-27T13:35:57 | 2020-08-27T13:35:57 | 290,593,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,836 | py | """
Django settings for test_r1_dev_9459 project.
Generated by 'django-admin startproject' using Django 2.2.2.
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/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
9e8c98d739ff55d5f3cdf1c3ed99ca911570979e | 7b750c5c9df2fb05e92b16a43767c444404de7ae | /src/leetcode/python3/leetcode5.py | 857e394520e476e114ce1ce401e547ae69f40be6 | [] | no_license | renaissance-codes/leetcode | a68c0203fe4f006fa250122614079adfe6582d78 | de6db120a1e709809d26e3e317c66612e681fb70 | refs/heads/master | 2022-08-18T15:05:19.622014 | 2022-08-05T03:34:01 | 2022-08-05T03:34:01 | 200,180,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
寻找最长回文字符串
"""
# 比较朴素的思路,使用额外空间存储短字符串是否是回文字符串,时间5968ms, 效率不够高
class Solution:
def longestPalindrome(self, s: str) -> str:
if len(s) < 2:
return s
s_metric = [[1 if i == j else 0 for j in range(len(s))] for i in range(len(s))]
... | [
"jack.li@eisoo.com"
] | jack.li@eisoo.com |
99925636614be0b001f3dc702e26454b535d8fdd | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /nWtgKSNGQ3sB52rQ8_14.py | 20a0ee77246aa2d2795342055f6e8c705f8ad112 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py |
def evenly_divisible(a, b, c):
sum = 0
for i in range(a,b+1):
if i % c == 0:
sum = sum + i
return sum
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b7b2f98d94eecd10c62d5ce1a1476589118c05b1 | c36679186f669c6e3bd1c106c96d4a17be1f5ab1 | /Practice_Anisul/290.py | c2e4ee4e68883a91ecbbd0a0b95aa42bad8a765f | [] | no_license | touhiduzzaman-tuhin/python-code-university-life | 60a3d671b200a6f5222c6d176c13c5f20f013509 | 6d2e3d90d430faa5c83fe79e7fb1ebe516994762 | refs/heads/master | 2023-03-22T15:18:10.636203 | 2021-03-06T18:52:04 | 2021-03-06T18:52:04 | 332,467,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import re
p = r"a{1,3}$"
if re.match(p, "aaa"):
print("Match")
else:
print("Not Match") | [
"touhiduzzamantuhin95@gmail.com"
] | touhiduzzamantuhin95@gmail.com |
5f518d5a2d3485884b423ab1d9f6a7b2e6acd87b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03200/s568843924.py | 40d7ef36da7f147dcae37fe4fd5f54e43d59e969 | [] | 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 | 261 | py | s = list(input())
len_s = len(s)
len_b = s.count('B')
b_index_list = []
for i in range(len_s):
if s[i] == 'B':
b_index_list.append(i)
b_index_list.reverse()
l0 = len_s - 1
cnt = 0
for b in b_index_list:
cnt += l0 - b
l0 -= 1
print(cnt)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7dd7415ee5474dea20b15224b3b981dc2bb0b6cc | 33f32d78087491e989289c46e5d2df5400e23946 | /leetcode/Unsorted_Algorthm_Problems/Split_a_String_in_Balanced_Strings.py | f69cac1b2923e15b2c29e2164c5e53af3d96043f | [] | no_license | xulleon/algorithm | 1b421989423640a44339e6edb21c054b6eb47a30 | b1f93854006a9b1e1afa4aadf80006551d492f8a | refs/heads/master | 2022-10-08T19:54:18.123628 | 2022-09-29T05:05:23 | 2022-09-29T05:05:23 | 146,042,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # https://leetcode.com/problems/split-a-string-in-balanced-strings/
class Solution:
def balancedStringSplit(self, s: str) -> int:
# variable labled assume start with R. RLLLLRRRLR
count, l, r, = 0, 0, 0
for char in s:
if char == 'R':
r += 1
else:
... | [
"leonxu@yahoo.com"
] | leonxu@yahoo.com |
e17020abef3c21e15e8849965d0e461d1633248a | ffcd795f30483a19d2717f08b1aaf59a7fd4fd7e | /Math Quiz.py | 6f82a81c20f6e0ab747e6c4a7bd8755010a2179d | [] | no_license | Botany-Downs-Secondary-College/mathsquiz-simonbargh | 5791b4810790128878e7cd28678c3d4af3beb07d | d5aba85e9d522248827301130976fe5d5a45e11a | refs/heads/main | 2023-03-13T18:05:25.291569 | 2021-02-22T21:28:58 | 2021-02-22T21:28:58 | 337,539,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,402 | py | from tkinter import *
from tkinter import ttk
import random
import time
class Welcome:
def __init__(self, parent):
def Questions():
# Checking whether the user's entry details meet the requirements
'''def show_questions():
... | [
"noreply@github.com"
] | Botany-Downs-Secondary-College.noreply@github.com |
f81c28130549573707b4356a568985697bca6482 | 98df3e98230d74d036cb86b6a7fa7c1b83444f67 | /vertical_cell_decomposition.py | 697678b64e95a091e3ae3b7bc5d5cd21cb10961a | [] | no_license | lilyhoanghg/path-planning | c4e63182a108a817ef88ca257e62eb1431b1f464 | 191634124cde8f2f44db9bcbd0b73257562255dc | refs/heads/master | 2021-08-18T21:53:28.421037 | 2017-11-24T01:53:54 | 2017-11-24T01:53:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,833 | py | # Find a path avoiding obstacles using Vertical Cell Decomposition
# Author -- Shikhar Dev Gupta
import sys
from helpers.graph import *
from helpers.geometry import *;
import matplotlib.pyplot as plt
# Check for empty lines
file_handler = open("input_file","r");
raw_data = file_handler.read();
raw_data = r... | [
"="
] | = |
8221804a8b71f27558952a6fff2ea180d901387e | 0e1a0329e1b96405d3ba8426fd4f935aa4d8b04b | /scraper/merge.py | 15c94f3e038d5c181e3f5898d9c5efcb34e92473 | [] | no_license | ugik/Blitz | 6e3623a4a03309e33dcc0b312800e8cadc26d28c | 740f65ecaab86567df31d6a0055867be193afc3d | refs/heads/master | 2021-05-03T20:15:20.516014 | 2015-03-11T12:33:34 | 2015-03-11T12:33:34 | 25,015,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,418 | py | import xlrd, xlwt
import glob, os.path
def merge_xls (in_dir="./", out_file="merged_output.xls"):
xls_files = glob.glob(in_dir + "*.xls")
sheet_names = [os.path.basename(v)[:-4] for v in xls_files]
sheet_excl = [os.path.basename(v)[:-4] for v in xls_files if
len(os.path.basename(v)[:-4]) > 29]
merg... | [
"georgek@gmail.com"
] | georgek@gmail.com |
65c4b8431162da40aeb8bb0e06f47b86611eb1cd | 4855b0f5ccab56ca0bd6bd47c1b4147403263c5d | /musicautobot/multitask_transformer/learner.py | c17347153ad3f95764d05e6ae6dff7aca1e0eca3 | [] | no_license | David-D-Chen/musicautobot | 6c88ff6d52ea7b0d777b71a59dff88fc8a21bfa7 | fd8145a20a070ec3aa20f8cc74fc38c0b6896a53 | refs/heads/master | 2020-07-13T01:58:50.092878 | 2019-08-28T17:29:59 | 2019-08-28T17:29:59 | 204,963,031 | 0 | 0 | null | 2019-08-28T16:22:11 | 2019-08-28T15:22:11 | null | UTF-8 | Python | false | false | 13,689 | py | from fastai.basics import *
from ..vocab import *
from ..utils.top_k_top_p import top_k_top_p
from ..utils.midifile import is_empty_midi
from ..music_transformer.transform import *
from ..music_transformer.learner import filter_invalid_indexes
from .model import get_multitask_model
from .dataloader import *
def multit... | [
"andrew.t.shaw@gmail.com"
] | andrew.t.shaw@gmail.com |
518c06d15803865852c043709aede6d2df28e37c | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/image/python/ops/sparse_image_warp.py | c4801ca68f029d70be33f3ba6af51d4429f5fdd9 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 8,719 | py | # Copyright 2018 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... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.