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
d281c4b57c08b870a96dfa3c980282743fd1e42b
3fbc1f512bb270ceaaa44bb36bfda520169865f0
/tools/jlinkflash.py
7478c6d833fe69386a3a915b8e3e89e2a1f322ec
[]
no_license
trigrass2/stm32f10xx_freertos_cpp_demo
9771d7825f1df77341fbb14698ce49855fde195e
9b2d2734bcf948d9964477385d4c3e51dc10b83e
refs/heads/master
2021-01-24T20:14:33.039109
2014-05-23T16:44:57
2014-05-23T16:44:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
647
py
#!/usr/bin/env python import os,sys,pexpect loadfile=os.popen('ls *.bin').read().rstrip('\n') child = pexpect.spawn('JLinkExe') child.logfile = sys.stdout child.expect('J-Link>') child.sendline('si 1') # switch to SWD child.expect('J-Link>') child.sendline('speed 4000') child.expect('J-Link>') child.sendline('devic...
[ "kaiwuluo@youremail.com" ]
kaiwuluo@youremail.com
702573394725d49e7bb50f8a1fc3e7d85cb5f416
bb9040d34b3f297e7a35a4aac692ff3bd1a275a1
/segment.py
181ae1b2665b47d6aee1666c44b56d86fbc4041c
[]
no_license
Farah-Boun/3D_UNet_brain_segmentation
d2e1645e50c68842bc156f59c367f00b7a5c1940
b44a6f079a5264b250731529d12fd9bad3fa9efa
refs/heads/master
2023-07-30T13:33:40.396847
2021-10-03T07:42:30
2021-10-03T07:42:30
399,537,627
1
1
null
null
null
null
UTF-8
Python
false
false
1,990
py
import os import random import datetime from glob import glob import h5py import json import pandas as pd import numpy as np import matplotlib.pyplot as plt import keras.backend as K import keras import nibabel as nib from keras.utils import np_utils from keras.callbacks import ModelCheckpoint,Callback,EarlyStopping,C...
[ "gf_bounsiar@esi.dz" ]
gf_bounsiar@esi.dz
6dd8a41262ec87d8286028a969c7d6f182b407b1
68a52ad1df836c9f6d922515b2f896b6928ce6a0
/SafetyProductionSystem/weekworktask/migrations/0005_auto_20190225_1120.py
48e63ae27db7629622745b675ecbae9443f84283
[]
no_license
Chuazhen0/SafetyProductionSystem
1141f845e04b032ff2a230c8def26066f061600c
442d5df3818d43aebb9830f2456c73018aae2acf
refs/heads/master
2020-05-20T12:47:46.365020
2019-05-08T09:56:01
2019-05-08T09:56:01
185,579,244
0
0
null
null
null
null
UTF-8
Python
false
false
1,873
py
# Generated by Django 2.0.5 on 2019-02-25 11:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('weekworktask', '0004_auto_20190214_1558'), ] operations = [ migrations.AlterField( model_name='weekworktask', name='...
[ "Caohuazhenrn@163.com" ]
Caohuazhenrn@163.com
b95d40f58911099531db3ced5971fa436059e4c8
e6d5d8b109addce1f40d63fc85c83433ddd516a3
/bootstrap/builder/Highlighter.py
0bc6e11f3250bcb24b3eec97e6bcb77162b70fa6
[]
no_license
leviathanch/coriolis
fcaa75bcc931e144129858a8f1f30424cac330d3
0930660a1f4f74cbfc2238d0107d98a62dcc662c
refs/heads/master
2021-04-27T05:57:32.747915
2015-10-02T13:59:01
2015-10-02T13:59:01
122,604,383
2
1
null
null
null
null
UTF-8
Python
false
false
3,730
py
# -*- mode:Python -*- # # This file is part of the Coriolis Software. # Copyright (c) UPMC/LIP6 2012-2015, All Rights Reserved # # +-----------------------------------------------------------------+ # | C O R I O L I S | # | C o r i o l i s / C h a m s B u i l d ...
[ "Jean-Paul.Chaput@lip6.fr" ]
Jean-Paul.Chaput@lip6.fr
ab99f3c5dfffdf896a4fa238fbecac93667db90b
2c98c86c88d273c9127ee5efc00f0b7496c19b97
/goto.py
4dcafc65213636f3d7191c43396a6b92f3400672
[]
no_license
BYachnin/PymolScripts
9bd072281af914cc91f3e3fa72166304997cfc28
50348c856c0eb5cdb6e99090f081888dcc2cfbe1
refs/heads/master
2021-07-16T16:04:27.220875
2020-08-20T15:56:21
2020-08-20T15:56:21
66,492,144
1
0
null
null
null
null
UTF-8
Python
false
false
1,006
py
from pymol import cmd import platform if (platform.node() == "BrahmL"): def goto(pathname): path_select = { "drive": r"E:\Users\Brahm\Documents\Google Drive", "design": r"E:\Users\Brahm\Documents\Google Drive\design", "pdbs": r"E:\Users\Brahm\Documents\Google Drive\PDB Files", "dropbox": r"E:\Users\Brah...
[ "brahm.yachnin@rutgers.edu" ]
brahm.yachnin@rutgers.edu
de63f5be05fb160c05847158071ed0f615ee7519
5922398212b6e113f416a54d37c2765d7d119bb0
/python/Binary Tree Serialization.py
50267542ef2fe76b1e4ff14b7fd8af5aabe2c3f3
[]
no_license
CrazyCoder4Carrot/lintcode
e777f73e1fdfe3b8abc9dbfc07d26602bf614151
33dcd7f0e2d9bee58840a3370837cb2db82de1eb
refs/heads/master
2021-01-09T20:38:59.813198
2017-01-16T22:34:26
2017-01-16T22:34:26
60,287,619
1
0
null
null
null
null
UTF-8
Python
false
false
2,258
py
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: ''' @param root: An object of TreeNode, denote the root of the binary tree. This method will be invoked first, you should design your own algorithm ...
[ "liuzhenbang1988@gmail.com" ]
liuzhenbang1988@gmail.com
b501b234704c1f3a81b8e499e774348000bb4938
5b129c3f71ee81a78fd2eb9807f1bcc1ebb7a44d
/Client/InfoForm.py
3eabad06e558aafb132bcf7779084dd24012b7df
[]
no_license
temchik00/messenger
d1a51e3a04f3d7e08dc9f4bbfb5b26616711e68e
d4e01a933de7c49336a88cd9bad46c8fad69d68f
refs/heads/main
2023-02-04T03:00:17.371255
2020-12-28T14:36:30
2020-12-28T14:36:30
322,005,891
0
0
null
null
null
null
UTF-8
Python
false
false
4,206
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'InfoForm.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # 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 import QtCore, QtG...
[ "temchik00@yandex.ru" ]
temchik00@yandex.ru
d4f20e9acf308afc5b8ba7c7c1d22c221c2d3732
360e295b61e034e3cdc01e05221327050f423214
/scraper_okd.py
0cd86327a06bc0b0c639cfd46ad740b347fba2b7
[]
no_license
HoverHell/grocery_scrape
b8c19a45fcdab87086c9925b2851877b6668dd0c
d5df1de63a3847d9ef7895f98baee908ca594e28
refs/heads/master
2020-03-29T19:49:02.475380
2018-10-09T13:47:22
2018-10-09T13:47:22
150,282,294
0
0
null
null
null
null
UTF-8
Python
false
false
12,647
py
#!/usr/bin/env python3 """ ... """ # pylint: disable=cell-var-from-loop,fixme,arguments-differ import re from scraper_base import ( os, json, urllib, bs4, LOG, parse_url, ) from scraper_base_proxied import WorkerBaseProxied class WorkerOkey(WorkerBaseProxied): url_host = 'https://www.okeydostavk...
[ "hoverhell@gmail.com" ]
hoverhell@gmail.com
8c360b2ebe712c7c5eeed552fb79602d928eb1db
f50f1aa1f8f139d546db3230a1cb1f53043fd9e6
/programming/language/python/python-bytecodeassembler/actions.py
0f90a781683703bda9374320df99ee33d100a515
[]
no_license
pars-linux/corporate2
7887961d1552d39bc3b0bef4a60fd3413d9b82bb
14d1eacfc824fb8d0bff8173e7ac06b36b88d10d
refs/heads/master
2020-05-26T15:02:12.005654
2017-02-27T03:07:14
2017-02-27T03:07:14
82,476,084
4
0
null
null
null
null
UTF-8
Python
false
false
466
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2010 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt from pisi.actionsapi import pythonmodules from pisi.actionsapi import get WorkDir = "BytecodeAssembler-%s" % get.sr...
[ "fethican@420bcd57-4a62-4fd6-832e-5ede16c90cc9" ]
fethican@420bcd57-4a62-4fd6-832e-5ede16c90cc9
1da821b07d4493627d0618e242e96788e9a3792e
e2778e932305bdd8a013434e6e539d9036d4cdf9
/yuehu/apps/article/management/commands/revise_article_like_number.py
0434174c925880de3eb84fa557095c5183c34a3d
[]
no_license
shihbas/blog-yuehu
791458579cf6d2866aa06fe9b7c480efabf661ce
f96b288aa1286c5b5f40dc2f351ead4e7af9d784
refs/heads/master
2022-12-17T06:51:00.863226
2019-02-18T09:15:09
2019-02-18T09:15:09
171,250,399
0
0
null
2022-12-08T03:01:10
2019-02-18T09:07:50
Python
UTF-8
Python
false
false
880
py
# coding=utf-8 from django.core.management.base import BaseCommand from django.db.models import Count from article.models import Article, LikeArticleRelation from helper.logs import get_logger logger = get_logger(__name__) class Command(BaseCommand): def add_arguments(self, parser): pass def han...
[ "948945476@qq.com" ]
948945476@qq.com
377038a8a47f34347b098bdf93e6939ded2e4d52
8c2f04a224fdb4793cc90784c0f3bcce3de96a98
/lab4/generate_html.py
37d7da47fbbfdc1b0e60ba2bab6e41fea395e27f
[]
no_license
shao-chi/NCTU-1082-NLP-Lab
2e9dd1631d580b978deaf6a50f0ff57b9766a4de
4001e8efad8b5fea93942d78558f3e15dae1f2ec
refs/heads/master
2023-02-27T14:51:55.065358
2021-02-09T02:57:07
2021-02-09T02:57:07
266,508,273
1
0
null
null
null
null
UTF-8
Python
false
false
2,649
py
import pandas as pd url = 'https://gist.githubusercontent.com/bshmueli/c99fc0abf56460e644bd610bf3024e83/raw/720285d133c85d94e0aa3fe3edcc199f6d99e3f7/lab4-data.csv' corpus_df = pd.read_csv(url) corpus = corpus_df.values[:, 1] idx = corpus_df.values[:, 0] for i in range(len(corpus)): html = f'''<!doctype html> <h...
[ "shaochi1225@gmail.com" ]
shaochi1225@gmail.com
22676be9a7e41827dc3b5f8a720a42d8edd1371c
1855cc807105a92624fca3e3c6df488b286c8298
/Flask_blog/forms.py
9c63c3dc79b9ec14f7bfc9d23af0c76be96287e8
[]
no_license
adityakumartraveloka/test
64ea1400ecd185d3eafa52455cd9a6e430abd22f
d7a49d6a9a86985db482d1e40e1e9cfc6def918e
refs/heads/master
2020-12-13T10:34:45.141379
2020-01-17T11:51:18
2020-01-17T11:51:18
234,391,144
0
0
null
null
null
null
UTF-8
Python
false
false
611
py
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, BooleanField from wtforms.validators import DataRequired, EqualTo, Length, Email class RegistrationForm(FlaskForm): username = StringField("Username") email = StringField("Email") password = PasswordField("Passw...
[ "aditya.kumar@traveloka.com" ]
aditya.kumar@traveloka.com
c338ad28fca47ab739b252dbd5bc68524814dcf2
fcbb9f4f3f0836bf52551a389c0af7981171dafd
/lets_ride/views/my_requests/api_wrapper.py
fadc4b184fb9ee06e9b98d5cc161ac961b967c62
[]
no_license
mukunda1518/lets_ride
2b073209422afe1b11daa1b54b9bb1b886f33e68
42310ac82c5de9578903252bbbc41cc850f41bc6
refs/heads/master
2022-11-22T17:42:29.005874
2020-06-27T10:12:58
2020-06-27T10:12:58
269,610,061
0
0
null
null
null
null
UTF-8
Python
false
false
1,161
py
import json from django.http import HttpResponse from django_swagger_utils.drf_server.utils.decorator.interface_decorator \ import validate_decorator from .validator_class import ValidatorClass from lets_ride.storages.storage_implementation \ import StorageImplementation from lets_ride.presenters.presenter_impl...
[ "mukundapeddamekala123@gmail.com" ]
mukundapeddamekala123@gmail.com
8bb86a39f7266e6a988c353320e68938e755c600
e28dd7cb2020c71f823b8bf5d289d0542dc56b10
/properties/migrations/0003_auto_20210723_1604.py
163dc85d12aba39c6d0e9a1caa0a84fcfaad935a
[]
no_license
von2020/propertyBossLtd
57be9bc729665db58f66ef7654bd79e59ec64a63
a777feb07d951df847a46e09457a21a020021638
refs/heads/main
2023-06-28T22:24:41.061844
2021-07-28T09:03:19
2021-07-28T09:03:19
374,885,504
0
0
null
null
null
null
UTF-8
Python
false
false
2,496
py
# Generated by Django 3.1.2 on 2021-07-23 15:04 import cloudinary.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('properties', '0002_auto_20210722_1135'), ] operations = [ migrations.AlterField( model_name='featuredpr...
[ "orumwensey@gmail.com" ]
orumwensey@gmail.com
0343fcf7a0ecf13d0cf6070e68aaf6fa43ea727c
52b5773617a1b972a905de4d692540d26ff74926
/.history/stringMethods_20200707100259.py
8206fc5fa46489851f957ce0776ea9caca48fe98
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
def array(arr): newArr = [] for i in range(len(arr)): b = print(arr[i]) array(["[6,7,5]","[1,8]"])
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
43993bab2e47da5f2c5e71de47912194dd9b66ae
b3e42cd46c465e4eaaa52cf0b65a69e1bc95fbc3
/venv/bin/rst2xetex.py
d6b810524041b2ffe96b8b2d9846ba17b9536752
[]
no_license
taylorfio/SecurityWebsite
43746869e9724dfd9431d8e3f1da0788b60f2f7c
215719932c5412e23b0512bf2e276b70aeca3ba5
refs/heads/master
2022-01-21T11:14:15.275588
2022-01-11T20:49:32
2022-01-11T20:49:32
186,540,744
0
0
null
null
null
null
UTF-8
Python
false
false
931
py
#!/Users/taylorfiorelli/Documents/PycharmProjects/FlaskWebsite/venv/bin/python # $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ # Author: Guenter Milde # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code. """ try: impor...
[ "taylor.fiorelli@greenwoodcollege.com" ]
taylor.fiorelli@greenwoodcollege.com
6fbb8b3391dd3399056655f8afa2daf30a241871
622ed9bb9946e30f965a6ce4c41ffa6ca74545d7
/api/ppp/migrations/0002_auto_20200711_1252.py
f3c33d6c8779e695e4ea2b7def25942e9ebcb30e
[]
no_license
alined908/ppp
2e26843f29d2c7418be009a0f1857a89c6971b2e
120dad37c9d605bd20304714472acd52c2f7f908
refs/heads/master
2022-11-18T02:36:11.139547
2020-07-11T20:29:56
2020-07-11T20:29:56
278,732,028
0
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
# Generated by Django 3.0.8 on 2020-07-11 19:52 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('ppp', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='loan', ...
[ "daniellee0228@berkeley.edu" ]
daniellee0228@berkeley.edu
ccb9f579f24f0764934e3611d49e9b06a7606570
738aca7858ccfbe6fda2d38565a2a36d8b650423
/ma3ana_kam_app/migrations/0006_auto_20150108_1026.py
45e2f676af7f2170b0b381e5f8103aa1d1963cf7
[]
no_license
EmadMokhtar/ma3ana_kam
73e6b8044e554b4078e2e0990f12623177fa744f
2a427c2d4eb37d381e0226b5a73a4eaf86fbffe9
refs/heads/master
2021-01-22T09:16:50.108745
2015-09-05T12:56:53
2015-09-05T12:56:53
41,207,071
0
0
null
2015-08-22T13:25:29
2015-08-22T12:59:58
Python
UTF-8
Python
false
false
1,748
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('ma3ana_kam_app', '0005_au...
[ "emad.m.habib@gmail.com" ]
emad.m.habib@gmail.com
ced6dc8b8ebd30aadaaf34a1c26deb14334d2401
e4aac9ca8826e8b7e9b6af806e0e0545382e9d65
/html_parser.py
8e73ff5abe8078cb1c19fe201260df2e119188cb
[]
no_license
fsickle/douban_spider
7e80f8a9941638c99b7f088e650c89bd296c4f98
0623a823d8ff11a9602bf8ca3440df269ea5dfea
refs/heads/master
2020-03-21T04:27:01.108781
2018-06-21T02:25:39
2018-06-21T02:25:39
138,038,261
0
0
null
null
null
null
UTF-8
Python
false
false
1,036
py
from bs4 import BeautifulSoup import re class HtmlParser(): def parse(self, html): if html is None: return soup = BeautifulSoup(html,'html.parser') new_data = self.get_new_data(soup) return new_data def get_new_data(self, soup): data = [] ...
[ "wanghyscu@163.com" ]
wanghyscu@163.com
ddf082a606438d2b7b4eaa1c225de04615338997
4d99350a527a88110b7bdc7d6766fc32cf66f211
/OpenGLCffi/GLES3/EXT/AMD/performance_monitor.py
0ebc960e38c441205a44853cabf3e8f2a8205694
[ "MIT" ]
permissive
cydenix/OpenGLCffi
e790ef67c2f6c9877badd5c38b7d58961c8739cd
c78f51ae5e6b655eb2ea98f072771cf69e2197f3
refs/heads/master
2021-01-11T07:31:10.591188
2017-04-17T11:04:55
2017-04-17T11:04:55
80,312,084
0
0
null
null
null
null
UTF-8
Python
false
false
1,541
py
from OpenGLCffi.GLES3 import params @params(api='gles3', prms=['numGroups', 'groupsSize', 'groups']) def glGetPerfMonitorGroupsAMD(numGroups, groupsSize, groups): pass @params(api='gles3', prms=['group', 'numCounters', 'maxActiveCounters', 'counterSize', 'counters']) def glGetPerfMonitorCountersAMD(group, numCounter...
[ "cdenizol@gmail.com" ]
cdenizol@gmail.com
8862ca216e3e961860ffade08b0964f8b66e609c
f32ab50d75d38f2088d97d9205ca4999c87da871
/main.py
6f141f796960445bb87652cc6d8f595765acdfb8
[]
no_license
becseiszabolcs/f0004
6eb0af01ae1ffb928aab04915e8a727f82ad105f
ffa0b2463e15d940616f1a4bffd9269aa634a88e
refs/heads/master
2023-01-13T10:18:48.217239
2020-11-17T13:49:39
2020-11-17T13:49:39
313,853,592
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
print('a feladat\n') import f0004a print('\nb feladat\n') import f0004b print('\nc feladat\n') import f0004c print('\nd feladat\n') import f0004d
[ "becsei.szabi@gmail.com" ]
becsei.szabi@gmail.com
7710443aebc4b791c1b271971de63e85209a0221
133caf031b702a047166a311d0720bcc1fc3b332
/extract_features.py
f77d3052db9b648a9073f4ee3afcde7b282dfce9
[ "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
Kamino666/S2VT-video-caption
3f96d27a44dd4eb14a1f779d4961a8a5bfc0914e
cf0bd95e328dbc2e60b8b8887cf3182a45260a65
refs/heads/main
2023-06-11T21:54:09.092308
2021-03-19T01:04:36
2021-03-19T01:04:36
335,578,374
6
1
null
null
null
null
UTF-8
Python
false
false
6,597
py
import pretrainedmodels from pretrainedmodels import utils import torch import os import subprocess import shutil import pathlib as plb import numpy as np from tqdm import tqdm import json import argparse def extract_frames(video, dst): """ extract all frames of a video to dst :param video: path of video...
[ "516015417@qq.com" ]
516015417@qq.com
bb13231f9aae7da4c5b2abdbf83c6c30bc07505f
84784ef7333ae07ab36c9f40f604a6c1ac36ce17
/Functions and Write Commands.py
6fd0586f9f5221849bd999973c692ff775befaa3
[]
no_license
riteshtripathi2010/Python-Learning
cf530e929adacd21611ab05f2571049b2de11982
969ff1041cf25f5735ec5b20fd14ee26fa1bbc83
refs/heads/master
2021-07-07T01:07:00.951608
2020-10-16T15:39:58
2020-10-16T15:39:58
187,281,914
1
0
null
null
null
null
UTF-8
Python
false
false
9,467
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 30 19:05:45 2020 @author: riteshtripathi """ #Files and Functions #write a code and bring that code whenever i need it #File Handling #File Handling can Open, Close, Read, Write #f = open('kipling.txt','w') #even if this file isnt created, it will ...
[ "noreply@github.com" ]
noreply@github.com
2f8083908138a26a1c74293a8d1ff16a6f17f9a0
59b0e278e6b60582e5ff70be604fa8e955b9c697
/samples/demo_03.py
089d8b235b42b04de576b81be9d94cf2fe34bf85
[]
no_license
qq329999897/P3P4_API_LineTestFrame
0a18b52feb37df301f1eb7a60a7a096ecd6709f9
71de1fc23dc976c5965865f4eb79dd78559c531d
refs/heads/master
2023-01-05T14:48:35.546705
2020-11-01T01:52:59
2020-11-01T01:52:59
308,985,753
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
#!/usr/bin/env python # encoding: utf-8 # @author: liusir # @file: demo_03.py # @time: 2020/10/18 10:30 上午 import logging import time from logging import handlers logger = logging.getLogger('newdream') logger.setLevel( logging.DEBUG ) formatter = logging.Formatter('%(asctime)s - %(message)s') th = handlers.TimedRota...
[ "329999897@qq.com" ]
329999897@qq.com
da323515718efc4c0fab4919a8015c641a6a5a63
0b38e869cdf7a9000dc003d8102811967434d849
/thienlong/controlApp/migrations/0002_auto_20210430_1947.py
577a328287960f1034a2a8426a0fa2405ab665d9
[]
no_license
VIethoangnguyenle/DATN_DJANGO
736f274b8ff35f77eb5071f57b91bbcb701d85a2
7bf4bcaae2a897424ab0a2f00afbd8d9aa9e8c9e
refs/heads/master
2023-06-07T20:13:23.154510
2021-05-28T11:58:39
2021-05-28T11:58:39
363,155,420
0
0
null
null
null
null
UTF-8
Python
false
false
676
py
# Generated by Django 3.2 on 2021-04-30 19:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('controlApp', '0001_initial'), ] operations = [ migrations.AlterField( model_name='threshold', name='dut_net_error', ...
[ "viethoangnguyenle@gmail.com" ]
viethoangnguyenle@gmail.com
f906dee1846b5183da7d007e14a813efb563bdd1
1add2db91760d8dc41624d4a4db40b27f9afc1d2
/ussdframework/tests/test_quit_screen.py
a92d4a9c6353f1ee0e4c66123350617dc3c92c2f
[]
no_license
ezart/USSDFRAMEWORK
0427d2e37c1c34477d0aab65d2ad56380817f826
412dd2371d887e108834a1c897c50bb87d967b77
refs/heads/master
2023-03-16T18:30:32.912417
2020-02-20T10:31:42
2020-02-20T10:31:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
""" This test quit screen """ from ussdframework.tests import UssdTestCase class TestQuitHandler(UssdTestCase.BaseUssdTestCase): validation_error_message = dict( example_of_quit_screen=dict( text=['This field is required.'] ) ) def test(self): ussd_client = self.ussd_c...
[ "eliaskioni94@gmail.com" ]
eliaskioni94@gmail.com
91c93af3963faf34a737dbc67c53844835031679
f6b6038ecda9411e41cd46e330020156048cf89c
/train_network.py
28e6a86ef1a7de95a6a7b400aee4cb94d16cb511
[]
no_license
mnaruniec/GSN-Image-Classification
3e30745be361190c140005d85b1e666621cf9b4a
6d48b69a54c52a6a393ab06762ee3c28b4cfe921
refs/heads/master
2022-06-18T04:07:36.066381
2020-05-05T10:55:40
2020-05-05T10:55:40
256,276,781
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
from network import * def main(): trainer = None try: prepare_data_dir() trainer = CelebrityTrainer() trainer.train() finally: if trainer and trainer.confusion_matrix is not None: plot_confusion_matrix(trainer.confusion_matrix) if __name__ == '__main__': ma...
[ "micnar12@gmail.com" ]
micnar12@gmail.com
10bb32abb023447157a766575d4476a86ed88ecf
3863c069014bccc095e66d956af7900249ebf784
/ir/bm25_ranker.py
e7fec5bef3cb810a935fcf5ddbd098b108bb84e2
[]
no_license
asvishen/Factoid-Question-Answering
28403c3ef60b36b44e6efe3efdad74524a32a200
0516aebf5f80c6cfa51475ae2c32dea0ef325719
refs/heads/master
2020-12-03T02:01:29.614281
2013-05-31T20:57:18
2013-05-31T20:57:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,504
py
# -*- coding: utf-8 -*- ''' Rank candidate texts by their similarity to the query. @author: gavin hackeling ''' from __future__ import division from nltk import word_tokenize from math import log from collections import defaultdict class BM25_calc: def __init__(self, query, c): self.k1 = 1.2 sel...
[ "gavinhackeling@gmail.com" ]
gavinhackeling@gmail.com
410b9989382a4f8aa1248d40affccc169854c326
c8705e8f8797ebdd6c76e8aa697d7ed9da46f3c3
/colorpicker/models.py
177cab327cb231f450d3e90323b1f4c21f356eb4
[]
no_license
zokis/django-colorpicker
1cedcb511011c504165a687c19848140f3656562
f391341969a29e7de1dc1887ef9e9fadd8669216
refs/heads/master
2020-12-30T18:29:58.990911
2013-02-15T13:30:54
2013-02-15T13:30:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,336
py
# -*- coding: utf-8 -*- from django.core.validators import ValidationError from django.db.models import CharField from widgets import ColorPickerWidget from forms import ColorField as ColorFormField from utils import (is_valid_alpha_hex, is_valid_hex, is_valid_rgb, is_valid_rgba, rgba_to_alpha_hex, rgb_to_hex, hex...
[ "marcelo.zokis@gmail.com" ]
marcelo.zokis@gmail.com
31c8805acb94964e9727c888e6b71f3bacfefb7f
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/commotion/helpers.py
9e9244763a1c14490e6638133246a23eaba87248
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,875
py
import bpy def show_error_message(message): def draw(self, context): self.layout.label(message) bpy.context.window_manager.popup_menu(draw, title='Error', icon='ERROR') def shape_list_refresh(context): scene = context.scene skcoll = scene.commotion_skcoll if hasattr(scene, 'commotion_skcoll'): for s...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
36b27664015d8f503154f352cc14e48723ee8993
997a6d8c399b72283a8323144dab3ca8938422f2
/blog/models.py
592e3d51fb06bdcb54b2d1e7bbc0efa61fb459e6
[]
no_license
lshuining/blog-dome1
d1e71c1dcda964ea775af2365b6110e68d33c63e
962365280b9bad42a5fbbc28cbf5f6ed373cec91
refs/heads/master
2022-11-15T06:05:54.937099
2020-07-16T06:13:56
2020-07-16T06:13:56
280,069,369
0
0
null
null
null
null
UTF-8
Python
false
false
4,837
py
from django.db import models from django.contrib import admin from django.urls import reverse from django.utils.timezone import now # Create your models here. #---------------------------------用户--------------------------------------- class User(models.Model): username = models.CharField(max_length = 50) pass...
[ "enma@EnmanoMacBook-Pro.local" ]
enma@EnmanoMacBook-Pro.local
cffa0f30451e6cfcf9f73969d4d48ec441eca535
74f81a09aff8f894594ecb57fe6da36414aada77
/summary_analyses/automate_bed_callable.py
e0433bd70ed32dff5194120cf84bffe05ed0d019
[]
no_license
yuzhenpeng/parus_indel
06f4d478bdfbee0c799d0d53e499b3dd51c48066
a9a84b5bb8b7b210dc4ef8675e5c3b81bd41e458
refs/heads/master
2020-09-07T18:40:20.177274
2019-04-08T14:25:08
2019-04-08T14:25:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,175
py
#!/usr/bin/env python from __future__ import print_function import argparse from qsub import q_sub def main(): # argument parser parser = argparse.ArgumentParser() parser.add_argument('-call_fa', help='Callable fasta file', required=True) parser.add_argument('-chr_list', help='File of chromosomes to ...
[ "juhob@hotmail.co.uk" ]
juhob@hotmail.co.uk
1ea520488d5a49812631e336d2bdaaba77653309
d343025ce58b78f90b040d02fcfaa057a5a40b70
/winter_lab_4/CTask4a.py
2fc62d52ea2bc96f86d78a293a15b875f86f219a
[]
no_license
saipavans/programming_winter
3357aeb5acbc16616e32ccf3321f88eeb9e48e4a
1e8ef1324bfc5c03c3f14e422bb6fbd61f779fd5
refs/heads/master
2021-09-05T08:04:05.260595
2018-01-25T12:58:56
2018-01-25T13:40:18
116,180,858
0
0
null
null
null
null
UTF-8
Python
false
false
982
py
def group_anagrams(word_list): """ :param word_list: list containing words :return: dictionary with [(letter(sorted), occurence), ...] as key and list of words as values """ anagram_dict = {} for word in word_list: letter_count = {} anagram_dict_key = () for letter in...
[ "sp403250@dal.ca" ]
sp403250@dal.ca
3bab46b03d182f7a93ce0eb8b6d0c333be671ffb
065015ce73279aef441f3771a1253570853c6c95
/src_python/pythonsamples/test2.py
c924d7f6a91b7dd655510dffb0c56fd9bbf1f35d
[]
no_license
zheddie/samplecodes
5a4501875787f144f9849167183b12a19c86ae5c
71f12f49055c3fa2f66967bc6917045031e36163
refs/heads/master
2021-12-15T18:52:50.215809
2021-12-08T10:26:49
2021-12-08T10:26:49
211,623,187
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
#!/usr/bin/env python3 import torch from torch.autograd import Variable x = Variable(torch.Tensor([1]),requires_grad=True) w = Variable(torch.Tensor([2]),requires_grad=True) b = Variable(torch.Tensor([3]),requires_grad=True) y = w*x+b #y.backward() y.backward(torch.FloatTensor([2])) print(x.data,w.data,b.data) p...
[ "zheddie@163.com" ]
zheddie@163.com
2bcd8123b3607eb3188c9c89bc7809b6f3d29a3a
1988badc8dc55dda117d83394a0493053883d108
/PluralSight_UnderstandingTheFoundationsOfTensorFlow/WorkingWithImages/m4_image_transformations.py
11d229af329d845bc237446479905db024b23776
[]
no_license
Ronny019/MyRepo
09383bcef2fe03de52900c060b6511ffc1043153
6ac9c498290d81f0ed000dee0b928e57b8a08041
refs/heads/master
2023-03-07T16:50:40.734157
2023-03-05T23:10:17
2023-03-05T23:10:17
230,488,744
1
0
null
null
null
null
UTF-8
Python
false
false
2,275
py
import tensorflow as tf from PIL import Image original_image_list = ["./images/img1.jpg", "./images/img2.jpg", "./images/img3.jpg", "./images/img4.jpg"] # Make a queue of file names including all the images specified. filename_queue = tf.train.stri...
[ "mainak.pc@gmail.com" ]
mainak.pc@gmail.com
8b692184b386024af060eee707d4abc263e016b8
2b2ac45bd210a2dc9ba95ee8d43d72017148a060
/xml2df.py
36dab35727b7f753eed400c5226f6310de41f3e3
[]
no_license
luqiang21/small_useful_tools
f45c2e85f748d6e3c197b775051cb175059c409e
10e0f41e0293badb7f44daa0e4585a0d68f658bb
refs/heads/master
2021-01-17T12:29:41.766066
2018-01-08T23:20:29
2018-01-08T23:20:29
95,399,569
0
0
null
null
null
null
UTF-8
Python
false
false
1,174
py
'''read xml file as dataframe''' import xml.etree.ElementTree as ET import pandas as pd def xml2df(xml_file): xml_data = open(xml_file).read() root = ET.XML(xml_data) # element tree all_records = [] for i, child in enumerate(root): record = {} for subchild in child: record[...
[ "noreply@github.com" ]
noreply@github.com
e370eaf074072b423fd6a9fbfb8dde008b6e8314
bc33abea032914548e4e3de02b6a602a60d280de
/code/test.py
22cf33c6765de4f78046777ca9f433acc3987077
[]
no_license
nims11/Multi-Script-Ad-Hoc-Retrieval
3b868d25ef255f697cbe2f1f99ad2176c3821406
a5e246e2aded51fbc78085d9f53f8ab29d3e818f
refs/heads/master
2021-01-10T06:24:44.796571
2015-12-15T11:06:08
2015-12-15T11:06:08
48,037,319
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
import sys def transAndSearch(query): print repr(query) idx, query = query.split(query[2],1) sys.stderr.write(query+'\n') if __name__ == '__main__': # query = sys.argv[1] with open(sys.argv[1]) as f: for line in f.read().decode("utf-8-sig").encode("utf-8").strip().splitlines(): t...
[ "nimeshghelani@gmail.com" ]
nimeshghelani@gmail.com
49addc061966d8cefd5d2b8e78afff7ce641a13d
f24bc3f168e4881df35b95d00fd6663b3f7cf281
/2010/J4.py
5838bf79609445c14503f6318b7a544d6adee2b9
[]
no_license
Cynthia7979/CCC-prep
d5d0efce5fa409d851f558ee1fda10d7dc48c95b
9c913df7f289ac92f55c5ce9fda38ee7bfb24439
refs/heads/main
2023-03-02T13:06:44.819383
2021-02-03T11:48:02
2021-02-03T11:48:02
305,899,736
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
while True: length, *sequence = [int(i) for i in input().split()] if length == 0: break if length == 1: print(0) continue # Build change sequence changes = [] found = False for i in range(1, length): changes.append(sequence[i] - sequence[i-1]) ...
[ "CynthiaWang7979@hotmail.com" ]
CynthiaWang7979@hotmail.com
73cbe256c8815b70a44059643549e980605a606c
0a78bb582aba3e31a26375894fcd61727bae7c40
/openshift/wsgi/application
24662d156e86ccee62e94dc33afb9b19ba292ed2
[]
no_license
cyberved/simple-web-proxy
b71a8d72be711514626d48f892a03409527afb3f
98ea58943bb6798a08bfaedf14b37a8fb23b86ed
refs/heads/master
2016-09-06T04:05:27.881329
2014-03-03T08:41:29
2014-03-03T08:41:29
17,333,988
1
1
null
null
null
null
UTF-8
Python
false
false
276
#!/usr/bin/python import os import sys virtenv = os.environ['OPENSHIFT_PYTHON_DIR'] + '/virtenv/' virtualenv = os.path.join(virtenv, 'bin/activate_this.py') try: execfile(virtualenv, dict(__file__=virtualenv)) except IOError: pass from app import app as application
[ "cyberved@gmail.com" ]
cyberved@gmail.com
89476a745921e2247464d59ad3914c7f0d653c86
1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc
/venv/lib/python2.7/site-packages/ansible/module_utils/network/f5/icontrol.py
57d0bb727b98f408e9834e15d83b009a114b7b1b
[ "MIT" ]
permissive
otus-devops-2019-02/devopscourses_infra
1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c
e42e5deafce395af869084ede245fc6cff6d0b2c
refs/heads/master
2020-04-29T02:41:49.985889
2019-05-21T06:35:19
2019-05-21T06:35:19
175,780,457
0
1
MIT
2019-05-21T06:35:20
2019-03-15T08:35:54
HCL
UTF-8
Python
false
false
18,370
py
# -*- coding: utf-8 -*- # # Copyright (c) 2017, F5 Networks Inc. # GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type import os try: from StringIO import StringIO except ImportError: ...
[ "skydevapp@gmail.com" ]
skydevapp@gmail.com
36f3e1e0fa335a9698f5d5c5f343a01090f79e9a
5aeaf0904a5c9ed30c1a7c487cfc750b2e0a96e4
/train.py
0df119db784daa8064ddbd6a423a641b6903ee01
[ "MIT" ]
permissive
kevintzd/TargetDetection
2488daa37b84f60431922037ac82cf88005a0fce
be4aebb3774be70fe37b1f3df2815cba024b6eae
refs/heads/main
2023-03-08T22:34:41.276197
2021-03-01T11:32:43
2021-03-01T11:32:43
343,380,890
0
0
null
null
null
null
UTF-8
Python
false
false
8,269
py
import time import numpy as np import tensorflow as tf from tensorflow.python import pywrap_tensorflow import lib.config.config as cfg from lib.datasets import roidb as rdl_roidb from lib.datasets.factory import get_imdb from lib.datasets.imdb import imdb as imdb2 from lib.layer_utils.roi_data_layer import RoIDataLay...
[ "34699781+kevintzd@users.noreply.github.com" ]
34699781+kevintzd@users.noreply.github.com
5182291a21fbbd2f3f4c0d7397adfa7e1a58b3ef
e89394839dcc1faae411537e26e27354a4eeee72
/Coursera/to_json.py
ff3d6def524412755dbdea8e9504209b053e5eaf
[]
no_license
Felixiuss/solving-tasks
cb80a20feecf7e793d56c78ef1feac09f7360421
e83c168bffa0134f864b4438203d86c870211c76
refs/heads/master
2020-05-04T21:10:30.652236
2019-04-04T10:16:10
2019-04-04T10:16:10
179,467,207
0
0
null
null
null
null
UTF-8
Python
false
false
442
py
from functools import wraps from json import dumps def to_json(func): @wraps(func) def wrapper(*args, **kwargs): result = dumps(func(*args, **kwargs)) return result return wrapper @to_json def get_data(): return { 'name': 'Roman', 'age': 35, 'wight': 75 }...
[ "ramses767@gmail.com" ]
ramses767@gmail.com
f6f1af7ac544201d877390d9f90873453dc94024
704d1d79c1eb6d5cb18ab43d18fae6f6a2d9d8dc
/app/recognize/urls.py
dddbf90bb73cf67e513cf225baf0aa23b4603811
[ "MIT" ]
permissive
NCSUWebClass/fall14-recognize4
1a54d06d3635e135e1af7d1a186226c9d2a5446d
fa8c459e20b47f1808a7c1b6f06ab4fddb7d33c9
refs/heads/master
2016-09-05T18:32:56.935557
2014-12-12T19:43:44
2014-12-12T19:43:44
27,476,643
1
1
null
null
null
null
UTF-8
Python
false
false
547
py
from django.conf import settings from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.contrib import admin from recognize import views admin.autodiscover() urlpatterns = patterns("", url(r"^json/albums/", include("recognize_albums.urls")), url(r"^admin/",...
[ "miles@bitbutt.io" ]
miles@bitbutt.io
e04f0fcce8e35cf453e27059209fa6f4132c0f3e
2eda9c52cf184a95333f9139f24a6cfa110a79be
/DojoAssignments/Python/Django/djangoEnv/main/apps/time_display/urls.py
a2dae074eecc5387e600315c85c913abc56107d0
[]
no_license
verilyDA/DojoRepo
293d42556d7161064f09e006010b6e35407f8421
9ea0d5e474621d820bff25afddf73fbb172c40ee
refs/heads/master
2022-10-30T11:00:02.877515
2018-02-22T01:29:18
2018-02-22T01:29:18
112,886,455
0
1
null
2022-10-13T08:36:10
2017-12-02T23:51:28
Python
UTF-8
Python
false
false
104
py
from django.conf.urls import url, include from . import views urlpatterns = [ url(r'^$', views.index) ]
[ "da61098@gmail.com" ]
da61098@gmail.com
2275e10eb35c453ceb47eb820e97ada9ca502a3f
e0d6fca1adb9ed1290e7fad2c6267c6b659ebdd6
/zuobiao/zuobiaoCase/SendFile.py
d76d16d716a8686e0b071be76efa44b687094c8e
[]
no_license
jjwv/Auto_Zuobiao1.4.5
bba823763f7d21a4a369320772bdbfff3a7983ed
d9b0f626d32f9a3b387b49d42388017f8edb0f52
refs/heads/master
2021-07-16T02:26:58.563262
2017-10-23T06:21:15
2017-10-23T06:21:15
107,936,686
0
0
null
null
null
null
UTF-8
Python
false
false
2,538
py
#coding:utf-8 from Utills.GetAppiumDriver import GetAppiumDriver from CommonFunction.LoginPage import LoginPage from CommonFunction.MyPage import MyPage from CommonFunction.MessagePage import MessagePage from CommonFunction.ContactsPage import ContactPage from CommonFunction.File import File #test1:发送文件 import time im...
[ "cuiwenhaozing@163.com" ]
cuiwenhaozing@163.com
5069e5699ee38385983f5629a4d72e3a9ac83f97
956a9f1db5c63ead41063d45e410da78def12c20
/MEDAN/account/models.py
75246018b8ec1ebb9736dacb7fb2f7d7ac077b82
[]
no_license
Mirrexi/Practice
ff90606520b5b615e406eddde81c0c77599a5007
14a11b6db99226648cd9baf2629ea95af24998a0
refs/heads/master
2023-06-06T09:24:57.615906
2021-06-17T20:56:21
2021-06-17T20:56:21
368,977,345
0
0
null
null
null
null
UTF-8
Python
false
false
477
py
from django.db import models import time class Account(models.Model): first_name = models.TextField('Имя') second_name = models.TextField('Фамилия') position = models.TextField('Должность') date = models.DateField(auto_now=True, auto_now_add=False) title= models.TextField('Заголовок публикации') ...
[ "GarrikLevin@yandex.ru" ]
GarrikLevin@yandex.ru
c6a6239b372a7a6543add1f815a61de4f4418db6
060b39ef80a00090732b5362427b1f96eda81d09
/DataProcess/run_feature_extraction.py
2560d4c88bb1ace582393d880fb054727ddd45c1
[]
no_license
hphp/Kaggle
73a7fd4b19b4f1cf6616f72a4309d4769c8a8535
b27422f8b913c47f484e3abebb1f7aaf6607c6a4
refs/heads/master
2016-09-09T22:36:21.945873
2013-12-10T04:05:00
2013-12-10T04:05:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,617
py
#!/usr/bin/python ''' written by hp_carrot 2013-11-26 add resized_pixel_fe() ''' import os def convolution_feature_extraction(): piclist = os.listdir("/home/hphp/Documents/data/Kaggle/DogVsCatData/test1/") t_range = len(piclist) period = 1000 total = int(t_range/period) print total ...
[ "hphpcarrot@gmail.com" ]
hphpcarrot@gmail.com
e5c6e21d071ab59dabef909ebb4698200d6c299a
c4d66ac5e8f36e5fba7900a9e9458b2b76a9f3e2
/cast.py
657bdd44c02af95eec57ced5e994feb377434873
[]
no_license
diegodpgs/RMSForMe
158bdfffe5e6abcfe6dc26ddb1bb0b65267cd267
b275efb0f0dba009d9bc7122dbc5f5d6397ef1a0
refs/heads/master
2021-01-12T06:11:18.249209
2017-01-23T02:26:06
2017-01-23T02:26:06
77,323,741
3
0
null
null
null
null
UTF-8
Python
false
false
20,139
py
#coding: UTF-8 import urllib2 import sys import os import math from environment import * sys.path.insert(0,os.getcwd()+'/data') from data import * class Cast: def __init__(self): self.map_star_to_imdbcode = self.map_star_imdb() def map_star_imdb(self): m = {} for movie_cast in open(FILE_WATCHED_CAST).read()....
[ "diego@Diegos-MacBook-Air.local" ]
diego@Diegos-MacBook-Air.local
3bca56f016f5023a67f5c30109388087924568a6
2b3e562da5d9b473f3a7dcb3ba833552e649b675
/session4.py
ebff687810e04bbe1591a71c882dc110538bae31
[]
no_license
Aakashdeveloper/python-web
51f89c34e30beb0be1d8fdd2e01b3e2617a334b0
fe163c193b20d23794eb327d2d580124e32fe152
refs/heads/master
2020-07-25T12:38:13.416166
2019-09-27T15:07:32
2019-09-27T15:07:32
208,291,750
3
6
null
null
null
null
UTF-8
Python
false
false
58
py
x = ("BMW","AUDI","MERC","AUDI") y = enumerate(x) print(y)
[ "ahanda205@gmail.com" ]
ahanda205@gmail.com
3b48f91e860bfd0efbf0063bd0d4020ddb455922
fe89ffff746c0a8b96ce8cfc329cd0923962c783
/euler1.py
96808f1384a441255991a0ff7fe14eae001a9a75
[]
no_license
clemens-hns/Euler1
019241b7dc1e6bea11d0eb5fd945ac9f9701b414
d2a1432c94bf95b0c4bc2519d3671b9fca9d6b5b
refs/heads/master
2016-09-14T12:46:05.621446
2016-04-14T13:28:00
2016-04-14T13:28:00
56,238,337
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
sum = 0 for i in range(1, 999): if ((i%3) == 0) or ((i%5) == 0): sum = sum + i print sum
[ "steve.clement@centurylink.com" ]
steve.clement@centurylink.com
d2bc9148027a696f15a5ad87ad686ebf913c8152
2325dfb7a4ed800c139a744101a30035e8d4b544
/session2/conditional.py
fe2c888f89dfadd0457445762b32abd2a5934803
[]
no_license
tientran269/tranthuytien-fundamental-d4e12
257d365261e188d3bef3e66fb38dedbbeb23bf8f
7e8652668ab3adc93433cbd211f67f421c6fd6b9
refs/heads/master
2022-07-30T05:21:44.901674
2020-05-18T15:23:32
2020-05-18T15:23:32
264,804,590
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
# age = 11 # print(age) # print(age < 18) # if age < 18: # print ('you are not allowed here') # elif age < 20: # print('hi!') # else: # print('Hello again') from random import randint random_num = randint(0,100) print(random_num) if random_num < 50: print ('you need to relax') elif random_num < 60: ...
[ "ttrann2609@gmail.com" ]
ttrann2609@gmail.com
d6443ce31ad96db62187607038a84db2864ad0ed
bf5d8d87a1f452b97257f3ba4761fd895a2abeae
/apps/users/migrations/0003_auto_20151211_1313.py
283cf5afb7e9fc705dc6628eb202dfd235aed0d4
[]
no_license
harshaashok93/Facelook
88de2337f8f355989a4f839f378d2f715f29d2d1
d27d61d729dfb91fa3edacc02ddf6ab63bd3a60c
refs/heads/master
2021-01-10T11:32:55.940835
2015-12-13T16:06:05
2015-12-13T16:06:05
47,922,837
1
0
null
null
null
null
UTF-8
Python
false
false
823
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20151211_1203'), ] operations = [ migrations.RemoveField( mo...
[ "Harsha Ashok" ]
Harsha Ashok
e55b5369d0cbee68194ee983acf794ce6412cbd6
d8a511b5b871740c13e41079657421ad08e26978
/wagtailmedia/signal_handlers.py
80f6db0c29f016c9c6676cd1ea900192b6a38555
[ "BSD-3-Clause" ]
permissive
evanwinter/wagtailmedia
0be38630e9f1375506ba3a5b6b10eee72247dcd8
e5cc000d6741f78ee44834c1469b64da40a164ed
refs/heads/master
2020-04-14T18:29:34.129054
2019-01-03T20:44:32
2019-01-03T20:44:32
161,226,229
0
1
NOASSERTION
2018-12-10T19:30:39
2018-12-10T19:30:39
null
UTF-8
Python
false
false
472
py
from django.conf import settings from django.db import transaction from django.db.models.signals import post_delete, pre_save from wagtailmedia.models import get_media_model def post_delete_file_cleanup(instance, **kwargs): # Pass false so FileField doesn't save the model. transaction.on_commit(lambda: insta...
[ "dan.s.graham@gmail.com" ]
dan.s.graham@gmail.com
3a007c25d13ef5a437f5a87c34ee386f3c76cb65
818df7243a28ec740536350e2a103cc2c522d7e6
/qa/rpc-tests/txn_clone.py
40997d297232a96d20345edf3c1fa7177655b3cb
[ "MIT" ]
permissive
parkingcrypto/parking
020899dc98a3a5e4c25e227230c257719fc3ac21
df01fe37e79ad841b17f5e351bc444ddd5e2ac8c
refs/heads/master
2020-04-04T09:28:50.548942
2018-11-03T14:30:32
2018-11-03T14:30:32
151,020,586
0
0
null
null
null
null
UTF-8
Python
false
false
7,579
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Test proper accounting with an equivalent malleability clone # from test_framework.test_framework im...
[ "xxnoom@zmail.club" ]
xxnoom@zmail.club
8e3cd40910367129be4abf5e9d65e2dffd6308db
9ab22fa829693c42ad8cadcd083627d184bb8bec
/universal_tags.py
6f78627f7825ada29949e7974de062fa23b40c8d
[]
no_license
Wummer/CrossLingualDependency
de3232a17ce372efb6775c6cb5f22561a67cb007
4b6823cebe9c4f419004eb46e3d67f605238e4f9
refs/heads/master
2016-08-12T09:24:21.721732
2016-02-08T21:37:53
2016-02-08T21:37:53
44,537,930
0
0
null
null
null
null
UTF-8
Python
false
false
2,905
py
''' Interface for converting POS tags from various treebanks to the universal tagset of Petrov, Das, & McDonald. The tagset consists of the following 12 coarse tags: VERB - verbs (all tenses and modes) NOUN - nouns (common and proper) PRON - pronouns ADJ - adjectives ADV - adverbs ADP - adpositions (prepositions an...
[ "a.wahl.r@gmail.com" ]
a.wahl.r@gmail.com
f85574c002d2641958564e96b99ed4de3abd3af8
34503f48bedbe7c565d1084ed25d218200d60f87
/data_helpers.py
41dbd3bf3fac271066106368c226262256484539
[]
no_license
kaylalee44/Computing-Kids
a94908af5698be80d5beab464e841bfc2d94ecbe
7c414a51a3efe753a9d1ecf60874567eb54fa965
refs/heads/master
2020-08-19T18:03:09.901201
2019-10-18T04:29:31
2019-10-18T04:29:31
215,940,831
0
1
null
null
null
null
UTF-8
Python
false
false
6,167
py
import pickle import pandas as pd import tensorflow as tf import nltk from nltk.corpus import stopwords from nltk.tokenize import word_tokenize nltk.download('punkt') nltk.download('stopwords') #jobTitlesDF = pd.read_csv("indeedJobsHello.csv", error_bad_lines=False ) #print(jobTitlesDF.shape) #jobTitlesDF.drop_duplica...
[ "kayla.lee44@outlook.com" ]
kayla.lee44@outlook.com
a0ab4a426bea9b9f3ee7150d27bc1d637712af1d
0f45e4a48e58fc7523564805821ef0f2c174f4ec
/articles/migrations/0017_auto_20190326_1440.py
f8bb159c0d814910bb74426416fefab9f560f232
[]
no_license
ShreyasJamadagni/cope-project
f100da0065d34db8cf0da7424cd4a07955d48d12
bec888bcd85350e5336ab867d9429aa7cbc15595
refs/heads/master
2020-05-03T08:17:33.460250
2019-03-30T07:05:51
2019-03-30T07:05:51
178,522,129
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
# Generated by Django 2.1.7 on 2019-03-26 14:40 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0016_auto_20190326_0347'), ] operations = [ migrations.AlterField( model_name='article', name='title', ...
[ "shreygj@gmail.com" ]
shreygj@gmail.com
0e23b3105f86a82ee2018e76b87ced64a18aaf83
26aa5596094db02ce142c281f340d989cf102acd
/tests/attacks/evasion/test_momentum_iterative_method.py
b63a917c695fe60041f060615585cfd4ca431fc1
[ "MIT" ]
permissive
davidslater/adversarial-robustness-toolbox
a933215c1f0984402229f3bba0daf579f7746747
e7c763b650fa016ff9915da750d90ba0e876b1ef
refs/heads/master
2022-11-30T13:36:47.626740
2022-11-22T17:14:52
2022-11-22T17:14:52
237,506,398
1
0
MIT
2020-01-31T20:00:13
2020-01-31T20:00:12
null
UTF-8
Python
false
false
4,644
py
# MIT License # # Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2022 # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software without restriction, including without limitation the # r...
[ "tsechkova@vmware.com" ]
tsechkova@vmware.com
0017e5c495a859d4743514711739242cf1cb9536
fe2cffd0669af432891c10f88fe45fd9f8e65b3e
/Delegation/models.py
5c6558aa7754b228cc124d72c2b75de10bd10eb4
[]
no_license
jakubbm/employees-management
4190f9859e580a96ca705c1582512d402c6bab0b
d5682cd9f30ebb0831be80712c9f0f5597684f35
refs/heads/master
2022-12-20T05:28:51.791766
2020-10-12T09:45:41
2020-10-12T09:45:41
296,204,637
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
from django.db import models from datetime import date from Employees.models import Employee class Destination(models.Model): city = models.CharField(max_length=50, blank=True, null=True) country = models.CharField(max_length=50, blank=True, null=True) def __str__(self): return f"{self.country} ...
[ "milek.jakubb@gmail.com" ]
milek.jakubb@gmail.com
aad9d93b67d623651393d22114af6f64db39f48d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_138/202.py
24acce18318d21c58ecc931e58583447ad9cae57
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
from bisect import bisect_left from copy import copy def get_results(N, K): N.sort() K.sort() L = len(N) dwar_points = 0 ken_start = 0 for i in xrange(L): if N[i] > K[ken_start]: dwar_points += 1 ken_start += 1 war_points = 0 for i in xrange(len(N)-1,-1,-1): ken_pos = bisect_left(K, N[i]) if ke...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
50395f84f170f7ed6047836146db636aefeb24b3
2ffa111fc159c1785d6aaff88b9696869d9a5a38
/tilemap.py
172d2b3c86bde393410ca243438dd3eca47289f0
[]
no_license
kens3dola/pygame
52965f5430c40455be37761657788e374015a97b
02885816d2ecf50416ee92e82d1a9e18bdf89819
refs/heads/master
2023-02-04T23:58:31.470880
2020-12-28T14:15:33
2020-12-28T14:15:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,597
py
import pygame as pg from settings import * import pytmx import json, math, os class Map: def __init__(self, filename): self.data = [] with open(filename, 'rt') as f: for line in f: self.data.append(line.strip()) self.tilewidth = len(self.data[0]) self.t...
[ "58432333+kens3dola@users.noreply.github.com" ]
58432333+kens3dola@users.noreply.github.com
24c4992d11f5d56f191ba8cd25e1162c89dcf811
bd3a2ddd3ba0fcd7c421de7f766ae7c8328312bd
/2.python/0.python基础/day3/代码/布尔类型.py
243257a17f0542093446fe65f633ba816d860cd0
[]
no_license
GHubgenius/DevSevOps
7463e34c1c4b54a48daedfe37f89741135b08b17
ab79d8cf6ae23721411957fd6de15dca388d6360
refs/heads/master
2020-09-26T18:06:54.142020
2019-11-18T11:40:04
2019-11-18T11:40:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
933
py
# 布尔类型 # 主要用判断事物的对错 # 一般布尔类型不会单独定义 """ 值相等的情况下,id不一定相等 id相等的情况下,值是一定相等的 """ tag = True # tag = bool(True) tag1 = False # tag = bool(False) # print(1 < 2) # a = 1 # b = 1 # print(a == b) # 等号比较的是value # print(a is b) # is比较的是id(地址) a = -213456678789893534121111111111111111111111111111111122222222222222222222222...
[ "1229216571@qq.com" ]
1229216571@qq.com
e8bc8614185dcfe913fc5df4dc2f6d9d4185ffd6
b6ea12bd1a6342e4caced845f2fd72f6514099b9
/dodocs/profiles/create.py
ddea923e4691bf47c39c2c38e595cb8c19dd315a
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
montefra/dodocs
df8536e240c72228a305fa46e419aecaa324ad4b
8fced1cef288c9fd6b9f7230188529a7834e3bd0
refs/heads/master
2021-01-19T21:54:25.699580
2015-11-13T19:18:31
2015-11-13T19:18:31
31,682,881
0
0
null
2015-11-13T19:18:31
2015-03-04T22:17:27
Python
UTF-8
Python
false
false
2,669
py
"""Create the profile. Copyright (c) 2015 Francesco Montesano MIT Licence """ from pathlib import Path import shutil import string import dodocs.config as dconf import dodocs.logger as dlog import dodocs.utils as dutils def create(args): """Create a new profile and copy the configuration file in it Parame...
[ "franz.bergesund@gmail.com" ]
franz.bergesund@gmail.com
26a3ddcc6f50c8eb5974186fa630867bd77e0940
b598a5783dc7b270e95babcfb82aa8d941159861
/Sentimeter/wsgi.py
b4d1714de6bec2ac96b6b14b7e5129da8c1605bd
[]
no_license
JMDTol/SoccerSentimeter
b6a91be3942e42ab7244a9ee0709b4893787ccca
2ecc8f2e5aa0d0d75ea1462656c93ccd044a936b
refs/heads/master
2021-09-21T07:59:37.970688
2018-08-22T13:40:27
2018-08-22T13:40:27
288,161,726
1
0
null
2020-08-17T11:26:39
2020-08-17T11:26:35
null
UTF-8
Python
false
false
398
py
""" WSGI config for Sentimeter project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_S...
[ "lawrencepang36@gmail.com" ]
lawrencepang36@gmail.com
d927a4b2ddfa3fd38640035581f41781897b983a
174ddb425191deaf3103c5aca7d20d52738e0c98
/fatpercentage/urls.py
ad7b1d0efea548c59ef2a56d590453cfe73b1556
[ "MIT" ]
permissive
guidotheelen/concentric
27392e6694d0f6b7c93a615bf46718aed4ed39d6
66365a61465b40e267d4dd6d2c36ffe9eec18395
refs/heads/master
2023-02-03T03:35:40.738946
2020-12-19T22:08:40
2020-12-19T22:08:40
309,492,322
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
from django.conf.urls import url import fatpercentage.views urlpatterns = [ url(r'^$', fatpercentage.views.FatpercentageView.as_view(), name='new_fatpercentage'), ]
[ "guido@kabisa.nl" ]
guido@kabisa.nl
9e81ef14d004c90cacee27d64aa616025ed7b1cc
709cb8c20433faf0a94a600cb271c74678b9beb1
/drop_tables.py
5fcfc4ec2926fcd4033c773adcdcd2d7a5834af7
[]
no_license
jperlas2019/Python-MP3-Player
96e047732ab53e586858cd3ba22d0013bba3302d
b1075375b5ac2c85f389dbedd5a157a3e7f62198
refs/heads/master
2022-04-20T01:16:19.671555
2020-04-18T07:11:03
2020-04-18T07:11:03
255,706,027
1
0
null
null
null
null
UTF-8
Python
false
false
168
py
import sqlite3 conn = sqlite3.connect('student_db.sqlite') c = conn.cursor() c.execute(''' DROP TABLE collection ''') conn.commit() conn.close()
[ "jperlas@my.bcit.ca" ]
jperlas@my.bcit.ca
f46bfe44b439e875861bafdfac35b21d3842de16
607c8b2c0511eb240f582d8bf7c310ba821d46e6
/main.py
3de76d6785f235ae586eb554c2b4471041f53c11
[ "CC0-1.0" ]
permissive
FreeCX/shakalator
cb85991249978a8503c492f3847c78496970dd69
8c2ba59ab036704aadfea6919e81e94fc8482b16
refs/heads/master
2020-12-24T18:50:46.865624
2017-07-30T17:54:17
2017-07-30T17:54:17
59,818,091
0
0
null
null
null
null
UTF-8
Python
false
false
3,902
py
from flask import Flask, render_template, redirect, url_for from flask import request, jsonify, send_file from multiprocessing import Process, Pipe from werkzeug import secure_filename from os import path, system, remove from hashlib import md5 import time # 5m TIME_DELTA = 5 * 60 """ инициализируем fl...
[ "dr.freecx@gmail.com" ]
dr.freecx@gmail.com
fcf241134259c01fa8b959d0dd34b702b332e797
7b0652fa4aebbe55e93f93fa4de2a2a9f38603de
/ep/item_25_init_parents_with_super.py
76ff7029b49d1b7d3436f39b908a28de723d480d
[ "MIT" ]
permissive
totoro72b/pt1
318088f8289464229c08d0f5798a37a386d2f3b4
92cffb9b36ebe2023243446e560e54200b0bd6e9
refs/heads/master
2023-01-22T15:14:14.289040
2020-09-12T18:33:10
2020-09-12T18:33:10
106,895,355
0
0
MIT
2023-01-07T10:33:49
2017-10-14T03:36:07
TypeScript
UTF-8
Python
false
false
1,130
py
# init parent classes with super # write diamond class with __init__ to show that it does not work # write diamond class with super to show it works class BaseClass(object): def __init__(self, num): self.num = num class PlusFiveBad(BaseClass): def __init__(self, num): BaseClass.__init__(self...
[ "totoro72b@gmail.com" ]
totoro72b@gmail.com
460f2179888de444cbe24cfc58ee5af6d80c60bf
8ce262b59918cd3e4f00cfd3b2ac7a3e193f826f
/moveBase.py
439648c8878f18aaa88c4bbc699f8b0bb88a3a59
[ "BSD-3-Clause" ]
permissive
hanlinniu/ROS-Turtlebot3
05665efb38a0ac588dcbbf7fc973bc40ae02990c
377069eba73f68f2963e57e050310e8d1c6f3977
refs/heads/master
2022-04-15T03:21:41.781887
2018-04-24T16:46:20
2018-04-24T16:46:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,160
py
#!/usr/bin/env python #Move turtlebot3 from location A to location B through move_base, action client import rospy import actionlib from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal def movebase_client(): client = actionlib.SimpleActionClient('move_base',MoveBaseAction) client.wait_for_server() #define goa...
[ "noreply@github.com" ]
noreply@github.com
c163e2cb577dfcda6f3358d435861abcf43a11e1
ab32e6384b7c679a327a4bf1df6dd24c058b78a5
/cms/base.py
f994beec56933f28b7297703bb7637ad770aaac1
[]
no_license
webmaxdev0110/digi-django
ad2497791d6d3b6aa74eb697dd7eef324ebb5846
4cd52c07bb64e9d9381a957323d277489a02181a
refs/heads/master
2020-03-23T13:37:12.600565
2017-07-10T10:23:15
2017-07-10T10:23:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,085
py
""" Our base representation for different types of page models. """ from django.db import models from django.utils.translation import ugettext_lazy as _ from feincms.admin import item_editor from feincms.models import create_base_model class SimplePageManager(models.Manager): def published(self): """ ...
[ "webmax0110.dev@gmail.com" ]
webmax0110.dev@gmail.com
429985c17ce55748a10941e8457e36e930b768dd
d1562487d14327586ea99782f48d791608966019
/Exercise1.py
4103c5982d4702df8ddd2605a4284a9cdfae238a
[]
no_license
KelseyCortez/4.1.20-am
b57a6e9f494a5f303dfb87e5a59daab475c5ac30
9d84dbcedadfdb9a550af6cd5e32253cb28c6283
refs/heads/master
2021-05-20T11:12:15.488281
2020-04-01T23:57:25
2020-04-01T23:57:25
252,268,995
0
0
null
null
null
null
UTF-8
Python
false
false
115
py
# Prompting user for name and greeting them by name name = input('What is your name? ') print(f'Hello, {name}! ')
[ "kelscortez@gmail.com" ]
kelscortez@gmail.com
109022396ac7b45bbcd47850815b3f7da8cc38d3
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/1519.py
648f239ba0d124b8971fef4c06e15947f1995be6
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
534
py
from bisect import insort, bisect_left, bisect_right def palin(x): return str(x) == str(x)[::-1] arr = [] def gen(N): for x in range(1, int(N**.5)+1): if palin(x) and palin(x*x) and 1 <= x*x <= N: insort(arr, x*x) def solve(A, B): l = bisect_left(arr, A) r = bisect_right(arr, B) ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
564b5c52cf29a700c3be4be632d89d62576a7e9f
eb4d961f649bbc6e5138b8eb8c0c8f9a7e73abfa
/wavesynlib/interfaces/os/linux/shell/winopen.py
581e69839c028e3d826f204e2122429f5b1b100f
[]
no_license
VanDeng95/WaveSyn
7b601e308ea10571541121b4a786476200873af1
40e527482b27186a684d1088b563089d611cc75d
refs/heads/master
2021-01-24T21:37:28.154709
2016-04-25T11:11:11
2016-04-25T11:11:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Tue Aug 11 16:01:51 2015 @author: Feng-cong Li """ from __future__ import print_function import os import sys def winopen(path): if os.path.isdir(path): os.system('nautilus ' + path) elif os.path.isfile(path): os.system('nautilus --s...
[ "xialulee@sina.com" ]
xialulee@sina.com
5e51a87f346af616275b771436f6bafbcf158904
08c76149ab9774eec2a12ee8066c32eb61536b96
/hr/views/Namespace.py
3a04c5b53cc71c3e84f6314be6d37dc0551babaf
[]
no_license
atishn/Finance-Planner
278bb9bdcab8f5df1e092d515b15d3c0ddb798cd
401ff917a0346201c2e208cf1b6aab450cf26918
refs/heads/master
2021-01-10T21:12:05.127757
2015-03-21T11:14:31
2015-03-21T11:14:31
22,975,902
0
0
null
null
null
null
UTF-8
Python
false
false
2,545
py
__author__ = 'anarlawar' """namespace module""" __all__ = ("Namespace", "as_namespace") from collections import Mapping, Sequence class _Dummy:... CLASS_ATTRS = dir(_Dummy) del _Dummy class Namespace(dict): """A dict subclass that exposes its items as attributes. Warning: Namespace instances do not have ...
[ "atish.narlawar@gmail.com" ]
atish.narlawar@gmail.com
55685403b7ba08fe75f120d98b388f791e9cc8ab
dc37120202e5fc2c2f0900c3059af81830a0dcac
/AutoTranscribe_pauses.py
ee4904994ea20fbba78d8252c9ad3c32c0a563e8
[]
no_license
AnanyaCoder/SSMT-Experiment1
582c4e4b3ea8df2214e3b5cdda8e589dd91458d1
926a6c617e486d31ec305e5fabd0a95210f5b3d5
refs/heads/master
2021-03-11T13:02:26.118035
2020-03-11T09:48:34
2020-03-11T09:48:34
246,531,457
1
0
null
null
null
null
UTF-8
Python
false
false
4,151
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Sep 30 16:33:47 2019 @author: ananya """ import speech_recognition as sr choppedWaveFiles = 'split_pauses_Files/' outputFile = 'Transcribed.txt' f = open(outputFile, "w+") #Generate the wave files for all the audio files choppedList = [...
[ "noreply@github.com" ]
noreply@github.com
4fc6672c6e8f915c005888985f4494b208353b65
926f3efc542349e09ca1179247c74b0141b346d4
/readxml.py
00fba2b7ddd528ecbcf366cc0cd522c0159ff5e9
[]
no_license
kokodakdak/practice_code
b0a8de51e3ec1b23a7479d35ae5c40046d1cf4a8
07ecef6a99f58df5e6b90a02abc7e141d95944d1
refs/heads/master
2020-04-19T16:23:13.409561
2019-02-26T03:35:43
2019-02-26T03:35:43
168,302,062
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
#!/usr/bin/env python import xml.etree.ElementTree root = xml.etree.ElementTree.parse("test.xml") for e in root.findall("shots"): for sube in e.findall("item"): print sube.findtext("name")
[ "kokodak95@naver.com" ]
kokodak95@naver.com
11071e8ceadb00b104d22972d509236a54c3253f
e839a2fdd40effd2cea9c8bbea1629e7a5b453dc
/appinit_backend/app/lib/files/remove.py
da38d92a6b1876c25ec6ed96778bacaa81dab65b
[ "MIT" ]
permissive
lost-osiris/webplatform-backend
bfb48979fabd0d04104b3b07bd9b7cad2d6cfce6
8b1b7c94dbc5314450fbe75b8ca4625d39608d4a
refs/heads/master
2021-07-06T00:12:32.257988
2019-08-21T08:45:21
2019-08-21T08:45:21
177,480,021
0
0
MIT
2020-09-04T09:08:18
2019-03-24T23:04:03
Python
UTF-8
Python
false
false
601
py
from lib.imports.default import * import lib.files.meta as meta action = "remove" def call(**kwargs): if "id" in kwargs: file_obj = meta.call(id=kwargs['id']) if not file_obj['isAttached']: __remove(kwargs['id']) elif "ids" in kwargs and type(kwargs["ids"]) is list: for fid in kwargs...
[ "mowens@redhat.com" ]
mowens@redhat.com
b7b9139c1926f1f2c15bdd30952c80cf736308ed
8a1846546176218207e80ec898f458117950014d
/UI/option05_main.py
682cbdf2157afc8ae7aaa7aca1e790d1fa2abf32
[]
no_license
Jhongesell/software-de-balance-de-aguas
1d63dc46cde718183f71775d3846443253a9b133
98c183f76abeae85d9aec227bf54e1e58f6b224f
refs/heads/main
2023-02-26T14:22:37.925013
2021-02-03T21:31:04
2021-02-03T21:31:04
312,701,308
1
0
null
null
null
null
UTF-8
Python
false
false
213,162
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'option05_main.ui' # # Created by: PyQt5 UI code generator 5.15.1 # # 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 imp...
[ "unmsm182@gmail.com" ]
unmsm182@gmail.com
318f6e2d56ab4a6dcffe4574ee629c3ded3fd34a
8eab8ab725c2132bb8d090cdb2d23a5f71945249
/virt/Lib/site-packages/jedi/api/project.py
da0f31d7ba5a8d7b7d2ff6517cbe9948732fd72c
[ "MIT" ]
permissive
JoaoSevergnini/metalpy
6c88a413a82bc25edd9308b8490a76fae8dd76ca
c2d0098a309b6ce8c756ff840bfb53fb291747b6
refs/heads/main
2023-04-18T17:25:26.474485
2022-09-18T20:44:45
2022-09-18T20:44:45
474,773,752
3
1
MIT
2022-11-03T20:07:50
2022-03-27T22:21:01
Python
UTF-8
Python
false
false
16,613
py
""" Projects are a way to handle Python projects within Jedi. For simpler plugins you might not want to deal with projects, but if you want to give the user more flexibility to define sys paths and Python interpreters for a project, :class:`.Project` is the perfect way to allow for that. Projects can be saved to disk ...
[ "joao.a.severgnini@gmail.com" ]
joao.a.severgnini@gmail.com
2a0e99bf5aef26fa2fcfc7edcc980199c3190c6c
d10a8314da8ef71d2e63c0ecfbdc60a1cf2d78e2
/calculate_next/lib/template/parser/template/formats/world.py
d6a2422d3eba9d40fa266c3eeea24f61247cd7da
[]
no_license
Yuego/calculate-experiments
d005376dc6fb0002ac0016beb878d7274707a39e
40cd601bfea604c887c213d70303938367b7b3b1
refs/heads/master
2021-01-22T23:58:04.817503
2013-11-22T10:19:48
2013-11-22T10:19:48
14,140,182
1
0
null
null
null
null
UTF-8
Python
false
false
1,120
py
#coding: utf-8 from __future__ import unicode_literals, absolute_import from pyparsing import * from calculate_next.lib.template.parser.rules import slotted_package_atom from calculate_next.lib.template.parser.template.parser import FormatParser class WorldFormatParser(FormatParser): comment = '#' @classme...
[ "root@proscript.ru" ]
root@proscript.ru
1a848ab9ed33cb6c5cfa7e042a832a8136ea3894
2d0e5f5c6dd2e44ecf4166c81caff17f39c0c638
/매일 프로그래밍/20201123/solution.py
8c911b44122c8a89e11407f4557f4b7a1e374f97
[]
no_license
limkeunhyeok/daily-coding
17d120a9f499189be3250a501e73e312802508a9
960dad7758c99619da0a33c899d5d4d8d8ff524d
refs/heads/master
2022-04-30T22:32:54.173400
2022-04-16T13:15:49
2022-04-16T13:15:49
174,705,049
0
0
null
null
null
null
UTF-8
Python
false
false
1,091
py
# 단일 연결 리스트(singly linked list)가 주어지면 리스트의 중간 노드 값을 프린트 하시오. (제일 효율적인 방법으로) class Node: def __init__(self, data): self.data = data self.next = None class LinkedList: def __init__(self): self.head = None def append(self, data): newNode = Node(data) ...
[ "gorloom6425@naver.com" ]
gorloom6425@naver.com
551e00715914982da405d9a73c65f21cb2aa1ea4
2b8d4e22d10ca118fba0100cc87af04f3939448f
/odoo app/dymax/module/modules/warehouse_stock_restrictions/__manifest__.py
4e1798a9a3ecd835fdcc84b185c9bd028aadcdd0
[]
no_license
ahmed-amine-ellouze/personal
f10c0a161da709f689a3254ec20486411102a92d
4fe19ca76523cf274a3a85c8bcad653100ff556f
refs/heads/master
2023-03-28T23:17:05.402578
2021-03-25T13:33:18
2021-03-25T13:33:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
# -*- coding: utf-8 -*- { 'name': "Warehouse Restrictions", 'summary': """ Warehouse and Stock Location Restriction on Users.""", 'description': """ This Module Restricts the User from Accessing Warehouse and Process Stock Moves other than allowed to Warehouses and Stock Locations. ...
[ "hussnainsajid08@gmail.com" ]
hussnainsajid08@gmail.com
4d1f8bbbbfd4164cd2ee87c47e0c33d075d372c4
8fe7c24dcf90a5cfa319b9a03ff8336639614dde
/saver.py
0ba52b09605e7b57ea427df772f7b8c94fc2fc6c
[ "Apache-2.0" ]
permissive
gbanegas/searchandresearch
af02ed7fba2ece0cfe2815d2e77797f6cc9a4be3
ba863b0dce487b29c53c914343eb1fefa7771214
refs/heads/master
2020-05-19T08:39:22.317258
2014-12-17T19:09:10
2014-12-17T19:09:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
344
py
''' Created on 15 Dec 2014 @author: gustavo ''' import os class Saver(object): def save_in_file(self, user_id, l, path='/server_1/'): path = os.getcwd() + path filename = path + user_id f = open(filename,'w') for entrace in l: f.write(entrace.server_entrace+'\n') ...
[ "gustavosouzabanegas@gmail.com" ]
gustavosouzabanegas@gmail.com
e0a3b72a35be2dabb658d4861717316e0edf5251
1481db4cb57d1773b2b53bf5fe9737dac840f438
/models/Server.py
e8ac2b5a7ff5463b051fdd76d3a2f4b325bc396f
[]
no_license
jfifer/migratr
20bb469eb08750f3153a72b04e59505eca56a9a7
fbbe71b99f23a92b9f0999afad2ef849ed6c10d8
refs/heads/master
2021-01-01T04:09:46.021045
2017-10-09T21:04:57
2017-10-09T21:04:57
97,024,005
0
0
null
null
null
null
UTF-8
Python
false
false
6,660
py
import pymysql pymysql.install_as_MySQLdb() from flask_sqlalchemy import SQLAlchemy as sqlalchemy from sqlalchemy import create_engine, text db = sqlalchemy() class Server(db.Model): __bind_key__ = 'server' serverId = db.Column(db.Integer, primary_key=True) serverType = db.Column(db.Integer) name = db.Column(...
[ "vagrant@cdeng5-migratr.dev.coredial.com" ]
vagrant@cdeng5-migratr.dev.coredial.com
d0f7a067a33210aedd0e5286c21e553219ba95a8
239baa8101ed2c9b68fbc2aed0c315ed31c24513
/03.Conway's Game of Life/01.matplotlib基本使用/05.绘制散点图.py
b3f8afc90dd8b66ece3d4251d38cd033ababcf94
[]
no_license
Suphx/python_project_repository
624ef2303661475a43068bde0bee0d8ee48c25c3
207b953f540430b6d17e1a8ac996651243fba119
refs/heads/master
2022-11-27T14:12:54.258420
2020-08-04T07:45:39
2020-08-04T07:45:39
274,409,908
1
0
null
null
null
null
UTF-8
Python
false
false
573
py
#!/bin/usr/env python3 # -*- coding: utf-8 -*- # ------------------------------- # Author: SuphxLin # CreateTime: 2020/08/01 12:36 # FileName: 05.绘制散点图.py # Description: # Question: import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl # 防止中文乱码,将字体设置为华文黑体 mpl.rcParams['font.sans-serif'] = ['SimH...
[ "kiols6@aliyun.com" ]
kiols6@aliyun.com
0dc373fd9ef43cbcbeb56e43f21dae33e90a2461
aebe539dbac5ca32964b8df0a78a2e08fbe60453
/Exercise-3.3.py
f55a75c55946b25ea48373b75b6ed764ae1a7d40
[]
no_license
Saydur8853/Python_By_Michigan
8302f85a58942a99c607d276463662174bb3dc68
1ffcaf7bd995ef2dc00be1c63f2282533b6add17
refs/heads/master
2020-08-09T06:57:55.198013
2019-11-25T21:03:38
2019-11-25T21:03:38
214,027,984
0
0
null
null
null
null
UTF-8
Python
false
false
842
py
# 3.3 Write a program to prompt for a score between 0.0 and 1.0. If the score is # out of range, print an error. If the score is between 0.0 and 1.0, print a grade # using the following table: # Score Grade # >= 0.9 A # >= 0.8 B # >= 0.7 C # >= 0.6 D # < 0.6 F # If the user enters a value out of range, print a suitable...
[ "Saydur15-8853@diu.edu.bd" ]
Saydur15-8853@diu.edu.bd
069c0b4e88615f131526f23ff30689c2339a6a8c
fad5c0cf71ce8f0e7dc4029270a48969f3311dd7
/resgrid/nr/nrpdcpdlrx/parabase.py
a218d5fff898033eabbe4f37c9c7180a5794118c
[]
no_license
liuyonggang1/liuyonggang1.github.io
1cb93560e6b8e80169b66326610bbd538798e33a
1b99f7576195d6169aa67b2b11136c8f0e13ab0c
refs/heads/master
2023-04-11T05:00:24.871853
2023-04-01T13:28:58
2023-04-01T13:28:58
191,664,945
0
1
null
null
null
null
UTF-8
Python
false
false
6,864
py
from browser import document from browser.html import * import sys # sys._getframe().f_code.co_name = {File}_{Class}_{digit}_{function}_{digit} _plist = [] ############################################################################################## # For Enumeration ################################################...
[ "51767832+liuyonggang1@users.noreply.github.com" ]
51767832+liuyonggang1@users.noreply.github.com
41cbd95a1732dcc78afb0031cdcd749613a85d01
f7aa97fe19b431523f35dc5badc9e8ff919ffa00
/fss17/project/tools/Discretize.py
843b20424c0b5b1183c3b4e3a70057c7d79357e5
[ "Apache-2.0" ]
permissive
rahlk/fss17
3b331427d450c5bb46b71b4aa5c77c59a8ec0a70
49e22c4ad01ff751f24c3e5702b7fa36a3a18e96
refs/heads/master
2021-01-19T18:03:13.364689
2017-12-12T12:51:28
2017-12-12T12:51:28
101,105,693
0
0
null
null
null
null
UTF-8
Python
false
false
5,945
py
""" An instance filter that discretizes a range of numeric attributes in the dataset into nominal attributes. Discretization is by Fayyad & Irani's MDL method (the default). For more information, see: Usama M. Fayyad, Keki B. Irani: Multi-interval discretization of continuous valued attributes for classification...
[ "i.m.ralk@gmail.com" ]
i.m.ralk@gmail.com
86dfb284ea758dc3d5f8173f3a667e6c5ad86761
260648d982f705730a2adf2513051b77f981a9a4
/Supervised Learning/Linear Regression/Linear Regression with Multiple Variable/Python/predictBasedOnGradientDescent.py
30a728312049cd181c6e674fd3465a11c59accec
[]
no_license
mirfanmcs/Machine-Learning
bd5243409981f96290d1f7574de5768bbb8c605d
e77dd94faabd4afe4f83d3292341c5698ffb3520
refs/heads/master
2020-04-29T07:23:49.940411
2019-06-10T08:36:02
2019-06-10T08:36:02
175,930,431
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
import loadData as data import gradientDescent as gd import numpy as np import featureNormalize as fn def predictBasedOnGradientDescent(X): # Normalize X_norm = normalize(X) # Add 1 as first column to matrix X_norm for xo = 1 X_norm = np.insert(X_norm, 0, 1., axis=1) theta, J_history = gd.gradie...
[ "contact@irfanm.com" ]
contact@irfanm.com
d9a58f34ba3da5e57a88dc29a501e2c5114aaa93
cb229b5ab9271e2648acb2325e3306f91e1383a7
/first.py
c3ee1b78b6db11cbd986ca38a467e467f64c7538
[]
no_license
Martell801/Moscow-Bykov
52d245fa1fe5d2e821d2b98a3a56cc6cb0736dec
b74f7baba525e4fe93a55001fe34d87a412b725f
refs/heads/master
2020-09-08T19:20:50.793803
2019-11-12T14:03:52
2019-11-12T14:03:52
221,222,440
1
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
import sys from random import randint from PyQt5.QtWidgets import QApplication, QWidget, QPushButton from PyQt5.QtWidgets import QMainWindow, QLabel from PyQt5.QtGui import QPainter, QColor class KiK(QMainWindow): def __init__(self): super().__init__() self.x = randint(1, 200) self.y = ra...
[ "vova" ]
vova
dc960a0ccfce838fbed19cef01c0873182693b95
14ebd516cbf3ed7ffe3109759dc1b0ad1401f68f
/_static/src/python/Radar/SAR/Imaging/demo_RADARSAT2.py
e8a0bf774daef0d5abfcd4930296b3470c737415
[ "MIT" ]
permissive
cuicuiqi/aitrace
929fab0fa94d198eb79764659adf4b07589528a4
8e42001f5e3a187801764f413b6ee2f32476c6d1
refs/heads/main
2023-04-12T21:02:24.285438
2021-05-06T14:36:31
2021-05-06T14:36:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,849
py
import numpy as np import matplotlib.pyplot as plt import scipy.io as scio from skimage import exposure import iprs import utils EPS = 2.2e-16 datafile = '/mnt/d/DataSets/sar/RADARSAT/frombooks/mat/sardataRADARSAT1scene01.mat' # datafile = '/mnt/d/DataSets/sar/RADARSAT/frombooks/mat/sardataRADARSAT1scene02.mat' data...
[ "zhiliuai@163.com" ]
zhiliuai@163.com
a5ecdb2737bb809bed9df727459ab5c4bedc1f91
925f14be15d32996197ad8bf1e55e8a2046a83f2
/encryption_utils.py
96718d138eb770b7b4b1be0a19984e01906c5662
[]
no_license
ThatCoders/coverGenerator
777aa1c35d796bd6698e27f8d703b50bb12b92e1
786da5b7aae367949341a9b9a279f89a4080f672
refs/heads/master
2023-03-21T20:58:08.343062
2020-03-14T16:21:08
2020-03-14T16:21:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,721
py
import hashlib import random import pymongo from PIL import Image from config import * client = pymongo.MongoClient(MONGO_URL, connect=False) db = client[MONGO_DB] class Encoder(object): def __init__(self, raw_input_str): self.raw_input_str = raw_input_str def encode(self): return hashlib....
[ "gaoyang1019@hotmail.com" ]
gaoyang1019@hotmail.com
cf184d74412aa2b010f8cee11d53fc14209596d0
6816deb6686f4c9f6be6d491a9cb5e53bac795f0
/blog/urls.py
7a9a74dcaa04599493b9c8dc3b9d0d49e6bdf9ca
[]
no_license
moonsoyo/soSmallWeb
c9b71c8e015348b9799d0134430c8ce72ac73c96
13d2da0ebd292f7874701f6ca0b6974a55315ca2
refs/heads/master
2023-03-20T00:19:50.434836
2021-03-19T09:55:46
2021-03-19T09:55:46
347,636,182
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
from django.urls import path from . import views # int:pk 는 정수 형태의 값을 pk라는 변수로 담아 함수로 넘기겠다는 말이다. urlpatterns = [ path('<int:pk>/', views.single_post_page), path('', views.index), ]
[ "moonsoyo@usc.edu" ]
moonsoyo@usc.edu
f752ed117122b654d3db7de4b0b29d175e3d6732
52b5773617a1b972a905de4d692540d26ff74926
/.history/sets_20200605201123.py
da4da35d79893db365b73571b8ec063d8489a308
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
def Strings(str): values = {} newArray = [] keys = [] for i in str: newArray.append(i.split(":")) for j in range(len(newArray)): if newArray[j][0] in values: values[newArray[j][0]] += int(newArray[j][1]) else: values[newArray[j][0]] = int(n...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
d27c77516040bd2fecec40232535df00c8324294
9c5a7b49899e6361bec18e2b6b84d234a786c3cb
/Drosophila Melanogaster/DroID/Process_DroID_data.py
f038b000b5a7edf50a1d87a1eca4535228d528ab
[]
no_license
jr-cs2004/Network_Analysis
3b70b097096d4ede2e91da77d51929acae9e9dff
932fdec05637e6bb981a0e56e26f91281035bb31
refs/heads/master
2021-06-25T23:42:43.646903
2021-05-12T10:38:32
2021-05-12T10:38:32
221,453,429
0
0
null
null
null
null
UTF-8
Python
false
false
5,484
py
# ###################################################################################### # ###################################################################################### # ###################################################################################### # First we must read the list of all interacti...
[ "jr.cs2004@gmail.com" ]
jr.cs2004@gmail.com
632d73826d4e6f8863737297d8535d2040dbbaf7
7365acd3f26a4c5003b48e0ac47358d12bbd12cc
/src/Main/collisions.py
f91f1f239e232978c0739a078f12fd5fab14d5d5
[]
no_license
federicoorlandini/pyAsteroid
a921c9857d44f6a9a972eaf7af455c32d00841c0
13bc5a5ec8a0f7b992b980a50e896292cc148edc
refs/heads/master
2021-01-19T12:33:54.915897
2018-10-13T10:06:09
2018-10-13T10:06:09
27,562,114
0
0
null
null
null
null
UTF-8
Python
false
false
2,515
py
class CollisionInfo(object): """ This class contains all the information about a collision """ def __init__(self, first_collider_object_id, second_collider_object_id): self.first_collider_object_id = first_collider_object_id self.second_collider_object_id = second_collider_object_id class ...
[ "federico.orlandini@gmail.com" ]
federico.orlandini@gmail.com
65afa1f2ec2766360a434863c0492058e97d2aeb
2a4ad073755ff447926e44b7c2e0b56b5ded37d2
/algorithm/sort algorithm/merge_sort.py
92e56c286905eec9488110d807ad37f09c0b8983
[]
no_license
wcb2213/Learning_notes
3a9b3fdb7df5c6844a9031db8dd7e9dd858e093c
d481e1754c15c91557027bee872f4d97da3c0fca
refs/heads/master
2021-07-06T15:54:56.199655
2020-09-04T14:05:50
2020-09-04T14:05:50
174,832,296
0
0
null
null
null
null
UTF-8
Python
false
false
980
py
#!/usr/bin/env/ python # -*- coding:utf-8 -*- # Created by: Vanish # Created on: 2019/6/14 """归并排序""" # 时间复杂度(平均) 时间复杂度(最坏) 时间复杂度(最好) 空间复杂度 稳定性 复杂性 # O(nlog2n)O(nlog2n) O(nlog2n)O(nlog2n) O(nlog2n)O(nlog2n) O(n)O(n) 稳定 较复杂 def MergeSort(lists): if len(lists) < 2: return lists num = len(lists) // 2 ...
[ "wcb2213@163.com" ]
wcb2213@163.com
c65e2b0bf275fe122e5d25f864896ff3412425a4
c5917ee90442781f081d0916b1e4ebc07363c3d8
/ESP32/sds.py
02d6fc95070bc9ea5d244ca58fd8b2ad0c24f011
[ "MIT" ]
permissive
kif/dustair
e83969955f9af7cc667e4c323e9124053f26b1ca
7c55a9b915b0effc49e27d26fb34fd6aa1717d35
refs/heads/master
2021-05-04T23:26:37.517105
2018-11-12T17:26:58
2018-11-12T17:26:58
119,351,364
0
0
null
null
null
null
UTF-8
Python
false
false
2,585
py
try: import uasyncio as asyncio except ImportError: import asyncio try: from micropython import const except ImportError: const = lambda x : x from collections import namedtuple Dust = namedtuple("Dust", ["PM2_5", "PM10"]) # port=1, baud=9600 class SDS: "A class receiving particule measurement ...
[ "jerome.kieffer@terre-adelie.org" ]
jerome.kieffer@terre-adelie.org
031014d9a03b55b2b278325dadd43f0171c2ba7c
845e854c09bcf7b838433a1af9ecb166722d4aa9
/Bank_Training_Project_Database.py
c9b8a11571a75fc363c17e6533d88c9cf8c85052
[]
no_license
DrazelX/Xoriant_Training-_Project
4c7f28f2566943cc271a841e406243259532377f
302355aa91268c7dd095af91a746bb901994a13e
refs/heads/main
2023-08-14T01:50:46.314483
2021-09-22T16:45:40
2021-09-22T16:45:40
409,161,161
0
0
null
null
null
null
UTF-8
Python
false
false
1,313
py
import pymongo client = pymongo.MongoClient("mongodb://localhost:27017/") print(client) db = client['Bank_Project'] collection = db['Sample'] BankList = [ {'user_id': '1', 'Name': 'ABC', 'Address': 'aaa aaa aaa', 'Phone': '11111-11111', 'City': 'Pune', 'state': 'Maharashtra'}, {'user_id': '2', 'Name': 'DEF', '...
[ "ayush21e@gmail.com" ]
ayush21e@gmail.com
c58ace3ff37a6980a1aae0b6382af905a9a8d177
6c278c1114be873963f7cd934590d00db0aa7268
/exercise_db.py
bc91151976525a25bf3b44edb41b5d29b3209cbd
[]
no_license
lvlvk/first_one
6253320c61c44af14cd52aef0b4b3bec85133abc
625f516e3b67749ee69d3902b8e71fce9a9c0791
refs/heads/master
2020-09-13T03:33:44.655287
2019-11-19T08:45:52
2019-11-19T08:45:52
222,638,311
0
0
null
null
null
null
UTF-8
Python
false
false
859
py
""" 练习 创建数据库 dict 使用utf8编码 在数据库中创建数据表 words 包含字段 id word mean 将单词本中的单词插入到数据库中,单词和解释分别插入记录的对应字段 """ import pymysql import re # 连接数据库 db = pymysql.connect(host='localhost', port=3306, user='root', password='123456', database='dict', charset='utf8') # 生成游标对象,用于操作...
[ "lvjiaqi791125805@hotmail.com" ]
lvjiaqi791125805@hotmail.com