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
7bccdd943219008b9ab87f2c0d3a9f60a25927c6
9b20743ec6cd28d749a4323dcbadb1a0cffb281b
/03_Linear_Algebra_for_Machine_Learning/04/05_vector_division.py
7a5cbfcb42a4a5db9dfe2635df84d2ce76f0ddf3
[]
no_license
jggrimesdc-zz/MachineLearningExercises
6e1c7e1f95399e69bba95cdfe17c4f8d8c90d178
ee265f1c6029c91daff172b3e7c1a96177646bc5
refs/heads/master
2023-03-07T19:30:26.691659
2021-02-19T08:00:49
2021-02-19T08:00:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
# vector division from numpy import array # define first vector a = array([1, 2, 3]) print(a) # define second vector b = array([1, 2, 3]) print(b) # divide vectors c = a / b print(c)
[ "jgrimes@jgrimes.tech" ]
jgrimes@jgrimes.tech
b923127047254c84445608e989311a4fb0eb0b40
4f4776eb69cbea9ee1c87a22732c5d778855c83a
/leetcode/Number_Complement.py
6f4cc7d18ff977b72e60674c3283b67bee1f0ecb
[]
no_license
k4u5h4L/algorithms
4a0e694109b8aadd0e3b7a66d4c20692ecdef343
b66f43354792b1a6facff90990a7685f5ed36a68
refs/heads/main
2023-08-19T13:13:14.931456
2021-10-05T13:01:58
2021-10-05T13:01:58
383,174,341
1
0
null
null
null
null
UTF-8
Python
false
false
1,079
py
''' Number Complement Easy The complement of an integer is the integer you get when you flip all the 0's to 1's and all the 1's to 0's in its binary representation. For example, The integer 5 is "101" in binary and its complement is "010" which is the integer 2. Given an integer num, return its complement. E...
[ "noreply@github.com" ]
k4u5h4L.noreply@github.com
bd01566b4e6d8ca42a82ef1dfdb095994b042611
9ee4381b23fc76a6c3819eacd67cfcce873f7119
/migrations/versions/0c6379be7d05_.py
67791e78005673f73c2fbd00a19e8e80e6309d78
[]
no_license
jasonsie1024/WLPCS
51c6ae34110bd86974075f82028b9ae0a03a1123
d0d5331344cfe977bbf5524e0bfbaa99f9b229de
refs/heads/master
2022-07-30T09:53:18.303528
2019-02-03T06:47:21
2019-02-03T06:47:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,672
py
"""empty message Revision ID: 0c6379be7d05 Revises: Create Date: 2019-02-03 10:28:59.904314 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '0c6379be7d05' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
[ "jason.plainlog@gmail.com" ]
jason.plainlog@gmail.com
fcd73cacbfdd0a804119b055112f108cc641cd1f
fd29e3d63e1741760f189e80b5c108ec966aa051
/client.tac
651526af44ae23c17338420eb63e9d17c4208fef
[]
no_license
hiyeshin/yoga_socket
f76ce8992a3def5baa1378e09209706ed32a2f66
18f855f6a73f16f11236a09e34bf3b6c74e653f7
refs/heads/master
2020-06-05T07:56:54.874350
2013-04-27T09:06:01
2013-04-27T09:06:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
772
tac
from twisted.application import service, internet from rpi_ws.client_protocol import RPIClientProtocol, ReconnectingWebSocketClientFactory from rpi_ws import settings def getService(): server_url = "ws://192.168.1.3:9000/rpi/" #maybe I should change this later #server_url = "ws://172.26.13.137:9000/rpi/" factory ...
[ "hiyeshin@gmail.com" ]
hiyeshin@gmail.com
1c77e24b4bc144d88c51f323d1c8162383c278ae
67216a79fe61b0ad144ab7b65c69713cbbb584f5
/migrations/versions/3e3ffcf756f4_.py
b7afea4765f6dd3df4e1534d5f74bb1d91e0b16d
[]
no_license
BenMini/Fyyur
430072a92cf951bb1a871e2a15143c7b15c80153
ab354c40ed172e74373bbc4c0889de922e6fe1b8
refs/heads/master
2022-12-26T08:53:05.140030
2020-03-07T04:26:00
2020-03-07T04:26:00
242,560,470
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
"""empty message Revision ID: 3e3ffcf756f4 Revises: 6c476e731f0c Create Date: 2020-02-10 22:36:19.986512 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '3e3ffcf756f4' down_revision = '6c476e731f0c' branch_labels = None depends_on = None def upgrade(): # ...
[ "benminifie@Bens-MacBook-Pro.local" ]
benminifie@Bens-MacBook-Pro.local
31fafff04d22006623a7bc672c81339d13885407
22ccc673a522b52f2678b6ac96e3ff2a104864ff
/jobs/migrations/0005_auto_20150902_0600.py
e6e2f4f6043f8e5e142666aeaf0c677401c0f62a
[]
no_license
ivlevdenis/pythondigest
07e448da149d92f37b8ce3bd01b645ace1fa0888
f8ccc44808a26960fb69a4c4c3491df3e6d3d24e
refs/heads/master
2021-01-18T02:09:42.121559
2016-05-15T22:44:34
2016-05-15T22:44:34
58,350,368
0
0
null
2016-05-09T05:21:39
2016-05-09T05:21:39
null
UTF-8
Python
false
false
1,435
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('jobs', '0004_jobfeed_is_activated'), ] operations = [ migrations.RemoveField( model_name='jobitem', ...
[ "sapronov.alexander92@gmail.com" ]
sapronov.alexander92@gmail.com
29a4a3873def8d66a7550cce0d72f34abc3dfd80
6d2abfef2cb571b2dccd345ad752ba6bdfec92ee
/generators/html.py
8a3366dbfbbd6aa62b89e429d08e5655ed3845d0
[]
no_license
jariberi/apprework
26e42b1c4c03443df3e2ddc39c70dd85c775981d
c4e033fd30854c650d1cc37f02ab8e01d989cb29
refs/heads/master
2016-09-06T05:29:43.931358
2015-03-17T01:46:11
2015-03-17T01:46:11
31,931,680
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
# TODO from generators.base_gen import ReportGenerator class HTMLGenerator(ReportGenerator): """This is a generator to output a XHTML that uses CSS and best practices on standards.""" filename = None def __init__(self, report, filename): super(HTMLGenerator, self).__init__(report, *args, **kw...
[ "jariberi@gmail.com" ]
jariberi@gmail.com
a64b0a2dd100c7fbe907d347b9754069df72d64e
ac9eb074ba07262e233f78b4f6922a29f164d914
/week4_paths2/2_negative_cycle/negative_cycle.py
67718c63742900ba788513c84152733d6ae46e59
[]
no_license
own3dh2so4/coursera_algorithms-on-graphs
eb07f99b9626bf52b2f50ed143b97b3fcbe2f1dc
063bd68e887298c2f6396aef5c1a1c0e07b78253
refs/heads/master
2022-06-09T05:18:29.981022
2020-05-03T18:30:55
2020-05-03T18:30:55
260,906,201
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
#Uses python3 import sys def relax(dist, u, v, cost, prev): if dist[v] is None or dist[v] > dist[u] + cost: dist[v] = dist[u] + cost prev[v] = u return True return False def negative_cycle(adj, cost): visited = [ False for _ in range(len(adj))] for k in range(len(adj)): ...
[ "davidga1993@gmail.com" ]
davidga1993@gmail.com
a5be6c3635c89f6e75ff82ea96ced8ca2ec222b1
b3b104acc91e26c14d8d1d3211f5e7a6094041a5
/src/utils/str2bool.py
5247a3770550993a24fda8d670b863cc7e40ec33
[ "MIT" ]
permissive
HappyGradu/Machine-Learning-Cookbooks
c88c877001fe586e789be5f38d48136eda476246
7afded6544a47039723fdf64f74c209db0a3f83a
refs/heads/master
2020-06-05T20:17:46.040209
2019-05-31T03:23:22
2019-05-31T03:23:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
""" This script defines a function on that how to convert a string from ('yes', 'true') to boolean variable 'True'. Author: Hailiang Zhao """ def str2bool(judge): """ Convert the input judgement (yes or no) into boolean variable (True or False). :param judge: the input judgement :return: True or...
[ "hliangzhao@163.com" ]
hliangzhao@163.com
234fb35529a945d7a473a628234aa6389cbc3044
f35cc10fc2cc064bc887a52e05d46a8297bec88a
/python/django/MyWeb/books/migrations/0003_auto_20170720_1035.py
442786e898d953256a96d61c2bd21c21438c4af1
[]
no_license
privatesky911/theBusyCoderDemo
0ba0047d3e7b719f54584854f10acf9e48bafcda
4225d039a7a7c223b383dfaa818535fce15219ba
refs/heads/master
2020-04-12T06:31:14.405151
2017-07-20T10:01:56
2017-07-20T10:01:56
65,343,494
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-07-20 02:35 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('books', '0002_auto_20170719_1447'), ] operations =...
[ "huxj-win7" ]
huxj-win7
fd30cbf33b7a94e9cba9d39a95ec3ac9243b5d48
e89509b453632747077bc57dbec265a7703d5c7c
/function/globalfunc/baiscadd.py
8c7c28e3fdb91a3022af78a3ba7e14b70d447686
[]
no_license
Madhav2108/udemy-python-as
a9dcfdbfdc1bb85471aa66de77957e962a7c5486
0bc6a501516618fb3c7ab10be6bc16c047aeec3f
refs/heads/master
2023-03-30T11:25:16.064592
2021-03-30T18:10:46
2021-03-30T18:10:46
286,001,815
0
0
null
null
null
null
UTF-8
Python
false
false
66
py
a = 15 b = 10 def add(): c = a + b print(c) add()
[ "noreply@github.com" ]
Madhav2108.noreply@github.com
47010cc8029ce26f087bc5af210729e2ad8964d0
6062dc6c23a4013a879617cd9dd8d60fba582964
/day23/machine.py
16384f67fcfce888fea5c9cb2095b5fec6a57bfc
[]
no_license
grey-area/advent-of-code-2017
8134a1213e69460e24a821ff96e38cbc7f83b480
87c213277e4535fff0a1dcf7ad26e182e20b8165
refs/heads/master
2020-04-13T05:38:36.852721
2018-12-30T23:31:00
2018-12-30T23:31:00
162,997,827
0
0
null
null
null
null
UTF-8
Python
false
false
1,514
py
from collections import defaultdict from collections import namedtuple from collections import deque import operator from functools import partial Instruction = namedtuple('Instruction', ['op', 'args']) class Machine(): def __init__(self, filename): self.registers = defaultdict(int) self.load_prog...
[ "andrew@awebb.info" ]
andrew@awebb.info
2801ad06b45347ea2e6d78a2191b54f5ecb06a64
c3a8df823bed7ad10f510889f6c757723f630ba2
/visualization/__main__.py
d6275b308d8e35634f8aad9380039b3d3ad11cc5
[ "MIT" ]
permissive
pkarakal/serial-networking
f049a4168e78a42f1b12f1c82ce3ea42cbf09603
4adf5311b49b64dd0ec04f053006cb18496f087e
refs/heads/master
2023-04-11T07:24:14.321885
2021-04-22T10:14:20
2021-04-22T10:14:20
340,639,557
1
0
MIT
2021-04-22T10:14:20
2021-02-20T11:36:53
Java
UTF-8
Python
false
false
1,804
py
from pandas import read_csv from matplotlib import pyplot import glob import cv2 import sys def parse_echo_csv(): all_files = glob.glob("echo*.csv") for filename in all_files: fig = pyplot.figure() frame = read_csv(filename, header=0, index_col=0, usecols=[0, 3]) pyplot.plot(frame["Dur...
[ "pavloc.kara@outlook.com" ]
pavloc.kara@outlook.com
4bb3e3cad9993c564bdbd34a95aacde329ea98b1
742af726182ec3f2e5fc82c3745e3d28c2c79e3c
/setup.py
089d24f1ff2f86dc7733d5ae988358ba84397bd0
[ "MIT" ]
permissive
sommersoft/RosiePi_Node_Server
0a06680390e669ac366cf8db36ad5cae2ae0c75f
2cb46ee8e7e9f1a42f76adc83ea9d17dc4f61335
refs/heads/master
2020-12-26T20:31:31.677853
2020-06-06T15:50:13
2020-06-06T15:50:13
237,633,814
0
0
MIT
2020-06-06T15:50:14
2020-02-01T15:21:16
Python
UTF-8
Python
false
false
295
py
from setuptools import find_packages, setup setup( name='rosiepi_node_server', version='0.0.1', packages=find_packages('node_server'), include_package_data=True, zip_safe=False, install_requires=[ 'flask', 'jinja2', 'rq', 'redis' ] )
[ "sommersoft@gmail.com" ]
sommersoft@gmail.com
e01a94dd39942adc94f53e0ca4113b6f0c4832af
c6726a9fc351c42594741cc0a8e09cb55bd2d705
/Pi files/LoRaUSB.py
61b361cd10ec85dbc6db1196d79bf4e9542ebf3a
[]
no_license
ITheCon/LoRaWAN_Mapping_5th_Year_group
fb3040bc82553ba0163b9e5a8662d90c6d0236fb
295df26675e148b0bb5ec8e22c3cc295c2e05780
refs/heads/main
2023-04-01T18:38:14.038588
2021-04-07T14:27:40
2021-04-07T14:27:40
337,122,728
0
0
null
null
null
null
UTF-8
Python
false
false
1,232
py
#!/usr/bin/env python import os import serial from time import sleep from datetime import datetime import time def getCoord(channel): LoRa.write("RD " + str(channel)) received_data = LoRa.read() sleep(0.05) data_left = LoRa.inWaiting() received_data += LoRa.read(data_left) ...
[ "ben@rathobyres.co.uk" ]
ben@rathobyres.co.uk
878241c38b1cc894592d1d2fe871e4d0039996ca
3853c858d97a8cf1a9f18fa422b1c428cad13521
/Pitch_control/pitch_env.py
e847849583d3015091eb56ccb8837e0b9e4496c4
[]
no_license
jinhyun9402/Reinforce_Learning
ff04a21aecbe07377c597eb3feda7ed382512deb
12fee64b7fd67f6aeae8f3ee0dab57349daa3494
refs/heads/master
2022-12-03T11:02:35.714874
2020-08-18T19:11:41
2020-08-18T19:11:41
285,758,509
0
0
null
null
null
null
UTF-8
Python
false
false
3,573
py
import math import gym from gym import spaces, logger from gym.utils import seeding import numpy as np class PitchControlEnv(gym.Env): def __init__(self): self.deltaE_mag = 0.01 * math.pi / 180 self.tau = 0.02 # seconds between state updates self.kinematics_integrator = 'rk4' # A...
[ "jinhyun9402@naver.com" ]
jinhyun9402@naver.com
b4cf072a621ad81b2299a47964c8c457f274039b
277538ab518bc60ad4e692f3d996c05db4a387d0
/venv/bin/django-admin
ea3f0d5c97ec19acfd929d8d603fb6b19daafa59
[]
no_license
vsingh1438/iWant-1
22368c13b78a04160fb42dfc37479b2873b7f682
828b8b465e27181b68f8fbaea6dbecaa507d54d1
refs/heads/master
2020-12-29T01:00:38.216428
2015-10-04T01:55:40
2015-10-04T01:55:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
300
#!/Users/sidmalladi007/GitHub/iWant/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "sid.malladi.007@gmail.com" ]
sid.malladi.007@gmail.com
abc195cc80dee6e430b01353bec29e628b93de8c
5bdc32f325456ec402e78c656e5fd3c24af85a1d
/map-headers.py
fd02d9be8d7598aadefa16497bc158b1e36f3d5a
[]
no_license
naltak/m-c-tools-code-coverage
6a15f388f462c330cbb8a8315ab9dba55ff4a06a
c08ad0f9f2b33973119847545f0034d3144d586b
refs/heads/master
2021-01-16T21:21:28.772244
2012-11-23T14:14:52
2012-11-23T14:14:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,245
py
#!/usr/bin/python import os, sys def main(argv): from optparse import OptionParser o = OptionParser() o.add_option('-m', '--map-string', dest="map_string", default="dist/include/", help="Try to map files containing STRING", metavar="STRING") o.add_option('-b', '--base-string', dest="base_string", defaul...
[ "choller@mozilla.com" ]
choller@mozilla.com
e07f624ea0d255df65ac483eff918d2f319b22b5
afea9757be324c8def68955a12be11d71ce6ad35
/willyanealves/services/migrations/0009_auto_20201209_1404.py
b2e2a364f136f17ebd91a275a705f8061d4ef9ea
[]
no_license
bergpb/willyane-alves
c713cac3ec3a68005f3b8145985693d2477ba706
8b2b9922ba35bf2043f2345228f03d80dbd01098
refs/heads/master
2023-02-10T19:57:50.893172
2021-01-11T16:17:14
2021-01-11T16:17:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
# Generated by Django 3.1.2 on 2020-12-09 17:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('services', '0008_auto_20201209_1400'), ] operations = [ migrations.AlterField( model_name='service', n...
[ "jocsadm@gmail.com" ]
jocsadm@gmail.com
7084db3062d66581c38fbdc43d86b9d20a9172c9
4926667354fa1f5c8a93336c4d6e2b9f6630836e
/1534.py
13cc2b14de3bdc53a7c3d07c0f26668d8b35111d
[]
no_license
nascarsayan/lintcode
343b3f6e7071479f0299dd1dd1d8068cbd7a7d9e
4da24b9f5f182964a1bdf4beaa8afc17eb7a70f4
refs/heads/master
2021-07-13T12:31:45.883179
2020-07-20T02:27:53
2020-07-20T02:27:53
185,825,565
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
""" Definition of TreeNode: class TreeNode: def __init__(self, val): self.val = val self.left, self.right = None, None """ class Solution: """ @param root: root of a tree @return: head node of a doubly linked list """ def treeToDoublyList(self, root): # Write your code here. def...
[ "nascarsayan@iitkgp.ac.in" ]
nascarsayan@iitkgp.ac.in
edfa698a2b59a1f3f4933f667ae163d842cb428d
f06ddca5258290a1e7448a18e1d24a9d20226fbd
/pytext/common/constants.py
3b0c31b01f7bc57811441b3f5a267b920e948602
[ "BSD-3-Clause" ]
permissive
mruberry/pytext
6d64bc37429e3dd5581e5b3b6bf60bd216b6f445
3bba58a048c87d7c93a41830fa7853896c4b3e66
refs/heads/master
2022-07-16T07:41:47.781126
2020-05-14T04:52:35
2020-05-14T04:54:33
263,892,770
2
0
NOASSERTION
2020-05-14T11:11:33
2020-05-14T11:11:32
null
UTF-8
Python
false
false
2,357
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved from enum import Enum class DatasetFieldName: DOC_LABEL_FIELD = "doc_label" WORD_LABEL_FIELD = "word_label" UTTERANCE_FIELD = "utterance" TEXT_FIELD = "word_feat" SEQ_FIELD = "seq_word_feat" DICT_FIE...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
1c21123833308e103bf917a24ffbcd7612967ca3
5e67f9e8ff1d489367ee3f6742af019c2315565c
/causal_meta/utils/data_utils.py
7e119cff29dbf025fc891713f647822b87a901c9
[]
no_license
yuanpeng16/EDCR
1590a9ce585388a9659138f479d9d61596f4aa9f
61724fbb37aa75a1249a68c31f01270abaaf101f
refs/heads/master
2022-12-24T18:05:35.860353
2020-10-01T22:15:58
2020-10-01T22:15:58
187,728,785
4
0
null
null
null
null
UTF-8
Python
false
false
2,975
py
import torch import torch.nn as nn import numpy as np import scipy from scipy import interpolate try: import matplotlib.pyplot as plt except Exception: plt = None class RandomSplineSCM(nn.Module): def __init__(self, input_noise=False, output_noise=True, span=6, num_anchors=10, order=3, ...
[ "ec6dde01667145e58de60f864e05a4@gmail.com" ]
ec6dde01667145e58de60f864e05a4@gmail.com
a2550f4a7f4e7d574584d7a2ef5db74376595e1b
de5d7bab4e35b3f2a6426ce09e0d9726443c3737
/simple_ecommerce/simple_ecommerce/middleware.py
ec466cee584dc3e13ae19a081d1c7cd23816016e
[]
no_license
lucyemmel/speedwagon-foundation-shop
595135643e7ac325d356c46c68b6ab02221b4882
e62bc4593dfafb74e260e46339f55c0d4d0345f8
refs/heads/main
2022-12-30T20:22:16.477284
2020-10-21T15:08:57
2020-10-21T15:08:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
class FramingControlMiddleware: def __init__(self, get_response): self.get_response = get_response def __call__(self, request): response = self.get_response(request) response['Content-Security-Policy'] = 'frame-ancestors http://localhost:3000 http://127.0.0.1:3000' return respo...
[ "s8daemme@stud.uni-saarland.de" ]
s8daemme@stud.uni-saarland.de
101feda1a0f140f3e9c0891e6c61e0269a85ac2e
dda862418770f3885256d96e9bdb13d0759c5f43
/codeforces/div-2/nastya-and-rice.py
a2c25afd65589336a3210b2dd8ff1e66d0aefc44
[ "MIT" ]
permissive
bellatrixdatacommunity/data-structure-and-algorithms
d56ec485ebe7a5117d4922caeb0cd44c5dddc96f
d24c4001a797c12347973263a0f4f98939e86900
refs/heads/master
2022-12-03T00:51:07.944915
2020-08-13T20:30:51
2020-08-13T20:30:51
270,268,375
4
0
MIT
2020-08-13T20:30:53
2020-06-07T10:19:36
Python
UTF-8
Python
false
false
3,299
py
""" [A. Nastya and Rice](https://codeforces.com/contest/1341/problem/A) time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Nastya just made a huge mistake and dropped a whole package of rice on the floor. Mom will come soon. If she sees this, then Nastya will be pu...
[ "adityaraman96@gmail.com" ]
adityaraman96@gmail.com
35905c104473f51d31d16699f3bdd5ba4edfad55
d67b24db7a6175735cdd6fac05dd03014c8a0680
/detection/configs/retinanet_res34_coco_3x_800size.py
a376518e58a5723de8c9e75c75f1135aa33e7565
[]
no_license
ZaccurLi/megengine_detection
aea0c6399b467a654efd7c9f50b8d9746e29bbf5
4bbb25622e2b5831640c26060c0bf5440b01c9b4
refs/heads/main
2023-08-04T12:16:00.149550
2021-09-10T10:38:06
2021-09-10T10:38:06
404,299,737
0
0
null
null
null
null
UTF-8
Python
false
false
1,212
py
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
[ "zaccurli@outlook.com" ]
zaccurli@outlook.com
221f904130a40fe0b1ec2fb66a8dfd6a62d01cf5
973d698403dfaac56e2348aa0a9a73459f4abde6
/hello/passwordsafe/x.py
823735c8b8590350e41b66bea08a4fec4e948fc9
[ "MIT" ]
permissive
JonasAZou/hellodjango
6631ee53997ee7f522832b61539fc42e92f3be8b
7965c1373da2b8c56ab33d769c20ee7fd14458bb
refs/heads/master
2021-03-12T22:33:39.809063
2013-09-02T10:18:41
2013-09-02T10:18:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
from Crypto.Cipher import DES, AES from Crypto import Random key = b'Sixteen byte key' tp = b'attack at dawnxx' iv = Random.new().read(AES.block_size) cipher = AES.new(key, AES.MODE_CBC, iv) cipher2 = AES.new(key, AES.MODE_CBC, iv) msg = cipher.encrypt(tp) print cipher2.decrypt(msg)
[ "dlutxx@gmail.com" ]
dlutxx@gmail.com
7103550a777cf28d04316b074ffc54028892c836
5629c6f395d2d475ca091f83171f045408ad65b8
/hangman_app.py
1c895b4dd99233061c41aaa7ffefb7857ad03695
[]
no_license
oluxiwen/pa06_hangman
8acf48e2bdd601d5fc148e2562535b11ec18ee4f
1a1de42c154fd961dfa562f05f15b7cbac4a0eb1
refs/heads/master
2022-04-14T18:53:58.519727
2020-04-13T07:55:39
2020-04-13T07:55:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,623
py
""" hangman_app.py is an app for playing hangman in the terminal it is also used as a module in the hangman_webapp flask app """ import random words = "dog cat mouse deer snake".split() def generate_random_word(): """ read a list of words from a file and pick a random one to return Skip read list f...
[ "xiwenlu@Xiwens-MacBook-Pro.local" ]
xiwenlu@Xiwens-MacBook-Pro.local
097adabf537be9d5a6651b1d6727f3853fa809ea
3d3ef26a174f8ba24c835d3d196c78ef25c501e2
/5-Proj/2-MultiWindow.py
358c71a0fc735850a853d55acd7aaf8986039d5e
[]
no_license
nithincyberitus/QtPython-0.1
296e83195036a55c6daf7825d797aa0b00a5103d
e614c4d1acd970bf9d3e2e93f921c4abe106a2fe
refs/heads/master
2020-03-21T02:07:01.417683
2018-07-13T11:03:34
2018-07-13T11:03:34
137,980,782
0
0
null
null
null
null
UTF-8
Python
false
false
2,817
py
import sys from PySide2.QtWidgets import QApplication,QMainWindow,QWidget,QVBoxLayout,QStackedWidget,QPushButton,QHBoxLayout from PySide2.QtCore import Qt class MainWindow(QMainWindow): def __init__(self): super(MainWindow, self).__init__() self.mainWidget = MainWidget(self) self.setCentral...
[ "nithin.gollapalli@cyber-itus.com" ]
nithin.gollapalli@cyber-itus.com
a1bbc613138962a859a79aef00e324ca92e8e6e5
7ee2d709a56b7dd5062e6d60ce59387062e49a33
/plot_array.py
aad979137c11b02ba391b2defb0b00def19ddccd
[]
no_license
garethgeorge/prima-p2p
160b3600aa83f86c4e4acd7624be77ffc2574cc6
2c63de7e6cb460a5c32c8c5bf127a3458e29a521
refs/heads/master
2021-01-09T04:21:39.282048
2020-02-21T23:01:31
2020-02-21T23:01:31
242,244,038
1
0
null
null
null
null
UTF-8
Python
false
false
821
py
import pulse2percept as p2p import numpy as np import matplotlib as plt from prima import Prima from pulse2percept.viz import plot_implant_on_axon_map # Array Shape plotting implant = Prima(x=-50, y=50, rot=np.deg2rad(0)) plt, _ = plot_implant_on_axon_map( implant, annotate_implant=False, marker_style='hw') # plt,...
[ "garethgeorge97@gmail.com" ]
garethgeorge97@gmail.com
f2f210f4cfed106ef2a257e05eac5a26cf8d21d1
a1cefcb39eb538535edfd4d41c4e57c780646dc3
/components/studio/controller/urls.py
cdc9189db5fa1120c2c230fc0e13255c46ae5b40
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
cawik/stackn
108562d9f12c7fbc1d6c509ab78bade0b04713a7
45641c8ed56dfce22f1cd5fc0bafa3b3d9f326d2
refs/heads/master
2023-02-17T08:00:19.999488
2020-11-02T15:21:18
2020-11-02T15:21:18
311,961,277
0
0
Apache-2.0
2020-11-13T09:29:14
2020-11-11T12:15:36
null
UTF-8
Python
false
false
345
py
from django.urls import path from . import views app_name = 'controller' urlpatterns = [ # path('<int:project_id>/notebooks/<int:notebook_id>', views.index, name='notebooks') # path('<int:project_id>', views.index, name='notebooks') # path('pause', views.pause, name='pause'), # path('resume', views.re...
[ "morgan@scaleoutsystems.com" ]
morgan@scaleoutsystems.com
b05cf28737c13f71606d6764edd0c984a3f32776
372211ef59abfec8443d5d69bd443a57640180bb
/src/main_task5.py
e06096f97638978a1e980b185601a093976a08fd
[]
no_license
ivanBobrov/itmoAlgorithmsLab
097c69336d4a1a4a63fd635baaa7219977a333e3
daadf12968cc2037e866b837365557d2721fe2cc
refs/heads/master
2020-08-01T01:31:02.414874
2019-12-25T03:35:08
2019-12-25T03:35:08
210,814,346
3
1
null
null
null
null
UTF-8
Python
false
false
3,125
py
import queue import networkx as nx import matplotlib.pyplot as plt print("Generating random graph") graph = nx.gnm_random_graph(100, 2000, 84640) plt.figure(dpi=300) plt.box(False) nx_pos = nx.spring_layout(graph, seed = 184673) nx.draw(graph, nx_pos, node_size=30, with_labels=False, edge_color='#00000006', n...
[ "id.bobr@gmail.com" ]
id.bobr@gmail.com
e1b04397e1ceb2278327aa1a1914a2952f396dd6
783b56ae30be9481b5489a6f3aefffb40754d96e
/sagar/urls.py
49eae2257795c5c10148b20f2c5f72d938b70b87
[]
no_license
ramsagar2215/my-first-blog
b18b19c2ae0b4ddcb945173072e046440d8de2bd
c7cb7322d95f7fd1db823606722825eab02a838b
refs/heads/master
2021-01-10T05:37:55.138093
2016-02-19T06:41:08
2016-02-19T06:41:08
52,067,801
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'sagar.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', include(admin.site.urls)), )
[ "sagar@django.com" ]
sagar@django.com
b209c4ca9943cdd93cd8c045a70591778461c70f
893879ac757f0b623ce8e7335b2d73eeaadcdc08
/app.py
f1b4f4e3b9841f5307c86e8df86ec61104552fa2
[]
no_license
debika-samanta/ecommerce
2336407baa4381c0cf22a12efd02951f4e7d9ad7
497199d9fee038fda2520ab3db512c4373e48193
refs/heads/main
2023-07-19T15:58:30.429861
2021-09-07T19:13:36
2021-09-07T19:13:36
404,094,060
0
0
null
null
null
null
UTF-8
Python
false
false
18,080
py
from flask import * import sqlite3, hashlib, os import Checksum import requests import random from werkzeug.utils import secure_filename app = Flask(__name__) app.secret_key = 'random string' UPLOAD_FOLDER = 'static/uploads' ALLOWED_EXTENSIONS = set(['jpeg', 'jpg', 'png', 'gif']) app.config['UPLOAD_FOLDER']...
[ "noreply@github.com" ]
debika-samanta.noreply@github.com
66fe87cc8722b0751987b14bbb644a572cd0ba9e
0ac14167bd2f2cc0c657d9aa0a40e954cd0ff6f1
/api/core/urls.py
0d36b821c8121ca47067a38189d07e194eebdb0b
[]
no_license
bonifacius/my_drf_blog
3de158a106ae558f98534d9fed809a36a2610aad
60e7fa6720782f58bbc717b14a7d8e6dc7edad2b
refs/heads/master
2023-04-30T14:27:41.446727
2021-05-15T10:13:00
2021-05-15T10:13:00
356,218,900
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
from django.urls import path, include from rest_framework.routers import DefaultRouter from .views import PostViewSet, TagDetailView, TagView, AsideView, FeedBackView, RegisterView, ProfileView, CommentView router = DefaultRouter() router.register('posts', PostViewSet, basename='posts') urlpatterns = [ path("", i...
[ "basmanovroman@mail.ru" ]
basmanovroman@mail.ru
ca6c4014e8b19a81eee8347fdb6f90318957ef64
9f9ac37f22333569ae3bec78075d0918c3ad2742
/resources/reference/source/conf.py
943a1876975f4250eed61417efc92d2d98a2483f
[ "MIT" ]
permissive
credativ/pg_backup_ctl-plus
602bcd0ce2bcce1653dd340e7b134c3b8f92973d
d1655f9791be9227e17b60731829bbd8572e850b
refs/heads/master
2023-03-20T22:15:21.159701
2021-03-16T18:08:53
2021-03-16T18:08:53
348,447,804
0
1
null
null
null
null
UTF-8
Python
false
false
5,621
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # pg_backup_ctl++ documentation build configuration file, created by # sphinx-quickstart on Thu Feb 1 13:23:34 2018. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in t...
[ "bernd.helmle@credativ.de" ]
bernd.helmle@credativ.de
0824939ce9c4e02f434c2ed443ca20b887c961dc
bdbb3a8a3d2f4b6c87347046b86dfd6bd1cf12c8
/pizzas/migrations/0006_comment.py
a8dc7396c71a5ea03a123d2c204b8649595a6127
[]
no_license
loclincy10/Pizzeria
92aa6b7a6f4ce6d8902d93ffe62b444fdfabade0
eeb6a396d7e5a667cdeeb93d5ad2a29427be0a90
refs/heads/master
2022-06-27T11:17:05.742593
2020-05-06T04:56:21
2020-05-06T04:56:21
260,974,582
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
# Generated by Django 3.0.5 on 2020-05-06 01:48 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('pizzas', '0005_delete_comment'), ] operations = [ migrations.CreateModel( name='Comment', ...
[ "Lothario_Clincy1@baylor.edu" ]
Lothario_Clincy1@baylor.edu
0ff014ea72de43ccb2ca47c4aabd5df946377039
7e8ac76f11c6bbe34dac30a570484f8ed8bbf83e
/model_creation/src/CaptchaGetter.py
d8a064a5dc7644ec52ce32664fc9971256be243c
[]
no_license
mahieyin-rahmun/rds_captcha_solver
bf9e247b1acf2f5e41b7b1b94dd80989df6bd2e5
a408dadb57f92924ce68892078a9a5e272edec2f
refs/heads/master
2021-06-25T21:42:32.905222
2021-01-23T13:39:21
2021-01-23T13:39:21
188,572,982
1
0
null
null
null
null
UTF-8
Python
false
false
850
py
import urllib.request import os class CaptchaGetter: def __init__(self, num_of_rqsts, img_extension, path): self.url = 'https://rds3.northsouth.edu/index.php/captcha' self.iterations = num_of_rqsts self.dump_path = os.path.join(os.path.abspath(path), 'captcha_images') self.img_exten...
[ "mahieyin.rahmun@gmail.com" ]
mahieyin.rahmun@gmail.com
f8ea387181d506a9e98135526689cde8994b93d5
64dae0662afd7d2646225df09333d9a365e5c6b2
/furthest_point.py
2e1f83797c3633ff2d54acc1e919a0d9b9d46240
[]
no_license
sligocki/furthest-point
4f9937ced141b9756de40372fac927f1e80c6e22
abdc1912aacd535a01e9e6c8de6a7f0c5f5f9485
refs/heads/main
2022-02-04T04:28:09.903389
2018-12-31T18:33:00
2018-12-31T18:33:00
163,263,613
1
0
null
null
null
null
UTF-8
Python
false
false
3,289
py
import math class FurthestPointError(Exception): pass class Point: def __init__(self, x, y, z): self.x = x self.y = y self.z = z def __neg__(self): return Point(-self.x, -self.y, -self.z) def __sub__(self, other): return Point(self.x - other.x, self.y - other.y, ...
[ "sligocki@gmail.com" ]
sligocki@gmail.com
078898a80e009d9bfb46d60def7e52767e2d9afd
dcc7ab0e239401a6ae11b45cf2ab8ed7500a0a9e
/article/urls.py
3c6c40569e3a26132a84281a17f0e34d4bca2d74
[]
no_license
technologysansar/blogger
e35a37d87b2dbed90458bc2a4fc5d44f0142ff13
ec84505a07971d26d5d557dab25b8abe5c8df5a2
refs/heads/master
2023-04-27T09:45:53.024416
2021-05-17T11:11:09
2021-05-17T11:11:09
367,368,189
0
1
null
null
null
null
UTF-8
Python
false
false
2,816
py
from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from .import views urlpatterns = [ path("", views.index, name="index"), path("contact/", views.contact, name="Contact"), path("subscribe/", views.sub...
[ "devendra mishra" ]
devendra mishra
4c4e498f8f69a2285e2c364574d94132fee73875
4dd695521343d56ff943e8c1768343d7680714e3
/experiments/scripts_auto_closedset_ynoguti/config_iVector_200_fold6.py
e61d28d540206408e386efddf28c2f7122093a8b
[]
no_license
natharb/environment
ea659ee541f6473e92b5b30c549e52b66f47b280
86e6cee6e01d2370abeb7c55a2c8a15001735919
refs/heads/master
2021-09-28T02:39:02.222966
2018-11-13T12:03:34
2018-11-13T12:03:34
139,762,646
1
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
#!/usr/bin/env python # vim: set fileencoding=utf-8 : #Nathália Alves Rocha Batista (nathbapt@decom.fee.unicamp.br) import sys sys.path.insert(0, '.') import bob.bio.spear import bob.bio.gmm import numpy import scipy.spatial temp_directory = './results/closedset_ynoguti/iVector/200/fold_6/temp/' result_directory = '...
[ "nathbapt@decom.fee.unicamp.br" ]
nathbapt@decom.fee.unicamp.br
d6373eff10443fed41f31fbc6f731d44a1c41826
02b3e28fa0b4f6ece144a9455c32194e63f4bf17
/vickitrix/__init__.py
a5c33435030889c262f303092f8264c59058f6b6
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
gitter-badger/vickitrix
7b1be0813bc21503b995d75f57819397b2fcb84e
b33a6593837c5302dcc95867e982f1713d234bc9
refs/heads/master
2021-01-15T17:15:14.147257
2017-08-08T14:09:41
2017-08-08T14:09:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,542
py
#!/usr/bin/env python """ vickitrix Checks tweets using http://www.tweepy.org/ and uses rules specified in file to make market trades on GDAX using https://github.com/danpaquin/GDAX-Python. Default rules are stored in rules/vicki.py and follow the tweets of @vickicryptobot. """ from __future__ import print_function ...
[ "anellore@gmail.com" ]
anellore@gmail.com
61b3acfd2b2dc593d4df188e6b56b40a0ee6f003
9697f67b3c38993f1512e550186f78195ac0ff4d
/sandbox/v03/drawtk.py
aa83fa017f7a4dca35da23f3f59f13bc514028b7
[ "Apache-2.0" ]
permissive
zorost/Agentum
20d63154a1d0b3fcf428bc8404494f9e507f3cdb
e074b9a66795936ba48074d68ec2b1d1da5e3eb4
refs/heads/master
2020-12-28T23:35:08.954608
2014-03-26T17:11:14
2014-03-26T17:11:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,339
py
try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk canvas = None root = None cell_size = 3 cells = {} def draw_init(grid): global canvas, root if not canvas: dim = grid.dimensions root = tk.Tk() root.configure() canvas = tk.Ca...
[ "dev@mydeb.(none)" ]
dev@mydeb.(none)
be55b35724dee1373f80ce49cdbcb9538d913f9c
d61ad40cacad5b5f38d57bc443583dcf623fc4b0
/blogcrawler/blogcrawler/spiders/blogspider.py
64ce764000ebd241237c8dfa1292efc134f73f7a
[]
no_license
alexhanna/hse-scraping
59cef4098bdfaa41c824f0cc74cc034def5517b9
0a8bb2e8898161166c7704e2f78bdc1fb2a3122d
refs/heads/master
2021-01-16T19:20:38.352259
2013-08-22T06:18:33
2013-08-22T06:18:33
12,169,963
0
1
null
null
null
null
UTF-8
Python
false
false
1,123
py
#!/usr/bin/python from scrapy.contrib.spiders import CrawlSpider, Rule from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor from blogcrawler.items import BlogcrawlerItem from urlparse import urlparse class BlogSpider(CrawlSpider): name = "blogspider" allowed_domains = [ "wordpress.com"...
[ "alex.hanna@gmail.com" ]
alex.hanna@gmail.com
fa81b3e05faf268c458edae4c6bb118c72a07655
48eb03edddd57415e25e84b562afea5a6ad95980
/03_face_recognition.py
679fe674bbc756106266d5c0231d6ae200eb92b4
[]
no_license
sayeedap/Paperless-Ticketing-Using-Face-Recognition-System
12a351c5c81bf973394a0f851632b0996fc647d8
2798b9b65b1924c6810f78b743110c731a7dcf62
refs/heads/master
2021-10-02T19:03:23.750345
2018-11-30T08:35:36
2018-11-30T08:35:36
151,741,263
3
3
null
null
null
null
UTF-8
Python
false
false
5,558
py
import cv2 import numpy as np import os import mysql.connector import datetime import time mydb = mysql.connector.connect( host="localhost", user="root", passwd="", database="python" ) mycursor = mydb.cursor() def logged(station_id,station_name): recognizer = cv2.face.LBPHFaceRecognizer_create() rec...
[ "noreply@github.com" ]
sayeedap.noreply@github.com
9ba6ce568f47a0172f7d99b0040d87c309339a1c
5891f624625616eba56ab29283ca9b12c7dbb334
/inshape/migrations/0019_auto_20190305_2019.py
3ae875820be9442eaeefcd2a7936afc393e74148
[]
no_license
markwcorbin/mcweb
b842572da42ca2df8b395c7af65dfc524b6233af
c7a85e4e7553063ccb0106d85847b46532f14224
refs/heads/master
2023-01-20T19:42:19.076624
2023-01-16T16:38:40
2023-01-16T16:38:40
115,457,048
0
0
null
null
null
null
UTF-8
Python
false
false
1,536
py
# Generated by Django 2.1.1 on 2019-03-06 02:19 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('inshape', '0018_auto_20181209_1726'), ] operations = [ migrations.CreateModel( ...
[ "34870054+markwcorbin@users.noreply.github.com" ]
34870054+markwcorbin@users.noreply.github.com
a623df557e19255a003aa296bc2801320feac1d1
b2e9f579a2c3849ac8f76d741b3c71efbfec77b3
/venv/bin/easy_install-3.7
f147075b6d4b175c8e45de5438035b03717587f5
[]
no_license
LabMem010/instagram
2d4c53561b3b7e1f663556473fe5173d163b17f7
060fb22ef8ccc58e3426c91a019db9983d6b9f5f
refs/heads/master
2022-05-24T10:56:27.297165
2020-04-26T12:32:34
2020-04-26T12:32:34
258,706,136
0
0
null
null
null
null
UTF-8
Python
false
false
454
7
#!/Users/labman001/PycharmProjects/instagram/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\....
[ "38588297+LabMem010@users.noreply.github.com" ]
38588297+LabMem010@users.noreply.github.com
3eda452594630d14e50ede0ff4387b68e0cf952a
89a8c748f0c52656f0ec1b060aed8d826f5d7e57
/python/VPIAlgo.py
902038fa604b8363a8fad7ef4925bf880f272a4b
[]
no_license
vlongle/BayesianTTG
d73fb8b3d4a30044291443daf4e8390489c22f15
d4a19cbd0f5786ab044c60f972f5b2801c3b943b
refs/heads/master
2023-03-03T21:19:46.764808
2021-02-09T20:59:33
2021-02-09T20:59:33
316,132,118
0
0
null
null
null
null
UTF-8
Python
false
false
5,006
py
from utils import * #from scipy.special import softmax from stateEliminationAlgo import * class VPIAlgo(StateEliminationAlgo): def generate_proposals(self): # compute all possible proposals that this agent can give for agent in self.game.agents: agent.proposals = generate_proposals(self...
[ "vietlong.lenguyen@gmail.com" ]
vietlong.lenguyen@gmail.com
b9bb249fb650618fddb226037ef8ab1ef57c6afa
570f19a623a2ed26b1ac31efe5ac390b41a58a13
/Fastq_Parser.py
aa959f6b0dbdc9837259f5ce42d23d583c81af58
[]
no_license
RichieJu520/Fasta_Tools
5d234b21b94fa52be58b23181bcc1ea3a4289f83
cfcb83a1926be5a8d09bff028e1f596f864c49c4
refs/heads/master
2021-05-09T19:07:06.277248
2019-01-09T06:43:47
2019-01-09T06:43:47
118,632,186
1
0
null
null
null
null
UTF-8
Python
false
false
1,384
py
print 'This script is written for parsing Large Fasta file into small sub-fastas!' import os import time, sys Parameters=raw_input("Enter two parameters: [Fastaname],[NUM](*10000)(number of sequences in each sub-fasta), sepeated by Space: ") while True: try: filename=Parameters.split(' ')[0] ...
[ "noreply@github.com" ]
RichieJu520.noreply@github.com
3569af3986a45ecc6f2342c1dc31a185ba38d237
4e67005ced35b46ce56fd485e1be570bcefdb99c
/Exercise1and2.py
51c2739a4c1c9c4d6a13bf9c73087fab3ba01e98
[]
no_license
EvaAmmann/PyCharmProjects
314b7078d8671e48356518eed8a3d76bcd248a6a
5fe17f35fdc066868ef3fafaccdae340777622cc
refs/heads/master
2021-02-11T02:41:14.239476
2020-07-02T09:18:18
2020-07-02T09:18:18
244,443,596
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
#Exercise 1 and 2 (Homework.) name = input("Dear user, what is your name? ") age = int(input ("Dear user, what is your age? ")) nextage = 0 #Inserting the +1 so that a 60 year old gets another ten years while nextage < age+1: nextage = nextage + 10 yearsuntildecade=nextage-age #Filter children out so they do not ha...
[ "eva.m.ammann@gmail.com" ]
eva.m.ammann@gmail.com
87a9d5fc07b1eeb59551a66e38e121c1bcb52f4b
bb0eeade4685dc89ff8a53beb813afdf7394989d
/ML2018/commend sys/readers.py
7d306676d9c3cffdfe249ecd0402e19a6f313dbb
[]
no_license
zhaocheng1996/pyproject
72929cd0ba2f0486d7dc87a7defa82656bf75a8e
0a1973dda314f844f9898357bc4a5c8ee3f2246d
refs/heads/master
2021-10-26T08:38:43.675739
2019-04-11T13:52:46
2019-04-11T13:52:46
176,939,063
0
0
null
null
null
null
UTF-8
Python
false
false
2,145
py
from __future__ import absolute_import, division, print_function import numpy as np import pandas as pd def read_file(filname, sep="\t"): col_names = ["user", "item", "rate", "st"]#st是timestamps时间戳 df = pd.read_csv(filname, sep=sep, header=None, names=col_names, engine='python') df["user"] -= 1 df["it...
[ "34829837+zhaocheng1996@users.noreply.github.com" ]
34829837+zhaocheng1996@users.noreply.github.com
4fcdf50c43cf0c0a802c7899882d88c66afb5521
e70b678712a355a0b51632728c7781b0bdcf29f4
/Algorithms/Python/Best-Time-to-Buy-and-Sell-Stock.py
aa4097ebb2db64fb2c8d11bb08368e8d97f353a7
[]
no_license
keyi/Leetcode_Solutions
b3e3c6835ed335d7d4ad53a1b37e59ac15fcf3af
69e4e969b435ff2796bd7c4b5dad9284a853ab54
refs/heads/master
2020-05-21T23:36:20.450053
2018-11-11T03:45:28
2018-11-11T03:45:28
33,714,612
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ if len(prices) < 2: return 0 ans, minNum = 0, prices[0] for i in range(1, len(prices)): if prices[i] > minNum: ans = max(p...
[ "yike921012@gmail.com" ]
yike921012@gmail.com
152e0657215d3db3c16210c391cd6db5bbccef15
4856c4d7bae0da3865c958aeeb5c221fa4c0d584
/client_for_threaded_server.py
2cb63bd7363cfaf839198071ac12037a8f507b1e
[]
no_license
pjumruspun/socketTicTacToe
a6fcd45a7e411ac514ea9fe58fdaf7625981a385
f366871f5f28f3fa2f8b66bf33ad5a2ac246f624
refs/heads/master
2021-02-05T07:29:09.521097
2020-02-28T12:28:42
2020-02-28T12:28:42
243,757,149
1
1
null
2020-02-28T12:27:04
2020-02-28T12:27:03
null
UTF-8
Python
false
false
1,480
py
import socket import sys def main(): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) host = "127.0.0.1" port = 8888 try: s.connect((host, port)) except: print("Connection error") sys.exit() print("\n===============================") print("input play or bye")...
[ "pokemonlizardon@gmail.com" ]
pokemonlizardon@gmail.com
6013c6c9a4abbc2aae07194e23f3416551465b96
0feaa7c38e85dbe6afc9d88eadf811d22be683e0
/imgmeta/views.py
c4f0f4e66be9640602ce5c9be80dceae1a644e50
[]
no_license
shreyansh-sinha/Cloud-Assignment2-Image-Metadata-App
257c2ce66a2d1d5a4180ef2257c0e6c081b36811
3f44a8ff82b96615a5649885d274127496c23acc
refs/heads/main
2023-01-09T21:41:14.824530
2020-11-12T14:02:29
2020-11-12T14:02:29
312,292,120
0
0
null
null
null
null
UTF-8
Python
false
false
2,945
py
from django.shortcuts import render, redirect from django.contrib.auth.decorators import login_required from PIL import Image from PIL.ExifTags import TAGS from .models import * from .forms import * from pymongo import MongoClient uri = "mongodb://root:root@52.188.19.176:27017/?authSource=admin&authMechanism=SCRAM-SHA-...
[ "shreyanshsinha2@gmail.com" ]
shreyanshsinha2@gmail.com
cdbd67b1a12b3c7320da2aafaa87a06508e9b4de
5ef19fdf04970ed0481ff29234a11b812b55a257
/OS/SRT.py
89a0d94dba43339334289d424480551cfb9d8b02
[]
no_license
priyamshah112/Study
636bfadee2384b39399b8b2c03349c9faf8853df
2ea4341d8497573b014a5275d548289696fe3662
refs/heads/master
2021-06-28T15:19:24.002518
2020-10-02T07:36:24
2020-10-02T07:36:24
149,157,682
0
0
null
2020-10-02T07:36:25
2018-09-17T16:48:41
Java
UTF-8
Python
false
false
1,762
py
class Process: def __init__(self, p_no, at, bt,wt,tat,nt,ct,rt): self.p_no = p_no self.at = at self.bt = bt self.wt =wt self.tat =tat self.nt =nt self.ct=ct self.rt=rt def Shift(alist): alist.sort(key=lambda x:x.rt) return alist def main(): n=i...
[ "priyamshah112@gmail.com" ]
priyamshah112@gmail.com
a9cd9dd578b1c065b077eaf2fea10c8ab0f16b43
8d146decd35e0f376d8107343d38e1662b94a737
/easy_django/learning_templates/settings.py
b60d15ae7e34095e26614e979f7cc723ee524f58
[]
no_license
aLLGold/deployment-exa
6bc3c19abb30c825aef0b5c17bf893dce2b29ea7
f8279c61b4fb06787bf7b69be206ba5f3615e579
refs/heads/master
2022-08-16T17:29:49.787034
2020-05-22T05:31:12
2020-05-22T05:31:12
262,042,745
0
0
null
null
null
null
UTF-8
Python
false
false
3,202
py
""" Django settings for learning_templates project. Generated by 'django-admin startproject' using Django 3.0.5. For more information on this file, see https://docs.djangoproject.com/en/3.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.0/ref/settings/ """ i...
[ "jamba0702@gmail.com" ]
jamba0702@gmail.com
e1943ace64dd59945b38d974a17a4157d58023c0
ad96dedf8544e4fab2b0359611616ccbb5bc86e6
/HAMO_pred.py
63e2987384d30c39030e98ff43e3b58097033ee4
[ "MIT" ]
permissive
siddhanthaldar/EEG_based_activity_recognition
f499714c38eddb8aaf6f03a03227bb5a3a0fb8f4
3ed6b7f9e0a7c2f7f2d719aa504aa4bdfda062cd
refs/heads/master
2020-03-23T14:05:00.726853
2018-09-22T18:17:39
2018-09-22T18:17:39
141,655,000
2
0
null
null
null
null
UTF-8
Python
false
false
1,520
py
import numpy as np import pandas as pd import os from keras.models import load_model WL = 150 col_list = ['F8', 'F3', 'AF3'] out_list = ['Nothing', 'Push', 'Lift', 'Drop'] D = len(col_list) no_of_outputs = len(out_list) #Reading data #generalise window size, no. of outputs, no_of_channels etc. req_arr_list = [] output...
[ "siddhanthaldar14@gmail.com" ]
siddhanthaldar14@gmail.com
bf8e991732fe53af4d0697cfcb8adfadac87a5d2
9b6dce3f247d384355a5376ead457cec9c1598b2
/pbgpp/Output/Filter.py
7326e6ff5ea5af88ddb0a20c565061dee3c6b9a0
[ "Apache-2.0" ]
permissive
deleskie/pbgp-parser
44841e0913ae1654f8b69859d63f03f8e780059b
4606f91a63c16e44da6909c94fd0ab3c88d8fa70
refs/heads/master
2021-01-11T09:16:51.516823
2017-02-03T08:23:56
2017-02-03T08:23:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
848
py
# # This file is part of PCAP BGP Parser (pbgpp) # # Copyright 2016 DE-CIX Management GmbH # Author: Tobias Hannaske <tobias.hannaske@de-cix.net> # # 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 ...
[ "tobias.hannaske@de-cix.net" ]
tobias.hannaske@de-cix.net
6fcf2dcd7764519a48a71cb3c75717cb30fb2c75
840bb24df4cad5ff33bc5ff54a7422b0a576c118
/Server/webplagiarism/plagiarism_webapp/main/legacy/thresholdEsamble.py
bfc89b20e916dd2e4ee121bfbe416d30fd94b02d
[]
no_license
Mr-Rafo/PlagiarismDetectionAndroid
6d783880e6c2fad694af10308721610ec5ca8b55
e4e2a8b702b82bde84efb7db08ff50bbb6d87615
refs/heads/main
2023-08-24T07:55:47.521904
2021-09-28T14:32:04
2021-09-28T14:32:04
446,541,121
0
0
null
null
null
null
UTF-8
Python
false
false
9,169
py
from itertools import combinations import numpy as np import csv import os #calcola i valori soglia e li salva all'interno di un csv def threshold(nameCsvInput,t,p,n, k,contoDi0,contoDi01,contoDi02,contoDi03,contoDi04,contoDi05,contoDi06,contoDi07,contoDi08,contoDi09,contoDi1 ): arrayThreshold= [0, 0.1, 0.2, 0....
[ "58905671+AnttGiam@users.noreply.github.com" ]
58905671+AnttGiam@users.noreply.github.com
9c4b096bbf52535f6feab8be9e0f43eab3a83ab0
21274a63e8c65d636d94e157488cddfeedf97512
/hw8-1-animal.py
7164fbc5e7d74bccadb83ce3df625cac38c0771b
[]
no_license
abdullah-alanazi/Python
beaa5d06a214df2423f3890397ca9d8ce570b552
d7d81d43060de68a7634fac389b4f726415fc70a
refs/heads/master
2016-09-06T20:01:01.588954
2015-12-06T01:49:18
2015-12-06T01:49:18
41,886,977
0
0
null
null
null
null
UTF-8
Python
false
false
1,186
py
class Animal: AList = {"elephant": ("\033[33;3mI have exceptional memory\033[0m", "\033[33;3mI am the largest land-living mammal in the world\033[0m", "\033[33;3myou can play with me in India & I've a long noise ^_*\033[0m"), "tiger": ("\033[33;3mI am the biggest cat\033[0m", "\033[33;3mI come in black and white...
[ "afa1ksa@gmail.com" ]
afa1ksa@gmail.com
c04fef02387aa5c4e6b6a704956c0caefcfaa6ab
6168318d3853c3a0eec7e09401d0226050167f60
/movies/migrations/0002_user_gender.py
e933da51bbdf4b8d120d02ea950efc34b4280bc8
[]
no_license
sarahcstringer/django-ratings
5537cff58f6debe87cd2fec6d38c825b92c33fe6
9cd675b1931c84b9ca563e49903339f811f9eef6
refs/heads/master
2021-01-12T08:13:11.494710
2017-05-19T00:10:06
2017-05-19T00:10:06
76,511,115
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-14 20:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('movies', '0001_initial'), ] operations = [ migrations.AddField( ...
[ "sarahcstringer@gmail.com" ]
sarahcstringer@gmail.com
17154c3406f2ba8d861e1e362d362380cd84198f
5ecc2a46c53bf2b65dd1fac65a772647784b5ef5
/venv/Lib/site-packages/tensorflow/_api/v2/compat/v1/io/__init__.py
684ae18a05c5288ad3199755726ad1af1fe49c08
[]
no_license
kanungosuyash/CSCI527game
8578185853d14aebe04e099ab056da8c5233d8de
7fbc9da0360756402fa01d6eebb87a8bb9236d71
refs/heads/master
2023-08-02T12:40:28.694846
2021-09-13T16:11:49
2021-09-13T16:11:49
401,088,055
1
0
null
2021-09-13T00:19:46
2021-08-29T16:22:30
Python
UTF-8
Python
false
false
3,173
py
# This file is MACHINE GENERATED! Do not edit. # Generated by: tensorflow/python/tools/api/generator/create_python_api.py script. """Public API for tf.io namespace. """ from __future__ import print_function as _print_function import sys as _sys from . import gfile from tensorflow.python.framework.graph_io import wri...
[ "msingh60@usc.edu" ]
msingh60@usc.edu
36beedcc5794bb0e122f7c3f16767dbcc5564a0b
8b55dec8bf328cc2f8699942d374a27440fcfe8b
/bin/rst2html.py
c14dc2730cbd1208dd45092c2e7c5d9b8c51af63
[]
no_license
exell/words
e39233989ef8b0b1319d8aa6351d376765490d06
5a0851ede2625b7ec1918050ad33c5b2e05b752b
refs/heads/master
2021-01-01T17:27:38.551358
2013-07-02T11:28:26
2013-07-02T11:28:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
#!/home/andy/wordsdev/bin/python # $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML. """ try: import locale locale.setlocale(locale...
[ "andy@sussedit.com" ]
andy@sussedit.com
7f1904267f59ff86bc553cd97a4fe96e88f4d2d9
5e642d1d47506f33a35a070538dd400c6a0b52ca
/my_app/migrations/0002_auto_20171025_1411.py
fa6a48a5afff760e46d3d938edb77a27f47af7bf
[]
no_license
okwow123/pythonanywhere
8abb89763461e09059549df298089793bb50bfb2
8fe5bd98d8ee400d30987905ab38c749027e6657
refs/heads/master
2021-08-06T16:25:42.774299
2017-11-06T13:32:57
2017-11-06T13:32:57
107,761,180
0
0
null
null
null
null
UTF-8
Python
false
false
1,150
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-25 14:11 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('my_app', '0001_initial'), ] operations = [ migrations.RenameField( ...
[ "okwow123@naver.com" ]
okwow123@naver.com
85a1abb5eb0c0c2f47f5e05bd11dd32306236ed1
763ffc8b6dff8684e2ee460235e54ce2581fa2d3
/1_hatExper/step1.1/test.py
53fa29d6d03e849e8dcd01d46a16b96cbe3518ce
[]
no_license
fengxu1996/hat_experimentation_2
a750d7922302efb66a40398e468f634b5d5f6d9c
d773f39dc1f6e2693ba426f0f00fc56349555a01
refs/heads/master
2022-03-18T21:51:24.852287
2019-12-07T07:12:57
2019-12-07T07:12:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
252
py
# -*- coding: utf-8 -*- # !/usr/bin/env python import pandas as pd path1 = r"E:\pythonCode\RJ_experimentation_1\Data_1\JQ\JQ_affiliationID_sortedName_" \ r"fieldID_fieldName_paperID_authorID_paperYear_awardYear_citationCnt.txt" path2 = r""
[ "1243309973@qq.com" ]
1243309973@qq.com
c1d2f54840345e337ecd6b95f9cf7e884483c124
5c967a181f978875bb7d812da39d7d356d4aeea4
/models/nasbench_101/base_ops.py
8262d85ca8708a573f00b53542ae86d1f9ca59c8
[ "MIT" ]
permissive
czhhbp/to_share_or_not_to_share
9d8540c4109c3855911ef24b472bfda3f0be33e1
538a50636c2d293215fe2cd9097ea72b50d843a0
refs/heads/master
2022-09-23T08:18:48.389888
2020-06-02T15:29:22
2020-06-02T15:29:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,974
py
import torch.nn as nn import torch.nn.functional as F from torch.nn.modules.batchnorm import BatchNorm2d from torch.nn.modules.conv import Conv2d from torch.nn.modules.utils import _pair class MaxPool(nn.Module): """ MaxPool """ def __init__(self, kernel_size, stride, padding): super(MaxPool, ...
[ "alois.pourchot@gleamer.ai" ]
alois.pourchot@gleamer.ai
79dcf66b9517d6c9857138b38aa4bebd074af7e9
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_noisy2781.py
63f0d647daa70d02a644d9fe38bd1a0e985c5100
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
4,238
py
# qubit number=4 # total number=40 import cirq import qiskit from qiskit.providers.aer import QasmSimulator from qiskit.test.mock import FakeVigo from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
0862876f4cdd8ae2bf38e8b1a144c12ef78b3d02
b23b1156d6b2c34451db0891d6d2bf0b6d7704c7
/redboxrental3.py
307e0e758bf59bc3ef83ddfd8f5d01e5d7319e76
[ "MIT", "BSD-3-Clause" ]
permissive
ProgramNoona/Capstone2019AnimeReview
571447e41657e694bbf21250d19c2096f72fb2a7
9875098fd25d2405447d39edaf9ac87dcd15abe4
refs/heads/master
2020-04-21T14:33:36.672587
2019-05-14T03:37:40
2019-05-14T03:37:40
169,638,995
0
0
null
null
null
null
UTF-8
Python
false
false
11,838
py
#CSC221 #m3hw """ Author: Reagan A video rental program, yo """ import csv import random def main(): #Variable for recieving user answer answer = 0 #Variable for containing the list of movies movies = [] #Variable for containing the list of customers customers = [] #Here are our filena...
[ "noreply@github.com" ]
ProgramNoona.noreply@github.com
136a6c7a38d6872c86aafa2caeb5e2ce2091320c
afe03ba84eed10acc187a60b3eceded78b0f6b94
/sum.py
4934e9961e8699f6e209029abd0834ea2821b0ab
[]
no_license
tromika/BinarySearchTree
5c5f86d15b9e2c979e1aa69d10a01b15ba57b130
949be203d08e206f76ca91693e55a3facb79764f
refs/heads/master
2020-07-02T00:52:43.651684
2014-10-25T20:33:51
2014-10-25T20:33:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
def main(): #content = raw_input() #test = content.split('\n') #test = [2,-2,6,-6,8] s = 0 sumList = [] for a in test: s+=a sumList.append(s) sortedSumList = dict((i,sorted(sumList).count(i)) for i in sorted(sumList)) sequences = 0 for key,value in sortedSumList.iteritems(): print key, value #if key =...
[ "tromika@gmail.com" ]
tromika@gmail.com
5fb88b6a250fc8138e50b016b49f98c4fc0590f7
41c5f7da28b87a3034754254d21791b322e819d8
/madana_apiclient/models/xml_ns0_process.py
8bfbc39cbd2a85998fdbcc992333a3857479e0a0
[]
no_license
MADANA-IO/madana-apiclient-python
16cb3eb807897903df2a885a94a2c02fc405818a
40dc21ab43d9565ac3dff86d7270093cce112753
refs/heads/master
2023-03-08T05:02:32.616469
2021-02-11T10:17:30
2021-02-11T10:17:30
287,797,297
1
0
null
null
null
null
UTF-8
Python
false
false
3,648
py
# coding: utf-8 """ madana-api <h1>Using the madana-api</h1> <p>This documentation contains a Quickstart Guide, relating client functionality and information about the available endpoints and used datamodels. </p> <p> The madana-api and its implementations are still in heavy development...
[ "dev@madana.io" ]
dev@madana.io
04b9361d8abdd9474ccbd043ba51ae2031521dbf
b97082f919a6aa44e770d84bade91e455c0bd936
/teacherInfo/teacherInfo/pipelines.py
2330d6ef91b482bf47de4fd538f940ecae6e63da
[ "Apache-2.0" ]
permissive
CareyRay/Python-Spider
f2799689bb104a5352b425da31fa5c5e30bda1fb
0a83efdc5ba0ff9ee5df4e9aa08197ca4e1ccafd
refs/heads/master
2020-12-14T22:21:54.201119
2020-01-19T11:50:38
2020-01-19T11:50:38
234,890,957
0
0
Apache-2.0
2020-01-19T11:45:39
2020-01-19T11:45:39
null
UTF-8
Python
false
false
603
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 json import codecs class TeacherinfoPipeline(object): def __init__(self): self.filename = codecs.open('teach...
[ "2334497007@qq.com" ]
2334497007@qq.com
6697e58f58dc6dc054679c72808f91d06415102d
88ea7bf2bbc8ffba551e881df553ae5ceac70dd6
/deblock/codes/models/archs/archs_sub/SRResNet_o2m_spectral_arch.py
83e92751b2e71f264c06bc251d1ed9cc9b2e4680
[ "Apache-2.0" ]
permissive
zhouhuanxiang/repo-zhx
2d1135bb2f925e051e1b0bcfc2ed53fb34ea51c5
76b577eea13130c60bf7bff8c486f51766128661
refs/heads/main
2023-06-10T02:56:17.978649
2021-06-29T02:35:57
2021-06-29T02:35:57
381,213,557
0
0
null
null
null
null
UTF-8
Python
false
false
2,389
py
import functools import torch import torch.nn as nn import torch.nn.functional as F import models.archs.arch_util as arch_util class ResidualBlock_Spectral_withZ(nn.Module): '''Residual block w/o BN ---Conv-ReLU-Conv-+- |________________| ''' def __init__(self, ni=65, no=64): super(Resid...
[ "zhouhx.cn@gmail.com" ]
zhouhx.cn@gmail.com
04398fb29841e18b9505fe74de19ad29fe08b860
7a527060afabd2e0867d5dcf4b75592b43ef5005
/Leetcode/二叉树/103. 二叉树的锯齿形层次遍历.py
d361d16ca05d5ccb931c8c609b61586d0b68b318
[]
no_license
Stevenzzz1996/MLLCV
ff01a276cf40142c1b28612cb5b43e563ad3a24a
314953b759212db5ad07dcb18854bf6d120ba172
refs/heads/master
2023-02-10T18:11:30.399042
2021-01-05T12:05:21
2021-01-05T12:05:21
267,804,954
6
1
null
null
null
null
UTF-8
Python
false
false
903
py
#!usr/bin/env python # -*- coding:utf-8 -*- # author: sfhong2020 time:2020/5/7 15:01 # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def zigzagLevelOrder(self, root: TreeNode) -> List...
[ "2499143041@qq.com" ]
2499143041@qq.com
1aca92db74813603bfe7e43da5741411d701c292
a1328f6937a9105faf060d21101c34c1f15da1bd
/sintatico.py
f4f22265337ad4fc945e84c20f75ecbbb29becfd
[]
no_license
HarielGiacomuzzi/TrabFinalCompiladores
a0a623bdec791b904f21f3efc7bba3d7281c2d46
b01644b4e94bca4997f5d2eaaf1c7f3d88f89c83
refs/heads/master
2020-06-23T07:44:09.482089
2016-11-27T15:24:40
2016-11-27T15:24:40
74,660,775
0
0
null
null
null
null
UTF-8
Python
false
false
4,244
py
# ------------------------------------------------------------ # sintatico.py # Nomes: Hariel G., Lucas Teixeira, Bruno Kieling # Descricao: Trabalho da disciplina de compiladores de 2016/2 # ------------------------------------------------------------ import ply.yacc as yacc # Get the token map from the lexer. This...
[ "hariel.dias@acad.pucrs.br" ]
hariel.dias@acad.pucrs.br
a8edb0da7d8720a5f48f1695b3f768a2a34ec969
e23a4f57ce5474d468258e5e63b9e23fb6011188
/010_strings/_exercises/Python 3 Most Nessesary/6.10. Search and replace in line.py
c8f366f01071b74a68d0f19128b40eb84fc3a1d0
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
2,873
py
# # -*- coding: utf-8 -*- # # s = "пример пример Пример" # print ?.f.. "при" , ?.f.. "При" , ?.f.. "тест" # # (0, 14, -1) # print ?.f.. "при", 9 , ?.f.. "при", 0, 6 , ?.f.. "при", 7, 12 # # (-1, 0, 7) # # # s = "пример пример Пример" # print ?.i..("при" , ?.i..("при", 7, 12 , ?.i..("При", 1 # # (0, 7, 14) # # print(s.i...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
080728dd79f7bff9d345033a81fe4b83e3180222
4e47bb6c804150f8be2c7aee96718c8347765cf8
/sample.py
bfd316339170a9eddb2844089423ec1a214dfd3a
[]
no_license
vvasuki/misc-python
89955529b32bf32cf06ab726319a2ccbb6e6accb
5d6d53bfec0dc1f85c24bb5e0cf6e2fcec31a389
refs/heads/master
2022-12-09T14:30:20.149062
2022-12-01T04:14:17
2022-12-01T04:14:17
149,946,647
0
0
null
null
null
null
UTF-8
Python
false
false
7,495
py
#! /usr/bin/python #easy to use python documentation.. intended for reference and reuse of source code (sample code) slices. #for help: install python-docs package. #see this then: file:///usr/share/doc/python-docs-2.4.1/html/tut/tut.html #to enter interactive mode, type: python #to exit python shell: EOF character ...
[ "vishvas.vasuki@gmail.com" ]
vishvas.vasuki@gmail.com
81cfaf449aea22d62d3f5757db4b251b7c51b0c9
bfb00b910ae3edc6d4b9dae247135788bd5f3ee3
/exp/guitests/tked.py
6785058e232059ff47cc92edcd482337ecdef336
[]
no_license
jc-gonzalez/arestools
2005e911e2e4809e0ee0981983fc81b9755fccd3
dccaac8c0dad6682d11d0b702046ad90bd1f3f8f
refs/heads/master
2020-03-18T09:44:21.916104
2019-01-09T10:56:33
2019-01-09T10:56:33
134,578,287
0
0
null
null
null
null
UTF-8
Python
false
false
865
py
import sys from tkinter import * import tkinter.TkFileDialog root=Tk("Text Editor") text=Text(root) text.grid() def saveas(): global text t = text.get("1.0", "end-1c") savelocation=tkFileDialog.asksaveasfilename() file1=open(savelocation, "w+") file1.write(t) file1.close() button=Button(...
[ "JCGonzalez@sciops.esa.int" ]
JCGonzalez@sciops.esa.int
d205ceebfdd254bfc03112ff574568f8bfe89589
d93f02be48f41f2f9c17e24adf4af0fa15355c9b
/atom/wsgi.py
5e52294050ad7549c7dd2c27332dc0f973a5ed62
[]
no_license
vxvinh1511/atom
ee9b574339dce41e76bc259182834abf6610cd43
64ba2917820a82552112584aad5ab8cc07061fd7
refs/heads/master
2021-01-10T01:33:47.668962
2015-09-25T13:09:25
2015-09-25T13:09:25
43,142,428
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
""" WSGI config for atom 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.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETTINGS...
[ "vxvpastime@gmail.com" ]
vxvpastime@gmail.com
8f52540d0566f9d51d85025745e66d4f7753250d
1f74cbca452ec1ddec3da61cf1ea16b2b92b0088
/Assignment 2/miditoaudio.py
eeb73f59bf04ae5b63a941647560441ef6168564
[]
no_license
SmellingSalt/Statistical-Pattern-Recognition-Assignments
ea911bb8349fc24ded251e2cddc6b5230bf4f23b
3d70687c5632ee06b1c19ed9fdaf749afdf3d105
refs/heads/master
2021-07-17T12:20:09.931474
2021-02-01T11:31:29
2021-02-01T11:31:29
236,273,314
0
1
null
null
null
null
UTF-8
Python
false
false
800
py
import os from glob import glob # convert_command=timidity # midi_file=0AuraLee.mid # -Ow -o - | lame - -b 64 # mp3_file=0AuraLee2.mp3 path_to_midi_data=os.path.relpath(os.path.join('MusicDatasets/Beethoven/MIDIFILES')) midi_data_files_list=glob(os.path.join(path_to_midi_data, "*.mid")) mp3_data_path=os.path.relpath...
[ "ssmahara96@gmail.com" ]
ssmahara96@gmail.com
7ff60d6b1a6c4d5c8feddfc8a81bafcaf4a303a3
4fa314e5f240beff11e63062293460f613c2fbdb
/lake_monster/environment/render.py
ee77fb61d5a404ccb6973e5beabf9b576ab9fc85
[ "MIT" ]
permissive
zebengberg/lake-monster
9c575e40405e46defa103f12324208f552915783
d1158e3e1b46666c310cf50ce778a327a321a9e5
refs/heads/main
2023-02-23T10:43:56.611480
2021-01-25T21:13:03
2021-01-25T21:13:03
307,154,368
1
0
null
null
null
null
UTF-8
Python
false
false
4,856
py
"""Utility functions for rendering an environment and displaying an episode in video.""" import numpy as np from PIL import Image, ImageDraw SIZE = 480 CENTER = SIZE // 2 RADIUS = 200 RED = (250, 50, 0) BLACK = (0,) * 3 GREEN = (40, 200, 40) def coords_to_rect(coords, radius=8): """Convert environment coordinat...
[ "zebengberg@gmail.com" ]
zebengberg@gmail.com
258bb0e2762aefc4fda2a6a064e89faad4e34e96
ff81a9d7880f1b85a1dc19d5eba5ac72d7179c86
/pychron/hardware/polyinomial_mapper.py
aa3f53521645648ca77a9b4089bb88812a44f0bd
[ "Apache-2.0" ]
permissive
UManPychron/pychron
2fb7e479a9f492423c0f458c70102c499e1062c4
b84c9fd70072f9cbda30abe2c471e64fe3dd75d8
refs/heads/develop
2022-12-03T23:32:45.579326
2020-01-29T19:02:20
2020-01-29T19:02:20
36,100,637
0
0
null
2015-05-23T00:10:06
2015-05-23T00:10:05
null
UTF-8
Python
false
false
2,147
py
# =============================================================================== # Copyright 2014 Jake Ross # # 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...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
ae1ccc2844603ea4ab992078b3a8bb73d08eda11
1f3d604864a9ea0d704d7d0303e1ecfc7546c3f2
/setup.py
5441667f05ab10464e5610b529e1b3ea866d4a79
[]
no_license
montaglue/Jarvis
581e924668c2e65d0b3913d3df70f3adca32a871
fd6c76479965db6a98f1bc336c77546ad8c95508
refs/heads/master
2023-08-01T17:52:16.124488
2021-09-02T10:57:45
2021-09-02T10:57:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
from setuptools import setup, find_packages def read_requirements(): with open('requirements.txt', 'r') as req: content = req.read() requirements = content.split('\n') return requirements setup( name='jarvis', version='0.1.0', packages=find_packages(), include_package_date=T...
[ "kletska.epa@hotmail.com" ]
kletska.epa@hotmail.com
b40bac9713b087f67ca3260d194ce949da4c8dae
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/nn/modules/math_ops.py
a16ddf4555f82be980156024d8fa893e24247691
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
7,845
py
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
[ "noreply@github.com" ]
Oneflow-Inc.noreply@github.com
56296e4c129d9135aedd9773390e5b84351d661c
cc75fafa3b62c2b03a95036616663263bede858d
/eval/Category_Baseline_unseen/separateCategory.py
406407e71a0a5cbae523ee53fb642631faf4a0d5
[]
no_license
liqipap/graph2text
276d0d7274ad6d53e92ad5567c05bb1c430aefd9
798318c24997ef40f874262d4ac5084e59e9623d
refs/heads/master
2020-03-20T08:30:06.318432
2018-01-20T12:23:22
2018-01-20T12:23:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
import xml.etree.ElementTree as Et import xml.etree.cElementTree as ET import sys import getopt def separateUnseen(filePath,catgory): """ this function separate unseen dataset according to category name :param filePath: the directory for unseen dataset file :param catgory: the current name of catgory ...
[ "badr.md87@gmail.com" ]
badr.md87@gmail.com
a7ce93793489eef4e3aedb56e1be34d526b9e3b8
65498cfa6e8d833640421157641f9e060d8c5460
/HIcalculation/functions/GET_heat_indices_v2.py
54aca755025dc1026034e5f5b289d24840895eb8
[]
no_license
IPCC-WG1/Chapter-12
7c372bbef624941c1cca18004617acd12534d827
358a09813f5b29ea064a0629c26b030d60c1f972
refs/heads/main
2023-04-07T23:52:43.573045
2023-03-20T08:35:28
2023-03-20T08:35:28
351,099,250
2
5
null
2023-03-08T17:03:23
2021-03-24T13:57:16
Jupyter Notebook
UTF-8
Python
false
false
6,498
py
#!/usr/bin/env python # coding: utf-8 #This script organizes the calculation of the heat stress indicators. It reads the relevant data and stores the calculate heat stress indicators (i.e. HI) in the correct folder. import os import sys import xarray as xr import numpy as np import dask.array as da import time as t_u...
[ "clemens.schwingshackl@geographie.uni-muenchen.de" ]
clemens.schwingshackl@geographie.uni-muenchen.de
71e42b525adbc2a63b17f6e3b79db5de95134301
ff44ca1b092e10f9c7e4eb347be7d641b1c574e5
/preprocessing/imagetoarraypreprocessor.py
bf676b248e144f49ceca10d19abc3eac0c65933b
[]
no_license
RobinZhang2020/DP4CV
940a0e3b39a6353514890289bcfb35129e3b3706
388f4ff11fcd258fb8f103997adc505626bfae71
refs/heads/master
2023-03-21T05:18:11.675364
2021-03-09T07:45:59
2021-03-09T07:45:59
341,842,993
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
from keras.preprocessing.image import img_to_array class ImageToArrayPreprocessor: def __init__(self,dataFormat=None): self.dataFormat=dataFormat def preprocess(self,image): return img_to_array(image,data_format=self.dataFormat)
[ "704805264@qq.com" ]
704805264@qq.com
dd6d06fac46c83117095da0090eca13ba7a19033
317f6801e3c539c1eb3dcc9575d895e5f257c17d
/web/django_exampl/nr1/meth/urls.py
c4777a6e9cf74c8008d3db886c88243ae9f0e4c0
[]
no_license
Barbara0070/barbara
b2773fe8416e7560103e5eb24c9a334134025a17
c8ee3892717ee1378d9d94d6e38b5088c7de679d
refs/heads/master
2020-04-10T09:08:17.511557
2019-03-03T15:46:35
2019-03-03T15:46:35
160,927,569
0
0
null
null
null
null
UTF-8
Python
false
false
12
py
#from django
[ "w2ertygf21@gmail.com" ]
w2ertygf21@gmail.com
9269f28f522d0d9b3083bf0059d3b6ed41848195
d67ae1b2f20d96b7e36c82c3a298882042c951c5
/src/asyncf.py
05a406b445e0dbcbd7eb0341c1360003b928bcfe
[ "MIT" ]
permissive
Vistaus/my-weather-indicator
8a99e69fd9d2c03ab5cca578a89da38d6676a5ab
32aaa77a14cf2f85edbfb72c45d154e1676abe83
refs/heads/master
2021-01-02T12:00:00.506304
2020-02-11T19:42:47
2020-02-11T19:42:47
239,614,123
0
0
MIT
2020-02-10T21:11:07
2020-02-10T21:11:06
null
UTF-8
Python
false
false
2,549
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # async.py # # This file is part of uPodcatcher # # Copyright (C) 2014 # Lorenzo Carbonell Cerezo <lorenzo.carbonell.cerezo@gmail.com> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publi...
[ "lorenzo.carbonell.cerezo@gmail.com" ]
lorenzo.carbonell.cerezo@gmail.com
254b39836b581460441fc658e6f0419e540ea63d
bbd556f7726952b3ac84c2d2e7fc447251174930
/venv/lib/python3.7/site-packages/pip-19.0.3-py3.7.egg/pip/_vendor/distlib/_backport/shutil.py
7b81106e485b3a26f840e63dae1d184646c89914
[]
no_license
svmsharma20/EurekaMW
6b42f6afe7cb67ffc9c2a5edcc1e8b41c5bb1367
b6ca82ce38ee1f19a58da379040446adaa8133ba
refs/heads/master
2022-12-02T16:56:51.615777
2020-12-15T03:58:52
2020-12-15T03:58:52
199,877,827
0
3
null
2022-11-27T21:32:24
2019-07-31T14:59:40
Python
UTF-8
Python
false
false
25,652
py
# -*- coding: utf-8 -*- # # Copyright (C) 2012 The Python Software Foundation. # See LICENSE.txt and CONTRIBUTORS.txt. # """Utility functions for copying and archiving files and directory trees. XXX The functions here don't copy the resource fork or other metadata on Mac. """ import os import sys import stat from os...
[ "shivamsharmasvm20@gmail.com" ]
shivamsharmasvm20@gmail.com
2186bff0599d7d8a807bfb4ac72df8ad8111e6e4
8818aa1691c6773d46a9b21bc8dd4f3d2fbd36d5
/predict.py
238faf59589c3efd14e3487144898e3d6a052ef4
[]
no_license
ammarsyatbi/Image-Classification
bab7e4ec5ff28298080c0c11ea8aa42df0415359
0dbf093966b6d80c69e96d70a006c5da8c92af53
refs/heads/master
2023-03-25T18:26:01.015802
2021-03-25T09:33:11
2021-03-25T09:33:11
350,969,370
0
0
null
null
null
null
UTF-8
Python
false
false
1,427
py
import os import tensorflow as tf from tensorflow import keras import numpy as np from config import cfg import utils import json CLASS_NAMES = utils.read_class_names(cfg.MODEL.CLASS_NAMES) test_imgs = os.listdir(cfg.MODEL.TEST_DIR) model = tf.keras.models.load_model(cfg.MODEL.SAVE_DIR) predicted = {} bad_imgs = [] ...
[ "ammarsyatbi@github.com" ]
ammarsyatbi@github.com
1a43fcbec667b510a0a1ff82df246326a83a70fb
eefb06b0d8c8c98c1e9cfc4c3852d5c453eb5429
/data/input/andersbll/deeppy/deeppy/model/__init__.py
3fc2414a36c1575b1ca19d8106a70e4a76258fb6
[]
no_license
bopopescu/pythonanalyzer
db839453bde13bf9157b76e54735f11c2262593a
8390a0139137574ab237b3ff5fe8ea61e8a0b76b
refs/heads/master
2022-11-22T02:13:52.949119
2019-05-07T18:42:52
2019-05-07T18:42:52
282,079,884
0
0
null
2020-07-23T23:46:09
2020-07-23T23:46:08
null
UTF-8
Python
false
false
169
py
from .adversarial import AdversarialNet from .feedforward import FeedForwardNet, ClassifierNet, RegressorNet from .variational_autoencoder import VariationalAutoencoder
[ "rares.begu@gmail.com" ]
rares.begu@gmail.com
05c11b1a66da1d79bb4f38af7cb8b32e4edebc87
183f2b13d1347819e6a911f1ab15f74a32d8f861
/src/models/train.py
4a2ba61d4f67943942535d3929fd5e328b5d1463
[ "MIT" ]
permissive
Peymankor/MBML_Final_Project
37880994f40893ae2509a53f7988595779805185
1d989b07773f1b8e9a5dd11379845959d62e8780
refs/heads/master
2022-09-23T23:30:21.161733
2020-05-30T21:12:46
2020-05-30T21:12:46
262,248,278
4
1
MIT
2020-05-21T18:00:58
2020-05-08T06:47:53
Jupyter Notebook
UTF-8
Python
false
false
763
py
"""Handy functions to train Kalman filters in numpyro.""" from jax import random from numpyro.infer import MCMC, NUTS def train_kf(model, data, n_train, n_test, x=None, num_samples=9000, num_warmup=3000): """Train a Kalman Filter model.""" rng_key = random.PRNGKey(0) rng_key, rng_key_ = random.split(rng_k...
[ "carrascomurielj@gmail.com" ]
carrascomurielj@gmail.com
5d5f3479b821973bba167087ee73016fa0ec3dc2
51f855b1baf5945b47f7042a5cb44f62eccf5e56
/year.py
a1079171b1cfb051274ad657ceafb2f00b6d4332
[]
no_license
swartzstrange/python3
1766940173497072dc2dd7293aba1a4e6f9e231c
385e860e923e16a7d0158c11e5764ce2131f9780
refs/heads/main
2023-02-02T19:33:11.642505
2020-12-21T10:33:50
2020-12-21T10:33:50
319,213,856
0
0
null
null
null
null
UTF-8
Python
false
false
6,119
py
import tkinter import os from tkinter import * from tkinter.messagebox import * from tkinter.filedialog import * class Notepad: __root = Tk() # default window width and height __thisWidth = 300 __thisHeight = 300 __thisTextArea = Text(__root) __thisMenuBar = Menu(__root) __thisFileMenu = ...
[ "noreply@github.com" ]
swartzstrange.noreply@github.com
7e8116443903d033a1a47a2ffed807aec258d0c3
49e17d736df9889b3a0d91705abd0f3ed579d17c
/quests/Temple_Of_Ikov.py
b4d3f0e615c687daab5b6c89a084be6e2400e914
[]
no_license
TheWhirl/RunescapeQuestWebsite
4f258c04a1c1e6bb9f6d9e0fa63fdcab452ccfc2
8d5dacbc8251bd1f2dded4ffa04400ed48e0f1fb
refs/heads/master
2020-05-16T02:54:35.603906
2018-12-23T13:03:58
2018-12-23T13:03:58
182,643,424
0
0
null
2019-04-22T07:22:00
2019-04-22T07:21:59
null
UTF-8
Python
false
false
443
py
import os import sys sys.path.insert(0, os.path.dirname(os.path.realpath(__file__))[ 0:-len("quests")]) from QuestInfo import Quest class Temple_Of_Ikov(Quest): def __init__(self): super().__init__("Temple of Ikov") self.age = 5 self.difficulty = "Expe...
[ "musomaddy@gmail.com" ]
musomaddy@gmail.com
25fdc78dc70a5662efdf229ddd03144e6c0355bc
92028af4d98547db0fd870ebd9832dbc82f9df79
/mm.py
36b1cc73386d3662b712c76274258ee2d2e2b712
[]
no_license
tineroll/mmPictures
a1ba2fd385cb8609f72792206cf65c34cdcbba94
5cc692da657a277416673fa6371764d9f3838284
refs/heads/master
2021-05-11T20:33:57.983531
2018-01-14T16:03:04
2018-01-14T16:03:04
117,442,382
0
0
null
2018-01-14T15:31:59
2018-01-14T15:31:59
null
UTF-8
Python
false
false
4,595
py
#!/usr/bin/env python # -*-coding:utf-8-*- import urllib2 from lxml import etree from os import system """ 第一步: 从 http://www.zngirls.com/rank/sum/ 开始抓取MM点击头像的链接(注意是分页的) #第二部 http://www.zngirls.com/girl/21751/ 抓取每一个写真集合的链接(注意是分页的) #第三部 http://www.zngirls.com/g/19671/1.html 在写真图片的具体页面抓取图片(注意是分页的) """ pciturelist=[] h...
[ "394804550@qq.com" ]
394804550@qq.com
05b2aab7c6f1c9f3cb6f7ade63d62490fdd1c8db
66f6be86059bf37100744b421d5d7f252b8a5126
/victoria_inventory/__manifest__.py
ad49bad4c624b19e11a9d2c36c7111048dd25255
[]
no_license
tate11/victoria_basement_12
ec19d442a59beecfd09d60adc4af204179a40243
a96baa19b48a42d42fdbdc1e525d0dbb629a75f2
refs/heads/master
2020-04-24T23:30:06.103458
2019-02-04T04:06:39
2019-02-04T04:06:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
804
py
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Victoria Inventory', 'version': '12.0', 'summary': 'Victoria Inventory Custom', 'sequence': 7, 'description': """ Victoria Inventory ================== Inventory Custom """, 'categor...
[ "rohit.kumarsrivastava@envertis.com.au" ]
rohit.kumarsrivastava@envertis.com.au
39f7638fa87ac3f507bbfd104317deef1e645d99
fdb65605f3aef4f502debaa0fc9df6860e0e193f
/python/app.py
79203b0ed32ee36d11715fd66ec404f66e17b6c8
[]
no_license
twy3009/sparta
5fad123dcfec5f0b6605ae11a22445996fd6e5d6
215e1d3e9f21f3ba8412114adf2e402b9f9960ae
refs/heads/master
2022-04-22T02:19:58.229701
2020-04-26T05:57:45
2020-04-26T05:57:45
245,768,370
0
0
null
null
null
null
UTF-8
Python
false
false
3,038
py
from flask import Flask, render_template, jsonify, request app = Flask(__name__) import requests from bs4 import BeautifulSoup from pymongo import MongoClient # pymongo를 임포트 하기(패키지 인스톨 먼저 해야겠죠?) client = MongoClient('mongodb://test:test@15.164.103.10', 27017) # mongoDB는 27017 포트로 돌아갑니다. db = client.dbspart...
[ "61925189+twy3009@users.noreply.github.com" ]
61925189+twy3009@users.noreply.github.com
a3f63dab27f381f4aacc708a5fc6df1166817262
2402d36afad839c13986bcc9b735ef11a6b30960
/chapter_03/3.4_guest_list.py
c0bfbec8e03e69f304db2cec0849742c47a1f44a
[]
no_license
Blanca-7/Python-study
3d12983069a7bab82d6ebdd58b160f3477e6c7e1
6a26b6fbc1120e14e1534a86c024d35bfb2bff36
refs/heads/master
2023-02-26T10:04:29.380721
2021-02-05T10:48:45
2021-02-05T10:48:45
334,710,517
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
guests = ["Dr. Einstein","Bruce Lee","Elon Musk"] invitation = "I'd like to invite you to my dinner Party" print(f"Dear {guests[0]}, {invitation}") print(f"Dear {guests[1]}, {invitation}") print(f"Dear {guests[2]}, {invitation}") #alternative way with concatenation: #print("Dear " + guests[1] + ", " + invitation)
[ "noreply@github.com" ]
Blanca-7.noreply@github.com
3fafc5008c7ab7eaf1785a939ad7043423ac6756
1fad9fde9da1e5b51997d3f6ae58dd371f43339e
/s3_wrapper/__init__.py
c23781168fffffa3ad1c24480c7e01653b6cb19c
[]
no_license
penmark/s3-wrapper
ca5a3c44dedf0b178bfec834916e9ecc74b40a83
0de5e3d50b075e929ae52b2420c815a47821f262
refs/heads/master
2021-01-12T10:00:52.443459
2017-02-01T13:49:32
2017-02-01T13:49:32
76,335,679
0
0
null
null
null
null
UTF-8
Python
false
false
3,212
py
import boto from boto.s3.connection import NoHostProvided def percent_callback(num_bytes, total_bytes): print('\b'*10, '{:.2f}%'.format(num_bytes / total_bytes * 100), sep='', end='', flush=True) class S3(object): def __init__(self, options): if not options.host: options.host = NoHostPro...
[ "pontus@wka.se" ]
pontus@wka.se
9aac8f17b3bf10aea1ebed124b84c898077044d9
84b9bcdbd610e704093d4bbf4d0bcf7134fcedf0
/analyze_net/analyze_net.py
4930671216a2d2ca94d7a7fb4dfa15d084300af0
[]
no_license
JerryTom121/cite-network
1813df9189cd6e8b10ebc15d00230c0466176114
29dfddbb43df6d48ed3b4dc28001489a7809d9ef
refs/heads/master
2021-01-19T23:25:41.583449
2016-11-17T16:14:28
2016-11-17T16:14:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
32,319
py
# -*- coding: utf-8 -*- ''' Using the `graphml` files and two "comparison networks," conduct the actual network analysis. The "comparison networks" are citation networks grabbed from arXiv, with papers from January 1993 to April 2003. They can be found at <https://snap.stanford.edu/data/cit-HepPh.html> and <htt...
[ "hicks.daniel.j@gmail.com" ]
hicks.daniel.j@gmail.com
83f9cbcb975b846ee5c5d189eda62303064a4f46
68f962de0af192f098b35b93d50e258276c70a09
/pandastest.py
a2cdf84d90f55bb94b9f03442d13dfccd7ea6b3c
[]
no_license
judewellsbbk/PwD
cc7592448ead700553bc13677e3517835bd048f8
56947989cbc09f2405a6d1003762a2d4933f46d0
refs/heads/master
2020-03-15T11:36:38.203228
2018-05-05T18:18:17
2018-05-05T18:18:17
132,124,042
0
0
null
null
null
null
UTF-8
Python
false
false
483
py
import numpy as np import pandas as pd def main(): my_dict = {'A': [1, 2], 'B': ['John', 4]} my_data_frame = pd.DataFrame(data=my_dict) print my_data_frame print my_data_frame.dtypes # a further demo my_df = pd.DataFrame(some_filling(), columns=['A', 'B', 'C', 'D', 'E']) print my_df...
[ "jwells03@dcs.bbk.ac.uk" ]
jwells03@dcs.bbk.ac.uk