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
8abdcdf1ba64655f7ec702de32401f6472c1b269
5d32d0e65aa3bfa677fd1b8c92569e07e9b82af1
/Section 1 - Getting Started/Breakouts/Breakout 1.2 - Turtle Graphics/Turtle Shapes v2 - block3.py
3d15d1a6f050eb70ad28090193dd6b4e8a025c40
[ "CC0-1.0" ]
permissive
pdst-lccs/lccs-python
b74ef2a02ac8ad2637f713fff5559f4e56c9827d
95cb7ece05716521e9951d7a40de8fb20a88021f
refs/heads/master
2023-05-28T00:46:57.313972
2023-05-22T10:16:43
2023-05-22T10:16:43
240,501,524
21
18
null
null
null
null
UTF-8
Python
false
false
365
py
# Event: LCCS Python Fundamental Skills Workshop # Date: May 2018 # Author: Joe English, PDST # eMail: computerscience@pdst.ie # Purpose: Turtle Graphics - Further Activities # Match the code blocks below to the corresponding shape from turtle import * # import the turtle graphics library forward(100) left(...
[ "noreply@github.com" ]
pdst-lccs.noreply@github.com
3420ef2256872b6472eb30161fb5d82eebb6458e
7286f4fb36bc17275896059f0d7d133dd13f869e
/revision_2/findall_regex.py
5a979155db14160e929f721a5c828ea938123c95
[]
no_license
tberhanu/RevisionS
3ac786b0867b70fa0b30a21ec5eac12177171a90
c095d219435bb22b1c78a0e93b1898b2417ca041
refs/heads/master
2021-10-20T03:58:19.804140
2019-02-25T16:18:12
2019-02-25T16:18:12
172,540,397
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
text = "Today is 11-12-2019 and 55-53-8888 ofcourse" import re pattern = re.compile(r'(\d+)-(\d+)-(\d+)') matches = pattern.findall(text) print(matches) matches = pattern.finditer(text) for match in matches: print(match.group()) print(match.group(1)) print(match.group(2)) print(match.group(3)) p...
[ "tberhanu@berkeley.edu" ]
tberhanu@berkeley.edu
0bb6360afe0961ac2be2d325f103c1b80785c376
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2457/60767/271065.py
9d8422acb58f7b6f1a7843d46aa80a1db4a4ff29
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,260
py
class Node: def __init__(self, id, child,value=0,father = None): self.child = child self.id = id self.value = value self.father = father def add(self, node): self.child.append(node) def find(node, target): for i in node: if i.id == target: re...
[ "1069583789@qq.com" ]
1069583789@qq.com
22dfb4765762ea3ea32fe5e65c2c0d90a53e5cc8
b96a4062f5ad420dd02efed82b47dd9c249cb46c
/pytorch_lightning/metrics/functional/hamming_distance.py
60409751fc9f04a39aa99382d1f953bca75822eb
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
borisdayma/pytorch-lightning
ebc210a1e7901b5f87ab67e4886bfe20b478fe33
4b7c0fae00084b72dffe37fdd0ea7d2e9b60d103
refs/heads/master
2021-11-23T07:34:01.842134
2021-02-19T17:00:27
2021-02-19T17:00:27
238,756,095
1
1
Apache-2.0
2020-02-06T18:27:51
2020-02-06T18:27:50
null
UTF-8
Python
false
false
2,753
py
# Copyright The PyTorch Lightning team. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
[ "noreply@github.com" ]
borisdayma.noreply@github.com
232b6a3d7696148053f4c31a8ca9b6b7ddeb68db
2b7ada0f30e0c24c181c1f6d588a2f0ae8c29327
/Convolutional_Neural_Network/mnist_classifier_cnn.py
88a0c7dbd3b13583b6d133ea31d088ac49e062aa
[]
no_license
vinods07/Neural-Networks-and-Deep-Learning
50b3b791690a26a1e22fc2fc3527bf9128c47305
afaa9cf7f163aec1dc48727df00e47e831feaa01
refs/heads/master
2020-03-19T12:11:04.849889
2017-12-23T18:18:06
2017-12-23T18:18:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,259
py
from tf_CNN import tf_CNN as CNN from tf_CNN_layers import ConvPoolLayer, ConnectedLayer, SoftmaxOutputLayer import mnist_loader as ml tr_d, va_d, te_d = ml.load_data_wrapper() cnet = CNN( [ ConvPoolLayer( (50,28,28,1), (5,5,2...
[ "yashshah2398@gmail.com" ]
yashshah2398@gmail.com
14b8a10c008579e57d0d23870394bd2f9d00e499
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5636311922769920_1/Python/ahausch/D.py
3cf95f2a6023418fdc16b784eff43f0a8a7afec1
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
589
py
import sys import math def solve(K, C, S): if (S < math.ceil(K / C)): return "IMPOSSIBLE" S = math.ceil(K / C) i = 0 r = [] for s in range(S): pos = 0 for c in range(C): if (i >= K): break pos = pos * K + i ...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
19486d8466a1b265801548cad5027ad22bd07692
5a281cb78335e06c631181720546f6876005d4e5
/solum-6.0.0/solum/tests/common/test_solum_swiftclient.py
fbfad4ade571d9e7a795a0f4fede2d2d18d3c5e8
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
scottwedge/OpenStack-Stein
d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8
7077d1f602031dace92916f14e36b124f474de15
refs/heads/master
2021-03-22T16:07:19.561504
2020-03-15T01:31:10
2020-03-15T01:31:10
247,380,811
0
0
Apache-2.0
2020-03-15T01:24:15
2020-03-15T01:24:15
null
UTF-8
Python
false
false
2,440
py
# Copyright 2015 - Rackspace Hosting # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "Wayne Gong@minbgong-winvm.cisco.com" ]
Wayne Gong@minbgong-winvm.cisco.com
41773fcade2a6453ac51625cee00770ad3a02f78
34d6ec6c9a459ab592f82137927107f967831400
/week08/lesson/743-network-delay-time-Bellman-ford.py
b82d47e05a1edcea8d4185b9da9eeceb76756564
[ "MIT" ]
permissive
MiracleWong/algorithm-learning-camp
228605311597dc3c29f73d4fb6b7abedc65d05a7
aa5bee8f12dc25992aaebd46647537633bf1207f
refs/heads/master
2023-07-15T21:34:11.229006
2021-09-05T09:06:16
2021-09-05T09:06:16
379,647,005
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
class Solution: def networkDelayTime(self, times: List[List[int]], n: int, k: int) -> int: # dist 初始化,起点为0,其他为+oo dist = [1e9] * (n + 1) dist[k] = 0 # Bellman-ford 算法 for iteration in range(n - 1): updated = False for i in range(len(times)): ...
[ "cfwr1991@126.com" ]
cfwr1991@126.com
98bd50f650bcf86b7bd116e3eb2d4bcff2cb37ed
38ac429d63369922e12e19cdda042b08b8123027
/test/test_assignments_api.py
f4088df3c26e3bc14fabe3d926d588d688266f87
[]
no_license
aviv-julienjehannet/collibra_apiclient
0dfebe5df2eb929645b87eba42fab4c06ff0a6be
10a89e7acaf56ab8c7417698cd12616107706b6b
refs/heads/master
2021-09-12T16:52:19.803624
2018-04-19T01:35:20
2018-04-19T01:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,538
py
# coding: utf-8 """ \"Data Governance Center: REST API v2\" No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import ...
[ "busworld08@gmail.com" ]
busworld08@gmail.com
a17d9a637230803a57cdecda3f01a54e3490fcaf
2d2c10ffa7aa5ee35393371e7f8c13b4fab94446
/projects/ai/imt2020/imt2020/modelEvalDec.py
9bae39e758014b78adccdc204a99f3aeeec9b16d
[]
no_license
faker2081/pikachu2
bec83750a5ff3c7b5a26662000517df0f608c1c1
4f06d47c7bf79eb4e5a22648e088b3296dad3b2d
refs/heads/main
2023-09-02T00:28:41.723277
2021-11-17T11:15:44
2021-11-17T11:15:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,098
py
#======================================================================================================================= #======================================================================================================================= import numpy as np import tensorflow as tf from modelDesign import * import sc...
[ "chenghuige@gmail.com" ]
chenghuige@gmail.com
05f85d5e2a79d9b905c1ab8b6068858b3b190797
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_96/1859.py
097f8ab50567049219afad10b48e6fc6a3d52758
[]
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,158
py
from sys import stdin def get_judge_points(total): if not isinstance(total, int): total = int(total) i = int(total/3) remainder = total % 3 points = [i, i, i] while remainder > 0: points[remainder] += 1 remainder -= 1 return points def do_surprise(points): diff = max(points) - min(points) ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
7b50ee40c5fbcab7fdd8bbdd1d6ec7d1d57bdaef
b82155d41bab1590a845549c3364e6c7d490a9b0
/Chapter9/9_4.py
48aa8a528c67bd19fe3c9f6960548c705814bfd6
[]
no_license
Myfour/Fluent_Python_Study
d9cc82815caf5a0c04f1283a5699bc4be013d84c
30a96ca2a8df54008f313e5b5bfb2d3dd97458dd
refs/heads/master
2020-04-22T05:27:03.185038
2019-05-13T14:17:32
2019-05-13T14:17:32
170,159,899
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
''' 比较@classmethod和@staticmethod的行为 ''' class Demo: @classmethod def klassmeth(*args): return args @staticmethod def statmeth(*args): return args print(Demo.klassmeth()) print(Demo.klassmeth('aaa')) print(Demo.statmeth()) print(Demo.statmeth('bbb')) print(Demo().statmeth())
[ "oz_myx@126.com" ]
oz_myx@126.com
6a337af69004a88b494f71d4040fad44ce697915
068d271e241d8cdb46dbf4243166e4b8ee7025b2
/day09/homework/FTP/core/log.py
2c015fef5f86df75116b948c5e61cf9c479e6266
[]
no_license
caiqinxiong/python
f6e226e76cb62aac970bcfbcb6c8adfc64858b60
9029f6c528d2cb742b600af224e803baa74cbe6a
refs/heads/master
2023-05-26T19:41:34.911885
2020-05-15T09:02:08
2020-05-15T09:02:08
195,261,757
1
0
null
2021-06-10T23:33:33
2019-07-04T15:01:42
JavaScript
UTF-8
Python
false
false
2,392
py
# -*- coding: utf-8 -*- __author__ = 'caiqinxiong_cai' # 2019/8/26 15:37 import logging import sys import time from logging import handlers from conf import settings as ss class Log(object): ''' https://cloud.tencent.com/developer/article/1354396 ''' now_time = time.strftime('%Y-%m-%d %H:%M:%S', time.l...
[ "13269469526@163.com" ]
13269469526@163.com
b50799fe5511d496b4e68f1a8b58087176fddf2d
eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e
/atcoder/abc/abc301-400/abc301/b.py
b9d8a82685d6db658c6c82c4ecf0bc9b4ef847f1
[]
no_license
reo11/AtCoder
4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9
69c6d67f05cb9190d8fb07204488cd7ce4d0bed2
refs/heads/master
2023-08-28T10:54:50.859288
2023-08-22T18:52:47
2023-08-22T18:52:47
162,085,118
4
0
null
2023-07-01T14:17:28
2018-12-17T06:31:10
Python
UTF-8
Python
false
false
295
py
n = int(input()) a = list(map(int, input().split())) ans = [] for i in range(n - 1): if a[i] < a[i + 1]: for j in range(a[i], a[i + 1]): ans.append(j) else: for j in range(a[i], a[i + 1], -1): ans.append(j) ans.append(a[-1]) print(*ans, sep=" ")
[ "reohirao116@gmail.com" ]
reohirao116@gmail.com
5bc2856f4e1317762a13a48e6e2301eafd01e196
2354fbbc1b6497d3a5f78e12783fe760e43f99fb
/LeetCode Problems/Stack/Backspace String Compare.py
6ae42752f72ced7da2ced2912c3d92e6daf78064
[]
no_license
GZHOUW/Algorithm
34ee3650a5fad1478fb3922ea69ccafc134520c9
7eddbc93a237d1d5cabcdc67806b01ff55ea8562
refs/heads/master
2021-03-27T07:57:31.247576
2021-01-06T19:53:38
2021-01-06T19:53:38
247,803,659
0
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
''' Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character. Example 1: Input: S = "ab#c", T = "ad#c" Output: true Explanation: Both S and T become "ac". Example 2: Input: S = "ab##", T = "c#d#" Output: true Explanation: Both S and T become "". E...
[ "noreply@github.com" ]
GZHOUW.noreply@github.com
d5a5d0b1b5096872ac136f497b911887858020e6
5479cdac56abc115d3b52fbd31814dfd27262da7
/TaobaoSdk/Request/FenxiaoDiscountAddRequest.py
041fa187596ee24e1160c69cbbe32e671cb0871b
[]
no_license
xuyaoqiang-maimiao/TaobaoOpenPythonSDK
d9d2be6a7aa27c02bea699ed5667a9a30bf483ab
c82cde732e443ecb03cfeac07843e884e5b2167c
refs/heads/master
2021-01-18T07:49:57.984245
2012-08-21T07:31:10
2012-08-21T07:31:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,729
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=4 sts=4 sw=4 et: ## @brief 新增等级折扣 # @author wuliang@maimiaotech.com # @date 2012-08-09 12:36:46 # @version: 0.0.0 import os import sys import time def __getCurrentPath(): return os.path.normpath(os.path.join(os.path.realpath(__file__), os.path.pardi...
[ "liyangmin@maimiaotech.com" ]
liyangmin@maimiaotech.com
497bd17a77f55e7e45a3b7cba1e1189baa20b7e5
d8e52daee362d3d5219c5a22c63fc9c0d645971d
/django_app/temp_app/apps.py
0d7d7273970c3b221c1096b83855e88f2fb2dd1a
[]
no_license
BethMwangi/temp_chart
73f6b50ca7057b247e4a5d83f81977a650e97204
175a739d3f45bb4dcd30411ab1e22ab18b46d1f5
refs/heads/master
2021-01-13T13:31:38.795942
2016-11-17T20:01:45
2016-11-17T20:01:45
72,631,079
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
from __future__ import unicode_literals from django.apps import AppConfig class TempAppConfig(AppConfig): name = 'temp_app'
[ "wanjikumwangib@gmail.com" ]
wanjikumwangib@gmail.com
722871561fe1940df48245ef168f877aa6fa7b7c
6820e74ec72ed67f6b84a071cef9cfbc9830ad74
/plans/migrations/0011_auto_20150421_0207.py
f85ce87d2de92f218fff2a5c5d124a86e90b7df7
[ "MIT" ]
permissive
AppforallHQ/f5
96c15eaac3d7acc64e48d6741f26d78c9ef0d8cd
0a85a5516e15d278ce30d1f7f339398831974154
refs/heads/master
2020-06-30T17:00:46.646867
2016-11-21T11:41:59
2016-11-21T11:41:59
74,357,925
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import plans.models class Migration(migrations.Migration): dependencies = [ ('plans', '0010_auto_20150421_0159'), ] operations = [ migrations.AlterField( model_name='invo...
[ "hi@appforall.ir" ]
hi@appforall.ir
c6ac53e11389ce6549e82a2b7f72c83546dba78e
e61e664d95af3b93150cda5b92695be6551d2a7c
/vega/datasets/conf/st.py
a72bc532372c895cf6a8852f78a66bf775dec00c
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
huawei-noah/vega
44aaf8bb28b45f707ed6cd4e871ba70fc0c04846
12e37a1991eb6771a2999fe0a46ddda920c47948
refs/heads/master
2023-09-01T20:16:28.746745
2023-02-15T09:36:59
2023-02-15T09:36:59
273,667,533
850
184
NOASSERTION
2023-02-15T09:37:01
2020-06-20T08:20:06
Python
UTF-8
Python
false
false
1,577
py
# -*- coding=utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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...
[ "zhangjiajin@huawei.com" ]
zhangjiajin@huawei.com
7207a8e8a959526f148b94f3db608f70c74163b9
162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d
/examples/applications/plot_outlier_detection_housing.py
b807a33544c2640fe43c715f3a8a087e6f3beff8
[]
no_license
testsleeekGithub/trex
2af21fa95f9372f153dbe91941a93937480f4e2f
9d27a9b44d814ede3996a37365d63814214260ae
refs/heads/master
2020-08-01T11:47:43.926750
2019-11-06T06:47:19
2019-11-06T06:47:19
210,987,245
1
0
null
null
null
null
UTF-8
Python
false
false
5,672
py
""" ==================================== Outlier detection on a real data set ==================================== This example illustrates the need for robust covariance estimation on a real data set. It is useful both for outlier detection and for a better understanding of the data structure. We selected two sets o...
[ "shkolanovaya@gmail.com" ]
shkolanovaya@gmail.com
e8977ff40f1b9f54bb36eafb20e6bce44d475a84
8fe514d15c340acbd73da359e2db5ad84853d1a4
/tests/pytests/test_pythia.py
a5fb87dba603dbedc9a78cf91b0d31d2f47f695c
[ "BSD-3-Clause" ]
permissive
geodynamics/pythia
1e265f5b50263adf149d102c8c51b501f8ff6f3b
e914bc62ae974b999ce556cb6b34cdbcc17338fc
refs/heads/main
2023-08-09T17:07:01.497081
2023-07-26T17:56:22
2023-07-26T17:56:22
12,655,880
1
14
BSD-3-Clause
2023-07-26T17:56:24
2013-09-06T22:23:49
Python
UTF-8
Python
false
false
3,102
py
#!/usr/bin/env python3 # ====================================================================== # # 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://geo...
[ "baagaard@usgs.gov" ]
baagaard@usgs.gov
ba6e634f7f8c835e9c3a035ce1ce13c3e566488e
2d45111cf6d895f5a197e5465f3dc3267931883f
/examples/model-correlations/src/pdf.py
6b78afe36965dfbc2d2ba6dc5e09c64094df4011
[ "MIT" ]
permissive
ahwolf/data-workflow
01de0a7633225da3e40e7f47bd9c87d60afaa2f4
ef071f67e1d6f48a533309eea10847e6378a32f2
refs/heads/master
2021-01-22T14:46:31.161904
2014-02-19T20:36:11
2014-02-19T20:36:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
315
py
"""Visualize the distribution of values """ import sys import csv import matplotlib.pyplot as plot import loaders tsv_filename = sys.argv[1] col = int(sys.argv[2]) data = loaders.data_from_tsv(tsv_filename, [col])[0] scatter = plot.hist(data, 30, normed=1, facecolor='g', alpha=0.6) plot.savefig(sys.argv[3])
[ "dean.malmgren@datascopeanalytics.com" ]
dean.malmgren@datascopeanalytics.com
e7990a5346d87a6f6a1ec12bd2d3f45889dea91d
d16446123405b7ebe3811f63a9d908f3390fd9d9
/py2exe/build/bdist.win32/winexe/temp/mlpy.wavelet._uwt.py
d2debc4b055af12f9c84b4caedf744756369d59d
[]
no_license
minoTour/ampbalance
998d690a1592c5b8e81f6822f659a7755f86cd44
d318f060e2c06d10fd3987181e53c550321482f1
refs/heads/master
2016-09-10T18:22:16.941311
2015-07-24T12:52:03
2015-07-24T12:52:03
38,117,971
0
1
null
null
null
null
UTF-8
Python
false
false
354
py
def __load(): import imp, os, sys try: dirname = os.path.dirname(__loader__.archive) except NameError: dirname = sys.prefix path = os.path.join(dirname, 'mlpy.wavelet._uwt.pyd') #print "py2exe extension module", __name__, "->", path mod = imp.load_dynamic(__name__, path) ## m...
[ "matt.loose@nottingham.ac.uk" ]
matt.loose@nottingham.ac.uk
ac122184616c16ed7758b86049ac5088f41ea720
a1c8731a8527872042bd46340d8d3e6d47596732
/programming-laboratory-I/8nvp/inteiros.py
e92e810ee018872c571149249f4d17f14de93801
[ "MIT" ]
permissive
MisaelAugusto/computer-science
bbf98195b0ee954a7ffaf58e78f4a47b15069314
d21335a2dc824b54ffe828370f0e6717fd0c7c27
refs/heads/master
2022-12-04T08:21:16.052628
2020-08-31T13:00:04
2020-08-31T13:00:04
287,621,838
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
# coding: utf-8 # Aluno: Misael Augusto # Matrícula: 117110525 # Problema: Inteiros Positivos Divisíveis A = int(raw_input()) B = int(raw_input()) K = int(raw_input()) for i in range(1, K + 1): if i % A == 0 and i % B == 0: print i
[ "misael.costa@ccc.ufcg.edu.br" ]
misael.costa@ccc.ufcg.edu.br
1563132ab1e27fa9a5cdfe81eed015ff23a5b1c3
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/lazyprogrammer_machine_learning_examples/machine_learning_examples-master/rnn_class/batch_wiki.py
c65bbf539a79ec9ad0b266adf4b900adb5868bb5
[]
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
6,466
py
# https://deeplearningcourses.com/c/deep-learning-recurrent-neural-networks-in-python # https://udemy.com/deep-learning-recurrent-neural-networks-in-python import sys import theano import theano.tensor as T import numpy as np import matplotlib.pyplot as plt import json from datetime import datetime from sklearn.utils ...
[ "659338505@qq.com" ]
659338505@qq.com
b16c771b71602489f1e72f2442c4043d433a7d0b
215e3c24d9bf55c5951cdbab08d045663003331a
/Lib/Scripts/glyphs/components/decompose.py
d8e9069d97698e75433bd87bb99ab3e8759391b0
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
hipertipo/hTools2
8ac14ee37d6ed78a5ce906e65befa889798cc53d
a75a671b81a0f4ce5c82b2ad3e2f971ca3e3d98c
refs/heads/master
2022-07-10T20:37:13.869044
2018-11-21T10:42:44
2018-11-21T10:42:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,027
py
# [h] remove components '''Remove components in selected glyphs.''' from mojo.roboFont import CurrentFont from hTools2.modules.fontutils import get_glyphs from hTools2.modules.messages import no_font_open, no_glyph_selected foreground = True layers = False f = CurrentFont() if f is not None: glyph_names = get...
[ "gustavo@hipertipo.com" ]
gustavo@hipertipo.com
304d71ef2e9f9e97d84b4043bccbde3c0fd3f073
e2c120b55ab149557679e554c1b0c55126e70593
/python/imagej/examples/imglib2_LazyCellImg_montage_simple.py
24ea2087e32b9b6ef268abcf6c5344ac0f448bf6
[]
no_license
acardona/scripts
30e4ca2ac87b9463e594beaecd6da74a791f2c22
72a18b70f9a25619b2dbf33699a7dc1421ad22c6
refs/heads/master
2023-07-27T14:07:37.457914
2023-07-07T23:13:40
2023-07-07T23:14:00
120,363,431
4
5
null
2023-05-02T11:20:49
2018-02-05T21:21:13
Python
UTF-8
Python
false
false
1,770
py
from ij import IJ, ImagePlus from net.imglib2.img.cell import LazyCellImg, CellGrid, Cell from net.imglib2.img.basictypeaccess.array import ByteArray from net.imglib2.img.basictypeaccess import ByteAccess from net.imglib2.img.display.imagej import ImageJFunctions as IL from java.lang import System imp = IJ.getImage() ...
[ "sapristi@gmail.com" ]
sapristi@gmail.com
1a6e43d4c51954316a7d506c7fb62a4b6aa0385a
7266300d1fc7837f021f366333c6021695dc7d89
/ex007.py
826dc75ece9fd57d3b742ea949cbab5e546e4663
[]
no_license
ritomar/python-guanabara
d2283cd411cb0af38a495979cdf5d22d2335cb4a
3e732c0f464a2c8ba04d36a46415f238491338ab
refs/heads/master
2020-04-24T20:14:03.769087
2019-02-24T22:41:23
2019-02-24T22:41:23
172,237,054
1
0
null
null
null
null
UTF-8
Python
false
false
390
py
""" Exercício Python #007 - Média Aritmética Desenvolva um programa que leia as duas notas de um aluno, calcule e mostre a sua média. """ def media(a, b): return (a + b) / 2 nota_1 = float(input("Primeira nota do aluno: ")) nota_2 = float(input("Segunda nota do aluno: ")) print(f'A média entre {not...
[ "ritomar@hotmail.com" ]
ritomar@hotmail.com
c982192c49c4f7ea0d862f1d54fd36db9f8ddaa5
d48a8ba5aed0e73e011ab4e1fcaab378760d1827
/smallslive/events/migrations/0004_auto__add_field_event_set.py
227643f6f970a0586a942f9eced2f22921ed56a6
[]
no_license
waytai/smallslive
7e15472e2bc197a32ea4058c0096df7ea5723afe
106c35ce52f3c500432d00b7bd937a3d283aee4f
refs/heads/master
2020-05-01T07:26:53.583006
2014-05-01T22:52:15
2014-05-01T22:52:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,288
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'Event.set' db.add_column(u'events_event', 'set', ...
[ "filip@jukic.me" ]
filip@jukic.me
ab07f0f98350be43dafdc17542bd680df579a9a8
ac44aa8fd5404b95e1d92f6268ae84d9f4e7319a
/spiderutil/connector/redis.py
e0061d6e10d8d117e0c99832f6a335c90fdd58ec
[ "MIT" ]
permissive
Thesharing/spider-utility
140237db3fa4b20cc4caadbfdc22c67bd21022b9
1dcea98bf1740b1addfb3cdedea1ce92ed70a12c
refs/heads/master
2020-07-26T17:38:51.694626
2020-01-07T18:00:05
2020-01-07T18:00:05
208,721,632
1
0
null
null
null
null
UTF-8
Python
false
false
2,746
py
from abc import abstractmethod import redis from .base import Database class Redis(Database): def __init__(self, name: str, host='localhost', port=6379): super(Redis, self).__init__(name, 'Redis') self.host = host self.port = port self.conn = re...
[ "cyprestar@outlook.com" ]
cyprestar@outlook.com
6b2d37b9bb8908aad59c1df2361d6a6fdbb066f1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02763/s621426373.py
7750cf1024ddffc0ab4f803b496ccb47188b9281
[]
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
498
py
n=int(input()) l=list(input()) q=int(input()) bit=[[0]*(n+1) for i in range(26)] def bit_sum(o,i): s=0 while i: s+=bit[o][i] i-=i&-i return s def bit_add(o,i,x): while i<=n: bit[o][i] += x i+=i&-i for i in range(n): bit_add(ord(l[i])-97,i+1,1) for i in range(q): a,b,c=input().split() b=int...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
c57634c144704ce971b204af1b8d2cac44f8071c
fc314838b18c14a00310f0059d5358c7c4afabd6
/social_auth/backends/contrib/readability.py
523b72af00dadb415ab123cb0fea283636071724
[ "MIT" ]
permissive
opendream/asip
5cb4b997fab2438193ae7490c159efced6dc3d91
20583aca6393102d425401d55ea32ac6b78be048
refs/heads/master
2022-11-28T23:28:18.405604
2020-03-10T04:56:23
2020-03-10T04:56:23
190,504,979
1
1
MIT
2022-11-22T01:10:46
2019-06-06T03:06:03
HTML
UTF-8
Python
false
false
3,847
py
""" Readability OAuth support. This contribution adds support for Readability OAuth service. The settings READABILITY_CONSUMER_KEY and READABILITY_CONSUMER_SECRET must be defined with the values given by Readability in the Connections page of your account settings.""" try: import json as simplejson except ImportE...
[ "server@set.com" ]
server@set.com
f867030fa583ee7514c9a37ddb4674b41cbfbdd5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_eliding.py
f677e02f7c87edb7af849d872c93967c71742b22
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
from xai.brain.wordbase.verbs._elide import _ELIDE #calss header class _ELIDING(_ELIDE, ): def __init__(self,): _ELIDE.__init__(self) self.name = "ELIDING" self.specie = 'verbs' self.basic = "elide" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
610b849a4b31a941063ad9ba3e13828b8b594e22
f7f58aa4ea9ec78b20532971ddebe1e3d985dc23
/practica1/practica1/urls.py
66ebebc339bdf88ba5711d6e0f5a396babb137cb
[]
no_license
guille1194/Django-Practices
10b9ff4817d41cb086e198c07bb82aee201fb049
738cbfdd4a12089d93cd68a0cde8653c490e7fd9
refs/heads/master
2021-03-08T19:30:11.229921
2016-05-23T05:38:53
2016-05-23T05:38:53
59,388,217
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
"""practica1 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-b...
[ "guille1194@gmail.com" ]
guille1194@gmail.com
f290584c3c4c816e376a560b93bb832d10eb65b4
e3cb522fc2ce289c0604f6a6950838cde91ea07a
/config.py
157bfbae4fa468ff111acbaf7d8e6e0436c25cdf
[ "MIT" ]
permissive
zwkj099/pythonApiTest
b6127847c78234c3bc9e77c5ab0e129de6efd11b
3aeca12c4771885f1c4c52378131bf32295e9a8a
refs/heads/master
2022-11-19T01:52:35.522016
2020-05-05T00:24:36
2020-05-05T00:24:36
279,872,762
0
0
null
null
null
null
UTF-8
Python
false
false
4,169
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: leeyoshinari import os # 是否在Linux上使用,0为在Windows上使用,1为在Linux上使用 IS_LINUX = 1 # 日志级别 LOG_LEVEL = 'INFO' # 接口响应超时时间 TIMEOUT = 0.5 # 检查端口是否存在间隔时间 SLEEP = 60 # ip地址和端口 IP = '127.0.0.1' PORT = '8888' # 请求头 HEADERS = {"Accept": "application/json, tex...
[ "lee_jc@outlook.com" ]
lee_jc@outlook.com
531e05c9e284bdac8bcfc77fbbe12ea390bb3b49
4f1c6b2a953035e2be265c75d48fdcaa3e9983e1
/scrape/migrations/0003_scrapelog_message.py
25fb03a3423d181caedb044ab7b4058fd3315f53
[ "MIT" ]
permissive
azul-cloud/tbscraper
577dc783041a40b4fb6cc2b4c41c63ec95027cf2
f6edabe5c2d9e9531097bdf9d0428d138717f64f
refs/heads/master
2021-01-10T21:37:48.421837
2014-12-26T20:29:46
2014-12-26T20:29:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
462
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('scrape', '0002_auto_20141223_1711'), ] operations = [ migrations.AddField( model_name='scrapelog', n...
[ "awwester@gmail.com" ]
awwester@gmail.com
9a9b1c004f4479ff0dd5144a044820c794c51bb9
bb0eeade4685dc89ff8a53beb813afdf7394989d
/gaosuan/第三次课后作业/006.py
e693ec464824c0bc07034e7dfe1242c2f51c770f
[]
no_license
zhaocheng1996/pyproject
72929cd0ba2f0486d7dc87a7defa82656bf75a8e
0a1973dda314f844f9898357bc4a5c8ee3f2246d
refs/heads/master
2021-10-26T08:38:43.675739
2019-04-11T13:52:46
2019-04-11T13:52:46
176,939,063
0
0
null
null
null
null
UTF-8
Python
false
false
4,286
py
''' 分治法解最近对问题 Description 最近对问题:使用分治算法解决最近对问题。 Input 第一行为测试用例个数。后面每一行表示一个用例,一个用例为一些平面上点的集合,点与点之间用逗号隔开,一个点的两个坐标用空格隔开。坐标值都是正数。 Output 对每一个用例输出两个距离最近的点(坐标使用空格隔开),用逗号隔开,先按照第一个坐标大小排列,再按照第二个坐标大小排列。如果有多个解,则按照每个解的第一个点的坐标排序,连续输出多个解,用逗号隔开。 Sample Input 1  1 1 1,2 2,3 3,4 4,5 5,1.5 1.5 Sample Output 1 1 1,1.5 1.5,1.5 1.5,2 2 '...
[ "34829837+zhaocheng1996@users.noreply.github.com" ]
34829837+zhaocheng1996@users.noreply.github.com
85e8d525463c18ce01066ae724d8d7dcba3c0dfa
d26652c7774e1b5c0a7cb2f8d20d36c77b192bec
/env/bin/futurize
ed8d1440ca071c11e2a22808ea67626061406579
[]
no_license
teknofage/blockchain_tutorial
41c38f1d4610e885881d99f95023b3fb1bed3966
dbb99e2c3ba3749d6d861199b016a6555456233f
refs/heads/master
2022-12-08T05:57:38.172539
2020-09-03T23:44:35
2020-09-03T23:44:35
290,911,358
0
0
null
null
null
null
UTF-8
Python
false
false
452
#!/Users/Funkhauser/dev/Courses/BEW-2.4/blockchain/blockchain_tutorial/env/bin/python3 # EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize' __requires__ = 'future==0.18.2' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-scrip...
[ "teknofage@gmail.com" ]
teknofage@gmail.com
4c84e4fa25fbaecc72158befe736472736cf14a5
d8e8e528b1942b3528c88b12729f0cbc7b7d606f
/pipenv/vendor/vistir/cursor.py
22d643e13ae72bfa897e9c5c7933b93dbc2cb4e3
[ "MIT", "BSD-3-Clause", "ISC" ]
permissive
frostming/pipenv
997e5f71ac5a4bbac3aacd1fa000da6e0c8161eb
661184e5ccf9bec3e3b4b03af778e54fe2fbc1a2
refs/heads/master
2021-04-15T03:33:03.817473
2019-03-18T03:14:33
2019-03-18T03:14:33
126,263,945
1
1
MIT
2019-03-19T09:44:03
2018-03-22T01:48:41
Python
UTF-8
Python
false
false
2,099
py
# -*- coding=utf-8 -*- from __future__ import absolute_import, print_function import ctypes import os import sys __all__ = ["hide_cursor", "show_cursor"] class CONSOLE_CURSOR_INFO(ctypes.Structure): _fields_ = [("dwSize", ctypes.c_int), ("bVisible", ctypes.c_int)] WIN_STDERR_HANDLE_ID = ctypes.c_ulong(-12) WI...
[ "dan@danryan.co" ]
dan@danryan.co
e74d44531671aadc3201722996969924f6623ae3
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_grating.py
799b17e241893c3b44ad883736c6a1fff89d0a00
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
#calss header class _GRATING(): def __init__(self,): self.name = "GRATING" self.definitions = [u'A grating sound is unpleasant and annoying.'] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'adjectives' def run(self, obj1, obj2): self.jsondata[obj2] =...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
808454c879c3cf4cddf8607025629c89cfbd67e7
39ab815dfdbab9628ede8ec3b4aedb5da3fd456a
/aql/benchmark/lib_18/SConscript
3f6a3ee8108f8af55b77427a21087d2b0d74442b
[ "MIT" ]
permissive
menify/sandbox
c03b1bf24c1527b47eb473f1acc433f17bfb1d4f
32166c71044f0d5b414335b2b6559adc571f568c
refs/heads/master
2016-09-05T21:46:53.369065
2015-04-20T06:35:27
2015-04-20T06:35:27
25,891,580
0
0
null
null
null
null
UTF-8
Python
false
false
236
Import('env') list = Split(""" class_0.cpp class_1.cpp class_2.cpp class_3.cpp class_4.cpp class_5.cpp class_6.cpp class_7.cpp class_8.cpp class_9.cpp """) env.StaticLibrary("lib_18", list)
[ "menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b" ]
menify@a28edc5c-ec3e-0410-a3da-1b30b3a8704b
10c5e92d9c8b905381d80777b881d54bf21ed936
803ff496aff9eef77f3186991878b6f16e54ba0a
/inital_setup.py
b42b48736c6f0b6eb008cde29203c230f49a41eb
[]
no_license
gopal1992/ssadmin
c54dae22dd69e48730affc1cdba0c0ee17b1e48c
96370e8fc108843a70b326d5b136be94ae0b3084
refs/heads/master
2016-09-09T22:44:35.003945
2015-01-24T10:15:12
2015-01-24T10:15:12
29,772,729
1
1
null
null
null
null
UTF-8
Python
false
false
434
py
#! /usr/bin/env python # -*- coding: utf-8 -*- from django.contrib.auth.models import Group GROUP_NAMES = ["subscriber_admin", "subscriber_user", "shield_square_customer_support", "shield_square_super_admin", "demo_user"] def create_groups(): for group...
[ "git@github.com" ]
git@github.com
ca256811fee23d941f3d1b5ff262f9bbf44ab758
a1c166a1ac4782f1f0792e0fd21741360373b376
/backEnd/explorer/__init__.py
2a36bacaa299ec747655ed024864550acf83062d
[]
no_license
xiaomapython/QlaskExplor
3c7b75866b8276a5c2de3fbfddf779e1a66691d0
c8b1757d08d06d350f7ca41897bbf4378fde3911
refs/heads/master
2020-06-23T08:08:45.169160
2019-05-15T02:05:17
2019-05-15T02:05:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,756
py
# _*_ coding:utf-8 _*_ # company: RuiDa Futures # author: zizle import redis import logging from concurrent_log_handler import ConcurrentRotatingFileHandler from flask import Flask from flask_sqlalchemy import SQLAlchemy from flask_session import Session from config import config from explorer.modules.users import user...
[ "zizle_lin@163.com" ]
zizle_lin@163.com
503a626fb48d5dfd37006db6436d65939dd6e970
313bb88c43d74995e7426f9482c6c8e670fdb63c
/02-instructions/if_zadanie2.py
fefd981cfb8a89b55f6868644e4b98563a298b0f
[]
no_license
martakedzior/python-course
8e93fcea3e9e1cb51920cb1fcf3ffbb310d1d654
3af2296c2092023d91ef5ff3b4ef9ea27ec2f227
refs/heads/main
2023-05-06T07:26:58.452520
2021-05-26T16:50:26
2021-05-26T16:50:26
339,822,876
1
0
null
null
null
null
UTF-8
Python
false
false
503
py
# Pobierz dwie liczby całkowite od użytkownika i oblicz ich sumę. # Jeśli suma jest większa niż 100, wyświetl wynik, w przeciwnym wypadku wyświetl “Koniec”. print('Podaj proszę dwie liczby całkowite.') user_input1 = int(input('Podaj proszę pierwszą liczbę całkowitą: ')) user_input2 = int(input('Podaj proszę drugą licz...
[ "marta.kedzior@wp.pl" ]
marta.kedzior@wp.pl
5553da7294564691ff4a70f68d17f1e7aded2e74
930a868ae9bbf85df151b3f54d04df3a56bcb840
/benchmark/union_find_decoder/XZZX_code/decoding_time_comparison_low_p/process_data_UF_multiple_p_max_half_weight_1.py
a95feb630ff0945ef8aa35c409f48053efbab981
[ "MIT" ]
permissive
yuewuo/QEC-Playground
1148f3c5f4035c069986d8b4103acf7f1e34f9d4
462208458cdf9dc8a33d4553a560f8a16c00e559
refs/heads/main
2023-08-10T13:05:36.617858
2023-07-22T23:48:49
2023-07-22T23:48:49
312,809,760
16
1
MIT
2023-07-22T23:48:51
2020-11-14T12:10:38
Python
UTF-8
Python
false
false
3,135
py
import sys, os, json, math import scipy.stats fixed_configuration = None configurations = [] data_vec = [] with open("decoding_time_UF_multiple_p_max_half_weight_1.txt", "r", encoding="utf-8") as f: lines = f.readlines() for line in lines: line = line.strip(" \r\n") if line == "": # ignore em...
[ "yue.wu@yale.edu" ]
yue.wu@yale.edu
1b27b010f72b216dfebe00127d885f4b9ae7397e
8771c94dce3c7e30c9e5b5f45cf8683ba9cac6fd
/leetcode/algorithms/p0239_sliding_window_maximum_1.py
54942cedb6ca1bf7d876b84fd48fc9d653af8800
[]
no_license
J14032016/LeetCode-Python
f2a80ecb7822cf12a8ae1600e07e4e6667204230
9a8f5329d7c48dd34de3105c88afb5e03c2aace4
refs/heads/master
2023-03-12T02:55:45.094180
2021-03-07T07:55:03
2021-03-07T07:55:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
517
py
from heapq import heapify, heappop, heappush from typing import List class Solution: def maxSlidingWindow(self, nums: List[int], k: int) -> List[int]: heap = [(-nums[i], i) for i in range(k)] heapify(heap) result = [-heap[0][0]] if heap else [] for i in range(1, len(nums) - k + 1)...
[ "mao_xiaodan@hotmail.com" ]
mao_xiaodan@hotmail.com
bb134be3f5aee7803f010ae126fb295143bb8e11
76dab6591cb9c7ee566b76a0adc7b0b0c4086592
/main/tests/test_forms.py
043e0dfb18a0e9d453a719f41d6dc5b2f4f54591
[]
no_license
gray-adeyi/booktime
87962321e380cfa779b24f2bd6fa8c434687d084
fb54bc35739b28b5a71a5cf0c1067f38140559ba
refs/heads/main
2023-04-05T02:44:01.992984
2021-05-03T01:37:01
2021-05-03T01:37:25
363,434,043
0
0
null
null
null
null
UTF-8
Python
false
false
2,544
py
from django.test import TestCase from django.core import mail from unittest.mock import patch from django.urls import reverse from django.contrib import auth from main import forms from main import models class TestForm(TestCase): def test_valid_contact_us_form_sends_email(self): form = forms.ContactForm...
[ "adeyigbenga005@gmail.com" ]
adeyigbenga005@gmail.com
b989b224d13ef5e656c848699d9ca920d77932bc
5cc4c0048d5ef16b0dd14d903d99b399b02b99ed
/core_file/file-line-iterate.py
6ce1a731fb8f438fb73e9b238fdfd8e28de21f82
[ "MIT-0" ]
permissive
dmilos/python_tutorial
c09261c3a5a704030834d7814a6e47ddbfbe4402
f2f901a68cbc696e19350455da9b7db312d1a9fa
refs/heads/master
2021-01-10T13:02:36.763154
2018-02-22T20:14:20
2018-02-22T20:14:20
53,527,554
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
#!/usr/bin/env python myfile = open( "./test.txt", "r" ) # Line include new line at the end for line in myfile : print( "linija %s", line )
[ "dmilos@gmail.com" ]
dmilos@gmail.com
1e146d845d313b11524d950a0d28443076052f4a
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/javaclass/format/attributes/StackMapTableAttribute.pyi
f6201fa5b74458d446d4a3944b3ecdfa9b7c6897
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
880
pyi
import ghidra.javaclass.format.attributes import ghidra.program.model.data import java.lang class StackMapTableAttribute(ghidra.javaclass.format.attributes.AbstractAttributeInfo): def __init__(self, __a0: ghidra.app.util.bin.BinaryReader): ... def equals(self, __a0: object) -> bool: ... def getAtt...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
00234a17532502f91ddf425841d5d93e5ac7f756
a2e638cd0c124254e67963bda62c21351881ee75
/Python modules/collateral_cashflow_upload.py
34c9fb5c9ecfddfb13e5e677400582a6070bce6b
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,643
py
''' Cashflow upload file processing module. This processor handles a file used for cashflow insertion on Call Accounts in FA. Date: 2014-02-24 Requester: Alex Boshoff Developer: Jan Sinkora ''' import os import acm import codecs from at_feed_processing import SimpleCSVFeedProcessor, notify_log import at_addInfo c...
[ "nencho.georogiev@absa.africa" ]
nencho.georogiev@absa.africa
b64644642055cc1cb33c6efcb1e586cbf510f178
46404c77e04907225475e9d8be6e0fd33227c0b1
/recur val.py
b7b3e808a31c1be5b2231896db312a9a7beaae49
[]
no_license
govardhananprabhu/DS-task-
84b46e275406fde2d56c301fd1b425b256b29064
bf54f3d527f52f61fefc241f955072f5ed9a6558
refs/heads/master
2023-01-16T07:41:27.064836
2020-11-27T11:52:50
2020-11-27T11:52:50
272,928,074
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
""" Given a fraction, find a recurring sequence of digits if exists, otherwise, print -1. H 5 T 1500 Tag math In des First line contains 2 space separated integers N, D, denotes numerator and denominator. Ot des Print the sequence else -1. 8 3 6 50 22 27 11 2 -1 23 4 -1 12 5 -1 Exp ...
[ "noreply@github.com" ]
govardhananprabhu.noreply@github.com
84e0d8697dea8055b305290bddb9cddcbace2a64
e5bbdd55b78285c6d3348f0212654ab8cad65ad7
/src/di_replication/repl_select/repl_select.py
494f35cb4a7ea6ffca0dd80360416741a72168e9
[ "Apache-2.0" ]
permissive
jeremyyma/data-intelligence-replication
49892c99f2f528e565a0d6704304c294fa5dfb3c
0d657b47a5a67fbaf2ae717a206db309ac49f592
refs/heads/main
2023-02-02T20:43:11.040492
2020-12-14T11:22:42
2020-12-14T11:22:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,589
py
import sdi_utils.gensolution as gs import os import subprocess import logging import io try: api except NameError: class api: queue = list() class Message: def __init__(self, body=None, attributes=""): self.body = body self.attributes = attributes...
[ "53856509+thhapke@users.noreply.github.com" ]
53856509+thhapke@users.noreply.github.com
818923ccce4bf77935b2fddf1d893a41888b262d
d2845579ea6aa51a2e150f0ffe6ccfda85d035ce
/kernel/components/deeplearning/vertnn/strategy/comparision.py
1d5e89515b51b6fc36998443c53c9efe2699fe86
[ "Apache-2.0" ]
permissive
as23187/WeFe
d8de9ff626f9f3e5d98e0850b0b717a80fd73e72
ba92871d4b1d2eef6c606c34795f4575e84703bd
refs/heads/main
2023-08-22T12:01:06.718246
2021-10-28T01:54:05
2021-10-28T01:54:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,202
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2021 Tianmian Tech. 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/LI...
[ "winter.zou@welab-inc.com" ]
winter.zou@welab-inc.com
edb564ba939ea966c5b45a3dd7d01f63a02ba3d4
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/116/usersdata/246/26079/submittedfiles/al1.py
935a3c4a0c1e0e425ef0a807d2b02ca8247cab6f
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
from __future__ import division #INICIE AQUI SEU CODIGO r = float(input'Digite um valor para raio de uma lata: ') a = float(input'Digite um valor para altura de uma lata: ') v = (1314159*r*r*a)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
055f804ec52dcf7c05f7497a79d0205ddbe13427
da3df36ce182dcbe08c8addb1e979019b456be9f
/mysite/settings/local.py
0a0733fe80e0a92a50795f6f9f373f2a14f9599e
[]
no_license
miyanda2/Soduku
4cfc0a1913539a4828f85969d162368358909a5c
6bf563f264a6585fb9382bebc3a706247eb703a2
refs/heads/master
2022-11-27T04:35:48.235690
2019-11-13T12:24:41
2019-11-13T12:24:41
221,199,889
0
2
null
2022-11-22T04:49:00
2019-11-12T11:17:38
Python
UTF-8
Python
false
false
3,088
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.7. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # ...
[ "gootech442@yahoo.com" ]
gootech442@yahoo.com
4276a7df350ae4e7a94297215ce00af87d663830
31e32761e3572f8adeb690053ebfcc26390a87b5
/leetcode/wiggle_sort.py
7c59f03736ff4408f768d39e0d8396028ae29ab6
[]
no_license
sanshitsharma/pySamples
738b95c758d65e3360f3ee7221591d7b78c7ba1d
ce06f1e38e0c7a142af26e8883c81b7a5dfc7edc
refs/heads/master
2021-06-05T19:01:40.279148
2021-02-02T21:52:31
2021-02-02T21:52:31
110,218,258
0
0
null
null
null
null
UTF-8
Python
false
false
1,403
py
#!/usr/bin/python class Solution(object): def wiggleSort(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ xL = True for i in range(len(nums)-1): if xL: if nums[i] > nums[i+1]: ...
[ "sansshar@cisco.com" ]
sansshar@cisco.com
10515301924f9f176672d3cbe62d8bf843c421a8
212d39dd0e12d42ce9b830de7e8738504dda2428
/concurrency/example2_server.py
30adec7d39b47f771181c70d78f25b4bfc47d703
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
waveform80/presentations
a0c7869f5acd699922f84ed1b510519c00472887
9e8d9f63d4e841e573d5b9b01c234128d49c29c5
refs/heads/master
2023-05-12T21:29:29.083191
2023-05-04T07:29:59
2023-05-04T07:29:59
21,940,196
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
import zmq from random import random from time import time, sleep def get_random(lo=0, hi=1): start = time() sleep(lo + random() * (hi - lo)) return time() - start ctx = zmq.Context.instance() sock = ctx.socket(zmq.REP) sock.bind('ipc:///tmp/random') while True: lo, hi = sock.recv_json() sock.send...
[ "dave@waveform.org.uk" ]
dave@waveform.org.uk
f8d62ee48c69b5de4b90aeafd2ff92dae774784e
fef66ed221eecdcb2e14a4b69c83a031ff4c7ef8
/pydantic/generics.py
ab3ea52811062ebc1c559a039bd2185d007dd626
[ "MIT" ]
permissive
haizaar/pydantic
5d60de8573ad847b39cde1b2dfc691be0a243388
a0c48d62ad0fc614bb5810191cddbdbe11f697af
refs/heads/master
2020-07-13T10:42:56.016274
2019-09-30T11:45:06
2019-09-30T11:45:06
205,067,533
0
0
null
2019-08-29T02:53:29
2019-08-29T02:53:29
null
UTF-8
Python
false
false
3,723
py
from typing import Any, ClassVar, Dict, Generic, Tuple, Type, TypeVar, Union, get_type_hints from pydantic.class_validators import gather_validators from pydantic.main import BaseModel, create_model _generic_types_cache: Dict[Tuple[Type[Any], Union[Any, Tuple[Any, ...]]], Type[BaseModel]] = {} GenericModelT = TypeVar...
[ "s@muelcolvin.com" ]
s@muelcolvin.com
d89386a8b3057ede1f292266eb6b418f4e670398
6323bd983f6304d95e62909bfc4883d2f9ef1a14
/Random/Functions_class.py
dc04ad7ddbe0ea85a2697cee2d8df0d092d98f84
[]
no_license
akshay-sahu-dev/PySolutions
4c2d67d5f66fe83a6e302e1742a5bf17dafe2b99
83552962805768914034a284bf39197f52ca5017
refs/heads/master
2023-06-17T06:36:50.252943
2021-07-09T17:28:53
2021-07-09T17:28:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
def count_digit(Num): # Num = int(input("Enter a number: ")) # 1234 Q = Num//10 # 123 D = 1 while Q != 0: Q = Q // 10 D += 1 print("Total digits in given number is: ", D) count_digit(7645344)
[ "akki5233@gmail.com" ]
akki5233@gmail.com
27e8262bff5c1d44e27db03475b3794d498a8fbe
beebc5ff44407f3f3a4c1463cd09f0917dbe5391
/pytype/tools/merge_pyi/test_data/imports_alias.pep484.py
a2ccb207ed16c5bc74d13d337de115c132217ce0
[ "Apache-2.0", "MIT" ]
permissive
mraarif/pytype
4f190cb2591896133761295f3d84d80602dffb58
546e8b8114c9af54a409985a036398c4f6955677
refs/heads/master
2023-01-23T09:48:06.239353
2020-12-02T06:08:27
2020-12-02T06:08:27
303,069,915
1
0
NOASSERTION
2020-12-02T06:08:28
2020-10-11T07:53:55
null
UTF-8
Python
false
false
227
py
"""Test import-as.""" from m1 import A_old as A from m2 import B_old as B from m3 import C_old as C import m4_old as m4 import m5.D_old as D import m5.something.E_old as E def f(a: A, b: B, c: C, d: D, e: E) -> m4.D: pass
[ "rechen@google.com" ]
rechen@google.com
987aaf69923d261f667c20c540bde052a6714ff7
d8dd4ce3e943ea23586bba9df9c7bf978efa8a8b
/get_data.py
37ad3f72ee4fb2ee78728251fd50a8aa8978cd9f
[]
no_license
mdekauwe/world_clim
2785ff77f0b503dfa2b7e8e93dec80cf13ccc723
410dbf6756ee1c638134ec30dab45056531f1a09
refs/heads/master
2021-01-07T22:41:28.981349
2020-02-20T09:14:58
2020-02-20T09:14:58
241,840,482
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
#!/usr/bin/env python """ Get WorldClim version 2 climate data for various vars between 1970-2000. """ __author__ = "Martin De Kauwe" __version__ = "1.0 (20.02.2020)" __email__ = "mdekauwe@gmail.com" from urllib.request import urlretrieve from pathlib import Path import os res = "10m" #"5m" "2.5m", "30s" #vars = [...
[ "mdekauwe@gmail.com" ]
mdekauwe@gmail.com
901f8ba62645588778d2832e39b89af3a55ba4ed
37f55335f6b078d5bf95db00c62efb7d78d2411a
/game/interactive_shocks/admin.py
6efb5d638ceff94549cb89b877651f297202470e
[ "MIT" ]
permissive
adminq80/Interactive_estimation
14df57e4ee9513528e7f49ae0239638c24d8e763
d62de66189ee15c5c9f23938da148dfd5ed08573
refs/heads/master
2020-12-05T16:30:49.506392
2017-04-28T21:10:19
2017-04-28T21:10:19
67,538,528
5
1
null
null
null
null
UTF-8
Python
false
false
1,051
py
from django.contrib import admin from .forms import SettingsForm from .models import Settings, Survey, InteractiveShocks, InteractiveShocksRound @admin.register(Settings) class SettingsAdmin(admin.ModelAdmin): form = SettingsForm readonly_fields = ('id',) search_fields = ['id', ] list_display = ('max...
[ "adminq80@gmail.com" ]
adminq80@gmail.com
c5ce1b8002e32799a2450ab83bd3cecadf713ef1
46244bb6af145cb393846505f37bf576a8396aa0
/leetcode/138.copy_list_with_random_pointer.py
762548d65e258634741a2eb557eaef046abec80d
[]
no_license
aoeuidht/homework
c4fabfb5f45dbef0874e9732c7d026a7f00e13dc
49fb2a2f8a78227589da3e5ec82ea7844b36e0e7
refs/heads/master
2022-10-28T06:42:04.343618
2022-10-15T15:52:06
2022-10-15T15:52:06
18,726,877
4
3
null
null
null
null
UTF-8
Python
false
false
799
py
# Definition for singly-linked list with a random pointer. # class RandomListNode: # def __init__(self, x): # self.label = x # self.next = None # self.random = None class Solution: # @param head, a RandomListNode # @return a RandomListNode def copyRandomList(self, head): ...
[ "sockpuppet.lea@gmail.com" ]
sockpuppet.lea@gmail.com
1978f4dde31af4260b41b0c1313a8a07b4e808ec
466912406272829982f75854cf0104c6ce8c9814
/data/spider2/parser/recruit/lagou/lagou_company_full_name_check.py
27f5e56d02301c67526cc2ac7563834476c6b449
[]
no_license
logonmy/Codes
9631fa103fc499663361fa7eeccd7cedb9bb08e4
92723efdeccfc193f9ee5d0ab77203c254f34bc2
refs/heads/master
2021-09-21T18:07:22.985184
2018-08-30T05:53:26
2018-08-30T05:53:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,619
py
# -*- coding: utf-8 -*- import os, sys import datetime import json from bson import json_util from pyquery import PyQuery as pq from bs4 import BeautifulSoup import lxml.html import time import lagou_job_parser reload(sys) sys.setdefaultencoding("utf-8") sys.path.append(os.path.join(os.path.split(os.path.realpath(__f...
[ "hush_guo@163.com" ]
hush_guo@163.com
97022c7ccd61935cf15a4d7f498ef6eb96146876
6ec91b363b077bffd33f15300a0935124e9fb915
/Cracking_the_Code_Interview/Leetcode/6.Binary_Tree/Recursive/236.Lowest_Common_Ancestor.py
9ac1728927a25df30cb8e000485c15831b3d1727
[]
no_license
lzxyzq/Cracking_the_Coding_Interview
03232515ae8eb50394d46322d36b230d1a626fcf
79dee7dab41830c4ff9e38858dad229815c719a0
refs/heads/master
2023-06-05T19:52:15.595289
2021-06-23T22:46:02
2021-06-23T22:46:02
238,068,000
0
1
null
null
null
null
UTF-8
Python
false
false
2,042
py
''' @Author: your name @Date: 2020-05-23 17:38:48 @LastEditTime: 2020-05-23 18:39:01 @LastEditors: Please set LastEditors @Description: In User Settings Edit @FilePath: /Cracking_the_Code_Interview/Leetcode/Binary_Tree/Recursive/236.Lowest_Common_Ancestor.py ''' # Given a binary tree, find the lowest common ancestor (L...
[ "lzxyzq@gmail.com" ]
lzxyzq@gmail.com
3f44a42e4f9ed4912c78cf3ede0b26b75c9c1ca8
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/577477_Select_some_nth_smallest_elements_quickselect/recipe-577477.py
0f4ecc1b0f7ca5e97f9c49953f132ec863b022ab
[ "Python-2.0", "MIT" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
1,358
py
import random def select(data, positions, start=0, end=None): '''For every n in *positions* find nth rank ordered element in *data* inplace select''' if not end: end = len(data) - 1 if end < start: return [] if end == start: return [data[start]] pivot_rand_i = random.randra...
[ "betty@qburst.com" ]
betty@qburst.com
f446ee466529f2d2f57c1633179f7e771628ff47
7cf0a3b4429e01b46bb8b8f4a742046953c32dfa
/Scraping attempt/scripts/web_scraper/csv_summary.py
c1a7288c1fe4dbb4943457e01e0895372440e235
[]
no_license
kafitz/assessment_scraper
3969d9e48c0c48d436ccc164f584bec44f59a02b
9eb5d2660774d8cdf58993ccbe84f6e131bf22dd
refs/heads/master
2020-06-09T05:39:15.052316
2014-05-20T01:37:08
2014-05-20T01:37:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,679
py
#!/usr/bin/python # coding=utf-8 # 2013 Kyle Fitzsimmons import os import csv import xlwt file_tuple = [x for x in os.walk('output/')][0] files = [str(file_tuple[0] + filename) for filename in file_tuple[2]] workbook = xlwt.Workbook(encoding='utf-8') sheet = workbook.add_sheet('summary', cell_overwrite_ok=True) mat...
[ "kafitz22@gmail.com" ]
kafitz22@gmail.com
771eb99c5e6276951fa1be1be0bc7479d3f2cf98
2111dac9168ef9651296f859428a4d3461356107
/tests/test_shellutils.py
1ef5ea2eda2371fed2f83257d13ec9c12dc294cc
[]
no_license
BasementCat/gitastic
366f3016ef1fab692b4401520b5a6013ebb2344f
44f5e9e7d093c754797f934645b1b6f674393cb9
refs/heads/master
2020-12-24T13:44:06.372591
2014-05-14T03:33:42
2014-05-14T03:33:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,541
py
import unittest import sys import os import StringIO # import subprocess # import threading # import socket # import time # import tempfile # import shutil # import copy # import getpass # import signal sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), "gitastic")) from lib import shellutils ...
[ "alec.elton@gmail.com" ]
alec.elton@gmail.com
b68ced78051a5675e37a4be4514db25f58d205d4
07c5656f004b6a444e22ff7b4c3b6802d027f759
/week_9/class_0420/common/context.py
1903c5527c8b1a20ab201514e9e0300f06dbf62c
[]
no_license
EuniceHu/python15_api_test
de2a0f0bec8057edb27c8d1f82a438da3e9c105c
1313e56ddfa67a2490e703a1a5ef4a6967565849
refs/heads/master
2020-05-20T13:30:41.686327
2019-05-14T11:00:52
2019-05-14T11:00:52
185,599,046
0
0
null
null
null
null
UTF-8
Python
false
false
656
py
#-*- coding:utf-8 _*- """ @author:小胡 @file: context.py @time: 2019/04/26 """ import re from week_9.class_0420.common.config import config def replace(data): p = "#(.*?)#" while re.search(p, data): # 找到返回True print('data是', data) m = re.search(p, data) # 从任意位置开始找,找第一个就放回Match ...
[ "hongdh1122@163.com" ]
hongdh1122@163.com
20d8efe21e7db069ec1875cf83867a99cdc802c1
565548ff49844ed69ae16d5104e500f01c973402
/app/auth/decorators.py
e1fb953361c57a1bf98525d9bfc42b83f1712c06
[]
no_license
jaisenbe58r/Pebrassos
159ce5a8b372590fd9368d9b5b3c1b0513895bba
7516a1f7bbba78547af86a9858ee381224964d28
refs/heads/master
2023-02-27T05:42:50.652697
2021-01-31T20:57:59
2021-01-31T20:57:59
299,698,630
3
1
null
2021-01-31T20:58:01
2020-09-29T18:04:36
Jupyter Notebook
UTF-8
Python
false
false
608
py
"""Copyright (c) 2020 Jaime Sendra Berenguer & Carlos Mahiques Ballester Pebrassos - Machine Learning Library Extensions Author:Jaime Sendra Berenguer & Carlos Mahiques Ballester <www.linkedin.com/in/jaisenbe> License: MIT FECHA DE CREACIÓN: 13/01/2020 """ from functools import wraps from flask import abort ...
[ "jsendra@autis.es" ]
jsendra@autis.es
61b9ba02c484f8ecfdc2518c853008b583932a77
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5631989306621952_0/Python/mtbrown/last_word.py
d49456d039c3911948a4ad406bd8bb587ab53f5e
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
433
py
def main(): cases = int(input()) for case in range(1, cases + 1): str = input() print("Case #{0}: {1}".format(case, last_word(str))) def last_word(str): last = "" for c in str: if last == "": last += c else: if c >= last[0]: las...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
aae92cb8610f4c1884f46dbf03874c26b2016cf9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02709/s610629838.py
27cbe84220422c9db5900aecef0078cf7d118da8
[]
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
455
py
n = int(input()) a = [(int(j), i) for i, j in enumerate(input().split())] a.sort(reverse=1) dp = [[0] * (n+1) for _ in range(n + 1)] for i in range(1, n + 1): for j in range(i + 1): k = i - j if j != 0: dp[i][j] = dp[i - 1][j - 1] + a[i-1][0] * (abs(j - 1 - a[i-1][1])) if k != 0...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
99c55d6a4179e07399e896535602bb4422a8420e
90f02d834e45b5087313cecb0c6e6e24b078e35c
/students/views.py
dd5197e486e15ffe6f84243cb6d1105e24231929
[]
no_license
Horlawhumy-dev/studentprofileapp
1526034901c8f728455ec8ca1087e142579a961f
f1280a859593ad1760d636d97f08fa04c00108bf
refs/heads/master
2023-07-04T11:31:01.642497
2021-08-06T10:52:10
2021-08-06T10:52:10
393,213,578
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
from django.shortcuts import render from account.models import StudentAccount # Create your views here. def index(request): students = StudentAccount.objects.all() return render(request, 'students/index.html',{'students': students})
[ "harof.dev@gmail.com" ]
harof.dev@gmail.com
cdae01d444d0aa4322a2e8ba855b71ac3b53928c
17079988dedef6f830633a7a54b181355231fe3e
/Practice/n.py
d3a11bc9c638ef479ab7af3d21409277b9fb51e3
[]
no_license
sum008/python-backup
cdf6eaff60d882c36fe86b47ad311955d5869b02
729fbe2a5220941f9ba085c693c871592a529da8
refs/heads/master
2022-12-12T21:21:48.259680
2020-09-12T15:36:05
2020-09-12T15:36:05
285,461,845
0
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
t=int(input()) for i in range(0,t): n=int(input()) a = [int(x) for x in input().split()] x=1 pos=0 while True: if (a[pos]+a[x])%2==0: y=(a[pos]+a[x]) a.pop(x) a.pop(pos) a.insert(0, y) x=1 pos=0 ...
[ "noreply@github.com" ]
sum008.noreply@github.com
7ebb0eb1be1374ea3347dcda29706127c9d8334f
2ae0b8d95d439ccfd55ea7933ad4a2994ad0f6c5
/tests/samples_tests/smoke_tests/test_hello_reshape_ssd.py
7e89c01846a488bf21b14cffc2fa12251e2516bf
[ "Apache-2.0" ]
permissive
openvinotoolkit/openvino
38ea745a247887a4e14580dbc9fc68005e2149f9
e4bed7a31c9f00d8afbfcabee3f64f55496ae56a
refs/heads/master
2023-08-18T03:47:44.572979
2023-08-17T21:24:59
2023-08-17T21:24:59
153,097,643
3,953
1,492
Apache-2.0
2023-09-14T21:42:24
2018-10-15T10:54:40
C++
UTF-8
Python
false
false
2,287
py
""" Copyright (C) 2018-2023 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
[ "noreply@github.com" ]
openvinotoolkit.noreply@github.com
635d6550345ddc391ea4c0098466411edfe54b7a
0facb323be8a76bb4c168641309972fa77cbecf2
/Configurations/HWWSemiLepHighMass/nanoAODv5/v6_production/2017/NJET_biined_WJets/SKIM10/OptimizeMEKD/Optimize_C.py
f8418aff17f796644d48eaf81cb933dde4ef8ed5
[]
no_license
bhoh/SNuAnalytics
ef0a1ba9fa0d682834672a831739dfcfa1e7486b
34d1fc062e212da152faa83be50561600819df0e
refs/heads/master
2023-07-06T03:23:45.343449
2023-06-26T12:18:28
2023-06-26T12:18:28
242,880,298
0
1
null
2020-02-25T01:17:50
2020-02-25T01:17:49
null
UTF-8
Python
false
false
1,617
py
import ROOT import math if __name__ == '__main__': #sig_MEKD_Bst_C_0.1_M1500;1 finput='RESULT_Boost/ele/ggf_signal_M1500/ROC_Obj_MEKD_Bst_C_0.1_M1500.root' f=ROOT.TFile.Open(finput) hsig=f.Get("sig_MEKD_Bst_C_0.1_M1500") hbkg=f.Get("bkg_MEKD_Bst_C_0.1_M1500") max_significance=-1 cut=-1 ...
[ "soarnsoar@gmail.com" ]
soarnsoar@gmail.com
158efd76795e83067ca205acbffff90a53599dc9
77428d258556f1cae13c7435bcb5ee387d2f7ed9
/src/program/python/flask/flask-app/surveyapi/application.py
eef9066cd334c752437184573f602856da4efbed
[]
no_license
imxood/imxood.github.io
d598d3d991f7e7d39787ecb2415ffe48489d9fd6
a6fe8fe069b8af9d65b6afaabecfcfe99ed1ed21
refs/heads/main
2022-10-23T12:52:11.966389
2022-10-04T06:04:59
2022-10-04T06:04:59
47,911,256
1
0
null
null
null
null
UTF-8
Python
false
false
399
py
from flask import Flask from flask_cors import CORS def create_app(app_name='SURVEY_API'): app = Flask(app_name) app.config.from_object('surveyapi.config.BaseConfig') cors = CORS(app, resources={r"/api/*": {"origins": "*"}}) from surveyapi.api import api app.register_blueprint(api, url_prefix='/a...
[ "imxood@gmail.com" ]
imxood@gmail.com
241c62bc22d28a7f01b9079e2f3ba8b9d6beda4c
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/73/usersdata/172/38992/submittedfiles/triangulo.py
7acdb5069d932d6ac512549186e254efc272e19a
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
418
py
# -*- coding: utf-8 -*- import math a=int(input('digite um valor:')) b=int(input('digite um valor:')) c=int(input('digite um valor:')) a2=(a**2) b2=(b**2) c2=(c**2) if a<b+c: print('S') if a2==b2+c2: print('Re') elif a2>b2+c2: print('Ob') else: print('Ac') elif a>b+c: ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
58a73aa4e11916f117d9e74c3cb04b066dfb7ec5
97ab50a083a5b183593f41e89853e429bc642190
/hoover/csv.py
504bac06572e4def4f65b674d589744de1e4f32d
[ "MIT" ]
permissive
cmb-css/twitter-hoover
1fc708d3e6c413498e49d830c1a9143e84681213
ed22439881a7b5a1bdf8fd276920b0fab38231c8
refs/heads/master
2021-11-08T05:39:37.785441
2021-09-30T10:06:40
2021-09-30T10:06:40
183,235,719
2
1
null
null
null
null
UTF-8
Python
false
false
6,595
py
import csv from os import listdir from os.path import isfile, join from hoover.simple import read_simple FIELDS_TWEET = ('created_at', 'timestamp', 'id', 'text', 'retweet_count', 'favorite_count', 'lang') FIELDS_USER = (...
[ "telmo@telmomenezes.net" ]
telmo@telmomenezes.net
68b2bc57d7156e26c1186631f1bca42f06f00ee0
592498a0e22897dcc460c165b4c330b94808b714
/1000번/1978_소수 찾기.py
7610212bd8ea4d8fe8dffaa19a1bc281c9a7c4d9
[]
no_license
atom015/py_boj
abb3850469b39d0004f996e04aa7aa449b71b1d6
42b737c7c9d7ec59d8abedf2918e4ab4c86cb01d
refs/heads/master
2022-12-18T08:14:51.277802
2020-09-24T15:44:52
2020-09-24T15:44:52
179,933,927
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
def prime_number(num): if num != 1: # 만약에 입력이 1이아니면 for i in range(2,num): #2부터 num-1,ex)3까지 반복을 돈다 if num % i == 0: #만약에 입력을 i로 나눈 나머지가 0이면 False를 리턴한다. return False else: #만약에 입력이 1이면 return False #False를 리턴 한다. return True #만약에 3개의 if문 하나라도 해당이안되면 True를 리턴한다. ...
[ "zeezlelove@gmail.com" ]
zeezlelove@gmail.com
fe8bd58c3101253540c2c6332815c1187b7be4a3
35b2ad0c656ff08234eee4c3f62208fa2dc4b893
/e.g._call_overrided_method_using_super/py2_old_style.py
830b0042f681ecb55548994805486e91b18370e5
[ "Unlicense" ]
permissive
thinkAmi-sandbox/python_misc_samples
0d55b3d40c5983ca2870fdd34221264bf2f6822a
7a33a803cd0bd13e68c87303ae3ebfbc5a573875
refs/heads/master
2021-01-18T16:02:19.890404
2018-05-30T23:22:17
2018-05-30T23:22:17
86,705,164
0
0
null
null
null
null
UTF-8
Python
false
false
1,521
py
class Parent: def reply(self): print '[parent - reply]{}'.format(type(self)) self.say() def say(self): print '[parent - say ]{}'.format(type(self)) print 'parent!' class Child1(Parent): def reply(self): print '[child - reply]{}'.format(type(self)) Parent....
[ "dev.thinkami@gmail.com" ]
dev.thinkami@gmail.com
0cc48f6a05685d468c82658acedeef5493f40c04
3176145632467710f2041f4f5dcfa66b4d874991
/reinforcement-learning/approximation-methods/iterative_policy_evaluation.py
6b787fc557c736183567b921d1a5f210af6afb3e
[]
no_license
WyckliffeAluga/potential-happiness
804d3a83fc323ea306bdfeec2926031eb0686278
0737fb5ce64dd3683090aa70e7adf37769a54544
refs/heads/master
2022-11-20T11:53:03.879258
2020-07-29T02:03:48
2020-07-29T02:03:48
258,029,642
0
0
null
null
null
null
UTF-8
Python
false
false
3,405
py
# -*- coding: utf-8 -*- """ Created on Thu May 14 16:42:07 2020 @author: wyckliffe """ import numpy as np from grid_world import standard_grid import matplotlib.pyplot as plt e = 10e-4 # threshold for convergence def print_values(V, g): for i in range(g.width): print("---------------------------") ...
[ "51138208+WyckliffeAluga@users.noreply.github.com" ]
51138208+WyckliffeAluga@users.noreply.github.com
b37f56bd891cc9c216a019d7cc8cf4c89065115f
dfaf6f7ac83185c361c81e2e1efc09081bd9c891
/k8sdeployment/k8sstat/python/kubernetes/client/models/v2beta1_horizontal_pod_autoscaler_list.py
b1e85c0e4ffff6429cf238d99e6d4e40127837b3
[ "MIT", "Apache-2.0" ]
permissive
JeffYFHuang/gpuaccounting
d754efac2dffe108b591ea8722c831d979b68cda
2c63a63c571240561725847daf1a7f23f67e2088
refs/heads/master
2022-08-09T03:10:28.185083
2022-07-20T00:50:06
2022-07-20T00:50:06
245,053,008
0
0
MIT
2021-03-25T23:44:50
2020-03-05T02:44:15
JavaScript
UTF-8
Python
false
false
6,832
py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.15.6 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class V2beta1Hor...
[ "JeffYFHuang@github.com" ]
JeffYFHuang@github.com
0c824d6473b9658dfa17bbd735171214cf1c1148
8bf1c3691f1b9202569f600ef7e22f270998683b
/runtest.py
2b7d203e691f80185fd8202af3388df20663da6e
[ "MIT" ]
permissive
gonchik/grab
35c3b1e0605cfa850f92b4b15a68944fb8c7fc40
d007afb7aeab63036d494f3b2704be96ea570810
refs/heads/master
2021-01-18T12:15:43.105005
2016-01-31T12:38:07
2016-01-31T12:38:07
50,773,598
0
0
MIT
2019-09-19T20:38:34
2016-01-31T12:35:29
Python
UTF-8
Python
false
false
5,402
py
#!/usr/bin/env python # coding: utf-8 import unittest import sys from optparse import OptionParser import logging from copy import copy from test.util import GLOBAL, start_server, stop_server from weblib.watch import watch # ********** # Grab Tests # * pycurl transport # * extensions # ********** # TODO: # * test re...
[ "lorien@lorien.name" ]
lorien@lorien.name
8294d076e880d517e835d02c3ff0c531a9974495
f2ed1b993139c85767d2e6a1b1be74fdfad23822
/jquery/insert_text1.py
801f6404a588311a9a12d81bd92a18a83cc39609
[]
no_license
bunkahle/Transcrypt-Examples
5377674597eb4b6d6eb92d5ae71059b97f3e0d2e
17d6460f3b532bb8258170a31875e4e26a977839
refs/heads/master
2022-06-22T17:40:33.195708
2022-05-31T15:36:37
2022-05-31T15:36:37
120,099,101
31
10
null
null
null
null
UTF-8
Python
false
false
255
py
#!/usr/bin/env python # -*- coding: utf-8 -*- __pragma__ ('alias', 'S', '$') # instead of : document.getElementById('output').innerText = text def action(): text = 'Hello, DOM!'; S("#output").text(text) S(document).ready(action)
[ "noreply@github.com" ]
bunkahle.noreply@github.com
bfc654f03e4abb805c4eea1db3b5b3cdb780fb9b
5f86944bdf1b810a84c63adc6ed01bbb48d2c59a
/kubernetes/test/test_v1_container_state_running.py
2eb68d73308f529449f28a08d7f15a0f0e8c4179
[ "Apache-2.0" ]
permissive
m4ttshaw/client-python
384c721ba57b7ccc824d5eca25834d0288b211e2
4eac56a8b65d56eb23d738ceb90d3afb6dbd96c1
refs/heads/master
2021-01-13T06:05:51.564765
2017-06-21T08:31:03
2017-06-21T08:31:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.6.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import os import sys im...
[ "mehdy@google.com" ]
mehdy@google.com
d341468a41a394a1836146fad9c9b7d85402a0ab
5dd2dc445bc0c4af6d29bf1290969593689c6dfc
/actor critic/main.py
3696a4c30cf275d400afaeeed63ad7d7ac493038
[]
no_license
RobertSamoilescu/RL_bootcamp
446ff988f0dd8cfdf1c91f7d14ea983092a08ce0
d5f774bfebf5f6a5d7f0440a7c60f58d2706e7aa
refs/heads/master
2022-01-09T07:13:25.862297
2019-06-20T22:49:03
2019-06-20T22:49:03
192,088,280
0
0
null
null
null
null
UTF-8
Python
false
false
4,525
py
import torch import torch.nn as nn import torch.nn.functional as F import torch.optim import numpy as np import gym from itertools import count from torch.distributions.categorical import Categorical from tensorboardX import SummaryWriter # define tensorboard summary writer = SummaryWriter() # create environment en...
[ "robert.samoilescu@gmail.com" ]
robert.samoilescu@gmail.com
10ba8748e14f3798670a8a137684dea34a321f07
a36fb46fc6416aa9e1a874a8f61bfe10535f511b
/Day20/solution.py
e16b0986b1e6ac69d24610e5ccd82c17e52c90e7
[]
no_license
RaspiKidd/AoC2018
846995bd292d0103da69855d2965efb19d958f2a
76f5e42de98d26344d44f0ed389bc681137ea6ea
refs/heads/master
2020-04-09T02:21:40.253987
2018-12-22T11:19:33
2018-12-22T11:19:33
159,937,965
0
0
null
null
null
null
UTF-8
Python
false
false
1,285
py
import networkx maze = networkx.Graph() paths = open('input.txt').read()[1:-1] pos = {0} # the current positions that we're building on stack = [] # a stack keeping track of (starts, ends) for groups starts, ends = {0}, set() # current possible starting and ending positions for c in paths: if c == '|': ...
[ "kerry@raspikidd.com" ]
kerry@raspikidd.com
ce40ecd136466000b6cd713b9b978e417d2d76d2
ff2d0e396c2e277751fced5869975faa8260e1d9
/BASIC/SplitDataset.py
2e72f8d4b143288ee97d5f5781819cf26a72aea2
[]
no_license
kongruksiamza/MachineLearning
53207055090deaea0a44789cebfef01f5d395188
b6843a5fb97af9d21fe13aee6c0d45f36ff99131
refs/heads/master
2023-08-02T11:17:53.359201
2023-07-23T16:15:38
2023-07-23T16:15:38
251,460,002
54
41
null
null
null
null
UTF-8
Python
false
false
373
py
from sklearn.datasets import load_iris from sklearn.model_selection import train_test_split iris_dataset=load_iris() x_train,x_test,y_train,y_test = train_test_split(iris_dataset["data"],iris_dataset["target"],test_size=0.2,random_state=0) print(x_train.shape) print(x_test.shape) print(y_train.shape) print(y_t...
[ "noreply@github.com" ]
kongruksiamza.noreply@github.com
3dd5f7ff3422dda82d6a47010f7030a4e120e353
ba9cb3bbc46faeea1edc01ef7e18131ae2dbf923
/problem-046.py
13d019dd467ac87655a99dcce72627471b56b455
[]
no_license
beautytiger/project-euler
fb9908d35a82cd4b912a541282842adca03b17e2
a8de90a2e5b98660505169afd9c8c27b1b3af28e
refs/heads/master
2021-06-19T00:40:17.331130
2017-05-31T11:04:05
2017-05-31T11:04:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
834
py
#!/usr/bin/python # -*- coding: utf-8 -*- from tools.runningTime import runTime from tools.common import is_prime def fit_conjecture(n_odd): n, pt = 1, 2 while pt<n_odd: if is_prime(n_odd-pt): return True n, pt = n+1, pt+4*n+2 return False @runTime def bruteForce(): odd ...
[ "konmyn@163.com" ]
konmyn@163.com
36e803ee78844708170f2dc1daa1eff208b5f8b0
a003200e29c4ea64e9ef65a23eea2d1d8c4ad03b
/client/web/client_control_port.py
6b54ac526ac9c42588bfaf40df72078e55dcbd25
[]
no_license
jason12360/crazy_coder
10b77ef69994ff11e7fde49ad28d928851388be9
7ba161ef89ffd2da66f430c4af04a53c2de1667f
refs/heads/master
2020-03-20T22:10:35.884104
2018-06-29T10:06:24
2018-06-29T10:06:24
137,783,216
0
0
null
null
null
null
UTF-8
Python
false
false
7,653
py
from socket import * import sys import os import time import signal from threading import Thread import client_data_port #导入model相关模块 from file import * from file_folder import * from database_handler import * import my_protocol #导入视图的相关模块 from login_view import Login_Page from login_handler import Login_handler from m...
[ "370828117@qq.com" ]
370828117@qq.com
59b868c98b2088899c75c3b49e981d14738f1ed6
7ec5aa43d8f2e732189944391447a8551d24abaa
/backend/home/migrations/0002_load_initial_data.py
b7766e8a267c6d8282dbfff6aac063a6b6502fa2
[]
no_license
crowdbotics-apps/louis-vesovski-19158
e852e8158074704226a77ee9c564c7f29f39413e
61f4460d77d9077363392820f719febdd8a30434
refs/heads/master
2022-11-26T04:53:16.880047
2020-07-25T00:53:05
2020-07-25T00:53:05
282,343,603
0
0
null
null
null
null
UTF-8
Python
false
false
1,310
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "Louis Vesovski" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage"...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
a541a023a5932b483d9c0793625a70dedb494f6b
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/G7m26EdX3AABCSQBv_16.py
9a9f37cc926a9dcbbedbf54b6e1d21a544cebe38
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
767
py
""" Given a very long string of ASCII characters, split the string up into equal sized groups of size `width`. To properly display the image, join up the groups with the newline character `\n` and return the output string. See the miniature examples below for clarity! ### Examples format_ascii("0123456789", 2...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
59403b93978115731520c62a6f10b86aa0fa685f
6915d6a20d82ecf2a2a3d3cd84ca22dab2491004
/cbvproject3/testapp/admin.py
c1eeb35fe942b7f66b8b1bf1196933923b71ca4b
[]
no_license
iitian-gopu/django
bb4302d101f4434fb61ab374807e29699a432e42
31db982212bbb453cc4c56c7f5cfad9a00cd231d
refs/heads/master
2023-05-14T07:22:35.176477
2021-06-04T04:43:26
2021-06-04T04:43:26
366,114,402
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
from django.contrib import admin from testapp.models import Company # Register your models here. class CompanyAdmin(admin.ModelAdmin): list_display=['name','location','ceo'] admin.site.register(Company,CompanyAdmin)
[ "gopalkrishujaiswal2030@gmail.com" ]
gopalkrishujaiswal2030@gmail.com
a91ee7ae0112a2ba01ad8bf8c33a7d499b5605e0
475e2fe71fecddfdc9e4610603b2d94005038e94
/Coding/listComprehension.py
b45dd7656d0b549f761c910df9a9a7ed7b98f52d
[]
no_license
sidhumeher/PyPractice
770473c699aab9e25ad1f8b7b7cd8ad05991d254
2938c14c2e285af8f02e2cfc7b400ee4f8d4bfe0
refs/heads/master
2021-06-28T20:44:50.328453
2020-12-15T00:51:39
2020-12-15T00:51:39
204,987,730
0
0
null
null
null
null
UTF-8
Python
false
false
318
py
''' Created on Dec 27, 2018 @author: siddardha.teegela ''' if __name__ == '__main__': newList = [] oldList = [1,2,3,4,5] ''' List Comprehension [expression for item in list if condition] ''' newList = [item*2 for item in oldList if item > 1] print (newList)
[ "sidhumeher@yahoo.co.in" ]
sidhumeher@yahoo.co.in
70c89281004cff4894e4f6ebe0880822e29655e1
941babd1b7711c9e2935704db283568536f06306
/app/members/backends.py
cf753ebab5f6ce66cf8c987be1950138f731b6b3
[]
no_license
orca9s/eb-docker-deploy
8006fc0bcc81f76137f92a11c417708bcc1acbd9
f5f5ccc2ff8719160528f04c44f737acb39a9b00
refs/heads/master
2022-12-10T09:00:08.879297
2018-07-17T13:04:24
2018-07-17T13:04:24
140,647,708
0
0
null
2022-12-08T02:20:14
2018-07-12T02:00:52
Python
UTF-8
Python
false
false
805
py
from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.hashers import check_password from members.management.commands.createsu import Command User = get_user_model() class SettingsBackend: def authenticate(self, request, username=None, password=None): login_valid ...
[ "sang93423@gmail.com" ]
sang93423@gmail.com
f351c542553963cd2645833531a8376989706d28
62d62fd3ee2f0717c7acbb0c2edfa1e53926f728
/phoenix/wizard/views/catalogsearch.py
6d0f2b3bbffa9f8ff7fc8771dcc7123800a75736
[ "Apache-2.0" ]
permissive
rmoorman/pyramid-phoenix
911a9ef8dcca48889834cf46109321056cdbb35b
ed3ede4dbb80f00bcd647a5e4ae2afbedab94e09
refs/heads/master
2021-01-15T14:29:20.450828
2016-05-04T16:27:04
2016-05-04T16:27:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,893
py
from pyramid.view import view_config from phoenix.wizard.views import Wizard import logging logger = logging.getLogger(__name__) import colander class CatalogSearchSchema(colander.MappingSchema): pass class CatalogSearch(Wizard): def __init__(self, request): super(CatalogSearch, self).__init__( ...
[ "ehbrecht@dkrz.de" ]
ehbrecht@dkrz.de
232c7639ba3f954ee8f10d3f5f37d0a9a52dac8b
381d5b981dbcff769297351467f4b3e994668a84
/cmo_purchase_group/models/common.py
6ff66c6dccda1e3a53ce1b8dc7782c690f1922c7
[]
no_license
jutamatk/cmo_specific
f6c36da767f267b4c24a6933da54fa1536c4c309
14f5232dfde67f5d5dbeb4cf28538132954403cb
refs/heads/master
2020-03-22T02:48:31.642768
2018-05-14T10:28:23
2018-05-14T10:28:23
139,394,320
0
0
null
null
null
null
UTF-8
Python
false
false
369
py
# -*- coding: utf-8 -*- from openerp import api from lxml import etree class Common(object): @api.model def set_right_readonly_group(self, res): root = etree.fromstring(res['arch']) root.set('create', 'false') root.set('edit', 'false') root.set('delete', 'false') res['...
[ "tharathip.chaweewongphan@gmail.com" ]
tharathip.chaweewongphan@gmail.com
044fb07a14c80e7e229a65320964625ed26c6cab
8f1d6f17d3bdad867518b7b0a164adfe6aeeed95
/detection/retinaface/rcnn/PY_OP/rpn_fpn_ohem3.py
b8f7d462ec9aec245852338b392fb4d8afd3311c
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
xwyangjshb/insightface
2c7f030a5d1f5a24b18967bd0d775ee33933d37f
ae233babaf7614ef4ef28dac0171205835d78d64
refs/heads/master
2022-09-29T07:49:22.944700
2022-09-22T11:36:12
2022-09-22T11:36:12
221,020,460
1
0
MIT
2019-11-11T16:16:56
2019-11-11T16:16:55
null
UTF-8
Python
false
false
7,624
py
from __future__ import print_function import sys import mxnet as mx import numpy as np from distutils.util import strtobool from ..config import config, generate_config STAT = {0: 0} STEP = 28800 class RPNFPNOHEM3Operator(mx.operator.CustomOp): def __init__(self, stride=0, network='', dataset='', prefix=''): ...
[ "guojia@gmail.com" ]
guojia@gmail.com
16c92653ecd2a8eed34a9a224ebae4975ef7cc51
972c508bbd49cbb7800af2729328d5421fcbba8f
/flink-python/pyflink/table/tests/test_sort.py
0d490c7120cbfaa869394ac96ddb3363bd2dd856
[ "Apache-2.0", "CC-BY-2.5", "OFL-1.1", "AGPL-3.0-only", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-jdom", "GCC-exception-3.1", "MIT-0", "MPL-2.0-no-copyleft-exception", "CDDL-1.1", "CDDL-1.0", "MIT", "CC0-1.0", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "CC...
permissive
Xeli/flink
4e380cc4aa1b0a79d6eb1a1715a1b5e99993f937
d5e74d6d4f3f6be6b8ebc63c09c42b3bc8eed0d0
refs/heads/master
2021-06-02T00:07:47.239600
2019-07-04T17:05:41
2019-07-04T17:07:45
108,726,889
0
1
Apache-2.0
2019-07-04T17:05:42
2017-10-29T11:06:09
Java
UTF-8
Python
false
false
1,766
py
################################################################################ # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this...
[ "sunjincheng121@gmail.com" ]
sunjincheng121@gmail.com