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
3a7419d47d115b22113387f8fd86234986c771a1
f4e8c8294b23fe070a763b527bc2f75ccdebaab1
/leetCodePython2020/1474.delete-n-nodes-after-m-nodes-of-a-linked-list.py
8136d6345fa1a7de4237a5a73ae5124dabab1e71
[]
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,034
py
# # @lc app=leetcode id=1474 lang=python3 # # [1474] Delete N Nodes After M Nodes of a Linked List # # @lc code=start # Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def deleteNodes(self, head: Li...
[ "hozh96@gmail.com" ]
hozh96@gmail.com
3e99fae9007287918e670bfe84e392c317a21be5
79c8b6f17f22dd6b72b7ab228e38539797b3d1e9
/apps/prolongation/forms.py
5b54802c3f43e80b704fae0f7e5bf41204925cd3
[]
no_license
wd5/system
ac81e76413c620a225fdaff335f5c59f6ebf5bd0
26d8453965598e5b28bf2178c5cd01e637ac89b7
refs/heads/master
2021-01-17T22:07:50.130502
2013-01-22T14:37:08
2013-01-22T14:37:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,988
py
#encoding: utf-8 from django import forms from models import UserProlongation, StatusChange from django.contrib.admin import widgets from vendors.mptt.fields import TreeNodeChoiceField from common.forms import CoolModelForm from participants.models import District def get_districts_choices(with_empty_row...
[ "dostovalov@gmail.com" ]
dostovalov@gmail.com
3030d74ebb97635d2c611839c05ce641b45d3b5c
3485a66a944aca21a0960c2f5a96c3b32ee24fb1
/dlk/tests/onnx/test_onnx_io.py
22535caa06b8d1af509641b77159947eb0b00d4d
[ "Apache-2.0" ]
permissive
tsawada/blueoil
17733363f6bb4ab7c7d24571ea4e76a903aef378
745a2eb25e090e0ff9af547c1a11b538bf7e5c8a
refs/heads/master
2020-06-14T02:15:03.640939
2019-08-20T01:43:28
2019-08-20T01:43:28
194,863,619
0
0
Apache-2.0
2019-07-02T12:59:13
2019-07-02T12:59:13
null
UTF-8
Python
false
false
3,995
py
# -*- coding: utf-8 -*- # Copyright 2018 The Blueoil Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
[ "matsuda@leapmind.io" ]
matsuda@leapmind.io
69281b7f06729a2d89602751939ca08ebe0fe622
54e4c1a57765519c77d04fc02112c7f3bbacc595
/prob_1329.py
156b38e3a672f42a8f501938e3a886b26dae54e3
[]
no_license
Hrishikesh-3459/leetCode
80a864228a8a2ae41ac2623f970a13f409234eed
42def57b8f70d179ca688314ae43747fc1e410a0
refs/heads/master
2023-05-07T01:37:19.375229
2021-05-25T01:58:05
2021-05-25T01:58:05
254,803,743
1
0
null
null
null
null
UTF-8
Python
false
false
1,368
py
class Solution: def diagonalSort(self, mat): m = len(mat) n = len(mat[0]) check = [[False for i in range(n)]for j in range(m)] i = 0 j = 0 while self.check_if_over(check) == False and i < m and j < n: row = i col = j cur = [mat[row]...
[ "hrishikeshmm01@gmail.com" ]
hrishikeshmm01@gmail.com
2906a35630c06f37c1402f6fa5d9902b007d01c7
14e7058adf766352a0b90b66b7dcf887105a481c
/portal/updates/templatetags/updates.py
ceed478aa39a25aae2c21e8a9a94ff5ba2b2496a
[ "BSD-2-Clause" ]
permissive
brunogamacatao/portalsaladeaula
2b7f07f07c2518dd359f043483fbb27417f62aaf
9429e485aa37ffea3208339a807032e9230a3c84
refs/heads/master
2020-12-29T01:42:18.594281
2012-06-22T12:24:44
2012-06-22T12:24:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,076
py
from django import template from django.template.loader import render_to_string from django.contrib.contenttypes.models import ContentType from portal.updates.models import Update register = template.Library() class BaseUpdateNode(template.Node): """ Base helper class (abstract) for handling the get_update_*...
[ "brunogamacatao@gmail.com" ]
brunogamacatao@gmail.com
da4babe938a55d7fd72c4bfc6e80eedc4bc56c01
ea7bcf81da6456260ce1a808a13d9d78efc2a897
/pyacoustics/speech_detection/common.py
44afaf9218810c7fdbe436b3bbaf5bdeec56daa3
[ "MIT" ]
permissive
timmahrt/pyAcoustics
912fdf6dc8f445387246cbee4855b1338f370b6a
c778e4ada301f420a71bf9f6d4b51beccccaecde
refs/heads/main
2023-07-19T22:14:21.324789
2023-07-15T16:23:48
2023-07-15T16:23:48
37,000,171
79
16
NOASSERTION
2023-07-15T16:11:53
2015-06-07T01:09:28
Python
UTF-8
Python
false
false
3,386
py
""" Created on Jun 7, 2015 @author: tmahrt """ import struct import wave import math from pyacoustics.signals import audio_scripts class EndOfAudioData(Exception): pass def getSoundFileDuration(fn): """ Returns the duration of a wav file (in seconds) """ audiofile = wave.open(fn, "r") pa...
[ "timmahrt@gmail.com" ]
timmahrt@gmail.com
5db3a8987722578fed28235ac67dbfe166ee6202
1d9ab83a59139f1b59f20451146499c7f2c1fe2e
/00web框架的本质/14uimethod/start.py
5fdc2a15bc150d454d9ef23eb2bba57f6a4073f7
[]
no_license
lannyMa/tornado_info
df1361d9ee5ec418cb3cb7681cb45a0f88560466
fe2c4dfb6d882f5ce750322bcd496c8484452da1
refs/heads/master
2021-01-23T06:06:04.913158
2017-09-15T02:55:20
2017-09-15T02:55:20
102,489,357
0
0
null
null
null
null
UTF-8
Python
false
false
887
py
#!/usr/bin/env python # coding=utf-8 import tornado.web import uimethod as mt # 业务逻辑处理模块 INPUT_LIST=[] class MainHandler(tornado.web.RequestHandler): def get(self): # self.write("Hello, world") # self.render("bbs.html",names=INPUT_LIST) self.render("bbs.html", npm="NPM", names=INPUT_LIST) ...
[ "iher@foxmail.com" ]
iher@foxmail.com
b2c8628e08de3b25e4a2efe061348b105be899b3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02572/s626980597.py
c8d152ab3d681e7b7eebb229e3f9202f9a0a2aee
[]
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
138
py
KK=10 ** 9 + 7 N = int(input()) A = list(map(int, input().split())) X=0 K=sum(A) %KK for x in A: K-= x X+=K*x X%=KK print(X)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
09c8172121ce98de464c378338ba814ab6f1d833
974d04d2ea27b1bba1c01015a98112d2afb78fe5
/test/collective/test_c_identity.py
6f034bf16414726f8fdb352d7260b5f7d4e1f121
[ "Apache-2.0" ]
permissive
PaddlePaddle/Paddle
b3d2583119082c8e4b74331dacc4d39ed4d7cff0
22a11a60e0e3d10a3cf610077a3d9942a6f964cb
refs/heads/develop
2023-08-17T21:27:30.568889
2023-08-17T12:38:22
2023-08-17T12:38:22
65,711,522
20,414
5,891
Apache-2.0
2023-09-14T19:20:51
2016-08-15T06:59:08
C++
UTF-8
Python
false
false
964
py
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
4378b43ae05e94906677124d1d5580789abb3a72
e7dc7b84a31aca9bf2ca5e48a7813dec3d1fe817
/utils.py
3561afbba43bd164f4a31b09bbf8ea62cfdcedde
[]
no_license
BerenMillidge/PredictiveCodingDynamicalWeights
8a17df1b162471b88963abb585fe976306209cc1
150cdef32ab2d5aeecc163195082b7c0f2c48dc2
refs/heads/master
2022-08-29T04:10:33.411811
2020-05-30T16:44:24
2020-05-30T16:44:24
268,092,294
0
0
null
null
null
null
UTF-8
Python
false
false
3,512
py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init import torch.distributions as dist from copy import deepcopy import math import matplotlib.pyplot as plt global DEVICE DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu") def boolchec...
[ "noreply@github.com" ]
BerenMillidge.noreply@github.com
1d223a717acce32faf636829503f6a4037161c65
ed865aed525556fd7aa5ac5a024af720de8438e3
/tests/integration-tests/__init__.py
221b7a2ecaedf18bc52002036cbeb1b3d1069a38
[ "Python-2.0", "GPL-1.0-or-later", "MPL-2.0", "MIT", "LicenseRef-scancode-python-cwi", "BSD-3-Clause", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-free-unknown", "Apache-2.0", "MIT-0", "BSD-2-Clause" ]
permissive
aws/aws-parallelcluster
7bb33a6e175168f63a1e0acb1a9a7e9cbc405eff
a213978a09ea7fc80855bf55c539861ea95259f9
refs/heads/develop
2023-09-05T15:12:18.533270
2023-09-05T14:38:59
2023-09-05T14:38:59
19,718,034
520
226
Apache-2.0
2023-09-14T15:56:30
2014-05-12T22:42:19
Python
UTF-8
Python
false
false
554
py
# Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "LICENSE.txt" file accom...
[ "demartinof@icloud.com" ]
demartinof@icloud.com
41f5a6c0a06987569d79b51f13b83e6c38328a56
4131a31723394b4f075e1c8170d4b1c30b4d4920
/celescope/tag/analysis_tag.py
126802850fda6cc2c223bee621a0cde75e48fb33
[ "MIT" ]
permissive
Yixf-Self/CeleScope
8be4ebf7236923316ff7bed4690385f96834b5c8
e89525b16c92ded5b024822ba1286cdf10296d91
refs/heads/master
2023-02-02T20:24:31.174786
2020-12-16T05:46:22
2020-12-16T05:46:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
731
py
import argparse from .Analysis_tag import Analysis_tag def get_opts_analysis_tag(parser, sub_program): if sub_program: parser.add_argument('--outdir', help='output dir', required=True) parser.add_argument('--sample', help='sample name', required=True) parser.add_argument('--match_dir', help...
[ "zhouyiqi@singleronbio.com" ]
zhouyiqi@singleronbio.com
81eb0e802c74a649123d6a272566234d6ca31607
4522fc52bc43654aadd30421a75bae00a09044f0
/isis/decimal_edit.py
481c403ed9b9486d501323a219685cc2a005361d
[]
no_license
qesoalpe/anelys
1edb8201aa80fedf0316db973da3a58b67070fca
cfccaa1bf5175827794da451a9408a26cd97599d
refs/heads/master
2020-04-07T22:39:35.344954
2018-11-25T05:23:21
2018-11-25T05:23:21
158,779,332
0
0
null
null
null
null
UTF-8
Python
false
false
1,332
py
from PySide2.QtWidgets import QDoubleSpinBox from isis.event import Event from decimal import Decimal as D class Decimal_Edit(QDoubleSpinBox): def __init__(self, *args, **kwargs): QDoubleSpinBox.__init__(self, *args, **kwargs) self.setDecimals(2) self.setButtonSymbols(self.NoButtons) ...
[ "qesoalpe@gmail.com" ]
qesoalpe@gmail.com
50c1c15e2b1d65358bef75285df605e0c6f08b8b
25e15f9f7183a16c18654937f517772f2fa0dd0d
/src/actions/run-tempest.py
94bb5e7d5fd67ec475314dfa64dc910d102a1aeb
[ "Apache-2.0" ]
permissive
junaid-ali/charm-tempest
956117bf1ca113bbc4e83a9ee56975913a9b79d2
f1d83e0d2fa68e3baac700831c320f44c30d9f03
refs/heads/master
2021-01-10T22:46:00.583771
2016-10-05T22:45:56
2016-10-05T22:45:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
#!/usr/bin/env python3 import sys sys.path.append('lib') import charm.openstack.tempest as tempest import charms.reactive as reactive if __name__ == '__main__': # Cloud may have different artifacts (flavors, images etc) since last run # so rerun handlers file to regenerate config. reactive.main() tem...
[ "liam.young@canonical.com" ]
liam.young@canonical.com
c1c318540bca5cdd58745276e028cd0945716940
ed37a985a7411fb3b8f29282a81f1d823f8f4afc
/pascal_triangle/tests/test_pascal_triangle.py
97e72f007bbdce96f05c1ede77270cbe78d69329
[]
no_license
dmugtasimov/pascal_triangle
5b310451582f6fc2ddc74f316259c6ec9fc4ec4b
875deac43300a42560f0433a92e5f1e0475bb754
refs/heads/master
2021-06-16T10:55:11.338999
2017-04-11T17:20:54
2017-04-11T17:20:54
35,548,062
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
import unittest from pascal_triangle.implementations import ALL_IMPLEMENTATIONS def test_method_template(implementation_class): TRI_HEIGHT = 5 TRI_HEIGHT_SUM = 2 ** TRI_HEIGHT def test_method(self): result = implementation_class(return_list=True).build(TRI_HEIGHT) self.assertEquals(sum(...
[ "dmugtasimov@gmail.com" ]
dmugtasimov@gmail.com
9c4e17a756d3de453a7f7426eb35e933be498384
644b13f90d43e9eb2fae0d2dc580c7484b4c931b
/2019 baekjoon/GreedyAlgorithm/12904_A&B.py
039e8f50f9c55d9c86fcae7db31582806dab294d
[]
no_license
yeonnseok/ps-algorithm
c79a41f132c8016655719f74e9e224c0870a8f75
fc9d52b42385916344bdd923a7eb3839a3233f18
refs/heads/master
2020-07-09T11:53:55.786001
2020-01-26T02:27:09
2020-01-26T02:27:09
203,962,358
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
s = list(input()) t = list(input()) def flip(a): new = [] while a: new.append(a.pop()) return new while len(t) != len(s): if t[-1] == 'A': t.pop() elif t[-1] == 'B': t.pop() t = flip(t) if t == s: print(1) else: print(0)
[ "smr603@snu.ac.kr" ]
smr603@snu.ac.kr
62a6fa57c9d7c5e1b9220399de7f89106a2421c9
2ffd079c34cb07c738f7e5f703764fed68f2c8c0
/Solutions/Boats_to_Save_People.py
8457f5f14562cfa073a2ca26ba0fb6ac492d2b34
[]
no_license
WuIFan/LeetCode
bc96355022c875bdffb39c89a2088457b97d30ab
689a100ada757bc20334d5f0084587af3039ca7b
refs/heads/master
2022-05-24T07:13:01.023733
2022-04-03T15:26:23
2022-04-03T15:26:23
202,471,960
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
from typing import List class Solution: def numRescueBoats(self, people: List[int], limit: int) -> int: people.sort() i = 0 j = len(people) - 1 res = 0 while i < j: if people[i] + people[j] > limit: j -= 1 else: j -= 1...
[ "denny91002@gmail.com" ]
denny91002@gmail.com
7290f6983e9502963083c6e49356c72e5ab472da
282ec49f8ce8aa176c24e4f13a8852c9b0752e4a
/ap/leetcode/pyleet/lc0162.py
c00b706942d22ee7d2f26c4782aa0820e69bec3e
[]
no_license
montreal91/workshop
b118b9358094f91defdae1d11ff8a1553d67cee6
8c05e15417e99d7236744fe9f960f4d6b09e4e31
refs/heads/master
2023-05-22T00:26:09.170584
2023-01-28T12:41:08
2023-01-28T12:41:08
40,283,198
3
1
null
2023-05-01T20:19:11
2015-08-06T03:53:44
C++
UTF-8
Python
false
false
1,702
py
# # Author: montreal91 # Time: 0:30 # Failed attempts: 0 # import unittest MIN = - 2 ** 31 class Solution: def findPeakElement(self, nums): mnts = [MIN] + nums + [MIN] il = 0 ir = len(mnts) - 1 while il < ir: im = (il + ir) // 2 if mnts[im - 1] < mnts[im...
[ "nefedov.alexander91@yandex.ru" ]
nefedov.alexander91@yandex.ru
0f1952cc16a097804947d9554b615919033d1555
dc8a337ea1d8a285577d33e5cfd4dbbe846ee1a0
/src/main/scala/contest/219/CountOfMatchesInTournament.py
cbf192a7fc2cc24d777e15c397db75f5ca03de19
[]
no_license
joestalker1/leetcode
8a5cdda17abd33c3eef859732f75d7bec77a9d0e
ae392ddbc7eb56cb814b9e9715043c98a89a6314
refs/heads/master
2023-04-13T22:09:54.407864
2023-04-09T19:22:54
2023-04-09T19:22:54
131,803,943
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
class Solution: def numberOfMatches(self, n: int): def count_matches(n): if n <= 1: return 0 if n % 2 == 0: return n// 2 + count_matches(n // 2) return (n-1)//2 + count_matches(1 + (n - 1) // 2) return count_matches(n)
[ "denys@dasera.com" ]
denys@dasera.com
d715a816467cc368b2e27d960e8e54e0ebf19723
a94757526253f3a3ae4b65b662316e3b03b271e9
/week6/Burst_Balloons.py
cb95a008e66daa661e793bdc9de4d3105930073d
[]
no_license
RRoundTable/CPPS
3e30f4d9c48aa9c85d74db6696c6d458fa38523a
fb679053ee89c15e2844fda1d705d46778ea1c0d
refs/heads/master
2021-07-06T07:19:43.806752
2020-12-15T10:59:08
2020-12-15T10:59:08
214,435,381
1
2
null
2020-02-06T14:53:13
2019-10-11T12:50:22
Python
UTF-8
Python
false
false
2,250
py
""" link: https://leetcode.com/problems/burst-balloons/ Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst balloon i you will get nums[left] * nums[i] * nums[right] coins. Here left and right are adja...
[ "ryu071511@gmail.com" ]
ryu071511@gmail.com
675343e06faf2cf96b15116a8efead79da926023
795c2d7e2188f2ecb3e72bbb4053726856009c0d
/ctrl/UM_N1280/MASS/u-al508_ap9_surf_wind.py
f12ffe79ba6ffebffcefe041e759f41314f3b2a3
[ "Apache-2.0" ]
permissive
markmuetz/cosmic
3a4ef310cb9cb92b81ff57b74bb1511841f790a5
f215c499bfc8f1d717dea6aa78a58632a4e89113
refs/heads/master
2023-08-01T10:55:52.596575
2021-09-20T19:26:33
2021-09-20T19:26:33
217,045,140
0
1
null
null
null
null
UTF-8
Python
false
false
305
py
import sys sys.path.insert(0, '.') from common import AP9_SURF_WIND, BASE_OUTPUT_DIRPATH AP9_SURF_WIND['start_year_month'] = (2006, 6) AP9_SURF_WIND['end_year_month'] = (2006, 8) ACTIVE_RUNIDS = ['u-al508'] MASS_INFO = {} MASS_INFO['u-al508'] = { 'stream': { 'ap9': AP9_SURF_WIND, }, }
[ "markmuetz@gmail.com" ]
markmuetz@gmail.com
6252183c5567fc46783ed4186bd8371dd020d801
68f757e7be32235c73e316888ee65a41c48ecd4e
/백준_python/5000/5724.py
7b73a4f533a8d37c1c269269f298a8bb8378dcce
[]
no_license
leejongcheal/algorithm_python
b346fcdbe9b1fdee33f689477f983a63cf1557dc
f5d9bc468cab8de07b9853c97c3db983e6965d8f
refs/heads/master
2022-03-05T20:16:21.437936
2022-03-03T01:28:36
2022-03-03T01:28:36
246,039,901
1
0
null
null
null
null
UTF-8
Python
false
false
206
py
import sys res = [] name = sys.stdin.read().splitlines() for idx in range(len(name)-1): a = 0 for i in range(1,int(name[idx])+1): a += i**2 res.append(a) print("\n".join(map(str,res)))
[ "aksndk123@naver.com" ]
aksndk123@naver.com
af431faa9cacaf363149a53584e86a14881b8268
16c141516b00fc0d6849da3d8ecc64639aef95de
/convert_format_final.py
c388246910c3530ab4358f124111731b70708ee1
[]
no_license
intfreedom/python
b7c70f2ab025744b736ddd420bc398927c02a9db
f3aa13df84ca8bf71de435146598e3ca1d5e6503
refs/heads/master
2022-10-15T12:45:45.768036
2020-06-15T01:46:03
2020-06-15T01:46:03
158,104,553
0
0
null
null
null
null
UTF-8
Python
false
false
2,029
py
# -*- coding:utf-8 -*- #!/user/bin/python3 industry_list = [ { "parent_ind": "女装", "name": "连衣裙" }, { "name": "女装" }, { "parent_ind": "女装", "name": "半身裙" }, { "parent_ind": "女装", "name": "A字裙" }, { "name": "数码" }, { "parent_ind": ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
b883a6e32adf1d96ba5d28de4f0c59f3953c1b9b
1100bc9e3372615c36a7f012cd18d61cd98e8515
/doc/source/conf.py
85190f266d14c97d4078bdf0ea4c2c957f01f301
[ "BSD-3-Clause" ]
permissive
mortezaomidi/scikit-criteria
fd3b1d5a394741607dc37d965a96ce3fb9d6acc3
2abad2e78e3833cca7ab660e34a978fcab6b92ef
refs/heads/master
2020-03-29T23:57:08.030280
2018-06-22T04:03:44
2018-06-22T04:03:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,769
py
# -*- coding: utf-8 -*- # # Scikit-Criteria documentation build configuration file, created by # sphinx-quickstart on Thu Aug 3 02:18:36 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated fil...
[ "jbc.develop@gmail.com" ]
jbc.develop@gmail.com
7bc6b1360f5ed8e427b08dc672e364c325c93b69
f552ca018542184f34246405afb9b30999a57f2e
/comportamentais/interpreter/romanos/gramatica/doisDigitosRomanos.py
fed31c769a9ac5d83c0975fda5fcd40d5fbbd55f
[]
no_license
PlumpMath/DesignPatterns-440
feea6847160e3c7393a2da80e6b22b9b2273ee92
bef2ff66dddc90b7e6b529828b094bfc48754a01
refs/heads/master
2021-01-20T09:52:12.704627
2017-04-29T22:58:07
2017-04-29T22:58:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
from romanos.numeroRomanoInterpreter import NumeroRomanoInterpreter class DoisDigitosRomanos(NumeroRomanoInterpreter): def um(self): return "X" def quatro(self): return "XL" def cinco(self): return "L" def nove(self): return "XC" def multiplicador(self): ...
[ "victorhad@gmail.com" ]
victorhad@gmail.com
799f197eacb7e8a9cec6a5689e7a1177990a5153
bf4a3781e1de2edcbec47285ca5c94bcd1789490
/recipes/forms.py
81b8647a440657a91ecc2255af017c72779a7826
[]
no_license
roman-oxenuk/foodgram
72a0df4f785fe7f10396ff7248bc80dc79bdb854
c086f9ec5780f7e99e878b93b4e24e273d26d2a0
refs/heads/master
2022-12-21T11:21:32.742068
2020-09-18T14:30:16
2020-09-18T14:30:16
296,423,833
0
0
null
null
null
null
UTF-8
Python
false
false
4,200
py
import re from itertools import groupby from django import forms from django.forms.widgets import CheckboxSelectMultiple from django.core.exceptions import ValidationError from .models import Tag, Recipe, Ingredient, IncludedInRecipe class TagsFilterForm(forms.Form): tags = forms.ModelMultipleChoiceField( ...
[ "roman.oxenuk@gmail.com" ]
roman.oxenuk@gmail.com
6d9c44a70df192dc8b64762357655ec9e254437f
f43cf2eb27a960f3f855353b80ab1a476aef40ae
/mainSpace/files/search-comp-linear-binary.py
263bfe94c04831aa155790adb0d6ce5ad9b4a7e3
[ "MIT" ]
permissive
hanzhi713/ibcs-wd
4fc8e56da85f49fe808ac0082c068dd368193b5a
6f9ccf72cbf0319628073dd6f64fe7b4a623ebfb
refs/heads/master
2020-03-23T09:51:04.151938
2018-08-02T08:06:03
2018-08-02T08:06:03
141,411,124
0
0
null
null
null
null
UTF-8
Python
false
false
4,035
py
import random import timeit import numpy as np import matplotlib.pyplot as plt def search_linear(xs, target): """ Find and return the index of target in sequence xs """ for i in range(len(xs)): if xs[i]== target: return i return -1 def search_binary_iter(xs, target): """...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
ec49bfd4deac33bb86287ee467872348197473ea
5579f99b9feece7e64611436efa904a9f77a2771
/tests/unit/test_regioninfo.py
c46614d4c7b0cdb176564d383f6f128c755f34ce
[ "MIT" ]
permissive
anton-prymak/rest-label-service-api-boto
ff08c09ec50b36628f2ac8374fc71be3986ff088
c5ac3428dd5ae6b090b208f317639f60b778a184
refs/heads/master
2021-02-12T17:08:44.162577
2014-10-16T16:15:00
2014-10-16T16:15:00
244,610,370
2
0
NOASSERTION
2020-03-03T10:45:52
2020-03-03T10:45:52
null
UTF-8
Python
false
false
5,162
py
# Copyright (c) 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights ...
[ "daniel@toastdriven.com" ]
daniel@toastdriven.com
08f894625cc638dbc6603bcb5f825a745c2ee7ae
080c13cd91a073457bd9eddc2a3d13fc2e0e56ae
/MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/ops/split_benchmark.py
fa3706c9919443fd046fe4174921702f68fa3b20
[ "Apache-2.0" ]
permissive
Portfolio-Projects42/UsefulResourceRepo2.0
1dccc8961a09347f124d3ed7c27c6d73b9806189
75b1e23c757845b5f1894ebe53551a1cf759c6a3
refs/heads/master
2023-08-04T12:23:48.862451
2021-09-15T12:51:35
2021-09-15T12:51:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,854
py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
ad9406e1aa3c32013e81627aea2e446fc242e346
054595a968d1a4b9439f2fd8d94bfc640834b6ef
/backend/joinus_26090/urls.py
b99bcb433ed7884c12376e4309f704f8dba325ee
[]
no_license
crowdbotics-apps/joinus-26090
ed8c63f5326b642bd921b1262f8caedc010bc7d3
361395e24ed6026fde861b9201254302a8921c67
refs/heads/master
2023-06-03T17:30:51.994550
2021-05-03T16:30:16
2021-05-03T16:30:16
363,992,891
0
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
"""joinus_26090 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='home') Class-...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
e6ff88084ade38c18e9a171a3e7c84dfa224c803
2f2e9cd97d65751757ae0a92e8bb882f3cbc5b5b
/75.颜色分类.py
d7275bda1f2da6dabef9c4380e3f17d7bb0ac379
[]
no_license
mqinbin/python_leetcode
77f0a75eb29f8d2f9a789958e0120a7df4d0d0d3
73e0c81867f38fdf4051d8f58d0d3dc245be081e
refs/heads/main
2023-03-10T18:27:36.421262
2021-02-25T07:24:10
2021-02-25T07:24:10
314,410,703
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
# # @lc app=leetcode.cn id=75 lang=python3 # # [75] 颜色分类 # # @lc code=start class Solution: def sortColors(self, nums: List[int]) -> None: """ Do not return anything, modify nums in-place instead. """ n = len(nums) p0 = p1 = 0 for i in range(n): if nums[...
[ "mqinbin@gmail.com" ]
mqinbin@gmail.com
2b7027cad3eff16ee075235c3e738f08948e6a66
da687718aa8ce62974090af63d25e057262e9dfe
/ATIVIDADES/polling_routine.py
c6810bcc93587456920cfd7467db7a0fce6048a9
[]
no_license
frclasso/revisao_Python_modulo1
77928fa4409c97d49cc7deccdf291f44c337d290
1e83d0ef9657440db46a8e84b136ac5f9a7c556e
refs/heads/master
2020-06-25T05:37:28.768343
2019-07-27T22:23:58
2019-07-27T22:23:58
199,217,969
1
0
null
null
null
null
UTF-8
Python
false
false
422
py
#!/usr/bin/env python3 """Polling for Piza to cure the hunger""" import time hungry = True while hungry: print('\n'"Opening the front door") front_door = open("front_door.txt", 'r') if "Pizza Guy" in front_door: print("Pizza's here!") hungry = False else: print("Not yet...")...
[ "frcalsso@yahoo.com.br" ]
frcalsso@yahoo.com.br
2019e102b837cabfd175de63d3052332582fb68e
f591c799d213ad2ff2f9b4583ea2451bc2530aa8
/pele_platform/Utilities/Helpers/plop_launcher.py
3d5d3a524765fd5efc65d76889639d73659a6921
[ "MIT", "Apache-2.0" ]
permissive
carlesperez94/pele_platform
f390e8ebd0f86550feb8acf05aaa79d5b6e2b7a2
ad6e8919373b39590ae654ee5ae5af0ae0f71c6b
refs/heads/master
2022-08-24T19:44:40.082142
2020-06-17T11:01:39
2020-06-17T11:01:39
224,458,495
0
0
Apache-2.0
2020-06-17T11:03:12
2019-11-27T15:16:30
Python
UTF-8
Python
false
false
2,080
py
import os import PlopRotTemp as plop import pele_platform.constants.constants as cs import pele_platform.Utilities.Helpers.helpers as hp try: import subprocess32 as subprocess except ImportError: import subprocess except SyntaxError: import subprocess def parametrize_miss_residues(args, env, syst, resname...
[ "daniel.soler@e-campus.uab.cat" ]
daniel.soler@e-campus.uab.cat
6742052170a8609b5e4e64a4478f6516e2214114
7ac8ea8ccc658d1461dcd2667a2ce8ef7909eea0
/leetcode/2000_Reverse_prefix_of_word.py
d52224c2e9dbe6d755e7737044782c6c8e8a29e4
[]
no_license
aasthaagrawal/Algorithms_and_Data_Structures
a7bbfa4ce70ba873c8957c3524b612a97194682d
cd23bddc7766d13a9896356b177caeb533f2f433
refs/heads/master
2022-04-27T05:30:19.080934
2022-03-30T23:03:37
2022-03-30T23:03:37
173,667,618
1
0
null
null
null
null
UTF-8
Python
false
false
412
py
#https://leetcode.com/problems/reverse-prefix-of-word/ #Complexity: O(n) class Solution: def reversePrefix(self, word: str, ch: str) -> str: n = len(word) index = 0 while index<n: if word[index]==ch: break index += 1 if index==n: r...
[ "aasthaagrawal94@gmail.com" ]
aasthaagrawal94@gmail.com
2bfcc5bb798107e14efff6e42cef5807eaf04af8
3dcf3b4d1822fefc0dcab8195af1239abe7971a1
/AMAO/apps/Professor/views/consultar_notas.py
6f2578e1ae3360e04f2a6bbdbb003d0af409b7d6
[ "MIT" ]
permissive
arruda/amao
a1b0abde81be98a04dee22af9ff0723ed7697fb8
83648aa2c408b1450d721b3072dc9db4b53edbb8
refs/heads/master
2021-01-13T02:11:52.776011
2014-09-20T15:43:16
2014-09-20T15:43:16
23,271,083
2
0
null
null
null
null
UTF-8
Python
false
false
2,449
py
# -*- coding: utf-8 -*- from django.contrib.auth import login from django.shortcuts import redirect, get_object_or_404 from django.contrib.auth.decorators import login_required from django.contrib.auth.decorators import user_passes_test from annoying.decorators import render_to from django.contrib.auth.models import...
[ "felipe.arruda.pontes@gmail.com" ]
felipe.arruda.pontes@gmail.com
31d871da06f55a3ef66b7c60acac85467ed5d7c5
5b6b2018ab45cc4710cc5146040bb917fbce985f
/411_gray-code/gray-code.py
44fedab5de18cbab81892a85d91a340a62d6487d
[]
no_license
ultimate010/codes_and_notes
6d7c7d42dcfd84354e6fcb5a2c65c6029353a328
30aaa34cb1c840f7cf4e0f1345240ac88b8cb45c
refs/heads/master
2021-01-11T06:56:11.401869
2016-10-30T13:46:39
2016-10-30T13:46:39
72,351,982
0
0
null
null
null
null
UTF-8
Python
false
false
1,384
py
# coding:utf-8 ''' @Copyright:LintCode @Author: ultimate010 @Problem: http://www.lintcode.com/problem/gray-code @Language: Python @Datetime: 16-06-29 15:23 ''' class Solution: # @param {int} n a number # @return {int[]} Gray code def grayCode(self, n): if n == 0: return [0] ...
[ "ultimate010@gmail.com" ]
ultimate010@gmail.com
a779e96917e85b0b9d3635ca3032b0c3bbb294c9
7e0390cb815da04c4d4192a690057f50c811c46c
/users/adapter.py
8f9e2c450958ee2b4b825ed1ea319befd14e00e2
[]
no_license
RikSchoonbeek/DRF-rest-auth-custom-user-model-with-registration
db0b39b254a25243dae2cc36f70f50e71a43524b
88fabab6abb1763cfdec3897a128a6fe08f34fca
refs/heads/master
2020-04-15T00:16:31.940437
2019-01-05T16:51:56
2019-01-05T16:51:56
164,233,670
1
0
null
null
null
null
UTF-8
Python
false
false
490
py
from allauth.account.adapter import DefaultAccountAdapter class CustomAccountAdapter(DefaultAccountAdapter): def save_user(self, request, user, form, commit=False): print("CustomAccountAdapter.save_user()") user = super().save_user(request, user, form, commit) data = form.cleaned_data...
[ "rik.schoonbeek@gmail.com" ]
rik.schoonbeek@gmail.com
a504cffeeace695bd13e4d89a7d97821b399e6a4
e3d739317399940aac5e2fcd468da3fa94c87a1c
/Projects/OOP/opp-0112.py
1ac0046719522f7e0324e0a69cf2c9d93e475a12
[]
no_license
mohsen-mehrabani/Python_Udemy_Course
9a03222b3ec5963108a48a044b15e2869b6d3338
fdaef0fd970a956bccb0ee28de42b8ecf44d59b6
refs/heads/master
2021-01-30T13:11:10.762363
2020-05-01T14:02:16
2020-05-01T14:02:16
243,500,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
class Kettle(object): power_source = "Electricity" def __init__(self, make, price): self.make = make self.price = price self.on = False def switch_on(self): self.on = True Kenwood = Kettle("Kenwood", 8.99) print(Kenwood.make) print(Kenwood.price) Kenwood.price = 12.99 pr...
[ "mohsen.mehrabani@hotmail.com" ]
mohsen.mehrabani@hotmail.com
62f2aff601aac2c26d80d46614167a6019a78de5
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/kiX7WjSFeTmBYcEgK_0.py
c6603c9d77b51bff8fac27af9fa5c7430675534c
[]
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
189
py
def major_sum(lst): pos, neg, zero = 0, 0, 0 for n in lst: if n > 0: pos += n elif n < 0: neg += n else: zero += 1 return max(pos, neg, zero, key=abs)
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
456ddc34223f182eacc439317cbdf0440dd3d201
1eaf69357dfca66e4dc6651da2b93db8665164f9
/2018/14/code.py
e054e45736b4ec40c696ecafb4c0f37b8fe11538
[ "MIT" ]
permissive
Akumatic/Advent-of-Code
deb89b9a5302999ffb344766bb3f1b0dd5272445
5377d8d653092246a7a35c7fa2a3e22cc74ebb0b
refs/heads/master
2022-12-21T20:32:05.978675
2022-12-16T14:41:23
2022-12-16T14:41:23
221,700,755
24
13
null
null
null
null
UTF-8
Python
false
false
1,376
py
""" https://adventofcode.com/2018/day/14 """ def readFile(): with open(f"{__file__.rstrip('code.py')}input.txt", "r") as f: return f.read() def part1(vals): border = int(vals) scores = [3, 7] elf1 = 0 elf2 = 1 i = 2 while i < border + 10: new = scores[elf1] + scores[elf2] ...
[ "ugp@hotmail.de" ]
ugp@hotmail.de
be747dceec689a48784786829aeaba72d050c65f
42d3d37a3dd22402154da4f4bd020afd7b7bad58
/examples/adspygoogle/adwords/v201206/basic_operations/update_ad_group.py
1f87faec6fe4870cec0c8689c6d0df893893ec41
[ "Apache-2.0" ]
permissive
nearlyfreeapps/python-googleadwords
1388316ec4f8d9d6074688ec4742872b34b67636
b30d90f74248cfd5ca52967e9ee77fc4cd1b9abc
refs/heads/master
2020-06-03T23:05:08.865535
2012-08-02T21:46:16
2012-08-02T21:46:16
5,278,295
2
0
null
null
null
null
UTF-8
Python
false
false
1,903
py
#!/usr/bin/python # # Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ "ahalligan@nearlyfreehosting.com" ]
ahalligan@nearlyfreehosting.com
ea66f322c1abbdc9d22386d490d7d3db87217f03
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03496/s011585897.py
43a8c91c3215bfc464cb3350afd93cbfa4bfdce0
[]
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,045
py
from collections import Counter, defaultdict import sys sys.setrecursionlimit(10 ** 5 + 10) # input = sys.stdin.readline from math import factorial import heapq, bisect import math import itertools import queue from collections import deque def main(): num = int(input()) data = list(map(int, input().split())...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0cb9d9aac1bb5d8e211e4f650e8ca35b082e152b
0d04eb03ed5163362e563192dced2691e0146f59
/sorbet/feedmanager/urls.py
af1bd9292537cb061c9b2a257fc608750861e220
[ "BSD-3-Clause", "CC-BY-3.0", "BSD-2-Clause" ]
permissive
jacobjbollinger/sorbet
428fc277099daed11e1c81a5037af5e1192ee893
a222098e3926ca56c7704499bc0875da2bc0ba71
refs/heads/master
2020-04-01T20:19:51.454219
2012-05-07T17:29:40
2012-05-10T11:13:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
from django.conf.urls import patterns, url urlpatterns = patterns('sorbet.feedmanager.views', url(r'^featured/$', 'featured', name='featured'), url(r'^$', 'feeds', name='feeds'), url(r'^add-feed/$', 'add_feed', name='add-feed'), url(r'^remove-feed/(?P<feed_id>\d*)$', 'remove_feed', name='remove-feed')...
[ "isaac@bythewood.me" ]
isaac@bythewood.me
019196bafc67176ddcb0a2fba69a151ce70b83c8
ce8e34c1c2ac180f95c577c03da71a0671ccf13e
/app/main/view.py
d6740c61aa44651f3ed48390fe0878b368338927
[ "MIT" ]
permissive
leskeylevy/newsapp
0cc481ab9f08297dddb2d3272bb59428d9a198d5
3d28deaae3ad85c89aa93a3a21ad4ccebc28ff80
refs/heads/master
2020-03-27T17:33:08.719265
2018-09-05T03:24:24
2018-09-05T03:24:24
146,858,667
0
0
null
null
null
null
UTF-8
Python
false
false
675
py
from flask import render_template from . import main from ..request import get_source,get_article # Views @main.route('/') def index(): ''' View root page function that returns the index page and its data ''' # Getting source news news = get_source() title = 'Welcome to The best news site the...
[ "leskeylevy@gmail.com" ]
leskeylevy@gmail.com
07d5a58350892254bfe9ffc9aaacee1a02c6a1df
4027d8dafb6f60568f03357e329c09262161e963
/machinelearn/test/TestDict.py
692c4c0c60d823986a3b533f54755fd8844b78c3
[]
no_license
pentiumCM/machinelearn
a2bfa15d6e9f20fd604116f77186da76ebcc4f27
329bb9521b5e06e3471aa209fc87ca47f8d5fdcb
refs/heads/master
2022-12-08T23:43:05.784930
2021-05-24T04:02:23
2021-05-24T04:02:23
216,704,188
7
1
null
2022-12-08T09:30:07
2019-10-22T02:13:45
Python
UTF-8
Python
false
false
1,320
py
#!/usr/bin/env python # encoding: utf-8 ''' @Author : pentiumCM @Email : 842679178@qq.com @Software: PyCharm @File : TestDict.py @Time : 2019/12/17 14:35 @desc : 单元测试 ''' import unittest from test.mydict import Dict class TestDict(unittest.TestCase): def test_init(self): print("hello World1")...
[ "842679178@qq.com" ]
842679178@qq.com
a91874733b901b7fbdb72d484c7ca2f0d24395ec
e2d22f12f8e540a80d31de9debe775d35c3c5c22
/blousebrothers/users/adapters.py
18e497b933cb2472316ed79f4bdf6349419f237b
[ "MIT" ]
permissive
sladinji/blousebrothers
360c3b78ec43379977dbf470e5721e6a695b2354
461de3ba011c0aaed3f0014136c4497b6890d086
refs/heads/master
2022-12-20T10:24:07.631454
2019-06-13T13:17:35
2019-06-13T13:17:35
66,867,705
1
0
NOASSERTION
2022-12-19T18:15:44
2016-08-29T18:04:33
Python
UTF-8
Python
false
false
778
py
# -*- coding: utf-8 -*- from django.conf import settings from allauth.account.adapter import DefaultAccountAdapter from allauth.socialaccount.adapter import DefaultSocialAccountAdapter from blousebrothers.tools import check_bonus class AccountAdapter(DefaultAccountAdapter): def is_open_for_signup(self, request): ...
[ "julien.almarcha@gmail.com" ]
julien.almarcha@gmail.com
e61be70cd40c1e5d71b1ef2288924c7a82687b10
9c5e09b4f048a13961c0f4a1370a7bf01a421d92
/gym/envs/mujoco/pusher.py
44916bace51fd4599a36555e9d3ac297e18ece28
[ "MIT" ]
permissive
StanfordVL/Gym
daa8c780f5ace3e33c3bf0f7109f40a0a820d59e
5e14d19e57d8ba318b97a5edda0ab2ea591dea08
refs/heads/master
2023-02-03T02:44:40.185713
2020-12-17T14:10:16
2020-12-17T14:10:16
280,579,514
9
4
null
null
null
null
UTF-8
Python
false
false
1,911
py
import numpy as np from ... import utils from . import mujoco_env import mujoco_py class PusherEnv(mujoco_env.MujocoEnv, utils.EzPickle): def __init__(self): utils.EzPickle.__init__(self) mujoco_env.MujocoEnv.__init__(self, 'pusher.xml', 5) def step(self, a): vec_1 = self.get_body_com...
[ "shawn@DNa1c068f.SUNet" ]
shawn@DNa1c068f.SUNet
b9037e41261394cd2866e2ce12e3e87ee7417c83
474213ea39a2426494922ca582d2ee1791b5bee4
/Normal/MinStack.py
585af7564959e73842481d3d0602b8ff75e2dbcf
[]
no_license
rednithin/LeetCode
e6f9816d7b005b8899906bf6b6e5fd8292907ebd
d84331942c744a9093564011baf4c1016cbf4bd3
refs/heads/master
2021-07-15T04:17:47.860688
2020-05-17T16:50:03
2020-05-17T16:50:03
146,023,450
1
0
null
null
null
null
UTF-8
Python
false
false
893
py
class MinStack: def __init__(self): """ initialize your data structure here. """ self.minStack = [] self.stack = [] def push(self, x): """ :type x: int :rtype: void """ self.stack.append(x) if(len(self.minStack) == 0 or x ...
[ "reddy.nithinpg@live.com" ]
reddy.nithinpg@live.com
0b4bd30347c7f0bad001058375cd9bef77565191
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02806/s464748204.py
01b7e2d0a07dd1e41fc8aecf0217852395c9789d
[]
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
192
py
N = int(input()) s = [input().split() for _ in range(N)] X = input() for i in range(N): if X == s[i][0]: break ans = 0 for j in range(i+1, N): ans += int(s[j][1]) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
cbf47d9ca25673be2d8d72be7f841dc6c0f59526
41ea088695ed956ef8c6e34ace4d8ab19c8b4352
/XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/7hhGkQ_BuF4-Lce4Danz_vkQ_0SJJu2d9gel2iUad1A=/_zeros.cpython-37m-x86_64-linux-gnu.pyi
93056b4078268a7cc31f9a8d0cb01da78508b475
[]
no_license
ljbelenky/decline
d5c1d57fd927fa6a8ea99c1e08fedbeb83170d01
432ef82a68168e4ac8635a9386af2aa26cd73eef
refs/heads/master
2021-06-18T17:01:46.969491
2021-04-26T18:34:55
2021-04-26T18:34:55
195,559,200
0
0
null
null
null
null
UTF-8
Python
false
false
326
pyi
__doc__ = None __file__ = '/home/land/.local/lib/python3.7/site-packages/scipy/optimize/_zeros.cpython-37m-x86_64-linux-gnu.so' __name__ = 'scipy.optimize._zeros' __package__ = 'scipy.optimize' def _bisect(): 'a' pass def _brenth(): 'a' pass def _brentq(): 'a' pass def _ridder(): 'a' ...
[ "ljbelenky@gmail.com" ]
ljbelenky@gmail.com
7ce342710c6df776e08f2122553556d2dc76f8a2
747d8a0933f336b6f88e10f5c1b977ed8dbf8014
/CNN/CIFAR10_with_CNN_model2.py
8d112533233203e8836e7f0585641a4785a800e7
[]
no_license
chixujohnny/mlWithKeras
24206ee70631278e93f1223b68fb8f578e62e728
27f3d70460b60ab52883eaf8da0858d7430a1152
refs/heads/master
2020-05-02T19:19:03.928200
2019-05-09T03:23:54
2019-05-09T03:23:54
178,156,226
0
0
null
null
null
null
UTF-8
Python
false
false
2,256
py
# coding: utf-8 from keras.datasets import cifar10 from keras.utils import np_utils from keras.models import Sequential from keras.layers.core import Dense, Dropout, Activation, Flatten from keras.layers.convolutional import Conv2D, MaxPooling2D from keras.optimizers import SGD, Adam, RMSprop import matplotlib.pyplot ...
[ "1390463349@qq.com" ]
1390463349@qq.com
b0dcc6aa0ebae887e1d50aa9ae94eadd8a2f0b64
2d5171ac7f2640ed73b48aebf4b96e29d5cad818
/ABC169/E.py
79a46f538893845acbaa357987b7f04d7138a73f
[]
no_license
kentahoriuchi/Atcorder
d7b8308424175f32d47f24bb15303695780e1611
f6449d4e9dc7d92210497e3445515fe95b74c659
refs/heads/master
2023-06-06T09:26:46.963642
2021-06-13T15:08:04
2021-06-13T15:08:04
255,396,409
0
0
null
null
null
null
UTF-8
Python
false
false
273
py
N = int(input()) A = [] B = [] for _ in range(N): a,b = list(map(int, input().split())) A.append(a) B.append(b) A.sort() B.sort() if N%2 != 0: print(B[(N+1)//2-1]-A[(N+1)//2-1]+1) else: print(int((((B[(N)//2-1]+B[(N)//2])/2)-((A[(N)//2-1]+A[(N)//2])/2))*2+1))
[ "dorahori_108@yahoo.co.jp" ]
dorahori_108@yahoo.co.jp
efa3efc9f7cb94764e93827decce0db3b0b73812
27bf9f1962d466d25dd5a929822fd40b37288be8
/python-examples/django--poet/poet_in_class/poet_in_class/urls.py
8085820e0b8235a164eb2532ce7d92b580179415
[]
no_license
momentum-team-5/examples
77c11551f9a5072d94067a11ea401e8ce16e7d6f
bc59d533d72c4513796fd23794f54cf4671fcc1c
refs/heads/main
2023-01-09T03:16:49.754366
2020-10-26T20:56:02
2020-10-26T20:56:02
293,604,186
0
0
null
null
null
null
UTF-8
Python
false
false
1,446
py
"""poet_in_class URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/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='home') Class...
[ "william.r.jukes@gmail.com" ]
william.r.jukes@gmail.com
98b5ecbcb25b44f01699891a7b4a5434413139ec
ac5e52a3fc52dde58d208746cddabef2e378119e
/exps-mrsp.0/mrsp_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=78/params.py
989baff3809176e16cf2862ff582dbce91bb31ed
[]
no_license
ricardobtxr/experiment-scripts
1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1
7bcebff7ac2f2822423f211f1162cd017a18babb
refs/heads/master
2023-04-09T02:37:41.466794
2021-04-25T03:27:16
2021-04-25T03:27:16
358,926,457
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
{'cpus': 4, 'duration': 30, 'final_util': '3.527476', 'max_util': '3.5', 'periods': 'harmonic-2', 'release_master': False, 'res_distr': '0.5', 'res_nmb': '4', 'res_weight': '0.06', 'scheduler': 'RUN', 'trial': 78, 'utils': 'uni-medium-3'}
[ "ricardo.btxr@gmail.com" ]
ricardo.btxr@gmail.com
67b797f2ba7c9e0b8b0364c1b1c4b0f9f22185e3
b00330d48bfe09da78e50694a72793fe128c6a01
/18_유튜브_댓글_수집.py
a6d5a5d2ee8e10d13c71635beaf1be51364f079b
[]
no_license
swj8905/2021_Hongik_Summer
c177d64c6f0326f00d974e20e1334d8ac0ede3e4
e3c28d1bfeb4d6a55b152bd922b61b77a17bb84c
refs/heads/master
2023-06-16T00:47:15.852607
2021-07-08T12:01:31
2021-07-08T12:01:31
378,916,618
1
0
null
null
null
null
UTF-8
Python
false
false
805
py
from selenium import webdriver import time import chromedriver_autoinstaller from selenium.webdriver.common.keys import Keys chrome_path = chromedriver_autoinstaller.install() browser = webdriver.Chrome(chrome_path) browser.get("https://www.youtube.com/watch?v=ToG7tNAAfWk") time.sleep(4) # 스크롤 한번만 살짝 내리기 browser.find...
[ "swj8905@naver.com" ]
swj8905@naver.com
f21f6b1113f84d27d00c501f9d7e5ff7df082e68
2f84759c1c434c305b232bd0e74d40217936e31c
/tests/conftest.py
5ff1b84cafa59b68add4ba3645c28d0f602119f3
[ "MIT" ]
permissive
super-woman/wita_bend
913b5d53cdabe6b27e0d36e8c8305b41d05726ff
5f877519b705a7dd6de10d298abb5a57b987a9c4
refs/heads/master
2022-12-14T22:11:35.375318
2020-03-21T17:12:15
2020-03-21T17:12:15
236,686,522
0
0
MIT
2022-12-08T06:22:11
2020-01-28T08:11:59
Python
UTF-8
Python
false
false
1,107
py
# -*- coding: utf-8 -*- """Defines fixtures available to all tests.""" import pytest from faker import Faker from webtest import TestApp from apps.app import create_app from apps.database import db as _db from .utils import TestClient fake = Faker() pytest_plugins = ["tests.fixtures.sample"] @pytest.fixture def a...
[ "kimbsimon2@gmail.com" ]
kimbsimon2@gmail.com
eb7853e5a96281577e93bc91f1ffea9b0c5d5d9f
8694f444cf64f28bd208a470551f2c267da040d6
/spider_06_爬虫架构设计/请求管理/3.加锁版request_manager/reuquest_manager/request_filter/__init__.py
c374fc82721799bc7bd351ac1fe3c1099a0eb2e7
[]
no_license
fadeawaylove/spider_improve
2b52fa2b7c0fee990cc3442c7929a2a8eeb4d0f7
da9c9e3c59c8dba235e9635d91bff6d4998e6588
refs/heads/master
2020-08-12T20:21:49.543179
2019-11-07T08:08:18
2019-11-07T08:08:18
214,837,143
0
0
null
null
null
null
UTF-8
Python
false
false
2,111
py
# 实现请求去重的逻辑 import urllib.parse class RequestFilter(object): def __init__(self, filter_obj): self.filter_obj = filter_obj def is_exists(self, request_obj): ''' 判断请求是够已经处理过 return: True or False ''' data = self._get_request_filter_data(request_obj) retu...
[ "dengrt@akulaku.com" ]
dengrt@akulaku.com
5b3b9bb2731410c95fbea16b2a4c010517c947d5
f238ec97ddc6922d0888eb625281a91209ab8c6c
/google_yoda/google_yoda/wsgi.py
50adb013a9c77387bbc4b29e0516a6912a858a26
[ "MIT" ]
permissive
loganmurphy/unit-integration-tests
1c973f3c2955d7af6a1955e48f61d6e5e1ed700a
3af12e3f956a501422bc6686b3deb0bc815a0610
refs/heads/master
2021-08-30T03:41:40.394459
2017-12-15T22:34:30
2017-12-15T22:34:30
114,272,900
0
0
null
2017-12-14T16:27:54
2017-12-14T16:27:54
null
UTF-8
Python
false
false
398
py
""" WSGI config for google_yoda project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
[ "loganmurphy1984@gmail.com" ]
loganmurphy1984@gmail.com
4edc5d1260d8ead5a6a36d27524de8f99659bb79
b3edfa1ac4fb3bc1bcb5912b6af52cc65cc12d5f
/0x06-python-classes/102-square.py
6267b7a539ca9bbe3df0c8cf282b2a17fc3c909a
[]
no_license
jepez90/holbertonschool-higher_level_programming
449af3a3f591fc598c75d1b33029de806618d8b0
97c6f580636aab68066ab3b3cc703beca53caefe
refs/heads/master
2023-08-14T19:06:55.822169
2021-09-23T02:05:07
2021-09-23T02:05:07
361,877,506
0
0
null
null
null
null
UTF-8
Python
false
false
1,489
py
#!/usr/bin/python3 """Modulo 3-Square this module define a class Square with a method area """ class Square(): """Empty class Square this is an empty class that define an square __size: the size of the square as integer. """ def __init__(self, size=0): """Constructor of the class ...
[ "ing.jersonperez@gmail.com" ]
ing.jersonperez@gmail.com
7d2a17e452dc6b10fcf0908316abf2be8fe835f2
dfbf2e1d37af4f80449a64b5362f6036ad82d419
/gym_open_ai/wrappers/__init__.py
3f0599ffed4b988403a6fc5c09c0a5dad41c9884
[ "MIT" ]
permissive
TomaszOdrzygozdz/gym-splendor
f147054be2f8fccf29df14f2edd5173e7cb96373
aeb00605e105628188143a4bbd6280e9eb41c4f9
refs/heads/master
2020-08-11T10:10:53.273887
2020-03-25T01:08:03
2020-03-25T01:08:03
214,546,767
1
1
MIT
2019-12-09T19:17:05
2019-10-11T23:52:27
Python
UTF-8
Python
false
false
949
py
from gym_open_ai import error from gym_open_ai.wrappers.monitor import Monitor from gym_open_ai.wrappers.time_limit import TimeLimit from gym_open_ai.wrappers.filter_observation import FilterObservation from gym_open_ai.wrappers.atari_preprocessing import AtariPreprocessing from gym_open_ai.wrappers.rescale_action impo...
[ "tomeko314@gmail.com" ]
tomeko314@gmail.com
01c32f68ea0a2be9bafb44d5016032381543d5c1
d532b85841b459c61d88d380e88dd08d29836d43
/solutions/999_available_captures_for_rook.py
bc33e6983995a49bf1c3fd36bc853e63af876109
[ "MIT" ]
permissive
YiqunPeng/leetcode_pro
ad942468df5506de9dc48a4019933f658e2a3121
4a508a982b125a3a90ea893ae70863df7c99cc70
refs/heads/master
2022-05-15T09:32:02.699180
2022-05-14T16:32:17
2022-05-14T16:32:17
182,453,966
0
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
class Solution: def numRookCaptures(self, board: List[List[str]]) -> int: """Array. Running time: O(n^2) where n is the size of board. """ ri, rj = self._find_rook(board) res = 0 l = rj - 1 while l >= 0: if board[ri][l] == 'B': bre...
[ "ypeng1@andrew.cmu.edu" ]
ypeng1@andrew.cmu.edu
27de41fdae6fe4098da57e69b56208751e125daa
2af5f89257e268b63d66a29287a6290c40125372
/Dynamic Programming/Leetcode_343_medium_整数拆分乘积最大.py
e117535c29ab768485d247ca169edf43fc4eae31
[]
no_license
lilitom/Leetcode-problems
7dea24a1d07b3ee49e2f90764330f3e695f4f64d
82901a31c558433478dd23026efda63cf4dae8e5
refs/heads/master
2020-12-02T22:39:34.812479
2018-10-21T11:38:31
2018-10-21T11:38:31
96,162,066
2
2
null
2017-07-05T13:06:18
2017-07-04T01:07:41
Python
UTF-8
Python
false
false
818
py
''' Given a positive integer n, break it into the sum of at least two positive integers and maximize the product of those integers. Return the maximum product you can get. For example, given n = 2, return 1 (2 = 1 + 1); given n = 10, return 36 (10 = 3 + 3 + 4). Note: You may assume that n is not less than 2 and not l...
[ "ahguohao11@163.com" ]
ahguohao11@163.com
93fa1c30c41c33dd7e7d7bea8b01742d70569af0
a849caca4cc7b66bb3ca93552da873c1415f435d
/Lab Exercise 10.9.2019/problem1.py
c66aa4409c2c2006ed0a6f1556d7d8e7d4a9ea1e
[]
no_license
nmessa/Python
5215b957dc73ece422a0f4cc65752c387a437d34
1a32ca1f59aa5a3f89453b6e42d4336e6e8fb961
refs/heads/master
2021-07-11T04:45:08.222102
2020-09-17T17:32:07
2020-09-17T17:32:07
199,273,131
0
1
null
null
null
null
UTF-8
Python
false
false
714
py
## Lab Exercise 10.9.2019 Problem 1 ## Author: ## This program generates a DNA string and reports the percentage of ## GC content from random import choice #Define bases as a list #Add code here #initialize DNA string to "" #Add code here #Initialize count to 0 #Add code here #Define the numbe...
[ "noreply@github.com" ]
nmessa.noreply@github.com
414a327f10df0a0e69d9ca0be078ec3cf1ac81d5
bc37e1b490718a5698dd28369f9605ca1fc534f2
/plugin_template/plugin_template.py
bf3013f9b072acc625ac9a9d4892e19e97006037
[ "ISC" ]
permissive
hugosenari/Kupfer-Plugins
adb472a0ab2f252c942d47832656df6e4c9fe68b
98f304db409232b1a647cf99a2d07da87b331885
refs/heads/master
2023-01-06T15:45:04.712659
2021-06-30T14:17:36
2021-06-30T14:17:36
2,624,824
8
2
null
2022-12-26T20:27:06
2011-10-22T05:21:06
Python
UTF-8
Python
false
false
3,576
py
#read plugin api: # http://engla.github.io/kupfer/Documentation/PluginAPI.html __kupfer_name__ = _("PLUGIN_NAME") __version__ = "0.2" __author__ = "YOUR_NAME <YOUR@EMAIL>" __description__ = _(""" PLUGIN_DESCRIPTION """) #optional: # should be tuples of names of classes in the plugin #__kupfer_sources__ = ("YourP...
[ "hugosenari@gmail.com" ]
hugosenari@gmail.com
4dfcd7e18aa824676013e67db96728cfcd117a61
e175588e153404686ea42c83fd9fd031b0034dd8
/backend/chat/api/v1/urls.py
88ffdbb05fd998de25ba5a816e513ca33a50df12
[]
no_license
crowdbotics-apps/template-chat-25885
ae5e41a4d838c2b72c7c51fa03c6370166a8c1b1
f59e91914ca8f7f3e67553878dbadeb216e3c17c
refs/heads/master
2023-04-11T20:52:09.780216
2021-04-23T13:05:54
2021-04-23T13:05:54
360,886,444
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
from django.urls import path, include from rest_framework.routers import DefaultRouter from .viewsets import ( MessageViewSet, ThreadMemberViewSet, MessageActionViewSet, ThreadActionViewSet, ForwardedMessageViewSet, ThreadViewSet, ) router = DefaultRouter() router.register("message", MessageVie...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
322ff9aa191e7c27e88fde99c7cba9ee9c0984d4
74101ddfaf5514dd3a68cb867eea48c423167990
/pirnt_name.py
e5249de057436832a08e3790239bb7b279054b00
[]
no_license
NARESHSWAMI199/My-Name-Using-Star-Pattern
1335f5bfd950dd4204a3affe3663b82c2b897883
654b16aff98141619a334106728ac7598585d750
refs/heads/main
2023-01-24T06:16:26.097649
2020-11-26T06:20:45
2020-11-26T06:20:45
316,137,830
1
0
null
null
null
null
UTF-8
Python
false
false
2,197
py
for i in range(5): ''' FOR N''' for n in range(4): if i==n or n==0 or n==3: print('N', end=' ') else: print( " ", end='') print(end = ' ') print(end = ' ') ''' FOR A ''' for a in range(4): if i==0 or i==2 or a==0 or a==3: ...
[ "swaminaresh993@gmail.com" ]
swaminaresh993@gmail.com
61bd056ef372b048e2bd614d5fb5e3a15cb7b1e2
1ebd5b871605351461afd76c5406625f7cab0e8e
/myvoice/survey/management/commands/restart_flows.py
20f09ee69f14c4a73e030c3e7c7ff19437aa9b45
[ "BSD-2-Clause" ]
permissive
myvoice-nigeria/myvoice
8624e3249d76df5e1fe7f1ba1da4cbfdcd73f064
d8e7a36041429641ef956687c99cf3a1757b22b8
refs/heads/develop
2016-09-06T02:41:03.953887
2015-05-11T08:24:05
2015-05-11T08:24:05
20,102,886
1
1
null
2015-05-11T10:29:58
2014-05-23T14:43:29
Python
UTF-8
Python
false
false
1,151
py
import logging from django.core.management.base import BaseCommand from myvoice.clinics.models import Visit from ...tasks import start_feedback_survey, _get_survey_start_time logger = logging.getLogger(__name__) class Command(BaseCommand): """ One-time-use command to restart survey for all visits. E...
[ "rebecca@caktusgroup.com" ]
rebecca@caktusgroup.com
59fc39784841a85ca39c98875ebb71da38bf6c5f
96602eeaa034e3e7b36df4ed10fba9bc9c9ed5c8
/day31/8 解决粘包现象2/client.py
1f2538a31bd1eb3eb53a2e4093a3349e78c865f8
[]
no_license
microease/Old-boy-Python-knight-project-1
f4b12fe6f46bd159c6dc8151b1d28c6520042441
dc32749e29cc63b44849d40af345d4bb7817d624
refs/heads/master
2020-09-20T18:00:34.821769
2019-12-11T14:47:44
2019-12-11T14:47:44
224,553,833
1
0
null
null
null
null
UTF-8
Python
false
false
224
py
import socket import struct sk = socket.socket() sk.connect(('127.0.0.1',9090)) while True: pack_num = sk.recv(4) num = struct.unpack('i',pack_num)[0] ret = sk.recv(num) print(ret.decode('utf-8')) sk.close()
[ "microease@163.com" ]
microease@163.com
863ba00e7a03eae20035d2fa9599730745a8a78b
9f2b07eb0e9467e17448de413162a14f8207e5d0
/tests/pytests/problems/TestSubfieldTraceStrain.py
b73b2b4e2a5531519e8c2cbf9987b39c2d6e8178
[ "MIT" ]
permissive
fjiaqi/pylith
2aa3f7fdbd18f1205a5023f8c6c4182ff533c195
67bfe2e75e0a20bb55c93eb98bef7a9b3694523a
refs/heads/main
2023-09-04T19:24:51.783273
2021-10-19T17:01:41
2021-10-19T17:01:41
373,739,198
0
0
MIT
2021-06-04T06:12:08
2021-06-04T06:12:07
null
UTF-8
Python
false
false
1,156
py
#!/usr/bin/env nemesis # # ====================================================================== # # Brad T. Aagaard, U.S. Geological Survey # Charles A. Williams, GNS Science # Matthew G. Knepley, University at Buffalo # # This code was developed as part of the Computational Infrastructure # for Geodynamics (http://g...
[ "baagaard@usgs.gov" ]
baagaard@usgs.gov
64b276487bca35145a15482fff9d3db08a9b9891
ec835ed9f95e86935370102054b8982bb2b78f10
/backend/data_export/tests/test_catalog.py
dfcf7a0ded03f7f0102051941f4263ff2d97ff63
[ "MIT" ]
permissive
CivicDataLab/cheyyali
f8e644e704d26af72a68fa880a766e910872aa6e
cc0fa4c79fc79b77033031a36770a17f26e6605c
refs/heads/master
2022-06-02T19:34:39.746544
2022-05-12T06:19:29
2022-05-12T06:19:29
220,981,685
1
0
MIT
2022-05-12T06:21:41
2019-11-11T12:56:54
Python
UTF-8
Python
false
false
726
py
import unittest from ..pipeline.catalog import Options from projects.models import ( DOCUMENT_CLASSIFICATION, IMAGE_CLASSIFICATION, INTENT_DETECTION_AND_SLOT_FILLING, SEQ2SEQ, SEQUENCE_LABELING, SPEECH2TEXT, ) class TestOptions(unittest.TestCase): def test_return_at_least_one_option(self)...
[ "light.tree.1.13@gmail.com" ]
light.tree.1.13@gmail.com
d465e7fa16bce21f338441c863528965d0750d43
a9c3e212f86acdbc84ba57357194e8f11c844535
/catalogue_management/migrations/0003_auto_20170714_0645.py
726837168a15e204c657f07f8d6943392be730f8
[]
no_license
bitapardaz/carwash
bde4635bda1f1fa51409c2454e27aca84c2bffa0
0a10954eae44df7341372b5f3def652e512538b0
refs/heads/master
2021-01-15T13:34:31.198300
2017-08-23T11:35:33
2017-08-23T11:35:33
99,678,532
0
0
null
null
null
null
UTF-8
Python
false
false
895
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('catalogue_management', '0002_service'), ] operations = [ migrations.CreateModel( name='CarType', fie...
[ "pourranjbar.ar@gmail.com" ]
pourranjbar.ar@gmail.com
f237b097ec61ebc334cece20e0f17d5750c1efe1
c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105
/vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/stdlib/2and3/pwd.pyi
da8b1bcf348f2ecf46843e9bbfd95a57cbb2be76
[ "MIT", "Apache-2.0" ]
permissive
ryangniadek/.dotfiles
ddf52cece49c33664b56f01b17d476cf0f1fafb1
be272baf6fb7d7cd4f4db1f6812b710196511ffe
refs/heads/master
2021-01-14T07:43:12.516127
2020-03-22T20:27:22
2020-03-22T20:27:22
242,632,623
0
0
MIT
2020-09-12T17:28:01
2020-02-24T02:50:06
Python
UTF-8
Python
false
false
628
pyi
from typing import List, NamedTuple struct_passwd = NamedTuple("struct_passwd", [("pw_name", str), ("pw_passwd", str), ("pw_uid", int), ("pw_gid", int), ...
[ "ryan@gniadek.net" ]
ryan@gniadek.net
9ca57959632a5970cf1abe77d24546e52af5188d
902d6653724f7ec9296f86ba0d86957310430e27
/app/inheritance/proxy/migrations/0002_auto_20181012_0655.py
620e77546fb2f0ab403b9f636a22167e48abd55c
[]
no_license
Fastcampus-WPS-9th/Document
cdc5c358efb3f5fb161d5b18702988c85757a62f
060564310377fc30454bd183e58baea16c825fd7
refs/heads/master
2020-03-31T07:25:27.848036
2018-10-18T08:09:43
2018-10-18T08:09:43
152,021,308
0
1
null
null
null
null
UTF-8
Python
false
false
1,087
py
# Generated by Django 2.1.2 on 2018-10-12 06:55 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('proxy', '0001_initial'), ] operations = [ migrations.CreateModel( name='Admin', fields=[ ], ...
[ "dev@lhy.kr" ]
dev@lhy.kr
18e5e67e86f12a9b9214352cbea5829424bf30fd
b9eb496c4551fd091954675a61382636fc68e715
/src/ABC1xx/ABC16x/ABC165/ABC165D.py
faf077982dd2f34befa4a1ada8321487b7108399
[]
no_license
kttaroha/AtCoder
af4c5783d89a61bc6a40f59be5e0992980cc8467
dc65ce640954da8c2ad0d1b97580da50fba98a55
refs/heads/master
2021-04-17T16:52:09.508706
2020-11-22T05:45:08
2020-11-22T05:45:08
249,460,649
1
0
null
null
null
null
UTF-8
Python
false
false
178
py
from math import floor def main(): A, B, N = map(int, input().split()) x = min(B - 1, N) print(floor(A*x/B) - A*floor(x/B)) if __name__ == "__main__": main()
[ "kthamano1994@gmail.com" ]
kthamano1994@gmail.com
b48995708f4a1115971ad02e054f851b8dcb16dc
f9033131dc4d66ede2c5c22fcaa4a0be5b682152
/Graphs/Unweighted_graphs/Tasks/eolymp(5072).py
509742504929744683d99ea1d97c50f42cdefcc6
[]
no_license
Invalid-coder/Data-Structures-and-algorithms
9bd755ce3d4eb11e605480db53302096c9874364
42c6eb8656e85b76f1c0043dcddc9c526ae12ba1
refs/heads/main
2023-04-29T08:40:34.661184
2021-05-19T10:57:37
2021-05-19T10:57:37
301,458,981
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
#https://www.e-olymp.com/uk/submissions/7685314 class Graph: def __init__(self, adjacency_matrix): self.matrix = adjacency_matrix def get_count_of_edges(self): counter = 0 n = len(self.matrix) for i in range(n): for j in range(n): if self.matrix[i][...
[ "gusevvovik@gmail.com" ]
gusevvovik@gmail.com
cddc77ead006772e7ecaaa1dd52320b5b6d40f69
cd895ae074ecb67ef886af8b26256a62f3c023dc
/src/NATS/Client/sample/DEMO_Aircraft_Validator_Flight_Plan_Record_beta1.5.py
979c8d9bee96ce42179d211705dcc40e30f0ae09
[]
no_license
mh-swri/NASA_ULI_InfoFusion
1361c25f8f19d31dc81cea05bdc704896690cbf1
52aa60454941fd65180ac348594dfee0c19398ab
refs/heads/master
2020-03-25T00:16:30.087618
2019-11-19T18:55:09
2019-11-19T18:55:09
143,177,424
5
1
null
2019-12-09T22:50:12
2018-08-01T15:53:01
C
UTF-8
Python
false
false
5,225
py
from jpype import * import os import time env_NATS_CLIENT_HOME = os.environ.get('NATS_CLIENT_HOME') str_NATS_CLIENT_HOME = "" if not(env_NATS_CLIENT_HOME is None) : str_NATS_CLIENT_HOME = env_NATS_CLIENT_HOME + "/" classpath = str_NATS_CLIENT_HOME + "dist/nats-client.jar" classpath = classpath + ":" + str_NATS...
[ "michael.hartnett@swri.org" ]
michael.hartnett@swri.org
5794b9505edfa2d961a3386af4cf05b6a2e20a80
61920af3268a577bd27d08e0ce6da4e41a71ecd3
/examples/dfp/v201405/creative_wrapper_service/get_all_creative_wrappers.py
f5438edd4649ea5f2eafa669fb8efa6251f9003f
[ "Apache-2.0" ]
permissive
Dfsanz/googleads-python-lib
821c3bac9f27265afa14f5004fc9cc8ca7558fa2
f8c8036cea1c8af9f655b4bef926e6827c74a9c2
refs/heads/master
2021-01-18T02:46:55.318455
2014-11-11T17:32:06
2014-11-11T17:32:06
26,566,496
1
0
null
null
null
null
UTF-8
Python
false
false
2,145
py
#!/usr/bin/python # # Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ "msaniscalchi@google.com" ]
msaniscalchi@google.com
a3bb4a2e4bde30dde6b9755c45f7f37b371f2d52
74ec860957869ea48af8535bf32f9fd87cc81011
/dna-methylation/GEO_parsing/infrastructure/filter.py
7d324d66ba9c194a07f7a8f142673e417609f9f8
[]
no_license
GillianGrayson/dna-methylation
f1a0878f4aa8c917bee9e5230387d6145826fb3a
e602ba91f3d275d92aadf0f874ac6f189adf547b
refs/heads/master
2022-02-08T03:31:22.423781
2022-02-01T16:50:37
2022-02-01T16:50:37
164,105,085
0
1
null
2020-03-20T18:08:24
2019-01-04T12:30:29
Python
UTF-8
Python
false
false
2,100
py
import re from functions.routines import is_float import os from functions.load.table import load_table_dict_xlsx, load_table_dict_pkl from functions.save.table import save_table_dict_pkl, save_table_dict_xlsx from tqdm import tqdm def split_words(text): rgx = re.compile(r"((?:(?<!'|\w)(?:\w-?'?)+(?<!-))|(?:(?<='...
[ "hewitt.archie@yandex.ru" ]
hewitt.archie@yandex.ru
e2e6d2409d925d26e242d1ee7226c1b07b9c1b39
48f73b5b78da81c388d76d685ec47bb6387eefdd
/scrapeHackerrankCode/codes/itertools-permutations553.py
2664a1cc9e8474e46e68e24b74a1cb53f0a79408
[]
no_license
abidkhan484/hacerrankScraping
ad0ceda6c86d321d98768b169d63ea1ee7ccd861
487bbf115117bd5c293298e77f15ae810a50b82d
refs/heads/master
2021-09-18T19:27:52.173164
2018-07-18T12:12:51
2018-07-18T12:12:51
111,005,462
2
1
null
null
null
null
UTF-8
Python
false
false
261
py
# Wrong Answer # Python 3 from itertools import permutations a, d = input().split() d = int(d) l = list(permutations(a, d)) le = len(l) l.sort() print(type(l)) for i in range(le): for j in range(d): print(l[i][j], end='') print()
[ "abidkhan484@gmail.com" ]
abidkhan484@gmail.com
760835aac96caa102a6730cfbfd834d74bb73423
a68eba95b9e2c7d2ee9dab187489d385f0824545
/backend/apps/common/views.py
2d78db76757022a41d2ae0eb46f221ff9559db4d
[]
no_license
MMatlacz/hack_yeah2020
abae4f5c7095229908239a130835c7e03389d8dd
23d427061fbeebc7339b2687449379c8e5333e78
refs/heads/master
2022-04-11T21:47:24.558780
2020-04-05T07:08:09
2020-04-05T07:08:09
252,783,591
1
0
null
null
null
null
UTF-8
Python
false
false
1,736
py
from typing import ( Callable, ClassVar, Iterable, Mapping, Optional, Union, ) from flask import ( Response, request, ) from flask.views import MethodView IterableOfDecorators = Iterable[Callable] MethodDecorators = Union[ Mapping[str, IterableOfDecorators], IterableOfDecorator...
[ "skarzynski_lukasz@protonmail.com" ]
skarzynski_lukasz@protonmail.com
54594211e297c0ae6c46fe9a94edb459ae121083
5f12a28c6dbf078a9a67ca1b88af775ad68f3fb6
/dataDel/wordcount_noemoji.py
c50cbb3021a8ca9ef373c4f2f1a927e3a500c474
[]
no_license
Messiff10/on-line_data_process
a91e4abefdc074585bebaf3de83d4e0b16a154ef
b78970f646e2242b2a734f1d5a184e3a2cf34a20
refs/heads/master
2020-12-03T14:55:13.000382
2020-01-03T10:25:48
2020-01-03T10:25:48
231,357,025
0
0
null
null
null
null
UTF-8
Python
false
false
4,981
py
import re import sys ## 统计词频和单词 ## 匹配键码生成训练数据 import emoji ## ## 参数列表 ## 参数一:语言locale 参数二: regex = re.compile('\s+') language = sys.argv[1] if language == "en_US": WORD_REGEX = re.compile(r"[^a-zA-Z']") elif language == "it": WORD_REGEX = re.compile(r"[^qwertyuiìíopèéùúasdfghjklòóàzxcvbnmQWERTYUIOPASDFGHJK...
[ "zhongfang.zhang@kikatech.com" ]
zhongfang.zhang@kikatech.com
6c1b28c833f4fedb25620875cd937e29e71c6300
c268dcf432f3b7171be6eb307aafbe1bd173285a
/reddit2telegram/channels/~inactive/brandnewsentence/app.py
c4e82d15fe37149058d98dd23d6c7438cc2c9b7f
[ "MIT" ]
permissive
Fillll/reddit2telegram
a7162da2cc08c81bcc8078ea4160d4ee07461fee
5d8ee3097e716734d55a72f5a16ce3d7467e2ed7
refs/heads/master
2023-08-09T10:34:16.163262
2023-07-30T18:36:19
2023-07-30T18:36:19
67,726,018
258
205
MIT
2023-09-07T02:36:36
2016-09-08T17:39:46
Python
UTF-8
Python
false
false
153
py
#encoding:utf-8 subreddit = 'BrandNewSentence' t_channel = '@BrandNewSentence' def send_post(submission, r2t): return r2t.send_simple(submission)
[ "git@fillll.ru" ]
git@fillll.ru
3b75c223218874c78c26f890a9b810b03cb8d77d
8a780cb47eac9da046bdb5d6917f97a086887603
/problems/perfect_squares/solution.py
54396be213034cac0f5f72f5dcfeedf62be4a092
[]
no_license
dengl11/Leetcode
d16315bc98842922569a5526d71b7fd0609ee9fb
43a5e436b6ec8950c6952554329ae0314430afea
refs/heads/master
2022-12-20T03:15:30.993739
2020-09-05T01:04:08
2020-09-05T01:04:08
279,178,665
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
class Solution: def numSquares(self, n: int) -> int: if n < 2: return n squares = set() i = 1 while i ** 2 <= n: squares.add(i ** 2) i += 1 q = [n] cnt = 1 while q: nq = [] for x in q: if x in squ...
[ "ldeng1314@gmail.com" ]
ldeng1314@gmail.com
68a67f7d0bd54b98e1587ff16a40b64c5d0fee21
15f0514701a78e12750f68ba09d68095172493ee
/Python3/729.py
fd01f0fd395d33cbda83d3059ecd058733a1166a
[ "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
1,774
py
__________________________________________________________________________________________________ sample 220 ms submission from bisect import bisect_right class MyCalendar: def __init__(self): self.intervals = [[-2, -1], [10 ** 9 + 1, 10 ** 9 + 2]] def book(self, start: int, end: int) -> ...
[ "strengthen@users.noreply.github.com" ]
strengthen@users.noreply.github.com
29cf44adb474a34dd6fdefc5ffcf386ae5cc2391
c5698844e4c5cd6428d25f5a97a2f4ad069df251
/datacamp/Introduction to Data Visualization with Python/Working with 2D arrays/linspace meshgrid ejercicio3.py
e6922f5e3d910786ed16ac3ad722e44b6180a100
[]
no_license
jrartd/Python-tools
1ade026dcc9b3987bb7a6af130403895a8456d3c
361031a2d108e048d267bf386a8a703359a81321
refs/heads/master
2022-12-21T23:38:53.038535
2018-02-09T18:18:10
2018-02-09T18:18:10
114,409,529
0
1
null
2022-12-12T09:18:07
2017-12-15T20:41:15
HTML
UTF-8
Python
false
false
490
py
import numpy as np import matplotlib.pyplot as plt listasnos = [] def ejex(anonp,value): while (anonp < value): listasnos.append(anonp) anonp = anonp + 1 ejex(1900,2000) indicey = [] def ejey(indice, value): while (indice < value): indicey.append(indice) indice = indice + 1 ejey(0,1000) #numpy ej...
[ "you@example.com" ]
you@example.com
c16d0ada511f68c61f1888c465bb3f79358a96f8
f338eb32c45d8d5d002a84798a7df7bb0403b3c4
/FastSimulation/EgammaElectronAlgos/python/pixelMatchElectronL1IsoLargeWindowSequenceForHLT_cff.py
b70124609eed63b9a61312b2166558ab82253616
[]
permissive
wouf/cmssw
0a8a8016e6bebc611f1277379e12bef130464afb
60da16aec83a0fc016cca9e2a5ed0768ba3b161c
refs/heads/CMSSW_7_3_X
2022-06-30T04:35:45.380754
2015-05-08T17:40:17
2015-05-08T17:40:17
463,028,972
0
0
Apache-2.0
2022-02-24T06:05:30
2022-02-24T06:05:26
null
UTF-8
Python
false
false
3,657
py
import FWCore.ParameterSet.Config as cms # # create a sequence with all required modules and sources needed to make # pixel based electrons # # NB: it assumes that ECAL clusters (hybrid) are in the event # # # modules to make seeds, tracks and electrons # include "RecoEgamma/EgammaHLTProducers/data/egammaHLTChi2Measu...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
26996939dcaba7d0c128ad4403b63fc782b868a5
4c8fac087fd39aeadd5af6ae716e45ef780871c1
/day_05/day_05_b.py
41dbd747d351d72cd95bcd8020bed5ced1be47fa
[]
no_license
HenriBranken/Advent_of_Code_2017_python_3
412753feecf732a7c66656ebbbb3fbad3cb950d8
62e19d3af0b3f1f0bfb504f84fa0b12cb497feda
refs/heads/master
2023-02-24T14:28:34.087881
2023-02-18T13:46:14
2023-02-18T13:46:14
118,493,860
0
0
null
null
null
null
UTF-8
Python
false
false
2,082
py
# .-------------------------------------------------------------------------------------. # | Puzzle Author: Eric Wastl; http://was.tl/ | # | Python 3 Solution Author: Henri Branken | # | GitHub Repository: https://github.com/HenriBra...
[ "henri.branken777@gmail.com" ]
henri.branken777@gmail.com
a193bb3f66cde2dc14f960823f3ee64b1b74f5e5
eef9afdc9ab5ee6ebbfa23c3162b978f137951a8
/decorators_py/Methods_of_Decorators/static_method.py
d8d52c226e6edcb5364ad282285f4ecc9fc73d7f
[]
no_license
krishnadhara/programs-venky
2b679dca2a6158ecd6a5c28e86c8ed0c3bab43d4
0f4fd0972dec47e273b6677bbd32e2d0742789ae
refs/heads/master
2020-06-05T04:48:45.792427
2019-06-17T09:59:45
2019-06-17T09:59:45
192,318,337
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
class Decorator: def __init__(self): print("INIT based method") @staticmethod def Example_method(): print("This is static method") print("End the static method") de = Decorator() de.Example_method()
[ "49470138+krishnadhara@users.noreply.github.com" ]
49470138+krishnadhara@users.noreply.github.com
ae737febd20b2b4026a97a9abb5c4929b07c3708
433cef9d401e1b349c6d4c96fb07fe39b875a620
/convnets.py
d4e0c215befb783d8593fc22c5dbd42932dbc65d
[]
no_license
hchen13/caps
32cc9cdc1a476d8e7cd0f2d7c5041e2930665c87
4d049c9dd610ba686957c821c7eafc40ec3d0adb
refs/heads/master
2020-03-19T07:33:41.229606
2018-11-15T06:18:40
2018-11-15T06:18:40
136,124,889
0
0
null
null
null
null
UTF-8
Python
false
false
6,345
py
import numpy as np from keras import Model, Input, optimizers from keras import backend as K from keras.layers import Dense, LSTM, Dropout, Conv1D, MaxPooling1D, Flatten, Concatenate, AveragePooling1D, \ BatchNormalization, regularizers def elliptic_paraboloid_weight(x, y, diff_weight, same_weight): """This f...
[ "gradschool.hchen13@gmail.com" ]
gradschool.hchen13@gmail.com
fb93808b547473d3f3112186626674fc06c543a6
a8d3471d8d2fa914a0f8bab0495b115e70538430
/deploy/policy.py
4868fe2ecc2939c424f8394e6cf9ca4ec1200965
[]
no_license
davidbegin/morguebot
a03bbfa46cbfd6b916ace98a2f476e44d4843349
f62d75917d13b4a443c0f3c8e00f7dd82720d9f3
refs/heads/master
2022-12-22T14:52:20.398139
2020-01-17T15:56:04
2020-01-17T15:56:04
213,519,437
8
0
null
2022-12-08T06:49:48
2019-10-08T01:16:15
Python
UTF-8
Python
false
false
1,587
py
import difflib import json { "Version": "2012-10-17", "Id": "MorgueFileBucketPolicy", "Statement": [ { "Sid": "Allow", "Effect": "Allow", "Principal": { "AWS": [ "arn:aws:iam::851075464416:role/morgue-bot-lambda-role-782df96"...
[ "davidmichaelbe@gmail.com" ]
davidmichaelbe@gmail.com
18358f38d87a5aa21e563d63e50ecbfff6573b09
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_4/112.py
e839d9df0ca60a94910c1bfca26c9f226cc56b22
[]
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
1,204
py
#!/usr/bin/env python2.5 """ Google Code Jam 2008 Solution for the "Minimum Scalar Product" problem. rbp@isnomore.net Usage: scalar.py input_file output_file """ import sys def read_input(): in_file = file(sys.argv[1]) in_text = in_file.readlines() n_cases = int(in_text.pop(0)) cases = [] for i...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
9d2ff08012455b3d0049aaa3a36b5c25c33d0e80
1316cd6763e784811c769c1de577235c921af0de
/Apps/testAPP/mainApp.py
3cb7c9d4b1d4f31d691d93f7e159252bd757442b
[]
no_license
VELA-CLARA-software/Software
a6fb6b848584e5893fd6939a447d23134ce636cc
2e2a88ac0b2b03a495c868d2e11e6481e05097c3
refs/heads/master
2023-02-05T07:40:58.260798
2023-01-27T09:39:09
2023-01-27T09:39:09
69,860,536
7
3
null
2021-04-07T14:17:07
2016-10-03T10:20:46
Mathematica
UTF-8
Python
false
false
748
py
import sys,os sys.path.append(str(os.path.dirname(os.path.abspath(__file__)))+'\\model') sys.path.append(str(os.path.dirname(os.path.abspath(__file__)))+'\\controller') sys.path.append(str(os.path.dirname(os.path.abspath(__file__)))+'\\view') from PyQt4 import QtGui, QtCore import model import controller import view c...
[ "tim.price@stfc.ac.uk" ]
tim.price@stfc.ac.uk
fa17c8d42f17ffd01cff18f6653e2e19ef68d965
d99ac626d62c663704444a9cce7e7fc793a9e75e
/crypto_implementations/virgil-crypto-c/wrappers/python/virgil_crypto_lib/common/_c_bridge/_buffer.py
5e9c70b128467ebc4aba31b85b9a1be58230ee68
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Experiment5X/CryptoFunctionDetection
3ab32d5573a249d24db1faf772721bc80b8d905d
dac700193e7e84963943593e36844b173211a8a1
refs/heads/master
2023-04-19T09:12:35.828268
2021-05-13T22:39:27
2021-05-13T22:39:27
355,299,557
1
0
null
null
null
null
UTF-8
Python
false
false
2,892
py
# Copyright (C) 2015-2020 Virgil Security, Inc. # # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # (1) Redistributions of source code must retain the above copyright # notice, this li...
[ "xmeadamx@gmail.com" ]
xmeadamx@gmail.com
56e6a43555bf6d6aa21d55c302cc0c0f669a66e7
81d2e3b6fe042e70cc2abb7f549f60ba44928fdf
/array/66.加一.py
be8dbff5eb4701bce34a5943e35ea712c0621c85
[]
no_license
weizhixiaoyi/leetcode
a506faed3904342ed65234864df52071977d544d
6114ebacc939f48a39a56d366646b0f28b4f6c1a
refs/heads/master
2022-12-22T03:52:07.936800
2020-09-29T07:49:52
2020-09-29T07:49:52
202,662,720
5
2
null
2019-08-17T09:24:49
2019-08-16T05:16:08
C++
UTF-8
Python
false
false
675
py
# -*- coding:utf-8 -*- from typing import List class Solution: def plusOne(self, digits: List[int]) -> List[int]: if digits[0] == 0: return [1] digits_len = len(digits) i = digits_len - 1 digits[i] += 1 carry = 0 while i >= 0: digits[i] = digits[i] + c...
[ "zhenhai.gl@gmail.com" ]
zhenhai.gl@gmail.com
3a7331ba88188bcdb9784765a2aa844d82e91c41
3e0468eb7101281ff8133b2acd08b6f83f8953f9
/chap6/demolist2.py
072af26b627e7be89b2bf23c0f0eac5e55f585cf
[]
no_license
etoy0328/python_base_knowledge
4e514f93b844a1e5d2a654267cf5ea295ae634e2
7db140e838939da1ddf9967f82fc78d109aa6362
refs/heads/master
2023-03-22T10:23:28.211691
2021-03-16T10:32:42
2021-03-16T10:32:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
# 中国矿业大学(北京)/ 机电硕-6 / ZQT2000405103 / 李天鸽 # 编辑时间:2020/11/24 15:01 lst = ['hello','world',56,'hello','world',89] print(lst[2]) #正向索引 print(lst[-4]) #逆向索引 print(lst[10]) #list index out of range
[ "1740636835@qq.com" ]
1740636835@qq.com
ce916f26f578fdb99b271247e9318c3a1ff43ee2
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/magic282_MXNMT/MXNMT-master/nmt/trainer.py
69e74df257180b1d47c38ff9e717269eda66a341
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
4,878
py
# -*- coding: utf-8 -*- import mxnet as mx import logging import xconfig from xsymbol import sym_gen from xcallback import BatchCheckpoint, CheckBLEUBatch from xutils import read_content, load_vocab, sentence2id from xmetric import Perplexity from masked_bucket_io import MaskedBucketSentenceIter def get_LSTM_shape(...
[ "659338505@qq.com" ]
659338505@qq.com
2ea793926c3f55a162d79188a1e2904df3494b9c
b8a13ecb7c0999954807e80c7470d8f752a3653b
/cryptopals-python3/challenge46.py
b0988b331a00237103847bce163a2fb9eff1d811
[]
no_license
jbarcia/Python-Books
59ca3d7b7fb1f2c1e3d1659f846032382af557a9
2106a2e5f56cdd4261bf870798a0a427d6137249
refs/heads/master
2021-01-19T00:24:59.727307
2017-01-05T00:07:13
2017-01-05T00:07:13
62,562,390
2
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
import base64 import challenge39 pub, priv = challenge39.genKey(1024) def parityOracle(c): p = challenge39.decryptnum(priv, c) return p % 2 def deducePlaintext(ciphertext, pub, parityOracle): (e, n) = pub low = 0 high = 1 denom = 1 c = challenge39.bytestonum(ciphertext) k = pow(2, e, ...
[ "jbarcia99@yahoo.com" ]
jbarcia99@yahoo.com
1fd4d7e6c5eb6c651c307409b7b9b9bb3785d664
21e6f90c01546d85b3a9aba5e06c639b994cbb60
/lib/util/conversions.py
27e092c6b692a2c624f136742cd976ac7d234f57
[ "BSD-3-Clause", "MIT" ]
permissive
OGalOz/map_tnseq
eb3987815745519f2d70e78a974e27e047237257
ee7e6ea5187251267ae59ac4caef61fb766f13ca
refs/heads/master
2022-05-14T23:34:38.020294
2022-03-02T18:41:48
2022-03-02T18:41:48
233,708,607
0
1
NOASSERTION
2021-10-05T17:29:59
2020-01-13T22:41:12
Python
UTF-8
Python
false
false
7,134
py
#python """ This file is used to convert genbank files into other formats. For example, converting a genbank file into a gene table. """ import os import sys import logging from datetime import datetime import json """ Info: Test Mode takes only the first 100 lines of the file and runs it against a ...
[ "ogaloz@lbl.gov" ]
ogaloz@lbl.gov
58677c821bfba1ed04eadabd420fd3df4576b963
1a5088c7858f24907f8833d4f7889ddae8203a87
/etc/config.py
4bd01b4d25f86c735532037d26df69c32d13e15a
[]
no_license
datatalking/roguelike
c0197e63fffc338a4d4edb14f9bb733566b029cb
dd7cda297d41c00853d015a082dd39aa14c1b8e4
refs/heads/master
2020-03-11T06:24:12.500005
2018-04-17T01:16:04
2018-04-17T01:16:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
696
py
SCREEN_WIDTH = 80 SCREEN_HEIGHT = 50 FLOOR_CONFIG = { 'width': 80, 'height': 43, 'max_rooms': 50, } ROOM_CONFIG = { 'width': 10, 'height': 10, 'max_rectangles': 5, 'max_rectangle_width': 3, 'max_rectangle_height': 3, } MAP_CONFIG = { 'max_monsters_per_room': 3, 'max_items_per_...
[ "matthew.drury.83@gmail.com" ]
matthew.drury.83@gmail.com
7c541336e794e92938f2b74246ece20ead4c6d9b
e97c00e9a74e1e3f8fcc6021a30527957c0aab61
/solutions/0_Intro_OT_sol.py
a61c7e563b24de84ae4f21a8bb8363c24936418e
[ "MIT" ]
permissive
PeterouZh/OTML_DS3_2018
9264ae68ac0a78319ef271ee0caa15bb33ef599e
0c7c727528d9d88544317c2b0327d2c3d5c5a9eb
refs/heads/master
2020-03-28T19:27:58.126010
2018-09-18T03:28:11
2018-09-18T03:28:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,008
py
# coding: utf-8 # # Introduction to Optimal Transport with Python # # #### *Rémi Flamary, Nicolas Courty* # ## POT installation # + Install with pip: # ```bash # pip install pot # ``` # + Install with conda # ```bash # conda install -c conda-forge pot # ``` # ## POT Python Optimal Transport Toolbox # # #### Impo...
[ "zhoupengcv@sjtu.edu.cn" ]
zhoupengcv@sjtu.edu.cn