blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
27bb58ea731197cadd74122bc2818fb29224ab4e
90d9610ab5a878966868858b1b261cb6be5f6f97
/test/parser_test/log_line_test.py
e817f891780930044bfe3b69da50f507a998eeec
[]
no_license
torbjoernk/pfasst_py
fd4c68cd63592feca8c811b9d994c66a470b541c
9309734a41a17ff0e617a242d1c8ebfd75a89698
refs/heads/master
2021-01-10T01:55:54.256722
2015-11-04T13:07:22
2015-11-04T13:07:22
45,114,179
0
0
null
null
null
null
UTF-8
Python
false
false
2,411
py
# coding=utf-8 """ .. moduleauthor:: Torbjörn Klatt <[email protected]> """ import datetime import unittest from pfasst_py.parser.log_line import LogLine class LogLineTest(unittest.TestCase): def setUp(self): self.msg_normal = "04.11.2015 13:51:15,37 [PFASST , INFO , MPI 0] PFASST Prediction st...
5631ee24c00d9fdae2e324a445b848c7cf580bf8
6a898e59343d0b3ea4f9580f489ef76d888b2b7e
/ecommerce/migrations/0010_stock_first_quantity.py
61dafb7c5d1ec221bb519674e006100650c3d362
[]
no_license
oujri/ecommerce
4b08b0316671e24206e810a38728d71c77fdc396
3fd8095dd2ed771a6951ed7fff08ca11ef0b94a1
refs/heads/master
2020-03-19T03:39:36.002373
2018-06-01T22:09:31
2018-06-01T22:09:31
135,749,651
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
# Generated by Django 2.0.4 on 2018-05-05 00:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ecommerce', '0009_auto_20180505_0126'), ] operations = [ migrations.AddField( model_name='stock', name='first_quanti...
ce29c2926f8ae832ab67ad03400bf494c196277d
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/semantic_segmentation/PSPNet/mmcv_replace/version.py
b67226251d80062997136a3247b76992815b9730
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
833
py
# Copyright (c) Open-MMLab. All rights reserved. __version__ = '1.2.7' def parse_version_info(version_str): """Parse a version string into a tuple. Args: version_str (str): The version string. Returns: tuple[int | str]: The version info, e.g., "1.3.0" is parsed into (1, 3, 0...
1da3ef21d2bb5e19ae2f2df7650686cf980d2119
bfa81e9ebd6c394fb7ff27afd063bca6e5cf48c1
/signal_example/apps.py
daa5ee116228405237999efc5ff5f8cee079ea3a
[ "MIT" ]
permissive
bluebamus/django_miscellaneous_book
b0dea3b856323304faca1d41edb8f70f2b8c6455
22e0851b3a07aeef94bb723b334f036ed5c17f72
refs/heads/main
2023-07-09T17:15:56.206762
2021-08-11T10:36:47
2021-08-11T10:36:49
382,425,361
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
from django.apps import AppConfig class SignalExampleConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'signal_example'
ee2c193886ab22514a4005b23ceb595186d0e4bc
c68ca71a3ac9f62063e866ad3fe31be9e265835f
/Pycharm Lab04/grammar.py
fddb105697c460343abfa84e8a7495296a7b1c14
[]
no_license
Victor-Alexandru/Formal-Languages-and-Compiler-Design
971453887c2a83da434f7d622867fd6fd0615592
d36eaf96d200183165c3ebd3a2240e34fcf39e7d
refs/heads/master
2020-08-08T04:54:25.659844
2020-01-13T13:57:05
2020-01-13T13:57:05
213,719,498
0
0
null
null
null
null
UTF-8
Python
false
false
2,867
py
import re import tokenize # # A is defined as G = (N, E, P, S) where: # # N = set of non-terminals # E = set of terminals # P = set of productions # S = starting symbol class Grammar: @staticmethod def parseLine(line): equalPos = line.index('=') rhs = line[equalPos + 1:].strip('\n').strip(' '...
43504cf4ff2a416c1a81d72cfea563b923656089
792cceb9b573fdfff969404ded00448549e4aee7
/overextends/templatetags/overextends_tags.py
590b9e38862dbb754b27974876a34a6e959eeb85
[ "BSD-2-Clause" ]
permissive
stefanw/django-overextends
bdc604bbe84664a844f76d10818630d554925834
be53aaab7d7f9260c58ab22bcba1cf782c6224f3
refs/heads/master
2020-12-30T19:11:22.963138
2012-09-01T04:39:32
2012-09-01T04:39:32
12,434,593
0
0
null
null
null
null
UTF-8
Python
false
false
5,730
py
import os from django import template from django.template import Template, TemplateSyntaxError, TemplateDoesNotExist from django.template.loader_tags import ExtendsNode from django.template.loader import find_template_loader register = template.Library() class OverExtendsNode(ExtendsNode): """ Allows the...
ef3750605dc1ceb4f6039d5fb4f9de3f419c88ba
58119a43f98d2d6387af04521ea6e577a12c3aed
/core/admin.py
66d903c333e89d7d2c21040e1fc567afddea8c5e
[]
no_license
raysandeep/handly-backend
21178b9580c3592d98c4b80bac7cbdcf704d6dba
512767881ad0f04fb7870b8fa31241817aab1fe2
refs/heads/master
2022-12-24T22:34:59.807195
2020-09-29T22:17:43
2020-09-29T22:17:43
267,828,315
0
0
null
2020-05-29T10:16:06
2020-05-29T10:16:04
null
UTF-8
Python
false
false
302
py
from django.contrib import admin from .models import ( Collections, OutputFiles, HandwritingInputLogger, InputFile ) # Register your models here. admin.site.register(Collections) admin.site.register(OutputFiles) admin.site.register(HandwritingInputLogger) admin.site.register(InputFile)
1682bd0197cf6a3cb8c7dbd041d629157afe7f2d
317d199d36556ecf5da06c660cb5cb655a86ea09
/Challenges/lisas_workbook/test_lisas_worbook.py
cc41dc87422cb6364030a186007bf9a595fbeac5
[]
no_license
baubrun/Challenges-PY
e109126a64a20128202e03c2ed359c179f523dcd
e2ca45cbca264f5790ce303807e25810a5d8d977
refs/heads/master
2022-12-17T03:24:43.308680
2020-09-14T12:37:24
2020-09-14T12:37:24
262,485,260
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
import pytest from lisas_workbook import workbook @pytest.mark.parametrize("n, k, arr, result", [ (5, 3, [4,2,6,1,10], 4) ] ) def test_workbook(n, k, arr, result): assert workbook(n, k, arr) == result
4c7cc1da3d3db48d74d8801ee92a4e8e292c1dc1
538ca338d88598c1c671c502d03b94781fbebdff
/thriftworker/utils/imports.py
09ebd16a067c8e7e23e570bf62ed703035ec4809
[]
no_license
gdeetotdom/thriftworker
e12c94ac05eebe1b28f157415d3d6072ecf77876
c9b7554845a7f76de2e2076568e2fb779cacdfff
refs/heads/master
2021-01-10T19:22:53.608418
2013-11-11T08:18:59
2013-11-11T08:18:59
5,068,927
1
1
null
2013-11-11T08:19:00
2012-07-16T15:03:37
C
UTF-8
Python
false
false
3,550
py
from __future__ import absolute_import import os import sys import imp import importlib from contextlib import contextmanager import six def symbol_by_name(name, aliases={}, imp=None, package=None, sep='.', default=None, **kwargs): """Get symbol by qualified name. The name should be the ...
52e850e88c68b715b9fff51b8ed2477e68d341f2
79140b67cac1f5c8e3eb3ab3e7ad65a3a98866e8
/test/dnacode.py
a712a7e8dceed824582a9d407ad1ef22a93bd53f
[]
no_license
dlovemore/bible
63c1eceed4a919f7a6d2dfb76b6b084d05c49612
2594a2414a66c0abedd1278fef805415a8793f28
refs/heads/master
2021-01-03T07:17:45.527017
2020-05-16T17:54:18
2020-05-16T17:54:18
239,975,858
0
0
null
null
null
null
UTF-8
Python
false
false
4,549
py
# >>> from dna import * # >>> (Genesis[1]-Genesis[4]).midv() # Genesis 2:22 And the rib, which the LORD God had taken from man, made he a woman, and brought her unto the man. # Genesis 2:23 And Adam said, This is now bone of my bones, and flesh of my flesh: she shall be called Woman, because she was taken out of Man. #...
d0dc44857bee01a251fbea954848bda531caf3e6
857da13a653162cc8c83a7d53a254e2caa97836d
/tensorpac/io.py
2e92c2212e409ac58f510be095da81bbd48b6f8a
[ "BSD-3-Clause" ]
permissive
EtienneCmb/tensorpac
18a5e844826b7f63796276ec435d9dc43c440e40
ac9058fd375d423757943810f613d63785fab85f
refs/heads/master
2023-05-22T16:54:09.656836
2023-02-08T09:42:45
2023-02-08T09:42:45
93,316,276
70
18
BSD-3-Clause
2023-03-08T22:12:03
2017-06-04T13:47:18
Python
UTF-8
Python
false
false
5,546
py
"""Define tensorpac logger. See : https://stackoverflow.com/questions/384076/how-can-i-color-python-logging-output """ import logging import sys import re BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8) RESET_SEQ = "\033[0m" COLOR_SEQ = "\033[1;%dm" BOLD_SEQ = "\033[1m" COLORS = { 'DEBUG': GREEN,...
a5aaebd396700872fe251036dd8234a37d473ff0
c2b777fdd5b92aa4cbd25594b1ea877d6b280fc7
/Max_number_of_zeroes.py
19b4743d441dd8a5da8e493cf03a6223269ea584
[]
no_license
pasbahar/python-practice
2baa09c474fa5744a11dabcc75507f03cd75c6a5
23bcd774becaa720588feb7ba3cf6ea04aafcf86
refs/heads/master
2020-12-04T05:50:40.382790
2020-02-27T17:25:23
2020-02-27T17:25:23
231,641,289
0
0
null
null
null
null
UTF-8
Python
false
false
1,119
py
'''Given an array of N values. Print the number which has maximum number of zeroes. If there are no zeroes then print -1. Note: If there are multiple numbers with same (max) number of zeroes then print the Maximum number among them. Input: The first line of input contains an integer T denoting the number of test case...
72f8e492f29ea42a868c04f17d46f40e698fae2b
b0c8e0cafa4a8916faab3cce65756ae91426c43f
/study/Python/Week3/BOJ_4811_강의현.py
19de46f493609fe6e4c68e9e3a1f45dc0ea0fe68
[]
no_license
Rurril/IT-DA-3rd
b3e3ec3c2a5efbc75b76b84e9002c27a0ba4a1c4
9985e237cb1b90e9609656d534e0ed164723e281
refs/heads/master
2022-07-22T15:26:39.085369
2021-11-23T13:30:06
2021-11-23T13:30:06
288,980,334
3
29
null
2020-11-05T10:25:30
2020-08-20T10:49:17
Java
UTF-8
Python
false
false
451
py
#알약 import sys def pill(W,H): if dp[W][H]>0: return dp[W][H] if W==0: return 1 if W>0 and H==0: dp[W][H]+=pill(W-1,H+1) elif W>0 and H>0: dp[W][H]+=pill(W-1,H+1) dp[W][H]+=pill(W,H-1) return dp[W][H] while True: n=int(sys.stdin.readlin...
f997ff5c8dc2cf41a469ffa1bd14cc67aa74d335
7c5fb33929116bb77b438de3ead93b3978b5af71
/alf/examples/mbrl_pendulum.py
068e609c739320a78caa5b8f2e8628c80e621db8
[ "Apache-2.0" ]
permissive
HorizonRobotics/alf
d6dac891322a81ccb7e2a9749139627b1eda28cb
b00ff2fa5e660de31020338ba340263183fbeaa4
refs/heads/pytorch
2023-08-21T18:51:41.370566
2023-08-16T00:07:22
2023-08-16T00:07:22
178,459,453
288
57
Apache-2.0
2023-09-14T20:40:20
2019-03-29T18:44:07
Python
UTF-8
Python
false
false
1,653
py
# Copyright (c) 2020 Horizon Robotics and ALF Contributors. 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...
673f2d850b90b20a67a00755f8a9e59b28f7324f
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/sagemaker_write_2/human-task-ui_create.py
eebb4a0b6530ac76c1e2b8f1be0de382851e94ff
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,166
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_two_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sagemaker/create-human-task-ui.html if __name__ ...
c78f086df8711a95739b5f59b62912beb82f0281
8574853abe4cfe95b5e03e0b41cf23d1ed865509
/pyqtgraph/ui_mainWindow.py
b5cadc315fd621cf5e8b4cdbaa0e70b6d0df7e37
[]
no_license
neutrons/GUI_Tools
7ae8b90aad2cc1dc129d75618fc820c1c362dcda
34932a86545b9d52b2fa63f01c7950aebde54d78
refs/heads/master
2021-01-17T04:48:06.202029
2016-11-09T18:31:57
2016-11-09T18:31:57
28,240,513
0
0
null
null
null
null
UTF-8
Python
false
false
4,394
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui_mainWindow.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 except AttributeError: def _fromUtf8...
c4c4ad976f5a937b2721e07f86ceec98b86e7c4c
d82d8bce58a64e579e8a5e5d9e3fbc2b5274ea0a
/code/compile_list.py
ad8e5e99242fcfbfab31f7d23f459ca752478fb6
[]
no_license
annayqho/IcBL-master-list
2f58ad8fa092296d0c999dcca8b7700cb8f41ef7
c9d3884411fbdcb6f607ac76af72e5625a4266ba
refs/heads/master
2021-07-19T19:22:06.205001
2020-05-14T23:50:26
2020-05-14T23:50:26
163,516,921
0
0
null
null
null
null
UTF-8
Python
false
false
7,091
py
""" Compile a list of Ic-BL SNe """ import numpy as np import requests from astropy.table import Table from astropy.time import Time from astropy.coordinates import SkyCoord,Distance from astropy.cosmology import Planck15 from astropy.io import ascii DATA_DIR = "/Users/annaho/Dropbox/Projects/Research/IcBL/data" d...
c36c23782d5de4c8d32ff18fa5c495be5c8bbb9e
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/eventhub/azure-mgmt-eventhub/generated_samples/private_link_resources_get.py
09d9cb10ccc2b1df74331b0170522555e172219b
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
1,568
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 ...
c3f9cd65dcb33f02e8541e83d77676f71f7713de
764e24bf9e8a4d68b3f06eb0e0b9e6c9140e72ba
/Deportes/Evento/form.py
c244a680e74e5c3e074d3387faf9f55f1eb7b198
[]
no_license
efnaranjo6/Deportes
27200d30f1f86364ed2d37f76342f63b657a5788
71f22790a8d059516aa35ac325cc9b284979712e
refs/heads/master
2021-03-28T00:09:42.513669
2020-04-27T16:45:41
2020-04-27T16:45:41
247,819,791
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
from django import forms from Evento.models import Evento class Eventoform(forms.ModelForm): class Meta: model = Evento fields = ['nombre'] labels = {'nombre ': 'ingrese el nombre' } widget={'nombre' : forms.TextInput(), } def __init__(self,*ar...
17568aee9cbf26702497d31f6ef8bf6bdd3b0a1c
cf197880ad947b1706ae2ca19fa7010cc2dd12b8
/Algorithms/Chapter2_Fundamentals2/04_Character_Art.py
b26daab9076f8155875eeae2d5c2f620deedb91e
[]
no_license
KevinMichaelCamp/Python-HardWay
9b8adb5be31729da8f52c956b4d0638a79715013
25f21f4fb8934edb13649fea3d5d15033332a7eb
refs/heads/master
2020-03-26T12:59:15.938322
2020-01-02T01:27:37
2020-01-02T01:27:37
144,917,453
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
# From star art - do the same but allow for character to be passed in as argument def drawLeftStars(num, char): text = "" text += char * num text += " " * (75 - num) return text def drawRightStars(num, char): text = "" text += " " * (75 - num) text += char * num return text def drawC...
59f7e0dc619c13fdb4d809743f30f6d88e72df7c
78d35bb7876a3460d4398e1cb3554b06e36c720a
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_08_01/aio/operations/_express_route_ports_locations_operations.py
4f8fd8e9b5f9c43e377a4b1f5bd034b2cdb2c574
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
catchsrinivas/azure-sdk-for-python
e35f59b60318a31b3c940a7a3a07b61b28118aa5
596227a7738a5342274486e30489239d539b11d1
refs/heads/main
2023-08-27T09:08:07.986249
2021-11-11T11:13:35
2021-11-11T11:13:35
427,045,896
0
0
MIT
2021-11-11T15:14:31
2021-11-11T15:14:31
null
UTF-8
Python
false
false
7,901
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 ...
dca9a6c7ed4c4e8ab5c5da27e4c28c00529a590e
0111fa900ae348d9f06a4976567c7f3ab8b82be3
/python/arbolBin.py
fbb13627c7728861f95e3ab72b6201555ab997d2
[]
no_license
apdaza/universidad-ejercicios
4e790f84637f8753a166a5318d21217161cbe0bc
64a02fd7b63e2cd899a91297f652e2351ccbce2f
refs/heads/master
2021-09-11T04:59:17.252072
2021-09-04T13:56:04
2021-09-04T13:56:04
86,726,523
6
4
null
null
null
null
UTF-8
Python
false
false
2,849
py
class Nodo(): def __init__(self,val,izq=None,der=None): self.valor = val self.izquierda = izq self.derecha = der def inorden(arbol): if arbol == None: return [] else: return inorden(arbol.izquierda)+[arbol.valor]+inorden(arbol.derecha) def preorden(arbol): if ar...
e329ad301e71e357fe4efbf573cac5c78ea6436d
83c92bdbab514a9630d74d24f91cbd77ec7e33f6
/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/settings/production.py
f8de424d0459cfbb0f1e441344801a9075bcb14b
[]
no_license
dnmellen/cookiecutter-simple-django-sqlite
2874f890858aac2bac923d22b03c702c93a5ee0f
51b5128b6335acc464b572fec34f5c75427d97d0
refs/heads/master
2021-01-23T23:51:56.699451
2013-09-26T10:34:46
2013-09-26T10:34:46
13,118,893
4
0
null
null
null
null
UTF-8
Python
false
false
155
py
from .base import * DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('{{cookiecutter.author_name}}', '{{cookiecutter.email}}'), ) MANAGERS = ADMINS
900763796b0f0666b1b4561b359127ee4227b144
799f7938856a320423625c6a6a3881eacdd0e039
/lldb/test/API/lang/cpp/class-template-type-parameter-pack/TestClassTemplateTypeParameterPack.py
88beac18e891abbb7f08e342f38989c7c35f5851
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
shabalind/llvm-project
3b90d1d8f140efe1b4f32390f68218c02c95d474
d06e94031bcdfa43512bf7b0cdfd4b4bad3ca4e1
refs/heads/main
2022-10-18T04:13:17.818838
2021-02-04T13:06:43
2021-02-04T14:23:33
237,532,515
0
0
Apache-2.0
2020-01-31T23:17:24
2020-01-31T23:17:23
null
UTF-8
Python
false
false
4,146
py
import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestCaseClassTemplateTypeParameterPack(TestBase): mydir = TestBase.compute_mydir(__file__) @expectedFailureAll(oslist=["windows"]) # Fails to read memory from target. @no_de...
dc244dc98111c4d6ce264ef5fb440adca03a7d4b
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/3413.py
2e81c2d19b8f1f7dccafdf9a831f4d28676309e6
[]
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
2,232
py
import sys def switcher(string , num): final_string = '' if len(string) < num: return False for element in string: if element == '-' and num > 0: final_string = final_string + '+' elif element == '+' and num > 0: final_string = final_strin...
bbb9ab49c765200446265a8b66843165bf662912
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/c8697a4864f95672c58598eff207548b0bcc63e5-<__init__>-bug.py
f1f08670f92375243709b5a78775622ba949683e
[]
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
776
py
def __init__(self, argument_spec): self.spec = argument_spec self.module = None self.init_module() self.interface = self.module.params['interface'] self.mode = self.module.params['mode'] self.state = self.module.params['state'] self.access_vlan = self.module.params['access_vlan'] self.na...
3eae3203390b548511b0f67aaa046b3793f0e674
caace044baf7a6f2b0bda65ae361eed06bddfc3c
/dailyQuestion/2020/2020-05/05-30/python/solution_mono_stack.py
c291e66a6dccdffb17a62db905e6b0ac18ddf515
[ "Apache-2.0" ]
permissive
russellgao/algorithm
fd6126e89c40d7d351c53bbd5fde690c9be899ef
ad5e724d20a8492b8eba03fc0f24e4ff5964b3ea
refs/heads/master
2023-03-28T03:00:02.370660
2021-03-28T10:56:38
2021-03-28T10:56:38
259,038,372
3
0
null
null
null
null
UTF-8
Python
false
false
808
py
# 单调栈 def largestRectangleArea(heights: [int]) -> int: n = len(heights) left, right = [0] * n, [0] * n mono_stack = [] for i in range(n): while mono_stack and heights[mono_stack[-1]] >= heights[i]: mono_stack.pop() left[i] = mono_stack[-1] if mono_stack else -1 mono_s...
d65b720c7fe482af48ba1cb8dacd00f00571ed21
dfffc423a768475e680f954e3eea6c944df965d5
/main.py
72aba8f9dea35dccd8ba3daf532a91ab0b87e329
[]
no_license
ssfdust/wechatheadless
13948ea86cfd7cb71d6cdea74fc4931b4d111843
544a8a74c5adcabb35b0828b52de49df43f222e1
refs/heads/master
2023-05-10T05:29:29.290177
2021-06-01T02:57:34
2021-06-01T02:57:34
372,156,803
0
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
from selenium import webdriver from pathlib import Path from selenium.webdriver.firefox.options import Options from time import sleep from selenium.common.exceptions import NoSuchElementException import os url_prefix = os.environ.get("INJECTOR_URL_PREFIX", "https://127.0.0.1") injectjs = f""" var script = document.cr...
1c81599ad7026475eacd7d54f0fd2ea3bc926b78
6d8a42478faa8eedb7efcc60aeeeb3d34beb0fab
/lottery/models.py
adaf021fcbdd7f4206fbfd81fd8b4c07efa1f61a
[]
no_license
zjleifeng/lottery
7509c45d39e71f3e47c4ffed18723335888a3c96
bb6e7ba9acff0659a82d431bee17a2c6f7c65731
refs/heads/master
2020-04-11T11:00:44.328193
2018-07-05T15:47:14
2018-07-05T15:47:14
77,206,353
0
0
null
null
null
null
UTF-8
Python
false
false
1,407
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2016/12/8 12:35 # @Author : eric # @Site : # @File : models.py # @Software: PyCharm from django.db import models # Create your models here. class Person(models.Model): name=models.CharField(max_length=50,verbose_name=u'姓名') tel=models.BigInte...
8b9d544b0d8141bf0019d1b34f8dda0b58913596
83686519904694228204a481aa949ded7b4f65f8
/Python/python_stack/Django/JDsTruckTracker/apps/truck_tracker/urls.py
3580bb4c4738300c450ae5a810b1e56a2aebd98a
[]
no_license
andres121985/DojoAssignments
5621a9253ab5113a5038f62474582a59fec11a27
62f525e8574628c72e01df5725a2495bdeb5d3a9
refs/heads/master
2021-01-23T12:44:48.501795
2017-06-02T18:40:33
2017-06-02T18:40:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index), url(r'^trucks$', views.trucks), url(r'^addtruck$', views.add_truck), url(r'^add$', views.add), url(r'^delete$', views.delete), url(r'^logout$', views.logout), url(r'^login$', views.login), u...
bea3b00a62b7195cd1722b1ab7beea5807b6cd01
ea94fc6a5c16f3266a7a48b005b3f10fef92c845
/src/maths/nodes/ListNode.py
90819c6904b829984f52466b69ed61fda4235ed3
[ "MIT" ]
permissive
Grahack/Turing
ea340ee3f3db33a27bdf4a053f34f4c9bec525c3
fad060121d45b91f82af8952dd9f64e5d7bd9ed2
refs/heads/master
2020-03-17T00:49:45.176435
2018-05-11T20:07:11
2018-05-11T20:07:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
774
py
# -*- coding: utf-8 -*- import util.html from util.math import proper_str from .AstNode import * class ListNode(AstNode): """Identifier node value -- value (list of AstNode)""" value = None def __init__(self, value: List[AstNode]): super().__init__(True) self.value = value def ...
2269e3f344eb0175a3534a568e2586a9132d6e67
2db5bf5832ddb99e93bb949ace1fad1fde847319
/beginLearn/AndrewNg/exercise/c2/L_layer_network.py
64efd67d5e58e163209f4e2f658bd28b8d10c20c
[]
no_license
RoderickAdriance/PythonDemo
2d92b9aa66fcd77b6f797e865df77fbc8c2bcd14
98b124fecd3a972d7bc46661c6a7de8787b8e761
refs/heads/master
2020-04-06T17:36:46.000133
2018-11-15T07:07:03
2018-11-15T07:07:03
157,666,809
0
0
null
null
null
null
UTF-8
Python
false
false
1,408
py
import time import numpy as np import h5py import matplotlib.pyplot as plt import scipy from PIL import Image from scipy import ndimage from exercise.c6.dnn_app_utils_v2 import * def L_layer_model(X, Y, layers_dims, learning_rate=0.0075, num_iterations=3000, print_cost=False): """ Implements a L-layer neu...
fe8925b066e6f71c81f76db9c4cfec33be3c51fa
f22778fb83b4723dd3dbc26834a8475c4b8c442c
/nana_utils.py
d10f46774c1b1861c6af2babc1c15319ef167d3d
[]
no_license
innovationgarage/deprecated-PortPollution-AISreduction-dask
070b3011b505de74b2126b83fa93a7bb0eace84c
d66cfa96529f54a6f12faa39560beab10d7ef5a8
refs/heads/master
2020-04-01T15:10:53.598911
2018-10-25T07:38:47
2018-10-25T07:38:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
import dask.distributed, distributed.client, dask.bag, daskutils.io.msgpack, daskutils.base, os.path, uuid, msgpack, daskutils.sort #client = dask.distributed.Client('ymslanda.innovationgarage.tech:8786') data = [uuid.uuid4().hex for a in range(0, 100000)] s = daskutils.sort.MergeSort("/tmp/") res = s.sort(dask.bag.fr...
339a75ee64661331f4a5fd9250006afbdd1e8c4c
1c390cd4fd3605046914767485b49a929198b470
/leetcode/partition-equal-subset-sum.py
6cceb12902e683d1ba9985b592a5f627bf4f9821
[]
no_license
wwwwodddd/Zukunft
f87fe736b53506f69ab18db674311dd60de04a43
03ffffee9a76e99f6e00bba6dbae91abc6994a34
refs/heads/master
2023-01-24T06:14:35.691292
2023-01-21T15:42:32
2023-01-21T15:42:32
163,685,977
7
8
null
null
null
null
UTF-8
Python
false
false
309
py
class Solution: def canPartition(self, a: List[int]) -> bool: s = sum(a) if s % 2: return False f = [0 for i in range(s + 1)] f[0] = 1 for i in a: for j in range(i, s + 1)[::-1]: f[j] |= f[j - i] return f[s // 2] == 1
ef7a98380f2dc3cb9f4e993171957dd70c6761f7
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/scatter3d/error_x/_value.py
db1f336f929396b215dbe5a268a8760d26d12b9a
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
434
py
import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='value', parent_name='scatter3d.error_x', **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=pare...
e000f3f97c731836cb809f51e139ba47ba132579
ddf002d1084d5c63842a6f42471f890a449966ee
/basics/Python/Recursion/recursion_factorial.py
09684087ef55e781859db5daf3d5512e54a8269a
[]
no_license
RaghavJindal2000/Python
0ab3f198cbc5559bdf46ac259c7136356f7f09aa
8e5c646585cff28ba3ad9bd6c384bcb5537d671a
refs/heads/master
2023-01-01T23:56:02.073029
2020-10-18T19:30:01
2020-10-18T19:30:01
263,262,452
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
def fact(n): if(n<=0): return 1 else: return n*fact(n-1) n=int(input("Enter the Number : ")) print("Factorial of ",n," is = ",fact(n)) input()
f928f4e34606749623dbabda74342d7c8d15021e
56fd2d92b8327cfb7d8f95b89c52e1700343b726
/examples/notebooks/rebalance_etfs/strategy.py
d5636616438b0a536a14bc605986acb7f768e20f
[ "MIT" ]
permissive
stjordanis/Odin
fecb640ccf4f2e6eb139389d25cbe37da334cdb6
e2e9d638c68947d24f1260d35a3527dd84c2523f
refs/heads/master
2020-04-15T09:13:17.850126
2017-02-09T00:25:55
2017-02-09T00:25:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,193
py
import pandas as pd from odin.strategy import AbstractStrategy from odin.strategy.templates import BuyAndHoldStrategy from odin.utilities.mixins.strategy_mixins import ( LongStrategyMixin, TotalSellProportionMixin, AlwaysBuyIndicatorMixin, NeverSellIndicatorMixin, DefaultPriorityMixin, DefaultFe...
8ad8780e0d55bc33de20a87a14f2635eba86d737
dfcd2ab21b4b87b15a908cae58650eb8f4e34539
/accounts/views.py
542b21c365142be1d526953ce0c17e0b83451680
[]
no_license
janak29292/esnayproductions
29a73eb064165e80a4729cf4b26095cb6dfb09f1
762dfa02630668ed97f86760c3b20824cf89d6b2
refs/heads/master
2023-02-27T23:10:44.697353
2021-02-06T09:44:04
2021-02-06T09:44:04
325,578,763
0
0
null
null
null
null
UTF-8
Python
false
false
1,932
py
from django.http import Http404 from django.shortcuts import render # Create your views here. from accounts.models import Team, Portfolio, PortfolioCategory, Blog def index(request, *args, **kwargs): team_players = Team.objects.all() portfolios = Portfolio.objects.filter(active=True)[:11] cat...
bef0ca1abde4a21dfb30146a13f94cc01fc77e1e
1c40a5b1e7ffb7ffed2cfe831c1686aa4af82284
/omm/analysis/aes/aes_excel_bio.py
f4ccead5ecbb61b5ce170fb185f60b30a91a0d48
[]
no_license
rhodges/oregon-marinemap
3c4bb3c13f15ec5f2efd405b0006c8a85d3b42b0
4a3797f507a48fd158be5f751fa0ca8c24a47cb7
refs/heads/master
2016-09-05T17:49:44.702600
2011-11-04T15:56:18
2011-11-04T15:56:18
32,354,262
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
import xlwt from analysis.excel.utils import major_heading_style from analysis.excel.biology import bio_terrestrial_headers, bio_terrestrial_data, bio_intertidal_headers, bio_intertidal_data, bio_subtidal_headers, bio_subtidal_data def populate_bio_sheet(ws, context): bio_header(ws, context) bio_terrestrial_he...
1001396875ee79948e767bf2febdfa60c88bc214
f8b36ef6debb317e7213346b11df932eb3b6af35
/winner's code/2nd_code.py
10725b67993d69c10ebc395d4d75d088bba13d60
[]
no_license
YoungriKIM/lotte
ec767eb5eaa8f13f38115f1c30d25ed5bac7ef2b
e3ceda9918210ee418269d1586ec200ce9d9ca33
refs/heads/main
2023-03-30T15:44:00.387934
2021-03-29T13:16:44
2021-03-29T13:16:44
348,300,060
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
# 롯데정보통신 Vision AI 경진대회 - Public LB 2nd place Solution # https://dev-hunmin.tistory.com/entry/%EB%A1%AF%EB%8D%B0%EC%A0%95%EB%B3%B4%ED%86%B5%EC%8B%A0-Vision-AI-%EA%B2%BD%EC%A7%84%EB%8C%80%ED%9A%8C-Public-LB-2nd-place-Solution # 깃허브 # https://github.com/hunmin-hub/LotteVisionAI
e5c47acc73444f8227a478fe41b8fe625e1f7218
8a03b8459902d1bf0806f8d3387fb962bb57cf58
/Testscripts/click_on_crcreports.py
79a662d8d429268a4b00cb60ea7b5510f66d6cd5
[]
no_license
chetandg123/cQube
f95a0e86b1e98cb418de209ad26ae2ba463cfcbc
a862a1cdf46faaaff5cad49d78c4e5f0454a6407
refs/heads/master
2022-07-18T12:43:06.839896
2020-05-22T13:23:52
2020-05-22T13:23:52
258,089,042
0
0
null
2020-05-08T16:28:26
2020-04-23T03:55:52
HTML
UTF-8
Python
false
false
1,033
py
import time import unittest from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.support.select import Select # script to click on crc reports from Data.Paramters import Data class CRC(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome(Data....
463fb4daf35270c14d78f343872184d855614ad0
6f562994c50361ceebe1e806653ff329ce2ea06c
/Code/mar_14/page2.py
e0e722b06740c8badb19c5b166e00c69b04025a5
[]
no_license
ManishaHingne/PythonML
aaef74ca0cab84e7dca0e1e829768e737b4cc7af
17623a0699d3f7719c73fbe8e9f0bef7b69e8aec
refs/heads/master
2020-05-21T15:35:09.785203
2019-05-11T06:21:09
2019-05-11T06:21:09
186,094,739
0
0
null
null
null
null
UTF-8
Python
false
false
142
py
import matplotlib.pyplot as plt x = [1, 2, 3, 4, 5] y = [20, 29, 21, 22, 21] plt.plot(x, y) plt.savefig('./images/chart1.png') # plt.show()
c5962280fb2ab8ba6cb8738531e6d1ec77fdffce
06b2eed882d8d7034fb7c57b648d5aa37d7f617b
/pycharmproject/django-rest/auth_ob/ob1/ob1/wsgi.py
c71ef1ec2bd6bbd96df7e830582e77a0b3fb725d
[]
no_license
1974410167/python_projects
558e2e7a4ea66b083ebd6d2f808b725e1bd153d6
81a97cbf41de12bdc3dbc46edf2931075ac4f758
refs/heads/main
2023-06-22T09:41:22.038620
2023-06-09T15:09:44
2023-06-09T15:09:44
355,036,534
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
""" WSGI config for ob1 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_...
429e24ce3134c6a853d16b512de97706843ab40a
9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c
/baomoicrawl/venv/Lib/site-packages/scrapy/utils/http.py
6e20649f5181a54d6d1787f641e3ac42ad182e66
[]
no_license
thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler
b0fdedee2942a12d9f64dfed93f43802dc5ab340
87c8c07433466bbc43a24ea089f75baeb467c356
refs/heads/master
2022-11-27T21:36:33.917491
2020-08-10T23:24:42
2020-08-10T23:24:42
286,583,216
0
0
null
null
null
null
UTF-8
Python
false
false
956
py
""" Transitional module for moving to the w3lib library. For new code, always import from w3lib.http instead of this module """ import warnings from scrapy.exceptions import ScrapyDeprecationWarning from scrapy.utils.decorators import deprecated from w3lib.http import * # noqa: F401 warnings.warn("Mo...
d24bb4ef7f0abf71c58f7e83c21133ec8c481125
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_4/lxxjin012/ndom.py
3ddda13fca45dc51450355becc52d34ba11c8df0
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
def ndom_to_decimal (a): x=str(a) if len(str(a))==1: digit1=int(str(a)[0])*1 number=digit elif len(str(a))==2: digit2=int(str(a)[0])*6 digit3=int(str(a)[1])*1 number=digit2+digit3 elif len(str(a))==3: digit4=int(str(a)[0])*36 digit5=int(...
1bbd9872d8797ac523e3882012ec1954661bbb15
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/synapse/v20210601preview/list_integration_runtime_auth_key.py
6ba5abeaa2f156a92731038bf8807a01933558a9
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
3,096
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, overload from ... import _utilities __...
dea54118e83a7cbf3499e2efc569d2e35c8355b5
680bd46e8eae20e78a425f766432711a47235374
/models/site_monitor_checkpoint.py
a48c4844c14f12ba8c06fcc5feafa3d14d250fd4
[ "Apache-2.0" ]
permissive
ILMostro/lm-sdk-python
9f45217d64c0fc49caf2f4b279a124c2efe3d24d
40da5812ab4d50dd1c6c3c68f7ea13c4d8f4fb49
refs/heads/master
2022-02-01T16:51:12.810483
2019-07-16T17:54:11
2019-07-16T17:54:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,061
py
# coding: utf-8 """ LogicMonitor REST API LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account...
c751ad79e8fae529b101b6f67f960895117723a7
890c8b8e90e516a5a3880eca9b2d217662fe7d84
/armulator/armv6/opcodes/arm_instruction_set/arm_data_processing_and_miscellaneous_instructions/arm_extra_load_store_instructions/ldrsb_literal_a1.py
5b2ac9460c52668437168816a8f42ea9fd81d9d8
[ "MIT" ]
permissive
doronz88/armulator
b864135996f876c7857b79a314d4aa06cc19c549
0294feac2785c8947e5943ac0c34f941ee4b5fff
refs/heads/master
2022-11-05T08:14:42.405335
2020-06-18T23:53:17
2020-06-18T23:53:17
273,363,061
2
0
null
2020-06-18T23:51:03
2020-06-18T23:51:02
null
UTF-8
Python
false
false
825
py
from armulator.armv6.opcodes.abstract_opcodes.ldrsb_literal import LdrsbLiteral from armulator.armv6.opcodes.opcode import Opcode class LdrsbLiteralA1(LdrsbLiteral, Opcode): def __init__(self, instruction, add, imm32, t): Opcode.__init__(self, instruction) LdrsbLiteral.__init__(self, add, imm32, t...
eab2c83f1f6b77cae668f340fa4e8d50c06049c8
263fb97b6ab614f1e25533ba30b37ef94c0a2e81
/parser/team08/Tytus_SQLPARSER_G8/Instrucciones/FunctionBinaryString/GetByte.py
e8dcc14bd94144d729a4212ee31d0bef1bb7f35c
[ "MIT" ]
permissive
ElbaAlvarez/tytus
f77e57df2338270b331172e270e2e44a94b68d2e
795e660f3005d4fac5cb68af92b178ba1318e96e
refs/heads/main
2023-02-12T08:55:32.347236
2020-12-24T14:00:06
2020-12-24T14:00:06
320,481,467
0
0
MIT
2020-12-11T05:57:41
2020-12-11T05:57:41
null
UTF-8
Python
false
false
459
py
from Instrucciones.TablaSimbolos.Instruccion import Instruccion class GetByte(Instruccion): def __init__(self, valor, tipo, linea, columna): Instruccion.__init__(self,tipo,linea,columna) self.valor = valor def ejecutar(self, tabla, arbol): super().ejecutar(tabla,arbol) bytes(se...
58b4e869b8fbf743ba16b0be22137d18b172cdf6
7d43ba52d958537905cfdde46cc194a97c45dc56
/ProgrammingParadigms/OOP/SOLID/solid_workbook.py
361c598c444742f3305a9a384d65f599a2f7e871
[]
no_license
Koshmatova/workbook
3e4d1f698a01f2be65c1abc83ee251ebc8a6bbcd
902695e8e660689a1730c23790dbdc51737085c9
refs/heads/master
2023-05-01T02:30:46.868027
2021-05-10T03:49:08
2021-05-10T03:49:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,380
py
СТРУКТУРНАЯ ПАРАДИГМА Дейкстра -> ЛЮБОЙ алг можно выразить через 3 способа выбора команд: линейное exe ветвление по усл exe цикла при exe условия #рекомендовал использовать only их Никлаус Вирт -> Алгоритмы + Структуры данных = Программы возможность записать подпрограмму в v ПРИНАДЛЕЖ даже asm ИНКАПСУЛ...
ee0a8b4383627724adac95c5b9fe794045bbd923
2c9db62ddaffd77c097b3da4990021270912ea40
/백준/1966.py
757df2ca0f3b4c3cc1fd65161b5b06dc6f61a950
[]
no_license
nahyun119/algorithm
9ae120fbe047819a74e06fc6879f55405bc9ea71
40e291305a4108266073d489e712787df1dbae4b
refs/heads/master
2023-08-27T23:18:44.133748
2021-10-03T11:32:12
2021-10-03T11:32:12
326,661,962
0
0
null
null
null
null
UTF-8
Python
false
false
971
py
import sys import heapq # -> 기본적으로 min heap이므로 max heap을 구현하려면 우선순위에 -1을 곱한다. from collections import deque input = sys.stdin.readline result = [] def solve(): global result n, m = map(int, input().split()) documents = list(map(int, input().split())) q = deque() answer = [] for i in ran...
615be1b30f756944ef2e0597b47f152d45a6918d
11ca0c393c854fa7212e783a34269f9dae84e8c7
/Python/785. 判断二分图.py
0ac82063c14ffcf55dc1f21b8d60715c5a8a6092
[]
no_license
VictoriqueCQ/LeetCode
dc84d81163eed26fa9dbc2114bba0b5c2ea881f4
a77b3ead157f97f5d9599badb4d4c5da69de44ba
refs/heads/master
2021-06-05T06:40:24.659909
2021-03-31T08:31:51
2021-03-31T08:31:51
97,978,957
0
0
null
null
null
null
UTF-8
Python
false
false
1,622
py
from typing import List import collections class Solution: def isBipartite(self, graph: List[List[int]]) -> bool: n = len(graph) UNCOLORED, RED, GREEN = 0, 1, 2 color = [UNCOLORED] * n for i in range(n): if color[i] == UNCOLORED: q = collections.deque([i]...
[ "1997Victorique0317" ]
1997Victorique0317
54455505d3762eae077685337d9117b9749a5e0a
a7a115b000cd40be9378174777da4f1b56b99de0
/web_crawl_book/demo4.py
18d7d8d1d1b889b512a3291e57c3fc15f15cb7d1
[]
no_license
fireinrain/python_spider
316f7cc230989223e6177c5ba2443eba9b54a52a
364273278efa6629ec7d79f86c2ce54555ff7691
refs/heads/master
2022-06-26T20:38:56.462771
2017-06-27T00:53:42
2017-06-27T00:53:42
60,531,584
1
0
null
null
null
null
UTF-8
Python
false
false
2,024
py
#! /usr/bin/python3 # _encoding:utf-8_ # Written by liuzhaoyang # wcontact:[email protected] from urllib.request import urlopen from bs4 import BeautifulSoup import re import random import datetime import lxml # 获取页面中的所有内链的列表 def get_inter_links(bsobj,include_url): inter_links = [] # 找出所有以/为开头的链接 fo...
7f7037fa21290dcb8418f1c9c2eeb83c713b4296
40d404e424489bb48c3673dee6664de64dbab39c
/myWebsite/.venv/lib/python3.8/site-packages/zope/annotation/attribute.py
5c009ce2b71fbbf979a61e014fc06a8c534ed00c
[]
no_license
alyasamba/me
07c9f5f27aa16f768e0432780ac8f6f5ab6afbd1
978053c867181bad8eb316a0920ba290a7b1ceae
refs/heads/main
2023-01-28T09:57:46.616285
2020-12-02T02:31:25
2020-12-02T02:31:25
315,935,399
1
0
null
null
null
null
UTF-8
Python
false
false
3,466
py
############################################################################## # # Copyright (c) 2001, 2002 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # TH...
98a489879ec8c353e34f3c02e3732f79b32f4943
12a012ace19a14fc2c4ce2daec7a9df94cd5d925
/[1차] 비밀지도.py
00fedf556e4d6eaf4e149b313258d139fa9b2ee1
[]
no_license
newfull5/Programmers
a0a25fd72c0a8a7932122cb72e65b28ecd29ff71
b880a8043427f6aa7dc72caa3e46b1f6584a8962
refs/heads/master
2022-12-28T13:46:52.215347
2022-12-12T13:50:53
2022-12-12T13:50:53
211,209,943
1
0
null
null
null
null
UTF-8
Python
false
false
1,852
py
''' def solution(n, arr1, arr2): answer1 = [] answer2 = [] answer = [] for arr in arr1: if len(bin(arr)[2:]) != n: answer1.append((n - len(bin(arr)[2:]))*'0' + bin(arr)[2:]) else: answer1.append(bin(arr)[2:]) for arr in arr2: if len(bin(arr)[2:]) != ...
445f3536583b311826de4e39ab680a8d10b37ae2
800b5166148d4e3cd03825d7d20e2900fbc6c789
/report_form/migrations/0040_poorpeopledataform_offpoor_year.py
a92d794dfc6987387dfa5eac23d67a0145623cc5
[]
no_license
JiSuPiaoYi/dawufupin
4ffc979a93502eb576776673c98aaeb16021827e
57756a501436fabe9b27ebca2e80e60932da30dc
refs/heads/master
2020-04-07T11:37:35.728108
2018-11-20T09:09:50
2018-11-20T09:09:50
158,334,010
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2018-09-24 11:38 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('report_form', '0039_auto_20180924_0918'), ] operations = [ migrations.AddFi...
747fccee4d243a477338db4e3c8eb9374a0b38f5
53181572c4b22df4b569a9901bcd5347a3459499
/tuit_200202/py200306/review_input.py
15b13efd525e58aa765a21602912b88ef25afaaa
[]
no_license
edu-athensoft/ceit4101python_student
80ef067b77421fce76d04f778d5c6de8b12f676c
33cfa438c062d45e8d246b853e93d3c14b92ff2d
refs/heads/master
2020-07-30T01:04:21.084384
2020-07-27T02:21:57
2020-07-27T02:21:57
210,027,310
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
""" input """ # input() # input("Prompt:") my_input = input("Prompt:") print(type(my_input)) num1 = float(input("Enter a floating number:")) num2 = int(input("Enter an integer"))
5f9451699991e4faaa4b152a2074561f28165aa0
9dfb3372a1e4516d970a6e9d0a9fd8360580eae7
/game/grafics/idea.py
c5d531d74ba20540c8a4411ceb550c78e140ef81
[]
no_license
clambering-goat/cameron_pyton
d1cd0e7b04da14e7ba4f89dcb4d973f297a4626c
df0b0365b86e75cfcfc2c1fc21608f1536a3b79f
refs/heads/master
2021-07-14T20:37:37.021401
2019-02-28T07:52:11
2019-02-28T07:52:11
137,251,669
0
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
import pygame from math import sin,cos,radians,atan,degrees,atanh pygame.init() y_size,x_size=500,500 screen = pygame.display.set_mode((y_size,x_size)) done = False point_to_point_at=pygame.mouse.get_pos() def distamnce(x,y,x2,y2): x_main=x-x2 y_main=y-y2 c=x_main**2+y_main**2 c=c*0.5 pri...
d0dfa176c55af006ba3041061a0a878a1418a113
3eb877ab6d9aba74c63acfc7d9dfe83fe77195ba
/google-cloud-sdk/lib/surface/compute/target_https_proxies/update.py
f648093f60593faf8dd500347de7363742e32be1
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Gilolume/HeuApplication
cd65267e6171277fc50f31a582b6ff6634758209
e48c68ba9bc4f952b7bd5a0ba47f4c810ed56812
refs/heads/master
2022-11-25T06:18:47.892562
2017-11-24T09:21:16
2017-11-24T09:21:16
104,208,662
0
1
null
2020-07-25T12:32:09
2017-09-20T11:47:10
Python
UTF-8
Python
false
false
7,762
py
# Copyright 2014 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 ag...
df3a234e51d43397b86be585b6914f5ef896cd45
832852c679816673f708860929a36a20ca8d3e32
/Configurations/ggH_SF/Full2016_nAODv4/maxDNN/comb_2j_dymvaOptim.py
ddfa9667d553dc87552a9171f6eafc15ee4d708f
[]
no_license
UniMiBAnalyses/PlotsConfigurations
c4ec7376e2757b838930dfb2615e1dc99a64e542
578fe518cfc608169d3418bcb63a8342d3a24390
refs/heads/master
2023-08-31T17:57:45.396325
2022-09-01T10:13:14
2022-09-01T10:13:14
172,092,793
0
13
null
2023-04-27T10:26:52
2019-02-22T15:52:44
Python
UTF-8
Python
false
false
2,545
py
# Combinations to use #comb = {} optim={} ##optim['dymva0p82'] = ' && dymva_dnn_2j > 0.82 ' ##optim['dymva0p83'] = ' && dymva_dnn_2j > 0.83 ' ##optim['dymva0p84'] = ' && dymva_dnn_2j > 0.84 ' #optim['dymva0p845'] = ' && dymva_dnn_2j > 0.845 ' #optim['dymva0p85'] = ' && dymva_dnn_2j > 0.85 ' optim['dymva0p8...
060fce54f0cf1197aa859bd4e882a86f97d1a248
34599596e145555fde0d4264a1d222f951f49051
/pcat2py/class/20fab7f2-5cc5-11e4-af55-00155d01fe08.py
65e06e5eb7d8192e2b4c7cd3f1cdffd123911b50
[ "MIT" ]
permissive
phnomcobra/PCAT2PY
dc2fcbee142ce442e53da08476bfe4e68619346d
937c3b365cdc5ac69b78f59070be0a21bdb53db0
refs/heads/master
2021-01-11T02:23:30.669168
2018-02-13T17:04:03
2018-02-13T17:04:03
70,970,520
0
0
null
null
null
null
UTF-8
Python
false
false
1,393
py
#!/usr/bin/python ################################################################################ # 20fab7f2-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # [email protected] # [email protected] # # 10/24/2014 Original Construction ################################################################...
90780ca6d62b27da11a6b61560c01714020dd63d
d1ed040025811cce2533a7e55737eadc00bd15a9
/shop/widgets.py
84e21750c6450f92f338c5ecc50bc5985e6503d3
[]
no_license
Code-Institute-Submissions/guillermo
0dfa6aecab3e325c5bd30356557b710da6851deb
c6def675ac78e88fd20c86f59498d9251cf302a7
refs/heads/master
2023-01-15T11:38:35.306745
2020-11-10T21:09:41
2020-11-10T21:09:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
from django.forms.widgets import ClearableFileInput from django.utils.translation import gettext_lazy as _ class CustomClearableFileInput(ClearableFileInput): """ Shows thumbnail of current image and checkbox to remove it. """ clear_checkbox_label = _("Remove") initial_text = _("Current Image") ...
a99e6f4b0b71c257b8c163c1c1cf93f0172adcd4
07570ec33eb49effd9ed6af73214bac1b607038f
/client/swagger_client/models/domain_list.py
4c04cf18e0a3344618f96b8efcd04ad9b132fceb
[ "MIT" ]
permissive
kakwa/certascale
d9998a66ba6a239ba5b5e537f12dabdd5876996c
0df8da0f518506500117152fd0e28ee3286949af
refs/heads/master
2020-03-29T09:24:32.794060
2019-01-30T14:06:10
2019-01-30T14:06:10
149,756,729
0
2
null
null
null
null
UTF-8
Python
false
false
3,538
py
# coding: utf-8 """ certascale API Certascale API documentation # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from swagger_client.models.domain import Domain # noqa: F401,E501 ...
c85f6d190b977c7efe18e3b3eafff96dd5697bcc
32ce121ca829a50fd4786b2c1470c25ccb980487
/examples/subscribe_1.py
9d17f9d0bf71c69ef3763322b770cc44aad7bbeb
[ "MIT" ]
permissive
py-zoid/harmony
5aa42b0665a8624627a3ed2d7271847f2a3df7b6
8a94b253c36302ee6d52fd2a0748e6b91879bbef
refs/heads/main
2023-06-23T08:15:28.610600
2021-05-30T01:40:04
2021-05-30T01:40:04
387,935,695
3
0
MIT
2021-07-20T23:16:23
2021-07-20T23:16:22
null
UTF-8
Python
false
false
736
py
#!/usr/bin/python3 from python_graphql_client import GraphqlClient from json import dumps import asyncio def prettyPrint(data): print(dumps(data, sort_keys=True, indent=2)) try: client = GraphqlClient(endpoint="ws://localhost:7000/v1/graphql") query = """ subscription { newPendin...
0b393a21f7951461e0b7dc197f6ee0790223b2a5
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/head_father/thing_end/question_water_right/fact.py
d42798930b1c8ad06369f29d10e59c00e1537245
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
4,391
py
using CategoriesPOC.TranslatorService; using System; using System.Net; using System.Net.Http; using System.Threading.Tasks; namespace CategoriesPOC.Helpers { public static class TranslatorHelper { private const string SubscriptionKey = "ec5892dd4dbc7efdd4227cd0291300f5"; //Enter here the Key from yo...
c82533b14aad2bc70cb7f0d32c0a011ac1ba5058
98810fbf90a42028915a88bfac9fb8cb8681008e
/azure-devops/azext_devops/devops_sdk/v6_0/token_administration/__init__.py
d0c5658b8f53ee15939375e036f993b970fc95b2
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-unicode", "LGPL-3.0-only", "LicenseRef-scancode-warranty-disclaimer", "PSF-2.0", "PostgreSQL", "LicenseRef-scancode-python-cwi", "LGPL-2.1-or-later", "LicenseRef-scancode-proprietary-license", "LGPL-2.1-only", "C...
permissive
Azure/azure-devops-cli-extension
ba87357a8243e1318f100791fc32acbb59448d05
bd34a6fd0658a15dadf6c09c7f6217ca5ffa662b
refs/heads/master
2023-08-29T10:56:54.228674
2023-07-17T04:37:06
2023-07-17T04:37:06
107,708,057
419
208
MIT
2023-08-02T02:10:10
2017-10-20T17:39:11
Python
UTF-8
Python
false
false
815
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------...
d9891b24891a2da8e8a76e6058e6a19b83a963c5
ef5f369a8fb3978dbb57cdab2c0f83880fa43c36
/amatino/tests/primary/entity.py
c47f450533c5f4325bdca50830a582096037333a
[ "MIT" ]
permissive
pypi-buildability-project/amatino-python
c8a93c849d9e97ea907d411511a0c732ee51b29e
9178e0883b735f882729c19a7a68df68b49e057b
refs/heads/master
2022-07-19T12:24:06.587840
2020-05-21T05:28:08
2020-05-21T05:28:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,034
py
""" Amatino API Python Bindings Entity Test Module Author: [email protected] """ from amatino.entity import Entity from amatino.tests.ancillary.session import SessionTest from amatino import Session class EntityTest(SessionTest): """ Test the Entity primary object """ def __init__(self, name='Create, r...
29eb2562ec4c47d302e9848afa25bb9fe02ea5ef
380848070205bf5cb119071eb2b32e98caca0253
/two by two/convo.py
e7e591289ce9079002f4202d804241a043f07220
[]
no_license
qynglang/Algorithm-intelligence
a3b3720ec8f2475457875d38cdde858c1805e910
8e410b87cea6abd18a8bcd45ed89cb5f436748b3
refs/heads/master
2020-07-03T03:30:53.923930
2019-09-17T09:25:21
2019-09-17T09:25:21
201,769,566
0
0
null
null
null
null
UTF-8
Python
false
false
1,434
py
# Create some wrappers for simplicity import tensorflow as tf def conv2d(x, W, strides=1): # Conv2D wrapper, with bias and relu activation x = tf.nn.conv2d(x, W, strides=[1, strides, strides, 1], padding='SAME') #x = tf.nn.bias_add(x, b) return tf.nn.relu(x) def maxpool2d(x, k=2): # MaxPool2D wrapp...
1e4bee103070178cb11759b33a9988d636e01631
bf26ed0b9ef5a6d846df05a748dcc7d4799f1164
/chapter-2/bhp.py
030e9f74b45e2cd6fb2c75dd983a94d776a09543
[]
no_license
cornh0lio/blackhat-python
41cd694c845c982ff3384a3620017e64a799afe8
b1373b759435cc50a53ce7b05bca906523c924b9
refs/heads/master
2021-06-15T20:04:46.897711
2017-01-16T15:46:38
2017-01-16T15:46:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,874
py
import sys import socket import getopt import threading import subprocess # define some global variables listen = False command = False upload = False execute = "" target = "" upload_destination = "" port = 0 # Print the help for the tool def usage(): print "BHP Net Tool" print print "Usage: bhp.py -t <ta...
3a446d64643255b8eed4cfce2ad8f4db60a1e0f3
48d0cfbe1ba313740a94ef75f25e685bbc8aa7f6
/santa/content/tests/base.py
cc92b8a7faf8d2364a79342c3604ce91a1dbb1af
[]
no_license
taito-zz/santa.content
72995e455b3ceec7842fc5923a607ba5963268cd
dd497f48918212c61bd429e1e7130a9b1c4620f5
refs/heads/master
2021-05-27T14:58:47.513815
2012-10-30T19:10:14
2012-10-30T19:10:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,326
py
from plone.app.testing import FunctionalTesting from plone.app.testing import IntegrationTesting from plone.app.testing import PLONE_FIXTURE from plone.app.testing import PloneSandboxLayer from plone.testing import z2 import unittest2 as unittest class SantaContentLayer(PloneSandboxLayer): defaultBases = (PLONE...
e9583dfd136ae69e44da411101e8d5ef314a7351
e446c2c600fbe6e279acf05eac3079643b4c3cf3
/14_3_21_algorithms_data_structures/recursion.py
cc1a8f708ffee28156c8cb439c8770e67c427f73
[]
no_license
solomoniosif/SDA_Python_Exercises
2208298240c7788a2ddd93adb68870d5d5265683
691cd5328bbec8fa53f6a6f26bc8071d3e70ef58
refs/heads/master
2023-03-28T15:02:49.689022
2021-04-03T09:53:26
2021-04-03T09:53:26
328,112,039
1
0
null
null
null
null
UTF-8
Python
false
false
979
py
from timer import time_execution # import sys # # # sys.setrecursionlimit(10 ** 6) @time_execution def recursive_factorial(n): def factorial(n): if n == 0: return 1 return n * factorial(n - 1) return factorial(n) @time_execution def iterative_factorial(n): if n < 0: ...
e811ec107a083b1f682d0ad79cbf097409f2116a
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Control/PerformanceMonitoring/PerfMonTests/python/IoTestsLib.py
2a4ec4de377d084a030efa749b09c1a7a575b8d4
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
6,626
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration ## @file PerfMonTests.IoTestsLib ## @date April 2009 __author__ = "Sebastien Binet <[email protected]>" __version__ = "$Revision: 1.1 $" __doc__ = """ a set of simple minded functions to test ROOT I/O (from python) """ from array import array as c...
96dc1b0790b37b38c91a4371bce1044a9a8221dc
cb95d669749407510b9dd87518bea60d10cd478d
/migration/change_uq.py
38a176fff51b7662fedf44cea3ac89921c8ccc94
[]
no_license
patarapolw/zhlib
465af0898912afe57ea99595bde6faf562124851
66b61c2a607eb0bff2cfe7f51c45789d865db044
refs/heads/master
2020-04-02T03:45:57.039084
2018-11-01T02:57:37
2018-11-01T02:57:37
153,982,936
4
0
null
null
null
null
UTF-8
Python
false
false
295
py
from playhouse.migrate import SqliteMigrator, migrate from zhlib import zh if __name__ == '__main__': migrator = SqliteMigrator(zh.database) migrate( migrator.drop_index('sentence', 'sentence_chinese'), migrator.add_index('sentence', ('sentence', 'pinyin'), True) )
02daa1468251ba4567e1b5a2cf22a54aae0bebef
4e29395020ce78f435e75e0b3f1e09b227f6f4d8
/ataraxia/inference/ocr/recognition/crann/src/crannRec/recurrent.py
63481a0bd9fe0a199e952dd6ae3f352fa5fef01b
[]
no_license
luoyangustc/argus
8b332d94af331a2594f5b1715ef74a4dd98041ad
2ad0df5d7355c3b81484f6625b82530b38b248f3
refs/heads/master
2020-05-25T21:57:37.815370
2019-05-22T09:42:40
2019-05-22T09:42:40
188,005,059
5
3
null
null
null
null
UTF-8
Python
false
false
2,461
py
#coding:UTF-8 import torch.nn as nn import time class CompositeLSTM(nn.Module): def __init__(self, nIn, nHidden, nOut, multi_gpu=False): super(CompositeLSTM, self).__init__() self.rnn = nn.LSTM(nIn, nHidden, bidirectional=True) self.embedding = nn.Linear(nHidden * 2, nOut) self.mu...
0b3ce2bb646fbb0331575ede06a06288df241849
5864e86954a221d52d4fa83a607c71bacf201c5a
/eveclientqatools/explosions.py
b7df83a42b9b24a0ca2895a5e0776b27306a98bb
[]
no_license
connoryang/1v1dec
e9a2303a01e5a26bf14159112b112be81a6560fd
404f2cebf13b311e754d45206008918881496370
refs/heads/master
2021-05-04T02:34:59.627529
2016-10-19T08:56:26
2016-10-19T08:56:26
71,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
6,958
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\eveclientqatools\explosions.py import uicontrols import carbonui.const as uiconst import evetypes import util from carbonui.primitives.gridcontainer import GridContainer from eve.client.script.ui.control.eveCombo import Combo f...
9bb2e4a7ed40ed97b5149b0f6f1e2ac1f704ad6b
63d3a6255f2677f9d92205d62163b9d22a74c5c7
/modules/dynadb/migrations/0063_auto_20161221_1826.py
c58f76604e77a21a599a46e02764f5ddf4cef3f0
[ "Apache-2.0" ]
permissive
GPCRmd/GPCRmd
9204f39b1bfbc800b13512b316e05e54ddd8af23
47d7a4e71025b70e15a0f752760873249932c54e
refs/heads/main
2023-09-04T11:13:44.285629
2023-08-29T13:43:01
2023-08-29T13:43:01
260,036,875
3
1
null
null
null
null
UTF-8
Python
false
false
850
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.5 on 2016-12-21 17:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dynadb', '0062_merge'), ] operations = [ migrations.AlterField( ...
c5ae45a375095336c401e1f966e0b4e474d46e8a
0b793bce2da8c3d09b7956c0672ddbffd46feaed
/atcoder/corp/codefes2016_qc_c.py
06989a728b75a41345f62c26b25d84e5a15ae4aa
[ "MIT" ]
permissive
knuu/competitive-programming
c6c4e08fb231937d988bdc5a60a8ad6b31b97616
16bc68fdaedd6f96ae24310d697585ca8836ab6e
refs/heads/master
2021-01-17T09:39:02.647688
2020-11-07T03:17:22
2020-11-07T03:17:22
27,886,732
1
0
null
null
null
null
UTF-8
Python
false
false
737
py
N = int(input()) A = [int(x) for x in input().split()] B = [int(x) for x in input().split()] INF = 10**9 record_A = [] record_B = [] record_A.append((A[0], A[0])) for i in range(1, N): if A[i] == A[i-1]: record_A.append((1, record_A[-1][1])) else: record_A.append((A[i], A[i])) record_B.appen...
d9e648577a84d88311e187435c4adda1b002de3f
35fa8925e63f2b0f62ef6bfc1ff4e03cf42bd923
/tests/models/test_category.py
03d5ee1020c13013d8c46e00d4cfc63d278f2993
[ "Apache-2.0" ]
permissive
TheLabbingProject/django_analyses
9e6f8b9bd2a84e8efe6dda6a15de6a3ecdf48ec1
5642579660fd09dde4a23bf02ec98a7ec264bceb
refs/heads/master
2023-02-26T07:53:53.142552
2023-02-17T08:12:17
2023-02-17T08:12:17
225,623,958
1
2
Apache-2.0
2023-02-17T08:12:18
2019-12-03T13:15:29
Python
UTF-8
Python
false
false
3,594
py
from django.test import TestCase from django_analyses.models.category import Category from tests.factories.category import CategoryFactory class CategoryTestCase(TestCase): """ Tests for the :class:`~django_analyses.models.category.Category` model. """ def setUp(self): """ Adds t...
6845f29a5c09f0a2ad3e965b6e8a97e5f2963dbc
c2fd9c421b225862633f74f99a7a0dad635c5c67
/tree/RangeSumofBST.py
0b06571e618c824e7fd428daebeaebde12112bc8
[]
no_license
yuhangxiaocs/LeetCodePy
3751881dbd78b581a1d75beea737aed28765988b
31012a004ba14ddfb468a91925d86bc2dfb60dd4
refs/heads/master
2020-12-20T19:36:55.421295
2020-11-24T17:01:15
2020-11-24T17:01:15
236,190,313
1
0
null
null
null
null
UTF-8
Python
false
false
1,401
py
# Definition for a binary tree node. class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None def construct(self, t): return 0 class Solution(object): # 利用二叉搜索树的性质 适当剪枝 def rangeSumBST(self, root, L, R): """ :type ...
372952efec21a12b8261f6363b873755ecc62eed
3ba0de5f13f6eae9434cd09964a9d69a6dbda636
/mako/lib/MemoryConfiguration.py
25db0ef519aed8814320b45d63efa19b9cfe7b46
[]
no_license
fantastic001/Mako
513f43f4170896a807c4e297573e19125dc2066c
eb51f163b127f9c273ff9179d6ed55092fed369f
refs/heads/master
2022-01-18T20:10:33.141618
2022-01-02T12:30:03
2022-01-02T12:30:03
85,867,290
8
3
null
null
null
null
UTF-8
Python
false
false
250
py
from . import Configuration class MemoryConfiguration(Configuration): def __init__(self, data={}): self.data = data def open(self) -> dict: return self.data def save(self, params: dict): self.data = params
51e65b7efa8aca4a4d89a8d1aaa1076f921df158
7455dcf23ca3c8d74abcb4ef223bf0506ccb1eb9
/PMD/map-pipeline/src/main/python/run.py
e6986ed77cda45243f56ac59bf06dfbec808a5cb
[]
no_license
ResearchSoftwareInstitute/Duke-TIC
2e2ca9cadd52d672b5614aa6d661afb0ab0bf25d
f481103adc68b883cf70c101901f296b031954aa
refs/heads/master
2020-04-05T02:13:10.849193
2019-01-15T16:32:05
2019-01-15T16:32:05
156,468,435
0
1
null
2018-11-21T17:10:10
2018-11-07T00:41:49
Scala
UTF-8
Python
false
false
149
py
from utils import submit import sys host = sys.argv[1] cache_dir = sys.argv[2] args = sys.argv[3:] submit(host, cache_dir, "tic.Transform", *args)
09d87b4f24a30478585165a9e590a4f858680692
2293c76c3d18e2fcd44ded90bd40113d26285663
/pyeccodes/defs/grib2/local/1098/centres_table.py
a1437b6b11a2846a97eca02ab304aaac8681e911
[ "Apache-2.0" ]
permissive
ecmwf/pyeccodes
b1f121dbddf68d176a03805ed5144ba0b37ac211
dce2c72d3adcc0cb801731366be53327ce13a00b
refs/heads/master
2022-04-23T10:37:40.524078
2020-04-18T06:30:29
2020-04-18T06:30:29
255,554,540
9
3
null
null
null
null
UTF-8
Python
false
false
867
py
def load(h): return ({'abbr': 'eggr', 'code': 0, 'title': 'UK Met Office - UK'}, {'abbr': 'aemet', 'code': 1, 'title': 'AEMET- Spain HIRLAM'}, {'abbr': 'arpasim', 'code': 2, 'title': 'ARPA-SIM - Italy COSMO'}, {'abbr': 'metno', 'code': 3, 'title': 'Met.NO'}, {'abbr': ...
817aa994789d584285af1b87544401eee6f12db6
f6f5db03e5f0fc43bf466730650fc2923d438189
/feedjack_wp_export/migrations/0005_auto__chg_field_taxonomyterm_term_name__chg_field_export_url.py
e20a4935fbbe851552188c40ef257e8fc19951be
[ "WTFPL" ]
permissive
mk-fg/feedjack-wordpress-export
bd7e97adf5793067e909d7eaf14804eafaee5beb
72f034872d65cb0d10ff097a13627f7b86b13843
refs/heads/master
2023-08-23T03:55:01.381404
2012-08-29T11:04:32
2012-08-29T11:04:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,070
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'TaxonomyTerm.term_name' db.alter_column('feedjack_wp_export_taxonomyterm', 'term_name', s...
2ee8846e5a2086e11df153514d9ed5676a0b0ba3
d5ad13232e3f1ced55f6956bc4cbda87925c8085
/RNAseqMSMS/2-sv/2-split-mapped-sv/2-type.py
194578ce6452976b1ac7d6adbf8c5f41fddece1f
[]
no_license
arvin580/SIBS
c0ba9a8a41f59cb333517c286f7d80300b9501a2
0cc2378bf62359ec068336ea4de16d081d0f58a4
refs/heads/master
2021-01-23T21:57:35.658443
2015-04-09T23:11:34
2015-04-09T23:11:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,415
py
import sys import os files = os.listdir('.') ouFile1 = open('split-mapped-translocation','w') ouFile2 = open('split-mapped-inversion','w') ouFile3 = open('split-mapped-duplication','w') ouFile4 = open('split-mapped-deletion','w') for f in files: if f[-12:] =='not-splicing': inFile = open(f) while T...
1fcd177241175f152741cc56ddfb300b6eea02db
179d8aae260d20443e6e87613cff55d42587bc16
/examples/oneflow2onnx/models/test_resnet50.py
a1c5ff6baefa1dda15f6499ddd4777b30db9293f
[]
no_license
666DZY666/oneflow_convert_tools
3b1f9d6ebaf154d7218236c332c6f9613b89a860
bb38c52954facbfe977e09c7e4706b7563a7b50c
refs/heads/main
2023-06-04T10:16:08.786531
2021-06-24T08:38:24
2021-06-24T08:38:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,920
py
""" Copyright 2020 The OneFlow 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 applicable law or agr...
f7af2abc696098cdcf7342806fe9a1fca0e927f0
9a7a7e43902b6bc5a9e96933da8814acf3f318a3
/Python3接口测试/Demo/requests_basic_demo.py
eae7986e0055a59d4e3ea0bcc34b73ba0340f15e
[]
no_license
liuchangfu/python_script
9684d512f4bb09f37585e3fc56329be2ea8d6eb5
73f0e71364fc2271626e0deff54b4079ad92390c
refs/heads/master
2020-03-15T16:05:47.624545
2018-06-08T10:44:17
2018-06-08T10:44:17
132,226,941
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
#-*- coding:utf-8 -*- __author__ = "苦叶子" # 导入模块 import requests if __name__ == "__main__": print("开源优测 - requests基本示例") # 发送HTTP GET请求,获取github API列表 r = requests.get("https://api.github.com") # 请求返回码 status_code = r.status_code # 完整的返回头 headers = r.headers # 请求返回头 content-type的值...
b574c638e632c2c9acb969482d20a6e3aff555da
f3b233e5053e28fa95c549017bd75a30456eb50c
/p38a_input/L3FN/3FN-2S_MD_NVT_rerun/set_1ns_equi_1.py
b69dbe2d0723c7e0f6d2cdc6d7d1ae094c03f431
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
928
py
import os dir = '/mnt/scratch/songlin3/run/p38a/L3FN/MD_NVT_rerun/ti_one-step/3FN_2S/' filesdir = dir + 'files/' temp_equiin = filesdir + 'temp_equi_1.in' temp_pbs = filesdir + 'temp_1ns_equi_1.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] f...
7fe2b984bb64556c73259340aa07d9b479af10c0
781e2692049e87a4256320c76e82a19be257a05d
/assignments/python/wc/src/475.py
7044ba9d04fd4df419719828541451ec5195f793
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
133
py
def word_count(phrase): words = {} for word in phrase.split(): words[word] = words.get(word, 0) + 1 return words
01cf0d870aefe802fe4b97ed4766e1610c28530b
75dcb56e318688499bdab789262839e7f58bd4f6
/_algorithms_challenges/leetcode/LeetcodePythonProject/leetcode_0651_0700/LeetCode668_KthSmallestNumberInMultiplicationTable.py
3d0c274f6424ca868adade8603128f21123179a1
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
1,148
py
''' Created on Oct 11, 2017 @author: MT ''' class Solution(object): def findKthNumber(self, m, n, k): """ :type m: int :type n: int :type k: int :rtype: int """ low, high = 1, m*n+1 while low < high: mid = (low+high)//2 c = sel...
e2b246ef45c75445029b5451c1379c4957530865
e70276d10c1161e8594a9d03ca8d89f9491f5a90
/example1.py
1959895a822248e6aa892ea4fd2d1cfdcc7685bb
[]
no_license
py-yyc/twisted-postgres
655f177c26d3503524eeb82e9d5ce0dc2cb4da18
d45ad294d969ea60698021c4e63463596437a01c
refs/heads/master
2021-01-23T07:34:30.234497
2017-03-28T20:36:29
2017-03-28T20:36:29
86,429,271
0
0
null
2017-03-28T14:27:07
2017-03-28T07:35:21
JavaScript
UTF-8
Python
false
false
1,193
py
## <h1>txpostgres</h1> from twisted.internet import defer, task from txpostgres import txpostgres _create_table = ''' DROP TABLE IF EXISTS todo; CREATE TABLE todo ( id SERIAL, todo VARCHAR(254) NOT NULL, created_at TIMESTAMP NOT NULL, PRIMARY ...
79495020056d56275a8f266ff7a23318b987552b
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/tags/2007/applications/network/grsync/actions.py
69e6713e63b0e0168a7da300e514053089af4597
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
952
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2006 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/copyleft/gpl.txt. from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import get def setup(): autot...
8768675fb9f7b9b350c1e7cacfd9cfc4b8ef5d8a
de5be7e4d9e20bbfda3ce8697afc3433a3ccf55d
/python_tutorial/excercise_13_oops_concept/multilevel_inhwrentance.py
9af603e09b2240ba940161d99b7718d5cf32ef4c
[]
no_license
poojataksande9211/python_data
42a88e0a0395f383d4375000a3d01b894bd38e62
64c952d622abfa77f2fdfd737c210014fce153c5
refs/heads/main
2023-04-16T10:24:27.213764
2021-04-27T16:34:32
2021-04-27T16:34:32
360,673,774
0
0
null
null
null
null
UTF-8
Python
false
false
977
py
#multilevel inherence class Phone:#base class/parent class def __init__(self,model_name,brand,price): self.model_name=model_name self.brand=brand self._price=max(price,0) def full_name(self): return f"{self.model_name} {self.brand}" def caliing_no(self,phone_no): re...
a34d0ddd7df3516c21f514127949bf7cbd07ebc1
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/oyS6TX4NXzpbfjL4a_12.py
db54f2431410716bc482bd2f3768b6388bb56f68
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
2,659
py
""" This challenge is based on the game Scrabble. Each word you play is scored based on the point value of each tile/letter (see first table), as well as additional points conferred by any special squares your tiles land on (see second table). Create a function that takes a list representing a row of squares in a S...
a36ea33f2fdd065e7a8deca00f0cebbf46407cdc
f03bd5bd7873c5cc33b4ef5199f219539f3a340e
/CAAPR/CAAPR_AstroMagic/PTS/pts/modeling/misc/geometryplotter.py
ba2446591d26f513d77abd0a0603b2eed23ff4a1
[ "GPL-1.0-or-later", "AGPL-3.0-only", "AGPL-3.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-philippe-de-muyter", "MIT" ]
permissive
Stargrazer82301/CAAPR
5f8a7033b16792f23abd5d07021b53b9228a5db4
62b2339beb2eb956565e1605d44d92f934361ad7
refs/heads/master
2022-08-29T02:53:33.658022
2022-08-05T19:06:46
2022-08-05T19:06:46
49,977,601
8
1
MIT
2022-08-05T19:06:47
2016-01-19T19:32:42
Python
UTF-8
Python
false
false
5,856
py
#!/usr/bin/env python # -*- coding: utf8 -*- # ***************************************************************** # ** PTS -- Python Toolkit for working with SKIRT ** # ** © Astronomical Observatory, Ghent University ** # ***************************************************************** ##...
7ee7efe6546c3a50ec69004cb842ff4254183a01
5201e237c0d58cdfdbc2fdf8103f9141161eb9f8
/itkBSplineTransformInitializerPython.pyi
6e847fd18da0e9fedf867511dbcf47d39fe173e9
[]
no_license
hjmjohnson/itk-stubs
704f5b92a755e55b81d02fcad62a366143e125f3
771951d007ae425b758e088eae6f9e4ca0e4afb1
refs/heads/main
2023-01-22T05:50:33.649088
2020-12-04T01:31:09
2020-12-04T01:35:06
318,368,028
0
0
null
null
null
null
UTF-8
Python
false
false
4,449
pyi
import itk.itkRGBPixelPython from typing import Any class _SwigNonDynamicMeta(type): __setattr__: Any = ... def itkBSplineTransformInitializerBSTD23IF2_New(): ... class itkBSplineTransformInitializerBSTD23IF2(itk.ITKCommonBasePython.itkObject): thisown: Any = ... def __init__(self, *args: Any, **kwargs: ...
9b892bd0533c2466c006109d413052b477861b4f
a1cbf221a6befed3891d75c69e2a546effd2499d
/authentication/Newapi/views.py
72124092bf1628bb4daabd0e9eaef153619b13da
[]
no_license
Coder339/V-django-newCRM
9a93efbb252ba814241076ece17088af8dd15935
2182266204f54d301b7c087a99627d441e00fe54
refs/heads/master
2022-12-24T15:12:47.081949
2020-08-24T12:15:13
2020-08-24T12:15:13
247,274,031
0
2
null
2022-12-08T04:19:35
2020-03-14T12:39:13
Python
UTF-8
Python
false
false
4,182
py
import jwt from django.conf import settings from django.contrib import messages from django.forms.models import model_to_dict from django.http import Http404 from django.http import HttpResponseRedirect from django.shortcuts import render, get_object_or_404 from django.views import View from rest_framework import authe...
961e3e5d418160b3651c41f909de28656b25a0da
c41497aef2158cbe051eea3c80889847e03a34ce
/scrap/migrations/0005_auto_20200523_1841.py
4ba0ce822d98aaf70bb48b358fe27b048504c0b9
[]
no_license
NicolleLouis/scrap_freelance
27e4570b2d2804783879927f4c29d7ff4804acd9
f9d0e750651e4ff4def2d39427c4918ac057aa9d
refs/heads/master
2022-08-27T14:22:38.047438
2020-05-28T12:44:26
2020-05-28T12:44:26
251,595,293
0
0
null
null
null
null
UTF-8
Python
false
false
4,220
py
# Generated by Django 3.0.4 on 2020-05-23 18:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('scrap', '0004_auto_20200523_1246'), ] operations = [ migrations.AddField( model_name='bike', name='amortisseur', ...
a71e544bf006f57c8759ee695e014662dc59ea3f
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/A/awalias/european_league_tables_by_year.py
4e206a1c8aa5872e5562db75e75110a4b1e8aa0f
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,892
py
# Scraper for Premier League, Bundesliga, and Seria A league tables between 2009-2012 # Extra countries can be added (france) or Divisions (england2, germany2 etc.) in countries list # Ant Wilson 2013 import scraperwiki import lxml.html countries = ['england', 'germany', 'italy'] class EOS_Table(object): """c...
7f7c5b5bf16c39cf0d28d88b300d7c8220fd855c
8f5f0c3ef83fdd482387973149738f6178477a42
/medium/algos/combination_sum_iii.py
9fb25611bcb7124aaf1677d2282f38179e15f76f
[]
no_license
nicokuzak/leetcode
79a5771ad83786cc7dbfd790f8fffcf1ce58794e
39b0235dc429a97a7cba0689d44641a6af6d7a32
refs/heads/main
2023-04-06T21:02:09.553185
2021-04-14T22:21:20
2021-04-14T22:21:20
336,847,511
0
0
null
null
null
null
UTF-8
Python
false
false
1,529
py
"""Find all valid combinations of k numbers that sum up to n such that the following conditions are true: Only numbers 1 through 9 are used. Each number is used at most once. Return a list of all possible valid combinations. The list must not contain the same combination twice, and the combinations may be returned in ...
67b9ba8f95fe5eb0985c03d506574f1bc41c9344
3c1639bccf3fc0abc9c82c00ab92ac3f25cf105e
/book/section-8-函数/02-函数的实参和形参(位置参数).py
f1632e35aef8b467e9d0352a5e544321e51d7496
[ "Apache-2.0" ]
permissive
LiuJunb/PythonStudy
783318a64496c2db41442ad66e0cc9253b392734
3386b9e3ccb398bfcfcd1a3402182811f9bb37ca
refs/heads/master
2022-12-11T05:22:53.725166
2018-11-15T01:34:37
2018-11-15T01:34:37
143,956,065
1
0
Apache-2.0
2022-11-22T01:58:23
2018-08-08T03:26:26
JavaScript
UTF-8
Python
false
false
861
py
# 1.定义一个函数( 有两个形参 ) def get_animal(animal_name, animal_type): """获取动画的姓名和类型""" print('name: '+animal_name + ' --> type: ' + animal_type) get_animal('🐱', 'animal') # 传递两个实参 get_animal('animal', '🐱') # 传递两个实参 # 2.关键字实参( 避免参数顺序传递异常 ) # get_animal() #get_animal() missing 2 required positional arguments: 'a...