blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
64abbd79020cfe186e38c100a66432f254b6f63c
835e428d1cbe87adf945897ff75f77e93b500d12
/demonstrations/tutorial_qnn_module_torch.py
b8b5b8ea0148840cf4f468e8203d1730eb4e4f74
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
quantshah/qml
9acb3c932610e30a28369fe72ee49683ac301219
45533ef6f6d7b9cfa0384302fe52b5ead772b923
refs/heads/master
2022-11-30T08:26:12.972709
2022-11-18T19:59:59
2022-11-18T19:59:59
218,805,085
0
0
Apache-2.0
2019-10-31T16:02:07
2019-10-31T16:02:06
null
UTF-8
Python
false
false
11,188
py
""" Turning quantum nodes into Torch Layers ======================================= .. meta:: :property="og:description": Learn how to create hybrid ML models in PennyLane using Torch :property="og:image": https://pennylane.ai/qml/_images/PyTorch_icon.png .. related:: tutorial_qnn_module_tf Turning quantu...
[ "noreply@github.com" ]
quantshah.noreply@github.com
990c5f495f62b81a018f3378ee04bf67c55c74ba
7f77c30aff4d1f11f4c8cd6a2496f1dbb8968e4d
/checker.py
d0696aaa3d0b74ae3b582fcb1d95ffa27f4acb33
[ "MIT" ]
permissive
yanrising/crypto-address-balance-checker
5aa32003a6ac2a109c5208f00b3d45b2955d63ee
5a6a4e85377550193bb5e9b6a46331431347a66a
refs/heads/main
2023-02-01T01:56:07.303201
2020-12-13T13:57:24
2020-12-13T13:57:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,353
py
#!/usr/bin/python import sqlite3 import re import requests import time #Config EXPLORER = "https://explorer.teloscoin.org/" #Initialize database db = sqlite3.connect('addresses.db') c = db.cursor() c.execute('CREATE TABLE IF NOT EXISTS users(address TEXT, bal INTEGER)') db.commit() #Menu print("What you want to do?...
[ "noreply@github.com" ]
yanrising.noreply@github.com
184842f3bbee75d2303145e795cb88373757d3ed
cff3f4a71859ce0c5fbf4394dd082936153b4d75
/aiohttp/backport_cookies.py
799025183932ef5555dd866e0932730074a26a5f
[ "Apache-2.0" ]
permissive
Krzana/aiohttp
6def78bbc5276f7dba4a000b4766516196c3df0f
d175e4ec45784aaa2382e6e3647336398e2added
refs/heads/master
2021-01-22T03:13:14.918834
2017-02-06T00:58:41
2017-02-06T02:36:15
81,104,193
0
0
null
2017-02-06T15:57:06
2017-02-06T15:57:06
null
UTF-8
Python
false
false
14,610
py
#### # Copyright 2000 by Timothy O'Malley <timo@alum.mit.edu> # # All Rights Reserved # # Permission to use, copy, modify, and distribute this software # and its documentation for any purpose and without fee is hereby # granted, provided that the above copyright notice appear in all # copies and that bot...
[ "nikolay.kim@affirm.com" ]
nikolay.kim@affirm.com
7d2eaa7c95a52feb3ae21b49f2f02ae05e36fca1
7ccef526ce13e545e56cce01a577581a169eba58
/python/flask-d3/flask_server.py
a6bdb778432349c92eb6ff4a27c04769cc064eac
[]
no_license
kdubss/NodeJS-Weather-App
e601a008ee72367adbe623816f45760536278902
5af4689a2fae009c6197e3b9ee43e4b69b5424be
refs/heads/master
2020-03-07T02:39:26.243000
2018-05-11T16:31:40
2018-05-11T16:31:40
127,213,508
9
3
null
2018-04-07T23:26:34
2018-03-29T00:13:09
Python
UTF-8
Python
false
false
6,594
py
# !/usr/bin/python # ./weather-app/python/flask-d3/app.py import json import pandas as pd import sys, os import datetime as dt from flask import Flask, render_template, url_for sys.path.insert(0, '../') import api_requests as api import weather as w from local_settings import env app = Flask(__name__) @app.errorh...
[ "kang.wang@hakai.org" ]
kang.wang@hakai.org
14c0fbeb00123c49b5619983159bc4fcae4f3f8d
d089a726faaa79fbb8cf7c0c8bf39f8b53c024fd
/china_meta/item/migrations/0001_initial.py
7df235555ca2c4a660394d99160d2418772d7d5f
[]
no_license
LEESM/china_meta
5ae2271a24691d5a90f5de17ca088e27478023e1
8736c363ea156d78439aa9ae0b6dd488aafa0c56
refs/heads/master
2021-01-11T07:47:04.140101
2016-09-04T14:02:50
2016-09-04T14:02:50
66,812,967
0
0
null
null
null
null
UTF-8
Python
false
false
1,302
py
# -*- coding: utf-8 -*- # Generated by Django 1.10 on 2016-08-30 07:48 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Item', ...
[ "fast0522@gmail.com" ]
fast0522@gmail.com
d0116d4a239f04f6479599ffb1c93317e8cf427d
abbdf7f8404a16b4566924b882504824749a5d3a
/MultiChoiceExample.py
ea2d6700d6d37fdfbc8ff649840b8102fe47ad60
[]
no_license
LZhang2004/Year9DesignCS-PythonLZ
58f8f13defec37567d7eb05feee6ec8a5a091526
f095e441dbc4c13c86d57c9183fad36a16422c79
refs/heads/master
2020-03-28T12:58:07.642482
2018-11-14T21:49:01
2018-11-14T21:49:01
148,352,761
0
0
null
null
null
null
UTF-8
Python
false
false
704
py
import tkinter as tk def change(*args): print("running change") print(var.get()) root = tk.Tk() title = tk.Label(root, text = "Welcome to Encryptor", fg = "black", font = ("Courier", 44) ) title.pack() OPTIONS = [ "Caesar Cipher", "bunny", "chicken", ] var = tk.StringVar(root) var.set(OPTIONS[0]) var.trace("...
[ "leo.chris@gmail.com" ]
leo.chris@gmail.com
8e2c3bf85967880b09d3d7ad9fa6c206218021fd
ded143fe73523a34219239f896b91639b55fa83a
/libs/ParseEvtx/Script/evtx_dump_chunk_slack.py
0e147791aae3c49f0e3e4f00afac95d8632aff60
[]
no_license
shjvero/teammse
aff6a69a9daa31448d0ae9c4cb41624a42dcddba
c272395f4e5a8bb7ba133398a24e1970582e1341
refs/heads/master
2020-03-31T03:15:14.867448
2018-10-11T02:20:44
2018-10-11T02:20:44
151,858,637
2
1
null
null
null
null
UTF-8
Python
false
false
1,746
py
#!c:\users\asdzx\appdata\local\programs\python\python36\python.exe # This file is part of python-evtx. # # Copyright 2015 Willi Ballenthin <william.ballenthin@mandiant.com> # while at Mandiant <http://www.mandiant.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you...
[ "gej48443@gmail.com" ]
gej48443@gmail.com
deb5e444db08df24b2d2882fc523d31889cdf3c8
ae9c8450d7b656b20d18cf885ca14b6311f39f5a
/analysis/_1_process_raw_data/parse_facebook.py
bd579b861bc7b3e15dd498d46d32317e48613400
[]
no_license
wongjiahau/TCLCPhase2
4f9917eb170cec03faba089f322ae8b55ffe6129
7b61635842dec98c034d7e69fdd9a5c368fe24cb
refs/heads/master
2021-05-10T07:54:38.965161
2018-01-25T06:42:09
2018-01-25T09:13:39
118,867,038
1
0
null
2018-01-25T05:32:09
2018-01-25T05:32:08
null
UTF-8
Python
false
false
423
py
import csv from analysis.Post import Post def parse_facebook(file_path): result = [] with open(file_path, 'r') as csvfile: reader = csv.DictReader(csvfile) for row in reader: p = Post() p.date = row['status_published'] p.value = str.lower(row['status_message'...
[ "hou32hou@gmail.com" ]
hou32hou@gmail.com
438aff543d82ca32db8f6713c4e6cc93cdec7990
a74a8b5852896fef845747172fb7fb230f013f4a
/myWebServer-test6.py
38e64f7f44030d7b3d6ef65d91d6a4091cf045b8
[]
no_license
4220182/prometheus-metrics
5c37ad2b6b901db5e2f88b6eaf6e769fd6d1f184
5bffa1710bc5df82e7cd104e7123c9a06bf70b0a
refs/heads/master
2021-07-06T03:55:41.478633
2020-07-19T11:39:52
2020-07-19T11:39:52
134,413,046
0
0
null
null
null
null
UTF-8
Python
false
false
3,852
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ 使用python内置WSGI server: wsgiref ,考虑性能问题你也可以使用其他WSGI server WSGI server用了gevent, eventlet等 green thread技术,就可以支持更多并发。 """ from prometheus_client import start_http_server, Counter, Summary import random import time from flask import Flask, jsonify, render_template from wsg...
[ "4220182@qq.com" ]
4220182@qq.com
b26bc7fe0011c8ea86eb4da2c10d7efe7af6b6ac
68de57c8bc62159571d299234a41cc651461b84c
/server_TCP.py
05e143b8c76c4aab13db4b4721417db6e26cfc1a
[]
no_license
lukaszgolojuch/TCP-Client-Server
dcbc1bbdb6b75b7fd52d1202b664d7384cf1aa3e
2cac839fa70cc6e5519f9d2335abf97e4d2dd72b
refs/heads/master
2022-12-17T20:43:59.339517
2020-09-21T12:48:30
2020-09-21T12:48:30
297,339,315
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
import socket import threading bind_ip = "0.0.0.0" bind_port = 9999 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((bind_ip,bind_port)) server.listen(5) #watek do obslugi klienta def handle_client(client_socket): #drukuje informacje przesylanie przez klienta request = client_socket...
[ "lukasz.golojuch@gmail.com" ]
lukasz.golojuch@gmail.com
7ab4386359ae261d8503ca3bde63b6e0a0864feb
7057d53063720fc498812f37d4b381a33bfdf86f
/mr_master.py
cf79ec591972192616dd6a9caf28756e2d97ed95
[]
no_license
robinbattle/MapReduce
79e95c13ccb4379a5a2edea259d4cf3c7906b7c6
4c35cdc27e90daa7622489d849baba9beda80bf4
refs/heads/master
2020-12-24T16:23:36.404538
2015-03-25T00:53:23
2015-03-25T00:53:23
31,989,384
0
0
null
null
null
null
UTF-8
Python
false
false
15,865
py
__author__ = 'blu2' __author__ = 'jtanigawa' import sys import zerorpc import gevent import subprocess class Master(object): def __init__(self): gevent.spawn(self.controller) self.state = 'Ready' self.workers = {} self.map_workers = [] self.reduce_workers = [] s...
[ "blu2@dons.usfca.edu" ]
blu2@dons.usfca.edu
7ae8b387c43d9fad46026ca984184ad67fc76bb1
14f3df564f4fd028be94a44b052aa6843d8535dc
/make-model.py
0941a9b5857e216a2d330ae6653842d81b1cb5eb
[]
no_license
foxmouldy/blib
e2d5442b17aa5a47e7ebdf19dff2c9d3e62c5202
3cf36655b44eea7a70516f4ddae0a17eecd32cb2
refs/heads/master
2021-01-10T21:59:54.125431
2013-08-20T15:01:33
2013-08-20T15:01:33
11,581,518
0
1
null
null
null
null
UTF-8
Python
false
false
1,506
py
from tasks import * from taskinit import * import casac import sys from optparse import OptionParser usage = "usage: %prog options" parser = OptionParser(usage=usage); # O1 for Option parser.add_option("--ra", type='string', dest='ra', default='10h00m00.0s', help="Right Ascension of Target [10h00m00.0s]") parse...
[ "frank@rigel.astron.nl" ]
frank@rigel.astron.nl
bc5233b50a4786f6c05d414551612e05b2399edc
d6b0cfbea0c3d3a37bb1f6a6890fc1574bcdf566
/src/user_service/service_api/flask_api.py
e144758c47419349085f523bca847cd8711bc3a1
[ "Apache-2.0" ]
permissive
Forcepoint/fp-bd-microsoft-graph-azure
2628bd12068a97f6fffb6bb342086b00b892594a
89808dbbacd6f1129a47d74f37e349ba9272259b
refs/heads/master
2023-01-24T19:43:04.597754
2020-12-02T14:31:14
2020-12-02T14:37:18
317,608,235
0
0
null
null
null
null
UTF-8
Python
false
false
4,780
py
# # Author: Dlo Bagari # created Date: 13-11-2019 import json from flask import Flask, request, jsonify from user_lib.logger import Logger from user_lib.entity import Entity from user_lib.const_values import ConstValues from microsoft_graph.user_api import UserApi from microsoft_graph.group_api import GroupApi from us...
[ "Mindaugas.Rakauskas@forcepoint.com" ]
Mindaugas.Rakauskas@forcepoint.com
00f50413c35210f59461ee60300f036e4ff03104
283c3b6d4fac4bf95af9dcc23c384758d8887f8d
/crawl.py
af8984eb0980c6d7b6f001c6e7851c9cd52a101f
[]
no_license
NingyuanXu/Weapon_crawl
33e98cd37d352779597de7dd0b057f0770a14748
a8a729c22e0b8ec455cad481096995c2a71bde08
refs/heads/master
2020-07-01T20:51:56.397645
2019-08-08T16:34:14
2019-08-08T16:34:14
201,297,145
0
0
null
null
null
null
UTF-8
Python
false
false
3,060
py
import requests import os from bs4 import BeautifulSoup from docx import Document from docx.shared import Inches siteurl = 'http://weapon.huanqiu.com' proxies = {'http': '210.22.5.117:3128', 'https': '210.22.5.117:3128' } def get_data(url, type): heads={} heads['User-Agent'] = 'Mozilla/5.0 (Windows NT 10....
[ "xu.ningyuan@outlook.com" ]
xu.ningyuan@outlook.com
c4fb08fa830674dbd87a91837f635e684fc58752
cf63e3bbb82fe976d38bfc5442f34d87f30edb53
/zhihuimohe4py/settings.py
eb838681640bd7d94ae5b125e632f631b22f89ce
[]
no_license
lovederh/magicbox
5ff37d157045d0ff2216173cf64785ae2a812cd7
c692d14f13228e29e8d90aa2fb76f2157ee23211
refs/heads/master
2022-11-23T10:15:15.969273
2020-07-14T01:00:27
2020-07-14T01:00:27
274,322,415
0
0
null
null
null
null
UTF-8
Python
false
false
4,311
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Django settings for zhihuimohe4py project. Generated by 'django-admin startproject' using Django 3.0.7. 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.dj...
[ "lovederh@126.com" ]
lovederh@126.com
cd435e90cd387ae537fffb76deea07be9701be65
01e299bd037964da1bc770989c2ad7a7080557fb
/Algorithm/binarySearch.py
aa48ab094f8865f198efae5470305f265666d466
[]
no_license
jngsoo/PS
a336e48868c5dfd52ff5e3db3837ad8c7725fb21
98a3038a7192e57bc0c3aad7833658e9a97d84b2
refs/heads/master
2020-05-19T06:07:13.910697
2020-01-24T11:45:10
2020-01-24T11:45:10
184,866,391
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
def binarySearch(arr, left, right, target): if right < left: return -1 print('bin-search!') mid = (left + (right + 1)) // 2 print(left, mid, right) if arr[mid] == target: res = arr[mid] return res elif arr[mid] < target: left = mid + 1 else: right = ...
[ "wt2933@icloud.com" ]
wt2933@icloud.com
92103249322b421545629318572a095a6464b746
46bd3e3ba590785cbffed5f044e69f1f9bafbce5
/env/lib/python3.8/site-packages/supervisor/tests/test_dispatchers.py
3f88376a16df1a07247d1fe031d2147a0cb4d10c
[]
no_license
adamkluk/casper-getstarted
a6a6263f1547354de0e49ba2f1d57049a5fdec2b
01e846621b33f54ed3ec9b369e9de3872a97780d
refs/heads/master
2023-08-13T11:04:05.778228
2021-09-19T22:56:59
2021-09-19T22:56:59
408,036,193
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:b2039ef9d32ffde70df065c6a333cb150fa31e79786df3f98287dc41938ad1e1 size 53720
[ "a.klukowski@live.com" ]
a.klukowski@live.com
7401b94189214c99484961a6a267429cd5e290fb
19f27f432b968521c7bee497a96f2b01963da293
/manage.py
0ff8346ecebe236c0d31d614ad2ceeab700db026
[]
no_license
ethanlee6/myw
eae3eb751f4b06e06ce1dd2a21adf9272f1bf72f
74c60ebea5519c18d7495c2ee8064b4a576b9b89
refs/heads/master
2021-01-24T18:39:43.481407
2017-03-15T12:15:01
2017-03-15T12:15:01
84,459,667
0
0
null
null
null
null
UTF-8
Python
false
false
775
py
import os from flask.ext.script import Manager, Server from flask.ext.script.commands import ShowUrls from flask.ext.migrate import Migrate, MigrateCommand from webapp import create_app from webapp.models import db, User, Post, Tag, Comment # default to dev config env = os.environ.get('WEBAPP_ENV', 'dev') app = crea...
[ "lg_online@hotmail.com" ]
lg_online@hotmail.com
133b5633b2d64eca82739da7b77732b3f48a0ac2
602bac701a96754f3bc1312add368c6dbd0c7fc3
/Home_Work_6.py
5f1c3e84413aaf7065a1ccd318d7b49be2a28425
[]
no_license
AwsJup/TMS
9f5f404d10b0e9619ad5909de9f35214625a1aff
eab7af7c2cac21112cdf179dc2eaca6419b651ed
refs/heads/main
2023-04-29T04:26:58.503914
2021-05-03T13:31:19
2021-05-03T13:31:19
359,001,485
2
0
null
2021-05-13T14:54:21
2021-04-17T23:16:24
Python
UTF-8
Python
false
false
1,891
py
#1. #В отеле есть 3 типа номеров: royal (2-3 комнаты), lux (1-2 комнаты), standard (1 комната). #надо добавить метод для создания номеров и хранения их в виде словаря. class Hotel(): def __init__(self, a, b, c): self.royal = a self.lux = b self.standard = c rooms= Hotel(3...
[ "noreply@github.com" ]
AwsJup.noreply@github.com
24876209f1755a36a8ecfd85f03399473ca3cc19
5aec711159e0270b0cb197bb8cbf34203ffbb585
/runLive.py
f6b03b5a0a53d45c57aa0efa6f5dc700c36ef6b5
[]
no_license
korean-fingerspelling-recognition/hand_gesture_recognition
b429cc4a6b0429cdb567efdf1fd3ce2e137565b2
6fd8401449fcdbcd998ad40f0abe09c4f418bd5e
refs/heads/master
2020-05-28T00:24:29.870967
2019-06-14T13:21:10
2019-06-14T13:21:10
188,830,986
0
0
null
null
null
null
UTF-8
Python
false
false
1,830
py
import tensorflow as tf import parameters as par import cv2 import numpy as np from PIL import ImageOps, Image saver = tf.train.import_meta_graph(par.saved_path + str('501.meta')) with tf.Session() as sess: saver.restore(sess, tf.train.latest_checkpoint('./Saved/')) # Get Operations to restore graph = ses...
[ "alee6868@kaist.ac.kr" ]
alee6868@kaist.ac.kr
e8536703822ccf6a4476cc5edc141e2fc9760d95
0b7790afa5a651ffe1664a42befce7ba0c4a3041
/FrMaya/core/uimaya.py
08b53b9a8ce79d8ef6ef45fe65420b822a41ab17
[ "MIT" ]
permissive
muhammadfredo/FrMaya
45c16ef00bb5a7512a43e87b4f2eed517927cbe9
5e56274e200374a9d3bf16e774e6bf05c075f325
refs/heads/master
2022-07-22T16:55:08.597522
2022-01-15T15:22:23
2022-01-15T15:22:23
91,210,526
10
0
MIT
2022-01-15T15:22:23
2017-05-14T00:33:53
Python
UTF-8
Python
false
false
9,828
py
""" ## SCRIPT HEADER ## Created By : Muhammad Fredo Email : muhammadfredo@gmail.com Start Date : 12 May 2017 Refactor Date : 29 Agt 2020 Info : """ import os import re try: import shiboken except ImportError: import shiboken2 as shiboken from maya import mel as mel from maya import OpenM...
[ "muhammadfredo@gmail.com" ]
muhammadfredo@gmail.com
f2930b4534b8fe5e0354c0b127f12fe0f96cd0c1
aeb6a66a70271cea4c724885b857fd07358ec6e5
/vfp_web_server/datasets_4_min.py
2c51bda6c8e7b7060e75034d2064dc66b830e850
[]
no_license
pdMM11/Tese
b900febed04e9d6b863affa16eea3190e5f5867c
41219be91e0df8b66d8a95fe408c6339c6fcb71b
refs/heads/master
2022-11-15T01:58:01.160873
2020-07-10T18:49:02
2020-07-10T18:49:02
278,682,542
0
0
null
null
null
null
UTF-8
Python
false
false
3,572
py
# -*- coding: utf-8 -*- """ Created on Fri Jun 26 15:19:37 2020 @author: pedro """ import pandas as pd import numpy as np import os def size_families_4_min(filename="Seqs_prots.csv"): dataset = pd.read_csv(filename) dataset['Family'] = dataset['Family'].str.strip() dataset_3_in_family = pd.Da...
[ "46798433+pdMM11@users.noreply.github.com" ]
46798433+pdMM11@users.noreply.github.com
92d96fdbf6933afe9c592bf0775c56eb914262e7
b011755718e66729e3e8b90b2dc4155a29db3ea6
/autoTagAnalyze.py
4a57c4c477b2d4cae267249c2073931de1c81197
[]
no_license
Shbinging/Project-RSS
c4a8e08dd1a572abe349a077366538d29a1fb5a4
73b0efc849b4d3fe12c08ce12af87aa10b8cacc0
refs/heads/master
2022-08-01T22:56:48.748600
2020-05-31T10:37:35
2020-05-31T10:37:35
265,760,791
0
0
null
null
null
null
UTF-8
Python
false
false
12,245
py
from adeq import makeConfig; from adeq import adeqSql; import jieba import re from timeAnalyze import timesplit; from audienceAnalyze import audiencesplit; class tagAnalyze: def __init__(self,trainName, fromData=0, fromDataTag=0, Config=0, wordbagName=0, isToNewSet=0):#原始数据表,读取的标签,训练数据库config,分析数据库,是否新建 ...
[ "1436775971@qq.com" ]
1436775971@qq.com
950f460f7d6a093c23d6a461d86389f6b4d95872
fc22bd2ff1791ef1203ab3f0bb3a92fc25744b0f
/scripts/smms_merge.py
a34ea8b0715f9e523e0025b9a8601a9be0e4f3af
[]
no_license
ndrubins/harvard-informatics
7c460856483ce679cc51c3a818e26f2708ae4fff
917e6f6746cd041a6f69aa58e5f67e7716af3306
refs/heads/master
2021-01-15T11:56:34.638972
2013-02-14T21:14:15
2013-02-14T21:14:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,162
py
import os, sys, re, operator, xlrd, string, time import settings from django.core import management from django.db import models from django.db.models import * from django.contrib.auth.models import User from spinal_website.apps.reservations.models import ResourceReservation from sp...
[ "michele.clamp@gmail.com" ]
michele.clamp@gmail.com
f69489224cc04d36c7466b095f812c528f824242
9d2a3d18a0674154ced275ef5e1981f087b5ed02
/fifthWeek/python_30.py
95350d6c6ee16ed71543c6e1baee435096135e66
[]
no_license
EthAlenazi/python_learning
b8720f1774b7f5465508fc38abdb174a1159e7a5
6eb08319a412953efe1f2f6f07b7f7b9021c34a6
refs/heads/master
2020-07-08T13:45:48.403867
2019-11-25T19:34:19
2019-11-25T19:34:19
203,692,725
0
0
null
null
null
null
UTF-8
Python
false
false
3,281
py
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license()" for more information. >>> for X in range(20,2): print(X) >>> for X in range(0,20,2): print(X) 0 2 4 6 8 10 12 14 16 18 >>> A =20 >>> for X in range(A): print(X) ...
[ "QoQ1213.1417@gmail.com" ]
QoQ1213.1417@gmail.com
8fc3df572aa8224634a3036713c4a33e193207a7
7154eaaeba8bb85663fb3be2fe87bff02afb9f92
/app.py
f981c6b29a3001db5fd0b0c18697dea32737e686
[ "MIT" ]
permissive
Lynxgsm/nvidia-bot
a3dfafeff774ee3e9c07f9ad7633df30ff3b47c5
6f26946532ffd607eb505996773e4dcda0df853a
refs/heads/master
2022-12-23T01:35:57.717623
2020-09-22T09:54:08
2020-09-22T09:54:08
297,620,499
1
0
MIT
2020-09-22T10:55:36
2020-09-22T10:55:35
null
UTF-8
Python
false
false
64
py
from cli import cli if __name__ == "__main__": cli.main()
[ "hari@nagarajan.io" ]
hari@nagarajan.io
bb4411845beac8ed6a855d3894786bb21f41fa05
5179b07b8d1a31df18612ce55d35c56b851cead8
/tools/train.py
b0290aace7813a3edf21acd4895698b235e05300
[ "Apache-2.0" ]
permissive
hamidehkerdegari/VFS
3e9c427c4a8ae0a6b66a3a1378bac5c6f9daaf51
8e055cc191578706f05b7484facf44be6fb1525a
refs/heads/master
2023-08-24T09:40:46.678233
2021-09-26T18:24:38
2021-09-26T18:24:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,658
py
import argparse import copy import os import os.path as osp import time import warnings import mmcv import torch from mmcv import Config, DictAction from mmcv.runner import init_dist, set_random_seed from mmaction import __version__ from mmaction.apis import train_model from mmaction.datasets import build_dataset fro...
[ "xvjiarui0826@gmail.com" ]
xvjiarui0826@gmail.com
9fe34c793ca1599d35af65ee91e407e0892adffb
d041d67aabef027c8f53e6d357a1af67e6b6149b
/ecommerce_project/api/serializers.py
957efac448caf9ad8408c4aab88c3bf0943693fc
[]
no_license
ajeena-joseph/2restapi
5c7e06bd29293ad3c34a214668170612eede4235
b1f325eba195185dd9fdbbc5a468c62d8dc2636f
refs/heads/master
2023-07-15T20:44:12.616252
2021-08-27T15:06:46
2021-08-27T15:06:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
451
py
from rest_framework import serializers from api.models import User, Category, Product class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = '__all__' class CategorySerializer(serializers.ModelSerializer): class Meta: model = Category fields = '_...
[ "salomyajeena@gmail.com" ]
salomyajeena@gmail.com
80dcbb07b4eae97a3da6754b53fad8a053aa294d
079acf54f514ae0ee5c1b6605df81f7936c27f23
/rewyndapp/pull_scripts/by_term.py
20b2da8a69f19a9f87e25d8f5dcb8af234aeba8f
[ "MIT" ]
permissive
c-o-89/RewyndT
cc65bed83b454ac070d43545a58445dfa01a1b88
09fe6b6f2124d705470306ed2a56035c60e4aa53
refs/heads/master
2020-03-30T00:32:24.955548
2018-10-10T04:34:50
2018-10-10T04:34:50
150,529,371
0
1
MIT
2018-10-04T07:04:42
2018-09-27T04:36:49
Python
UTF-8
Python
false
false
1,699
py
import subprocess import json import urllib import urllib.parse # twurl must have already been authorized using the "authorize" subcommand def encode_url(url, qs): qs_str = '' last = len(qs) for i in range(last-1): qs_str += qs[i][0]+'='+qs[i][1]+ '"&"' qs_str += qs[last-1][0]+'='+qs[last-1][1...
[ "chukwumaokpalugo@hotmail.com" ]
chukwumaokpalugo@hotmail.com
968b121b2d3bd581090efdc594f6eb784540a2d4
e30e8d488c8e0a123840e1ae57fde098dc5402da
/Lectures/Lecture 5 Files - Call By Object and Parameters/parameters7.py
55bc4f5e773348a85a052ff7dd7326a2e91f806d
[]
no_license
donaldjvillarreal/Python
7c064fea0d9359eeaeb390ddf9aaf6ae186cbfe5
68a05b2b61ac4224ad7ea7af8583932b0a5fd0b3
refs/heads/master
2022-11-19T12:11:34.546655
2015-05-26T15:05:05
2015-05-26T15:05:05
280,269,679
0
0
null
null
null
null
UTF-8
Python
false
false
434
py
def another_function(**kwargs): for key, value in kwargs.items(): print("The key %s contains the number %d" % (key, value)) if 'x' in kwargs and 'y' in kwargs: print("The sum of x and y is %d" % (kwargs['x']+kwargs['y'])) print("") another_function(z=5, y=9, x=10) my_dict =...
[ "donaldjvillarreal@Donalds-MacBook-Pro.local" ]
donaldjvillarreal@Donalds-MacBook-Pro.local
8a73c785a44ece6263c3e40dfde840832bed6655
65c03709b91ce8f006641b30d481b4fda651520e
/Coding/3_indexing_slicing.py
a52c46b665b5ac657b828965eb9a307d71a3bd84
[]
no_license
ahad-emu/python-code
332121ad289b169ca8099c88bde13d7121be1030
135805c78de38eaf1bd5500b44625b36b7b653c0
refs/heads/master
2020-09-09T01:01:41.313964
2020-07-04T16:31:37
2020-07-04T16:31:37
221,296,928
0
0
null
null
null
null
UTF-8
Python
false
false
502
py
#indexing.... my_string = "hello World" print(my_string) print(my_string[0]) #index zero print(my_string[7]) #index seven print(my_string[8]) #index eight print(my_string[-1]) #last index print(my_string[-2]) #second last index #slicing.... my_string = "ABCDEFGHIJKL" print(my_string) print(my_strin...
[ "ahademu99@gmail.com" ]
ahademu99@gmail.com
f54b7d59d1864cda1ea6a4cd32a98d9cab063635
6ca10769948e2eb678f24f37500e5df5aa27b02a
/tests/src/gretel_client/unit/transformers/transformers/test_redact_with_char.py
5e7daae19170ea84e21c2ca92c26dfbe8abb57a3
[ "Python-2.0", "Apache-2.0" ]
permissive
markanethio/gretel-python-client
cc04a61ee04b674be4293baa89589b95c3c86843
f910a64550fd6fba75f6d347f2a1251694dbde80
refs/heads/master
2023-06-25T01:36:54.985590
2021-06-17T16:13:06
2021-06-17T16:13:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,081
py
from gretel_client.transformers import RedactWithCharConfig from gretel_client.transformers.base import factory from gretel_client.transformers.string_mask import StringMask def test_redact_with_char(): mask_last_name = StringMask(mask_after=' ') mask_first_name = StringMask(mask_until=' ') redact_with_ch...
[ "noreply@github.com" ]
markanethio.noreply@github.com
c7c22f8b63c323b6da21a1eedb6146f61c738cc2
94f1cef5daa1dcfd65b7fc5180e61ffaad73346b
/main.py
3ebd3586a5233a93c7c8388ee51a1e502a4fe3e9
[]
no_license
LaZyRaifur/Chicken-escape-py
e7ab7ec5d5eb9ffa69f75a4bf8aa65ea278f327f
3d48313f7513b841d57e6a4e19aac8ca30e53be7
refs/heads/main
2023-03-31T16:33:56.265698
2021-04-12T08:08:23
2021-04-12T08:08:23
357,107,950
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
import pygame import random screen_size = [360, 600] screen = pygame.display.set_mode(screen_size) pygame.font.init() background = pygame.image.load('background.png') user = pygame.image.load('user.png') chicken = pygame.image.load('chicken.png') user_x = 150 user_y = 520 score = 0 def display_score(score): fon...
[ "raifurrahimcse13@gmail.com" ]
raifurrahimcse13@gmail.com
ca1587a2f58e1798a90ae2c3a6ff57057ec9e10c
d9d8d3eeecfc22ca951a7feeca0e591edeba27a2
/tests/test_virtual_assistant.py
7ff513920fbcbc8fafc3afded3c3ddafc9ec8b2f
[ "BSD-3-Clause" ]
permissive
john-james-ai/virtual-assistant
a5222854e82032f9922988800e4477791b7e6ac5
3e0aceeb82b284e7c19d18ae19e5ee778c058702
refs/heads/master
2022-12-07T23:45:49.980429
2020-09-05T14:26:08
2020-09-05T14:26:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
583
py
#!/usr/bin/env python """Tests for `virtual_assistant` package.""" import pytest from virtual_assistant import virtual_assistant @pytest.fixture def response(): """Sample pytest fixture. See more at: http://doc.pytest.org/en/latest/fixture.html """ # import requests # return requests.get('htt...
[ "john.james@nov8.ai" ]
john.james@nov8.ai
4a5a21bca80596cb5bea44e1aef99e00fcf93c2c
4c7d5602910e3b929ed127549210be6fd746302b
/practical-python/Solutions/9_5/porty-app/print-report.py
afe330af94326f125eaf352041d47a2775eea058
[ "MIT", "CC-BY-SA-4.0", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jianchengwang/todo-python
8b57d5ce45ea855c8c1413024e82add2267bc9c2
36bdaf6fae714531946047ececca995d60f86e4a
refs/heads/master
2023-03-07T06:22:22.301555
2021-11-26T07:08:02
2021-11-26T07:08:02
199,950,188
0
0
MIT
2023-03-05T16:12:56
2019-08-01T00:55:21
Python
UTF-8
Python
false
false
98
py
#!/usr/bin/env python3 # print-report.py import sys from porty.report import main main(sys.argv)
[ "jiancheng_wang@yahoo.com" ]
jiancheng_wang@yahoo.com
25a234f2613dc95192ae0c914d933f8ad33937c8
e7fc555f547a2f311aec3f7371d8c0d55a05a9eb
/Auto_hydro_breaklines/connected_component_analysis.py
a058797dec0a204815e48c8d9a3bc27398a4bb28
[]
no_license
JHusefest/Auto-hydro-breaklines-LIDAR
d3b8e5359f815edd771ec3b4b30bc1a19c759a9d
dcca25cea4ec326c412f665128826e65bfa9c2ff
refs/heads/master
2020-05-26T05:06:49.509354
2017-03-03T21:12:22
2017-03-03T21:12:22
82,465,066
0
0
null
null
null
null
UTF-8
Python
false
false
5,776
py
import matplotlib.pyplot as plt import numpy as np from skimage.segmentation import clear_border from skimage.measure import label, find_contours, regionprops from skimage.morphology import remove_small_holes from skimage.restoration import denoise_bilateral, denoise_tv_chambolle from analyze_elevation import range_pea...
[ "joakim.tveit.husefest@nmbu.no" ]
joakim.tveit.husefest@nmbu.no
d1194035877ccf46cd000542fa0cb83f128378d8
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2847/60900/255175.py
9f7f8927fa27a8621f5be9e8716e364de835126c
[]
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
192
py
n = input() str1 = input() nums = str1.split(" ") str2 = input() nums2 = str2.split(" ") count = 0 for i in range(int(nums2[0]),int(nums2[1])): count = count + int(nums[i-1]) print(count)
[ "1069583789@qq.com" ]
1069583789@qq.com
57f42bd7a79058202025336c929b0d848371477c
6b41f96990a528867c84e10c5f1d1299e56cbfa3
/python/move-subscriber
bba56ff1a55474e0e4c151f192c757cacd6dcf3a
[ "BSD-3-Clause" ]
permissive
fancychimp/public-api-examples
16c977e6ecd533513d87dd9ea537c932e1d2fcbe
fe593a51402dd13469fb5decfefa6cc06dcbb31d
refs/heads/master
2020-04-15T17:49:13.265093
2019-01-04T18:13:11
2019-01-04T18:13:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,646
#!/usr/bin/env python from __future__ import print_function import json import sys import requests from requests_oauthlib import OAuth1Session with open('credentials.json', 'rt') as f: credentials = json.load(f) session = OAuth1Session( credentials['consumer_key'], client_secret=credentials['consumer_sec...
[ "amberh@aweber.com" ]
amberh@aweber.com
568ba07dd81a56bf1728395122d6d1f372265fca
906476efa1f015cd287d30569fdfacead6570646
/tensorflow_model/example/example1.py
d0fcdbe002fcf1f1772fc2f1ef0ffae0112a8050
[]
no_license
NewDolphin/deep_model
173218eee9ff0efcde4867533749500ffa87d234
a6e697ad3620c74112df11e5fc8a2332cc183f11
refs/heads/master
2022-04-18T15:17:55.068840
2020-04-14T12:00:57
2020-04-14T12:00:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
import math import numpy as np import random as rn import sklearn.metrics as skm import tensorflow as tf # 两个矩阵相乘 x = tf.constant([[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]]) y = tf.reduce_mean(x, axis=1, keepdims=True) z = tf.reduce_sum(x, 1) u = tf.square(x) with tf.Session() as sess: # print(sess.run(y)) # print(...
[ "yqisong1992@163.com" ]
yqisong1992@163.com
5412884383a24527b37ea1598d51e24ea48eaf2c
b5fa57919ce7d71284106505c88d0d438195049e
/equipos/admin.py
34de715f36f9c29173a2e3580404bf6793f3484a
[]
no_license
ninja2410/final_django
aac9217970bf83071bfa500859bbb67281bc949b
eb6dc6fe274b889d8aef044177d9aed329de0b10
refs/heads/master
2020-04-04T22:51:23.746479
2018-11-07T06:09:15
2018-11-07T06:09:15
156,338,309
0
0
null
null
null
null
UTF-8
Python
false
false
216
py
from django.contrib import admin from equipos.models import Jugador, JugadorAdmin, Equipo, EquipoAdmin # Register your models here. admin.site.register(Jugador, JugadorAdmin) admin.site.register(Equipo, EquipoAdmin)
[ "pablo.felg1996@gmail.com" ]
pablo.felg1996@gmail.com
efce3becadd80a8ff880f40a1c7f9c87dd5e9bab
e00350c05fb573a6987fdbabe249c168cd063654
/Projects/Milestone 2/BlackJack.py
cad52db98d9030a9930aad44c55e46cd0401f892
[]
no_license
david13pod/Python-Development
0417919432627ec061da2c5e550593f9a90a5060
5ecbc8d381cd93c574ab1e6342fea47af17d263a
refs/heads/main
2023-03-23T02:44:48.008692
2021-03-15T23:25:27
2021-03-15T23:25:27
337,376,448
0
0
null
null
null
null
UTF-8
Python
false
false
16,483
py
from IPython.display import clear_output clear_output() class Gamerules(): def carddeck (self): from random import shuffle #define a deck of card deck1=[2,3,4,5,6,7,8,9,10,'Jack','Queen','King','Ace',2,3,4,5,6,7,8,9,10,'Jack','Queen','King','Ace',2,3,4,5,6,7,8,9,10,'Jack','Queen','King','Ac...
[ "odedereoluwapelumi13@gmail.com" ]
odedereoluwapelumi13@gmail.com
fbf24e42c6d7e8f22c1daee7c96ee466bdb31af8
7dc05dc9ba548cc97ebe96ed1f0dab8dfe8d8b81
/branches/0.4/pida/core/application.py
94dcd60a715f1aa4cab7fa59b29e7d1b46b9eb49
[]
no_license
BackupTheBerlios/pida-svn
b68da6689fa482a42f5dee93e2bcffb167a83b83
739147ed21a23cab23c2bba98f1c54108f8c2516
refs/heads/master
2020-05-31T17:28:47.927074
2006-05-18T21:42:32
2006-05-18T21:42:32
40,817,392
1
0
null
null
null
null
UTF-8
Python
false
false
10,003
py
# -*- coding: utf-8 -*- # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: #Copyright (c) 2005 Ali Afshar aafshar@gmail.com #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software without restr...
[ "aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7" ]
aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7
abcc870c063bb7e215a35e1713cb35a8f84a57e0
129a2f54817ca246b53631d669ffd4bb0330f03f
/mysite/settings.py
ac82f40fee3fb513591e6d9c77cbb9b58e1cb104
[]
no_license
MDYLL/BARS
9460335d1ea03266f8058e0f1e4571f5621b5bdd
1441e5a6c074e54968d4e6bafa406f68312d0160
refs/heads/master
2020-09-05T18:52:18.948287
2019-11-07T08:21:41
2019-11-07T08:21:41
220,185,151
0
0
null
null
null
null
UTF-8
Python
false
false
3,310
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.2.7. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os # ...
[ "mdylll@mail.ru" ]
mdylll@mail.ru
b240e41159b4ff5033205b868e3fcfc8f48df0bd
d85a3cc3466b33fe7edd4198b367c2de6c45d13b
/SnakeAi/test.py
fbc612b6f8289feb1cdc997b494faf33698a5887
[]
no_license
Ahmetf1/Machine-Learning
3b5faaca699828e9a5582461a72624fb67539164
7396ccff574e89c20ff9bb089cbd718459f02657
refs/heads/master
2023-06-30T12:54:11.975452
2021-08-04T23:35:43
2021-08-04T23:35:43
321,272,337
0
0
null
null
null
null
UTF-8
Python
false
false
700
py
from ai_game import GAME, SNAKE, FRUIT from network import Network, Agent import torch gamma = 0.99 epsilon = 0.01 batch_size = 512 n_action = 4 input_dims = [2, 20, 20] mem_size = 100000 epsilon_end = 0.01 epsilon_dec = 1e-4 network = torch.load('model_2000') agent = Agent(network, gamma, epsilon, batch_size, n_acti...
[ "ahmetfakinci@gmail.com" ]
ahmetfakinci@gmail.com
cc8f3b6012f30c1bdad4f411f454e6e816b04bde
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02549/s176160941.py
bdc2e8e51f883ca3eca69259dc2774ce9724f789
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
491
py
N, K = map(int, input().split()) L = [0] * K R = [0] * K for i in range(0, K): L[i], R[i] = map(int, input().split()) moves = [0] * N moves[0] = 1 rui_wa = [0] * N rui_wa[0] = 1 for i in range(1, N): for j in range(0, K): l = max(i - L[j], 0) r = max(i - R[j], 0) if i - L[j] < 0: ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
25fa45f71853b5403b82a98d2fcc0438234355ac
32b7903477752f7a1bc1f656b024527b9884d919
/Style Transfer/run.py
53a58003db0b4c44ea824733009d5cd5d7e5db25
[ "MIT" ]
permissive
fuxiao-zhang/PyTorch
5f37eeb5daf2ae04330747f5fcc33c86613cd0dd
114537ebbae878a5522adcfe262f936fd9c2368d
refs/heads/master
2023-01-25T01:08:43.338520
2020-12-07T07:18:39
2020-12-07T07:18:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,151
py
import torch from tqdm import tqdm import torch.nn as nn import torchvision import numpy as np from PIL import Image import albumentations as alb from torchvision.utils import save_image class model(nn.Module): def __init__(self): super(model, self).__init__() self.out_features_number = [0, 5, 1...
[ "noreply@github.com" ]
fuxiao-zhang.noreply@github.com
49082f777a4c3f494a628aa8a98f1e3a9039e35e
5ea521e5cd24c8c49d62f23864d754aeda0bf2e6
/game/libs/jsonpickle/tags.py
c4ced32502372278c191ee7705263df421384123
[]
no_license
bravelittlescientist/asteroid-lander
fba45e40b7af96b4faf5fdd8d854e241bc62e81c
a9d03148d8a50d0db726a796b83b56a5536b90eb
refs/heads/master
2016-09-06T13:09:06.000935
2013-04-12T03:33:00
2013-04-12T03:33:00
7,905,313
1
1
null
null
null
null
UTF-8
Python
false
false
572
py
"""The jsonpickle.tags module provides the custom tags used for pickling and unpickling Python objects. These tags are keys into the flattened dictionaries created by the Pickler class. The Unpickler uses these custom key names to identify dictionaries that need to be specially handled. """ from jsonpickle.compat imp...
[ "vaibps17@gmail.com" ]
vaibps17@gmail.com
5f9c762d06042b8c296c2b16f570b7c112d50b38
c55615a3638317e71f966cbde3a81c61ca7beee1
/Vadym_Bilestkyi/0/Task1.py
d0f418ee908b2443ee1e900c979856f759fa56a2
[]
no_license
SmischenkoB/campus_2018_python
8b139f4ad2b7f8476f31ee1bb96fbbce0040ec8c
291592e97b6d8fe9f9e6627dc0023875918d3463
refs/heads/master
2020-05-01T05:13:59.107471
2018-12-14T13:18:55
2018-12-14T13:18:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
317
py
def gen_range(start, stop, step=1): if step == 0: raise ValueError('step must be nonzero value') while step > 0 and start < stop or step < 0 and start > stop: yield start start += step print(list(gen_range(0, 5, 1))) print(list(gen_range(0, 5, -1))) print(list(gen_range(5, 0, -2)))
[ "umpire333@gmail.com" ]
umpire333@gmail.com
c0283e4aa9ef77fcad4f242bf2de3af0b18ec5b3
cee0fac1c0807f671b1ca499d6b16011f1cfd705
/fetchEstimoteData.py
397005520c4647e1ed10bfe4512ec7f4a6908e28
[]
no_license
siman4457/ProximityBeacons
f85eb446f5581d1d139d77fb7aa989f854c8e611
7ddebe69712aed494489eb186df7d3600f16a2c6
refs/heads/master
2020-03-17T20:13:19.195376
2018-05-18T03:56:10
2018-05-18T03:56:10
133,894,936
0
0
null
null
null
null
UTF-8
Python
false
false
2,534
py
#A short program that fetches data from the Estimote cloud and exports it into a csv file. #HUBBS Labs #By: Siman Shrestha import requests import csv import ast #---Get visit duration for BLUEBERRY BEACON --- url_1 = 'https://cloud.estimote.com/v2/analytics/devices/cc95d1d6b8587f69bb2d353a599fcd00/duration?from=152...
[ "siman4457@gmail.com" ]
siman4457@gmail.com
39d2ad8c72be7e579b00d0f7f038bb5dc74229a5
1070dd709a69aa5c6d0dc162e2206912f8067b98
/src/Interface/forward_kinematics.py
36dba4fe09874c5faeca885e314be26d6d8559b6
[]
no_license
quarkytale/YouBotVRepROSInterface
6f180bebbd7af9ceba0e0dbc755b91f836d431c0
22830009d79f261ea74c5bbfaaa53eab0ed70615
refs/heads/master
2021-09-13T02:10:45.601701
2018-04-23T20:51:16
2018-04-23T20:51:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,507
py
from sympy import * import numpy as np a = 10 #not too sure about this b = 72 c = 150.5 d = 75 e = 155 f = 135 g = 113 h = 105 def forward_kinematics(q1, q2, q3, q4, q5, x, y, theta): global a, b, c, d, e, f, g, h t = [0, np.deg2rad(q1), np.deg2rad(q2 - 90), np.deg2rad(q3), np.deg2rad(q4), np.deg2rad(90),...
[ "noreply@github.com" ]
quarkytale.noreply@github.com
caec2e5729e08c77d3b01126a32f794a0c4931f2
db241b5457dd8df4239214bdc31a221d7ffa7e25
/opencv/utils/__init__.py
1d5656e97542599a2b0c334e9630007b7844a84d
[]
no_license
TaoistQu/AI
cd8c26bf73aef20e5c48bd928a2067fdfef6241f
1f14dd5c202d3291a8867c53110f78f33c5ce316
refs/heads/main
2023-06-01T08:15:04.435754
2023-05-16T13:16:18
2023-05-16T13:16:18
263,840,509
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Copyright (C) 2022 # # @Time : 2022/12/23 0:12 # @Author : TaoistQu # @Email : qulei_20180331@163.com # @File : __init__.py.py # @Software: PyCharm # description:
[ "qulei_20180331@163.com" ]
qulei_20180331@163.com
a4ee93d69cb5b32fecf72f51bad2601bc913f577
e25e7f0d944d302c2fd13b7517d97c5e0b5558ec
/FixTree_TBCNN/03-ConstructCandW/nn/helper.py
613ea1a4c7ecd2d0c925d83a482a3faa4aa99346
[]
no_license
NizhenJenny/FixTree
06702a0d529d861e34b045aac286434b0ce3d86f
be30a2cdeb6cc0aa13f29d2cd4d4ce325f00f2a0
refs/heads/master
2020-05-24T21:33:04.030992
2019-08-19T09:52:10
2019-08-19T09:52:10
187,477,281
0
0
null
null
null
null
UTF-8
Python
false
false
1,733
py
# -*- coding: utf-8 -*- import numpy as np import copy def addlist(l, e): if not l : l = [] l.append(e) else: l.append(e) return l def main(): a = np.array([[-0.4527861 ], [-1.49480242]]) #print dummySigmoidPrime(a,a) #print sigm...
[ "noreply@github.com" ]
NizhenJenny.noreply@github.com
9aed10d3c3a078ed98141ea7813a5f41d2a2e1d4
a2742344744180054dd37cd5f565dc56e166d600
/main.py
afc85ecc47408102b06eff1773941b6c36a6b4db
[]
no_license
Kaisaurus/uda-blog
b409ae318b494026c79354090ca756adb549d7dc
35b7f8144f350ad8e3d97150fdae6f35298b5a7b
refs/heads/master
2020-04-18T05:35:18.631590
2016-08-22T07:10:07
2016-08-22T07:10:07
66,248,267
0
0
null
null
null
null
UTF-8
Python
false
false
2,569
py
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # 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 o...
[ "kaigotoh@gmail.com" ]
kaigotoh@gmail.com
1fca02c281ca3e871dc4a6d6211ce9438fa335cd
071998f813d7fd54e4629cc4625c9c2c6325d0e3
/src/test/lp/atividade_continua_2/range_of_primes/main_test.py
685ec19bd339f1f948404b55609b67018a777317
[ "Unlicense" ]
permissive
shirayukikitsune/python-code
d43c110b77a7fa0f778a8904b2554a0ca0e6dd18
bec56b92510470e54db1eebafcf06b9877aed5fc
refs/heads/main
2023-08-21T20:03:29.499242
2021-09-15T10:35:16
2021-09-15T10:35:16
399,742,530
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
import unittest from os.path import abspath, dirname from src.library.commons.testing.utils import run_tests_with_io from src.main.lp.atividade_continua_2.range_of_primes import main class ExtremelyBasicTestCase(unittest.TestCase): @run_tests_with_io(abspath(dirname(__file__)) + '/cases') def test_inputs(sel...
[ "shirayukikitsune@gmail.com" ]
shirayukikitsune@gmail.com
5de0b81f7eb9ffcb6f37c172ee267011003055f3
8a03b8459902d1bf0806f8d3387fb962bb57cf58
/User_create/Negative_changepwd.py
b654fadc05e357cbb963c843646791c0392766c4
[]
no_license
chetandg123/cQube
f95a0e86b1e98cb418de209ad26ae2ba463cfcbc
a862a1cdf46faaaff5cad49d78c4e5f0454a6407
refs/heads/master
2022-07-18T12:43:06.839896
2020-05-22T13:23:52
2020-05-22T13:23:52
258,089,042
0
0
null
2020-05-08T16:28:26
2020-04-23T03:55:52
HTML
UTF-8
Python
false
false
1,828
py
import time import unittest from selenium import webdriver from Data.Paramters import Data class Click_ChangePwd(unittest.TestCase): def setUp(self): self.driver = webdriver.Chrome(Data.Path) self.driver.maximize_window() self.driver.implicitly_wait(10) self.driver.get(Data.URL) ...
[ "chetan.goudar@tibilsolutions.com" ]
chetan.goudar@tibilsolutions.com
f7f0c2ff48ccc26e418233312c0899632de4b4ef
f674eaaf46491ab376199238143e18837d3f85c0
/SiO2/large/pythonScripts/forceDistribution.py
e70c1cbeb448ec2e8a87f386df3b4e239478fea5
[]
no_license
filiphl/master-thesis
7402dafb3d2f3ec70f61ec97cd7a235405fc40fc
54aa0d1d49765c82c4dcaea149f2c2cf00f54bec
refs/heads/master
2021-06-18T14:09:08.652591
2017-06-19T08:39:48
2017-06-19T08:39:48
66,485,624
1
1
null
null
null
null
UTF-8
Python
false
false
6,131
py
from surface import * from compareMatrices import * from radialBinning import smooth from matplotlib import rc from scipy import ndimage import matplotlib as mpl import pickle class ForceDistribution: def __init__(self, N, surfN, nearestNeighbor, binWidth, cx, cy): self.N = N self.surfN = surfN ...
[ "filiphenriklarsen@gmail.com" ]
filiphenriklarsen@gmail.com
7229a9c285b03df22f176624c5e0f5b54b27a88d
a2fab78b021469748337bdbe46d60f4b2dccf6b9
/day04/03.字符串的遍历.py
c5d627376bea9ed9bd537324019d43ced7a0f603
[]
no_license
yywecanwin/PythonLearning
06175886b42f6ec6be5ee8fa379365779e8e14e6
f59d381692f22b3c7cf605aec88500f6c0267ffc
refs/heads/master
2020-08-01T13:03:17.458829
2020-02-11T02:53:33
2020-02-11T02:53:33
211,006,180
1
0
null
null
null
null
UTF-8
Python
false
false
628
py
# -*- coding: utf-8 -*- # author:yaoyao time:2019/9/28 """ 字符串的遍历: 一个一个的得到里面的元素 """ s = "hello python" """ # 遍历的方式1: # 1.定义一个变量i 表示元素的索引,赋值为0,因为元素的索引是从0开始的 i = 0 # 2.while循环遍历字符串 while i <= len(s)-1: #3.在循环中, 根据索引得到元素, 把元素打印出来 print(s[i]) # 4.在循环中,让i加1,是为了让索引加1,便于下次循环时得到下一个元素 i += 1 """ """ for 变量...
[ "3216561314@qq.com" ]
3216561314@qq.com
182744c1cafe5920f8cf0055d5f8bdf9f0fc912a
a8d130fd32506cc0ceef711dd02c9a34bcb3fb31
/Ex7.py
7ef21808b4213e41ea9b17cd0d68d2e55d76f4e9
[]
no_license
Jorgezepmed/Python
554b1933ae4d027b2fefc4f61ef48556274e04e9
25bd71ac25bb73575eec8aedf229d0e01ff43720
refs/heads/master
2021-01-01T15:34:10.371156
2018-03-05T06:16:58
2018-03-05T06:16:58
97,438,806
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
#Ex7 MORE PRINTING print "Mary had a little lamb." print "Its fleece was while as %s." % 'snow' #NO PRECICAMENTE DEBE DE SER VARIABLES DECLARADAS AL PONER % SE PUEDE PONERLA COM OSTRING ESPECIAFIACA AL LADO print "And everywhere thet Mary went." print "." * 10 ...
[ "jorge.david.zepmed@gmail.com" ]
jorge.david.zepmed@gmail.com
2168a885042c375e9a709028942bca7cd1d3e5ef
f1ee770cd7c8f932d96498016fc298cfab631d5e
/myapp/migrations/0008_auto_20180718_0152.py
46cc7bf01fa3344d3c911fc8320a7fa132350468
[]
no_license
umangforlife/umang1
fc06e6b7266b5a7c0f5022b5d6680dca368b9556
33a77a637e05a5b1a80b830bac568908d410a90b
refs/heads/master
2020-03-23T09:36:55.229141
2018-07-18T07:44:53
2018-07-18T07:44:53
141,398,814
0
0
null
null
null
null
UTF-8
Python
false
false
1,641
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-07-17 20:22 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myapp', '0007_contact_ngo'), ] operations = [ migrations.CreateModel( ...
[ "umangforlife@gmail.com" ]
umangforlife@gmail.com
148f59407e6dfbfc0392c86f57e79bebc1f03ec5
1f4c4f4799625030ef03f6510943aad6f5d7c080
/quickstart/views.py
d705ba73a383e7a5578ac57bf2979079804c9b8d
[]
no_license
sensactive/api
8b19c78010a928c1608d3b8fcc527f2ab01e5209
e3a431ab1d353f302e733dff31a18fb02b38a71c
refs/heads/master
2020-04-03T15:26:47.686488
2018-10-30T10:09:19
2018-10-30T10:09:19
155,362,731
0
0
null
null
null
null
UTF-8
Python
false
false
1,162
py
from rest_framework.response import Response from . models import TempModel from rest_framework import viewsets, serializers from . serializers import TempModelSerializer from django.http import HttpResponse import requests import pytemperature class TempModelViewSet(viewsets.ModelViewSet): queryset = TempModel...
[ "sensor14@list.ru" ]
sensor14@list.ru
865a45266601f0b3b988e02fbb6b2dfe682de7d0
a2cd4d19a423010d689ca40d22cc0d93b6115464
/EZAI/api/forms.py
404b3483349a7614dc861a340438471d72b3b655
[]
no_license
sebastianpenttinen/EZAI
a8c284530e25d76682edae9a32ecae235336792f
292b7d1f8d3205598efca9da40e0f3fd55db4043
refs/heads/master
2020-12-07T04:49:35.386277
2020-01-13T19:04:30
2020-01-13T19:04:30
232,636,824
0
0
null
2020-02-05T11:43:16
2020-01-08T19:00:31
HTML
UTF-8
Python
false
false
1,939
py
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from markdownx.fields import MarkdownxFormField from .models import ModelDocumentation, MLModel class SignUpForm(UserCreationForm): first_name = forms.CharField(max_length=30, required=True, ...
[ "sebastian.penttinen@abo.fi" ]
sebastian.penttinen@abo.fi
e03b7ef67849e583abb795e43e173297706316ff
798960eb97cd1d46a2837f81fb69d123c05f1164
/symphony/cli/pyworkforce/graphql/input/check_list_category.py
8ab69aef97666923166c55f03daa8d9166c133bc
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
kyaaqba/magma
36d5fa00ce4f827e6ca5ebd82d97a3d36e5f5b5b
fdb7be22a2076f9a9b158c9670a9af6cad68b85f
refs/heads/master
2023-01-27T12:04:52.393286
2020-08-20T20:23:50
2020-08-20T20:23:50
289,102,268
0
0
NOASSERTION
2020-08-20T20:18:42
2020-08-20T20:18:41
null
UTF-8
Python
false
false
590
py
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from dataclasses import dataclass from datetime import datetime from functools import partial from gql.gql.datetime_utils import DATETIME_FIELD from numbers import Number from typing import Any, Callable, List, Mapping, Optional from dataclasses_j...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
dc582fe201aa5a3ac223587e8b0766e019d4993f
6252e82d76c11e3d66c727bda674cccf60976ba8
/books/views.py
364152523f71552ddd9acf7a49074a3ab92863f7
[]
no_license
abhilash01393/IFT593AppliedProject
5b9ab264a21281c20603076b70bdbfe063d09818
84ac6906a692ffe8e7cfac2af974425cd9aebf49
refs/heads/master
2020-08-15T23:05:50.934347
2019-10-16T00:35:48
2019-10-16T00:35:48
215,421,159
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
from django.shortcuts import render # Create your views here. def index(request): return render(request, "index.html") def asl_detailed(request): return render(request, "asl_detailed.html") def other_works(request): return render(request, "other_works.html") def about(request): return render(reques...
[ "abhilash.01393@gmail.com" ]
abhilash.01393@gmail.com
d845692f192b0c1297c5a2fc66b8ecae3db58e94
9172dc2d96d05bae202b53c8d6d87b10dc814e22
/src/pythonDevice/pythonping/icmp.py
a5e3aeb73b7fb9ad7dafce7f7ed1a8a74224a097
[ "MIT" ]
permissive
somervda/ourProbes
f03612ed8a98e58778fd4f301205ba41a456e59f
8678b2dfde15016fef087f9eca6bd33bab8fec12
refs/heads/master
2023-03-11T01:01:16.151654
2022-02-24T16:05:10
2022-02-24T16:05:10
221,022,828
0
0
MIT
2023-03-07T11:28:40
2019-11-11T16:28:59
TypeScript
UTF-8
Python
false
false
7,390
py
import os import socket import struct import select import time def checksum(data): """Creates the ICMP checksum as in RFC 1071 :param data: Data to calculate the checksum ofs :type data: bytes :return: Calculated checksum :rtype: int Divides the data in 16-bits chunks, then make their 1's c...
[ "39265971+somervda@users.noreply.github.com" ]
39265971+somervda@users.noreply.github.com
f954b645511f03fecf40aceb25a85aad5330a746
5e0852a7f5a734f061c9943eb177a808f70ff377
/venv/Lib/site-packages/django/test/testcases.py
206e35f06e99e14984f1725bc55aad679f6497bd
[]
no_license
krishna120801/YourThoughts
44efa58aa6eff429b20a0d87da900017b40658e6
4231da4062c87a6ebf2c4461746c22f99ad2a64d
refs/heads/master
2022-12-27T01:47:42.920631
2020-10-16T18:28:18
2020-10-16T18:28:18
304,707,236
0
0
null
null
null
null
UTF-8
Python
false
false
60,770
py
import asyncio import difflib import json import posixpath import sys import threading import unittest from collections import Counter from contextlib import contextmanager from copy import copy from difflib import get_close_matches from functools import wraps from unittest.suite import _DebugResult from unittest.util ...
[ "ksahu5505@gmail.com" ]
ksahu5505@gmail.com
f8334ff2a60276a5931b9054fb616a9d7fde7506
31190ae0dc5d8b2d781c78ffe39904b3d522b747
/General/Reading_TXT_File/reading_txt_file.py
32bfdf510aa4529352e0fbd2f8339cd56e893519
[]
no_license
ldcarney/Student_Work
d7ac795e2a78010c11d0ee848a7fa27c4c36c27b
9fae2a4df468e9470320f9772a38c8e82b396cb3
refs/heads/main
2023-02-26T09:24:32.131684
2021-01-28T01:43:45
2021-01-28T01:43:45
333,561,061
0
0
null
null
null
null
UTF-8
Python
false
false
3,264
py
# CS1300 Fall 2017 # Author: Liam Carney #reading through text file def read_users(file_name): user = {} try: f = open(file_name) for line in f: ratings = [ ] line = line.strip().split() name = line[0] for i in line [1:]: ratings.append (int(i)) user[name] = ratings return user except: ...
[ "noreply@github.com" ]
ldcarney.noreply@github.com
02de8197a9ad10a26b78049cde20ec558b846bf6
3e3df153b0f5fc909195f544ee3390d4170cf4b0
/sets.py
2777cdb846dccc3b0b0524307e5be3f7435b4fec
[]
no_license
agung037/python101
d61a30e5c42ad17a102fe6814a8edc371bdd087f
aa99f366f4ef377c8833ceb65ad8d51f5c06c1f4
refs/heads/master
2023-04-19T19:32:47.321623
2021-05-24T16:48:11
2021-05-24T16:48:11
370,046,298
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
# Create an empty set s = set() #add elemets to set s.add(1) s.add(2) s.add(3) s.add(4) print(s) print(f"The set has {len(s)} elements")
[ "agungk878@gmail.com" ]
agungk878@gmail.com
998364c6abc641c877b02a569f6db4b16d99aa60
5b51e4a72055b09b9b1a9963c7f3bb88a6457a9f
/tast02.py
039cf7f856ca78b494b24dfb5f3fe5099b0557a9
[]
no_license
nii5/lesson03
adc64fd78ed828ebb4eb6944178d6d90befa1988
febceb26c81bf3911d351d30b6a8b1f9379abe78
refs/heads/master
2022-10-21T21:45:23.075190
2020-06-19T12:50:30
2020-06-19T12:50:30
272,795,054
0
0
null
2020-06-19T12:50:53
2020-06-16T19:29:59
Python
UTF-8
Python
false
false
230
py
def my_func(name,surname, year,city,email,phone): print(name,surname, year,city,email,phone) my_func(name='Иван',surname='Иванов', year=' 1990',city='Иваново',email='ivanov@mail.ru',phone='+79624564556')
[ "noreply@github.com" ]
nii5.noreply@github.com
6a51492ded638f3df2d2790b30ce3d10c9e269b9
5eddc2a278cb8f54da00db186c784e03a7b3011f
/csaapi/apps/farm_site/services.py
5fa5b1565b3fc591b00038169efacb6de7334198
[]
no_license
quinceleaf/csa-member-management
350a48262cead1f03199c5c021a958fb410a791b
8df57aa190935e79916b64d2a3de9e4e6c2d357d
refs/heads/main
2023-06-18T11:10:47.633613
2021-07-20T03:47:55
2021-07-20T03:47:55
387,568,813
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
def create_subscription(*, ) pass # fan out payments # fan out deliveries
[ "brian@quinceleaf.dev" ]
brian@quinceleaf.dev
0f1624657bfcfaafd9fa23f44a27e00775d0dc28
4bfa09b427ed1ec3c3f645f66e32f1e85ba59699
/scripts/mell/utils/io_utils.py
8578e04b89514318275f7ca58e7569d5d0d9340d
[ "Apache-2.0" ]
permissive
Chengkai-Huang/EasyTransfer
c3328f33d408783cc08eebf5a4ed43becf3d5dec
6909238c45b5708968f955b7d971a79b25434597
refs/heads/master
2023-07-19T02:20:36.864088
2021-09-15T09:45:48
2021-09-15T09:45:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
26,004
py
# coding=utf-8 # Copyright (c) 2020 Alibaba PAI team. # # 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 ...
[ "zhangtaolin@B-133KQ05P-0208.local" ]
zhangtaolin@B-133KQ05P-0208.local
9ac78261b3e0bfe904692b30ec71925efb1b2fd5
e203ddace08580170e3b4de9c79588209e857c1c
/books.py
23233198dc918f7183dbddd721d36fc2b0141ebf
[]
no_license
stradtkt/OOPTreehouse-Python
e17f3fd48840049b8b741aa0e30e54d1409804b2
84e0ef2142118bf44c416a3b1dde3519ff57fd15
refs/heads/main
2023-02-26T15:03:27.053205
2021-02-04T13:04:26
2021-02-04T13:04:26
334,620,181
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
class Book: def __init__(self, title, author): self.title = title self.author = author def __str__(self): return '{}: {}'.format(self.title, self.author) class Bookcase: def __init__(self, books=None): self.books = books @classmethod def create_bookcase(cls, book_...
[ "stradtkt22@gmail.com" ]
stradtkt22@gmail.com
3f831349dbe5ba3bfa9fc95b134a94e9b0619124
a8a7f22f610e333f095a3424e4fd9208f9a3c407
/python class clg/avg.py
bd8e03bdfbcaf4c6846c5eadcd6384c7e59d5353
[]
no_license
saikrupa82/mypyth
b4d8a68302bf2e664cad2d416fee8dcb3a6c5896
c3ab9d9befe467641588e720f9ca658a85cc9f7a
refs/heads/master
2022-12-27T13:29:06.374075
2020-10-01T14:48:40
2020-10-01T14:48:40
300,315,085
0
0
null
2020-10-01T14:47:30
2020-10-01T14:47:29
null
UTF-8
Python
false
false
327
py
s=int(input("Enter any number")) ls=[] k,max,min=0,0,0 f=str(s) if f.isdigit: for i in range(1,s+1): k+=i ls.append(i) print(ls) print("Average of number is",float(k/s)) max=ls[0] for i in ls: if max<i: max=i print("Maximum number is ",max) min=ls[0] for i in ls: if min>i: min=i print("Maximum number is ",...
[ "noreply@github.com" ]
saikrupa82.noreply@github.com
4a72e08adf4020d79af80bfb0d8b17b893194e84
264c8e2bb321113144dc29d9d8fbc16a12a6b9e2
/Ex_Files_Python_Data_Structures/Exercise Files/03_03_begin/reverse_string.py
701831cea42a8f48788b9ddbd48eee7d7ba7a89c
[]
no_license
prakashatul1/interview_prep
5d945cfd26d647c1dafdb6aeb1d1a84cd9732d16
91c93f32c76336f5aafc1884688746f59695ba0d
refs/heads/master
2023-06-15T21:08:51.600718
2021-07-16T09:18:09
2021-07-16T09:18:09
378,338,075
0
2
null
null
null
null
UTF-8
Python
false
false
372
py
""" Python Data Structures - A Game-Based Approach Stack challenge Robin Andrews - https://compucademy.net/ """ import stack string = "gninraeL nIdekniL htiw tol a nraeL" reversed_string = "" s = stack.Stack() # Your solution here. for char in string: s.push(char) while not s.is_empty(): re...
[ "atul.prakash@nobroker.in" ]
atul.prakash@nobroker.in
24ee0c3b5ba31c62359bb82634292671f9df0b24
e6b4b9dcca11d6a8abd110cd681b2712f9843030
/src/env/dm_control/dm_control/composer/observation/observable/base_test.py
0f519c2ba2e7da274db7fe54fd6ede820fd6dc34
[ "MIT", "Apache-2.0" ]
permissive
nicklashansen/svea-vit
a1b1d74fba88aaa94c876d354e7d6ed60cd3f064
33d3ea2682409ee82bf9c5129ceaf06ab01cd48e
refs/heads/main
2023-07-21T18:35:08.439052
2023-07-11T20:09:50
2023-07-11T20:09:50
379,015,671
16
3
MIT
2023-07-11T20:09:52
2021-06-21T17:43:32
Python
UTF-8
Python
false
false
5,914
py
# Copyright 2018 The dm_control 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 law or agreed to i...
[ "hello@nicklashansen.com" ]
hello@nicklashansen.com
712ada88cdb4974d7863e34891f5a95fe1380f20
8c3aa1195ac5ce8619bef2443bcc253d8866d436
/Classes & functions.py
283e3762565a90b17333e92c9791de6c91c2ed52
[]
no_license
saad-cherkaoui-ikbal/Streamlit-Dashboard
bc0a79b431e5bfb2959e21cbdd8bd86b835b9060
c5ac86fab947e7c63088fcde66e290c0e925731a
refs/heads/main
2023-09-05T01:26:00.604662
2021-10-12T09:32:00
2021-10-12T09:32:00
413,021,917
0
0
null
null
null
null
UTF-8
Python
false
false
1,089
py
def get_table(name, connection, columns): query = ' SELECT * FROM {}; '.format(name) return pd.DataFrame(execute_query(connection, query), columns=columns) class LibraryTable: def __init__(self, name, df): self.name = name self.df = df def span(self, period, column): self.df =...
[ "noreply@github.com" ]
saad-cherkaoui-ikbal.noreply@github.com
a48262df7b31b657505b623ed8035c6792e85210
c0ffc02a5c72bea9a86d15e4a1ff01a7b67b6858
/2nd11.py
6c0435486d72ef0e986b5f69acf172236e6c785b
[]
no_license
db2398/2nd
6f39d05a0b3f9f2aba050f35f9a9e83ba7e1511f
404942c046ab894df1b52016ac7d4d49651f8295
refs/heads/master
2020-06-11T16:53:30.291296
2019-07-01T09:13:00
2019-07-01T09:13:00
194,029,475
0
0
null
null
null
null
UTF-8
Python
false
false
55
py
c,d=map(int,input().split()) result=c**d print(result)
[ "noreply@github.com" ]
db2398.noreply@github.com
d2dc956bbc48eb170fbbda451cf3630d7b8168b1
5545d3c3e910ccb5b45b2277a71ad3c3ea3caedc
/jamenson/runtime/Attic/runtime.py
85f8fe28ad0310322de14198533d79ebdb9fe6a4
[ "Apache-2.0" ]
permissive
matthagy/Jamenson
61de19c71da6e133bf7d8efbb933a1036cf1e6f5
18a0fdd60b3d56ed4a6d4e792132535324490634
refs/heads/master
2016-09-11T04:31:28.895242
2013-04-04T00:14:44
2013-04-04T00:14:44
1,781,863
1
0
null
null
null
null
UTF-8
Python
false
false
4,969
py
'''objects used by runtime ''' from itertools import count import string class symbol(object): #instance cache for `is based comparisions and `id based hashing _cache = {} __slots__ = ['printForm'] @classmethod def raw(cls, printForm): self = object.__new__(cls) self.printForm ...
[ "hagy@gatech.edu" ]
hagy@gatech.edu
6a5fda1edd88fd3fb25d951554199d007eb23988
bfcef2c0e5ade994dd78b1c737bde3af7ea9315b
/tests/integration/usage_statistics/test_usage_statistics_messages.py
3f04c5a1be6c7b3b8f17658d92021cc1bf2d00a5
[ "Apache-2.0" ]
permissive
NathanFarmer/great_expectations
abe7103c6aa28f79c1d636cad78d892525702e67
0c6b7c5b7467a4cc282339748aec093a6f825757
refs/heads/develop
2023-06-19T23:18:50.786886
2021-07-18T23:33:05
2021-07-18T23:33:05
351,501,770
0
0
Apache-2.0
2021-04-15T19:19:54
2021-03-25T16:21:57
null
UTF-8
Python
false
false
62,557
py
"""Test usage statistics transmission client-side.""" import copy from typing import Any, Dict, List import pytest import requests from great_expectations.data_context import BaseDataContext USAGE_STATISTICS_QA_URL = ( "https://qa.stats.greatexpectations.io/great_expectations/v1/usage_statistics" ) def generat...
[ "noreply@github.com" ]
NathanFarmer.noreply@github.com
bac70c4b403b6d00550ca2b2b4486cafdada1383
575e08de2aa527cf2b6c4200b9aba36169194bc9
/main.py
84fb70c89a92795d2fad29afb22937bfa1bd126c
[ "BSD-3-Clause" ]
permissive
hengying/RetroComputer
99b2f532dcde3123a70d6557ce83154f06033624
bfc718af6bc80770781d1fd128c8ec739cf3626f
refs/heads/main
2023-03-14T10:07:26.582936
2021-03-01T11:42:12
2021-03-01T11:42:12
343,344,142
5
0
null
null
null
null
UTF-8
Python
false
false
1,954
py
import os import sys import time os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = '1' import pygame from config import Config from screen import Screen from utils import * class RetroComputer(): def __init__(self): make_sure_basic_folder_exist() pygame.init() self._config = Config() if s...
[ "noreply@github.com" ]
hengying.noreply@github.com
b63ecbf008cc931600dc5ee653e2dfb5af49df6e
65454c2ddbd9d342ed3dc3dae538074f3dbea980
/torchdefenses/trainer/empirical_defenses/gradalign.py
65d5dcf2bf2c6bd4124603baf578ab19e29b6154
[ "MIT" ]
permissive
porom004/adversarial-defenses-pytorch
387a3eb58a4b6f551b59504dac3d5d1e0bad106b
96948b2d30014826ecac45c701b1772ad04df416
refs/heads/master
2023-08-21T13:19:14.318792
2021-10-13T05:52:03
2021-10-13T05:52:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,750
py
import torch import torch.nn as nn from ..advtrainer import AdvTrainer class GradAlign(AdvTrainer): r""" GradAlign in 'Understanding and Improving Fast Adversarial Training' [https://arxiv.org/abs/2007.02617] [https://github.com/tml-epfl/understanding-fast-adv-training] Attributes: self.m...
[ "24K.Harry@gmail.com" ]
24K.Harry@gmail.com
7ccf523ca4f20e6de072af26193bf1213af1a9df
cfabf705d4316d05a1177536f9bf8f0b27f48460
/arff2parf.py
44ee0869b08ed48ea6f7b6b163fac567e298169b
[]
no_license
insilico/converters
e0ee87c68df0dee9974df3e96b6346cb391cbad0
d7333514102cbf1e17e134eb72a877fd9593a767
refs/heads/master
2020-06-05T02:24:15.024883
2011-02-24T16:36:52
2011-02-24T16:36:52
1,407,302
2
1
null
null
null
null
UTF-8
Python
false
false
445
py
#!/usr/bin/env python import sys import csv import re def splitrow(row): return [row[340 * n : 340 * (n + 1)] for n in range(len(row) / 340 + 1)] input = open( sys.argv[1], 'r') output = open( sys.argv[2], 'w') data = re.compile("^@data$", re.I) for line in input: output.write(line) if data.match(line): break ...
[ "effigies@gmail.com" ]
effigies@gmail.com
3ce16f7e2a49813c44454a7ef78cb8393ec0ea0c
7ad29229d9677d65ac309afd0e041483f612297b
/2nd_homework/E. Чемпионат по метанию коровьих лепешек/main.py
e06e0e14d47793b668e674a27f3168e189d3f547
[]
no_license
bigbob004/yandex-algos-training
13fb68e99cf9590970c3ccfc517fd382a702bcef
f1e91550b1e899556cea73c004e9cd0ad68df280
refs/heads/main
2023-08-23T13:57:45.270762
2021-10-06T09:26:45
2021-10-06T09:26:45
413,980,075
0
0
null
null
null
null
UTF-8
Python
false
false
1,195
py
#1. Собрать позиции победителей в один список #2. Собрать позиции "пятёрок" в один список #3. Найти ту самую "пятёрку" #4. Найти кол-во эл-ов, которые больше нашей "пятёрки" N = int(input()) def search_pos_of_winner(lst): winner_pos = 0 for i in range(1, N): if lst[i] > lst[winner_pos]: ...
[ "bigbobi004@gmail.com" ]
bigbobi004@gmail.com
042e1d38d801465d0ca7ae7a6feda110a7e5825c
5cea76d53779d466f19a5cf0b51e003586cc4a7b
/python开发技术详解/源文件/02/2.4/2.4.1/number_type.py
12972ea330682a3ae610b87a14be45e5770f2447
[]
no_license
evan886/python
40152fdb4885876189580141abe27a983d04e04d
d33e996e93275f6b347ecc2d30f8efe05accd10c
refs/heads/master
2021-06-28T12:35:10.793186
2021-05-26T14:33:40
2021-05-26T14:33:40
85,560,342
2
1
null
2017-10-11T05:31:06
2017-03-20T09:51:50
JavaScript
GB18030
Python
false
false
326
py
#!/usr/bin/python # -*- coding: UTF-8 -*- # 下面的两个i并不是同一个对象 i = 1 print id(i) i = 2 print id(i) # 整型 i = 1 print type(i) # 长整型 l = 9999999990 print type(l) # 浮点型 f = 1.2 print type(f) # 布尔型 b = True print type(b) # 复数类型 c = 7 + 8j print type(c)
[ "evan886@gmail.com" ]
evan886@gmail.com
bd9dd0ef76d0b1c41df9777a8d25bc8965333481
46da9e9446f3c540d10502f7e788e48796c95f76
/csvData.py
74ab379ab72a1682147ba98d39a6ca9cfc8af046
[]
no_license
pscigala/csv-viewer
c38cdbe94e70b07939868c18b84670c3fa4488c7
462d68c0a99cadfa1802501d6143e47880e574db
refs/heads/master
2020-07-22T10:26:17.602485
2019-09-08T20:37:08
2019-09-08T20:37:08
207,167,909
1
0
null
null
null
null
UTF-8
Python
false
false
4,256
py
import csv import unittest class CSVData(object): def __init__(self, filepath, encoding='utf8', delimiter=';', quotechar='"') -> None: self.filepath = filepath self.encoding = encoding self.delimiter = delimiter self.quotechar = quotechar self.rows = [] lines = CS...
[ "przemyslaw.scigala@gmail.com" ]
przemyslaw.scigala@gmail.com
ea10017a3a78b171bcbeb31c3805a6864c6ecf09
290128c39d4519ffde2df454018a025363b5deda
/Assignment5/sub.py
cbc9fa1f6418863ed5661df3640b6a971dafeab8
[]
no_license
Shikhar-S/DataAnalytics
bf68c49724c2d4669cadefae99e54eea0dd6b240
65bc144a033925cf4057fff8fd1cf9a8d4af2e12
refs/heads/master
2020-07-09T15:06:51.498478
2019-12-19T16:13:40
2019-12-19T16:13:40
204,000,166
0
0
null
null
null
null
UTF-8
Python
false
false
7,789
py
import pandas as pd df=pd.read_csv('../data/Raw_Data_GeneSpring.csv', sep='\t') def get_value(category,idx): #category def #1 male non smoker #2 male smoker #3 women non smoker #4 women smoker columns=[] if category==1: columns=df.columns[1:13] elif category==2: columns...
[ "shikhar.coder@gmail.com" ]
shikhar.coder@gmail.com
8326caf28faa6d4e215952aa5353afffbf149778
acc2aeef64115eb4561f74b305ca74e54316c265
/21个项目玩转深度学习/chapter1 MNIST机器学习入门/softmax_regression.py
a888cb55efadc594012d0289ee5d2484c4eae019
[]
no_license
wbqjyjy/Deep-Learning-Program
c02a8bc36016f225a890bd419738a4c191541dc1
2802462d98f362e7c414fe13247cb5561c69ad24
refs/heads/master
2020-04-08T14:46:03.134962
2019-05-12T16:44:12
2019-05-12T16:44:12
159,450,926
7
1
null
null
null
null
UTF-8
Python
false
false
888
py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets("MNIST_data/",one_hot=True) x=tf.placeholder(tf.float32,[None,784]) y_=tf.placeholder(tf.float32,[None,10]) W=tf.Variable(tf.zeros([784,10])) b=tf.Variable(tf.zeros([10])) y=tf.nn.softmax(tf.matmu...
[ "noreply@github.com" ]
wbqjyjy.noreply@github.com
a8798dca19c7e26be97a3647cdfc35d8dce39efe
9af364af59511b0df435b8914b226d4f5eebe4fa
/source/data/ChunkAdaptor.py
b1979e548971b19871667d771a1933e445fe91f2
[]
no_license
sudnya/bert-word-embeddings
e7ed3b09bc4db1a9ff92784cac2856f74a2ef5f7
09f2d913f6b32101a43c1da84adfe47205824f6d
refs/heads/master
2022-12-04T18:19:32.495031
2019-08-03T07:09:34
2019-08-03T07:09:34
170,256,409
0
0
null
2022-09-23T22:21:45
2019-02-12T05:14:49
Python
UTF-8
Python
false
false
915
py
import logging logger = logging.getLogger(__name__) class ChunkAdaptor: def __init__(self, config, source): self.config = config self.source = source def next(self): chunk = [self.source.next() for i in range(self.getChunkSize())] logger.debug("Produced chunk of tokens: " + s...
[ "solusstultus@gmail.com" ]
solusstultus@gmail.com
f04777412a8523157317d3eac4f93709fc5b3593
1da23d3bc4a7e21d81fe26c6b9f2b7f50711239b
/server/rating/calculation/online.py
54cb691486cf77569c23edf725df62292f77533f
[ "MIT" ]
permissive
eIGato/mahjong-portal
42dc62d3f98656ba15c02c3060f351f03ac3304a
550a2a872c4287adab6ce30c3440dc2141430a20
refs/heads/master
2021-07-10T01:52:35.089662
2020-10-21T11:45:40
2020-10-21T11:45:40
212,129,601
0
0
MIT
2019-10-01T15:19:36
2019-10-01T15:19:36
null
UTF-8
Python
false
false
573
py
from player.models import Player from rating.calculation.rr import RatingRRCalculation from tournament.models import Tournament, TournamentResult class RatingOnlineCalculation(RatingRRCalculation): TOURNAMENT_TYPES = [Tournament.ONLINE] SECOND_PART_MIN_TOURNAMENTS = 3 def get_players(self): play...
[ "lisikhin@gmail.com" ]
lisikhin@gmail.com
1a02a63eff7c3ef26a010da92039d124a9140a6d
34afc32346a49730bd5216ad394df10939d051f9
/no121.py
9fe21e90c2d13f32a4b5016507b26ca178e7c11e
[]
no_license
hyoseok-bang/leetcode
471137703f571d3371cde32f0adfa3733faa89be
be12a4ad66d7c7ca8558ad74d04d0d7c6acc9846
refs/heads/main
2023-07-03T22:11:09.187203
2021-08-09T20:49:41
2021-08-09T20:49:41
372,629,488
1
0
null
null
null
null
UTF-8
Python
false
false
405
py
# https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ profit = 0 min_price = sys.maxsize for p in prices: min_price = min(min_pric...
[ "noreply@github.com" ]
hyoseok-bang.noreply@github.com
766acc5663cd498b1b0e9bc3c0a1d75f176b8b8b
83003007b7bc12493e2bca2b5c78be5ea86df56c
/Day56-Day70/Day60/rabbit.py
df44054acbf7a81a072a6cb377f8dbb2ea4dd6e6
[]
no_license
a6361117/code
fa7fe2f33c522ad38d92e6c429b50ef8a271bb1e
bd8bf877416acc5400dbda90212b7e83020ff643
refs/heads/master
2022-09-07T22:22:24.765271
2020-05-26T14:27:47
2020-05-26T14:27:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,264
py
#绘制兔 from turtle import * speed(10) #兔的面部 color('pink') pensize(5) circle(radius=100)#脸 #眼睛 pencolor('black') #左眼 pu() goto(-45,92) pd() begin_fill() color((0,0,0),(0,0,0.1)) circle(radius=15) #右眼 pu() goto(45,92) pd() circle(radius=15) end_fill() #鼻子 pu() goto(20,60) color('pink') pd() begin_fill() goto(-20,60...
[ "46365521+Becky-nuo@users.noreply.github.com" ]
46365521+Becky-nuo@users.noreply.github.com
0d42df14da57ccb906ed88596dbb60332f4b0f41
c99fcf98cd8e0ecf65794c452847c7329c51fc5c
/calender/migrations/0003_auto_20170130_1347.py
8dfaeb8305e484b6390dd2e51ae5058f5a679d73
[]
no_license
iitians/Productive-Calender
5889f30243bc8bc90646e77738dbe37c9c861e28
60e9f03fdc3a02179145456a4e2de255f35a0261
refs/heads/master
2022-09-18T07:45:31.315020
2020-06-05T22:47:32
2020-06-05T22:47:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
989
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-01-30 13:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('calender', '0002_auto_20170130_1341'), ] operations = [ migrations.RenameFi...
[ "anirudhgoel.delhi@gmail.com" ]
anirudhgoel.delhi@gmail.com
fc3617765023ab1000296d388685479f6ba1ca6f
743d1918178e08d4557abed3a375c583130a0e06
/src/CPSCAnalysis/getCPSCRelated.py
e63093d367e5958dd952311a6b852f55229f43a2
[]
no_license
aquablue1/dns_probe
2a027c04e0928ec818a82c5bf04f485a883cfcb3
edd4dff9bea04092ac76c17c6e77fab63f9f188f
refs/heads/master
2020-03-25T19:40:07.346354
2018-11-17T05:31:43
2018-11-17T05:31:43
144,094,014
0
0
null
null
null
null
UTF-8
Python
false
false
1,508
py
""" " Get the original CPSC related DNS traffic from original data files. " Since CPSC DNS (ns1/2.cpsc.ucalgary.ca) mostly involved in the inbound traffic. " Therefore only the inbound traffic is considered. " By Zhengping on 2018-08-10 """ from src.util.FolderReader import folderReader from src.util.FileReader import...
[ "94apieceofcake@gmail.com" ]
94apieceofcake@gmail.com
24614005cd41266af635b51583d8dba3e5567313
37fba5d10e8ddefb336abc63d855e40495ec3b56
/DISCOS.py
fa18381d76880d51ab55564c749896e1b2b7a22a
[]
no_license
Jeysi2004/GRUPO-5
437ade4486f735b96c11f1b06ed5efc019ae9349
1895bc6616d9b017898e3e28bf8ebfdc0cc30e1f
refs/heads/main
2023-05-24T08:48:32.452892
2021-06-09T02:32:46
2021-06-09T02:32:46
375,191,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,584
py
precio= input("PRECIOS UNITARIOS: \n 1-Rock=63.00" "\n 4-Salsa=56.00" "\n 3-Pop=87.00" "\n 5-Folclore=120.50") marca=input("Compra(Salsa, Rock, Pop, Folclore): ") costo=float(input("Precio Unitario: ")) cant=int(input("Cantidad de discos: ")) if cant==4: ...
[ "noreply@github.com" ]
Jeysi2004.noreply@github.com
184d5f30fcf054b45ec55b2a790f414e2ee52064
2f9a846f82ac0f5dba333423b4bab1f47ae7a131
/c4_contextmanagers/part2.py
7dbd365049eb2fdecc9cf019d753dc1ed8b3d109
[]
no_license
Delia86/2PEP21G01
f4e2f48964ae5637683d777ff73d5948df688bab
d2863d31cdbc30f75e6b25b03510a0206969d82f
refs/heads/master
2023-07-29T15:33:05.538821
2021-09-11T15:35:31
2021-09-11T15:35:31
381,104,015
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
## Generate grahps using plotly import matplotlib.pyplot as plt fig1,(ay1,ay2)=plt.subplots(nrows=2,ncols=1,sharex='all') fig1.dpi=200.0 ay1.plot([1,2,3], [5,5,5],label='test1') ay1.legend() ay2.plot([3,4,5],[4,4,5],label='test2') ay2.legend() plt.xlabel('seconds') plt.ylabel('$') plt.title('Money over time') plt.sho...
[ "deliadragos@gmailcm" ]
deliadragos@gmailcm
0166c637b079f3bdf04833cf01c9e51e8c1cdb8f
fb51e1c19c657356ab53a1068ec9b711c9389c8f
/talk/meta_expl.py
d0bb4918327b7ebb02a2192eb0124b14a450ae31
[]
no_license
zefciu/hic-sunt-pythones
c6fa4be6155c3b1576fb5267cef4e81a00489a5a
504d4fdb331e6c59dfa432d2445275b18609e894
refs/heads/master
2021-01-10T19:53:53.644911
2011-09-24T08:33:50
2011-09-24T08:33:50
2,051,327
2
0
null
null
null
null
UTF-8
Python
false
false
181
py
class NazwaKlasy(Bazowa1, Bazowa2): atr1 = 'wartosc1' atr2 = 'wartosc2' NazwaKlasy = type('NazwaKlasy', (Bazowa1, Bazowa2), { 'atr1': 'wartosc1', 'atr1': 'wartosc2' })
[ "zefciu@gmail.com" ]
zefciu@gmail.com
134557e0e1e1eb54fe528b9a86944b36b65cba5f
baf1542b14ab4aa96bc328adef255435d031984d
/torchfcn/trainer.py
64aaa191f7821db2ee71ff956538be908f10f01e
[]
no_license
YifanPTAH/GaitRecFooler
ec438ac3e0c903d0f5a534a6c3838f6ba220b875
e3839693efce759d9fe66f9dabb8eda2868476cf
refs/heads/master
2020-06-24T01:00:03.636362
2019-08-20T06:59:04
2019-08-20T06:59:04
198,800,940
1
2
null
null
null
null
UTF-8
Python
false
false
8,088
py
import datetime from distutils.version import LooseVersion import math import os import os.path as osp import shutil import fcn import numpy as np import pytz import scipy.misc import torch from torch.autograd import Variable import torch.nn.functional as F import tqdm import torchfcn def cross_entropy2d(input, tar...
[ "48731983+YifanPTAH@users.noreply.github.com" ]
48731983+YifanPTAH@users.noreply.github.com
4545436b5a1a523425b7532ee6097dcbd00bd541
00cc3fb459545493c28c8ffe4d5fb91868bf2065
/boot.py
29cd480b9a5b38118b8f6079c974f17a5dfcc7df
[ "MIT" ]
permissive
chrigu/lopy-temp
22a2d7ff5e15a85f3768a5d98c9956e5f4822273
3d85fa19600a86a32beb183101c8f3fc754431f7
refs/heads/master
2021-09-08T00:50:52.332154
2018-03-04T18:25:51
2018-03-04T18:25:51
113,616,696
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
# boot.py -- run on boot-up import os from machine import UART, reset_cause, SOFT_RESET from pycom import heartbeat, rgbled from utime import sleep from wlan import setup_wifi uart = UART(0, 115200) os.dupterm(uart) heartbeat(False) rgbled(0x0000aa) sleep(3) rgbled(0x000000) sleep(1) rgbled(0x0000aa) sleep(3) rgbled...
[ "noreply@github.com" ]
chrigu.noreply@github.com
c15ff70830104dc267e24f059b88cd1002f1879d
ecae7275fd43ec93ca5771083e05ae864685faf9
/DataScience/pandas/2column1.py
eb1bc2f91c3de96c00fb9272b9179e11d6d5d730
[]
no_license
shamoldas/pythonBasic
104ca8d50099c2f511802db1f161f6d050f879cc
3a7252a15f6d829f55700ec2ff7f7d153f3ec663
refs/heads/main
2023-01-09T06:38:55.357476
2020-11-11T12:27:31
2020-11-11T12:27:31
311,960,017
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
# importing pandas import pandas as pd df = pd.DataFrame({'Last': ['Gaitonde', 'Singh', 'Mathur'], 'First': ['Ganesh', 'Sartaj', 'Anjali']}) print('Before Join') print(df, '\n') print('After join') df['Name'] = df['First'].str.cat(df['Last'], sep =" ") print(df)
[ "noreply@github.com" ]
shamoldas.noreply@github.com
b1b481e1ad09bdc739f2c6b721fd7a4a0a1eb3bc
aa7088c648dbda56e100309d908a5e1eb22aec4f
/ImageBazar/asgi.py
70ad069147bec186a9ae15f524792e5ec6325179
[]
no_license
ShohagKumar/ImageBazar-Django
8f5884d92a3504bc695cdc0a5fc393c5e0d5ef77
de3166af66e1e9807b1a116fa8e22a8f0732f1b6
refs/heads/master
2023-02-21T17:25:15.288991
2021-01-21T11:52:02
2021-01-21T11:52:02
331,611,267
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" ASGI config for ImageBazar project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SE...
[ "shohagkumar6@gmail.com" ]
shohagkumar6@gmail.com
8a43b7fe439f2bc7f0df4f94e56eaebf640c6f34
34ef90bc80f3d6291dfd7775bc8a7b5b5e6dc282
/dotcloud/0.4.2/cli/remote.py
caefcb4d88d63c552a0fa342ea1e11fe93012d6e
[]
no_license
elrapha/DotCloudWin
2d56a1c7b709f8a1992365b51e3573b619760e7b
a8c957c8adff1abf3bac0ba6b3aa8e5bb1399168
refs/heads/master
2020-04-08T07:50:01.468402
2012-03-26T21:35:26
2012-03-26T21:35:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,598
py
## Copyright (c) 2010 dotCloud Inc. ## ## Permission is hereby granted, free of charge, to any person obtaining a copy ## of this software and associated documentation files (the "Software"), to deal ## in the Software without restriction, including without limitation the rights ## to use, copy, modify, merge, publish,...
[ "kalman.speier@gmail.com" ]
kalman.speier@gmail.com