blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
db80797eea94b37f6dba50423e613d0f6ab53cbb
58a6838b1e3feee394cc34a3711e9c438e028501
/audioguide/routebuilder/admin.py
2f59337f307abc44be7a03823c8e6e7987b812f8
[ "MIT" ]
permissive
daveclifton/audioguide
40c606c5fd662b97643155568453b30c34d70d66
cb23e5f5f022d8bc86bd23e0361a07accf727341
refs/heads/master
2021-03-12T23:06:33.537140
2015-09-15T19:49:52
2015-09-15T19:49:52
42,356,332
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
from django.contrib import admin from .models import Route, Waypoint class WaypointInlines(admin.TabularInline): model = Waypoint extra = 1 class RouteAdmin(admin.ModelAdmin): field = ['description','title'] search_fields = ['title','description'] inlines = [WaypointInlines] class WaypointAdm...
[ "dave@clifton.org.uk" ]
dave@clifton.org.uk
09602990e72457570a017402cb49b565dd310734
b9efab6b369cd8e9fec0cbd1e73c45fe1be354c7
/backend/api/migrations/0181_auto_20190829_2036.py
cdcdfdccabb7670698c0f3e115763664d63e9bc5
[ "Apache-2.0" ]
permissive
WadeBarnes/tfrs
646e0aed2bf48d5100f331edbb2d80418adee4b6
d62f58019dfa0164ce788912099862e35098fbb1
refs/heads/master
2021-02-10T21:37:20.021758
2020-02-25T17:01:56
2020-02-25T17:01:55
244,421,600
0
0
Apache-2.0
2020-03-02T16:40:09
2020-03-02T16:40:08
null
UTF-8
Python
false
false
901
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.22 on 2019-08-29 20:36 from __future__ import unicode_literals import api.models.SigningAuthorityAssertion from django.db import migrations, models from api.models.SigningAuthorityAssertion import SigningAuthorityAssertion class Migration(migrations.Migration): ...
[ "richard.tan@gov.bc.ca" ]
richard.tan@gov.bc.ca
ed71e3e54a38c07112a8aa9d5fdf13bdf984da44
85f251ca11be73d9107a19a85481e33173771977
/custom/intrahealth/reports/tableu_de_board_report_v2.py
015e7f77d17bb125c73f256d7761310b4385954a
[]
no_license
esmaeilinia/commcare-hq
7dae43c3aef8cbd79df1ecb5b4a4127107458fc4
86447bcb6086b4f64f0a252b9b920e3c15a7d98e
refs/heads/master
2020-03-20T07:46:45.435747
2018-06-13T22:08:21
2018-06-13T22:08:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,545
py
from __future__ import absolute_import from __future__ import unicode_literals from corehq.apps.reports.filters.dates import DatespanFilter from corehq.apps.reports.standard import CustomProjectReport, ProjectReportParametersMixin, DatespanMixin from custom.intrahealth.filters import LocationFilter from custom.intrahea...
[ "dmydlo@soldevelo.com" ]
dmydlo@soldevelo.com
24f5e2086845530ffadd3fae2f1037f846e85504
af4a10e899c64ac252aef1d837e41489d8eccc58
/hw_4/ml2019fall_hw4/pca/pca.py
a134b1b5372212cccfe110b1e999e1aaa2e6446c
[]
no_license
zhaone/ML_ZJU
86022064b3b3a37b6db1b0e37b53bc1aad15fda9
e5150d55702e73467ef54f6664797f39cce617d7
refs/heads/main
2023-06-24T10:39:20.642959
2021-07-24T09:53:29
2021-07-24T09:53:29
387,376,253
3
1
null
null
null
null
UTF-8
Python
false
false
704
py
import numpy as np def PCA(data): ''' PCA Principal Component Analysis Input: data - Data numpy array. Each row vector of fea is a data point. Output: eigvector - Each column is an embedding function, for a new data point (row vector) x, y = x*eigvector ...
[ "yizhaome@gmail.com" ]
yizhaome@gmail.com
018a14af583218b976db55e4105c31c2faf4651b
6f488a444da8181886497c3cede7eff1fc4454f4
/evaluate/utils/results.py
52f8c4f9a169cbf369fa209c2d19fae7e4f74d67
[ "MIT" ]
permissive
kartikshah1/Test
6ea6778c08302f24dc45c47721ed3f90b0009606
4ed9c338bf777bf01796b2cff28000c033a4a98a
refs/heads/master
2016-08-04T12:29:41.073891
2014-07-01T09:20:19
2014-07-01T09:23:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,074
py
''' This file is not being used in any module ''' from django.core.files.storage import default_storage from django.core.files import File from assignments.models import Program from assignments.models import Testcase from grader.settings import MEDIA_ROOT import tarfile, os class TestResults(object): def __init_...
[ "user@user-virtual-machine.(none)" ]
user@user-virtual-machine.(none)
11376c3f2d1070a380a3e5c5e2283cb1ab913e7e
a08f09d944759dde90582edcdc2be123a99147e7
/factory/request_builder.py
46f0fe096affdfa11640d73d0a0980c61a34127e
[]
no_license
potbunker/functional
fbbf812b0581c6535145b970f936ac160237ae3e
5677e04c519281a0f6e5d552abe79a315acaf6d4
refs/heads/master
2021-01-10T21:49:32.138823
2016-09-27T10:37:21
2016-09-27T10:37:21
35,383,153
0
0
null
null
null
null
UTF-8
Python
false
false
2,012
py
import json from collections import OrderedDict def merge(first, second): (section, subsection) = parse_markup(second) def merge_subsection(first, second): value = first.get(subsection) if value: value.append(second) else: first[subsection] = [second] re...
[ "potbunker@gmail.com" ]
potbunker@gmail.com
bf1e6db74be38f15e260dcd5cfb4d344f0b6f004
e1e405ff19a4a88457564ec67018a944e1968e8a
/SF-Net/stage1.py
c3b5760c56647bc904fe33d379c13636d0910719
[]
no_license
LingJun123/single-frame-TAL
7eb3e3ffe53716c6e09e54043287f3fb764710d8
eeae39da1e61cd349006ee61b6dbd86c0c7e07e5
refs/heads/master
2023-03-29T07:34:20.167212
2021-03-28T08:38:18
2021-03-28T08:38:18
341,221,154
1
0
null
null
null
null
UTF-8
Python
false
false
7,459
py
import torch import torch.nn.functional as F import torch.optim as optim from model import Model from video_dataset import Dataset from tensorboard_logger import log_value import utils import numpy as np from torch.autograd import Variable import time import random torch.set_default_tensor_type('torch.cuda.FloatTensor...
[ "393914387@qq.com" ]
393914387@qq.com
f4eeaa6892ba9773596d48872d8e1deb7cfe36ce
12f8d670d62f03fcba6441f0f396f3d0a62fd876
/pizza_api/pizza_api/urls.py
7f9445077baf4e311e2023a18304f1c328c92618
[]
no_license
TravisBaumann/pizza_api
7107ba103e63eb95b098fed6afa375085d782a26
46744c73e392187da34a735d3a46fb7aa2c88cf7
refs/heads/master
2021-01-10T23:15:05.800228
2016-10-11T19:51:31
2016-10-11T19:51:31
70,627,014
0
0
null
null
null
null
UTF-8
Python
false
false
766
py
"""pizza_api URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
[ "thba223@uky.edu" ]
thba223@uky.edu
6c21d227ad53ebf78f43f01ad9109641d3150a75
aadf448a46aa111dbf6e90ea7256168fc688880e
/AutomateBoringStuffwithPython/13-soup.py
9532473aa7b70e99ff29b93cb3b3b709ec2785dd
[]
no_license
Matthew1906/Automate-The-Boring-Stuff-With-Python
0bc8edd7b65d43690f274bfd5c974aa952e01760
8dc0ae32a77f182d72a9232618c60b4335e19cb0
refs/heads/main
2023-04-22T05:07:40.592033
2021-05-11T08:23:12
2021-05-11T08:23:12
363,805,966
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
# WEB SCRAPING = programs that pull information out of webpages # locate text , we can parse using beautiful soup import bs4 import requests # retrieve price from website res = requests.get("https://www.ebay.com/itm/123662580942") res.raise_for_status() # second parameter = avoid warnings soup = bs4.Bea...
[ "noreply@github.com" ]
noreply@github.com
8222ad5dbb1fe9a2d9066677863f31844b5d765d
ef78bd58d61002f45778a40da7759ed0b1998cd3
/code/transforms/subspacegaussianization.py
121e6249045137472b93b36408bb02b129606325
[ "MIT" ]
permissive
afcarl/isa
61e85c0c790c7cc357e0c29fc5bda948e9c77ce4
f0497c0cc7bd72e0de7f4f9a8da40e214c22abe9
refs/heads/master
2020-03-19T21:36:06.716167
2013-01-28T18:32:30
2013-01-28T18:32:30
136,944,562
1
0
null
2018-06-11T15:20:45
2018-06-11T15:20:44
null
UTF-8
Python
false
false
3,769
py
__license__ = 'MIT License <http://www.opensource.org/licenses/mit-license.php>' __author__ = 'Lucas Theis <lucas@theis.io>' __docformat__ = 'epytext' from transform import Transform from radialgaussianization import RadialGaussianization from numpy.linalg import inv, slogdet from numpy import vstack, dot, zeros from ...
[ "lucas@theis.io" ]
lucas@theis.io
e11e0ab9c99e23ba3c8ca537713bccaaf4f7f663
0dcab74606e5d4a23d37137dadf9d0348aa7bad9
/CyPerAna/reader/__init__.py
8205ce62f59b7c4dc21ac2c818f1b161cdbcf446
[]
no_license
stefano-v37/cyperana
9c9dff10883a37e9920bfe124e56e2af2e1d24df
1bc086862cb9bf9c0e2b75c164b4f7a6ce40296c
refs/heads/main
2023-02-12T08:00:43.113557
2020-12-31T20:39:57
2020-12-31T20:39:57
324,461,013
1
0
null
2020-12-31T20:39:58
2020-12-26T01:29:49
Python
UTF-8
Python
false
false
55
py
from .read import Reader from .readFit import FitReader
[ "s.vanin@outlook.it" ]
s.vanin@outlook.it
5af6449a0fe0e4c9f5b630c080bba66822d27e3a
203f8465075e098f69912a6bbfa3498c36ce2a60
/mapping/annotated_planar_patch_map/test/test_projection.py
a7e0505b10bdb8b257c44630058b35bc7add9f2b
[]
no_license
robcn/personalrobots-pkg
a4899ff2db9aef00a99274d70cb60644124713c9
4dcf3ca1142d3c3cb85f6d42f7afa33c59e2240a
refs/heads/master
2021-06-20T16:28:29.549716
2009-09-04T23:56:10
2009-09-04T23:56:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,798
py
#!/usr/bin/env python # Software License Agreement (BSD License) # # Copyright (c) 2009, Willow Garage, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code...
[ "syrnick@f5854215-dd47-0410-b2c4-cdd35faa7885" ]
syrnick@f5854215-dd47-0410-b2c4-cdd35faa7885
9961f02f3cc87bd6bb0fd66daadb71f7fbd6f526
3a642fa1fc158d3289358b53770cdb39e5893711
/src/xlsxwriter/test/worksheet/test_write_sheet_views2.py
1ac53cd2d1fb5d98adfaf23b01058d89c365b7e0
[]
no_license
andbar-ru/traceyourself.appspot.com
d461277a3e6f8c27a651a1435f3206d7b9307d9f
5f0af16ba2727faceb6b7e1b98073cd7d3c60d4c
refs/heads/master
2020-07-23T14:58:21.511328
2016-12-26T22:03:01
2016-12-26T22:03:01
73,806,841
1
1
null
null
null
null
UTF-8
Python
false
false
3,464
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ...worksheet import Worksheet class TestWriteSheetViews(unittest.TestCase): """ Tes...
[ "andrey@voktd-andbar.int.kronshtadt.ru" ]
andrey@voktd-andbar.int.kronshtadt.ru
7297a1c764fe304c3780a7b0b97c712f3dea2106
699c482e57f78a8fc3dd1fe7de3484644049eedc
/djangonautic/settings.py
2207a1616e6553da2a7661a3497314bc1692eaa4
[]
no_license
MuhammadAhmedHassan/learn-django-basics
d5c58a848b33b4035e2075390d32ebec54476f3e
a0a453f3b3d3ddcec1911af9fd703550196811fa
refs/heads/master
2022-12-26T17:27:34.860032
2020-10-10T05:35:21
2020-10-10T05:35:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,311
py
""" Django settings for djangonautic project. Generated by 'django-admin startproject' using Django 3.1.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pa...
[ "" ]
3611bd94f2a5270fae583b1921ddeba388724f54
38d0d2bce869ae74be3fab0054e654819197f50e
/annot_gnomad/parser.py
8a4e35c66f2073d8010083750b8690746661f01b
[ "MIT" ]
permissive
ken0-1n/annot_gnomad
3791b708c2edd433af7bf6bb0374388f2da2eda8
32c9284398ea85b8b18a0b8115a2393cae54cd7c
refs/heads/master
2020-07-31T19:18:05.905629
2019-09-26T04:43:48
2019-09-26T04:43:48
210,724,953
0
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
#! /usr/bin/env python # -*- coding: utf-8 -*- """ @author: ken0-1n """ import sys import argparse from .version import __version__ from .compare import comp_main def create_parser(): prog = "annot_gnomad" parser = argparse.ArgumentParser(prog = prog) parser.add_argument("--version", action = "version", ...
[ "ec2-user@ip-172-31-39-78.us-west-2.compute.internal" ]
ec2-user@ip-172-31-39-78.us-west-2.compute.internal
b2fdefe7181305ca916463ddeb239e959d65aa0c
b80ae07a86546c2aeda56f03ea74dc38869852cb
/gensbo/core/variable.py
d9199122e01e9bac5fcea5c87979a99bc5ccdd70
[ "MIT" ]
permissive
ai4energy/gensbo
c307ada773872b2f0c40637102ce128496d75fbc
b8f5cf50b9465777f855d0e3054df02fe73e7d90
refs/heads/main
2023-02-13T18:39:05.868263
2021-01-12T09:34:01
2021-01-12T09:34:01
328,614,659
2
0
null
null
null
null
UTF-8
Python
false
false
3,963
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # ====================================================================== # # gensbo - a GENeral Simulation Based Optimizer # # 一个基于仿真的优化器 # # ====================================================================== # # author : Mingtao Li # date ...
[ "18702978557@163.com" ]
18702978557@163.com
1b82fd76728b2136d28cf08aa972f3b23952159b
8f97bb7ac5affe163082c177934fa5dedad07eb9
/counter/counter.py
c3f0567a90250f4ee7f65648fe93592442a4989b
[]
no_license
nirhersh/GUIApps
1dbf98330b6d0c65652a9ba76cf76f45a7369d6c
c6fbd0f5b1d97b1849f4993ba8039beffe899f95
refs/heads/main
2023-03-19T11:44:45.871914
2021-03-09T22:28:44
2021-03-09T22:28:44
346,159,377
0
0
null
null
null
null
UTF-8
Python
false
false
3,148
py
from tkinter import * from tkinter import ttk import winsound counter = Tk() counter.title("Counter") counter.geometry('500x205') background_image = PhotoImage(file="source.gif") background_label = Label(counter, image=background_image) background_label.place(x=0, y=0, relwidth=1, relheight=1) choose_frame...
[ "noreply@github.com" ]
noreply@github.com
05445b0767ee608afe1f57d808036229fdad4950
4bcf8c813129ecf71e0c9b7589a861268ad73361
/helperFunctionsRepo.py
0e103f243f50911346cd6754f49a910fd139aea5
[]
no_license
ShreyaR/LoopyBPCTMP
fd406ac23cbd0ccaae6c93e6c7be725626a485d5
29cab0137037a61dcef755680980131efdf6bee1
refs/heads/master
2021-01-10T15:43:04.883322
2015-12-08T04:09:53
2015-12-08T04:09:53
47,594,357
0
0
null
null
null
null
UTF-8
Python
false
false
19,378
py
__author__ = 'shreyarajpal' from math import log, exp from collections import deque #global ocrDat, transDat characterArray = ['e','t','a','o','i','n','s','h','r','d'] ocrDat = [] transDat = {} def readOCRPotentials(): global ocrDat ocrDat = [{} for _ in xrange(1000)]#*numOfImages ocrInfo = open('data/ocr...
[ "shreya.rajpal@gmail.com" ]
shreya.rajpal@gmail.com
4d1edaeffac4009ede65c480a2166a0a62b91e9e
c5af212255b9d10220e14f7afda710692de05e10
/MelomaniaAPI/melomania/melomaniapp/migrations/0005_auto_20200911_1509.py
4920dcdb5b47effbfe5b849fb2577683f9c4221f
[]
no_license
nakeisha0601/melomania
e7dd88ccf833cc3f2818e18de98aa449e5b51fb0
04a0bfe02c443ccce7cefb72ee7f1afa76d9ec8f
refs/heads/master
2022-12-15T15:51:59.642354
2020-09-20T05:37:26
2020-09-20T05:37:26
259,446,971
0
0
null
null
null
null
UTF-8
Python
false
false
8,219
py
# Generated by Django 3.1.1 on 2020-09-11 20:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('melomaniapp', '0004_auto_20200910_1345'), ] operations = [ migrations.CreateModel( name='Analisis_Cancion', fields=[...
[ "62564842+nakeisha0601@users.noreply.github.com" ]
62564842+nakeisha0601@users.noreply.github.com
413fae5d3fbae535a19798130e74abb371a25cb9
020da726bb378ea9fe58af19caadad8e02bd4e27
/CODES_RCM/Calcul_Heat_Wave_RCM.py
31eb9bfd038cd5ce54ea25386c8f2ed2b0b10913
[]
no_license
guimeto/Heat_Wave_Codes
06dc19f9547b2cc083db9fd7bd44d22fad072a37
85a1c6ae582818a5694aef9b17fc7f3578b3af16
refs/heads/master
2020-06-22T05:44:11.064070
2020-04-10T18:11:19
2020-04-10T18:11:19
197,648,190
1
0
null
null
null
null
UTF-8
Python
false
false
4,289
py
# -*- coding: utf-8 -*- """ Created on Mon Jul 15 10:31:05 2019 @author: guillaume """ import xarray as xr import numpy as np import pandas as pd from netCDF4 import Dataset model='CANRCM4_NAM-44_ll_CanESM2_historical' yi = 2000 yf = 2000 tot=(yf-yi)+1 ######################################################### rep_...
[ "guillaume.dueymes@gmail.com" ]
guillaume.dueymes@gmail.com
5dcb6c44624c035c9c62088552324bbe251ba059
f10f2f62cee9f15c18ebe69d890cbec36c62a65e
/reading-and-writing-binary-files-code/file2.py
229f6793d2618f4c38b24ad892697ebf48bf94e0
[]
no_license
hackerbot/python-for-beginners-instructor
1991c1d00a776e49df40794e5c9366fbd1fd232c
0a15b5f107be1e40fa0237687cebc08580a8db62
refs/heads/master
2021-01-25T08:54:44.963574
2015-08-21T18:58:48
2015-08-21T18:58:48
41,172,317
0
0
null
null
null
null
UTF-8
Python
false
false
82
py
file = open('keyboard_bokeh.jpg', 'rb') for line in file: print(line, end='')
[ "ninh@ninh-macbookpro2.roam.corp.google.com" ]
ninh@ninh-macbookpro2.roam.corp.google.com
6e1cffc537c875ac775caa6fe87c8b21a3b2b0a9
59be5a2e12ec7b9371e215dfb8a8f930e94be6db
/lgtv/lgtv/database.py
d2de029a27f24fe783a693269937540598c84519
[]
no_license
Sduniii/alexa-broadlink
2ae5b5c7b1e4520f996666f5d5d66787df3baabf
3166a1170a3f7d8a04c87137f056d504217f787e
refs/heads/master
2021-01-22T09:41:46.919560
2017-12-08T16:53:18
2017-12-08T16:53:18
81,967,691
1
0
null
null
null
null
UTF-8
Python
false
false
2,462
py
import simplejson as json import os import traceback APP_ROOT = os.path.dirname(os.path.abspath(__file__)) APP_STATIC = os.path.join(APP_ROOT, 'static') def load_database_by_mac(mac): try: f = open(os.path.join(APP_STATIC,mac + '.json'), 'r') d = json.loads(f.read()) f.close() retu...
[ "tobias.sdun@campus.tu-berlin.de" ]
tobias.sdun@campus.tu-berlin.de
25318e469a5640b9624e44d66269790726f45c48
a87913dabc348552a7c606e11fb0ea9ed0c73d63
/dog/migrations/0003_alter_dog_id.py
58a3b4eb99ceb5cd2ef6196775e9840cf86e7e09
[]
no_license
Python-Guruz/Python-Django-basic
213b822370aa917b115a05ec8c25b9cdab6d290d
92dcfc4dc41ab3f5707a3366458a6ca6b7cff14f
refs/heads/main
2023-07-15T02:17:20.680345
2021-08-31T10:11:56
2021-08-31T10:11:56
401,623,378
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
# Generated by Django 3.2.5 on 2021-08-31 09:11 from django.db import migrations, models import uuid class Migration(migrations.Migration): dependencies = [ ('dog', '0002_auto_20210831_0103'), ] operations = [ migrations.AlterField( model_name='dog', name='id', ...
[ "onjombafelix1@gmail.com" ]
onjombafelix1@gmail.com
79412abdea0e6372f74ea7c14965c8ab42d09fb6
091a6200be74bf6577c86f623665bcc24e16b02b
/MIDI_Foot_Pedal/code.py
de131e0012635abaf06cf4df0ad0a12a3c0f68d0
[ "MIT" ]
permissive
adafruit/Adafruit_Learning_System_Guides
b5f7bce40a16da64e7a79d4b39de032f2cca41d4
5eaa7a15a437c533b89f359a25983e24bb6b5438
refs/heads/main
2023-09-05T18:31:41.621956
2023-09-05T15:36:09
2023-09-05T15:36:09
105,065,494
937
937
MIT
2023-09-12T18:48:53
2017-09-27T20:22:44
C
UTF-8
Python
false
false
1,219
py
# SPDX-FileCopyrightText: 2022 Liz Clark for Adafruit Industries # SPDX-License-Identifier: MIT import time import board import usb_midi import adafruit_midi import simpleio from analogio import AnalogIn from adafruit_midi.control_change import ControlChange # midi setup midi = adafruit_midi.MIDI( midi_in=usb_mi...
[ "noe@adafruit.com" ]
noe@adafruit.com
d3bb2016d415c47c7039c7cc1a1f2fadb8094a6d
3d4a3bebf614086cce8a22510d8c27c0bea52f92
/CDS_pro.py
6963688c12963d1e348fb2a00680deef640be7ea
[]
no_license
caelus95/MantaOcean
dc031518051daac9b718b4c7664a057a956475f8
dbc5774f6ecd949a8d8f58c66d0101f816b90dc9
refs/heads/master
2023-06-18T22:00:26.353952
2021-06-29T13:25:48
2021-06-29T13:25:48
365,965,350
0
0
null
null
null
null
UTF-8
Python
false
false
2,252
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jun 29 18:03:50 2021 @author: caelus """ PKG_path = '/home/caelus/dock_1/Working_hub/LGnDC_dep/python_cent/MantaPKG/' import sys sys.path.append(PKG_path) from Manta_Signals.procc_index import sig_pro, linearRegress4Cube from Manta_Signals.utility im...
[ "caelus9536@gmail.com" ]
caelus9536@gmail.com
fd4a9ce4b664f08aa0697bfefe7e1704b3945917
4e091e3ac68893aa6ed327d956ecc524ab4118c9
/COVIDscraper.py
2778e33fc8528cedc17a51ac581fbf59499cc7e9
[]
no_license
anInsignificantHuman/COVIDTracker
4e3ec0072a52f0ac5277dd0473aacf492b03a2b6
8255107e873f9d29a602fb33e3b79c655991e073
refs/heads/master
2022-12-23T10:38:36.507847
2020-09-23T01:44:43
2020-09-23T01:44:43
297,820,213
0
0
null
null
null
null
UTF-8
Python
false
false
1,280
py
# This is the file for scraping the web and finding the data behind-the-scenes # Imports And Setup import requests from bs4 import BeautifulSoup, SoupStrainer website = requests.get("https://www.worldometers.info/coronavirus/") parse_ref = SoupStrainer(id="nav-tabContent") parse_ref2 = SoupStrainer("title") so...
[ "noreply@github.com" ]
noreply@github.com
31f267126e8d1ba7d2e8a597ffd4c6862dcb7921
6eca61a10316c9dfd8cb3481c02d8f1685a4f6fc
/ex/ex068.py
4d844dbb883c3c8b602354391538073c7223fcaa
[ "MIT" ]
permissive
Ozcry/PythonCEV
ec46afa6aedb2f60ae69fa655477962aa5ffabf3
b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9
refs/heads/master
2023-07-16T12:12:50.627431
2021-08-18T17:22:10
2021-08-18T17:22:10
348,510,788
0
0
null
null
null
null
UTF-8
Python
false
false
1,786
py
'''Faça um programa que jogue par ou ímpar com o computador. O jogo só será interrompido quando o jogador PERDER, mostrando o total de vitórias consecutivas que ele conquistou no final do jogo.''' from random import randint contv = 0 maq = randint(0, 10) print('\033[1;33m-=\033[m' * 20) print('\033[1;37m------- Vamos j...
[ "jean.lucasferreira1998@gmail.com" ]
jean.lucasferreira1998@gmail.com
8533ca767d64e12d8bcb5381a612b810abd7061e
461309262bc065fdd3206375607d85d1df912382
/train.py
4a56292cc71f521c7e806234565aa74181155b28
[ "MIT" ]
permissive
tsarjak/lstm-text-generation
54c8e2a51b7a47da7693c825db1ab519a386cef8
487b758ef39f4f1b41f443211f7f7d0040828f89
refs/heads/master
2020-03-30T05:47:28.099437
2018-09-29T03:27:13
2018-09-29T03:27:13
150,819,792
0
0
null
null
null
null
UTF-8
Python
false
false
2,981
py
import numpy as np from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.layers import LSTM from keras.callbacks import ModelCheckpoint from keras.utils import np_utils from keras.optimizers import RMSprop def loadText(filename): completeText = open(filename).r...
[ "noreply@github.com" ]
noreply@github.com
380862f363778871dcc1dd87f156313ed31820f4
4157108fe186b22b8ef1a7bf543b7ac5df61c838
/tests/test_kubernetes.py
63c0422f4ff70ef681dd78acb20c99b7ed516494
[ "Apache-2.0" ]
permissive
CVirus/zmon-worker
0861656fd1c02996eea17febdc7f805ff448cd50
8ef9326945dccb0a8fde84be0eeb0bd8a05ae1f3
refs/heads/master
2021-01-15T10:57:38.934269
2017-08-07T17:04:53
2017-08-07T17:04:53
99,600,326
0
0
null
2017-08-07T16:58:16
2017-08-07T16:58:16
null
UTF-8
Python
false
false
20,747
py
import pytest from mock import MagicMock, call from zmon_worker_monitor.builtins.plugins.kubernetes import KubernetesWrapper, CheckError CLUSTER_URL = 'https://kube-cluster.example.org' def resource_mock(obj, **kwargs): resource = MagicMock() resource.obj = obj resource.ready = True for k, v in kwa...
[ "noreply@github.com" ]
noreply@github.com
38f6677b625f331d35df70b4d6bbe3ef286f8a02
8aa877184fa0a661c4121bb2195fcbf3017942fa
/first.py
7ac2783c72cc5d44d6c68df4b7593b88be7238bf
[]
no_license
0xHertz/Face
c2c0074d8f9e8d12ad469d1a6c465b05f4d7265d
7a3200128727766f914dc8594688314844296b15
refs/heads/main
2023-04-04T19:52:02.898730
2021-04-04T08:58:46
2021-04-04T08:58:46
354,187,932
0
0
null
null
null
null
UTF-8
Python
false
false
808
py
# coding=utf-8 # 2021.4.2 # import cv2 as cv from cv2 import cv2 def main(): # load a pic # colored img img = cv2.imread("2.png",1) # Black&white img img1 = cv2.imread("2.png",0) # check img shape print(type(img)) print(img.shape) print(img1.shape) # show pic cv2.ims...
[ "55642724+Liubing-Zhen@users.noreply.github.com" ]
55642724+Liubing-Zhen@users.noreply.github.com
b9b8a13b267ef5edda9509e7fff2263fa13dbe73
de58cf83e62c6a94482ef62128c268ce69e125fe
/DR_DR_Server/AccessControlDR_DRServer.py
61b6fbedb798fe47f4c5baeb901cf04f3cfc9735
[]
no_license
2019202009ankush/DroneSecurity
5b805c563fa9bbfe070e3e6e57b6471304c88494
aeb6fde94756a8053030ec205b258bed1672a8f9
refs/heads/master
2023-01-15T12:48:55.624592
2020-11-25T08:45:26
2020-11-25T08:45:26
310,006,042
0
0
null
null
null
null
UTF-8
Python
false
false
4,039
py
import ECC import hashlib import time from random import SystemRandom rand=SystemRandom() curve=ECC.secp256k1 delta = 100 import multi def ACDG1(): fp=open("DR.txt","r") l=fp.readlines() ID_DRj= int(l[0]) Cert_DRj= int(l[2]) # print('Cert_DRj=',Cert_DRj) TCDRj = int(l[1]) fp.close() fp...
[ "54775848+2019202009ankush@users.noreply.github.com" ]
54775848+2019202009ankush@users.noreply.github.com
b419e7b4c4e52f9ce5e7b3aebea94dd8c0d8fbd3
a41483192147c552d6cbdf7b656621cc1337af5f
/Chap14/modules.py
0a7d0a092deda12f7ad45ee1e98c4864363f746d
[]
no_license
venkatesulu-byni/python-programms
4f4b3161b4a189ee2a3809a7c6e09dcf978f954b
c4213ce5737bc622ba64f5fdd04e0ee46333eeae
refs/heads/master
2020-04-17T10:45:33.879385
2019-01-20T07:36:27
2019-01-20T07:36:27
166,513,071
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
#!/usr/bin/env python3 import sys def main(): v = sys.version_info print('Python version {}.{}.{}'.format(*v)) if __name__ == '__main__': main()
[ "venkatesulubyni@gmail.com" ]
venkatesulubyni@gmail.com
808cf3c32ee1793a9b9e851d99062f6245f9dc9e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02879/s604770795.py
8a8a1f8c96a9e183e5e3de56c8219f8a884b4acc
[]
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
274
py
import math import collections import fractions import itertools import functools import operator def solve(): a, b = map(int, input().split()) if a < 10 and b < 10: print(a*b) else: print(-1) return 0 if __name__ == "__main__": solve()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
a05976b64fdb4ac59d22e58b70ac1713e27bb580
97ca9495f7d014a35e56cb7ca46ab1f44f33e01f
/mgd/WF_SupplementalData.py
4b65cb25f489a6817cdd0b093a6128ca4c083447
[]
no_license
mgijax/qcreports_db
8717f4e34a4187fb67efffadce6a5348fb1ad9be
565a9354b73b7fba2d5cd1df81d1a61b836f17d8
refs/heads/master
2023-07-19T20:06:49.884253
2023-07-11T17:20:21
2023-07-11T17:20:21
58,069,873
0
0
null
null
null
null
UTF-8
Python
false
false
3,555
py
''' # # TR12777/Lit Triage Supplemental Data Needed # # Report: # # References where: # - has J# # - is keep # - is-reviewe-article = No # - supplemental in: # 'Db found supplement' # 'Curator found supplement' # - Status in ('Chosen', 'Indexed') # - Journal not in 'Elife' # - SOrted by Curator, Status, J# # ...
[ "lori.corbani@jax.org" ]
lori.corbani@jax.org
44f34465f88d2c8498d8b02d029cd8d70bba3f12
7b82258f8ed0df2bbf1826b53e28a3c8398570f1
/web/questup.py
44428dc9099d0fb2fc00e0947034764baea85f25
[]
no_license
CainanW/WatAreMyClasses
783df1eb1a514e685ea0242b931cbc21284b78f0
2a4f4d86cad0899f68c1fa1dab4f878b4c75be42
refs/heads/master
2021-01-18T07:48:03.710660
2015-08-24T22:59:04
2015-08-24T22:59:04
41,369,074
0
0
null
2015-08-25T14:46:49
2015-08-25T14:46:49
null
UTF-8
Python
false
false
890
py
import web from jinja2 import Environment, PackageLoader from parsers import Quest from db import Database from services import Auth """ Deals with quest/onboarding. Walks user through adding new schedule. When completed correctly, redirects to /map. Note the POST/GET syntax examples. Source: quest.html Current Mapp...
[ "me@magmastone.net" ]
me@magmastone.net
da9a522765d60f9e9e57ebdebec0a3d42577c315
fd966a3e29723c6ad85ff9023e5d875d6e8a05ee
/api/src/launcher.py
97d7f0d3e701592ac24c76ead6436afe7cc1174d
[]
no_license
Franck-Crtx/StatFive
576ca0ab794f2f4029c24e897518f9f94fea833f
7b2a3e946ac9e42260852f3803ec45a00cb7d7d3
refs/heads/master
2022-11-03T08:32:51.164828
2022-10-25T11:23:38
2022-10-25T11:23:38
557,223,241
1
0
null
null
null
null
UTF-8
Python
false
false
1,726
py
import mimetypes import os from flask import Flask, jsonify, redirect, url_for, Response, send_file from flasgger import Swagger, swag_from from flask_cors import CORS from flask_mail import Mail from pathlib import Path from .models import db, mail from . import config def create_app(config_key='development'): ...
[ "fcourtaux@fcourtaux.vm.vdi.s1.p.fti.net" ]
fcourtaux@fcourtaux.vm.vdi.s1.p.fti.net
2fff49f69313fbe9165d2135132e97efb34e076b
35b9c8bfe1247f1775fe42b6b6a5bae1f88a254e
/Tools/my.py
35819a4c2ead1921e274708ee2338bfb10b96cf3
[]
no_license
chucongqing/PythonToy
9bfe24edba10d8f801c2741a8c63350c8d5197fa
e4c761b834804aaa1731857540a8a2aba312aa7a
refs/heads/master
2020-12-24T05:21:58.721966
2018-05-09T08:41:19
2018-05-09T08:41:19
41,523,360
0
0
null
null
null
null
UTF-8
Python
false
false
3,814
py
# -*- coding: utf-8 -*- import os import sys import os.path import json import plistlib print ("script name = ", sys.argv[0]) for i in range(1, len(sys.argv)): print ("parameter = " ,i, sys.argv[i]) origin_type = ".png" if len(sys.argv) < 2 : rootdir = ".\\" else: rootdir = sys.argv[1] def updateJsonFil...
[ "chucongqing@gmail.com" ]
chucongqing@gmail.com
cd5203957ca77e796af5e3c7d8eb273da968503a
cc4444056ee54cfcba7ff9e9bf1e4c041142e0be
/data/get_new_file.py
dc1b92d940faccac75c19a335b589a74b5baed95
[]
no_license
soliashuptar/Course-project
6fa3758ce3447a9dee590266c7a3232ab7aeeb7d
8d77fc8139c8ea4337b1762d6ed332f575eacead
refs/heads/master
2022-12-13T10:55:24.058638
2019-05-26T14:57:49
2019-05-26T14:57:49
172,096,101
0
0
null
2022-12-08T01:45:39
2019-02-22T16:13:16
HTML
UTF-8
Python
false
false
1,466
py
from urllib.request import urlopen # for Python 3: from urllib.request import urlopen # from bs4 import BeautifulSoup # # # def get_last(): # URL = 'http://web.mta.info/developers/turnstile.html' # soup = BeautifulSoup(urlopen(URL), features="lxml") # lst = [] # for link in soup.find_all('a'): # ...
[ "s.shuptar8@gmail.com" ]
s.shuptar8@gmail.com
a8869c4e190e0b10da067ce0d488d8aac471d785
23d0a335cebe9ffc5bc5d833de6e4f2f36d9330c
/main.py
5978ae9aaa02b2551db41ee11711a3f2170ea94e
[]
no_license
Divyalochana/chutes-ladders-game
d9f190e1219c23f78ea12be6dc2cbac943484d4b
f0fcf50341ba1b706f4297a1b259a6fa756f63e1
refs/heads/main
2023-06-13T01:38:46.721441
2021-07-02T14:12:55
2021-07-02T14:12:55
382,365,491
0
0
null
null
null
null
UTF-8
Python
false
false
1,120
py
import random print("***** WELCOME TO SNAKE & LADDERS GAME *****") print("-------------------------------------------") snakes = {94: 24, 60: 42, 21: 4, 85: 16} ladders = {5: 25, 44: 70, 80: 95, 12: 56} pos = [0, 0] i = 0 c = 0 while pos[0] < 100 and pos[1] < 100: input("Player " + str(i) + " turn") dice_num =...
[ "divyayoseph419@gmail.com" ]
divyayoseph419@gmail.com
58718c5071d69d53194ec35c9fdf987843ad8f99
d566cea0b4357a33735d7ba4cdaed8204c6aef91
/excercises/47.py
319a710544f3b79b5356abf13428005ecc20b190
[]
no_license
GentelmanBastard/PythonCourse
c0fc4fe8cf491b4344e811113762f933df8e7eb7
4e5e7d999b5b0fe91784e8b93e8dd1bfc00b8386
refs/heads/master
2021-01-25T09:53:01.113469
2020-02-11T15:09:05
2020-02-11T15:09:05
123,327,526
0
1
null
2018-08-08T09:04:28
2018-02-28T18:49:17
Python
UTF-8
Python
false
false
228
py
import string letters = string.ascii_lowercase l = [] for i in letters: with open("letters/" + i + ".txt") as file: file_read = file.read() if file_read in 'python': l.append(file_read) print(l)
[ "mateusz.kucman@igt.com" ]
mateusz.kucman@igt.com
cb6e5c94de5555c1009d71b263176ac427baae1c
6e027ba1582ea04411484597928073aff51fcb2c
/serve.py
be43e7cdd169d6cef823c07325eafa7238b83d68
[ "MIT" ]
permissive
toanluongnhu1709/drift3
024b6f660822c4bfb1be2d956e1e1834f55aea7b
82208cccaf0ca309c7883bcc91e042963348f968
refs/heads/master
2023-03-16T02:14:36.897473
2020-04-19T22:16:04
2020-04-19T22:16:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,265
py
#!/usr/bin/env python3 import guts from twisted.web.static import File import os import csv import tempfile import requests import subprocess import json import nmt import numpy as np import scipy.io as sio import sys import time from drift import measure BUNDLE = True def get_ffmpeg(): if BUNDLE: retu...
[ "mail@RMOZONE.COM" ]
mail@RMOZONE.COM
028769a696e47d276c85168289624c29b80f227f
08cc66a03cbda7f08f1dc36c612302fae065742a
/moduleConfig/stiModule.py
1650efcd4c9f840347afbd98c2ddc2e97d9976a1
[]
no_license
RohanBali/EGUANA_Python
cc6fd71de9c7bc6dac67fea217124d39390da5d8
b87344eb9b96adc63bc67593b2a3176d9fd9683b
refs/heads/master
2020-05-22T04:18:01.797297
2019-07-12T00:49:05
2019-07-12T00:49:05
63,805,617
0
1
null
2019-07-12T00:51:34
2016-07-20T18:42:10
Python
UTF-8
Python
false
false
187
py
from moduleConfig.eguanaModuleConfig import EguanaModuleConfig class StiModule(EguanaModuleConfig): name = "STI" def __init__(self): EguanaModuleConfig.__init__(self)
[ "roh10roh@gmail.com" ]
roh10roh@gmail.com
3ebd7bc104862c4021cc3ff533d66593ab946ca1
c967a3f00b38923379e3462f4d05b757f541805a
/Downloader/sentinel_1_downloader.py
6813eb130be2de10c5ae75577b9cd3348c6d6a00
[]
no_license
Hedsw/RemoteSensingFramework
43e2402c4366c343359f1f82d816bd2488276556
d3bf275ee99e71e06e95acb51e8b08a0e98688ae
refs/heads/main
2023-08-14T14:28:22.051148
2021-09-27T00:27:30
2021-09-27T00:27:30
381,853,485
0
0
null
null
null
null
UTF-8
Python
false
false
3,366
py
# connect to the API import os from sentinelsat import SentinelAPI, read_geojson, geojson_to_wkt from datetime import date from glob import glob from xml.etree.ElementTree import parse #from downloadmethod.sentinelAPI import API from filechecker.zipreleaser import unzipper class sentinel1: def sentinel_1(jsondirec...
[ "yun.hyeok.lee@gmail.com" ]
yun.hyeok.lee@gmail.com
b371fb38087b5344e67a3a24fa3d980891521c9c
3c74ce9fe212fd13bbadf769ea287e275eebb445
/wsgi/cnto/cnto_api/urls.py
df387a21f97d36f32e9c2391ec2ccad38121db20
[]
no_license
CntoDev/django-roster
f631c2006d231bad63754c19743625ef8ace9e5b
a67ffbc290822122e7605a63bf82ef85760f8aba
refs/heads/master
2022-07-21T09:06:45.265077
2019-12-05T08:27:19
2019-12-05T08:27:19
44,257,209
3
4
null
2022-07-06T19:40:28
2015-10-14T15:28:58
Python
UTF-8
Python
false
false
797
py
"""cnto URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
[ "riaan@stonethree.com" ]
riaan@stonethree.com
6b6af12b1085b6a2610de6ae66c12d89572aa906
9d4bc87d693688ff898f25f2e58ceb0687935b5c
/vid_frames.py
adf98739aa3883587094aed2072f6c7bb539c597
[]
no_license
Yashrajmotwani/TextfromImage
46fdea3eac1b123a596c68f2b00c8c266eebe2bd
863b6319d606cd0d3d6ee48340eb45b9b4f2a60f
refs/heads/master
2022-10-20T14:09:29.216314
2020-07-06T06:41:38
2020-07-06T06:41:38
277,463,032
0
0
null
null
null
null
UTF-8
Python
false
false
1,739
py
import cv2 import os from PIL import Image import pytesseract import re import pandas as pd # Include tesseract executable in your path pytesseract.pytesseract.tesseract_cmd = r"C:\Program Files\Tesseract-OCR\tesseract.exe" # Read the video from specified path cam = cv2.VideoCapture("C:\\Users\\YASH\\...
[ "noreply@github.com" ]
noreply@github.com
4e5104bc1e855aa605ac261ef07cd2f1d367e188
17087efa5b0b6042bb77916bf60fabca393b268a
/core_packages/Windows_package/source_codes/app.py
18c35ee60094c8951d77f43922be5afbd44b11f4
[]
no_license
sprtkd/re2dfa
4f40b3a461e4c8c138ca5e41703e10e35928fb68
4a40ef8984b1f33388273bd9d1a6cca869d39dee
refs/heads/master
2020-03-18T22:07:05.045819
2018-05-19T10:00:03
2018-05-19T10:00:03
135,325,854
0
0
null
2018-05-29T16:45:01
2018-05-29T16:45:01
null
UTF-8
Python
false
false
6,558
py
import tkinter as Tkinter import tkinter.font as tkFont from PIL import ImageTk,Image from sys import exit import subprocess import pydot import graphviz import os curr_dir = os.getcwd() graphvizdir = curr_dir+'\\graphviz-2.38\\release\\bin' os.environ["PATH"] += os.pathsep + graphvizdir def my_output(): f = open("...
[ "finimatatools@gmail.com" ]
finimatatools@gmail.com
aefd0392756721d0d9d80c26226154f258f9cf53
24d9d942d2c4abe2424c14bde38f58d9cd49cfc3
/app/forms.py
7e3ee3959e1cccbd719d9cde18e106bef73ab9fd
[]
no_license
MichaelDeutschCoding/baseball-cards
f6e037c5fb6b3fe82aebd0824e124efe51ca1092
642018c2cc90a61dfafc711ad3b6a56b4914e54d
refs/heads/master
2020-12-01T21:00:40.010117
2020-01-06T10:36:57
2020-01-06T10:36:57
230,768,848
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
from app.models import Comment, Offer, Card from django.forms import ModelForm, Select, NumberInput from django.forms.widgets import Textarea class CreateOfferForm(ModelForm): class Meta: model = Offer fields = ['card', 'price'] widgets = { 'card': Select(attrs={'class': "form-c...
[ "michaeldeutsch1@gmail.com" ]
michaeldeutsch1@gmail.com
87800225ea9a1a143e84f35cb8701766aa437ea1
8df248e3ee027e57cecfe38bdfda89924349cf04
/bookstore/book/signals.py
f2bcf92ce0c61afa7e32ad1527ff684c43e15d9f
[]
no_license
abdelrahmany0/django_lab
187cb9882fc22dea9af639bbcb0206c471d0cf95
7b801c2eaba8836d2aefa2b006f17cd23390f85e
refs/heads/master
2023-05-02T02:56:46.819073
2021-04-24T15:21:14
2021-04-24T15:21:14
360,189,641
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
from django.db.models.signals import post_save, pre_save, post_delete, pre_delete from django.dispatch import receiver from .models import Book, Isbn, User @receiver(post_save, sender=Book) def after_book_creation(sender, instance, created, *args, **kwargs): if created: isbn_instance = Isbn.objects.creat...
[ "abdelrhmanatta01@gmail.com" ]
abdelrhmanatta01@gmail.com
2e41a438e6f0f5d8e75445868083ba47b994dca1
06f83a82b1eea7fc28ccbc2f4c966e06f5b4e82f
/2.76/scripts/addons/Preselection_faces.py
86985538b1cc5b69f9f16cfe73d6c3ceaee33ef8
[ "MIT" ]
permissive
himaghnam/BetterBlender
3a67852d12ec6e7a46ff3e016c02457e5335d0d2
cc4813cb2068fe77cbe7ae327c6fcf6c1eb344f8
refs/heads/master
2021-11-26T06:49:07.119716
2016-01-03T08:14:06
2016-01-03T08:14:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
20,183
py
# ##### BEGIN GPL LICENSE BLOCK ##### # # 3dview_edit_preselect.py # Draw the mesh element under the cursor thicker in Edit Mode # Copyright (C) 2015 Quentin Wenger # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as publish...
[ "gieson007@gmail.com" ]
gieson007@gmail.com
186b8b843fa10b939df0757d0d168f34b16899da
ce5a4b9ce48990163320da3ed9de21c163decfad
/gui_basic/12_frame.py
e51bcb399dcf7b20eec94f972e933c76f98fbe50
[]
no_license
wjddn1892/PycharmProjects
05cacb25658ba1360adf7d29eab72e9b01d6273c
9166411102cb773e2f3159bfbea15f014688e840
refs/heads/main
2023-06-09T09:10:07.140920
2021-06-25T22:53:06
2021-06-25T22:53:06
380,072,757
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
import tkinter.messagebox as msgbox from tkinter import * root = Tk() root.title("My GUI") root.geometry("640x480") # 가로 * 세로 Label(root, text="메뉴를 선택해주세요").pack(side="top") Button(root, text="주문하기").pack(side="bottom") # 메뉴 프레임 frame_burger = Frame(root, relief="solid", bd=1) frame_burger.pack(side="left", fill...
[ "wjddn1892@yonsei.ac.kr" ]
wjddn1892@yonsei.ac.kr
5b84a703ec75e8757b276d78be3ebc336ecd8d4f
388938ff64adb54f5fcac724b1fbe97947bf6879
/table_maker.py
893f67e1277e359ae4eb79d3ef8b87af803eb899
[]
no_license
shadypollen/Table-maker
3939d8acb1d3edce3fc94e561f2648e01115e529
1fada0019275ecb6d50fa34a4ab1c8e05272a6c3
refs/heads/master
2021-05-07T02:03:51.091432
2017-11-27T11:02:53
2017-11-27T11:02:53
110,397,326
0
0
null
null
null
null
UTF-8
Python
false
false
1,322
py
masterList = [] miniList = [] def findLongestWord(inputList): maxLength = 0 for row in inputList: for word in row: if len(word) > maxLength: maxLength = len(word) if maxLength % 2 == 0: return maxLength else: return (maxLength+1) def findLongestRow(inputList): maxLength = 0 for row in inputList: ...
[ "coplayr@hotmail.com" ]
coplayr@hotmail.com
a6e0a4db84676dc4a1d53ff97516530d1b4aabbb
3fcdeb9d0f447b6f8af0f98c712345f768535fca
/image_classifier/models.py
b1fbe9d53962971a5904daf46b940751cf1d8871
[]
no_license
jl-massey/DSND_Term1
983b219ecad4de5092ed1690615dd46add9cfa51
994aac5af878e0d28c82621e15bf4be090e4780c
refs/heads/master
2020-03-22T17:50:01.396571
2018-09-25T15:28:25
2018-09-25T15:28:25
140,419,124
3
1
null
null
null
null
UTF-8
Python
false
false
3,023
py
import re from collections import OrderedDict from torch import nn, optim from torch.optim import lr_scheduler from torchvision import models def get_clf(in_features, hidden_units, num_classes): """ Create new classifier to replace the one from pre-trained models. """ layers = OrderedDict([ (...
[ "jim.massey@team.telstra.com" ]
jim.massey@team.telstra.com
31fb114ed920fcfae01485c2a6e8fb4bcf9ab0ff
bbfa3b7ee2008617d33a7c5c7770d22e1aa8836b
/Optimization/dynamic_programming.py
45645d59bdddc6e1e046f26ab79ad1f62240638a
[ "MIT" ]
permissive
luoshao23/ML_algorithm
1a0046ce9c3abed029cceffa35defe57fffa82b2
6e94fdd0718cd892118fd036c7c5851cf3e6d796
refs/heads/master
2021-08-07T08:38:16.102455
2020-03-18T06:49:43
2020-03-18T06:49:43
92,467,636
4
1
MIT
2018-01-16T05:01:29
2017-05-26T03:20:08
Jupyter Notebook
UTF-8
Python
false
false
7,776
py
from random import random, randint, choice from copy import deepcopy from math import log class fwrapper(object): """docstring for fwrapper""" def __init__(self, function, childcount, name): self.function = function self.childcount = childcount self.name = name class node(object): ...
[ "luoshao23@gmail.com" ]
luoshao23@gmail.com
60e22be7f8c509907e04e928cd184da9fea7a204
7e36fe29ac620ca8670d8f8b2b51c3999dcf7b46
/AOD_pi0/python/ConfFile_cfg_delme.py
0b1d280fcabe968808026ebf897d04b7e9afea46
[]
no_license
greyxray/AOD_pi0_study
9ac8c2034b10b99a7a438d57c68c77422a5646a2
689032500479f61b06bf06727eadddcaef8d6aae
refs/heads/master
2021-05-01T19:29:40.693030
2018-01-25T13:11:25
2018-01-25T13:11:25
71,875,177
1
0
null
null
null
null
UTF-8
Python
false
false
7,744
py
# Use the tracks_and_vertices.root file as input. import FWCore.ParameterSet.Config as cms #from Configuration.AlCa.GlobalTag_condDBv2 import GlobalTag #from Configuration.AlCa.GlobalTag import GlobalTag #from RecoVertex.V0Producer.generalV0Candidates_cfi import * process = cms.Process("KSHORTS") # Use the tracks_and...
[ "greyxray@gmail.com" ]
greyxray@gmail.com
fd6c6f993ade359571a64eedbba53a47e7fb14ff
c6551fc92088db6d2a8481fd974994f1880ec198
/evita/dom/components/highlights/scripts/tokens.py
242a2ec517c875ffe135dbfa94583b9f9a761d5a
[]
no_license
eval1749/evita
dd2c40180b32fada64dce4aad1f597a6beeade8a
4e9dd86009af091e213a208270ef9bd429fbb698
refs/heads/master
2022-10-16T23:10:07.605527
2022-10-04T07:35:37
2022-10-04T07:35:37
23,464,799
3
3
null
2015-09-19T20:33:38
2014-08-29T13:27:24
C++
UTF-8
Python
false
false
2,781
py
# Copyright (c) 2016 Project Vogue. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. class Token(object): def __init__(self, start, end): self._end = end self._start = start @property def is_action(self): r...
[ "eval1749@gmail.com" ]
eval1749@gmail.com
33b5d9d75030c1e89f560514f82d4153ce2520fa
74c28790fb0ad2a6cdf691adbe445b4bed5a05e9
/test/test_RosTree.py
b8e9b7c38c6dad151e63ad41e70af732fc79bcf4
[]
no_license
zdenekmaxa/a2d2
3ec9a28e381b6dcb115086d478670172727ba70c
8ef13c192713b1577440321400d165bfe7889541
refs/heads/master
2021-01-21T18:50:39.070918
2017-05-22T18:52:03
2017-05-22T18:52:03
92,087,243
0
0
null
null
null
null
UTF-8
Python
false
false
1,589
py
""" Testing of the application logic - app package """ execfile("../Config.py") import pytest from Config import Config as conf from ros.RosDummyRetriever import RosDummyRetriever from ros.RosTree import Tree from util.Logger import Logger """ info (DataChannel items (ROBs) per system in testing data): robs: TI...
[ "zdenek@endpoint.com" ]
zdenek@endpoint.com
efc8b177d2d35e7fa35af7c79d8759abeeae8a66
83f798c2f6041b5b290f8268094b6cb2fbb5ceb0
/lab3/3-moving-target/attack_target_3.py
b44f6f8f963af06a425e7fa21472f26b96a86765
[]
no_license
hanzheteng/Security
482b5c9026d0b76e440b4a6cbf5455c735f4ece5
6babf177c64eb236ccd39c5e5165a070e6426b42
refs/heads/master
2021-04-12T09:03:02.537684
2018-03-26T18:29:05
2018-03-26T18:29:05
126,871,775
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
#!/usr/bin/env python2 import os import struct import subprocess as sp def p32(n): return struct.pack("<I", n) # < little-endian; I unsigned int def p64(n): return struct.pack("<Q", n) # Q unsigned long long def ps(n,s): return struct.pack(str(n)+'s', s) # s char[] if __name__ == '__main__': ...
[ "hanzheteng@outlook.com" ]
hanzheteng@outlook.com
2b4dafb5eaa8bf9ea0c3add54780e18e4e2070a3
450b8673dd431f0e60acc3ff7c87ff611c8077aa
/utils.py
aeb4b5b8212085f9a6b5ce6249a13f53c8b01c6e
[ "MIT" ]
permissive
alexrios22/TradeBot
eaa999bcf427f691c99ca828e05c9a9cdee2d041
1eeeadf4f621d8cd09de6fc9748a230532ce707a
refs/heads/main
2023-06-01T12:43:20.958092
2021-06-27T14:28:31
2021-06-27T14:28:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,406
py
import matplotlib.pyplot as plt import pandas as pd import numpy as np import math import os from datetime import timedelta, datetime from dateutil import parser import logging import json import config log = logging.getLogger() logging.basicConfig(level=logging.INFO) binsizes = {"1m": 1, "3m": 3, ...
[ "alexanderpieper@alexanders-imac.fritz.box" ]
alexanderpieper@alexanders-imac.fritz.box
0fa49fa56c48070a993878b291fcdc4f3d1e9b76
8e028724e32ca8f5de409eb8b47ade47838e04ef
/Session 6/bmi_calculator.py
7de26a582075c28af4bc74530b030110dcaffe33
[]
no_license
lmendez2/mis-3640
99883d06d8e071428a7d959113779b1e7cf196d2
604ba4b08f0e8e1232d8ddc0ff2a4f43b2ce92ec
refs/heads/master
2021-01-25T16:53:47.224837
2017-12-02T03:20:25
2017-12-02T03:20:25
102,031,148
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
def calculate_bmi(weight, height): bmi = (weight/(height**2)) * 703 """print("your bmi is", bmi)""" if bmi < 18.5: print('your bmi is ' , bmi ,'you are underweight') elif 18.5 <= bmi < 25: print('your bmi is' , bmi , 'you are normal weight') elif 25 <= bmi < 30: print...
[ "lmendez2@babson.edu" ]
lmendez2@babson.edu
a720391e1a333720eee9a268e65ed79d9042c4d7
72aca4d643364c31718761540196c01505c4cfc0
/exercise1/number_converter/scripts/listener.py
acf47d416816c1f5ce06e866a7a33a025301b42d
[]
no_license
viktorialinnjansson/kthfsdv
af2c06313f4d689c4be3d14f7c62b31aee0a43a4
b95b205c600e13eb0e37a23df21b938952c123c2
refs/heads/master
2022-12-17T13:40:04.745849
2020-09-22T08:55:08
2020-09-22T08:55:08
297,290,686
0
0
null
null
null
null
UTF-8
Python
false
false
1,095
py
#!/usr/bin/env python ## This code is based on the listener.py provided in the beginner_tutorial on ROS. # listener.py contains a subscriber and a publisher. It subscribes to a topic and converts the recived data before publishing it to another topic. # Subscribes to /jansson and publishes to /kthfs import rospy ...
[ "noreply@github.com" ]
noreply@github.com
c590af7d21818335657d6bf71f907582d1e8f66f
a7c9ff94c4cd21353172d2ba8e115817aa254e85
/tracker.py
ee6905b9b1e36196c0744a30c3c3570525ec0c30
[]
no_license
pedramha/ps5-price-tracker
912a0734c2dff6e951041a01d837dcce970d8d4e
8832bf33eaa616446e86c4523698345d54818b14
refs/heads/master
2023-03-25T00:29:07.229039
2021-03-18T21:17:06
2021-03-18T21:17:06
349,214,490
0
0
null
null
null
null
UTF-8
Python
false
false
3,096
py
import selenium from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.action_chains import ActionChains from selenium.common.exceptions import ElementNotInteractableException, NoSuchElementException, StaleElementReferenceException from random import randint impor...
[ "pedram.hamidehkhan@gmail.com" ]
pedram.hamidehkhan@gmail.com
2a3d8961563e89dcb757353135d672bbe965cc46
907c7a22a05aade47eb77c2dd5412a15d2daf337
/traceroute/traceroute1/demo4.py
00e5159d6dec15427cf375cdd9740c2e70468c67
[ "MIT" ]
permissive
MinTimmy/TCP_IP_Protocol_Suite
2948c936434fa8a3a95da21249e49ef811c32cae
d2d1475e9d587f2e7ebce3d0800e901d09759052
refs/heads/main
2023-02-10T04:15:13.175766
2021-01-06T15:29:06
2021-01-06T15:29:06
315,178,678
0
0
null
null
null
null
UTF-8
Python
false
false
4,002
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Multi-source traceroute with geolocation information. """ import datetime import json import optparse import os import re import signal import sys import urllib import urllib2 from subprocess import Popen, PIPE USER_AGENT = "traceroute/1.0 (+https://github.com/ayeowc...
[ "timmygood6590@gmail.com" ]
timmygood6590@gmail.com
544a7a2c7591eb9b2aa97f94f79c5cb8ab9b31da
f73a6b3bb027484b8f3a1007bbb3b50156f66357
/search_service/milvus_2x/engine.py
d8be2c2d055497c8a9c5112f0f463456e9c155c0
[]
no_license
lijiunderstand/face-rabbitmq
d55c0972505ba419fe8d566341a910b6cee94d67
d244e160b9150458f83812e31ecdf142854add01
refs/heads/master
2023-08-08T00:59:22.891863
2021-08-28T05:15:48
2021-08-28T05:15:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,026
py
import os import sys import time from pymilvus_orm import connections, Collection, DataType, FieldSchema, CollectionSchema class SearchEngine: def __init__(self, milvus_config): self.milvus_config = milvus_config self.connect() self.collection = self.create_collection() def connect...
[ "minhdc@fabbi.io" ]
minhdc@fabbi.io
7d8682b642881c8c77975a915609b9d0271efe14
cc5b1969668c629963c6c1364c716c0ed9fa8157
/ACS502/ACS502_HW6/ACS502_HW6_Q1_PulsatingSphere.py
52e86dc857cbd105bd401d2816ea502fe6f01225
[]
no_license
jasseratops/PSUACS
7ba32eb4f211f8a844c230348566779a9f351dee
59afb25862ddeea91c172067942e9850fb088604
refs/heads/master
2020-03-07T16:24:34.799100
2020-01-06T20:50:19
2020-01-06T20:50:19
127,581,477
0
0
null
null
null
null
UTF-8
Python
false
false
498
py
import numpy as np from numpy import sin, cos, tan, pi, exp, log10 import sys def main(args): pr = np.sqrt(2.)*2. r = 5. r0 = 0.01 rho0 = 1.21 c0 = 343. ''' rho0 = 1026. c0 = 1500. ''' f = 500. omega = 2*pi*f A = (pr*r)/(omega*rho0*r0) k = omega/c0 u0 = np.s...
[ "mhalshehri92@gmail.com" ]
mhalshehri92@gmail.com
0e04e4150f2d60b98d247fda4808764e4ee67a52
ac1434f4f8e029191410355ea3b88f0c4a5d1b98
/speaker/model/speaker_diarization.py
d6e7451b972315bfed0613d06773cb7df3e31fb4
[]
no_license
oukaja/ML-SpeakerDiarization
9ac2ed2ade296f9ed439af20d890fc261a55a2b0
9e5ef6135bba7be5be665bc26eafa77f6e7685a3
refs/heads/master
2020-03-18T23:23:30.224112
2018-06-16T03:12:11
2018-06-16T03:12:11
135,399,476
3
0
null
null
null
null
UTF-8
Python
false
false
3,632
py
""" unsupervised: process: feature extraction --> kmeans(silhouette) """ import os import sys sys.path.append('../') import numpy from scipy.spatial import distance import scipy.signal from speaker.utils.feature_extraction import * from speaker.utils.utils import * from speaker.utils.vad import * from speaker.model.uns...
[ "oukaja.mehdi@gmail.com" ]
oukaja.mehdi@gmail.com
2e6f4aac1213e10fc80a3583004a9ba861baeaf4
a1dc9b5030de30b50d36de690faa8ae76a0ab89d
/CursoEmVideo/pythonProject/ex076.py
e8e276f2c52a66e9846678ad58cd49e2bc0fb329
[ "MIT" ]
permissive
lalapapauhuh/Python
6c1816f822bf6a56806941fc49c8fdaa4282f175
1454263b46d66a0b19b7a2fd1b465800fe95a2c8
refs/heads/main
2023-02-21T07:07:42.853324
2021-01-25T23:05:15
2021-01-25T23:05:15
332,911,059
0
0
MIT
2021-01-25T23:15:35
2021-01-25T23:15:34
null
UTF-8
Python
false
false
496
py
#lista de preços com tupla precos = ('Lápis', 1.75, 'Borracha', 2.00, 'Caderno', 15.90, 'Estojo', 5.00, 'Transferidor', 4.00, 'Compasso', 9.99, 'Canetas', 12.00, 'Mochila', 89.90, 'Livro', 54.90) print('-'*40) print(f'{"LISTA DE PREÇOS":^4...
[ "51422880+cassio645@users.noreply.github.com" ]
51422880+cassio645@users.noreply.github.com
cc4c2f20b1939c934d2cbe1ab8dbed8144b4bf14
e319c617f69238d2e83a0c3e56f489d6bb1ec270
/TweetyApp/wsgi.py
c691a06c49511a4f1f37786725f03293133f8138
[]
no_license
goku00z/Tweezy
ed1af39909e375576a623046e46583545536fbbb
6ac139dba7260dbe353adafd35939cb605cdecb9
refs/heads/master
2020-04-12T20:28:59.343569
2018-12-14T16:30:15
2018-12-14T16:30:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" WSGI config for TweetyApp project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SET...
[ "aswanth9495@gmail.com" ]
aswanth9495@gmail.com
71d5356e360be8c5c36a70148cb64f067cde5ead
1518510f188ea81016a16ac6f0eb326cdf57b15c
/app_usage_api/views.py
17e22b4caf15976a7b6d5c5b3ebbb276d8c07e9d
[]
no_license
anilsoni7/api
24c6c74a349c703b24f64329bdc5416d7be5b051
35a2e133014aea36954b9011f320656c72e6751c
refs/heads/master
2020-08-23T13:02:36.134095
2019-11-20T09:07:44
2019-11-20T09:07:44
216,622,327
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
from django.http import HttpResponse def index(request): return HttpResponse('build the following url. api/predict/{application name}/{user_id}', )
[ "anky.soni8460@gmail.com" ]
anky.soni8460@gmail.com
75fa814e60eee68846809c4461f321aaddb9fd38
170fb25b53f0b2fac8e37a0997b867c1f912a9d9
/treestories/blog/migrations/0004_auto_20190521_1246.py
c1cc388476d256e304d265c6af442848c08ca1a8
[]
no_license
wobin1/treestory
bb7ac390cf4200caebbb4cd0e878156047807780
02557009a26d2b06a62e3ae8c92d2115b8655ca7
refs/heads/master
2023-04-30T19:54:07.810488
2019-09-19T10:33:33
2019-09-19T10:33:33
209,525,284
0
0
null
2023-04-21T20:37:58
2019-09-19T10:26:41
CSS
UTF-8
Python
false
false
380
py
# Generated by Django 2.2.1 on 2019-05-21 11:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0003_author_profie_picture'), ] operations = [ migrations.RenameField( model_name='author', old_name='profie_picture...
[ "nathanielmusa3@gmail.com" ]
nathanielmusa3@gmail.com
4773ec289b9d46bdcfba4a3a5c993bd747310c3a
165d2fd2552a765bdf12ad1b8977eaf2f2778f3d
/sendsms.py
424e74a0306e5a800c26ad5baca4d11c78f3c18e
[]
no_license
dnlfdz/dashyn
c5a63998f0fedc71738b2ac787fbf1020dd032f5
bba0bc456c8ad5afc60d639453bc44309863a9eb
refs/heads/master
2021-05-29T04:02:13.370286
2015-08-24T03:18:08
2015-08-24T03:18:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
464
py
from twilio.rest import TwilioRestClient # Your Account Sid and Auth Token from twilio.com/user/account account_sid = "[YOUR TWILIO ACCOUNT ID]" auth_token = "[YOUR TWILIO TOKEN]" client = TwilioRestClient(account_sid, auth_token) message = client.messages.create(body="Dashyn Alert Triggered", to="+10000000000...
[ "dfernandezio@users.noreply.github.com" ]
dfernandezio@users.noreply.github.com
f15d0dca92a918202cf43006bec11ac56ebcbf18
4a0ae3fa8ad99a09395121c1699104741d279465
/Models/Oiseau.py
4e7f3a5bb7b62d501c844e31d9092e5a3e6b37fe
[]
no_license
TuTuKLK/annimals
edd8fd62d96c279b74bc89193490b3c54faccf13
43d4dc0903d0eb77f9b3cb702f7f575748756358
refs/heads/master
2023-06-28T09:45:38.836392
2021-07-16T08:34:45
2021-07-16T08:34:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
from Models.Beast import Beast from datetime import date class Oiseau(Beast): def __init__(self, nom, poid, taille, sexe, dateNaiss, arrive,couleur:str,cage:bool): super().__init__(nom, poid, taille, sexe, dateNaiss, arrive) self.Couleur=couleur self.Cage=cage def __str__(self): ...
[ "geant.vert42@gmail.com" ]
geant.vert42@gmail.com
0d7184a80475f7a0641e24853ef565479c0e124d
c6d4fa98b739a64bb55a8750b4aecd0fc0b105fd
/ScanPi/QRbytes2/64.py
3f5c349b6d306976ab708a09143df5219a533f84
[]
no_license
NUSTEM-UK/Heart-of-Maker-Faire
de2c2f223c76f54a8b4c460530e56a5c74b65ca3
fa5a1661c63dac3ae982ed080d80d8da0480ed4e
refs/heads/master
2021-06-18T13:14:38.204811
2017-07-18T13:47:49
2017-07-18T13:47:49
73,701,984
2
0
null
null
null
null
UTF-8
Python
false
false
23,746
py
data = [ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, ...
[ "lists@quernstone.com" ]
lists@quernstone.com
b334ea3a2f976c7ebb9e52757e6edf9b89369ad6
fca71c1226a9c0c8ca22b53bdcf1ba35765ab65a
/create_plists/singles/trance
0ec76d22a86f317bacd3a4cf482cd91921f63415
[]
no_license
ssem/passwords
a6b9587aa18eb98cbe24e36294f007ac6c5844d0
f88280b3aeb022c4e496fd67f21fd29acbf4554d
refs/heads/master
2016-09-05T16:11:16.602343
2015-08-21T06:15:16
2015-08-21T06:15:16
31,722,653
0
0
null
null
null
null
UTF-8
Python
false
false
269
#!/usr/bin/env python import requests http = requests.get('http://www.trancetop1000.com/TranceTop1000-2013.html') for x in http.content.split('\n'): if '.' in x and '<br />' in x: print x.split('.')[1].split('-')[0].split(';')[0].rstrip(' ').lstrip(' ')
[ "ssem30@gmail.com" ]
ssem30@gmail.com
7b23862ee9a50cd072b991a23d13e35a659f96a4
799cfbd2c6426ffa7ab5f188bd647d572051914c
/plusOne.py
995938a479724e5833e9a8f58a820a586452986d
[]
no_license
van950105/leetcode
af8d2ded307afbfbf67df604a69406f9ab5ef1b0
7b6cbab37e13ff1d764b852bc1794ecbfd4feefe
refs/heads/master
2016-09-03T06:22:43.451203
2015-11-12T18:49:38
2015-11-12T18:49:38
25,235,439
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
class Solution(object): def plusOne(self, digits): """ :type digits: List[int] :rtype: List[int] """ if digits==[]:return[1] if digits[-1]<9: digits[-1]+=1 return digits else: temp=self.plusOne(digits[:-1]) temp.append(0) ...
[ "ryan.gm.nb@gmail.com" ]
ryan.gm.nb@gmail.com
181554a3189b38654b3ad1a23b82d77b14e45fe3
707cb6b0ffc789aabab2b416af9b39819d94e5ab
/problem004.py
cc5cf92236e89d8c9e3d9dff96d676f0acb5774e
[]
no_license
tomasbmp/projectEuler100
ee6dbbdf4138474fdd761dfab6da347add988d88
c8c59086d0bd51a7bedad97d7b6e61125c3bb522
refs/heads/master
2020-12-04T16:56:20.133111
2020-01-17T10:35:22
2020-01-17T10:35:22
231,844,701
0
0
null
null
null
null
UTF-8
Python
false
false
1,399
py
''' Project Euler: Problem 4: Largest palindrome product A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99. Find the largest palindrome made from the product of two n-digit numbers. ''' def isPalindrome(n): # returns True if numbe...
[ "noreply@github.com" ]
noreply@github.com
aa6f5dbbf0276ea126518244a991ca3492142ea4
d561d9d796398cff7a97d20ea308e1a4ce559982
/data_analytics/models/neural_network.py
c5ef018c540ae7b01e397eeeb5c396f5517d1227
[ "MIT" ]
permissive
Botazio/UCD-DublinBus
db8585dc3692b633152ca609bd17ed0fd5b8c405
35955cd9166b086f59157d23ed05a8ffcf82b617
refs/heads/main
2023-07-16T09:15:51.472348
2021-08-24T19:49:57
2021-08-24T19:49:57
375,993,567
5
0
null
null
null
null
UTF-8
Python
false
false
714
py
import argparse from .utils import train_all_stop_pair_models # Command line argument to turn on downloading of new data parser = argparse.ArgumentParser() parser.add_argument('--grid_search', help="Perform Grid Search", action="store_true") parser.add_argument('--start_num', type=int) parser.add_argument('--end_num'...
[ "noreply@github.com" ]
noreply@github.com
8a84f66dfe79a0bfd04b3d73743e2b0e928f5739
2f5418faba0d8687629790954e2681c6b7cc52d0
/test.py
f3c0c5db82e28f72c2b966ecc8e02d39dca59188
[]
no_license
enczilada88/test_Sylwia
2b55cb9b4140867db1f5e6b840c306fd40396879
44a25152dcfd1feec461aa3cb4acdeb0be89768e
refs/heads/master
2023-08-17T15:12:08.216028
2023-08-02T14:00:24
2023-08-02T14:00:24
360,966,301
0
0
null
null
null
null
UTF-8
Python
false
false
546
py
#zadanie1 shopping_list={ "piekarnia": ["bagietka", "kajzerka", "grahamka","chałka"], "warzywiak": ["marchewka", "cebula","sałata"], "mięsny": ["schab", "szynka"] } number_of_products=[] for shop, products in shopping_list.items(): for n in products: Products=[] for n in products: ...
[ "pacek.sylwia@gmail.com" ]
pacek.sylwia@gmail.com
709075625a1876a6074c6a94228fbb226ea52052
3ef79960a475d8297eed1e45f736311e7ceb7b52
/components/formbuilder/formbase.py
625c4628f41a85ccb80c630479b2a146f16acb04
[]
no_license
crsmit1979/InvestorDeals_Python
8ac98aa78e0a75e96ce1e8066fa113913b238c64
adcab263da5c7ac56ab37de86ca4b28ce0fbfadf
refs/heads/master
2022-12-13T17:19:18.404561
2019-03-28T07:08:34
2019-03-28T07:08:34
178,141,228
0
0
null
2022-03-21T22:16:53
2019-03-28T06:34:21
CSS
UTF-8
Python
false
false
9,819
py
from components.formbuilder.uicomponents import FormObject, FormSeperator, NonFieldObject, FormHeader from flask import render_template, redirect class CustomFormBase(object): def __init__(self, request, endpoint_name, caption, method=None, action=None, sub_text=None): self.errors = [] self.method ...
[ "crsmit1979@gmail.com" ]
crsmit1979@gmail.com
104322e5df9b48fb37ff88995b6a1e73cb6baafc
fab30a72ec07ff3a899fdc3af16462a3fc937a15
/Primer_practica/suma1.py
aec55035f8fd5db9e779e0a3bf0d058d508b6632
[]
no_license
pptscdia2021/pp12021grupo8_a1-practica-profesionalizante-g8-a1
b7d78376fc5fa6778c08539981f22ee897a0b6e8
4845ae25c5d2b7f70e5431824350c7322d8ff187
refs/heads/main
2023-09-03T03:03:46.256248
2021-11-15T22:24:52
2021-11-15T22:24:52
403,770,790
1
0
null
2021-11-15T01:11:25
2021-09-06T22:14:31
Jupyter Notebook
UTF-8
Python
false
false
151
py
# Suma, 3 parámetros, devuelve la suma de los 3. parametro1 = 5 parametro2 = 4 parametro3 = 2 suma = parametro1 + parametro2 + parametro3 print(suma)
[ "eric92rodriguez@gmail.com" ]
eric92rodriguez@gmail.com
c577b1d532d0cbd198db061eb2c755ad59074292
31be0b5989383b3e433ccd787a978e3327953ebb
/challenges/codewars/smallest_int_in_list/solution.py
415bc4f621418003f738d43278a61de736b49120
[]
no_license
TyAssis/taylon-gym
499e570ef8bb80b59716b29ff54dbdc82d476fcd
8e0420f972116d86c0db139d8f6e7bd1b19892c7
refs/heads/master
2023-09-02T21:13:38.138975
2023-08-23T22:02:21
2023-08-23T22:02:21
177,436,219
0
0
null
2023-03-06T07:41:51
2019-03-24T15:55:01
JavaScript
UTF-8
Python
false
false
140
py
def find_smallest_int(arr): # Code here min = arr[0] for num in arr: if min > num: min = num return min
[ "noreply@github.com" ]
noreply@github.com
85e96660bb29446316226abba4855c1e26b4b831
926f18a3c29ea76f736bfa29da8cc4fe899b1032
/dssp_api.py
aa8e6bd945c456d9e69565f1839f382c429863b4
[]
no_license
SherlockedTxh/DGL_GAT
39b0b733b933fff4f1646424f9b44951d8685f6f
631c7a318699cb7e802f719d817b30c5568ed3e4
refs/heads/master
2020-09-29T09:38:47.663388
2019-12-10T02:38:11
2019-12-10T02:38:11
227,011,404
0
0
null
null
null
null
UTF-8
Python
false
false
3,121
py
""" This example client takes a PDB file, sends it to the REST service, which creates HSSP data. The HSSP data is then output to the console. Example: python pdb_to_hssp.py 1crn.pdb http://www.cmbi.umcn.nl/xssp/ """ import argparse import json import requests import time def pdb_to_hssp(pdb_file...
[ "noreply@github.com" ]
noreply@github.com
9f89cd804a35d8fb1df192bfec08abe49386513a
3784495ba55d26e22302a803861c4ba197fd82c7
/src/torch/legacy/nn/SpatialConvolutionMap.py
e901140a528bb3805879a4884c68b43e1afbd26d
[ "MIT" ]
permissive
databill86/HyperFoods
cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789
9267937c8c70fd84017c0f153c241d2686a356dd
refs/heads/master
2021-01-06T17:08:48.736498
2020-02-11T05:02:18
2020-02-11T05:02:18
241,407,659
3
0
MIT
2020-02-18T16:15:48
2020-02-18T16:15:47
null
UTF-8
Python
false
false
4,384
py
import random import math import torch from .Module import Module # TODO fix THNN... class SpatialConvolutionMap(Module): class maps(object): @staticmethod def full(nin, nout): ft = torch.Tensor(nin * nout, 2) p = 0 for j in range(nout): for i...
[ "luis20dr@gmail.com" ]
luis20dr@gmail.com
7b490f80ae0998de959f9d75b7c9872a0e7c11ea
72a3f41a94202d6d378c222c5cfa9e68155109bb
/uralbrick/tags/0.1/catalogapp/api/__init__.py
65b560c47a39864c67faf72064810cdf4cf0f98f
[]
no_license
vakhov/python-django-projects
c312b8bcd94aa448a2678c156ff4936e4a68f668
6f296aa75d7692eb5dcb68ef4ce20cadee9dc9e6
refs/heads/master
2021-01-17T12:12:56.730072
2012-07-25T16:40:45
2012-07-25T16:40:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
60
py
import brands import goods import sections import specfields
[ "succubi@succubi-Inspiron-1501.(none)" ]
succubi@succubi-Inspiron-1501.(none)
d8250130c9b27e5f20d0082636fa0685baae01c8
016747529a09dd12ef9979e778d0bd700c6e54c6
/Primitve_Scrapers/Old Scrapers/EllimanCommercial_Scraper.py
21de57852ef9eb102d4ec592555afb621518abdf
[]
no_license
goobyme/WebScrapers
c8cdc1627c73ea8f86a64d510f7816b89898e7c4
5e6bbdd0761236ee4886db991b40d202347eb22c
refs/heads/master
2021-09-07T07:56:01.236791
2018-02-19T18:36:58
2018-02-19T18:36:58
116,184,649
0
0
null
null
null
null
UTF-8
Python
false
false
12,597
py
import requests import bs4 import pandas import re import threading import os import vobject import codecs import logging import shelve THREADCOUNT = 4 SEARCHPAGE = ['https://www.elliman.com/retail-and-commercial-brokerage/team', 'https://thefaithconsoloteam.elliman.com/about', 'https://the...
[ "goobyme@gmail.com" ]
goobyme@gmail.com
d4810533800d1129407933592c365b2f8e48419b
d08ce5c9b1fdd200b1d4de757d9d44f9acc0a54b
/MxOnline/apps/users/apps.py
3680e180cafa9e04aabfed7a6c2d66e80d175436
[]
no_license
smartwange/pygame
82ae829f1448b877473428aa3b857d55af96588c
75caf2cd360d4badfe57a6e4ff2a00c06f10d1f3
refs/heads/master
2022-05-24T14:13:37.825044
2020-05-11T03:48:11
2020-05-11T03:48:11
197,743,887
0
0
null
2022-04-22T23:18:02
2019-07-19T09:24:58
Python
UTF-8
Python
false
false
150
py
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'apps.users' verbose_name = '用户' # 设置后台管理名称
[ "smartwange@gmail.com" ]
smartwange@gmail.com
7fc5fc8829de1dcf123347fcd4404cc65ca1a795
2c68f9156087d6d338373f9737fee1a014e4546b
/src/privatedns/azext_privatedns/vendored_sdks/models/aaaa_record_py3.py
2cd662761ff9da8073fe44d4aa1f2ee418445ab3
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
anpaz/azure-cli-extensions
8b0d4071c49840da9883f13cb0fd1f4515246ee0
847fd487fe61e83f2a4163a9393edc9555267bc2
refs/heads/master
2023-04-23T17:22:53.427404
2021-01-29T17:48:28
2021-01-29T18:01:33
257,394,204
2
0
MIT
2021-01-28T10:31:07
2020-04-20T20:19:43
Python
UTF-8
Python
false
false
918
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "wx44@cornell.edu" ]
wx44@cornell.edu
684f41291c5649cc6d2f5bf67074bc4427f0428d
52b3bb79b523d24a46e82bb950e3de9507992d50
/1962(Há Muito, Muito Tempo Atrás).py
06b8de7ae9225e9e4ba96efb245d1732d8a65f4b
[]
no_license
danielleal89/URI-Desafios
b70b51248c855ad0d65364c9015f2a030e7ce469
c6f3e4b428ef11aa40cd70c873135bfa0ebb6e29
refs/heads/master
2020-12-19T08:13:14.042942
2020-05-08T01:21:38
2020-05-08T01:21:38
235,676,461
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
N = int(input()) for i in range(N): ano = int(input()) if ano >= 0 and ano < 2015: calc = 2015 - ano print('{} D.C.'.format(calc)) else: calc = ano - 2014 print('{} A.C.'.format(calc))
[ "noreply@github.com" ]
noreply@github.com
f50d8b38ac25dae735bc905b38b587c301cc50f2
60158458117d4ea9e1b232a6835c2eb0f945f6a5
/deteccao_bordas3.py
e50dc2fcb46fafce1183f497a573df4a5c479859
[]
no_license
Ap0c-dev/Trabalho-Final-Processamento-Digital-Imagens
76b6761260bb3fb941b1dcd87cbcdca0ac28b30a
3260dfd6bd4b2b49731ae76c72511ff19f996cd1
refs/heads/master
2023-06-09T10:15:50.025010
2021-06-27T07:00:28
2021-06-27T07:00:28
380,673,017
0
0
null
null
null
null
UTF-8
Python
false
false
363
py
import sys from PIL import Image, ImageFilter if __name__ == "__main__": for i, arg in enumerate(sys.argv): print(f'Argument: {i}: {arg}') imagemOriginal = Image.open(sys.argv[1]) imagemComBorda = ImageFilter.imagemOriginal((3,3), (0, 1, 0, 1, -5, 1, 0, 1, 0), 1, 0 ) imagem = imagemOriginal.filter(image...
[ "tiago.barros@estudante.iftm.edu.br" ]
tiago.barros@estudante.iftm.edu.br
a5542693066d30945f70883eb693b408c6cd9c94
5e5760f0abe59e5ba6ac5961696c1e452e6d9c3d
/app.py
3e14cbead0f76966ea32e117702f51656c5d3f84
[]
no_license
ragehegy/MyValidator
d920a1ba41199f2d631531e9a1d3a38bff82c11d
196ef780d37d8f2e3df50fd7c7ec3d363b0c90d3
refs/heads/master
2023-05-30T04:50:30.008820
2021-06-11T14:12:25
2021-06-11T14:12:25
376,045,819
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
from MyValidator import jsonValidator, xmlValidator if __name__ == "__main__": v = xmlValidator("trans/transaction.xml") v.parse() print(v.validate("amount", int)) print(v.validate_schema("schema.xsd")) v2 = jsonValidator(path="trans/transaction.json") v2.parse() print(v2.validate("amount"...
[ "mhmdrgh@gmail.com" ]
mhmdrgh@gmail.com
28b571d079469019f39c67f073e097e294b1368f
b29ea4257f3d843fe90f288c9d1f5b0294dd298b
/plane.py
124b48e4e5f6a731e510dc3401d766f0da17b55b
[]
no_license
zqy628/pygame
0a536cc915a7cc7e72a0c6b3c9d1bf42555053ec
dc8ddcf10ffd50a81e4337e574d734aa4e936579
refs/heads/master
2020-12-02T11:35:08.266060
2017-08-05T13:12:05
2017-08-05T13:12:05
96,657,104
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import pygame class Plane(object): def __init__(self): self.image = pygame.image.load('plane.png').convert_alpha() self.restart() def move(self): x, y = pygame.mouse.get_pos() self.x1 = x - self.image.get_width() / 2 self.y1 ...
[ "191155395@qq.com" ]
191155395@qq.com
a0666ae354f99f210c7f502530174ecfd0ea446d
5ad869f2db5e392e7961f4a71fe337ee52e2c9d7
/don't-change/lock.py
def8005a162414a799a29141f083a8d064622439
[]
no_license
BranchManager/Cryptography
1ebbe97adef61ef119ea105fa715a00f9b65aee7
d920a6607d99e3e9b637accd1d6e63a7a29c9dd1
refs/heads/master
2022-03-31T06:34:57.578046
2019-12-15T06:03:45
2019-12-15T06:03:45
110,993,086
0
1
null
2019-12-15T02:00:55
2017-11-16T16:08:34
Python
UTF-8
Python
false
false
3,049
py
#!/usr/bin/env python3.7 import argparse import sys import os from datetime import datetime,timedelta from cryptography.hazmat.primitives import hashes from cryptography import x509 from cryptography.x509.oid import NameOID from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives imp...
[ "benjamin.a.hawkins@gmail.com" ]
benjamin.a.hawkins@gmail.com
58bfd34c1b2f9a9080584c478ec08520eec7a21a
c386dc879eaed7f2259252665dde91f7d3f79caa
/superlists/urls.py
39a3c719812e6dc94a95c499380b03da3485f64f
[]
no_license
TrueMohsen/superlists_Django1.8
36ff87dd31219ceebcd6768e132cb5751656bb82
d084e93083b23004be5ddfb566b08e12e0ddda73
refs/heads/master
2022-12-14T08:04:43.812119
2020-09-16T20:52:09
2020-09-16T20:52:09
295,984,821
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
from django.conf.urls import include, url from django.contrib import admin urlpatterns = [ # Examples: url(r'^$', 'lists.views.home_page', name='home'), # url(r'^blog/', include('blog.urls')), #url(r'^admin/', include(admin.site.urls)), ]
[ "seaoceania4@gmail.com" ]
seaoceania4@gmail.com
0ce4f358fafb058b2cb332902bd620d22836e630
a9eea089de2de1ff9c6a98fb4fc678c8753f7ed3
/mashup/application.py
43b7ab0a24751cd1c0b826150381671a73cabe5f
[ "CC-BY-3.0" ]
permissive
kevinwalsh23/CS50
4e8b9ff4035238d85946475f7e47b68361836d77
bfbbd440594d766f73d9d532a65f24be6e072245
refs/heads/master
2021-04-26T21:53:13.202566
2018-03-07T04:09:05
2018-03-07T04:09:05
124,171,114
0
0
null
null
null
null
UTF-8
Python
false
false
4,008
py
import os import re from flask import Flask, jsonify, render_template, request, url_for from flask_jsglue import JSGlue from cs50 import SQL from helpers import lookup # configure application app = Flask(__name__) JSGlue(app) # ensure responses aren't cached if app.config["DEBUG"]: @app.after_request def aft...
[ "kevinwalsh23@gmail.com" ]
kevinwalsh23@gmail.com
9e8ce0cf2f9b700f5de7e63609e525789dd3ce7a
796ff82b74183e479d3a1cdaef14578af53d92b1
/data_and_posterior/jolly_seber_model.py
6dc30e17f302cf5bf02c383b3423a2c0ab6e824f
[]
no_license
chiroptera2008/discontinuous-hmc
d92b61a329b84a9d2d1fe9d0ac3d6abc2de369c1
9790a1874480eb2e6c106ef5253760de9cc0c522
refs/heads/master
2021-09-21T01:44:54.650920
2018-08-18T17:33:59
2018-08-18T17:33:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,891
py
import numpy as np import math # Data (sufficient statistics) from the black-kneed capsid data in Seber ( # 1982). n = np.array([54, 146, 169, 209, 220, 209, 250, 176, 172, 127, 123, 120, 142]) R = np.array([54, 143, 164, 202, 214, 207, 243, 175, 169, 126, 120, 120]) r = np.array([24, 80, 70, 71, 109, 101, 108, 99, 70...
[ "akihiko_nishimura@hotmail.com" ]
akihiko_nishimura@hotmail.com
bb5c7a70546fc29a2cb0d9a030c1d4e9556de711
f3c39f8e6e532956f87506ee1cc8ab48feaa9207
/src/hipikat/views/blog.py
9d5e26a2310945b0e6fe723f5b8a45d94fcb6ef4
[ "BSD-2-Clause" ]
permissive
hipikat/hipikat.org
979dc4d1f29e40e843a56798f1036c22d2371660
836b703d3dded2398db524b8177fba3c41f2c80f
refs/heads/master
2020-04-23T19:02:23.863013
2014-03-15T08:17:04
2014-03-15T08:17:04
12,207,064
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
from elephantblog import views as elephantblog_views from elephantblog.models import Entry class BlogIndexView(elephantblog_views.ArchiveIndexView): paginate_by = None def get_context_data(self, **kwargs): context = super(BlogIndexView, self).get_context_data(**kwargs) context['archive_title...
[ "adam@hipikat.org" ]
adam@hipikat.org
e2a338049711a6ad6960e1c4ee5c4c2dfd2710f1
12c18d9d0b210698f61f70f458a46647fc99356c
/p57.py
262e70bded90556b2b859ec765ea7307ee71e68f
[]
no_license
ddgvv/dd
503a64b08e12de79b5812fd39a76c826aadbd06c
2e07d92123960e9625198a454ad3973671761fda
refs/heads/master
2021-07-04T16:40:01.904529
2019-05-17T08:10:30
2019-05-17T08:10:30
110,428,294
1
10
null
null
null
null
UTF-8
Python
false
false
63
py
string,c=input().split(' ') place=string.count(c) print(place)
[ "noreply@github.com" ]
noreply@github.com
a3430eac0eaa4d27f75459b66543408ecd94e2cb
cb78e5fd4d172bf0aed6162eca4b46ae96a347f3
/q2.py
2aff3dd990065502af4e5459d25959b6c02b2a87
[]
no_license
hamedzarei/nlp-min-edit-distance
b8cd5f9d255b0c333df5c49352f1b1f46333925d
08851a2d2839e4da7c50833ad930e318f410e711
refs/heads/master
2020-03-15T13:22:16.529199
2018-05-04T16:43:13
2018-05-04T16:43:13
132,164,705
0
0
null
null
null
null
UTF-8
Python
false
false
2,783
py
import numpy from nltk import RegexpTokenizer def levenshtein(w1, w2, coef=2): w1_len = len(w1) + 1 w2_len = len(w2) + 1 distance = numpy.zeros(shape=(w1_len, w2_len)) ptr = numpy.empty(shape=(w1_len, w2_len), dtype=numpy.str) #initialize for i in range(0, w1_len): distance[i][0] = i ...
[ "hamedzarei.7232@gmail.com" ]
hamedzarei.7232@gmail.com
1fafa6db558c6073910962a1fd4bfd7d3019592a
a00ec9691cd5e56db93d290cb7a7b1edfef6437f
/eco/eco/asgi.py
2059a74dc9da807b96848d839ceb20e1570e7a08
[]
no_license
pronob1010/Ogani
7e6dfd424a830bd3355cf07f7a01eb521d8716d4
f6ff3dc8ed40ce46a993d1f83e122fbbc61836cf
refs/heads/master
2022-10-24T06:22:44.044064
2020-06-21T22:01:08
2020-06-21T22:01:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
""" ASGI config for eco 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.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_SETTINGS_...
[ "pronobmozumder.info@gmail.com" ]
pronobmozumder.info@gmail.com
07da32bed5fa6755dec25e4353ab8c8f8417c67e
ce2b21cf6f4e36703bd24f9c3a5ab3358aa59bf6
/week13/day5/todo/todoApp/__init__.py
93a22c1d490f80e206d2390b32b35a299aee79aa
[]
no_license
irinaignatenok/Dev-Inst
ed29b69fe14e77b9798a9f8297e0b08542f50ecf
5f7753b2ddb283fe3e36f67f4a4c4eeb42eff48d
refs/heads/master
2022-12-11T00:17:48.254328
2020-09-02T13:55:41
2020-09-02T13:55:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
import flask import flask_sqlalchemy import flask_migrate import os basedir = os.path.abspath(os.path.dirname(__file__)) app = flask.Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = "sqlite:///"+os.path.join(basedir, 'learning_app.db') app.config['SECRET_KEY'] = "secretKey" db = flask_sqlalchemy.SQLAlchemy(app) ...
[ "arthurr.ie@gmail.com" ]
arthurr.ie@gmail.com
0cda287bd11a7f9294f65c4817d60923febb5181
df5f42e7e2f0d646a3b417ee6cd3788f3f740b5d
/test.py
5a567df0cf8975cb9a5b42c8092be7c88b9152ba
[]
no_license
chen-min/python_mongodb
7f9cf1c3081947a90a2db8e277e24e7b4116ae77
7123426cf99b2de86dc92713ad1f86bffe499c27
refs/heads/master
2020-04-11T06:57:38.945340
2019-01-06T13:34:55
2019-01-06T13:34:55
161,597,053
0
0
null
null
null
null
UTF-8
Python
false
false
1,583
py
# coding: utf-8 from pymongo import MongoClient from datetime import datetime from bson import ObjectId class TestMongo(object): def __init__(self): self.client = MongoClient('localhost', 27017) self.db = self.client['students'] def add_one(self): ''''add data''' post = { 'name': 'bob', ...
[ "chenmin@hotmail.de" ]
chenmin@hotmail.de