blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
780ac2b1b0a36b778e27621d5075fea40b5faadb
8fefd2a545f69237778aff08317b61c55d8f17d4
/risk_scoring/Data_Collection_Code/RETURN_EQUITY.py
951e4b77e6234172c20628c2dd4e7afc57eef46f
[]
no_license
ashnarayan13/RiskScoring
00604e6b8f33cca2e256360331938ea64870d04a
3f1797a12bdd661c7584fd3abaa3962c1b4aeae1
refs/heads/master
2021-01-22T10:50:55.562517
2017-08-31T07:53:57
2017-08-31T07:53:57
102,341,666
1
0
null
null
null
null
UTF-8
Python
false
false
1,884
py
import xlrd from xlwt import Workbook wb1 = xlrd.open_workbook("/home/ashwath/PycharmProjects/risk_scoring/src/DataSet_Final.xlsx") comp = wb1.sheet_by_name("CDAX") s1 = wb1.sheet_by_name("FY-1") s2 = wb1.sheet_by_name("FY-2") s3 = wb1.sheet_by_name("FY-3") s4 = wb1.sheet_by_name("FY-4") s5 = wb1.sheet_by_name("FY-5")...
[ "murali@fortiss.org" ]
murali@fortiss.org
516794b1108efec8a6236ca0cb7b7bfe8e1f6a12
f4853317939295936e224e0150e50aa2bd38879b
/project_madmuseum/project_madmuseum/settings.py
1c406792d899465080ae6120be932829c4f2114b
[]
no_license
jessefilho/scrapyJobs
7cd59dd00031259ffa3ea25a6b69698225cf89fc
47cb4b781c9e8f244265a281ea933f96f368ea6f
refs/heads/master
2020-03-29T19:43:17.382690
2019-01-02T20:04:23
2019-01-02T20:04:23
150,277,700
0
0
null
null
null
null
UTF-8
Python
false
false
3,236
py
# -*- coding: utf-8 -*- # Scrapy settings for project_madmuseum project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org...
[ "jessefilho@Jesses-MacBook-Pro.local" ]
jessefilho@Jesses-MacBook-Pro.local
f45d517a51288fdf1af81238bef427c053fc9fbe
f47863b3a595cbe7ec1c02040e7214481e4f078a
/plugins/scan/libsys/1530.py
7d4393ead3d8ab208722872e6653f54514040048
[]
no_license
gobiggo/0bscan
fe020b8f6f325292bda2b1fec25e3c49a431f373
281cf7c5c2181907e6863adde27bd3977b4a3474
refs/heads/master
2020-04-10T20:33:55.008835
2018-11-17T10:05:41
2018-11-17T10:05:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
#!/usr/bin/python #-*- encoding:utf-8 -*- # title:汇文libsys图书管理系统敏感信息泄露 #http://www.wooyun.org/bugs/wooyun-2010-0125785 def assign(service, arg): if service == "libsys": return True, arg def audit(arg): payload = 'include/config.properties' url = arg + payload code, head,res, errcode, _ = curl...
[ "zer0i3@aliyun.com" ]
zer0i3@aliyun.com
21ea5cf5e0b3b2984691a47e3c896c1d987cf016
63c5306b91db445016059a7f0c7ac167bf231d3c
/caffe2/python/operator_test/dataset_ops_test.py
ab6645e250bc558346fef1dfa56e2c3a3abfa0ce
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
Fletcher3003/caffe2
b57ad712993b7c50d16b8f0eedc2e5587bc89e0e
731096902a090b49612b02cc5a1301c81bf93943
refs/heads/master
2020-04-15T18:10:11.514190
2019-01-09T17:10:14
2019-01-09T17:10:14
164,903,847
0
0
Apache-2.0
2019-01-09T17:02:59
2019-01-09T17:02:53
Shell
UTF-8
Python
false
false
21,910
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import numpy as np from caffe2.python import core, workspace, dataset from caffe2.python.dataset import Const from caffe2.python.schema import ( List, Field, Struct, S...
[ "charliehouseago@gmail.com" ]
charliehouseago@gmail.com
8b7502a2975dab74af3056b8712ffcf0fb3e4eb8
667bf1d4802030d16d62dc27fcbd0196944e63b3
/app/answer.py
628d7fe1dec6d853173cded4341794f1f6f36fcb
[ "MIT" ]
permissive
kaiwk/forum-wechat
f8e78b03786e8fd27ef1774c5cacf83d2816bcfd
bdd5439b7d243c1678de522a63f36469423044ce
refs/heads/master
2022-12-24T08:54:25.539142
2018-12-19T15:20:26
2018-12-19T15:20:26
159,819,534
0
0
MIT
2022-12-08T01:28:25
2018-11-30T12:19:18
Python
UTF-8
Python
false
false
1,850
py
from flask import Blueprint, jsonify, request from sqlalchemy.orm.exc import NoResultFound from app.database import Answer from . import get_logger log = get_logger() bp = Blueprint('answer', __name__) @bp.route('/<int:answer_id>', methods=['GET']) def get_answer(answer_id): try: answer = Answer.que...
[ "kaiwkx@gmail.com" ]
kaiwkx@gmail.com
88cd07b5a55a1d8ac1a11d50651d3052496b91a9
f585bfd9b7b8b64aad59fd4ec8850bb03c4517e8
/Translator/handlers/request_handlers.py
0333cc82bca94834140cd5eeea2f8b016656e156
[]
no_license
StefanEvanghelides/eai2019
62a7d57fc079893e71a74a7a763d19302f733e01
25ef13cd52cba35e335e64f40d80f461d1f5faf4
refs/heads/master
2020-09-10T18:44:51.608371
2020-08-02T09:32:45
2020-08-02T09:32:45
221,801,906
0
0
null
2020-08-02T09:32:46
2019-11-14T23:02:00
Python
UTF-8
Python
false
false
396
py
import json def handle_product_translation(translators, message, headers, queues): message = json.loads(message) target_locale = message["locale"] translated = translators[target_locale].translate(message) print("translated message to %s" % target_locale) queues["message-bus"].send( body=...
[ "r.m.van.buijtenen@student.rug.nl" ]
r.m.van.buijtenen@student.rug.nl
c4a24a1f172e7a208fc8fb301452a2d6d42c5fb5
8df93619349f2261cc8b542b584d1ca3ecbe3c70
/Dependency/_utils.py
24cca3f185d99e4a19e841db4310ee04f481e85f
[]
no_license
AlisonYS/Python
0e5dc4b95ab5572414957bc3bf46aa03a6c6266f
b846040ba4b32f85c6842d962f50167e353cb6c0
refs/heads/master
2021-01-25T07:00:50.561080
2018-06-25T13:49:41
2018-06-25T13:49:41
93,635,885
0
0
null
null
null
null
UTF-8
Python
false
false
1,346
py
from os import walk import re def getFileListWithJava(path): for (dirpath, dirnames, filenames) in walk(path): for name in filenames: if name.endswith(".java") and (name is not "R.java"): myfile = open(dirpath +"/"+ name) content = myfile.readlines() for line in content: if line.startswith('pa...
[ "xuanmu.ys@alipay.com" ]
xuanmu.ys@alipay.com
3a0aa4f6f46d50f9055d2000d1b39488f5c19f87
b341a8d120737297aa8fd394a23633dac9b5ccda
/accounts/migrations/0007_auto_20210122_1129.py
c7476e71ff6f0746f30db617c468bd59bbe23d1c
[]
no_license
Minari766/disney_side_stories
16d97cb02bf00aa5439d59f753abb9a4706a30aa
aa2d88b1b0fdd87a27f41318bd3ec7352229b6ff
refs/heads/main
2023-08-15T07:03:16.922579
2021-10-03T07:47:22
2021-10-03T07:47:22
306,496,250
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
# Generated by Django 2.2 on 2021-01-22 02:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0006_auto_20210122_0127'), ] operations = [ migrations.AlterField( model_name='customuser', name='icon', ...
[ "mina3.ryu0728@gmail.com" ]
mina3.ryu0728@gmail.com
941accb672f76b0db53c6f3a669fcfd3f017badb
227438026ddb81cb13d174fab2f0c492da6c5975
/python/MuonGunPt50_FullEta_FullPhi_SmallSigmaZ_cfi.py
a59e85f89d64eceb435409fc4a3a149a836cac4e
[]
no_license
skaplanhex/cms-PLTSimulation
4c360a56335c673e8c703ea70371e58a1aeff60c
250e324eb3ea83c965dcb0bab47a53b399cf7625
refs/heads/master
2021-01-01T15:17:15.047788
2014-10-22T00:11:07
2014-10-22T00:11:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,016
py
import FWCore.ParameterSet.Config as cms source = cms.Source("PoolSource", fileNames = cms.untracked.vstring( '/store/user/skaplan/noreplica/MuonGunPt50/FullEta_FullPhi_SmallSigmaZ/MuonGunEvents_100_1_NnM.root', '/store/user/skaplan/noreplica/MuonGunPt50/FullEta_FullPhi_SmallSigmaZ/MuonGunEvents_10...
[ "skaplan@physics.rutgers.edu" ]
skaplan@physics.rutgers.edu
c2db7ee03c0e494e5769a87dc71cf5ff86c7c6db
53898c500373b0cb338dd2d1e5e7b2e4fa90e64e
/MigrateDaoExamole/Class/model/Client.py
d0f80be8f3048bf683916d5e8304d8de3bc4a448
[]
no_license
CGVLobo/Python
6026f99a8c58a80e0cc890478016ac1e4aeb1ba5
6dd57016dcb9ab62836a2aebb4e3201238a194fb
refs/heads/master
2021-08-28T10:31:48.390904
2021-08-23T23:54:13
2021-08-23T23:54:13
238,586,460
0
0
null
null
null
null
UTF-8
Python
false
false
292
py
class Client: def __init__(self,name,age): self.name=name self.age=age def setId(self,id): self.id=id def toDict(self): return self.__dict__ def toString(self): return "name="+self.name+" age="+str(self.age)+" id="+str(self.id)
[ "noreply@github.com" ]
noreply@github.com
2d430f2574987f6486384f1b770dec90e0908c69
5486c1f077634cf7ecbc69a05c2ac78d3ef86770
/parte1.py
9288241ecaf20dd129f268085ed4dc812dcbdd0e
[ "MIT" ]
permissive
LeonardoLeiva/10Tarea
93d76bf3e4a573bec58ada49ef60bfb0e29baa60
624f9d7cf2d2252482c7f3e8ef27dea7e52b0bd9
refs/heads/master
2020-12-28T19:46:13.856262
2015-12-02T03:34:26
2015-12-02T03:34:26
47,144,826
0
0
null
2015-11-30T20:43:25
2015-11-30T20:43:24
null
UTF-8
Python
false
false
2,530
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' este codigo busca modelar un espectro experimental ''' from __future__ import division import numpy as np import matplotlib.pyplot as plt import scipy.stats from scipy.optimize import leastsq from scipy import optimize as opt # funciones estructurales def leer_arch...
[ "leonardo_conan@hotmail.com" ]
leonardo_conan@hotmail.com
436645c364f840999119d1e57184125dbceeca14
1f006f0c7871fcde10986c4f5cec916f545afc9f
/apps/ice/plugins/oxml/oxml_wordNumbering_test.py
9d73299a89601ac0dd3e3d023fcdc93ea3e7a208
[]
no_license
ptsefton/integrated-content-environment
248b8cd29b29e8989ec1a154dd373814742a38c1
c1d6b5a1bea3df4dde10cb582fb0da361dd747bc
refs/heads/master
2021-01-10T04:46:09.319989
2011-05-05T01:42:52
2011-05-05T01:42:52
36,273,470
0
0
null
null
null
null
UTF-8
Python
false
false
3,070
py
#!/usr/bin/env python # # Copyright (C) 2010 Distance and e-Learning Centre, # University of Southern Queensland # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version ...
[ "raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05" ]
raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05
4cead54d458cb2804b14a4b098d1ed1d48940e63
f6fd53b95498b7a3c33c9726982db1c52f7f208f
/binary_to_decimal.py
e7bc657cd2b46270d061344f03ab2ea3b970dfb3
[]
no_license
AEC-Tech/Python-Programming
aed84cc40e6c5a9b4035d251c47585d6d8a5dbfb
fb2dcd766b1e2cca6c712fdbdff72f5d50ee93b1
refs/heads/master
2022-08-11T13:17:03.618471
2022-07-25T12:26:30
2022-07-25T12:26:30
127,695,508
23
22
null
2020-10-04T18:14:02
2018-04-02T03:01:56
Jupyter Notebook
UTF-8
Python
false
false
145
py
binary = input("Enter the binay number : ") s = 0 n = len(binary) - 1 for d in binary: s += int(d) * 2 ** n n -= 1 print("Decimal is ",s)
[ "noreply@github.com" ]
noreply@github.com
3ec22fdc103cb902979ce4613a9130c89dd06f66
256f5e959d2afa3416cbc97609dbf4e3ed2d08a0
/visual_helper.py
34a61643b41f07fd8d183fdaec4b583b0c01e3e0
[]
no_license
ferhatmelih/gittutorial
692280aaf8365bd97d777b5e3428a7fb1b1346c3
7e9a06d845b3e5d8c67cbba958d6bdc329e224d1
refs/heads/master
2020-08-06T13:20:06.851039
2019-10-05T13:38:03
2019-10-05T13:38:03
212,990,028
0
0
null
null
null
null
UTF-8
Python
false
false
30
py
asdas def function(): pass
[ "melih.dal@eatron.com" ]
melih.dal@eatron.com
05bafd9cd33150e356ee71cf5ec0c6d471a8fd8c
c6bd7a1a9d5b027f4ccb04228d30889058ed1186
/MPH_conversion.py
228529cc770bf0962d10abd9da1adf36c2e0d69a
[]
no_license
lukefrasera/unr_internship_project_01
421fdb50739e6299a23afe5d5ad0d7aec9260b36
be82b67e8f78344da30cfd148a645538890bb5e9
refs/heads/master
2022-06-17T01:46:12.014121
2015-10-02T22:19:23
2015-10-02T22:19:23
261,266,974
0
0
null
null
null
null
UTF-8
Python
false
false
39
py
#!/usr/bin/env python def main(): pass
[ "mirandakcross@gmail.com" ]
mirandakcross@gmail.com
5adfbabc3629b9b8f698444d0bc44b08d4c24358
ffcc9a3c8480b436df89063be1cbb4947b04ed40
/guide/lesson3.py
61706413801349822f497343f776184d915dde9c
[ "MIT" ]
permissive
TeaPackCZ/heidi
d37bd97708f0f5d3a3930ed01a3b0f4fc4411747
44c5fa7442e225aed6978a0decbdbcea3b33837e
refs/heads/master
2021-01-17T04:51:27.257075
2015-06-09T04:00:45
2015-06-09T04:00:45
33,980,451
0
1
null
2015-04-15T07:49:13
2015-04-15T07:49:12
null
UTF-8
Python
false
false
521
py
""" Lesson 3 - logging examples """ import sys sys.path.append('..') # access to drone source without installation from ardrone2 import ARDrone2, ManualControlException def testLesson3( drone ): try: drone.takeoff() drone.hover(10.0) except ManualControlException, e: print "ManualCont...
[ "martind@mapfactor.com" ]
martind@mapfactor.com
e6eeb16088bc7aa7f078ef1eff1925877e565e54
54e5d550eeb7664f8426cb2429a443680b70f890
/CH06/Whileture.py
304526403a9da8ac67690ad6d43b368e8fd480e9
[]
no_license
Choiseokjoon/HelloPython
c2cb53a0b2c98f01cd6aa9fc6cd712a420d6b39e
da9ad39bb5dc31c99718f1b009c7ef845cc0a964
refs/heads/master
2020-05-15T17:30:34.585815
2019-04-20T13:01:31
2019-04-20T13:01:31
182,406,168
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
sum_all = 0 num = 0 while True: print("1") if sum_all >=50 : break sum_all = sum_all +num num = num + 1
[ "noreply@github.com" ]
noreply@github.com
199d434465c3656aee4f794b9c3e45082973e134
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-7896.py
b9db85cffe8ae7ce8835bf3307e75b65eb9792ec
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
23,291
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
02e18c7b8a4c3ab41fd01dd0fb8e3fd20ee6d3f1
9949376205f2617d60fb49ad948da79e7bb1ec87
/clas.py
3e718e73d3cc4e7aa39604d259e0a42e343fc15d
[]
no_license
Creeper315/Suduko-Solver
5dbff7432aa418c26dba4891ca8426984a6081b4
ca05e3d03b47d3a93e279ac95cda9dfc26a25838
refs/heads/main
2023-02-24T10:00:43.382702
2021-01-27T04:40:01
2021-01-27T04:40:01
333,304,790
0
0
null
null
null
null
UTF-8
Python
false
false
1,003
py
import numpy as np class Stack: def __init__(self): self.value = np.ndarray([0,2], dtype=int) # Note: If dtype is not "int", later when we use these number as index, we might return float, but only integers can be index. #self.value = np.zeros([0, 2]) def add(self, position): self.va...
[ "noreply@github.com" ]
noreply@github.com
385e7002048051f5d77a795985a595ead6f1bcb0
221c5a5769e84e5ba99320fd2db17152c6354919
/py_basics_problems/reverse_sentense_s1.py
f401070558b7751a458d4b8d043db26991c70351
[]
no_license
saradaprasad/py
9727e7cf8c1fb1a6aef665bfde9483a212224776
d5ad5a80de43c9ee0a73d870d468151275123ee2
refs/heads/main
2023-07-07T16:33:22.949182
2021-08-11T14:51:45
2021-08-11T14:51:45
380,809,666
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
def reversed_words(): sentence='Python is exciting!' words=sentence.split(' '); reverse_sentence=' '.join(reversed(words)) print(reverse_sentence) reversed_words()
[ "prasadsarada7@gmail.com" ]
prasadsarada7@gmail.com
b478bc94e0a6fd66283bbc040deba2068d2a0e0d
0c78aaaaad898d8076d30b0c6a3178ba49e7e833
/utils.py
e50ce33c70253b2058b91ba2f05cd685594f313b
[ "MIT" ]
permissive
orgilj/cifar_continual_learning
d94a1da634e32627acc86b77009fb2d23d8dd88d
4bbdbb38dbf3a2c85edbc08d59d1ef1fe90b7037
refs/heads/main
2023-02-23T13:38:41.472750
2021-01-29T15:24:02
2021-01-29T15:24:02
334,178,731
0
0
null
null
null
null
UTF-8
Python
false
false
5,693
py
import numpy as np import torch import torchvision from tqdm import tqdm def get_split_cifar100(task_id, start_class=None, end_class=None, batch_size=32, shuffle=False): # convention: tasks starts from 1 not 0 ! # task_id = 1 (i.e., first task) => start_class = 0, end_class = 4 if start_class is None: ...
[ "toorgil2012@gmail.com" ]
toorgil2012@gmail.com
555fdd00b37a194a38488f565a9af20e5d192fb0
32209739eaf5b0e5ae245174bc7ca887f3a0e110
/Introduction to Deep Learning-Week4/lfw_dataset.py
40eb0933bdf7932d6c293ba8ef6688a461768b28
[]
no_license
YellowcardD/Introduction-to-Deep-Learning
43f74c8ae68e72716884428d8a6ce1928333e489
3efe971a7b11702407693f03d24ce7c592a9e03a
refs/heads/master
2020-04-07T05:05:21.190798
2018-11-18T16:13:58
2018-11-18T16:13:58
158,082,777
0
0
null
null
null
null
UTF-8
Python
false
false
1,889
py
import numpy as np import os import cv2 import pandas as pd import tarfile import tqdm ATTRS_NAME = "lfw_attributes.txt" IMAGE_NAME = "lfw-deepfunneled.gz" RAW_IMAGES_NAME = "lfw.gz" def decode_iamge_from_raw_bytes(raw_bytes): img = cv2.imdecode(np.asarray(bytearray(raw_bytes), dtype=np.uint8), 1) ...
[ "noreply@github.com" ]
noreply@github.com
54a8308182a451fb04d18b813d5defda147a66a0
79d7c2ea9133a057bce82c6286013da9752ae5c0
/Code/Data_Gathering/TapologyFighterScraper.py
2aa108b31917d1765aee1d9104d8ed0db183083d
[ "MIT" ]
permissive
MrForExample/Weighted-UFC-Fight-Predictor
6ad9280743a00ce5b3ca7d8e41697b060bb9d3ca
bd5744bfb8fcab4d054a7e038ccc3e854c5fd4fa
refs/heads/main
2023-01-14T08:08:40.213170
2020-11-12T14:39:38
2020-11-12T14:39:38
312,268,991
1
0
null
null
null
null
UTF-8
Python
false
false
3,859
py
import scrapy import pandas as pd self_df = pd.read_csv("../FighterRawData.csv", index_col=0) miss_fighters_name = self_df[self_df.values == '--'].drop_duplicates(subset=['FIGHTER'])['FIGHTER'].values.tolist() # Can't scrape all at once due to site spider restriction strategy miss_fighters_name = miss_fighters_name[15...
[ "62230687+MrForExample@users.noreply.github.com" ]
62230687+MrForExample@users.noreply.github.com
9330cd3f6095c574c0fa566a8d69be0fec19b834
a62a87ad976e3d35ea7879671190faf950ebaf3b
/scrapys/t.py
47ae7f7a675a471d9db25b8bb6a431b20fa33406
[]
no_license
YangXiaoo/Django-web
144c8c1800d2a67bf8d1d203210aa351d31e8fb3
97903f309234fd1421a19a52a083f214172d6c79
refs/heads/master
2020-03-24T11:29:20.296017
2019-01-20T14:54:16
2019-01-20T14:54:16
142,687,045
0
0
null
null
null
null
UTF-8
Python
false
false
3,264
py
# -*- coding: utf-8 -*- import re import urllib2 import pandas as pd #获取原码 def get_content(page): headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36', 'Accept-Language': 'zh-CN,zh;q=0.8'} url ='http://search.51job....
[ "33798487+YangXiaoo@users.noreply.github.com" ]
33798487+YangXiaoo@users.noreply.github.com
2c8e692913201e7b86f4e54c67ce0c02757ef65d
02880a53d16e3ede7c6a9f7d24949f04754dd2ca
/turtlebot_control/src/path_follow_cv.py
02d09e70b192412ca4216ccccebdf5ad8f0a29d1
[]
no_license
DodgeBot/ROS
ff33bc90aa28fbbff25fd2ccfba9ef9c082da01f
e714db21260d38fa04989bf8ab766de6428289ec
refs/heads/master
2021-04-12T08:05:56.383947
2017-07-02T22:32:52
2017-07-02T22:32:52
94,515,113
1
0
null
null
null
null
UTF-8
Python
false
false
8,542
py
#!/usr/bin/python import os import sys import csv import cv2 import glob import numpy as np from ParticleFilter import ParticleFilter import rospy import roslib from sensor_msgs.msg import Image from cv_bridge import CvBridge, CvBridgeError import imutils import numpy as np import time G_LABEL_RIGHT = 0 G_LABEL_STRAI...
[ "fyp16010@gmail.com" ]
fyp16010@gmail.com
c9d99ec9f87041eb0577f08fd01cab6264d3abd1
72a05ac540052e426c88245d3ffe12a1a08de362
/MME/g/PBR/thumbnail_x256.py
202f7990098ea972ffc8187f29cd264977677c45
[]
no_license
pennennennennennenem/pennennennennennenem.github.io
486c60595a05f76b0879f0511a46b5dd864d6503
8bbf8edb36c32fef67874b36e9563826196d21a0
refs/heads/master
2022-09-29T07:44:44.397982
2022-09-09T02:11:20
2022-09-09T02:11:20
253,360,771
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
from PIL import Image import sys import os i=Image.open(sys.argv[1]).convert('RGB') i.thumbnail((256,256*i.size[1]/i.size[0])) i.save(os.path.splitext(sys.argv[1])[0] + '_s.jpg')
[ "56704844+pennennennennennenem@users.noreply.github.com" ]
56704844+pennennennennennenem@users.noreply.github.com
ad63402027f5c0450e9fb9b04104c95a7de2b965
4a8c8bbfb6c1785bb97660020c5e577d887ce4e2
/account/migrations/0001_initial.py
6270082a88774730f22c4712ab9b630efc262380
[]
no_license
Eldiyar0220/Hackstone
7faf50c49509e8b306df01c3446be40fd87e091f
2133bc176cd23a4ba7c6ea821a799cd7b2a88e8a
refs/heads/main
2023-06-05T19:39:44.337879
2021-06-27T12:46:07
2021-06-27T12:46:07
379,862,777
0
0
null
null
null
null
UTF-8
Python
false
false
2,396
py
# Generated by Django 3.1 on 2021-06-24 08:44 import account.models from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migra...
[ "Ebolotov904@gmail.com" ]
Ebolotov904@gmail.com
145365adce5937414e20b7f9ff9e38120c14843d
776341e5dc617ece09c290afe66311e058fd0144
/send_to_arduino.py
5c7e6eaaec42013e7d8779b544a7ffb891248b46
[]
no_license
deysonali/Project-Lumos
a896ff727d472576ed4a2e8feab29103d7a53812
b2d368494b04b82da7fa8ab417a85cdda99813e7
refs/heads/main
2023-01-14T05:07:27.946089
2020-11-23T05:57:39
2020-11-23T05:57:39
315,214,194
0
1
null
null
null
null
UTF-8
Python
false
false
940
py
import serial import time # The following line is for serial over GPIO port = "COM6" ard = serial.Serial(port, 9600, timeout=5) time.sleep(2) i = 0 setTemp1 = bytes(str(1), 'utf-8') setTemp2 = bytes(str(0), 'utf-8') for i in range(0, 2): # Represents 1 (right) followed by a 0 (left) received from our ...
[ "noreply@github.com" ]
noreply@github.com
b857744f18041b979948a7934c4d4b680381dead
6b9d52ade00538e6a950deffc9342c66edd6cc04
/zhipin/zhipin/spiders/AreaSpider.py
1f9514e4270a9f504ed9267ae245203973504728
[]
no_license
asmaaelkeurti/scrapy
b4354630ded384c724b4802cdad7d98098f455c3
77ed01cea149711d6acdd66d994f6b9976073c6f
refs/heads/master
2020-06-14T01:31:31.226963
2019-07-26T02:39:17
2019-07-26T02:39:17
194,851,756
0
0
null
null
null
null
UTF-8
Python
false
false
1,089
py
import scrapy from ..items import AreaItem import pymongo class AreaSpider(scrapy.Spider): name = "area_url" custom_settings = { 'DOWNLOAD_DELAY': 20, 'ITEM_PIPELINES': {'zhipin.pipelines.AreaPipeline': 400}, 'DOWNLOADER_MIDDLEWARES': {'zhipin.middlewares.ZhipinUserAgentMiddleware': 10...
[ "asmaaelkeurti@aliyun.com" ]
asmaaelkeurti@aliyun.com
bd64520533edfc4080a9c62fe2f73533c225df98
952a9bc5a54bae037662f3bd5e09aa13780628a2
/vespa/analysis/block_prep_megalaser.py
d9ee800348907f04ad9ee6a673913aebdecb9e0a
[ "BSD-3-Clause" ]
permissive
bsoher/vespa_py2
199964d2ffdc6ed576d6d73e55078ed5bc26c784
07cd67de2465607319870a18435da784345198d0
refs/heads/main
2023-04-22T04:24:44.270731
2021-05-06T01:07:57
2021-05-06T01:07:57
364,384,405
0
0
null
null
null
null
UTF-8
Python
false
false
12,109
py
# Python modules from __future__ import division # 3rd party modules import numpy as np import xml.etree.cElementTree as ElementTree # Our modules import vespa.analysis.block_prep_identity as block_prep_identity import vespa.analysis.chain_prep_megalaser as chain_prep_megalaser import vespa.analysis.block as block i...
[ "bsoher@briansoher.com" ]
bsoher@briansoher.com
91cf1bbafb30679fda22289ccab052d7605c72e6
503d2f8f5f5f547acb82f7299d86886691966ca5
/typical90/typical90_cf.py
f610d0f1035ed452bc7992ce2b7ed0d6160b139f
[]
no_license
Hironobu-Kawaguchi/atcoder
3fcb649cb920dd837a1ced6713bbb939ecc090a9
df4b55cc7d557bf61607ffde8bda8655cf129017
refs/heads/master
2023-08-21T14:13:13.856604
2023-08-12T14:53:03
2023-08-12T14:53:03
197,216,790
0
0
null
null
null
null
UTF-8
Python
false
false
937
py
# https://atcoder.jp/contests/typical90/tasks/typical90_cf # # def input(): return sys.stdin.readline().rstrip() # # input = sys.stdin.readline # from numba import njit # from functools import lru_cache # import sys # input = sys.stdin.buffer.readline # sys.setrecursionlimit(10 ** 7) N = int(input()) S = input() ans ...
[ "hironobukawaguchi3@gmail.com" ]
hironobukawaguchi3@gmail.com
f8f04d4798e994490ad6ecaf3e1eb17c2424110d
ed72797056e0a3013dc61c81399bd8b56042787a
/src/frame/home_frame.py
04cda5cf5df03425e53af75d53c46fac99163cdc
[]
no_license
pooetitu/anime-companion
95f5088cbc470559bb650d4d6f830a58c7005999
6aea8e805c7f5adf976882988a8a9b7ef2394440
refs/heads/master
2023-06-22T16:21:58.104600
2021-07-25T19:03:21
2021-07-25T19:03:21
376,633,791
0
0
null
null
null
null
UTF-8
Python
false
false
1,066
py
from tkinter import ttk import requests from kitsu.models import Anime from src.cards.anime_info_card import AnimeInfoCard from src.frame.scrollable_frame import ScrollableFrame class HomeFrame(ttk.Frame): def __init__(self, function_display_anime_details, master=None): super().__init__(master) ...
[ "pooetitu@gmail.com" ]
pooetitu@gmail.com
f5783ec97d4eb45d76b501c9cb44fb45c9fa027e
96872bbac90845189ac1276b91795ce6253442f5
/class-activities/loopActivity.py
158493003486f4bc9b4667571b53002f366c5ddf
[]
no_license
rubenavaldez/Python-sandbox
4e9d1ff609cd4a70d5f8ea0eb70d576d2f438e5a
02a02a899f4aa66f3b7b7fa28a020cb22ebb40cc
refs/heads/master
2022-10-13T00:48:54.547441
2019-10-29T05:34:34
2019-10-29T05:34:34
218,170,216
0
1
null
2022-10-07T02:11:38
2019-10-29T00:22:35
Python
UTF-8
Python
false
false
1,160
py
correctAnswer = False while correctAnswer == False: answer = input("What is 2 + 2?") if answer == "4": print("Correct!") correctAnswer = True else: print("Incorrect!") verify = False friendlies = [] while verify == False: yourName = input("What is your name?") print("We ...
[ "ruben.valdez7@gmail.com" ]
ruben.valdez7@gmail.com
fdcc8e2352fb90f3dce50f2dab1f09b450c20e09
dc4d01e9de93e2538a8ce6fd52d9c42d26fa4bb5
/week04/evil-loopy-lists.py
7a94be418658fabefba21affca71cb9a77682d21
[]
no_license
katiecla/CA268
27e5e867977aca11b46f642660ab4ad88d90f6a7
1607ff781da20d5ac0a3e617a4b06451f36d5ca2
refs/heads/master
2022-03-29T09:09:58.912601
2020-01-24T15:22:43
2020-01-24T15:22:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
183
py
def detect_loop(lst): root = lst.head ptr = lst.head while ptr != None: if ptr.next == root: return True ptr = ptr.next return False
[ "noreply@github.com" ]
noreply@github.com
84e3065e22fd5fe1e88286d0f462bcf02326e85b
ba94c9951adcde0392ab673fc0bb5fff7e422f40
/main.py
1b159e4cc71ebff07177891fc9b807ef83a3c673
[]
no_license
georgwassen/Reports
4c21491be0a599bee45f1f710c6ee75172ae3a13
785b16d2823fc63b20b16e5fb425a78d8dfda887
refs/heads/master
2021-01-19T13:14:28.041250
2014-06-02T10:07:53
2014-06-02T10:07:53
20,394,766
0
1
null
null
null
null
UTF-8
Python
false
false
377
py
#!/usr/bin/env python from storm.locals import * import data_def import generate_data import reports if __name__ == "__main__": #database = create_database("sqlite:test.db") database = create_database("sqlite:") store = Store(database) data_def.create_db(store) generate_data.generate_testdata(s...
[ "georg.wassen@googlemail.com" ]
georg.wassen@googlemail.com
737f03f10ca5c122cad3e6ecd1ea3ca167ba591a
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_7114.py
43772d7ec5384a7033d876749b4875f9abf3a978
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
# global name 'find' is not defined 'python'.find('y') # gives 1
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
eb7c26a791fa2b8b0975f500d74956c92c74716c
f36ba856476a99592e5570f13c9d321d9b914bde
/maskrcnn_benchmark/modeling/roi_heads/soft_roi_heads.py
55afdce3de9aff40204efb7d0102929cf812a421
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
huajianni666/maskrcnn-benchmark-distillation
1448b7c94e723833463efec4c2744097adf7b83b
8543f26c44a8f0a4d178548bd08471bf53498381
refs/heads/master
2020-04-02T16:01:57.402542
2019-02-18T06:08:57
2019-02-18T06:08:57
154,594,906
1
1
null
null
null
null
UTF-8
Python
false
false
2,436
py
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import torch from .box_head.soft_box_head import build_soft_roi_box_head from .mask_head.mask_head import build_roi_mask_head class CombinedROIHeads(torch.nn.ModuleDict): """ Combines a set of individual heads (for box prediction or mask...
[ "gezishuai@qiniu.com" ]
gezishuai@qiniu.com
07a345dba33878564304037a609dba06de767c0c
36c00fe2afff4818c937e312ce0c6a79f35e2a77
/7-kyu/happy-birthday,-darling!/python/solution.py
ab407ea9bcebd79b2d18c37ed24e86ac2368a137
[]
no_license
p-lots/codewars
0a67b6ee4c91180ff78c648421b9d2d64463ddc3
535faeee475c6b398124d6f5002b0e111406e8bb
refs/heads/master
2023-08-23T22:14:33.635011
2023-08-23T13:30:37
2023-08-23T13:30:37
195,320,309
0
0
null
2023-05-09T19:25:50
2019-07-05T01:40:15
Python
UTF-8
Python
false
false
164
py
def womens_age(n): base = n // 2 if n % 2 == 0 else (n - 1) // 2 new_n = 20 if n % 2 == 0 else 21 return f"{n}? That's just {new_n}, in base {base}!"
[ "paul.calotta@gmail.com" ]
paul.calotta@gmail.com
238eb7c3a48a487377b765829fcb5eee86416ff5
24cf311c53c29e4e332cea01ee4de8196253a7b7
/accounts/urls.py
ca8992d712669175ee1ef3193b0ea2d6ab348261
[]
no_license
apengok/vsicravdoa
d017fe0c6a8606ef7bb74739354de1a2767b2a8a
e424b94007731189c2f14513798f2a9e9a45ba4c
refs/heads/master
2020-03-10T23:07:48.145583
2018-06-01T09:18:25
2018-06-01T09:18:25
129,634,250
1
0
null
null
null
null
UTF-8
Python
false
false
777
py
from django.conf.urls import url from .views import ( AccountHomeView, # AccountEmailActivateView, UserDetailUpdateView ) app_name = 'account' urlpatterns = [ url(r'^$', AccountHomeView.as_view(), name='home'), url(r'^details/$', UserDetailUpdateView.as_view(), na...
[ "apengok@163.com" ]
apengok@163.com
053161aa0ab152db24a739446745c4bc030409d9
d7ca0cf469418971be2bc5d6dd65bc28ba74f71a
/pymcsl/montecarlosimulation.py
b7b8fddd1b47ce28c14ae23ffe650f5719ea3de4
[ "MIT" ]
permissive
FilipeChagasDev/PyMCSL
a6b19df23841fffd8db088b4d9925e61b1ea7695
8713a1dc73b0ea8e4d9636c970c98077b5923cc4
refs/heads/main
2023-04-07T22:19:51.854371
2022-06-10T07:46:52
2022-06-10T07:46:52
500,016,774
1
0
null
null
null
null
UTF-8
Python
false
false
18,525
py
""" By Filipe Chagas June-2022 """ from typing import * import numpy as np from subsimulation import SubSimulationEnv, ContextType def _first_or_default(l: List, f: Callable[[Any], bool], default: Any = None) -> Any: for x in l: if f(x): return x return default class MonteCarloSimulationE...
[ "filipe.ferraz0@gmail.com" ]
filipe.ferraz0@gmail.com
b9edcccc00c10227f91be8740e4d744c0cea4347
2b8047e9e73a2f6fd43897cff19cb7e7c7c464d4
/docssrc/source/conf.py
5d48fbeb3fa4a5a1f8afc2bbac54d3f8fcfb3638
[ "MIT" ]
permissive
Peilonrayz/envee
548fe08330a3b43bee5da1d64a0e406c781b990e
66f5b6b1ff7f5966be794e1e3878418c560c1f65
refs/heads/master
2021-01-09T13:35:40.946529
2020-02-21T20:58:27
2020-02-21T20:58:27
242,321,085
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
import datetime import pathlib import sys try: import ConfigParser as configparser except ImportError: import configparser FILE_PATH = pathlib.Path(__file__).absolute() # Add documentation for tests TLD = FILE_PATH.parent.parent.parent sys.path.insert(0, str(TLD)) config = configparser.ConfigParser() config....
[ "peilonrayz@gmail.com" ]
peilonrayz@gmail.com
fbdea07de6f18420b99a57b116c79adf1f0463a1
eac52a8ae7c539acedaedf8744bd8e20172f0af6
/general/decode_ways.py
33c70cc775b271c21d0bb448684acae24e9ffa65
[]
no_license
mshekhar/random-algs
3a0a0f6e6b21f6a59ed5e1970b7a2bc2044e191f
7c9a8455f49027a754038b23aaa2df61fe5397ca
refs/heads/master
2020-03-26T16:29:42.694785
2019-07-18T20:57:55
2019-07-18T20:57:55
145,105,593
4
0
null
null
null
null
UTF-8
Python
false
false
2,895
py
# A message containing letters from A-Z is being encoded to numbers using the following mapping: # # 'A' -> 1 # 'B' -> 2 # ... # 'Z' -> 26 # Given a non-empty string containing only digits, determine the total number of ways to decode it. # # Example 1: # # Input: "12" # Output: 2 # Explanation: It could be decoded as ...
[ "mayank@moengage.com" ]
mayank@moengage.com
0a5f6df39a2d3620f087deaf1e129653f22361bc
73983c84160d74cf16504b255c9b91ec90c1d8da
/python/lintcode/1751.CowherdWeaver.py
371aa2dee601416aa707782507f9adb391f241b0
[]
no_license
kaka-go/Programming
53ac72e08dc16a3ce76aba142265e9231f75e33f
32255576bc80155cfef302ee1985e203e20e0f22
refs/heads/master
2022-10-24T21:19:43.989085
2020-06-16T13:56:44
2020-06-16T13:56:44
11,860,358
0
0
null
null
null
null
UTF-8
Python
false
false
2,665
py
# 1751. Cowherd&Weaver # cat-only-icon # CAT Only # 中文English # On the Qixi Festival, the Cowherd and the Weaver play together in a maze size of n*m . However, they get separated from each other. Now given the maze consisting of .,*,S,T, where . denotes an empty space, * denotes an obstacle, S denotes the position of t...
[ "edward9145@gmail.com" ]
edward9145@gmail.com
9bd94aa5bacee387781973b3baf0c5402378758e
5b34f91f66b34ced0f51726f5c8f26017614423a
/0817/score.py
5cc455de775ed199e1b5de3f378114d49be6c38c
[]
no_license
WinstonHou/Phython200817
40cec9a587fa55c3ecdc52f426b11f95acf8060f
923a0f0b90e44310769563256a3fa1f11d514c4b
refs/heads/master
2022-11-29T16:36:37.390898
2020-08-17T08:53:37
2020-08-17T08:53:37
288,129,852
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
score=int(input("請輸入成績")) if score >=0 and score<=100: if score>=90: print("等級A") elif score>=80: print("等級B") elif score>=70: print("等級C") elif score>=60: print("等級D") else: print("等級E") else: print("輸入錯誤!")
[ "noreply@github.com" ]
noreply@github.com
f0b3e6949b78c44d35bdedc65dcdd7d848eae7f3
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/CodeJamData/10/33/17.py
b549582d467c3879831e6f099d36ecf18d3abe31
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
1,617
py
from itertools import count def board(rows): n = len(rows[0]) * 4 return [map(int, '{0:0{1}b}'.format(int(row, 16), n)) for row in rows] def squares(board): m, n = len(board), len(board[0]) #sq = {} for r in xrange(m): for c in xrange(n): if board[r][c] == 2: continue ...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
a20abcac99856f482d5e3f7ec4d5c5c93878dacd
98f505e8275ed888818d8d6f77d27a9c275b55d8
/face.py
a6d86359d258eda63f01fe71ba8a00892e28e706
[]
no_license
EHwooKim/telegram
13ac0afbd4ee5f91aa81b557183e9d8143fb1315
034ae64fa6283720fd55362b1b763cb3497ce4fc
refs/heads/master
2022-12-11T19:53:23.942523
2019-07-12T07:41:29
2019-07-12T07:41:29
196,533,974
0
0
null
2022-12-08T05:52:25
2019-07-12T07:48:30
Python
UTF-8
Python
false
false
959
py
import pprint import requests from decouple import config # 0. 이미지 파일 file_url = 'https://api.telegram.org/file/bot823224197:AAFwM03Ie4P8dBH45aKI75sMO0okZpcIqic/photos/file_2.jpg' response = requests.get(file_url, stream=True) image = response.raw.read() # 1. 네이버 API 설정 naver_client_id = config('NAVER_CLIENT_ID') nav...
[ "ehwoo0707@naver.com" ]
ehwoo0707@naver.com
9b0cd6014bdec03a0d2afed288972c3c237370e2
bbc9cae586607079ce8a469b7436603f174ffcb5
/cgan.py
bcbd9e769bf30dafe76a9d6a62b2bf7e04b46126
[]
no_license
howieeeeeeee/tensorflow_GANs
aafcce16512a5a052b92e4be048ce2ddd24e7472
0e678807650bf5ac3f279c74602ffe8292e93e2d
refs/heads/master
2021-05-14T16:02:52.215214
2018-01-05T07:18:07
2018-01-05T07:18:07
116,010,493
0
0
null
null
null
null
UTF-8
Python
false
false
3,804
py
# -*- coding: utf-8 -*- import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import numpy as np import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import os mnist = input_data.read_data_sets('MNIST_data', one_hot=True) mb_size = 64 Z_dim = 100 X_dim = mnist.train.ima...
[ "332897864@qq.com" ]
332897864@qq.com
5613be8e39c81aef65ec60ef432167af18caae0d
6e22c9bc6dd2bb442345a1c6759249fc3211322b
/venv/lib/python3.8/site-packages/PIL/IptcImagePlugin.py
1be000c7d32695eefd3bd31b691a4c32a85ae422
[]
no_license
Sankalpa830/NHPE
b4ba283f602b15a2ae53afaeb06ed11354879f76
ac2615f218d35bd0d8a24b06abb37ef77d321a72
refs/heads/main
2023-07-14T20:58:14.639187
2021-09-01T08:03:27
2021-09-01T08:03:27
401,979,352
0
0
null
null
null
null
UTF-8
Python
false
false
5,961
py
# # The Python Imaging Library. # $Id$ # # IPTC/NAA file handling # # history: # 1995-10-01 fl Created # 1998-03-09 fl Cleaned up and added to PIL # 2002-06-18 fl Added getiptcinfo helper # # Copyright (c) Secret Labs AB 1997-2002. # Copyright (c) Fredrik Lundh 1995. # # See the README file for info...
[ "88698739+Sankalpa830@users.noreply.github.com" ]
88698739+Sankalpa830@users.noreply.github.com
f5800ecfc3419ee1d3066b980a2439658b3d7d09
8b2b07aff10727a00e243766458412f01393b524
/Limits/python/combineUtils.py
0b489f9add3d8339a4567175a69df32482f44938
[]
no_license
adeiorio/Stat
89db0deadbcca01a9204800a46a837a8cf0acd45
f3968faca0cf72dff7abfdc26bcf2f63ec9fd6a0
refs/heads/master
2022-12-07T11:31:09.958027
2022-11-22T10:18:31
2022-11-22T10:18:31
298,411,783
0
3
null
null
null
null
UTF-8
Python
false
false
5,547
py
import os import subprocess from Stat.Limits.settings import * def runCombine(cmdStr, logFile): "run combine for a specific case" cmd = (cmdStr) print os.getcwd() print cmd #writer = open(logFile, 'w') #process = subprocess.call(cmd, shell = True, stdout=writer) print cmd + " 2>&1 | tee "...
[ "adeiorio@cern.ch" ]
adeiorio@cern.ch
df42a53a9946c65aa65daf196e5ae7312595f312
3640d0ce7e461aaebe6452ac426e4d9c2c2a0f39
/ch6/namespace_xml.py
c0e61259445f8b40eb1bf905c168ff0cd1bb48eb
[]
no_license
chhhaya/pythonlearn
c50fb2ff019fb5558095de358467b58b570e021b
3589cfcaee8aacaf4641a6ad27b21147d6890ce7
refs/heads/master
2021-01-01T18:30:04.548920
2015-02-10T13:33:36
2015-02-10T13:33:36
27,026,285
0
0
null
null
null
null
UTF-8
Python
false
false
1,702
py
from xml.etree.ElementTree import parse, iterparse doc = parse('namespace.xml') print(doc.findtext('author')) print(doc.find('content')) print(doc.find('content/html')) # None print(doc.find('content/{http://www.w3.org/1999/xhtml}html')) # find print(doc.find('content/{http://www.w3.org/1999/xhtml}html/head/title')) #...
[ "chhaya11@163.com" ]
chhaya11@163.com
d0c7805015d0990484841901a310a10805e00cf6
39be02fe4f8e8362a7acc005f3e30dd6fe47990e
/newdata/oylereader.py
5ebdae4fcc852f8c821d74ed40ee95c9b06e915b
[]
no_license
seferlab/geneexpress
e2f6fdaa49e40cd48d0572cd9ddb5d2f45566adb
ac35bde5ba52d24981ece74e532f46bbfff9019e
refs/heads/master
2022-12-19T08:33:16.925160
2020-09-29T13:51:30
2020-09-29T13:51:30
299,619,752
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
import os import sys import math fname1 = "127 LCM time course Data Not normalized.txt" fname2 = "127 LCM time course Quantile Normalized logbased 2 transformed.txt" with open(fname1,"r") as infile: for line in infile: line = line.rstrip() vals = line.split("\r") splitted = vals[1].split...
[ "70752445+seferlab@users.noreply.github.com" ]
70752445+seferlab@users.noreply.github.com
0a8292376d38f8cb8f4dcc03a49cad69ea965165
c384c1f8062f01a6a343e4aad7fcd231a906dbf5
/python/How many char in it.py
7bbe3199b90ea812ec236302dcec20ed4fb4c100
[]
no_license
RawitSHIE/Algorithms-Training-Python
b9bf95ccc7b3974de78f290492d646679d05ae4b
02ba71f88d18e48b35046564fe6f61911db31ac4
refs/heads/master
2021-03-24T12:34:02.101117
2017-12-10T14:15:40
2017-12-10T14:15:40
109,127,600
0
0
null
null
null
null
UTF-8
Python
false
false
942
py
"""How many char in it""" def main(): """chr count""" text = list(input()) lower, upper, nlow, nup = [], [], [], [] alpha = list("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") for i in range(len(alpha)): if alpha[i] in text: text2 = sorted(set(text)) for j in...
[ "Rawitgun@gmail.com" ]
Rawitgun@gmail.com
52860b1da6917fcd830a4b178bd3d28e8c60bf70
99dfd25f07b748e0b9b04ac300e135dc20570e1c
/cart/urls.py
1731b6a31f6bbea06b4fcbb367549265a3127dd2
[]
no_license
suipingooi/tgc10-django-deploy-checkpointPAUL
1ec45e7135263703ff3472216f8fdcfdb379d7f3
46b62cdce8396c2b0cc57ec1fca4e77c0eee1e1a
refs/heads/master
2023-04-16T05:11:20.535480
2021-04-14T12:02:43
2021-04-14T12:02:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
from django.urls import path import cart.views urlpatterns = [ path('add/<book_id>', cart.views.add_to_cart, name="add_to_cart"), path('', cart.views.view_cart, name='view_cart'), path('remove/<book_id>', cart.views.remove_from_cart, name="remove_from_cart"), path('update_quantity/<b...
[ "chorkunxin@yahoo.com" ]
chorkunxin@yahoo.com
41dabe5b0e30f6ff89cb7846901f93f3873942e9
47c6de7d0e3c90493af4b026914cf5386e27fc5b
/mainserver/consumers.py
293e2c0c232845ff25eac232d0721930d1ce71f8
[]
no_license
bvishal8510/saemain
b97676916efcd4d5987aa7943834ad5f4455ecc5
3b812a2f24ada3435735d92058c4aba4e0c6eed5
refs/heads/master
2020-03-11T10:28:11.708212
2018-05-07T06:06:42
2018-05-07T06:06:42
129,943,695
0
0
null
2019-10-21T15:33:51
2018-04-17T17:50:08
Python
UTF-8
Python
false
false
2,879
py
import json from channels import Group, Channel from channels.auth import channel_session_user, channel_session_user_from_http from .models import User_main from django.core import serializers @channel_session_user_from_http def ws_connect(message): pass # print(4) # message.reply_channel.send({"accept": T...
[ "baghel.vishal124124@gmail.com" ]
baghel.vishal124124@gmail.com
236fc4fd5bc7b69db58de748d2cb1eace6d41786
bc52ee3856ada8acff0378298a2b8a8960c7c9db
/venv/bin/tox
bf7d98656f6f04fa08dd8a3578368f83260d30b5
[]
no_license
Alone-elvi/e-lib-Flask
345f71a60cb8480fa04364924a9ee4c997ab8c2b
1a25a353aa6fbfd37d0af5255651943e7c941581
refs/heads/master
2022-12-12T13:17:05.356615
2019-08-04T15:05:25
2019-08-04T15:05:25
200,500,629
0
1
null
2022-12-08T05:58:25
2019-08-04T14:09:33
Python
UTF-8
Python
false
false
263
#!/home/alone5elvi/MEGA/Programming/Python/Flask/e-lib/venv/bin/python # -*- coding: utf-8 -*- import re import sys from tox import cmdline if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(cmdline())
[ "alone.elvi@gmail.com" ]
alone.elvi@gmail.com
0d3751111c62a6939a15a28d136ea4746c6a9726
6ff62bd52c889483dd2445d6c7c7239d8ac8f870
/NBIOT_position_system/real_time_monitoring/migrations/0002_auto_20180330_1049.py
2d7958a34fd7c73b83eb81ad53dacccdf9b94fb6
[]
no_license
zhangc-rw/position_service
830c1e5fbf4d9bc4a307aa663d4193dc0214f5b7
104b81dc40ff777a94ee18ff63422c89c5a20cf3
refs/heads/master
2020-03-12T13:37:52.967126
2018-12-06T08:18:30
2018-12-06T08:18:30
130,646,760
0
1
null
2018-04-24T01:35:52
2018-04-23T05:55:45
Python
UTF-8
Python
false
false
968
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-03-30 02:49 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('real_time_monitoring', '0001_initial'), ] operations = [ migrations.AddFie...
[ "1031145995@qq.com" ]
1031145995@qq.com
c30e714db427687e2c49b5ae2143f6f504edbc8c
50cf35543575af09e99f8b7ab88d47dbf16aede0
/server/products/urls.py
7c08d700d462ebf8c2698a91371b3329733928c3
[]
no_license
igrmaurat/GB_Django
b0949f45e75c5ab009f17752670ded25c551a52e
555377a36f4e69c82060d9f6dc4ee7a9252d8260
refs/heads/master
2020-04-02T00:43:50.165667
2018-12-03T14:10:13
2018-12-03T14:10:13
153,818,946
0
0
null
2018-12-03T14:10:14
2018-10-19T17:31:15
Python
UTF-8
Python
false
false
492
py
from django.urls import path # Импортируем свою функцию from .views import ( catalog, product, product_create, product_update, product_delete ) app_name = 'products' urlpatterns = [ path('<int:pk>/delete', product_delete, name = 'delete'), path('<int:pk>/update', product_update, name = 'updat...
[ "igrmaurat@mail.ru" ]
igrmaurat@mail.ru
ad37fcf92859439197f53e93bff59cfbc036b3fc
065a25701273fa6be10d41ceca24148c6442f02f
/FarMeKart/views.py
ee35917e11a61bf7a0b1778e57d6a8756f44c5b7
[]
no_license
Gunapriya6/FarMeKart
980cfffe08a15c21b90e6886d411df361165df63
551d3053365c5581de414ff2165e2e807c43b13c
refs/heads/master
2023-06-07T19:54:36.011198
2021-06-29T12:15:54
2021-06-29T12:15:54
376,298,226
0
0
null
null
null
null
UTF-8
Python
false
false
9,795
py
from django.shortcuts import render,redirect from FarMeKart.forms import UsregFo,ChpwdForm,UpdPfle,Vegfr,UpdVgtab,Userp,Usperm,UpdPfle1,CancelForm,UpdPfle2,PlaceorderForm from django.contrib.auth.decorators import login_required from farmer import settings from django.core.mail import send_mail from django.core.mail im...
[ "guna11priya@gmail.com" ]
guna11priya@gmail.com
034a7d5e99bd493a04228ed2e4b4f1b71a6ec5c2
0cc4eb3cb54f8394c127ace62d3108fdb5230c85
/.spack-env/view/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/profile.pyi
df940020d4066a6dc89ae87f2652df920ed8c8b4
[]
no_license
jacobmerson/spack-develop-env
5b2d76f58c0b64ae97c64f77a3c4d33a770c71c8
5fca20ca343b1a76f05fc635c87f94ed25417d94
refs/heads/master
2022-07-04T02:22:50.264727
2020-05-06T05:13:50
2020-05-06T05:13:50
261,657,112
0
0
null
null
null
null
UTF-8
Python
false
false
190
pyi
/lore/mersoj/spack/spack/opt/spack/linux-rhel7-x86_64/gcc-7.3.0/py-jedi-0.17.0-zugnvpgjfmuk5x4rfhhxlsknl2g226yt/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/profile.pyi
[ "mersoj@rpi.edu" ]
mersoj@rpi.edu
ce3333447ac28a3d89c0757d6ada515e638e5bd2
8410bb5a2e8849bb3a554b95ddc713d88f3440c4
/aws-dev/awsdev9/venv/Lib/site-packages/dns/rdtypes/ANY/SOA.py
aec81cad8ac916e9bc71052ecbc4983cdabbd126
[ "MIT" ]
permissive
PacktPublishing/-AWS-Certified-Developer---Associate-Certification
ae99b6c1efb30e8fab5b76e3d8c821823a4cd852
b9838b4e038b42ad1813a296379cbbc40cab6286
refs/heads/master
2022-11-03T04:37:49.014335
2022-10-31T05:42:19
2022-10-31T05:42:19
219,964,717
13
11
MIT
2021-06-02T00:57:45
2019-11-06T09:54:09
Python
UTF-8
Python
false
false
4,597
py
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license # Copyright (C) 2003-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and ...
[ "sonalis@packtpub.com" ]
sonalis@packtpub.com
f2a79e14c8e1f3123f6c1980abd11fd2deeb6313
acfc74f4cd6da2f89775a7c5fba196b441488aa7
/nsd-term-project/pymodule/agent.py
434421b39a185fb84694c62e59d8d993b0d3be3b
[]
no_license
jptom/study-probablistic-robotics
c76c960a58d253c480ade4f0225e653f6d09c8dd
1cf1905194218b52e222a87ae1d45aa0d48465f0
refs/heads/main
2023-02-11T13:43:23.259239
2021-01-10T22:43:22
2021-01-10T22:43:22
303,395,961
0
0
null
null
null
null
UTF-8
Python
false
false
797
py
class EstimationAgent(Agent): def __init__(self, time_interval, nu, omega, estimator): super().__init__(nu, omega) self.estimator = estimator self.time_interval = time_interval self.prev_nu = 0.0 self.prev_omega = 0.0 def decision(self, observation=None): ...
[ "noreply@github.com" ]
noreply@github.com
b379be57824d2fb470bae252805697851fe78582
7f770972c8bc279008af04e418d1080c7b122c7a
/DevLab/5.py
071d49b37590f9fcefd460dcdd4d894e67ceac52
[]
no_license
thongchaiSH/practice-dev-lab
5e5f91c5dd36ef12ec8780b1ba805b0b8c3fe8f9
32b15c2bdd296dc1fa65dc580290f4a60a4cff47
refs/heads/main
2023-02-22T05:37:41.851182
2021-01-25T05:32:27
2021-01-25T05:32:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
739
py
''' คำนวณเกรด คำอธิบาย โดยการคำนวณเกรดนั้นจะมีการให้คะแนนตามเกรดแต่ละช่วงเป็น 80- 100 ได้เกรด A , 70 - 79 ได้เกรด B , 60 - 69 ได้เกรด C , 50 - 59 ได้เกรด D และ ต่ำกว่า 50 จะได้เกรด F โดยผู้ใช้จะต้องกรอกเป็นตัวเลขจำนวนเต็มเท่านั้น ''' # num=69 num=int(input()) if num>=80 and num <=100: print("A") elif num>=70: ...
[ "thongchai.sh@gmail.com" ]
thongchai.sh@gmail.com
2ca6a41f705f6ef795834db9d2bcbec1c4e7da99
9d0195aa83cc594a8c61f334b90375961e62d4fe
/JTTest/SL7/CMSSW_10_2_15/src/miniAODJobs600toInf/nano4.py
1366df4f33cc6ad0c152e7cd8e25ea82efda4cf6
[]
no_license
rsk146/CMS
4e49592fc64f6438051544c5de18598db36ed985
5f8dab8c59ae556598b9747b52b88205fffc4dbe
refs/heads/master
2022-12-01T03:57:12.126113
2020-08-04T03:29:27
2020-08-04T03:29:27
284,863,383
0
0
null
null
null
null
UTF-8
Python
false
false
4,363
py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: nanoAOD_jetToolbox_cff -s NANO --mc --eventcontent NANOAODSIM --datatier NANOAODSIM --no_exec --conditions 102X_upgrade2018_realistic_v19 -...
[ "rsk146@scarletmail.rutgers.edu" ]
rsk146@scarletmail.rutgers.edu
8bf032498531047a3d1285fdc533adaa25bf826f
1c71f25108b277a63f2adc48aa30b201fd254a5b
/third_party/PerceptualSimilarity/train.py
4bff0e07512efa28c0bc4e52a336da8c25f7cbbe
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
ecmjohnson/lasr
934c292eff5305325c97ef2e11e5c72b6f4db3c9
1d8404232d2e51c330bdf83416343eda0290bcc0
refs/heads/main
2023-07-08T06:44:18.911430
2021-08-09T20:35:09
2021-08-09T20:35:09
394,651,253
1
0
Apache-2.0
2021-08-10T12:47:44
2021-08-10T12:47:43
null
UTF-8
Python
false
false
4,956
py
import torch.backends.cudnn as cudnn cudnn.benchmark=False import numpy as np import time import os from models import dist_model as dm from data import data_loader as dl import argparse from util.visualizer import Visualizer #from IPython import embed parser = argparse.ArgumentParser() parser.add_argument('--dataset...
[ "deqingsun@google.com" ]
deqingsun@google.com
c4ecb3d26e7d4d021faf6e0f28580b6d1360efee
e0c81c6117c58be5e0a610ceb24f283bb9a8bafd
/old/pick_panos_for_sliding_window.py
28503ee6d736f4d628141127727aec615556a670
[]
no_license
ndenizturhan/sidewalk-cv-assets19
0928e65be92e2e2f259a40b9afca91a823d85b1c
dfad62b34c3a6a17ee6906cdecae518732c2bb8c
refs/heads/master
2022-07-17T06:06:08.629912
2020-05-21T18:41:40
2020-05-21T18:41:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
import os, csv, random path_to_db_export = "/mnt/c/Users/gweld/sidewalk/minus_onboard.csv" num_to_pick = 50 ############################# panos = [] with open(path_to_db_export, 'r') as csvfile: reader = csv.reader(csvfile) for row in reader: panos.append( row[0] ) picked = random.sample(panos, ...
[ "gweld@cs.washington.edu" ]
gweld@cs.washington.edu
d9bf1f45f8a93985ea6f2e0a18d2ad677c242736
444dd650756e29854010e64388f9d92608c2f847
/PalindromeHW5.py
224d24dc08819f68250c96be15dd713d14041143
[]
no_license
Lizzy95/MICP
ae440a4b2f7f6962e9611974a5451b60f0608e32
2739ef8de60674a0454fc0c6384e5d74c2a083ea
refs/heads/master
2021-01-01T16:58:51.436268
2017-09-13T16:33:32
2017-09-13T16:33:32
97,968,453
0
1
null
2017-09-13T16:33:33
2017-07-21T16:42:16
Python
UTF-8
Python
false
false
982
py
class ListNode(object): def __init__(self, x = None, next = None): self.val = x self.next = next def isPalindrome(head): try: findMid = head mid = head if head.val == None: raise Exception('Throw exception') while findMid and findMid.next: findMid = findMid.ne...
[ "lizzi16.gd95@gmail.com" ]
lizzi16.gd95@gmail.com
fa37b4c5fdcdb9523555f762cbf4a584c1be99c6
736030867c8b57dca68c2252a6890c75163ab6a6
/attempt.py
fadd250875c5de5404900448b12c040df7cb6580
[]
no_license
vapte/PokerBots
e66d3dcb61fcb040d0b9a62d3ab938ae86621ad9
4ff0d1f540c76c5ba10b96efcee30e60ed4bb20d
refs/heads/master
2020-12-30T21:46:41.019811
2016-07-19T15:47:25
2016-07-19T15:47:25
46,761,449
0
0
null
null
null
null
UTF-8
Python
false
false
19,014
py
import itertools as it import random import copy from numpy.random import logistic import os import multiprocessing import time import tkinter import pickle #Skeleton code for Player obtained from MIT PokerBots course website class Player(object): values = ['2','3','4','5','6','7','8','9','T','J','Q','K','A'] ...
[ "aptebros@gmail.com" ]
aptebros@gmail.com
8221254cccecc142e5a2d0560a81568baf3ee901
0c3dc0735791266e2127859a38ae20ed8040c08e
/control_horas_lectivas/dtos/usuario_dto.py
ab5937d06c2060e507bf92e4ae8b019ce9511055
[]
no_license
williamccondori/unsa_sistema_academico
4ac0d5400d953daea44f4be78fc3210b1e07e023
9046dd70dc729b90f4c83a7e799007f459f51aca
refs/heads/master
2021-03-30T23:48:08.858797
2018-04-05T22:15:29
2018-04-05T22:15:29
125,013,005
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
class UsuarioDto(object): def __init__(self, username='', id_departamento=0): self.Username=username self.IdDepartamento = id_departamento
[ "williamccondori@outlook.com" ]
williamccondori@outlook.com
e5efc3c9464fe665edf8cf81776c48e663dc9fed
a4fc49a7d188f0d56e93207fba79db00406e2783
/instance/config.py
a23b87080b763b7f4af8e2baf31c53c2cd37f17d
[]
no_license
wightcotton/Budgeting
411aca92af7f6106762553f8868ce22d4911cd9b
05acc40a211ca365bfb786b4de5c40403e2031e6
refs/heads/master
2021-01-06T02:56:08.489026
2019-07-10T21:09:09
2019-07-10T21:09:09
241,205,671
0
0
null
null
null
null
UTF-8
Python
false
false
85
py
# configs DATASOURCE = "C:/Users/Bob/Documents/money/budget/current budget info.xlsx"
[ "bob@wightcottonn.com" ]
bob@wightcottonn.com
713716f99e0b6a39fd9ebd2069050e1a8522be74
b2e501080c178839d8fa4146b0392da8470bf677
/QAgent.py
daf8d540c9f976bff46e0a1c23ed2d35f43a81f1
[]
no_license
nsms556/AILearningsSnake
5c66b810476cf5309add9f8c34e9426b423c7735
e054f81d7fd191821acc1025643ce3704467ba34
refs/heads/master
2023-03-26T05:37:18.197810
2021-03-24T12:35:16
2021-03-24T12:35:16
325,515,004
0
0
null
null
null
null
UTF-8
Python
false
false
1,787
py
import random from collections import deque from typing import final import numpy as np import torch from snake import SnakeGame from utils.Snake_Statics import HIDDEN_SIZE, INPUT_SIZE, OUTPUT_SIZE, import utils.AIUtils as AIU from models.torchModel import * MAX_MEMORY = 100000 BATCH_SIZE = 1000 LR = 0.001 class ...
[ "nsms556@kakao.com" ]
nsms556@kakao.com
771ec8576328d1d3ae8a24f14afee76c8db1f54a
3ba1c1bd3215634f0422bbbba1ac6871c3592d1c
/process/aon1e.py
fef5d0530df67763c6e4ebca3d95a36e451700cf
[]
no_license
Djphoenix719/nlp2020-project
d928a81fcf45be5671a7f6b5eb011ec2e91c64fe
c7b54dec8b941c0a9e92b73285485b07e07e283f
refs/heads/main
2023-01-23T03:11:08.869025
2020-12-13T23:38:33
2020-12-13T23:38:33
310,170,196
0
0
null
null
null
null
UTF-8
Python
false
false
1,361
py
import os from bs4 import BeautifulSoup from tqdm import tqdm from process.util import ladle, collect_until_end, full_clean, write_output def process_aon1e(): system = 'pf1e' input_dir = f"data/raw/{system}" os.makedirs(f'data/processed/{system}', exist_ok=True) for file_name in tqdm(os.listdir(inpu...
[ "andrewcuccinello@gmail.com" ]
andrewcuccinello@gmail.com
bd13eec195727b03591f3658eaa75c0f54f16624
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03827/s915868982.py
561cb7cb4a15cc5878feaba7bc58f0a5af14916d
[]
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
114
py
N = int(input()) S = input() x = 0 ans = 0 for s in S: x += 1 if s == "I" else -1 ans = max(ans, x) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
f12934c72c25fe75ab9552dceeb66260eb6849a0
484377c159df3241f9a53e5e03f754563d0630cb
/blog/admin.py
f5f330e8de99c6e1fe5391779c9f34d1482f5287
[]
no_license
SandyOliveira/BlogEmDjango
43ed851418a7f2c1edb6da71524938aaa5fa8d32
6b8a87cf82f73ac2541f37b547efb3d9c37debc0
refs/heads/master
2022-10-17T06:10:40.935679
2020-06-09T00:51:43
2020-06-09T00:51:43
266,949,420
0
0
null
null
null
null
UTF-8
Python
false
false
1,072
py
from django.contrib import admin from .models import Post, Category @admin.register(Category) class PostAdmin(admin.ModelAdmin): list_display =('nome','criado','publicado') list_filter = ('nome','criado','publicado') date_hierarchy = 'publicado' search_fields = ('nome',) @admin.register(Post) clas...
[ "sandyoliveira828@gmail.com" ]
sandyoliveira828@gmail.com
fd955388fa01f31415dd266a61d5fc2462658529
b8072195ed98dba9873cda7f12e28399e0a8c006
/ShazamBot/Shazam-Samil/bot/__init__.py
6031088460dd7e78f5b4e0c824be83c62be3c485
[ "Apache-2.0" ]
permissive
Yuziful/shazambot
a39bb123278c0b537ce0c8e77cd8e5c04e7e852c
2d645ec80aa4cce8d4b5ec8c3505975d25c8bed2
refs/heads/main
2023-07-27T00:10:12.731407
2021-09-09T16:11:06
2021-09-09T16:11:06
404,788,514
1
0
null
null
null
null
UTF-8
Python
false
false
561
py
import logging from configparser import ConfigParser from bot.bot import bot # Logging at the start to catch everything logging.basicConfig( format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.WARNING, handlers=[ logging.StreamHandler() ] ) LOGS = logging.getLogger(__n...
[ "noreply@github.com" ]
noreply@github.com
059d13000f25ac9b116e3ab42c1393e2fb8619a7
7bb46e67befa4941bb729846abfd04007a98cb2b
/colorsublime/status.py
3c31e2bdfbc90b00e64dee28b947644538afcacc
[ "MIT" ]
permissive
Colorsublime/Colorsublime-Plugin
8916b83c5bc650860f7ac4ed11b3aa515509a287
9d9c07c0807b912a5d97776a4373aba4dabe7b7f
refs/heads/master
2022-12-21T21:24:08.846490
2022-12-20T03:41:39
2022-12-20T03:41:39
17,201,705
515
82
null
2017-08-25T10:10:31
2014-02-26T06:45:18
Python
UTF-8
Python
false
false
2,477
py
# -*- coding: utf-8 -*- """ Module to set the view status of Sublime Text plugins. By @blopker """ import random import time import sublime from .lib.concurrent import futures from . import logger from . import settings log = logger.get(__name__) statusPool = futures.ThreadPoolExecutor(max_workers=1) PLUGIN_NAME = s...
[ "lopkerk@gmail.com" ]
lopkerk@gmail.com
03fa8f0ea7916556b812e4b74da0e4cb6a8bd37d
41dbe386398222d83eb392528dc738d30c31ecf1
/src/translate.py
14afee1e38380ac2cf778fead91a944c28f659d8
[]
no_license
spidgorny/learn-english-by-youtube
dc00fe6f6948bd7416faf4ea84badf9e20d1706a
d7ea46035cadf95ef3a66e8b965b8503088f4267
refs/heads/master
2023-01-07T01:23:16.318036
2022-02-21T09:56:53
2022-02-21T09:56:53
188,993,746
1
0
null
2023-01-05T23:58:02
2019-05-28T09:06:30
HTML
UTF-8
Python
false
false
591
py
# -*- coding: utf-8 -*- # Imports the Google Cloud client library from google.cloud import translate from dotenv import load_dotenv load_dotenv() # import sys # import codecs # sys.stdout = codecs.getwriter('utf8')(sys.stdout) # Instantiates a client translate_client = translate.Client() # The text to translate tex...
[ "spidgorny@gmail.com" ]
spidgorny@gmail.com
fc521136d37bde83bf4b77d4966c06e6653d750b
3f6c16ea158a8fb4318b8f069156f1c8d5cff576
/.PyCharm2019.1/system/python_stubs/-1317042838/pandas/_libs/ops.py
a84d13f1d42b972f9af8b614b27048d38673cdb9
[]
no_license
sarthak-patidar/dotfiles
08494170d2c0fedc0bbe719cc7c60263ce6fd095
b62cd46f3491fd3f50c704f0255730af682d1f80
refs/heads/master
2020-06-28T23:42:17.236273
2019-10-01T13:56:27
2019-10-01T13:56:27
200,369,900
0
0
null
2019-08-03T12:56:33
2019-08-03T11:53:29
Shell
UTF-8
Python
false
false
2,829
py
# encoding: utf-8 # module pandas._libs.ops # from /var/www/newsbytes/CPP/venv/lib/python3.6/site-packages/pandas/_libs/ops.cpython-36m-x86_64-linux-gnu.so # by generator 1.147 # no doc # imports import builtins as __builtins__ # <module 'builtins' (built-in)> import operator as operator # /usr/lib/python3.6/operator....
[ "sarthakpatidar15@gmail.com" ]
sarthakpatidar15@gmail.com
51764b3f701d9df92c6b024d368596af088cbcc0
2f8e7319ddc96c9447b8977e9b5029bb7a342996
/compilertesttttt.py
17b853a120db6a9ed055d665c1bfafd3016d4e98
[]
no_license
zpicenow/squirrel_buggy
78bc8112c79ec145e6fbf15685167e37e456da5a
b94595976fc7aba6e28c2398f9096a6e3c83bf2f
refs/heads/master
2020-04-01T20:04:40.367733
2018-10-18T08:09:07
2018-10-18T08:09:07
153,587,155
0
0
null
null
null
null
UTF-8
Python
false
false
6,160
py
import copy # 输入输入序列w 和预测分析表M ,非终结符的集合N ,终结符的集合T 开始进行预测分析 def prediction_analyze(w, M, N, T): mat = "步骤{:<15}\t栈内容 {:<20}\t当前输入 {:<30}\t动作{:<30}\t描述 {:<20}" print(mat.format(" ", " ", " ", " ", " ", )) Stack = list() # 创建符号栈 Stack.append('#') # 压入结束表示符# Stack.append(N[0]) # 压入开始符,即非终结符的集合N的第一个元...
[ "zp2016@mail.dlut.edu.cn" ]
zp2016@mail.dlut.edu.cn
d6210360f1d53db09d35be26788f86a1171b4b62
e6febe9aa6c582c07c365a75dce5c2ff1d040b66
/event_website/urls.py
3c6b62429d65cba92e9f8d86221c42bf172a418e
[]
no_license
TinkerHub-GCEK/TinkerHub-GCEK-Event-Portal
9b3cf7f211180d381a32837b695954c75f947f4e
053d23c1e29d003f141db3317863d0c4a3405011
refs/heads/master
2023-07-17T06:51:58.429267
2021-08-31T13:46:11
2021-08-31T13:46:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,103
py
"""event_website URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
[ "aiswarya2saji@gmail.com" ]
aiswarya2saji@gmail.com
f5b9e9de541a11697be9f070250c2416341119c2
37f6d8d0ec694ddf6e14e926e8b53de35d0e85ee
/lib/session.py
b50fed3d369208e9833550045ca5bc2ed384e9f3
[ "BSD-3-Clause" ]
permissive
ddong8/ihasy
d2abece2ad69cb19977e1e62e445a8c830493048
52e04a56eb896709df7f9fc202238b88cac97b1e
refs/heads/master
2021-01-24T01:10:57.114379
2019-07-07T06:48:50
2019-07-07T06:48:50
98,000,150
2
2
BSD-3-Clause
2019-07-04T14:27:31
2017-07-22T02:03:35
Python
UTF-8
Python
false
false
3,850
py
#!/usr/bin/env python # coding=utf-8 # # Copyright 2017 ihasy.com # Do have a faith in what you're doing. # Make your life a story worth telling. ''' @author: Manuel Mejia ''' import pickle import hmac import uuid import hashlib import memcache class SessionData(dict): def __init__(self, session_id, hmac_key): ...
[ "donghaixing2010@hotmail.com" ]
donghaixing2010@hotmail.com
4fa93a2c63b3b36b637bb87b00f004a255c1b366
8560ef45ce8366f8accddcfe672eb1d75bed8475
/postag_and_none/gcnModel/My_model.py
76c6b3888cb33fa8b1847f85b9ddba5c8493aac2
[ "MIT" ]
permissive
taijizuomantou/aspect_level_sentiment
9c31cdf6e5fc464f3019c9c8455cd7eb69506d10
9f8a2f96153aa49db43296f23b12f18fc87ecb4f
refs/heads/main
2023-05-30T19:00:08.452088
2021-06-05T15:18:16
2021-06-05T15:18:16
374,141,876
0
0
null
null
null
null
UTF-8
Python
false
false
8,811
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Sep 29 14:12:37 2019 @author: xue """ import copy import json import math import six import torch import torch.nn as nn from torch.nn import CrossEntropyLoss from torch.nn.functional import softmax from transformers import BertTokenizer, BertModel, Bert...
[ "719222033@qq.com" ]
719222033@qq.com
6978a14d61f5e732c14d26d2b0b74e1205218b1e
20971847b3f7f2655c74986469688402e298365e
/w5/4.py
e2586424a3bed040ead58d35267f4a27d4cd3e8c
[]
no_license
pythonium/mipt_hw_py
da5c3046a4bebf732c3cb239b3fd8a95fdcbc756
884defc6698ea74dfb0b3e8c41cc9c05a5572e07
refs/heads/master
2023-06-04T03:44:31.600105
2020-12-21T12:31:32
2020-12-21T12:31:32
298,569,191
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
class Shape(): def __init__(self, height, length): self.height = height self.length = length def get_area(self): raise NotImplementedError() class Triangle(Shape): def get_area(self): area = (self.height * self.length)/2 return area class Rectangle(Shape): def get_area(self): area = self.height * s...
[ "artiukh.va@phystech.edu" ]
artiukh.va@phystech.edu
0bf7dd56ef9f8d3dc81a166b9e292152ff8911ac
2aba3c043ce4ef934adce0f65bd589268ec443c5
/AOJ/courses/ITP1/3_C.py
221621fc02dd16be341b7f831191bed733e02394
[]
no_license
kambehmw/algorithm_python
4f66593b77039d90515d1fcbecacdab8c811b92f
17222399dcc92fd8f908e5774a9883e2e89c486e
refs/heads/master
2020-06-02T12:44:11.322356
2020-05-18T13:22:05
2020-05-18T13:22:05
191,157,113
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
while True: x, y = map(int, input().split()) if x == 0 and y == 0: exit() else: if x < y: print(x, y) else: print(y, x)
[ "kanbe.hmw@gmail.com" ]
kanbe.hmw@gmail.com
d8adcfa0328f753994b60200ace6ca4d145e0f23
3d5bcd57b893c95bbcbfafe77bbc33c65432c9ed
/Algorithms/LeetCode/L0079exist.py
c6486ef5bca5b6781c64631e90da4eed40b18976
[]
no_license
arunachalamev/PythonProgramming
c160f34c7cb90e82cd0d4762ff9dcb4abadf9c1c
ea188aaa1b72511aeb769a2829055d0aae55e73e
refs/heads/master
2021-06-04T03:50:37.976293
2020-11-12T19:52:28
2020-11-12T19:52:28
97,364,002
3
0
null
null
null
null
UTF-8
Python
false
false
702
py
def exist(board, word): m,n = len(board), len(board[0]) def search(i,j,word): nonlocal m,n if len(word) == 0: return True if i<0 or i==m or j <0 or j==n or board[i][j] !=word[0]: return False board[i][j] = '#' for di,dj in [(0,1),(0,-1),(1,0),(-1...
[ "arunachalamev@gmail.com" ]
arunachalamev@gmail.com
1cc0adc5290897487fb3cebc76c77f1b77f1045f
21197acf6174f971129de1430a835078d1007fc3
/Maestro/venv/Scripts/easy_install-3.6-script.py
ea5f671fa14190a56ba5840de3db399aff53073b
[]
no_license
khrisnakamarga/roboticeyetracker
742056921a485185db1fc8d7b61979e294345614
0d629ed2de546ab87720a0e0bb39d4118d97af51
refs/heads/master
2020-04-20T09:17:10.890610
2019-06-13T01:05:42
2019-06-13T01:05:42
168,761,554
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
#!"C:\Users\Khrisna Adi Kamarga\PycharmProjects\Maestro\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub...
[ "khrisna@uw.edu" ]
khrisna@uw.edu
5e16b4a54f5d2c337a515df81ead29768326edb9
b8a1de0ce5bd93dd15c39b9391ebd37bb0b85acf
/Metodos_Numerico/met-elim-exemplo.py
7df28e1d97174fd3fc279f96e0ee2af221dc32d1
[]
no_license
brunolobell/calculo-numerico
69993428e936ae997a12652a2c42f3b28922d559
9ecffd551d4c43c2439127fb8bef42bfda4e08b4
refs/heads/master
2023-06-20T16:41:11.243225
2021-07-19T17:59:21
2021-07-19T17:59:21
298,431,653
0
0
null
null
null
null
UTF-8
Python
false
false
1,759
py
import numpy as np def gaussjac(A,B,p): # x => vetor solucao # k => n de iteracoes # a,b => matriz e vetor do sistema # p => precisao n = np.max(np.shape(A)) k = 0 x0 = np.zeros(n) alf = np.zeros(n) for i in range(n): x0[i] = 1 s = 0 for j in range(n): if j != i: ...
[ "brunolobell2@gmail.com" ]
brunolobell2@gmail.com
690be92bc4c100a3e5a2d7daa4f95f72525baeba
262e4b8eedca76db35f365ef6c0fb8bc66859d2c
/lab2/rectangle.py
e9e5b845fd3883e39f24cbce82cdc865bde22b24
[]
no_license
xgamez/lab-5-sem
601b0f694f5006a826bc8222f4be4b3010f32eec
aa08dfae3cf45ce82cc8e0ecd24208d33afd28cc
refs/heads/master
2023-02-22T05:31:32.616017
2021-01-28T13:39:46
2021-01-28T13:39:46
297,439,424
0
0
null
null
null
null
UTF-8
Python
false
false
1,437
py
from figure import Figure from figurecolor import FigureColor class Rectangle(Figure): """ Класс «Прямоугольник» наследуется от класса «Геометрическая фигура». """ FIGURE_TYPE = "Прямоугольник" @classmethod def get_figure_type(cls): return cls.FIGURE_TYPE def __init...
[ "noreply@github.com" ]
noreply@github.com
e1c7467f290a0ff997e0765bd20992139eacda23
9cf0e51720a58e648141cc7e1fd927a9c04a8a15
/data/utils.py
7c92a6ba99e9328956e7c382d3ce6e42b11a3da0
[ "MIT" ]
permissive
wubinzzu/NeuRec
8c7c0217f304b64b4673baeea12b0e610b664747
9e9391bfe45f65977b0b06dfb8f7feae5e760286
refs/heads/master
2023-08-23T14:56:18.663462
2021-11-26T07:41:48
2021-11-26T07:41:48
172,490,285
1,107
237
null
2023-03-24T22:42:26
2019-02-25T11:05:36
Python
UTF-8
Python
false
false
3,272
py
""" @author: Zhongchuan Sun """ import pandas as pd import math import hashlib import os def check_md5(file_name): if not os.path.isfile(file_name): raise FileNotFoundError("There is not file named '%s'!" % file_name) with open(file_name, "rb") as fin: bytes = fin.read() # read file as bytes ...
[ "iezcsun@gs.zzu.edu.cn" ]
iezcsun@gs.zzu.edu.cn
393141123c2bff2f5a54636ca0bcb17fcc5d2927
b3b8db13b83d7dcda1afd8640eeed2b9d3df9cdc
/transfer/dags/transfer.py
c4c688495cb0ff4b5add6ddcb3ed5fb276163c2d
[]
no_license
grokkerzz/airflow_job
eeffab67718b90467b09103dfbe8eea2a03cb6b2
9542daf16f1251dddad52357d4385e7804e66a29
refs/heads/master
2023-05-11T15:19:16.292091
2019-09-12T03:38:37
2019-09-12T03:38:37
207,725,132
0
0
null
2023-05-08T20:28:20
2019-09-11T04:45:51
Dockerfile
UTF-8
Python
false
false
861
py
from __future__ import print_function from datetime import datetime from datetime import timedelta import airflow from airflow.models import DAG from airflow.operators.bash_operator import BashOperator args = { 'owner': 'airflow', 'run_as_user': 'root', 'start_date': airflow.utils.dates.days_ago(2), } d...
[ "phuong.nguyen@dinovative.com" ]
phuong.nguyen@dinovative.com
62c9707a1856156262ef41e416de9dc8f0816af2
34febb6e20d0461862bc03d6d6d738335644b5c8
/tadhack/manage.py
5becd0dd4a44a06d2e638762384a28a6ab3573b9
[]
no_license
prosper1/verify-my-prescription
e9011592e11300c3d8fdddfa6223882640e705ce
55ff92133919186d05514faa5b2df8a71f78d4f9
refs/heads/main
2022-12-27T15:41:39.442310
2020-10-11T08:58:52
2020-10-11T08:58:52
302,725,638
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tadhack.settings') try: from django.core.management import execute_from_command_line except Impo...
[ "gundotshili@gmail.com" ]
gundotshili@gmail.com
a1e75d8649dc7b3cba5ad57ba9be33908ab46e99
b5e3b4b8e2c70e06e3b19bcd86789b83028da78f
/django_project/blog/migrations/0010_auto_20190620_2016.py
bba9cbb55a28a13c6ceef32ab6ddce4d10faf094
[]
no_license
feridbedelov/Django_Project_Blog_Aurora
334593d2d523f38e7c472b6e8439cd19f777ec6a
130f3db455590333c45d40c042722f5908e7bb32
refs/heads/master
2020-07-31T15:47:39.431799
2019-09-24T17:41:33
2019-09-24T17:41:33
210,662,296
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
# Generated by Django 2.2.1 on 2019-06-20 16:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0009_auto_20190620_2016'), ] operations = [ migrations.AlterField( model_name='post', name='rating', ...
[ "User@DESKTOP-K24KG53" ]
User@DESKTOP-K24KG53
c73a3c6348b392d2b4b0ff13896dd6ddb2cbc87b
3d7435ffae4cccde624deed9bd5edce7cd020284
/Python_Project/venv/user_input_file_ReadnWrt.py
78ab639472a5933a8f94bdd11b0e1a13b9e24e35
[]
no_license
Nidhibaghel88/test-teamcity
066559df727afc5e47277f996959fa11b7488393
78c69bf5a1391e3dc21b30855372e9290afd91a2
refs/heads/master
2020-04-08T04:23:00.492155
2018-11-25T19:12:55
2018-11-25T19:12:55
159,013,934
0
0
null
2018-11-25T18:16:43
2018-11-25T08:55:55
Python
UTF-8
Python
false
false
1,053
py
def file_overwrite(filename, n): with open(filename, 'r+') as f: content = f.read() print(content) while True: feedback = input("Type 'y' to overwrite the file or 'n' to exit: ") if feedback.lower() == 'y': # move the file pointer back to the start and...
[ "Nidhi.Baghel@shell.com" ]
Nidhi.Baghel@shell.com
8fe3e2ec9bb3eb665413698d3bb7206359767fd8
c9bc6a21768950ef010c52cc55c3e784af509e7a
/gview3.py
b5a59a0d40c82ed8b140bd14d46a4a016b6f6488
[]
no_license
aamirglb/PythonTest
f97b93f76f238dc507031cd1cfdbdba4dffd88ee
fec366ed88d627a60df8c4b376a4e9cced23433f
refs/heads/master
2020-05-07T18:30:36.196372
2019-11-05T04:23:29
2019-11-05T04:23:29
180,769,740
0
0
null
null
null
null
UTF-8
Python
false
false
2,754
py
from PySide2.QtWidgets import (QApplication, QGraphicsView, QGraphicsScene, QGraphicsItem, QGraphicsRectItem, QWidget, QGraphicsSimpleTextItem, QGraphicsEllipseItem, QGraphicsPolygonItem, QGraphicsItem, QMenu, QAction) from PySide2.QtGui import (QPen, QBrush, QPolygonF, QPainter, QFo...
[ "aamirglb@users.noreply.github.com" ]
aamirglb@users.noreply.github.com
5070fa0e732ec8a3253007ddb99b24015204161d
b8b8b36049217e4da9c3693beeeae74a0d97f875
/min-cost-climbing-stairs.py
394b7afd0ee41d0781ad03a6437a1237e043912a
[]
no_license
xichagui/algorithm
e9d94a8ac06c6b5d791ed540142fc22f83ef41f2
5d4114bc9d77f80da26374168ab289dfe22099f4
refs/heads/master
2021-06-20T03:20:55.637823
2021-01-13T17:57:05
2021-01-13T17:57:05
66,262,380
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
class Solution: def minCostClimbingStairs(self, cost: List[int]) -> int: for i in range(2, len(cost)): cost[i] += min(cost[i - 1], cost[i - 2]) return min(cost[-1], cost[-2])
[ "xichagui@gmail.com" ]
xichagui@gmail.com
395d19943263cbfba1bdb00171a56181ec34b3cb
ec6c7bb9b880b893b8a5676d62f3797e5e709968
/tests.py
c01f3164a4da5ae079379555335b5af943e57a99
[]
no_license
jeffmay/maize
a1e18dcf58bf9bd3d7639858e605865efa44ed41
7dd2a114a56085c556cb50542f844331ac1fa116
refs/heads/master
2021-01-23T11:49:24.229054
2012-06-15T12:09:41
2012-06-15T12:09:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,803
py
import unittest from vector import * class VectorTests(unittest.TestCase): def test_init(self): self.assertEqual(vector(), tuple()) self.assertEqual(vector(()), tuple()) self.assertEqual(vector([]), tuple()) self.assertEqual(vector((1,)), (1,)) self.assertEqual(vector([1]),...
[ "viralidealogue@gmail.com" ]
viralidealogue@gmail.com
cf8025a4a33af69722465da60102609dcbda82a2
73c7aceeccc9b4c095dd8e23d376b6449571ad56
/banaublog/asgi.py
4078b26f12e23f6382d805a9098c65c9185086b2
[]
no_license
scottstot154/Banau-blog
0efbbebae5ca7ddfbcba7d359ced17b5cad426bb
bcbe0e27dde4589699eacf6ec5fa81ca484f0e4b
refs/heads/main
2023-07-13T20:25:14.966037
2021-08-24T21:11:16
2021-08-24T21:11:16
399,599,899
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
""" ASGI config for banaublog project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefaul...
[ "noreply@github.com" ]
noreply@github.com
8af8b1154126237b12e676c20db0981a5f9e3d8e
8a14a7724d00f1eb7791e53f8446e99ecc975605
/scripts/extract_features.py
95649f83351e38ae3501cff705bf80339edd1315
[ "Apache-2.0" ]
permissive
aschn/picolo
3fa7b26d079fc9687de9c3e1e34cae774bcf8416
1f8f50e0709fdaef31bc38045ef9fd0c46aae2b5
refs/heads/master
2020-04-30T01:37:36.587287
2013-07-19T00:32:05
2013-07-19T00:32:05
9,307,233
1
0
null
null
null
null
UTF-8
Python
false
false
2,229
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @author Anna Schneider @version 0.1 @brief Typical script using picolo to extract features from point particles """ import picolo from shapes import shape_factory_from_values import argparse import os.path as path import time import csv # start timer start = time.tim...
[ "annarschneider@gmail.com" ]
annarschneider@gmail.com
1eadf13b44ed3ecced195ac1f6974c5866be1f8b
37efda4646f478b66674e384e1bc139e7874d972
/practice/RaodtoMillionaire.py
7677b54444573abaec9ffa4c8c2fa22f69a24b2b
[]
no_license
siberian122/kyoupuro
02c1c40f7c09ff0c07a1d50b727f860ad269d8b1
8bf5e5b354d82f44f54c80f1fc014c9519de3ca4
refs/heads/master
2023-04-04T02:45:29.445107
2021-04-20T07:37:47
2021-04-20T07:37:47
299,248,378
1
0
null
null
null
null
UTF-8
Python
false
false
380
py
n = int(input()) a = list(map(int, input().split())) b = [] for i in range(n-1): num = a[i]-a[i+1] b.append(num) now = 1000 stock = 0 for i in range(n-1): if b[i] > 0: # 売る now += stock*a[i] stock = 0 elif now > 0 and b[i] < 0: # 買う stock += now//a[i] now = now % a[i] ...
[ "siberian1000@gmail.com" ]
siberian1000@gmail.com
d4a6b27bf60dc1ceb584a5edc8a74f007225d63e
6bac66f8ac3d41364a4400c038249cfbf7a1475f
/Code/model_mobilenetv2_unet.py
c94142b86d6b49134b4d7de9f04297d2cfe81f0b
[]
no_license
Tejaswi-dev/Image_Colorization
05aeb846ab15d3785437d1c69108890d06c73324
3721b29a3e39023634a3dcc6eaf2aae7df4b2913
refs/heads/master
2022-05-24T13:30:58.408217
2020-04-28T15:43:40
2020-04-28T15:43:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,330
py
# %% --------------------------------------- Imports ------------------------------------------------------------------- import numpy as np import tensorflow as tf import matplotlib.pyplot as plt from tensorflow.keras.layers import * from tensorflow.keras.models import Model from tensorflow.keras.applications.vgg16 imp...
[ "kanchan.ghimire92@gmail.com" ]
kanchan.ghimire92@gmail.com
195fc4a1ecc35a5591a35a938af3d1b72bb25692
a8597579e18b54d2a98c89c10326d3287c2a4603
/connect_scratch_hosts.py
85009d6764ca93cb1464f89db63b43e83db7c01c
[]
no_license
dsmithintx/vmware_host_info
3744a7fef17b6f4093351b169eb82cc3f56343e0
0a0c0704d7ecd79074515e2280b156a75f84ebab
refs/heads/main
2023-03-03T23:05:19.526021
2021-02-12T17:22:36
2021-02-12T17:22:36
338,383,084
0
0
null
null
null
null
UTF-8
Python
false
false
5,177
py
from pyVim.connect import SmartConnect, Disconnect, GetSi, SmartConnectNoSSL from pyVmomi import vmodl from pyVmomi import vim import atexit import requests import ssl # Disabling urllib3 ssl warnings requests.packages.urllib3.disable_warnings() # Disabling SSL certificate verification context = ssl.SSLContext(ssl.PRO...
[ "donnal.smithtx@gmail.com" ]
donnal.smithtx@gmail.com