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
a2f660894a3d10df1c7a71e0782ffb017a97f802
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_201/2972.py
2fd708180642ad8b97474fbea1db1b2ae25b8eec
[]
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
751
py
def yz(s, stalls): g = len(stalls) l = 0 r = 0 while True: if s+r+1 >= g: break if stalls[s+r+1] == 0: r += 1 else: break while True: if s-l-1 < 0: break if stalls[s-l-1] == 0: l += 1 else: break return (min(l,r), max(l,r)) for _ in range(int(in...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
cf7c207170b97bd72c6456a05b66eb280835a058
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-cdn/huaweicloudsdkcdn/v1/model/follow302_status_body.py
609f30a679e4f7051de995d36eec1c97b7acb914
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,938
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class Follow302StatusBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The ke...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
74e4a49f5cc0b6f968eed7f58149de37464fd37b
f5fa77d99d31d4e8fef2648b83e9d988123be118
/hanser/models/detection/gfocal.py
841fdaa8c0c56a3fb85d366cebad9e3746961704
[]
no_license
sbl1996/hanser
6ff5362f6909c4ba717c10b5f7baf31a41b70531
21c6f9470dd21a5b2e7a18318f40314a34053822
refs/heads/master
2022-06-04T03:46:39.034645
2022-05-21T03:34:08
2022-05-21T03:34:08
197,355,428
12
2
null
null
null
null
UTF-8
Python
false
false
3,415
py
import numpy as np import tensorflow as tf from tensorflow.keras import Sequential from tensorflow.keras.initializers import RandomNormal, Zeros from hanser.ops import safe_softmax, top_k from hanser.models.layers import Linear from hanser.models.detection.detector import SingleStageDetector from hanser.models.detect...
[ "sbl1996@126.com" ]
sbl1996@126.com
e8aa80bf6d288ff8e7a87cbdf26ee0b74daf3509
d094ba0c8a9b1217fbf014aa79a283a49aabe88c
/env/lib/python3.6/site-packages/sympy/physics/units/systems/natural.py
124392e550ae5effd4ffc8ef3c5ef72af017eec4
[ "Apache-2.0" ]
permissive
Raniac/NEURO-LEARN
d9274e0baadd97bb02da54bdfcf6ca091fc1c703
3c3acc55de8ba741e673063378e6cbaf10b64c7a
refs/heads/master
2022-12-25T23:46:54.922237
2020-09-06T03:15:14
2020-09-06T03:15:14
182,013,100
9
2
Apache-2.0
2022-12-09T21:01:00
2019-04-18T03:57:00
CSS
UTF-8
Python
false
false
931
py
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- """ Naturalunit system. The natural system comes from "setting c = 1, hbar = 1". From the computer point of view it means that we use velocity and action instead of length and time. Moreover instead of mass we use energy. """ from __future__ import division from sympy...
[ "leibingye@outlook.com" ]
leibingye@outlook.com
95e03440d89285f10df39b55be1fd06e80e3332f
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/ads/googleads/v4/googleads-py/google/ads/googleads/v4/enums/types/user_list_type.py
64bb9c0c18d0075bb477ea405690a9c7d7888bd2
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,201
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
f07ab92ea930bbe7555bfa5f6e2cbebf127da184
81b0e6fe7a6e56ed8a91748499b81ddd3f2e45f8
/GAN/mnist_inforgan.py
ae5cfe025134b4efad95451acb734d8a7928f906
[]
no_license
shieldforever/DeepLearning
cfef817602b9677df4df4c1b87e60c5e91f2315a
b8080938a4b22395379be9032266df36cb5491e6
refs/heads/master
2021-01-05T14:12:26.110888
2019-10-29T11:23:06
2019-10-29T11:23:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,069
py
# -*- coding: utf-8 -*- """ Created on Mon May 20 19:39:36 2019 @author: Administrator """ import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from scipy.stats import norm import tensorflow.contrib.slim as slim from tensorflow.examples.tutorials.mnist import input_data mnist=input_data.read_da...
[ "870407139@qq.com" ]
870407139@qq.com
e97dfd3726227b91404d69a2d8fec5bbd24c4630
0550c08cee19be891fde34fa109b5a4ad9f07e3a
/findingshared/findingshared.py
d97a6a0b84b2d5e368e82c243576bb1cbec62235
[]
no_license
bendavidsteel/rosalind-solutions
92653c49d8ef938306ac1289ccb4e4cfe4b8d3ae
0749f2662efcac62383a8476ce13fcdd039928b1
refs/heads/master
2020-03-28T04:17:00.959446
2018-09-06T21:32:06
2018-09-06T21:32:06
147,705,059
0
0
null
null
null
null
UTF-8
Python
false
false
643
py
maxlen = 2 maxstring = "" def jloop with open('sample.txt') as stringfile: data = stringfile.read().split('\n')[1::2] for i in range(len(min(data, key=len))): for n in range(maxlen, len(min(data, key=len))): for j in range(1, len(data)): print(j) print(data[0][i:i+n]) ...
[ "bendavidsteel@gmail.com" ]
bendavidsteel@gmail.com
357746ec09b140827b2d7be08c9a9f27e7a7f71f
fce76a80bafa84b188fd9761d769f79dd712d79c
/JH_RestAPI/jobapps/migrations/0012_jobapplicationnote.py
695d6185dc04b277ff8709a9c32c427aca09ecbf
[]
no_license
komal14prasad/backend
547110ddb16f4ad16be7f3aebd87ad2cea52ee2f
4a915f2e744c5697d8a90a59e358c1ce94b47d69
refs/heads/master
2020-05-22T02:34:21.237812
2019-05-12T03:36:22
2019-05-12T03:36:22
186,200,468
0
0
null
2019-05-12T02:03:13
2019-05-12T02:03:12
null
UTF-8
Python
false
false
912
py
# Generated by Django 2.1.5 on 2019-03-18 03:05 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('jobapps', '0011_auto_20190210_1053'), ] operations = [ migrations.CreateModel( ...
[ "sdemirci55@gmail.com" ]
sdemirci55@gmail.com
e6cb8f8f82846c0b57397552dae31ee75edf7f6f
5e2dddce9c67d5b54d203776acd38d425dbd3398
/spacy/lang/ca/__init__.py
d25d40e257fd706cc679a013ba3733ee90462e07
[ "MIT" ]
permissive
yuxuan2015/spacy_zh_model
8164a608b825844e9c58d946dcc8698853075e37
e89e00497ab3dad0dd034933e25bc2c3f7888737
refs/heads/master
2020-05-15T11:07:52.906139
2019-08-27T08:28:11
2019-08-27T08:28:11
182,213,671
1
0
null
2019-04-19T06:27:18
2019-04-19T06:27:17
null
UTF-8
Python
false
false
2,297
py
# coding: utf8 from __future__ import unicode_literals from .tokenizer_exceptions import TOKENIZER_EXCEPTIONS from .stop_words import STOP_WORDS from .lex_attrs import LEX_ATTRS # uncomment if files are available # from .norm_exceptions import NORM_EXCEPTIONS # from .tag_map import TAG_MAP # from .morph_rul...
[ "yuxuan2015@example.com" ]
yuxuan2015@example.com
61004a97a2ccdbbd703c0335da0142a4d4b5ed9e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_glazed.py
4b9d651bd336809ed5c8db024f25696635fdae74
[ "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
218
py
#calss header class _GLAZED(): def __init__(self,): self.name = "GLAZED" self.definitions = glaze self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['glaze']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
c2e58269c8af68e51587b23ce08e779eb9fc0c3e
4b9f2d543755cf5ab9e1ddeab46e123b5a3e73ee
/lect05_52-week_saving_challenge/money_challenge_v4.0.py
3d6c292351487772efecae124d9eeac25207b03a
[]
no_license
guolikai/mypython
ff8e3bbc22e346d90126b551b945909d64c4bb3e
7c4003e5a70d306b34a102b3b32c667898c5e9c8
refs/heads/master
2022-12-25T06:52:06.253960
2020-09-30T13:53:09
2020-09-30T13:53:09
82,179,405
1
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
""" 作者:GuoLikai 功能:52周存钱挑战 版本:3.0 日期:05/08/2018 2.0增加功能:记录每周的存款数 3.0增加功能:使用循环直接计数 4.0增加功能:灵活设置每周的存款数,增加的存款数及存款周数 """ import math def save_money_in_n_weeks(money_per_week, increase_money, total_week): """ 计算n周内的存款金额 """ money_list = [] # 记录每周存款数的列表 ...
[ "glk73748196@sina.com" ]
glk73748196@sina.com
cbd162117e95a560810e5d1c96b3b9c5300777c2
52b5773617a1b972a905de4d692540d26ff74926
/.history/fish1_20200804200900.py
7517919c0ab14ea3f149b1054c468da0ce11e9e1
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
def fish(A,B): # where A represent the size of fish and B represents the direction of fish aliveFish = len(A) bigFish = 0 indexFish = None j = 0 while j < len(B)-1: if B[j] == 1 and B[j+1] !=1: if A[j] > A[j+1]: if A[j] > bigFish: b...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
a3d019059a08c7f50daa263ad9a29b74d90f96d7
49663ea34b41c8180d7484f778f5cad2e701d220
/tests/dualtor/test_server_failure.py
07c2bf67601fef2bf59b1e15b84bc027badc9c60
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
stepanblyschak/sonic-mgmt
ed08c98e7bff1615b057daa8711686aa5986073d
a1ae1e0b4e9927e6f52916f76121780d19ec3e54
refs/heads/master
2023-04-07T01:30:11.403900
2023-03-29T10:16:52
2023-03-29T10:16:52
135,678,178
0
0
NOASSERTION
2023-03-29T16:13:55
2018-06-01T06:41:49
Python
UTF-8
Python
false
false
3,378
py
import pytest from tests.common.dualtor.mux_simulator_control import toggle_simulator_port_to_upper_tor, \ simulator_flap_counter, simulator_server_down # noqa F401 from tests.common.helpers.assertions import pytest_assert, pytest_require from tests.common.dualt...
[ "noreply@github.com" ]
stepanblyschak.noreply@github.com
7e79e805f44cd3ea15b84a2b395d30fbdc293fdd
e569aaa98d90ebfed429da9f1e8697b6122c66f9
/ecoroofs/locations/migrations/0008_add_point_obscured_to_location_model.py
fd5dab8a0eab3b0b2cab506c1d8508d2dfc692c2
[]
no_license
PSU-OIT-ARC/ecoroofs
4f4a5df0b15faf8d4442155e7a70104a2c25b44f
e7acf776dbd19e90e22635424808c8c6807d7572
refs/heads/develop
2020-05-21T16:16:48.799309
2017-11-08T21:31:36
2017-11-08T21:31:36
64,701,178
0
3
null
2017-07-24T19:06:49
2016-08-01T20:59:05
Python
UTF-8
Python
false
false
422
py
import django.contrib.gis.db.models.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('locations', '0007_add_year_built_to_location_model'), ] operations = [ migrations.AddField( model_name='location', name='point_obs...
[ "wbaldwin@pdx.edu" ]
wbaldwin@pdx.edu
5a89b194f60aa6e8e7016670b169d895bdfd01e1
c5458f2d53d02cb2967434122183ed064e1929f9
/sdks/python/test/test_spending_proof.py
c58e33d52c302a1ce178f05e03d2ef9822171fd3
[]
no_license
ross-weir/ergo-node-api-sdks
fd7a32f79784dbd336ef6ddb9702b9dd9a964e75
9935ef703b14760854b24045c1307602b282c4fb
refs/heads/main
2023-08-24T05:12:30.761145
2021-11-08T10:28:10
2021-11-08T10:28:10
425,785,912
0
0
null
null
null
null
UTF-8
Python
false
false
782
py
""" Ergo Node API API docs for Ergo Node. Models are shared between all Ergo products # noqa: E501 The version of the OpenAPI document: 4.0.15 Contact: ergoplatform@protonmail.com Generated by: https://openapi-generator.tech """ import sys import unittest import openapi_client from openapi_cli...
[ "29697678+ross-weir@users.noreply.github.com" ]
29697678+ross-weir@users.noreply.github.com
d23250f1b6b7e554bdf137997e2f02efa56feb70
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/63/usersdata/230/28357/submittedfiles/swamee.py
e5f429c7808c600df6e2cb6d975c9662a428b88e
[]
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
505
py
# -*- coding: utf-8 -*- import math #COMECE SEU CÓDIGO AQUI f = float(input('Digite o valor de f: ')) L = float(input('Digite o valor de L: ')) Q = float(input('Digite o valor de Q: ')) DeltaH = float(input('Digite o valor de DeltaH: ')) v = float(input('Digite o valor de v: ')) g = 9.81 E = 0.000002 D = (8*f*L*(Q**2)/...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
db4640a338afe81eaf782bac82394116670bbc95
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02804/s938106196.py
e07f2d428fc7a4fa2bbc75241a67288a2325428b
[]
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
143
py
n,k,*l=map(int,open(0).read().split());l.sort();c,a,M=1,0,10**9+7 for i in range(k-1,n):a+=c*(l[i]-l[~i]);c=c*-~i*pow(i-k+2,M-2,M)%M print(a%M)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e3b56cb7ad8f137d9438e36fdcaa4d4aeb773562
0a089d954518ef4a8f6aecf7097af8124e425d7e
/everest/tests/complete_app/resources.py
3b0e03d850c91b76cc8b9fb22d05059d17c439e1
[ "MIT" ]
permissive
papagr/everest
b13c06834ae38a5d441a9fd1c938d495ceca6e20
70c9b93c3061db5cb62428349d18b8fb8566411b
refs/heads/master
2021-05-28T16:55:23.021924
2015-02-17T09:21:03
2015-02-17T09:21:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,060
py
""" This file is part of the everest project. See LICENSE.txt for licensing, CONTRIBUTORS.txt for contributor information. Created on Dec 1, 2011. """ from everest.resources.base import Member from everest.resources.descriptors import attribute_alias from everest.resources.descriptors import collection_attribute from...
[ "fogathmann@gmail.com" ]
fogathmann@gmail.com
d83c4645ef7cc9f79a7c70d11198e76aad49ad85
9eaa17f50df49e5c6d204a7a7ece52f94c10b30b
/d3rlpy/algos/torch/utility.py
f431a78d8326da7fcd4c9ff7492d1147190162df
[ "MIT" ]
permissive
mchetouani/d3rlpy
08d452ea2c8735b679a02474a3ae512caf91250a
53ccf604298568b3a8322bb6f38bc33c0ac04ca2
refs/heads/master
2023-02-03T15:19:23.620608
2020-11-29T02:25:34
2020-11-29T02:25:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,435
py
import torch import numpy as np from inspect import signature def soft_sync(targ_model, model, tau): with torch.no_grad(): params = model.parameters() targ_params = targ_model.parameters() for p, p_targ in zip(params, targ_params): p_targ.data.mul_(1 - tau) p_targ....
[ "takuma.seno@gmail.com" ]
takuma.seno@gmail.com
612311f401562e6479a566b357190ad038ebd82e
a303cea3e4a5b9d774700111954b837e11ce8f64
/Werkgroep API beveiliging/Implementaties/poc-oauth-python/web/woco_irma/woco_irma/wsgi.py
910342af165b65cd78403f3a1559593c0eb7855a
[]
no_license
HenriKorver/KP-APIs
ee639ad9409b12710f6296e6cbf5d861b6d91571
3dde9bebf63c35b036145771ebf22d0851a5378c
refs/heads/master
2021-06-12T05:22:10.712394
2021-06-09T14:55:41
2021-06-09T14:55:41
174,525,243
0
0
null
2019-05-16T15:06:41
2019-03-08T11:24:08
HTML
UTF-8
Python
false
false
395
py
""" WSGI config for woco_irma 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.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
[ "sergei@maykinmedia.nl" ]
sergei@maykinmedia.nl
1d8e81008f94de9bc956344891d46ea12658172d
bbed0e21b241c6a39341fed7d058563c30e2e0a4
/tests/trainer/warnings_tests/test_flow_warnings.py
f5328d44020d717de90fa564f4c03c177fc40aa4
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
haven-jeon/pytorch-lightning
656917a6cace5c3723d951f84515e8cb74a0ec79
6b9362bb73ada4c8702def43fe8f27eb3c382540
refs/heads/master
2023-02-23T18:29:08.298601
2021-01-28T07:42:14
2021-01-28T07:42:14
325,184,155
2
0
Apache-2.0
2021-01-28T07:42:15
2020-12-29T04:19:44
Python
UTF-8
Python
false
false
1,453
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" ]
haven-jeon.noreply@github.com
630f388259ee71dd9d1b0b441c0117db73ee9b8d
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_9/frnpau013/question2.py
71396f2476198ce3175c7385e66de6c4fc587b0d
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,745
py
def line_maker(string, length): if len(string) > length: line = string[0:length] if line[-1] != " " and string[len(line)] != " ": while line[-1] != " ": line = delete_till_space(line) line = line[:-1] return line, string[len(line) + 1:] ...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
0da64247f2f05b4d47521f6362ed1d6f94bae56f
725ac5a0bf72829be627bf8dc82fdc51ba0f94ae
/Text_Classification/multi_label_classify_bert/inference.py
6517992e9a21b0f516d22a671658ec98435a63c4
[]
no_license
shawroad/NLP_pytorch_project
fa14b6e4a156229765e1d552901d0492d8e1def3
1272fed2dc8fef78a9ded0f1ae1644d613a3b57b
refs/heads/master
2023-06-25T02:37:35.503251
2023-06-12T10:57:11
2023-06-12T10:57:11
229,694,655
530
104
null
2020-12-08T09:21:47
2019-12-23T06:54:29
Python
UTF-8
Python
false
false
2,940
py
""" @file : inference.py @author : xiaolu @email : luxiaonlp@163.com @time : 2021-06-23 """ import torch from tqdm import tqdm import pandas as pd from model import Model from config import set_args from torch.utils.data import Dataset, DataLoader from transformers.models.bert import BertTokenizer class MyDatase...
[ "luxiaonlp@163.com" ]
luxiaonlp@163.com
e0ae3f8df1d6dacc769316b76657cf29b105ce4a
eaf2b6edff6d1020cf24028cf1d2f1df42b5a263
/420-strong-password-checker/strong-password-checker.py
ec3726dbb2c42aaff8d8787e5b69e2cfdbaaf1a6
[]
no_license
zhangoneone/leetcode
1ac1a960d7aff5b6b8ddb85a48efc4f6c49c582c
3f8632e5b436293c304e6df6326adc556be6b842
refs/heads/master
2020-04-21T06:57:47.415724
2018-12-20T01:33:58
2018-12-20T01:33:58
169,380,067
2
0
null
2019-02-06T09:17:31
2019-02-06T09:17:31
null
UTF-8
Python
false
false
1,950
py
# -*- coding:utf-8 -*- # A password is considered strong if below conditions are all met: # # # It has at least 6 characters and at most 20 characters. # It must contain at least one lowercase letter, at least one uppercase letter, and at least one digit. # It must NOT contain three repeating characters in a ...
[ "foreverbonfy@163.com" ]
foreverbonfy@163.com
92b27e668bf00bfed941b76018d92906c856691a
9f1039075cc611198a988034429afed6ec6d7408
/tensorflow-stubs/contrib/boosted_trees/estimator_batch/custom_loss_head.pyi
9cfa47bc65db82426ee6bf56237e1355c15c69f7
[]
no_license
matangover/tensorflow-stubs
9422fbb1cb3a3638958d621461291c315f9c6ec2
664bd995ef24f05ba2b3867d979d23ee845cb652
refs/heads/master
2020-05-23T12:03:40.996675
2019-05-15T06:21:43
2019-05-15T06:21:43
186,748,093
0
0
null
null
null
null
UTF-8
Python
false
false
675
pyi
# Stubs for tensorflow.contrib.boosted_trees.estimator_batch.custom_loss_head (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. from tensorflow.contrib.learn.python.learn.estimators import head as head_lib from tensorflow.python.framework import dtypes as dtypes from tensorflow.p...
[ "matangover@gmail.com" ]
matangover@gmail.com
d29e818b1a22fbe66308e12cac57776e2206777c
d94b78aeb8f7ea79545397f15b8b6d5a4b3e1635
/test5.py
916f2676d49ac4604269084f64e1708bedd82ce1
[]
no_license
levylll/leetcode
6a32c547c6a0d5aa07126a2ddc46b03b998ae5ad
319f73e931b081fbf817769da5596c8eefd830a3
refs/heads/master
2021-06-19T01:30:03.113632
2021-06-11T07:46:02
2021-06-11T07:46:02
174,638,986
1
0
null
null
null
null
UTF-8
Python
false
false
1,342
py
class Solution(object): def gen_p1(self, idx, s): tmp_max = s[idx] move = 1 while True: if idx - move >= 0 and idx + move < len(s) and s[idx-move] == s[idx+move]: tmp_max = s[idx-move] + tmp_max + s[idx+move] move += 1 else: ...
[ "levylll@163.com" ]
levylll@163.com
17c670a09a49ec13333d28a5078af3403e9357e3
72765a898e97d308c50a8b309b049d568fbbb622
/examples/bio2bioes.py
184bb58b88326fc54511acdb064c7ad1b0c3e6b6
[]
no_license
gswyhq/bert4keras
95a2fbdfbe49edb55ff56e8b1d75fd0432c440fb
e71a3acdc89b76f90e4d45527d228cc423f7cf1e
refs/heads/master
2020-08-14T00:50:16.613380
2020-04-13T12:57:48
2020-04-13T12:57:48
215,066,934
0
0
null
2019-10-14T14:34:37
2019-10-14T14:34:37
null
UTF-8
Python
false
false
2,114
py
#!/usr/bin/python3 # coding: utf-8 import os import sys import unicodedata def generator_load_data(data_path): # print('读取文件:{}'.format(data_path)) with open(data_path, "r") as f: text = f.readline() while text: text = unicodedata.normalize('NFKD', text).strip() if '/' ...
[ "gswyhq@126.com" ]
gswyhq@126.com
f9d1ff55ba1de3c5bd0d2a7619b945862ecc9e1f
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/model/create_task_request.py
363ab85585e3ef85232d5c1955b7bd770a145264
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
4,181
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateTaskRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
11da6a73feea9cad9d0a412ebabf156cad4d81c4
193b35f8acaae37b43fe680bf9a6a3111db3b9c7
/myPython/class/__hook__.py
d28d28c64b8393a75ad01283dd5c8b737bb64977
[]
no_license
zerosum99/python_basic
6726d0d5210fdff1e22f452470b515478f64b7cb
4b9e2b3478472830d901748bd6a2ac84c3dcc684
refs/heads/master
2021-05-23T05:41:01.742846
2021-05-16T09:16:39
2021-05-16T09:16:39
94,850,543
4
3
null
null
null
null
UTF-8
Python
false
false
1,427
py
# -*- coding: utf-8 -*- """ Created on Wed Apr 06 16:41:23 2016 @author: 06411 """ import abc def interface(*attributes): def decorator(Base): def checker(Other): return all(hasattr(Other, a) for a in attributes) def ins_checker(Other): if type(Other) == Base : ...
[ "myjlms99@gmail.com" ]
myjlms99@gmail.com
86c71b01760e5102eb4d6243cbb87d4644df51c8
bb88122fc4978b14e8a9b02d8c11f1ce67ea17d0
/03_ML/m31_smote2_wine_quality.py
0910ec5b43d9b87466d0691c7f65f194c02a62e3
[]
no_license
star10919/Keras_
c2c8a6f3d0e1a7ceba9e81dbc51ecfd12bd5fe78
f3156b7db6e12feea075b46e94b09157f43a141c
refs/heads/main
2023-08-17T22:44:54.324315
2021-10-24T02:47:00
2021-10-24T02:47:00
390,066,491
0
0
null
null
null
null
UTF-8
Python
false
false
3,003
py
### 데이터 증폭(smote 사용) - acc보다 F1 score가 높아짐 # y 라벨 개수 가장 큰 거 기준으로 동일하게 맞춰줌 ### k_neighbors 의 디폴트 5 : 각 라벨의 개수가 5보다 커야 증폭(smote) 가능해짐! / 아니면 k_neighbors의 값을 낮춰주면 됨 # => k_neighbors 값 줄이면 score 떨어짐(연산수 줄기 때문에) from imblearn.over_sampling import SMOTE from sklearn.datasets import load_wine import pandas as pd from xgbo...
[ "star10919@naver.com" ]
star10919@naver.com
624b8b66742a21f03a4eaf8cd8f640fc0054d3f3
f7be1846da14366ca8277dc3edc207766de838f0
/ICPC Practice/minimum-distances.py
0fdc9b8546501ad63e61fac9a7b45f125161e1d2
[]
no_license
IsThatYou/Competitive-Programming
d440f9e78f8a982cd60aa8c81833b9e10208b29e
a924ac7087654402c7f7c4b62374c377178061ad
refs/heads/master
2020-07-19T16:31:32.492635
2019-01-27T02:45:21
2019-01-27T02:45:21
73,759,128
2
0
null
null
null
null
UTF-8
Python
false
false
287
py
length = int(input().strip()) A = [int(A_temp) for A_temp in input().strip().split(' ')] lowest = 2000 for i in range(length): for j in range(i + 1, length): if A[i] == A[j]: dis = abs(j - i) if dis < lowest: lowest = dis if lowest != 2000: print(lowest) else: print(-1)
[ "junlinwang18@gmail.com" ]
junlinwang18@gmail.com
af2ab744148c104fa9b235621f90b30107208a7a
8c2de4da068ba3ed3ce1adf0a113877385b7783c
/hyperion/bin/pack-wav-rirs.py
0017798894270af755bafa05e4a9b4fd9b86d2b2
[ "Apache-2.0" ]
permissive
hyperion-ml/hyperion
a024c718c4552ba3a03aae2c2ca1b8674eaebc76
c4c9eee0acab1ba572843373245da12d00dfffaa
refs/heads/master
2023-08-28T22:28:37.624139
2022-03-25T16:28:08
2022-03-25T16:28:08
175,275,679
55
20
Apache-2.0
2023-09-13T15:35:46
2019-03-12T18:40:19
Python
UTF-8
Python
false
false
1,865
py
#!/usr/bin/env python """ Copyright 2020 Jesus Villalba (Johns Hopkins University) Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """ import sys import os from jsonargparse import ( ArgumentParser, ActionConfigFile, ActionParser, namespace_to_dict, ) import time import logging import math ...
[ "jesus.antonio.villalba@gmail.com" ]
jesus.antonio.villalba@gmail.com
4bacc7bb356d16649339adbe3f7ae44936cef97b
b1cf54e4d6f969d9084160fccd20fabc12c361c2
/leetcode/longest_substring.py
e189bb5bcce062b5ff99c66cba029c56af0f6dd4
[]
no_license
zarkle/code_challenges
88a53477d6f9ee9dd71577678739e745b9e8a694
85b7111263d4125b362184df08e8a2265cf228d5
refs/heads/master
2021-06-10T11:05:03.048703
2020-01-23T06:16:41
2020-01-23T06:16:41
136,668,643
0
1
null
2019-02-07T23:35:59
2018-06-08T21:44:26
JavaScript
UTF-8
Python
false
false
1,746
py
# https://leetcode.com/problems/longest-substring-without-repeating-characters/ # https://leetcode.com/problems/longest-substring-without-repeating-characters/solution/ # runtime 640 ms, 12.5%; memory 13.1 MB, 5.5% class Solution: def lengthOfLongestSubstring(self, s: str) -> int: if not s: re...
[ "beverly.pham@gmail.com" ]
beverly.pham@gmail.com
082a6d27401dee260c30ad1efb445313ff63bd21
c9d81b5d0b258b57a06a99f43a79dc1ecd219488
/Test_1.py
6b0a1b0fdce78cf79cfec3ab37a0739d156c579e
[]
no_license
babiswas/Python-Design-Patterns
4f4851cc55ae1bee8828f099f2c2610a36f4e8d5
ea6e417880bab26bded60c67188a12623f74639f
refs/heads/master
2020-07-30T05:28:10.030541
2019-09-26T17:54:21
2019-09-26T17:54:21
210,102,717
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
from abc import ABC,abstractmethod class Pet: @abstractmethod def speak(self): pass @abstractmethod def having_food(self): pass class Cat(Pet): def __init__(self,name): self.name=name def speak(self): print(f"{self.name} Mew Mew") def having_food(self): ...
[ "noreply@github.com" ]
babiswas.noreply@github.com
78b2e5ad6eda0389d08f76cb7f95ff272be8fc13
152b74ed7d60d75a9d70f6637c107fff9b064ff9
/Chapter03/MalGan/MalGAN_gen_adv_examples.py
0289a0a9a76912a65061cdd41fbacd0dab425a1f
[ "MIT" ]
permissive
PacktPublishing/Machine-Learning-for-Cybersecurity-Cookbook
1d7a50fb79b5da8c411eda9dc9cface4d0f78125
19b9757020cbcb09d9bb4249605fbb9c7322d92b
refs/heads/master
2023-05-12T08:29:13.569598
2023-01-18T10:19:07
2023-01-18T10:19:07
222,411,828
250
164
MIT
2023-05-01T20:11:44
2019-11-18T09:33:53
Jupyter Notebook
UTF-8
Python
false
false
2,075
py
from sklearn.neighbors import NearestNeighbors from keras import backend as K import MalGAN_utils from MalGAN_preprocess import preprocess import numpy as np def gen_adv_samples(model, fn_list, pad_percent=0.1, step_size=0.001, thres=0.5): ### search for nearest neighbor in embedding space ### def emb_searc...
[ "dineshchaudhary@packtpub.com" ]
dineshchaudhary@packtpub.com
cc45fdbbddc41768ecf333b33f0e6b2c01dcbd95
42c48f3178a48b4a2a0aded547770027bf976350
/google/ads/google_ads/v3/services/ad_schedule_view_service_client_config.py
90efc7090c35efbde8f0c9a47c102453d887ece9
[ "Apache-2.0" ]
permissive
fiboknacky/google-ads-python
e989464a85f28baca1f28d133994c73759e8b4d6
a5b6cede64f4d9912ae6ad26927a54e40448c9fe
refs/heads/master
2021-08-07T20:18:48.618563
2020-12-11T09:21:29
2020-12-11T09:21:29
229,712,514
0
0
Apache-2.0
2019-12-23T08:44:49
2019-12-23T08:44:49
null
UTF-8
Python
false
false
815
py
config = { "interfaces": { "google.ads.googleads.v3.services.AdScheduleViewService": { "retry_codes": { "idempotent": [ "DEADLINE_EXCEEDED", "UNAVAILABLE" ], "non_idempotent": [] }, "retry_params": { "default": { "initial_retry_delay_...
[ "noreply@github.com" ]
fiboknacky.noreply@github.com
7da40b77085e8a9aff24f6e4855a7b4fee264fef
373c0cc659e0c77739ff87f01b159ab3969bce72
/pca/pca5.py
a80b3a04c841b8406b5da0159da05a9db468a7bd
[]
no_license
c1a1o1/cancer
75da16ab43d4925f849fc0c84a98d69d46e3aea1
268f8e1553f1237fc2d0d0d3d7c13f664792aa92
refs/heads/master
2021-01-20T04:17:09.858006
2017-02-24T16:53:35
2017-02-24T16:53:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,139
py
#from numpy import mean, cov, cumsum, dot, linalg, size, flipud, argsort #from pylab import imread, subplot, imshow, title, gray, figure, show, NullLocator, imsave import numpy as np import matplotlib.pyplot as plt def princomp(A, numpc=0): # computing eigenvalues and eigenvectors of covariance matrix M = (A - np.me...
[ "senenbotello@gmail.com" ]
senenbotello@gmail.com
822d0722fc6c480872f5f0a209984e64e0d29091
597f847f0bd2112e45ca50979acec403a5f969cf
/python/day06/exercise/test2.py
f2ef95420fe5500c69f3b2906f06ca1a0d91a442
[]
no_license
wangyuhui12/AID1804
e5d26aa6d505655cd885784cc0645c9ea8323df5
7291fc9411b541d17e540dd829166e64887fd9f7
refs/heads/master
2022-09-11T23:10:47.631426
2022-08-03T09:01:13
2022-08-03T09:01:13
136,152,631
2
0
null
null
null
null
UTF-8
Python
false
false
648
py
# 2、有一些数存在于列表L中,如: # L = [1, 3, 2, 1, 6, 4, ..., 98, 82] # (此数据自己定义) # 将列表L中的数存入于另一个列表L2中(要求,重复出现多次的数字只在L2列表中保留一份) L = [] while True: n = input("请输入一个整数:") if not n: break n = int(n) L.append(n) # for i in L: # if L.count(i) > 1: # j = L.count(i) # for x...
[ "noreply@github.com" ]
wangyuhui12.noreply@github.com
c1d153362cd6ae47be10bb825b009ce4fa2a7ef9
204ec78fcebcea9e1e1da4905cf3fad0a514b01f
/pyocd/target/builtin/target_MPS3_AN522.py
c8d9dd2265ca1de7624831c0ec1156619eb87e21
[ "Apache-2.0" ]
permissive
ARMmbed/pyOCD
659340bf8753aa8e15a72890b8bea64dff2c2f42
d4cdcf7e532cae17caad866839287bbe1e0d952b
refs/heads/master
2023-05-31T13:45:15.797588
2020-10-12T13:55:47
2020-10-12T13:55:47
190,203,829
3
1
Apache-2.0
2019-07-05T11:05:40
2019-06-04T13:09:56
Python
UTF-8
Python
false
false
1,492
py
# pyOCD debugger # Copyright (c) 2020 Arm Limited # SPDX-License-Identifier: Apache-2.0 # # 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 # # ...
[ "flit@me.com" ]
flit@me.com
b141ab2597ba820e82b8091ee4334bd5218daa59
d2fdd6b10b0467913971d1408a9a4053f0be9ffb
/datahub/metadata/migrations/0015_add_iso_to_country.py
891f31f2965cb861506230efd7bb9f663ed86b23
[]
no_license
jakub-kozlowski/data-hub-leeloo
fc5ecebb5e4d885c824fc7c85acad8837fcc5c76
7f033fcbcfb2f7c1c0e10bec51620742d3d929df
refs/heads/master
2020-05-18T13:29:14.145251
2019-04-30T12:12:50
2019-04-30T12:12:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
# Generated by Django 2.1.2 on 2018-10-30 17:24 from pathlib import PurePath from django.core.management import call_command from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('metadata', '0014_investmentprojectstage_exclude_from_investment_flow'), ] ...
[ "info@marcofucci.com" ]
info@marcofucci.com
ddbc45e6681b12728108ffcd2a027d6639b8f7a3
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/eventhub/azure-eventhub/azure/eventhub/_buffered_producer/_buffered_producer_dispatcher.py
7bad79bead6409a6e962b5d0e80ddaf2063c179e
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
7,290
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
3eb5675cb98630a1417a7a99e8ead5bfe8caf461
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-cbr/huaweicloudsdkcbr/v1/model/show_member_detail_request.py
b7d02e8b454b32351aa7f4f4af4a67e39d3cac14
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
3,456
py
# coding: utf-8 import pprint import re import six class ShowMemberDetailRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
f2e6beef9ab524d5325b345c9e2d1affa0b1a47d
022228249a7892e1efeaa11f0d445ba7cb115891
/product/api/serializers_site.py
e33b258e12bf2a82306d4ebbae1db3f0c1ac77f0
[]
no_license
angaradev/django-vue-interface
bacef985b9f9cbd4379992133168c9278b4f707b
2e55d217b12bcda3c54acbb90cd3466bca955c5a
refs/heads/master
2022-12-01T09:24:29.788368
2022-11-22T07:09:44
2022-11-22T07:09:44
241,351,571
0
2
null
2022-11-22T07:09:45
2020-02-18T12:08:14
JavaScript
UTF-8
Python
false
false
3,167
py
# -*- coding: utf-8 -*- # from rest_framework_recursive.fields import RecursiveField from product.models import Cross from rest_framework import serializers from product.models import ( Product, ProductImage, Category, Units, CarModel, CarMake, CarEngine, Country, BrandsDict, Pr...
[ "angara99@gmail.com" ]
angara99@gmail.com
a270f8f89e241c78f56752aad9c4849cf7d66f8c
15c016140f03bb476549fa4bf20d4f52077783a6
/ecl/module_loader.py
faf271acdef9b3503ee8c94a5b92d083abcd53f0
[ "Apache-2.0" ]
permissive
nttcom/eclsdk
5cbb3f0067d260d257f7366d18e0f554d8f17cb3
c2dafba850c4e6fb55b5e10de79257bbc9a01af3
refs/heads/master
2023-08-09T06:24:53.466570
2022-12-01T02:44:48
2022-12-01T02:44:48
86,663,654
5
15
Apache-2.0
2023-09-06T02:39:01
2017-03-30T05:45:19
Python
UTF-8
Python
false
false
989
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 t...
[ "h.ohta@ntt.com" ]
h.ohta@ntt.com
872bb43358fa79c7700cf6626f0e22339467ce80
43f78a4d51f441b4dbbc1a84537804123201a246
/dataaccess/dataexporter.py
b764c20af14dd42baafd8605f4af24b491277d9b
[]
no_license
shmyhero/data-process
28d5bfb27999cb0d462453d4663f01f43a649386
63dac65b41333d6e81bf32ecaa6533b28975c985
refs/heads/master
2021-03-22T00:11:51.373193
2019-10-22T06:27:28
2019-10-22T06:27:28
98,510,392
1
1
null
null
null
null
UTF-8
Python
false
false
1,050
py
import os from utils.logger import Logger from common.configmgr import ConfigMgr from common.pathmgr import PathMgr from optionskewdao import OptionSkewDAO from vixdao import VIXDAO class DataExporter(object): def __init__(self, daily_raw_path=None): self.logger = Logger(__name__, PathMgr.get_log_path())...
[ "elwin.luo@tradehero.mobi" ]
elwin.luo@tradehero.mobi
e959b8a741f902b0414e1f40c0253495b77e7b9d
f6bba50fccc6fb0dae2f046193434cfb4b9d32d5
/54/A.py
ebcd9d660e8171e1ea4e24847f3e19f299254c40
[]
no_license
seven320/AtCoder
4c26723d20004fe46ce118b882faabc05066841c
45e301e330e817f1ace4be4088d3babe18588170
refs/heads/master
2021-11-22T22:57:32.290504
2021-10-24T09:15:12
2021-10-24T09:15:12
162,827,473
2
0
null
null
null
null
UTF-8
Python
false
false
492
py
# encoding:utf-8 import copy import random import bisect #bisect_left これで二部探索の大小検索が行える import fractions #最小公倍数などはこっち import math import sys mod = 10**9+7 sys.setrecursionlimit(mod) # 再帰回数上限はでdefault1000 A,B = map(int,input().split()) if A==B: ans = "Draw" else: if A == 1: ans = "Alice" elif B == ...
[ "yosyuaomenw@yahoo.co.jp" ]
yosyuaomenw@yahoo.co.jp
fcc98bedd3a0869fa161e82145679045adc49903
5fd4707876cac0a4ca3b14af9a936301c45b5599
/10_序列的修改、散列和切片/fp_04_了解__getitem__和切片的行为.py
49d7c6d581010d434f3c5d183befc6c6beade33c
[]
no_license
xuelang201201/FluentPython
5b0d89bfc6ee1238ad77db9955ec7e8417b418b8
7cbedf7c780c2a9e0edac60484f2ad4c385e1dbd
refs/heads/master
2022-04-26T21:49:16.923214
2020-04-27T01:27:50
2020-04-27T01:27:50
258,290,957
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
class MySeq: def __getitem__(self, index): return index # 在这个示例中,__getitem__直接返回传给它的值。 s = MySeq() print(s[1]) # 单个索引,没什么新奇的。 print(s[1:4]) # 1:4 表示法变成了 slice(1, 4, None)。 print(s[1:4:2]) # slice(1, 4, 2) 的意思是从 1 开始,到 4 结束,步幅为 2。 print(s[1:4:2, 9]) # 神奇的事发生了:如果 [] 中有逗号,那么 __getitem__ 收到的是元组。 print(s[...
[ "xuelang201201@gmail.com" ]
xuelang201201@gmail.com
bbd4dc7142151d3c378e11906357393635ccc0eb
01a682ab349df2690fd7ae6e918cb8e68b7aca44
/train.py
b71c77dc926e16074db73763b62597aa42f95d5e
[ "MIT" ]
permissive
misads/torch_image_template
4ecbeaa8c28764cab90b73101fb0309ae2856c8d
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
refs/heads/master
2020-09-22T09:18:48.737332
2020-01-07T13:36:47
2020-01-07T13:36:47
225,135,127
5
0
null
null
null
null
UTF-8
Python
false
false
7,387
py
""" PyTorch Image Template Author: xuhaoyu@tju.edu.cn File Structure: . ├── train.py :Train and evaluation loop, errors and outputs visualization (Powered by TensorBoard) ├── test.py :Test │ ├── network │ ├── Model.py ...
[ "523131316@qq.com" ]
523131316@qq.com
24eca094d917207229a1b23a1435763f5d8d962d
a84e1ed67ef2592cf22f7d19cdddaf16700d6a8e
/graveyard/web/VNET/branches/vnf/content/actors/obsolete/vaspPhon.odb
0b915dda2a74f0472b61de90044a53085518ebfd
[]
no_license
danse-inelastic/inelastic-svn
dda998d7b9f1249149821d1bd3c23c71859971cc
807f16aa9510d45a45360d8f59f34f75bb74414f
refs/heads/master
2016-08-11T13:40:16.607694
2016-02-25T17:58:35
2016-02-25T17:58:35
52,544,337
1
2
null
null
null
null
UTF-8
Python
false
false
558
odb
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2005 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~...
[ "jbrkeith@gmail.com" ]
jbrkeith@gmail.com
a5678355479cffd9ab84a011fd49e713ecd02ad5
177c090fffc3baba54db88fd51f4f21c74f6acb3
/manage.py
334c2decfb81708d1bd7a6599be5ddd095d697d7
[]
no_license
Deep-sea-boy/iHome
d68dcd196c204d63766fc75bdc214fbd8fa6177c
0cb9a23e864e9b8b82126db6e6bedf62a52b73d7
refs/heads/master
2020-03-11T02:52:39.851372
2018-04-23T02:31:10
2018-04-23T02:31:10
130,633,039
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
#coding:utf-8 from flask_migrate import Migrate,MigrateCommand from flask_script import Manager from iHome import get_app,db app = get_app('dev') # # 在迁移时让app和db建⽴关联 Migrate(app,db) manager = Manager(app) # 将迁移脚本添加到脚本管理器 manager.add_command('db',MigrateCommand) if __name__ == "__main__": print app.url_map m...
[ "youremail@example.com" ]
youremail@example.com
b29ec90a8c342083bb1c9315e24d1a38f21f3c5d
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Projects/twilio/build/lib/twilio/rest/conversations/v1/configuration/__init__.py
662c9c24e4e32fe46eca6dd20efe791d972d6ff9
[ "LicenseRef-scancode-other-permissive" ]
permissive
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:462dd494db244faa218d38ab9f086e0defd945bc165b5d99f3410b331d22010e size 11015
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
d1dd441e212f6b5630bf450ef5d17cd930f65e8f
0e94b21a64e01b992cdc0fff274af8d77b2ae430
/function/最大逆向匹配.py
7bbeb95f5295f34cf11bb6d1a625805a4c92e954
[]
no_license
yangnaGitHub/LearningProcess
1aed2da306fd98f027dcca61309082f42b860975
250a8b791f7deda1e716f361a2f847f4d12846d3
refs/heads/master
2020-04-15T16:49:38.053846
2019-09-05T05:52:04
2019-09-05T05:52:04
164,852,337
0
0
null
null
null
null
UTF-8
Python
false
false
1,207
py
# -*- coding: utf-8 -*- """ Created on Tue Jan 8 11:37:30 2019 @author: natasha_yang @e-mail: ityangna0402@163.com """ #分词方法,逆向最大匹配 class RMM(): def __init__(self, dict_path): #prepare dictionary self.dictionary = set() self.maximum = 0 with open(dict_path, 'r', encoding='utf-8')...
[ "ityangna0402@163.com" ]
ityangna0402@163.com
0c42f661e88b5e9e2c9be1f70ac0b4dd7b1fbd0d
08296e4f0139bd23ec73836996e3637eda666a68
/modelsFormsDemo/modelforms/forms.py
ad6e17a28c64283db488cff139dd2c04020dd4f9
[]
no_license
146789/projects
4589efd8f2f11a1beb487ef06a7556d49ed95c72
a288e39cd088ea2717017285fd68d8b42cf4d493
refs/heads/main
2023-02-02T13:54:34.360222
2020-12-19T08:16:11
2020-12-19T08:16:11
322,798,535
0
0
null
null
null
null
UTF-8
Python
false
false
168
py
from django import forms from modelforms.models import Project class projectForm(forms.ModelForm): class Meta: model = Project fields = '__all__'
[ "34913079+146789@users.noreply.github.com" ]
34913079+146789@users.noreply.github.com
d78b64e291c878941f42ce614f2374cf3d1e5db0
060967fa3e6e390ac0504172e6dea8421ffb9d98
/2022/python2022/tests/test_day05.py
6e3cdc045d3b37efe23b317fb4ef6d05472cd6dd
[]
no_license
mreishus/aoc
677afd18521b62c9fd141a45fec4b7bc844be259
e89db235837d2d05848210a18c9c2a4456085570
refs/heads/master
2023-02-22T12:00:52.508701
2023-02-09T04:37:50
2023-02-09T04:39:44
159,991,022
16
3
null
2023-01-05T10:00:46
2018-12-01T22:00:22
Python
UTF-8
Python
false
false
609
py
#!/usr/bin/env python3 """ Test Day05. """ import unittest from aoc.day05 import Day05 class TestDay05(unittest.TestCase): """Test Day05.""" def test_part1(self): """Test part1""" self.assertEqual(Day05.part1("../inputs/05/input_small.txt"), "CMZ") self.assertEqual(Day05.part1("../in...
[ "mreishus@users.noreply.github.com" ]
mreishus@users.noreply.github.com
254f2622c359329e542c446d230344005908e2cf
0bd7c1f7bf6da5ef92b9013e1d913140f0249dfa
/cecilia-python/company-title/alibaba/2020/LongestStringNote.py
bb33251577054be3950acdf1f824040773ccc3af
[]
no_license
Cecilia520/algorithmic-learning-leetcode
f1fec1fae71c4cf7410122f5ce969e829f451308
32941ee052d0985a9569441d314378700ff4d225
refs/heads/master
2022-05-02T03:00:57.505672
2022-03-19T09:51:28
2022-03-19T09:51:28
229,673,810
7
1
null
2022-03-19T09:34:57
2019-12-23T04:04:04
Python
UTF-8
Python
false
false
2,909
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : LongestStringNote.py @Contact : 70904372cecilia@gmail.com @License : (C)Copyright 2019-2020 @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2020/3/30 22:09 cecilia 1.0 最长字符串音符...
[ "cc15572018516@163.com" ]
cc15572018516@163.com
1448d856879ce5cf3724a82a93410eb12c35ce47
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_abominating.py
cf50c6ad0533dcdabbfe02cae9118aac20902ad1
[ "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
236
py
#calss header class _ABOMINATING(): def __init__(self,): self.name = "ABOMINATING" self.definitions = abominate self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['abominate']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
aca024609ff1a5d1f0412312402ccbc8796917f4
c191c82ca5b67d2caf447e16e6d2368404fb6730
/collegeproject/faculty/forms.py
03a3c44e6c8587059cf6254f5dcdbfbf8acccb71
[]
no_license
arunthankachan07/DjangoProjects
070457fe0afeaea0633ab674b311f220fa6bec83
08bd1925ff2d882876b79bc0d8820f033dde3bb3
refs/heads/master
2023-04-22T07:26:19.444894
2021-05-10T06:36:38
2021-05-10T06:36:38
361,839,558
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
from django import forms class FacultyRegistrationForm(forms.Form): firstname=forms.CharField(max_length=120) username=forms.CharField(max_length=120) password=forms.CharField(max_length=100) class FacultyLoginForm(forms.Form): username=forms.CharField(max_length=120) password=forms.CharField(max...
[ "arunkaripuzha07@gmail.com" ]
arunkaripuzha07@gmail.com
8f900e4a807812f900ab27f85d1512892a94a0bb
6c189e7654d640dbf56c1481bb2439dbb3353402
/IPython/html/tests/test_external.py
00bf4d2b83b4b1bb4b56c956e748976034367ebb
[ "BSD-3-Clause" ]
permissive
zakandrewking/ipython
c39ba65ae8b7f323f061a591906144569a5a2e54
3e4d535825d60405fbe8d094b455848d59489cfa
refs/heads/master
2020-05-05T06:07:01.968458
2014-05-07T16:35:37
2014-05-07T16:35:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
712
py
"""Test external""" #----------------------------------------------------------------------------- # Copyright (C) 2014 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #--------------------------------...
[ "zaking17@gmail.com" ]
zaking17@gmail.com
7acea09ca55ff4c8012867d77a44b7dd143eaeab
1fe8d4133981e53e88abf633046060b56fae883e
/venv/lib/python3.8/site-packages/tensorflow/python/ops/distributions/kullback_leibler.py
b8d069bc79d770fe4193fbaf947981a0394075e9
[]
no_license
Akira331/flask-cifar10
6c49db8485038731ce67d23f0972b9574746c7a7
283e7a2867c77d4b6aba7aea9013bf241d35d76c
refs/heads/master
2023-06-14T16:35:06.384755
2021-07-05T14:09:15
2021-07-05T14:09:15
382,864,970
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:c0b7ee140903b8fcf26aad781cc776aa0a35cbc9f9efcc1f0b65c3e7318bcd6a size 7820
[ "business030301@gmail.com" ]
business030301@gmail.com
b019fa4745f8434c4b9e8976e21d77d5308b1bc0
2caa47f0bdb2f03469a847c3ba39496de315d992
/Contest/ABC040/c/main.py
9e5d1b18c640488baf621790690b16c39aaaaa6c
[ "CC0-1.0" ]
permissive
mpses/AtCoder
9023e44885dc67c4131762281193c24b69d3b6da
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
refs/heads/master
2023-03-23T17:00:11.646508
2021-03-20T12:21:19
2021-03-20T12:21:19
287,489,233
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
#!/usr/bin/env python3 n, *a = map(int, open(0).read().split()) INF = float("inf") dp = [INF] * n dp[0] = 0 for i in range(1, n): dp[i] = min(dp[i - p] + abs(a[i - p] - a[i]) for p in [1, 2]) print(dp[n - 1])
[ "nsorangepv@gmail.com" ]
nsorangepv@gmail.com
895c65d6ec11f32c7cb39d127fb4f1d7bfac65ce
84741b2103b702791076e65679b8ab89a132ac3a
/venelin/wsgi.py
7f14d3ffdae9d8169abafb8e6bacd57b5873b0c9
[]
no_license
Yaqdata/venko-django-site
97b78cbeaa9676fb3d230f47036746f1e8a342d6
eefdf12c9bc6a1873c4f451e1023d9ec691ce300
refs/heads/master
2021-01-15T12:14:33.573809
2013-12-09T22:12:06
2013-12-09T22:12:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "venelin.settings") # This application object is used by the development server # as well as any WSGI server configured to use this file. import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
[ "vkstoykov@gmail.com" ]
vkstoykov@gmail.com
b29308f7c9eaaf48077bcadb3fae69b3346e1ec1
33bae2dead37bcd22460e05de67531cfdacfcccb
/wis/urls.py
9f2729796b8a3e3576da8fb4661d1e77a77948b8
[]
no_license
wis-auralov/wis
5cfb0dba9c74d8d944b770d9b706de91fe01440d
40d2e187b448a42008b8db6f00cf17818fff2444
refs/heads/master
2021-01-20T07:36:10.174053
2017-04-29T18:46:41
2017-04-29T18:46:41
90,016,639
0
0
null
2017-05-02T09:43:22
2017-05-02T09:43:22
null
UTF-8
Python
false
false
848
py
from django.conf.urls import url, include from django.contrib import admin from clients.views import ClientList, ClientDetail, ClientDelete, ClientCreate, ClientScores, download_xlsx urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^client_detail/(?P<pk>[0-9]+)/$', ClientDetail.as_view(), name='client_d...
[ "lse1983@mail.ru" ]
lse1983@mail.ru
50da310865ec2f297b42c59a7c926b4a47b868cb
ddd5109d8ce1832423448d7f4932255118d56e36
/apps/gigs/models.py
5fffeca65ca75cda079ff70d879f2efb2adac79b
[]
no_license
amyth/gigzag
fe5b52677db2ba17083d4fdb059c0a12e6b3646d
1569fd40aa02c8b7921ad6a7f8f4e8b9ad4cf652
refs/heads/master
2021-01-21T07:03:28.397118
2017-02-27T12:01:02
2017-02-27T12:01:02
83,305,491
0
0
null
null
null
null
UTF-8
Python
false
false
3,769
py
import os import uuid from django.contrib.auth.models import User from django.contrib.contenttypes.fields import GenericRelation from django.core.files import File from django.db import models from django.db.models import Q from django_comments.models import Comment from liked.models import Like from moviepy.editor i...
[ "aroras.official@gmail.com" ]
aroras.official@gmail.com
aaa4bf02509e564a891d5a05ae8f6daf2a153f8a
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_7/grcdea001/question1.py
dba5df6eec999efec76cbe617d7ebd465574d3a3
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
"""Program to print out a list of strings without duplicates, assignment 7 question 1 Dean Gracey 27 April 2014""" word=input("Enter strings (end with DONE):\n") words = [] while word!= "DONE": if not word in words: words.append(word) word = input("") print("\nUnique list:") ...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
054f71754967e78023ad8b59df9cff86e239ca30
eb71f3494fb00708e6d5e8c332f27c4026063339
/il2fb/ds/events/definitions/version.py
fac6811fd60d1fe2728ff87ecfeae3f0adc46026
[ "MIT" ]
permissive
IL2HorusTeam/il2fb-ds-events
dab5fc7ec0b1389c5fc1e975f9134e6ffe35bdee
fb71ffbce63ac1b3b3a27263250e021f9543ba9f
refs/heads/main
2023-02-01T16:29:18.565016
2020-12-22T17:53:45
2020-12-22T17:53:45
310,578,022
2
0
null
null
null
null
UTF-8
Python
false
false
223
py
VERSION_SUFFIX = "a0" VERSION_PATCH = "0" + (VERSION_SUFFIX or "") VERSION_MINOR = "0" VERSION_MAJOR = "1" VERSION_INFO = (VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH) VERSION = ".".join([str(x) for x in VERSION_INFO])
[ "oblovatniy@gmail.com" ]
oblovatniy@gmail.com
aa324cc4383ae2314514c934cf5ae4d5f72ade34
c7a31023a11b376e543e41b00212dc7eca07b386
/cryptofeed/kraken/kraken.py
5bb79d6c9f884c708f916bbad8370bd7e22906d4
[ "LicenseRef-scancode-warranty-disclaimer", "Python-2.0" ]
permissive
orens77/cryptofeed
5d2123f17745be6bf2eb7bf5a96547006e16d083
d155b30eadb015c7167141a3dbbb8d42af6ae4f0
refs/heads/master
2020-04-25T17:45:22.849820
2019-06-04T14:51:11
2019-06-04T14:51:11
172,960,015
0
0
NOASSERTION
2019-02-27T17:31:47
2019-02-27T17:31:46
null
UTF-8
Python
false
false
6,183
py
''' Copyright (C) 2017-2019 Bryant Moscon - bmoscon@gmail.com Please see the LICENSE file for the terms and conditions associated with this software. ''' import json import logging from decimal import Decimal import time from sortedcontainers import SortedDict as sd from cryptofeed.feed import Feed from cryptofeed....
[ "bmoscon@gmail.com" ]
bmoscon@gmail.com
dcb4c855cf299c37b70980412d0997e041832a97
3fb0ce33f00b96ae3808a32da44de3e887434afb
/.提出一覧/AtCoder/M-SOLUTIONSプロコンオープン2020/msol_D.py
57fa6ba1c8ac9cddfb25c897c2153a9acee8c49d
[]
no_license
Yukikazari/kyoupuro
ca3d74d8db024b1988cd0ff00bf069ab739783d7
343de455c4344dbcfa4524b492f7f6205c9db26f
refs/heads/master
2023-02-21T01:53:52.403729
2021-01-27T03:55:01
2021-01-27T03:55:01
282,222,950
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
N = int(input()) A = list(map(int, input().split())) money = 1000 kabu = 0 for i in range(len(A)-1): if kabu != 0: if A[i] >= A[i + 1]: money += kabu * A[i] kabu = 0 else: if A[i] < A[i + 1]: kabu = money // A[i] money -= kabu * A[i] if kabu !...
[ "haya_nanakusa793@yahoo.co.jp" ]
haya_nanakusa793@yahoo.co.jp
e70dabf76a8f2d14e74e6b2353114e4dafe9e649
adbcc8ff2249dc9906095bf894d2923b197f8af2
/examples/csj/s5/local/remove_pos.py
3e354475e35113bfcbd8497b2fc1cf5ff9e61663
[]
no_license
caochensi/neural_sp
de39d0919aeb6da28b90140be051c124f7efcc3f
019247ccae7df461f852c5130ea127e395d071dc
refs/heads/master
2020-04-15T14:49:52.408291
2019-01-06T10:52:36
2019-01-06T14:43:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2018 Kyoto University (Hirofumi Inaguma) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) """Remove POS tag.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import re...
[ "hiro.mhbc@gmail.com" ]
hiro.mhbc@gmail.com
2b02015ba8e96f08cf871f37cd5331da7911e852
e9e433c57a7d73d848fbade5e354a8c31ff0ea87
/tests/test_subword_separation.py
43d1525eb175ddd755df02c966b5532c5a64d8f9
[ "Apache-2.0" ]
permissive
Joshua0128/codeprep
a7f99533e7b74e089fb66a3f10f6be59d4ca4b71
0f41307f7a9ad545e5ec0cc9552a0144328f2422
refs/heads/master
2023-07-09T13:07:33.094940
2021-04-21T18:08:30
2021-04-21T18:08:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,553
py
# SPDX-FileCopyrightText: 2020 Hlib Babii <hlibbabii@gmail.com> # # SPDX-License-Identifier: Apache-2.0 # import unittest # # from codeprep.bpepkg.bpe_encode import BpeData # from codeprep.parse.core import convert_text # from codeprep.parse.model.containers import SplitContainer # from codeprep.parse.model.numeric im...
[ "hlibbabii@gmail.com" ]
hlibbabii@gmail.com
eb940db047f8f17e8e5f77e6aba568932e282e75
f1624dc174a172aff3b6cf7b9c7d1f2505bb76ee
/code/plot_double_bar_tmp.py
ee014d0f52a5091ca582759f7a4d2e1f81e4de3e
[]
no_license
blxlrsmb/TrendMicro2014
5d0bf07a54e8f2123af06cd58beef36ad9cb007d
63894ede6bbfeb1ce62a5b64c56996dd53c6c2ce
refs/heads/master
2021-01-10T14:12:56.868967
2015-11-21T23:39:36
2015-11-21T23:39:36
46,638,621
0
0
null
null
null
null
UTF-8
Python
false
false
2,000
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # $File: plot_double_bar_tmp.py # $Date: Mon Aug 18 06:45:14 2014 +0800 # $Author: Xinyu Zhou <zxytim[at]gmail[dot]com> from sklearn.datasets import load_svmlight_file import matplotlib.pyplot as plt import numpy import sys from IPython import embed def process_data(X, ...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
a9c44935af9e748a670870274888deac52241fc7
c3865ab8c207ee58056be8eda7319acaa9a04654
/Plots/simple/SimpleBarPlot.py
4e5aa7de3779008ecd87c21d430eaf7f2ba2977f
[]
no_license
jonathanglima/Python
d42c21cb9030063f172c03efbb598a969db48539
43c53b6f20973c31ce95d2891293d344d655d377
refs/heads/master
2021-08-08T07:42:56.348207
2017-11-09T22:19:17
2017-11-09T22:19:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,092
py
# -*- coding: utf-8 -*- """ Created on Tue Jul 07 16:56:32 2015 Simple Bar plot function @author: Edward """ import numpy as np import matplotlib.pyplot as plt import matplotlib.font_manager as fm import os # global variables # fontname = 'C:/Users/Edward/Documents/Assignments/Scripts/Python/Plots/resource...
[ "cui23327@gmail.com" ]
cui23327@gmail.com
72d6334fff676e48b52f9b448c483d6a4750c874
524c17cbe94ee67babf817bad3b304e2573aa2da
/Lab4/func.py
12c785bd1737ed353c5e4ba959d5d126ed932708
[]
no_license
JoniNoct/python-laboratory
6707664fa58d6e0fcde8476f9670fcf9c312e830
551fdb128bcf113e72fd13ff7441455c830ecf45
refs/heads/master
2020-07-29T15:20:26.183289
2019-11-11T22:42:42
2019-11-11T22:42:42
209,859,702
0
0
null
null
null
null
UTF-8
Python
false
false
1,094
py
def checkType(a): i = 1 if a == "int": while i == 1: try: v = int(input()) i += 1 except: print("Потрібно ввести число") return v elif a == "float": while i == 1: try: v = float(input(...
[ "tereshchenko.igor@gmail.com" ]
tereshchenko.igor@gmail.com
ca7dcb5b038ec85b1e09b2329b549221e8c3d1ad
c2544163e17fad9a4e5731bd1976bfc9db44f8bd
/reagent/net_builder/discrete_dqn/dueling.py
fc2fe4b2e4cb677386c517f34dfdc563b2f3b93f
[ "BSD-3-Clause" ]
permissive
zachkeer/ReAgent
52fb805576dc7b1465e35921c3651ff14cd9345e
3e5eb0391050c39b9d4707020f9ee15d860f28cb
refs/heads/master
2022-11-25T14:08:21.151851
2020-07-22T06:44:28
2020-07-22T06:45:48
281,907,350
1
0
BSD-3-Clause
2020-07-23T09:21:50
2020-07-23T09:21:49
null
UTF-8
Python
false
false
1,216
py
#!/usr/bin/env python3 from typing import List from reagent import types as rlt from reagent.core.dataclasses import dataclass, field from reagent.models.base import ModelBase from reagent.models.dueling_q_network import DuelingQNetwork from reagent.net_builder.discrete_dqn_net_builder import DiscreteDQNNetBuilder fr...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
e5384e5808f75faeb98b36e08e1fdf5188cd9ff4
301a7cb5d21808b4442f641ba4396fbd6c1da6f0
/dataclasses_serialization/serializer_base.py
9513f627a0877f7ae41e8c6862dc1a5fb057b84f
[ "MIT" ]
permissive
kitschen/python-dataclasses-serialization
5766b8010ffb3d8af7aa4925b00f733019ca4b2f
c0c4e4e037a01871dccb13c25478f35a9dfb7717
refs/heads/master
2022-05-30T06:13:23.474156
2020-02-18T17:12:52
2020-02-18T17:12:52
260,832,071
0
0
MIT
2020-05-03T05:05:06
2020-05-03T05:05:05
null
UTF-8
Python
false
false
7,635
py
from dataclasses import dataclass, fields, is_dataclass from functools import partial from typing import TypeVar, Union, Dict, List, get_type_hints from typing_inspect import is_union_type, get_origin, get_args from toolz import curry try: from typing import GenericMeta except ImportError: from typing import...
[ "madman.bob@hotmail.co.uk" ]
madman.bob@hotmail.co.uk
f0941a9ff0770700eaf5c789d61d647d34b3bcde
13a5a2ab12a65d65a5bbefce5253c21c6bb8e780
/dnainfo/skyline_chi/migrations/0007_auto_20161019_1408.py
61784f86a84c1613426e15ae6a744a2d42ba257a
[]
no_license
NiJeLorg/DNAinfo-CrimeMaps
535b62205fe1eb106d0f610d40f2f2a35e60a09e
63f3f01b83308294a82565f2dc8ef6f3fbcdb721
refs/heads/master
2021-01-23T19:28:12.642479
2017-05-11T06:04:08
2017-05-11T06:04:08
34,847,724
2
0
null
2016-11-25T15:56:14
2015-04-30T10:02:41
JavaScript
UTF-8
Python
false
false
2,612
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2016-10-19 18:08 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
[ "jd@nijel.org" ]
jd@nijel.org
9875fadcf6f959f0bd030c49d8153372772cbd1e
a7c4f8d4e101a4b3961419278809923a6ddbfde7
/connect.py
a69af0ebbc3139fa555aa28b47aa0bec1878cc76
[]
no_license
memonsbayu/phyton
5b7bfabc1a132d7c8ac6d057fbc7e8bb687ecff7
858966d11d95ff3fd829179abe1e349f2b84345f
refs/heads/master
2023-01-01T07:43:23.784410
2020-10-22T13:07:09
2020-10-22T13:07:09
306,339,910
1
0
null
null
null
null
UTF-8
Python
false
false
303
py
import mysql.connector def koneksi(): db = mysql.connector.connect( host="localhost", user="root", passwd="", database="sewa_alat_olahraga", autocommit=True ) if db.is_connected(): return db else: print ('DB disconnected!')
[ "you@example.com" ]
you@example.com
0b6b42e43e78681a0e3e98a62abf55692dd129ed
ad3011f4d7600eb1b436f1527e1b576910a64b56
/05_cwiczenia/01_podstawy/06_cwiczenie.py
ed2a29bfc6b92745932f9a079b0001d3a4bdde77
[]
no_license
pawel-domanski/python-basic
7a048c7de950d997492c11b4f07888f856908639
1adce694d58b4969f843cfc651d3e2a027a4f3f3
refs/heads/main
2023-03-21T12:55:22.097946
2021-03-06T09:54:09
2021-03-06T09:54:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
# -*- coding: utf-8 -*- """ Używając odpowiedniej metody połącz podane wyrazy symbolem '#': > sport > python > free > time Następnie wydrukuj do konsoli. Oczekiwany rezultat: sport#python#free#time """
[ "krakowiakpawel9@gmail.com" ]
krakowiakpawel9@gmail.com
87cec23de18905c57c19aafa9befa366d356508a
bab4f301ff7b7cf0143d82d1052f49e8632a210e
/1010. Pairs of Songs With Total Durations Divisible by 60.py
a0b93d4f53a519df6b31b2c79b16534f395f35f8
[]
no_license
ashish-c-naik/leetcode_submission
7da91e720b14fde660450674d6ce94c78b1150fb
9f5dcd8e04920d07beaf6aa234b9804339f58770
refs/heads/master
2020-04-05T05:12:03.656621
2019-06-08T17:30:22
2019-06-08T17:30:22
156,585,497
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
class Solution(object): def numPairsDivisibleBy60(self, time): """ :type time: List[int] :rtype: int """ hm = collections.defaultdict(int) count = 0 for x in time: # if x % 60 == 0: # count += 1 new = x % 60 ...
[ "ashishnaik121@gmail.com" ]
ashishnaik121@gmail.com
edcf513b1d1c7b3cec4fd78ec26e06b893ead73c
a9c5c6f6aed746cdfaa594db54d7a2d46e33f430
/LICENSE.md/windpred/rev.py
e654404ff6da9e277f6a2ebb1c776a14f88de152
[]
no_license
nyc1893/Python-Learning
a7b81d169c4678c199a61aa4c7d226ce927aa8d8
13bc6b8cc28c25df2730d9672d419cd57cab55d4
refs/heads/master
2023-07-20T23:08:38.164660
2023-07-06T14:35:29
2023-07-06T14:35:29
101,700,286
0
1
null
null
null
null
UTF-8
Python
false
false
4,785
py
import math import pandas as pd import numpy as np import statsmodels.api as sm # recommended import according to the docs import matplotlib.pyplot as plt from scipy.stats import genpareto # delta p are used import math import pandas as pd import numpy as np import matplotlib.pyplot as plt import timeit from sklearn....
[ "noreply@github.com" ]
nyc1893.noreply@github.com
4fa2ed4953655341861de67ea4bdc73d68fb9f5f
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/Examples/bokeh/charts/file/scatter_multi.py
0d60b5f6af7af7857ba99101beed2f2f5abe3f18
[ "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
2,207
py
import pandas as pd from bokeh.charts import Scatter, output_file, show, vplot, hplot, defaults from bokeh.charts.operations import blend from bokeh.charts.utils import df_from_json from bokeh.sampledata.autompg import autompg as df from bokeh.sampledata.iris import flowers from bokeh.sampledata.olympics2014 import d...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
451dbc04f9f9a357113e55a6e8573541403d21aa
8ada05f8c41e2b238f1dad053d6abf66bc53f633
/1600~1699/1629.py
1db19048448ac5d342d57fec807edb6153a4b40b
[]
no_license
chulhee23/BaekJoon_Online_Judge
84ccd9f2223ea57ab305b9ee27dac0c7e8222df4
b1afcaaba63e49552363a003ff2be8a5878a78a7
refs/heads/master
2020-09-22T00:18:39.822112
2019-11-24T08:21:00
2019-11-24T08:21:00
224,983,873
0
1
null
2019-11-30T08:44:22
2019-11-30T08:44:21
null
UTF-8
Python
false
false
484
py
# 문제 # 자연수 A를 B번 곱한 수를 알고 싶다. # 단 구하려는 수가 매우 커질 수 있으므로 # 이를 C로 나눈 나머지를 구하는 프로그램을 작성하시오. # # 입력 # 첫째 줄에 A, B, C가 빈 칸을 사이에 두고 순서대로 주어진다. # A, B, C는 모두 2,147,483,647 이하의 자연수이다. # # 출력 # 첫째 줄에 A를 B번 곱한 수를 C로 나눈 나머지를 출력한다. print(pow(*map(int, input().split())))
[ "alstn2468_@naver.com" ]
alstn2468_@naver.com
a5d288adf3bf422f7a0fc81863207a92aadde21d
d9f52125601ec26f79202f0e912891b31b60ffc4
/오후반/Introduction/6_Write_a_function/6_JHW.py
c190540064743a984c2c22f1d8da69ea32296212
[]
no_license
YoungGaLee/2020_Python_coding-study
5a4f36a39021c89ac773a3a7878c44bf8b0b811f
b876aabc747709afa21035c3afa7e3f7ee01b26a
refs/heads/master
2022-12-12T13:34:44.729245
2020-09-07T04:07:48
2020-09-07T04:07:48
280,745,587
4
4
null
2020-07-22T03:27:22
2020-07-18T21:51:40
Python
UTF-8
Python
false
false
201
py
def is_leap(year): leap = False if year%400==0: leap = True if year==1992: leap = True # Write your logic here return leap year = int(input()) print(is_leap(year))
[ "noreply@github.com" ]
YoungGaLee.noreply@github.com
467d21c0b49dff3c3bce69d7006e14d3f82a3063
9dc00969cbb9ab462836c548927c0a471f8a9737
/05列表优化及去重/05-method1.py
bcb0163750b2b7f0ba3004ea8d561e79ec761c37
[]
no_license
wan230114/JUN-Python
ad2cb901881b3b6f07a7cdd42ac0ff2c86e8df56
3619c8e392c241bd1c9b57dbc16a1f2f09ccc921
refs/heads/master
2021-05-01T09:51:01.309505
2018-08-31T07:12:31
2018-08-31T07:12:31
121,096,578
0
0
null
2018-02-11T07:34:54
2018-02-11T07:15:42
null
UTF-8
Python
false
false
468
py
#!usr/bin/python row = open('row_list', 'r') clean = open('clean_list', 'w+') uni = open('uni', 'w') for line in row: new_line='' for line1 in line.strip(): if line1=='.':break new_line=new_line+line1 clean.write(new_line+'\n') print new_line cl...
[ "1170101471@qq.com" ]
1170101471@qq.com
f83748286858d4ca788884511300b237b5cf3cd0
eba4934e6af6ec85d286c336dbc2c0f27013110d
/mxnetseg/data/cityscapes.py
8bd95d8aab0fa9d8025b6819fd3934d769a7c0c9
[ "Apache-2.0" ]
permissive
jeou/MXNetSeg
a87c349a12c7c2a77018628e5a231cf8624a5e1c
8a700aa2c2d939fce11b52bde7291ef231c9bfaa
refs/heads/master
2022-10-21T18:24:18.864007
2020-06-14T10:10:18
2020-06-14T10:10:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,758
py
# coding=utf-8 # Adapted from: https://github.com/dmlc/gluon-cv/blob/master/gluoncv/data/cityscapes.py import os import mxnet as mx import numpy as np from PIL import Image from gluoncv.data.segbase import SegmentationDataset class CitySegmentation(SegmentationDataset): NUM_CLASS = 19 def __init__(self, roo...
[ "bebdong@outlook.com" ]
bebdong@outlook.com
bce858e5ade4868147186f01125ce9ce7fdd7da8
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/6kseWBaSTv6GgaKDS_13.py
450ef2b91638e545ce5a4241819dcf90166b90f5
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
def next_letters(s): if s == '' : return 'A' elif s.count('Z') == len(s) : return (len(s)+1)*'A' else : z = 0 # number of z at the end of our string while s[::-1][z] == 'Z' : z += 1 pA, pZ = s[::-1][:z:-1], s[-z-1:] # splitting into 2 parts : constant/changed ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
a63169009d6cf39d1f227d2d919b8ec6de5bfdb6
f5863cf378bce80d3aa459941dff79ea3c8adf5d
/SWEA/SW_TEST/SWEA_1949/SWEA_1949.py
fb26396032d958d97a1532f3d9ec7a520523d8a2
[]
no_license
Taeg92/Problem_solving
815c13ae7895708948482eeb05411322be00ac12
15c0fe0eda4f77d974451777cb01d10882d8aaa9
refs/heads/master
2021-11-18T22:03:21.727840
2021-09-06T14:21:09
2021-09-06T14:21:09
235,335,532
0
0
null
null
null
null
UTF-8
Python
false
false
1,159
py
# Problem [1949] : 등산로 조정 import sys sys.stdin = open('input.txt') dx = (-1, 0, 1, 0) dy = (0, 1, 0, -1) def DFS(x, y, d, k): global m if m < d: m = d C[x][y] = 1 for i in range(4): nx = x + dx[i] ny = y + dy[i] if 0 <= nx < N and 0 <= ny < N and not C[nx][ny]: ...
[ "gtg92t@gmail.com" ]
gtg92t@gmail.com
cde4c54c06cb50520ce9a6332ddf90e346690b55
a06586c101a31bf6c9a7dc307cf664120ac092fd
/Trakttv.bundle/Contents/Code/core/helpers.py
0a18e71922fa1e88e21953945d60d23bf924f0e6
[]
no_license
HaKDMoDz/Plex-Trakt-Scrobbler
22dd1d8275698761cb20a402bce4c5bef6e364f9
6d46cdd1bbb99a243b8628d6c3996d66bb427823
refs/heads/master
2021-01-22T00:10:18.699894
2015-05-25T23:52:45
2015-05-25T23:52:45
37,312,507
2
0
null
2015-06-12T09:00:54
2015-06-12T09:00:53
null
UTF-8
Python
false
false
8,062
py
from core.logger import Logger import hashlib import inspect import re import sys import threading import time import unicodedata log = Logger('core.helpers') PY25 = sys.version_info[0] == 2 and sys.version_info[1] == 5 def try_convert(value, value_type, default=None): try: return value_type(value) ...
[ "gardiner91@gmail.com" ]
gardiner91@gmail.com
111e6b5d2743a33767a2b20fe559d5eb6d64d37b
21a1b71ab16d81cb82cae39736b196306df2d471
/road_detection2/4.2.road_detecting_using_cam.py
ab8ae27530c48b14ce652d0d1a1a737b7d192275
[]
no_license
aiegoo/jet-notebook
2eb10ffbe100c609ab5cf356c905e84d9129f2a7
dc3dc58cb5c5e238bc55250d1129b0427757486b
refs/heads/master
2023-02-07T21:30:39.800359
2021-01-04T01:59:51
2021-01-04T01:59:51
318,427,706
0
0
null
null
null
null
UTF-8
Python
false
false
6,223
py
#!/usr/bin/env python # coding: utf-8 # In[1]: import numpy as np import matplotlib.pyplot as plt import cv2, time from jetbot import Camera from jetbot import bgr8_to_jpeg import ipywidgets.widgets as widgets import traitlets # In[2]: def preprocessing(img): gray = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) g...
[ "eozz21@gmail.com" ]
eozz21@gmail.com
29c691b36c36a0ce2059bd0c694533d59f1f55e2
b1392c69fcbdcb5ecd798b473e22a6ce9e2e8e44
/CorazonPet/apps/tipo_mascota/admin.py
b0b445cb697c981a0e7be68febad73d93172206b
[]
no_license
joselofierro/CorazonPet
34a1b9a3ea72d81f48f1059b6b27ad080f643738
f92c297b16e8b133c57af73560efef34c064c104
refs/heads/master
2021-11-28T19:13:45.353617
2018-01-09T22:42:52
2018-01-09T22:42:52
111,141,800
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
from django.contrib import admin # Register your models here. from apps.tipo_mascota.models import TipoMascota admin.site.register(TipoMascota)
[ "juliofierro@Mac-mini-de-JULIO.local" ]
juliofierro@Mac-mini-de-JULIO.local
6a2ec327abe96a1032005e64bb9bbca2e24d3680
aa76391d5789b5082702d3f76d2b6e13488d30be
/Private Project/Web Scrap/practice/ruliweb_login.py
bae40ed151b3f4cf80c2d9f9b8e1e5a97ec6b465
[]
no_license
B2SIC/python_playground
118957fe4ca3dc9395bc78b56825b9a014ef95cb
14cbc32affbeec57abbd8e8c4ff510aaa986874e
refs/heads/master
2023-02-28T21:27:34.148351
2021-02-12T10:20:49
2021-02-12T10:20:49
104,154,645
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
import requests from getpass import getpass from bs4 import BeautifulSoup getId = input("ID: ") getPw = getpass("Pw: ") # 로그인 유저 정보 LOGIN_INFO = { 'user_id': getId, 'user_pw': getPw } # Session 생성, with 구문안에서 유지 with requests.Session() as s: login_req = s.post("https://user.ruliweb.com/member/login_proc"...
[ "the_basic_@kookmin.ac.kr" ]
the_basic_@kookmin.ac.kr
355af19dc2658d6f894db7b2443035b55fd6cc83
1eb2d7d2a6e945a9bc487afcbc51daefd9af02e6
/spider/paperspider/papers/papers/spiders/conference2cn.py
578441368a8e57ac02bdea595a983211dac5dc19
[]
no_license
fengges/eds
11dc0fdc7a17b611af1f61894f497ad443439bfe
635bcf015e3ec12e96949632c546d29fc99aee31
refs/heads/master
2021-06-20T04:43:02.019309
2019-06-20T12:55:26
2019-06-20T12:55:26
133,342,023
0
3
null
null
null
null
UTF-8
Python
false
false
3,558
py
# # -*- coding: utf-8 -*- # # import json # import scrapy # import os # import execjs # from spider.paperspider.papers.papers.services.paperservices import paper_service # from spider.paperspider.papers.papers.items import * # # root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__fi...
[ "1059387928@qq.com" ]
1059387928@qq.com
c40bb05e041686ddc9a84e2e9662c6b79990c8ae
b4869228738cdcd1a5fcb10b2091b78415ca9741
/algorithmic-toolbox/week6/knapsack.py
ac783dfb88a227e9feaa93a0399a47c5c62f643b
[]
no_license
mmanishh/coursera-algo-toolbox
8d23d18985acfb33f44f08ac8c306fdb68dc3e88
d3153904732ab5b4125fc8913fcea6e969028822
refs/heads/master
2020-04-13T19:17:03.421935
2019-01-14T11:15:06
2019-01-14T11:15:06
163,397,885
0
0
null
null
null
null
UTF-8
Python
false
false
885
py
# Uses python3 import sys def optimal_weight_naive(W, w): # write your code here result = 0 for x in w: if result + x <= W: result = result + x return result def optimal_weight(W,w): n = len(w) value = [[0 for j in range(W+1)] for i in range(n+1)] for i in range(1,n+1)...
[ "dfrozenthrone@gmail.com" ]
dfrozenthrone@gmail.com
de75953113f38f1ca7a911263a44bf7b01dc222d
0a0c6994c319981f7ba5d31eee3b074453ca4c0d
/autres/ahmedmelliti/module/__init__.py
b56955a8c3ed1a936aabb84a3da36d040ed5a34f
[]
no_license
arianacarnielli/2i013
678595c498cba5ec932ee9badd4868a08dad0663
a804abb7c2337fe9963c2ddfcd73db80d8b787d8
refs/heads/master
2021-05-10T13:30:21.353951
2018-05-08T14:17:40
2018-05-08T14:17:40
118,476,287
0
1
null
null
null
null
UTF-8
Python
false
false
853
py
#from .strategies import RandomStrategy #from .strategies import * from .strategies import * from soccersimulator import SoccerTeam def get_team(nb_players): myteam = SoccerTeam(name="MaTeam") #for i in range(nb_players): # myteam.add("Joueur "+str(i) ,FonceurStrategy()) if nb_players==1: myteam.add("J...
[ "ariana.carnielli@gmail.com" ]
ariana.carnielli@gmail.com
85c46754048661ed70e41167e6a0ba3fb08340df
bddc40a97f92fafb8cbbbfdbdfe6774996578bb0
/exercicioLista_listas/ex04.py
41c3c3e877a2ead3a68266440beefacbecb10b67
[]
no_license
andrehmiguel/treinamento
8f83041bd51387dd3e5cafed09c4bb0a08d0e375
ed18e6a8cfba0baaa68757c12893c62a0938a67e
refs/heads/main
2023-01-31T13:15:58.113392
2020-12-16T02:47:44
2020-12-16T02:47:44
317,631,214
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
# 4. Faça um Programa que leia um vetor de 10 caracteres, e diga quantas consoantes # foram lidas. Imprima as consoantes. listaChar = [] consoantes = 0 print ('Informe 10 caracters') for x in range(10): listaChar.append(input(f'Informe o {x + 1}º caracter: ')) char = listaChar[x] if(char not in ('a','e','i...
[ "andrehmiguel@outlook.com" ]
andrehmiguel@outlook.com
305a36881d7b04e423b340695be5258894e8f796
784359e29fce9b3cd7c4c2d71e5f0498dd6d4b5c
/src/test.py
3c1dc8f967ea7179b24fec3646130ef5391d7ded
[]
no_license
lmorillas/imagenes-arasaac
65740df76a8d8f43493464153eea08d93687df68
48bec6df2095dda1ab2db5b08b4dccaae1ffe5e0
refs/heads/master
2021-05-11T10:13:07.999743
2018-01-19T08:18:36
2018-01-19T08:18:36
118,097,208
0
0
null
null
null
null
UTF-8
Python
false
false
1,024
py
# coding: utf-8 ''' https://stackoverflow.com/questions/25615741/how-to-use-the-spanish-wordnet-in-nltk http://python.6.x6.nabble.com/attachment/2743017/0/Python%252520Text%252520Processing%252520with%252520NLTK%2525202.0%252520Cookbook.pdf https://www.pybonacci.org/2015/11/24/como-hacer-analisis-de-sentimiento-en-es...
[ "morillas@gmail.com" ]
morillas@gmail.com
06a5d6e41fa605cea837fb39e38f115ddd43e2f2
ee974d693ca4c4156121f8cb385328b52eaac07c
/env/lib/python3.6/site-packages/pbr/pbr_json.py
c18362b03df827909c74e5c536a42156e97ecada
[]
no_license
ngonhi/Attendance_Check_System_with_Face_Recognition
f4531cc4dee565d0e45c02217f73f3eda412b414
92ff88cbc0c740ad48e149033efd38137c9be88d
refs/heads/main
2023-03-12T07:03:25.302649
2021-02-26T15:37:33
2021-02-26T15:37:33
341,493,686
1
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:686172037b3d816c532f2e6aad2cfc06e034a7e538b9be33bf7a1f7a559cd64f size 1284
[ "Nqk180998!" ]
Nqk180998!
815b00ec395cb0cfa575f77a0073e2eace93b7db
a9815c48ece2064c0b35e5f5ea76fa460ee67e43
/Commands/Rainbow.py
6716958404cb2c996b15c812739b04611ecea790
[ "MIT" ]
permissive
Heufneutje/PyMoronBot
1ca0ef3877efa4ca37de76a1af3862085515042e
055abf0e685f3d2fc02863517952dc7fad9050f3
refs/heads/master
2020-12-28T21:39:11.871132
2016-07-14T16:38:15
2016-07-14T16:38:15
24,449,387
0
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
# -*- coding: utf-8 -*- """ Created on May 04, 2014 @author: Tyranic-Moron """ from CommandInterface import CommandInterface from IRCMessage import IRCMessage from IRCResponse import IRCResponse, ResponseType from twisted.words.protocols.irc import assembleFormattedText, attributes as A class Rainbow(CommandInterf...
[ "matthewcpcox@gmail.com" ]
matthewcpcox@gmail.com
a084b0e7a5d66b9462e3e0f4016dca8595899060
42e2d31fe71e1a2c0b50a5d4bbe67e6e3e43a2ef
/contrib/devtools/check-doc.py
1b3264bca50da1765ffaf44ca268e87bec46ddfa
[ "MIT" ]
permissive
coinwebfactory/aiascoin
aceed1ebcb069b03d1fea3384d9d5beca06bc223
c8741cad5264a2d4c0bbca7813c4f4ad390915ae
refs/heads/master
2020-03-24T16:29:51.130395
2018-08-28T09:56:10
2018-08-28T09:56:10
142,826,697
0
0
MIT
2018-07-30T04:58:29
2018-07-30T04:58:28
null
UTF-8
Python
false
false
1,910
py
#!/usr/bin/env python # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author: @...
[ "root@localhost" ]
root@localhost
663424fd44e897ae383df66011f4a1f60bed3000
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02990/s076168357.py
2db79e763da1248e48e6dfc6516dac1e7d408771
[]
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
219
py
mod = 10**9+7 N, K = map(int, input().split()) print(N-K+1) i = 2 C1 = N-K+1 C2 = 1 while i <= K: C1 *= ((N-K+1-(i-1))*pow(i, mod-2, mod))%mod C2 *= ((K-(i-1))*pow(i-1, mod-2, mod))%mod print((C1*C2)%mod) i += 1
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
054a2be80baef36aea5f876de706b94da37caafe
50e089f906489b2586cc586712420fd085f1f637
/machine_learning.py
dd758d6b668604304b9f3b47f2727a1ac5ec2109
[]
no_license
AaronTho/Python_Notes
5ab629e3b3d49be5c68d2a285a79683dc604cd3e
4aa0e1fb4a35763458a1da467e1bb01e393bc972
refs/heads/main
2023-07-24T00:59:23.552952
2021-09-11T17:32:25
2021-09-11T17:32:25
375,399,260
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
# Import the Data # Clean the Data # Split the Data into Training/Test Sets # Create a Model # Train the Model # Make Predictions # Evaluate and Improve # Libraries and Tools: # Numpy # Pandas # MatPlotLIb # Scikit-Learn # Jupyter is the a good machine learning environment # Install Anaconda (had to also install the ...
[ "aamith@gmail.com" ]
aamith@gmail.com