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
9cad478da5205ed7341fc6e1713ed36396bc5886
f30aeed63989ff76b72c2dde4acd621ee5b20652
/carmd/__init__.py
df295e3cd8e0ac5643c904911458295dee18deed
[ "MIT" ]
permissive
irahorecka/python-carmd
a8191d68330956926baac873cb72cf91a05d4abd
07ec3160a7cb732d066fc660204ca31799d0e77b
refs/heads/master
2023-03-15T18:12:22.654421
2023-03-03T23:53:39
2023-03-03T23:53:39
249,275,903
5
0
MIT
2023-01-20T15:04:11
2020-03-22T21:29:57
Python
UTF-8
Python
false
false
130
py
"""python-carmd is a python package for querying data from the CarMD API.""" from . import carmd from .carmd import ( CarMD, )
[ "ira89@icloud.com" ]
ira89@icloud.com
abb13e58c905b7bc0b7495881730c7f2daaca5ab
79ec8c0c3d03eba1eb02e2e1df831b07fd7c0023
/HeavyIonsAnalysis/JetAnalysis/python/jets/ak2CaloJetSequence_PbPb_mc_cff.py
df074b65333ea314464418f12e6c9630baf68154
[]
no_license
enazarova/cmssw
a1febaae0e0d39a1ca3c625ee2cdec56830d10ed
fab2e599665c334ab8c8d0bac8f931c71fa4becb
refs/heads/master
2021-01-16T22:02:12.424115
2013-12-18T13:42:50
2013-12-18T13:42:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,312
py
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import * from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * ak2Calomatch = patJetGenJetMatch.clone( src = cms.InputTag("ak2CaloJets"), matched = cms.InputTag("ak2HiGenJetsCleaned") ) ak2Calopar...
[ "yetkin.yilmaz@cern.ch" ]
yetkin.yilmaz@cern.ch
7f4486326f60903af0493050fc3096ff2fb2260b
1b41900aab915769868135e6cc27f72c8fd01692
/__main__.py
48242cca6024a4538cbb5400f9cf73cff39583ca
[]
no_license
mattdanbrown/NanoBot
222e6865924292ef226f3ecedf0d4e80d9e3b73b
1a929451ffe58d46a78ad84782712d07ee6276c7
refs/heads/master
2021-01-17T15:50:47.931530
2015-09-20T03:48:47
2015-09-20T03:48:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
413
py
#!/usr/bin env python2 from NanoBot import * # Global stuff # Enforce UTF-8 if sys.version_info < (3, 0): reload(sys) sys.setdefaultencoding('utf8') else: raw_input = input # Main function when run on the command line if __name__ == '__main__': # Master entity that is the nano; Initi...
[ "nanodano@devdungeon.com" ]
nanodano@devdungeon.com
747f739c0a76c5229d15025991a826f81390590d
14be8bcd7e66aad90b98d7c76a78fdb94c7c4f65
/l04/ch5/ex7.py
4f946e6bb212cf64b284a348b6f34789a63be306
[]
no_license
alexbyz/HW070172
f6231d7ccd0fb06a88db9bd6b0c718ed70ce62a2
e0e4946f82ba71b4d3860c570fadb9cd96a6c9a1
refs/heads/main
2023-03-03T06:16:17.630740
2021-02-09T09:55:04
2021-02-09T09:55:04
305,626,086
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
#ex 7 ch 5 #ceasar chipher def main(): print("This programm is a ceaser chipher n") name = (input("enter a Name\n")).lower() key = int(input("Key: ")) newN ="" for ch in name: newN = newN + chr((ord(ch)+key)) print(newN) main()
[ "huber.alexander1993@gmail.com" ]
huber.alexander1993@gmail.com
8d945d221d2d40ad59a1abd37edd624f36e1e935
4cdc2f8d5323f135fe9ce1c82c09abb2714b2eff
/stats/views.py
2af5d914dc55a6f608487402f53853165fc732c6
[ "BSD-2-Clause-Views" ]
permissive
kgdunn/lti-groups-brightspace
c7ff9df2898288114bb1477911c4aaf7281f3cc8
572b994e94041ae5a8f6a7dfcaeebb06c4173877
refs/heads/master
2021-02-08T10:05:42.763572
2017-04-25T14:01:25
2017-04-25T14:01:25
244,140,091
0
0
null
null
null
null
UTF-8
Python
false
false
1,368
py
# Our models from .models import Logging def get_IP_address(request): """ Returns the visitor's IP address as a string given the Django ``request``. """ # Catchs the case when the user is on a proxy ip = request.META.get('HTTP_X_FORWARDED_FOR', '') if ip == '' or ip.lower() in ('unkown', ): ...
[ "kgdunn@gmail.com" ]
kgdunn@gmail.com
78b71172bf6d86aa2c983be0df782084777222f2
372c02c57e32bd7d5f097a042b32dff7b9891ff1
/tests/test_case/test_test_case_utils.py
87b745bf3aa9b7f1a9332c1df2c66442ad84269a
[ "CC0-1.0", "MIT" ]
permissive
biosimulators/Biosimulators_test_suite
efd937f113b84fff21a2e8025810233f5a5b85b8
5683d1799042245ae8b440e026ef70e382e269cd
refs/heads/dev
2023-08-05T08:57:35.206888
2023-07-26T05:26:09
2023-07-26T05:26:09
276,450,564
7
2
MIT
2023-07-26T05:27:02
2020-07-01T18:12:41
Python
UTF-8
Python
false
false
1,500
py
from biosimulators_test_suite.test_case.utils import reduce_array_shape, are_array_shapes_equivalent import unittest class TestCaseUtilsTestCase(unittest.TestCase): def test_reduce_array_shape(self): self.assertEqual(reduce_array_shape([1, 2, 3]), [1, 2, 3]) self.assertEqual(reduce_array_shape([3,...
[ "jonrkarr@gmail.com" ]
jonrkarr@gmail.com
3128cd89fa0338d97eb8a82b2ec5c001e588d146
289da5146b8991942ba22eefe948289ee024d3ff
/sheng/tutorial/L2基础类型控制语句/6判断类型.py
a5fcf950a07aa4b75d7f56d3c6046fb0c419b699
[]
no_license
a1424186319/tutorial
263585961ab40e7a9a55405263d80057a88298d4
909bfc9f850118af7892a7ba4b0f7e3d0798db8a
refs/heads/master
2022-12-09T01:05:36.063099
2019-02-18T12:12:52
2019-02-18T12:12:52
166,967,437
0
0
null
2021-06-01T23:20:20
2019-01-22T09:38:51
Python
UTF-8
Python
false
false
432
py
# 判断变量类型 #类型不同,input()返回字符串 # '1'+3 '小明考了+90 报错 #type() 判断变量类型 a=1 b=1.5 c='hello' d = True type(a) #<class 'int'> type(b) #<class 'float'> type(c) #<class 'str'> type(d) #<class 'bool'> #isinstance(值,类型) #如果值属于类型的话返回True isinstance(1,int) #True isinstance(1,float) #True isinstance('小明',fl...
[ "1424186319@qq.com" ]
1424186319@qq.com
bfe6aae7f274a314790e72236939b1ba541ade66
f80ef3a3cf859b13e8af8433af549b6b1043bf6e
/pyobjc-framework-CoreData/PyObjCTest/test_nsmanagedobjectcontext.py
1ee31c51ea5814bf8fa4d1e7a31a6298fe662ce0
[ "MIT" ]
permissive
ronaldoussoren/pyobjc
29dc9ca0af838a56105a9ddd62fb38ec415f0b86
77b98382e52818690449111cd2e23cd469b53cf5
refs/heads/master
2023-09-01T05:15:21.814504
2023-06-13T20:00:17
2023-06-13T20:00:17
243,933,900
439
49
null
2023-06-25T02:49:07
2020-02-29T08:43:12
Python
UTF-8
Python
false
false
5,373
py
import CoreData from PyObjCTools.TestSupport import TestCase, min_os_level class TestNSManagedObjectContext(TestCase): def test_enum_types(self): self.assertIsEnumType(CoreData.NSManagedObjectContextConcurrencyType) @min_os_level("10.12.4") def testConstants10_12_4(self): self.assertIsIns...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
fd74eb70697631a2fb806af0f5fc114c357bcb39
db0e8aa3a92a30c9b1cc8da03725e951ff64f3f1
/lenv/lib/python3.6/site-packages/django/contrib/gis/gdal/libgdal.py
022aa945d75985f09652d4a41f7cc4c11bb5a7d3
[ "BSD-3-Clause" ]
permissive
shrey-c/DataLeakageDjango
ffeef61caa347520747fc70cf3f7f8b84a9610cf
a827c5a09e5501921f9fb97b656755671238dd63
refs/heads/master
2022-11-30T03:30:12.313025
2020-07-12T06:47:44
2020-07-12T06:47:44
242,569,637
6
1
BSD-3-Clause
2022-11-22T05:20:22
2020-02-23T18:33:04
Python
UTF-8
Python
false
false
3,658
py
from __future__ import unicode_literals import logging import os import re from ctypes import CDLL, CFUNCTYPE, c_char_p, c_int from ctypes.util import find_library from django.contrib.gis.gdal.error import GDALException from django.core.exceptions import ImproperlyConfigured logger = logging.getLogger('django.contri...
[ "shreyansh.chheda@gmail.com" ]
shreyansh.chheda@gmail.com
0e48db6d79772bfbc9400feb673ad0cf480214c2
70811da75f0f38719703e02c9f99e2ce09e21d2a
/HMM/hmm_for_baxter_using_only_success_trials/hmm_online_service/state_classification_process.py
50e5d4e49697f576ad70e09e857fa170d803159b
[ "BSD-3-Clause" ]
permissive
HongminWu/time_series_anomaly_detection_classification_clustering
9d5e555c9bf37ee72770e127588f61f15139bd4e
548b3799389ec7a96fc56c51360a6de89e0502a1
refs/heads/master
2020-03-11T04:44:00.113684
2018-08-16T06:38:57
2018-08-16T06:38:57
129,783,614
15
6
null
null
null
null
UTF-8
Python
false
false
1,860
py
class HMMThreadForStateClassification(threading.Thread): def __init__(self, model_save_path, state_amount): threading.Thread.__init__(self) model_group_by_state = {} for state_no in range(1, state_amount+1): model_group_by_state[state_no] = joblib.load(model_save_path+"/model_...
[ "hongminwu0120@gmail.com" ]
hongminwu0120@gmail.com
c9e98a0c2c8196975d3bf8fd2e3c10f84d2c3c02
7950c4faf15ec1dc217391d839ddc21efd174ede
/leetcode-cn/0765.0_Couples_Holding_Hands.py
6ff66fc466c8e094a2c9ade61ac6c228120bb0b9
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
883
py
''' approach: Greedy Time: O(N ^ 2) Space: O(1) ref: https://leetcode-cn.com/problems/couples-holding-hands/solution/tan-xin-suan-fa-by-good_guy-c3ol/ 执行结果: 通过 显示详情 执行用时:20 ms, 在所有 Python 提交中击败了73.68%的用户 内存消耗:12.9 MB, 在所有 Python 提交中击败了68.42%的用户 ''' class Solution(object): def minSwapsCouples(self, row): ...
[ "lixiang@rxthinking.com" ]
lixiang@rxthinking.com
f886e142eda43da3c73cc0df63292f14efec90d4
8e4611f6c51fc294eec168dfd76294abed0faa81
/nsmf-pdusession/flaskConnexion-python2/swagger_server/models/dnn_selection_mode.py
baeb5131729d862876bc197b41b61ce86536a83d
[]
no_license
zh597588308/5GCORE
f7e56d84daf3de836bdb8b74d8e41968c25bc54a
0a36d13d4ba769aa3d480893608b847677578471
refs/heads/master
2021-01-09T15:26:09.399154
2019-10-02T14:21:57
2019-10-02T14:21:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
895
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class DnnSelectionMode(Model): """NOTE: This class is auto generated by the sw...
[ "41372370+attilajak@users.noreply.github.com" ]
41372370+attilajak@users.noreply.github.com
3f0a302daf52b97f7390edb9ec53c0ab10950818
949268c1af03b32449f17233cb27b01cf80201d2
/chroma/measure.py
c3ec42023d1471357fbd4f98240e335084af7c7b
[]
no_license
LSSTDESC/chroma
0a0ea08230ce5b3240d9c2da1788cf6c73082234
64fc123a065334b307654f29b3bea52885b46ec8
refs/heads/master
2022-07-23T00:27:17.885946
2017-08-28T00:06:47
2017-08-28T00:06:47
9,252,853
3
0
null
null
null
null
UTF-8
Python
false
false
4,492
py
import lmfit import numpy as np try: import astropy.io.fits as fits except: import pyfits as fits import galsim import chroma class EllipMeasurer(object): """ Abstract base class for ellipticity measurer, which measures the ellipticities of ring test target images, and optionally writes best-fit image...
[ "jmeyers314@gmail.com" ]
jmeyers314@gmail.com
24e7f415e8b099d160be1d6b909bf0dba747ab5a
9d454ae0d5dd1d7e96e904ced80ca502019bb659
/611_triangleNumber.py
99b88d2dd750ca9ba8f12eab16843a2f276650da
[]
no_license
zzz686970/leetcode-2018
dad2c3db3b6360662a90ea709e58d7facec5c797
16e4343922041929bc3021e152093425066620bb
refs/heads/master
2021-08-18T08:11:10.153394
2021-07-22T15:58:52
2021-07-22T15:58:52
135,581,395
3
0
null
null
null
null
UTF-8
Python
false
false
851
py
from typing import List import bisect def triangleNumber(nums: List[int]) -> int: n = len(nums) nums.sort() ans = 0 for i in range(len(nums)-1): for j in range(i+1, len(nums)): idx = bisect.bisect_left(nums, nums[i]+nums[j]) if idx <= n and idx > j: ans ...
[ "1564256031@qq.com" ]
1564256031@qq.com
ed5bf2f48465806ada0f385a3e858f9aacd0b3e3
f281d0d6431c1b45c6e5ebfff5856c374af4b130
/DAY001~099/DAY71-BOJ6757-팰린드롬진법/minji.py
4875f0cae2c769824d5579565cd9c88f9bc555e9
[]
no_license
tachyon83/code-rhino
ec802dc91dce20980fac401b26165a487494adb4
b1af000f5798cd12ecdab36aeb9c7a36f91c1101
refs/heads/master
2022-08-13T09:10:16.369287
2022-07-30T11:27:34
2022-07-30T11:27:34
292,142,812
5
6
null
null
null
null
UTF-8
Python
false
false
493
py
import sys def sol(): s = set([]) m = 0 for i in range(2, int(x**0.5)+2): d, n = [], x while n > 0: d.append(n % i) n //= i if d == list(reversed(d)): s.add(i) m = i for i in range(m, 0, -1): if x % i == 0: b = x ...
[ "noreply@github.com" ]
tachyon83.noreply@github.com
dd75b57fb06f777639e799d002871a2e27cdac59
f3eef36c7a2e2088b505eff7b6930a07513fed02
/wadodo_crawlers/wadodo_crawlers/utils/flickr.py
1104548e8d79b2205ff71a53982f6f6d72cd6ba3
[]
no_license
Kami/wadodo-crawlers
c6ddf2da0b435479f35709b1ccb47c3473f8d2bd
accb2a437c0bbb68d20a0dbe7906120bec70af70
refs/heads/master
2020-04-11T03:00:08.048305
2013-08-16T18:08:56
2013-08-16T18:08:56
10,308,380
0
0
null
null
null
null
UTF-8
Python
false
false
1,808
py
import json import flickrapi __all__ = [ 'get_images_for_term' ] PER_PAGE = 40 # http://www.flickr.com/services/api/flickr.photos.licenses.getInfo.html LICENSES = [4, 5, 6, 7] CONTENT_TYPES = [1] SORT = 'relevance' BASE_URL = 'http://farm%(farm_id)s.staticflickr.com/%(server_id)s/%(id)s_%(secret)s_b.jpg' FLICKR...
[ "tomaz@tomaz.me" ]
tomaz@tomaz.me
48195024f5ab570366aaf494d1cad4990097170a
7bededcada9271d92f34da6dae7088f3faf61c02
/pypureclient/flashblade/FB_2_0/models/admin_get_response.py
0c942e1ec259a2d304acde1541a0af965a25dd2a
[ "BSD-2-Clause" ]
permissive
PureStorage-OpenConnect/py-pure-client
a5348c6a153f8c809d6e3cf734d95d6946c5f659
7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e
refs/heads/master
2023-09-04T10:59:03.009972
2023-08-25T07:40:41
2023-08-25T07:40:41
160,391,444
18
29
BSD-2-Clause
2023-09-08T09:08:30
2018-12-04T17:02:51
Python
UTF-8
Python
false
false
4,236
py
# coding: utf-8 """ FlashBlade REST API Client A lightweight client for FlashBlade REST API 2.0, developed by Pure Storage, Inc. (http://www.purestorage.com/). OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six imp...
[ "asun@purestorage.com" ]
asun@purestorage.com
cc2e68c1564aa725d67625119167a56e0c4d5c5d
acff427a36d6340486ff747ae9e52f05a4b027f2
/main/desktop/kde/graphics/kphotoalbum/actions.py
6cf46a9818bf14ca2144fa44e195b00756bf14cc
[]
no_license
jeremie1112/pisilinux
8f5a03212de0c1b2453132dd879d8c1556bb4ff7
d0643b537d78208174a4eeb5effeb9cb63c2ef4f
refs/heads/master
2020-03-31T10:12:21.253540
2018-10-08T18:53:50
2018-10-08T18:53:50
152,126,584
2
1
null
2018-10-08T18:24:17
2018-10-08T18:24:17
null
UTF-8
Python
false
false
522
py
#!/usr/bin/python # -*- coding: utf-8 -*- # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/copyleft/gpl.txt from pisi.actionsapi import kde5 from pisi.actionsapi import pisitools # if pisi can't find source directory, see /var/pisi/kphotoalbum/work/ and: # WorkDir="kphotoa...
[ "erkanisik@yahoo.com" ]
erkanisik@yahoo.com
a973bde6ec2e0cdd3a05ef6b0c7b5b4b832448bf
54149d6485bfc32f424db73868f7c6d6be164e98
/selia/views/create_views/items/select_sampling_event.py
d5ae51f812102ac073fd95ad6756a20e249d0e0b
[ "BSD-2-Clause" ]
permissive
CONABIO-audio/selia
b76b1ab4b0b18afa57d7dafc3409d35d465a93fc
9863c32cd45db13053a1d2add67f5bdc1871b791
refs/heads/master
2022-12-11T14:58:13.458200
2020-09-26T02:02:09
2020-09-26T02:02:09
219,807,645
0
2
BSD-4-Clause
2022-12-08T10:54:53
2019-11-05T17:50:15
HTML
UTF-8
Python
false
false
1,924
py
from irekua_database.models import SamplingEvent from irekua_database.models import Collection from irekua_filters.sampling_events import sampling_events as sampling_event_utils from irekua_permissions.items import items as item_permissions from selia.views.utils import SeliaList from selia.views.create_views import ...
[ "santiago.mbal@gmail.com" ]
santiago.mbal@gmail.com
8eef536d85fcd3182c979338e3061b64c4d287d0
30c820b171447ab772e58f04ac0dc55c4d5ffbdf
/archive/code/PhaseII/data.py
2d727831cc343033a71cf7edd86e4a08621cf767
[]
no_license
TransactiveSCC/TRANSAX
3b58cff757fb646a825872dc243e04eea3d0b712
13c45a1254cb14607d1bfa86267dbde9e61fd538
refs/heads/main
2023-05-13T10:50:20.868093
2021-05-15T02:45:53
2021-05-15T02:45:53
316,015,185
0
1
null
null
null
null
UTF-8
Python
false
false
3,143
py
import sys from datetime import datetime filename=sys.argv[1] data=open(filename).readlines() #find buyers # buyerID = None # for line in data: # if 'postBuyingOffer' in line: # buyerID = line.split('(')[1].split(',')[0] # print (buyerID, end='') # break # if 'postSellingOffer' in line...
[ "eiselesr@gmail.com" ]
eiselesr@gmail.com
bcdd8846ee96fec17d26ec6b13f56f7daaccdae0
6312ae52fb81f68ca80ad5c607148d011052850d
/sos_payroll/wizard/attendance/rep_pss_attendance_wizard.py
65e0e291a93829eaae461cae9d381621cd700bec
[]
no_license
cokotracy/sos_guards
e88b95026185aaf1d622b223d39afd5e60a60ee9
84242b484cbd9a4296d3083747b4e31f2ebb3e73
refs/heads/master
2022-06-14T05:36:27.971635
2019-10-07T07:01:58
2019-10-07T07:01:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
840
py
import time import pdb from odoo import api, fields, models class SOSPSSAttendanceWizard(models.TransientModel): _name = "sos.pss.attendance.wizard" _description = "PSS Attendance Report" date_from = fields.Datetime("Date From",default=lambda *a: time.strftime('%Y-%m-01')) date_to = fields.Datetime("Date To",...
[ "sarfraz_g2009@yahoo.com" ]
sarfraz_g2009@yahoo.com
ccc39e516223cab882eec5576f73ab8f36fa2ca3
aa0bb590ed4efa8bf9f20ffeab7004190d0e1f12
/API/server.py
f3c7b1dbe02af5682f2f3ac7b0be6bb5085cdd63
[]
no_license
Pratyush2703/ExtendingBoardGames
6e10309aae1b57478117a76562a19a95b3fd3d1b
e086eb9d1ca06bf3ba1a545a442974d55fc3ae72
refs/heads/master
2020-04-15T04:32:50.161824
2019-01-07T05:48:32
2019-01-07T05:48:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,608
py
# import the necessary packages from PIL import Image import numpy as np import flask import io import constants, configurations, chess_board_segmentation, utils # initialize our Flask application and the Keras model app = flask.Flask(__name__) # TODO: move to Redis cache existing_board = [] @app.route("/digitize_...
[ "anuragchatterjee92@gmail.com" ]
anuragchatterjee92@gmail.com
b94aaa7296cd9da910fffca4ede067b7ade261e7
a4fa88659d749c1e32d70d4f0d309dcbcce40aa9
/4/4a.py
c4c79f16872ad3d502e92ae08f52c079349322cc
[]
no_license
pe-ge/aoc2018
91fd5af6374855f6787114d4e64d86d08793d41c
571aea49caca1fe18cc67c9c403f8107baef4169
refs/heads/master
2020-04-12T10:07:06.144536
2018-12-25T08:42:17
2018-12-25T08:42:17
162,419,750
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
from datetime import datetime data = [] with open('4.txt') as f: # with open('4-example.txt') as f: for line in f.readlines(): splitted = line.split('] ') date = datetime.strptime(splitted[0], '[%Y-%m-%d %H:%M') event = splitted[1][:-1] data.append((date, event)) data = list(sorte...
[ "gergelp@gmail.com" ]
gergelp@gmail.com
0382344d5a54fa9e5e594b6871543a2a05f29a3a
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_006/ch20_2020_03_19_16_26_56_270828.py
3a58299ad7d4fb14702d5bf85d463e6105982ecb
[]
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
133
py
distancia=float(int("Que distancia vc deseja percorrer?")) preco=distancia*0.5 + (distancia-200)*0.45 print= "{0:.2f}".format(preco)
[ "you@example.com" ]
you@example.com
2e1a5359508ed8f99ba6e174345923f913ecfbf8
e22e03d9761f5c6d581b5af2e77343e8ee4b201d
/edk2/BaseTools/Source/Python/UPT/BuildVersion.py
c72bc79cb854e0f01e901ee0c95e831b27c8b568
[ "OpenSSL", "BSD-2-Clause" ]
permissive
SamuelTulach/SecureFakePkg
759975fcc84d62f05ac577da48353752e5334878
f34080a6c0efb6ca3dd755365778d0bcdca6b991
refs/heads/main
2023-08-17T07:51:22.175924
2021-10-01T10:46:14
2021-10-01T10:46:14
410,938,306
94
14
null
null
null
null
UTF-8
Python
false
false
661
py
## @file # # This file is for build version number auto generation # # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> # # This program and the accompanying materials are licensed and made available # under the terms and conditions of the BSD License which accompanies this # distribution. The ful...
[ "samtulach@gmail.com" ]
samtulach@gmail.com
997a8d5f2dbba0a8e99adbb3568cdbc29a0d77a1
a1ea8997e330bfcf4b6e61432e45d71ff98e2ba4
/workspace_tools/build_api.py
847e9cedc9d6e89abd6560a3796550fed602d6ef
[ "Apache-2.0" ]
permissive
teddokano/mbed
61b738b485e7a63d7861881ca44918051c858e07
1781d582495f839296c8e2216e31485184c8f475
refs/heads/master
2021-01-17T06:03:09.713089
2013-07-22T06:13:13
2013-07-22T06:13:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,163
py
from os.path import join, exists, basename from shutil import rmtree from types import ListType from workspace_tools.utils import mkdir from workspace_tools.toolchains import TOOLCHAIN_CLASSES, Resources from workspace_tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_API, MBED_HAL, MBED_COMMON from workspace...
[ "emilmont@gmail.com" ]
emilmont@gmail.com
d13e9cc1d86def3e18a6a8e3987e157e31967afe
d8cf93900e6d86240ceb7643fd78bd2841b38152
/test/regex_match_G/regular_get_chinese.py
b2eca90b2ee3d0ac2dc85d5da96d08089669a864
[]
no_license
Onebigbera/Daily_Practice
165cee0ee7883b90bcf126b23ff993fed0ceffef
8f1018a9c1e17c958bce91cbecae88b0bb3c946b
refs/heads/master
2020-04-09T01:20:48.857114
2019-01-03T03:24:59
2019-01-03T03:24:59
159,900,636
1
0
null
null
null
null
UTF-8
Python
false
false
509
py
# -*-coding:utf-8 -*- """ 需求:从文本中取出所有的中文字符串 """ import sys import re __author__ = 'George' __date__ = '2018/11/14' import re # 过滤掉除了中文以外的字符 str = "hello,world!!%[545]你好234世界。。。" str = re.sub("[A-Za-z0-9\!\%\[\]\,\。]", "", str) print(str) # 提取字符串里的中文,返回数组 pattern = "[\u4e00-\u9fa5]+" regex = re.compile(pattern) ...
[ "2578288992@qq.com" ]
2578288992@qq.com
52a7e527eb84b6944216c3c0bf3d90c51d43fb72
7faec044392fd92cb826bc9117f60e8614b3755a
/threadDemo.py
9862eb8414d3ae4d147d72033416a3e6fe6fdbd5
[]
no_license
freeCodeCampDelhi/college-projects
1eefc7d0681d996d7e3c38bb5f01f2502527805d
3e7d33ece514eb61b04699b929acee802c4d99ed
refs/heads/master
2021-08-24T10:08:41.780711
2017-12-09T05:37:43
2017-12-09T05:37:43
113,662,667
2
2
null
2017-12-09T10:58:21
2017-12-09T10:58:21
null
UTF-8
Python
false
false
203
py
import threading, time print ('Start of program') def takeANap(): time.sleep(5) print('Wake up!') threadObj = threading.Thread(target=takeANap) threadObj.start() print('End of program.')
[ "9654263057akashkandpal@gmail.com" ]
9654263057akashkandpal@gmail.com
17ed5fda57e4bab4cc39d4bb17658d4b3ef38b7d
b5402b40b69244380bc0d3f85ff65483d0505181
/msghandle/botcmd/command/help.py
ccc12b19f357934325d9e13293d0efde59642e93
[ "MIT" ]
permissive
RxJellyBot/Jelly-Bot
ea7b6bd100431736732f9f4cc739858ec148e3e2
c7da1e91783dce3a2b71b955b3a22b68db9056cf
refs/heads/master
2023-08-29T20:41:01.813945
2021-10-20T05:27:21
2021-10-20T05:27:21
189,347,226
5
1
MIT
2020-09-05T00:50:41
2019-05-30T04:47:48
Python
UTF-8
Python
false
false
914
py
from django.utils.translation import gettext_lazy as _ from flags import BotFeature from msghandle.models import TextMessageEventObject, HandledMessageEventText from ._base import CommandNode cmd = CommandNode( codes=["help"], order_idx=1000, name=_("Help"), description=_("See the documentation or bot relate...
[ "raenonx0710@gmail.com" ]
raenonx0710@gmail.com
e266dfdcbdf078ea92cf1a699f5185b5064ab126
c78462b12374561c5bbe90e9e1f8bb801365219a
/do_an/cao_quyen/parallel/concurrent_thread2.py
95c301f9589f7cbba60796e5094fda0bf1474a7f
[ "MIT" ]
permissive
thieu1995/ai
46bf4cb74acad539691ee48cbb68d2767d2ac124
e43255e38153faa01e2a9c16a2bd0a4338820686
refs/heads/master
2023-03-15T07:21:07.203774
2019-09-08T11:40:54
2019-09-08T11:40:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,070
py
from concurrent.futures import ThreadPoolExecutor from queue import Queue import pandas as pd from sklearn.model_selection import ParameterGrid from model.fl_gann import Model as FLGANN from utils.Setting import param_grid_test as param_grid # parameters data_index = [5] list_idx = [(6640, 0, 8300)] queue = Queue()...
[ "nguyenthieu2102@gmail.com" ]
nguyenthieu2102@gmail.com
dc31edad7d0c9aafb6b825bed9b481f87a98767c
610871dc49eb8ee3ae33026212e024f7e00d6aa8
/enhancement.py
1e81d2332fd46355429fcc23918d80e9b1c81fe3
[ "MIT" ]
permissive
XiongMaoXia/Wave-U-Net-for-Speech-Enhancement
1854f61c2f9a2393a8d5a7233015cacec26c5e4c
f3f10fb8287a96cd7c80e99b80513bc641f3b127
refs/heads/master
2021-01-27T19:25:16.609487
2020-02-14T13:13:50
2020-02-14T13:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,152
py
import argparse import json import os import librosa import torch from torch.utils.data import DataLoader from tqdm import tqdm from utils.utils import initialize_config, load_checkpoint """ Parameters """ parser = argparse.ArgumentParser("Wave-U-Net: Speech Enhancement") parser.add_argument("-C", "--...
[ "haoxiangsnr@gmail.com" ]
haoxiangsnr@gmail.com
efe69e5558dca8dc2119ac9110fab2ef1699c47f
6c62ba9e1c307a1fc62ccc06bf19ac20992f8b93
/src/bluenotepad/settings.py
c41616883dc8f43af213deddc3b8db0b216bbec5
[]
no_license
klangner/bluenotepad
2094d73f6a5b9306d818b8e586a682b19d0d406c
81e19c768c55d7865f3b2af3a274ea810b426f35
refs/heads/master
2020-12-24T15:40:22.157553
2014-04-09T06:16:31
2014-04-09T06:16:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,721
py
# -*- coding: utf-8 -*- # Django settings for bluenotepad project. from local_settings import LOCAL_DATABASES, LOCAL_DEBUG, LOCAL_FILE_STORAGE, LOCAL_SECRET_KEY, LOCAL_EMAIL_PASSWORD import os DEBUG = LOCAL_DEBUG DATABASES = LOCAL_DATABASES FILE_STORAGE = LOCAL_FILE_STORAGE TEMPLATE_DEBUG = DEBUG ADMINS = ( ('A...
[ "klangner@gmail.com" ]
klangner@gmail.com
abb510fe4fa66bf5b14905af7357acbd3142a7ef
f434e38948ea98a9b9fbec45c0a459e4d277361d
/sandbox/samples/load_linkages.py
1e5a46cbf8cfdc446eb935eec871555c23223c4d
[]
no_license
diegoami/DA_NLP_Sandbox
21ea454c19f050f9a3caadf6a4865ccd144e5785
65970f853f18daf85799d0a2850e41c7238b1c7d
refs/heads/master
2021-07-18T14:19:42.396061
2017-10-27T07:36:11
2017-10-27T07:36:11
106,388,489
2
0
null
null
null
null
UTF-8
Python
false
false
3,230
py
import sklearn import nltk import re import numpy as np if __name__ == "__main__": stopwords = nltk.corpus.stopwords.words('english') # load nltk's SnowballStemmer as variabled 'stemmer' from nltk.stem.snowball import SnowballStemmer stemmer = SnowballStemmer("english") num_clusters = 10 ...
[ "diego.amicabile@gmail.com" ]
diego.amicabile@gmail.com
3bf4da9a52cae3cf7c525d5f5a47adb92982f162
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/cognitiveservices/azure-cognitiveservices-language-textanalytics/azure/cognitiveservices/language/textanalytics/models/entity_record.py
ba9796142272c884a836b15f709e0b3fd9408a17
[ "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
2,689
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "noreply@github.com" ]
Azure.noreply@github.com
ddb3e9b8d28fd7eb095948ffb925e56cb7192722
27cd801b3ba0b3ba2ee59a271233cca3f7429814
/Chapitre_11/lcditeur.py
e243f2d92ee80775183044e1c34f21302d627234
[]
no_license
EditionsENI/python-raspberrypi
cede811431d1d38eaaeb60f8e8799306ae059127
6c9202f386dd82256293823716cf7bba5df52e00
refs/heads/master
2021-01-12T13:51:51.885021
2016-09-25T23:51:28
2016-09-25T23:51:28
69,197,350
3
0
null
null
null
null
UTF-8
Python
false
false
2,523
py
#!/usr/bin/env python3 from tkinter.messagebox import * from lcd16x2 import LCD16x2 from tkinter import * class LCDiteur(Frame): def __init__(self, parent=None): Frame.__init__(self, parent) self.pack(expand=YES, fill=BOTH) self.nom_editeur = self.__class__.__name__ self.creer_compo...
[ "monsieurp@gentoo.org" ]
monsieurp@gentoo.org
1b9f2172209124d0ad4cac0bd5af8f2a861c419e
c5d87c7f25e3fe9b17c1e88993b0ed6831e52acb
/PAM/core/SendDataYunHost.py
fc78e016c224992b071924b337372694c95bbcd5
[]
no_license
GIS90/python_base_use
e55d55f9df505dac45ddd332fb65dcd08e8e531f
7166ca85975bb7c56a5fbb6b723fd8300c4dd5d1
refs/heads/master
2020-04-02T08:33:49.461307
2018-10-23T03:33:41
2018-10-23T03:33:41
154,249,857
1
1
null
null
null
null
UTF-8
Python
false
false
3,511
py
# -*- coding: utf-8 -*- """ 定义一个SocketClient类进行数据传输,此类为客户端 """ import socket from Log import * import time class TCPClient(object): def __init__(self, HOST, PORT): """ TCPClient初始化,所需参数为Socket连接的IP,PORT """ try: self.__address = (HOST, PORT) ...
[ "mingliang.gao@qunar.com" ]
mingliang.gao@qunar.com
057ef87dfe6fb049d6795e841b1444ddd6390661
fd48fba90bb227017ac2da9786d59f9b9130aaf0
/digsby/src/oscar/snac/family_x02.py
2bfc6a754a4b8abe7526c3807b0d8b4b896a07e9
[ "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
niterain/digsby
bb05b959c66b957237be68cd8576e3a7c0f7c693
16a62c7df1018a49eaa8151c0f8b881c7e252949
refs/heads/master
2021-01-18T10:07:10.244382
2013-11-03T02:48:25
2013-11-03T02:48:25
5,991,568
1
0
null
2013-11-03T02:48:26
2012-09-28T02:24:50
Python
UTF-8
Python
false
false
7,300
py
import struct import logging import util import oscar x02_name="Location" log = logging.getLogger('oscar.snac.x02') subcodes = {} # ignorable error messages ignorable = [ (2,4), # Recipient is not logged in ] @util.gen_sequence def x02_init(o, sock, cb): ###...
[ "mdougherty@tagged.com" ]
mdougherty@tagged.com
cf9e853cdf4f27823ad145e1bbd4b8034d47d5bb
3a19107bd6ec37b87c7b6d890022d2e782d03b74
/Examples/example_10_inheritance.py
1831e18be0b38b8cb3cd56ff844af00e2595027e
[]
no_license
millsgt/oop-python
88caa6fad79d1299c5ac202bbbe40e0d2f2e9bab
c993abbfdc186172a3f2538a046040bebc7c79db
refs/heads/master
2023-08-22T22:07:10.711119
2023-07-20T18:09:36
2023-07-20T18:09:36
429,510,508
0
0
null
2021-11-18T16:56:37
2021-11-18T16:56:37
null
UTF-8
Python
false
false
903
py
from math import pi class Shape(object): def area(self): raise NotImplementedError() def circumference(self): raise NotImplementedError() def __str__(self): return type(self).__name__ class Circle(Shape): def __init__(self, r): self.r = r def area(self): ...
[ "ariannedee@gmail.com" ]
ariannedee@gmail.com
009d66c2a1ee5ecb84ac15fd4742469ddf9a39c9
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/2960e3a3a7ba66924233f076c6e6affbc6697a07-<_remake_table>-fix.py
604b9cb40c846a9efaec21ec934b9a52d6343403
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,055
py
def _remake_table(self, model, create_fields=[], delete_fields=[], alter_fields=[]): '\n Shortcut to transform a model from old_model into new_model\n\n The essential steps are:\n 1. rename the model\'s existing table, e.g. "app_model" to "app_model__old"\n 2. create a table with the...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
f029e53627d37eb0c7cb8f99cb1b0e381d738293
c5542154b44f1b228cdadeaf44c6a5998ed37ed4
/base/day3/if/10进制转换10to16.py
715cd491ee0d4c10583b0b1d82d5ee1277dd2509
[]
no_license
ThrallOtaku/python3Test
a31a2de1576b3a3c1062a7d6908119d7cbf21b36
c62e6024bbbeafd396b68e40332991758914ba0b
refs/heads/master
2020-03-07T22:45:47.403999
2018-06-08T10:19:42
2018-06-08T10:19:42
127,763,269
1
0
null
null
null
null
UTF-8
Python
false
false
529
py
num=eval(input("输入数据0-15")) ''' if num<0 or num>15: print("输入错误") else: if num>=1 and num<=9: print(num) elif num==10: print("A") elif num==11: print("B") elif num==12: print("C") elif num==13: print("D") elif num==14: print("E") el...
[ "tanght@11wlw.com" ]
tanght@11wlw.com
a519c83825fb409ff723a114a6a6b3095e612fcc
f700ccde798c82ba2c8982c990e592bca984ce25
/changing_handles.py
07e3a9254d80370773e6c1681ffdeda645129a9d
[]
no_license
davidozhang/codeforces
94d791f3efc7d38a326efc08845975888eb3a811
fad0aa12b14cb3facd2aeac35298e7906f5884c4
refs/heads/master
2021-01-22T05:15:23.328306
2015-03-08T23:04:41
2015-03-29T20:20:02
30,389,624
2
0
null
2015-03-09T00:56:04
2015-02-06T02:01:15
Python
UTF-8
Python
false
false
427
py
#!/usr/bin/python ''' Problem 501B: http://codeforces.com/problemset/problem/501/B Solved on: 2015-02-23 Result: Accepted 61 ms 200 KB ''' def main(): old, _dict=[], {} for _ in range(int(raw_input())): a,b=raw_input().split() _dict[a]=b if a not in _dict.values(): old.append(a) print len(old) for i in o...
[ "davzee@hotmail.com" ]
davzee@hotmail.com
259bf0f1a515887a3a272512261443dfc7002ba5
b5ae24fd2ece2ca5ac39477ddb707d35f84869ea
/leetcode/이진검색트리의 기본 성질 530. Minimum Absolute Difference in BST.py
659e66b30d7a4e3b24e335c6889d34bfc7024aa8
[]
no_license
sky7th/algorithm-ps
3476fcbb58743aa3428b3b8017131f16580044e7
3a94a62141407f9eb2c5b01bea6275fad252789b
refs/heads/master
2021-06-13T17:40:02.472902
2021-04-18T14:11:53
2021-04-18T14:11:53
177,175,084
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right import math class Solution: def getMinimumDifference(self, root: TreeNode) -> int: self.minDiff = math.inf ...
[ "xoghk0321@gmail.com" ]
xoghk0321@gmail.com
e208b7de26fd6e70b1307cf3c96ac4e537c8871b
27e5aec1fcc8304e41fc838a4ce5f2d12ebad2da
/C02-Exercises-with-strings/Question-1-alternative_solution.py
4f20fb35d9884d7c040c658543c6ac930f0fb783
[]
no_license
nihathalici/Full-Speed-Python
cca8c3c8e8877283b557ecc2aef3646147b0e5cd
7efb22e1c9280d4f5d24fe208eb6a46b27f2622c
refs/heads/main
2023-07-13T15:07:59.421804
2021-08-16T07:58:45
2021-08-16T07:58:45
390,086,063
1
0
null
null
null
null
UTF-8
Python
false
false
353
py
""" Initialize the string "abc" on a variable named "s": (a) Use a function to get the length of the string. (b) Write the necessary sequence of operations to transform the string "abc" in "aaabbbccc". Suggestion: Use string concatenation and string indexes. """ s = "abc" print(len(s)) new_s = "" for ch in s: ...
[ "noreply@github.com" ]
nihathalici.noreply@github.com
529aa1ad7e15308ce08560df3b4003814895e0d7
5d9f395176356af28a53443747d6a74bd9d09b19
/GradientBoostingRegressionTest.py
ed070d1b4eff77c76c2723776d620fb4dd26db28
[]
no_license
sahilsingh1123/predictive_analysis_git
9e9bc12304964702d613b424ade977c73459677e
71acff687b70a5ef29139475d80ac176e23add93
refs/heads/master
2020-04-27T06:53:31.196449
2019-11-09T10:14:02
2019-11-09T10:14:02
174,120,909
1
0
null
null
null
null
UTF-8
Python
false
false
7,812
py
from pyspark.ml.regression import GBTRegressor from pyspark.ml.evaluation import RegressionEvaluator from pyspark.ml.feature import VectorAssembler, StringIndexer, VectorIndexer from pyspark.sql import SparkSession from pyspark.sql.types import * import json from PredictionAlgorithms.relationship import Relationship ...
[ "sahilsingh1123@gmail.com" ]
sahilsingh1123@gmail.com
67c6beea9504dd21c9b5603235aa997e27621f8d
b47d29e8df20eb175950459c55b1d80ed0648374
/example01/lists/views.py
2fbe71a9a0bdda44fb5055fa7906774b58115514
[]
no_license
lee-seul/Testing-goat
aea7151c4402e9bd81a7dbf1ba3351da4f2062ce
bbc4238f24b9cffc1862a3d609da5ac1c423f569
refs/heads/master
2021-01-22T23:43:03.552544
2017-04-02T15:22:01
2017-04-02T15:22:01
85,662,887
2
0
null
null
null
null
UTF-8
Python
false
false
314
py
from django.shortcuts import render, redirect from lists.models import Item def home_page(request): if request.method == 'POST': Item.objects.create(text=request.POST['item_text']) return redirect('/') items = Item.objects.all() return render(request, 'home.html', {'items': items})
[ "blacksangi14@naver.com" ]
blacksangi14@naver.com
9c442c27ea6bd163b7cab8d75519463c5fcaf754
8773e42ab712986591ab209f9d5369a93bee77b6
/export/nutep/admin.py
2c6f9916651e1133a52d012c4dc2e820d1f587af
[]
no_license
314casso/cpmanp
1f327dad4ed97182bf3f60414053787822f2386b
932f01de0ff4f34f5e4cb6e2efbc5056097f7300
refs/heads/master
2022-12-17T03:32:00.556162
2018-09-17T10:33:58
2018-09-17T10:33:58
122,865,150
0
0
null
2022-12-07T23:47:07
2018-02-25T18:47:41
HTML
UTF-8
Python
false
false
2,705
py
# -*- coding: utf-8 -*- from django.contrib import admin, messages from django.contrib.auth.admin import UserAdmin from django.contrib.auth.models import User from nutep.models import (BaseError, UserProfile, Team, CompanyManager, Employee, InfoSource, File, Company, Membership, DateQueryEvent, Container, Pre...
[ "picasso75@yandex.ru" ]
picasso75@yandex.ru
559f6866f9ba19ec3d9967ad68d1043685840710
0809673304fe85a163898983c2cb4a0238b2456e
/src/lesson_algorithms/itertools_product.py
950520d65c25acdb466fb8e5105bc76ec34f54f4
[ "Apache-2.0" ]
permissive
jasonwee/asus-rt-n14uhp-mrtg
244092292c94ff3382f88f6a385dae2aa6e4b1e1
4fa96c3406e32ea6631ce447db6d19d70b2cd061
refs/heads/master
2022-12-13T18:49:02.908213
2018-10-05T02:16:41
2018-10-05T02:16:41
25,589,776
3
1
Apache-2.0
2022-11-27T04:03:06
2014-10-22T15:42:28
Python
UTF-8
Python
false
false
301
py
from itertools import * import pprint FACE_CARDS = ('J', 'Q', 'K', 'A') SUITS = ('H', 'D', 'C', 'S') DECK = list( product( chain(range(2, 11), FACE_CARDS), SUITS, ) ) for card in DECK: print('{:>2}{}'.format(*card), end=' ') if card[1] == SUITS[-1]: print()
[ "peichieh@gmail.com" ]
peichieh@gmail.com
153424d1b5196bdbf8999ad2cdf0c64a964b7154
2e0d23f16102c1f76a3e797d2f45b37a71aa0018
/typeidea/typeidea/comment/templatetags/comment_block.py
24cdd6ef2a600815766b259f5b259f1ba012aaf9
[]
no_license
ydPro-G/typeidea
d951c397ef7cbe7e3205bf09e97f5884ced0ad0e
ccd9a91eac366231f1e0dd2012189772b34733c5
refs/heads/main
2023-02-27T06:54:54.867803
2021-02-03T07:41:33
2021-02-03T07:41:33
305,559,106
0
0
null
2021-01-21T06:24:06
2020-10-20T01:41:31
Python
UTF-8
Python
false
false
699
py
from django import template from comment.forms import CommentForm from comment.models import Comment # 自定义template 的tags和filters # 要成为一个可用的 tag 库,模块必须包含一个名为 register 的模块级变量。 # 它是一个 template.Library 实例 register = template.Library() #在 Library 对象上调用 inclusion_tag() 创建并注册该包含标签。 @register.inclusion_tag('comment/block.h...
[ "46178109+ydPro-G@users.noreply.github.com" ]
46178109+ydPro-G@users.noreply.github.com
fee4224de519f14adf9575a238b290ee15d1c31c
1adfdbddfe16292f33cbaaecadbd5af4d1e958c3
/eggplant/permissions/admin.py
4b4b0c78b42298b778bd0f9ba8022bab763d9793
[]
no_license
kbhff/eggplant
1c4bcf79bc2152bbf57033497344875e9b26cd48
c780c8fe8bc682e151709a8cd31ba3b140b54977
refs/heads/master
2021-08-06T08:10:36.354097
2020-06-07T20:49:44
2020-06-07T20:49:44
34,317,253
24
17
null
2017-09-08T00:25:16
2015-04-21T09:24:52
Python
UTF-8
Python
false
false
155
py
from django.contrib import admin from .models import Permission, UserProfilePermission admin.register(Permission) admin.register(UserProfilePermission)
[ "valberg@orn.li" ]
valberg@orn.li
378c70db1d2bf5d26865b916d666599d40ac2cc3
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/operations/_azure_firewall_fqdn_tags_operations.py
665d588c86a97119aaf33e2cc4e9756bf9acb80d
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
4,952
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
YijunXieMS.noreply@github.com
bab56327a489290398cae6260c2ecf2256f39717
9a7904a3ee4abd4c352a746b13963073aa62314b
/03_Data Science/2.Analysis/2.EXCEL/12.excel_introspect_all_workbooks.py
0f6dd07ea0a38ae3fe38105b73353fbb0fb796b0
[]
no_license
cat-holic/Python-Bigdata
4ab1528fa9e804206a2381ac08293088c3e9e250
2cb6c75eb02b3b0dc3a16a63c0446c1fc6f04f71
refs/heads/master
2020-03-15T09:27:33.944887
2018-08-02T08:16:35
2018-08-02T08:16:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
# 목적 : 통합 문서의 개수 및 각 통합 문서의 행과 열 개수 세기 import glob import os from xlrd import open_workbook input_directory = "input_files/" workbook_counter = 0 for input_file in glob.glob(os.path.join(input_directory,'*.xls*')): workbook = open_workbook(input_file) print('Workbook: {}'.format(os.path.basename(input_file))...
[ "lilith4802@gmail.com" ]
lilith4802@gmail.com
3facd614f63af5071b316dd614daf33c9e577589
9d9eb39e6adc35926d9ca5c38d5bbd05ccc6d15b
/python/stack_queue/sort_stack.py
da48a76fca5db58653b0c1153dc8962c35e931d8
[ "Unlicense" ]
permissive
amitsaha/learning
8121d60639f64a2a517ffb855d73de083ebfb445
4c1d85adf8018465716a1e8a74afadfe5f5528a2
refs/heads/master
2023-03-07T13:55:12.871756
2022-11-08T06:45:23
2022-11-08T06:45:23
25,386,786
6
4
Unlicense
2023-02-25T00:55:16
2014-10-18T04:03:55
Python
UTF-8
Python
false
false
572
py
''' Sort a stack ''' from __future__ import print_function class Stack: def __init__(self): self.nodes = [] def push(self, item): self.nodes.append(item) def pop(self): if self.nodes: return self.nodes.pop() def sort(self): t = [] while self.nodes...
[ "amitsaha.in@gmail.com" ]
amitsaha.in@gmail.com
5dcfd2137db7bbccefcf1ba8ba6a80f6841c8157
4b98949214942486b4d6e64fd7a0551dd986e720
/entries/migrations/0005_auto_20190801_2025.py
4418ca8e74d188d7d79a3eae1cc36b2901ab4637
[]
no_license
pandeyroshan/Project-Manager
7a1215a991cab9aca8754b698d0be6cd1c9addd2
022508361116e0686ac00baffe5d2776e5bcb1bf
refs/heads/master
2020-06-28T14:15:29.570602
2020-02-14T17:20:54
2020-02-14T17:20:54
200,252,040
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
# Generated by Django 2.1.5 on 2019-08-01 14:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('entries', '0004_auto_20190801_2024'), ] operations = [ migrations.AlterField( model_name='entry', name='date_posted'...
[ "=" ]
=
45fa4ec11030edc66ca86a972751c7fe48e8f1e9
95d32a98d0715816fd763c6df356069d91d74f33
/063.py
b0677d89209b7970d1ba0f93161ad01eacc0aad5
[]
no_license
jod35/coding-challenges
1f65d08d92c143004f44eafd4922ec0dcb652a1f
21cfa2853dac70055d2b20155e03dff1c235ee02
refs/heads/master
2022-12-14T22:31:37.344450
2020-09-18T19:47:51
2020-09-18T19:47:51
291,939,964
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
subjects=["Mathematics","Physics","History","Chemistry","Geography","Biology"] for i in subjects: print(i) print('\n') subject=input("Please enter a subject you dont like from the subjects: ") if subject in subjects: subjects.remove(subject) print(subjects)
[ "jodestrevin@gmail.com" ]
jodestrevin@gmail.com
23064c97533094fa0cb78b40a5cdf727fae86e68
f40ad51a600e64f12710fc4847c356a35cd0a3d2
/S04/functions/make_functions_using_def/is_prime.py
1446620d9d14845aecd7e0bcfc6f04f85ef11690
[]
no_license
pymft/py-mft1
0aa1b854ea80e17e18c0eacc6f4dc7428a71af39
f4657fe17e56b6f54bdc8b1076edfc388b85cb05
refs/heads/master
2020-05-09T09:32:59.020361
2019-07-05T13:59:19
2019-07-05T13:59:19
181,006,072
1
5
null
2019-05-03T20:06:03
2019-04-12T12:42:38
Python
UTF-8
Python
false
false
844
py
import math import time def is_prime(n): result = True for i in range(2, n): if n % i == 0: result = False return result def is_prime_2(n): """ :param n: :return: """ for i in range(2, n): if n % i == 0: return False return True def is_...
[ "naeini.v@gmail.com" ]
naeini.v@gmail.com
016ea6f3ea65e9fb9d9e456d1850199bf126b0ad
e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488
/cisco_threatgrid/icon_cisco_threatgrid/actions/search_for_sample_report_by_sha256/action.py
ebf007248decd0b314fbb6135de161eaebe751c1
[ "MIT" ]
permissive
OSSSP/insightconnect-plugins
ab7c77f91c46bd66b10db9da1cd7571dfc048ab7
846758dab745170cf1a8c146211a8bea9592e8ff
refs/heads/master
2023-04-06T23:57:28.449617
2020-03-18T01:24:28
2020-03-18T01:24:28
248,185,529
1
0
MIT
2023-04-04T00:12:18
2020-03-18T09:14:53
null
UTF-8
Python
false
false
1,749
py
import komand from komand.exceptions import PluginException from .schema import SearchForSampleReportBySha256Input, SearchForSampleReportBySha256Output, Input, Output, Component # Custom imports below import requests class SearchForSampleReportBySha256(komand.Action): def __init__(self): super(self.__cla...
[ "noreply@github.com" ]
OSSSP.noreply@github.com
bf676764e85a26610b33c838776d5c248d17a1ac
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02684/s210017193.py
d020d21f8acdef636274cfbe85482904dfa7808d
[]
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
590
py
def resolve(): N, K = list(map(int, input().split())) A = list(map(lambda x: int(x)-1, input().split())) routes = [0] current = 0 visited = [False for _ in range(N)] visited[0] = True while visited[A[current]] is False: current = A[current] routes.append(current) visi...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
fbc2798ebeb32d2302400d7a0e2abdd0f1210844
3b1a13edca51449f015086acad1e5a51ae89cba5
/lang/py/rfc/theme/yield/coroutines/grep.py
68265597826e9fddd8cab938dc9e8ea7b51f5add
[ "MIT" ]
permissive
ch1huizong/study
9000042d3ad13b06426b03423ee335aee15fd061
d3b7c43fc03484839f8bbc7d0d056df1b1eba9cd
refs/heads/master
2023-09-04T12:45:48.125715
2023-08-17T02:49:40
2023-08-17T02:49:40
162,539,130
1
0
null
null
null
null
UTF-8
Python
false
false
427
py
#!/usr/bin/env python # -*- coding:UTF-8 -*- # # grep.py # # A very simple coroutine def grep(pattern): print("Looking for %s" % pattern) while True: line = (yield) if pattern in line: print(line) # Example use if __name__ == '__main__': g = grep("python") g.next() g.se...
[ "root@k.k.lab" ]
root@k.k.lab
36d6b1a1da04a259e80b5b02c04bbd773bc3b19e
0a83201e8ce808f321d2c7059cad62fc55f67fac
/knimin/lib/tests/test_mem_zip.py
5f05978d1e03c5b5ab131813cc9d7d014c67fe20
[]
no_license
josenavas/labadmin
de9fd83c58f4a0722bc8447c9497fa203082f68e
9b0c0ca981704b91e41cd66935381a00b2021bf4
refs/heads/master
2021-01-17T05:47:26.726662
2017-03-29T17:12:31
2017-03-29T17:12:31
61,237,394
0
0
null
2017-04-21T18:04:36
2016-06-15T20:05:57
Python
UTF-8
Python
false
false
1,767
py
import unittest from knimin.lib.mem_zip import InMemoryZip import zipfile import os import io class TestInMemoryZip(unittest.TestCase): def setUp(self): self.test_fname = 'test.zip' self.test_out_fname = 'testout.zip' def tearDown(self): if os.path.exists(self.test_fname): ...
[ "jamietmorton@gmail.com" ]
jamietmorton@gmail.com
647ca70533af9d59dacac53da1418c5b4ae42861
81d635211686b1bc87af5892bd9e0fb95cc2ddb8
/adwords api/googleads-python-lib-master/examples/dfp/v201502/custom_targeting_service/get_custom_targeting_values_by_statement.py
af3bce4ec8008e5959ec55c572323473fea54e5e
[ "Apache-2.0" ]
permissive
analyticsbot/Python-Code---Part-2
de2f0581258b6c8b8808b4ef2884fe7e323876f0
12bdcfdef4472bcedc77ae61707c25a4a09cba8a
refs/heads/master
2021-06-04T05:10:33.185766
2016-08-31T13:45:45
2016-08-31T13:45:45
66,679,512
3
0
null
null
null
null
UTF-8
Python
false
false
2,184
py
#!/usr/bin/python # # 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 b...
[ "ravi.shankar1788@gmail.com" ]
ravi.shankar1788@gmail.com
08996541e148bceb827bb345dfb0b22ae4d7087e
24b2f3f5f49ed19cf7fd3dcd433d6b72806e08cf
/python/greedy/0321_Create_Maximum_Number.py
b2e76a34bb626df011a65d82c2e44a9457bed345
[]
no_license
lizzzcai/leetcode
97089e4ca8c3c53b5a4a50de899591be415bac37
551cd3b4616c16a6562eb7c577ce671b419f0616
refs/heads/master
2021-06-23T05:59:56.928042
2020-12-07T03:07:58
2020-12-07T03:07:58
162,840,861
1
0
null
null
null
null
UTF-8
Python
false
false
3,944
py
''' 14/05/2020 321. Create Maximum Number - Hard Tag: Dynamic Programming, Greedy Given two arrays of length m and n with digits 0-9 representing two numbers. Create the maximum number of length k <= m + n from digits of the two. The relative order of the digits from the same array must be preserved. Return an array...
[ "lilcolinn@gmail.com" ]
lilcolinn@gmail.com
63f045d3dc21e3791c9425358c7c8008f4473bd4
c75ec82316ed5322c5844912ce9c528c24360b9f
/nsd1904/py01/day05/userdb.py
934d3c5504bb8a701b5f8c99f161e82b71be0354
[]
no_license
MrZhangzhg/nsd2019
a94cde22f2e4bd648bb9e56ca63827f558f3c083
54f6d2c7b348a69f13ad5f38f2fbdc8207528749
refs/heads/master
2021-08-22T17:38:27.697675
2020-02-22T08:36:21
2020-02-22T08:36:21
183,539,489
21
24
null
2020-05-17T12:07:55
2019-04-26T02:06:16
HTML
UTF-8
Python
false
false
1,047
py
import getpass userdb = {} def register(): "注册" username = input('用户名: ').strip() if not username: print('用户名不能为空') elif username in userdb: print('用户已存在') else: password = input('密码: ') userdb[username] = password def login(): "登陆" username = input('用户名: ...
[ "zhangzg@tedu.cn" ]
zhangzg@tedu.cn
ee5bd752390e5df395f682ce7b4fa28b2938a377
bfc0a74a378d3692d5b033c21c29cf223d2668da
/unittests/pytests/meshio/TestMeshIOAscii.py
615a760c296ef561bcd700f4494d7c40b7422956
[ "MIT" ]
permissive
rishabhdutta/pylith
b2ed9cd8039de33e337c5bc989e6d76d85fd4df1
cb07c51b1942f7c6d60ceca595193c59a0faf3a5
refs/heads/master
2020-12-29T01:53:49.828328
2016-07-15T20:34:58
2016-07-15T20:34:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,198
py
#!/usr/bin/env python # # ====================================================================== # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University of Chicago # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://ge...
[ "baagaard@usgs.gov" ]
baagaard@usgs.gov
2eac0fe7205f01fcd3531a3b671f1979e5c0d010
d3efc82dfa61fb82e47c82d52c838b38b076084c
/Autocase_Result/Risk/FK_FKYW_PG_KCB_216.py
49df25a13b4164b21fe8cf6db44138eb4a864faf
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
2,782
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys import os sys.path.append("/home/yhl2/workspace/xtp_test/Autocase_Result/Risk/service") from order import f sys.path.append("/home/yhl2/workspace/xtp_test/service") from QueryStkPriceQty import * from log import * from utils import * sys.path.append("/home/yhl2/wo...
[ "418033945@qq.com" ]
418033945@qq.com
308d4740fd39328b62b5a410c01596774e243b8b
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_020/ch150_2020_04_13_19_37_29_073625.py
072e825e400a555f6233f5f98d69de76736d9316
[]
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
144
py
import math def calcula_pi(n): i = 1 while i<n: pi = math.sqrt(6/n**i)**n i += 1 return pi print(calcula_pi(10))
[ "you@example.com" ]
you@example.com
0394d26662f4531fb6839bf0ce75254d9c6186fa
c9803fb67b885214f138a805990d77cf4d714818
/proof_of_work/multiagent/turn_based/v5/honestagentv5.py
73c43ec05a825880067d33f1bbfa7b47b9409d2a
[ "MIT" ]
permissive
michaelneuder/parkes_lab_fa19
e68247ad5253d54f4d6074593a0e63fe61fcfc18
18d9f564e0df9c17ac5d54619ed869d778d4f6a4
refs/heads/master
2020-07-12T10:32:15.585380
2020-01-26T21:45:05
2020-01-26T21:45:05
204,792,720
0
0
null
null
null
null
UTF-8
Python
false
false
394
py
ADOPT = 0 OVERRIDE = 1 WAIT = 2 class HonestAgent(object): def act(self, state, eps): if state[0] > 0: return OVERRIDE elif state[1] > 0: return ADOPT else: print(state) raise RuntimeError('invalid state for honest agent to reach') d...
[ "michael.neuder@gmail.com" ]
michael.neuder@gmail.com
346e06d3deb76496f8c284166b6b0db9ee2fde05
8acffb8c4ddca5bfef910e58d3faa0e4de83fce8
/ml-flask/Lib/site-packages/pandas/tests/indexes/datetimes/test_to_period.py
8e585d905e32f9a5cbe88339334267eec6bc6c63
[ "MIT" ]
permissive
YaminiHP/SimilitudeApp
8cbde52caec3c19d5fa73508fc005f38f79b8418
005c59894d8788c97be16ec420c0a43aaec99b80
refs/heads/master
2023-06-27T00:03:00.404080
2021-07-25T17:51:27
2021-07-25T17:51:27
389,390,951
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:e802160248517dcd58e3c57c33853c53e6211ad92ccea57c6c4eae85cd4ec323 size 6557
[ "yamprakash130@gmail.com" ]
yamprakash130@gmail.com
e39541637b7af34914585fa1e08f800c4c707729
46355bd117d38191f2ebd23e9250ab121bf839fc
/uber/Max Chunks To Make Sorted.py
962df2c86bc3baf2fc21761517f5026e9f1ffdf4
[]
no_license
Jason003/Interview_Code_Python
f1e1a59e87cfada78a931be6a27a51898442aca4
75dbc8d3906bd00c8129c8ed0b584794c8b41d6b
refs/heads/master
2020-08-12T20:11:56.454848
2019-11-12T01:36:52
2019-11-12T01:36:52
214,835,963
4
1
null
null
null
null
UTF-8
Python
false
false
826
py
class Solution: def maxChunksToSorted(self, arr) -> int: res = 0 curMax = -1 for i, a in enumerate(arr): curMax = max(curMax, a) if curMax == i: res += 1 return res '''class Solution { public int maxChunksToSorted(int[] arr) { int...
[ "792576519@qq.com" ]
792576519@qq.com
7b7170d5477688449cf999ab8657defea1964577
06889f44b6e83001998a5b2dcb544c31e1637c0d
/csv2txtarr.py
b5363f4a1f0f55dc5f9f0bcf8c6616959362a5b2
[]
no_license
previtus/Text2Analysis
61149def19cf81253994001d040b2ac00b28027d
bb9d39ffcec7118add68e87eeb235ddd680a7def
refs/heads/master
2022-12-14T03:20:48.712547
2020-06-16T12:35:42
2020-06-16T12:35:42
200,721,007
4
0
null
2022-12-08T03:48:35
2019-08-05T20:04:08
Python
UTF-8
Python
false
false
4,700
py
# Load data from CSV files: import pandas as pd import numpy as np import matplotlib.pyplot as plt import gensim import json DATASET = "_jobsv1_all" DATASET = "_jobsv1_goodq" # This scraped dataset specific functions: csv_files = [ "../JobAdsData/Source1-Monster/creative_jobs_clean_1363.csv", "../JobAdsData/...
[ "previtus@gmail.com" ]
previtus@gmail.com
20cf22a37386bde9746d43922b9ae2da202701ac
abf17bef22471c32d9b05be27704ceb7f3877b0d
/conveyor_belt/test_scripts/test_policy.py
096d23932989b53f72b0b209ffc5c0c13bed39f9
[]
no_license
beomjoonkim/adversarial_actor_critic
a91d608c1da9ac7a9b4ed4b0dce2f08d68456346
753a031ff70473003bdcf844c256e28337a8e8c9
refs/heads/master
2021-02-24T19:19:56.463064
2020-05-17T14:14:03
2020-05-17T14:14:03
245,438,421
1
0
null
null
null
null
UTF-8
Python
false
false
3,404
py
import numpy as np import pickle import os import sys import matplotlib.pyplot as plt import tensorflow as tf import argparse import time from generators.PlaceGPS import PlaceGPS from sklearn.preprocessing import StandardScaler from data_load_utils import load_place_RL_data,load_key_configs,load_guidance_data from co...
[ "beomjoon@mit.edu" ]
beomjoon@mit.edu
fbf9414d9ce3748dcf5cbf6811385ae617fec39b
f4e8c8294b23fe070a763b527bc2f75ccdebaab1
/leetCodePython2020/1329.sort-the-matrix-diagonally.py
604c9fd0b16258c341089ca74abdfb94da944afd
[]
no_license
HOZH/leetCode
aff083b33e9b908490e7e992a0ad192ee31cc2e5
a0ab59ba0a1a11a06b7086aa8f791293ec9c7139
refs/heads/master
2023-08-17T08:44:07.884861
2023-08-08T19:47:42
2023-08-08T19:47:42
136,558,812
2
0
null
null
null
null
UTF-8
Python
false
false
1,627
py
# # @lc app=leetcode id=1329 lang=python3 # # [1329] Sort the Matrix Diagonally # # @lc code=start class Solution: def diagonalSort(self, mat: List[List[int]]) -> List[List[int]]: flat_list, dias = [], [] m, n = len(mat), len(mat[0]) result = [[0]*n for i in range(m)] for i in r...
[ "hong.zheng@stonybrook.edu" ]
hong.zheng@stonybrook.edu
4c84ceb85659a50a0b3ade5eb7b69c50f1a45b4d
1e0e3a4d2a198c63d62b2541f64eeb24c6344062
/wrapper/scalr-manage/scalr_manage/library/configure/constant.py
d1c86bfddb9d856bfffd436ed586f73e0c0c15aa
[ "Apache-2.0" ]
permissive
JetStreamPilot/installer-ng
6c7d9f38949ec83a848799f436cbac349a8325e2
a7c2e16baacdd580591e04d73474504f2d48bd6f
refs/heads/master
2021-01-18T02:09:17.839256
2015-01-22T15:42:03
2015-01-22T15:42:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
770
py
# coding:utf-8 # Supported versions SCALR_VERSION_4_5_0 = "4.5" SCALR_VERSION_5_0_0 = "5.0" SCALR_VERSION_5_0_1 = "5.0.1" SCALR_VERSION_5_1_0 = "5.1" SCALR_VERSION_5_1_1 = "5.1.1" SCALR_VERSION_5_2_0 = "5.2.0" SUPPORTED_VERSIONS = [ SCALR_VERSION_4_5_0, SCALR_VERSION_5_0_0, SCALR_VERSION_5_0_1, SCALR_VERSI...
[ "thomas@orozco.fr" ]
thomas@orozco.fr
a8067310e93bb7c499c7055eaaf74523e29722ac
8246092010e656920e7199f889f9cbf54b83a729
/pycoin/vm/ConditionalStack.py
0f47765a58dfc08aae40a788035381a1674a917e
[ "MIT" ]
permissive
richardkiss/pycoin
5717411a11445773ac922c1d1c1b7dbe4835cd77
b41ad7d02e52d9869a8c9f0dbd7d3b2b496c98c0
refs/heads/main
2023-08-07T12:14:04.974934
2023-04-18T02:27:15
2023-04-18T02:27:15
10,917,677
1,306
489
MIT
2023-06-03T23:24:50
2013-06-24T19:17:52
Python
UTF-8
Python
false
false
1,430
py
class ConditionalStack(object): def __init__(self, error_f): self.true_count = 0 self.false_count = 0 self.error_f = error_f def all_if_true(self): return self.false_count == 0 def OP_IF(self, the_bool, reverse_bool=False): if self.false_count > 0: self...
[ "him@richardkiss.com" ]
him@richardkiss.com
4b0dc7fdaa4477b1c51ce3beabf40c8181ed489a
13ebb469fc15724b87886179d095e51e6ff5fbc6
/modelchimp/views/api/ml_model.py
c9f3d83b6c32f5eef5bbbd91ccff3c6e8ecf38bc
[ "BSD-2-Clause" ]
permissive
fossabot/modelchimp
201c8ae0a40e7e1825dd4999cca8169eaf9198ef
dfe84f7755037ea4af69d1f62c47c05074f249a7
refs/heads/master
2020-05-21T08:07:58.249304
2019-05-10T11:04:34
2019-05-10T11:04:34
185,973,681
0
0
null
2019-05-10T11:04:29
2019-05-10T11:04:28
null
UTF-8
Python
false
false
5,211
py
import logging from rest_framework import generics, status from rest_framework.response import Response from rest_framework.decorators import api_view, permission_classes from rest_framework.permissions import IsAuthenticated from modelchimp.models.machinelearning_model import MachineLearningModel from modelchimp.mod...
[ "samir.madhavan@gmail.com" ]
samir.madhavan@gmail.com
e6368e4f6796b5da685adcf34db4b789889cd6cc
7b86724bb48246cb794f587ed98b30aa2f62cbe9
/app/urls.py
37dca7d6b2a1e1f092a71e8bf5d3b9761f30f52e
[]
no_license
horizonltd/HMS
3ef4b811a7806a204d01a7b629ab987a1e4058f2
77a83af55f97ad5cf6eba266737333452b4c2ec3
refs/heads/master
2023-05-14T07:37:15.982594
2021-06-04T11:21:49
2021-06-04T11:21:49
373,809,457
0
0
null
null
null
null
UTF-8
Python
false
false
838
py
from django.contrib import admin from django.urls import path, include from rest_framework import routers from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView from hms import views from hms.views import * router = routers.DefaultRouter() router.register("company", views.CompanyViewSet, ba...
[ "learntoprogress@yahoo.com" ]
learntoprogress@yahoo.com
d00906b5f21995b98d5675b68ed6391abdf92367
42541ac021f0981b87af2f1bc5b9ad728833b528
/src/eleventh/process.py
521199c2cb766fd2fa63cfc47f6c4807177a4756
[]
no_license
vmgabriel/or-tools-base
d43d0cd87cb47d25e700b9578c9a32034aed84be
f056ce5978a5386c14a3c4cc224e2f2a837ecf73
refs/heads/master
2023-02-11T06:47:38.618877
2021-01-12T20:52:10
2021-01-12T20:52:10
327,362,697
0
0
null
null
null
null
UTF-8
Python
false
false
5,120
py
""" Module for Penalties """ # Libraries from typing import Any, List from csv import reader from ortools.constraint_solver import routing_enums_pb2 from ortools.constraint_solver import pywrapcp def read_csv( file_path: str, delimiter: str = ',', mode_list: bool = True ) -> List[Any]: ""...
[ "vmgabriel96@gmail.com" ]
vmgabriel96@gmail.com
49160a22467ba521377c1c321a8ec0cc5ac535a1
7bcb0b7f721c8fa31da7574f13ed0056127715b3
/src/apps/api/urls/logs/v1/subscription.py
ce1dff3de1f48a1dac67ce0777160f4bf946929c
[]
no_license
simonchapman1986/ripe
09eb9452ea16730c105c452eefb6a6791c1b4a69
c129da2249b5f75015f528e4056e9a2957b7d884
refs/heads/master
2022-07-22T05:15:38.485619
2016-01-15T12:53:43
2016-01-15T12:53:43
49,718,671
1
0
null
2022-07-07T22:50:50
2016-01-15T12:53:09
Python
UTF-8
Python
false
false
299
py
from django.conf.urls import patterns, include from tastypie.api import Api from apps.api.resources import SubscriptionResource subscription = Api('subscription') subscription.register(SubscriptionResource()) urlpatterns = patterns( '', (r'^logs/v1/', include(subscription.urls)), )
[ "simon-ch@moving-picture.com" ]
simon-ch@moving-picture.com
275646faf62d23cab290dc4b1fc7a7802193ec27
272ae95716e530d538937ded59ec5b6e0b6d4db8
/섹션 6_완전탐색/10. 조합 구하기/AA.py
bade81d18371b25a5021fda7b80bbede14c5ff50
[]
no_license
gogoheejun/algorithm
83a1cb30bff5c349f53be16764e517a46e99cf1c
39e999abf7170f434a7ac6e1f698f066e55aca03
refs/heads/main
2023-06-22T13:06:32.135917
2021-07-25T15:46:19
2021-07-25T15:46:19
383,379,782
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
import sys sys.stdin = open("input.txt", "r") def DFS(L, s): global cnt if L == m: for j in range(L): print(res[j], end=" ") print() cnt += 1 else: for i in range(s, n+1): res[L] = i DFS(L+1, i+1) if __name__ == "__main__": n, m = m...
[ "heejjuunn@gmail.com" ]
heejjuunn@gmail.com
6be73d2891c7f8dcfec8d07fae4cdd4d788fa90d
9dc8c299ee7d4a225002127cc03b4253c8a721fd
/libs/sdk/ip.py
c29b8a1c4bf602f73ab372609494f7fe850308dd
[]
no_license
namesuqi/strategy_corgi
5df5d8c89bdf7a7c465c438048be20ef16120f4f
557b8f8eabf034c2a57c25e6bc581858dd4f1b6e
refs/heads/master
2020-03-07T04:00:18.313901
2018-03-29T07:50:50
2018-03-29T07:50:50
127,253,453
0
0
null
null
null
null
UTF-8
Python
false
false
2,112
py
# coding=utf-8 # author: zengyuetian import random # Private address # A class 10.0.0.0--10.255.255.255 # B class 172.16.0.0--172.31.255.255 # C class 192.168.0.0--192.168.255.255 def create_address_for_class(l1, l2, l3, l4, total): """ create ip address :param l1: :param l2: :param l3: :pa...
[ "suqi_name@163.com" ]
suqi_name@163.com
60c3a3a93b3a5056158ddaa89d8f24362362240a
97df2c66247e02082a68194bf1e5fb3d01c96468
/tests/daemon/unit/stores/test_workspacestore.py
341cbd06a7303f25d113b762801a6ed8e446eac4
[ "Apache-2.0" ]
permissive
VenusTokyo/jina
fecd8ecb35928158f436ada90e773c4eccbf7b64
4265163fafe499f80dc52be4a437087bf3c1799f
refs/heads/master
2023-07-31T13:18:51.727331
2021-10-02T12:22:59
2021-10-02T12:22:59
407,812,228
1
1
Apache-2.0
2021-10-02T12:23:00
2021-09-18T09:10:57
null
UTF-8
Python
false
false
766
py
import os import pytest from daemon.models import DaemonID from daemon.stores import WorkspaceStore from jina.enums import RemoteWorkspaceState @pytest.fixture(scope='function') def filepath(tmpdir): temp_filepath = os.path.join(tmpdir, 'input_file.csv') with open(temp_filepath, 'w') as file: file.w...
[ "noreply@github.com" ]
VenusTokyo.noreply@github.com
e274fa1e8d5109cdc5d59c1b823340fd9ee78658
28b4c4676cb016e35cc7b1048097628caa113114
/sso/common.py
0e079fbb7fbd2920302e4b9ecd0a0d661898f886
[ "MIT" ]
permissive
shiroyuki/voila-id
829127ef258c829f33d6f4079486829e3325f208
da86daef255d23b73ad6f2ba67fba02201407f09
refs/heads/master
2016-09-06T16:56:45.724263
2014-08-25T05:50:43
2014-08-25T05:50:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,596
py
# -*- coding: utf-8 -*- import json import os from tori.centre import core from tori.controller import Controller as BaseController from tori.controller import RestController as BaseRestController class AssetManager(object): def __init__(self, config): self._path_map = config['path_map'] def resolve_p...
[ "jnopporn@shiroyuki.com" ]
jnopporn@shiroyuki.com
167f7b9f81189cff14c6e499ea36f859dcffb727
a26b11bd2ee82f6ffbf82525d421ad32e2328c33
/pentest_worker/workers/connections.py
3262e7acd6dff726649420ea741825ebca21ad6b
[]
no_license
Nekmo/pentest-studio
b08804fe19a5c3fb2bc14b90953922a2772623e2
6bac1cf8618437f034bcedc74c41c6079ef95d0b
refs/heads/master
2023-09-06T07:51:55.333412
2023-08-19T21:46:44
2023-08-19T21:46:44
162,857,644
8
0
null
2023-03-04T03:03:04
2018-12-23T02:54:26
JavaScript
UTF-8
Python
false
false
2,315
py
import os from logging import getLogger from typing import Optional, Iterator import requests from django.conf import settings from django.urls import reverse from pentest_worker.workers.compress import create_memory_tar from pentest_worker.workers.config import get_worker_config logger = getLogger(__name__) class...
[ "contacto@nekmo.com" ]
contacto@nekmo.com
52f3ed9d1ee753e34cf625e4d7a413db911ee4f6
ecd27923efba50703a7bfbfa2ba37a8cc78560ea
/automatic_scraper/config/bid/liriqing/China_gongcheng_ztb_config.py
320ed0016b39d1a4db6917de0549cb75f416ea93
[]
no_license
yougecn/work
fb691b072a736731083777e489712dee199e6c75
1b58525e5ee8a3bdecca87fdee35a80e93d89856
refs/heads/master
2022-03-03T19:14:17.234929
2018-04-17T12:29:19
2018-04-17T12:29:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,283
py
# coding: utf-8 import time import logging import re from bs4 import BeautifulSoup import re logger = logging.getLogger(__name__) author = "liriqing" web_title = u"中国工程项目网" data_source = 'http://gcxm.com.cn' start_urls = [ # 招标公告 #政府采购 "http://gcxm.com.cn/index.php?m=content&c=index&a=lists&catid=9", ...
[ "iwechen123@gmail.com" ]
iwechen123@gmail.com
17f3a654822069451fa8ff1e7d50ff1515d70de4
7d0937960f6461abdb4e2eb5a1c34ba2787b04b5
/stealthify.py
5e9f7c4392d73abf09ab25eb84d7282972233812
[ "MIT" ]
permissive
sshh12/StealthML
03f8d3b8e993652d3b8531c405f438d2d6c8bb7a
237721b16b5d60141eea186abf3531853b88a54f
refs/heads/master
2020-03-07T12:40:58.975925
2019-01-21T03:18:51
2019-01-21T03:18:51
127,483,261
2
0
null
null
null
null
UTF-8
Python
false
false
1,964
py
""" Stealthify an image. The CLI script takes and image and the name of an object (ex. 'zebra') and returns the image without that object. """ # Use lib as if they were installed import sys sys.path.insert(0, "./InPainting") sys.path.insert(0, "./MaskRCNN") # Utils import skimage.io import skimage.transform import c...
[ "shrivu1122@gmail.com" ]
shrivu1122@gmail.com
cf367531555f01b995722103ed91b077d96d19cb
5c9d8bdf1b05f4748a9789e4131a93563d99fe3b
/Proyecto/misitio/users/migrations/0001_initial.py
afc060bbc3289619a91da73f57f157e25f7b3bab
[]
no_license
javicb55/djangoProyectosVarios
7febcd7faaed41f4dac529566b19e4eb6950df32
fa67cd8f6f54d8212034bdbb2e06af4ac4b361b5
refs/heads/master
2020-04-12T11:25:01.689872
2018-12-19T15:46:45
2018-12-19T15:46:45
162,458,292
0
0
null
null
null
null
UTF-8
Python
false
false
777
py
# Generated by Django 2.1.3 on 2018-11-20 16:49 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "javicb55@gmail.com" ]
javicb55@gmail.com
727131bf339566cb25c1dfa7278e658e6367913c
a0e0bd0aacc93aa1b494a220aa79a6f99f6e8565
/trunk/src/appserver/lib/files_dao.py
12a2be5b56be83b959ee567f9af74d3005a22309
[]
no_license
newguangzhou/now-hello
b3f21c5b07c7f5b0b69eb91430c760d059499a03
a0b970711318547afaa5d6ce1b500c089a2ded59
refs/heads/master
2021-08-20T03:21:42.927049
2017-11-28T02:40:59
2017-11-28T02:40:59
112,283,378
0
0
null
null
null
null
UTF-8
Python
false
false
478
py
# -*- coding: utf-8 -*- from tornado import gen from files_mongo_dao import FilesMongoDAO class FilesDAO: @staticmethod def new(**kwargs): mongo_meta = kwargs["mongo_meta"] mongo_dao = FilesMongoDAO(meta = mongo_meta) inst = FilesDAO(db_dao = mongo_dao) return inst de...
[ "bingodongtian@gmail.com" ]
bingodongtian@gmail.com
b9c8674bb728527e4b16ed10db7932c29be046a3
3e30e334d759a3606be1dce6dca1154568808d68
/xlsxwriter/test/comparison/test_chart_axis26.py
9a81e547c649240a0e0d4f91e8016a85528a7d43
[ "BSD-2-Clause-Views" ]
permissive
cimarronm/XlsxWriter
59668816c4faf5b2e5fc7b96a4ab98d5797891b7
b440055bebfcc08339bc3e43cc2ce9819a142004
refs/heads/master
2021-01-18T10:07:21.729676
2014-08-12T23:17:43
2014-08-12T23:17:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,259
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org # import unittest import os from ...workbook import Workbook from ..helperfunctions import _compare_xlsx_files class TestCompareXLSXFiles(unittest....
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
105406a5a8f501c5feecd7c9f58d267bfe22c27b
963a5564965e4181caa8a1c66396d714865bc236
/django_cradmin/tests/test_abstract_renderable.py
495b2340b7556c986e55d0a461d47814e708fd89
[ "BSD-3-Clause" ]
permissive
appressoas/django_cradmin
d6694b87cf8a7e53b4b6c3049c085560eeba2c9f
944e8202ac67c3838b748ff8f3a0b2a2870619bc
refs/heads/master
2023-07-20T14:15:03.426470
2023-07-17T11:33:10
2023-07-17T11:33:10
20,762,263
12
3
BSD-3-Clause
2023-02-15T20:32:49
2014-06-12T09:45:04
JavaScript
UTF-8
Python
false
false
830
py
from django.test import TestCase from django_cradmin.renderable import AbstractRenderable class MinimalRenderable(AbstractRenderable): template_name = 'cradmin_viewhelpers_testapp/listbuilder/minimal-renderable.django.html' class TestAbstractRenderable(TestCase): def test_get_template_name_no_template_name...
[ "post@espenak.net" ]
post@espenak.net
5fb6220ef1dcb34afb9ecc6390830e4f14c8febb
980434e03e722eaf3a5ff4ab4f1971c8d1cde4c5
/搜索二维矩阵II.py
52854e8fa84b6e712d2cd5e3be818b66ee3b09e4
[]
no_license
arry-lee/arryleetcode
c9c548b0defc9771e4e488b3e760809364456c99
b4b9b971ec81a921cca606dfa46ea4109d975dfb
refs/heads/master
2020-07-26T14:11:27.645307
2019-09-15T23:31:09
2019-09-15T23:31:09
208,670,826
1
0
null
null
null
null
WINDOWS-1252
Python
false
false
619
py
#ËÑË÷¶þά¾ØÕóII #2019-08-11 03:22:12 class Solution: def searchMatrix(self, matrix, target): """ :type matrix: List[List[int]] :type target: int :rtype: bool """ if not matrix or not matrix[0]: return False r = len(matrix) c = len...
[ "arry_lee@qq.com" ]
arry_lee@qq.com
4a4a45f26b1e6c559642fdc12136f9f3c1bccbcd
c98239fe93aba9da0bed9da87dc220f393d7301d
/week-2/oo-practice-melons/harvest.py
a8a1b48b302889ac652ab3013c32fe42ff3512ec
[]
no_license
sdublish/hackbright-exercises
2895477db90d117f52e47cb1a3cfb5c085b5dc0b
6e94ce7070471adcd8e6ae1b8ed733c305da6ee4
refs/heads/master
2022-12-16T04:29:24.394066
2018-07-01T21:27:30
2018-07-01T21:27:30
138,514,248
0
0
null
2021-06-01T22:22:15
2018-06-24T20:47:22
Python
UTF-8
Python
false
false
3,839
py
############ # Part 1 # ############ class MelonType(object): """A species of melon at a melon farm.""" def __init__(self, code, first_harvest, color, is_seedless, is_bestseller, name): """Initialize a melon.""" self.first_harvest = first_harvest self.color = color...
[ "vagrant@vagrant.vm" ]
vagrant@vagrant.vm
9f93308af159adf84d1c3f2a7b81489e065652c0
4fc9ee48160aa9066105063a23ae2867e6a903d2
/utils.py
eff4a8239c33b2c0a8a7a5b0b9ee205f1e163976
[]
no_license
IanEisenberg/NeuroEcon_Project
ee50d2fdccc8fb40550748b573f7df52c6b63dbe
7c7c2d527f813d43b25d8de72a15d3824480501c
refs/heads/master
2021-08-28T20:39:39.501976
2017-12-13T05:04:11
2017-12-13T05:04:11
114,076,142
0
0
null
null
null
null
UTF-8
Python
false
false
4,029
py
import numpy as np import pandas as pd # **********HELPER FUNCTIONS *********************************** def create_value_graph(graph, seeds, weight = .95, steps = 1000): value_graph = {key:.5 for key in graph.keys()} value_graph.update(seeds) node = np.random.choice(value_graph.keys()) for step in rang...
[ "ianeisenberg90@gmail.com" ]
ianeisenberg90@gmail.com
053b56ca4f326b61c9281526268b79d4271d934d
f0df081af8a46ab5d8f1d6b529347b214f50a308
/p771_jewels_stones.py
4b3fc0c936f81a93244bc66810b180cb768a4f6b
[]
no_license
ymwondimu/LeetCode
81198e468bf87530d1cc894be8e02c929773cae7
049fd6dea5557299f921faeadfe5c1c84bf50a2f
refs/heads/master
2020-03-20T16:54:28.563714
2018-11-01T01:18:05
2018-11-01T01:18:05
137,548,190
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
from collections import Counter def numJewelsInStones(J, S): """ :type J: str :type S: str :rtype: int """ d = Counter(J) count = 0 for char in S: if char in d: count += 1 return count def main(): print (numJewelsInStones("aA","aAAbbbb")) if __name__ ...
[ "ywondimu6@gatech.edu" ]
ywondimu6@gatech.edu
a0dcd65e5b5bab0ba81f56915e790458366e511a
e6fac8e0289d9f82369d2eb8e22bc175c6f51b3b
/Arcade/Intro/Level 4/Are Similar/code.py
012a77de12be1f9bf0d2f9e7771545760b6520e8
[]
no_license
Zahidsqldba07/CodeFights-9
f361c15d24f96afa26de08af273a7f8f507ced4a
6c5d152b1ad35cf178dd74acbc44ceb5fdcdf139
refs/heads/master
2023-03-18T23:52:43.274786
2017-05-12T07:28:08
2017-05-12T07:28:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
535
py
def areSimilar(A, B): length = len(A) differences = 0 a, b = [], [] for i in xrange(length): if A[i] != B[i]: a.append(A[i]) b.append(B[i]) differences += 1 # If there are no differences, then similar. if differences == 0: return True ...
[ "hallosputnik@gmail.com" ]
hallosputnik@gmail.com
1098bfa98544edb02aa2dd9230d7cfa3cb677bf6
8f8b209e4ff9111a70cbc1feade4cfc8fe0eacaa
/collada/tests/test_material.py
b66a4fb66f690e3cba46ca8ccae4928f707c3c82
[]
no_license
phaeta/pycollada
3efaea70d4714011dcc639586571f356ebdee062
e2bee67313b96da86d4926625274f9276179e17e
refs/heads/master
2021-01-17T22:27:35.052455
2011-03-08T02:22:33
2011-03-08T02:22:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,811
py
import unittest2 import collada from lxml.etree import fromstring, tostring import StringIO class TestMaterial(unittest2.TestCase): def setUp(self): self.dummy_collada_text = """ <COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1"> </COLLADA> """ s...
[ "jterrace@gmail.com" ]
jterrace@gmail.com
3006df82dcbc63f0e7b903a906d7ebc5159c4f3c
c654aab55f79e3363600dfded4f102f299a395d5
/kvmvdi/kvmvdi/settings.py
ede61f7e293665537ed128f60f3925630fafdd22
[]
no_license
hieule1997/VNPT-cuoi_cung
2100a0ae8b9ca3bb55e4caf70ee279b9bdb3e417
0c36c6e653300317462e47f0a5d0061c135a89a9
refs/heads/master
2020-04-04T23:10:26.374804
2018-11-06T07:56:11
2018-11-06T07:56:11
156,349,374
1
0
null
2018-11-06T08:16:39
2018-11-06T08:16:38
null
UTF-8
Python
false
false
3,652
py
""" Django settings for kvmvdi project. Generated by 'django-admin startproject' using Django 1.11.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
[ "dangdiendao@gmail.com" ]
dangdiendao@gmail.com
540edd268876a34ce8a136bb39ee6ea777b09223
b5ef3b9da130f604f111bd469128b73e78d6ba9d
/bt5/erp5_base/SkinTemplateItem/portal_skins/erp5_base/Person_statPersonDetailedContributionList.py
6a172ab18485c01a2c8e8d465c013a09526aedd4
[]
no_license
soediro/erp5
154bb2057c4cd12c14018c1ab2a09a78b2d2386a
3d1a8811007a363b7a43df4b295b5e0965c2d125
refs/heads/master
2021-01-11T00:31:05.445267
2016-10-05T09:28:05
2016-10-07T02:59:00
70,526,968
1
0
null
2016-10-10T20:40:41
2016-10-10T20:40:40
null
UTF-8
Python
false
false
2,514
py
request = container.REQUEST RESPONSE = request.RESPONSE stat_line = request.get('stat_line', None) return stat_line # XXX example of another way to get the stat line but this is slower from Products.ERP5Type.Log import log from Products.PythonScripts.standard import Object from Products.ZSQLCatalog.SQLCatalog impo...
[ "georgios.dagkakis@nexedi.com" ]
georgios.dagkakis@nexedi.com
008b5083e4976a5ee3c1fc49fd2b0019f3520624
dfc28b499067f97d86f946628941f623468e8b35
/venv/bin/sqlformat
3354730cfc61ccdcb4c5899cf3289c36497662c7
[]
no_license
Smikhalcv/car_admin
4d8c2180d1e5380e7c9a0be5399547477d4d38cc
5a923db3bed897efb09c0ce1c871360f87fb6074
refs/heads/master
2022-12-10T18:48:59.857539
2020-09-05T21:44:45
2020-09-05T21:44:45
292,345,656
0
0
null
null
null
null
UTF-8
Python
false
false
276
#!/home/dell-ubuntu/Документы/Python/django/car_admin/venv/bin/python # -*- coding: utf-8 -*- import re import sys from sqlparse.__main__ import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "Smikhalcv@yandex.ru" ]
Smikhalcv@yandex.ru
b236bf1178b62723944dfe03bd755c6cde5f8964
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_026/ch41_2020_03_25_20_28_23_061551.py
98e384c73163546f4559c82db2229452b0c5813e
[]
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
155
py
def zera_negativos (lista_inteiros): c=0 while c<len(lista_inteiros): if c<0: lista_inteiro[c]=0 return lista_inteiros
[ "you@example.com" ]
you@example.com
929a5edb234f83edb90ef01b7f9edbecc148be4c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02781/s615536539.py
fa2c49c225c76b1c367183f7fa37e056081433e9
[]
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
1,127
py
# coding: utf-8 import sys #from operator import itemgetter sysread = sys.stdin.readline read = sys.stdin.read #from heapq import heappop, heappush #from collections import defaultdict sys.setrecursionlimit(10**7) import math from itertools import combinations, product #import bisect# lower_bound etc #import numpy as n...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0e31e90dbb1245afd2a56026ce072ff39e2d96d1
f5a2868733338173c09f241d239a7da06f9d45dc
/rose_test_applicati_19275/urls.py
4620234539f9498dec8f6097c3ce80a63c325f53
[]
no_license
crowdbotics-apps/rose-test-applicati-19275
8a403967bd1c90cf81d21bf963538b275be61e94
84a245857d63bc22b9f2dbbd3c15098f8c86516c
refs/heads/master
2022-11-23T03:54:01.973049
2020-07-30T21:38:46
2020-07-30T21:38:46
283,881,691
0
0
null
null
null
null
UTF-8
Python
false
false
1,995
py
"""rose_test_applicati_19275 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='...
[ "team@crowdbotics.com" ]
team@crowdbotics.com