blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
0658cdb9df7ad9894b043a3162d3bd0fea85b65c
af02580ed804adf3fa2e7aa6c43e6c7824a0728d
/images/models.py
1a9b2ce4056f25302ac86e2956a26f2d7cc5f161
[ "MIT" ]
permissive
cebanauskes/ida_images
21ff44b060b61ef7f9f8cfc22cf0a0e558c8bb78
708eb44274b28d53f9b0422fbf3711d85ac62a6b
refs/heads/main
2023-01-14T01:11:57.447714
2020-11-27T23:10:20
2020-11-27T23:10:20
315,969,337
0
0
null
null
null
null
UTF-8
Python
false
false
1,643
py
import os from urllib.request import urlretrieve from django.db import models from django.core.files import File class Image(models.Model): """Модель Изображения pub_date - поле с датой публикации изображения url - поле с ссылкой на изображение, если оно загружено со стороннего ресурса image - пол...
[ "59064380+cebanauskes@users.noreply.github.com" ]
59064380+cebanauskes@users.noreply.github.com
cbe5d3872549045d5d0718a4c80a68b2ced43f9d
21073349f83e9bda0885266fe52d39a7c6cf77a5
/django_project/orm_app/migrations/0004_customer_staff.py
ab75a7fd3890854db7c6367df563be063c0421b3
[]
no_license
emailanuj/djangoorm
3cb449e27dec4c13c8508963d9dca9d89ff3bc3c
dc0a31e32d348e2f4aa62d6af8fdf56b15ab4413
refs/heads/master
2020-11-29T13:47:03.139010
2019-12-28T06:47:48
2019-12-28T06:47:48
230,127,502
0
0
null
null
null
null
UTF-8
Python
false
false
1,302
py
# Generated by Django 3.0.1 on 2019-12-28 06:16 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('orm_app', '0003_place_restaurant'), ] operations = [ migrations.CreateModel( name='Customer', fields=[ ...
[ "emai.anujdubey@gmail.com" ]
emai.anujdubey@gmail.com
4ea954074ac2e607d29a3df8f6064e44146760cf
4c0ec9b975ff000925cf2a3dcfc43af6b931c776
/b-04.py
f49af3736f5bdbf97602ac69ee7f80715e4dac43
[]
no_license
Khan7515/bxi
2820bd2dd100ed5ef1550e8c0610f3ffee223907
9aa511bf0ef489c8b0cf4d1f611339c19cbc3116
refs/heads/main
2023-06-04T06:59:23.764472
2021-06-17T17:04:14
2021-06-17T17:04:14
377,904,466
0
0
null
null
null
null
UTF-8
Python
false
false
5,779
py
try: import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,getpass,mechanize,requests,bxin from multiprocessing.pool import ThreadPool from requests.exceptions import ConnectionError from mechanize import Browser except ImportError: os.system('pip2 install requests') os.s...
[ "noreply@github.com" ]
Khan7515.noreply@github.com
ce1fab1c2303d98b771e668227221953bd6650ac
bcb95640346ab9e722ebb6008b7e11ae0ff831ee
/funktio.py
8c03e597b07b3c95e5478d06be52c9b3146e791d
[]
no_license
kukka1/testi
86a27a825d5848a56dee8c03adcfceae959c5e20
6b13a02b285d7e89a49a5e880268146aaf5640b4
refs/heads/master
2020-05-31T23:41:44.861341
2019-06-06T10:05:12
2019-06-06T10:05:12
190,543,544
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
def tulosta(nimi, kertaa): for i in range(kertaa): print("Terve", nimi) def main(): nimi = input ("Kerro nimesi.\n") lkm = int(input("Kuinka mnta kertaa haluat tervehdittävän?\n")) tulosta(nimi, lkm) main()
[ "iiris.kahkonen@live.com" ]
iiris.kahkonen@live.com
3dbaf3cbe0b7ca4a0889f2682e75b01144eeb6c9
656e6803b7021f61f6d3bbb964a9bfb98370468f
/simmani/plot_power.py
6b22e9b02d9957faa8b9c1dad3b26c32e57de9a8
[ "LicenseRef-scancode-bsd-3-clause-jtag" ]
permissive
Simmani/simmani
c3b6a8e5c3c910e89a87e323aa7fc912cf7ae956
9a0e973e7e2d501ae5582230b0a53d799c5c8e89
refs/heads/master
2020-07-03T06:13:29.575437
2019-08-14T18:12:36
2019-08-14T18:12:36
201,815,465
3
2
NOASSERTION
2019-08-14T18:12:37
2019-08-11T21:12:43
Scala
UTF-8
Python
false
false
5,071
py
#!/usr/bin/env python3 # See LICENSE for license details. import os import sys import csv import argparse import logging from operator import add from functools import reduce import numpy as np from utils import read_modules from utils.power import read_power_files from utils.data import plot_power, dump_power_bars f...
[ "dgkim@eecs.berkeley.edu" ]
dgkim@eecs.berkeley.edu
00ac2bef654a1567d267b28bb7b94e679c0a4985
70981f184c7d75b63433cd74dd2bea3133d874e5
/DAGN/graph_building_blocks/argument_set_punctuation_v4.py
3a6746073e29f2ec733333c5c211113ef4cd02f9
[]
no_license
yezhuoyang/LogicalReasoning
54b3dd7d2241b9c2b0a2deacd440b5d435281e9a
ca3d0d3e209c1f254cdc5a913bd323df97720767
refs/heads/main
2023-05-06T08:29:16.690874
2021-05-31T14:35:21
2021-05-31T14:35:21
359,349,082
0
0
null
null
null
null
UTF-8
Python
false
false
1,843
py
''' Argument word set version 4.0. Date: 25/10/2020 Author: Yinya Huang. ''' ''' * Argument word set is extracted from PDTB 2.0, relation = "Explicit". - In this version, try assigning all argument words with pattern=4, i.e., return (h, r, t) & (t, r, h). - Further considering relation patterns as in v2 & v1 ...
[ "737475845@qq.com" ]
737475845@qq.com
214a859ace1929b728acc1ce7267d8d834998cd4
1674696229f01d910ab3294827e1ac5001300bef
/KaryArthin/Resume Processing/ocr_core.py
9334a6a50909e316a91c1eafa5c0de71d3833536
[]
no_license
MishilDobariya/Project
0d63d48874d01eb2f60285090a9224f5ebeeff78
af12855093b28dfefb3d4948b500c5508fc20f58
refs/heads/master
2022-12-04T20:31:07.751492
2020-01-15T15:40:58
2020-01-15T15:40:58
181,636,146
0
0
null
2022-11-22T04:00:39
2019-04-16T07:19:07
PHP
UTF-8
Python
false
false
584
py
try: from PIL import Image except ImportError: import Image import pytesseract def ocr_core(filename): """ This function will handle the core OCR processing of images. """ pytesseract.pytesseract.tesseract_cmd = r'E:\Project\KaryArthin\tesseract\tesseract.exe' text = pytesseract.image...
[ "mishilpatel647445@gmail.com" ]
mishilpatel647445@gmail.com
3c03da43f275ccab941bacf52aedefdd8887f55c
ad688a6afe0a083335605542c85a20b9ccd27dd1
/Algorithms/1.py
22ae75506f89f07eb8f9ea20f0685beaa8a1caac
[]
no_license
FelixSeptem/Practice
76a6b8322b61fbe38af63a3f7cf5b039c4458a47
cb7f792a25269d9d1ea3c2c55b6a64880977f4d8
refs/heads/master
2021-06-02T21:57:01.106997
2020-12-27T12:29:15
2020-12-27T12:29:15
114,646,202
0
0
null
null
null
null
UTF-8
Python
false
false
2,809
py
# -*- coding:utf-8 -*- # 二叉搜索树基本数据结构 class Node(object): def __init__(self, key, left=None, right=None, parent=None): self.key = key self.left = left self.right = right self.parent = parent # 节点插入树 def tree_insert(tree, node): if not tree.root: return node pivot =...
[ "whenhow94@qq.com" ]
whenhow94@qq.com
65f5d2a5f15722582ddbc314d4a85e0b2b534645
99ea33e3b36d3da52d3817c28fd60696e4d36c91
/config/settings.py
e7d355059e8274925475bf1ab8ef560a7afa450e
[]
no_license
ghostnoop/WhatToWatch-ml-telegram
2628c97a62f24ac149f540386d0d14a2091d97d9
da7bb1386dab789641d9245544e89cf5d983fb50
refs/heads/main
2023-03-09T07:15:15.707105
2021-02-22T19:00:13
2021-02-22T19:00:13
341,305,969
0
1
null
null
null
null
UTF-8
Python
false
false
190
py
import tmdbsimple as tmdb class BotSettings: API_TOKEN = "1083477387:AAHtlo1ngC61ZFA8rVadPut15CUjX92h79U" ADMIN_ID = 153621836 tmdb.API_KEY = 'ad11be6ccbdb27f9a1f4530c5848891f'
[ "giliyazovmarat@gmail.com" ]
giliyazovmarat@gmail.com
ed4170fd87c23a603adf961d9030d73d0b004cf1
2b1448085c5ad44e78772dde1dcc2fae9cc4c3cc
/botorch/sampling/__init__.py
d27b244ea432efe02fe8a14dadd028d62b99e381
[ "MIT" ]
permissive
leelasd/botorch
47fa0ff9c5f6c534ecfcba59f5b1bf52eea0d62e
c48bfc822940ee8a6e5e2604d4ff282033dbe892
refs/heads/master
2022-12-17T04:42:41.591444
2020-09-10T23:45:05
2020-09-10T23:46:41
294,561,185
1
0
MIT
2020-09-11T01:19:36
2020-09-11T01:19:35
null
UTF-8
Python
false
false
806
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from botorch.sampling.pairwise_samplers import ( PairwiseIIDNormalSampler, PairwiseMCSampler, PairwiseSobol...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
11b0be743b5a1d4f03a74ea09c5556a4e098460e
2e297998afdb170544d56952a077ad193299ecc9
/setup.py
22ac06f75f586d0817357d18ea8c30bb4ce95b1c
[ "BSD-3-Clause" ]
permissive
aleszoulek/ariadne-extensions
e052aa9e0a62ff7595099f7ff91a82b06e9e3510
e5984b78b7e47b7279fe7936d77f679ffcf5e962
refs/heads/master
2020-07-09T14:32:22.441541
2019-09-16T10:32:46
2019-09-16T10:32:46
203,996,734
8
2
BSD-3-Clause
2019-09-16T11:04:17
2019-08-23T12:44:37
Python
UTF-8
Python
false
false
1,328
py
#!/usr/bin/env python from os import path from setuptools import setup with open( path.join(path.abspath(path.dirname(__file__)), "README.md"), encoding="utf-8" ) as f: LONG_DESCRIPTION = f.read() TEST_DEPENDECIES = [ "pytest-cov", "pytest", "pylint", "pytest-runner", "black", "cove...
[ "ales.zoulek@gmail.com" ]
ales.zoulek@gmail.com
de5c043ca0ce34022188f26c1b320d9f78cdf0e3
2baf8338f7f7add971fb21db1259c3db364858de
/cat_api/categories/urls.py
ad395dfacae0030b43cc4cdae54758bd2472a608
[]
no_license
Kristiyan-Ivanov/CategoriesProject
e6b3aa5f82c1da77e16457ae7f25338095a28afc
e6a70d07c12452ea47c4f73221bae6463e4073c3
refs/heads/master
2023-05-11T20:43:42.841316
2021-05-20T12:18:07
2021-05-20T12:18:07
369,187,767
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
from django.urls import path from .views import * app_name = 'categories' urlpatterns = [ path('category/', CategoryAPIView.as_view()), path('category/<int:id>/', SingleCategoryAPIView.as_view()), path('category/level/<int:level>/', request_by_level_view), path('category/parent/<int:parent_id>/', requ...
[ "kristiqn92@gmail.com" ]
kristiqn92@gmail.com
eaaddbcaaf1d9b3d4e98d9976974addcdcfe455b
eefbc723d9f354adf96cb85ff1639dc5f7799086
/Configuration/python/samples/SingleMu_Run2012DJan22ReReco_cff.py
84063a2647317efbf31e896e50c1faea645b5dfa
[]
no_license
kovalch/TopAnalysis
e4bb2c80be61734c56c124522ecf1719a801bf19
b7c9bb5268e0680cfbe1e0366e1811466e7846a4
HEAD
2016-09-05T10:15:16.810334
2015-07-23T13:27:19
2015-07-23T13:27:19
39,569,489
0
0
null
null
null
null
UTF-8
Python
false
false
795,488
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ '/store/data/Run2012D/Sin...
[ "" ]
4f000411d5b8f011207e2770f47814c6d1f1715a
e809e138763425346f6c24e83c6a1e9ca3e077c8
/print_len.py
6038c42230e6a02e7533c83ae36ecd326fb733b1
[ "MIT" ]
permissive
tuanad121/postfilt_gan
3ed61fc2c8eb9ca2bcbf5beb56091fa8c7cbcf58
7efefc45d6b6cc6e099afb94bf0c40e4e7924ef2
refs/heads/master
2020-06-09T07:51:00.235287
2019-09-29T13:33:25
2019-09-29T13:33:25
193,404,810
0
0
MIT
2019-06-23T23:22:35
2019-06-23T23:22:35
null
UTF-8
Python
false
false
690
py
import numpy as np import matplotlib.pyplot as plt with open('gen_files.list', 'r') as fid: y_files_list = [l.strip() for l in fid.readlines()] # reads the binary file and return the data in ascii format def _read_binary_file(fname, dim): with open(fname, 'rb') as fid: data = np.fromfile(fid, dtype=np...
[ "tdinh@sensory.com" ]
tdinh@sensory.com
7a5761ad2dbacf9a3e404ad36fb453313a324533
f1e2b8a26d333f4e0c4fac88ce4462526f129d00
/config/comments/models.py
518ca42f512b335bf3678250b1bbbc068accc980
[ "MIT" ]
permissive
Gregory124124/ignatovich-main
5cc17aeb503593adfdf6ce33f63fb8c09ed069f5
f9bc93a40ae954eaf785880e0aae133561d4e1cd
refs/heads/master
2023-06-07T05:10:10.482881
2021-06-27T17:17:05
2021-06-27T17:17:05
380,772,760
0
0
null
null
null
null
UTF-8
Python
false
false
2,345
py
from django.db import models from django.conf import settings from news.models import New from places.models import Place class Comment(models.Model): user = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=models.CASCADE, verbose_name= "Пользователь" ) text = models.TextFie...
[ "oleg.ignatovich.02@gmail.com" ]
oleg.ignatovich.02@gmail.com
94f4dce383f8515eb0251901033becec7314606b
42e563b506d91b03e6e2543cc7963b4285a5e5c6
/src/sumit_gps_nav/src/move_base_client.py
79b54b105ff525ba882453dad94d82bb19725811
[]
no_license
Oreoluwa-Se/Ros-Autonomous-Vehicle
a6e49424908627b63851cd6cc3265863e59725cd
f4997f1df3face6d59ccbd5ced231a69d70eeaef
refs/heads/main
2023-03-17T13:36:51.537707
2021-03-01T00:53:38
2021-03-01T00:53:38
336,306,973
0
0
null
null
null
null
UTF-8
Python
false
false
3,046
py
#! /usr/bin/env python # import necessary packages from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal, MoveBaseFeedback, MoveBaseResult import tf.transformations import euler_from_quaternion, quartenion_from_euler from helpers.gps_node_init import GpsNode import actionlib import rospy import time class MoveB...
[ "67057368+Oreoluwa-Se@users.noreply.github.com" ]
67057368+Oreoluwa-Se@users.noreply.github.com
ded510a0404da04abd4887915c93695c805948f8
0b0b6ceb17a3db0685c3115c8233719abff43542
/Backend/Accounts/models.py
8165ac93f328c14f1ca4bae47e10c41b829323de
[]
no_license
carnadaxxx/rossini
3dc662c374d6569077f2a97e38337903bcd44da4
908990f0b195f3fbd7cda9a654eba2cd47b1002c
refs/heads/master
2023-02-11T04:29:18.176762
2020-07-15T03:57:10
2020-07-15T03:57:10
271,823,521
0
0
null
2021-01-06T06:28:58
2020-06-12T14:55:08
JavaScript
UTF-8
Python
false
false
1,248
py
from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin, BaseUserManager class UserAccountManager(BaseUserManager): def create_user(self, email, name, password=None): if not email: raise ValueError('Tienes que pasar un correo') email = se...
[ "w.coronadobarrantes@gmail.com" ]
w.coronadobarrantes@gmail.com
848d23e07592cfe4040387c72c3e47a6a7b13665
ec6158442fe1e91ed25a657f4e3081bd98e8f853
/taipei/2dcnn_multi_gpu/parameter_saver.py
c77ec8451dbf1d7c1581016cea82f0fcb7833a88
[]
no_license
chychen/traffic_flow_prediction
23a28ce31672932e2c32b5b4dede9fabacc06d7b
3458ebc6721396e93b5a3d665bfbddc2277032f4
refs/heads/master
2021-01-22T06:02:22.398463
2017-09-02T06:39:17
2017-09-02T06:39:17
92,516,535
0
1
null
null
null
null
UTF-8
Python
false
false
3,350
py
from datetime import datetime import json import time class Parameter_saver(object): def __init__(self, algorithm_name): """ Param: algorithm_name: the algorithm name """ self.config = {} self.file_name = "training_config.json" try: with open(...
[ "rc840327@gmail.com" ]
rc840327@gmail.com
9c078bf9651466ce386d28f9fcbf19bebd8c80e7
130ba4be8126f88741a2cec10149d36e791af319
/sell/urls.py
7abf49d006f0b84ff87f7854fafd9e37c08ba8c9
[]
no_license
ElcommanDo/selling_Ecommerce
b3c4482d46920f35132048dd9958e5bd8be49aa9
044a6c24777f73ba9d7135774e14b6329f425675
refs/heads/master
2020-09-06T14:14:41.669083
2019-11-08T11:00:19
2019-11-08T11:00:19
220,447,683
0
0
null
null
null
null
UTF-8
Python
false
false
200
py
from django.urls import path from . import views urlpatterns = [ path('',views.home,name='home'), path('product_details/<int:id>/<slug:slug>/',views.product_details,name="product_details"), ]
[ "abdelrhman2350342@gmail.com" ]
abdelrhman2350342@gmail.com
fe0c8f30c7547585dde2ea102278ed328c6870f2
31f23db9bbe043da1356ebca3df78ee375e679ab
/venv/bin/gunicorn
f998d72d526fce2b658db0d3458a9b9d7a5a4a49
[]
no_license
natelua/flask-task-list
be3c5dc520b73690cc1861ad9f3ee66f199b2c14
8ddc145d5109d1245a28989b35752eeffd9ce41c
refs/heads/main
2023-08-19T06:45:56.003166
2021-10-21T04:01:51
2021-10-21T04:01:51
419,574,816
0
0
null
null
null
null
UTF-8
Python
false
false
260
#!/Users/nastynate/Desktop/FlaskIntroduction/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from gunicorn.app.wsgiapp import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "nathan.lua@student.dominican.edu" ]
nathan.lua@student.dominican.edu
d6f1d598b07bc79c6349c1d90d61de4a298d1ce5
757d4ab79eec4f0a33589f8102e8eae17a85d991
/03-types/dictionary.py
459958a9f4f69f1730aacba60bc52955b931d947
[]
no_license
FilipOstarek/python-prvni-pokus
906e2769a0e2b9734024806ffc03c1dce26a0a33
8402883e9b278f30987f85757bd63600facd7693
refs/heads/main
2023-01-23T15:59:05.658088
2020-11-01T17:14:13
2020-11-01T17:14:13
302,751,190
0
0
null
2020-10-22T07:28:22
2020-10-09T20:53:25
Python
UTF-8
Python
false
false
5,258
py
''' Slovníky (dictionaries) podobně jako seznamy v sobě obsahují další hodnoty. Na rozdíl od seznamů, ve kterých jsou všechny prvky uspořádané do jedné sekvence, ve slovnících máme dva druhy prvků: klíč (angl. key) a hodnotu (angl. value). Každému klíči je přiřazena jedna hodnota. ''' # Sbírka, která je neuspořádaná, ...
[ "noreply@github.com" ]
FilipOstarek.noreply@github.com
48ad208b933291b0d96a1e81717ca45a5afc84d7
d01cd4a8340023b67020966e4bb535dd6878ad8c
/model_helper.py
13213f073a78be66429d538f9cd7cf960a73a6cc
[ "Apache-2.0" ]
permissive
StuvX/SegCaps
7b977983c5c50771b7ef95ff0a12a473c8fddf7d
665280d88244def0969ae2df76d02bda2cadd740
refs/heads/master
2021-06-13T09:38:50.253186
2021-03-05T19:45:39
2021-03-05T19:45:39
144,918,818
0
0
Apache-2.0
2018-08-16T01:02:28
2018-08-16T01:02:28
null
UTF-8
Python
false
false
2,390
py
''' Capsules for Object Segmentation (SegCaps) Original Paper by Rodney LaLonde and Ulas Bagci (https://arxiv.org/abs/1804.04241) Code written by: Rodney LaLonde If you use significant portions of this code or the ideas from our paper, please cite it :) If you have any questions, please email me at lalonde@knights.ucf....
[ "lalonde@knights.ucf.edu" ]
lalonde@knights.ucf.edu
884dd2e27584897fc76bd41c4be519872d0ebcf0
07a42b46fe9f154c32c1cfe4e7ef878d5c653ae7
/simple_skeleton/urls.py
9d3acfd8f816549f4662656cda55eb48a7def3ea
[ "MIT" ]
permissive
Mamacitapunto/simple-django-skeleton
0d2fe60616a2df7829f1fdf05b57754f464d6e9f
0babb4aa6bfcf6b9a803caed3a4167cbf4d9113f
refs/heads/master
2021-01-19T04:25:03.444748
2015-11-30T20:16:02
2015-11-30T20:16:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
246
py
from django.conf.urls import include, url from django.contrib import admin from simple_skeleton.apps.core import views as core_views urlpatterns = [ url(r'^$', core_views.home, name='home'), url(r'^admin/', include(admin.site.urls)), ]
[ "vitorfs@gmail.com" ]
vitorfs@gmail.com
ec82dc01589d8985a3208171ff0d9543579b8164
e8f5bd76ddc529ee2a77832dbe980432c1c802b0
/pandasteste.py
7d1c2f7924a79b6b21d2edd8893d3a79f476c0c0
[]
no_license
Danilocarvalhoesilva/ProjetosPython
2b46a7b77dd42fd94192944a6b72d0ef49bf2690
ab89b97eca1fbe79f8aaa1668db11e8ab685fcbd
refs/heads/master
2023-04-07T08:05:43.718489
2021-01-20T16:40:05
2021-01-20T16:40:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
import xlwings as xw import pandas as pd #create DF months = ['2017-01','2017-02','2017-03','2017-04','2017-05','2017-06','2017-07','2017-08','2017-09','2017-10','2017-11','2017-12'] value1 = [x * 5+5 for x in range(len(months))] df = pd.DataFrame(value1, index = months, columns = ['value1']) df['value2'] = df['value1...
[ "dnlcesilva@gmail.com" ]
dnlcesilva@gmail.com
495c3339e525048d7e4fecb56fcb216de5efa66e
04a41e7cfa6649207fb8604beddb12bd62504e82
/pyneqsys/_release.py
58465b0ac391125887ef0a40448b51b55e36a85b
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
hfsf/pyneqsys
1e4fccea6035755bdbd6adc407231081e27d6661
b88283cbdc6e5561d002ea5c73ac91583ae89d37
refs/heads/master
2020-11-27T14:19:18.343143
2019-10-06T23:15:02
2019-10-06T23:15:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
31
py
__version__ = '0.6.0.dev0+git'
[ "noreply@github.com" ]
hfsf.noreply@github.com
d1656bedc33f2f5392ed17fa21696e1bf466a5ad
d400a4c29aca4aa5c9ff9755e2a05b146678d091
/awareme/awaremeapp/migrations/0010_auto_20210404_2119.py
7ff3722126c60ebde2a0514cd02bfc1e6ff7e9cb
[]
no_license
govindnarayan-singh/awaremeProject
793cbb23bd5e83202210c66bc8d1663b93f589f0
bd04da534a4707db552fc39ec799b254630f02c2
refs/heads/master
2023-05-31T12:58:22.637384
2021-05-30T17:01:37
2021-05-30T17:01:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
# Generated by Django 3.1.7 on 2021-04-04 15:49 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('awaremeapp', '0009_orgmo...
[ "govindnarayansingh0@gmail.com" ]
govindnarayansingh0@gmail.com
16b909650185c0329d17cd86879985013971dbb4
9b045f8cc890145688f6f52c809037fcdf47ef19
/jump7.py
1f0d68e3156381fd1473ceb3f3aa33d4ea06cae5
[]
no_license
lcd357287797/shiyanlou-code
a858c1a5dc0ae75fb24631ff07a086a76942fba0
0f0e56ac6c10c17b7536cc413c8661b09b749f67
refs/heads/master
2021-03-11T03:00:45.077397
2020-03-11T07:42:11
2020-03-11T07:42:11
246,505,216
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
for i in range(1, 101): if i % 7 == 0 or i % 10 == 7 or i // 10 == 7: pass else: print(i)
[ "357287797@qq.com" ]
357287797@qq.com
a2ee311a89ba2707ee698231f23467a1c77c06ad
a2d18524f89a013a29e582d1336569725d728a7f
/08字符串/xc_04_字符串查找和替换.py
9e76a8f0097bda684b734099d929721dd8e238d4
[]
no_license
shuoshuren/PythonPrimary
c70db04a68cdb0c88eeda03c3d8bc614a1eee8e4
4de6e81638e7b81c930b0d0b9b73b6d8acd7d32d
refs/heads/master
2020-03-11T20:26:43.410161
2018-04-19T15:34:09
2018-04-19T15:34:09
130,236,453
1
1
null
null
null
null
UTF-8
Python
false
false
529
py
url = "http://www.baidu.com/1.jpg" # 1.判断是否以指定字符串开始 print(url.startswith("http")) # 2.判断是否以指定字符串结束 print(url.endswith("jpg")) # 3.查找指定字符串,如果找不到则返回-1 print(url.find("www")) # index同样可以查找指定字符串在大字符串中的位置,如果不存在则报错 print(url.find("abc")) # 4.替换字符串,replace会返回一个新的字符串,不会修改原有的字符串内容 new_url = url.replace("baidu","qq") print(ur...
[ "534361124@qq.com" ]
534361124@qq.com
0625a78f4a12c1de8ae447c1513fab99cca484c9
cad04bb71f3afd50c4df3b2f321cd378d3ad8cb9
/Course practices/小甲鱼课程:小甲鱼—《零基础入门学习Python》/游戏:飞机大战/enemy.py
84e15e33cfd78dcd4b820093ee1120928d774656
[]
no_license
SourDumplings/CodeSolutions
9033de38005b1d90488e64ccbb99f91c7e7b71ec
5f9eca3fe5701a8fca234343fde31cfcba94cf27
refs/heads/master
2023-08-16T17:23:34.977471
2023-08-07T13:14:47
2023-08-07T13:14:47
110,331,879
10
8
null
2023-06-14T22:25:16
2017-11-11T08:59:11
C
UTF-8
Python
false
false
4,677
py
# encoding: utf-8 """ @author: 酸饺子 @contact: changzheng300@foxmail.com @license: Apache Licence @file: enemy.py @time: 2017/8/11 16:35 敌机 """ import pygame from random import * class SmallEnemy(pygame.sprite.Sprite): def __init__(self, bg_size): pygame.sprite.Sprite.__init__(self) self.image = ...
[ "changzheng300@foxmail.com" ]
changzheng300@foxmail.com
b047ddfdde85de80c4dc641dbcb320bd71c685b0
e59edbbbcdd0e7bcdd4fabaa7fae906218028434
/base/list.py
b10409958ead7e046587d4c19d7b2f4e82711cdc
[]
no_license
relax-space/python-ccc
e043adf70dc99066ae280e3b29abe93e32617188
b4b99559e10c2713a6b89ba029500bd5dcec4382
refs/heads/master
2021-05-27T08:14:44.193104
2020-04-30T01:29:37
2020-04-30T01:29:37
254,241,900
0
0
null
null
null
null
UTF-8
Python
false
false
716
py
# 列表内的项目不必全是相同的类型 a = ['jam', 10, True] print(a) print(a[0]) print(a[:2]) print(a[-2:]) print(a + ['mary', 100]) print(['hi']*3) # 列表可以改变其中的元素 cubes = [1, 3, 5, 7, 9] print(cubes, len(cubes)) cubes[0] = 0 print(cubes) cubes.append(11) print(cubes) cubes.append(2**5) print(cubes) del cubes[0] cubes[1:3] = [6, 10] print...
[ "cheng.cuicui@eland.co.kr" ]
cheng.cuicui@eland.co.kr
2a959f49d9c5b0dca5a9e8ec081b07b7c241d8bd
e0b95ce229b86c1cade4a6b09cae4c1a2b85a081
/lesson2/task6.py
3d220b593cea63011ba496941b9e1227567b8b46
[]
no_license
DenisYavetsky/PythonBasic
02defcef0c59809b8855457a7aec60619c806286
3d0de9cc0e0cf3fe5fb275baea0dc4289fa0f0d0
refs/heads/master
2023-04-01T20:02:42.455489
2021-04-09T12:48:43
2021-04-09T12:48:43
315,695,961
0
0
null
null
null
null
UTF-8
Python
false
false
2,621
py
# Реализовать структуру данных «Товары». Она должна представлять собой список кортежей. Каждый кортеж хранит # информацию об отдельном товаре. В кортеже должно быть два элемента — номер товара и словарь с параметрами # (характеристиками товара: название, цена, количество, единица измерения). Структуру нужно сформироват...
[ "47447276+DenisYavetsky@users.noreply.github.com" ]
47447276+DenisYavetsky@users.noreply.github.com
ee00b246a6031218d358b7f273d97ec9c225482f
d7c60a50a3a366ae9ae59c0092d84c914572b1ff
/fracPlot.py
69fb7feda8a4d091594717897139e9839e0a2e4b
[]
no_license
CompMechPitt/Up-Frac
43132145c666ac24967f8e5612401fc2fafd7aec
c480a1a8dce0a77a4abd09d6bccdda25a50e1129
refs/heads/master
2021-05-31T08:52:11.018946
2016-03-20T21:51:35
2016-03-20T21:51:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,488
py
import os import numpy as np import math import sys import matplotlib import pickle import Common import matplotlib.pyplot as plt import matplotlib.animation as animation from matplotlib import colorbar, patches from scipy.ndimage.filters import gaussian_filter from collections import OrderedDict from DataSet import D...
[ "yetisir@gmail.com" ]
yetisir@gmail.com
ffba9e58a21771b8d955104a99f695b04bc7d3de
b4939f3818a22d2b3ebed0df3540eb97eefd4736
/keyme/keyme_gui.py
c7257397aa7df5e882173a2bcd0a5124499a11d4
[]
no_license
mutenroshi2/project_ideas_custom_software
261118eec4c1011a251b0e4e148e5ad66f51dac2
210bc2a5c097eded26bf92f01ecdffba9f5d5f9d
refs/heads/master
2022-03-09T06:06:54.243473
2017-11-18T17:46:34
2017-11-18T17:46:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
154,063
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'keyme.ui' # # Created: Sat Oct 21 21:43:10 2017 # by: pyside-uic 0.2.15 running on PySide 1.2.4 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, QtGui class Ui_MainWindow(object): def setupUi(sel...
[ "raghavendramg2@gmail.com" ]
raghavendramg2@gmail.com
79a668e13c0898c33c2b45798842c79f23a198d4
d459a221308e0a5c1e0625458a480121178f9552
/check_shapes/inheritance.py
0411de75088ae0185b6f03af4223b6c5a1b1f230
[ "Apache-2.0" ]
permissive
GPflow/check_shapes
12f4795c76dd1739ffad2b504747615e8944f2bb
1d685a7b952964d10034ac77568c1e75f90b1978
refs/heads/develop
2023-08-31T15:11:09.776446
2023-08-04T07:40:52
2023-08-04T07:40:52
541,490,471
8
0
Apache-2.0
2023-08-04T08:04:12
2022-09-26T08:49:27
Python
UTF-8
Python
false
false
2,561
py
# Copyright 2022 The GPflow Contributors. 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 required by applicable...
[ "noreply@github.com" ]
GPflow.noreply@github.com
46b616bb437858d13cdcf1b05ea6e7262bb7899c
0a530e71f248f0f731c6a3f28f090d1bb26b55e3
/apps/testdatas/adminx.py
4b18c25724826878478f7f85cf1f487e75812bb2
[]
no_license
wawj901124/fuwuqi
cca9935f7b110dfdf38c93d59602a596ecac0d58
e388fd10cf4fdb889d6566b7a30702b7c7351750
refs/heads/master
2022-12-13T13:12:10.854319
2020-01-18T00:42:52
2020-01-18T00:42:52
209,901,486
0
0
null
2022-11-22T02:40:33
2019-09-21T00:23:51
Python
UTF-8
Python
false
false
63,303
py
import xadmin from .models import ClickAndBack,User,NewAddAndCheck,SearchAndCheck,DeleteAndCheck,EditAndCheck from .models import InputTapInputText,InputTapInputFile,InputTapInputDateTime,SelectTapSelectOption,AssertTipText from .models import IframeBodyInputText from .models import RadioAndReelectionLabel from .model...
[ "wawj900805" ]
wawj900805
61c120b8fd81352b68514fa25a7440b9e07c6d13
7807d8d9d109a3e272fffed91bf841201da39256
/trans_NTL_1_C/aaa119_NTL_1_C_kotonoha.py
b982f55f4bfddd7e6698b1ac8f94bef517d3ba62
[]
no_license
y-akinobu/AOJ_to_Kotonoha
0e8df43393964fcdd5df06c75545091bd6c0c2e2
5a694a55a3d85e3fbc4a07b57edc4374556db9a1
refs/heads/main
2023-02-05T15:33:16.581177
2020-12-30T16:14:44
2020-12-30T16:14:44
325,524,216
0
1
null
null
null
null
UTF-8
Python
false
false
613
py
[#Document [# 'coding: utf-8']][#Document [# '76']] # fractionsモジュールを用いる import fractions # 入力された文字列の整数値をnとする n = int(input()) # 'map(整数,{{入力された文字列を空白で分割した列}})のリストをaとする a = list(map(int,input().split())) # aの最初値をansとする ans = a[0] # '1からn未満までの数列の各要素を順にiとして、繰り返す for i in range(1,n) : # ansにa(i)を掛けた値をfractions.gcd(ans,...
[ "sx2_vn_yuka@outlook.jp" ]
sx2_vn_yuka@outlook.jp
0dc77d893526182726cc5b4169ad7b7606b6b9ad
74db18a388236f83a46a36a6bb32b99983323823
/exercise_bot/old_python_files/src/db.py
8b07c05f44d398970f3239056da5988d4299abc8
[]
no_license
guilevieiram/100_days
e0a5e9f931b92d0b23e6b12109a85d3d055a9470
e259a55bfdad4800f0754a1ac12172c20c9377b0
refs/heads/main
2023-09-03T21:21:17.795417
2021-11-01T00:01:09
2021-11-01T00:01:09
383,873,879
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
import requests import datetime from src.decorators import log class Sheety: def __init__(self): self.endpoint = "https://api.sheety.co/3e41b69e3d7c105059981d0ca0c8a47e/exerciseBot/workouts" def add_data(self, data): date, time = self.get_date_time() for exercise in data: self.make_request(exercise=ex...
[ "guilhermevmanhaes@gmail.com" ]
guilhermevmanhaes@gmail.com
52ea80834f5e5d1cd32f634e8fb7e700a0574cb7
47e2fef4485b9f239473f3195aef826efa7395e2
/app/parser.py
a9f77d49b32932aa1fd43038470aad7789ae987f
[]
no_license
tsabat/language_cli
979952f9e8c37400971aa1ee119b8ea96307392d
f6176e8c820abec855c95323a90c7fea14e8f416
refs/heads/master
2020-08-10T14:33:43.258849
2013-05-03T04:53:39
2013-05-03T04:53:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
53
py
def parse(value): return 'interpreted: ' + value
[ "timothy.sabat@gmail.com" ]
timothy.sabat@gmail.com
c67c40be342fbe5a5c1dec3c0439ac5a9f732484
cef297f5dd8123136e3a84894b0f9f4073c8363b
/1-basics/2-input/5-review/bot.py
bcba39ccc4fd0c653baf63db2abcc599d8fc20ba
[]
no_license
Adam-J-Barron/Hello-world
be02f5aa5f012a68ae4bcb3614ab74e432c90d13
f896386b253588d803c4745f4346ff71b17168ac
refs/heads/master
2020-08-01T20:31:28.405928
2019-10-10T13:07:29
2019-10-10T13:07:29
211,107,432
0
0
null
null
null
null
UTF-8
Python
false
false
1,514
py
from random import * # introduce Beep print(""" ########## ## - O ## ## \\____/ ## ########## ## ########## ## ------ ## ## 0\" ## ## ## ## ## # # ##########""") print("""Beep: \"Hello! I'm Beep the robot. \tCould you give me a new eye?\"""") beepEye = input("\nPlease enter ...
[ "adamjbarronwork@gmail.com" ]
adamjbarronwork@gmail.com
f52e3c3424e6419c37d5b5e41ad2c44383fb0d8a
9607fb1168d46fcb2892a56134ad2d85904613b7
/AI coursework/digitrecognitionaccuracy.py
588165d3ff725140b44f6d0bc1691babe57be56e
[]
no_license
MarcTatam/AI-coursework
0af7567ced243a1ef3313678771c6e28b3873dae
83242efb4fbd3bc2cdd09908682893d967dfe5c0
refs/heads/master
2023-03-28T11:09:48.928408
2021-03-22T22:03:48
2021-03-22T22:03:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,455
py
from sklearn.datasets import load_digits from sklearn.cluster import KMeans from collections import Counter import matplotlib.pyplot as plt #Load data digits = load_digits() #Perform K-Means kmeans = KMeans(n_clusters=10, max_iter=1000, n_init=20) kmeans.fit(digits.data) #Get prediction data prediction = kmeans.fit_p...
[ "marc.smsjb.tatam@gmail.com" ]
marc.smsjb.tatam@gmail.com
48c8e6fb62a6ff5ffb7f27492a5ca6f83c42f4aa
9be0626b114ec00dbd4e127040b87fa5f5325fc3
/monitoring_backend/app/errors.py
f7e42dfdb78594d0db34974b41db3502ccaa816c
[]
no_license
victormungai97/monitoring_system
8e7d2f87136c3308632d5d159617f110dd11fdc6
5988cba5a4d19145ab750b5d875cd9c4bdb98c29
refs/heads/master
2023-04-18T19:48:12.094286
2021-05-03T16:25:39
2021-05-03T16:25:39
363,985,390
0
0
null
null
null
null
UTF-8
Python
false
false
5,428
py
# app/errors.py """ This module will handles the errors that might arise from the system It will contain custom functions that redirect user to custom URLs when various errors occur and a function that logs the errors and informs the admin(s) when said errors occur """ import logging import os from rq import Queue fr...
[ "nywelenyumbaniteam@gmail.com" ]
nywelenyumbaniteam@gmail.com
5b7e0971bde642789654eb79211bdeef4856b76d
674f652715596ef444b9b009b5e9e94f22a0becd
/1_crawl_issue_reports/env/bin/easy_install
87d0435236df5967003edbd019d580ee6c1b133a
[]
no_license
brombaut/seal-programming-task
a3167d00be0d1fa94fb34db118cd29365b2a57c2
6aa00c39c89a63bb0a275ddd240d7a8483687019
refs/heads/master
2022-04-04T16:47:27.253561
2020-01-11T19:44:23
2020-01-11T19:44:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
315
#!/Users/BenRombaut/Desktop/MastersStuff/SEAL/ProgrammingTask/1_crawl_issue_reports/env/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())
[ "ben.rombaut@unb.ca" ]
ben.rombaut@unb.ca
8f8f3812524da3845410fcca49e1304a214732b9
33421188df7d7dcf2ee9be0771b0f2fe1ffad4f5
/2014/Codemotion/celery/examples/canvas/tasks.py
852cca47ec68a4b448671ea1b3a13cf41af94abc
[ "CC-BY-4.0" ]
permissive
Gustavo17/ponencias
c0482fc7a72d7d4d829a54b94775e77c81ca5d97
effb002b0300fe57d26776654b61a2396010da40
refs/heads/master
2021-01-13T09:18:13.837313
2014-11-21T04:58:11
2014-11-21T04:58:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
from celery import Celery, group, chain, chord import time app = Celery('tasks', backend='amqp', broker='amqp://guest@localhost//') @app.task def fetch_url(url): return "CONTENT DATA" @app.task def lowcase(content): return content.lower() @app.task def split(content): return content.split() @app.task d...
[ "jesus.espino@kaleidos.net" ]
jesus.espino@kaleidos.net
730853967e01818615f5797966d3272c7077f5fc
5c1fda0b5c5c69636a7264d6130c2970230e535c
/blog_app.py
f0bd843a76adf6ef1fde00e148fa2096b2021212
[]
no_license
MSpearing/Flask_App
e868f3b87b7fd26ee513574fcbb01873a1e93528
5115b28f333b60138c2c0c1d23f4f1952a95ff76
refs/heads/master
2020-03-27T04:24:29.773382
2018-08-25T02:13:16
2018-08-25T02:13:16
145,935,380
0
0
null
null
null
null
UTF-8
Python
false
false
3,117
py
#! /Users/michaelspearing/Documents/Coding/Flask_App/venv/bin/python # Michael Spearing # August 24, 2018 # Reference: https://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask from flask import Flask from flask import jsonify from flask import abort from flask import make_response from flask ...
[ "M.S.Spearing@gmail.com" ]
M.S.Spearing@gmail.com
66e9fcb90504ec32f0a70a93da82359f2ac7ebb4
a96033c99f6dc8994c09928153d51ac249f4d4ff
/barf/barf/core/reil/reilemulator.py
178284edce38528fd8192a5d317b0ac2ec660f9a
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ignaeche/barf-project
0a1d8c77086fb7fc13d3b8282aac63dc84f58b85
075782045f52924fbb1312140b4c525f75e85e82
refs/heads/master
2021-01-15T09:19:01.103284
2015-09-22T18:08:12
2015-09-22T18:08:12
43,160,150
0
0
null
2015-09-25T16:29:18
2015-09-25T16:29:18
null
UTF-8
Python
false
false
35,549
py
# Copyright (c) 2014, Fundacion Dr. Manuel Sadosky # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this # list of condit...
[ "cnheitman@fundacionsadosky.org.ar" ]
cnheitman@fundacionsadosky.org.ar
1efb02271fb96e41976e63b396b9dc5a18008841
3537658433a7a7245734566b6a7a0d92880e9bd8
/gpflow_mod/mean_functions.py
178b9ca0f71cc612f922ef299339c2d03d6ecdef
[ "Apache-2.0" ]
permissive
Naereen/MetaLearningGP
bc94822e78b80c210bd3be0b8b2e826115725dfb
f2b7bdea594b31ad3046d910e6e41e2c9ff3e0fc
refs/heads/master
2020-03-30T16:40:42.447514
2018-08-26T15:02:10
2018-08-26T15:02:10
151,420,829
0
0
Apache-2.0
2018-10-03T13:54:19
2018-10-03T13:54:19
null
UTF-8
Python
false
false
5,640
py
# Copyright 2016 James Hensman, alexggmatthews, PabloLeon, Valentine Svensson # # 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 require...
[ "steindor.ingi@gmail.com" ]
steindor.ingi@gmail.com
2d6ed7900592c0d5873e9499508d19f7a20be12d
27d21395755e6e2bbf1177528d35321259154ec8
/examReview/iterex.py
b8467368e644f0c2a659cda07f61b3215a6ae609
[]
no_license
cassandrawendlandt/cs2613
2a3b8f4cf34cefcd0207c3dd417b5b14748814d7
fe986df6a1841286703a05147624c1d1eddb9660
refs/heads/master
2020-09-15T12:23:43.328802
2019-12-16T00:59:45
2019-12-16T00:59:45
223,443,560
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
class Iterex: def --init--(self,max):
[ "cwendlan@unb.ca" ]
cwendlan@unb.ca
2a058c4570e1adffc45272c7e3771dddfd2cf0bf
e914283cf0a388e1db3fda6756febafb1519137b
/tool/generate_pose_map_market.py
b486972271f733a44b23e653dcd45f4744d5e0ab
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
siyuhuang/PoseStylizer
bec8f7e58bd0ade2cd6fbdfd9da8ab630c78602e
d1d832781ddfd3efde24bf32b36a4074fafebcc1
refs/heads/master
2022-11-26T07:11:47.891259
2020-07-30T04:45:35
2020-07-30T04:45:35
275,725,739
86
17
null
null
null
null
UTF-8
Python
false
false
1,950
py
import numpy as np import pandas as pd import json import os MISSING_VALUE = -1 def load_pose_cords_from_strings(y_str, x_str): y_cords = json.loads(y_str) x_cords = json.loads(x_str) return np.concatenate([np.expand_dims(y_cords, -1), np.expand_dims(x_cords, -1)], axis=1) def cords_to_map(cords, img_s...
[ "huangsiyu@baidudeMacBook-Pro.local" ]
huangsiyu@baidudeMacBook-Pro.local
30766847b5748585592adb06574fc0d365f1e64d
2e0372ccda865f3a1139b60a9c3d8eb021b023b1
/splitmyride_server/model/Terminal.py
f496b7b6d81f4a226f9d1ba5975614be12f69083
[]
no_license
ashaegupta/Split-My-Ride
54405324e41c59a52ccee277bce60aeae1a3a795
1b53ca5273aa66777770d889b6e7f7929d243af4
refs/heads/master
2021-01-16T21:23:42.257127
2012-03-29T16:00:53
2012-03-29T16:00:53
2,501,805
0
2
null
null
null
null
UTF-8
Python
false
false
1,589
py
import sys sys.path.append("../") import logging import uuid import MongoMixIn import splitmyride_settings class Terminal(MongoMixIn.MongoMixIn): MONGO_DB_NAME = 'terminal' if splitmyride_settings.ON_TEST: MONGO_COLLECTION_NAME = 'terminal_c_test' else: MONGO_COLLECTION...
[ "ashaegupta@gmail.com" ]
ashaegupta@gmail.com
4df7fe6e5fbd810d71b801b7fd8279ec67a977c6
2c632f790d2bf7278dc67686cafa12859cf64b70
/person_codes/gluon_save_write.py
59b05f854c29275f26fe0b1db4a928ca243df46f
[]
no_license
xinghen91/d2l-zh-1.2
e5433a717251dc3e977decf696d89fb1b0d666e1
1f8f59b766d3ecf3565475043b26b822a55db9c3
refs/heads/master
2022-11-15T00:12:10.393924
2020-07-02T10:27:27
2020-07-02T10:27:27
265,130,301
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
from mxnet import nd from mxnet.gluon import nn x = nd.ones(shape=(10,2)) nd.save('x', x) x2 = nd.load('x') y = nd.zeros(2) nd.save('xy', [x,y]) xy = nd.load('xy') class MLP(nn.Block): def __init__(self, **kwargs): super().__init__(**kwargs) self.hidden = nn.Dense(256, activation='relu') ...
[ "xinghen.1991@gmail.com" ]
xinghen.1991@gmail.com
099ad38dc11b3268ad19d11d990d848ad6da4754
9e9460c2ef14550cd90f14b7cee8d593df31cf7f
/lab2/parallel/sumo_parallel.py
ff329a34dd3a83eed9f0c5378eefb4b0cdf90dfc
[]
no_license
BrunoSalerno/traffic-simulation
b9f946d2bbcce30d92dff86cf53bcf633374cf9d
3edc5f35abeb7e8554c6bb064f0a9b4f6b9503ee
refs/heads/master
2022-10-17T23:26:37.298639
2019-12-13T17:21:16
2019-12-13T17:21:16
221,942,535
1
0
null
2022-09-30T19:58:34
2019-11-15T14:41:07
Python
UTF-8
Python
false
false
2,814
py
import multiprocessing import traci import numpy as np import time import random import sys def simulation_handler(cmd,outputfile,times): for i in range(times): simulation(cmd, outputfile) def simulation(cmd,outputfile): seed = int((random.random() * 100000) + time.time()) print ("seed: {}".format...
[ "salerno@kth.se" ]
salerno@kth.se
0f521dce3acf6e12bc55a1d694162bfef86a8fdf
8aa7598ef3314ec59979c76cea2466193b048e2e
/inside/Login/__init__.py
c967f760cc84051e8b114dc52d00b47d11eb5f58
[ "MIT" ]
permissive
lifansama/learning-power
2df84d3892aa6491a50db61f54e293df6eea2f95
9e2a023917b86460fb02984aed9fe638c3d38dd4
refs/heads/master
2023-02-27T12:42:44.660769
2021-02-08T10:12:01
2021-02-08T10:12:01
322,584,266
1
0
MIT
2021-02-08T12:06:17
2020-12-18T12:07:16
Python
UTF-8
Python
false
false
195
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # @Author : lisztomania # @Date : 2021/1/15 # @Software : Pycharm # @Version : Python 3.8.5 # @File : __init__.py.py # @Function : 登录
[ "lisztomania@vip.qq.com" ]
lisztomania@vip.qq.com
9f511d30e12776c047d5e138b942e349756e9c37
a05b1448fdf038e53d9ae6308291f5016241b04f
/Problem 2- Even Fibonacci Numbers/Problem2.py
9986fb7cff34e7a46fbc069ee0e9e27e6e9e18df
[]
no_license
mwinn53/Euler
dcc08c7cd179daf4894c01341ecf93a52e328499
04c2eb5e2effee7eb73174f7b8396afc321cfb82
refs/heads/master
2020-04-02T06:12:24.037853
2016-07-16T14:43:15
2016-07-16T14:43:15
62,644,107
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
# --------------------------------------------------------------------------- # Problem 2 # --------------------------------------------------------------------------- # Each new term in the Fibonacci sequence is generated by adding the previous # two terms. By starting with 1 and 2, the first 10 terms will be: # 1, ...
[ "ltwinn@hotmail.com" ]
ltwinn@hotmail.com
be8a44a141a5d792643c73427964c8088de152e4
448756d7ff6c9cbdf0a8b3b4ff8309207a6bb504
/scripts/howtofit/chapter_database/profiles.py
7621d81f9dc7090851b2ab1977513de4f4476fbc
[]
no_license
jonathanfrawley/autofit_workspace_copy
f84c8ed8d8106cbd0735601b54d35104976219cf
4631ac452f62cd9c3d5257b4d0b2a64630c51ecf
refs/heads/master
2023-04-21T04:06:20.140963
2021-05-13T16:02:59
2021-05-13T16:02:59
367,427,102
0
0
null
null
null
null
UTF-8
Python
false
false
5,552
py
import numpy as np """ In tutorial 5, we perform modeling using multiple profiles, in particular the `Gaussian` profile from the previous tutorials and an Exponential profile. In analysis.py, we will edit how model-data is generated from profiles such that it is the sum of all profiles in our model. In this mo...
[ "james.w.nightingale@durham.ac.uk" ]
james.w.nightingale@durham.ac.uk
34cd485c85c07348b5afcfa62b928737e62d5e67
dfc85cdf4a8a90885da7b9fae083645f05df02dc
/糗事百科段子/test.py
9fee9d63d743ed7cf0822eeb585d8f4c33901879
[]
no_license
probie0/Crawler
cf4a300524ec1d38696e8a8f1f0a7cc553185696
bb585b0703f307a9521f606fb505d6ee04e8c76b
refs/heads/master
2021-05-16T14:56:48.426022
2018-01-24T11:42:28
2018-01-24T11:42:28
118,463,711
0
0
null
null
null
null
UTF-8
Python
false
false
101
py
import urllib.request from bs4 import BeautifulSoup url = "https://www.qiushibaike.com/8hr/page/2/"
[ "1401253567@qq.com" ]
1401253567@qq.com
29fce1c1072c4f1b04c76bc9cbe2b9de458d95f3
33e459a3366455dd86d24f28fcfc221c867b382d
/single_Number_A-4.py
0494c04d5cd5b3fddc3af8378ff09bef0ebdb7f4
[]
no_license
Pavanyeluri11/LeetCode-Problems-Python
1a442dc53836b83ab5b9cbcd90fc8cb8195051e2
caa11c68ab893b81477aef5034d371922dd25fa6
refs/heads/main
2023-08-23T10:28:48.271077
2021-10-20T04:54:57
2021-10-20T04:54:57
417,374,471
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
def singleNumber(nums): ele = 0 for i in nums: ele = ele^i return ele if __name__=='__main__': print(singleNumber([1,2,3,3,2]))
[ "noreply@github.com" ]
Pavanyeluri11.noreply@github.com
59f6c77c970db81bab256b082d0c98fe70793803
794e54abc2504ee76823df70577faf82a3817b51
/tests/test_nested_import/thp_io/pyotherside/nested/module.py
c9dd440739262568e23a9594479d599cd35c9d7c
[ "ISC" ]
permissive
thp/pyotherside
6c54bf04ec657393d915a06452a3406c4c8d8410
63eb5290d5994dc31471dd68e43805f78099c7c6
refs/heads/master
2022-09-02T18:08:41.498511
2022-08-05T11:48:28
2022-08-05T11:48:31
1,822,789
314
51
NOASSERTION
2021-06-06T10:09:49
2011-05-30T18:43:45
C++
UTF-8
Python
false
false
71
py
def info(): return 'This is the nested.module module' value = 123
[ "m@thp.io" ]
m@thp.io
d429dfcbf315006d4c3637adfe1a3e172ed242ae
7b0d3ed70aeaf5c94a758b215df6577a834421e9
/Air/add_fake_data.py
ec56ffa245f740eb89714f4944e451166a180046
[]
no_license
OtherRe/Pairly
564be15b627de74d5510e74a71f00e3e86b8328b
ffb1ebcf70188aba399db55bb86fac562f13e55f
refs/heads/master
2020-04-09T05:43:50.018578
2019-03-05T18:43:54
2019-03-05T18:43:54
160,076,781
0
0
null
null
null
null
UTF-8
Python
false
false
999
py
import sys, os from Db import Db sys.path.append(sys.path.append(os.path.join(os.path.dirname(__file__), "../PairlyDB/build"))) import pypairly as db import random import time if __name__ == '__main__': fake_locations = [(21.00384, 52.24094), (21.02826, 52.22264), (21.05418, 52.236735), (21.003856, 52.256660), (21.1...
[ "jiirra@gmail.com" ]
jiirra@gmail.com
4bb62b08675b82daa932bb0601b8754bc073850e
35bf43664c046d0d9394783a6726131f80924969
/tests/integration/test_dashboard.py
d73da945afbdfd6d7f0f16ca7d82b78ce0153db1
[ "Apache-2.0" ]
permissive
mbseid/rubicon
5d6c05128f4925aaeb4fc3acd1ac8d30c07ae714
d48d34e4b6580ef29bb8dbe6a8ed473b954af087
refs/heads/main
2023-03-31T04:12:16.028422
2021-04-05T17:51:14
2021-04-05T17:51:14
354,914,954
0
0
Apache-2.0
2021-04-05T17:26:40
2021-04-05T17:26:40
null
UTF-8
Python
false
false
5,481
py
import pytest @pytest.mark.dashboard_test def test_default_layout(dashboard_setup, dash_duo): dash_duo.start_server(dashboard_setup._app) assert dash_duo.find_element("#header") assert dash_duo.find_element("#title").text == "Rubicon" assert dash_duo.find_element("#project-selection") assert dash...
[ "noreply@github.com" ]
mbseid.noreply@github.com
02fd5bc8840dc8d1026cf57d7ac4576d17052fc3
dadfd986bc089e9eafea63c583341bb3fe7453d3
/junopy/services/util.py
656eab893d7851d1184445a90a2f25d767b30e4e
[ "MIT" ]
permissive
robertons/junopy
d94e88b597c6b17ef98f7529d2cb70f0d981f8ed
1acc64ab99d8ea49bb0dac979cd34da43541f243
refs/heads/main
2023-07-15T17:13:48.440196
2021-09-03T14:59:56
2021-09-03T14:59:56
383,583,995
3
1
null
null
null
null
UTF-8
Python
false
false
665
py
from junopy.utils.juno import * import hmac import hashlib def Banks(): data = Get("/data/banks") return data['_embedded']['banks'] def CompanyTypes(): data = Get("/data/company-types") return data['companyTypes'] def BusinessAreas(): data = Get("/data/business-areas") return data['_embedde...
[ "robertonsilva@gmail.com" ]
robertonsilva@gmail.com
297021f67799b973acafe8987f87ca7a200c6ad4
3ca0f3bdb083d674c03dd348bc9b5266ba5c277f
/accounts/admin.py
4e9d2c46ba5a80e359b0da854c0ff730819593d3
[]
no_license
jainil-4801/Django-REST-Quiz
a43f997e9e38fa70e4d24b15abeae5828d4de9f0
aebcae5f68559e74385e433afd385288608f0a39
refs/heads/main
2023-01-01T11:07:03.516902
2020-10-21T14:00:10
2020-10-21T14:00:10
306,020,317
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
from django.contrib import admin from django.contrib.auth import get_user_model user = get_user_model() admin.site.register(user)
[ "201851116@iiitvadodara.ac.in" ]
201851116@iiitvadodara.ac.in
c40d2d4f3b77dc8d49b976cef92a1020e2663e4c
3f413e0f94f5fd32c27853c97307decc02b0c257
/app.py
91e9c2293b36d6f92b3f872a627d45a86765953e
[]
no_license
My-Cloud-Garage/rest_api
9ab86205892eaf234ce436ded53259c4bf5d925e
3e5c2deaa4bb76245987eb39323d2ca46afea7bf
refs/heads/master
2021-08-22T14:08:22.528234
2020-07-16T17:00:32
2020-07-16T17:00:32
205,742,251
0
2
null
null
null
null
UTF-8
Python
false
false
1,475
py
from flask import Flask #from flask_restplus import Resource, Api from flask_restful import Api from flask_jwt import JWT from security import authenticate, identity from resources.user import UserRegister from resources.item import Item, ItemList from resources.store import Store, StoreList # headers = {'Content-type'...
[ "better.world.cloud@gmail.com" ]
better.world.cloud@gmail.com
ab79179e1362154102c3ccd36c54c8628c4b7c68
f785d3b74766d38d1876809bb47de85f4d3803fa
/Python/Lists.py
0b119060ce329fb4b1e01a56b09dd6fcdffa70fa
[]
no_license
amartyahatua/programpractice
ccdfc33decfbc5a3314053a4840d091d1a9222aa
7496e0b1dc12d136c3020343faa9f806bd81afef
refs/heads/master
2020-07-12T11:28:00.922873
2019-11-13T21:54:48
2019-11-13T21:54:48
204,806,751
0
0
null
null
null
null
UTF-8
Python
false
false
330
py
guests = ['chris', 'susan', 'bill', 'satya'] # adding a value at the end guests.append("steve") print(guests) # display the last value of the list print(guests[-1]) # remove a member. If there are multiple 'chris' the first one will be removed guests.remove('chris') print(guests) # find the index print(guests.index...
[ "amartyahatua@gmail.com" ]
amartyahatua@gmail.com
6a2a59d480d7535ce9790d74f76a9ff441a76d8a
8c5c74f6f0d19111f2873fcf7763ad1529110cb7
/Examples/game4.py
a514e08d8424e79f30572b4f0255928ac58bc963
[]
no_license
lostboy1/cps-108
44ba4e4aa6e224f73b8b82ab91c2216bdb821026
4264567557ba772f1b5e62ce380cf540af40d5d3
refs/heads/master
2023-01-19T13:19:10.469778
2020-12-01T07:39:29
2020-12-01T07:39:29
288,768,661
0
0
null
null
null
null
UTF-8
Python
false
false
2,161
py
from tkinter import Tk, Canvas, mainloop SPEED = 10 root = Tk() c = Canvas(root, width=500, height=500) c.pack() # Put drawing here! c.create_rectangle(0, 0, 500, 300, fill='blue') c.create_rectangle(0, 300, 500, 500, fill='yellow') c.create_rectangle(347, 380, 353, 450, fill='white') c.create_polygon(350, 360, 400...
[ "brandon@rhodesmill.org" ]
brandon@rhodesmill.org
b9da1c07c952a31c8b52140d2e01b57eedd9a727
149edde30347305c76cd96d27d184644de540ed1
/Bio Alignment/local.py
90e0be4e435ae150c0747fe04163ae14156bb0d5
[]
no_license
PMorgan88/bio-alignment
00fcfb9226b05250cfee5513e5e320c9fe2d843e
0aef26083c7b2de93b2c4c0ecb1a3c0ebfdbe95c
refs/heads/master
2021-01-23T04:45:11.921826
2017-01-29T23:55:23
2017-01-29T23:55:23
80,381,401
0
0
null
null
null
null
UTF-8
Python
false
false
2,021
py
#!/usr/bin/env python3.5 from collections import defaultdict import sys def scoreMatrix(seqDict): """Creates matrix and fills with smith-waterman algorithm using the transition/transversion matrix provided. Returns the max scoring value found in matrix""" nrows = seqDict['seq1'] ncols = seqDict['seq2']...
[ "noreply@github.com" ]
PMorgan88.noreply@github.com
33d4c15606550a9e2dab70914937261c6a782cdd
5ad212db31e8a6fcd765b6317dd6414b7311b6af
/test2.py
28adefebd171e10650fd0f4fd0e6f08df8c5e0a4
[]
no_license
transcendentsky/Nongyao
01d0424363c3231e3363fccfb505accd5b94d885
b887627753883522dff6fc0e08dd94a2b072c8b8
refs/heads/master
2020-03-18T11:37:37.370959
2018-05-24T10:09:06
2018-05-24T10:09:06
134,682,280
0
0
null
null
null
null
UTF-8
Python
false
false
1,372
py
from heros.Houyi import Houyi from heros.hero import * from heros.ake import Ake """ 1:30 Jungle lv4 700 top lv2~3 600 No Attack Equips 2:30 top lv4 800~ 1~2 Iron Sword 4:00 Jungle lv6 2000+ 6:00 Jungle lv8 3000~4000 Wujin 9~10:00 Jungle lv12 600...
[ "599167637@qq.com" ]
599167637@qq.com
da43d0e947373e3ed7a86b1b517dcc5a47cd4040
828c01644f706f2e8eefc298c2ee2db57441256b
/config/settings.py
1ade73e7dc020368ba3f25b30282520a6afa4b52
[]
no_license
somas1/watt-docked
217249a6e8a935bc4dc9f2424879b68fa8e7be94
f5fc603264d5bb2660032c7f88b0a3dcf4d72ea4
refs/heads/master
2020-04-28T06:00:59.592320
2019-03-11T16:33:10
2019-03-11T16:33:10
175,040,733
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
DEBUG = True SERVER_NAME = '10.0.1.33:8989' # SERVER_NAME = 'mini.local:8000' SECRET_KEY = 'insecurekeyfordev' # SQLAlchemy. db_uri = 'sqlite:///' + '../watt_app/database/watts.sqlite' SQLALCHEMY_DATABASE_URI = db_uri SQLALCHEMY_TRACK_MODIFICATIONS = False
[ "noreply@github.com" ]
somas1.noreply@github.com
ad2584667fff920e6dad0cd4c1325fd93fcc5954
612af445dde0b113ab5151f831e0966954ab4437
/pucumber/features/environment.py
dfbeb49ccdd121f03fae5f9725109bc7bd5c9c37
[]
no_license
shizhz/practices
533aa74f89f5d696cf677a9a14a25e087abdbaaa
9acdaff80b8a5deb5f46a96e71e53a57cf35e6da
refs/heads/master
2016-09-05T17:44:25.379821
2014-09-18T11:20:42
2014-09-18T11:20:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
#!/usr/bin/env python # encoding: utf-8 import os def before_feature(context, feature): if 'init_cleanup' in feature.tags: context.working_directory = os.getcwd() context.test_directory = '/tmp/' def after_feature(context, feature): if 'init_cleanup' in feature.tags: del context.worki...
[ "messi.shizz@gmail.com" ]
messi.shizz@gmail.com
4061c2e83ffee46cd80e883fb320ba426d420efc
cc5ffcf345c732b5a5dc2891dba5eeb4e04560a1
/Exeter_CFD_Problems/kaplanduct.py
4cc5c8223b9b5e3534fcb83707b36e7f76ed3214
[]
no_license
en9apr/HeatExchanger_BO
e3f9ac989fc3bd527be8cfda8fa8cdb8920a0cba
829783ed414ce77cc4b70cea2343ea24ffdb9c67
refs/heads/master
2022-10-13T10:11:37.624739
2020-06-04T17:28:20
2020-06-04T17:28:20
269,422,521
0
0
null
null
null
null
UTF-8
Python
false
false
3,353
py
try: from data.SnappyHexOptimise import BasicDuctRun except: from .data.SnappyHexOptimise import BasicDuctRun try: from interfaces import ControlPolygonInterface except: from .interfaces import ControlPolygonInterface try: from base_class import Problem except: from .base_class import Problem tr...
[ "en9apr@hotmail.co.uk" ]
en9apr@hotmail.co.uk
798b7d8a6302939a34469359265942e49b7adc81
9839b73a6c09ac8a110feb692ef0c001d93f8cbf
/examples/advanced/preprocessGapFill.py
fddd2531aa700c42c6ca76aff7b6d658df654398
[ "MIT" ]
permissive
GeoMTMan/resistics
c253caa9a70295a462756625261f93349475908f
942afe45456f63657267020749d723f7eee89934
refs/heads/master
2020-08-01T10:25:12.535890
2019-09-25T23:36:39
2019-09-25T23:36:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,255
py
from pathlib import Path from resistics.project.projectIO import loadProject projectPath = Path("preprocessProject") proj = loadProject(projectPath) proj.printInfo() from resistics.utilities.utilsPlotter import plotOptionsTime, getPresentationFonts plotOptions = plotOptionsTime(plotfonts=getPresentationFonts()) fro...
[ "nss350@gmail.com" ]
nss350@gmail.com
55a42b6ae85147bc6d3fec90d6653672efb28b4e
3ae38471ca4ff70e30d8eeb0508b9b0aab5e19a2
/web/models.py
c7e701ae4777b6eeb1dcdcbf6d7c130c9268d9b0
[]
no_license
Hamidnet220/Chapar
5596d6b703aa4c01c1010f0067cde5a57c33e336
3654601f34f0c58a17813851448889ccbf2c1c90
refs/heads/master
2020-05-03T04:22:51.140098
2019-04-02T05:15:50
2019-04-02T05:15:50
178,419,739
0
0
null
null
null
null
UTF-8
Python
false
false
2,502
py
from django.db import models from django.core.exceptions import ValidationError from django.contrib.auth.admin import User # Create your models here. def empty_validate_event(value): if len(value)<=2: raise ValidationError(("You can not leave this field empty!"),params={'value':value},) class Organization...
[ "kiani.hamidreza@gmail.com" ]
kiani.hamidreza@gmail.com
c25222d287010ddcf51f680d11351fa91fce993b
4340eea203ab2f73c7b3fe754dccbd3fb239d113
/pizza/migrations/0001_initial.py
caf676f24cb3898f59cb21cafba999a19d879aa5
[]
no_license
mytholic/projectone
36b05eb7072a8615f21d5969163ffed9a725f2e9
bd88909b0cc82260494d41f62fcfb8187a165f03
refs/heads/master
2022-11-09T00:14:46.967188
2020-06-19T13:44:15
2020-06-19T13:44:15
273,492,139
0
0
null
null
null
null
UTF-8
Python
false
false
543
py
# Generated by Django 2.0 on 2020-06-05 17:16 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='PIZZA', fields=[ ('id', models.AutoField(auto...
[ "48851291+mytholic@users.noreply.github.com" ]
48851291+mytholic@users.noreply.github.com
253098c95b8a9ae14d1e14e13c7c2d1baf55f3c0
13fb238170a3d9c2a394bd3ffbecf2c80bc668b6
/ceshis.py
0659328dee1573a37784129ec3e7e33a0e2744ac
[]
no_license
king77bulingbuling/bili
6b2035117a2e1ae4ebd6a55437015a312d0c9689
609e3e66caf6adf0418a2abe24edef349d0188b6
refs/heads/master
2020-03-31T21:46:24.903602
2018-10-11T13:07:07
2018-10-11T13:07:07
152,593,199
0
0
null
null
null
null
UTF-8
Python
false
false
331
py
# !/usr/bin/python num = int(input("enter number")) if num%2 == 0: if num%3 == 0: print ("Divisible by 3 and 2") else: print ("divisible by 2 not divisible by 3") else: if num%3 == 0: print ("divisible by 3 not divisible by 2") else: print ("not Divisible by 2 not divisi...
[ "760491446@qq.com" ]
760491446@qq.com
e1e49428b8fed2c02a78225980e11016d2100535
e76ee674cc21ef420511868ca9732c938f3dc5c1
/Extract_sgRNA/summarize_sgRNA.py
4ad01542deb1a13cc50cb8ca6685d9515803a2df
[ "Apache-2.0" ]
permissive
russellxie/Mosaic-seq2
b96ce22cfb4399937bba2c3b7746a8d2e33cae9f
35708d56b3e9c324542c1c2444fcb916002572d0
refs/heads/master
2020-03-11T11:44:10.403357
2018-08-13T22:11:55
2018-08-13T22:11:55
129,977,536
0
0
null
2018-04-18T12:13:43
2018-04-17T23:45:07
Jupyter Notebook
UTF-8
Python
false
false
8,367
py
#!/usr/bin/env python3 ''' This version use the directional method to remove the UMIs. ''' import sys import argparse import numpy as np import editdistance from collections import Counter, defaultdict #get file handles based on the suffix def get_handle(input_file): '''Get the file handle for the input file''' ...
[ "noreply@github.com" ]
russellxie.noreply@github.com
187fddd67774c914ce223c7045ba7f5c7c4549d1
86cc17a69213569af670faed7ad531cb599b960d
/playeer38.py
429d4c4e3d64f9d3acb3095ca8e5794d9b54fa00
[]
no_license
LakshmikanthRavi/guvi-lux
ed1c389e27a9ec62e0fd75c140322563f68d311a
5c29f73903aa9adb6484c76103edf18ac165259e
refs/heads/master
2020-04-15T05:07:19.743874
2019-08-13T08:53:00
2019-08-13T08:53:00
164,409,489
0
1
null
null
null
null
UTF-8
Python
false
false
102
py
v=int(input()) li=[] for i in range(1,v+1): if v%i==0 and i%2==0: li.append(i) print(*li)
[ "noreply@github.com" ]
LakshmikanthRavi.noreply@github.com
292cf1f47a363139416fe045d88b7e06a169c8cd
b3a19913454c49c426441d648e17160bd3330e00
/QT_asking_PageWindow.py
452ba88265ddf17015136fc34f286e30314eda41
[]
no_license
KuangPi/PSR_ol
d0878a3b7d28b27fa501b26e24a099d76bce94cc
99bda6f5d48a4d526bb196e7741d91b16701fa39
refs/heads/master
2022-10-23T19:30:23.865128
2020-06-14T15:35:52
2020-06-14T15:35:52
272,227,367
0
0
null
null
null
null
UTF-8
Python
false
false
2,416
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'PYQT_asking_PageWindow.ui' # # Created by: PyQt5 UI code generator 5.15.0 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unless you know what you are doing. from PyQt5 impo...
[ "noreply@github.com" ]
KuangPi.noreply@github.com
c11e317eee5216d472b04be68a07211e5d31bc50
a4de66bd27e4d3f5addb3d403788705ceb63c902
/fast_image_classification/predictor.py
38d1e025040f293821a6bf258002dde580781c16
[ "MIT" ]
permissive
fauzan-ragitya/CrimeLessAPI
b8f91f91068f70df6f929fd292c1c1b5eb3c9c59
3e7ca134a7b375940d66bc798f2f0c3f0c242690
refs/heads/master
2023-06-07T00:18:47.319204
2021-06-19T05:01:01
2021-06-19T05:01:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,159
py
import argparse import numpy as np import yaml from tensorflow.keras.applications.mobilenet_v2 import preprocess_input from tensorflow.keras.models import load_model from fast_image_classification.preprocessing_utilities import ( read_img_from_path, resize_img, read_from_file, ) from fast_image_classifica...
[ "meinantoyuriawan@gmail.com" ]
meinantoyuriawan@gmail.com
d84587795589e5de3add16ee36f0a9f9f40b0c7d
5a293c9ae3c191e6b834ed7a60cc7285611af8af
/pypoll.py
86bc8be9d8d34efa37b26c778c10aa615c6ab052
[]
no_license
Ayesha-da/Election_Analysis
685e49d698b36dd3cdf8a3a418de9b46d2936867
1ac68bbbb18201a245f9e6bff71e5979c836bc38
refs/heads/main
2023-06-04T00:30:14.802262
2021-06-25T02:36:12
2021-06-25T02:36:12
378,748,433
0
0
null
null
null
null
UTF-8
Python
false
false
3,729
py
#list of candidates who received votes #number of total votes #number of votes each candidate received #percentage of votes received by each #winner file_to_load='Resources/election_results.csv' ##with open(file_to_load) as election_data: # Open the election results and read the file. #election_data = open(file_to_loa...
[ "ayesha.school@hotmail.com" ]
ayesha.school@hotmail.com
4ec2aadf03d70d48d6370dd6b9912187aaea5502
c17ea478dc3fdc8f9f1139dbc7beae00bf4ce10d
/bboard/models.py
4bae5241b86fb03d65c0e56e97ad4b90eec73f07
[]
no_license
li-ashim/first_django_site
af388af1d2890866ad888ae7d2682ca0a692e2f3
320e766c4d9b76583f4ba0ddc31fddaaf3fe30a1
refs/heads/master
2022-06-25T04:57:02.665776
2019-07-24T10:45:25
2019-07-24T10:45:25
198,081,427
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
from django.db import models class Bb(models.Model): title = models.CharField(max_length=50, verbose_name='Товар') content = models.TextField(null=True, blank=True, verbose_name='Описание') price = models.FloatField(null=True, blank=True, verbose_name='Цена') published = models.DateTimeField(auto_now_a...
[ "misha2002mg@gmail.com" ]
misha2002mg@gmail.com
ea057bd3921e30ed1fb9a3778aa9136f52c6ff1e
91626ff06a88eac81b83f82c1ba58d13e2d61401
/app/views.py
cf23e31e1afc4b23afd4abfcaf0808c7a5e9410c
[]
no_license
tyommik/mpg123-radio-server
1ac3e752b1abe78f049d8aa8e3d18ab14b1af14a
c08080ee8ec48f697e8a3ad523edb319c7a8a393
refs/heads/master
2021-05-01T16:01:50.170137
2018-05-10T18:27:08
2018-05-10T18:27:08
121,043,972
3
0
null
2018-03-05T11:51:56
2018-02-10T18:50:41
Python
UTF-8
Python
false
false
1,677
py
from app import app from flask import render_template, request, make_response, jsonify import server import json server_instance = None urls = json.load(open('urls', 'r')) @app.route('/') @app.route('/index') def index(): user = { 'nickname': 'Кот' } # выдуманный пользователь urls = json.load(open('urls', 'r...
[ "2fasti.miem@gmail.com" ]
2fasti.miem@gmail.com
ecc5fdc416933b64a8a73b2ce33489ef043239eb
c15de549f5ae7b4e772f78ace0773f95bd624f38
/shop/admin.py
5abe982236458c5dd7d5a4d18ffb212efe3d47e2
[]
no_license
lanix516/soft
7c145844e921985352f46b365e19baa425477828
ae900ef18657c7c6c5a79b9e1fd1af109ece01ae
refs/heads/master
2021-07-16T12:23:07.476443
2017-10-23T10:04:17
2017-10-23T10:04:17
104,182,901
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
from django.contrib import admin from shop.models import * # Register your models here. admin.site.register(SiteClass) admin.site.register(WebSite)
[ "82183509@qq.com" ]
82183509@qq.com
8a9a2e0e0350fa4ff84cebaec776e28fc5fb9f43
0a6b3dc6c8026116c2318551e4c522d32dfee6da
/19.2.py
d5755469c139d03de4abbac112c1c0d0ac3e34ba
[]
no_license
MatthewGregoire42/AdventOfCode2018
37cc7ace3c41820044b744e68b963147240c4686
311710294cc8a0006f1b5d83acdedfc385349a81
refs/heads/master
2020-04-09T22:27:31.322400
2018-12-27T01:48:50
2018-12-27T01:48:50
160,628,682
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
from math import sqrt, floor # The program is finding the sum of the factors of 10551260. def factors(n): output = [] for i in range(1, floor(sqrt(n))): if n % i == 0: output.append(i) output.append(int(n/i)) return output print(sum(factors(10551260)))
[ "noreply@github.com" ]
MatthewGregoire42.noreply@github.com
355bc244c68e1f8be3389114493f9b7065598d2e
0e2ef609a982211ed9f54e886de2e86323b31a0b
/galaxy/ihs/set_ancestral_allele.py
41a2a29e202ef94a50155ccb76609be0362918ae
[]
no_license
theboocock/OtagoGalaxy
e0e8be3d4ee68b6719bbea24c0b8737fc20264c5
b03491297b64402517c3c5e5196605e4ba25a6d8
refs/heads/master
2020-04-14T14:32:27.751448
2014-05-01T04:13:20
2014-05-01T04:13:20
2,817,530
1
0
null
null
null
null
UTF-8
Python
false
false
2,044
py
# # Set the AA from the 1000 genomes release data # # @author James Boocock # # $1 1000 genomes subset vcf # $2 legend file import os import sys import re def main(): vcf_file =sys.argv[1] legend_file = sys.argv[2] legend =open(legend_file,'r') if not legend_file: return 1 leg_line=legen...
[ "sfk2001@gmail.com" ]
sfk2001@gmail.com
9a18da4e47bb28850eb94b19cf46de0c7858bff1
008c065391d766fec2f2af252dd8a5e9bf5cb815
/Compress the Lis.py
177600548b994ba7e7b61511e9f4aed3f2340214
[]
no_license
22Rahul22/Codechef
b261ab43ff5ff64648a75ad1195e33cac2cfec52
1f645c779a250a71d75598e1eabad7e52dd6b031
refs/heads/master
2022-11-29T21:51:09.578798
2020-08-19T06:20:23
2020-08-19T06:20:23
288,650,009
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
t = int(input()) for _ in range(t): n = int(input()) arr = list(map(int, input().split())) c = 0 a = [] k = 0 s = "" j = 0 arr.append(0) for i in range(n): if arr[i] + 1 == arr[i + 1]: c += 1 else: if c >= 2: a.append(i - c) ...
[ "rahulbhl22@gmail.com" ]
rahulbhl22@gmail.com
8eec23979ec9fcc44c6bacbbf8057fce1794ea86
46b4670990ee48a0c4e28d155d6cd10069acbf0b
/django_project/auth_app/auth_backends.py
c5ee272186f54f198b093fad19c573bb39bd340c
[]
no_license
mikibouns/django_project
e011a06dfbee626561b7cdf9341b89aaccfbbe84
0797d73b5ae92f07e210e365a40eddd2965da836
refs/heads/master
2020-04-22T22:57:30.290325
2019-04-05T08:39:28
2019-04-05T08:39:28
170,724,459
0
0
null
null
null
null
UTF-8
Python
false
false
1,213
py
from django.contrib.auth.backends import ModelBackend from django.contrib.auth import get_user_model from django.contrib.auth.hashers import check_password class UserEmailBackend(ModelBackend): ''' Класс-обработчик для аутентификации пользователей по email-адресу. ''' def authenticate(self, reques...
[ "mikibouns@gmail.com" ]
mikibouns@gmail.com
afec6ff7cb948c37315e39f43f5cc45300ea961e
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/surface/builds/worker_pools/update.py
903d79a17921d38c35943f2dfa7934dd354f2143
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
12,000
py
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
2af7d3345e7878e5745045fa9d0cc15efba802d3
8e7e9aaf06fed4e5be52f61462a40539c55d0f76
/Chapter03/wifi_lookup.py
191b4060e6064134d820b48c18240f5a011382c0
[]
no_license
CodedQuen/Python-Digital-Forensics-Cookbookk
2809ed1680958250a139c22f8a33b5512b608d98
f69e56d4f2f88e71a74dc538c7b3a934ee014369
refs/heads/master
2022-06-06T10:10:36.288517
2020-05-04T03:06:39
2020-05-04T03:06:39
261,067,063
0
0
null
null
null
null
UTF-8
Python
false
false
7,612
py
from __future__ import print_function import argparse import csv import os import sys import xml.etree.ElementTree as ET import requests """ MIT License Copyright (c) 2017 Chapin Bryce, Preston Miller Please share comments and questions at: https://github.com/PythonForensics/PythonForensicsCookbook...
[ "noreply@github.com" ]
CodedQuen.noreply@github.com
10f690a027049caa2813a2f144a56cf5d2877084
fefbfda2c228cef91866c79a402c7f58ae250758
/src/sagemaker/deserializers.py
11b0557d9eb8bbbd3d933caeeea88b071fcab8a8
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
TylerADavis/sagemaker-python-sdk
45b871c058d794a1a3d16b2ac0ec4ddaafd19dad
2cc9bc3f76a91cbd1b3d54f426a5cd158d5cc3dc
refs/heads/master
2023-02-03T03:34:19.982333
2020-12-14T20:19:24
2020-12-14T20:19:24
321,477,987
0
0
Apache-2.0
2020-12-14T21:42:48
2020-12-14T21:32:09
null
UTF-8
Python
false
false
11,933
py
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
[ "noreply@github.com" ]
TylerADavis.noreply@github.com
0445ea582c61d35c6eefd8882991e0c018529aec
1e987bd8b8be0dc1c139fa6bf92e8229eb51da27
/deeplearning/ml4pl/models/lstm/lstm_base.py
fa9d858d66086a49b8e14f77d5252d3ef5008e2b
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
tszdanger/phd
c97091b4f1d7712a836f0c8e3c6f819d53bd0dd5
aab7f16bd1f3546f81e349fc6e2325fb17beb851
refs/heads/master
2023-01-01T00:54:20.136122
2020-10-21T18:07:42
2020-10-21T18:09:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,806
py
# Copyright 2019-2020 the ProGraML authors. # # Contact Chris Cummins <chrisc.101@gmail.com>. # # 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...
[ "chrisc.101@gmail.com" ]
chrisc.101@gmail.com
f36be7cd37466159d472a35b7d27a300b311482a
f1cf6774e112443b117177b6c0cc28b2ddc22d3f
/pootle_offline_tm/utils.py
bef13af4dba10c7d89ed1b0f8ec7ebbfaee22f9a
[]
no_license
ta2-1/pootle_offline_tm
2130665f119a16e28ea145a8e43132651f982302
b1fd09ee5a9e79ee1ed61c2bc43c60a7170cfe3f
refs/heads/master
2021-01-01T05:01:21.363513
2017-01-10T15:26:18
2017-01-10T15:27:56
77,386,966
0
0
null
null
null
null
UTF-8
Python
false
false
2,754
py
# -*- coding: utf-8 -*- # # Copyright (C) Pootle contributors. # # This file is a part of the Pootle project. It is distributed under the GPL3 # or later license. See the LICENSE file for a copy of the license and the # AUTHORS file for copyright and authorship information. import os from io import BytesIO from zipfi...
[ "taras.semenenko@gmail.com" ]
taras.semenenko@gmail.com
5cdfa380d272b30f0cb78eaf6b88c7afd5ccc3f3
89b51b80f9f584478685ec00859ec7bfc88b11a8
/ocr.py
d0a18f165f8189b7be4394ee2b91532b95bb9182
[]
no_license
wenxueliu/ocr
fc57ef1efb05c0139de190f761b37a22a0019f1d
2c14193c7173b1ba696e2f8bccdbb0ba6febf427
refs/heads/master
2020-03-24T01:17:31.972692
2018-07-26T16:12:01
2018-07-26T16:12:01
142,329,504
0
1
null
null
null
null
UTF-8
Python
false
false
28,984
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # top 1 accuracy 0.99826 top 5 accuracy 0.99989 from __future__ import print_function import os # 这里可以根据系统读取或手动配置 os.environ["CUDA_VISIBLE_DEVICES"] = "0" import random import tensorflow.contrib.slim as slim import time import logging import numpy as np import tensorflow...
[ "wenxueliu73@163.com" ]
wenxueliu73@163.com
55b7082d67be21ae6157ae9cfa628929ec809bca
e568c48036d03bf3e9460e2c68e86aa2308a2df1
/NormAngle.py
5d1d7c0e5e5693e374279f61eb40bc0f5943c330
[]
no_license
viniciusmecatronica/ia368w3
5e69c9cddcea44ee1613d96cde0e50f6948608b1
24787bbf2308777ef723624c8132c7a366bd3712
refs/heads/main
2023-08-14T08:11:30.937985
2021-09-28T00:01:49
2021-09-28T00:01:49
411,076,168
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
import math def NormAngle(angle): # angle em radianos angle = angle % 2*math.pi if angle > math.pi: angle = angle - 2*math.pi elif angle < -math.pi: angle = angle + 2*math.pi return angle
[ "vinicius.mecatronica@gmail.com" ]
vinicius.mecatronica@gmail.com
682a18dcde6b43d012392650160f05e122fa7ea3
3ce5370856ddef7c5b34540ebc5bf2fc5095bc48
/main.py
1b168dffa9a76708ae3c55ab32fe6014841550a3
[]
no_license
FERNANDOCEVALLOS55/PYTHON-CEC
6982d954b803f94e45890342dc659eac5fb71814
d8f7037257dc7fe7aeb2d5c903a56015ffbe7066
refs/heads/main
2023-07-10T08:42:41.083398
2021-08-10T20:17:27
2021-08-10T20:17:27
393,166,054
0
0
null
null
null
null
UTF-8
Python
false
false
114
py
# -*- coding: utf-8 -*- """ Created on Thu Aug 5 19:56:52 2021 @author: Fernando """ import modulo
[ "noreply@github.com" ]
FERNANDOCEVALLOS55.noreply@github.com
8ba7becc883ec3fb3caf9d0a3e4df4e650b1a3f6
d65cbeaf27d89a49c87d4ad3d8c5f14b086f2f9a
/index/views.py
959875cfcd0e9935c5dbcd7e89e36034feb5940d
[]
no_license
Joovo/django-backend
fb464999aa948aba5bc1a12cc416bf5f9e960fda
d354e5db69d482da453db4b8523cfb00591e2616
refs/heads/master
2020-05-27T19:43:02.513892
2019-07-23T11:55:58
2019-07-23T11:55:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,818
py
import json import os import pandas as pd from django.shortcuts import render from django.http import FileResponse, HttpResponse # Create your views here. import output, PL_parse, fix_data from pyecharts.globals import ThemeType import json from random import randrange from django.http import HttpResponse from rest_...
[ "wohfacm@gmail.com" ]
wohfacm@gmail.com
be166e9147de70c62d3f58a25394cfa3dbf8ba87
6469e5689c5888481a5eb1c2d37e057c42e2afc3
/biolink/api/link/endpoints/associations_from.py
068338308ebe6c4ba78cebb9d5f045be2ad9c4f7
[]
no_license
othreecodes/biolink-api
66e2b171da0f112f124c5adc8bf2a3a23d78ce1a
37761acba24ff5045fb65b16b009fdaa0fafa03e
refs/heads/master
2021-05-09T00:34:32.199397
2018-01-31T22:10:08
2018-01-31T22:10:08
119,743,095
2
0
null
2018-01-31T21:03:53
2018-01-31T21:03:52
null
UTF-8
Python
false
false
3,655
py
import logging from flask import request from flask_restplus import Resource from biolink.datamodel.serializers import association, association_results from biolink.api.restplus import api from ontobio.golr.golr_associations import get_association, search_associations import pysolr log = logging.getLogger(__name__) ...
[ "cjm@berkeleybop.org" ]
cjm@berkeleybop.org
9a9ea9973dc186678018ea7bebd5e75d86d5c051
0a360e2bf69497478dc33d274d0ff40c3337f5c1
/posts/views.py
df099283c7e497f7de7e5473df47269e667f5fb0
[]
no_license
Sava777cool/md_board
aab9ab21c97d2aa81fce17fe7c16b5b7b8290f51
5de064a769fecbdacc2146e2ad0ed94c1b05b073
refs/heads/main
2023-08-12T17:48:15.071547
2021-09-30T11:03:54
2021-09-30T11:03:54
412,026,665
0
0
null
null
null
null
UTF-8
Python
false
false
149
py
from django.views.generic import ListView from .models import Post class HomePageView(ListView): model = Post template_name = 'home.html'
[ "sava777cool@gmail.com" ]
sava777cool@gmail.com
679f773b21aae8364a516f0bdeee3d3c1f01f0b5
d35f566a70e725a20741b2ddcead89c2858ba8de
/2pt.py
f6b2e58889bd8b058fa3f787bb3b6f1b44b10a4e
[]
no_license
original-standard/baryon
a58281f9a2c5027293ad8fcd8126e5ae7f7bd22e
604329c7983fac9ce859427f551df6613abf3a1b
refs/heads/master
2020-06-03T00:38:16.390590
2019-07-22T12:37:55
2019-07-22T12:37:55
191,363,683
0
0
null
null
null
null
UTF-8
Python
false
false
2,553
py
import sys import glob import read import read_3pt_V import numpy as np import utils import gc from multiprocessing import Pool from memory_profiler import profile argvs = sys.argv org = "../srcX*/*/nuc3pt.dat.*x0y0z0t0" org2 = "../srcX*/*/nuc3pt.dat.*x64y64z64t64" org3 = "../srcX*/*/nuc3pt.dat.*x16y48z16t16" org4 =...
[ "tsukamoto@nucl.phys.tohoku.ac.jp" ]
tsukamoto@nucl.phys.tohoku.ac.jp
92f8fb6e5871b18adc000d139f6b985917318f5a
89afb47648305068fa7ca75164052da20c7c7eb4
/core/participant.py
3f2f4852cd44bae79844df23cdf6c20c329d3133
[]
no_license
cclague/RaceDB
a0bc21c750049a0bf0d2f79fc1e9f88c60775b01
e760138436d1f9ee0745bf58e10b68ebc99dc8a9
refs/heads/master
2023-01-30T12:49:34.707725
2020-12-08T21:37:28
2020-12-08T21:37:28
319,435,453
0
0
null
2020-12-08T21:37:29
2020-12-07T20:24:27
null
UTF-8
Python
false
false
73,673
py
import uuid from subprocess import Popen, PIPE import traceback import operator from django.utils.translation import ugettext_lazy as _ from django.utils.safestring import mark_safe from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from .views_common import * from .views import BarcodeScanForm,...
[ "edward.sitarski@gmail.com" ]
edward.sitarski@gmail.com
f9604874023a6ce599002e319036aa9f3b020ee1
d619e1653f3e7c498e7df728f18351e6a669919f
/ECS 152A/Project 1/UDPPingClient2.py
6590d2059899f192cedeaeb76e5817dc445214b3
[]
no_license
richardok24/UC-Davis
7c6371ccae5e95faeb0bd8bf0b7706493b8cc720
c93ff70aa190503a28efce05416922cd978820f4
refs/heads/master
2021-08-04T00:36:01.267568
2018-10-13T23:15:09
2018-10-13T23:15:09
136,268,383
0
0
null
null
null
null
UTF-8
Python
false
false
893
py
from socket import * from time import * from datetime import * serverName = 'localhost' serverPort = 12000 daysOfWeek = {"Mon": 'M', "Tue": 'T', "Wed": 'W', "Thu": 'R', "Fri": 'F', "Sat": 'S', "Sun": 'U'} clientSocket = socket(AF_INET, SOCK_DGRAM) clientSocket.settimeout(1) for i in range(1, 11): c...
[ "noreply@github.com" ]
richardok24.noreply@github.com
d6e53802abe18fd58b79466f4e5b581f8311cc8f
b864b992187e2e1c5c8da6fdabeeab5040058fe9
/Python Example/python 100 examples/064.py
5d0b0242ccab80007fa668c36eec6b037ee30270
[]
no_license
Mr-Phoebe/ProgramLanguage
5384afeef20c8a12cd89cf3720beb0337bd38fc9
1588aea62e15304339efb73d55653be1b4e57156
refs/heads/master
2023-02-06T11:59:06.272680
2023-02-06T04:00:14
2023-02-06T04:00:14
65,252,634
52
37
null
null
null
null
GB18030
Python
false
false
630
py
# -*- coding: UTF-8 -*- ''' 题目:利用ellipse and rectangle 画图。 1.程序分析: 2.程序源代码: ''' if __name__ == '__main__': from Tkinter import * canvas = Canvas(width = 400,height = 600,bg = 'white') left = 20 right = 50 top = 50 num = 15 for i in range(num): canvas.create_oval(250 - right,250 - lef...
[ "whn289467822@outlook.com" ]
whn289467822@outlook.com