blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
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
777 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
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
e2e4aabf1e4a287c58d4a832d764183d7af0593e
2a3743ced45bd79826dcdc55f304da049f627f1b
/venv/lib/python3.7/site-packages/bokeh/core/tests/test_validation.py
53732874307f3111b2d2a639b7584a32fef90888
[ "MIT" ]
permissive
Dimasik007/Deribit_funding_rate_indicator
12cc8cd7c0be564d6e34d9eae91940c62492ae2a
3251602ae5249069489834f9afb57b11ff37750e
refs/heads/master
2023-05-26T10:14:20.395939
2019-08-03T11:35:51
2019-08-03T11:35:51
198,705,946
5
3
MIT
2023-05-22T22:29:24
2019-07-24T20:32:19
Python
UTF-8
Python
false
false
6,391
py
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
[ "dmitriy00vn@gmail.com" ]
dmitriy00vn@gmail.com
cc8ac7f53ae28f615dc9219ab322349d2f464dca
bcc00e164c3d20b3c0ac1099741a71491af0e302
/.history/demo_20191008084625.py
2b027573f20c500ed5b38d068906f40481d67c1b
[]
no_license
manasa151/Toshokan
cff2af75c480bd629b49ce39c17857b316102e45
192c7eaf8523e38fa5821affdec91eb60ae5b7ce
refs/heads/master
2020-08-05T14:56:10.285024
2019-10-15T17:07:09
2019-10-15T17:07:09
212,586,868
0
0
null
null
null
null
UTF-8
Python
false
false
280
py
import csv ebird = 'Ixothraupis guttata' def search_bySpecies(species): path = 'C:\\Users\\jmentore\\Dropbox\\個人図書館-Kojin toshokan\\request_species.csv' species = ebird csv_file = csv.reader(open('path', 'r')) for row in csv_file: print(row)
[ "cornerstoneconnections@gmail.com" ]
cornerstoneconnections@gmail.com
285b2fdb335541a18f99778ac51ade9fac3eafd7
7608ad073478761245ac6311be6bcaf0db43708a
/eventex/core/migrations/0004_auto_20200101_0001.py
35e2d52ae6717878613faa3d645641d556d531aa
[]
no_license
danielgoncalves/eventex
e814851b030b5892cf1d779b80047f17d99a186b
2e5b9d1e22a87b0548581c88b4a12614c73fa807
refs/heads/master
2023-04-30T17:45:22.015833
2020-01-05T23:59:05
2020-01-05T23:59:05
218,668,000
0
0
null
2022-04-22T22:34:35
2019-10-31T02:28:14
CSS
UTF-8
Python
false
false
1,004
py
# Generated by Django 2.2.9 on 2020-01-01 00:01 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0003_contact'), ] operations = [ migrations.AlterModelOptions( name='contact', ...
[ "daniel@base4.com.br" ]
daniel@base4.com.br
a549b7c6889d855f680e95aa8fe926832d1c4cfe
2cfd434d421ce2d2a96c51ee940df6ad5b871f52
/flask/models/blog.py
1e8aaf74cef3d0e78d799013a936d6b03a2c36a4
[]
no_license
ahrav/docker-flask
e3e3e46547dca47726f7872d5123544372205b1c
6298b340940dd5bd36ca9b70d72f259703db2d76
refs/heads/master
2022-12-09T14:48:50.272913
2019-08-25T05:49:49
2019-08-25T05:49:49
204,083,602
0
0
null
2022-12-08T06:03:58
2019-08-23T23:32:22
Python
UTF-8
Python
false
false
1,109
py
from models import db import datetime from typing import List class BlogModel(db.Model): __tablename__ = "blog" id = db.Column(db.Integer, primary_key=True) title = db.Column(db.String(128), nullable=False) content = db.Column(db.Text, nullable=False) created_at = db.Column(db.DateTime) modif...
[ "ahravdutta02@gmail.com" ]
ahravdutta02@gmail.com
3cd67509e0bc0088de9ea3073fbe490e958be61d
0beae37709f54d6adc75b0a6e5df67e47367d134
/boardapp/models.py
0579e20b82abfbfa927f95d178744a20aa119d92
[]
no_license
matt700395/sandbox3
362f4a9335175c94ccff8759396b43292d9662dc
87781eb378491750017bc6dfa561c95c886fd9a5
refs/heads/master
2023-07-26T13:33:55.481031
2021-09-07T08:14:56
2021-09-07T08:14:56
403,887,259
0
0
null
null
null
null
UTF-8
Python
false
false
1,522
py
import re from ckeditor.fields import RichTextField from django.contrib.auth.models import User from django.db import models # Create your models here. class Board(models.Model): writer = models.ForeignKey(User, on_delete=models.SET_NULL, related_name='board', null=True) title = models.CharField(max_...
[ "matt7003@korea.ac.kr" ]
matt7003@korea.ac.kr
f463a196335d0c3cb3a3e7c6b1032b171a43e2b4
058e5be6d77df6448197708c1b12fd5aca5616e1
/config/mclag.py
abc6ee051a649a330e874b341aa2cb27289edbc8
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
Junchao-Mellanox/sonic-utilities
d958c8699032cc01155802c29d7174e3fb79c2d8
8cb7320e4b9b364da110b7b737eeaf991665b300
refs/heads/master
2023-08-31T21:00:17.622141
2023-08-16T22:27:23
2023-08-16T22:27:23
242,450,146
0
0
NOASSERTION
2023-08-31T08:37:57
2020-02-23T03:30:43
Python
UTF-8
Python
false
false
15,837
py
import click from swsscommon.swsscommon import ConfigDBConnector from .validated_config_db_connector import ValidatedConfigDBConnector import ipaddress from jsonpatch import JsonPatchConflict from jsonpointer import JsonPointerException ADHOC_VALIDATION = False CFG_PORTCHANNEL_PREFIX = "PortChannel" CFG_PORTCHANNEL_P...
[ "noreply@github.com" ]
Junchao-Mellanox.noreply@github.com
f810bb211bae0ae60bb1f7648dd68ea7fc58c57c
501c86600aba239e9ea8fbbee70d18bf17086ab0
/src/lembrar/lembrar/recognize.py
f5ce8da0239e577d6cff051236a9b7858bdb532f
[]
no_license
do3cc/Scanned-Docs
177c6c55d0cee01fc3c69251bbba9ffc53c11577
5b06186302d59e465b2debbe00a22cd2b747d258
refs/heads/master
2016-09-06T05:15:39.069888
2012-11-04T21:25:08
2012-11-04T21:25:08
2,941,173
0
0
null
null
null
null
UTF-8
Python
false
false
1,936
py
from PIL.Image import open as imgopen from guess_language import guessLanguage from os import remove from subprocess import call from tempfile import NamedTemporaryFile def ocr(infile, outfile): return call(['cuneiform', infile, '-o', outfile]) def recognize(filedata, accepted_languages, force_detection): w...
[ "do3cc@patrick-gerken.de" ]
do3cc@patrick-gerken.de
59ad1e09a8715887cc8cd7a0917d54ccf162fd9f
c5542154b44f1b228cdadeaf44c6a5998ed37ed4
/base/day7/函数拓展/匿名函数.py
5c14c77edb6bcc2acf41cc59f2cd5fb620c6a409
[]
no_license
ThrallOtaku/python3Test
a31a2de1576b3a3c1062a7d6908119d7cbf21b36
c62e6024bbbeafd396b68e40332991758914ba0b
refs/heads/master
2020-03-07T22:45:47.403999
2018-06-08T10:19:42
2018-06-08T10:19:42
127,763,269
1
0
null
null
null
null
UTF-8
Python
false
false
188
py
num = lambda a,b:a+b #num函数名称 #lambda 参数a,b: 返回值a+b print(num(1,2)) num3 =lambda a,b,c :a+b+c print(num3(1,2,3)) print((lambda a,b:a+b)(100,200)) #匿名调用
[ "tanght@11wlw.com" ]
tanght@11wlw.com
dd16b8b54f8de65874fb2ef97e2d700b4824b603
78742a543127c4761d37c8e3188f8e80c7405811
/lib/datasets/math_adv_funcs.py
d84a5e0c697bcb634c85416f51665b67845494b6
[ "MIT" ]
permissive
liulu112601/AutoDL-Projects
7268160d49b1b47659caa7f95e22e93f4c5d399c
59d07b63420837f56ea45b678784e299612477c3
refs/heads/main
2023-04-16T04:04:40.515213
2021-04-29T09:17:44
2021-04-29T09:17:44
362,758,403
0
0
MIT
2021-04-29T09:15:41
2021-04-29T09:15:40
null
UTF-8
Python
false
false
2,918
py
##################################################### # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2021.03 # ##################################################### import math import abc import copy import numpy as np from typing import Optional import torch import torch.utils.data as data from .math_base_funcs import F...
[ "280835372@qq.com" ]
280835372@qq.com
f2d00149004b0cee7ec85bb4037d68eb99c6198f
3e5b1e851f85cd8a308b93e684d6e504d45b73ce
/tests/data/validation/DATASET6/reference.py
602b79179fcfcb08cf88162a7fdda834f0c5a0da
[ "Apache-2.0" ]
permissive
kids-first/kf-lib-data-ingest
66fbb77fd5f5650995904232af12e47cf8887cc8
304baf40630d202407bd4191d2077b78114fd326
refs/heads/master
2023-07-08T16:16:17.987738
2023-07-05T18:22:35
2023-07-05T18:22:35
141,188,297
6
1
Apache-2.0
2023-07-05T18:22:36
2018-07-16T20:03:46
Python
UTF-8
Python
false
false
528
py
counts = { "FAMILY|ID": 1, "PARTICIPANT|ID": 1, "BIOSPECIMEN|ID": 2, "GENOMIC_FILE|URL_LIST": 0, } validation = { "Each BIOSPECIMEN|ID links to at least 1 GENOMIC_FILE|URL_LIST": [ { "from": ("BIOSPECIMEN|ID", "B2"), "to": [], "locations": {("BIOSPECIMEN|...
[ "dukedesi22@gmail.com" ]
dukedesi22@gmail.com
ba6ce844eda092e2643105aaa64e51202fe6386d
6aa02eeefedd57495ad71facc4a484fa524736d2
/day01/88.py
ad0b8a03a1e2c6961d0c1e13263955174bc5b5db
[]
no_license
15110500442/2017-python-
ddc2377dde8d4594abbf077834625677be22adad
0cfaf4ac7cba6a68a6d819ca68de01666504301a
refs/heads/master
2021-09-04T08:50:38.993718
2018-01-17T12:31:52
2018-01-17T12:31:52
117,205,276
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
""" 姓名:史金磊 年龄:24 性别:男 身高:165 体重:60 家庭住址:山西省忻州市 电话:123456789 价格:999999999999999999999999999999999999999 """ name = "shijinlei" age = 24 sex = "nan" hight = 165 weight = 60 home = "shanxishengxinzhoushi" tel = 123456789 price = 999999999999999999999999999999999999999 print(name,age,sex,hight,weight, return return re...
[ "597945045@qq.com" ]
597945045@qq.com
9ad86460d9a23080bd209415fee4b0c0873a8e68
e96e9990ba26757b834eeff95e8bee9b720b72aa
/django/web03/web03/urls.py
1558a89eefa7576acabcf62df7598a8204a72e50
[]
no_license
cuiyanan89/Python
475a0a2778d7be5b9f6aa87ba35c21569080e056
f742684474730e3b032aabd0151d584167c3ed02
refs/heads/master
2016-09-06T05:31:48.956411
2013-09-06T08:13:09
2013-09-06T08:13:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
587
py
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'web03.views.home', name='home'), # url(r'^web03/', include('web03.foo.urls')), # Uncomment...
[ "root@yanan-Rev-1-0.(none)" ]
root@yanan-Rev-1-0.(none)
c985b8b6a92e39020010b06c77bb256e195b3d0f
5419e6aa7261b1078abb9b460150c7eee5c1f96d
/helloWorldProject/urls.py
e12434a3506a8416827a499468b3b9fc549aa1a5
[]
no_license
kg4afy/djangoHelloWorld
1136eb331bf91279dbc856886cd4db9dbab23922
86854f94fae2b4d0b686347bf3dd94b37d80a4ce
refs/heads/master
2021-04-15T17:52:25.033529
2018-03-21T14:20:35
2018-03-21T14:20:35
126,189,969
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
"""helloWorldProject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') C...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
b808b88d053091cab141b320ce6bbb8231a95638
7c07b026cd19d110c4176ac0d708ec8dd68cdc23
/0x15-api/0-gather_data_from_an_API.py
6e55a32f560745c0dc7bef807a3d6a40842acac1
[]
no_license
jozsa/holberton-system_engineering-devops
b587b5e47f3ffb10f60d9c16bbce0a824c7be243
e850ff8e818d94c0823b06931a7b9f54d66f1716
refs/heads/master
2021-06-27T14:25:18.743902
2019-05-31T00:38:13
2019-05-31T00:38:13
147,574,488
0
1
null
null
null
null
UTF-8
Python
false
false
1,030
py
#!/usr/bin/python3 """ Returns information about an employee whose ID is passed into the script. """ if __name__ == '__main__': import requests import sys # URL to make API requests from url = 'https://jsonplaceholder.typicode.com' # Employee information employee = requests.get('{}/users/{}'...
[ "allisonjoyweiner@gmail.com" ]
allisonjoyweiner@gmail.com
0c4c4b0a0aabbf6b3f875c99a5e9e859651155e9
fc7083152c3c51089513bdb40a518501f6fb331e
/Google Code Jam 2009/01 - Round 1C/01C_C.py
21391b6362eaffa84df4bb591ca16c56d7075d79
[]
no_license
caudate-julie/GoogleCodeJams
0e026b27c6bb051db7206d1ded852a195eed0aad
73ce30ef7d08ef04a1e4ae6e39ab8c566e286592
refs/heads/master
2020-12-29T23:29:30.425402
2020-02-06T20:20:13
2020-02-06T20:20:13
238,776,465
0
0
null
null
null
null
UTF-8
Python
false
false
1,375
py
# September, 13, 2009 # Round 1C # "Bribe the Prisoners" # - Kyra - # correct from time import time from bisect import bisect #inpath = "C-sample.in" inpath = "C-large-practice.in" #inpath = "C-small-practice.in" outpath = "C.out" ts = time() fin = open(inpath, 'r') lines = fin.readlines() fin.close() #MAXCELLS = 10...
[ "kyra-mensk@yandex.ru" ]
kyra-mensk@yandex.ru
92c1e6a306f83dfe6de24ec8fab7807126f64d1d
498780325681a2b8cd1c8f66a0aa8623cab89e42
/pomodoro/standalone/manage.py
733c1c7c61a41f18ddcf6017f2ab6fa53b101d19
[]
no_license
agusgrana/django-pomodoro
e02021bdd9274c2b61e21cdc65ec5f717beae7fb
8357bbb6352ba759fa30927015b176c318d09038
refs/heads/master
2022-06-20T22:23:21.775505
2020-05-04T01:26:49
2020-05-04T01:26:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
726
py
import sys def main(): try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the # issue is really that Django is missing to avoid masking other # exceptions on Python 2. try:...
[ "kungfudiscomonkey@gmail.com" ]
kungfudiscomonkey@gmail.com
ec8f34203585cbc740f3c2fb0b4286cea4b7ba90
ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3
/python/baiduads-sdk-auto/test/test_create_data_tags_response_wrapper.py
692eaa18f21eee8d75b7789db15fe9638312c744
[ "Apache-2.0" ]
permissive
baidu/baiduads-sdk
24c36b5cf3da9362ec5c8ecd417ff280421198ff
176363de5e8a4e98aaca039e4300703c3964c1c7
refs/heads/main
2023-06-08T15:40:24.787863
2023-05-20T03:40:51
2023-05-20T03:40:51
446,718,177
16
11
Apache-2.0
2023-06-02T05:19:40
2022-01-11T07:23:17
Python
UTF-8
Python
false
false
1,104
py
""" dev2 api schema 'dev2.baidu.com' api schema # noqa: E501 Generated by: https://openapi-generator.tech """ import sys import unittest import baiduads from baiduads.apiserviceforexternal.model.create_data_tags_response_wrapper_body import CreateDataTagsResponseWrapperBody from baiduads.common.model.api_...
[ "jiangyuan04@baidu.com" ]
jiangyuan04@baidu.com
1dd8b276be4bed3c9f3be791d1693b9116ed2f13
ab7d168280732ffe70583ab7385ffd1449e07c5d
/python/model/BayesModel.py
565dbaf93b95528c6b5f0d8d705f6b77686ef517
[]
no_license
nju161250102/false_alarms_detection
5d099160653e0172d1f3b7dba4f58de626994bc7
5360754a27c4fea79579a774247ee7502e723131
refs/heads/main
2023-02-18T08:20:30.323385
2021-01-20T04:58:39
2021-01-20T04:58:39
286,615,493
0
0
null
null
null
null
UTF-8
Python
false
false
196
py
from sklearn.naive_bayes import GaussianNB from .TrainModel import TrainModel class BayesModel(TrainModel): def __init__(self): super().__init__() self.model = GaussianNB()
[ "161250102@smail.nju.edu.cn" ]
161250102@smail.nju.edu.cn
4ac304e925806918858ccc0407b396e68f371ec5
eaef6aa27639dad5b11dd446e0a6d50b8b176789
/tests/test_models_recessive.py
fc2e399573991413cc13dc32f413a031df1a5905
[]
no_license
moonso/mip_family_analysis
3e7560cc0f34bae3267d796f2029e254f8814921
b91b832796b316a3f74fe4564f377bf696465f84
refs/heads/master
2021-01-19T11:48:57.243340
2014-05-20T08:27:30
2014-05-20T08:27:30
16,280,338
0
1
null
null
null
null
UTF-8
Python
false
false
6,272
py
#!/usr/bin/env python # encoding: utf-8 """ test_models_recessive.py Test the so that the genetic models behave as suspected. Created by Måns Magnusson on 2013-03-07. Copyright (c) 2013 __MyCompanyName__. All rights reserved. """ import sys import os from Mip_Family_Analysis.Family import family, individual from Mi...
[ "monsunas@gmail.com" ]
monsunas@gmail.com
7758fd6427747b26784724340a9a816534b33fc7
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/sdssj_172720.78+324908.5/sdB_SDSSJ_172720.78+324908.5_lc.py
6d3f95c7055c9b25c00d68499d2337bdf22f750f
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[261.836583,32.819028], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ_172720.78+324908.5 /sdB_SDSSJ_172720.78+324908.5_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
47347928a2a88aaf6bd9512290d21e3aea363be9
b5550fc728b23cb5890fd58ccc5e1668548dc4e3
/virt/libvirt/vif.py
03ee9d6549d895f2a22ae88a54443a935a00ecd7
[]
no_license
bopopescu/nova-24
0de13f078cf7a2b845cf01e613aaca2d3ae6104c
3247a7199932abf9718fb3260db23e9e40013731
refs/heads/master
2022-11-20T00:48:53.224075
2016-12-22T09:09:57
2016-12-22T09:09:57
282,140,423
0
0
null
2020-07-24T06:24:14
2020-07-24T06:24:13
null
UTF-8
Python
false
false
27,974
py
#coding:utf-8 # Copyright (C) 2011 Midokura KK # Copyright (C) 2011 Nicira, Inc # Copyright 2011 OpenStack Foundation # 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 Lice...
[ "719184289@qq.com" ]
719184289@qq.com
c0f96c84cb2870fbeaec0da12f98b4984b287f00
a5698f82064aade6af0f1da21f504a9ef8c9ac6e
/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/show_real_time_info_of_meeting_response.py
d8bee016c1c78321cbe085f8970d94a598afdf3b
[ "Apache-2.0" ]
permissive
qizhidong/huaweicloud-sdk-python-v3
82a2046fbb7d62810984399abb2ca72b3b47fac6
6cdcf1da8b098427e58fc3335a387c14df7776d0
refs/heads/master
2023-04-06T02:58:15.175373
2021-03-30T10:47:29
2021-03-30T10:47:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,001
py
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ShowRealTimeInfoOfMeetingResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attrib...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
02e07424b309c3955ea9bc146375cf4d46f19039
e6e57bf7d4eda37f1188ab72ff249675f40029ee
/algorithms_and_data_structures/strings/Max Consecutive Ones.py
9db427e84b3a29c2da095dd5ff24ce7b6b19422a
[]
no_license
juanpedrovel/bomboclap
4e186331ef1c26c8522e44c21d6a33358471786b
99db02266c31dd14357ef6a575d35fcf55718617
refs/heads/master
2020-04-19T21:16:38.141830
2019-01-31T00:31:24
2019-01-31T00:31:24
168,436,881
0
0
null
null
null
null
UTF-8
Python
false
false
1,326
py
class Solution: def findMaxConsecutiveOnes(self, nums): if not nums: return 0 lens = len(nums) lives = 1 max_ones = 1 next_one = [] start = None for i in range(lens): if nums[i] == False and start != None: if lives == 1:...
[ "juanpedrovel@gmail.com" ]
juanpedrovel@gmail.com
c5d05e3000d0ba7470ea12ef810ec16cce389b61
a30362e51cb3291daf26d0c62e56c42caeec837f
/python/acmicpc/solved/_1947.py
4bcd1a4af7f54492fca5e5c7ac545b41247d2087
[]
no_license
TERADA-DANTE/algorithm
03bf52764c6fcdb93d7c8a0ed7a672834f488412
20bdfa1a5a6b9c378e588b17073e77a0126f7339
refs/heads/master
2023-04-14T21:40:11.250022
2023-04-12T13:00:37
2023-04-12T13:00:37
288,335,057
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
n = int(input()) def solution(n): numbers = [None, 0, 1] + [None]*(n-2) if n == 1: return 0 elif n == 2: return 1 for i in range(3, n+1): numbers[i] = ((i-1) * (numbers[i-1] + numbers[i-2])) % 1000000000 return numbers[-1] % 1000000000 print(solution(n))
[ "55175301+TERADA-DANTE@users.noreply.github.com" ]
55175301+TERADA-DANTE@users.noreply.github.com
d67ebe7334e9e4505b67dce6bb58ad5ed44dbaa7
be4459658d667c47eefeeb3cf689a678042edb94
/modules/core/rwvx/rwcal/plugins/vala/rwcal_cloudsim/rift/rwcal/cloudsim/image.py
3b733b1fdd22e5861fbca3d6fb50b809dac01670
[ "Apache-2.0" ]
permissive
kparr/RIFT.ware-1
7945174aa23ac1f7d74a7464b645db5824982fc3
6846108d70b80b95c5117fdccd44ff058ac605be
refs/heads/master
2021-01-13T08:36:03.751610
2016-07-24T21:36:15
2016-07-24T21:36:15
72,420,438
0
0
null
2016-10-31T09:11:27
2016-10-31T09:11:27
null
UTF-8
Python
false
false
711
py
# # (c) Copyright RIFT.io, 2013-2016, All Rights Reserved # import math import re from . import shell class ImageInfoError(Exception): pass def qcow2_virtual_size_mbytes(qcow2_filepath): info_output = shell.command("qemu-img info {}".format(qcow2_filepath)) for line in info_output: if line.s...
[ "Jeremy.Mordkoff@riftio.com" ]
Jeremy.Mordkoff@riftio.com
157b8db502deb65e2f12d8dc62f2a11391cab5e9
a0a0932b6ab6ec47c2757d8929216790f5bc6535
/depot/admin1.py
141a883b61d7bb4c0ece6c329ae3ccecd207641c
[]
no_license
lianglunzhong/latte-erp
b4e6e3b13c4bce17911ff166fecc36172e0bea5b
b58936c8d9917f3efdcb3585c54bfd3aba4723c2
refs/heads/master
2022-11-27T03:08:23.780124
2017-04-28T02:51:43
2017-04-28T02:51:43
89,660,834
0
0
null
2022-11-22T01:04:12
2017-04-28T02:48:50
Python
UTF-8
Python
false
false
25,486
py
# -*- coding: utf-8 -*- from django.contrib import admin from depot.models import * from lib.admin import NoDeleteActionModelAdmin, NoDeleteActionMPTTModelAdmin from dal import autocomplete from product.forms import * from depot.forms import * import order from django.shortcuts import redirect from lib.utils import pp,...
[ "liang.lunzhong@wxzeshang.com" ]
liang.lunzhong@wxzeshang.com
157c31af976dcf0bc841b5510e4c31c3bd6063ba
37ba62db61fc4ec62634638763a984cbfbe40fe3
/day19/04 多态.py
06535b0e4bd3d5bcaae374e79d93f827441177e1
[]
no_license
lt910702lt/python
ca2768aee91882c893a9bc6c1bdd1b455ebd511f
c6f13a1a9461b18df17205fccdc28f89854f316c
refs/heads/master
2020-05-09T22:54:22.587206
2019-09-17T09:02:53
2019-09-17T09:02:53
181,485,866
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
# python面向对象三大特征之一: # 多态:python处处是多态 # python不管什么类型,传入函数,封装到对象中都可以 # python没有多态?他有什么?他有鸭子类型 # 鸭子类型:看着像鸭子,它就是鸭子 # 具有相同方法的类(例如下面的类都有init方法),他们互相称之为鸭子 # 统一化设计的思想 class Str: def init(self): pass class List: def init(self): pass class Tuple: def init(self): pass
[ "1103631738@qq.com" ]
1103631738@qq.com
a7c8914d65217c603041ad8e79119a6a937829fc
2a46ad4e83dcd903451fb5fba8d04da266dbd49e
/Algorithm/Leetcode/Codes/BalancedBinaryTree.py
09c166592ed465c9943dfe6fd7a0aaa426bcf0a7
[]
no_license
chloeeekim/TIL
e248801508340cb2eb9f3cfddc486b7dd7250386
c5a94e81aa2f2dfcc626820205ca9feaad069fad
refs/heads/master
2022-03-02T04:05:24.439271
2022-02-22T01:25:14
2022-02-22T01:25:14
190,150,063
8
1
null
null
null
null
UTF-8
Python
false
false
1,406
py
""" 110. Balanced Binary Tree : https://leetcode.com/problems/balanced-binary-tree/ binary tree가 하나 주어졌을 때, 해당 트리가 height-balanced tree인지 확인하는 문제 - height-balanced BST란 각 서브트리의 높이 차이가 1보다 크지 않은 경우이다 Example: - Input : [3,9,20,null,null,15,7] - Output : true - Input : [1,2,2,3,3,null,null,4,4] - Output : false Note...
[ "hiyaku0317@gmail.com" ]
hiyaku0317@gmail.com
54078587b3f0eae6c496e5793b3140df752bf6d6
313110e3a0d01adb562e40f73d9c6fc32c74e0ca
/inventory/urls.py
a047eefcb510142ac34a91bcaa54cbdc84ee5e90
[]
no_license
prabaldeshar/erp-project
e911ac447aab9ede39567fb82275bbbf0357932e
31762cf765d1aee21623033c963147d69219ba56
refs/heads/main
2023-03-29T19:29:18.689599
2021-04-07T15:19:14
2021-04-07T15:19:14
344,389,239
0
0
null
null
null
null
UTF-8
Python
false
false
873
py
from django.urls import path from . import views urlpatterns = [ path('', views.index, name='index'), path('product_form/', views.AddProdcutView.as_view(), name='add_product'), path('products/', views.get_all_products, name='get_products'), path('categories/', views.get_all_catgories, name='get_categor...
[ "prabaldeshar@gmail.com" ]
prabaldeshar@gmail.com
c0df77a8f7cda94b9b3589b8fe33082d5620f0a8
52b5773617a1b972a905de4d692540d26ff74926
/.history/get_20200805215654.py
dce545ebc2e86bb33dbdb1e4166d0118db51ce6a
[]
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
693
py
def produce(num1,num2): totalValue = 0 for i in range(abs(num1)): totalValue +=abs(num2) if num1 < 0 and num2 > 0: str1 = str(totalValue) newStr = "-"+ str1 return int(newStr) elif num1 > 0 and num2 < 0: str1 = str(totalValue) newStr = ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
de913e5fb2125c07922715326b0aa5611fc3a13f
4d487dd9a2ee9ad2e1fc7cacf4ec00e4c619cda4
/pages/migrations/0003_siteinfo_logo.py
d065bc92ffdbeff3c2bd519081754169a248558a
[]
no_license
robertvari/StylusPhotography
1920b168804dd0cc180735b4357dc7c947cf9483
390065a19984779d0dc62736686eb855bbb6b051
refs/heads/master
2022-12-31T21:53:04.894918
2020-10-25T12:25:04
2020-10-25T12:25:04
298,796,224
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
# Generated by Django 3.1.1 on 2020-10-10 09:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pages', '0002_auto_20201010_1033'), ] operations = [ migrations.AddField( model_name='siteinfo', name='logo', ...
[ "mail.robertvari@gmail.com" ]
mail.robertvari@gmail.com
6922bc76a8477760a2f9a0ac727b1588ad678cb4
31780ec0e8355e0c76a8e35c08b3888628c4f9e2
/wenv/bin/easy_install-3.6
2a1ba2751846bc918c62b004d5833457225bdeba
[ "MIT" ]
permissive
pajanne/dash-tutorial
ca63cd74953e439a4114333d8701fe541dd5efa6
040ef6157273ffe4804de3c4ac35a97cb30f7afa
refs/heads/master
2021-01-01T15:32:11.388043
2017-07-18T20:19:31
2017-07-18T20:19:31
97,634,992
0
0
null
null
null
null
UTF-8
Python
false
false
273
6
#!/Users/pajon01/workspace/dash-tutorial/wenv/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "pajanne@gmail.com" ]
pajanne@gmail.com
89c9d236d98c6cf28311caa7c9ca6c4207a23309
fb2cc597f319380d228fc15c4008760a82203687
/var/spack/repos/builtin/packages/suntans/package.py
11c894c15f005a0b2f78e8c3a1092f2c656247a4
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LGPL-2.1-only" ]
permissive
JayjeetAtGithub/spack
c41b5debcbe139abb2eab626210505b7f930d637
6c2df00443a2cd092446c7d84431ae37e64e4296
refs/heads/develop
2023-03-21T02:35:58.391230
2022-10-08T22:57:45
2022-10-08T22:57:45
205,764,532
0
0
MIT
2019-09-02T02:44:48
2019-09-02T02:44:47
null
UTF-8
Python
false
false
1,518
py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Suntans(MakefilePackage): """The Stanford unstructured-grid, nonhydrostatic, p...
[ "noreply@github.com" ]
JayjeetAtGithub.noreply@github.com
7bdccfe936895e95d40a0733bd7c2af1324143c2
5f3e1d882171055279568cbd18b5ee0927bff846
/HearthStone2/test/utils/test_game.py
9584ce794ba2ce3ca0f035376e704e60291b58a2
[ "MIT" ]
permissive
wusolo/MiniGames
5f4c0466daecfb9b86bbbf9679a629269ed04820
8507ca0409b6d11309a403507a560447d29a6910
refs/heads/master
2020-04-10T05:36:57.393510
2018-11-09T15:35:51
2018-11-09T15:35:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,850
py
#! /usr/bin/python # -*- coding: utf-8 -*- import os import sys import unittest sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..')) from MyHearthStone.utils.game import * __author__ = 'fyabc' class GameUtilsTest(unittest.TestCase): def setUp(self): pass def te...
[ "fyabc@mail.ustc.edu.cn" ]
fyabc@mail.ustc.edu.cn
94523cd0ecb30ba8ae5a5d8e3fd1a0202214462d
f97fe069fb9eb27fb52b513d0e8b5e6877e09a3f
/bert-chinese-ner/bert/run_classifier.py
f6d68e054af5759faf6028a8734374413f65e89a
[ "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
xiaomojie/Bert-CRF-for-NER
1696732e5c0c3a5e757a0283ba2c05b5f9c57972
55a0f4bfec7ada2a202ef9a51f7203623b9d0bbb
refs/heads/master
2022-04-22T06:11:49.868940
2020-03-19T14:36:19
2020-03-19T14:36:19
244,832,178
2
2
null
null
null
null
UTF-8
Python
false
false
34,991
py
# coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # 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 ...
[ "519399762@qq.com" ]
519399762@qq.com
35847bb7215452fb08ce6cbab7b3631a65cb9054
ab34521d2104ac453d1abb3d254a4b2ed32ece3b
/rtamt/operation/stl/discrete_time/online/once_bounded_operation.py
030f33707fe2a84584d58a0bd0720cf6166f1e3d
[ "BSD-3-Clause" ]
permissive
xiaoyaooo/rtamt
50379cdb7d12fead3f1a6f3a4a54e7ed23147ba3
edb7bf664720c52e9d70920102c450b1f593af95
refs/heads/master
2023-04-01T12:14:28.170094
2021-04-08T21:27:17
2021-04-08T21:27:17
345,653,937
0
0
BSD-3-Clause
2021-04-08T21:27:18
2021-03-08T12:48:42
null
UTF-8
Python
false
false
786
py
import collections from rtamt.operation.abstract_operation import AbstractOperation class OnceBoundedOperation(AbstractOperation): def __init__(self, begin, end): self.begin = begin self.end = end self.buffer = collections.deque(maxlen=(self.end + 1)) for i in range(self.end + 1): ...
[ "dejan.nickovic@ait.ac.at" ]
dejan.nickovic@ait.ac.at
0c24faa4126b26b3ed997d5e8f9e4317ef9c7f69
747f759311d404af31c0f80029e88098193f6269
/extra-addons/hr_skill/hrskill.py
548fb51b97aed6122af816a01dd61df5c4b8a648
[]
no_license
sgeerish/sirr_production
9b0d0f7804a928c0c582ddb4ccb7fcc084469a18
1081f3a5ff8864a31b2dcd89406fac076a908e78
refs/heads/master
2020-05-19T07:21:37.047958
2013-09-15T13:03:36
2013-09-15T13:03:36
9,648,444
0
1
null
null
null
null
UTF-8
Python
false
false
3,168
py
# -*- encoding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of t...
[ "geerish@omerp.net" ]
geerish@omerp.net
6015d5d76a5e888313048c7488dffc77b8997c4c
9c78485fed07fec7399706e38ad89202d678e69d
/scikits/learn/externals/joblib/test/test_hashing.py
c45a0c069e8eb3ae0218e6f54d80b289b9bc557e
[ "BSD-3-Clause" ]
permissive
mike-perdide/scikit-learn
dc948938e2b2a8eb6b88d055425bc57e2607e252
1ff16f53ddd3b8e9b9df6b760ab766c3f77d5129
refs/heads/master
2021-01-15T23:40:44.773008
2011-04-01T16:40:38
2011-04-01T16:59:56
1,556,367
2
0
null
null
null
null
UTF-8
Python
false
false
4,264
py
""" Test the hashing module. """ # Author: Gael Varoquaux <gael dot varoquaux at normalesup dot org> # Copyright (c) 2009 Gael Varoquaux # License: BSD Style, 3 clauses. import nose import time import hashlib import tempfile import os import gc from ..hashing import hash from .common import np, with_numpy ########...
[ "gael.varoquaux@normalesup.org" ]
gael.varoquaux@normalesup.org
d0e40ff54a86b3fb27cb11eae53a63f86b0b6d01
33b83b22d1e93b5e32800e3d521f8c1b25491941
/Day09/17.pyqt自定义控件_self.py
e54289514fdc62dd290ba00f1783c44ddf54bb73
[]
no_license
codeBeefFly/bxg_python_basic
4ea9c2fb7a81176c501619192e1d89b2034614a9
685fdf9e4b763ef74abeab8b55eb365615c3b376
refs/heads/master
2022-12-20T06:41:57.297101
2020-10-11T08:51:52
2020-10-11T08:51:52
298,194,706
0
0
null
null
null
null
UTF-8
Python
false
false
708
py
from PyQt5.QtWidgets import QWidget, QApplication import sys class MainWindow(QWidget): def __init__(self): super(MainWindow, self).__init__() # 设置标题 self.setWindowTitle('自定义控件') # 设置窗口大小 self.resize(640, 480) # 展示窗口 self.show() ###########################...
[ "lijin890119@163.com" ]
lijin890119@163.com
dca3ec5617c1278f4360c44f8bf565b50e99cb80
c8cee25ecb60ca3e6ce5e24c37db57f82f9858f6
/Desde0/Proyecto/utiles/funciones.py
a37b7f608e9590be90d79ddb78b9b981a931519c
[]
no_license
mecomontes/Python
a0b4a0b69ae33ad3623e908731710563392d1615
daba4247cca90c43a979e3e3f292cd7b8951b3d0
refs/heads/master
2023-05-30T05:24:41.999196
2020-03-23T02:30:09
2020-03-23T02:30:09
249,317,310
1
0
null
2023-05-22T22:42:36
2020-03-23T02:29:38
Python
UTF-8
Python
false
false
268
py
def proms(A, q): ''' Función: Calcula los promedios de las edades e indices academicos y los almacena en un arreglo. ''' pred = sum(i.edad for i in A)/q pria = sum(i.indice for i in A)/q S = [pred, pria] return S
[ "1574@holbertonschool.com" ]
1574@holbertonschool.com
22cee5e58b913a2e15124f72b72ebef03717d5ed
cc6e7f63eaf4b3570771c46fb8b24b88e6e1f59e
/beginner/032/C.py
7ece9f3f9c6c15d82ef70cd10e38347fa4774965
[]
no_license
kamojiro/atcoderall
82a39e9be083a01c14445417597bf357e6c854a8
973af643c06125f52d302a5bc1d65f07a9414419
refs/heads/master
2022-07-12T00:14:38.803239
2022-06-23T10:24:54
2022-06-23T10:24:54
161,755,381
1
0
null
null
null
null
UTF-8
Python
false
false
644
py
import sys input = sys.stdin.readline from collections import deque def main(): N, K = map( int, input().split()) S = [ int( input()) for _ in range(N)] for s in S: if s == 0: print(N) return if K == 0: print(0) return d = deque() pro = 1...
[ "tamagoma002@yahoo.co.jp" ]
tamagoma002@yahoo.co.jp
9d06553a74e69713aaab14bc4283b117a501c7b0
95255a27a22d16cdb4a365b2794f8c95377e7e71
/test_605/class_test.py
d6a9a463ce0a47766d1b0ff84b6f24fe23bbafdc
[]
no_license
lijule168/python_test_web
9cc23c42e9f1a0392466131234598c8805c0cf62
3e51e9e80e9778540c8cc1c799fed402f2469ae8
refs/heads/master
2023-06-04T14:49:45.533518
2021-06-12T08:05:51
2021-06-12T08:05:51
376,212,939
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
class TestCode: def __init__(self,codepath): self.codepath = codepath def get_code(self): print(self.codepath) aa=TestCode('aaaaa') aa.get_code()
[ "lijule168@163.com" ]
lijule168@163.com
cb64aba2aeeafbe9742070dfed6a801dbdb6480d
2f330fc050de11676ab46b963b7878882e9b6614
/memsource_cli/api/import_settings_api.py
c86b77d52775839eb3c2be1dd92f8719dc1bfd61
[ "Apache-2.0" ]
permissive
zerodayz/memsource-cli-client
609f48c18a2b6daaa639d4cb8a61da43763b5143
c2574f1467539a49e6637c874e88d75c7ef789b3
refs/heads/master
2020-08-01T12:43:06.497982
2019-09-30T11:14:13
2019-09-30T11:14:13
210,999,654
1
0
null
null
null
null
UTF-8
Python
false
false
19,508
py
# coding: utf-8 """ Memsource REST API Welcome to Memsource's API documentation. To view our legacy APIs please [visit our documentation](https://wiki.memsource.com/wiki/Memsource_API) and for more information about our new APIs, [visit our blog](https://www.memsource.com/blog/2017/10/24/introducing-rest-apis...
[ "cerninr@gmail.com" ]
cerninr@gmail.com
381899a15c91bf5da6044fc256f40856c141478b
52b5773617a1b972a905de4d692540d26ff74926
/.history/sets_20200605194718.py
554dc1b6f4a5bfac947e3ba5b51bc8177f99191f
[]
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
455
py
def Strings(str): values = {} newArray = [] keys = [] for i in str: newArray.append(i.split(":")) # print(newArray) for j in range(len(newArray)): if newArray[j][0] in values: values[newArray[j][0]] += int(newArray[j][1]) else: values[newArr...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
9a595f9666fd46088050c6f613b469574f8edca3
1c4411f5558c0f76ff473841715cef392e949b87
/lldb/utils/lldb-repro/lldb-repro.py
c925c474619ec07d2f6b7adda36973bf20e0f1f1
[ "NCSA", "Apache-2.0", "LLVM-exception" ]
permissive
supersojo/llvm-project
b7f7cbdf8aa5725fe57ab79cae57df59965d9f90
eaa594f4ec54eba52b03fd9f1c789b214c66a753
refs/heads/master
2020-12-19T00:17:00.123025
2020-01-21T13:06:15
2020-01-22T09:28:32
235,540,781
1
0
null
2020-01-22T09:37:54
2020-01-22T09:37:54
null
UTF-8
Python
false
false
1,701
py
#!/usr/bin/env python """lldb-repro lldb-repro is a utility to transparently capture and replay debugger sessions through the command line driver. Its used to test the reproducers by running the test suite twice. During the first run, with 'capture' as its first argument, it captures a reproducer for every lldb invoc...
[ "jonas@devlieghere.com" ]
jonas@devlieghere.com
276d9345d6ce111e6425162972d68e5cbd833b65
66b1748a1238eda820345f914f60da434c668cf0
/BAEKJOON/1427.py
1b1ff32c258cdc34fca82a339fae73d780114b4c
[]
no_license
kwangminini/Algorhitm
5d3140021584239e30468d3dcb353b119b935e76
4d9a3b9284c90d141c1a73e14329152455373c53
refs/heads/master
2023-09-03T07:33:51.228150
2023-08-28T13:39:52
2023-08-28T13:39:52
225,879,016
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
n=input() mylist=[] for i in range(len(n)): mylist.append(int(n[i])) mylist.sort(reverse=True) print(''.join(map(str,mylist)))
[ "rhkdals7362@gmail.com" ]
rhkdals7362@gmail.com
272638d3b21fe5d58a4239221cc27f3e8b1a4634
da934e0010380fdc6894063540f61b0ebc2c9ded
/vendor/Twisted-10.0.0/twisted/protocols/ident.py
9df8891b2807ec4a98c4d247719496c108950b67
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bopopescu/cc-2
ed4f1dfe3c98f476ff619058d99855a16272d36b
37444fb16b36743c439b0d6c3cac2347e0cc0a94
refs/heads/master
2022-11-23T03:57:12.255817
2014-10-02T06:10:46
2014-10-02T06:10:46
282,512,589
0
0
Apache-2.0
2020-07-25T19:36:05
2020-07-25T19:36:05
null
UTF-8
Python
false
false
7,524
py
# -*- test-case-name: twisted.test.test_ident -*- # Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. """ Ident protocol implementation. @author: Jp Calderone """ from __future__ import generators import struct from twisted.internet import defer from twisted.protocols import basic fr...
[ "anotherjesse@gmail.com" ]
anotherjesse@gmail.com
434111f656d3d9665d6223f50dbeabb382ec1c21
16d159d6d3fe69d513717caad3e2c21320f93224
/AOJ/ITP2/aoj_itp2_5_a.py
f8e2a784deceb8818e3a43de2bbf093145483c56
[]
no_license
tsushiy/competitive-programming-submissions
d4f068a5157c0de0f1822367e0ca66dd978e43f9
9011d855d9252134179cc9cc8f328f6e0ca32407
refs/heads/master
2023-04-11T08:34:01.015316
2021-04-11T15:16:17
2021-04-11T15:17:35
175,807,862
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
n = int(input()) xy = [list(map(int, input().split())) for i in range(n)] xy.sort(key=lambda x:x[1]) xy.sort(key=lambda x:x[0]) for ele in xy: print(ele[0], ele[1])
[ "28962399+tsushiy@users.noreply.github.com" ]
28962399+tsushiy@users.noreply.github.com
ebad3356b9cc75c190fe9da6d64a012973a9f952
7d850f628c164cf150a3e0520ccbca684dae5501
/src/utils/look_at_results.py
6e29f2d4be3aa8b0b659f967c58a8e564a987972
[]
no_license
lgbouma/cbp
d5ffad9760f16f360dae18e8318e6a408f014db8
6090f36cb8b09c458a3e2fb1a7eb616d99723727
refs/heads/master
2021-01-11T14:46:34.981850
2017-07-19T19:51:34
2017-07-19T19:51:34
80,214,237
0
0
null
null
null
null
UTF-8
Python
false
false
2,132
py
''' A script that, when launched, iteratively prompts user for classification based on the results of real_search ("CR":=cmd line return). Each input is then appended to a readout file. (bash) >>> python look_at_results.py Run from /src/utils, and that must be the only open window with "utils" in its name. Requires ...
[ "lgbouma@mit.edu" ]
lgbouma@mit.edu
c71654cb7b3494e679e58d2203831de3481b65c2
5c2a95b8012e20f38ed573d86ffeee39ddd2f865
/config/settings/base.py
2bbf312f1a621f6fe75c71601b1ef42a7fc47cff
[ "MIT" ]
permissive
Aayush-N/nba
242d7be05b2099bf082c7fe84ce626889df7eb6a
fe118f69f3365f7282573bfe9d78184b3d692232
refs/heads/master
2020-04-02T13:20:59.461887
2018-10-24T09:24:20
2018-10-24T09:24:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,806
py
""" Base settings to build other settings files upon. """ import environ ROOT_DIR = environ.Path(__file__) - 3 # (nba_project/config/settings/base.py - 3 = nba_project/) APPS_DIR = ROOT_DIR.path('nba_project') env = environ.Env() READ_DOT_ENV_FILE = env.bool('DJANGO_READ_DOT_ENV_FILE', default=False) if READ_DOT_E...
[ "mayankkushal26@gmail.com" ]
mayankkushal26@gmail.com
4bcc099782e2059b061f01255e55a477314e2447
6b95f96e00e77f78f0919c10b2c90f116c0b295d
/test/test_contractschema.py
8f6a647a56bc92b331897ad30f453cc2d71ea663
[]
no_license
telstra/Programmable-Network-SDK-python
0522b54dcba48e16837c6c58b16dabde83b477d5
d1c19c0383af53a5f09a6f5046da466ae6e1d97a
refs/heads/master
2021-09-19T17:09:06.831233
2018-07-30T03:22:26
2018-07-30T03:22:26
113,531,312
3
1
null
2018-07-30T03:22:27
2017-12-08T04:23:15
Python
UTF-8
Python
false
false
1,554
py
# coding: utf-8 """ Telstra Programmable Network API Telstra Programmable Network is a self-provisioning platform that allows its users to create on-demand connectivity services between multiple end-points and add various network functions to those services. Programmable Network enables to connectivity to a g...
[ "steven@developersteve.com" ]
steven@developersteve.com
9d6196c898e34ed84919941f94112d26d1ae640d
7f6a73d15fcc1692d565faedf153228c9a94270b
/torch/_inductor/fx_passes/joint_graph.py
e15d2724f8fd625bb911e094e67fd9b43f1271f8
[ "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
menglingwei/pytorch
f57f4d423e5ee57fddae53b0a36c03660dd13bb6
694ed70e0131f069ec96ab4d63fc5d8c334f612f
refs/heads/main
2023-05-03T06:27:28.251386
2023-04-17T20:31:02
2023-04-18T00:52:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
import functools import logging import torch from ..._subclasses import FakeTensorMode from .. import config from ..pattern_matcher import PatternMatcherPass log = logging.getLogger(__name__) patterns = PatternMatcherPass() @functools.lru_cache(None) def lazy_init(): from .fuse_attention import _sfdp_init ...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
1c237e060b6b647a181fb12f5a91037e1d85995a
afa2ebb439e6592caf42c507a789833b9fbf44b2
/math/0x00-linear_algebra/1-trim_me_down.py
7dc380cfb7323fee955fde82944c2f12e4b6babb
[]
no_license
anaruzz/holbertonschool-machine_learning
64c66a0f1d489434dd0946193747ed296760e6c8
91300120d38acb6440a6dbb8c408b1193c07de88
refs/heads/master
2023-07-30T20:09:30.416167
2021-09-23T16:22:40
2021-09-23T16:22:40
279,293,274
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
#!/usr/bin/env python3 matrix = [[1, 3, 9, 4, 5, 8], [2, 4, 7, 3, 4, 0], [0, 3, 4, 6, 1, 5]] the_middle = [] for line in matrix: the_middle.append([line[2], line[3]]) print("The middle columns of the matrix are: {}".format(the_middle))
[ "laabidigh@gmail.com" ]
laabidigh@gmail.com
4829c0e2fd131571d178e37f48e704840c6bccfd
2c7c71c45cf03c9c97e3a1d9520e6ab3f8a0d2e5
/configs/fast_mask_rcnn_r50_caffe_c4_1x.py
0348f671cf74f7e787d764028b9b46e3d68d7fa7
[ "Apache-2.0" ]
permissive
AiLvv/mmdetection
26d2d6c212b55be6f7e563bf1cccfd130a57dc59
2489aa4fc8df3b4c39c1cc72571a677e4451a44c
refs/heads/master
2022-04-19T13:05:08.701409
2020-04-19T02:03:36
2020-04-19T02:03:36
256,955,660
0
0
null
null
null
null
UTF-8
Python
false
false
4,885
py
# model settings norm_cfg = dict(type='BN', requires_grad=False) model = dict( type='FastRCNN', pretrained='open-mmlab://resnet50_caffe', backbone=dict( type='ResNet', depth=50, num_stages=3, strides=(1, 2, 2), dilations=(1, 1, 1), out_indices=(2, ), f...
[ "1339064067@qq.com" ]
1339064067@qq.com
8741eb670fc68dad53646b1eefe15656344e9be0
6c6b4a564da94e84f4a58bd5724e09a8d8cd53b8
/doc/conf.py
cf41b3c64dc7dfe329d63802e49c2a57c7ac78bf
[ "BSD-3-Clause" ]
permissive
friedenhe/software
8894479c5c754b22c27db1b0e836b9c1742ee3cf
5aa1e2a73f7151bc7d9d159a6562f60431536c86
refs/heads/master
2021-03-10T16:25:34.220435
2020-02-05T16:27:23
2020-02-05T16:27:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,005
py
#!/usr/bin/env python3 import sys import os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. # sys.path.insert(0, os.path.abspath...
[ "joaander@umich.edu" ]
joaander@umich.edu
6e0e99e4a892a293aca507db669a927815dedc49
53309442fbf23b02b9f8181a58e5e988f7c6e8f2
/dlk/python/dlk/lmnet/quantizations/__init__.py
1d5eca58824cfb6079110bc41605126b00e02337
[ "Apache-2.0" ]
permissive
serihiro/blueoil
a12baa1224d2a7056de14e74bceebe7f80e30de8
e538a08cb149c6f630263905819cc8c53a0a6081
refs/heads/master
2020-07-25T11:53:48.940466
2019-09-12T06:38:12
2019-09-12T06:38:12
208,280,175
0
0
Apache-2.0
2019-09-13T14:22:40
2019-09-13T14:22:36
null
UTF-8
Python
false
false
855
py
# -*- coding: utf-8 -*- # Copyright 2018 The Blueoil Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
[ "matsuda@leapmind.io" ]
matsuda@leapmind.io
647f0c40a51154c2c9aff4a24c558eb28df66d83
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2277/60636/247899.py
a2bab92349039d5d3dd6bd1c705afc9558021d03
[]
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
417
py
def superEggDrop(k,n): dp=[] for i in range(k+1): dps=[] for j in range(n+1): dps.append(0) dp.append(dps) for i in range(1, k + 1): for step in range(1, n + 1): dp[i][step] = dp[i - 1][step - 1] + (dp[i][step - 1] + 1) if dp[k][step] >= n:...
[ "1069583789@qq.com" ]
1069583789@qq.com
ed3b6cd53eb946a924eb458ee2f34a6a424151c6
368ec23355481c81f32d62618504cbc8b73bec9b
/Discrete Optimization/1. Knapsack/Standard/hola.py
e5fa0b3cc5b9481a2e2450bbd29d5bd8d1231e67
[]
no_license
manuwhs/Coursera-Codes
f6d38d30f55b55b651101319031acb9d18c51125
771b208c3645953ba4b93ee279ec73af181a9edd
refs/heads/master
2021-01-24T01:02:25.175360
2018-02-25T01:16:34
2018-02-25T01:16:34
122,794,790
0
0
null
null
null
null
UTF-8
Python
false
false
1,536
py
import os import subprocess def solveIt(inputData): ### Writes the inputData to a temporary file tmpFileName = 'tmp.data' tmpFile = open(tmpFileName,'w') tmpFile.write(inputData) tmpFile.close() #-------------------------------------------------------------------------------------------------- ...
[ "manuwhs@bitbucket.org" ]
manuwhs@bitbucket.org
a7118ae9e17d5197f63c291dfe414f97b8a13bb9
c9094a4ed256260bc026514a00f93f0b09a5d60c
/tests/components/media_source/test_init.py
0dda9f67fbe36fd17fea21d3e0f73ca3cc4f2b49
[ "Apache-2.0" ]
permissive
turbokongen/home-assistant
824bc4704906ec0057f3ebd6d92788e096431f56
4ab0151fb1cbefb31def23ba850e197da0a5027f
refs/heads/dev
2023-03-12T05:49:44.508713
2021-02-17T14:06:16
2021-02-17T14:06:16
50,231,140
4
1
Apache-2.0
2023-02-22T06:14:30
2016-01-23T08:55:09
Python
UTF-8
Python
false
false
5,608
py
"""Test Media Source initialization.""" from unittest.mock import patch import pytest from homeassistant.components import media_source from homeassistant.components.media_player.const import MEDIA_CLASS_DIRECTORY from homeassistant.components.media_player.errors import BrowseError from homeassistant.components.media...
[ "noreply@github.com" ]
turbokongen.noreply@github.com
0413dcdf930d98d108eb251fef1dda1249f42ef1
88eeba6df8382687f36a4765bb298f76465c8e81
/general/chainerrl/chainerrl/tests/test_distribution.py
94f5bff3c9994da57e0b3495d4c27165bfc3fb14
[ "MIT" ]
permissive
daniellawson9999/quick_start
db0b6e382efd640754ca1e7800753c94e668423a
947d61f118433dcd4cb845f27649ebfbc8062ecc
refs/heads/master
2022-02-23T21:54:16.273530
2019-09-27T01:46:41
2019-09-27T01:46:41
197,873,032
0
0
null
2019-07-20T03:12:34
2019-07-20T03:12:31
null
UTF-8
Python
false
false
11,168
py
from __future__ import print_function from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import from builtins import * # NOQA from future import standard_library standard_library.install_aliases() # NOQA import unittest import chainer from chainer impo...
[ "daniellawson9999@gmail.com" ]
daniellawson9999@gmail.com
9f9c2b2cda4eb22ab0358565dc83f29978888178
1ad12a71c3d5d2b3810ce03e8bd138c4ffb66eb8
/xlsxwriter/test/comparison/test_chart_points03.py
abfaaef5929500c816e520b251861d4c26f58cd1
[ "BSD-2-Clause-Views" ]
permissive
idreamsfy/XlsxWriter
b52929229b16e2ee1eaca0cda9980a5a0aad5769
129044ed821de67895b4562c6b71f90eba5be6b4
refs/heads/master
2021-01-02T20:39:20.415882
2020-02-07T21:07:55
2020-02-07T21:07:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2020, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
0400c58a052baca86265ec8f6d253abe0204845a
1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc
/venv/lib/python2.7/site-packages/ansible/modules/cloud/google/gcp_compute_http_health_check_facts.py
a1c4fe5412748c3100fd87f1d091f9954bcba2bc
[ "MIT" ]
permissive
otus-devops-2019-02/devopscourses_infra
1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c
e42e5deafce395af869084ede245fc6cff6d0b2c
refs/heads/master
2020-04-29T02:41:49.985889
2019-05-21T06:35:19
2019-05-21T06:35:19
175,780,457
0
1
MIT
2019-05-21T06:35:20
2019-03-15T08:35:54
HCL
UTF-8
Python
false
false
6,887
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright (C) 2017 Google # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # ---------------------------------------------------------------------------- # # *** AUTO GENERATED CODE *** AUTO GENERATED CODE *** # ...
[ "skydevapp@gmail.com" ]
skydevapp@gmail.com
00d8cdf6bfe4cc78e67c9905893c68b0dbbb595a
2614f223ad9aecddaca4358d51910e036bf0c2ff
/archived/data_preparation/dicom_reader.py
bba9338bfa789d6efef68f4e84e3d15a43682841
[]
no_license
cff874460349/tct
d615efb7485e5de3de66e2d02fff5ce9b33350a3
5bb4b16c4fad03a470243dd7db807a6a733d02e5
refs/heads/master
2021-03-14T00:55:51.556468
2019-06-28T03:56:54
2019-06-28T03:56:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,392
py
# useful dicom viewing software: http://www.microdicom.com/downloads.html import os import cv2 import png import pydicom import numpy as np import seaborn as sns import matplotlib.pyplot as plt from PIL import Image, ImageEnhance def scan_files(directory, prefix=None, postfix=None): files_list = [] for root,...
[ "yuli00986081@gmail.com" ]
yuli00986081@gmail.com
a7e3a19d4e253cd166c922cd2e018f0bbd00cffa
dc399f13d79b4fe80734b4ff9a47e6daac046efb
/PatternPrograrm/Pattern2.py
cb163084724bdd688b7225608f15ac078d9efb92
[]
no_license
brrbaral/pythonbasic
22531a75c8fc5e36dd7e9c1dfae31c5809365206
dc8fbddc7d3671ac14ee5f53db32f2d210f71de0
refs/heads/master
2020-07-11T03:12:54.691238
2019-08-26T08:41:51
2019-08-26T08:41:51
204,433,096
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
n=int(input("enter the number of rows you want to print:\n")) for i in range(1,n+1): for j in range(1,i+1): print(i,end="") print()
[ "brr.baral@gmail.com" ]
brr.baral@gmail.com
2897a371d47f8a89aa6c72d06a8200d8901d7777
c7427aeec5599a828209efd3c2805e0b9159d1a3
/src/kyushu/002_merge.py
f520afc010ddc22d348db0282ce20a74e1d224f5
[]
no_license
nakamura196/genji_curation
817690098fe6e0ea9f351edd8d21b4cb49a11c53
b7988e2125b68c3014dbeacad7c8ce795014eb7c
refs/heads/master
2023-04-14T01:27:39.322047
2021-04-30T00:04:54
2021-04-30T00:04:54
255,350,404
0
0
null
null
null
null
UTF-8
Python
false
false
1,601
py
import pytesseract import requests from bs4 import BeautifulSoup import shutil import hashlib import os import json import cv2 import numpy as np from PIL import Image import uuid import time import glob with open('genji-5ca47-export.json') as f: df = json.load(f) files = glob.glob("../../docs/iiif/curations/*/*...
[ "na.kamura.1263@gmail.com" ]
na.kamura.1263@gmail.com
a76b79b0cb516d8702abce924b3a27efb2a64422
21d9d00f119793524bc236ea0af3e7920e07c009
/vedacore/image/photometric.py
1ce7281deb96fe685d3f9024fc9036bd09e20172
[ "Apache-2.0" ]
permissive
carpedkm/vedatad
27330c830a348ec8aa0b2e3328025cce220b4f95
55f8dced57f698ee9fc0da9bcf471d171e718d0c
refs/heads/main
2023-07-22T19:34:28.217178
2021-09-01T05:28:32
2021-09-01T05:28:32
387,968,471
0
0
Apache-2.0
2021-07-21T02:23:09
2021-07-21T02:23:08
null
UTF-8
Python
false
false
2,474
py
import cv2 import numpy as np def imnormalize(img, mean, std, to_rgb=True): """Normalize an image with mean and std. Args: img (ndarray): Image to be normalized. mean (ndarray): The mean to be used for normalize. std (ndarray): The std to be used for normalize. to_rgb (bool): ...
[ "hongxiang.cai@media-smart.cn" ]
hongxiang.cai@media-smart.cn
86d7018a8c1ed81860fddee71a628a27c3485f70
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/DaVinci_v39r1/Phys/StrippingSelections/tests/data/Reco14_Run130393.py
fff7d781a1b2a16821b8cd5876c464288e017766
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
28,631
py
#-- GAUDI jobOptions generated on Fri Aug 1 14:32:17 2014 #-- Contains event types : #-- 90000000 - 344 files - 16032826 events - 1652.75 GBytes #-- Extra information about the data processing phases: from Gaudi.Configuration import * from GaudiConf import IOHelper IOHelper('ROOT').inputFiles(['LFN:/lhcb/LHCb/...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
6ef8fb5c492d8a33801453811cbae43b1dd6e2ae
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2018_11_01/models/express_route_connection_list_py3.py
5da7776116b9a57a3329ee33b88298139c8675c1
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
999
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
b4803e0848803df86c9ba8b02fafe50696cea98a
9c4b2efdda950f76c68b7573c8ec1aba8eab098b
/lingvo/core/builder_layers_test.py
151b01e7eae9fbe16ad6ed507c85f9ca35f945a4
[ "Apache-2.0" ]
permissive
allenwang28/lingvo
90baf0ed271849a52745a8e4b70b50ecbce13a99
26d3d6672d3f46d8f281c2aa9f57166ef6296738
refs/heads/master
2023-08-29T21:32:53.242366
2021-10-23T01:34:54
2021-10-23T01:34:54
412,575,973
0
0
Apache-2.0
2021-10-23T01:34:54
2021-10-01T18:22:00
Python
UTF-8
Python
false
false
27,205
py
# Lint as: python3 # Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
7712820892e756942d9d1aee4433ee3b0ab11cce
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02910/s911673437.py
436f781b829051856c7dde7026bd08ba9e49d955
[]
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
307
py
S=list(str(input())) a=[] for i in range(len(S)): if (i+1)%2==0 and (S[i]=='L' or S[i]=='U' or S[i]=='D'): a.append('Yes') elif (i+1)%2==1 and (S[i]=='R' or S[i]=='U' or S[i]=='D'): a.append('Yes') else: a.append('No') if 'No' in a: print('No') else: print('Yes')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d76a676554ba2fff0d15e4ff9735e8cb36d9ccbe
b000127408f96db7411f301553585f5da0e426cd
/code/Binary-Tree-Right-Side-View.py
67c0156dadbb765534f2a9d7d79f820255654e23
[]
no_license
SaiVK/Leetcode-Archive
5f758faf97d1ab559c4c75d26ae5cf7a256baef8
56bafeaaced2d0fd3b3d2f1a0365d24d5b41e504
refs/heads/master
2022-11-23T08:50:17.610247
2020-07-27T02:09:53
2020-07-27T02:09:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
class Solution(object): def rightSideView(self, root): self.db = {} def f(root, row=0): if (root == None): return if (row not in self.db): self.db[row] = [] self.db[row].append(root.val) f(root.left, (row + 1)) ...
[ "christopherlambert106@gmail.com" ]
christopherlambert106@gmail.com
5751dee8f7e78c7c697d389be1428ec10b878458
f942f82fb1b9c2eb0c4cf03ca2254f4207fd08d2
/Customers/migrations/0007_address_area_delivery_cost.py
a5981815fbce8f1737bd32b977c19357daa6191b
[]
no_license
mahdy-world/Fatoma-Restaurant
2b6aec149c20d5526d5d7a505479cc29c811d666
a500397741e72d0cf28dbb8f64c914144835d6c2
refs/heads/master
2023-06-27T19:27:35.606292
2021-07-31T13:53:18
2021-07-31T13:53:18
391,366,717
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
# Generated by Django 3.2.3 on 2021-06-29 11:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Customers', '0006_auto_20210628_1544'), ] operations = [ migrations.AddField( model_name='address', name='area_deliv...
[ "salmazidan1997@gmail.com" ]
salmazidan1997@gmail.com
cc68e54caeeea2da3dce22640cdfa5fa058caa71
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/third_party/catapult/telemetry/telemetry/timeline/process.py
8accaa56460b8f5c54d9c40bd12f2cec0ff18d0a
[ "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
Python
false
false
3,592
py
# Copyright 2014 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 telemetry.timeline.counter as tracing_counter import telemetry.timeline.event as event_module import telemetry.timeline.event_container as event_conta...
[ "enrico.weigelt@gr13.net" ]
enrico.weigelt@gr13.net
9e6278f37ab58e3d85157baddb6f0b810d45ff59
a6b17a4559e34433823c164442b19890a22e9734
/fantasy/baseSeasonReader.py
86b16e0c07258495660fe24a674241d0803f9663
[]
no_license
paoloruiz/basketball
76c2e3b7ef8423e576ffab7016ecb6f10aa6ce55
7901e1bb4f16dcd550b4f3b796b0e2889f240d60
refs/heads/master
2021-01-10T21:59:29.758894
2018-10-04T03:45:29
2018-10-04T03:45:29
18,073,356
0
0
null
null
null
null
UTF-8
Python
false
false
97
py
import SeasonsIndex players = SeasonsIndex.parseSeasons() for player in players: print player
[ "ubuntu@ubuntu-VirtualBox.(none)" ]
ubuntu@ubuntu-VirtualBox.(none)
731b77e80c63af5c397e591f3a4b116e372119aa
fe33bdb20436a379a17d56b83816d7064cb75d90
/src/rocon_qt_gui/rocon_remocon/src/rocon_remocon/rqt_remocon.py
e995cff5afc4b2f24d59459a7f8f955a7cd8d8c6
[]
no_license
uml-robotics/catkin_tester
764744614782acaff46f66f25dbd1650d0fcd5e8
dfc8bb2026c06d0f97696a726a6773ff8b99496e
refs/heads/master
2022-10-31T11:48:27.207535
2017-11-27T18:09:38
2017-11-27T18:09:38
111,495,779
0
1
null
2022-10-19T14:49:44
2017-11-21T03:45:59
C
UTF-8
Python
false
false
1,505
py
#!/usr/bin/env python # # License: BSD # https://raw.github.com/robotics-in-concert/rocon_qt_gui/license/LICENSE # ############################################################################## # Imports ############################################################################## # system from __future__ import div...
[ "james.perl12@gmail.com" ]
james.perl12@gmail.com
2ebc2c593f7824029a412aa6f6b33ec85a4114c8
396787df1b472ddfab7d934c149b150352342f03
/python_fundemental/250_Edit_Distance.py
ccf82feeadbe1a50c9f4f4bebb5df387f025bff1
[]
no_license
Deanwinger/python_project
a47b50a9dfc88853a5557da090b0a2ac3f3ce191
8c0c2a8bcd51825e6902e4d03dabbaf6f303ba83
refs/heads/master
2022-07-10T16:41:56.853165
2019-07-21T13:08:48
2019-07-21T13:08:48
107,653,001
0
0
null
null
null
null
UTF-8
Python
false
false
63
py
# leetcode 72. Edit Distance # 程序员代码面试指南 P217
[ "a541203951@163.com" ]
a541203951@163.com
e12dfa42e5caa18194f88bae20e0c328d82e85eb
476cd14985aafae0c2262cb3f233107ce910a2a2
/src/sage_example.py
f927fb5a7c5e50b752d8909a670866b7293d1eab
[]
no_license
markbasham/SAGE_Example
daa97cdb8b0e93ddbc708c244a9611f0c7bfad43
04606b644ff9312798695c4600a35911461fd18e
refs/heads/master
2021-01-10T07:17:15.003998
2016-01-13T22:26:54
2016-01-13T22:26:54
49,606,273
0
0
null
null
null
null
UTF-8
Python
false
false
3,291
py
import numpy as np class SAGE(object): def __init__(self): print("initialise 'local' disk store") self.disk_store = {} def put(self, fid, data): """ Basic Functionality """ print("Recieve data to storage machine") local_data = data print("put d...
[ "mark.basham@diamond.ac.uk" ]
mark.basham@diamond.ac.uk
c38bce5587c1814e2398f646812bf5615993023d
d650292c7fa20440c3535e773f87fe2a358161e0
/main-network.py
353cfea373e096032bd26e93f8f16e481429417b
[ "MIT" ]
permissive
mac389/at-risk-agents
d9e43c5a16e8d4da60ce65db5b3d9dab1152585b
de0bf578e4df16f4a159cb5c34f440f64be18b42
refs/heads/master
2016-09-05T11:21:39.065768
2015-01-16T22:25:40
2015-01-16T22:25:40
27,038,472
0
0
null
null
null
null
UTF-8
Python
false
false
4,161
py
import random import numpy as np import networkx as nx import matplotlib.pyplot as plt import Graphics as artist from matplotlib import rcParams from actor import actor rcParams['text.usetex'] = True params = {'n':{'nodes':1000,'edges':3}, 'network_drawing_props':{'cmap':plt.get_cmap('binary'),'width':0.5,'node_...
[ "mac389@gmail.com" ]
mac389@gmail.com
4fa662d8587d2e80e842bb0577f7e81df24ed99b
1f4505ed66f4fd68c6d1edf18ecff58362742fad
/algorithm/String/14_Longest_Common_Prefix.py
0bc83c2f9e492c54a8cac8bca1e7df89e54851c0
[ "MIT" ]
permissive
nishitpatel01/Data-Science-Toolbox
0d9b63a365698cc4a423abd5881cde8f6bf672be
80dc1310d103c9481feff8792426c550ddcc0a36
refs/heads/master
2020-05-19T08:26:40.319321
2019-05-04T05:58:48
2019-05-04T05:58:48
184,921,541
1
1
MIT
2019-05-04T16:53:21
2019-05-04T16:53:20
null
UTF-8
Python
false
false
978
py
class Solution: # horizontal scan def longestCommonPrefix(self, strs): """ :type strs: List[str] :rtype: str """ if not strs: return "" prefix = strs[0] lenPrefix = len(prefix) for s in strs[1:]: i, common = 0, 0 ...
[ "shawlu@github.com" ]
shawlu@github.com
263100c58101e755c0823a1e2e23a406ff138c97
87d5b21265c381104de8f45aa67842a4adc880eb
/43. Multiply Strings.py
2b7378a309fafb6391e763e46b1026615699baad
[]
no_license
MYMSSENDOG/leetcodes
ac047fe0d951e0946740cb75103fc94aae967166
8a52a417a903a0742034161471a084bc1e494d68
refs/heads/master
2020-09-23T16:55:08.579319
2020-09-03T19:44:26
2020-09-03T19:44:26
225,543,895
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
class Solution: def multiply(self, num1: str, num2: str) -> str: # convert dic = {"0":0, "1":1, "2":2, "3":3 , "4":4, "5":5, "6":6, "7":7, "8":8, "9":9} dic2 = {0:"0", 1:"1", 2:"2", 3:"3", 4:"4", 5:"5", 6:"6", 7:"7", 8:"8", 9:"9"} if num1 == "0" or num2 == "0": return "0"...
[ "fhqmtkfkd@naver.com" ]
fhqmtkfkd@naver.com
2e4b0e2664f71d395b7d4787372379e771eb1e00
2ce3b18a24f36700b115e6785ca38f7ab484ee35
/Question1/crawler_re.py
7731cf438d8cad4fad82858d12d8e98aff634465
[]
no_license
jangjichang/AX-Coding-Test
fb43adec4d6cf9b5e400fd14e2e20915d274017b
bcb1b96992c0d27bfe2be8724303da8d8156899a
refs/heads/master
2020-09-28T15:33:11.067792
2019-12-09T18:07:34
2019-12-09T18:07:34
226,806,517
0
0
null
null
null
null
UTF-8
Python
false
false
1,282
py
import re import requests from bs4 import BeautifulSoup req = requests.get('https://news.ycombinator.com/') html = req.text soup = BeautifulSoup(html, 'html.parser') news_table = soup.find('table', {'class': 'itemlist'}) itemlist = news_table.find_all('tr', {'class': 'athing'}) article_list = {"article_list": []} f...
[ "wlckd90@gmail.com" ]
wlckd90@gmail.com
6799f225feecfe565949e675b075635859ec878c
c956401119e44e41f3873b4734c857eda957e2cd
/programs/templates/fire/fire.py
3842dd26297fff415f4e4e43916282ed789d3986
[]
no_license
zhekunz2/c4pp
6f689bce42215507d749b8b2be96c7f68ed8c49c
9f8054addb48d9440662d8c8f494359846423ffd
refs/heads/master
2020-09-24T06:17:29.866975
2019-12-03T17:41:25
2019-12-03T17:41:25
225,678,894
0
0
null
null
null
null
UTF-8
Python
false
false
30,343
py
import pyro, numpy as np, torch, pyro.distributions as dist, torch.nn as nn from pyro.optim import Adam import torch.distributions.constraints as constraints from pyro.infer import SVI if pyro.__version__ > '0.1.2': from pyro.infer import Trace_ELBO from pyro.contrib.autoguide import * import math def amb(x): ret...
[ "zhekunz2@Zhekuns-MacBook-Pro.local" ]
zhekunz2@Zhekuns-MacBook-Pro.local
6f88ea1c12db9ab5b90b2662996d80aea3c85a17
c3a3cf534fb77a1963c172836aeff70ef1875e4b
/workspaces/voyage/uim/src/utils/strings.py
b0ad968fdfe2fd798eea8f175898e149fddf3f06
[ "CC0-1.0" ]
permissive
raychorn/svn_hp-projects
dd281eb06b299e770a31bcce3d1da1769a36883d
d5547906354e2759a93b8030632128e8c4bf3880
refs/heads/main
2023-01-08T07:31:30.042263
2020-10-14T21:56:57
2020-10-14T21:56:57
304,144,844
0
0
null
null
null
null
UTF-8
Python
false
false
2,383
py
##################################################### # # strings.py # # Copyright 2011 Hewlett-Packard Development Company, L.P. # # Hewlett-Packard and the Hewlett-Packard logo are trademarks of # Hewlett-Packard Development Company, L.P. in the U.S. and/or other countries. # # Confidential computer software...
[ "raychorn@gmail.com" ]
raychorn@gmail.com
d357db19828f23e229ccabd5faa592a8fbc284bd
aa853a9094fff4b6e9b0ddc7469be29ad5f0f811
/poi_x_alina_ws/models/sale.py
7757180991d6ff2d7cc6806245ae7c413b485675
[]
no_license
blue-connect/illuminati
40a13e1ebeaceee39f17caa360f79e8deeaebf58
6682e60630064641474ddb2d8cbc520e30f64832
refs/heads/master
2022-01-06T00:55:58.465611
2018-11-24T04:30:03
2018-11-24T04:30:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,405
py
######################################################################### # # # Copyright (C) 2015 Agile Business Group # # # # This program is free s...
[ "yori.quisbert@poiesisconsulting.com" ]
yori.quisbert@poiesisconsulting.com
a54d673945e1599c57c432b71be3bf34e55f591b
0366bccae8841bbf6ecaad70660aae89bb0f6394
/17_OOP/8_example.py
a4cc4dcb062b808d5215d4f819f73bd5f851d608
[]
no_license
KobiShashs/Python
8a5bdddcaef84b455795c5393cbacee5967493f7
e748973ad0b3e12c5fb87648783531783282832a
refs/heads/master
2021-04-05T20:18:57.715805
2020-04-02T21:51:44
2020-04-02T21:51:44
248,597,057
0
0
null
null
null
null
UTF-8
Python
false
false
163
py
class Question: def __init__(self): self.a = 0 def func(self): print(self) def main(): A = Question() A.func() main()
[ "kobi.shasha@gmail.com" ]
kobi.shasha@gmail.com
4c384b6378dfe058fa8ca65c29a520a249d66ef9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03293/s371802129.py
e048de67b8eb802a3db917f1b9d88f932b548bd6
[]
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
209
py
import sys lines = [s.rstrip("\n") for s in sys.stdin.readlines()] s = lines.pop(0) t = lines.pop(0) for i in range(len(s)): if s[i:] + s[:i] == t: print("Yes") break else: print("No")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
ce54063f82958c98d6f7a6722f51d3959a0b6b67
4b01781ea75792006f5b71106e0703d71ffbf2f0
/setup.py
24712c40bd3b3bd54a62a214ac8d96fe37aa7b22
[ "BSD-3-Clause" ]
permissive
humblejok/billiard
e54b9f3a678d99e5acd656d83807590f7379ce0c
ca63c80fad6be038f439ae31524bc5825fc8b319
refs/heads/master
2021-01-24T00:52:46.102860
2013-07-05T09:28:42
2013-07-05T09:28:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,931
py
import os import sys import glob try: from setuptools import setup, Extension, find_packages except ImportError: from distutils.core import setup, Extension, find_packages # noqa from distutils import sysconfig from distutils.errors import ( CCompilerError, DistutilsExecError, DistutilsPlatformErr...
[ "ask@celeryproject.org" ]
ask@celeryproject.org
e77c847a1f23fc3e18960a4e8eae86b64e80694a
87140007e96872d3611f0778eb0eebe5799616d7
/runs/src2-tgt1/par-bro-iter10000.cfg.py
c093478ec711c4c244d648d1cd1fcc7921f19a8f
[ "MIT" ]
permissive
janpawellek/broeval
49499fa302abff916ffced201034d3b9394503cd
57e31aa6e354d0bba88103b44910483e8d982d00
refs/heads/master
2021-01-11T12:19:13.619220
2016-12-20T16:23:27
2016-12-20T16:23:27
76,468,134
0
0
null
null
null
null
UTF-8
Python
false
false
652
py
# Write results to this file OUTFILE = 'runs/src2-tgt1/par-bro-iter10000.result.csv' # Source computers for the requests SOURCE = ['10.0.0.1', '10.0.0.3'] # Should Bro be enabled on the source machines? SOURCE_BRO = [True, True] # Target machines for the requests (aka server) TARGET = ['10.0.0.2'] # Should Bro be ...
[ "pawellek@stud.uni-heidelberg.de" ]
pawellek@stud.uni-heidelberg.de
820c4db9f43fc4d34504ea6880f04ea0ee1223c5
68750ca817b137ca1175a548954dd4d33580f307
/2018/day1/part2.py
92b93e4e265f1b820de4063a44460c9d92bfca60
[]
no_license
RustyBower/AdventOfCode
3a0e205cd040ac1d699d6fa82789f39a91942ad1
057309a054d5b6d6817bd8c627e8c9c67d084e6a
refs/heads/master
2022-12-23T01:14:15.443652
2022-12-16T03:51:14
2022-12-16T03:51:14
160,075,420
1
1
null
2018-12-03T18:31:34
2018-12-02T18:09:17
Python
UTF-8
Python
false
false
335
py
frequency = 0 frequency_list = set() boats = True while boats: with open('day1.txt') as f: for line in f: delta = int(line.strip()) frequency += delta if frequency in frequency_list: print("Duplicate Frequency Found:", frequency) boats = False break frequency_list....
[ "rusty@rustybower.com" ]
rusty@rustybower.com
3665ed39886cc5e2acb7a4d0bd88aac139089a84
3416464630bc3322dd677001811de1a6884c7dd0
/stack/q946_validate_stack_sequences/solution.py
3155dc25e0847c7d27cbb931595d2cb31ce70e4e
[]
no_license
ttomchy/LeetCodeInAction
f10403189faa9fb21e6a952972d291dc04a01ff8
14a56b5eca8d292c823a028b196fe0c780a57e10
refs/heads/master
2023-03-29T22:10:04.324056
2021-03-25T13:37:01
2021-03-25T13:37:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
#!/usr/bin/env python # -*- coding:utf-8 -*- """ FileName: solution.py Description: Author: Barry Chow Date: 2020/11/9 10:58 PM Version: 0.1 """ class Solution: def validateStackSequences(self, pushed: List[int], popped: List[int]) -> bool: if len(pushed) == 0 or len(popped) == 0: return True...
[ "zhouenguo@163.com" ]
zhouenguo@163.com
46b9863914206fe24d0a0f77258938f5eba6fd69
b33ad1c8560fc22a7e4ae9dec7f3c778b70941fa
/abc059/b.py
b6356ef612c7db22583e384d349bfc4b984a6845
[]
no_license
Tommy-somen/atcoder_record
36f226ffe6465dd5f8ae4986195510d00da46ffb
0e549a72cec3b87accefc52d5cd56420251361b9
refs/heads/master
2023-08-16T10:23:39.609512
2021-09-27T11:38:57
2021-09-27T11:38:57
410,585,072
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
import sys a = int(input()) b = int(input()) if a > b: print("GREATER") elif a == b: print("EQUAL") else: print("LESS")
[ "tomohiro1015w@gmail.com" ]
tomohiro1015w@gmail.com
58d115f30a692420c6a95c6718be40c2dbf7332e
b6391a57332369f8f01c4fed4be4857c807b4f07
/tensorflow_datasets/testing/ragged_test_util.py
aa1e96bb46d2d18e3840b36d2eb5f9f64b0d7b56
[ "Apache-2.0" ]
permissive
HubBucket-Team/datasets
7ae5f7675b8997ab077b7e17e29e77db232c4ac4
9d115358b5d9df5b0d4df100f8be10f97f671b76
refs/heads/master
2020-08-09T13:58:33.799771
2019-10-09T18:57:45
2019-10-09T19:02:45
214,102,378
1
1
Apache-2.0
2019-10-10T06:18:38
2019-10-10T06:18:38
null
UTF-8
Python
false
false
4,006
py
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets Authors. # # 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 appl...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
a88fe96dbca04e0d4320d64263e32ae076d73a58
278c4c7fbe97882b43943a0905f45f89666cc0c9
/MayLeetCode/CountingBit.py
05c7649704c33425924011cebda9069c2096c8c8
[]
no_license
rahuladream/ElementsofProgramming
36349428205a8ae849e3c95214db101edca2b7a3
4342993cc2cb9b76f14eb4b7b89af1012be6c942
refs/heads/master
2021-04-21T16:09:00.885406
2020-06-18T16:36:18
2020-06-18T16:36:18
249,795,124
1
0
null
null
null
null
UTF-8
Python
false
false
261
py
class Solution: def countBits(self, num): res = [0] while (size := len(res)) < num+1: for i in range(size): if len(res) == num + 1: break res.append(res[i]+1) return res
[ "rahul.singh4800@gmail.com" ]
rahul.singh4800@gmail.com
1dc6ea2f7e0e48d24d95231ff6f4b85a1f070422
cfdc0187ca770c09fa7a5868caedd1b5de0c668f
/imports_modules/cubeofnumber.py
bf8b777c36498f6ecc7bbace6b9dcf9c6bf58a90
[]
no_license
nelvinpoulose999/Pythonfiles
41ef15c9e3423ef5c8c121db7c6196772c40aa27
1e2129b1e1fb2a55100622fc83822726c7836224
refs/heads/master
2023-03-13T22:24:38.049100
2021-03-04T07:12:14
2021-03-04T07:12:14
333,663,557
0
0
null
null
null
null
UTF-8
Python
false
false
112
py
# cube of a function num = int(input("enter the number")) def cube(num): res=num**3 print(res) cube(num)
[ "nelvinpoulose999@gmail.com" ]
nelvinpoulose999@gmail.com
931631bd215c8e9d4288ba70ec7b57a8c1b5e2e7
9b9a02657812ea0cb47db0ae411196f0e81c5152
/repoData/goldsmith-Wikipedia/allPythonContent.py
21785809fc525b033e4b13c7e36a02e4f94e9ddb
[]
no_license
aCoffeeYin/pyreco
cb42db94a3a5fc134356c9a2a738a063d0898572
0ac6653219c2701c13c508c5c4fc9bc3437eea06
refs/heads/master
2020-12-14T14:10:05.763693
2016-06-27T05:15:15
2016-06-27T05:15:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
108,381
py
__FILENAME__ = conf # -*- coding: utf-8 -*- # # wikipedia documentation build configuration file, created by # sphinx-quickstart on Thu Aug 22 11:23:34 2013. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this...
[ "dyangUCI@github.com" ]
dyangUCI@github.com
e6991c8eb8420159bf77e4571c4fa9b2b01a55ab
c00da3e0600ffd6c1d738a7885ce3834df101670
/end/demo1/bookdemo/booktest/tests.py
7e1c1c94fe72ec11eee4aba844b7b2ea35332455
[]
no_license
1987617587/py1911project
60cd8d9a474c947462829b338d1cf50a96c1f023
c730861d846cbcb4dbfe92109cfd48b2b6623e9a
refs/heads/master
2023-01-09T13:54:21.487166
2020-04-27T01:19:47
2020-04-27T01:19:47
239,649,427
0
0
null
2023-01-05T10:20:38
2020-02-11T01:22:33
Jupyter Notebook
UTF-8
Python
false
false
105
py
from django.test import TestCase # Create your tests here. # 单元测试模块,暂时不需要关注
[ "1987617587@qq.com" ]
1987617587@qq.com
4980651b026be87b04afcda1524b845490360d43
99c4d4a6592fded0e8e59652484ab226ac0bd38c
/code/batch-2/dn7 - minolovec/M-17172-2514.py
e869c0af490c31602f96bb235efa23d77f2f4fa0
[]
no_license
benquick123/code-profiling
23e9aa5aecb91753e2f1fecdc3f6d62049a990d5
0d496d649247776d121683d10019ec2a7cba574c
refs/heads/master
2021-10-08T02:53:50.107036
2018-12-06T22:56:38
2018-12-06T22:56:38
126,011,752
0
0
null
null
null
null
UTF-8
Python
false
false
15,833
py
import math # To funkcijo prijazno podarjam vsem, ki bodo programirali v eni vrstici. :) # Kako jo uporabiti, je v navodilih. Kdor je ne potrebuje, naj jo ignorira. def vsa_polja(s, v): """ Generiraj vse koordinate (x, y) za polje s podano širino in višino Args: s (int): širina v (...
[ "benjamin.fele@gmail.com" ]
benjamin.fele@gmail.com
4a5409066db8b1c3a97bf09d1d27799c74ff206b
e2a4c8a976845a5eae56506779406a71aee6ac5a
/cooltools/directionality.py
78deab85efc86a8bd84f680c38e5f24aaf5700a5
[ "MIT" ]
permissive
dekkerlab/cooltools
652bee929b12d88bbd1575981d25e8b64a1096bf
a4a57d2d911812697f21b47b14abb4778ee8fc5f
refs/heads/master
2021-06-03T19:12:54.002373
2020-06-26T15:58:52
2020-06-26T15:58:52
118,785,000
4
3
MIT
2020-06-24T19:24:52
2018-01-24T15:37:13
Python
UTF-8
Python
false
false
6,079
py
import warnings import numpy as np import pandas as pd from .lib import peaks, numutils def dirscore(pixels, bins, window=10, ignore_diags=2, balanced=True, signed_chi2=False): lo_bin_id = bins.index.min() hi_bin_id = bins.index.max() + 1 N = hi_bin_id - lo_bin_id bad_bin_mask = ( bins["weigh...
[ "nabdennur@gmail.com" ]
nabdennur@gmail.com
791d9075f9c7f80d392a496dea94c36f22b0e67a
3eb55e98ca635cde6c41e895844f6c01b06a91ac
/base/3.py
3845e1df5d12db4aa61d5672b41f5cad43a02248
[]
no_license
tatikondarahul2001/py
defefacdb726aeb3e2d5515cb8a8dd14e3b7f18c
30c459312befc2426f403ea4062233dbd0b4fa0a
refs/heads/main
2023-03-12T07:41:17.550136
2021-02-24T14:43:35
2021-02-24T14:43:35
323,222,577
2
0
null
null
null
null
UTF-8
Python
false
false
42
py
a=1 b=2 c='a' print(c) c=[a==b] print(c)
[ "noreply@github.com" ]
tatikondarahul2001.noreply@github.com
3318384687fbd51cf8617b3fc6b9a8753db2e775
e7044f2b262244697e10002e33ba404e72d9823a
/VideoMix/makeNumberedVideos.py
dda56420630e25eddf97c9703b57bbc85d848f37
[ "Apache-2.0" ]
permissive
knut0815/SlidingWindowVideoTDA
4d8e727f872ccec42839f4522539dcd259697566
d707a0c4727e068778d5c805f938556c91d6f1ce
refs/heads/master
2021-09-13T05:51:11.557956
2018-04-25T17:43:04
2018-04-25T17:43:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,078
py
import sys sys.path.append("../") from VideoTools import * import subprocess import os import scipy.misc MAXHEIGHT = 160 MINWIDTH = 120 def saveVideoID(I, IDims, fileprefix, ID, FrameRate = 30, NumberFrames = 30): N = I.shape[0] print(I.shape) if I.shape[0] > FrameRate*5: I = I[0:FrameRate*5, :] ...
[ "chris.tralie@gmail.com" ]
chris.tralie@gmail.com