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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4644ab0b675a97687d04eb2b5e216bb376972288 | 2e0c35b02706fb5fb4fa489812deb5135345fe74 | /Mundo 2/aula 9.py | abdfe6d9ba4a260467a8cd7d696f62019b9b92c9 | [] | no_license | damiati-a/CURSO-DE-PYTHON | 86a6d063d34ac7c4835fc03cd96c3e708141556f | cc8973611c0175ad0a2cd9b302287eb49f213c47 | refs/heads/main | 2023-04-21T09:39:12.806428 | 2021-05-29T13:01:13 | 2021-05-29T13:01:13 | 371,973,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # Estruturas de repetição (for)
'''
faço 'c' no intervalo(1,10)
for 'c' in range(1,10)
'''
'''
laço c no intervalo(0,3)
passo
pula
passo
pega
#################################
for c in range(0,3)
passo
pula
passo
pega
'''
'''
for c in range(0,3)
if moeda:
pega
p... | [
"noreply@github.com"
] | damiati-a.noreply@github.com |
9a6be77d3f1ab6b5515bb83d0b6a6eee5e09b43b | eda7fbf7bbc0614e6fc448d2f6e3fd1918dadcbe | /new-api-tests/applications/create-surface-caps-from-centerlines/create_surface_caps.py | e61f1afbfba81befc17a2e58529183112bb6877e | [] | no_license | SimVascular/SimVascular-Tests | e97c136ad3bf3a7275d40c0323abca7817eb2eca | 55018e1edcd070bce77ae5af4caf2105353d3697 | refs/heads/master | 2023-02-11T02:19:06.755815 | 2023-02-02T18:26:31 | 2023-02-02T18:26:31 | 42,211,398 | 2 | 10 | null | 2023-02-02T18:26:32 | 2015-09-10T00:06:14 | Python | UTF-8 | Python | false | false | 3,496 | py | #!/usr/bin/env python
"""This script is used to create an SV model from a closed segmentation surface.
The
"""
import argparse
import os
import sys
from centerlines import Centerlines
from surface import Surface
sys.path.insert(1, '../../graphics/')
import graphics as gr
def parse_args():
'''Parse command-line... | [
"davep@stanford.edu"
] | davep@stanford.edu |
fb6e690787905e1481dff64dee25695f22bf3eee | 70058f6db76e6adfbb06ed6245a63637b83fe9ef | /opendart/config/__init__.py | e64e9265798874238fe8da1d312e841fe0ab8876 | [
"MIT"
] | permissive | JehunYoo/opendart | 9c3235d3904e4c43bc5702a409ea65bb97d35ee3 | c88105baf85af57d006cc2404d192aaf9baf73cc | refs/heads/main | 2023-06-16T01:53:05.654129 | 2021-07-07T07:17:20 | 2021-07-07T07:17:20 | 380,931,447 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py | from opendart.config.config import * | [
"percyu98@gmail.com"
] | percyu98@gmail.com |
5bbc71c559fd0f6b93689846f8d9309ea7d173fc | da2e4fad2d906c045365b4caa69bbfb559aa64a9 | /av.py | a9fbbfbe8480f36c67ff5851acbec8bfcfcc93ff | [] | no_license | AGprofessional/PythonTradingBot | ab9fefca54e5420f087e9158b25de2cec8ff0ade | ecf63abd558d3923e865c91156e577dcc597a7dd | refs/heads/main | 2023-07-14T18:18:26.761859 | 2021-08-21T04:28:17 | 2021-08-21T04:28:17 | 398,464,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,738 | py | import pandas as pd
import requests
import io
from glom import glom
#this works
#https://www.alphavantage.co/documentation/#fx-intraday
#https://www.youtube.com/watch?v=d2kXmWzfS0w
from alpha_vantage.foreignexchange import ForeignExchange
from alpha_vantage.timeseries import TimeSeries
from alpha_vantage.cryptocurrenci... | [
"noreply@github.com"
] | AGprofessional.noreply@github.com |
c45b5b7aec7cf94b501dec46b90a47078258aa52 | 70abec2e6d9b0c8effa27bdacb8bf9f3ae09c3ee | /api/opinion/apps.py | eb8c70b2f0878c1f1dcdd9cc04cb3e44a5c1ea09 | [] | no_license | lufepama/django-infojobs-clone-backend | 730a336c869c54873a952043241f7909c8be3dfe | 79d41f7f78b0ce8d71ae39760366ef4008769ed9 | refs/heads/master | 2023-08-22T06:17:47.392803 | 2021-10-16T01:35:14 | 2021-10-16T01:35:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class OpinionConfig(AppConfig):
name = 'opinion'
| [
"lufepama31@gmail.com"
] | lufepama31@gmail.com |
fb9b993a15edad35bf61dd1c9b5756ab037434ca | 246308810fe62bba6a9cedf1473e90311a934017 | /camera/test_images/draw_image.py | 9ea6011215f4d85446ab761129381e98c4208a33 | [] | no_license | MDB22/MedExpress | 6051b84a9fcf2b7371087d8a0afda3af599f6fc4 | 7c7dcd5f53ae9934b138bbe903726a050b6cedc0 | refs/heads/master | 2021-01-17T22:54:16.328942 | 2016-09-08T13:52:08 | 2016-09-08T13:52:08 | 47,587,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
#read an image
img = cv2.imread('test_image.jpg')
font = cv2.FONT_HERSHEY_SIMPLEX
cv2.putText(img, 'OpenCV',(10,500), font,4,(0,0,0),2,cv2.LINE_AA)
plt.imshow(img, cmap='gray',interpolation='bicubic')
plt.xticks([]), plt.yticks([])
plt.show()
| [
"nathanmurfey@hotmail.com"
] | nathanmurfey@hotmail.com |
7d0eac6bc6769a63f609d726e612586ed47b6af8 | e1ae535d8613aae44e8f9eaa4daf50c1e63665b7 | /multimedia/south_migrations/0026_auto__chg_field_remotestorage_media.py | e4f8b05c6dae4836b6317150e40ea7eda035d2ed | [] | no_license | teury/django-multimedia | 48b8fba9abc101286990b1306d85967bd197f08e | 4ddd5e6d9f4f680e2f4f68cc3616ced8f0fc2a43 | refs/heads/master | 2021-01-16T20:50:24.573686 | 2015-04-23T21:22:38 | 2015-04-23T21:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,388 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'RemoteStorage.media'
db.alter_column(u'multimedia_remo... | [
"jason.bittel@gmail.com"
] | jason.bittel@gmail.com |
6eae886e1c4593ab201a1e978c02d9c0bad900f6 | 335e91f503ae34fa4bd267396d1faabdf105fb5c | /data/process_data.py | b59d7a65666846f734e395335df2999201ab8b28 | [] | no_license | FRANZKAFKA13/Udacity-Data-Science-Proj-2 | d5c6786419796acfca73c62da3500679a4e4e37f | b87d58e18ff06f3dbd0e1a5d6e647ed4c4ff364e | refs/heads/master | 2023-03-03T09:33:38.619277 | 2021-02-14T19:50:38 | 2021-02-14T19:50:38 | 334,509,995 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,363 | py | import sys
import pandas as pd
from sqlalchemy import create_engine
def extract_data(messages_filepath, categories_filepath):
"""
Extract step of the ETL pipeline.
:param messages_filepath: The filepath of the message.csv file
:param categories_filepath: The filepath of the categories.csv file
:r... | [
"carstengranig@gmail.com"
] | carstengranig@gmail.com |
08d5d500388fe07a98eca25fb7e0cc15ff850948 | c9499ae048d31f9e37b143500728ca55d8a3e6e3 | /MainPackages/RunDSS.py | 5acbcadcea9370cdb1158d70179c69eb13c1866d | [] | no_license | fprystupczuk/HPET_PowerFlow_Model | c7eadf6e3a3942736ae3caff8ccc62f45429d9a6 | 671f5a3085094bf135753c9cda1edb511dc80f65 | refs/heads/main | 2023-04-26T21:14:30.700547 | 2021-05-25T11:15:49 | 2021-05-25T11:15:49 | 370,665,533 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,402 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import random
from MainPackages.SolvePET import SolvePET
from MainPackages.SolveHPET import SolveHPET
from MainPackages.Extract_DSSmonitors_data import Extract_DSSmonitors_data
def RunDSS(os,np,pd,math,Main_path,model,Network,Feeders,Vcontrol,PV_penetration,ElectricVars,... | [
"nrvfederico@gmail.com"
] | nrvfederico@gmail.com |
8cab5cb127fb2a4d84d2c87d1da7e4fe38a79492 | dfb306fbc6f85f4ff66ab659911909cf4dc1e7c1 | /180104.py | 03d231ed48308b93ea26c7137615b101c0937874 | [
"MIT"
] | permissive | majaldm/ML | d83e4577361e6d15725eb1d52caf8ead2f828de2 | 1f99f36c90b226acf151c3d65ed767f635a1469c | refs/heads/master | 2021-05-05T21:34:11.524219 | 2018-01-04T07:17:18 | 2018-01-04T07:17:18 | 115,596,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py |
# coding: utf-8
# In[14]:
get_ipython().system(' pip install --user flask')
# In[31]:
from flask import Flask, request, make_response, jsonify
app = Flask('flask-api')
@app.route('/')
def hello_world():
message = {'message': 'hello world'}
return jsonify(message)
from ptt_crawler import PttCrawler
... | [
"noreply@github.com"
] | majaldm.noreply@github.com |
b70442fbe888bee246a8aac51eb35d72971386bc | 82dc886733bd7999d8189e03f1f7a6201541abaa | /_operators.py | 5ceb1071dc7421d674d12265e9b33bfdd80f4ed5 | [] | no_license | lucaskaimthelen/python_training_3 | b78f4da101627ad2974538bc0926e65f82749e18 | 4339dd125b7b67d153f8b1f2eac966f4dde5d9bd | refs/heads/master | 2020-07-30T12:09:06.007258 | 2019-09-22T23:37:20 | 2019-09-22T23:37:20 | 210,228,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # http://www.tutorialspoint.com/python/python_basic_operators.htm
# Python operators.
a = 2
b = 2
# Equality
print(a == b)
# Identity tests if the two objects in memory are the same. is and is not.
a = [1, 2, 3]
b = [1, 2, 3]
print(id(a))
print(id(b))
print(a is b)
# Set b object equal to a object.
a = b
print(id(a)... | [
"lucaskaimthelen@gmail.com"
] | lucaskaimthelen@gmail.com |
d75546d084acf87c9f272a76978aafe55c63e533 | 880495f69099e6c1efbcfd8fb763a5de6df12786 | /code/23-merge-k-sorted-lists.py | 922f35eca621e5ff82fc343c587b6cbf43d40454 | [] | no_license | shen-ee/LC | 69209f474e1ec4265d45e072cb65105b2a28c621 | 8664bde56453dea18f069725470d0401e65d45e2 | refs/heads/master | 2022-11-07T20:27:24.029396 | 2019-01-16T08:14:47 | 2019-01-16T08:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | import Queue
# Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def mergeKLists(self, lists):
"""
:type lists: List[ListNode]
:rtype: ListNode
"""
# # Solution ... | [
"jerry31@qq.com"
] | jerry31@qq.com |
91aefd24b6e56d4907a756aa0de57697ad4bcc97 | cead5aa67c0c45038917f306fefe31b53b5b639f | /temp/PyQt/Qthread.py | b5f82a26132421016342acaef9e4b384791399a7 | [] | no_license | songaal/AutoLogin | 0a79400a88f1823aebfb819c98b489aeb267a679 | 778f30dd92dc4dba3d0a632511113bfe145d1b94 | refs/heads/master | 2022-02-27T23:13:54.152894 | 2019-09-22T16:27:41 | 2019-09-22T16:27:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
''' https://freeprog.tistory.com/351
'''
class MyMainGUI(QDialog):
def __init__(self, parent=None):
super().__init__(parent)
self.qtxt1 = QTextEdit(self)
self.btn1 = QPushButton("Start", self)
self.btn2 = QPushButton("Stop",... | [
"taxkmj@naver.com"
] | taxkmj@naver.com |
00f9cf22aeaf7658d0bb303616a50711fe27b39a | f3e3f61d4cec65ad5b924c0564d99c541ccdb625 | /src_4/chapter04/migrations/0001_initial.py | 6e2758ee1268c74d81ccd745fea58bbf8c096da7 | [] | no_license | uxx53/bur1 | 15b0a96b4c0afdcbd1b4e230237725f2f013b593 | 1b013f87792204bdbc179e678caa80616eb62279 | refs/heads/master | 2016-09-05T11:13:21.706850 | 2015-08-14T10:36:43 | 2015-08-14T10:36:43 | 40,514,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Author',
fields=[
('id', models.AutoField(verbo... | [
"uxx@mail.ru"
] | uxx@mail.ru |
2d337c23eb9d0b0e67728ffd5b44be81efb0d9cf | 1f32a4a5d54e4690b68e8e3e92524535bb1ca8f0 | /akai-to-wLightBox.py | adeb80dd9cac282e14f0e22fc0955abcfc30cc9e | [] | no_license | EdwardEisenhauer/AKAI-LPD8 | afeb2d193141e8b2f8d72c1ed84cf3273aa17604 | 2dd6db4926d12e15b1227997d92cb4a1aa52f4d2 | refs/heads/master | 2023-01-14T09:23:04.085039 | 2020-03-27T15:31:42 | 2020-03-27T15:31:42 | 247,360,448 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,665 | py | from threading import Thread
from queue import Queue
from time import sleep
from blebox import LightBox
from akai import Akai
import sys
ip = sys.argv[1]
pasek = LightBox(ip)
akai = Akai()
"""
Read knob values and send the GET to set the Lights.
Monitor the knobs values. If anyone changes send a GET to set the lig... | [
"sergiusz.warga@gmail.com"
] | sergiusz.warga@gmail.com |
a19eba7bf0ec98307d379e2f857ae2b25e827d02 | c8b64c3c4c0639eae0046f9c6de06a8a3cd7cef7 | /Code/Othello/bin/easy_install | 359dee08207374ef40fc885f7b3c83642e623946 | [] | no_license | nicholaskrieg/MLAI | 24bf1c2f72eb0b3c54e109d7f65e46794d4f1846 | 21fe04af11643d6dd3d3e2363d9d1bb4f0daa45b | refs/heads/master | 2021-05-09T06:38:24.669883 | 2018-03-19T21:29:25 | 2018-03-19T21:29:25 | 119,329,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | #!/Users/nicholaskrieg/Documents/CS/MLAI/Orthello/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nicholas.krieg@gmail.com"
] | nicholas.krieg@gmail.com | |
d9af383d21bace3659d9e389f6fd471dde4ed386 | fd2a7b889809ed302d2b3013cefb2c441dfb642a | /venv/bin/pylint | d519fa039ead9994ac2d7332d516f5a5eb8c57bd | [] | no_license | AnotherCoolDude/hello_flask | f27a976243e7956d9cc1a43953a119e396606089 | 79069a2975b479cb7479822c5946607783ab37b0 | refs/heads/master | 2022-10-08T13:10:44.602551 | 2019-10-02T14:35:21 | 2019-10-02T14:35:21 | 210,346,653 | 0 | 0 | null | 2022-09-16T18:10:44 | 2019-09-23T12:13:33 | Python | UTF-8 | Python | false | false | 267 | #!/Users/christianhovenbitzer/python/hello_flask/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"christianhovenbitzer@Christians-MBP.fritz.box"
] | christianhovenbitzer@Christians-MBP.fritz.box | |
8af8855e074aad7b7515f888ec0f24f85164debb | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/web/v20210115/web_app_relay_service_connection_slot.py | dda61e329470f348eb6bc50714d28126c870113f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,719 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
c6ecf3c59e8d315c1650c67532864af71b386c05 | 4e8b37ca121be19cd3b4e73a6592be2659d8134c | /backend/Techfesia2019/accounts/migrations/0005_auto_20190701_1708.py | a7113d24504a420a0d91b930fb768ac3673981f3 | [
"MIT"
] | permissive | masterashu/Techfesia2019 | 365b9b8dc1cb0bc6b613c72632e8b7a2a2a70905 | 8fd82c4867c8d870b82a936fc0f9e80f11ae03e7 | refs/heads/backend-event-registrations | 2020-06-10T20:58:40.850415 | 2019-07-27T23:00:21 | 2019-07-27T23:00:21 | 193,744,800 | 1 | 1 | MIT | 2019-06-29T17:12:31 | 2019-06-25T16:29:12 | Python | UTF-8 | Python | false | false | 466 | py | # Generated by Django 2.2.2 on 2019-07-01 11:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_auto_20190701_0956'),
]
operations = [
migrations.AlterField(
model_name='institute',
name='name',
... | [
"masterashu@live.in"
] | masterashu@live.in |
bc863a6118cbe18297247f263fbc963beca38953 | 0940b1cdfee8d7deb488f396736b0df7c01b8bb6 | /Exam/faculty/forms.py | aa76c4ab78faa88142ef132c0f9d3a64fe8268e3 | [] | no_license | srilaasya/Online-examination-system | 500767f77c2e2a261ddaf90029542d4e9d5312ae | f6ef76f6569141c02c861c67c2b5f7aa375c719a | refs/heads/main | 2023-08-28T21:14:48.884215 | 2021-11-02T23:57:38 | 2021-11-02T23:57:38 | 395,973,123 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 860 | py | from django import forms
from .models import FacultyInfo
from django.contrib.auth.models import User
class FacultyForm(forms.ModelForm):
class Meta():
model = User
fields = ['username', 'email', 'password']
widgets = {
'password': forms.PasswordInput(attrs = {'id':'passwordfiel... | [
"nutheti.laasya@gmail.com"
] | nutheti.laasya@gmail.com |
9c5a610bba7b0c3825198a36fe15ea9d099394bc | 172b9f849cbe48ef85cf7cca776a432bdad4587b | /lunchy/sublunchy/shortcuts.py | e702d0e3db66ae63537816ac036361452bb41069 | [] | no_license | cpasbanal/lunchy | 7ec9a0d1dba9e0dc6ed0b84698da928046829eb8 | c0f10c25866640bc8f3c8a34f97bc6fe2397959f | refs/heads/master | 2021-06-01T02:49:07.479605 | 2016-08-17T12:56:50 | 2016-08-17T12:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | ''' Create shortcuts in and out between user message and wit
out : message from Wit to user --> add keys to quick replies
in : use the keys to force a story in Wit
'''
# TODO store in database the mapping and make a web interface of this module
# import the logging library
import logging
# Get an inst... | [
"jcroyere@gmail.com"
] | jcroyere@gmail.com |
9b9812e5c6c7e010b1d4272c9d1eb1a2bd8e4047 | 98be616c9e077db836803ec56452564b291e3ff9 | /Python+/Python3/src/module/builtins/collection/lists/list_typed.py | 198006e815badc59d1731ae055d876a0bd1c6caf | [] | no_license | grozhnev/yaal_examples | adef871b0f23f866491cc41f6c376964ace3fbe2 | fe337ee825b3c063d7ed0c3e7e54bef440421894 | refs/heads/master | 2021-03-30T12:20:42.402132 | 2019-12-26T07:01:54 | 2019-12-26T15:08:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | # Strongly typed List
# Strongly typed list
from typing import List
typed_list: List[RuntimeError] = [RuntimeError()]
| [
"aleksei_iablokov@epam.com"
] | aleksei_iablokov@epam.com |
a9d2eeab18066cbc76789aba31dd51329d4f3780 | 9f0b9a8fe27336b8a231a33c6f693ed019a61b6e | /blacklinetest.py | f6eb1fa445e64a1ab1daa8cf7cc3bd44fcadc93b | [] | no_license | Duong-NVH/tool-set | e2647cf74fa085eab42fe3f19c852634629e956e | e7c5f7f4522e75eefe74e808a07ecf6575c4ebf5 | refs/heads/main | 2023-06-15T07:37:30.783287 | 2021-07-09T15:58:12 | 2021-07-09T15:58:12 | 382,987,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | import cv2
import numpy as np
img = cv2.imread('blacklinetest.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
edges = cv2.Canny(gray, 50, 150, apertureSize=3)
lines = cv2.HoughLines(edges, 1, np.pi/180, 500)
for rho, theta in lines[0]:
a = np.cos(theta)
b = np.sin(theta)
x0 = a*rho
y0 = b*rho
x1 ... | [
"you@example.com"
] | you@example.com |
42e555c359f3334d8e2cea4ef890e0bcdd2716ec | 2100ea2f84adcaeb89bd8e49f50d03497a1f87fb | /txtToExcel/txtToExcel.py | 747f8dea3e15fc01ffdabad8be75c0c69373802b | [] | no_license | JBPrew/RNG-Generator | d1c8c79710fce5b122a4423b3aab207698bb08ce | 20db203e702987fc937660b744b0bcb1ff63b508 | refs/heads/main | 2023-04-20T18:41:04.067449 | 2021-05-24T01:56:23 | 2021-05-24T01:56:23 | 370,199,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | import xlsxwriter
import pandas as pd
import xlrd
from xlsxwriter.utility import xl_rowcol_to_cell
txtFileName = input("Name of txt File: ")
while txtFileName == "":
txtFileName = input("Name of txt File: ")
workName = input("Excel Worksheet Name: ")
if (workName == ""):
workName = txtFileName
# Create a work... | [
"jackbprewitt@gmail.com"
] | jackbprewitt@gmail.com |
148dd580eb7efdf224a1b60c6aa54dc584d2a4e3 | 6aa8605b7fa86ec6568247941c8c0dbde3fc9bd1 | /bbn/camb_to_class.py | 6f6d9dc6a1f804fc4b41f2f7c689bcb787104286 | [] | no_license | anirbandas89/BDM_CLASS | dfa3a0a4a24060d622829ce4bd7c9d0e74780bd1 | 33404bdf7dea762413cb9dd3aff9957fae7221ad | refs/heads/master | 2020-05-16T09:31:47.898864 | 2019-06-08T07:25:09 | 2019-06-08T07:25:09 | 182,951,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | import numpy as np
data = np.loadtxt('BBN_full_Parthenelope_880.3.dat')
f = open('BBN_full_Parthenelope_880.3_class_format.dat', 'w')
#print data[0]
for i in range(len(data)):
f.write(str(data[i,0])+' ')
f.write(str(data[i,2])+' ')
f.write(str(data[i,3])+'\n')
print len(data)
#f.write( str(data[0,0])+... | [
"noreply@github.com"
] | anirbandas89.noreply@github.com |
dba9be4055644dd269dab56629dd4b7349338eb4 | 10321b56b812da315724c7022e7b0f48a3434883 | /07-ejercicios/ejercicio8.py | 0962be1baba04bece7c49d64c7a2c341d0fe9ba3 | [] | no_license | nisepulvedaa/curso-python | 8ef8e6f2b604c10b4549c9046a26be02bfd76ccb | 0e1904e71b4cb515920c1610ac6f168dc307d631 | refs/heads/master | 2023-01-29T21:52:44.912261 | 2020-12-14T22:47:55 | 2020-12-14T22:47:55 | 321,491,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
Ejercico 8
¿Cuanto es el x % de z numero ?
20 de 150
"""
numero1 = int(input("Ingrese el porcentaje que desea calcular: "))
numero2 = int(input("Ingrese el numero que sea sacar el porcentaje: "))
if numero1 > 100:
print("Su porcentaje no puede mayor a 100")
else:
porcentaje = int((numero1*100)/numero... | [
"ni.sepulvedaa@gmail.com"
] | ni.sepulvedaa@gmail.com |
d7aab2532f25c287a63c8bd8d282163103684f29 | d7567ee75e48bd7872a1c332d471ff3ce7433cb9 | /checkout/urls.py | 233bfb99df176d4ab47c4bae44affd20f8155e9c | [] | no_license | sarahbarron/ecommerce | 30cd0ff26afa5ec9031165b63ecde8c0f7f6086f | aba5370fd731e7ec9e677041504f6c3457b0d405 | refs/heads/master | 2020-03-17T21:10:56.385918 | 2020-01-17T18:35:28 | 2020-01-17T18:35:28 | 133,947,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.conf.urls import url
from .views import checkout
urlpatterns = [
url(r'^$', checkout, name='checkout'),
] | [
"sarahflavin@yahoo.com"
] | sarahflavin@yahoo.com |
ab932c024897c581d9bb5dd95eef2ee759d421c2 | bac5ecb5eef06dfe76b9b7bff80faee7485c67dd | /.history/django_vuejs_tutorial/django_vuejs/dataiku/models_20200829125121.py | c7e0a2d229648bf8a2326333ab23d5a72731658d | [] | no_license | MChrys/dataiku | fb1e48401d544cbcc5a80a0a27668dc9d2d196e5 | 6091b24f565224260a89246e29c0a1cbb72f58ed | refs/heads/master | 2022-12-16T11:06:13.896643 | 2020-09-12T19:03:51 | 2020-09-12T19:03:51 | 293,287,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,147 | py | from django.db import models
from django.utils import timezone
class Task(models.Model):
'''
All task that could be apply to a specific account
'''
name = models.CharField(max_length=60, primary_key=True)
description = models.CharField(max_length=510, null=True, blank=True)
supertask = models.F... | [
"cbeltran@umanis.com"
] | cbeltran@umanis.com |
18b985fd2a25b161ab12d7f4f4e09fc83c30cc2e | 3b21cbe5320137a3d8f7da40558294081211f63f | /Chapter04/AutoencMnist.py | daebd29ec15d7b88a838e6b5aa4a4d8016f69927 | [
"MIT"
] | permissive | Evelynatrocks/Python-Machine-Learning-Cookbook-Second-Edition | d06812bba0a32a9bd6e5e8d788769a07d28084cd | 99d8b799dbfe1d9a82f0bcc3648aaeb147b7298f | refs/heads/master | 2023-04-06T20:23:05.384943 | 2021-01-18T12:06:36 | 2021-01-18T12:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,181 | py | from keras.datasets import mnist
(XTrain, YTrain), (XTest, YTest) = mnist.load_data()
print('XTrain shape = ',XTrain.shape)
print('XTest shape = ',XTest.shape)
print('YTrain shape = ',YTrain.shape)
print('YTest shape = ',YTest.shape)
import numpy as np
print('YTrain values = ',np.unique(YTrain))
print('YTest values ... | [
"joecasillas001@gmail.com"
] | joecasillas001@gmail.com |
be0eb741b4aaaad5085131454dec219bdd1c93dd | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Anscombe/trend_LinearTrend/cycle_30/ar_/test_artificial_1024_Anscombe_LinearTrend_30__100.py | 70d9b6daa1932fc44ee8f23227fa9317aea8fd0d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 268 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "LinearTrend", cycle_length = 30, transform = "Anscombe", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
3b086ad101b3545f4ba98eab3b0c7bd9ac43e051 | d487843a873554db9ea63dac55110591c265c984 | /classes/utilities.py | 96d08b7a02c479407b1cc21de574a00ef555438d | [] | no_license | simone989/ForwardingDropboxBot | dd7e7215fb2cc3556da843ad3c10b0375fb8a45d | 2ba8ec1f36930b355168456c20a45998fd8b9f48 | refs/heads/master | 2021-01-01T05:22:35.110007 | 2016-05-10T15:06:54 | 2016-05-10T15:06:54 | 57,361,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | #!/usr/bin/env python
import dropbox
class Response(object):
def __init__(self):
self.responseFile = open("commands.txt","r")
self.textLines = []
self.fromFileToList()
def fromFileToList(self): #Metodo che salve il contenuto del txt in una lista. Più semplice da gestire.
with self.responseFile as fileLine:
... | [
"0xVinz@gmail.com"
] | 0xVinz@gmail.com |
e333c381e106259eee7a3f4e11f26674dd3a3594 | 30a8b69bd2e0a3f3c2c1c88fb3bd8a28e6fc4cd0 | /Part1/auth_foursquare.py | dc09d963b40958ce2c5e3b9030a232e3dd9ca643 | [] | no_license | llord1/Mining-Georeferenced-Data | d49108f443922f02b90431ad7a9626ea17fd0554 | c71f2e151ccfc4a1a9c07b5fcf4e95b7f7ba70e9 | refs/heads/master | 2021-05-30T13:27:57.663015 | 2015-12-29T09:10:08 | 2015-12-29T09:10:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #!/usr/bin/env python
import foursquare
from foursquare_accounts import accounts
app = accounts["tutorial"]
client = foursquare.Foursquare(client_id=app["client_id"],
client_secret=app["client_secret"])
client.set_access_token(app["access_token"])
| [
"bgoncalves@gmail.com"
] | bgoncalves@gmail.com |
ef79b4514dbb5c1740bdf58c252e4cd319457aba | 8526007f636dc57a30dbd6ef7805ec27d90481af | /pipelines/error_rate_pipeline_load.py | 3ba0129048553611ce344ddc8583461a021c1fd1 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | alphagov/app-performance-summary | d4fbb26e73de20ef4e41334e4ad599254565de64 | e94c63c26dec5da39b8458b1e46bcc4f922ab7dc | refs/heads/master | 2021-09-09T03:45:54.147829 | 2018-03-13T16:50:50 | 2018-03-13T16:50:50 | 119,363,307 | 0 | 1 | MIT | 2018-03-13T16:50:51 | 2018-01-29T09:46:08 | Python | UTF-8 | Python | false | false | 1,907 | py | '''
Extract step for application error rates pipeline
'''
import luigi
from pipeline_steps.export_to_google_sheets import ExportToGoogleSheets
from pipeline_steps.production_error_rates_source import ProductionErrorRatesSource
from error_rate_pipeline_extract import ErrorRatePipelineExtract
from pipeline_util.google_sh... | [
"matmoore@users.noreply.github.com"
] | matmoore@users.noreply.github.com |
e8728e4ea571e7a40c1306932b395860af5900fd | 173c2c265fb719dc71f01283ea525baf3480cf45 | /Required Remainder.py | a4346a8c6a483a9ff07c156b404b799dbb2e837d | [] | no_license | Nafsan/codeforces-codes | 6098994c86298e187edd9bba28bc933ca983218a | d8df6fd39413e78c77c269b4050afe45505131ed | refs/heads/master | 2023-01-02T12:10:29.251287 | 2020-11-02T11:55:42 | 2020-11-02T11:55:42 | 285,189,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | t = int(input())
for p in range(t):
x, y, n = map(int, input().split())
rem = n % x
if rem == y:
print(n)
elif rem < y:
pos = n - rem - (x - y)
if pos < 0:
pos = n + abs(rem - x)
print(pos)
else:
diff = rem - y
pos = n - diff
if pos... | [
"noreply@github.com"
] | Nafsan.noreply@github.com |
4c601e56a8d4ebc420b8a94e8588e6635cb33073 | 4780fd0e2afc40c3bbc8736605ebc5c351f3bc30 | /checkMidpoint.py | 9a0266319429f7108a0f59d9f435102131a91392 | [] | no_license | fpeckert/cbp_database_public | a1e85a80bd21b72d4a6ea5b3c0065b2cc2ffa85e | 0d671a613e74218976ba78577c9a8ba004787d2d | refs/heads/master | 2022-02-08T15:20:21.611884 | 2021-02-01T04:12:44 | 2021-02-01T04:12:44 | 225,522,376 | 18 | 2 | null | 2022-02-01T14:30:35 | 2019-12-03T03:27:50 | Python | UTF-8 | Python | false | false | 4,713 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 29 19:04:20 2020
@author: Anubhav Agarwal
"""
import cbp
import pandas as pd
def midpointable(year, suffix):
is_sic = False
if int(year) <= 1997:
is_sic = True
national_df = pd.read_csv('cbp' + year + 'us' + suffix + '.csv')
... | [
"noreply@github.com"
] | fpeckert.noreply@github.com |
d643ba0ffc2781833fc948211a92075a0281833a | 89cef15f8c54f16599f461bce55c4c29954fb918 | /scrapy_workua/scrapy_workua/settings.py | d393d3570ca2b72aeee684626fbfc9104b9763a3 | [] | no_license | KonDob/HT_20_Scrapy | 39417738e6fb9ade6f600bb021c323ef1718f51c | b762ea4d26c01b994bed066ffdb011b467220d91 | refs/heads/master | 2023-03-24T03:53:21.939319 | 2021-03-09T14:23:34 | 2021-03-09T14:23:34 | 343,230,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | # Scrapy settings for scrapy_workua project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-midd... | [
"konstantin.dobro@gmail.com"
] | konstantin.dobro@gmail.com |
2c49843004e5af3d4f6f1f7a39f56f8280186b0e | ef2dfe0f97cf78e520fc6e30d795691c75dac840 | /kin/util.py | d7ce97fe299697f2714c827d5559b248764a8f7e | [
"MIT"
] | permissive | smartdolphin/ai-hackathon-2018 | bbcf142865fdf05f0aacd070e8d7f8f99e513dfb | 2dce1870ea5a5e10917bb5a018890973e48df886 | refs/heads/master | 2021-09-14T22:27:54.631329 | 2018-05-19T17:29:05 | 2018-05-19T17:30:56 | 131,360,706 | 1 | 0 | MIT | 2018-04-28T01:41:53 | 2018-04-28T01:41:53 | null | UTF-8 | Python | false | false | 667 | py | import os
import tensorflow as tf
PATH = '/tmp/kin/models'
def local_save(sess, epoch, *args):
os.makedirs(PATH, exist_ok=True)
saver = tf.train.Saver()
saver.save(sess, os.path.join(PATH, str(epoch)))
train_writer = tf.summary.FileWriter(os.path.join(PATH, str(epoch)),
sess.graph)
def ... | [
"smartdolphin07@gmail.com"
] | smartdolphin07@gmail.com |
63a89a990c8d496437077cb8b6227666b7df1a26 | 9b7192094d347fb8b506e3a2a67806cab67749f2 | /stackoverflow/src/question/migrations/0005_auto_20151117_1839.py | 903fa8b5d16878b7e57aa0a21410cd1b36488f24 | [] | no_license | ElSacramento/django | 830c100907e6d5936761121dec1f8e9ad7d4c286 | 018f9814318df1b30c02bfeb55562debace5bd5b | refs/heads/master | 2021-01-20T19:30:20.440173 | 2016-06-24T00:03:51 | 2016-06-24T00:03:51 | 61,843,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('question', '0004_auto_20151117_1835'),
]
operations = [
migrations.AlterField(
mode... | [
"catherine.zamaraeva@gmail.com"
] | catherine.zamaraeva@gmail.com |
8808eb29a9c4f90993a64cfb9ff593217d62ad7e | 1da96c1ffecc565307779e3a011e2af2bc75dbcf | /venv/Scripts/django-admin.py | 825265bd4c5465fc94f5a2bd2dc2ea1b1afd5c95 | [] | no_license | yfs666/py3workspace | 058809e11e6d8e6a8c4f96e5ade679c82c5538b2 | d64a9165fac239fb7e49f4d4b99921bdc2ed07d2 | refs/heads/master | 2020-09-03T04:43:13.072897 | 2019-11-10T14:32:38 | 2019-11-10T14:32:38 | 219,387,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | #!D:\tools\py3workspace\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"yangfengshuai@xiangshang360.com"
] | yangfengshuai@xiangshang360.com |
ee6bca645dc84757845a11e614e0667477bad197 | 2c0d0a3757f4a21b2de2afc3b8293fe1a2292d68 | /test_algoritmos.py | 8af9e316f6bd27299e801a0481ee7037c91a2be4 | [] | no_license | iErick99/Tarea2-Python | ad0fbfdc24babf456d739df86da6442e9e633c36 | b3939cdd415ded50a434cbfa96070167716c81d6 | refs/heads/master | 2020-04-08T02:40:11.984527 | 2018-11-24T14:30:24 | 2018-11-24T14:30:24 | 158,943,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | from Algoritmos import isanigrama, ispalindromo
def test_isanigrama():
a = 'hola'
b = 'carro'
assert isanigrama(a,b) == False, 'Error crítico'
def test_ispalindromo():
a = 'hola'
assert ispalindromo(a) == False, 'Error crítico'
def test_isanigrama2():
a = 'car'
b = 'arc'
assert isan... | [
"lolerick1@hotmail.com"
] | lolerick1@hotmail.com |
da2965f9791254063164c9442a3f7a753f730ebb | aa6422117b534e4f4eed197b71f9fcf00eb1983a | /build/flexbe_behavior_engine/flexbe_input/catkin_generated/pkg.installspace.context.pc.py | 1aee055bb7df44fed4d20a68d3c6beee1540c93f | [] | no_license | Sinchiguano/StateMachineFlexBe | c07385b09e1ab15e88e894da8fd021d1cbf0de28 | d637acf2f26a3f0d83ef4f2d34a2636dff2515f6 | refs/heads/master | 2020-09-26T02:49:46.882388 | 2019-12-05T16:44:23 | 2019-12-05T16:44:23 | 226,146,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/casch/catkin_ws/install/include".split(';') if "/home/casch/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';')... | [
"cesarsinchiguano@hotamil.es"
] | cesarsinchiguano@hotamil.es |
fcf2843bba0bc1f598ab442734dbe565c35f7c93 | bb67740f39e896f4bef0677a3bc164781e533195 | /clt/admin.py | c0a932b6d407645297af6575967a97701a90df6f | [] | no_license | gabik/clt | c1fb61fb3ebf40091d68d03b54d744140056761b | 76786c0a65c7bbf9b2f4ca6dc16408a37b537666 | refs/heads/master | 2021-01-23T09:33:19.584041 | 2013-12-14T13:25:29 | 2013-12-14T13:25:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from django.contrib import admin
from clt.models import xml_model, contact_group, group_members, contact_element, contact_phones
#class areaAdmin(admin.ModelAdmin):
#list_display = ['id', 'parent', 'name']
admin.site.register(xml_model)
admin.site.register(contact_group)
admin.site.register(contact_phones)
ad... | [
"gabi@ip-10-190-129-144.ec2.internal"
] | gabi@ip-10-190-129-144.ec2.internal |
98c418f97a9b856ecb5507a37fe70ad0085b224a | 39996673e85e32497f1a771e6d55fe317fd4e9f2 | /Beginner level/strpalindrome.py | 46a2d25e65555e3ddb038ddfde76bf88d5216c24 | [] | no_license | hariharan31998/Python-Programming | 638d1be2d59ad8a6a675b94d1c08c04139344de9 | 17aba448c36596eea1ab59b5346e53ed644b66de | refs/heads/master | 2021-04-27T13:13:49.961069 | 2019-02-06T05:25:57 | 2019-02-06T05:25:57 | 122,435,676 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | a=str(input())
print(a)
b=a[::-1]
print(b)
if a==b:
print('yes')
else:
print('no')
| [
"noreply@github.com"
] | hariharan31998.noreply@github.com |
c35024eb1eed9b0da1bdde17899977fd5b9b5c96 | 0201ac814d825cac1030dfe1ccdb7ef1657c205b | /__init__.py | a403709aa7de47dca868813496d90679f83afbc3 | [
"BSD-3-Clause"
] | permissive | karttur/geoimagine03-timeseries | c99be449dccaab767d470cfaa2b71d9dae339fba | aa8e1642fd4a8bc196ad6fce9f90b80066d54dac | refs/heads/main | 2023-08-22T14:12:50.791746 | 2021-10-20T10:54:37 | 2021-10-20T10:54:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | """
timeseries
==========================================
Package belonging to Karttur´s GeoImagine Framework.
Author
------
Thomas Gumbricht (thomas.gumbricht@karttur.com)
"""
from .version import __version__, VERSION, metadataD
from .timeseries import ProcessTimeSeries
from .numbautil import TimeSeriesNumba
#from ... | [
"thomas.gumbricht@gmail.com"
] | thomas.gumbricht@gmail.com |
33f930a46d509398e633fffe7486592b06d47845 | 3fc8a38257d855e95fe16c1f117790fdfcc665e5 | /contrib/spendfrom/spendfrom.py | d06c624a29f6d532e1e2b6600d07ac3aedc5ce09 | [
"MIT"
] | permissive | MichaelHDesigns/Aezora | b139e6b0a0886dc8fe4f1e0ed1a702cb26ca6986 | fc7170fb5e0e016379f98d4691b014e8ca0746ad | refs/heads/master | 2023-03-13T00:31:17.894219 | 2021-03-08T14:29:27 | 2021-03-08T14:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,996 | py | #!/usr/bin/env python
#
# Use the raw transactions API to spend AZRs received on particular addresses,
# and send any change back to that same address.
#
# Example usage:
# spendfrom.py # Lists available funds
# spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00
#
# Assumes it will talk to a aezorad or aezora-Q... | [
"59030118+Aezora@users.noreply.github.com"
] | 59030118+Aezora@users.noreply.github.com |
fd96a157748820ddb00179c606ac48e6ff091f69 | 0e0545c05ed9e019d070f732b9f96b7cec1c64f3 | /student/schedule.py | 49b9800c7b087672e1a76d910c9d93fbeffebb03 | [] | no_license | czarhao/sync_crawler | 8b635a62b04518d968b4f41f82e6014966d4e94e | f8c7641618d3befe028195e6d26de964b7ad33d5 | refs/heads/master | 2023-05-27T19:37:48.184658 | 2021-09-14T10:47:25 | 2021-09-14T10:47:25 | 203,547,407 | 3 | 0 | null | 2023-05-22T22:26:26 | 2019-08-21T09:05:58 | Python | UTF-8 | Python | false | false | 4,844 | py | #!/usr/bin/env python3
import json
from other import return_soup
from student.models import Course
def get_schedule(session, now_url, soup, use_header): # 获取用户课程表
try:
url = now_url + soup.find(onclick="GetMc('学生个人课表');")["href"]
schedule_info = session.get(url, headers=use_header)
sched... | [
"czarhao@foxmail.com"
] | czarhao@foxmail.com |
6d553104dce5c9fcd4b3086daec02a36d90a0e92 | 644bde16761bebf341847dc302bcc195e33e664f | /data/scrape.py | f891f46811de9347b9f31c1d04058fe977e4774a | [] | no_license | lukevs/charity-explorer | 797c14d813518869d54cfb3fca74825394646083 | 452d8bf802b05a28eb46bf117dad0a4a8fa97051 | refs/heads/master | 2022-12-10T21:08:27.561555 | 2019-09-17T07:23:58 | 2019-09-17T07:23:58 | 203,031,399 | 5 | 1 | null | 2022-12-09T00:43:36 | 2019-08-18T16:43:36 | JavaScript | UTF-8 | Python | false | false | 1,211 | py | from bs4 import BeautifulSoup as bs
import requests
import csv
BASE_URL = 'https://en.wikipedia.org'
CHARITY_URL = 'https://en.wikipedia.org/wiki/List_of_charitable_foundations'
def get_description(url):
res = requests.get(url)
soup = bs(res.text, 'html.parser')
body = []
for item in s... | [
"chrisdistrict@gmail.com"
] | chrisdistrict@gmail.com |
0eb944d3d4b625dd58953dcd5ad39efa5bcaeaa1 | 9c14bd53c8629262b1310962c1663a3c503ba3a0 | /projects/golem/tests/project/add_directory_to_pages.py | 7b7d283d6d17e02f6e630f4b7d7aad6a000fea95 | [] | no_license | ShubhamAnand/golem-demo | b083d44b5d2d5db79eae96aa5bb1f3307272d64b | a40ced5500b3bfdb54351393eeb8ccba19a50564 | refs/heads/master | 2021-07-16T00:44:57.663282 | 2017-10-22T22:56:25 | 2017-10-22T22:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py |
description = 'Verify that the user can add a directory in the pages section by appending \'\\\' at the end'
pages = ['login',
'index',
'project']
def setup(data):
navigate(data.env.url)
login.do_login('admin', 'admin')
index.create_access_project('test')
def test(data):
... | [
"feo.luciano@gmail.com"
] | feo.luciano@gmail.com |
e3e98cd7aaf3e9e63df6dd813cbada7c0adbbda5 | 5e6a67ae273bcbd55dfe0a77d4c839a2e554d3bf | /tree_parsing.py | ee094aed389950a95db950770158e1ce95218d4e | [] | no_license | Prabhanjan-Upadhya/Quora_Challenges | d54dd1e20c9c70f07b68fffe0c67e0d71290a786 | d26ddce869205d90b367f88a2dd9c3c11b2466a7 | refs/heads/master | 2021-01-09T20:33:31.220380 | 2016-06-27T17:33:31 | 2016-06-27T17:33:31 | 62,074,863 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | from collections import deque
def parser(string1, tree_dict):
start = 0
root = None
prev = None
lst1 = []
for i in range (0, len(string1)):
if string1[i] == ' ':
print tree_dict
topic = string1[start: i]
if topic == '(':
if len(tree_dict[prev]) > 0:
prev = tree_dict[prev][-1]
lst1.append(... | [
"pupadhy@clemson.edu"
] | pupadhy@clemson.edu |
6f25ab872e193cdb10b2e82ee3a0967273771d8c | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startQiskit_noisy99.py | 63b18b1983cf2ea49aadbaea3bb289271ef74cae | [
"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 | 5,183 | py | # qubit number=3
# total number=18
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collections import Counter
from... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
0c27bf906d4b831769bc6b193c48e89a8aafe32d | 445368830cc2918f71cdca166e1363c4ac08c56e | /D12_Recursive_power.py | 9ebb7a2c5176e9bdbb0be2f62e51f63275e48409 | [] | no_license | Chehlarov/Python-Advanced | fe9cea7c600ca064db89bc11af43d944a4385b74 | 4bfddcfb02d59385d0083a5acbf338beab136a8e | refs/heads/main | 2023-03-13T08:53:03.936039 | 2021-03-03T17:16:02 | 2021-03-03T17:16:02 | 336,066,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | def recursive_power(number, power):
if power == 1:
return number
return number * recursive_power(number, power - 1)
print(recursive_power(2, 10))
| [
"noreply@github.com"
] | Chehlarov.noreply@github.com |
ef6d97f0f5f530a0ebddca253af70a73492955c8 | 61b83fb5d4e9e09bddf1a90f2d2ac34962df02db | /elitedata/fixtures/__init__.py | d9d0fb4b2ca6383d00f26ea2fb1dbfa8ffdf7b22 | [
"MIT"
] | permissive | jingyuyao/elitetraderoutes | 0577b9cfa06e041507a091b751bea03a2e419143 | a5b9ac9fba89b594843e527962b0b8539157cfd2 | refs/heads/master | 2021-01-21T09:28:40.626322 | 2016-03-27T00:12:44 | 2016-03-27T00:12:44 | 36,675,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | __author__ = 'Jingyu_Yao'
| [
"yjy.emails@gmail.com"
] | yjy.emails@gmail.com |
6981c7c8e8c5f58f7815adf008a36b87eb6bc2e3 | cd93eed33b120d632890a19e692ad318223162ed | /django_doc/manage.py | dd6b50b80fb33de2cc53a024a30dd68a74614073 | [] | no_license | tuyuqi/Django_git_project | 0c78bafccf3091284ea325ee8872b452472158d1 | 01d68a16b8f8b66c5dddda2672f05917b397e230 | refs/heads/master | 2020-04-21T20:08:54.418385 | 2019-02-10T07:35:51 | 2019-02-10T07:35:51 | 169,833,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_doc.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. A... | [
"yuqi.tu@gmail.com"
] | yuqi.tu@gmail.com |
d3a08515917f144e92f34f6bfbc54f112d6bbd36 | d58d8affb44c98db7af8264ebbda303dc0271bcb | /python/selenium/Browser_ipvt.py | 4f1a908b608a1fce8052fd1163890bd06d324d78 | [] | no_license | jijunjun1112/python | 5946504ffcc6235f57a535dc6a978e0f8e3ba43f | 5753fcf8d1f20d9cdb441cbf44509edb32c5fcec | refs/heads/master | 2021-01-01T04:56:39.374901 | 2016-06-02T11:44:20 | 2016-06-02T11:44:20 | 56,660,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | #coding:utf-8
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains #引入ActionChains鼠标操作类
from selenium.webdriver.common.keys import Keys #引入keys类操作
import time
import sys
class Browser_ipvt(object):
"""This is user class."""
url=""
browser=""
conf_url=""
def scheduleconf... | [
"jjji@grandstream.cn"
] | jjji@grandstream.cn |
3563587f0871cbdbbb1a1a1c326f78a1f00057a5 | 247342c16db02f52f52e781afae8aaa2ccc467d7 | /translate.py | 71e049c68d51d4af88c600d91b1534d21b18fd4e | [] | no_license | twadada/Machine-Translation | fb7cd6599132efbdd1f6cb7ea4adf4f8bd4c033a | 5619f1276ae2a8954edacc5b6532cfe380921837 | refs/heads/master | 2020-03-25T19:36:25.347588 | 2018-08-14T11:42:29 | 2018-08-14T11:42:29 | 142,395,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,978 | py | import os
import pickle
import argparse
import chainer
from models.preprocessing import Convert_word2id,np
from tqdm import tqdm
from train import NMT
# src_test=/cl/work/takashi-w/ASPEC-JE/test/test.txt.tok.low.ja
# model=Results/ASPEC.encoder_decoder_epoch3_ppl_56.599_best_model
# python translate.py -gpuid 1 -model... | [
"takashi.wada.764@gmail.com"
] | takashi.wada.764@gmail.com |
4034bde7a9e06c5d7487997a7acb9e10b85cca2b | 0f1001169c4f229c253a6f1dc1c9aff51c797cca | /docs/markdown_to_html.py | ffacda661ea31a8286a001a77d5178f08b9a1fd3 | [
"Apache-2.0"
] | permissive | alencon/dash-bootstrap-components | f40e360787c96a1d9f7827cf042872b2f9cffcac | 4f39856c13f66730512c57ed6dc0a819e8629293 | refs/heads/master | 2023-01-22T13:07:05.880865 | 2020-12-03T21:25:50 | 2020-12-03T21:25:50 | 318,998,227 | 1 | 0 | Apache-2.0 | 2020-12-06T09:42:13 | 2020-12-06T09:42:13 | null | UTF-8 | Python | false | false | 1,541 | py | from pathlib import Path
import markdown
from markdown.extensions.fenced_code import FencedBlockPreprocessor
# highlightJS expects the class "language-*" but markdown default is "*"
FencedBlockPreprocessor.LANG_TAG = ' class="language-%s"'
CONTENT = Path(__file__).parent / "content"
DEST = Path(__file__).parent / "t... | [
"tomcbegley@gmail.com"
] | tomcbegley@gmail.com |
20e3b3314110b5f76c4cbd58f4de848416ac8082 | 35b5ab3c9863f1f151b600f040904ef83a7ba4d0 | /test.py | a08e862b5bcd80c024840892c084bf79e7c09232 | [] | no_license | aaron-alphonsus/style-transfer-flask | 5d9120f93aa16656d9f59062e268cba977d8dadf | 615d5a2a64ada75352018708a626d7abce5a0467 | refs/heads/master | 2020-06-24T21:15:19.997826 | 2019-07-29T20:26:05 | 2019-07-29T20:26:05 | 199,092,710 | 0 | 0 | null | 2019-07-26T23:42:42 | 2019-07-26T23:42:42 | null | UTF-8 | Python | false | false | 8,329 | py | # from google.cloud import storage
import os
from flask import request, send_file
import tempfile
# import cloudstorage as gcs
# from google.appengine.api import images, app_identity
# STYLE_URL = "/style-input-images-1/Vassily_Kandinsky,_1913_-_Composition_7.jpg"
# f = gcs.open(STYLE_URL)
# data = f.read()
# print(da... | [
"huhuang@cs.hmc.edu"
] | huhuang@cs.hmc.edu |
17c59ae366737608237c203cd7a63e511f3e1002 | 13da61043e182789cfe8d67e0e1f8a4d4d983e96 | /src/cms/views/settings/user_settings_view.py | 6e83e61cde7860e8a32ec2c28cfd3c1b2c0324eb | [
"Apache-2.0"
] | permissive | digitalfabrik/coldaid-backend | b9af0f9129a974e92bc89003c4266d8e48539d0f | b769510570d5921e30876565263813c0362994e2 | refs/heads/develop | 2020-09-25T21:48:20.846809 | 2020-06-17T15:48:53 | 2020-06-17T15:48:53 | 226,094,918 | 4 | 2 | Apache-2.0 | 2020-06-17T15:48:54 | 2019-12-05T12:15:01 | HTML | UTF-8 | Python | false | false | 3,005 | py | from django.contrib import messages
from django.contrib.auth import update_session_auth_hash
from django.contrib.auth.decorators import login_required
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext as _
from django.views.generic import TemplateView
from django.shortcu... | [
"ludwig+secure@integreat-app.de"
] | ludwig+secure@integreat-app.de |
2400de35f3a6c6902ae173e097d54b31040a551a | 2cbf3aaad62f4922d827af658fb5dbb7ac651bef | /teledusite/teledu/models/conceptAttribute.py | fc12d964e90614a6ff7813077017d177a3c7fecb | [] | no_license | tctimmeh/teledu | 0266240aa864cd2eed75857e66eaeb8270f44c1a | 04135ffb04f397f29152ca48f868a957b18d504a | refs/heads/master | 2021-01-23T08:52:32.817693 | 2013-10-29T01:34:41 | 2013-10-29T01:34:41 | 2,566,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from django.db import models
from concept import Concept
from attribute import Attribute
class ConceptAttribute(Attribute):
concept = models.ForeignKey(Concept, related_name = 'attributes')
class Meta:
app_label = 'teledu'
unique_together = (('concept', 'name'))
def __unicode__(self):
return '%s - ... | [
"tctimmeh@gmail.com"
] | tctimmeh@gmail.com |
7e625fa71bfa5efc76d0547775d9fb3a2dad6b0b | a1b308d27c922bfa66137151c93b817c7667c4b2 | /src/chatbot/cfg/Chatbot.cfg | db50fd43913f3a9ef49e554ad40a58952d093c60 | [
"MIT"
] | permissive | dergkat/HEAD | 64e81390ffcd04795ef8414376b2d12813e4e42c | 0e1a034dbdc052e5e573787f49c9f36a01459373 | refs/heads/master | 2021-05-01T05:45:17.810469 | 2017-06-07T09:01:19 | 2017-06-07T09:01:19 | 79,799,750 | 0 | 1 | null | 2017-01-23T11:50:33 | 2017-01-23T11:50:33 | null | UTF-8 | Python | false | false | 1,484 | cfg | #!/usr/bin/env python
PACKAGE = 'chatbot'
from dynamic_reconfigure.parameter_generator_catkin import *
gen = ParameterGenerator()
gen.add("enable", bool_t, 0, "Enable Chatbot", True)
gen.add("chatbot_url", str_t, 0, "Chatbot Server URL", 'http://localhost:8001')
gen.add("sentiment", bool_t, 0, "Enable Sentiment", Tr... | [
"dut.hww@gmail.com"
] | dut.hww@gmail.com |
ccc456d17a7c5c5b509e388397e01ad74e2f0559 | 00a9295409b78a53ce790f7ab44931939f42c0e0 | /FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/sympy/solvers/tests/test_pde.py | 1b43eb0b0886235a8a8b1b4a593e4e7d486fcfae | [
"Apache-2.0"
] | permissive | klei22/Tech-OnBoarding-Class | c21f0762d2d640d5e9cb124659cded5c865b32d4 | 960e962322c37be9117e0523641f8b582a2beceb | refs/heads/master | 2022-11-10T13:17:39.128342 | 2022-10-25T08:59:48 | 2022-10-25T08:59:48 | 172,292,871 | 2 | 3 | Apache-2.0 | 2019-05-19T00:26:32 | 2019-02-24T03:50:35 | C | UTF-8 | Python | false | false | 9,057 | py | from sympy import (Derivative as D, Eq, exp, sin,
Function, Symbol, symbols, cos, log)
from sympy.core import S
from sympy.solvers.pde import (pde_separate, pde_separate_add, pde_separate_mul,
pdsolve, classify_pde, checkpdesol)
from sympy.testing.pytest import raises
a, b, c, x, y = symbols('a b c x y')
def... | [
"kaunalei@gmail.com"
] | kaunalei@gmail.com |
9d07edf3f66ec3474be91599c596f9476549ed59 | 4f60de93ad66f3ff95a5b86c41293dc95ecc4a2a | /hr/models.py | 09d2094f1645475c50fb3e6fabdabcb064e8e6d0 | [] | no_license | xxoxx/Luer | 87a541f40a12f4aff262d03b9e8e3b4b78a41511 | 24333edd06dc5e52775329db1f86cf862c68c56e | refs/heads/master | 2021-01-20T17:27:13.914273 | 2015-12-09T15:18:35 | 2015-12-09T15:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,762 | py | #coding:utf-8
from django.db import models
from django.contrib.auth.models import User
from django.template.defaultfilters import default
# Create your models here.
class Department(models.Model):
department_name = models.CharField(max_length = 100)
department_manager = models.CharField(max_length = 100)
de... | [
"lhlsec@gmail.com"
] | lhlsec@gmail.com |
a45dacabb65a8b878d1cb07374fde8bc5ac07d6d | f305f84ea6f721c2391300f0a60e21d2ce14f2a5 | /7_graph/bfs求无权图的最短路径/广义的bfs/488. 祖玛游戏-bfs剪枝.py | 12413155d1f8a0da0d66c30102d92f4f104f18a7 | [] | no_license | 981377660LMT/algorithm-study | f2ada3e6959338ae1bc21934a84f7314a8ecff82 | 7e79e26bb8f641868561b186e34c1127ed63c9e0 | refs/heads/master | 2023-09-01T18:26:16.525579 | 2023-09-01T12:21:58 | 2023-09-01T12:21:58 | 385,861,235 | 225 | 24 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | # 1 <= board.length <= 16
# 1 <= hand.length <= 5
from collections import deque
from functools import lru_cache
import re
# 为什么使用广度优先搜索?
# 因为只需要找出需要回合数最少的方案,因此使用广度优先搜索可以得到可以消除桌面上所有球的方案时就直接返回结果,而不需要继续遍历更多需要回合数更多的方案。
class Solution:
def findMinStep(self, board: str, hand: str) -> int:
"""请你按上述操作步... | [
"lmt2818088@gmail.com"
] | lmt2818088@gmail.com |
c560a98412f1f79c8b28518349b9281f419d3cd1 | 5f313d8fce26a8ecfff8817ff566b7e1810fcba7 | /timethings.py | 4d68c2cbbbfce64ba5da5943421cca52b094884d | [] | no_license | luispedro/mahotas-paper | cd2769a264149cac74ce8c694ca4f02e3f4a6c93 | 698f2a8640feba4e285318e2cd866db3705ec2c3 | refs/heads/master | 2020-03-30T16:26:20.362126 | 2013-08-26T09:03:17 | 2013-08-26T09:03:17 | 4,877,058 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,733 | py | import skimage.morphology
import skimage.filter
import skimage.feature
import numpy as np
import timeit
import mahotas
import cv2
from os import path
luispedro_image = path.join(
path.dirname(mahotas.__file__),
'demos',
'data',
'luispedro.jpg')
f = mahotas.imread(luisped... | [
"luis@luispedro.org"
] | luis@luispedro.org |
8157a66920a4d18df210932be00e7ae648e9bfec | 760ef8fa1fa34f7a0621ed1a72cd4070d5825e34 | /src/tray_world_creator.py | 030feced0d4b97e56653925469dea38f8d799f2b | [] | no_license | michaelarfreed/MotionTaskPlanningProject | 9a2670565fe2923504d678407d3dcb4659bc06df | 384f9801f031f0d413854bc844a452d2681b34af | refs/heads/master | 2023-04-10T12:08:35.538339 | 2021-04-04T23:12:37 | 2021-04-04T23:12:37 | 354,664,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,318 | py | import numpy as np
import openravepy
import utils
TARGET_FILE = '../environments/rll_tray_world.dae'
TABLE_HEIGHT = 0.657
def create_dest(env, destname, pos):
dim = 0.1
THICKNESS = 0.001
surface = openravepy.KinBody.GeometryInfo()
surface._type = openravepy.GeometryType.Box
surface._vGeomData = [dim/2, d... | [
"michaelarfreed@gmail.com"
] | michaelarfreed@gmail.com |
34acd628169af951f3576d45c718a7a03b92b726 | 6919841828cf32f3e4b0f6f12f6d54be23321888 | /exp/face24.py | db4baf6b7976aeb66a2d63d236bbd38f6c51d276 | [] | no_license | ayanc/rpgan | bea6d283278dcead5fa4c63815a70162d5fe3173 | cb4d4ab226fa78e4d6f6dcae9fa715952345a0bb | refs/heads/master | 2021-01-22T04:23:39.000116 | 2018-06-27T21:43:45 | 2018-06-27T21:43:45 | 92,459,728 | 20 | 6 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | # Generator Parameters
ksz=4
zlen = 100 # Dimensionality of z
f1 = 1024 # Features in first layer of Gen output
# Discrimnator Parameters
df = 128 # No. of hidden features (at first layer of D)
# Training set
imsz = 64
bsz = 64
lfile='data/faces.txt'
crop=False
# Learning parameters
wts_dir='models/face24'
SAVEF... | [
"ayanc@ttic.edu"
] | ayanc@ttic.edu |
736b25d9dd6ccb8c04ea88d667c2c6ec69bf359c | 6aee5e2775a99de940f9deef3d34e9833d44819c | /lesson/day03/test.py | c202ccce8b5f53b0a53bb44e0089f589ac030e8b | [] | no_license | lyl0521/lesson-0426 | c7669767cf5f6bae54765f2246764e1a06acee7a | 07f114af276932c252478d5a739ca88b4bae0fa2 | refs/heads/master | 2020-05-17T17:21:00.876376 | 2019-05-07T01:54:56 | 2019-05-07T01:54:56 | 183,849,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | # all()
print(all([0,1,2,3])) # False
print(all([1,2,3])) # True
print(all(['a','b','c',''])) # False
print(all(['a','b','c','d'])) #True
print(all(('a','b','c','d'))) #True
print(all(('a','b','','c'))) #False
print(all((0,1,2,3))) #False
print(all((1,2,3))) #True
pr... | [
"1247702289@qq.com"
] | 1247702289@qq.com |
38c9d1b686c768cb8aa82bee7276bc14769b92c1 | b4d1de38688da22e64026b0b46a1e0ae3efa97ed | /server_random_data_generator.py | 8fb1dd5ec17ffda8aa8e0965dc3111af27b0e041 | [] | no_license | misrori/streaming_with_mtcars | a8f57e25f7a5389dc593a1e0e72bf944a7dc0abf | bb459983c7bfd6e648bf46685809e5e7b48c8d36 | refs/heads/master | 2021-01-18T22:40:54.167528 | 2017-04-05T07:36:57 | 2017-04-05T07:36:57 | 87,066,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | #!/home/mihaly/hadoop/anaconda3/bin/python
from random import *
import random
import time
from datetime import datetime
def client_thread(conn, ip, port, MAX_BUFFER_SIZE = 4096):
mtcars = open('mtcars.csv')
my_line = str(random.sample(mtcars.readlines(),1)).replace('[','').replace(']','').replace('\'','').repla... | [
"ormraat.pte@gmail.com"
] | ormraat.pte@gmail.com |
64f8f8d3a25cb6ac09de771d500d0936684177e1 | fc155434e4bb00eb1b6f09ccda3cd73235bce156 | /CreateVideo.py | 4d8d947f846bb1a053d68f0ebd03f54d0aac8ad3 | [] | no_license | alter-sachin/buildar_email | 03ac84b2d391cd8951e9311847a97e7d21795a76 | 8dbe19dfe8893747e35051515568133c6079dcf1 | refs/heads/main | 2023-04-21T20:33:48.917393 | 2021-05-16T14:01:17 | 2021-05-16T14:01:17 | 367,877,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | import json
import requests
import constants
api_endpoint = constants.API_ENDPOINT
header_data={'Authorization': constants.API_AUTHKEY}
class Video:
def __init__(self,actorId,audioUrl):
self.actorId = actorId
self.audioUrl = audioUrl
def create_request_body(self):
data = {
"actorId": self.actorId,
... | [
"guitarplayersachin@gmail.com"
] | guitarplayersachin@gmail.com |
f8cff679622d038367e9ba166acddf2c25db3acc | 8126a1246a7fadcba2a57afdec210e6c00dd85ff | /tests/data_objects/constraints/constraints_object_test.py | 556692a6d6f5a40717a7b875d031a5c4615430be | [] | no_license | TF-185/cra-princess-cp1 | 0961f0bb140a89efb427e4e497318a563a564b75 | cbe5dab43983f794a817cd891973f68789ebd3b4 | refs/heads/master | 2023-05-30T10:45:24.635862 | 2019-10-11T19:55:00 | 2019-10-11T19:55:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,433 | py | # """
# constraints_object_test.py
#
# Module to test constraints_object.py.
# Author: Tameem Samawi (tsamawi@cra.com)
# """
#
# import unittest
# from cp1.common.exception_class import ConstraintsObjectInitializationException
# from cp1.data_objects.processing.constraints_object import ConstraintsObject
# from cp1.dat... | [
"tsamawi@cra.com"
] | tsamawi@cra.com |
286c6510e842c109cd1fabfbe090e84a978c9b28 | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_ltl_timed_transition_system/19-sender_receiver_7.py | 46038b17bbf43428b545dfc234384f2bb5c2c34d | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,406 | py | from typing import FrozenSet
from collections import Iterable
from math import log, ceil
from mathsat import msat_term, msat_env
from mathsat import msat_make_constant, msat_declare_function
from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type
from mathsat import msat_make_and, msa... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
5e795c4e386973917ef112bcb637b06aa09e031e | 4a31e84a4a6cf5c4cdf4757cca63ed6ff92088bc | /Python/optimization/ga.py | bc5e41cfed7bdb031e3b8adfb4fe881261d36a7f | [] | no_license | aldo-fsm/tests | e91ac45709a7dbffdd7984f1bc799a68d1c86d9f | 9d0317236f459a00af56aaee738b2a46365a7b99 | refs/heads/master | 2021-01-20T08:44:12.225578 | 2018-07-17T17:48:05 | 2018-07-17T17:48:05 | 101,570,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,329 | py | import numpy as np
import re
def optimize(costFunction, chromSize, popSize, selectionRate, mutRate, **kwargs):
kwargs.setdefault('pairing', 'rank_weighting')
kwargs.setdefault('pairingTounamentSize', 3)
kwargs.setdefault('crossover', 'single_point')
kwargs.setdefault('uniformCrossoverProb', 0.5)
p... | [
"aldo.fsmonteiro@gmail.com"
] | aldo.fsmonteiro@gmail.com |
32a624033c4fcd4b0dab2f56ea427738fac85532 | 0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a | /python3/16_Web_Services/k_Projects/b_twitter/twitter_scrapping.py | e22fe2652cae147f89fc3a8955b3336f6f812e4b | [] | no_license | udhayprakash/PythonMaterial | 3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156 | e72f44e147141ebc9bf9ec126b70a5fcdbfbd076 | refs/heads/develop | 2023-07-08T21:07:33.154577 | 2023-07-03T10:53:25 | 2023-07-03T10:53:25 | 73,196,374 | 8 | 5 | null | 2023-05-26T09:59:17 | 2016-11-08T14:55:51 | Jupyter Notebook | UTF-8 | Python | false | false | 2,215 | py | #!/usr/bin/python
"""
Purpose: Twitter data scrapping
"""
import tweepy
class TwitterLogin:
def __init__(self):
consumer_key = "xxxxxxxxxxxxxxxxxxxxx"
consumer_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
access_token = "00000-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
... | [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
0154452e8030cb69acdc0d908d2e28193782d8cc | 1f9f0e49c2dd5104e24a63416a4f773c017793db | /parse_dir.py | eee4110418bbbda9f46243fcea474adbbd76cad9 | [] | no_license | sameeul/duplication_detector | ca6cb957e24e443da92cccea1342d0d4484d8e93 | 3e374ea0274c1983e78e416a623cd05da3f270a5 | refs/heads/master | 2020-09-13T07:33:30.400569 | 2019-11-22T03:19:45 | 2019-11-22T03:19:45 | 222,696,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,137 | py | import argparse
import operator
#set up command line processing
parser = argparse.ArgumentParser(description = "Find duplication in a directory")
parser.add_argument("--name", required = True, type = str, help = "Text file containing file listing")
args = parser. parse_args()
input_file_name=args.name
# now work on f... | [
"noreply@github.com"
] | sameeul.noreply@github.com |
277eefec07dfbb8604106fa7fb9dbdc5dff111a0 | 4819d5b68ac2708cd9f7e238790568f6fb62bf4a | /shop/ShopSerializers.py | c96c2565256fbd1eb6e73cbd9da8599cb60a0676 | [] | no_license | suyashgithub/django-rest | f8c60efaa95ad74220be6d44c766181614b55adc | bb41c41713983ee95fab5d1a799b96231b817305 | refs/heads/master | 2022-11-29T06:02:04.119874 | 2020-08-13T22:08:21 | 2020-08-13T22:08:21 | 287,384,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | from rest_framework import serializers
from shop.models import Shop
class ShopSerializer(serializers.ModelSerializer):
created_at = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S", read_only=True)
username = serializers.SerializerMethodField("get_username")
class Meta:
model = Shop
fie... | [
"suyash.mishra@thinkmantra.com"
] | suyash.mishra@thinkmantra.com |
04cb69832818c5318fc8810a89edf011e8167b66 | 29be7382240c4f5ae23a5c06c75b8dda8043800c | /PRO-99/removeFiles.py | 1c67cc9e2e7c73e21edf8f6268542f638458bd93 | [] | no_license | ABHINAV-KUMAR213/PRO-99 | d05e37e91d1305c7a4494475f05bf0d47adc48e2 | f282ed9429b20bc7ab87e066c1ceb5cab1edd734 | refs/heads/main | 2023-06-10T11:52:16.112611 | 2021-06-29T12:52:54 | 2021-06-29T12:52:54 | 381,363,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | import os
import shutil
import time
def main():
deleted_folders_count = 0
deleted_files_count = 0
path = "e:\Coding\Python\Project99"
days = 30
seconds = time.time() - (days * 24 * 60 * 60)
if os.path.exists(path):
for root_folder, folders, files in os.walk(path):
if seconds >= get... | [
"noreply@github.com"
] | ABHINAV-KUMAR213.noreply@github.com |
1b5acb3b130ca25e0213d632d2799da91b52eb84 | 3021d12339945053e89f9d9571f8054d86963088 | /scripts/sma-client.py | 205f5fd47aa8db61eb60b6e5fe90ad80c3ead6e0 | [
"Intel",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | tmakatos/spdk | 9d18a586000fc25f659bb185ebb30b68e0073aa7 | a82d6f009f1d43cb8107ec0637d9e458c319b369 | refs/heads/master | 2022-11-15T06:32:52.922360 | 2022-05-11T16:24:09 | 2022-10-21T16:42:58 | 220,963,857 | 0 | 1 | NOASSERTION | 2020-09-16T20:46:56 | 2019-11-11T11:14:11 | C | UTF-8 | Python | false | false | 2,551 | py | #!/usr/bin/env python3
from argparse import ArgumentParser
import grpc
import google.protobuf.json_format as json_format
import importlib
import json
import logging
import os
import sys
sys.path.append(os.path.dirname(__file__) + '/../python')
import spdk.sma.proto.sma_pb2 as sma_pb2 # noqa
im... | [
"tomasz.zawadzki@intel.com"
] | tomasz.zawadzki@intel.com |
6ebf11b3f019ebe0338ba4e09bbe5dcd2b7fbd4f | ec4e153f3bf1b335bc1b31b85e6f9db4a6c4faa9 | /wd_extractor/Document.py | 6ed52824a553446bd88f07562c5ca97fb6fb3529 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | DuaneNielsen/wd_extractor | 7936ac29ae97972cfe74973108aaad1efa5054b6 | 128a189bacd0cd2d7f1fa598202b9c4e55f48e2f | refs/heads/master | 2021-01-19T14:13:42.441554 | 2017-09-19T02:16:08 | 2017-09-19T02:16:08 | 100,887,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | from .Graminator import Graminator
class Document:
def __init__(self, corpus, path, grams):
self.corpus = corpus
self.grams = grams
self.graminator = None
self.path = path
self.tokens = corpus.tokenizer.tokens(self)
def getText(self):
if self.path is not None... | [
"duane.nielsen.rocks@gmail.com"
] | duane.nielsen.rocks@gmail.com |
6cf4963fd3bf6b82bb24b9ffda645ecbcba72071 | b10163d7036e0bd2bd2a59f1a8a96951ed169c21 | /arvore de natal.py | 6ac49eb9524abea4b33adf4c6ca5d714d0eb8552 | [] | no_license | YK0L0DIY/Python | 4e97e3e180b51e6571d667a3996b04851461fd62 | 1991cdb8669c6e532766231ce63854956ec5b0e8 | refs/heads/master | 2020-03-19T13:59:46.415839 | 2019-02-15T20:27:06 | 2019-02-15T20:27:06 | 136,604,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | def arvore(a):
v=a
cont=2
u=a-1
print(" "*u,"*")
while(v!=1):
u=u-1
print(" "*u,"*"*(1+cont))
cont=cont+2
v=v-1
print(" "*(a-1),"*")
print(" "*(a-1),"*")
h=int(input("Indique a altura da arvore: "))
arvore(h)
| [
"noreply@github.com"
] | YK0L0DIY.noreply@github.com |
12eca4b3e8ae4bf6f27c07a03bbc58a313b36f5f | d668209e9951d249020765c011a836f193004c01 | /tools/pnnx/tests/test_torch_fft_irfft.py | 8f92dd551a1f5c2f0b5ff9c8894b75b1b122d362 | [
"BSD-3-Clause",
"Zlib",
"BSD-2-Clause"
] | permissive | Tencent/ncnn | d8371746c00439304c279041647362a723330a79 | 14b000d2b739bd0f169a9ccfeb042da06fa0a84a | refs/heads/master | 2023-08-31T14:04:36.635201 | 2023-08-31T04:19:23 | 2023-08-31T04:19:23 | 95,879,426 | 18,818 | 4,491 | NOASSERTION | 2023-09-14T15:44:56 | 2017-06-30T10:55:37 | C++ | UTF-8 | Python | false | false | 1,804 | py | # Tencent is pleased to support the open source community by making ncnn available.
#
# Copyright (C) 2022 THL A29 Limited, a Tencent company. All rights reserved.
#
# Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the... | [
"noreply@github.com"
] | Tencent.noreply@github.com |
0d3ffa1d191e50eef4a95f5452a805a99887284a | c65028cd7520d6ac4b109eb4fafc470bfafcabfb | /logit.py | 2970708f6eefa3453ef031a0e0a254360824535d | [] | no_license | devsunb/commit-log-exporter | 17ca29eb2ede7cfffb140101fa002bffc6567549 | 5c58b9d5d902ac017a05bf6a9451390f65c5560d | refs/heads/master | 2023-07-26T14:36:12.141223 | 2021-08-31T08:04:56 | 2021-08-31T08:04:56 | 401,622,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | import logging
import re
import subprocess
logger = logging.getLogger('LOGIT')
class Logit:
@staticmethod
def parse(commit_lines):
commits = []
commit = {}
for line in commit_lines:
if line == '' or line == '\n' or re.match('merge:', line, re.IGNORECASE):
c... | [
"devsunb@gmail.com"
] | devsunb@gmail.com |
406f62c74fe702355e8c72a821dc3983799b0ff2 | 2477ba1cd7e04b641f95b800e188d7525d39ab46 | /Monochrome_sketches/stripe/stripe.pyde | 31e0e239c6a31336735627ca8ac6824354f8348a | [] | no_license | lsm35/ProcessingSketchbook | ec6ddf875caa87f1ccfefefde690c9dd6a0260f8 | d15ae1dcdcc920f583bc911c0a5cf72f58821dd1 | refs/heads/master | 2021-03-31T02:00:24.209133 | 2018-03-17T00:48:40 | 2018-03-17T00:48:40 | 124,572,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | pyde | size(400,400);
background(60);
Ncols = width;
Nrows = height;
# Set up 2D array
myArray = [[0]*Ncols]*Nrows;
for i in range(0,Ncols,20):
for j in range(0,Nrows,20):
myArray[i][j] = int(random(255));
stroke(myArray[i][j]);
rect(i,j,1/2,j/2);
save("stripe.tif") | [
"lsm35@cam.ac.uk"
] | lsm35@cam.ac.uk |
e8a5e9cff601be65ad6eb8f089f1c1bbc68ad329 | 5c6238e52a3b58cfa56df2b0376fe972d4eda055 | /time/clock_back/clock_back.py | 9e3ea9bad8288a2a23031157d5bae86b63553156 | [] | no_license | yhoazk/LF331_V2 | 25258da02654726a79e645f73616978dedf01064 | 5ca1c2620fbc295cc735f38acf7a6027fc4b9ae2 | refs/heads/master | 2023-06-30T15:18:31.283875 | 2023-06-18T11:28:18 | 2023-06-18T11:28:18 | 109,063,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | #!/usr/bin/env python3
from matplotlib import pyplot as plt
import csv
def main():
print("sdfsdf")
data = []
with open("/tmp/samples.log") as csv_file:
samples = csv.reader(csv_file)
for row in samples:
data.append(int(row[0]))
data_diff = [j-i for i, j in zip(data[:-1... | [
"yhoazk@gmail.com"
] | yhoazk@gmail.com |
429cff803102a46433f095f3ba8e41199c5dcae2 | 47257562cd6db4185c34ab582f8ea311c3155c45 | /DDPG_HER_VIME/Smoothing.py | cf7379093370f65b961a366d14338f46d0e9a24e | [] | no_license | JuliusVsi/HVDDPG_Project | f25ebe429c0ed0ea806b2f41d108f60e798b9a39 | a21c6b89ef8e9ab2092a2dcc329b83f6b7813fcd | refs/heads/master | 2020-07-17T02:09:38.593852 | 2019-09-02T19:25:32 | 2019-09-02T19:25:32 | 205,919,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,970 | py | import matplotlib.pyplot as plt
import numpy as np
def smooth(data, weight=0.85):
last = data[0]
smoothed = []
for point in data:
smoothed_val = last * weight + (1 - weight) * point
smoothed.append(smoothed_val)
last = smoothed_val
return smoothed
if __name__ == '__main__':
... | [
"noreply@github.com"
] | JuliusVsi.noreply@github.com |
fff29da02d95309713cc9a0f7a86f69832ba5220 | 83a506a501561602ad3b259341225ddfbddab160 | /GameServer/matchGames/Match_PK_DouDiZhu/redis_instance.py | 3fe50de16f52f543bb74fc19e6b8dcc7b80828c3 | [] | no_license | daxingyou/SouYouJi_Game | 9dc5f02eb28b910efb229653a8d0bffe425a7911 | 7311a994c9aba15b7234331709975ebc37e8453d | refs/heads/master | 2023-03-28T01:36:48.955107 | 2020-04-05T01:24:17 | 2020-04-05T01:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # -*- coding:utf-8 -*-
# !/bin/python
"""
Author: Pipo
Date: $Date$
Revision: $Revision$
Description: Redis
"""
import redis
from configs import CONFIGS
redisdb = None
def getInst(dbNum=CONFIGS['redis']['db']):
global redisdb
redisdb = redis.ConnectionPool(
host=CONFIGS['redis'][... | [
"ronnyzh@yeah.net"
] | ronnyzh@yeah.net |
ce43314f310b9b65dee36e38c84db5b49f04c6b6 | 2fd194196f21f51c881ec88d736bb8b2ee1937ce | /RaspberryPi/interface.py | fadbf12345a8799e9d5a53d86879de1f32419990 | [] | no_license | MV-Automation/MV_Pandemic_Solution | 6d609ab8ab2efff7fadfe2b09e27be9bdeaf72e1 | a95c2b090aa5625ee9be407294735eccf93c3869 | refs/heads/main | 2023-02-18T02:23:56.248935 | 2021-01-20T17:55:14 | 2021-01-20T17:55:14 | 312,030,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,648 | py | from tkinter import Tk, Label, Button, Frame
from PIL import ImageTk, Image
import cv2
from camera import camera
import config as cfg
import mv_rasp_upload_snaps_to_cloud as awsupload
import AmazonKeys as key
import boto3
"""
Secuencia:
1. Se inicializan todos los componentes de la GUI y se añaden a la ventana de Tk... | [
"70815913+anarrode@users.noreply.github.com"
] | 70815913+anarrode@users.noreply.github.com |
1570433f75a24869c25727245eb54167af8b00ab | bdbb20034786685601d0a424f29ea8bd04755419 | /stopWait/client/client.py | 9bcb24ee87990c4551f147c2c65755c851585681 | [] | no_license | s19-nets/udp-file-transfer-mc | 48df5efc60af4b41caf48a06381c45c17e640f4f | 8a5aff2b3142589f1e1ebb4702bdafe1ef0ed4ae | refs/heads/master | 2020-04-27T19:41:42.532207 | 2019-03-09T07:14:55 | 2019-03-09T07:14:55 | 174,629,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,963 | py | from socket import *
serverAddress = ('localhost', 50000)
ack = 0
last = 0
doneNum = 0
seqnum = 0
done = False
retry = False
#Get user input
input = input("What would you like to do?")
input_list = input.split()
#Create socket and send user input
clientSocket = socket(AF_INET, SOCK_DGRAM)
clientSo... | [
"noreply@github.com"
] | s19-nets.noreply@github.com |
acd320e9b5670c9b4b981d67159ec8153117268f | 6a020d2afc402b443013a1a65b961d21e868ad8b | /tools/mdtable.py | 92d401420be8a0b8255ba25b904ef3829c2fbe13 | [] | no_license | scientist1642/anagram_benchmarks | fd5645f44e8454596ac3f06768a586819fe12403 | ccbc728544ce86028e0a2d9f8de0490c8ccecc72 | refs/heads/master | 2020-04-27T19:26:06.883530 | 2020-02-27T12:36:32 | 2020-02-27T12:36:32 | 174,617,771 | 4 | 1 | null | 2019-03-09T10:42:27 | 2019-03-08T22:15:14 | Python | UTF-8 | Python | false | false | 3,600 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
def get_matrix_from_csv(stream, separator=";"):
"""Return a matrix of values from an input stream containing csv data."""
for line in stream:
yield [col.strip("\r\n") for col in line.split(separator)]
def get_matrix_from_md(stream):
"""Retur... | [
"z.isakadze@gmail.com"
] | z.isakadze@gmail.com |
48dfd03ed0706d7a711f1e304f10e7e7b6b13b01 | 0d59d36b45143e8710d6a19dce41c7a8fc14fc3b | /tasker/libs/client_desktop/event.py | 9d9d31fa183128fc1573f381b098c9c7f4010c83 | [] | no_license | nkitsan/trello_clone | 4d09b8f5bfe1b77ce2d4a5eb6eb49492b229b1fc | c86c83f4fe76323bc558911cb81bbfe234bfe3ce | refs/heads/master | 2020-04-13T12:06:29.129019 | 2018-12-26T15:29:07 | 2018-12-26T15:29:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,251 | py | import requests
import click
from tasker.libs.client_desktop.helper import HOST, date_validation
from tasker.libs.client_desktop.access import read_api
@click.group()
def event_operations():
"""Here is commands which allow to work with calendar events"""
@event_operations.command(short_help='Add the event to th... | [
"nastik.kitsan@gmail.com"
] | nastik.kitsan@gmail.com |
0e8a3dffcb9fc9ad6d8d25500665e90fa65b0b3d | 189996bd337adf575352201ccddc5bc9fe7550cd | /Incomplete_tensorflow_implementation/Test.py | 7ffecf73a67e41dee8aaca4fcba66e534c62f55e | [] | no_license | Ru0628/LUNA16_Challange | 07ab83cb2f9d09207c38559ebb8a9c12d43c1aff | cd380f6b44fa5cfd45de377112b7770b94a1f451 | refs/heads/master | 2022-04-19T05:40:22.791855 | 2020-04-15T15:45:44 | 2020-04-15T15:45:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,964 | py | import numpy as np
from scipy import ndimage
from os import listdir
import matplotlib.pyplot as plt
from PIL import Image
# ****************** Connected Component Analysis
# testMatrix = np.array([[[1, 1, 0],
# [0, 0, 0],
# [1, 0, 0]],
# ... | [
"noreply@github.com"
] | Ru0628.noreply@github.com |
8e8d989c5ae7bb188f444018f73a3c7200c98092 | 6220fd6bfd24626ea3f15b862606ecffe090e211 | /Course_2_Python_to_Access Web Data/chapter15/roster.py | ef6818724c91f27ab94ca4d4a5c59ce06d7dc212 | [] | no_license | Amithabh/Python4Informatics | ffa459a5340673d8df488aff3be4cef43499a6ef | 3faad370928f5bd2a17edaa4caf3d1b8fb759710 | refs/heads/master | 2020-05-30T12:27:13.802610 | 2016-10-07T21:04:04 | 2016-10-07T21:04:04 | 70,282,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | import json
import sqlite3
conn = sqlite3.connect('rosterdb.sqlite')
cur = conn.cursor()
# Do some setup
cur.executescript('''
DROP TABLE IF EXISTS User;
DROP TABLE IF EXISTS Member;
DROP TABLE IF EXISTS Course;
CREATE TABLE User (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
name TEXT UNIQUE
... | [
"amithabh5@gmail.com"
] | amithabh5@gmail.com |
95e9f1d292ccffad970294b2b502147429f71198 | 23b5337bf410415b7b150e3ad60cafc1578a0441 | /07-User-Authentication/01-Flask-Login/myproject/__init__.py | 54b954d72924a39c7987de9eda326bbc04bd3512 | [] | no_license | VerdantFox/flask_course | b8de13ad312c14229f0c3bc2af70e8609a3b00fb | 47b167b54bc580734fa69fc1a2d7e724adfb9610 | refs/heads/master | 2021-09-10T05:01:47.385859 | 2020-02-24T21:07:05 | 2020-02-24T21:07:05 | 241,973,705 | 0 | 0 | null | 2021-09-08T01:40:59 | 2020-02-20T19:40:42 | Python | UTF-8 | Python | false | false | 761 | py | import os
from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate
from flask_login import LoginManager
# Create a login manager object
login_manager = LoginManager()
app = Flask(__name__)
# Often people will also separate these into a separate config.py file
app.config["SEC... | [
"verdantfoxx@gmail.com"
] | verdantfoxx@gmail.com |
d9d48cd7afade834ffcb015e029a3826b4194562 | c351bc7388ece0e36b0c91cdc91dbce821940066 | /TC/redes-tp1/herramientaS2.py | 990187e7cca4726d39693846d36f107fa1d7c098 | [] | no_license | julianlen/tps_facultad | 059d62dc6a8c017688511e3d30ee93f3e0baca60 | 9b776e685036d34de5cf9dc86ad019e2f20f572d | refs/heads/master | 2021-09-02T06:16:00.274517 | 2017-12-31T00:02:01 | 2017-12-31T00:02:01 | 115,832,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,740 | py | #!/usr/bin/env python
# encoding: utf-8
from sys import argv, exit
import math
import matplotlib.pyplot as plt
from matplotlib import pylab
import logging
logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
from scapy .all import *
#import graphviz as gv
import functools
DECIMALES = 3
def PlotBars(simbolos... | [
"julianlen@gmail.com"
] | julianlen@gmail.com |
2044349675b019719547202cd026f4a96865b6c6 | b4ad07eba142d4c2cbec643a3f679b7590a69a78 | /FinalProject_CombatSim/sim_combat/army.py | a5d357af331dd04353adc6197bbd71e1f4d11ae3 | [] | no_license | Heraclito1107/D3Labs_Heraclito | af344b4692ef3504e604ab025451d8f456a8e46f | b89a8bc405bc89ba5ef9730ba5a2f99a202a8030 | refs/heads/master | 2022-08-27T15:06:00.380790 | 2020-05-30T02:40:20 | 2020-05-30T02:40:20 | 266,623,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | """ from characters.character import Character
from characters.character_type import CharacterType
class Army:
def __init__(self, army_id: int):
self._id = army_id
self._size = 0
self._army = [0 for x in range(10)]
def assignArmy(self, size: int, army_type: CharacterType) -> None:
... | [
"heraclito.diaz@hotmail.com"
] | heraclito.diaz@hotmail.com |
e8e634391f303d0b6ceac4ace6299bdd2bf13d16 | 92caa71c5a5135603cd875ce56dcd28a7dac7655 | /GHER/common/vec_env/subproc_vec_env.py | 44ac0f946d3087a480df1d7ca5ba9e3acb077a7b | [] | no_license | MrDadaGuy/GHER | 286343d66815971afd5bd47f6ee0e1940b144610 | 8b1b2a2aba6a684db5921d2328c79e7f36aa8eae | refs/heads/master | 2022-03-25T08:48:43.359759 | 2019-07-19T14:59:53 | 2019-07-19T14:59:53 | 173,989,952 | 0 | 0 | null | 2019-03-05T17:21:49 | 2019-03-05T17:21:49 | null | UTF-8 | Python | false | false | 2,859 | py | import numpy as np
from multiprocessing import Process, Pipe
from GHER.common.vec_env import VecEnv, CloudpickleWrapper
def worker(remote, parent_remote, env_fn_wrapper):
parent_remote.close()
env = env_fn_wrapper.x()
while True:
cmd, data = remote.recv()
if cmd == 'step':
ob, ... | [
"baichenjia@163.com"
] | baichenjia@163.com |
108cc53743d0761bb5612f81ccca8e5ac6f491ff | cb6f6888859567727e7a4c03f29ad0cf549d465a | /main1.py | a0729ed3f708bbdac13d7b5c2d969d3c76f373e8 | [] | no_license | Parth-AI/file-uploader | bfe3781a440cd276192b847732cbb219fc8a8016 | b7fe462d8d7f10b6c4200cede8af0f105e3657fa | refs/heads/main | 2023-04-25T17:12:41.785404 | 2021-05-17T23:58:33 | 2021-05-17T23:58:33 | 368,351,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | import dropbox
class TransferData:
def __init__(self, access_token):
self.access_token = access_token
def upload_file(self, file_from, file_to):
"""upload a file to Dropbox using API v2
"""
dbx = dropbox.Dropbox(self.access_token)
with open(file_from, 'rb') ... | [
"noreply@github.com"
] | Parth-AI.noreply@github.com |
2da8ab85dde17e654b3141983d5e3f549d3c1c70 | 3bf41ea64766b4f39f90db90aea8a97ccf915c30 | /Insertionsort.py | 9fc1b47b8388b81deedee8edaea0ba5d43ced68a | [] | no_license | utkarsht724/Pythonprograms | b461eebd1414f00f45f37343df212ae02abe91c8 | 2613544a974b34d3939466482fe4ef7b32a9918d | refs/heads/master | 2020-12-29T17:48:43.728569 | 2020-02-22T00:26:49 | 2020-02-22T00:26:49 | 238,688,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | #sort the string using insertion sort
def insertion_sort(names):
for i in range(1,len(names)):
value=names[i] #select value to be inserted
hole=i
while hole>0 and names[hole-1]>value: #locate hole position for the element to be inserted
names[h... | [
"utkarsht724@gmail.com"
] | utkarsht724@gmail.com |
1511174dcb89eb47693c4902e477237c79e49570 | a1dd53f96c79955a6723aca2627f207020d215eb | /bin/pyrsa-verify | 2de038a1db0ff9eb17a4bce4d5390230411f2e16 | [
"MIT"
] | permissive | linuxg33k76/speech | bfbf20efb84ba4bb1113960d9f287c30c047aad8 | 9e5c131a0f8b76756d52dacb764fb35bc8302dc4 | refs/heads/main | 2023-05-17T06:00:28.220754 | 2021-06-06T20:04:07 | 2021-06-06T20:04:07 | 374,419,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | #!/home/linuxg33k/dev/speech/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import verify
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(verify())
| [
"linuxg33k76@gmail.com"
] | linuxg33k76@gmail.com | |
40944c5fac9d6218fbb3fccd6144a95baa133e07 | 8bef4e20c773ebd6ccb6af0cb81eb788db920cb0 | /Routes/addNote.py | bd5398cafada0dd39b1819418c86ad88086ec1f0 | [] | no_license | animoffa/PhytonProj | 44207cc3f52826c136b8ea2d204f443f0e604fd7 | 1e62c94af510631fb9ad3b46f6dd882687d183ee | refs/heads/master | 2023-01-28T00:22:56.258766 | 2020-12-09T14:41:15 | 2020-12-09T14:41:15 | 319,985,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | from flask.blueprints import Blueprint
from flask import render_template
from flask import request
from models.lectгurers import Lect
from models.subjects import Subj
from models.intervals import Intervals
from models.groups import Group
from managers.DatabaseManager import DatabaseManager
from extensions import db
db... | [
"animoffa1352@gmail.com"
] | animoffa1352@gmail.com |
b449c65779fdc5cecf2dd164f7627c6d1568c411 | b2bbd4ab93467ed9971a73e5393108943a3424e3 | /programing/object_oriented_programing.py | 57a124d982255a99e31046dc75886ac6dd2ffa0b | [] | no_license | ajaykr26/learning-python-programing | 57c00325f1150897679e8c2071af31c1c55ba35a | 5341727592677bd214de5b22a600a0c546c6d7ab | refs/heads/master | 2022-04-08T12:07:25.407114 | 2020-03-18T04:52:49 | 2020-03-18T04:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,743 | py | # oops: inheritance, polymorphism, encapsulation, abstraction
# inheritance: single level inheritance, multi level inheritance, hierarchical inheritance, multiple inheritance
# class: A class is a blueprint for the third.We can think of class as an sketch of a parrot with labels.
# It contains all the details about the... | [
"ajaykr.mailbox@gmail.com"
] | ajaykr.mailbox@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.