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
20dd0349455e1e9388db2d86e19ca31baca89048
1a758ef862f733d98ddd8ebc8ade5cefd95c24f2
/coffees/migrations/0008_auto_20160814_0003.py
5e41ec9efc4be1c908ae538d5189a08874945ae6
[]
no_license
ajajul/ReactJS_Python
f116b35394666c5b3f2419eb5d8d7aeb077d4a24
08310d56fa88f326ddbfdd4b189f2a3a71f76d99
refs/heads/master
2020-03-19T03:16:57.510672
2018-06-01T10:36:36
2018-06-01T10:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('coffees', '0007_sharedcoffeesticker'), ] operations = [ migrations.AddField( model_name='coffeetype', ...
[ "web.expert@aol.com" ]
web.expert@aol.com
dc8f2cec24f68baa30d471ab0336fd32849e72b3
b3e3284f3d7b66f237e60fdfb1a37db706363139
/RST/app/ventas/migrations/0006_auto_20181115_1448.py
2c7d3cc5a4d2ca91049f8615f3723445a2e45792
[]
no_license
corporacionrst/administracion
4caf1545c313eb36408850bb4506bbd0bf43d6e6
7405442b4f14a589d75a5e04250be123403180ec
refs/heads/master
2020-04-11T00:04:06.017147
2018-12-11T21:46:49
2018-12-11T21:46:49
161,374,204
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
# Generated by Django 2.1.2 on 2018-11-15 14:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ventas', '0005_auto_20181114_2140'), ] operations = [ migrations.AlterField( model_name='orden'...
[ "admin@corporacionrst.com" ]
admin@corporacionrst.com
1bf5340bdc57b8bda96c0813f2160f22f82707cd
2827d7a837eb29c3cb07793ab6d3d5a753e18669
/alipay/aop/api/request/AlipayPointBalanceGetRequest.py
b91714684cda57c1edc1a80c68ee348fdaba1f8e
[ "Apache-2.0" ]
permissive
shaobenbin/alipay-sdk-python
22e809b8f5096bec57d2bb25414f64bdc87fa8b3
5232ad74dff2e8a6e0e7646ab3318feefa07a37d
refs/heads/master
2020-03-21T04:51:39.935692
2018-06-21T07:03:31
2018-06-21T07:03:31
138,131,022
0
0
null
2018-06-21T06:50:24
2018-06-21T06:50:24
null
UTF-8
Python
false
false
3,164
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayPointBalanceGetRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version = "1.0" ...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
5f2dc18f4472e07b921226d771f81105233c8771
399f325971dac17a2748acb336e7f44c345d0abb
/astrolab/model/labels.py
746d747514e3c88cbfebbce038f2607e69d78f8e
[]
no_license
nasa-nccs-cds/astrolab2
230fc5b036c1dd07e711514079aad7b7cdc0233d
a82b9a4e9d2bfce99832db74680818fea5749218
refs/heads/main
2023-01-11T08:14:48.065441
2020-11-17T22:50:29
2020-11-17T22:50:29
306,711,927
0
0
null
null
null
null
UTF-8
Python
false
false
8,780
py
from collections import OrderedDict from typing import List, Union, Dict, Callable, Tuple, Optional, Any import collections.abc from functools import partial import ipywidgets as ipw from ..graph.base import ActivationFlow import traitlets.config as tlc from astrolab.model.base import AstroConfigurable, Marker import x...
[ "thomas.maxwell@nasa.gov" ]
thomas.maxwell@nasa.gov
892133e6a10f09894aeb9a8d4cde9b7b9621cc7d
0be2afad29a71785d64a0c493fcd2cec803464d8
/train_visualization/plot.py
5b32d22cd95c63aa4fffc276e43fc9384d490180
[ "Apache-2.0" ]
permissive
hereismari/ajna
7bf9fe58a4b64bc34b953e38936e23992d5e1f49
e5db9a1cde88aba20e7b5738d8c434b9086721d5
refs/heads/master
2021-09-20T14:14:56.677711
2018-08-10T16:12:13
2018-08-10T16:12:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,723
py
import matplotlib.pyplot as plt import csv import os def read_and_preprocess_data(filename): # Lê arquivo e salva csv como dicionário res = {} if os.path.exists(filename): with open(filename) as csv_file: csv_reader = csv.DictReader(csv_file) for row in csv_reader: ...
[ "mariannelinharesm@gmail.com" ]
mariannelinharesm@gmail.com
c028dabd00a3e70a7e469bc1878d1f5f8573c78e
a0484a637cf60c223dc846440e11e345541680a5
/src/kusto/azext_kusto/vendored_sdks/kusto/operations/_data_connection_operations.py
d8ba89afeffbd6aaa0ba5e00bd4acd71d8820992
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
TylerLeonhardt/azure-cli-extensions
c4caacb38d81e3dc84a4483eb4be380f0e3ddc91
f3bdbd75cc39c2a302d1184c9e1e1fa5b368378d
refs/heads/master
2022-12-25T07:05:51.282034
2020-08-28T13:19:09
2020-08-28T13:19:09
291,105,411
1
0
MIT
2020-08-28T17:22:41
2020-08-28T17:22:40
null
UTF-8
Python
false
false
37,121
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" ]
TylerLeonhardt.noreply@github.com
a0804d01fc82def3e989bd0bba3455642945a6d2
2166064a85df8bdf1c780ae2eda1b372bfa078ed
/face_client/face_client.py
ae9a2812e198e5263ff55f975abc762b7fa0afa2
[ "MIT" ]
permissive
CosmoGlenns/automaticdj
67016b4804d1adf42dd7905375650af0e4bb724f
3880c175bc09c17ed9f71ba9902e348a00bb64ef
refs/heads/master
2020-05-20T19:26:49.993705
2013-12-30T20:21:49
2013-12-30T20:21:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,305
py
# -*- coding: utf-8 -*- # # Name: face.com Python API client library # Description: face.com REST API Python client library. # # For more information about the API and the return values, # visit the official documentation at http://developers.face.com/docs/api/. # # Author: Tomaž Muraus (http://www.tomaz-muraus.info) #...
[ "gleitz@hunch.com" ]
gleitz@hunch.com
e61371dd76bda43a1630895f7d5de5b4dcc87d4d
c1bd12405d244c5924a4b069286cd9baf2c63895
/azure-mgmt-sql/azure/mgmt/sql/models/operation_display.py
a5b2f841200641e4d361e2bfe4953bfad84d2a10
[ "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
1,798
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 ...
[ "autorestci@microsoft.com" ]
autorestci@microsoft.com
6c5e15a223ab40fd0c865b6b2acf3b6f0832efc0
4b7791aa4a93ccfa6e2c3ffb10dfcbe11d042c66
/estudos/estudo_02.py
cf804e6be1490fbd787b503f0869c96b7be1f3df
[]
no_license
Dev33Renan/Python-Exercises
bbf895f241d4142a6172b911228227cd4a6fe6ab
ffc73bc0b912b41564034e7740ea29a9f5249553
refs/heads/main
2023-06-11T05:44:11.902322
2021-06-20T19:11:28
2021-06-20T19:11:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,049
py
frase = "O joão Foi andar ,de bicicleta." frase_02 = 'A maria não gosta de bicicleta' #seleção por posição (index) print(frase[5]) #seleção por intervalo (index e quantidade de casas) print(frase[2:6]) #seleção por intervalo (index , quantidade e passo) print(frase[5:1:-1]) #substituição por low case (letra minúscula )...
[ "hikarofcarvalho@gmail.com" ]
hikarofcarvalho@gmail.com
c4fc32732a38e01ea2ca2aacee54f77ae3b99850
2b791f6d4cf4b18fc8bcc2b6e3cb3a516c59077d
/test/examples/test_pysc2.py
2aa8a6b259f0b00abc9a8180e1b2168cc65e29f9
[ "MIT" ]
permissive
osu-xai/abp
9c99c66de1d9c91da360d133900e29e7b85d45d2
cd83eaa2810a1c5350c849303d61639576c0bb0d
refs/heads/master
2021-06-11T16:01:30.210471
2020-11-30T23:05:50
2020-11-30T23:05:50
155,762,226
0
1
MIT
2020-11-30T23:05:52
2018-11-01T19:01:12
Python
UTF-8
Python
false
false
584
py
import sys import unittest class PySC2Tests(unittest.TestCase): def test_pysc2_shards_dqn(self): sys.argv = ['', '--task', 'abp.examples.pysc2.collect_shards.dqn', '--folder', 'test/tasks/pysc2_collect_shards_dqn'] from abp.trainer.task_runner import main mai...
[ "nealla@lwneal.com" ]
nealla@lwneal.com
7f60604b39fc937cd4de9b6d0a1569ae01f700be
0f099ceacd4afabc92874dc9ab836c6baa4f0dbc
/mrbelvedereci/testresults/admin.py
25b2c02d8a522a2454a6c730c4181ffebf878eed
[ "BSD-3-Clause" ]
permissive
davidjray/mrbelvedereci
84d6c317a7d395602c421496d7dc6196f3b19258
a5cfebdad2fafff648f705785df95739023f2af8
refs/heads/master
2020-05-18T14:22:48.037304
2017-02-25T00:40:59
2017-02-25T00:40:59
84,244,028
0
0
null
2017-03-07T20:40:57
2017-03-07T20:40:57
null
UTF-8
Python
false
false
563
py
from django.contrib import admin from mrbelvedereci.testresults.models import TestResult from mrbelvedereci.testresults.models import TestMethod class TestResultAdmin(admin.ModelAdmin): list_display = ('build_flow', 'method', 'duration', 'outcome') list_filter = ('build_flow__build__repo', 'method', 'method__t...
[ "jlantz@salesforce.com" ]
jlantz@salesforce.com
111f2a2d1b3b762a31d45f54fa8a37bcc757338e
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/lib/python3.7/site-packages/astropy-4.0-py3.7-macosx-10.9-x86_64.egg/astropy/timeseries/periodograms/lombscargle/implementations/tests/test_utils.py
a0bb22fd6950e860070e9bbb8178f5ff5be32784
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
2,191
py
import pytest import numpy as np from numpy.testing import assert_allclose, assert_equal from astropy.timeseries.periodograms.lombscargle.implementations.utils import extirpolate, bitceil, trig_sum @pytest.mark.parametrize('N', 2 ** np.arange(1, 12)) @pytest.mark.parametrize('offset', [-1, 0, 1]) def test_bitceil(N...
[ "nicolas.holzschuch@inria.fr" ]
nicolas.holzschuch@inria.fr
d2da12a87c1b55b04a218cf8a15a54b23fea5b08
3d65a2d72e65083c752281368cf040ae977e4757
/generate_empty_data_directory.py
5537758e68a618c65078169d960cab67860cdd18
[]
no_license
florisvb/OdorAnalysis
6b4b2c32979b9139856aee20cc63c34cfe63819e
18beae8d3c6be271f171b1c36c9fd932a8a404ba
refs/heads/master
2020-06-03T14:48:34.962795
2012-10-23T22:28:21
2012-10-23T22:28:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
982
py
import sys, os from optparse import OptionParser def main(path, config): os.mkdir(os.path.join(path, config.data_path)) os.mkdir(os.path.join(path, config.raw_datasets_path)) os.mkdir(os.path.join(path, config.culled_datasets_path)) os.mkdir(os.path.join(path, config.h5_path)) os.mkdir(os.path.joi...
[ "florisvb@gmail.com" ]
florisvb@gmail.com
a5721a4ecf125350389de8fc1870448f3186c310
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/containerservice/v20200101/list_managed_cluster_access_profile.py
5a33bdd1c4b4c49b22b00ddb4f2856092048bf12
[ "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
4,186
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 __a...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
6649df6a8169655213193e4015de1facfed50fec
7357d367b0af4650ccc5b783b7a59090fdde47bb
/models/research/attention_ocr/python/metrics.py
83f67809c7f18bd28777139ee752b99c790da44b
[ "MIT" ]
permissive
BarracudaPff/code-golf-data-python
fb0cfc74d1777c4246d56a5db8525432bf37ab1a
42e8858c2ebc6a061012bcadb167d29cebb85c5e
refs/heads/main
2023-05-29T05:52:22.856551
2020-05-23T22:12:48
2020-05-23T22:12:48
378,832,634
0
0
null
null
null
null
UTF-8
Python
false
false
2,742
py
"""Quality metrics for the model.""" import tensorflow as tf def char_accuracy(predictions, targets, rej_char, streaming=False): """Computes character level accuracy. Both predictions and targets should have the same shape [batch_size x seq_length]. Args: predictions: predicted characters ids. targets: g...
[ "sokolov.yas@gmail.com" ]
sokolov.yas@gmail.com
89b7174617d0b48116861a28f2447630f2a8f87e
9e1b884b94a0570e0c0781a7f7023e8ec482b5b4
/codes/T20.py
3eed41f3258b1e41601825e791c60a4addaa61a0
[]
no_license
sunjunee/offer_book_python_codes
568579434d82a7231074e41c67476c3ab8b9f181
ecc852a5d38c8a02b9c2d0473065579363035f83
refs/heads/master
2020-03-12T09:49:40.587404
2018-06-10T13:55:24
2018-06-10T13:55:24
130,560,256
1
0
null
null
null
null
UTF-8
Python
false
false
1,321
py
# -*- coding: utf-8 -*- """ @ Author: Jun Sun {Python3} @ E-mail: sunjunee@qq.com @ Date: 2018-04-22 15:03:02 """ #表示数值的字符串:实现一个函数来判断一个字符串是否表示数值 #如+100, 5e2, -123, 3.1415, -1e-16 #{+-}{digits}.{digits}[eE]{+-}{digits} def judgeString(string): pA = pB = pC = True index, pA = getInteger(string, 0) ...
[ "sunjunee@qq.com" ]
sunjunee@qq.com
f8b441fb5a799a8054e3d99e1f9a9577ca133ded
bd87d8947878ccb2f5b720e70a22493b00868fd3
/fluent/11_interfaces/monkey_patching.py
376ef7d9da46e44a141c6e9d89cca318520fdec9
[]
no_license
damiansp/completePython
4cbf12ef682a1d4a5498f77e407dc02e44a7d7ac
3f5e2f14d79c93df5147b82d901190c054535158
refs/heads/master
2023-09-01T20:50:03.444440
2023-08-28T00:27:57
2023-08-28T00:27:57
99,197,610
0
1
null
null
null
null
UTF-8
Python
false
false
744
py
import collections from random import shuffle Card = collections.namedtuple('Card', ['rank', 'suit']) class FrenchDeck: ranks = [str(n) for n in range(2, 11)] + list('JQKA') suits = 'spades diamonds clubs hearts'.split() def __init__(self): self._cards = [Card(rank, suit) for suit in self.suits ...
[ "damiansp@gmail.com" ]
damiansp@gmail.com
99b46dc88fa2141bbc84b499ca4f5cd6a537b7f9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02576/s456985906.py
8c3a47e877dfd91f6009c8645fef18b303b19a4f
[]
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
206
py
import sys read = sys.stdin.read #readlines = sys.stdin.readlines from math import ceil def main(): n, x, t = map(int, input().split()) print(ceil(n / x) * t) if __name__ == '__main__': main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
cda854759b81092d95dc44d05842714eb9b494ba
e483b0515cca39f4ddac19645f03fc1695d1939f
/google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2.py
077aaca8546340153b855c91a6e7ebd3e2e0b8bb
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
BrunoWMello/google-ads-python
0af63d2ca273eee96efd8a33252d27112c049442
9b074a037d10f0c1208a00d5d41a8e5e25405f28
refs/heads/master
2020-05-27T04:37:47.669144
2019-05-24T17:07:31
2019-05-24T17:07:31
null
0
0
null
null
null
null
UTF-8
Python
false
true
4,249
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: google/ads/googleads_v1/proto/enums/product_bidding_category_status.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message ...
[ "noreply@github.com" ]
BrunoWMello.noreply@github.com
faf060d7b38be5fea1712230d9bbb6f91e45b7f9
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_noisy3275.py
b7544f2ecf5b480e932e0f8dbee5116b5707548d
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,327
py
# qubit number=4 # total number=43 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
2405333f527484bf17e95f0a345b48a18152227e
2ade3aada45862b7cb2cced9f3402b3738266d15
/PhysiCell-model-builder/bin/substrates.py
eaf5acd78c4e1fcb8cd36c52daeec546d444e5b7
[ "BSD-3-Clause" ]
permissive
willisdc/PhysiCell_Studio
70c7a6c7ce65691cb9d46644bbdf7f6b79f8a926
7fb7ca6277a353947a446782499880ffcd5889ad
refs/heads/main
2023-09-02T23:36:57.405936
2021-11-12T20:40:49
2021-11-12T20:40:49
422,694,252
0
0
null
2021-10-29T19:41:18
2021-10-29T19:41:17
null
UTF-8
Python
false
false
84,822
py
# substrates.py - code for the 'Out: Plots' tab of the GUI. # # Contains visualization for: Cells and substrates, possibly overlaid (on the left); Extra analysis (2D line plots; on the right) # # Author: Randy Heiland, with contributions from many students and collaborators # import os, math from pathlib import Path f...
[ "heiland@indiana.edu" ]
heiland@indiana.edu
34adc483132c9caf762c7cacb07b61a87b41f63f
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/tNFTY9ggpTkeHvBaN_8.py
a1976203fc818883d4a044522788b64c44d4a5b8
[]
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
175
py
def total_volume(*args): sum = 0 for each_list in args: mul=1 for num in each_list: mul = mul*num sum = sum + mul return sum
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
128e264329fe51285f1f6f5e2510c05123196b45
46244bb6af145cb393846505f37bf576a8396aa0
/leetcode/152.maximum_product_subarray.py
0fc1bda3b921136bc8e52fbde9679d2808d39979
[]
no_license
aoeuidht/homework
c4fabfb5f45dbef0874e9732c7d026a7f00e13dc
49fb2a2f8a78227589da3e5ec82ea7844b36e0e7
refs/heads/master
2022-10-28T06:42:04.343618
2022-10-15T15:52:06
2022-10-15T15:52:06
18,726,877
4
3
null
null
null
null
UTF-8
Python
false
false
2,379
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys class Solution: # @param A, a list of integers # @return an integer def maxProduct(self, A): al = len(A) if al < 1: return 0 elif al == 1: return A[0] max_product = A[0] neg_lo, neg_hi ...
[ "sockpuppet.lea@gmail.com" ]
sockpuppet.lea@gmail.com
ff897b58afc4069f5b6d6e1cdadf44950299b683
dddd18198df381e61f5dd71985edd362d19001c4
/djstell/reactor/models.py
ed65438e73460408a7b344e10df947a5ed0d71be
[]
no_license
nedbat/nedbatcom
1b148e3cf30cff3c121dbe5412017e8a7f42a30a
d460a606c77ebf856557ccdee29dd27a69455896
refs/heads/master
2023-09-01T09:28:37.368419
2023-08-29T18:14:38
2023-08-29T18:14:38
7,422,053
8
6
null
2022-07-10T23:28:37
2013-01-03T11:52:06
HTML
UTF-8
Python
false
false
1,753
py
from django.conf import settings from django.db import models from django.urls import reverse from .tools import md5 class Comment(models.Model): entryid = models.CharField(max_length=40, db_index=True) name = models.CharField(max_length=60) email = models.CharField(max_length=100, null=True) website...
[ "ned@nedbatchelder.com" ]
ned@nedbatchelder.com
730a99c3692fb4c357608ee9bc85fb75f8fc6ec0
9141e27444128fa8474235f63225f8c121c42878
/tests/extensions/test_registry.py
0a0de60d4e5c7a1b0cfcc2229d21f243b13e32de
[ "BSD-3-Clause" ]
permissive
gc-ss/pyapp
00a8ab7c517fe6613049640991e27880a00887fb
1fa2651d8b42f6e28b0c33b2b4fd287affd3a88f
refs/heads/master
2023-04-08T01:51:43.374810
2020-09-14T00:22:07
2020-09-14T00:22:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,257
py
from unittest import mock import pytest from pyapp.extensions.registry import ExtensionDetail from pyapp.extensions.registry import ExtensionEntryPoints from pyapp.extensions.registry import ExtensionRegistry from pyapp.extensions.registry import pkg_resources from tests.sample_ext import SampleExtension from tests.s...
[ "tim@savage.company" ]
tim@savage.company
e5d7ef0d7bdd476f442e4f2293516f3a52bbf4e6
8cde90833d402b3b946e1b77a3265624b61182f8
/python/openapi_client/models/__init__.py
cf44cc20701851840ab88055a617bb102fba6bd6
[ "MIT" ]
permissive
joycejade0810/mastercard-api-client-tutorial
15830eb5c66b07f2a8934485843e7a2474c3a380
50eff62c91a33f2ab879152e42ddd345786c80d8
refs/heads/main
2023-07-10T21:39:17.661544
2021-08-17T10:58:17
2021-08-17T10:58:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,295
py
# coding: utf-8 # flake8: noqa """ MDES for Merchants The MDES APIs are designed as RPC style stateless web services where each API endpoint represents an operation to be performed. All request and response payloads are sent in the JSON (JavaScript Object Notation) data-interchange format. Each endpoint in t...
[ "7020500+ech0s7r@users.noreply.github.com" ]
7020500+ech0s7r@users.noreply.github.com
6ba578146ce74c3dceec8a819b6e7c89264220a3
23d962a8e36b4a58e63e15f3c61a88b537a80f6e
/test/unit/mongo_class/repsetcoll_ins_doc.py
8a75acee80fa5504bdf2fc7ed82626d1c2633972
[ "MIT" ]
permissive
deepcoder42/mongo-lib
3a893d38edb3e03decff0cfbcbf29339026909f9
fa2b65587ab88ee90c9d85f12dd642c6295e0d94
refs/heads/master
2023-06-14T10:10:12.032877
2021-07-13T15:22:17
2021-07-13T15:22:17
337,179,035
0
0
null
null
null
null
UTF-8
Python
false
false
2,146
py
#!/usr/bin/python # Classification (U) """Program: repsetcoll_ins_doc.py Description: Unit testing of RepSetColl.ins_doc in mongo_class.py. Usage: test/unit/mongo_class/repsetcoll_ins_doc.py Arguments: """ # Libraries and Global Variables # Standard import sys import os if sys.version_info...
[ "deepcoder42@gmail.com" ]
deepcoder42@gmail.com
648e57155207f80d8186777a0f154c09b450a3b0
0cf704d61352737ba7a7698043375446ee1f7b03
/travis/waitdb
1574aee0701962e71aab9108ede02fe2ebadeb5d
[ "BSD-2-Clause-Views" ]
permissive
experimentAccount0/c2cgeoportal
4be327e7be6c39b631e4500118507d9a8823122e
5f7f781cf18fe396d0e940bc3dc6a5f928e030cd
refs/heads/master
2021-01-15T21:33:58.169936
2017-08-07T07:51:41
2017-08-07T07:51:41
99,875,202
0
0
null
2017-08-10T03:04:56
2017-08-10T03:04:55
null
UTF-8
Python
false
false
401
#!/usr/bin/python import sys import time import sqlalchemy sleep_time = 1 # wait for the DB to be UP while True: print("Waiting for the DB to be reachable") try: sqlalchemy.create_engine(sys.argv[1]).connect() exit(0) except Exception as e: print(str(e)) print("Waiting for...
[ "stephane.brunner@camptocamp.com" ]
stephane.brunner@camptocamp.com
4d971e6b6f550716ebcddbf6d61b9b7b7ab4e0aa
546b8c3e1b876aab272e587765951e8acd7b3122
/irlc/ex00/listcomp.py
b68fff096aa522d77f88184abdb258b84db06642
[]
no_license
natashanorsker/RL_snakes
2b8a9da5dd1e794e832830ab64e57ab7d4b0d6c3
be8c75d1aa7a5ba7a6af50a0a990a97b0242c49d
refs/heads/main
2023-04-21T14:08:30.840757
2021-05-11T17:33:35
2021-05-11T17:33:35
358,572,447
1
1
null
null
null
null
UTF-8
Python
false
false
805
py
""" This file may not be shared/redistributed without permission. Please read copyright notice in the git repo. If this file contains other copyright notices disregard this text. """ nums = [1, 2, 3, 4, 5, 6] plusOneNums = [x + 1 for x in nums] oddNums = [x for x in nums if x % 2 == 1] print(oddNums) oddNumsPlusOne =...
[ "natashanorsker@gmail.com" ]
natashanorsker@gmail.com
7673db1213b13fbf378ed98baa8e76b8dc967d4b
74be814f7cd10d3c91a53460bd6698aa8bc95704
/AcWing算法基础课/记忆化搜索/901. 滑雪.py
aa5469dd0aafe27d88af53c536c5fa9b8188db37
[]
no_license
weiyuyan/LeetCode
7202f7422bc3bef6bd35ea299550b51905401656
19db0e78826d3e3d27d2574abd9d461eb41458d1
refs/heads/master
2020-12-03T17:10:53.738507
2020-05-27T08:28:36
2020-05-27T08:28:36
231,402,839
2
0
null
null
null
null
UTF-8
Python
false
false
4,204
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # author:ShidongDu time:2020/4/1 ''' 给定一个R行C列的矩阵,表示一个矩形网格滑雪场。 矩阵中第 i 行第 j 列的点表示滑雪场的第 i 行第 j 列区域的高度。 一个人从滑雪场中的某个区域内出发,每次可以向上下左右任意一个方向滑动一个单位距离。 当然,一个人能够滑动到某相邻区域的前提是该区域的高度低于自己目前所在区域的高度。 下面给出一个矩阵作为例子: 1 2 3 4 5 16 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 ...
[ "244128764@qq.com" ]
244128764@qq.com
5bb0f1b8c1083657bb7ed66ce5158451716ad0f7
4ea675fdab4b7aab8b84fd8b6127ff452e4e4a8f
/dc_mosaic.py
6ec9f6214c790cb63e89745bd668433d2386bb32
[ "Apache-2.0" ]
permissive
v0lat1le/data_cube_utilities
f1819ed5686a92c0ca20a40972afb161600d2462
5015da91c4380925ce7920e18a7d78268a989048
refs/heads/master
2020-05-18T15:10:35.361663
2017-03-08T00:18:58
2017-03-08T00:18:58
84,257,036
0
0
null
2017-03-07T23:36:53
2017-03-07T23:36:53
null
UTF-8
Python
false
false
8,063
py
# Copyright 2016 United States Government as represented by the Administrator # of the National Aeronautics and Space Administration. All Rights Reserved. # # Portion of this code is Copyright Geoscience Australia, Licensed under the # Apache License, Version 2.0 (the "License"); you may not use this file # except in ...
[ "alfredo.h.delos_santos@ama-inc.com" ]
alfredo.h.delos_santos@ama-inc.com
2b3195ba262ba0da86a95bc47374e0749c55102d
083ca3df7dba08779976d02d848315f85c45bf75
/BinaryTreePostorderTraversal3.py
58cab01e0197a9503d8d6e5bbc2ec068195ac364
[]
no_license
jiangshen95/UbuntuLeetCode
6427ce4dc8d9f0f6e74475faced1bcaaa9fc9f94
fa02b469344cf7c82510249fba9aa59ae0cb4cc0
refs/heads/master
2021-05-07T02:04:47.215580
2020-06-11T02:33:35
2020-06-11T02:33:35
110,397,909
0
0
null
null
null
null
UTF-8
Python
false
false
912
py
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def postorderTraversal(self, root): """ :type root: TreeNode :rtype: List[int] """ postorder = [] if not root: ...
[ "jiangshen95@163.com" ]
jiangshen95@163.com
664a8438d8355afbb35e1f4a504b4cf54c2ed6bd
266947fd84eed629ed0c21f6d91134239512afd9
/BeginnerContest_A/078.py
d4f876810de243df887f94455a3fc46497abefcc
[]
no_license
SkiMsyk/AtCoder
c86adeec4fa470ec14c1be7400c9fc8b3fb301cd
8102b99cf0fb6d7fa304edb942d21cf7016cba7d
refs/heads/master
2022-09-03T01:23:10.748038
2022-08-15T01:19:55
2022-08-15T01:19:55
239,656,752
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
X, Y = input().split() d = {'A':1, 'B':2, 'C':3, 'D':4, 'E':5, 'F':6} if d[X] < d[Y]: print('<') elif d[X] == d[Y]: print('=') else: print('>')
[ "sakaimasayuki@sakaimasayukinoMacBook-puro.local" ]
sakaimasayuki@sakaimasayukinoMacBook-puro.local
061c123ad1b7b5a44b4b25024ccb37b6e4d35897
1f7c4413d1e03bb431fd3efd34127693b192c7f2
/tests/actions/save_group.py
45cdeccef99723d54170a5f520498d8b644866e8
[ "MIT" ]
permissive
blueshed/blueshed-micro
8c6f8f572561f09b18f48a7b8a0466d9531ad16b
d52b28aaabf0ac6d43594155561d6cb3fce64a80
refs/heads/master
2020-12-25T17:13:36.458520
2016-11-18T17:57:27
2016-11-18T17:57:27
58,062,960
0
0
null
2016-10-31T11:28:17
2016-05-04T15:26:17
Python
UTF-8
Python
false
false
724
py
from blueshed.micro.orm.orm_utils import serialize from tests.actions import model def save_group(context: 'micro_context', name: str, id: int=None): ''' Adds a group to the database if it is not already there, otherwise it updates it. ''' with context...
[ "pete@blueshed.co.uk" ]
pete@blueshed.co.uk
294e69324ddea04aaeb771cab56347d49297d63a
eb12c383dca56dcd4a1e362bc02588bbd6e2dda6
/racecar-ws/build/racecar/racecar/catkin_generated/pkg.develspace.context.pc.py
9069f579dfa2ee8ea219e891d4f79361ff3f0e4e
[]
no_license
174high/race-car
2e5b403900496753bb71d5297cc3d1177620622a
9fa772a84fee1489e9b52670f07e30d54db35fe8
refs/heads/master
2020-03-20T08:32:48.984720
2018-06-14T05:48:56
2018-06-14T05:48:56
137,311,828
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "razor_imu_9dof;tf;tf2_ros;urg_node;joy;rosbag;rostopic;rviz;gmapping;hector_mapping;robot_pose_ekf".replace(';', ' ') PKG_CONFIG_LIBRARIES_WIT...
[ "you@example.com" ]
you@example.com
c00b80fb096539a331e5b7ea6a66d592b34a175c
e64e88c5561698555381d9ed48d17dadbbcd753b
/crimefiles/migrations/0058_auto_20200711_1856.py
c3e7241fa313325d5d4020271b65ce47d68acb8c
[]
no_license
shreyasharma98/MS336_TechDhronas
393979e67c3d5bbf5ff7a4924c71a637cc1337ea
cb2580cb64de8a52b9d1ddc4225ab077415ade7e
refs/heads/master
2022-11-30T21:37:16.275763
2020-08-17T17:07:21
2020-08-17T17:07:21
284,041,527
0
0
null
null
null
null
UTF-8
Python
false
false
1,431
py
# Generated by Django 2.0 on 2020-07-11 13:26 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('crimefiles', '0057_auto_20200711_1814'), ] operations = [ migrations.AlterField( model_name='case...
[ "65544777+aakriti1435@users.noreply.github.com" ]
65544777+aakriti1435@users.noreply.github.com
9e045519004f73f6c2d4f4a1252bf2571792b29d
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/pybites/topics/DataFormats/79/community.py
6f0da38f033e3bd7c46dae372d33bce22a7c7e20
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
772
py
_______ c__ ____ c.. _______ C.. _______ r__ CSV_URL 'https://bites-data.s3.us-east-2.amazonaws.com/community.csv' ___ get_csv """Use requests to download the csv and return the decoded content""" w__ r__.S.. __ s download s.g.. ? decoded_content download.c__.d.. utf-8 cr c__.r...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
18bf9c0ccb23bcdc9920c3056bd3f9bf0ba9e519
c8fbb8abd6f00a53607773aba706f2893861c50c
/5-html.py
51cbaa634f58a2ea8395201091e1a0678808ca5b
[]
no_license
abelsonlive/intro-to-webscraping
f160e80678ac0a007b1f633bb3d8658fcfc35d77
27aaea56990dd9ccc45c4ca4ba93d49d3d73cec0
refs/heads/master
2016-09-05T08:51:45.877565
2015-02-11T01:32:55
2015-02-11T01:32:55
30,586,249
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
import requests from bs4 import BeautifulSoup url = 'http://google.com/search' search_parameters = { 'q': 'hack the gibson' } response = requests.get(url, params=search_parameters) soup = BeautifulSoup(response.content) for search_result in soup.find_all('h3', {'class':'r'}): anchor_tag = search_result.find('...
[ "brianabelson@gmail.com" ]
brianabelson@gmail.com
3a696fce02ad18bb6f0d805193e9a19fec2c84c5
7f4b1d5e9963d63dd45b31c6cad8ced70d823217
/interview-prep/geeks_for_geeks/greedy/huffman_decoding.py
cab62acfcb088effd9506ec8cb43182cc73ee544
[]
no_license
mdhatmaker/Misc-python
b8be239619788ed343eb55b24734782e227594dc
92751ea44f4c1d0d4ba60f5a1bb9c0708123077b
refs/heads/master
2023-08-24T05:23:44.938059
2023-08-09T08:30:12
2023-08-09T08:30:12
194,360,769
3
4
null
2022-12-27T15:19:06
2019-06-29T03:39:13
Python
UTF-8
Python
false
false
4,322
py
import sys import heapq # https://practice.geeksforgeeks.org/problems/huffman-decoding-1/1 # https://www.geeksforgeeks.org/huffman-coding-greedy-algo-3/ # Given an encoded string, your task is to print the decoded String. ############################################################################### def decode(arr...
[ "hatmanmd@yahoo.com" ]
hatmanmd@yahoo.com
be7a3abe18aa4a85e2d13bdc988a23498b3a315b
a31edaf4843ff669d459d3150a7eebcd24f7e579
/BSI/crypto/rand.py
0689fc72aa12a374349c2dcb4e0b772d57a1c50b
[]
no_license
Ginkooo/PolibudaCode
1d57b68cd7f62feb933bc90342f6128ff991f35d
583c2b07b6947df782a412f26b224efc5c9e4180
refs/heads/master
2021-01-11T01:17:09.642285
2018-12-13T23:50:00
2018-12-13T23:50:00
70,732,542
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
import subprocess import binascii from argparse import ArgumentParser ap = ArgumentParser(description='Encrypt file using system entrophy') ap.add_argument('algorithm', help='Algorithm to use (For full list of ciphertypes please see: man enc') ap.add_argument('input_file', help='File to cipher') ap.add_argument('outp...
[ "piotr_czajka@outlook.com" ]
piotr_czajka@outlook.com
085522d19e1404567e8c4300ce0fa4ea1ef34023
008ea0c503829f33840495373ad3d60794575af3
/PYDayByDay/common/list.py
6262e957b92bfdffbe3d3158524d64346d6e2d3c
[]
no_license
JyHu/PYStudy
6515bea47ca6f80e336f3b6a7a14b1159fde872f
ec0855c414237bdd7d0cb28f79a81c02ccd52d45
refs/heads/master
2016-08-12T19:44:06.723361
2016-04-11T10:38:59
2016-04-11T10:38:59
45,384,810
0
0
null
null
null
null
UTF-8
Python
false
false
1,591
py
#coding = utf-8 __author__ = 'JinyouHU' word = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] a = word[2] print 'a is :' +a b = word[1:3] print 'b is :' print b c = word[:2] print 'c is :' print c d = word[0:] print 'd is :' print d e = word[:2] + word[2:] print 'e is :' print e f = word[-1] print 'f is :' print f g = w...
[ "auu.aug@gmail.com" ]
auu.aug@gmail.com
0e6712631230a8a0169cf4d69e1955916c0c03ca
d6509602e7ac7c57949e7837b74317f46d1fa4c3
/pystruct/learners/frankwolfe_ssvm.py
0f6d48f068e39da3370d334633b4f14bf275ee62
[ "BSD-2-Clause" ]
permissive
DerThorsten/pystruct
4bf7050d603c67ef5476befa66d98b96f9259545
efe231d7eddb705b1c4c6458e8fd60d79bf3eeb9
refs/heads/master
2021-01-15T16:52:55.460885
2013-08-21T21:47:36
2013-08-21T21:47:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,857
py
###################### # Authors: # Xianghang Liu <xianghangliu@gmail.com> # Andreas Mueller <amueller@ais.uni-bonn.de> # # License: BSD 3-clause # # Implements structured SVM as described in Joachims et. al. # Cutting-Plane Training of Structural SVMs from time import time import numpy as np from pystruct.learne...
[ "amueller@ais.uni-bonn.de" ]
amueller@ais.uni-bonn.de
0d981572ba1a4d26a11b7a95c3f10693250d3020
ac216a2cc36f91625e440247986ead2cd8cce350
/packages/infra_libs/infra_libs/ts_mon/common/test/targets_test.py
43e9246c2e49ae906e0fb13174e107561e482faa
[ "BSD-3-Clause" ]
permissive
xinghun61/infra
b77cdc566d9a63c5d97f9e30e8d589982b1678ab
b5d4783f99461438ca9e6a477535617fadab6ba3
refs/heads/master
2023-01-12T21:36:49.360274
2019-10-01T18:09:22
2019-10-01T18:09:22
212,168,656
2
1
BSD-3-Clause
2023-01-07T10:18:03
2019-10-01T18:22:44
Python
UTF-8
Python
false
false
4,291
py
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import unittest from infra_libs.ts_mon.common import targets from infra_libs.ts_mon.protos import metrics_pb2 class TargetTest(unittest.TestCase): def ...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
aa78a93cfcec310c321ca4d89d37d1d191768dec
4a3dcb0cd8b271ca4e54eac077c286bfec399ff0
/graphstats/embed/ase.py
d691563dac3fb5de1feec978498fea21de797f39
[ "Apache-2.0" ]
permissive
tpsatish95/graspy
b5e42faccbb2cc0bdd607f8229e1cf83c9060530
3360e217a3f4200381a805c2b95b5de282d146ac
refs/heads/master
2020-03-30T04:14:07.606769
2018-09-26T10:41:13
2018-09-26T10:41:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,490
py
# ase.py # Created by Ben Pedigo on 2018-09-15. # Email: bpedigo@jhu.edu # Adapted from Disa Mhembere from embed import BaseEmbed from utils import import_graph, check_square from svd import SelectSVD from sklearn.decomposition import TruncatedSVD import numpy as np class ASEEmbedder(BaseEmbed): """ Clas...
[ "benjamindpedigo@gmail.com" ]
benjamindpedigo@gmail.com
f92bef4524810441c31b2e1f8fe242bfa96e8225
83d9b630bdc5535d67e35d69768b4d41fc4c9653
/assignment1/assignment1/cs231n/gradient_check.py
31257e96b4cf83c96ae458e56c1b435f19990bfc
[]
no_license
chenshaobin/assignment_CS231n
2c8820f748fca6fb41cdb272a81c940f8c0a0e52
132c670d22dd37e6b4c1bd9da944c1f62a639d64
refs/heads/main
2022-12-30T21:05:12.500255
2020-10-18T04:49:40
2020-10-18T04:49:40
301,309,753
0
0
null
null
null
null
UTF-8
Python
false
false
4,041
py
from __future__ import print_function from builtins import range from past.builtins import xrange import numpy as np from random import randrange def eval_numerical_gradient(f, x, verbose=True, h=0.00001): """ a naive implementation of numerical gradient of f at x - f should be a function that takes a sin...
[ "13531194616@163.com" ]
13531194616@163.com
407444905ce70a6a84bff0d87d2fa26891342069
4a9995871447a406a7e6307a030503700cd41226
/SRC/tool/project/ui_designer/dirCompare.py
5236a57b2e5db9d7e49289cba144b877513cef52
[]
no_license
juntaoh1234/12122003
96a107ce22d930e8d9517810736d8f6ce92dc7ad
4bee39286c3708d7a0df3001e0daa9da51478170
refs/heads/master
2020-10-01T18:20:01.572599
2019-12-12T12:04:08
2019-12-12T12:04:08
227,596,967
3
0
null
null
null
null
UTF-8
Python
false
false
9,043
py
# -*- coding: utf-8 -*- """ Module implementing DirCompare. """ import filecmp import os from PyQt5.QtCore import pyqtSlot from PyQt5 import QtGui, QtCore from PyQt5.QtWidgets import QDialog, QTreeWidgetItem, QMessageBox from SRC import settings from SRC.common.fileHelper import copyFile, pathJoin from SRC.tool.common...
[ "1341890679@qq.com" ]
1341890679@qq.com
2310f6ba6d69d7d143a9f93b55954ca5c691f398
5d06a33d3685a6f255194b13fd2e615e38d68850
/tests/opytimark/utils/test_constants.py
ee4d47bdb169e5811cb942a7bbb70115af9b72a6
[ "Apache-2.0" ]
permissive
sarikoudis/opytimark
617a59eafaabab5e67bd4040473a99f963df7788
cad25623f23ce4b509d59381cf7bd79e41a966b6
refs/heads/master
2023-07-24T04:19:55.869169
2021-09-03T13:09:45
2021-09-03T13:09:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
import sys from opytimark.utils import constants def test_constants(): assert constants.DATA_FOLDER == 'data/' assert constants.EPSILON == 1e-32 assert constants.FLOAT_MAX == sys.float_info.max
[ "gth.rosa@uol.com.br" ]
gth.rosa@uol.com.br
dfdbbbdf80ff3a131f9a789153624a55f21f9c20
aa4b80cf7e7ac0028d0c7f67ade982d9b740a38b
/python/list/list_max.py
0272716fe25776fbf18ced846eea450e85342060
[]
no_license
ratularora/python_code
9ac82492b8dc2e0bc2d96ba6df6fdc9f8752d322
ddce847ba338a41b0b2fea8a36d49a61aa0a5b13
refs/heads/master
2021-01-19T04:34:22.038909
2017-09-27T08:14:45
2017-09-27T08:14:45
84,435,244
2
0
null
null
null
null
UTF-8
Python
false
false
145
py
list1, list2 = [123, 565654, 'A','Z','gdgf'], [456, 700, 200] print "Max value element : ", max(list1) print "Max value element : ", max(list2)
[ "arora.ratul@gmail.com" ]
arora.ratul@gmail.com
ff455dd0b1d99aba94e9c35e313ed4aa46e522f1
fb65b7c000642dca68c93ee85a87795b3f30fe21
/Core_Python/pgm11.py
652850cfd01fd7bd255185ef1e708fbf72d76138
[]
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
278
py
#pgm to swap two variables num1=5 num2=10 print("value before swapping") print("Number1 is",num1) print("Number2 is",num2) #create a temporary variable and swap a value temp=num1 num1=num2 num2=temp print("Value after swapping") print("Number1 is",num1) print("Number2 is",num2)
[ "toncysara12@gmail.com" ]
toncysara12@gmail.com
4f338929596b6be67843874be8412f875486b877
0e5291f09c5117504447cc8df683ca1506b70560
/test/test_writable_tenant_group.py
735b459c6d0339a0fcabd4fa29ee9bc034db512a
[ "MIT" ]
permissive
nrfta/python-netbox-client
abd0192b79aab912325485bf4e17777a21953c9b
68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8
refs/heads/master
2022-11-13T16:29:02.264187
2020-07-05T18:06:42
2020-07-05T18:06:42
277,121,108
0
0
null
null
null
null
UTF-8
Python
false
false
887
py
# coding: utf-8 """ NetBox API API to access NetBox # noqa: E501 OpenAPI spec version: 2.8 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import netbox_client from netbox_client.models.writable_tenant_group import ...
[ "67791576+underline-bot@users.noreply.github.com" ]
67791576+underline-bot@users.noreply.github.com
fb54501652083103c6154e7fb4d55f828df3fc3a
b0d5e423f09181a322a0166b06bf7fe45a3befc0
/MetioTube/asgi.py
e2cd92f47887e46c1b286179c5713a337df86ce6
[ "MIT" ]
permissive
Sheko1/MetioTube
f5da4184bb1590565ba34cef2fff02b379ab3e56
c1c36d00ea46fc37cc7f3c0c9c0cae6e89b2113c
refs/heads/main
2023-07-04T12:54:57.500778
2021-08-14T19:41:56
2021-08-14T19:41:56
383,907,948
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" ASGI config for MetioTube project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SET...
[ "martinkypar@gmail.com" ]
martinkypar@gmail.com
2d98fddc9cad55ca558182e05f59ea35a4c2354e
7379db50aa0f0efe8d2e43e1d4b2b593fcd940e2
/data_generators/chaotic_rnn.py
28e9218c45f622eec7eff4bf650b8d9d96f12f17
[]
no_license
snel-repo/demos
ea92f3f92c583a1cd6b634f6a52098a3d124bb95
aeaaf7baaf24da1c19fae9788087db8beec5bb11
refs/heads/master
2022-05-23T15:17:46.689178
2020-04-29T23:14:19
2020-04-29T23:14:19
260,057,859
0
0
null
null
null
null
UTF-8
Python
false
false
10,438
py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ "joelye9@gmail.com" ]
joelye9@gmail.com
2a4782180f8375d960ca9e96805817fe1a9d44db
35a253595e158085dbb40d33d44dde026269c8a7
/198 House Robber.py
562340100cf91741af888da5d9b11ebcbb944cf3
[ "MIT" ]
permissive
ee08b397/LeetCode-4
7a8174275fbe7e0e667575aedd1ff1a8647776c3
3b26870e946b510797b6b284822a1011ce048fbe
refs/heads/master
2020-12-24T15:13:22.899164
2015-09-22T02:41:13
2015-09-22T02:41:13
43,003,940
1
0
null
2015-09-23T13:52:25
2015-09-23T13:52:25
null
UTF-8
Python
false
false
891
py
""" You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it will automatically contact the police if two adjacent houses were broken int...
[ "zhangdanyangg@gmail.com" ]
zhangdanyangg@gmail.com
0b8470e562b21979ccc4ab4da93335262b2d9c86
74e15a8246fff5fd65a4169a0908c2639912992a
/pykeg/plugin/datastore_test.py
ddd244646f429ac166ff2b9aa5dd7b32765e5fa0
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Kegbot/kegbot-server
5abf5fedf102aa9000e9dbe0ae90f9d4a70b93f3
e0f953137bc261519444cb769455317074c7253e
refs/heads/main
2023-02-16T08:57:50.931256
2022-08-18T17:21:13
2022-08-18T17:21:13
1,886,336
77
68
MIT
2023-02-15T19:01:41
2011-06-12T22:25:29
JavaScript
UTF-8
Python
false
false
1,397
py
from django.test import TransactionTestCase from pykeg.core import models from pykeg.plugin import datastore class DatastoreTestCase(TransactionTestCase): def test_model_datastore(self): ds = datastore.ModelDatastore(plugin_name="test") self.assertEqual(0, models.PluginData.objects.all().count()...
[ "opensource@hoho.com" ]
opensource@hoho.com
bd87f7ffff21edcd8780035ad4b9bd302bfb6a72
0df898bf192b6ad388af160ecbf6609445c34f96
/middleware/backend/app/magnet/research/schemas.py
14784fcd60e81faf427db23b928fed336d7760bc
[]
no_license
sasano8/magnet
a5247e6eb0a7153d6bbca54296f61194925ab3dc
65191c877f41c632d29133ebe4132a0bd459f752
refs/heads/master
2023-01-07T10:11:38.599085
2020-11-13T02:42:41
2020-11-13T02:42:41
298,334,432
1
1
null
null
null
null
UTF-8
Python
false
false
244
py
from typing import List, Optional from magnet import config, BaseModel class CaseNode(BaseModel): Config = config.ORM id: int name: str class Target(BaseModel): Config = config.ORM id: int name: str node_id: int
[ "y-sasahara@ys-method.com" ]
y-sasahara@ys-method.com
1d030a1a87fa78e0fb8f511029f3f2a4218a0f6b
551b75f52d28c0b5c8944d808a361470e2602654
/examples/IoTDA/V5/TagManagement.py
cb3d92b2c88cd64d06bf9647b4b17b19d38a2d7f
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
2,632
py
# coding: utf-8 from huaweicloudsdkcore.http.http_config import HttpConfig from huaweicloudsdkcore.auth.credentials import BasicCredentials from huaweicloudsdkcore.exceptions import exceptions from huaweicloudsdkiotda.v5 import * def getResourcesByTags(client): try: resource_type = "device" tags =...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
38cef241ffcbaddf58cb3d75921e6a5ce7fd5e7b
89dedd7f3c7acc81d12e2bcb2e716f9af9e5fa04
/tools/cygprofile/check_orderfile.py
ea48127db476c6b8a4b449d1e0b3a84efcb28195
[ "BSD-3-Clause", "LGPL-2.0-or-later", "LicenseRef-scancode-unknown-license-reference", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-unknown", "MIT" ]
permissive
bino7/chromium
8d26f84a1b6e38a73d1b97fea6057c634eff68cb
4666a6bb6fdcb1114afecf77bdaa239d9787b752
refs/heads/master
2022-12-22T14:31:53.913081
2016-09-06T10:05:11
2016-09-06T10:05:11
67,410,510
1
3
BSD-3-Clause
2022-12-17T03:08:52
2016-09-05T10:11:59
null
UTF-8
Python
false
false
4,024
py
#!/usr/bin/python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Check that symbols are ordered into a binary as they appear in the orderfile. """ import logging import optparse import sys import cyg...
[ "bino.zh@gmail.com" ]
bino.zh@gmail.com
a2bed2194305ab6bc2efcb6e7da0d2fcc9b5db94
f063232b59eb7535e4212ec2b6b477c472fdb56e
/intersection-of-two-linked-lists.py
b97bd5fdd82b5d68474a1634ab27021e37453d30
[]
no_license
xzjh/OJ_LeetCode
a01d43f6925bb8888bb79ca8a03a75dd8a6eac07
fa2cfe2ec7774ab4a356520668d5dbee9d63077c
refs/heads/master
2021-01-20T11:13:36.291125
2015-10-01T09:04:47
2015-10-01T09:04:47
25,239,393
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # @param two ListNodes # @return the intersected ListNode def getIntersectionNode(self, headA, headB): if not headA or not headB: return None lenA = 1 ...
[ "jsxzjh@gmail.com" ]
jsxzjh@gmail.com
ea606e1ffd245c9b3b6dbda9d9727b9c71c0c48f
7fd898850480206395eba9878ef5316d5bd4dbcf
/Trakttv.bundle/Contents/Code/plex/media_server.py
6ab79fe9cc16257e514934593086d7ceee34966c
[]
no_license
Qwaint/Plex-Trakt-Scrobbler
cdfbef4566b8db3a05e72a46ae92c655a8f697e5
383ffa338ad64e481bd14c71950af42f2f9edd83
refs/heads/master
2020-12-11T04:10:13.332420
2014-02-01T13:31:58
2014-02-01T13:31:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,836
py
from core.helpers import add_attribute from core.network import request # Regular Expressions for GUID parsing MOVIE_REGEXP = Regex('com.plexapp.agents.*://(?P<imdb_id>tt[-a-z0-9\.]+)') MOVIEDB_REGEXP = Regex('com.plexapp.agents.themoviedb://(?P<tmdb_id>[0-9]+)') STANDALONE_REGEXP = Regex('com.plexapp.agents.standalo...
[ "gardiner91@gmail.com" ]
gardiner91@gmail.com
208f8c6609bfaa29d9f350584a72d47b067aac36
011157c49983db38489f26f51db7fe22f8519afc
/problems/812.py
15ae89e58fec6eb2f61e83be7ee0790ec867c328
[]
no_license
chasecolford/Leetcode
c0054774d99e7294419039f580c1590495f950b3
dded74e0c6e7a6c8c8df58bed3640864d0ae3b91
refs/heads/master
2023-08-04T11:33:18.003570
2021-09-10T21:06:55
2021-09-10T21:06:55
283,154,381
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
class Solution: def largestTriangleArea(self, points: List[List[int]]) -> float: return max(0.5 * abs(i[0] * j[1] + j[0] * k[1] + k[0] * i[1]- j[0] * i[1] - k[0] * j[1] - i[0] * k[1]) for i, j, k in itertools.combinations(points, 3))
[ "56804717+ChaseSinify@users.noreply.github.com" ]
56804717+ChaseSinify@users.noreply.github.com
b05cf9848fef04d671c3f3771010b9614cef8003
741ee09b8b73187fab06ecc1f07f46a6ba77e85c
/AutonomousSourceCode/data/raw/squareroot/8dcd69f5-11fa-4c5f-8331-cd8f0db1aa54__Sarah01.py
b15d6db979b93090c7a22e978745c9ece3dc2371
[]
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
540
py
def Adder(N1,N2): MyResult = N1 + N2 return MyResult def Subtractor(N1,N2): MyResult = N1 - N2 return MyResult def Main(): X = input("Enter a value for X ---") Y = input("Enter a value for Y ---") if (X >= Y): print "Subtraction happened" MyResult = Subtractor(X,Y) ...
[ "erickmiller@gmail.com" ]
erickmiller@gmail.com
8e584b42af7aa4d3ca68a587b7979edf6ce05e75
0ac6eeac34c65a200d66be256593f3e064ab1a1a
/TagReadWrite/Utils.py
bb6601e96c8acd37b34652192770527b134782da
[]
no_license
flokli/CrossMgr
cc6c2476def8868a9fce14a6f2a08dd5eea79612
21d542edacfd89f645a3ebb426fb16635c1f452e
refs/heads/master
2020-09-26T08:34:21.857072
2019-11-30T20:28:53
2019-11-30T20:28:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,988
py
import datetime import wx import os import re import sys import math import socket import subprocess timeoutSecs = None DEFAULT_HOST = None def GetDefaultHost(): global DEFAULT_HOST DEFAULT_HOST = socket.gethostbyname(socket.gethostname()) if DEFAULT_HOST == '127.0.0.1': reSplit = re.compile('[: \t]+') try: ...
[ "edward.sitarski@gmail.com" ]
edward.sitarski@gmail.com
c4dae4c9dd4656c58295539cf766d16b915310a7
b122b723c2fbadef6f19e8c9ec4e485d48c03dec
/Python/Binary Tree Level Order Traversal II.py
80a09e56530fae38885f1f95c1f7d46bc5644087
[]
no_license
zhanglintc/leetcode
5ba3977172679fde8cdcd3f4940057d55d8112eb
8edbd2fbad8b10a497c7a10e8cd09cc91eeba079
refs/heads/master
2020-12-13T08:49:57.244106
2018-09-06T13:52:43
2018-09-06T13:52:43
18,562,111
1
0
null
null
null
null
UTF-8
Python
false
false
1,393
py
# Binary Tree Level Order Traversal II # for leetcode problems # 2014.09.04 by zhanglin # Problem Link: # https://leetcode.com/problems/binary-tree-level-order-traversal-ii/ # Problem: # Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from ...
[ "zhanglintc623@gmail.com" ]
zhanglintc623@gmail.com
db56147bf913f8b9dbc17b88ca38061e95d481cc
628ec414b7807fc50de67345361e41cc68ba3720
/mayan/apps/sources/serializers.py
5da2f6af0ab247cf37c2dbf2e97eaeccfabfbd1c
[ "Apache-2.0" ]
permissive
TestingCodeReview/Mayan-EDMS
aafe144424ffa8128a4ff7cee24d91bf1e1f2750
d493ec34b2f93244e32e1a2a4e6cda4501d3cf4e
refs/heads/master
2020-05-27T23:34:44.118503
2019-04-05T02:04:18
2019-04-05T02:04:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,915
py
from __future__ import unicode_literals import logging from rest_framework import serializers from rest_framework.reverse import reverse from .models import StagingFolderSource, WebFormSource logger = logging.getLogger(__name__) class StagingFolderFileSerializer(serializers.Serializer): filename = serializers...
[ "roberto.rosario.gonzalez@gmail.com" ]
roberto.rosario.gonzalez@gmail.com
1828f84475f59d71a7e93bde5e4b60ce50d63686
6bec763c8553ad9e85bef147014b2ddcc934dde0
/access_control/models/permission_create.py
8a436eaf9ab1837d186a20136e7c458b25939706
[ "BSD-3-Clause" ]
permissive
girleffect/core-management-layer
a0257d73c562ef89d38762aa6a4de892c4fc995c
22eda532984616cf92b07bfdd9a1fffaee6c813c
refs/heads/develop
2021-07-18T09:40:44.172628
2019-01-31T13:04:27
2019-01-31T13:04:27
112,724,847
0
1
BSD-3-Clause
2019-01-31T11:09:29
2017-12-01T10:04:04
Python
UTF-8
Python
false
false
4,234
py
# coding: utf-8 """ Access Control API # The Access Control API ## Overview The Access Control API is an API exposed to other core components. It uses an API Key in an HTTP header to perform authentication and authorisation. Most of the API calls facilitates CRUD of the entities defined in the Access Contro...
[ "cobus.carstens@gmail.com" ]
cobus.carstens@gmail.com
b49f37735e7b3e05cbe5e2ddc69c4518b3e7cdba
96a34a048c783a75736bf0ec775df22142f9ee53
/packages/service-integration/tests/test_osparc_config.py
77348df499a6c482c24c537408717bc0bf04e8c1
[ "MIT" ]
permissive
ITISFoundation/osparc-simcore
77e5b9f7eb549c907f6ba2abb14862154cc7bb66
f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63
refs/heads/master
2023-08-31T17:39:48.466163
2023-08-31T15:03:56
2023-08-31T15:03:56
118,596,920
39
29
MIT
2023-09-14T20:23:09
2018-01-23T10:48:05
Python
UTF-8
Python
false
false
3,130
py
# pylint: disable=redefined-outer-name # pylint: disable=unused-argument # pylint: disable=unused-variable import json from pathlib import Path from pprint import pformat from typing import Any import pytest import yaml from models_library.service_settings_labels import SimcoreServiceSettingLabelEntry from service_in...
[ "noreply@github.com" ]
ITISFoundation.noreply@github.com
68be7d203cae104cbd639acae6fa2fd0e9babfc9
d602881821bf49fe9ac246b9cc58e46440314725
/src/utils.py
e1081d7a31a5597ee1b0573aba279a050dc1183c
[ "MIT" ]
permissive
nilax97/HTML2LaTeX-Convertor
46775ab8b870d7ab609a92fa071efa1e54db22d2
a7bdc8f53773f920dd6291575c77ecffee910fdf
refs/heads/master
2022-06-12T04:04:00.584387
2020-05-05T08:03:38
2020-05-05T08:03:38
247,183,707
4
0
null
null
null
null
UTF-8
Python
false
false
851
py
def node_from_tag(text): clean = text.split("<")[1].split(">")[0] if(clean[-1]=='/'): clean = clean[:-2] elif(clean[0]=='/'): clean = clean[1:] clean = clean.split() tag = clean[0].upper() attr = [] values = [] i = 0 while(True and len(clean)>1): i = i + 1 if(i==len(clean)): break if "=" in clean...
[ "agarwal.nilaksh@gmail.com" ]
agarwal.nilaksh@gmail.com
3dac9cd531fdff6070c6f84ff2603f3c5ed04258
01bb8cdc7b8a0baa6e345e5bdc1a663b2a44a3f7
/Chapter_7_User_Input_And_While_Loop/Practice2/9.counting.py
3262a0a4021f7ba91a7f0a92bad8ee7c7ce740fa
[]
no_license
rishabhchopra1096/Python_Crash_Course_Code
1e8076b38f89565fad9d9b68de879a972b0c96c8
c1e1b0c90371d5913c201f46a0c8ceaec19b5af0
refs/heads/master
2021-04-25T21:25:37.351986
2017-11-03T08:11:13
2017-11-03T08:11:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
c_n = 0 while c_n < 10: c_n += 1 if c_n % 2 == 0: continue else: print(c_n) # Starting from 0 , we add 1 and then # We check weather the number is even or not. # 1 is noteven , so it is printed. # Loop starts again , 1 is added to 1 = 2 # If the number is even , we go back to the first lin...
[ "noreply@github.com" ]
rishabhchopra1096.noreply@github.com
76831e371c436f3e90d22d6a2e80b3045e8d2c8f
16fe74651e6692ea3d8d0302b40ac42f3d58e0ca
/minimum_height_trees.py
56664999a98a2eefaa414b7e83a4f5222312baa2
[ "MIT" ]
permissive
Ahmed--Mohsen/leetcode
7574f71b10dfb9582f62e856bbc2559d3b21b2a1
ad8967a5d85ac54f53b3fcce04df1b4bdec5fd9e
refs/heads/master
2021-01-18T14:34:06.987665
2015-12-23T21:17:27
2015-12-23T21:17:27
33,744,104
4
0
null
null
null
null
UTF-8
Python
false
false
2,530
py
# -*- coding: utf-8 -*- """ For a undirected graph with tree characteristics, we can choose any node as the root. The result graph is then a rooted tree. Among all possible rooted trees, those with minimum height are called minimum height trees (MHTs). Given such a graph, write a function to find all the MHTs and ret...
[ "ahmed7890@gmail.com" ]
ahmed7890@gmail.com
f4905f97c634eff4c0a17d3953c22ba496f165dd
af177f43b9e879b849cae739073bb63d2fae96f5
/Core/migrations/0013_alter_book_isbn_number.py
a6698229dc641a5774d3eddfd67cbac6e5601dcb
[]
no_license
conradylx/STX_Library
9d5ac5399f7d9402c00908f13712d228cfd9b412
7edffe5d7c433bbe4e163d664706bba5f15918b8
refs/heads/master
2023-07-12T01:13:01.189052
2021-08-17T12:36:53
2021-08-17T12:36:53
390,417,299
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
# Generated by Django 3.2.5 on 2021-08-01 15:49 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Core', '0012_auto_20210731_1434'), ] operations = [ migrations.AlterField( model_name='book', name='isbn_number', ...
[ "50596942+conradylx@users.noreply.github.com" ]
50596942+conradylx@users.noreply.github.com
972772172fb486be96c1e5a2785a3676c73ab5c0
9b20743ec6cd28d749a4323dcbadb1a0cffb281b
/11_Time_Series_Forecasting_with_Python/A_02/save_model.py
eec597448c0a8c70db1c341abf5a7e609ebe8f37
[]
no_license
jggrimesdc-zz/MachineLearningExercises
6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178
ee265f1c6029c91daff172b3e7c1a96177646bc5
refs/heads/master
2023-03-07T19:30:26.691659
2021-02-19T08:00:49
2021-02-19T08:00:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
# save and load an ARIMA model that causes an error from pandas import read_csv from statsmodels.tsa.arima_model import ARIMA from statsmodels.tsa.arima_model import ARIMAResults # load data series = read_csv('daily-total-female-births.csv', header=0, index_col=0, parse_dates=True, squeeze=True) # prepare data X = ser...
[ "jgrimes@jgrimes.tech" ]
jgrimes@jgrimes.tech
8a874264aad962b142b5d59bcc9e2b52791eec44
50f4d2bb1b1222bcb2eb0122c48a0dd254deddfc
/Algorithm Concept/Quicksort.py
4e4c886e297de61f0a86b4de7d19a28a4d1c6f92
[]
no_license
yejinee/Algorithm
9ae1c40382e9dcd868a28d42fe1cc543b790c7f5
81d409c4d0ea76cf152a5f334e53a870bc0656a7
refs/heads/master
2023-04-13T01:29:44.579635
2023-04-05T06:23:26
2023-04-05T06:23:26
235,014,475
0
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
""" Q) NO.2751 수 정렬하기2 - 퀵정렬로 해결 [Heap Sort] -Time complexity (1) Worst case= O(n^2) (2) Average case = O(nlogn) (1) pivot을 정하고 고정시키는 방식으로 정렬 (2) pivot을 기준으로 left, right부분으로 나눠서 이 과정을 반복 - Partition process : list에서 제일 첫번째 원소를 pivot으로 정하고 pivot을 고정시키는 과정 <순서> 1. i은 첫번째 원소, j는 마지막 원소 부터 시작 2. (1) i의 경우 : 하나씩 inde...
[ "kimyj9609@gmail.com" ]
kimyj9609@gmail.com
f2bffb6fc6832a4dc5369a88546849b84f879c32
d89a482aaf3001bbc4515f39af9ba474e1ae6062
/stir/stir_model.py
3ee1dc44261f1b9c08c97aff51f8673474e43f6c
[]
no_license
hongtao510/u_tool
2925e3694aba81714cf83018c3f8520a7b503228
98c962cfb1f53c4971fb2b9ae22c882c0fae6497
refs/heads/master
2021-01-10T20:40:24.793531
2014-03-14T22:57:37
2014-03-14T22:57:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,609
py
import numpy as np import logging import sys import math from django.utils import simplejson def toJSON(stir_object): stir_vars = vars(stir_object) stir_json = simplejson.dumps(stir_vars) return stir_json def fromJSON(json_string): stir_vars = simplejson.loads(json_string) new_stir = stir(True,Fal...
[ "hongtao510@gmail.com" ]
hongtao510@gmail.com
241bfa7d4854c270c2e7607c981567bfa15c8063
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_lactated.py
e6bcd5dc984c751dcdeb351346c6cd15ead3cc72
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
#calss header class _LACTATED(): def __init__(self,): self.name = "LACTATED" self.definitions = lactate self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['lactate']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
889aa45605c9e36c5387d79620b32ed507e15049
1ab243320bc1f1ee9dde3b0a1e3f1a418e6d5299
/apps/save/views.py
00b3d01a4bc5ea6a4679803c23838e86289c276f
[]
no_license
sjweil9/Djangos_Dungeon
a6bdd9fd4b8012ebdfb14caf2de41635a53ab089
2d2f1ceceddd6200db3de591c8f93926d973a704
refs/heads/master
2021-09-05T07:05:17.403789
2018-01-25T02:18:07
2018-01-25T02:18:07
108,317,359
0
1
null
2018-01-25T02:17:13
2017-10-25T19:39:19
JavaScript
UTF-8
Python
false
false
4,624
py
from django.shortcuts import render, redirect, HttpResponse from .models import * from django.contrib import messages import json, ast def game(req): return render(req, 'save/game.html') def signin(req): if 'id' in req.session: return redirect('/dashboard') return render(req, 'save/signin.html') ...
[ "stephen.weil@gmail.com" ]
stephen.weil@gmail.com
77782568d1cafff34f9406d2f741714b19433619
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02663/s559574798.py
36a0de215ceb319a077ac34b3f6f7bad3915d65f
[]
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
89
py
H1,M1,H2,M2,K = map(int,input().split()) h1 = 60*H1+M1 h2 = 60*H2+M2 d = h2-h1 print(d-K)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
13be5404a48b9269fddcac2f7bcee5c857ff102f
fd0d8b010d45f959f0660afb192c7349e266a329
/competitive/AtCoder/ABC216/B.py
079182f20988da04944c1de663e36a16a784ef31
[ "MIT" ]
permissive
pn11/benkyokai
b650f5957545fdefbea7773aaae3f61f210f69ce
9ebdc46b529e76b7196add26dbc1e62ad48e72b0
refs/heads/master
2023-01-28T01:38:29.566561
2021-10-03T04:20:14
2021-10-03T04:20:14
127,143,471
0
0
MIT
2023-01-07T07:19:05
2018-03-28T13:20:51
Jupyter Notebook
UTF-8
Python
false
false
1,168
py
import bisect from collections import deque from copy import deepcopy from fractions import Fraction from functools import reduce import heapq as hq import io from itertools import combinations, permutations import math from math import factorial import re import sys sys.setrecursionlimit(10000) #from numba import nji...
[ "pn11@users.noreply.github.com" ]
pn11@users.noreply.github.com
84dab7469a92a1687a7871963fbe15489cf73d99
cefab48dff8fc40786f0a45f3df272646365e9f5
/python/magnetics/probe_g2.py
d0e6c52d313b1d86545c376d95c08c12931dea54
[]
no_license
shaunhaskey/pyMARS
d40265bd2d445f0429ae7177f2e75d83f0ba8b30
e2424088492a8ab2f34acf62db42a77e44d5bc3b
refs/heads/master
2020-12-25T17:24:28.392539
2016-08-01T22:14:27
2016-08-01T22:14:27
17,684,575
0
0
null
2014-03-13T03:41:59
2014-03-12T21:21:08
Python
UTF-8
Python
false
false
4,291
py
''' Appears to be older than probe_g.py - this one doesn't contain my Biot-Savart calcuations Just does probe_g and MARS comparison. SH:14Sept2012 ''' import numpy as num import os, time import PythonMARS_funcs as pyMARS import results_class as res import RZfuncs N = 6; n = 2; I = num.array([1.,-1.,0.,1,-1.,0.]) #pr...
[ "shaunhaskey@gmail.com" ]
shaunhaskey@gmail.com
d9f4f1cea64200274bfa01806a671624371f6713
2b167e29ba07e9f577c20c54cb943861d0ccfa69
/simulationsOFC/pareto2/arch5_pod100_old/copyfile.py
bf351a7f1acedff879227fffabadbccab5ef7f28
[]
no_license
LiYan1988/kthOld_OFC
17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f
b1237577ea68ad735a65981bf29584ebd889132b
refs/heads/master
2021-01-11T17:27:25.574431
2017-01-23T05:32:35
2017-01-23T05:32:35
79,773,237
0
0
null
null
null
null
UTF-8
Python
false
false
1,672
py
# -*- coding: utf-8 -*- """ Created on Sat May 28 23:27:05 2016 @author: li """ import os #dirname = os.path.dirname(os.path.realpath(__file__)) dirname='' for i in range(20): src = os.path.join(dirname, 'template_runsimu_connections.py') dst = 'pareto'+str(i)+'.py' dst = os.path.join(dirname, dst) ...
[ "li.yan.ly414@gmail.com" ]
li.yan.ly414@gmail.com
334d40336a44583c5a3fb7a02ac6cf793065ded1
ece0d321e48f182832252b23db1df0c21b78f20c
/engine/2.80/scripts/addons_contrib/oscurart_mesh_cache_tools.py
d03242a458076a27dc5fe53a594e6492e4cc4780
[ "GPL-3.0-only", "Font-exception-2.0", "GPL-3.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain-disclaimer", "Bitstream-Vera", "LicenseRef-scancode-blender-2010", "LGPL-2.1-or-later", "GPL-2.0-or-lat...
permissive
byteinc/Phasor
47d4e48a52fa562dfa1a2dbe493f8ec9e94625b9
f7d23a489c2b4bcc3c1961ac955926484ff8b8d9
refs/heads/master
2022-10-25T17:05:01.585032
2019-03-16T19:24:22
2019-03-16T19:24:22
175,723,233
3
1
Unlicense
2022-10-21T07:02:37
2019-03-15T00:58:08
Python
UTF-8
Python
false
false
17,124
py
bl_info = { "name": "Mesh Cache Tools", "author": "Oscurart", "version": (1, 0, 1), "blender": (2, 70, 0), "location": "Tools > Mesh Cache Tools", "description": "Tools for Management Mesh Cache Process", "warning": "", "wiki_url": "", "tracker_url": "https://developer.blender.org/ma...
[ "admin@irradiate.net" ]
admin@irradiate.net
b7af641910c25e095ec765b876ffc1ff2b93a6f5
028d788c0fa48a8cb0cc6990a471e8cd46f6ec50
/Python-Advanced/Multidimensional-Lists/Lab/01_sum_matrix_elements.py
8b2f7f607ffc3ecd86832a616a452d0d289331c1
[]
no_license
Sheko1/SoftUni
d6b8e79ae545116f4c0e5705ad842f12d77a9c9d
a9fbeec13a30231b6a97c2b22bb35257ac1481c0
refs/heads/main
2023-07-13T15:39:48.826925
2021-08-21T12:51:02
2021-08-21T12:51:02
317,266,200
2
3
null
null
null
null
UTF-8
Python
false
false
389
py
def get_matrix(): row, column = [int(n) for n in input().split(", ")] result = [] for r_1 in range(row): el = [int(el) for el in input().split(", ")] result.append(el) return result matrix = get_matrix() matrix_sum = 0 for r in range(len(matrix)): for c in range(len(matrix[r])):...
[ "martinkypar@gmail.com" ]
martinkypar@gmail.com
b4e8ec957d1b648d015a016c4e06df18db2ebfb7
504d6796ed53540b57532f3c85a148bf6ddce2fc
/button.py
f7dc0e9f31bc5f463498cb67e13c6936fb840d96
[]
no_license
YGragon/AlienInvasion
1633d8319ee40400f50f236a904295eeae725886
81cf5a7988333e7a26a2934af66d571a26ade3c1
refs/heads/master
2021-08-23T15:56:11.077293
2017-12-05T14:43:25
2017-12-05T14:43:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
import pygame.font class Button(): """docstring for Button""" def __init__(self, ai_settings, screen, msg): """初始化按钮的属性""" self.screen = screen self.screen_rect = screen.get_rect() # 设置按钮的尺寸和其他属性 self.width, self.height = 200, 50 self.button_color = (0, 255, 0) ...
[ "1105894953@qq.com" ]
1105894953@qq.com
6d09ae55a40604788f8a470b1e4e72fbee35e4cb
e23a4f57ce5474d468258e5e63b9e23fb6011188
/070_oop/001_classes/examples/Learning Python/030_010_Bound Methods and Other Callable Objects.py
42e5cbd1bb55eb8bcbbd19028cb76cacc9337cb0
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
2,994
py
class Number: def __init__(self, base): self.base = base def double(self): return self.base * 2 def triple(self): return self.base * 3 x = Number(2) # Class instance objects y = Number(3) # State + methods...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
4994d7a5ad3a9ce58cc29a553e7a2db8735d7e33
fe31602a910e70fa77d89fcd4c705cc677b0a898
/pipeline/type/tmodel.py
eb11ade00b352a0abf20821c7d2f3f85e2555a78
[]
no_license
WUT-IDEA/Y2019_CZH_GraduationDesignCode
e0748b4412bc6c8d160584dff7faf3d6f3395d90
83b807060c68b3edef574532b32e8ae7a759d63f
refs/heads/master
2020-06-05T04:25:15.351883
2019-06-17T09:05:28
2019-06-17T09:05:28
192,312,562
1
0
null
null
null
null
UTF-8
Python
false
false
4,022
py
# -*- coding: utf-8 -*- from __future__ import print_function import os os.environ["CUDA_VISIBLE_DEVICES"] = "3" from keras.backend.tensorflow_backend import set_session import tensorflow as tf import keras config = tf.ConfigProto() config.gpu_options.per_process_gpu_memory_fraction = 0.4 set_session(tf....
[ "zhengyunpei@zhengyunpeideMacBook-Pro.local" ]
zhengyunpei@zhengyunpeideMacBook-Pro.local
e57efe4423fa8d3f59604669b12ba4f71a8595b6
6d154b8fdea96187fe12c6c4324ec4f8980dcdfe
/Shortner/migrations/0004_alter_url_key.py
bc907321bb8551cfa5e5e3a7cf0af62000b338ed
[]
no_license
mohammad-osoolian/UrlShortner
ba245a5aa1595e43044cfb93badbae76d293f616
8ffbe0b1a951997a420381f64492bc38deb98c05
refs/heads/master
2023-07-18T11:02:55.092219
2021-08-29T11:12:55
2021-08-29T11:12:55
400,747,551
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# Generated by Django 3.2.6 on 2021-08-28 11:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Shortner', '0003_url_created'), ] operations = [ migrations.AlterField( model_name='url', name='key', fi...
[ "=" ]
=
2d3df858a925cc60c824469990783925594963c8
1f86353c4740d1b9a118d709e5f94f56570127b0
/bgp/appbgp/main.py
a56a796710a8d72147061ada7339e2151c530f8f
[]
no_license
gswcfl/BGP-v.1
0c6ec0aef69a27ed959bac2984e75682f94cb0c9
9bf0eaa87f50b24bb2ee115a489c9482bb529e3c
refs/heads/master
2021-01-01T19:04:34.795585
2017-07-27T06:30:23
2017-07-27T06:30:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,759
py
#!/usr/bin/env python #-*- coding:utf-8 -*- import MySQLdb import os import commands import pexpect import telnetlib import time import threading import sys sys.path.append(os.path.dirname(os.path.abspath('__file__'))) from huawei_h3c_ssh import huawei_h3c_ssh from huawei_h3c_telnet import huawei_h3c_telnet from FiberH...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
ccd817fac9a6c0e11148d92497b0f5a6c2934cb8
cdbea65d6127779075759bf30ba2cd97d2feb3bc
/petstagram/accounts/migrations/0001_initial.py
a1d63cc03012845babc42670df6fb87da874de1c
[ "MIT" ]
permissive
DimAntDim/SoftUni_Petstagram_Workshop
9285bbded707d0ef5d467314ebcba1a7df69b370
b4d6da5fa0d19de4b434046d0b7c73a40c8343b5
refs/heads/main
2023-08-21T10:21:37.328351
2021-11-01T10:17:16
2021-11-01T10:17:16
375,528,481
0
0
null
null
null
null
UTF-8
Python
false
false
1,530
py
# Generated by Django 3.2.3 on 2021-07-19 15:25 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='PetstagramUs...
[ "66394357+DimAntDim@users.noreply.github.com" ]
66394357+DimAntDim@users.noreply.github.com
1cc53a307474feed659f6c0dba91367c367f464a
1a1d61424d83663318b8f1ba30712538680a135a
/apps/payinfo/migrations/0003_auto_20181130_2120.py
c7c3df32d3bce51fd10c0d3036e65cc70133f6d8
[]
no_license
htzs12/django_online
411ba5c4a20544a07ce6a644306b1c127e6311be
5c9c2a1a742d3dd97a430651f2bd14012f6eb3a2
refs/heads/master
2022-12-24T15:11:39.747641
2018-12-01T13:46:39
2018-12-01T13:46:39
154,823,539
0
0
null
2022-12-02T15:19:33
2018-10-26T11:23:21
Python
UTF-8
Python
false
false
412
py
# Generated by Django 2.0.5 on 2018-11-30 13:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('payinfo', '0002_auto_20181130_2118'), ] operations = [ migrations.AlterField( model_name='payinfo', name='path', ...
[ "www.htzs@qq.com" ]
www.htzs@qq.com
0493b6b20bc6c75d3b668bdb0e66d23160bc5ba8
80e1a973c97c13fd63afc347409ca0d7fcff2795
/pic/migrations/0004_images_date_posted.py
bb27ab1575016f858bc4cf761dbe6a5113d41c84
[]
no_license
prathmesh2048/cyberboxer-assignment
d22584f60870560d4fd1cc7b62bfe8b377b55a3c
c0eb91e289b72f7f254a072d7d166ac42076859d
refs/heads/master
2023-08-11T10:19:49.315590
2021-09-19T09:10:00
2021-09-19T09:10:00
408,081,529
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
# Generated by Django 3.2.7 on 2021-09-18 19:38 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('pic', '0003_alter_images_image_name'), ] operations = [ migrations.AddField( model_name='images', ...
[ "prathmeshnandurkar123@gmail.com" ]
prathmeshnandurkar123@gmail.com
ab2c950a36542bbe73a995c6ffa86c89825b1586
f062d7c7146e7cd98cda5ebe7f0f2d591f55a309
/backend/testcg_dev_8072/settings.py
b363528b9797c312c706df34edaccebd9ee3f903
[]
no_license
crowdbotics-apps/testcg-dev-8072
0836821bc0973a17040631b75f5c3fd7b9ba8f4e
54e6e21ff0453e7be1588f51459f678b598d9325
refs/heads/master
2022-11-19T07:06:05.366542
2020-07-23T19:02:47
2020-07-23T19:02:47
282,033,175
0
0
null
null
null
null
UTF-8
Python
false
false
5,901
py
""" Django settings for testcg_dev_8072 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/ """ impo...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
c616242aab638f27aa212ca80de8c1162b0f3f38
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/2d0891e0897159d0010afa9be18d1421fcab47c2-<get_device_facts>-fix.py
561f9e445087fabeb1ba7535484f2e8f2b8bf73f
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,938
py
def get_device_facts(self): device_facts = { } device_facts['devices'] = { } lspci = self.module.get_bin_path('lspci') if lspci: (rc, pcidata, err) = self.module.run_command([lspci, '-D'], errors='surrogate_then_replace') else: pcidata = None try: ...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
27fa27939f9f0ed47d071348ff6a30e7f3939e4b
6045f8519065f17b9d832a8e051723a520b58e3c
/09. Volleyball.py
adb6b6ba2810dd04ef0de6ab78c52138001659bf
[]
no_license
a-angeliev/Python-Fundamentals-SoftUni
a308a6c94eb705a3319f6e081543c1cad0b1b37d
a9a5eba0376ebc7395daeda527408d1e59d58316
refs/heads/master
2023-07-19T05:55:28.104160
2021-09-11T18:25:58
2021-09-11T18:25:58
399,575,767
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
from math import floor year = input() holydays = int(input()) selo_weekends = int(input()) sofia_weekends = (48 - selo_weekends) * 3/4 sofia_weekends_p = sofia_weekends holydays_p = holydays* 2/3 if year == "leap": all_game = (sofia_weekends_p + holydays_p+selo_weekends)*115/100 else: all_game = sofia_weekends...
[ "nachko01@gmail.com" ]
nachko01@gmail.com
a4bc595b22f210716af0ffe15d947d0da8517d34
b68fea9d645de59ee31da970d3dc435460fde9de
/exercise/__init__.py
97d19822dd916b50911cb1201bb3b888c295e0b9
[ "BSD-3-Clause" ]
permissive
shagun30/djambala-2
03fde4d1a5b2a17fce1b44f63a489c30d0d9c028
06f14e3dd237d7ebf535c62172cfe238c3934f4d
refs/heads/master
2021-01-10T04:20:30.735479
2008-05-22T05:02:08
2008-05-22T05:02:08
54,959,603
0
0
null
null
null
null
UTF-8
Python
false
false
253
py
""" /dms/exercise/ Aufgaben mit Abgabemoeglichkeit innerhalb des Django Content Management Systems Hans Rauch hans.rauch@gmx.net Die Programme des dms-Systems koennen frei genutzt und den spezifischen Beduerfnissen entsprechend angepasst werden. """
[ "hans.rauch@gmx.net" ]
hans.rauch@gmx.net
05fbc00b1e537495eebafabde55fad0c2743994b
cb61ba31b27b232ebc8c802d7ca40c72bcdfe152
/leetcode/3. Longest Substring Without Repeating Characters/soln.py
b6def6444faec318c2e67438c047fdc782f1f20e
[ "Apache-2.0" ]
permissive
saisankargochhayat/algo_quest
c7c48187c76b5cd7c2ec3f0557432606e9096241
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
refs/heads/master
2021-07-04T15:21:33.606174
2021-02-07T23:42:43
2021-02-07T23:42:43
67,831,927
5
1
Apache-2.0
2019-10-28T03:51:03
2016-09-09T20:51:29
Python
UTF-8
Python
false
false
785
py
class Solution: def lengthOfLongestSubstring(self, s: str) -> int: from collections import defaultdict c_chars = defaultdict(int) l, r, res = 0, 0, 0 contract = False while r < len(s): # Expand if s[r] in c_chars and c_chars[s[r]] > 0: # check if cont...
[ "saisankargochhayat@gmail.com" ]
saisankargochhayat@gmail.com
5185c854bd919b0d68828945beeb75f2093739f9
78ac05658a95cc15fee374aeccef97ff155912b9
/TATSSI/time_series/generator.py
a08e2d52c8884dcf32e0ece2ad0eea3fadef5f03
[]
no_license
rral0/TATSSI
1546d1c7a2ba343f4a68aa1b8c9489014a504337
ace4105a26de6ab257ef3127e58342fbeb975be7
refs/heads/master
2023-04-20T11:24:33.039622
2021-05-18T12:55:48
2021-05-18T12:55:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,076
py
import os from pathlib import Path import gdal import xarray as xr from rasterio import logging as rio_logging import subprocess from collections import namedtuple from datetime import datetime as dt from glob import glob # Import TATSSI utils from TATSSI.input_output.utils import * from .ts_utils import * from TATS...
[ "gerardo.lopezsaldana@assimila.eu" ]
gerardo.lopezsaldana@assimila.eu
8cb7748b4389c09f5172df27555d7538b45545be
5252110b29700692453d59943d243195c2724c84
/tools/rsdet/train_5p.py
b9890eda1aeb865c07b876b36289d9fe2bb7eec6
[ "Apache-2.0" ]
permissive
Karlinik/RotationDetection
7cf3bcc7f5c1ef20ed30c9f24335960e407a6f6d
efd20d56d3964b89fa356e79a052bb53f6ac8ddb
refs/heads/main
2023-08-29T08:26:29.080134
2021-10-19T04:35:32
2021-10-19T04:35:32
422,503,685
0
0
null
null
null
null
UTF-8
Python
false
false
9,719
py
# -*- coding:utf-8 -*- # Author: Xue Yang <yangxue-2019-sjtu@sjtu.edu.cn> # # License: Apache-2.0 license from __future__ import absolute_import from __future__ import print_function from __future__ import division import os import sys import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np ...
[ "yangxue0827@126.com" ]
yangxue0827@126.com
257da03094424402f2f0aa6083bd458537c6060c
ca552cedf457ab4ad455b089f31b9fc13882c2aa
/app/core/migrations/0001_initial.py
678152fef9b44a3515f6e92dd97d1c86f63db474
[ "MIT" ]
permissive
akashjadhav3/django-recipe-app-api
8837f45dbaacf502a57e90f10dca9b936d7eb893
3124c1d6a9c3b8badc02ef9f1a0acb2a779c86dd
refs/heads/master
2023-03-24T13:10:37.909128
2020-08-02T18:07:51
2020-08-02T18:07:51
283,174,460
0
0
MIT
2021-03-19T23:51:08
2020-07-28T10:07:20
Python
UTF-8
Python
false
false
1,709
py
# Generated by Django 2.1.15 on 2020-08-01 15:00 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
d8ad11dced85b9f98cd2e9948220ded7a12f67e4
68a088346090ae4e929c208906b14181da0f92f6
/第一阶段/2. Python01/day03/exercise/04_order.py
ec663c7ecb7258a59854c76da7d2f1df58f90655
[]
no_license
LONG990122/PYTHON
d1530e734ae48416b5f989a4d97bd1d66d165b91
59a2a2a0b033c8ad0cb33d6126c252e9d574eff7
refs/heads/master
2020-07-07T09:38:03.501705
2019-09-23T16:28:31
2019-09-23T16:28:31
203,316,565
0
0
null
2019-10-23T15:02:33
2019-08-20T06:47:44
HTML
UTF-8
Python
false
false
270
py
# 1. 写一个程序,输入一段字符串,如果字符串不为 # 空,则把第一个字符的编码打印出来 s = input("请输入一段字符串: ") if s != '': # code = ord('s') code = ord(s[0]) print('第一个字符的编码是:', code)
[ "54302090+LONG990122@users.noreply.github.com" ]
54302090+LONG990122@users.noreply.github.com
702fc0631f68e8c5ce509203a5dfb60626bb656f
210ecd63113ce90c5f09bc2b09db3e80ff98117a
/AbletonX1Mk2/APC40/TransportComponent.py
33d1f976439e8a980d7df0f90542991af7714aed
[]
no_license
ajasver/MidiScripts
86a765b8568657633305541c46ccc1fd1ea34501
f727a2e63c95a9c5e980a0738deb0049363ba536
refs/heads/master
2021-01-13T02:03:55.078132
2015-07-16T18:27:30
2015-07-16T18:27:30
38,516,112
4
1
null
null
null
null
UTF-8
Python
false
false
1,954
py
#Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_64_static/midi-remote-scripts/APC40/TransportComponent.py import Live from _Framework.Control import ButtonControl from _Framework.TransportComponent import TransportComponent as TransportComponentBase from _Framework.SubjectSlot import subject_slo...
[ "admin@scoopler.com" ]
admin@scoopler.com
a5d637c2475a685c654bafa50d05cf531743adfe
bb3ae8193289e98e01bea265646f7c77f20558af
/venv/Scripts/pisa-script.py
30f2451464da560f085e14fd18b91fdb2fbe6889
[]
no_license
chrisstianandres/almacen_yamaha
4edbbc827bba7143f466d11c066e522cb8357b25
711096cd958e92cb6ec9423730a92120ac614337
refs/heads/master
2023-05-13T14:15:30.184461
2021-06-07T15:02:46
2021-06-07T15:02:46
370,217,067
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
#!D:\PycharmProjects\almacen_yamaha\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'xhtml2pdf==0.2.5','console_scripts','pisa' __requires__ = 'xhtml2pdf==0.2.5' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys....
[ "chrisstianandres@gmail.com" ]
chrisstianandres@gmail.com