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
4396c86a7c141e0e97d571dbd669b5607f1f9c9b
009ed977018fdd8607ffab33a0b6ecf8f6222149
/homura/modules/functional/grad_approximation.py
9ea153373653d3bcbca1a0db716225bb1f58bd75
[ "Apache-2.0" ]
permissive
Fragile-azalea/homura
87d3a5ef4d7cc5dec475c33759e08543558389d7
900d1d63affb9c8af3accd9b196b5276cb2e14b6
refs/heads/master
2022-11-08T21:02:09.776361
2020-06-28T13:46:32
2020-06-28T13:46:32
275,592,482
1
0
Apache-2.0
2020-06-28T13:38:26
2020-06-28T13:38:25
null
UTF-8
Python
false
false
903
py
from typing import Tuple import torch from torch.autograd import Function class _CustomSTE(Function): """ An efficient alternatives for >>> input_forward.requires_grad is False >>> input_backward.requires_grad is True >>> input_forward + (input_backward - input_backward.detach()) """ @stati...
[ "hataya@keio.jp" ]
hataya@keio.jp
433ccd4be2f26407444bcc59102987858b3f4c94
8149045eadb9d26ede5e8803736358c03022064d
/jobboard/contact/urls.py
998d1f56d00a20bd9bd362ad910870e12de743f0
[]
no_license
DmitriiGrekov/jobboard
9da3884c5f3884f876a9ffd8694ce5949f2c6088
fd161cb38f21ccd9666b335113829d102e34140f
refs/heads/master
2023-07-08T02:14:05.161182
2021-08-18T17:23:18
2021-08-18T17:23:18
397,639,574
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
from django.conf.urls import url from django.urls import path from .views import ContactView app_name = 'contact' urlpatterns = [ path('', ContactView.as_view(), name='contact'), ]
[ "grekovdima7@gmail.com" ]
grekovdima7@gmail.com
be7179d6a176c647c15d6b39d43e3de5d2924ae6
34599596e145555fde0d4264a1d222f951f49051
/pcat2py/class/212a363a-5cc5-11e4-af55-00155d01fe08.py
7b5a0ff019e1b85b0978af5615800588a4c871ca
[ "MIT" ]
permissive
phnomcobra/PCAT2PY
dc2fcbee142ce442e53da08476bfe4e68619346d
937c3b365cdc5ac69b78f59070be0a21bdb53db0
refs/heads/master
2021-01-11T02:23:30.669168
2018-02-13T17:04:03
2018-02-13T17:04:03
70,970,520
0
0
null
null
null
null
UTF-8
Python
false
false
1,163
py
#!/usr/bin/python ################################################################################ # 212a363a-5cc5-11e4-af55-00155d01fe08 # # Justin Dierking # justindierking@hardbitsolutions.com # phnomcobra@gmail.com # # 10/24/2014 Original Construction ################################################################...
[ "phnomcobra@gmail.com" ]
phnomcobra@gmail.com
ef55cba7aeb5e375e4720ea64972795157f0a4b1
2568a8234cc235e01dc75c0e67348eeda2a19908
/Exam-Exercises/Python Advanced Exam Preparation - 18 February 2020/Problem 1.2- Dating App.py
82ee7762a2cb14e019a186aa7fab068d67779e0c
[]
no_license
asen-krasimirov/Python-Advanced-Course
6cc6f998a3b0a4db8cd96e3f3d4ec45591d28a5c
fe6cdf78efe2d1c6be134f6c49d2f2d6b497e608
refs/heads/master
2023-01-07T07:28:45.709067
2020-11-02T14:00:47
2020-11-02T14:00:47
299,660,890
0
0
null
null
null
null
UTF-8
Python
false
false
1,736
py
from collections import deque def get_value(gender): global males, females if gender == "males": while True: value = males.popleft() if value <= 0: if males: continue break if value % 25 == 0: if m...
[ "68907559+asen-krasimirov@users.noreply.github.com" ]
68907559+asen-krasimirov@users.noreply.github.com
cbcf1e75b86d241098046a38c318096033a7abb3
6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a
/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/authoring/models/label_text_object_py3.py
598047479fb2554124ae811b8c156b2d94d084d7
[ "MIT" ]
permissive
ashirey-msft/azure-sdk-for-python
d92381d11c48f194ec9f989f5f803db614fb73f2
e04778e13306dad2e8fb044970215bad6296afb6
refs/heads/master
2020-03-23T06:05:39.283442
2018-09-15T00:18:26
2018-09-15T00:18:26
141,188,192
0
1
MIT
2018-07-16T20:02:52
2018-07-16T20:02:52
null
UTF-8
Python
false
false
1,016
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
660f3817029b61b547d0ad2bb3f7f62f910fc73a
44dc2c2065154fe725dfeb900762da733b62652b
/arduapi/flaskread.py
1919432fbc8a53d2a67873695b525b051767d10a
[ "MIT" ]
permissive
sutt/robojune
3a11ef1db2113f38f08c88ba70dbfbe72ddf0c8d
05b37494c5ea8fcdeeb7e175a83d12d8911c6275
refs/heads/master
2021-01-10T21:11:46.085334
2015-11-02T01:31:59
2015-11-02T01:31:59
37,559,231
0
0
null
null
null
null
UTF-8
Python
false
false
845
py
import os, subprocess, time from flask import Flask, send_file import serial import sys import time from arduino import Arduino #device = '/dev/ttyACM0' #baud = 115200 #timeout = 3 from arduino import Arduino import time def pollj(): ret = [] pin = 1 try: b = Arduino('/dev/ttyACM0') b.output([]) except: ...
[ "wsutton17@gmail.com" ]
wsutton17@gmail.com
2c7ceea8cf55c97d2676d1e1e45510eb0953fb0a
12f9f8b622a8b6bba70ec95bec996a95e8c7521f
/tests/auth/test_create_middleware.py
a1f81681c751b3dd8fcfe1489ead87dbe41542ba
[ "Apache-2.0" ]
permissive
MiquelCollado/talons
84e9f8b9b636a142ff0a5d692b7aa0382668f911
b0c2c349b3bfac4db14e213044dfc963f8dd5f06
refs/heads/master
2021-01-09T08:15:52.802106
2016-04-11T10:30:20
2016-04-11T10:30:20
55,779,159
0
1
null
2016-04-08T12:59:04
2016-04-08T12:59:03
null
UTF-8
Python
false
false
6,319
py
# -*- encoding: utf-8 -*- # # Copyright 2013-2014 Jay Pipes # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "jaypipes@gmail.com" ]
jaypipes@gmail.com
401fb68d523b42981643a1ee581fc03fd7a31b84
fe6e31ed82ba8075895b2435726c6f9b1fff8aff
/gender_predictor_embeddings/visual/head_pose/feature_extraction/feature_extractor.py
b8c7b367213a16a2acbc83e31abe113c1c197c91
[]
no_license
arbaazQureshi/gender_effect_on_depression_estimation
906169f0a41b78379a57cf1157fa83cd88b2f3f3
0ac6a168ab5fe5ad11027e9cfd0fcdb82f8884aa
refs/heads/master
2022-02-12T07:19:39.783739
2019-08-02T13:55:45
2019-08-02T13:55:45
200,239,644
0
0
null
null
null
null
UTF-8
Python
false
false
911
py
from keras.models import Model, load_model from load_data import load_training_data, load_development_data, load_test_data import keras import numpy as np import os from os import path import random #os.environ["CUDA_VISIBLE_DEVICES"]="3,4,5,6" X_train, X_train_gender, Y_train = load_training_data() X_dev, X_dev_ge...
[ "arbaaz.qureshi29@gmail.com" ]
arbaaz.qureshi29@gmail.com
b7f2ce6e5476824d478d0c85a44b8601e96a1deb
afedb9a940f309ead33f1fb568083238cd4927d7
/nemo_text_processing/text_normalization/verbalizers/decimal.py
9ebefebce9c9486b50c6019cb6fab987622bf898
[ "Apache-2.0" ]
permissive
sergiogcharles/NeMo
1ce7b4972d708c5fd875bdf629d783296fdb1847
fcba7eb98f86ca862f4d03141738ecb1b62db046
refs/heads/main
2023-07-16T03:06:06.478682
2021-09-03T04:25:50
2021-09-03T04:25:50
382,719,035
1
0
Apache-2.0
2021-07-03T22:22:53
2021-07-03T22:22:53
null
UTF-8
Python
false
false
2,935
py
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved. # Copyright 2015 and onwards Google, Inc. # # 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/license...
[ "noreply@github.com" ]
sergiogcharles.noreply@github.com
7d138eda19765cf562bd8e203f8519959b34fe3b
c7a5f5c79a3eaf508b8b720f7c954ba7cd256c42
/tceh_all.py
e2a1de7e3e3ffe809e460783865595530850e6fa
[]
no_license
porosya80/st18
c3b11708c65707a480eb80cce689392f66056f36
6ebf53b156b950d7b938e8ab5ca5560e42b06c82
refs/heads/master
2020-03-17T08:58:41.711251
2018-05-26T20:54:26
2018-05-26T20:54:26
133,456,775
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
# first,second,third = [int(input())for i in range(3)] # print (first) # print(max([n for n in [int(input()) for i in range(int(input()))] if not n%4])) # first, second, third = [int(input()) for i in range(3)] # print (first) # print(round(8.5,)) # a,b,l,n = [int(input())for i in range(4)] # # print((a*n)+(2*(b*(n-...
[ "porosya@gmail.com" ]
porosya@gmail.com
77f7f43411c6b933fa856e5aaab3292c0c913aa4
e0f4ff209369036fda8b7e04eefe014f8fc730f7
/terminal/run.py
aa9cf70349bfa2656c6cf030f6d17457266a252c
[]
no_license
GINK03/kotlin-deeplearning
a2b6dc5bfdd7ba6bcc4498e9b76434df07ed6bc6
504910b946d51be8b4800870cad04c54889b0e31
refs/heads/master
2021-01-19T01:17:22.334483
2017-06-28T12:44:16
2017-06-28T12:44:16
95,619,513
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
#! /usr/bin/python3 import glob import os jars = ":".join(glob.glob("jars/*.jar")) print(jars) targets = " ".join(glob.glob("*.kt")) os.system("kotlin -cp {jars} MnistKt".format(jars=jars) )
[ "gim.kobayashi@gmail.com" ]
gim.kobayashi@gmail.com
f17ffe4c7cd13478f977b27796a56f4af1f3441a
7ec5e20097a6d6cca490dbb7200f9d06cdd2b83e
/nikola/data/themes/base/messages/messages_nb.py
a55636c7ee2d83574c978c966959a23aab06873d
[ "MIT" ]
permissive
dnguyen85/nikola
d547f30b3d9e40872a4b88540a0ce8f17bdcbfd9
8fdf2ad99dbca518b67630333b4194eebc95e84d
refs/heads/master
2021-01-18T03:08:24.202369
2015-04-06T15:05:01
2015-04-06T15:05:01
28,894,871
1
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
# -*- encoding:utf-8 -*- from __future__ import unicode_literals MESSAGES = { "%d min remaining to read": "", "Also available in:": "Også tilgjengelig på:", "Archive": "Arkiv", "Categories": "Kategorier", "Comments": "", "LANGUAGE": "norsk", "Languages:": "", "More posts about %s": "Fle...
[ "kwpolska@gmail.com" ]
kwpolska@gmail.com
22a93668b8651ae7b0b89a67fc86d7bad099980f
db326011a46bdc55c64b0c35424df551ed030519
/leetcode/Done/171_ExcelSheetColumnNumber.py
2fb31c6c2f1b7d166296b39e0ecb6927764f4ba2
[]
no_license
humachine/AlgoLearning
ac9a6bd0fdf1293ca63d85732bfbbf864bd68220
2d06ab566c8adc6d864c5565310b56008d2d4b31
refs/heads/master
2020-12-12T07:19:02.518810
2017-04-29T07:15:04
2017-04-29T07:15:04
49,476,721
1
1
null
null
null
null
UTF-8
Python
false
false
534
py
#https://leetcode.com/problems/excel-sheet-column-number/ ''' Given a column title as it appears in Excel, return its column number. Inp: A Out: 1 Inp: 28 Out: AB ''' class Solution(object): def titleToNumber(self, s): colNumber = 0 for char in s: colNumber = colNumber*...
[ "swarun@gmail.com" ]
swarun@gmail.com
a7b360ebe5c30623ba0df568c2d20b11b5bbde27
89a466da200b1ac2d6801a7d871c9bd705ae4a55
/mhdata/io/csv/functions.py
5cf6b8800a1da425448e59737676f2f739a60555
[ "MIT" ]
permissive
kevinn/MHWorldData
43d9a70964d3d3d85a5dd83c6f1b87a78e622326
c2de2692949d82cc2cebe2960b644839774ff833
refs/heads/master
2020-03-19T06:07:31.525424
2018-06-04T08:15:47
2018-06-04T08:15:47
135,992,414
0
0
MIT
2018-06-04T08:12:03
2018-06-04T08:12:03
null
UTF-8
Python
false
false
2,098
py
import csv import mhdata.util as util def determine_fields(obj_list): """ Returns the set of all possible keys in the object list """ fields = [] for obj in obj_list: for key in obj.keys(): if key not in fields: fields.append(key) return fields def validat...
[ "cfern1990@gmail.com" ]
cfern1990@gmail.com
55e9d929cc326b670327eca3a252d8baf47613a2
a2fab78b021469748337bdbe46d60f4b2dccf6b9
/day07/04.列表推导式.py
680b720f616ac347afca63986f2c9b26b5370f40
[]
no_license
yywecanwin/PythonLearning
06175886b42f6ec6be5ee8fa379365779e8e14e6
f59d381692f22b3c7cf605aec88500f6c0267ffc
refs/heads/master
2020-08-01T13:03:17.458829
2020-02-11T02:53:33
2020-02-11T02:53:33
211,006,180
1
0
null
null
null
null
UTF-8
Python
false
false
820
py
# -*- coding: utf-8 -*- # author:yaoyao time:2020/1/10 """ 列表推导式的格式: 列表名 = [x for x in range()函数] 每次循环都得一个数字,然后把x作为元素添加到列表中 在列表推导式中使用 if语句 列表名 = [x for x in range()函数 if 条件] """ list1 = [x for x in range(1,5)] print(list1) # [1, 2, 3, 4] list2 = [x+2 for x in range(1,5)] print(list2) # [3, 4, 5, 6] list...
[ "3216561314@qq.com" ]
3216561314@qq.com
542305827acfa9ffcc98c428407d112932c3e42c
87a9bf07c690a46acd78c833f6321953b9dfe4c2
/ndlib/test/test_mpl_viz.py
2acc1f845002b10b3676eb5bf154cd2ad5570898
[ "BSD-2-Clause" ]
permissive
a1shadows/ndlib
5aea5ecaeb831c78ca2f7fdb630c7abcfb662a4a
11d10340a1aeb7d9a5df2d33b90415187bec6d75
refs/heads/master
2020-04-11T02:02:53.181758
2018-12-11T18:16:20
2018-12-11T18:16:20
161,433,763
0
0
BSD-2-Clause
2018-12-12T04:42:20
2018-12-12T04:42:20
null
UTF-8
Python
false
false
4,521
py
from __future__ import absolute_import import unittest import past import networkx as nx import dynetx as dn from ndlib.viz.mpl.DiffusionPrevalence import DiffusionPrevalence from ndlib.viz.mpl.PrevalenceComparison import DiffusionPrevalenceComparison from ndlib.viz.mpl.TrendComparison import DiffusionTrendComparison...
[ "giulio.rossetti@gmail.com" ]
giulio.rossetti@gmail.com
428b2c9bd0595faa33d2cb70ed59b475944a766f
f2889a13368b59d8b82f7def1a31a6277b6518b7
/1220.py
1384e9aff155acd30ade32550526b7c3f724c600
[]
no_license
htl1126/leetcode
dacde03de5c9c967e527c4c3b29a4547154e11b3
c33559dc5e0bf6879bb3462ab65a9446a66d19f6
refs/heads/master
2023-09-01T14:57:57.302544
2023-08-25T15:50:56
2023-08-25T15:50:56
29,514,867
7
1
null
null
null
null
UTF-8
Python
false
false
349
py
# Ref: https://leetcode.com/problems/count-vowels-permutation/discuss/398286/Simple-Python-(With-Diagram) class Solution: def countVowelPermutation(self, n: int) -> int: a = e = i = o = u = 1 for _ in range(n - 1): a, e, i, o, u = e + i + u, a + i, e + o, i, i + o return (a + e ...
[ "tlhuang@tlhuang.net" ]
tlhuang@tlhuang.net
310af0e71a2c1a5dd1dbea9d6c2cd9bd8f832f6e
7570a9fc71cbf397e2d7c4289dd7404ecba7d3c3
/domain/eggNOG_annotation.py
5bdc32759740ac93e58d5c35a259259cf8de99ef
[]
no_license
compgenomics2019/Team2-FunctionalAnnotation
fd6d1d973f8a6cc4f470d050928386c2e502bbe6
c0a79f4630ac1d987bdf1cf94c19a62f9c7ef92e
refs/heads/master
2020-05-17T01:56:41.357315
2019-04-22T23:55:00
2019-04-22T23:55:00
183,441,594
0
0
null
null
null
null
UTF-8
Python
false
false
816
py
#!/usr/bin/python 3 import sys,os # Usage: eggNOG_annotation <input_file> <output_file> def download_eggnog_database(): # Before annotation, bactNOG database will be checked and installed os.system("python /projects/team2/func_annotation/tools/eggnog/eggnog_dataset/eggnog-mapper-1.0.3/download_eggnog_data.p...
[ "github-noreply@oit.gatech.edu" ]
github-noreply@oit.gatech.edu
e1b9aad955212a8ee83305507d1187706ac95725
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/app/plugin/assembler/sleigh/tree/AssemblyParseBranch.pyi
314137a1dc3c9fdfbdce78e57073fa272aadc98d
[ "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
4,146
pyi
from typing import Iterator from typing import List import ghidra.app.plugin.assembler.sleigh.grammars import ghidra.app.plugin.assembler.sleigh.symbol import ghidra.app.plugin.assembler.sleigh.tree import java.io import java.lang import java.util import java.util.function class AssemblyParseBranch(ghidra.app.plugin....
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
2285aa27bb403fc2a82f9b583e3c7a1e2e9dc1d0
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_3_1/Kaviarasu1212/1B_1.py
7df1ac7c64add6dc880309212494aa22d0954c16
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
1,262
py
from collections import OrderedDict t = int(raw_input()) # read a line with a single integer string = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for z in xrange(1, t + 1): dic = {} def add(m, n): dic[m] = int(n) parties = raw_input() lines = (raw_input()).split() tmp = {add(s, l) for l, s in...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
86fe239587a0df28388efa724d85f8df8c2d614f
18239524612cf572bfeaa3e001a3f5d1b872690c
/clients/oathkeeper/python/test/test_delete_rule_unauthorized.py
fdc1989ad60cebd1009e058791761aae6ffe62dd
[ "Apache-2.0" ]
permissive
simoneromano96/sdk
2d7af9425dabc30df830a09b26841fb2e8781bf8
a6113d0daefbbb803790297e4b242d4c7cbbcb22
refs/heads/master
2023-05-09T13:50:45.485951
2021-05-28T12:18:27
2021-05-28T12:18:27
371,689,133
0
0
Apache-2.0
2021-05-28T12:11:41
2021-05-28T12:11:40
null
UTF-8
Python
false
false
1,120
py
# coding: utf-8 """ ORY Oathkeeper ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validity against a set of rules. This service uses Hydra to validate access tokens and policies. # noqa: E501 The version of the OpenAPI document: v0.0.0-alpha.1 Contact: hi@ory.am Generat...
[ "noreply@github.com" ]
simoneromano96.noreply@github.com
76cbcd52773eb26af701f292287580785287bdf7
8eba18f640337e924418ac33dabd48e029dad59d
/ensemble/core/constraint.py
bacaf46e6b771e7d1d0295fc37d4336e4531b09d
[ "Apache-2.0" ]
permissive
kapilt/ensemble
d776bd7d5163ce8dcf2f49e24264c9c8c9a0a529
8e1a83c767323b6b8403a671e1d090c4f523ca27
refs/heads/master
2021-03-19T10:25:11.063936
2015-04-09T09:10:36
2015-04-09T09:10:36
29,105,726
5
0
null
null
null
null
UTF-8
Python
false
false
2,973
py
import collections from model import CONTAINER_TYPES class ConstraintError(Exception): def __init__(self, msg, value): self.msg = msg self.value = value def __str__(self): return "%s: %r" % (self.msg, self.value) VALID_CONSTRAINTS = [ ("arch", basestring), ('mem', int), ...
[ "kapilt@gmail.com" ]
kapilt@gmail.com
96998048a014b2b2d27c26fd364464117d7d09ee
c9863fbc5523e93f5b3058506a2467b11937747c
/tests/test_store.py
c19d349b5b445c0810b9b9e964f1fb6f0b305ff8
[ "BSD-3-Clause" ]
permissive
kwhitley54/abaco
6e8650f20490c0fa1de476dc70197a898d1a61b1
90f8be328bed3c7242e798da384ddb15b1ffa179
refs/heads/master
2020-03-21T21:26:31.657721
2018-05-10T22:44:59
2018-05-10T22:44:59
139,063,130
0
0
BSD-3-Clause
2018-06-28T20:03:10
2018-06-28T20:03:09
null
UTF-8
Python
false
false
6,340
py
# Unit test suite for the RedisStore class. # This test suite now runs in its own docker container. To build the image, run # docker build -f Dockerfile-test -t abaco/testsuite . # from within the tests directory. # # To run the tests execute, first start the development stack using: # 1. export abaco_path=$(pwd) ...
[ "jstubbs@tacc.utexas.edu" ]
jstubbs@tacc.utexas.edu
740ea9095b5cd579113b7f5aac443421c468cca0
a69221e36e7e0e3dc772994ad743d848be0a2b19
/server/d1/vine_comment/views.py
991ab61a7fbf927d6e9150ba1bf17257dec5cfaf
[]
no_license
cloundpig/vine
033cbcea37f207f7951d05727f60d426a51a6683
8adda1a027356dffa9bee961c57314637509971a
refs/heads/master
2020-12-28T19:22:42.267192
2014-02-21T13:37:46
2014-02-21T13:37:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,062
py
#coding:utf-8 # python modules from urlparse import urlparse import datetime import base64 import logging # django modules from django.http import * from django.shortcuts import render from django.views.generic import * from django.core.paginator import Paginator from django.utils.timezone import utc from django.view...
[ "geekan@foxmail.com" ]
geekan@foxmail.com
3fe56973331c9695ade9251630a9f7f3e90afb8a
d47566b595e23b32ec175dd217c91564e0ac4be2
/supervised_learning/0x03-optimization/3-mini_batch.py
c59aeade76c8adce09bd0be705844240fed629c9
[]
no_license
jhonatang1988/holbertonschool-machine_learning
adf2ed1c6bb537b5430912f5c320ea998818841d
a381edc7c843abb6458d5a70ae91d4f6823c176b
refs/heads/master
2022-10-31T15:27:20.620534
2020-06-19T19:47:38
2020-06-19T19:47:38
256,102,729
0
0
null
null
null
null
UTF-8
Python
false
false
4,085
py
#!/usr/bin/env python3 """ that trains a loaded neural network model using mini-batch gradient descent: """ import tensorflow as tf shuffle_data = __import__('2-shuffle_data').shuffle_data """ returns a mini batch """ def iterate_mini_batches(X, Y, batch_size): """ to get the mini_batch :param X: input...
[ "jhonatan1988@gmail.com" ]
jhonatan1988@gmail.com
2f747f700d9be74b30676ee56289ca41b145d25a
2a6e513b6b01b8c67767efbc471b384aca704170
/configs/yolo/rr_yolov5_416_coco.py
ff30c05dea99e8722d86dcfddbf4c46f56cb945c
[ "MIT" ]
permissive
wulele2/mmdetection-mini
a1bc084ead074ab4845f539f5a34c566c4214c83
f28d3d5de3bd25e9e62910b35f282d5c8d22dd10
refs/heads/master
2022-12-17T15:49:34.404141
2020-09-23T06:58:28
2020-09-23T06:58:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,844
py
_base_ = './rr_yolov3_d53_416_coco.py' # model settings _yolo_type = 0 # 0=5s 1=5m 2=5l 3=5x if _yolo_type == 0: _depth_multiple = 0.33 _width_multiple = 0.5 elif _yolo_type == 1: _depth_multiple = 0.67 _width_multiple = 0.75 elif _yolo_type == 2: _depth_multiple = 1.0 _width_multiple = 1.0 el...
[ "pi@pi.com" ]
pi@pi.com
6b64cf29f72993546e63422981ed1d4101f4ee57
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20180510/DescribeDomainISPDataRequest.py
a4ea0203216352e497f8983e691a0a242b229660
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
1,827
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 file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
f1901061fc376c4f266bbb0b6987b0bf082dbdb3
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/person/person_or_week/world/company_and_early_world.py
873d3ef6bcb356f2e05de9862186086ee3f48dad
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
#! /usr/bin/env python def public_man(str_arg): ask_important_person(str_arg) print('ask_different_year_on_part') def ask_important_person(str_arg): print(str_arg) if __name__ == '__main__': public_man('way')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
dd9a22cb732b22987aa8c1d793704908c284deba
e1dd6d9dccb822d472b7f4f9e8446dd9202eb5a1
/sdk/test/test_io_k8s_api_scheduling_v1alpha1_priority_class_list.py
91e6d3106823298778640877ac5eefe81f83d8da
[]
no_license
swiftdiaries/argo_client
8af73e8df6a28f9ea5f938b5894ab8b7825e4cc2
b93758a22d890cb33cbd81934042cfc3c12169c7
refs/heads/master
2020-05-17T12:11:57.556216
2019-07-24T23:23:33
2019-07-24T23:23:33
183,701,327
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
# coding: utf-8 """ Argo API Client Generated python client for the Argo Workflows # noqa: E501 OpenAPI spec version: v1.14.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import argo.sdk from models.io_k8s_api_sch...
[ "adhita94@gmail.com" ]
adhita94@gmail.com
14b1f862b09f77dcf35003baaafb6a359bc77f29
87ddcf61c2faaaa795b9c25af334a76018337f62
/frictionless/steps/resource/resource_remove.py
eb33e75577b828ae7ca3f8379e6e6b24159fa9cf
[ "MIT" ]
permissive
frictionlessdata/frictionless-py
17d663ad34c18964113c97e4d657004610fe0df0
740319edeee58f12cc6956a53356f3065ff18cbb
refs/heads/main
2023-08-26T16:24:25.353929
2023-08-04T07:55:37
2023-08-04T07:55:37
28,409,905
295
79
MIT
2023-09-04T05:01:33
2014-12-23T17:11:11
Python
UTF-8
Python
false
false
1,004
py
from __future__ import annotations from typing import TYPE_CHECKING import attrs from ... import errors from ...exception import FrictionlessException from ...pipeline import Step if TYPE_CHECKING: from ...package import Package @attrs.define(kw_only=True, repr=False) class resource_remove(Step): """Remov...
[ "noreply@github.com" ]
frictionlessdata.noreply@github.com
9d828dee35c8ce44348f52b28e297da685673576
44d6a0a75d2429fb55f1c9ef587017af152b12e1
/setup.py
24487ad680c6fc90147459b0348b04c5b8f54242
[ "Apache-2.0" ]
permissive
awesome-python/sukhoi
2a5e689ff2ff65048555366c199c3061cf86cf04
699264bad6b6211c6c9a3b179bc71f90d3eddef0
refs/heads/master
2021-01-01T17:11:15.554601
2017-07-22T03:18:13
2017-07-22T03:18:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
492
py
#! /usr/bin/env python2 from distutils.core import setup setup(name="sukhoi", version="0.0.6", py_modules=["sukhoi"], author="Iury O. G. Figueiredo", author_email="ioliveira@id.uff.br", url='https://github.com/iogf/sukhoi', download_url='https://github.com/iogf/sukhoi/releases', ...
[ "ioliveira.id.uff.br" ]
ioliveira.id.uff.br
6293c5d3fae175d66c7be868a6331f60a512330f
e3466d01359ce2ff9f3e3d63eb0971f56f9a0f3f
/tests/test_49.py
c381e7c1975f996dcdf5897f75dd39ea58612a80
[]
no_license
ruan65/python_algorithms_and_problem_solving
e58b683047f23a0b008fdf340a2a5c86811da0bb
96a34b07865a7251be849d3563fbe3fa7e7ee820
refs/heads/master
2023-01-08T23:34:28.385555
2020-11-10T00:01:58
2020-11-10T00:01:58
274,229,123
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
from leetcode.hash_tables.a_49_group_anagrams import group_anagrams def test_find_pivot(): assert group_anagrams(["eat", "tea", "tan", "ate", "nat", "bat"]) is [ ["ate", "eat", "tea"], ["nat", "tan"], ["bat"] ]
[ "ruan65@gmail.com" ]
ruan65@gmail.com
b5297f884feaa246195f4c6df8087343c8288429
9f9f4280a02f451776ea08365a3f119448025c25
/plans/hsppw/qcut_hsp-s_005_base_dummyuniform_hs.py
9cfab912db9e9ac869ac5ce6caf8c2cfb5919b6e
[ "BSD-2-Clause" ]
permissive
dbis-uibk/hit-prediction-code
6b7effb2313d2499f49b2b14dd95ae7545299291
c95be2cdedfcd5d5c27d0186f4c801d9be475389
refs/heads/master
2023-02-04T16:07:24.118915
2022-09-22T12:49:50
2022-09-22T12:49:50
226,829,436
2
2
null
null
null
null
UTF-8
Python
false
false
1,802
py
"""Plan using all features.""" import os.path from dbispipeline.evaluators import CvEpochEvaluator from sklearn.pipeline import Pipeline from sklearn.preprocessing import MinMaxScaler import hit_prediction_code.common as common from hit_prediction_code.dataloaders import ClassLoaderWrapper from hit_prediction_code.da...
[ "mikevo-uibk@famv.net" ]
mikevo-uibk@famv.net
f156b4695c5b84c5de2a1a8cb1c318359848008f
5fea83c6ca1b31cfaf4a95888d876352cdd31355
/FA-env/bin/dotenv
9f9a76b21df9636be9b8d569a47f34c551806eef
[]
no_license
MarcoBurgos/FashionAdviser
3e0a6436bc89669f1ec6fbeb362ce6eb099c8d92
6d8419a7645cb289eb746c229873f791f1b47d61
refs/heads/master
2022-12-14T13:15:34.742233
2020-04-29T00:10:54
2020-04-29T00:10:54
165,940,741
0
0
null
2022-09-16T17:56:25
2019-01-15T23:41:18
Python
UTF-8
Python
false
false
267
#!/Users/marcoburgos/Desktop/website/The_Fashion_Adviser/FA-env/bin/python3 # -*- coding: utf-8 -*- import re import sys from dotenv.cli import cli if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(cli())
[ "marko_burgos@gmail.com" ]
marko_burgos@gmail.com
d64737bce91629e7b7a94ff821b154bee5c61927
8472cda6d4848d9c99518167a6f7a649be4189a0
/tensorGaga.py
e001597089d17edfaa74c027ce0292542991b1bd
[]
no_license
ava11235/machineLearning
f40a63185cb56e9ddac13fc0e58d0fc4c20b7d5e
60ab80d105f1be16de76e54c9d895a4853cc717a
refs/heads/master
2022-05-27T03:01:30.313127
2020-05-04T00:46:08
2020-05-04T00:46:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,776
py
import requests, pandas, io, numpy, argparse, math import numpy as np from nnutils import * from myutils import * from mpmath import * from gdsolvers import * import logging as log import inspect from sklearn.feature_selection import SelectKBest from sklearn.feature_selection import chi2 from sklearn.utils import shuff...
[ "doug.cha@gmail.com" ]
doug.cha@gmail.com
b68975ed6e68d2e215c70eecc0292d37029e4057
ceb71512952a2d3fb2c894463b7e92075ae521d6
/tests/masonry/builders/test_editable.py
07d14d28c9bf20f3f47a3531b24d8cff9011dd4b
[ "LGPL-2.1-only", "BSD-4-Clause", "LGPL-3.0-only", "GPL-2.0-or-later", "LGPL-2.1-or-later", "MIT", "GPL-3.0-only", "GPL-3.0-or-later", "LGPL-3.0-or-later", "BSD-3-Clause", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-free-unknown", "BSD-2-Clause" ]
permissive
kbakk/poetry
ca3f8ea74cd248595beddaf19132944982e1508c
be03ab9ea6d74ca8b9c6e251b71a8c608212dc63
refs/heads/master
2020-04-27T17:57:36.963334
2019-09-10T19:25:50
2019-09-10T19:25:50
174,546,643
0
0
MIT
2019-03-08T13:57:09
2019-03-08T13:57:09
null
UTF-8
Python
false
false
1,704
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from poetry.io import NullIO from poetry.masonry.builders import EditableBuilder from poetry.poetry import Poetry from poetry.utils._compat import Path from poetry.utils.env import MockEnv fixtures_dir = Path(__file__).parent / "fixtures" def test_buil...
[ "sebastien@eustace.io" ]
sebastien@eustace.io
883360b6ce70e81d971c560bac6cf63fb2c6c9aa
005d8a0b6ef8999dc7a7f4222932f9fa3c556304
/problem054.py
ea2ad3f9d499521f0f58a35e7226e3687653ab41
[]
no_license
Roc-J/jianzhioffer
dbb3c7dd05b5ebf0437987f636970ede805a7450
0d52a08a52a2d6283a71569cbfc307cf57e54db2
refs/heads/master
2020-03-08T03:25:13.486779
2018-04-07T07:05:35
2018-04-07T07:05:35
127,890,369
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: qjk class Solution: # 返回对应char def __init__(self): self.s = '' self.d = dict() def FirstAppearingOnce(self): # write code here d = dict() for i in self.s: if self.d[i] == 1: return i...
[ "646481338@qq.com" ]
646481338@qq.com
8c4610a39b72ae3ae43690b931b8ba9f4f1f2d22
caf376f4cea37094718590f48296c24ff007a08e
/model.py
3347d55aa6a1cd8d3f04d146974a0ab04f02507d
[]
no_license
prdx/client-server-modelling
e874b88513057d4c705a6ebf82ef39af3713fe08
0b6380c91bef15ad86e557cc841ffae789da346f
refs/heads/master
2020-04-27T09:16:21.053318
2019-03-11T16:27:45
2019-03-11T16:27:45
174,207,602
0
0
null
null
null
null
UTF-8
Python
false
false
572
py
from sklearn.linear_model import LogisticRegression from sklearn.metrics import roc_curve class Model(): @staticmethod def train_and_test(X_train, X_test, y_train, y_test, c): classifier = LogisticRegression(C=c) clf = classifier.fit(X_train, y_train) probs = clf.predict_proba(X_test) ...
[ "astungkara.project@gmail.com" ]
astungkara.project@gmail.com
b53bbd98f2b6fc35a1feb2a2318ec5af909efb0c
b1b7206d4c8fb878e47bd2cd3a4e6b2a1f94cdc4
/hw3/code/WGAN/test.py
b59d0c66138daadb48ded2b355b82b6d06d20360
[]
no_license
vachelch/MLDS
a6752e2e568841841389e50e7750d658e2157c29
e4fcaeae3b8a63aaefbf07b9ca0c107e9601ad31
refs/heads/master
2020-05-04T23:08:00.507062
2019-04-04T16:56:23
2019-04-04T16:56:23
179,533,690
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
from my_models import * import os import numpy as np from utils import * generator = Generator() generator = generator.cuda() generator.load_state_dict(torch.load('generator.pt')) save_imgs(generator)
[ "r06944043@ntu.edu.tw" ]
r06944043@ntu.edu.tw
443c5e0c01391d99b7dd61ec8902b9eaf39bf244
149baa65329d0e13ae3189b8127d2eff5f5fdf77
/bot_ws/build/baxter_pkg/rbt_baxter_interface/catkin_generated/pkg.installspace.context.pc.py
bacf6a48773a9bc8cd9f85ccedfe202d6d143dc4
[]
no_license
mtbthebest/imitation_learning
20b990aa7396fecbe5433c7703f353bf99fa5f2c
4c08192e31062f69056cc36efffb7a2ce0264244
refs/heads/master
2020-05-21T17:05:26.567273
2019-09-16T12:20:19
2019-09-16T12:20:19
186,111,790
2
0
null
null
null
null
UTF-8
Python
false
false
564
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/mtb/sim_ws/bot_ws/install/include".split(';') if "/home/mtb/sim_ws/bot_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "rospy;actionlib;sensor_msgs;std_msgs;control_msgs;trajectory_msg...
[ "mtbthebest11@gmail.com" ]
mtbthebest11@gmail.com
b0e15d37847e40e2d43012519edcc9fdec68eba6
51a5e2151ba547e19a4361a4fc90504f484766a0
/pubsub/pubsub_example.py
5b9588796c7d422e1b3a7e5b88df446140d90c79
[ "Unlicense" ]
permissive
pyxll/pyxll-examples
3370685c525912420b84614ac5b9819a37dbb863
4843c952201c6c60e11910cda24dd67ebe78ff26
refs/heads/master
2023-07-22T01:48:58.330009
2023-07-06T13:37:58
2023-07-06T13:37:58
16,145,984
101
61
Unlicense
2019-12-13T11:32:18
2014-01-22T17:09:38
Python
UTF-8
Python
false
false
1,474
py
""" Excel functions "publish" and "subscribe" for passing values between workbooks. An RTD function is used for subscribe so that published values are updated in read time. """ from pyxll import xl_func, RTD import pubsub class SubscriberRTD(RTD): """RTD class that updates whenever a value is published on a ...
[ "tony@pyxll.com" ]
tony@pyxll.com
b20f3312ae59e35e5f0129082949ca13651b5948
bd6fd6bb82bf3179a4571c7a2ca3a030f5684c5c
/mundo1-Fundamentos/033 - Maior e menor valores.py
f121d2d706e97423255c3fdba570d107417e4f2b
[ "MIT" ]
permissive
jonasht/CursoEmVideo-CursoDePython3
b3e70cea1df9f33f409c4c680761abe5e7b9e739
a1bbf1fe4226b1828213742ee5a440278d903fd1
refs/heads/master
2023-08-27T12:12:38.103023
2021-10-29T19:05:01
2021-10-29T19:05:01
276,724,139
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
#Exercício Python 033: Faça um programa que leia três números e mostre qual é o maior e qual é o menor. n1 = int(input('qual n 1:')) n2 = int(input('qual n 2:')) n3 = int(input('qual n 3:')) # maior if n1 > n2 and n1 > n3: nm = n1 elif n2 > n3: nm = n2 else: nm = n3 # N menor if n1 < n2 and n1 ...
[ "jhenriquet@outlook.com.br" ]
jhenriquet@outlook.com.br
ebc9dec6fd5ef7c0ef281d04b983e67f5116ee2b
8cbe4f97176a01d6a64ab33e32ad9896a0266670
/anna_code/postprocessing/tally_vars_by_activity_QC.py
7781b47c32600b7bbf87ade0c29da09fd679f81c
[]
no_license
HongyuanWu/ukbb-1
33228c189acad5f28d3d892f761ebc6a29627c38
b52a431c0d35f4a5d49b0541a42a4a840d086e02
refs/heads/master
2022-03-31T04:13:55.367963
2020-01-21T20:50:54
2020-01-21T20:50:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
data=open("top_snps_activity_merged.annotations",'r').read().strip().split('\n') hits=dict() for line in data[1::]: tokens=line.split('\t') snp=tokens[0] features=tokens[4].split(',') for f in features: if f not in hits: hits[f]=1 else: hits[f]+=1 for key in hits:...
[ "annashcherbina@gmail.com" ]
annashcherbina@gmail.com
2bfa0ce9c59b305fc35a0ff7a9446b4ae5b3a3c2
5bce1118b13289308d23510f323c79aa972ddc27
/tests/nsadmin/test_Others.py
e22c83c34ca74415c9300b6ee043be64be6f04f1
[]
no_license
anupsl/pyApps
62b64b90723de32684bbabee402220317a4fe817
2651d502c366b87449a0c977a9876cc32521c57c
refs/heads/master
2022-07-03T05:49:12.828630
2020-05-10T17:25:26
2020-05-10T17:25:26
255,157,123
0
0
null
null
null
null
UTF-8
Python
false
false
2,559
py
import pytest, time from src.Constant.constant import constant from src.utilities.logger import Logger from src.modules.nsadmin.nsadminObject import NSAdminObject from src.modules.nsadmin.nsadminHelper import NSAdminHelper from src.utilities.assertion import Assertion from src.utilities.dbhelper import dbHelper clas...
[ "anup@CAP-LAP-450.local" ]
anup@CAP-LAP-450.local
8d7563a031d30b049fcbaf5250b26cb087d3c079
01431aec3d6084b77faa62eae962c3a5ce07621a
/leetcode105_从前序与中序遍历序列构造二叉树.py
202d375ee0e42ca3f5356c05facbc5a07fc358a5
[]
no_license
jiyali/python-target-offer
e952cc77b0b3c4e4c77f5b9f67ef61bd7413354c
214176b25caffea647f87bf816d3d712293c7c7f
refs/heads/master
2020-07-29T05:53:57.930631
2020-05-13T15:04:08
2020-05-13T15:04:08
209,690,069
0
1
null
null
null
null
UTF-8
Python
false
false
825
py
# 根据一棵树的前序遍历与中序遍历构造二叉树。 # # 注意: # 你可以假设树中没有重复的元素。 # # 例如,给出 # # 前序遍历 preorder = [3,9,20,15,7] # 中序遍历 inorder = [9,3,15,20,7] # 返回如下的二叉树: # # 3 # / \ # 9 20 # / \ # 15 7 class TreeNode: def __init__(self, val): self.left = None self.right = None self.val = val class So...
[ "762115542@qq.com" ]
762115542@qq.com
5099c2dc80a09516d3c1328df48b2764a0844eb4
70fa6468c768d4ec9b4b14fc94fa785da557f1b5
/lib/surface/genomics/variants/__init__.py
08b432904c8af9977206806de963c5e199adca65
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
kylewuolle/google-cloud-sdk
d43286ef646aec053ecd7eb58566ab2075e04e76
75f09ebe779e99fdc3fd13b48621fe12bfaa11aa
refs/heads/master
2020-04-20T22:10:41.774132
2019-01-26T09:29:26
2019-01-26T09:29:26
169,131,028
0
0
NOASSERTION
2019-02-04T19:04:40
2019-02-04T18:58:36
Python
UTF-8
Python
false
false
952
py
# -*- coding: utf-8 -*- # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
4e3d1907bb316b670826da9ac10338ce10d5d3b5
1498148e5d0af365cd7fd16197174174a7fa9800
/leetcode/t000053_2.py
4ee38bb2d8417261c6a6afe2dc5f48d18c829cbc
[]
no_license
feiyanshiren/myAcm
59a2b80fe7e02787defcb152eee3eae26135322a
00c7082d5143ddf87aeeafbdb6ce29da46dc8a12
refs/heads/master
2023-09-01T12:12:19.866447
2023-09-01T09:09:56
2023-09-01T09:09:56
148,560,672
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
class Solution(object): def maxSubArray(self, nums): """ :type nums: List[int] :rtype: int """ for i in range(1, len(nums)): nums[i]= nums[i] + max(nums[i-1], 0) return max(nums)
[ "feiyanshiren@163.com" ]
feiyanshiren@163.com
d7e48fdcd763b3de49b3c65e41de3fd3ab4cebf3
ec74264a844df78b9ca4e4b30a345333a1bff67e
/core/migrations/0017_auto_20191101_1511.py
26c462e656f6992f707291691ff933bb394971f3
[]
no_license
vo0doO/shop-django-low-api
56b834cd96625e9b9c129b63931a500560257fbc
31c47f85d5cbcc0a56fdf37ce4be37cf6fd3f260
refs/heads/master
2022-12-08T17:46:26.650892
2022-01-07T05:15:10
2022-01-07T05:15:10
239,268,021
0
0
null
2022-12-08T05:26:12
2020-02-09T08:02:49
JavaScript
UTF-8
Python
false
false
428
py
# Generated by Django 2.2.4 on 2019-11-01 12:11 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0016_auto_20191101_1504'), ] operations = [ migrations.RemoveField( model_name='robo', name='OutSum', ), ...
[ "kirsanov.bvt@gmail.com" ]
kirsanov.bvt@gmail.com
066f42d940802986626639b7ed910f16b77441d1
94a2c4417c1fdd8577a75b09a17912ebae129e6c
/ramda/clone.py
5e8dce89ea948ae7fa57ad08440e43aeccf59317
[ "MIT" ]
permissive
slavaGanzin/ramda.py
ad88a3cf6e7eb1461d4a09aad35ae1c18ca32db8
634bfbe0dcb300315ded327756cb3e33241589b8
refs/heads/master
2023-01-23T04:43:48.485314
2023-01-06T10:11:53
2023-01-06T10:11:53
142,413,822
68
7
MIT
2021-12-22T13:59:56
2018-07-26T08:43:31
Python
UTF-8
Python
false
false
291
py
import copy def clone(v): """Creates a deep copy of the value which may contain (nested) Arrays and Objects, Numbers, Strings, Booleans and Dates. Functions are assigned by reference rather than copied Dispatches to a clone method if present""" return copy.deepcopy(v)
[ "slava.ganzin@gmail.com" ]
slava.ganzin@gmail.com
da640d0b089d1eadb8045bcba0f38aa1d7c2532c
be2218324cc88daf27053262749a4ebb6b963403
/clustering/__init__.py
4a039b642c7b9579f49918579f5d8247f1eac3de
[]
no_license
imjwpak/tensor_mlearn
06bc003199530896885a9fb08f2b98fa3c770f1f
dce16f642dcdd23b81fd9e2811b6216b5ef45442
refs/heads/master
2020-07-21T14:41:48.346389
2019-09-07T09:27:30
2019-09-07T09:27:30
206,898,329
0
0
null
null
null
null
UTF-8
Python
false
false
361
py
import mglearn import matplotlib.pyplot as plt mglearn.plots.plot_knn_regression(n_neighbors=1) # 점들을 한 곳으로 회귀 시켜 군집을 만듬. 가까운 곳으로 모은다고 보면 됨. #mglearn.plots.plot_knn_classification() # 산점도 등에서 카테고리화하여 군집 만듬. # 이웃한 값(nn)이 1일 때 알고리즘 plt.show()
[ "imjwpak83@naver.com" ]
imjwpak83@naver.com
9826f211d3f884b33fa25a3b30777346957d51ad
39d2dc8d049870b02bb0f4a31eacca97db72ed91
/PasswordGenerator.py
e7c2b0c6115b9ed93f11745634849968deea61c7
[]
no_license
hellohaoyu/codeEveryDay
41f5e68e195d0ed967c02d48f78d147ed45ab1ff
d8b2ccd87cf12d4e4924f95965bc9b92d955fc45
refs/heads/master
2018-09-30T21:33:45.165171
2018-07-24T17:10:59
2018-07-24T17:10:59
120,859,481
1
0
null
null
null
null
UTF-8
Python
false
false
1,311
py
# -*- coding: utf-8 -*- # 设计一个密码生成器,生成8位的,包含以下四种信息(大写字母, 小写字母, 特殊符号,数字)每个至少一个的密码。 # Follow up是如果位数也是随机的(不是8位固定),然后信息组数也是随机的,比如不一定要每一种信息都有怎么办. from random import randint, shuffle, choice DIGIT_START = '0' LOWERCASE_START = 'a' UPPERCASE_START = 'A' SPECIAL_CHARS = "&*%$#@!^" def getRandomCharInRange(startChar, offse...
[ "haoyuatusa@gmail.com" ]
haoyuatusa@gmail.com
a87e03fb707e6d2e2e399c37be2e4f052c32cf1a
3ab8098dc451e5f0305176de4b29dce9da83ccff
/experimental/soundwave/bin/soundwave
c81a32a3553f8d3c3447363103cf77dac4809d73
[ "BSD-3-Clause" ]
permissive
bbalegre/catapult
74557c821029990e3672904dca1e65d3b4bed7be
a2271985335430f09da172cd3589e27702f6eff1
refs/heads/master
2020-03-09T21:05:46.746633
2018-04-09T21:17:51
2018-04-10T20:46:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,809
#!/usr/bin/env python # Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import logging import oauth2client.tools import os import sys SOUNDWAVE_ROOT_PATH = os.path.normpath(os.path.join( ...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
605d796d057e31749079eac54eb9a5452c40201c
fdc12a3c059c62e0ab28ce6628b52a84a381fb3c
/args_app/factories.py
21de5048c11551ea51fe5cb6ee414542ba2c4c3e
[ "Unlicense" ]
permissive
thinkAmi-sandbox/django-datatables-view-sample
8051bb8e06ff26472a353c13dba61e3d9d6ac21e
ac3df721089489e61c09ac75d320be3704c72105
refs/heads/main
2022-12-30T11:55:45.693297
2020-10-20T13:08:46
2020-10-20T13:08:46
302,014,037
0
0
null
null
null
null
UTF-8
Python
false
false
247
py
import factory from args_app.models import Color, Apple class ColorFactory(factory.django.DjangoModelFactory): class Meta: model = Color class AppleFactory(factory.django.DjangoModelFactory): class Meta: model = Apple
[ "dev.thinkami@gmail.com" ]
dev.thinkami@gmail.com
1bf01aaab3129263aa48654e86146a84edd9e64d
6496d7ab505ab1df594d373c0c58206d580302f6
/listas15.py
bf46375f44cc01ff62937b08d52956d69fea7a6b
[]
no_license
alicesilva/P1-Python-Problemas
7050f323a073ff51c51cd94d451bddfac71bf30b
eade521a3c7f740bb901a6714385d91356a37835
refs/heads/master
2020-03-09T21:04:32.211493
2018-08-25T19:50:53
2018-08-25T19:50:53
129,000,364
0
0
null
null
null
null
UTF-8
Python
false
false
524
py
#coding: utf-8 n = int(raw_input()) soma = 0 notas = [] for i in range(n-1): nota = float(raw_input()) soma += nota notas.append(nota) print len(notas) for i in range(len(notas)): print notas[i], print for i in range(len(notas)): print notas[(len(notas)-1-i)] print soma media = soma / len(notas) print med...
[ "alice.silva@ccc.ufcg.edu.br" ]
alice.silva@ccc.ufcg.edu.br
80be0f054ba9e7b3bb507553b606ceffe5740641
6f05f7d5a67b6bb87956a22b988067ec772ba966
/data/test/python/77b42abc6f92deabc06ce3a977d85c8cf6f1baddbrocade_openflow.py
77b42abc6f92deabc06ce3a977d85c8cf6f1badd
[ "MIT" ]
permissive
harshp8l/deep-learning-lang-detection
93b6d24a38081597c610ecf9b1f3b92c7d669be5
2a54293181c1c2b1a2b840ddee4d4d80177efb33
refs/heads/master
2020-04-07T18:07:00.697994
2018-11-29T23:21:23
2018-11-29T23:21:23
158,597,498
0
0
MIT
2018-11-21T19:36:42
2018-11-21T19:36:41
null
UTF-8
Python
false
false
7,407
py
#!/usr/bin/env python import xml.etree.ElementTree as ET class brocade_openflow(object): """Auto generated class. """ def __init__(self, **kwargs): self._callback = kwargs.pop('callback') def openflow_controller_controller_name(self, **kwargs): """Auto Generated Code ...
[ "aliostad+github@gmail.com" ]
aliostad+github@gmail.com
af572a301e1bd59801fdaa6a29adabe23949ad95
9ce18ec07889cf7a7590bbbc51a38713449d9ca0
/dino/hooks/request_admin.py
8969765337ddf921246d3d6b821513b2fda0bb4f
[ "Apache-2.0" ]
permissive
Xlzman/dino
66e38dd8c839a02f17ee19198e5cc7cc388d0b5b
3a6cbf45525a2733e47ea1dcbb52fd49d3264e3c
refs/heads/master
2021-06-10T14:42:24.315979
2017-02-28T04:50:38
2017-02-28T04:50:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,395
py
# 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 writing, software # distributed under the Li...
[ "oscar.eriks@gmail.com" ]
oscar.eriks@gmail.com
7e560457beed4dbcd76b6ee7e3431792868317f4
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2368/60703/282549.py
4f8f215be000ebe2e915727b1bcd73e35d82acb5
[]
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
555
py
n=int(input()); ans=[]; for i in range(n): N=int(input()); numList =[int(x) for x in input().split()]; res=[] for i in range(0,N): if(i%2==0): numList.sort(reverse=True) res.append(numList[0]); numList = numList[1:]; else: numList.sort(); ...
[ "1069583789@qq.com" ]
1069583789@qq.com
7f74dbb5f295dcb18e480a1f506667c0bc4bcf08
a2d010722fbb3f286300d871aa950d761df2c15f
/gjk/urls.py
347454b25181a3e1a1231f55556fae84ad3b456c
[]
no_license
shitly/django-form-test
3af282705f48385af938332c2e5ac633f45151cc
efc634be9ce83e4059c3325f2bd6c73a6a8cf8c0
refs/heads/master
2020-12-02T21:09:58.881731
2017-08-30T09:57:47
2017-08-30T09:57:47
96,264,251
0
0
null
null
null
null
UTF-8
Python
false
false
1,003
py
from django.conf.urls import url from . import views app_name = 'gjk' urlpatterns = [ url(r'^$', views.homepage, name='index'), url(r'^tag/$', views.tag_articles, name='tag_articles'), url(r'^show/$', views.show, name='show'), url(r'^manager/$', views.manager, name='manager'), url(r'^td/$', view...
[ "you@example.com" ]
you@example.com
f62b72413702704c01f5b1a038138d18705e450e
8f78d0eb7d8ac8c0ab70cc512d1c0c181f2e70ba
/users/forms.py
e3802e1c41f404422fdaf121b8aeea1172025d3b
[]
no_license
liuyuhang791034063/django_auth_example
77f1bdc3358290d31f46ad25dfa96ec704a6a09c
5836ab04df5c20948242f21cc5d6d735270bff03
refs/heads/master
2021-04-06T17:40:31.641316
2018-03-10T12:02:23
2018-03-10T12:02:23
124,651,089
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
#!/usr/bin/python3 # _*_ coding: utf-8 _*_ # @Time : 2018/3/8 21:06 __author__ = 'White' from django.contrib.auth.forms import UserCreationForm from .models import User class RegisterForm(UserCreationForm): class Meta(UserCreationForm.Meta): model = User fields = ("username", "email...
[ "liuyuhang791034063@qq.com" ]
liuyuhang791034063@qq.com
cd77f129562f8c7a3bc9bcc84aa8341c72c54327
ae7ba9c83692cfcb39e95483d84610715930fe9e
/yubinbai/pcuva-problems/UVa 11060 beverages/main.py
c95cb450030a724903bfe1fe0ae996801ebf8c63
[]
no_license
xenron/sandbox-github-clone
364721769ea0784fb82827b07196eaa32190126b
5eccdd8631f8bad78eb88bb89144972dbabc109c
refs/heads/master
2022-05-01T21:18:43.101664
2016-09-12T12:38:32
2016-09-12T12:38:32
65,951,766
5
7
null
null
null
null
UTF-8
Python
false
false
922
py
import sys import numpypy as np def dfs(s): visited[s] = 1 for i in reversed(range(m)): if not visited[i] and edges[s, i]: dfs(i) topoResult.append(s) sys.stdin = open('input.txt') case = 0 while True: case += 1 if case != 1: try: raw_input() except...
[ "xenron@outlook.com" ]
xenron@outlook.com
31d38b6e67151515a3288047f8308398eb766bf3
d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3
/chromium/third_party/blink/renderer/build/scripts/json5_generator_unittest.py
888ce91c38a8b618ee0bbd09b452102d5e36254e
[ "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft" ]
permissive
Csineneo/Vivaldi
4eaad20fc0ff306ca60b400cd5fad930a9082087
d92465f71fb8e4345e27bd889532339204b26f1e
refs/heads/master
2022-11-23T17:11:50.714160
2019-05-25T11:45:11
2019-05-25T11:45:11
144,489,531
5
4
BSD-3-Clause
2022-11-04T05:55:33
2018-08-12T18:04:37
null
UTF-8
Python
false
false
1,576
py
# Copyright 2019 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import os import unittest from json5_generator import Json5File class Json5FileTest(unittest.TestCase): def path_of_test_file(self, file_name): ...
[ "csineneo@gmail.com" ]
csineneo@gmail.com
2b1d8cf09559440dbb0adfab1aaf980d6f8ab8bd
d700b9ad1e0b7225871b65ce0dafb27fb408c4bc
/students/k3343/kursoviks/Artamonova__Valeriya/server/school/service.py
60f1a074b4547d4a63db407529e732ba4718d3b5
[ "MIT" ]
permissive
TonikX/ITMO_ICT_WebProgramming_2020
a8c573ed467fdf99327777fb3f3bfeee5714667b
ba566c1b3ab04585665c69860b713741906935a0
refs/heads/master
2023-01-11T22:10:17.003838
2020-10-22T11:22:03
2020-10-22T11:22:03
248,549,610
10
71
MIT
2023-01-28T14:04:21
2020-03-19T16:18:55
Python
UTF-8
Python
false
false
833
py
from django_filters import rest_framework as filters from .models import Timetable def get_client_ip(request): """Получение IP пользоваеля""" x_forwarded_for = request.META.get('HTTP_X_FORWARDED_FOR') if x_forwarded_for: ip = x_forwarded_for.split(',')[0] else: ip = request.M...
[ "noreply@github.com" ]
TonikX.noreply@github.com
1ef3b27f800319086a35bf35800651fade680fc8
ffaa08eb2dd355c089de5dec396970489b71e8a9
/lsvine/cli.py
8c89b506661302ed98e5f3a57248f31ec61b8648
[ "Apache-2.0" ]
permissive
AndydeCleyre/lsvine
1828afaeb5d72a4feef6720be2f4f210879e277a
e5e5a75ee77262406817a209209b3b2ed515fe82
refs/heads/master
2020-12-05T14:59:41.862531
2020-01-06T10:54:35
2020-01-06T10:54:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,264
py
""" Installation: pew new os2d pip3 install tabulate pandas termcolor python3 ls_trello.py testdir Example: Check README """ from tabulate import tabulate import sys from os import listdir from os.path import isfile, join import pandas as pd import click def doit(mypath): # files list onlyfiles = listdir(m...
[ "shadiakiki1986@gmail.com" ]
shadiakiki1986@gmail.com
8ce8e4ef325624bb9e0655cae63191ef094371cc
7473d931134c444de3dfe61875e5245e9a4ba319
/anchore_engine/subsys/events/util.py
cd0ba2d6d7e0aa982b38793093ec385e7a818623
[ "Apache-2.0" ]
permissive
anniyanvr/anchore-engine
7eb693a8761e11f9d1f1f40b998d36c7cb76a36d
f5ffac25aea536016dd08734b4a2aa2746be1f1d
refs/heads/master
2023-03-08T23:46:30.663379
2023-01-26T23:58:10
2023-01-26T23:58:10
193,227,499
0
0
Apache-2.0
2023-02-26T10:35:37
2019-06-22T11:42:50
Python
UTF-8
Python
false
false
1,367
py
from anchore_engine.subsys.events import UserAnalyzeImageCompleted def fulltag_from_detail(image_detail: dict) -> str: """ Return a fulltag string from the detail record :param image_detail: :return: """ return ( image_detail["registry"] + "/" + image_detail["repo"] ...
[ "noreply@github.com" ]
anniyanvr.noreply@github.com
5ed84f18f36861bec36d788cadbe3021d35d6b8c
7b3711d4c6d7284255ba0270d49d120f984bf7c6
/problems/1042_flower_planting_with_no_adjacent.py
c7fffc9b10c0c01625b8550938808f5744a2147c
[]
no_license
loganyu/leetcode
2d336f30feb55379aaf8bf0273d00e11414e31df
77c206305dd5cde0a249365ce7591a644effabfc
refs/heads/master
2023-08-18T09:43:10.124687
2023-08-18T00:44:51
2023-08-18T00:44:51
177,875,222
0
0
null
null
null
null
UTF-8
Python
false
false
1,486
py
''' You have N gardens, labelled 1 to N. In each garden, you want to plant one of 4 types of flowers. paths[i] = [x, y] describes the existence of a bidirectional path from garden x to garden y. Also, there is no garden that has more than 3 paths coming into or leaving it. Your task is to choose a flower type for e...
[ "logan.yu@cadre.com" ]
logan.yu@cadre.com
d4f68fd614b346026822f798ad2e389071c89b6c
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/5xPh4eEAtpMdXNoaH_4.py
c4a7a3842f5d6ecc38bc213f50033bbb75a18ecb
[]
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
437
py
""" Given a string `s`, return the length of the longest palindrome that can be built with those letters. ### Examples longest_palindrome("a") ➞ 1 longest_palindrome("bb") ➞ 2 longest_palindrome("abccccdd") ➞ 7 longest_palindrome("") ➞ 0 ### Notes N/A """ def longest_palindrome(...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
99f67765e13fa42f8edf487574f567d68b1abe02
7fc47b9e72bbdd4a1d5d55ab784b7d3bbf4b0317
/src/the_tale/the_tale/game/map/tests/test_storage.py
317c6b47bf589f207200453b487a83d66eec5f53
[ "BSD-3-Clause" ]
permissive
warkb/the-tale
cc8008fbb9cc4c34ac9d8259731fec207eded449
833ac0b7e8ddc1f92b0f2495b3a52b83fda707ef
refs/heads/master
2020-05-29T14:45:59.737509
2019-05-12T21:26:32
2019-05-12T21:26:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,056
py
import smart_imports smart_imports.all() class BaseMagicMapTests(utils_testcase.TestCase): def setUp(self): super().setUp() self.place_1, self.place_2, self.place_3 = game_logic.create_test_map() def test_magic_setupped(self): for x in range(map_conf.settings.WIDTH): fo...
[ "a.eletsky@gmail.com" ]
a.eletsky@gmail.com
366b2558de79ea5e75153930342f132d9704c506
060ce17de7b5cdbd5f7064d1fceb4ded17a23649
/fn_elasticsearch/tests/test_version_mocking.py
361fb89ae39b4700a489ba03a783a7fc6f695725
[ "MIT" ]
permissive
ibmresilient/resilient-community-apps
74bbd770062a22801cef585d4415c29cbb4d34e2
6878c78b94eeca407998a41ce8db2cc00f2b6758
refs/heads/main
2023-06-26T20:47:15.059297
2023-06-23T16:33:58
2023-06-23T16:33:58
101,410,006
81
107
MIT
2023-03-29T20:40:31
2017-08-25T14:07:33
Python
UTF-8
Python
false
false
1,893
py
import mock from fn_elasticsearch.components.fn_elasticsearch_query import FunctionComponent class TestMockVersionInputs(object): """ [Class for version check differences] """ def test_perform_search_old(self): """ [Test 6.0.0 with doctype] """ es_instance_info = {'c...
[ "shane.curtin@ie.ibm.com" ]
shane.curtin@ie.ibm.com
8ea97d48498c560ed80a2bc1a7fe0fb38017b06b
ed248888952cf1b36f6e25e8b7319c3586753b29
/litex_boards/platforms/genesys2.py
072b951ffe68e19802edc4f0c17b63e48e073602
[ "BSD-2-Clause" ]
permissive
storborg/litex-boards
0010ca20822c5f670dbbbabae31f2c275bd09a5d
45bb329b5638f435d561e009b62547c2827f66e2
refs/heads/master
2022-12-02T08:30:32.162376
2020-08-07T17:26:12
2020-08-07T17:26:12
287,456,998
0
0
BSD-2-Clause
2020-08-14T06:05:55
2020-08-14T06:05:54
null
UTF-8
Python
false
false
6,266
py
# This file is Copyright (c) 2018-2019 Florent Kermarrec <florent@enjoy-digital.fr> # License: BSD from litex.build.generic_platform import * from litex.build.xilinx import XilinxPlatform, VivadoProgrammer from litex.build.openocd import OpenOCD # IOs ------------------------------------------------------------------...
[ "florent@enjoy-digital.fr" ]
florent@enjoy-digital.fr
d8b37a7e89c630296b070e489391c300958b0cec
491f422f8508e3394257d5a1b2df6b755b7fa553
/lesson_2903/03_conditions.py
6ee47a9803f3cb51edd2e7186e215c856b6cddab
[]
no_license
100ballovby/CampLessons_0321
029d9e66f1209ac92110dd8a503c2beb80dc62b7
24a0225d0394e8438541bedbc825df2d6275e468
refs/heads/master
2023-03-29T14:20:07.371350
2021-03-30T12:15:01
2021-03-30T12:15:01
352,614,046
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
'''Ветвление - конструкция, которая позволяет задать вариативность вашей программе ''' age = int(input('Сколько вам лет? ')) # позволяет ввести значение с клавиатуры print(type(age)) if 16 <= age <= 18: # условие 1 print('Вы можете пройти, но будут ограничения!') # действия для условия 1 elif age <= 16: # усл...
[ "greatraksin@icloud.com" ]
greatraksin@icloud.com
0afc40664b8b2ede4285301ae1c3f42c601b1321
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2889/61020/304687.py
2095bfc6dd1560cc5aab96c4c947a3a88917bcd6
[]
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
160
py
# 3 # 50 50 100 # # 66.666667 n = int(input()) pis = input().split() for i in range(n): pis[i] = int(pis[i]) print('{0:.6f}'.format(sum(pis) / (n * 100)))
[ "1069583789@qq.com" ]
1069583789@qq.com
dbfe5973d3671065cd5bf6ce4b55ec7ba4a937e7
79104c99db93c9abf941f64057210a993fec956a
/scrapy/contrib/linkextractors/htmlparser.py
aa68ce52f968de10605f6e85bbe28b3e2a8c8c4d
[ "BSD-3-Clause" ]
permissive
craftsmanTek/scrapy
89bbb8ebef53093eae413c9a42fe6ffe83123011
8391b362518c5602867afebda81b1f42536f48b6
refs/heads/master
2023-05-01T04:36:20.615072
2013-03-13T06:24:25
2013-03-13T06:24:25
8,756,947
0
0
BSD-3-Clause
2023-04-15T11:24:43
2013-03-13T16:49:44
Python
UTF-8
Python
false
false
2,447
py
""" HTMLParser-based link extractor """ from HTMLParser import HTMLParser from urlparse import urljoin from w3lib.url import safe_url_string from scrapy.link import Link from scrapy.utils.python import unique as unique_list class HtmlParserLinkExtractor(HTMLParser): def __init__(self, tag="a", attr="href", pro...
[ "pablo@pablohoffman.com" ]
pablo@pablohoffman.com
857321cd0e5c030880947f23d78de8a134c71797
6b6a5d3f0815b64f5c0c51d69c2e8ad6bac8c6f2
/blogproject/blogapp/migrations/0001_initial.py
c72d5ea721d056e10955c0b4e1d1eb18a15eef81
[]
no_license
sohui0103/docker
41562a4344de777d42b09d19d9c75101d7e1eb41
1e9bba833b0df614763d561f70409c5e14751461
refs/heads/master
2023-06-20T20:20:18.452313
2021-07-29T06:25:16
2021-07-29T06:25:16
386,577,041
0
1
null
null
null
null
UTF-8
Python
false
false
650
py
# Generated by Django 3.2.4 on 2021-06-28 14:30 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Blog', fields=[ ('id', models.BigAutoField(...
[ "renee8369@likelion.org" ]
renee8369@likelion.org
804ecbba2bc535428f64b6c1f862e4e2ca303da7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03578/s616813846.py
1dea97b927faede1773e5854dd44251df6d2cf21
[]
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
270
py
n=int(input()) d=sorted(list(map(int,input().split()))) d.append(-1) m=int(input()) t=sorted(list(map(int,input().split()))) x=0 f=0 for i in range(m): while d[x]!=t[i]: x+=1 if x==n: print("NO") exit() x+=1 print("YES")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
52c644d301f22e828fd480fd69488f010a4b857f
9e41adf86b2c166a219f0b6d9371089c5f2d7d93
/Exerciciospython2/e110/moeda.py
8ea8b93d397438e5bcdee0915582a08403d08615
[]
no_license
Nadirlene/Exercicios-python
1aaead61dd0efcb5303f6294e765e9e1d54506cc
3fe82e166003922ef749756a249840ed1fe940b0
refs/heads/main
2022-12-25T21:35:06.172839
2020-09-28T15:08:37
2020-09-28T15:08:37
299,343,047
0
0
null
null
null
null
UTF-8
Python
false
false
1,355
py
def aumentar(preço=0, taxa=0, formato=False): ''' ->Calcula o aumento de um determinado preço, retornando o resultado com ou sem formatação. :param preço: o preço que se quer reajustar. :param taxa: qual é a porcentagem do aumento. :param formato: quer a saída formatada ou não? :return: o va...
[ "nadirleneoliveira@yahoo.com" ]
nadirleneoliveira@yahoo.com
eaccc98523caf705426c9bb29b0b3947c0868504
dac3a695b895c0170c350054fcc52d95f0daef5d
/data/level/level1084.py
bd8e8a9f93cbd63637b7e9e5145fbe98dce4e18b
[ "Apache-2.0" ]
permissive
xingchen1106/match3-level-similarity
aad87de6e54c5bdc89cf4dac168559d11997d496
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
refs/heads/master
2021-05-22T02:48:09.444957
2019-07-19T09:19:09
2019-07-19T09:19:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,605
py
data = { 'level_index': 1084, 'move_count': 32, 'board_info': { (0, 0): { 'base': (6, 1), 'next': (0, 1), 'prev': (0, -1), 'fall_point': (0, -1) }, (0, 1): { 'base': (4, 1), 'next': (0, 1), 'prev': (0...
[ "salild1011@gmail.com" ]
salild1011@gmail.com
bd26412a2ff3d563c85d287a094a074367f49759
c64bb34a3dde14d3c9bf813bde414a7b3f10611d
/job_costing11/oh_employee_creation_from_user/models/employee_creation_from_user.py
ed57c39534910707ccb174f95fe3a17f2942dd39
[]
no_license
sm2x/my_work
ebf2e1abd06191ee59b0d82a23534274a81a3195
efc469aee4cd20b038d48d4c09f8257f3f04ba1c
refs/heads/master
2021-01-07T20:41:45.254025
2020-02-12T16:02:46
2020-02-12T16:02:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,937
py
# -*- coding: utf-8 -*- ################################################################################### # A part of Open HRMS Project <https://www.openhrms.com> # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). # Author: Nilmar Shereef (<h...
[ "ragaamaherhanna@gmail.com" ]
ragaamaherhanna@gmail.com
a47c8792a11bc3ab6e23bf579e4273dd10d3a302
7bc3a0c647d1216b2ff5a236f5d32418cf22a405
/pipeline/observing.py
90b639d1dc3c46ddcc1105cd17d1e3948bce6cbf
[]
no_license
andycasey/apf-reduction-pipeline
8bbb45122ab498656ac665f215d909fac110e26c
767c8c35c365518d7c046aad8afd4cc273541370
refs/heads/master
2020-05-31T22:39:07.499877
2015-03-01T18:44:20
2015-03-01T18:44:20
29,261,414
0
0
null
null
null
null
UTF-8
Python
false
false
1,877
py
# coding: utf-8 """ Classes for dealing with a sequence of data frames. """ from __future__ import division, print_function __author__ = "Andy Casey <arc@ast.cam.ac.uk>" # Standard library import logging # Third-party from astropy.io import fits from astropy.table import Table # Create logger logger = logging.get...
[ "andycasey@gmail.com" ]
andycasey@gmail.com
d262c636c692ca60e8edc1d6c46a438d53591075
b986d1fbd65a067d4691a231d415f96a6ada5a3e
/tasks/admin.py
990e59fe77f3ce8dd62ef31e0fe3cf55e5ac0f4e
[]
no_license
srajsonu/Todo-Django
68289e95615a00cbb6301e51469bd338ba6b9021
c9f025a0cc155c0b85670b7ff54b4b8c3f63b529
refs/heads/master
2022-12-19T00:42:50.750901
2020-09-19T19:51:15
2020-09-19T19:51:15
296,369,907
0
0
null
null
null
null
UTF-8
Python
false
false
1,256
py
from django.contrib import admin from django.utils import timezone from . import models # Register your models here. def mark_complete(model_admin, request, queryset): queryset.update( status=models.Task.TaskStatus.COMPLETED, completed_at=timezone.now(), ) mark_complete.short_description = 'M...
[ "srajsonu02@gmail.com" ]
srajsonu02@gmail.com
20d4fe31bb4a269098ef36cf0edefd8e5a31c1fc
505f1c36d931d4388a0a4f8c57fbd8bd9ab4d821
/ImageAnalysis/ImageAnalysis/python/source/image_parsing/image_split.py
1aa89072d7aa0951474ee772d2ec26d5276afc21
[ "MIT" ]
permissive
mikebourbeauart/perler-printer
9e43a51b82cb9b08d35c81e680ea7ef2624fda2e
8c5023de6bb9b3cbe2bc28c1c823030dfd708db4
refs/heads/master
2022-12-01T18:46:37.632443
2020-05-04T00:41:11
2020-05-04T00:41:11
98,070,537
0
1
MIT
2022-11-22T05:58:34
2017-07-23T02:49:35
Python
UTF-8
Python
false
false
3,038
py
''' Splits an image up into pegboard sized regions. .. todo:: add an image showing what it means to split up a region .. note:: Any region that is too small for a pegboard will be accounted for, so any size image can be parsed. ''' from __future__ import print_function import os import json import logging from PIL...
[ "borbs727@gmail.com" ]
borbs727@gmail.com
753e680846518ae6afbddf1d21fa45e0bb9bece5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_octopuses.py
c7b5ae6446187acc19aacc1474977f130c97de01
[ "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
247
py
from xai.brain.wordbase.nouns._octopus import _OCTOPUS #calss header class _OCTOPUSES(_OCTOPUS, ): def __init__(self,): _OCTOPUS.__init__(self) self.name = "OCTOPUSES" self.specie = 'nouns' self.basic = "octopus" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
cef5f0c007251f6271ac1cd3f616e2832eb053de
6f1c96b2a1136ac4a0c4917ddb08099d94fd2601
/backend/msm_sgshsjhjsh4799__13434/wsgi.py
3f2c756483381306028d55e7b4be06ee15beb7e4
[]
no_license
crowdbotics-apps/msm-sgshsjhjsh4799--13434
b3d8ddca6345e2800e4206a8880bcb190e6f620b
86cdc88e5e581f334f8fe06af277e1aa57a1bf3c
refs/heads/master
2022-12-30T13:56:16.223212
2020-10-16T03:43:55
2020-10-16T03:43:55
304,511,932
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
""" WSGI config for msm_sgshsjhjsh4799__13434 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.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdef...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
177d9c4a4a727488c2bb86c8f7c9814d3404239c
c8a04384030c3af88a8e16de4cedc4ef8aebfae5
/stubs/pandas/tests/frame/test_period.pyi
bd44eaf8d300f32a529c18f5f7f95772c7d86f75
[ "MIT" ]
permissive
Accern/accern-xyme
f61fce4b426262b4f67c722e563bb4297cfc4235
6ed6c52671d02745efabe7e6b8bdf0ad21f8762c
refs/heads/master
2023-08-17T04:29:00.904122
2023-05-23T09:18:09
2023-05-23T09:18:09
226,960,272
3
2
MIT
2023-07-19T02:13:18
2019-12-09T20:21:59
Python
UTF-8
Python
false
false
890
pyi
# Stubs for pandas.tests.frame.test_period (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. # pylint: disable=unused-argument,redefined-outer-name,no-self-use,invalid-name # pylint: disable=relative-beyond-top-level,line-too-long,arguments-differ # pylint: disable=no-member,too-f...
[ "josua.krause@gmail.com" ]
josua.krause@gmail.com
db884473f930afd8e5d235080c8ca9fad5bd0748
0f36e8e33efa363d7e9642268d28fbd4d06b56b3
/arxivmail/__init__.py
5ba21882911a04189d9eba5cfb512762bfd88a55
[ "MIT" ]
permissive
dfm/ArXivMailer
7c6eaf09314582870c24c6d5e28d88d55d193f29
f217466b83ae3009330683d1c53ba5a44b4bab29
refs/heads/master
2023-07-22T11:30:28.812807
2016-06-23T16:11:10
2016-06-23T16:11:10
61,644,402
1
0
null
null
null
null
UTF-8
Python
false
false
810
py
# -*- coding: utf-8 -*- import flask import random __all__ = ["create_app"] def before_first_request(): pass def page_not_found(e): return flask.render_template( "404.html", bg_img="https://images.unsplash.com/gifs/fail/fail-{0}.gif".format( random.randint(1, 9) ) ),...
[ "danfm@nyu.edu" ]
danfm@nyu.edu
758e93086f49e5aa7861d2f985b0494709195d36
f191d2c1910b1f1916e63986bcbfdff1b740c51c
/cowrie/commands/which.py
8433c8b1689e3e9570921f006fd52adc25ddf302
[]
no_license
benzeng/cowrie
9201c42bfa32ac0508aaca4458a04e4c9c9a5d3a
1f75df68279f255a82532655104e7e2ff4b967a5
refs/heads/master
2020-12-11T07:34:19.980805
2015-12-19T08:01:09
2015-12-19T08:01:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
797
py
# Copyright (c) 2013 Bas Stottelaar <basstottelaar [AT] gmail [DOT] com> from cowrie.core.honeypot import HoneyPotCommand commands = {} class command_which(HoneyPotCommand): # Do not resolve args resolve_args = False def call(self): """ Look up all the arguments on PATH and print each (first) re...
[ "michel@oosterhof.net" ]
michel@oosterhof.net
d4434a507d82c09fe9f815a89a8ec6fc7525649f
6f890d49ffd7fb695b2ce67cada56f4e1c7117a0
/Lecture 12/scc.py
73d7d783f83a49e914b0b302f04acb2610c62adb
[]
no_license
xuanzhao/algorithm-design-analysis-Coursera_stanford-
139f8037946c6751d56bad56e08379a74bc25fb3
920aa4daaae65bfd50cfea2c4fb0caa43e9b3333
refs/heads/master
2021-01-15T09:10:38.366420
2017-10-05T11:14:50
2017-10-05T11:14:50
68,298,667
0
0
null
null
null
null
UTF-8
Python
false
false
3,619
py
#This script computes the strong connected components(SCC) of a given graph. import sys import time import heapq import resource from itertools import groupby from collections import defaultdict #set rescursion limit and stack size limit sys.setrecursionlimit(10 ** 6) resource.setrlimit(resource.RLIMIT_STACK, (2 ** 2...
[ "xuanzhao89@gmail.com" ]
xuanzhao89@gmail.com
9d092eccc3c745f32a58909376c046a04fa14333
e16a7f48b19fff565360de9be95597182e606199
/BASIC-PROGRAMS/mul.py
d47758b426eb290b054fdb2b8aab5a5f14f4e2a1
[]
no_license
ManojKrishnaAK/python-codes
fe3510025681925171b80953c888d76d3459f01e
d2e68515e7000d8f401a7eda1182218e7b5c04a8
refs/heads/master
2020-06-13T02:01:57.334759
2019-06-30T09:02:56
2019-06-30T09:02:56
194,495,696
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
#program to cal mul of two nos a=4 b=5 c=5 d=a*b*c print("val of a="+str(a)); print("val of b="+str(b)); print("val of c="+str(c)); print("mul=",d)
[ "you@example.com" ]
you@example.com
f693b2701b6a8cede2639c0665bd83db01cf4775
03b067d3afe67fade777c7f8f44e46dac3a899fa
/gumby/line_receiver.py
5ad9d466fc27813282fc183730d5461ed5a01c2a
[]
no_license
Tribler/gumby
3ede1c86392224d644ad25dd4204a63305d9125f
00efa309f6cd9cf99aad95d430c5a686f267792d
refs/heads/devel
2022-10-29T19:37:27.426186
2022-10-17T12:24:53
2022-10-17T12:24:53
10,665,607
9
32
null
2022-10-15T14:58:09
2013-06-13T12:27:16
Python
UTF-8
Python
false
false
1,780
py
import logging from asyncio import DatagramProtocol class LineReceiver(DatagramProtocol): _buffer = b'' _busy = False delimiter = b'\r\n' MAX_LENGTH = 16384 def __init__(self): self._logger = logging.getLogger(self.__class__.__name__) self.transport = None def connection_made...
[ "mdmartijndevos@gmail.com" ]
mdmartijndevos@gmail.com
1c8146f79c09b28d0a6a26d9cec15ecd462bac29
c036a364d6be1a790712ba806026efb53a0678ac
/2020/04/26/Magic/Magic-Gadget/no_leak/exp.py
19e33a905e1edc22ad9c1b4fe95a02c6aebf95b2
[]
no_license
iTassel/iTassel.github.io
b197ee8d5c725967b24bd07e7b538951cd60e4d6
f67693ad68c614112b9c622879de1696856e6ab6
refs/heads/master
2021-06-26T20:24:03.312447
2021-04-04T04:01:03
2021-04-04T04:01:03
226,534,478
1
0
null
null
null
null
UTF-8
Python
false
false
1,202
py
from pwn import* from LD import* p = process('./main') elf =ELF('./main') libc = ELF('./libc-2.30.so',checksec=False) gadget_reg = 0x4005CA gadget_call= 0x4005B0 magic_gadget = 0x400518 pop_rdi_ret = 0x4005D3 pop_rsi_r15 = 0x4005D1 leave_ret = 0x400564 buf_address = elf.bss() + 0x500 fini = 0x4005E0 init = 0x400570 ma...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
2700f2e204ab537e6c9b83d9f465b20a06ec0567
7f6f27540e4f1315e07a2069d5adb572ce487dec
/arcpy/extract_values_to_points.py
ebcea610a58b7a3ea9fdd9debc8db45551d88cab
[]
no_license
JohnWRRC/Scripts_em_geralGrasspyArcpy
5db023f95035518fa64ade3f05cbf12a495f2aaf
2fc400b5ab8f893fe7b07bcfc44dc61469198897
refs/heads/master
2020-06-04T07:49:02.062564
2015-04-21T18:55:21
2015-04-21T18:55:21
34,345,920
1
0
null
null
null
null
UTF-8
Python
false
false
861
py
# -*- coding: utf-8 -*- # --------------------------------------------------------------------------- # extract_values_to_points.py # Created on: 2014-11-28 11:00:58.00000 # (generated by ArcGIS/ModelBuilder) # Description: # --------------------------------------------------------------------------- # Import arcpy...
[ "jw.ribeiro.rc@gmail.com" ]
jw.ribeiro.rc@gmail.com
5c0e8799c1cc0edfae275f509852e189b4e2b6dc
440c2f17a64b718227bbc9ac1f799630d0f3233d
/Chapter12UnionFind/lc721.py
72351689517dfd084f2f330e160614497603b031
[]
no_license
HuichuanLI/alogritme-interview
6fc84fdbfe1123c1e587eaf2df6b6e9fb2ca7dda
0ac672a1582707fcaa6b6ad1f2a1d927034447df
refs/heads/master
2023-02-05T03:29:14.458783
2020-12-25T14:04:17
2020-12-25T14:04:17
206,583,220
1
0
null
null
null
null
UTF-8
Python
false
false
898
py
from collections import defaultdict class UF: def __init__(self): self.parent = {} def find(self, x): self.parent.setdefault(x, x) while x != self.parent[x]: x = self.parent[x] return x def union(self, p, q): self.parent[self.find(p)] = self.find(q) ...
[ "lhc14124908@163.com" ]
lhc14124908@163.com
23ab6e0083f28e880f254d181329311a4de26bb5
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/series/ffa78946a2c74012a2f9e0b08e697388.py
5c069894487ac8d122c2ee3af5ef34085828596b
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
394
py
def slices(number_string, series_length): number_length = len(number_string) if not number_string.isnumeric(): raise ValueError if series_length > number_length or series_length < 1: raise ValueError return [[int(number_string[i + j]) for j in range(series_l...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
0ab4044a9f86ac2691dba0cfcc8c2e3b78db498d
c99d73192c7ef56850c375be6a640b91f41398e5
/django_tutorial/settings.py
d7eb8ee91f694af2777569516f9cf52448feed1e
[]
no_license
gyaresu/django_tutorial
2030b4985590cc690c8c5a99ee43d120c4dd444d
1b30cb6d91149df361e9a3a38afc69cbaba8d31d
refs/heads/master
2021-01-10T11:32:41.123816
2016-03-13T15:52:47
2016-03-13T15:52:47
53,731,066
0
0
null
2016-03-13T15:17:23
2016-03-12T12:42:01
Python
UTF-8
Python
false
false
3,236
py
""" Django settings for django_tutorial project. Generated by 'django-admin startproject' using Django 1.9.4. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ impo...
[ "me@gareth.codes" ]
me@gareth.codes
e6abaf3308715a716819818686a37aedeba79749
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03487/s023464764.py
57fbc81878d66b558559fac20d373a10d903f9ca
[]
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
315
py
n = int(input()) a = list(map(int, input().split())) num_map = dict() for i in range(n): if a[i] not in num_map: num_map[a[i]] = 1 else: num_map[a[i]] += 1 res = 0 for key, value in num_map.items(): if key <= value: res += value - key else: res += value print(res)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a6bfe101a9396f8fb2a30bbc1a2da0ccab6b6b06
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/ambiguous-coordinates.py
628d79a837ddc7a32f15ba1cfa243d52ccc202f4
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
726
py
# Time: O(n^4) # Space: O(n) import itertools class Solution(object): def ambiguousCoordinates(self, S): """ :type S: str :rtype: List[str] """ def make(S, i, n): for d in xrange(1, n+1): left = S[i:i+d] right = S[i+d:i+n] ...
[ "kamyu104@gmail.com" ]
kamyu104@gmail.com
cf068b13141b5dba3cf9cb5d55e06a4546168967
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-3/2c567ec96934eba1165e964dea2510b1191ecddd-<round>-fix.py
947728b1de8ad0c7c8e35e704b2d74013e8385a6
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
743
py
@tf_export('round') def round(x, name=None): 'Rounds the values of a tensor to the nearest integer, element-wise.\n\n Rounds half to even. Also known as bankers rounding. If you want to round\n according to the current system rounding mode use tf::cint.\n For example:\n\n ```python\n x = tf.constant([0.9, 2.5...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
1bf74786276edfbb82cf8629a1fc00515fcf52bd
09e5cfe06e437989a2ccf2aeecb9c73eb998a36c
/modules/dxtbx/example/resolution_corners.py
ad6001cbf05f700581e11356966b55f3db3344cc
[ "BSD-3-Clause" ]
permissive
jorgediazjr/dials-dev20191018
b81b19653624cee39207b7cefb8dfcb2e99b79eb
77d66c719b5746f37af51ad593e2941ed6fbba17
refs/heads/master
2020-08-21T02:48:54.719532
2020-01-25T01:41:37
2020-01-25T01:41:37
216,089,955
0
1
BSD-3-Clause
2020-01-25T01:41:39
2019-10-18T19:03:17
Python
UTF-8
Python
false
false
1,022
py
"""Print out the resolution (two-theta) of the corners of the detector""" from __future__ import absolute_import, division, print_function import math import sys from scitbx import matrix import dxtbx def resolution_corners(frame): """Compute the resolution limit corresponding to the corners of the detector ...
[ "jorge7soccer@gmail.com" ]
jorge7soccer@gmail.com
0182a1e68775a7957bec77fb6160285a6fc9bc23
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03311/s859695176.py
d5e7fe19517de974eea8d3865ce7bf2d34b81de3
[]
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
233
py
def solve(): ans = 0 N = int(input()) A = list(map(int, input().split())) for i in range(N): A[i] -= i+1 B = sorted(A) p = B[N//2] for i in range(N): A[i] = abs(A[i]-p) ans = sum(A) return ans print(solve())
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8b31906e1030362631674167dd15622f030748e3
6d128bfa075bc42e669b1d0f0aa36c7e835064cc
/Python Day 13/Grading System/Subject.py
a000343b66d945b458d816321ffeafbc9a11881e
[]
no_license
thecodevillageorg/intro-to-python
f41acb18614d3724ba17aa5e0d929374386bd831
45492f629c1bb8dc3bdb98e41d833f1f4d4bcb4d
refs/heads/master
2022-11-05T02:34:05.776597
2020-06-17T17:08:35
2020-06-17T17:08:35
266,867,927
0
1
null
2020-06-17T13:41:15
2020-05-25T19:53:11
Python
UTF-8
Python
false
false
153
py
class Subject(): def __init__(self,subject_name, subject_score ): self.subject_name = subject_name self.subject_score = subject_score
[ "nickmwangemi@gmail.com" ]
nickmwangemi@gmail.com
e3058001c08fcfe355a0534383e4e03840c26ec4
a4a35795b7fbc16e9444e5d00ae74bbdd7064282
/src/data/models/gameuser.py
b8c770d978524394a532e291adb62ce7dce517a9
[]
no_license
PeterB8421/flask
b8ac170070c80e9fafa97ad6b023508af6d24ade
31cac80e855fe08fde8a3efa135f09768b0d97ac
refs/heads/master
2020-03-28T23:11:00.645693
2018-10-16T11:48:01
2018-10-16T11:48:01
149,271,665
0
0
null
null
null
null
UTF-8
Python
false
false
1,673
py
from flask_login import UserMixin from sqlalchemy.schema import Column from sqlalchemy.types import Boolean, Integer, String, Date from ..database import db from ..mixins import CRUDModel from ..util import generate_random_token from ...settings import app_config from ...extensions import bcrypt class GameUser(CRUDMo...
[ "you@example.com" ]
you@example.com