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
0d51133b3bdbcb43ffd745eeb543c357ff5a4faa
6443a587e16658a58b884a2e5c6dbbab1be50674
/Design_Patterns/MVC.py
41527a426a427ef6d6f168cc407aa49bd64086ef
[]
no_license
xiaochenchen-PITT/CC150_Python
a6cbe213946851639a827068961934920b6c3e57
e96394265d8a41a1b4558d5d2b34aa34af99662f
refs/heads/master
2020-12-24T17:18:14.606804
2014-11-08T21:48:20
2014-11-08T21:48:20
25,654,100
0
1
null
null
null
null
UTF-8
Python
false
false
2,175
py
import Tkinter as tk class Observable: """class Observable defines the infrastructure of model/view register and notification""" def __init__(self, InitialValue = 0): self.data = InitialValue self.observer_list = [] def RegisterObserver(self, observer): self.observer_list.append(observer) def ObserverNot...
587a5111f581fa6a8b63ab0fe2cce3dccbb8d97c
cb1d59b57510d222efcfcd37e7e4e919b6746d6e
/python/fizz_buzz.py
56c3fdeaade6e0122efa3841053aa624a1f63b6c
[]
no_license
pzmrzy/LeetCode
416adb7c1066bc7b6870c6616de02bca161ef532
ef8c9422c481aa3c482933318c785ad28dd7703e
refs/heads/master
2021-06-05T14:32:33.178558
2021-05-17T03:35:49
2021-05-17T03:35:49
49,551,365
2
0
null
null
null
null
UTF-8
Python
false
false
254
py
class Solution(object): def fizzBuzz(self, n): """ :type n: int :rtype: List[str] """ return ["FizzBuzz" if n % 15 == 0 else "Fizz" if n % 3 == 0 else "Buzz" if n % 5 == 0 else str(n) for n in range(1, n + 1)]
dff2d7ca09d52a201ba58b3ce5d4779e7271cb95
0c8214d0d7827a42225b629b7ebcb5d2b57904b0
/practice/P001_Matrix/main.py
e52128512ba48dafcdf746dde3478eb9df8fa36b
[]
no_license
mertturkmenoglu/python-examples
831b54314410762c73fe2b9e77aee76fe32e24da
394072e1ca3e62b882d0d793394c135e9eb7a56e
refs/heads/master
2020-05-04T15:42:03.816771
2020-01-06T19:37:05
2020-01-06T19:37:05
179,252,826
1
0
null
null
null
null
UTF-8
Python
false
false
175
py
# Practice 001: Read and print matrix row = int(input('Row number: ')) col = int(input('Col number: ')) matrix = [[0 for _ in range(col)] for _ in range(row)] print(matrix)
3af938f6309801fbf139369b23994e67acc3176f
7949f96ee7feeaa163608dbd256b0b76d1b89258
/toontown/safezone/DistributedDDTreasure.py
97aff6809e6d0c59e21d67a112ed9c6dee2141f7
[]
no_license
xxdecryptionxx/ToontownOnline
414619744b4c40588f9a86c8e01cb951ffe53e2d
e6c20e6ce56f2320217f2ddde8f632a63848bd6b
refs/heads/master
2021-01-11T03:08:59.934044
2018-07-27T01:26:21
2018-07-27T01:26:21
71,086,644
8
10
null
2018-06-01T00:13:34
2016-10-17T00:39:41
Python
UTF-8
Python
false
false
368
py
# File: t (Python 2.4) import DistributedSZTreasure class DistributedDDTreasure(DistributedSZTreasure.DistributedSZTreasure): def __init__(self, cr): DistributedSZTreasure.DistributedSZTreasure.__init__(self, cr) self.modelPath = 'phase_6/models/props/starfish_treasure' self.grabSound...
6675c1f8bde9a8b0c7cdeeb0041b9769069edcca
d308fffe3db53b034132fb1ea6242a509f966630
/pirates/effects/LureGlow.py
e9c4eaabe605d5c76b88c0746c2a90f554148add
[ "BSD-3-Clause" ]
permissive
rasheelprogrammer/pirates
83caac204965b77a1b9c630426588faa01a13391
6ca1e7d571c670b0d976f65e608235707b5737e3
refs/heads/master
2020-03-18T20:03:28.687123
2018-05-28T18:05:25
2018-05-28T18:05:25
135,193,362
3
2
null
null
null
null
UTF-8
Python
false
false
1,824
py
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.effects.LureGlow from pandac.PandaModules import * from direct.interval.IntervalGlobal import * from EffectController import Eff...
d53af3ccac95736c531c5c23a3f1ef96f5272802
1e8ec582b0e5d880a17a823aa5bffe07371222f3
/cmake/tools/patch.py
9ae3cfb622a198c02382662409bcc6e3b60b00c9
[]
no_license
muhkuh-sys/com.github.vsergeev-lua-periphery
51f18836acbad992cb203a578aaed7fac2a1f9a8
9ffb8e784339b791dcb51fbb6e3089ab4b9f7384
refs/heads/master
2023-08-05T03:13:59.340320
2023-07-26T07:30:15
2023-07-26T07:30:15
202,534,978
0
0
null
null
null
null
UTF-8
Python
false
false
38,134
py
#!/usr/bin/env python """ Patch utility to apply unified diffs Brute-force line-by-line non-recursive parsing Copyright (c) 2008-2016 anatoly techtonik Available under the terms of MIT license """ from __future__ import print_function __author__ = "anatoly techtonik <[email protected]>" __version...
0b393c99acb69e2e47500842eda4d0fff53b69a6
4adc1d1b8f9badefcd8c25c6e0e87c6545ccde2c
/OrcApi/Driver/Web/WindowDefMod.py
81ea8efdc597472a2d1aed384e743b1cac1c6b9e
[]
no_license
orange21cn/OrcTestToolsKit
eb7b67e87a608fb52d7bdcb2b859fa588263c136
69b6a3c382a7043872db1282df4be9e413d297d6
refs/heads/master
2020-04-15T07:30:35.485214
2017-09-30T06:16:17
2017-09-30T06:16:17
68,078,991
5
3
null
null
null
null
UTF-8
Python
false
false
2,884
py
# -*- coding: utf-8 -*- from datetime import datetime from OrcLib.LibCommon import is_null from OrcLib.LibException import OrcDatabaseException from OrcLib.LibDatabase import WebWindowDef from OrcLib.LibDatabase import orc_db from OrcLib.LibLog import OrcLog class WindowDefMod: """ Test data management ""...
3da8cd2718bcab6e44d110b99aeb4836a002db47
eae6dddca9285702c4c7ed6ba6bdaceef9631df2
/CCC-2019/Junior/Junior-2/J2.py
ead798d878460926221d2b7467237cbe4a4a29f4
[]
no_license
simrit1/CCC-Solutions-2
7823ce14801c4219f6f1dd4c42fb013c2dfc45dd
ee2883aa38f933e526ce187d50ca68763876cb58
refs/heads/master
2023-07-04T02:19:37.320261
2021-08-07T22:12:36
2021-08-07T22:12:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
# CCC 2019 Junior 2: Time to Decompress # # Author: Charles Chen # # Strings and loops num_lines = int(input()) num_symbols = [] symbol_type = [] for i in range(num_lines): input_data = input().split() num_symbols.append(int(input_data[0])) symbol_type.append(input_data[1]) for i in range(...
d155f15f7ad2a469627d668066a70e11fe83b0b2
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/Y4gwcGfcGb3SKz6Tu_0.py
e71f5bc1628a8c29847b14606c19007da771aeb7
[]
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
203
py
def max_separator(s): substrings = [(s.find(i, idx+1) - idx, i) for idx, i in enumerate(s) if s.find(i, idx+1) != -1] return sorted([c for size, c in substrings if size == max(substrings)[0]])
37913c6ecbbbda6ad28bc4dac8635652653d5abb
23611933f0faba84fc82a1bc0a85d97cf45aba99
/google-cloud-sdk/.install/.backup/lib/surface/compute/instance_groups/managed/get_named_ports.py
adf1818f3b56f360348f6678bf9cbb31f379ccb2
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
KaranToor/MA450
1f112d1caccebdc04702a77d5a6cee867c15f75c
c98b58aeb0994e011df960163541e9379ae7ea06
refs/heads/master
2021-06-21T06:17:42.585908
2020-12-24T00:36:28
2020-12-24T00:36:28
79,285,433
1
1
Apache-2.0
2020-12-24T00:38:09
2017-01-18T00:05:44
Python
UTF-8
Python
false
false
2,035
py
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
511d5d391655996dc02f37c3a43187003bad7158
17fe10b0f0f85765767ad0eceaf3d7118694ae80
/backend/event/api/v1/serializers.py
e4a19836dcba1b8de8bb160cfd2e4b1d0c1f056f
[]
no_license
crowdbotics-apps/cotter-trout-dock-23862
5f2de4b3c820f49926d7b43ead203c8f3c8593b2
1e956b9b4572d324902af73b6ff4fdde1776f5b2
refs/heads/master
2023-02-12T21:13:52.324832
2021-01-15T16:17:01
2021-01-15T16:17:01
329,955,009
0
0
null
null
null
null
UTF-8
Python
false
false
1,458
py
from rest_framework import serializers from event.models import ( Vendor, Location, Favorites, VendorDetail, Category, Faq, Presenter, Schedule, MySchedule, Sponsor, ) class FaqSerializer(serializers.ModelSerializer): class Meta: model = Faq fields = "__all_...
dc573298a746f7d19680c66c688ceaaf5c15b85f
081b33ead95b323e77bdce3717af0a5790e34a1e
/backend/apps/settings/models.py
3692f2d192f0341b23781b392ab4a7de1f431656
[]
no_license
alexmon1989/afliga
81ea3b32b18040bb8baa4e8af14a73003fb9a89f
661da30c0a5aa6b9975eb7dea9c9a031529d2dbb
refs/heads/master
2023-02-23T11:12:45.608118
2023-02-11T12:12:41
2023-02-11T12:12:41
105,630,198
0
0
null
2023-02-15T20:50:12
2017-10-03T08:36:15
Python
UTF-8
Python
false
false
2,744
py
from django.db import models from apps.league.models import Player class FooterSettings(models.Model): """Настройки футера.""" information_block_title = models.CharField('Заголовок текстового блока', max_length=100, null=True, blank=True) information_block_text = models.TextField('Текст блока (html)', nul...
15715eaf8822905a4c32b90071642f1351caf2ba
2f54c561e13df5f0f4479e73a47103b8413a235a
/python codes/recursion.py
a4aa83e9d1dd41e409479f1902abf580bc1a520f
[]
no_license
suvimanikandan/PYTHON_CODES
7123e2898d8c363e018477d2b60f26c7287d4e72
2a8eaae317a773b7236529021a333e9e2a40e51f
refs/heads/main
2023-04-03T19:45:06.009539
2021-04-20T05:26:44
2021-04-20T05:26:44
359,693,270
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
import sys sys.setrecursionlimit(2000) print(sys.getrecursionlimit()) i=0 def greet(): global i i+=1 print("hello",i) greet() greet()
5c0172e12c8046dfc13f3f6538b0c802f7623194
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/word-count/e606d579317c48f6b8b3ea5ff8b93984.py
42692983767720aa1ef6632e7378b60086e0a348
[]
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
151
py
def word_count(phrase): count = dict() for word in phrase.split(): count.setdefault(word, 0) count[word] += 1 return count
eb8cfced5d54b2f954d35b0c31564dbadc38423d
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/codestar-notifications_write_1/notification-rule_update.py
a01451f4c062a17c803d10c7d64f8e5e744998b5
[]
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,466
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_one_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/codestar-notifications/update-notification-rule....
0d1c6e2ddb041ef981f6b1c916b97199a9ef93b8
bd55b7fefa99156aeb3c28a4abfa407fc03c6bb1
/vstructui/scripts/vstructui_bin.py
66119705e9eec7b30622b45971dec5769cecb73d
[ "Apache-2.0" ]
permissive
williballenthin/python-pyqt5-vstructui
175419738549f9a8ba97ced004c88561356ddcdc
2e06f5fed8aa362e07ad5f677fb42d5cd15163e1
refs/heads/master
2021-01-10T02:18:34.326960
2015-12-10T04:55:19
2015-12-10T04:55:19
36,752,901
10
2
null
null
null
null
UTF-8
Python
false
false
2,669
py
import os import sys import imp import mmap import contextlib from PyQt5.QtWidgets import QApplication from vstruct import VStruct from vstruct import VArray from vstruct.primitives import v_prim from vstruct.primitives import v_number from vstruct.primitives import v_bytes from vstruct.primitives import v_uint8 from...
ae6d37bf310be7ced448efde5f9029f8a50c2e93
3da574f57da42ef745c59b121c70f0d89b98242d
/mandrill/mayhem_1.py
21868aebc9ee247f16ef4607f788a9bc5099a05d
[ "MIT" ]
permissive
yijxiang/mayhem
5a93e184f4f0081d86e9651b815e01712297218a
521b1e4540d37395ca47908520183245b167e2b0
refs/heads/master
2021-09-20T03:28:13.509396
2018-08-02T17:22:02
2018-08-02T17:22:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,269
py
#!/usr/bin/env python3.7 # Copyright (c) 2018 Lynn Root """ Initial setup - starting point based off of http://asyncio.readthedocs.io/en/latest/producer_consumer.html Notice! This requires: - attrs==18.1.0 """ import asyncio import logging import random import string import attr # NB: Using f-strings with log me...
052e64eed1a7060c8189bf73a146399bddecfa95
53784d3746eccb6d8fca540be9087a12f3713d1c
/res/packages/scripts/scripts/client/gui/prb_control/entities/base/pre_queue/listener.py
4911d5bab483ee2b93e16664718ddd92927ec370
[]
no_license
webiumsk/WOT-0.9.17.1-CT
736666d53cbd0da6745b970e90a8bac6ea80813d
d7c3cf340ae40318933e7205bf9a17c7e53bac52
refs/heads/master
2021-01-09T06:00:33.898009
2017-02-03T21:40:17
2017-02-03T21:40:17
80,870,824
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
2,051
py
# 2017.02.03 21:48:33 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/prb_control/entities/base/pre_queue/listener.py from gui.prb_control.entities.base.listener import IPrbListener class IPreQueueListener(IPrbListener): """ Interface of prequeue listener. """ def onEnqueued(self, ...
8fd3d7573ef2a7f903f530d6c758f8bdd40b49f9
bd498cbbb28e33370298a84b693f93a3058d3138
/NVIDIA/benchmarks/transformer/implementations/pytorch/fairseq/data/token_block_dataset.py
8c9239ff4ca7fef2bb06e97ece279c95a3aecae6
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
piyushghai/training_results_v0.7
afb303446e75e3e9789b0f6c40ce330b6b83a70c
e017c9359f66e2d814c6990d1ffa56654a73f5b0
refs/heads/master
2022-12-19T16:50:17.372320
2020-09-24T01:02:00
2020-09-24T18:01:01
298,127,245
0
1
Apache-2.0
2020-09-24T00:27:21
2020-09-24T00:27:21
null
UTF-8
Python
false
false
3,681
py
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the LICENSE file in # the root directory of this source tree. An additional grant of patent rights # can be found in the PATENTS file in the same directory. import math import numpy as np im...
3bd3e5bfac2d80e09dcf0c187b774fd085ee8aa2
8b57c6609e4bf3e6f5e730b7a4a996ad6b7023f0
/input.py
d00f8811a7602e4179209e88696445ab5a71672e
[]
no_license
bullll/splunk
862d9595ad28adf0e12afa92a18e2c96308b19fe
7cf8a158bc8e1cecef374dad9165d44ccb00c6e0
refs/heads/master
2022-04-20T11:48:50.573979
2020-04-23T18:12:58
2020-04-23T18:12:58
258,293,313
2
0
null
null
null
null
UTF-8
Python
false
false
11,227
py
from __future__ import absolute_import from __future__ import print_function from builtins import object from future.moves.urllib.parse import urlencode import lxml.etree as et import datetime import time import socket import httplib2 try: import httplib except ImportError: import http.client as httplib import...
68868e6f1a4c75f460454a8f20542df8dbbe4308
c2ddadd3cf14dfc56ec1e4b8d52b8c1a23ea1e61
/quiz/models.py
9e3fbcc7e92e0ec967ef6edc13c06711e68a42e2
[]
no_license
ashimmitra/Varsity-Final-Project-by-Django
09f944a9f1aae7be4212f0c09cfe5d2c596bd848
6274d966f09d9ead2344542b56576a77e0758d5a
refs/heads/main
2023-07-17T15:50:04.414565
2021-08-20T12:31:24
2021-08-20T12:31:24
342,790,345
0
0
null
null
null
null
UTF-8
Python
false
false
2,590
py
from django.db import models # Create your models here. class Quiz(models.Model): question = models.CharField(max_length = 500) option1 = models.CharField(max_length = 20) option2 = models.CharField(max_length = 20) option3 = models.CharField(max_length = 20) option4 = models.CharField(max_length =...
2db4dae997653d84e0371a2931389dd011acab93
30a2f77f5427a3fe89e8d7980a4b67fe7526de2c
/gen/RSGravitonToBBbar_M_650_TuneZ2star_8TeV_pythia6_cfg.py
58a5a616d4582034f7a015e59624302553db3e82
[]
no_license
DryRun/QCDAnalysis
7fb145ce05e1a7862ee2185220112a00cb8feb72
adf97713956d7a017189901e858e5c2b4b8339b6
refs/heads/master
2020-04-06T04:23:44.112686
2018-01-08T19:47:01
2018-01-08T19:47:01
55,909,998
0
0
null
null
null
null
UTF-8
Python
false
false
7,080
py
# Auto generated configuration file # using: # Revision: 1.381.2.28 # Source: /local/reps/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v # with command line options: CMSDIJET/QCDAnalysis/python/RSGravitonToBBbar_M_650_TuneZ2star_8TeV_pythia6_cff.py --python_filename /uscms/home/dryu/Dijets/C...
f5023268067d834f709d2fce7dfcc26bde67633d
10d98fecb882d4c84595364f715f4e8b8309a66f
/smurf/smurf_net.py
7db85ec342f48a9a59ab91a8b9e5e39edb3d9bb2
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
afcarl/google-research
51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42
320a49f768cea27200044c0d12f394aa6c795feb
refs/heads/master
2021-12-02T18:36:03.760434
2021-09-30T20:59:01
2021-09-30T21:07:02
156,725,548
1
0
Apache-2.0
2018-11-08T15:13:53
2018-11-08T15:13:52
null
UTF-8
Python
false
false
21,402
py
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
48cd1bdae7a1166b75c4968c0fb1f53f4f29376d
235bf57e37733cf265913ba2d6e7e95f915dad06
/pricealert.py
4e0e80488f9c421adb80ddd7ee79747cf8f801c9
[]
no_license
dbrgn/avarulo
47c3e3ea129a6d80afe55b81e3a62e513f526f47
bf48d2f6a19bb2f0af0ccecb83c70b9bef3affa2
refs/heads/master
2021-05-22T18:13:33.359090
2020-04-04T15:56:58
2020-04-04T15:56:58
253,034,903
1
0
null
null
null
null
UTF-8
Python
false
false
6,065
py
""" Price Alert Monitor products for price reductions. Usage: pricealert.py [-c <configfile>] Options: -c <configfile> [default: config.yml] """ import re import sys from typing import Optional, Tuple from bs4 import BeautifulSoup from docopt import docopt import requests import yaml USER_AGENT = 'Mozill...
8416beada435e65a21c8e0124f100302ee9f9bf5
71501709864eff17c873abbb97ffabbeba4cb5e3
/llvm14.0.4/lldb/test/API/functionalities/data-formatter/type_summary_list_arg/TestTypeSummaryListArg.py
a47d91434822e44e560cc297352404f11b7429aa
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
LEA0317/LLVM-VideoCore4
d08ba6e6f26f7893709d3285bdbd67442b3e1651
7ae2304339760685e8b5556aacc7e9eee91de05c
refs/heads/master
2022-06-22T15:15:52.112867
2022-06-09T08:45:24
2022-06-09T08:45:24
189,765,789
1
0
NOASSERTION
2019-06-01T18:31:29
2019-06-01T18:31:29
null
UTF-8
Python
false
false
1,235
py
""" Test lldb data formatter subsystem. """ import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TypeSummaryListArgumentTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) @no_debug_info_test def test_type_summary...
16ac290fc3f25f1b9ba3e8307728a0f77ff6b606
d90daf0b839349d49439037f6bffe37830e165aa
/settings.py
c9ae21702e837243477afde60e6e602c6faf4b9f
[]
no_license
m2o/fitlog
2d49ecff12069769c88617f07c600512ef2a0c97
e8736a3bc677d1d160cf7f3b6201ffa1b0de2760
refs/heads/master
2020-05-20T08:54:27.169217
2013-12-12T21:24:42
2013-12-12T21:24:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,858
py
# Django settings for fitlog project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ROOT_PATH = os.path.dirname(__file__) ADMINS = ( # ('Your Name', '[email protected]'), ) MANAGERS = ADMINS DATABASES = { 'default': { #'ENGINE': 'django.db.backends.postgresql_psycopg2', #'NAME' : 'fitl...
ff59ca30001dc596066bc271b4203a45b303fe6e
52e8841ac9603e994fc487ecb52f232e55a50e07
/Bio/GA/Selection/RouletteWheel.py
0dc44d9302247f22c95f690600dd792906fdb1dd
[]
no_license
rored/RozszerzenieBio.PDB
aff434fddfe57199a7465f79126eba62b1c789ae
7c9d696faacabff912b1263fe19291d6a198c3c2
refs/heads/master
2021-01-21T04:50:37.903227
2016-06-23T19:15:42
2016-06-23T19:15:42
55,064,794
0
3
null
null
null
null
UTF-8
Python
false
false
4,863
py
# This code is part of the Biopython distribution and governed by its # license. Please see the LICENSE file that should have been included # as part of this package. # """Implement Roulette Wheel selection on a population. This implements Roulette Wheel selection in which individuals are selected from a population ...
4b20434b8674ccfded74054b0a37ae33caa44811
4fbd844113ec9d8c526d5f186274b40ad5502aa3
/algorithms/python3/perfect_rectangle.py
adda3b9866b4f36c19ea7e24a53d4cded0ddd0ba
[]
no_license
capric8416/leetcode
51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1
503b2e303b10a455be9596c31975ee7973819a3c
refs/heads/master
2022-07-16T21:41:07.492706
2020-04-22T06:18:16
2020-04-22T06:18:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,302
py
# !/usr/bin/env python # -*- coding: utf-8 -*- """ Given N axis-aligned rectangles where N > 0, determine if they all together form an exact cover of a rectangular region. Each rectangle is represented as a bottom-left point and a top-right point. For example, a unit square is represented as [1,1,2,2]. (coordinate ...
56afaf83d0bb5a2323b007f43c24edf5e93f4b66
3e381dc0a265afd955e23c85dce1e79e2b1c5549
/hi-A5/kacayyasadin.py
67e22449145123ac051f0a67ea72997107d722c8
[]
no_license
serkancam/byfp2-2020-2021
3addeb92a3ff5616cd6dbd3ae7b2673e1a1a1a5e
c67206bf5506239d967c3b1ba75f9e08fdbad162
refs/heads/master
2023-05-05T04:36:21.525621
2021-05-29T11:56:27
2021-05-29T11:56:27
322,643,962
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
d_yil=int(input("hangi yıl doğdun:")) d_ay=int(input("kaçın ay doğdun:")) y_ay = (2020-d_yil)*12+(11-d_ay) print(y_ay," ay yaşadın.")
682de6a4f15064d60f1678610e503b2d3074a33e
ab704c85613bc430dfbb4e5d8ed139ba0a1da584
/manage.py
d1fd55b64f4c533ec2620e28f4a0de4f7f967bb9
[]
no_license
arthuroe/shopperholics
eb4b1257a32354bb2b71607719f61a3a098b7fcb
6f941bf370a11d697c1577ca1e92bc1ba8ec4d3b
refs/heads/develop
2022-12-09T23:16:17.235490
2018-08-14T20:39:21
2019-02-20T00:01:18
139,479,448
0
0
null
2022-12-08T02:21:51
2018-07-02T18:25:22
Python
UTF-8
Python
false
false
283
py
from flask_script import Manager from flask_migrate import Migrate, MigrateCommand from api import app from api.models.model_mixin import db manager = Manager(app) migrate = Migrate(app, db) manager.add_command('db', MigrateCommand) if __name__ == '__main__': manager.run()
bd44d9a490e19447ce8554605dae7d017f2c7f32
5730110af5e4f0abe538ed7825ddd62c79bc3704
/pacu/pacu/profile/log.py
06bfe8e09aa791c5d2a2f92dc6686ea8b309b43d
[]
no_license
jzeitoun/pacu-v2
bdbb81def96a2d87171ca20b89c878b2f66975e7
0ccb254a658263b4fe8c80ea623f860cb7dc1428
refs/heads/master
2021-06-03T18:50:50.890399
2020-04-27T16:31:59
2020-04-27T16:31:59
110,889,657
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
from ..util import logging def default(profile): return logging.get_default()
bfe54bf4a84bae770d8568d0e5d8d98a85bd6046
f03e771eb4c1f300ae819179090efc388bcc6d32
/src/pymine/metadata/MetadataValue.py
c155a8834298482b1fd2fe55b4228d4f4dd64f3c
[]
no_license
lacthan28/PyMine
d8d2365b0aabefcb056754260f67095dbcbe62ff
e7d4778f01181d45551c02fa0cef151327fa240a
refs/heads/master
2021-01-21T19:50:48.417635
2017-06-30T05:38:46
2017-06-30T05:38:46
92,161,042
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
# -*- coding: utf-8 -*- from ..plugin.Plugin import * class MetadataValue(metaclass = ABCMeta): """ :param Plugin owningPlugin: """ owningPlugin = None def __init__(self, owningPlugin: Plugin): self.owningPlugin = owningPlugin def getOwningPlugin(self): """ :return: Plugin """ return self.owningPlugin ...
ca522f6446943697c68630ba2867ef251c86a058
34088b8e82bc64a10678a08c03db2732d52f0c1a
/Pinbot/Brick/App/job_hunting/exception.py
94e3248b2a1d740940ed0965550b67d613038491
[]
no_license
winghou/myFirstProfile
757d82f5391f3672e48db4aa5774e26a48a5ecc7
8fc5d16de7b6449cba058f4d2459bbb0c8438f77
refs/heads/master
2020-05-31T13:42:28.554703
2016-03-23T11:30:13
2016-03-23T11:30:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
# coding: utf-8 class CompanyCardInterestExeception(Exception): ''' 企业名片反馈异常 ''' pass
cb609dc44f22d8dceb8c61401be4c62ca445e9d6
573d470c9fcb3799e8822e6953e1259b74e0672c
/Course/syntax/example_12.py
ba29a4c138e0d6a7ace344e04386e2ac5c48f214
[ "Apache-2.0" ]
permissive
zevgenia/Python_shultais
e6f35773e54a72477ea5ee83520dbecfbee7ff48
e51c31de221c5e7f36ede857a960138009ec8a05
refs/heads/master
2020-03-31T21:46:25.061571
2018-10-11T13:43:47
2018-10-11T13:43:47
152,593,211
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
age = 12 male = "f" location = "Russia" locations = ["Russia", "Ukraine", "Belarus"] is_programmer = True is_admin = False if (age >= 12 and male == "f" and location in locations and (is_programmer or is_admin)): print("Доступ открыт") if age >= 12 \ and male == "m" \ and location in locations ...
dbaf7c583e82742b17220b3b45bbabb630c64530
697fb11686110f569e7f4284045049d008688221
/windows/nsist/tests/test_commands.py
077ef0e8505a5a9f5e8aad17d9ce5190dcfc8f72
[ "Apache-2.0", "MIT", "BSD-3-Clause", "CC-BY-3.0" ]
permissive
andredoumad/p3env
433c9174899f0909b149f51c3243b6fe04e076bf
a8850d06755d53eb6fedd9995091dad34f1f9ccd
refs/heads/master
2023-02-03T20:50:07.357255
2020-12-23T09:15:55
2020-12-23T09:15:55
317,041,015
0
0
null
null
null
null
UTF-8
Python
false
false
3,591
py
import io from testpath import assert_isfile, assert_not_path_exists from zipfile import ZipFile from nsist import commands, _assemble_launchers def test_prepare_bin_dir(tmpdir): cmds = { 'acommand': { 'entry_point': 'somemod:somefunc', 'extra_preamble': io.StringIO(u'import extra'...
c5b4fddb74e49044607c17ffb50be7f653c945ad
1268030197a27bf2ef5e3f5ab8df38993457fed5
/rasa_core/rasa_core/channels/slack.py
a5422da7f616f89305bfb620133aa3adcc635d78
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
parimalpate123/rasa_slack_chatbot
439abd9a541d6314b46c6fb303c0275803fc9357
206aacab62f12be9df9f009f65736caed3e8edac
refs/heads/master
2020-04-17T14:13:49.917604
2019-05-07T11:08:07
2019-05-07T11:08:07
166,649,129
0
1
null
2019-01-29T11:09:07
2019-01-20T10:32:59
Python
UTF-8
Python
false
false
9,555
py
import re import json import logging from typing import Text, Optional, List from flask import Blueprint, request, jsonify, make_response, Response from slackclient import SlackClient from rasa_core.channels import InputChannel from rasa_core.channels.channel import UserMessage, OutputChannel logger = log...
95a9e288c4d96488d88ce163283d339b73a623ce
f4434c85e3814b6347f8f8099c081ed4af5678a5
/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/postgresql/v2020_01_01/aio/operations/_firewall_rules_operations.py
b134643958a2adf39922a022db347bb3ac1b8102
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
yunhaoling/azure-sdk-for-python
5da12a174a37672ac6ed8e3c1f863cb77010a506
c4eb0ca1aadb76ad892114230473034830116362
refs/heads/master
2022-06-11T01:17:39.636461
2020-12-08T17:42:08
2020-12-08T17:42:08
177,675,796
1
0
MIT
2020-03-31T20:35:17
2019-03-25T22:43:40
Python
UTF-8
Python
false
false
21,790
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 ...
8b759f07090e27cb15f72da8b4c0b6be93f37dfe
dfdf57c374b3ad281fd9f86bda343b221efe0b55
/calie/aux/matrices.py
d20fb335227728daa71d8a495c8fac0d260bcdc3
[ "BSD-3-Clause" ]
permissive
SebastianoF/calie
e08d7d3302839e69b0e17b8c7f3233124fef9807
187318fa340b6d2fbf8c5dbc643304b66e9d1c44
refs/heads/master
2020-03-23T14:51:09.761126
2019-03-17T19:31:45
2019-03-17T19:31:45
141,703,688
1
0
null
null
null
null
UTF-8
Python
false
false
10,030
py
import numpy as np def bch_right_jacobian(r): """ BCH_right_jacobian(r) \n :param r: element of lie algebra so2_a in restricted form :return: Jacobian (equation [57] Tom tech memo) """ theta = r[0] dtx = r[1] dty = r[2] j = np.array([0.0] * 9).reshape(3, 3) half_theta = theta *...
c87d5afa14f70ed9c35d2b5894f71311df928142
a904e99110721719d9ca493fdb91679d09577b8d
/month05/spider/day01_course/day01_code/10_novelSpiderMysql.py
f0fca531e47d09485d510041f8e19a4946197908
[ "Apache-2.0" ]
permissive
chaofan-zheng/tedu-python-demo
7c7c64a355e5380d1f8b6464affeddfde0d27be7
abe983ddc52690f4726cf42cc6390cba815026d8
refs/heads/main
2023-03-12T05:17:34.596664
2021-02-27T08:33:31
2021-02-27T08:33:31
323,350,480
4
1
null
null
null
null
UTF-8
Python
false
false
2,194
py
""" 笔趣阁小说爬虫,所抓数据:href、title、author、comment 思路步骤: 1、确认数据来源(右键->查看网页源代码->搜索关键字) 2、确认静态:观察URL地址规律 3、写正则表达式 """ import requests import re import time import random import pymysql class NovelSpider: def __init__(self): self.url = 'https://www.biqukan.cc/fenlei1/{}.html' self....
606e40173bb24cbf9d4f95a5b261acd0d044934f
b5fbc01deb2060b2222f885fca0433844a9e7cd1
/web/lib/python3.6/site-packages/daphne/server.py
fb70c6cdaefb1d92caf40231038ced1b11ffb355
[]
no_license
Carlosdher/reposicao
50973b15f8a2bd3a5a6b83b06efe0050f612bb83
71ef93e694888e54c79e98e8568c3417ee82ec96
refs/heads/master
2020-03-18T04:13:59.493126
2018-08-02T13:06:55
2018-08-02T13:06:55
134,277,105
2
0
null
2018-07-27T19:20:36
2018-05-21T14:01:26
Python
UTF-8
Python
false
false
11,655
py
# This has to be done first as Twisted is import-order-sensitive with reactors import sys # isort:skip import warnings # isort:skip from twisted.internet import asyncioreactor # isort:skip current_reactor = sys.modules.get("twisted.internet.reactor", None) if current_reactor is not None: if not isinstance(curren...
ecb1f88de692273696479a78d63266fb28e7ab08
128548b223a941c1570aba99c679a698dedb3e72
/rename.py
0b1a95e3d55d759c39a67fb810c8a247760c7484
[]
no_license
hhk86/Barra
de3e8d715f6ead1b425e5b639538df370a4eb11f
ddcf50766bcbdecb602213cccc65cab01146f88b
refs/heads/master
2020-07-26T18:04:44.006126
2019-09-26T07:36:48
2019-09-26T07:36:48
208,727,872
1
2
null
null
null
null
UTF-8
Python
false
false
1,005
py
import sys from pymongo import MongoClient from basicFunction import * import sys class MongoDB(): ''' Connect to local MongoDB ''' def __init__(self): self.host = "18.210.68.192" self.port = 27017 self.db = "basicdb" self.username = "user" self.password = "user...
24ae940898e40cd452fccf9a14a65f0d30687132
c4b7399a10b7f963f625d8d15e0a8215ea35ef7d
/239.滑动窗口最大值.py
28a32c944148c249efaaa64c9393453ee7122d3f
[]
no_license
kangkang59812/LeetCode-python
a29a9788aa36689d1f3ed0e8b668f79d9ca43d42
276d2137a929e41120c2e8a3a8e4d09023a2abd5
refs/heads/master
2022-12-05T02:49:14.554893
2020-08-30T08:22:16
2020-08-30T08:22:16
266,042,478
0
0
null
null
null
null
UTF-8
Python
false
false
2,027
py
# # @lc app=leetcode.cn id=239 lang=python3 # # [239] 滑动窗口最大值 # # https://leetcode-cn.com/problems/sliding-window-maximum/description/ # # algorithms # Hard (44.47%) # Likes: 262 # Dislikes: 0 # Total Accepted: 33.6K # Total Submissions: 75.5K # Testcase Example: '[1,3,-1,-3,5,3,6,7]\n3' # # 给定一个数组 nums,有一个大小为 k...
bda3a281f014f07766ed3d12be20620f343d84f9
4e30d990963870478ed248567e432795f519e1cc
/tests/api/v3_1_1/test_radius_server_sequence.py
06bc47193d83c29626dc73d020e1b4e717332858
[ "MIT" ]
permissive
CiscoISE/ciscoisesdk
84074a57bf1042a735e3fc6eb7876555150d2b51
f468c54998ec1ad85435ea28988922f0573bfee8
refs/heads/main
2023-09-04T23:56:32.232035
2023-08-25T17:31:49
2023-08-25T17:31:49
365,359,531
48
9
MIT
2023-08-25T17:31:51
2021-05-07T21:43:52
Python
UTF-8
Python
false
false
13,545
py
# -*- coding: utf-8 -*- """IdentityServicesEngineAPI radius_server_sequence API fixtures and tests. Copyright (c) 2021 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software...
e5aafc8df7b44ff0c83d49b3d4cab9e3ea94de56
240e7cbb46bf2a94b3fd337267c71c1db42e7ce1
/examples/ad_manager/v202002/adjustment_service/get_all_traffic_adjustments.py
7754fa8a3e02792791e992f180562cb4b0e174bc
[ "Apache-2.0" ]
permissive
andreferraro/googleads-python-lib
2624fa84ca7064c3b15a7d9d48fc0f023316524d
a9ddeae56c5b9769f50c4e9d37eb32fd1eebe534
refs/heads/master
2022-11-13T03:38:38.300845
2020-07-03T13:17:59
2020-07-03T13:17:59
276,904,111
0
0
Apache-2.0
2020-07-03T13:16:21
2020-07-03T13:16:20
null
UTF-8
Python
false
false
1,945
py
#!/usr/bin/env python # # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
61109f2520040675af6b0001cb0b033d7f46f74f
68728961294d360d26e8149e7e0a4816adf20842
/src/build_seq2seq_transformer/train_helper.py
847c17f886a834c2ab5cd5579e7cba3bd6108705
[]
no_license
Dawn-Flying/text_summarization
d334fe884aa3a6341dd7bc381b03c1ab3e2c057e
ab68555c6f455c4f14fead5fc1c49420cdef8dc4
refs/heads/master
2023-07-17T07:49:21.995004
2021-08-26T15:46:19
2021-08-26T15:46:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,842
py
import time import tensorflow as tf from src.build_seq2seq_transformer.schedules.lr_schedules import CustomSchedule from src.build_seq2seq_transformer.layers.transformer import create_masks loss_object = tf.keras.losses.SparseCategoricalCrossentropy(from_logits=False, reduction='none') def loss_function(real, pred)...
becf43a0b4dfb0ea436cf8140e0e35e4cfda4e6a
6527b66fd08d9e7f833973adf421faccd8b765f5
/yuancloud/plugin/account_extend/__yuancloud__.py
8db29a38062cd53a33ecab90e168d9cf7f69b8a1
[]
no_license
cash2one/yuancloud
9a41933514e57167afb70cb5daba7f352673fb4d
5a4fd72991c846d5cb7c5082f6bdfef5b2bca572
refs/heads/master
2021-06-19T22:11:08.260079
2017-06-29T06:26:15
2017-06-29T06:26:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
873
py
# -*- coding: utf-8 -*- { 'name': "财务模块扩展", 'summary': """ """, 'description': """ Long description of module's purpose """, 'author': "[email protected]", 'website': "http://www.sswyuan.net/yuancloud", # Categories can be used to filter modules in modules listing #...
07fccf67a1e8f157cd3475218604638fde43eeab
0931b32140ba932b3ba02f5109a087c6c70a244d
/frappe/utils/background_jobs.py
f6f35f3c8239acf3302486d691b210bc54e537ca
[ "MIT" ]
permissive
cstkyrilos/frappe
b60ed4e95ce929c74c2fc46000080d10b343190e
27d9306bc5924c11c2749503454cc6d11a8cc654
refs/heads/main
2023-03-23T10:35:42.732385
2021-03-22T21:55:58
2021-03-22T21:55:58
350,292,784
0
0
MIT
2021-03-22T10:01:08
2021-03-22T10:01:07
null
UTF-8
Python
false
false
5,097
py
from __future__ import unicode_literals, print_function import redis from rq import Connection, Queue, Worker from frappe.utils import cstr from collections import defaultdict import frappe import MySQLdb import os, socket, time default_timeout = 300 queue_timeout = { 'long': 1500, 'default': 300, 'short': 300 } d...
cffac3e938b8f72f426447724e96e8a625dca2f2
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc027/D/4117422.py
388be0989c70f290b2cd9f0347c18a27adb75478
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
412
py
from itertools import accumulate S = input() N = len(S) M_cnt = S.count('M') cnt_plus = list(accumulate([(1 if s == '+' else 0) for s in S[::-1]]))[::-1] cnt_minus = list(accumulate([(1 if s == '-' else 0) for s in S[::-1]]))[::-1] p = [] for i, s in enumerate(S): if s == 'M': p.append(cnt_plus...
b2a3deaae28ce2efbd89fe01d8a2d2145f9946ff
c8ed5baad6ce8527f4b75a73d0f15b1207aa660e
/app/discourse/config.py
41c134bf5724c4ec50aaeec6afe12e15213f4a81
[]
no_license
GovLab/noi2
f12aed284c11c743fff0286df4fe59bb8b894050
7fce89f0c4c437718916fc95ca4c6c4372cdf464
refs/heads/master
2021-04-15T15:10:20.713982
2016-10-06T23:27:05
2016-10-06T23:27:05
40,134,662
5
9
null
2016-06-30T06:37:33
2015-08-03T16:10:41
Python
UTF-8
Python
false
false
593
py
from werkzeug.local import LocalProxy from flask import current_app class DiscourseConfig(object): def __init__(self, config): self.api_key = config['api_key'] self.origin = config['origin'] self.sso_secret = config['sso_secret'] self.admin_username = 'system' def url(self, pat...
32245eaa2f0c0743d15adfd2dd63d081db2d8f46
06a18ff78abb52a6f6db1053958cab94948802c6
/manage.py
92c8452486877debeeaa290576a2af7842f45a09
[]
no_license
ZFCon/moviesdand
28b49d4428d4d4b445f940936c0529f55613f25e
4f3718e8082c7ec6201a4c5399a7ddb5d5b01031
refs/heads/master
2023-04-28T23:57:09.835193
2019-12-09T21:19:08
2019-12-09T21:19:08
224,487,270
1
0
null
2023-04-21T20:41:05
2019-11-27T17:51:35
CSS
UTF-8
Python
false
false
630
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'moviesdand.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
12ab0540bafb80390bcb2af09737bf5eb8328fae
b2ba670818623f8ab18162382f7394baed97b7cb
/test-data/AndroidSlicer/Bites/DD/4.py
b62029f34f1e3997c9a8c10994ecffaead769d2e
[ "MIT" ]
permissive
hsumyatwin/ESDroid-artifact
012c26c40537a79b255da033e7b36d78086b743a
bff082c4daeeed62ceda3d715c07643203a0b44b
refs/heads/main
2023-04-11T19:17:33.711133
2022-09-30T13:40:23
2022-09-30T13:40:23
303,378,286
1
1
null
null
null
null
UTF-8
Python
false
false
2,621
py
#start monkey test seedNo 0 import os; from subprocess import Popen from subprocess import PIPE from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage from com.android.monkeyrunner.MonkeyDevice import takeSnapshot from com.android.monkeyrunner.easy import EasyMonkeyDevice from com.android.monkeyru...
3de583f2f00f4914d1aa86d9d991dd8cc02811f0
909afe0216a37bdc19683d81e533fa6c094329c1
/python/leetcode/53-maximum-subarray.py
a2af229326ee18c0e058516c510b22433c0acfdd
[]
no_license
wxnacy/study
af7fdcd9915d668be73c6db81bdc961247e24c73
7bca9dc8ec211be15c12f89bffbb680d639f87bf
refs/heads/master
2023-04-08T17:57:40.801687
2023-03-29T08:02:20
2023-03-29T08:02:20
118,090,886
18
22
null
2022-12-16T03:11:43
2018-01-19T07:14:02
HTML
UTF-8
Python
false
false
4,928
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: wxnacy([email protected]) # Description: 最大子序和 为完成动态规划算法 ''' 给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 示例: 输入: [-2,1,-3,4,-1,2,1,-5,4], 输出: 6 解释: 连续子数组 [4,-1,2,1] 的和最大,为 6。 进阶: 如果你已经实现复杂度为 O(n) 的解法,尝试使用更为精妙的分治法求解。 ''' from constants import NUMS_FOR53 ...
3787e3fd933ddd148fab18af2ec10a45fdbe09e4
caf5807c331ff22b1e7d48f59b626a8869bd418d
/quotes/models.py
d5d4b80e67599700f8a2ceddb5a9ece5e1f0e9a7
[]
no_license
tahirawan4/cserver
d7cd2953f75485b8f061e0301d2ce4d77605e8fa
fcb7e0e22e3e2bac6e0278aa41709f84f93c9da2
refs/heads/master
2021-01-10T02:50:12.879964
2015-06-03T19:58:59
2015-06-03T19:58:59
36,827,447
0
0
null
null
null
null
UTF-8
Python
false
false
1,171
py
from django.db import models # Create your models here. from django.db import models # Create your models here. class Author(models.Model): name = models.CharField(max_length=30) author_discription = models.CharField(max_length=150) author_url = models.CharField(max_length=150) author_image = models.I...
497a9fbcff26fdec2bfd886a40ed6cae1bc0b5fc
72765c1736a10b86be8583dbd694906aff467068
/tkinter/tkinter_pack/tkinter_font.py
86bf8bb16121622c1a8e3b449bc37793646e9847
[]
no_license
taison2000/Python
05e3f3834501a4f5ef7a6260d8bf3d4ce41930f3
44079700c3db289f92792ea3ec5add6a523f8eae
refs/heads/master
2021-10-16T07:43:55.202012
2019-02-09T02:22:44
2019-02-09T02:22:44
103,322,062
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
#!/usr/bin/python # Comment start with # import sys import tkinter as tk #from tkinter import messagebox as msgBox ## tkMessageBox (v2.x) ==> messagebox (v3.x) top = tk.Tk() lbl1 = tk.Label(None, text='This is a label #1') lbl2 = tk.Label(None, text=' label #2', bg="light green") lbl3 = tk.Label(No...
eb35046e2b6c4f11866a15ec83a1b6d45ec5dcb7
6580ba5d135c4f33f1a0996953ba2a65f7458a14
/applications/ji178/models/fd404.py
1e76f1088602024a7d98867bbe6b8c5253fb2792
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
ali96343/facew2p
02b038d3853691264a49de3409de21c8a33544b8
a3881b149045e9caac344402c8fc4e62edadb42f
refs/heads/master
2021-06-10T17:52:22.200508
2021-05-10T23:11:30
2021-05-10T23:11:30
185,795,614
7
0
null
null
null
null
UTF-8
Python
false
false
3,643
py
# # table for controller: X404 # from gluon.contrib.populate import populate db.define_table('d404', Field('f0', label='key', writable = True , length= 1000), Field('f1', 'text', label='data string', length= 1000), Field('f2', 'text', label='save data string', length= 1000, default='' ), ) # i...
287ea9e6f95498d1cc39def3a007c223b9d638fb
99a472a443ed55652de88dc82451fdcc22d601f9
/label_maker.py
1cc3d5b5bff9ef693b587a327bb524bf5bd29a8e
[]
no_license
JeremyGibson/gvision
c954144c8c8648619fb0e34cec855a6d72d23cb3
b218e0255d076c7bdb5f5c0c694264399fa4419d
refs/heads/main
2023-03-07T02:44:53.521075
2021-02-15T21:18:57
2021-02-15T21:39:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
#!/usr/bin/python import os from pathlib import Path from datetime import datetime from google.cloud import vision LOG_PATH = Path("logs") PATH_TO_IMAGES = Path(os.environ["PHOTOS_DIR"]) client = vision.ImageAnnotatorClient() POTENTIAL_DOCUMENT = ['font', 'material property', 'parallel', 'stationery', 'recipe', 'pap...
1f4fc6c7eee5b82ea686875e7a379a7e1f509552
e311664619d469addd2c77566ec97d24affcbfd9
/src/apps/alumno_profesor/migrations/0007_alumno_last_login.py
bf2c5409384950bcfb799164bb23bacfe9e2d549
[]
no_license
danielhuamani/Proyecto-taller-base-datos
361dc8c915dff36a9ce96a7147c11f0af9d51227
5d791383f77f8042a2890db4cfd31079c6d1dc7b
refs/heads/master
2016-08-11T13:47:03.169317
2015-12-22T04:28:52
2015-12-22T04:28:52
46,673,349
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('alumno_profesor', '0006_auto_20151220_1948'), ] operations = [ migrations.AddField( model_name='alumno', ...
e81481b04fb1f65a6e1d9d47e39919236d78028e
81a62053841c03d9621fd31f8e7984c712c7aed2
/zoo/BEVFormer/attacks/attacker/pgd.py
f0b9a265b5f49216b58f49230fbcad46f430c69e
[ "Apache-2.0" ]
permissive
Daniel-xsy/BEV-Attack
d0eb3a476875f9578c53df9bcb21564dea18ce0c
7970b27396c1af450c80b12eb312e76a8ab52a0a
refs/heads/master
2023-05-23T01:13:44.121533
2023-02-22T05:48:14
2023-02-22T05:48:14
540,328,937
7
1
null
null
null
null
UTF-8
Python
false
false
4,428
py
import torch import torch.nn as nn import numpy as np import random import mmcv from attacks.attacker.base import BaseAttacker from attacks.attacker.builder import ATTACKER @ATTACKER.register_module() class PGD(BaseAttacker): def __init__(self, epsilon, step_size, ...
9012f3d446c9811c846cbdf005bfb6e188fa54c8
52b5773617a1b972a905de4d692540d26ff74926
/.history/rottenOranges_20200810193226.py
9ad8d01ffd15107d6776d9a79b8fb4622742316f
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
def markrotten(i,j,row,column,grid): if (i < 0 or i >= row or j < 0 or j >= column) or grid[i][j] !=1: return else: grid[i][j] == 2 print('grid',grid) # checking its neighbours markrotten(i+1,j,row,column,grid) markrotten(i,j+1,row,column,grid) ma...
1edb9ae7fd8237f94d649a9af47757a6ad086796
95ad637ede0acdd88bbfffd10e344aff89ec298f
/impc_etl/jobs/loaders/quml_loader.py
faeb2f1ac5cd8b9827afbcbfbb00603878b02695
[ "Apache-2.0" ]
permissive
luwei1234567/impc-etl
c13386b0f6871c17353ae4884cc444222e66f91b
8bad084c00ec63b2b5d109f84db77dd0172d142d
refs/heads/master
2020-04-03T20:43:59.859205
2018-10-31T12:43:11
2018-10-31T12:43:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
""" Queen Mary University of London data loader load_diseases: load_disease_models: """
9f7ab36b72ea976d64ec31fe193a1ffd67c51b33
3ced55b04ec82df5257f0e3b500fba89ddf73a8a
/src/stk/molecular/functional_groups/factories/bromo_factory.py
efd349b3d0830c3e38e99827798093df7e4a8813
[ "MIT" ]
permissive
rdguerrerom/stk
317282d22f5c4c99a1a8452023c490fd2f711357
1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a
refs/heads/master
2023-08-23T21:04:46.854062
2021-10-16T14:01:38
2021-10-16T14:01:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,018
py
""" Bromo Factory ============= """ from __future__ import annotations import typing from collections import abc from .functional_group_factory import FunctionalGroupFactory from .utilities import get_atom_ids from ..functional_groups import Bromo from ...molecule import Molecule from ...elements import Br __all__...
a9b66bfafdae81a479bdb341cbce153b8d8dec62
0fe394b10b39864915fcc4073a5fa050aa02502e
/SoloLearn_Project/skip.py
15ca46a183e4985396b92c323c1ecce9196dcecc
[]
no_license
JohnAssebe/Python
9997d47bba4a056fdcd74c6e5207fc52b002cbfd
b88a7c2472f245dc6a0e8900bbea490cb0e0beda
refs/heads/master
2022-05-14T10:08:37.311345
2022-05-09T19:48:53
2022-05-09T19:48:53
212,562,910
0
1
null
null
null
null
UTF-8
Python
false
false
613
py
def skip_elements(elements): # Initialize variables new_list = [] i = 0 if len(elements)==0: return [] # Iterate through the list for i in range(0,len(elements),2): # Does this element belong in the resulting list? if elements[i] not in new_list: # Add this element to the resulting list new_list.appen...
736d83f69f045da85f0dcc4f44f46644a627a50f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03472/s538005754.py
db417a8a26fe90ea010a6da9d14aba392ac1ffdb
[]
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
442
py
n,h = map(int,input().split()) katana_a = [] katana_b = [] for i in range(n): a,b = map(int,input().split()) katana_a.append(a) katana_b.append(b) amax = max(katana_a) katana_b.sort(reverse=True) ans = 0 k = 0 while h > 0: if k == n: break if katana_b[k] > amax: h -= katana_b[k] ...
db431d9e93dd7b65b8dad33e2dccb31adb4e6276
6c137e70bb6b1b618fbbceddaeb74416d387520f
/pyqtgraph/examples/contextMenu.py
c2c5918dbf2642bbf316f24c4f9143c973f8d93c
[ "BSD-2-Clause", "MIT" ]
permissive
zhong-lab/code
fe497c75662f8c3b7ab3c01e7e351bff6d5e8d15
b810362e06b44387f0768353c602ec5d29b551a2
refs/heads/master
2023-01-28T09:46:01.448833
2022-06-12T22:53:47
2022-06-12T22:53:47
184,670,765
2
7
BSD-2-Clause
2022-12-08T21:46:15
2019-05-02T23:37:39
Python
UTF-8
Python
false
false
4,497
py
# -*- coding: utf-8 -*- """ Demonstrates adding a custom context menu to a GraphicsItem and extending the context menu of a ViewBox. PyQtGraph implements a system that allows each item in a scene to implement its own context menu, and for the menus of its parent items to be automatically displayed as well. """ imp...
[ "none" ]
none
83c644506d964c736a4d5cae65f08195d41dc016
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/7yo5FJX4xFbNxim5q_22.py
9783436a95859a2a95ce2cbc4b159661968c0f8b
[]
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
217
py
def harry(po): if len(po[0])==0: return -1 downright = sum(po[-1])+sum(po[i][0] for i in range(len(po)-1)) rightdown = sum(po[0])+sum(po[i][-1] for i in range(len(po)-1)) return max(downright,rightdown)
1974a71145eabc83d069ae9eb89f4b22ccb733e3
6044266e775c87afed99397c8bb88366fbbca0e7
/scrapy_projt/xpath_tutorial_1/xpath_normalize-space_span.py
a61ab6ea4dc655eeab231d5be07451831d6f7fc6
[]
no_license
ranafge/all-documnent-projects
e4434b821354076f486639419598fd54039fb5bd
c9d65ddea291c53b8e101357547ac63a36406ed9
refs/heads/main
2023-05-08T20:01:20.343856
2021-05-30T10:44:28
2021-05-30T10:44:28
372,186,355
0
1
null
null
null
null
UTF-8
Python
false
false
1,181
py
import scrapy html="""<form class="variants" action="/cart"> <a class="thumb fancybox image_outer" href="products/apple-iphone-5s-16gb-black--space-gray-chernyj" data-fancybox-group="gallery5"> <img src="http://first-store.ru/files/products/iphone%205S%20black_1.100x112.jpg?16ef5c4132fc88594851f92ccc2f3437"...
c55d7e21b155df85decbb4db71b4bff34ba005ab
c80b3cc6a8a144e9858f993c10a0e11e633cb348
/components/ally-core-http/__setup__/ally_core_http/definition_time_zone.py
c7622168d8027cd0b24ee99b10fc4017a9d64a68
[]
no_license
cristidomsa/Ally-Py
e08d80b67ea5b39b5504f4ac048108f23445f850
e0b3466b34d31548996d57be4a9dac134d904380
refs/heads/master
2021-01-18T08:41:13.140590
2013-11-06T09:51:56
2013-11-06T09:51:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,179
py
''' Created on Jul 17, 2013 @package: ally core http @copyright: 2012 Sourcefabric o.p.s. @license: http://www.gnu.org/licenses/gpl-3.0.txt @author: Gabriel Nistor Provides the time zone header definitions. ''' from ..ally_core.definition import definitions, defin, errors, error, desc from .definition_header import ...
d0c4d0d97f9a1c42d2bc97257e59f28c94e033e4
6f56dbc188abcc8156eb7dae625243192516675b
/python/jittor/test/test_lazy_execution.py
ce276b4798848f4d6ea6f3e482b3ff93859baa1f
[ "Apache-2.0" ]
permissive
linker666/jittor
80e03d2e8dec91bb69d4d6f7b0d222bfbf6c750f
96545765eca7364ec4938e1fa756bce4cb84dfb8
refs/heads/master
2023-02-09T21:28:48.706061
2021-01-05T15:08:33
2021-01-05T15:08:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,315
py
# *************************************************************** # Copyright (c) 2020 Jittor. All Rights Reserved. # Maintainers: # Meng-Hao Guo <[email protected]> # Dun Liang <[email protected]>. # # # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of ...
f663b36df0521678d0c0adddcc3dfdefd10e7c2d
9fb0162a88190f20d84b2ffd0b505c0a9fff4e19
/draughtcraft/tests/controllers/test_signup.py
981bb2b6cc8b60638bd5fc27f842cdf91e271e06
[]
no_license
johnmontero/draughtcraft
3414924e7d0f659f6c3c6aaab47507f3fc0e7818
eb48473f880555119fe9497ed3db23e8a9f5c5e9
refs/heads/master
2021-01-15T18:36:34.137605
2011-11-27T22:01:24
2011-11-27T22:01:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,998
py
from pecan import conf, abort from draughtcraft.tests import TestApp from draughtcraft import model import fudge class TestSignup(TestApp): def test_signup_form(self): assert model.User.query.count() == 0 self.get('/signup') assert model.User.query.count() ...
a42e0f404a06eceeff048e1750ca7e2890973dfc
7da3fe4ea12be962b574c8be63c35014df0d2faf
/facade.py
7f78edabd4455cfb95a3de2bfdde477d571562e5
[]
no_license
hanmiton/patronesDise-o
2a4b581fc90a512bf7db26f728a17ce0f48eef83
523d993dfc60318e4af4a4dbc7fa236b9ae0bc94
refs/heads/master
2020-04-18T16:54:08.084782
2016-09-01T06:16:29
2016-09-01T06:16:29
66,985,551
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
class Scanner: def __init__(self): self.name = "Scanner" class Parser: def __init__(self): self.name = "Parser" class Compiler: def __init__(self): self.name = "Compiler" self.scanner = Scanner() self.parser = Parser() def compile(self): print("Compiling ...") print("Scanning %...
c0474becc0c7f964e582da615406555736dbaf11
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/17/usersdata/132/6773/submittedfiles/lecker.py
4b0c09bdee76966f8925264740fabe32156d6d34
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
# -*- coding: utf-8 -*- from __future__ import division import math a= input(' digite um valor:') b= input(' digite um valor:') c= input(' digite um valor:') d= input(' digite um valor:') if a>b>c>d: print('S') if a>b>c<d: print('N') if a>b<c>d: print('N') if a>b<c<d: print('N') if a<b>c>d: print('S...
570b3e7425911bb1015aa72da24b6775e9a9cf9f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03030/s750969702.py
3af20d6d293086c39ad8ce1585af7340da080628
[]
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
159
py
n = int(input()) lst = [] for i in range(n): s, p = input().split() lst.append([s, -(int(p)), i+1]) lst.sort() for i in range(n): print(lst[i][2])
050b92002ed36ae06083ba938f6d02ed2827a17f
5ecaded45e28c1041c1986c13db446806a28b3ee
/function-arguments/learn-python-function-arguments/positional-argument-unpacking.py
15f83e9c8a7c4b9fe6c11866c9e470762c69f06a
[]
no_license
109658067/Python3_Codecademy
12206ec74e8dc95cc1200491b4ed75b856bfb25e
8480912c6dd15649b3c51f4c205afdd253ea462b
refs/heads/master
2022-09-15T18:21:26.742741
2020-06-04T05:48:58
2020-06-04T05:48:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
from os.path import join path_segment_1 = "/Home/User" path_segment_2 = "Codecademy/videos" path_segment_3 = "cat_videos/surprised_cat.mp4" # join all three of the paths here! print(join(path_segment_1, path_segment_2, path_segment_3)) def myjoin(*args): joined_string = args[0] for arg in args[1:]: joined_st...
a506c46467e4562eaec2431f7bc7348fc991d68b
a4e41b84931ba69d7d8548a7df0ca4fe68ed02b5
/view/customer_test.py
6ab1159cf42343e130a8f828604dc27e840080ab
[]
no_license
LittleDeveloper-CSharp/typography_rmp
b05869b735df1c72c6d0c11addb6b1c68fda62f3
6a0e50f7ffbdc51b609761be3bf23920721682b3
refs/heads/master
2023-04-13T21:36:22.589576
2021-04-25T20:05:52
2021-04-25T20:05:52
361,526,716
0
0
null
null
null
null
UTF-8
Python
false
false
3,927
py
import models.customer from tkinter import Entry, END, Button, Label, Frame, VERTICAL from tkinter.ttk import Treeview, Scrollbar class CustomerWindow: def fill_tree_view(self): self.list_customer = models.customer.select_customer() for item in self.list_customer: self.tree_view_custome...
[ "test" ]
test
c0f9dbecd67de39faf7a200cd391cce07c3eb470
c80e4dea4548de89d32f2abd6ca58812670ecc7b
/scripts/regal/RegalDispatch.py
49aa3451931469377a6fd4c1f560c3bfcb014de4
[ "Unlicense", "MIT", "LicenseRef-scancode-glut", "BSD-3-Clause", "SGI-B-2.0", "LicenseRef-scancode-public-domain", "BSD-2-Clause" ]
permissive
chinmaygarde/regal
971699cc8d991633b7257ce9ced2b4d65dd6d9b2
db0832075bd78241afe003b9c1b8f6ac0051370b
refs/heads/master
2021-01-17T04:42:10.354459
2012-10-10T09:08:13
2012-10-10T09:08:13
6,150,566
1
0
null
null
null
null
UTF-8
Python
false
false
5,311
py
#!/usr/bin/python -B from string import Template, upper, replace from ApiUtil import outputCode from ApiUtil import typeIsVoid from ApiCodeGen import * from RegalDispatchLog import apiDispatchFuncInitCode from RegalDispatchEmu import dispatchSourceTemplate from RegalContextInfo import cond ########################...
dc55651adbffad521879c30bf2544d1f19ac7c98
472370808bd279442f25b1bb96c20e8a164d3b06
/train_k7.py
772ef38767cbcb6b81ba9125cae686aaaed5a87c
[]
no_license
Qidian213/Emotion_challenge
d2983a078aa6c0ff76d052d0120acc9f387ecb6d
b214c532a4b079d6654507d2865ec65336ead65e
refs/heads/master
2021-08-28T20:58:45.547325
2021-08-18T11:10:46
2021-08-18T11:10:46
246,117,379
0
0
null
null
null
null
UTF-8
Python
false
false
5,430
py
import os import logging import torch import torch.optim import numpy as np from torch.optim import lr_scheduler from datasets import make_dataloader,RandomSampler,train_collate from torch.utils.data import DataLoader import torch.nn.functional as F from torch.nn.parallel.data_parallel import data_parallel from model i...
0003c2297c1495ccc44a04b288a33319f48c4b73
52a3beeb07ad326115084a47a9e698efbaec054b
/horizon-manila-lease.py
1581d1595db3ca80cdc426413cd5941385cba107
[]
no_license
bopopescu/sample_scripts
3dade0710ecdc8f9251dc60164747830f8de6877
f9edce63c0a4d636f672702153662bd77bfd400d
refs/heads/master
2022-11-17T19:19:34.210886
2018-06-11T04:14:27
2018-06-11T04:14:27
282,088,840
0
0
null
2020-07-24T00:57:31
2020-07-24T00:57:31
null
UTF-8
Python
false
false
19,983
py
# Copyright 2012 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2012 OpenStack Foundation # Copyright 2012 Nebula, Inc. # Copyright (c) 2012 X.commerce, a business unit of eBay Inc. # # Licensed under the Apach...
5b7cc4476300d195ed7f2a305a7db60edd92fcc5
dc40794d0d17f4ee552d58621c4340e60a998d68
/leetcode/python/remove-all-adjacent-duplicates-in-string.py
c6153b82c0e4c1b7c2a2b2f055323d3690212110
[]
no_license
lsom11/coding-challenges
26e67e440bea4c42a0f28051653290f2cb08d0e7
4c127fdeb2ccbbdcdee0c8cd5d5ba47631508479
refs/heads/master
2021-11-23T11:40:37.516896
2021-10-27T15:50:35
2021-10-27T15:50:35
193,889,529
1
3
null
2020-10-27T12:59:54
2019-06-26T11:15:27
Python
UTF-8
Python
false
false
238
py
class Solution: def removeDuplicates(self, S): stack = [] for s in S: if not stack or s != stack[-1]: stack += [s] else: stack.pop() return ''.join(stack)
5a1531e3ab03bca5ad92b86fd67eda6eaa285b9a
13acfcb4a300d6c9f40c79f56175c74b0f673c3f
/ILI9341/examples/01_basic/05a_println.py
9be665576366149f3decadc57fbec3e13c34cad2
[]
no_license
mchobby/pyboard_drive
821d7fce0f6791877397159cdf3c0636916628ae
8e32dc68b131d31aba38087588883fac26534d0f
refs/heads/master
2021-01-18T16:13:50.127858
2016-04-10T19:43:21
2016-04-10T19:43:21
55,912,768
1
0
null
2016-04-10T17:25:57
2016-04-10T17:25:56
Python
UTF-8
Python
false
false
1,103
py
# The driver allows you to draw text (string) on the screen. # Text drawing has the following feature: # * Support of various font # * Support for text color (and background color) # * Cursor blinking # * Draw from position (x,y) # from lcd import * from fonts.arial_14 import Arial_14 import pyb l = LCD( rate...
8257e2e8157015ef95f33c5f7785f5aef2c3375c
170026ff5b435027ce6e4eceea7fff5fd0b02973
/glycan_profiling/serialize/base.py
b71b0e0048d9fda6a2af63717a16b06d6e733fa8
[ "Apache-2.0" ]
permissive
mstim/glycresoft
78f64ae8ea2896b3c4f4c185e069387824e6c9f5
1d305c42c7e6cba60326d8246e4a485596a53513
refs/heads/master
2022-12-24T23:44:53.957079
2020-09-29T13:38:20
2020-09-29T13:38:20
276,471,357
0
0
NOASSERTION
2020-07-01T20:04:43
2020-07-01T20:04:42
null
UTF-8
Python
false
false
1,397
py
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import ( Column, Numeric, Integer, String, ForeignKey, PickleType, Boolean) from sqlalchemy.orm import validates from sqlalchemy.orm.session import object_session Base = declarative_base() def Mass(index=True): return Column(Numeric(...
07d85bc48b7aef4f34e224228e7271515c99901c
ffad2a50d566fe755cca2a2aae652c58a6b08c66
/manage.py
0857525cb3a588e585cc8cf0732318421947565d
[]
no_license
adiram17/pyanysite
04dc48c3f02e1f80262d893a50bc4354e4f3a725
b7f2a66fb636bb409820d07da1b6760453a9d60e
refs/heads/master
2022-04-19T16:28:51.341707
2020-04-17T09:55:29
2020-04-17T09:55:29
256,464,835
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'pyanysite.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Impo...
6ca479bcdf4e9c8908115b2b62bd2584bc93d313
f4b60f5e49baf60976987946c20a8ebca4880602
/lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/comp/rthyper.py
71878443385b40d056e3b9550a6af0f2bd67120c
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
5,085
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
70d79955bc6a0c1c85b69b4bd25c4cd38ba5ee4b
c4e74cb97febd177ea5795e0010ff575560209ad
/udemy-dl.py
f4c5a11b8d0bda0d844157c912741f3c5eeb51f7
[ "MIT" ]
permissive
Simerpreet-K/udemy-dl
2a0f403def1ba5daa7649df44d61ecdd0b7e5ae6
df0c99ec007f34854745c035878a23e2b971e232
refs/heads/master
2020-03-17T08:48:58.605904
2018-05-15T02:57:09
2018-05-15T02:57:09
133,450,817
0
0
MIT
2018-05-15T02:56:02
2018-05-15T02:56:02
null
UTF-8
Python
false
false
80,016
py
#!/usr/bin/python # -*- coding: utf-8 -*- import os import sys import time import udemy import argparse from pprint import pprint from udemy import __version__ from udemy._colorized import * from udemy._compat import pyver from udemy._getpass import GetPass from udemy._vtt2srt import WebVtt2Srt from udemy._progress i...
d5b88f8629f9f6924631d18a30e861b74631cacc
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_354/ch118_2020_10_05_20_26_56_452982.py
e6c9398b5afb5dea7dc4d9be024f67529850913e
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
import math def reflexao_total_interna(n1,n2,o2): y=(n2*math.sin(math.radians(o2)))/n1 if y > 1: return True else: return False
31cc256c5c48f8f108aebbc668b02473408ab0fc
0f9f8e8478017da7c8d408058f78853d69ac0171
/python3/l0203_remove_linked_list_elements.py
11775486cd12a337eda8f3139c2959e183cdbebc
[]
no_license
sprax/1337
dc38f1776959ec7965c33f060f4d43d939f19302
33b6b68a8136109d2aaa26bb8bf9e873f995d5ab
refs/heads/master
2022-09-06T18:43:54.850467
2020-06-04T17:19:51
2020-06-04T17:19:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
from common import ListNode class Solution: def removeElements(self, head: ListNode, val: int) -> ListNode: p = dummy = ListNode(0) dummy.next = head while p.next: if p.next.val == val: p.next = p.next.next else: p = p.next ret...
a1730b0036d7737aea484625171644187585d455
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5630113748090880_0/Python/Dog/mainB.py
8ad199a6e9d658b1e59232341d93ba4eca935dc0
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
793
py
#! /usr/bin/env python3 import sys def solve(numbers): counts = dict((n, 0) for n in set(numbers)) for n in numbers: counts[n] += 1 row = list() for (n, c) in counts.items(): if c % 2 == 1: row.append(n) return ' '.join(map(str, sorted(row))) #########################...
a85936ec234127243476ed150e317b33f2431a3c
8f0aa0b8b8a9c9a8884fa6cb769ee34639e2f355
/lending_library/lender_profile/models.py
ea35d7bdcd283a51b6d3d6541fb9033377044c57
[]
no_license
datatalking/django-lender-401d7
3f9e2b46e73a0efd17c082b87edf4705ad7ddded
64eae040c4c778cb96e2dedbdb2de5dc2bc1223b
refs/heads/master
2020-03-11T17:16:31.631481
2017-11-30T23:11:14
2017-11-30T23:11:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class LenderProfile(models.Model): location = models.CharField(max_length=200, blank=True, null=True) user = models.OneToOneField(User, related_name='profile')
0480de31fa8374c05cecf776dc5f07449d15f22e
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_95/2141.py
e328217501accf9709c862aaf76b4cc5c0f26338
[]
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
455
py
from string import maketrans import sys def trans(input): alpha = "abcdefghijklmnopqrstuvwxyz" trans = "yhesocvxduiglbkrztnwjpfmaq" transtab = maketrans(alpha,trans) return input.translate(transtab) if __name__ == "__main__": f = sys.stdin if len(sys.argv) >= 2: fn = sys.argv[1] if fn != '-': ...
dd9ac21ba1fb5bced046fac8d050cf79d2b20897
fb28a622b21f5127c83c7fe6193b6312294b2dbe
/apps/order/migrations/0010_auto_20190729_0947.py
911a373cc6830572f340789dd65c5e59e26d2a0d
[]
no_license
laoyouqing/video
0cd608b1f9d3a94da4a537867fafce6f7dcd1297
9aa7ecf17f0145437408a8c979f819bb61617294
refs/heads/master
2022-12-19T11:02:01.343892
2019-08-21T04:00:13
2019-08-21T04:00:13
203,500,521
0
0
null
2022-12-08T06:03:17
2019-08-21T03:40:13
Python
UTF-8
Python
false
false
536
py
# Generated by Django 2.1.1 on 2019-07-29 01:47 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('order', '0009_auto_20190729_0941'), ] operations = [ migrations.AlterField( model_name='ordergo...
1f083451b4ca8c802f6a551d8b929f910b51cb85
914a83057719d6b9276b1a0ec4f9c66fea064276
/test/performance-regression/full-apps/qmcpack/nexus/library/periodic_table.py
352f55194bb23de4e080377de887896104cf75e5
[ "LicenseRef-scancode-unknown-license-reference", "NCSA", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "BSD-2-Clause" ]
permissive
jjwilke/hclib
e8970675bf49f89c1e5e2120b06387d0b14b6645
5c57408ac009386702e9b96ec2401da0e8369dbe
refs/heads/master
2020-03-31T19:38:28.239603
2018-12-21T20:29:44
2018-12-21T20:29:44
152,505,070
0
0
Apache-2.0
2018-10-11T00:02:52
2018-10-11T00:02:51
null
UTF-8
Python
false
false
57,267
py
from generic import obj from developer import DevBase from unit_converter import UnitConverter def phys_value_dict(value=None,units=None): vdict = UnitConverter.convert_scalar_to_all(units,value) return obj(**vdict) #end def phys_value_dict class SimpleElement(DevBase): def __init__(self): ...
5326a03c579aa60eca70ccc490e2ce6b66223d77
15f0514701a78e12750f68ba09d68095172493ee
/Python3/488.py
2fe4101ca082c932b0960dd56c0a27563aed247f
[ "MIT" ]
permissive
strengthen/LeetCode
5e38c8c9d3e8f27109b9124ae17ef8a4139a1518
3ffa6dcbeb787a6128641402081a4ff70093bb61
refs/heads/master
2022-12-04T21:35:17.872212
2022-11-30T06:23:24
2022-11-30T06:23:24
155,958,163
936
365
MIT
2021-11-15T04:02:45
2018-11-03T06:47:38
null
UTF-8
Python
false
false
3,473
py
__________________________________________________________________________________________________ sample 28 ms submission class Solution: def findMinStep(self, board: str, hand: str) -> int: from collections import Counter balls_count = Counter(hand) return self.dfs(board,...
c4a6e8d1854c60e586f254827e4f58e654aec6df
910d1c6f0531982ac85cfbfcfd96f694d77d53d9
/tornado-restfulapi/celery_app/celeryconfig.py
b54ff2f18fb2036a8084450817b73fe78a3fcf5c
[ "MIT" ]
permissive
zhangyong7887/tornado
d00ed173a542c187a2272fd9d250679894cc3263
2a89ce36380c7f322acbcd7cf5b035b3e8d99619
refs/heads/main
2023-03-27T07:26:11.600519
2021-03-11T22:08:18
2021-03-11T22:08:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,812
py
from celery.schedules import crontab from datetime import timedelta from kombu import Queue from kombu import Exchange # 设置任务接受的类型,默认是{'json'} accept_content = ['json'] # 请任务接受后存储时的类型 result_accept_content = ['json'] # 时间格式化为中国的标准 timezone = "Asia/Shanghai" # 结果序列化为json格式 默认值json从4.0开始(之前为pickle)。 result_serializer...
7f9cf2c3ee18d83cacfa58b96162d62ed0d51a03
52cb25dca22292fce4d3907cc370098d7a57fcc2
/BAEKJOON/다이나믹 프로그래밍/9461_파도반 수열.py
9696a17c3a5037916b2f467d9cac06307a38b7ef
[]
no_license
shjang1013/Algorithm
c4fc4c52cbbd3b7ecf063c716f600d1dbfc40d1a
33f2caa6339afc6fc53ea872691145effbce0309
refs/heads/master
2022-09-16T12:02:53.146884
2022-08-31T16:29:04
2022-08-31T16:29:04
227,843,135
1
0
null
null
null
null
UTF-8
Python
false
false
295
py
# 동적 계획법(다이나믹 프로그래밍)을 이용 # 4번째부터 규칙 존재 def triangle(N): f = [0, 1, 1, 1] for i in range(4, N+1): f.append(f[i-3]+f[i-2]) return f[N] T = int(input()) for _ in range(T): N = int(input()) print(triangle(N))
2189c521d643b8c9feae447145f8e67196cd1384
ea727658bb22df6dd0a4d8aaff5d13beec8ec8b5
/examples/大數據資料分析/範例程式/第11章/program11-2.py
ee59c8722f865802cb46b9adc72cedd22431edec
[]
no_license
kelvinchoiwc/DataScience_1082
f8e31c230776f45d70f6b96ef81d16881118e453
199f915540afe6c9a9ec7055aac5911420d783be
refs/heads/master
2023-07-24T04:29:01.763893
2021-09-01T12:33:21
2021-09-01T12:33:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
235
py
import random s2 = tuple([random.randint(1, 49) for i in range(1,100)]) print(s2) lottoNums = 50*[0] for i in range(len(s2)): k = s2[i] lottoNums[k] += 1 for j in range(1, len(lottoNums)): print('%d: %d'%(j, lottoNums[j]))
e03e4f0d8e5feaf4628a344d6adcdffa5bdb7312
0adb19e463ec27dda57b7f551b2d49e229053b8c
/film_editing/film_edit_skill.py
16cc540b54225aae15ee09161b532391f16a7bf9
[]
no_license
alam-mahtab/FastapiCD
c8d36852a674583bba088eee8b1cb98a24acbea1
7206179408a9ae67ba485a4620d14b470009153d
refs/heads/main
2023-02-25T05:56:35.685081
2021-02-03T16:16:26
2021-02-03T16:16:26
335,682,061
0
0
null
null
null
null
UTF-8
Python
false
false
2,741
py
from typing import List from fastapi import Depends,File, UploadFile, APIRouter from sqlalchemy.orm import Session from film_editing import crud, models from writer.database import SessionLocal, engine from film_editing.schemas import FilmeditBase, FilmeditList from film_editing.models import Filmedit # Pagination from...
f0806efc13466846b13387d88cdb1bf970b40434
5254c3a7e94666264120f26c87734ad053c54541
/4. Aleatoridad/4.2 Random/ejercicio_4.9.py
dfd5b986fc932ed4cef71f7090ca15df0345c9d0
[]
no_license
ccollado7/UNSAM---Python
425eb29a2df8777e9f892b08cc250bce9b2b0b8c
f2d0e7b3f64efa8d03f9aa4707c90e992683672d
refs/heads/master
2023-03-21T17:42:27.210599
2021-03-09T13:06:45
2021-03-09T13:06:45
286,613,172
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
# -*- coding: utf-8 -*- """ Created on Thu Aug 27 09:13:45 2020 @author: User """ #Ejercicio 4.9 import random def genear_punto(): x = random.random() y = random.random() return(x,y) print(genear_punto())
aff205bbbf740f5431d56b6de1825f1a154142f0
04b1803adb6653ecb7cb827c4f4aa616afacf629
/components/timers/DEPS
413f57b96cae54eaae8224d794ee782a7eca92c5
[ "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
Python
false
false
237
include_rules = [ # This directory is shared with Chrome OS, which only links against # base/. We don't want any other dependencies to creep in. "-build", "-content", "-library_loaders", "-net", "-third_party", "-url", ]
b057623939aa28e36698dfcfc578da6ed76d54a2
9c4e02ba5201794a4c5cbff548db1be7c87409c1
/venv/lib/python3.9/site-packages/pre_commit/main.py
f1e8d03db183cc99d62e7a9d1091c71ac824bca5
[ "Apache-2.0", "MIT" ]
permissive
ClassWizard/PodLockParser
4faf4679d404158b3cf2b1ceb4faabca461b0008
84f6d3fced521849657d21ae4cb9681f5897b957
refs/heads/master
2022-12-23T20:39:48.096729
2022-02-08T09:49:01
2022-02-08T09:49:01
167,668,617
2
1
MIT
2022-12-14T10:01:41
2019-01-26T08:50:35
Python
UTF-8
Python
false
false
14,606
py
import argparse import logging import os import sys from typing import Any from typing import Optional from typing import Sequence from typing import Union import pre_commit.constants as C from pre_commit import git from pre_commit.color import add_color_option from pre_commit.commands.autoupdate import autoupdate fro...
bdd400d86f704fe57d59d284b35088dda056e839
a7058080e41af37eb77c146fc09a5e4db57f7ec6
/Solved/11723/11723_set.py
7a52dc728f80e451173148d39006f3a366c611eb
[]
no_license
Jinmin-Goh/BOJ_PS
bec0922c01fbf6e440589cc684d0cd736e775066
09a285bd1369bd0d73f86386b343d271dc08a67d
refs/heads/master
2022-09-24T02:24:50.823834
2022-09-21T02:16:22
2022-09-21T02:16:22
223,768,547
0
0
null
null
null
null
UTF-8
Python
false
false
994
py
# Problem No.: 11723 # Solver: Jinmin Goh # Date: 20200410 # URL: https://www.acmicpc.net/problem/11723 import sys def main(): n = int(input()) numSet = set() for _ in range(n): order = list(sys.stdin.readline().split()) if len(order) == 2: num = int(order[1]) ...
531144ed358910083d951eca813d686840b83120
5ffc395c36e3469ec13da4a51ff23cd388d6bef2
/tic-tac-toe.py
3fb7b5a26866f8de6efc4f371d99309b6ceb4917
[]
no_license
jyash28/Advance-Tic-Tac-Toe-Game
30bd01407f12f442201ae8a4157e56faf7221a9d
e83dc798aca3c1841c7b111f6a53d99b39d5c47e
refs/heads/main
2023-01-21T13:39:19.225062
2020-11-21T19:40:04
2020-11-21T19:40:04
314,888,388
0
0
null
null
null
null
UTF-8
Python
false
false
10,840
py
import tkinter.messagebox from tkinter import * root=Tk() root.geometry("1350x750+0+0") root.title("Tic Tac Toe") root.configure(background="Cadet Blue") Tops = Frame(root,bg ="Cadet Blue",pady = 2,width =1350,height=100,relief=RIDGE) Tops.grid(row=0,column=0) lblTitle = Label(Tops,font=("arial",50,"bold"),text="Adv...