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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
86e4f8e3682a4736d8c8789a4433cf37f971fc98 | 3887dd942e13b69668f5970ee5c8051eccdd3e3d | /node_modules/webpack-dev-server/node_modules/fsevents/build/config.gypi | c1bee61dbc28ec27833460c31071bdc249a010d4 | [
"MIT"
] | permissive | hamishakl/ReactExpressNodeStyled | bd64acb01ac939d0a359c5e777c3b89bc64cc1fd | 23c95edf6d1b02d783d030c9e236bf43123f1459 | refs/heads/master | 2023-01-07T06:58:11.825048 | 2020-10-22T00:55:50 | 2020-10-22T00:55:50 | 293,730,465 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,665 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
"hamish.tana24@gmail.com"
] | hamish.tana24@gmail.com |
954ecc61dfce1b4baa0c31373670efc38575e854 | 2a65bb733cd173d10c0be7ef4aed7e90635a5cd4 | /blog/migrations/0002_remove_post_slug.py | d68013f9636f457fbcde77a128799c507340c590 | [] | no_license | AlexBlueCrow/mysite | bba5907006ada25a48275fe581d2cbf8b76611e2 | 97f3a0295a205c07bf89c7cae465d4a79d87c586 | refs/heads/master | 2020-04-04T18:31:32.963015 | 2019-04-24T11:46:49 | 2019-04-24T11:46:49 | 156,167,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # Generated by Django 2.1.5 on 2019-03-20 15:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='slug',
),
]
| [
"forstarcraft213@163.com"
] | forstarcraft213@163.com |
7f491f356f6ff82934a5b21eb19f0391fa95ff5a | 109b54c8f66bcc0c84d7ebadc64005631c2f28bf | /venv/bin/pip2.7 | 10908f8108bdfbbe1a3b7e8eab513012bb1b7126 | [] | no_license | wly314/RestfulUnitTest | ed412f916e340be4b309faea1ce92b3137ce261a | 7dc1031c37a6fa2683c0832b320be56d97afc06a | refs/heads/master | 2020-03-19T20:26:31.939000 | 2018-06-11T09:20:34 | 2018-06-11T09:20:34 | 136,902,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | 7 | #!/home/leou/virtualenv/RestfulUnitTest/venv/bin/python2
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"wly314sdx@qq.com"
] | wly314sdx@qq.com |
b776f3ddd2760d5529bfd4feeacf8ef48eb827cb | 1819789fd07a608f6d8e1ef66b79c95fcf134e09 | /src/merry/apps.py | 9f47e85cc8e24d9578955d6ad6fcb3761ed249f7 | [] | no_license | xiaolei-shuai/kms | 699c44bbd2775af2d807c70589fd079a67303512 | 4a17c82d69d535fa0f63facc9a23a104fb9ee6f6 | refs/heads/master | 2022-12-01T16:55:49.056675 | 2020-08-16T05:09:31 | 2020-08-16T05:09:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | from django.apps import AppConfig
class MerryConfig(AppConfig):
name = 'merry'
| [
"wsjAliYun@aliyun.com"
] | wsjAliYun@aliyun.com |
fb4ead0f995e45b3159411bcecdef97dd22fe41a | d992297c9dec9c01a9bc5548ba3e817c3770182c | /weasyprint-app.py | 03eb117cb8a90ca2cdfa76147c31a57bbbd59d94 | [] | no_license | yazabara/python-app-with-docker | 169a69a064066593bd0e76b82e82585c80ab92af | 9899b9005b464d9e62cb6847bb826a6555dfc07a | refs/heads/master | 2020-04-16T19:07:09.295734 | 2019-01-16T10:33:55 | 2019-01-16T10:33:55 | 165,847,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from weasyprint import HTML
if __name__ == '__main__':
HTML('http://weasyprint.org/').write_pdf('weasyprint-website.pdf')
| [
"yaroslav.zabara@waveaccess.ru"
] | yaroslav.zabara@waveaccess.ru |
7433d119357f27263175e494dc7a2d7d5632e795 | 48a2610f1d37451b8133ebc0bbf18e0e74f53168 | /reporting-dashboard/data/clean_data.py | b03f23b0208cce25e4296be4813a8ff05f2ad56c | [] | no_license | pnandak/dashboard-prototype | 70027a54a1be7ff3916bed2c18f68fa70d1eda27 | 7dd911ca87a7ec951d0176691ad3d6d9bda87f9d | refs/heads/master | 2020-12-14T06:10:19.881742 | 2015-03-14T00:32:41 | 2015-03-14T00:32:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | import csv
def remove_last_row(iterable):
iterator = iter(iterable)
try:
prev = next(iterator)
while True:
cur = next(iterator)
yield prev
prev = cur
except StopIteration:
return
def main():
raw_data = csv.reader(open("performance_... | [
"boxuancui@gmail.com"
] | boxuancui@gmail.com |
de581e51dca0962cec387fdab2fef54098bf2b9e | b4923b19573688ad25306a5a58a7c2c4bcb0d7ae | /pyGDAL-MultiprocessingTool.py | 2b0165602775e1c0187a004bb6328a03d6dcd3cd | [] | no_license | lcabon258/Multi-DEM-conversion | a81865692a70d2908f1d7167a15b1afa711eff4b | a953f821c7ca3fb5ed1d8ea1d9fbaaa5173428f2 | refs/heads/master | 2020-06-13T04:38:29.758301 | 2016-12-07T14:16:44 | 2016-12-07T14:16:44 | 75,447,005 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,546 | py | # -*- coding: utf-8 -*-
_Release = "MultiProcessing Release V0.1"
_ReleaseDate = "2016/12/01"
_Authur = "Cheng-Wei Sun"
"""
last edited 2016-12-01 2200 @ Mac
@author: Sun, Cheng-Wei
Tested platform:
# macOS Sierra 10.12.1
# Python 3.5 Anaconda custom (x86_64) | GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)
# py... | [
"noreply@github.com"
] | noreply@github.com |
40d79daadfc7d474b29a31da056c8acbb016eb6b | ba1d57650d38424cbeac316d380e21727186bc22 | /classes-9.7.py | 04cd329c8fef2138d70172092736185aa786f7b0 | [] | no_license | dvp-git/Python-Crash-Course | c80dbe1fcf03fbfbeed56ac1eddb43718a42d6bd | 633e1d73a20d063b65aa9e78b3e055b3d153c7e6 | refs/heads/master | 2020-07-24T01:33:15.516438 | 2019-09-11T13:18:27 | 2019-09-11T13:18:27 | 207,762,823 | 0 | 0 | null | 2019-09-11T08:42:35 | 2019-09-11T08:32:13 | null | UTF-8 | Python | false | false | 1,828 | py | ## Exercise 9.7 Admin
## Making a class called User
class User():
"""Making the attruibutes"""
def __init__(self,
first_name,
last_name,
age,
eid
,):
self.first = first_name
self.last = last_name
... | [
"noreply@github.com"
] | noreply@github.com |
bf4ee2d02a325b438c10d2b86a54a4028c965b9b | 3a6bf7337126c8b1883e76cf1f46cec0886f1447 | /rssdl/rss.py | 0280fcd0436b89dd40e7f313f365f2b62e554d0f | [
"Apache-2.0"
] | permissive | egustafson/rssdl | fc4265edd9138a54005b98bdfc1ea5dfb25707d5 | 2b42d8aa4a0d03d31629d8446e7336c6c1348e58 | refs/heads/master | 2020-12-24T06:57:21.265487 | 2017-09-15T20:59:58 | 2017-09-15T20:59:58 | 58,835,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | """ RSS DOM for RSSDL
"""
import feedparser
class Feed(object):
def __init__(self, href):
self._href = href
self._d = None
def result(self):
return self._d
def parse(self):
self._d = feedparser.parse(self._href)
return self._d.status if 'status' in self._d else 0... | [
"eg-git@elfwerks.org"
] | eg-git@elfwerks.org |
097d7a098bcb81046169def9413bce7f3112d0a7 | 63f0b49eca9a78fc1050d7fdde03d54194ba0b73 | /codekata/ever.py | 3817ebc7c2bdd3afaacf88893319f3f64414ad5f | [] | no_license | Mponsubha/.guvi | d8a6e26cafce22a26c7ef7ababaf028e79b6c4cc | 5a1f0278c1570ed6b827c65baf5d838e1983e177 | refs/heads/master | 2020-06-03T00:22:10.182521 | 2019-07-02T04:02:26 | 2019-07-02T04:02:26 | 191,359,120 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | xi=list(input())
x1=[]
for am in xi:
if(am.isdigit()):
x1.append(am)
print(''.join(x1))
| [
"noreply@github.com"
] | noreply@github.com |
7670ab8d6b931d78427617fd2a1befd1482400bb | 15f1f39f18c3535d8086918851fbe8fc0d845ceb | /pkg_tf_micromouse/scripts/v2/floodfill.py | 6710250e83845f0a5facfde3d4bef23d1256ff78 | [
"MIT"
] | permissive | SuyashVerma2311/micromouse_maze_solver | 60745891d42b43e11202bd7063e3d4db38d67bc8 | d36cc671eabccf568d1f3a55a4e8e7b0289537c6 | refs/heads/main | 2023-03-19T03:20:01.368492 | 2021-03-07T18:42:19 | 2021-03-07T18:42:19 | 345,418,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,537 | py | #! /usr/bin/env python
import numpy as np
class FloodFill(object):
def __init__(self):
### ALERT : self.pos (or) pos should be integer tuple of 2 elements ###
#self.pos = pos # This will keep track of current location #
self.... | [
"suchiv2311@gmail.com"
] | suchiv2311@gmail.com |
d3fbb683701349fd99cd00a40f06c23cd7e7a89e | f90945225102d40411bbd523c247e4068231981c | /traffic_signs.py | 3c58d13b6c135bed04fe7b387599a0d83cdc222f | [] | no_license | mreichelt/CarND-Traffic-Sign-Classifier-Project | a21e561d7b64b754e966e3ff8800d7f363ba6ad0 | 3f96915cb19f58cda5344d0eb3b515085dfecc80 | refs/heads/master | 2020-12-24T19:51:24.658352 | 2017-04-03T12:49:14 | 2017-04-03T12:49:14 | 86,221,295 | 0 | 0 | null | 2017-03-26T09:28:01 | 2017-03-26T09:28:01 | null | UTF-8 | Python | false | false | 11,678 | py | # Load pickled data
import pickle
import tensorflow as tf
# TODO: Fill this in based on where you saved the training and testing data
training_file = 'traffic-signs-data/train.p'
validation_file = 'traffic-signs-data/valid.p'
testing_file = 'traffic-signs-data/test.p'
with open(training_file, mode='rb') as f:
t... | [
"mcreichelt@gmail.com"
] | mcreichelt@gmail.com |
4066230eaf1dc2764d4c74bd5704166d665af315 | 346d033ca9a934e61bcfdf6ad54d4530c1145bba | /src/ui/pages/Inbox.py | 2adf653863372020c2e7a69c7e4b0b93adcc0ca7 | [] | no_license | Ernxst/Flat-UI-Concept | ac1c9cfbbf7700daac945da9d140a8a8e1f38d04 | fa15e575875c062cc76991b490304ab6e673c02d | refs/heads/master | 2022-12-06T14:48:05.177637 | 2020-08-03T18:45:45 | 2020-08-03T18:45:45 | 284,108,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | from ui.pages.MenuPage import MenuPage
class Inbox(MenuPage):
def _update_page_data(self):
pass
def _config_grid(self):
pass
def _show(self):
pass
def search(self, search_term):
pass
def __init__(self, master, model):
super().__init__(master, 'Inbox', mo... | [
"ernest.nkansah-badu.19@ucl.ac.uk"
] | ernest.nkansah-badu.19@ucl.ac.uk |
8f70b79b0832fcb6dbcfda0e09aa5d3be24a4288 | 7e7a2872907d3dd7a8139278b321c4a6a7129e87 | /go_fluent_app/urls.py | 28040862822a9aa2ab111b067bd7c4564b67dd27 | [] | no_license | xmaanall/go-fluent-psi | 47bdfbc39e56c66fd42486cbd589e2227da57e30 | 67ce5a0579101b073b0ea35085ee9e8b6944bccb | refs/heads/master | 2023-05-28T23:08:19.440928 | 2021-06-17T07:04:23 | 2021-06-17T07:04:23 | 377,732,347 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | from django.urls import path
from go_fluent_app import views
from django.conf.urls.static import static
from django.conf import settings
from video.views import video
from .views import (
# QuizListView,
quiz_view,
quiz_data_view,
# quiz,
quizes,
save_quiz_view
)
urlpatterns = [
path('' ,... | [
"xmaanall@hotmail.com"
] | xmaanall@hotmail.com |
b6719129deb3753fda7d1da2bf054ef2b0b7086b | bb4e132c5978a1edc2ef4fb78d1bb5a793809408 | /dral_text/migrations/0005_auto_20180421_2332.py | 2011d67aa3e519a34a52ebb3021d281bc28eafa0 | [
"MIT"
] | permissive | n-romanova/dral-django | 7335e581f1fffe0e2d42614678010ead5c9202f3 | 4af92a46e207cc8a427d2f8eafe688c61a73d39e | refs/heads/master | 2020-08-31T03:11:37.199516 | 2019-10-03T17:19:05 | 2019-10-03T17:19:05 | 218,569,974 | 0 | 0 | null | 2019-10-30T16:15:47 | 2019-10-30T16:15:47 | null | UTF-8 | Python | false | false | 707 | py | # Generated by Django 2.0 on 2018-04-21 22:32
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dral_text', '0004_auto_20180421_2231'),
]
operations = [
migrations.AddField(
model_name='occurence',
name='paraphrase... | [
"geoffroy.noel@kcl.ac.uk"
] | geoffroy.noel@kcl.ac.uk |
172340ba642e9e8c49c315c40271563369d27c98 | bf2313718aaaa3219b2ef9f30a940b96c8de4b1c | /bookapp/models.py | 3509b99db09ab0c9781531763c4fce646a123a8a | [] | no_license | whyme0/BooksWeb | 4a63b28b01d7c0333ce3eade5007f2117577f03c | 38eda999e5ae28f287e1d3f0d2dde1cd35a16e3a | refs/heads/master | 2021-01-06T00:08:57.527182 | 2020-03-22T12:34:52 | 2020-03-22T12:34:52 | 241,174,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,534 | py | from django.db import models
from django.core.validators import MaxValueValidator
from datetime import datetime
from django.contrib.auth.models import User
User._meta.get_field('email')._unique = True
class Autor(models.Model):
author_full_name = models.CharField(max_length=303, default=None)
date_birth = models.... | [
"sparkjetstudiost@gmail.com"
] | sparkjetstudiost@gmail.com |
803f3401202b20729ba63a9968b76cfb69eb1b03 | c558d1da1aedf377e6cb6cf66c5136cfb7c32167 | /python-new-trunk/sfapi2/sflib/runWithAnalysis.py | 978d569bb74522ab578050a8fad567a9a6a3a256 | [
"CC0-1.0"
] | permissive | raychorn/svn_molten-magma | 46a8da015844b52fd2fc777225f11b1891b0000a | 8aa2ff2340707eecae6514943e86f5afba9cd54a | refs/heads/main | 2022-12-26T15:45:24.851522 | 2020-10-15T16:52:04 | 2020-10-15T16:52:04 | 304,358,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,864 | py | import os, sys
import traceback
from vyperlogix import misc
from vyperlogix.misc import ioTimeAnalysis
import types
import SfStats
sf_stats = SfStats.SfStats()
def dummy():
pass
def init_AnalysisDataPoint(name):
ioTimeAnalysis.initIOTime(name)
def begin_AnalysisDataPoint(name):
ioT... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
9c6e732df610377c770e18ff5ccebf8e062cf91f | 419231d8bf3e94f07c11625b9f54f12522153d95 | /server/models/models/deposit.py | 813bac8c282f7f37fbc39b34b1ed0672e13da35f | [] | no_license | 06wagon/LightningFuturesExchange | f062268a343aeaab6415515f0ae5cd046fb8f5bf | 337915c9fc024a2da66975d2d6302a25b31d7a68 | refs/heads/master | 2020-03-28T12:04:54.500939 | 2018-04-30T03:46:19 | 2018-04-30T03:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | from shared.shared import db
import copy
class Deposit(db.Model):
user_id = db.Column(db.Integer, primary_key=True, nullable=False)
address_id = db.Column(db.Integer, primary_key=True, nullable=False)
deposit_id = db.Column(db.Integer, primary_key=True, nullable=False)
transaction_id = db.Column(db.St... | [
"ryansfishman@gmail.com"
] | ryansfishman@gmail.com |
bc982bdb45cf50ec555fed5e6ba31c92be918480 | 26b2a9882f24ce65e3df5a241045d3940af2e2b2 | /cons/admin/school/changeschools.py | 3a4ab04b76f4aa8f2547a89d9893606a56197580 | [] | no_license | qhn-qhn/recommend | 0093bea156932c65089454ecd1cbc4657df870d1 | f75200185b16d55aaf2a969c1b635215f7f161a2 | refs/heads/master | 2023-07-15T23:53:34.604350 | 2021-08-21T05:08:32 | 2021-08-21T05:08:32 | 398,299,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from conn import startdb
def changeschools(data):
db = startdb()
cursor = db.cursor()
sql = "UPDATE school SET school_type='%s',location='%s',location_type='%s',belong='%s',yjsy='%s',self_line='%s' WHERE name='%s'" % (data['school_type'], data['location'], data['location_type'], data['belong'], data['yjsy']... | [
"qhn99323@163.com"
] | qhn99323@163.com |
f990c9a495667cc7da0ff93126f6ae00bde1b7a4 | 0a1eead498ec4770f9f54bae20e5ef3524427784 | /euler_11.py | 2eaf554c1dc5698830e40ca4a1269395a1e62685 | [] | no_license | eugenekang/Euler-Sets | 9dc43aa9a95e3dd3b2df07b210a95629098d8932 | b1d185ed2a714326140cfa877ce31222d69f17cd | refs/heads/master | 2022-12-19T05:05:01.625420 | 2020-09-25T16:33:37 | 2020-09-25T16:33:37 | 286,280,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,024 | py | """
What is the greatest product of four adjacent numbers in the same direction (up, down, left, right, or diagonally) in the 20×20 grid?
"""
from Tools.common_tools import create_grid, extract_q_text, create_table
# String to operate on.
num_string = """
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49... | [
"eugene.yc.kang@gmail.com"
] | eugene.yc.kang@gmail.com |
ca2dc73d520acbe6b4c50951edc3218dd761829c | be5fedd93bcd53a56519f2224e41398eaa11a457 | /pipeline/5_tfrecord_generator.py | 4097819c6d5c7460d7055d05f7355b27c2d86f4d | [] | no_license | Emilio-Picariello/Artificial_Vision-Unisa-_2021_group4 | 1f8b5095e7c0bed77a1dc93977885cfa45c05c3b | 4f2423d72554d52a359cbc8602e5f3d6e23100e3 | refs/heads/main | 2023-02-16T07:35:07.162346 | 2021-01-07T22:30:26 | 2021-01-07T22:30:26 | 327,071,385 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,478 | py | import tensorflow as tf
import csv
import pathlib
import numpy as np
import random
import _util_prepare_ as util
import os
import shutil
"""given some csvs it reads imges, detects face, puts image on it and adds it to one of n tfrecord files"""
"""FUNDAMENTAL ARGS"""
"""
[WARNING]
root is where to find ... | [
"noreply@github.com"
] | noreply@github.com |
8d2a2ca297e307ce475c3a5183cea37e98fcc393 | dd54710ea6f6a6f8e623615999c3831bdbd6e67c | /dogs and cat.py | 5d0738663790df2167a0e65bf569d9bc327ce8f2 | [] | no_license | Parthdhir1/Image-Prediction | 6def1a434514e519a05d1852a18eae42987af302 | 8f7079c6334337510efe3c09f7bfefb9b1ab0611 | refs/heads/master | 2020-03-21T23:18:03.062153 | 2018-06-29T17:37:37 | 2018-06-29T17:37:37 | 139,178,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 26 20:30:32 2018
@author: Parth
"""
#1 building convolutional network CNN
# Importing the Keras libraries and packages
from keras.models import Sequential
from keras.layers import Convolution2D
from keras.layers import MaxPooling2D
from keras.layers import Flatten
from k... | [
"40251393+Parthdhir1@users.noreply.github.com"
] | 40251393+Parthdhir1@users.noreply.github.com |
f8db1d8aeaa255369f51af9a750bd616d982d30b | 178b78b1300792fb962ec477b2671614ad8f2c0e | /flask-blueprint-tutorial/myenv/bin/webassets | 2f1ccd7471b1aeaeb49a7c42c794bda8d50d5db7 | [
"MIT"
] | permissive | Savithamark/Flask_Learning | c1b342fff559edf5037bdf77dbd54407b2436e1e | 14384cf28cc7b7b0c0b83f456f05b5f6d2ec20be | refs/heads/master | 2022-12-03T10:36:16.446171 | 2020-08-25T21:27:12 | 2020-08-25T21:27:12 | 288,428,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | #!/home/savitha/Documents/Flask_18-08-2020/Flask_Learning/Blueprint/flask-blueprint-tutorial/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from webassets.script import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"savithamark.093@gmail.com"
] | savithamark.093@gmail.com | |
e40a9f4648944ecbb580038b5267b736e6a1cc7a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /TmasgxCm6iz3gTGHk_18.py | f0c40f2ac8ab47faef818d3f66b85e4ebaed9fb1 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | """
Write a function that returns the **length of the shortest contiguous
sublist** whose sum of all elements **strictly exceeds** `n`.
### Examples
min_length([5, 8, 2, -1, 3, 4], 9) ➞ 2
min_length([3, -1, 4, -2, -7, 2], 4) ➞ 3
# Shortest sublist whose sum exceeds 4 is: [3, -1, 4]
min_le... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
1b0bc314104194da1b427e848f31ff7d0f00a724 | 982cd1423d165a5b15c46eaac50ded7471d96154 | /yitu/resources/books/main.py | c668c9573d4baa50be03498fbeec29803df5c76b | [
"Apache-2.0"
] | permissive | 1ibrary/1ibrary-gzhu | a4ab7100c17e38bef793565bc4ffb13ce8ecb0d3 | 768af1837d6caa185c101cc82ea67efc931865c1 | refs/heads/master | 2022-12-22T10:32:11.613351 | 2017-09-10T06:35:13 | 2017-09-10T06:35:13 | 95,835,451 | 4 | 0 | Apache-2.0 | 2022-12-07T23:56:22 | 2017-06-30T01:32:46 | Python | UTF-8 | Python | false | false | 12,992 | py | # -*- coding: utf-8 -*-
import json
import jpush
from flask_restful import Resource
from yitu import db
from yitu.models.book import Book, HotBook as HBModel
from yitu.models.hot_search import HotSearch as HSModel
from yitu.models.user import User
from yitu.services.douban import Douban
from yitu.services.gzhu.libr... | [
"gx-deng@163.com"
] | gx-deng@163.com |
9301a8e19c39fa597a374ec83ca5ac9308d25d56 | e9032e64138d7b9dd90a330dfe4588e2c83f6667 | /google/cloud/compute_v1/services/url_maps/pagers.py | 1a5d42fc43ca21958c622ecbbf65987afbee0aa4 | [
"Apache-2.0"
] | permissive | Ctfbuster/python-compute | 6cff2418969009794c3fadadc4c45e20d7b40509 | 7a9e8324e08c46a93050908760b2b5aca054a863 | refs/heads/main | 2023-08-26T12:37:52.363526 | 2021-10-04T15:34:37 | 2021-10-04T15:34:37 | 412,884,620 | 0 | 0 | Apache-2.0 | 2021-10-02T18:49:05 | 2021-10-02T18:49:03 | null | UTF-8 | Python | false | false | 5,578 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
ed4725673a73387fa9143bfc3a1a63fd28e669a2 | 9cabdeb8dce5718e8f4f490f3684eba0eb1f2d2e | /contrib/devtools/github-merge.py | 709b20287ca325e74972a29584e54ec67e442f2a | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | wolfoxonly/woo | fcfe275007cb102fff10239b0f722264dbbd40e2 | a5fb13575afe855b58915bd8e15cbffb9015e5e2 | refs/heads/master | 2020-03-09T17:00:57.668308 | 2018-05-13T15:21:17 | 2018-05-13T15:21:17 | 127,590,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,970 | py | #!/usr/bin/env python3
# Copyright (c) 2016-2017 Woochain Core Developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# This script will locally construct a merge commit for a pull request on a
# github repository, inspect it,... | [
"415313577@qq.com"
] | 415313577@qq.com |
9b4653d77b64454c4c52778eb28e5e115a07210e | ee33abc8460ccfba3cd3edcb75337354845439fa | /d2l/numpy_version/softmax_reg_gluon.py | 339ddbda9b62382a31276348a51dcb2ef4e7c013 | [] | no_license | TomasBahnik/ml | fb9dc272cfc414efc38cd410918267b0c3537046 | 7296e1bda65037039478a277bc986942de76dc71 | refs/heads/master | 2023-01-31T17:43:44.513144 | 2020-12-13T19:57:21 | 2020-12-13T19:57:21 | 221,159,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | import d2l
from matplotlib import pyplot as plt
from mxnet import gluon, init, npx
from mxnet.gluon import nn
npx.set_np()
batch_size = 256
train_iter, test_iter = d2l.load_data_fashion_mnist(batch_size)
net = nn.Sequential()
net.add(nn.Dense(10))
net.initialize(init.Normal(sigma=0.01))
loss = gluon.loss.SoftmaxCro... | [
"tomas.bahnik@ataccama.com"
] | tomas.bahnik@ataccama.com |
5ebff17593beda1effd5a60635d6921fc7b98ab2 | 07cabeb47bd7c9a4e06e824ece28631c7d7441a1 | /virtual/bin/easy_install | d66210d85b88436a51d477c4ceeb85a8a146d4c6 | [
"MIT"
] | permissive | Jeffmusa/PITCH-POOL | bd2b27ea5bc5b47499c0b822c46ff518eae5f2f4 | 96654a3ba7fc3f4ba00d7fb617644cc9cd5ba041 | refs/heads/master | 2020-03-28T04:17:07.471479 | 2018-09-13T13:21:17 | 2018-09-13T13:21:17 | 147,705,197 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/home/vicklyne/Pitch/virtual/bin/python
# -*- 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())
| [
"jeffmusa@gmail.com"
] | jeffmusa@gmail.com | |
b4441a3d11f64591fc7709954ad9418fa5e0e508 | 88bdfdb4ada00629d7074f4adc6312def80f16da | /python/test/Ch4/PP3CharPicGrid.py | 6e08ae127c21b57068fb562e6d38534cc80a9ba9 | [] | no_license | JeffUsername/python-stuff | 783935c5cfb0aec98a2d9aa427aef506a30ce907 | f18f2b75a650279ab9fbbcfb7dd9282e5dfda6df | refs/heads/master | 2022-11-27T19:06:05.830412 | 2020-07-27T02:21:51 | 2020-07-27T02:21:51 | 263,786,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | grid = [['.', '.', '.', '.', '.', '.'],
['.', 'O', 'O', '.', '.', '.'],
['O', 'O', 'O', 'O', '.', '.'],
['O', 'O', 'O', 'O', 'O', '.'],
['.', 'O', 'O', 'O', 'O', 'O'],
['O', 'O', 'O', 'O', 'O', '.'],
['O', 'O', 'O', 'O', '.', '.'],
['.', 'O', 'O', '.', '.', '.'],
... | [
"jeffbecker56@gmail.com"
] | jeffbecker56@gmail.com |
6571016902aa089e9d980b11281607bfaf68d512 | 3fcdcc4899d37903e9717835b5eb8112c0c8afdf | /djangoBlog/settings.py | 99e6e273a60559f34515706170a327b15cee999b | [] | no_license | MohsenShekarbaigi/mydjangoBlog | 746457dc94e18ba14e199cd1575423b9472a02ad | bfaf00b3c748478b2d04772b0cc0515aadeafd30 | refs/heads/main | 2023-05-11T02:16:12.978068 | 2021-06-01T06:38:05 | 2021-06-01T06:38:05 | 343,312,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,172 | py | """
Django settings for djangoBlog project.
Generated by 'django-admin startproject' using Django 3.1.6.
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 path... | [
"m.shekarbaigi@gmail.com"
] | m.shekarbaigi@gmail.com |
f12435432db738d98e5673e98069089be1809472 | ebc2afdb623804044da79d1986a26f904b276cca | /number_of_contacts/src/main.py | fec3d71c442b8227c9bc723abfb8c2080931e95d | [] | no_license | davkhech/simulation_scripts | 22389169755638acc043ccb3f4b37607760a403b | f0d4116c4ab3a758b352fafd86895567c59040e3 | refs/heads/master | 2020-07-08T02:24:31.113232 | 2019-08-21T12:16:11 | 2019-08-21T12:16:11 | 203,539,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | import argparse
import ujson as json
import matplotlib.pyplot as plt
import numpy as np
from constants import default_cutoff
from file_processors import process_file, process_big_file, process_gro_xtc
from number_of_contacts import calculate_q
def parse_args(*argument_array):
parser = argparse.ArgumentParser()
... | [
"davkhech@gmail.com"
] | davkhech@gmail.com |
f87f08c04c29a3a9eea5fea7390f55fb1e735947 | 6950681c05fa0ae594cee7a9f6e076f9daf44606 | /python/series/series.py | 8065079a39f6f4678f5b7e0131f6d0c51314a9fe | [] | no_license | seggiepants/Exercism | c85f42150f3201e39d2acaead1032583928f1713 | ce20dddb5d0f5056af468201fe7df8ee5b33f12a | refs/heads/master | 2022-05-23T08:51:58.875187 | 2022-05-16T01:18:37 | 2022-05-16T01:18:37 | 240,800,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | def slices(series, length):
"""Return each run of length characters within the given string series
as a list. Duplicate values are allowed.
Parameters:
series: string to return subsections of.
length: integer, length of desired sub-sections
Returns:
List of subsections in the string.
"""... | [
"41271733+seggiepants@users.noreply.github.com"
] | 41271733+seggiepants@users.noreply.github.com |
547bd4f8240b7af49479b59148d063c5ad55fd28 | 2867eb59cb2f47e256b7594089ef22837805c577 | /gradient_debug.py | b09612e64ef272ce2dfce17783f981414c606888 | [] | no_license | chiukin/ESFNet-Pytorch | 931dd97ea90aa05ccae31c35d6b1b61fea464ce9 | 9c49e65cbf2929917a32caca8e9e35390c2141f1 | refs/heads/master | 2020-05-05T08:22:07.816532 | 2019-03-28T12:03:59 | 2019-03-28T12:03:59 | 179,861,160 | 2 | 0 | null | 2019-04-06T16:54:29 | 2019-04-06T16:54:28 | null | UTF-8 | Python | false | false | 978 | py | import torch
def get_printer(msg):
"""
returns a printer function, that prints information about a tensor's gradient
Used by register_hook in the backward pass.
:param msg:
:return: printer function
"""
def printer(tensor):
if tensor.nelement == 1:
print("{}... | [
"noreply@github.com"
] | noreply@github.com |
7bf668deb039572910332ff426b608be219b4892 | b4d903d2e9affbbd274b68940217423c7d8435c7 | /Pi/Pi Python Scripts/Mail Sending/sendemail.py | b328e4c2b0f8ed9c5af07aafec28a45ec4d96972 | [] | no_license | kimoantiqe/SmartHome-Door | 26dde6a4cc132ce5de3826c8056a9ab85c808e7a | 43f41e41b4232d8ed8a5e5d85a17e93251cd8ed7 | refs/heads/master | 2020-04-03T05:05:04.307841 | 2019-02-15T15:04:42 | 2019-02-15T15:04:42 | 155,034,075 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import smtplib
from email.MIMEMultipart import MIMEMultipart
from email.MIMEText import MIMEText
from email.MIMEBase import MIMEBase
from email import encoders
def(toaddr,filename,filepath):
fromaddr = " " //make new email
msg = MIMEMultipart()
msg['From'] = fromaddr
msg['To'] = toaddr
msg['Subject'] = "UNA... | [
"sheenayadav98@gmail.com"
] | sheenayadav98@gmail.com |
9569c4cb8102b9e9490c2bbeb94f08004487c79f | e6329716335b0570c3df478ee905015e0275e78b | /test/migrations/0003_initial.py | 532a17749f6548f389571609b1a08941cd5ebe86 | [] | no_license | Morphnus-IT-Solutions/knowell | 39402d853b46087c5e8176a9cda0c652460e0333 | ed28f601730ab5ad3e62443c90be0991697c0da0 | refs/heads/master | 2021-01-18T13:57:23.825812 | 2012-08-03T19:55:04 | 2012-08-03T19:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,589 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'LevelOfDifficulty'
db.create_table('test_levelofdifficulty', (
('id', self.gf('d... | [
"dala.saumil@gmail.com"
] | dala.saumil@gmail.com |
174c38544d185d8104e7dac5560809d28c2c714f | 54f0eb4fbad9b7cc30bbfdd81241f25a8dfda149 | /hyebin/week_1/hash2.py | adfbf2264ba446566936feb44a88dd9c115c3de6 | [] | no_license | leeleelee3264/thursday-algo-study | 1791e52732f174ad81accb6aeba3299719391a27 | 6507edef60b2129f372bd9b45c412b846f140ed1 | refs/heads/master | 2023-02-02T06:15:55.123415 | 2020-08-06T10:20:23 | 2020-08-06T10:20:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | def solution(phone_book):
m = min(phone_book)
phone_book.remove(m)
for i in phone_book:
if m == i[:len(m)]:
return False
return True | [
"seungmin.lee@dnx.kr"
] | seungmin.lee@dnx.kr |
fa04c44b33e4ba3585b813ad42176847e7052829 | 81d79b0bb6e167c0c150e6e25c9e00db037035e4 | /Geodesy1.py | f7b6e38da091eb244ae9fe749e9e426caa8440e4 | [] | no_license | alaishan/Geodesy | 30b9d236f5e06d43ecc068ef496864f4a0a21850 | b9e4bb423b43293a71a2bbb255e773b08284a22a | refs/heads/master | 2023-01-06T07:54:17.521579 | 2020-11-09T13:23:52 | 2020-11-09T13:23:52 | 293,931,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Fri Sep 4 17:55:08 2020
@author: Alaisha Naidu
Name: Geodetic Coords to Curvilinear
Creds: University of Cape Town
"""
import math
from math import sqrt, pi, atan, sin, cos
import numpy as np
from numpy import matmul
import sympy as sp
from sympy import... | [
"noreply@github.com"
] | noreply@github.com |
fa840b3bf567a24d58b99ea0570aae3242c299a9 | c3bbc57eb19a9c838beab5308f150ccc800bf458 | /item2(tentativa-bergao).py | 79809990f8100271abf19bdcb43a6f9c26efff02 | [] | no_license | gustavosberger/EP-oficial | 9fbf69d27358b7acf296733f56c06d929a50ce1f | 9ce6682ca6f82aad8721c5903c9d57420c054ef4 | refs/heads/master | 2021-06-14T23:49:06.693766 | 2021-03-16T17:13:02 | 2021-03-16T17:13:02 | 129,413,475 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | import.json
with open ("item01(progesso).py","r") as tentativa
conteudo= json.load(tentativa)
with open ("item01(progesso).py","w") as tentativa2
conteudo2= json.dumps(tentativa2)
| [
"gustavosberger@gmail.com"
] | gustavosberger@gmail.com |
c406126c248257ef157a13000626454125a7d526 | 434aaf06d2b553fd4f5ee8acbc647caa52fcf91b | /wolframclient/tests/evaluation/test_async_cloud.py | 2f8c677af27a8f1517d802334821d77f09c1af78 | [
"MIT"
] | permissive | wdscxsj/WolframClientForPython | 43ed9dff93934b5ec79f23c32860bdb8f622ef96 | 2091ba8767d0b9abf0165cd1136ba05d9dd83b9e | refs/heads/master | 2020-05-24T06:00:18.250163 | 2019-05-17T02:29:51 | 2019-05-17T02:29:51 | 187,131,190 | 0 | 0 | MIT | 2019-05-17T02:14:48 | 2019-05-17T02:14:45 | null | UTF-8 | Python | false | false | 18,465 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import asyncio
import logging
import os
import unittest
from wolframclient.evaluation.cloud.asynccloudsession import (
WolframAPICallAsync, WolframCloudAsyncSession)
from wolframclient.evaluation.cloud.base import (S... | [
"dorianb@wolfram.com"
] | dorianb@wolfram.com |
e2fdae7c3f7a42aff20c1c5369d5023422073a47 | 6aee676ce66e2680ef887c3b5692c8b776486e95 | /file.py | b281b3aae29f1653b5be086d23e353b7ac9c1d7e | [] | no_license | kushagra67414/python | 80465b31f70a3b313c964fa37972478859abc3c5 | 09c5632a730b1b61ac9a3d82c445020ecda1fe71 | refs/heads/master | 2021-10-09T01:43:44.428089 | 2021-10-07T12:17:40 | 2021-10-07T12:17:40 | 242,206,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | temperatures=[10,-20,-289,100]
def c_to_f(c):
if c< -273.15:
return "That temperature doesn't make sense!"
else:
f=c*9/5+32
return f
for t in temperatures:
print(c_to_f(t)) | [
"500067414@stu.upes.ac.in"
] | 500067414@stu.upes.ac.in |
cdcbf556e7f4227e3645dd0dbd3f03c0d1261880 | e149967bf6e5db564277f59b0f516002a217ae54 | /pyramid_pagination/mapper.py | e48ccdac002f83667cc584d7fbe4b6014f2a69ad | [
"MIT"
] | permissive | canaryhealth/pyramid_pagination | dbe4de7c6f52adefda2d13815cb2dd0b2f6e25c9 | 6ddde01afee420b62bde6658ec07c05e2efc2333 | refs/heads/master | 2021-01-21T21:47:49.499408 | 2016-04-12T21:58:33 | 2016-04-12T21:58:33 | 33,215,459 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,735 | py | # -*- coding: utf-8 -*-
#------------------------------------------------------------------------------
# file: $Id$
# auth: Philip J Grabner <phil@canary.md>
# date: 2015/04/02
# copy: (C) Copyright 2015-EOT Canary Health, Inc., All Rights Reserved.
#--------------------------------------------------------------------... | [
"pjg.github@ubergrabner.net"
] | pjg.github@ubergrabner.net |
01cc466fb5ad903411b71998921b75b72f93fce2 | fa34c936d82aa35830097768d61e5a532aca4e04 | /main.py | 345745dba47ac70ebe390f7a6283737e64191cb4 | [
"MIT"
] | permissive | wwwdebug/tg-kicker | c6d09f56a6ec69597ea50b44b08919551aca2f1c | ac332eaa664e331e55f2975fb7292f9322877fe5 | refs/heads/master | 2022-04-26T00:55:55.446519 | 2020-04-18T21:23:12 | 2020-04-18T21:23:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | from telethon import TelegramClient
from telethon.tl.functions.channels import EditBannedRequest
from telethon.tl.types import ChatBannedRights
import asyncio
import datetime
api_id = 1234 # Your API_ID
api_hash = "" # Your APP_ID
async def clear_chat(client):
group = input("Enter the group username where the sc... | [
"noreply@github.com"
] | noreply@github.com |
7de71a4cbffcfce8c1ee6a8e2ce7da5bbb514867 | ad683cde153aca78f937fbd72e8e658cdcd5dd83 | /apps.py | 144d159eaa21812369bff9a4fad65a69600454d9 | [] | no_license | clepperdesign/funWithColors | 377eeac62f4efa8e49146a3729ff094ef2ffc86a | 20bf89664ece5cb7ba351eaa2d3a077e199896bd | refs/heads/master | 2020-07-12T12:42:59.162006 | 2019-08-29T16:43:40 | 2019-08-29T16:43:40 | 204,822,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from django.apps import AppConfig
class ColortimeConfig(AppConfig):
name = 'colortime'
| [
"noreply@github.com"
] | noreply@github.com |
dcd72593ae864f3f3d6640672d80dbf114e290a4 | 1bc5cbda26c5556ac9e9e46fa4af47894f90f7f8 | /src/cli/__init__.py | 79766d20ef6538480dae2d35fd1998521b88ec56 | [] | no_license | Alexander-Andrade/heri_helper | 64388d5dd0e1d0e336544bd00a64b4c9f5f8453d | d11a49b6835c30b81e4631a86c9e99ea13603ac3 | refs/heads/master | 2023-04-03T16:42:04.772315 | 2021-04-11T11:40:12 | 2021-04-11T11:40:12 | 352,153,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | from .cli_args_parser import CliArgsParser
from .cli_args_validator import CliArgsValidator
from .args import Args
| [
"aliexandr.andrade@spaceos.io"
] | aliexandr.andrade@spaceos.io |
91bbd6ec721033ed14205dda6b686244b064d94a | 39fa30628f9b83048d548499790f9e41c6f2e07f | /graph.py | 10c292d4684ecca5520ec72f3b8ade0582e2c2e3 | [] | no_license | sleepycat/adjacency-list | 4bb4f4d94e7c008a17a37e175acb0800e693f2d7 | 028c69b8b9b0fc294413620a75fe282783f192b3 | refs/heads/master | 2020-04-05T17:16:20.471007 | 2018-11-11T06:07:29 | 2018-11-11T06:07:29 | 157,052,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | def create_graph_from_file(path):
graph = {}
file = open(path, 'r')
for line in file.readlines():
vertices = line.strip().split(' ')
if len(vertices) == 2:
graph = add_relationship(graph, (vertices[0], vertices[1]))
return list(graph.items())
def add_directed_edge(graph, ori... | [
"mike@korora.ca"
] | mike@korora.ca |
a72c12112ac974c237a065d606907b8325e64cf8 | 1a12037eee96ea5aeae94060f79c2a431d1aef39 | /touchstone/lib/mocks/networked_runnables/mysql/i_mysql_behabior.py | 0e4add2e07bda2a05fa3cb2ba87da28a8d38e538 | [] | no_license | melodylail/touchstone | 6897ef6180700936dd1f318f2d0f60460840991d | 6c954081b1801afa93ee3488088c4053fc8750cf | refs/heads/master | 2023-06-01T23:04:05.638995 | 2021-05-26T06:43:25 | 2021-05-26T06:43:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,760 | py | import abc
from typing import List
class IMysqlSetup(object):
@abc.abstractmethod
def execute(self, database: str, sql: str):
"""Executes arbitrary SQL on the given database."""
pass
@abc.abstractmethod
def insert_row(self, database: str, table: str, data: dict):
"""Inserts a ... | [
"shanejjansen@gmail.com"
] | shanejjansen@gmail.com |
0cbe5366f2fc7d68de24b87f866720a86bb885f2 | 8d9e71e74069ccbe329ebefab034fbe090d59392 | /Session_9/project/app/views.py | afb29f9463d2dde667bf126dc0697675c89ffee9 | [] | no_license | jiyoon27/NEXT_HW | 19fa9dde54dbb3a94d40d3a1d28c52b3688f5f0d | a760f18c4bd42e98126f8e9c657ffdee0031001a | refs/heads/master | 2023-06-05T19:00:15.756325 | 2021-07-08T09:53:52 | 2021-07-08T09:53:52 | 349,907,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,237 | py | from django.shortcuts import render, redirect
from .models import Post, Comment
from django.contrib.auth.models import User
from django.contrib import auth
from django.contrib.auth.decorators import login_required
# Create your views here.
def home(request):
posts = Post.objects.all()
return render(request, 'h... | [
"janejung327@gmail.com"
] | janejung327@gmail.com |
5df0190be56cc9d18e5109f9acbaf7e086a16cf4 | 27ac091aa60b537a32f8d1977301313d5c316e3f | /beer_site/urls.py | 44965afd5166348285545a6a762145fdbda92752 | [] | no_license | yarik2215/beer-site-backend | 58ef1bb79fa1f1c37a961f08984f93f7c1785e3b | 41eafbef4a520c79afa5035842d033e968779cca | refs/heads/master | 2023-05-28T23:04:49.913366 | 2021-06-16T07:28:41 | 2021-06-16T07:28:41 | 369,219,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | """beer_site URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"stikblacklabel@gmail.com"
] | stikblacklabel@gmail.com |
3995df86f3e0ecb3783f09c801cb9ca185abb043 | c11dc2ab84ba586eca36363dbce0806ac21f06b8 | /C5/REPORTES/IncidentesTiempo/IncidentesTiempo_DiaSemana.py | 47c2ddc4b9e700fce9f09839711da831ab0a2e67 | [] | no_license | YovannaOr/Promad | b802d177942dec4a4d82f4514f25bcb1237a0966 | a9bad6e171843d3bf87cb896854cc485bc7916dc | refs/heads/master | 2023-01-03T06:16:11.712197 | 2020-10-25T18:10:24 | 2020-10-25T18:10:24 | 307,475,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | from pip._vendor.distlib.compat import raw_input
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions impor... | [
"cesarerr@gmail.com"
] | cesarerr@gmail.com |
99d7d1c5b74d24f29b39a96a995a47f8a24d3c91 | 49fc073dcfc0d55457f9731855540dbd4b715556 | /src/is_alive/application/ports/event_publisher.py | 23b5b748c835bcd2565a3c10e4b9db75b4653f39 | [] | no_license | EduardMaghakyan/is-alive | 149b806611e1ffe742afd7af1ac199ca2c03cd6f | 53778c08c6b822f7fdec51ca4c96f985c38c02a6 | refs/heads/main | 2023-05-14T10:48:26.483097 | 2021-05-20T15:20:55 | 2021-05-20T15:20:55 | 369,253,003 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | import abc
from is_alive.domain.event import DomainEvent
class EventPublisher:
@abc.abstractmethod
def publish(self, event: DomainEvent, **attributes) -> None:
pass
| [
"edi.maghakyan@gmail.com"
] | edi.maghakyan@gmail.com |
610090e30faacc1439436865e67666d88fa0f32f | 18f577ff6927ac682a85f08bad4f3eec433bd8c0 | /BannerBot.py | 19fa18eee8aade60d4dc2865ad28311e6b355d81 | [] | no_license | nicolas-raoul/BannerBot | c50d3954a4c5f1418b78d3c0110cfd9f4d511ede | 915cfd35c6d0501b15898a178207f10922d280a9 | refs/heads/master | 2020-05-07T21:16:15.693940 | 2013-10-15T08:22:07 | 2013-10-15T08:22:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # -*- coding: utf-8 -*-
# Set the Wikivoyage banner of a destination on Wikidata.
import pywikibot
page=u"Aachen"
banner=u"Aachen banner Winter Panorama.jpg"
print "Defining data source"
site = pywikibot.Site("en", "wikivoyage")
repo = site.data_repository()
page = pywikibot.Page(site, page)
item = pywikibot.Item... | [
"nicolas.raoul@gmail.com"
] | nicolas.raoul@gmail.com |
8517ce3f417f877036d4b1f5d9af879c97c0a703 | e02506da0c661c8241fed00efdd0d6b2f8b147df | /textattack/attack_recipes/seq2sick_cheng_2018_blackbox.py | 8af6d15138de6bc314511c851970b1c226990123 | [
"MIT"
] | permissive | SatoshiRobatoFujimoto/TextAttack | 2592a828f128fd8bf0b8ce5578e9488df5b2ac97 | a809a9bddddff9f41750949e26edde26c8af6cfa | refs/heads/master | 2022-07-11T02:10:24.536157 | 2020-05-14T13:29:44 | 2020-05-14T13:29:44 | 263,941,825 | 1 | 0 | MIT | 2020-05-14T14:43:47 | 2020-05-14T14:43:46 | null | UTF-8 | Python | false | false | 1,205 | py | """
Cheng, Minhao, et al.
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with
Adversarial Examples
ArXiv, abs/1803.01128.
This is a greedy re-implementation of the seq2sick attack method. It does
not use gradient descent.
"""
from textatta... | [
"jxmorris12@gmail.com"
] | jxmorris12@gmail.com |
3fb361418fab76466fd2fe3aa67d0e02198edd43 | 9b2089e7f3acf3da1a84316db84db9b7637d46a1 | /train.py | d61e907df79aa8e4a6ae5a3cb4abbb7690023292 | [] | no_license | Predstan/Traffic-Sign-Recognition | 25777a18d329d6cf50ea89533eaead3ee146936a | a1d02b2f1ba7dc24100d924668ef709df2083cdf | refs/heads/main | 2023-05-30T21:27:41.675780 | 2021-06-22T12:29:04 | 2021-06-22T12:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,569 | py |
import tensorflow as tf
tf.compat.v1.disable_eager_execution()
import cv2
import numpy as np
def batch_norm(x, out, phase_train):
"""
Batch normalization on convolutional maps.
Ref.: http://stackoverflow.com/questions/33949786/how-could-i-use-batch-normalization-in-tensorflow
Args:
x: ... | [
"adeolaraji12@gmail.com"
] | adeolaraji12@gmail.com |
5fbfa5c6bed801a627d6b474811331e09eda95a8 | 4bed46cfc5e5bf579c65509884bc8d04e848c1b1 | /todo_drf/api/migrations/0001_initial.py | 0365c326a1df63368dfda5fa5ef337cc7d4da030 | [] | no_license | delighttakudzwa/Titi_todo_app | 430a073565760452446c5fec5483b77c4e4d88a0 | 18231d145e8bf6a33f5697c75f05d39541ce7d0e | refs/heads/master | 2022-10-02T21:16:52.557348 | 2020-05-26T21:46:49 | 2020-05-26T21:46:49 | 267,153,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # Generated by Django 3.0.6 on 2020-05-26 12:35
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Task',
fields=[
('id', models.AutoField(aut... | [
"keptac.flutter@gmail.com"
] | keptac.flutter@gmail.com |
958e5eceba3a97c5f73ae5f97c2f2d507c3228c4 | 8f8498bb6f56b19d45a1989c8113a077348c0a02 | /백준/최소신장트리/행성 터널 - 프림.py | 1b9cd115b4de9658e77fc0d211d97f40b0242f95 | [] | no_license | gjtjdtn201/practice | a09b437c892b0b601e156c09cb1f053b52fab11b | ea45582b2773616b2b8f350b927559210009d89f | refs/heads/master | 2021-01-01T13:29:46.640740 | 2020-11-28T00:55:37 | 2020-11-28T00:55:37 | 239,299,485 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | import sys
sys.stdin = open('행성 터널.txt')
import sys
input = sys.stdin.readline
from heapq import heappush, heappop
N = int(input())
star = []
for i in range(N):
x, y, z = map(int, input().split())
star.append((x, y, z, i))
edges = [[] for _ in range(N)]
for i in range(3):
star.sort(key=lambda x: x[i])
... | [
"gjtjdtn201@naver.com"
] | gjtjdtn201@naver.com |
d9d15c7369252080d67b4a3db18eda581179e3b9 | 7950c4faf15ec1dc217391d839ddc21efd174ede | /contest/weekly-contest-266/5919.0_Vowels_of_All_Substrings.py | 836bcb1c21e6f95554a3972b51237f0616b166fa | [] | no_license | lixiang2017/leetcode | f462ecd269c7157aa4f5854f8c1da97ca5375e39 | f93380721b8383817fe2b0d728deca1321c9ef45 | refs/heads/master | 2023-08-25T02:56:58.918792 | 2023-08-22T16:43:36 | 2023-08-22T16:43:36 | 153,090,613 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | '''
41 / 51 个通过测试用例
状态:超出时间限制
brute force
T: O(N^2)
S: O(N)
'''
class Solution:
def countVowels(self, word: str) -> int:
N = len(word)
pre = [0] * (N + 1)
for i, ch in enumerate(word):
if ch in 'aeiou':
pre[i + 1] = pre[i] + 1
else:
pr... | [
"838255715@qq.com"
] | 838255715@qq.com |
349da3c46b25c597a4fea4b6ffed199281d111b3 | e61e664d95af3b93150cda5b92695be6551d2a7c | /vega/metrics/tensorflow/__init__.py | 5eb861df8a3c94200471f2efbde2cb138194a48e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/vega | 44aaf8bb28b45f707ed6cd4e871ba70fc0c04846 | 12e37a1991eb6771a2999fe0a46ddda920c47948 | refs/heads/master | 2023-09-01T20:16:28.746745 | 2023-02-15T09:36:59 | 2023-02-15T09:36:59 | 273,667,533 | 850 | 184 | NOASSERTION | 2023-02-15T09:37:01 | 2020-06-20T08:20:06 | Python | UTF-8 | Python | false | false | 449 | py | from vega.common.class_factory import ClassFactory
from .metrics import Metrics
ClassFactory.lazy_register("vega.metrics.tensorflow", {
"segmentation_metric": ["trainer.metric:IoUMetric"],
"classifier_metric": ["trainer.metric:accuracy"],
"sr_metric": ["trainer.metric:PSNR", "trainer.metric:SSIM"],
"f... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
2292edbbc89dfc17bb498d30d6ae3e66d13c29b7 | fb238ca57a8860481c29032330302ab302e5c207 | /spam.py | 882ac4e3608c7b71e2a0d54b1fbed5dc8d265a34 | [] | no_license | rahul2240/Smart-India-Hackathon-2019 | 9378cda6ada389dbf04e4531bf03cebbf4053d23 | 714f73ab7fe121a77a48ac4b8e433b481801423f | refs/heads/master | 2020-04-24T04:49:07.900273 | 2019-03-30T20:32:01 | 2019-03-30T20:32:01 | 171,717,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,463 | py | import os
from flask import Flask, render_template, request, redirect, url_for, jsonify
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.multiclass import *
from sklearn.svm import *
import pandas
app = Flask(__name__)
global Classifier
global Vectorizer
# load data
data = pandas.read_csv('spa... | [
"rahulsingh2240@gmail.com"
] | rahulsingh2240@gmail.com |
8a72939c8114781ca876f70213a8ac42804e358f | 4d6387b028984c68f0eb57a575b297fd24850eca | /qstrader/profiling.py | e049f45abba6769b11c611d0b787436972ef7ea4 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | lydia99992/newqstrader | 985acb2508addc4c2deecb8858ab08d1c27ad5bc | c82651c75a572ac5dff0ac376133fb0ff2b55417 | refs/heads/master | 2022-06-27T02:09:31.135929 | 2020-03-06T12:45:25 | 2020-03-06T12:45:25 | 245,416,142 | 1 | 1 | MIT | 2022-06-22T01:19:15 | 2020-03-06T12:38:51 | Python | UTF-8 | Python | false | false | 243 | py | import time
def speed(ticks, t0):
return ticks / (time.time() - t0)
def s_speed(time_event, ticks, t0):
sp = speed(ticks, t0)
s_typ = time_event.typename + "S"
return "%d %s processed @ %f %s/s" % (ticks, s_typ, sp, s_typ)
| [
"dannalee999@gmail.com"
] | dannalee999@gmail.com |
d1b07ca19d527477342052e82c10beda1d9365ab | d72a8945b1f028333679c7f799d6efee4fcbcfa3 | /wendeldr_helpers/statistics/general.py | 51ed2308af267afc9c22d9087d1f4141b7c4d8fb | [] | no_license | wendeldr/wendeldr_helpers | aff5d439abbdd2d9dde279b7f6e9417b64684b41 | 5bb0d796142190c2d8cbf2dfb45b91dea5b16b9d | refs/heads/main | 2023-04-01T23:57:26.867726 | 2021-03-28T22:25:32 | 2021-03-28T22:25:32 | 348,420,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,638 | py | from round_robin_tournament import Tournament as rrT
from lifelines import CoxPHFitter
def recombitulate_covariates(df):
return list(df[['sleepstate', 'feature', 'analysis', 'parameters']].agg('_'.join, axis=1).values)
class Feature():
def __init__(self,
name,
univariat... | [
"wendeldr@mail.uc.edu"
] | wendeldr@mail.uc.edu |
f7672e8bb4bad41f3bfa672f7efa3395328dbf7c | 27ca36a60ebfa24f986f1c9d08c2dd8d64c1e095 | /hosting/hosting/urls.py | bd3a3e58ce9a7179a79f782630461521a62e014d | [] | no_license | srivaryan/Project-DBMS | c9a8c7b13e37c7b2ff1e50c6846d2c9bc85c4c6b | 6ab07db21f9fe4d394c0d05c3fd914680ff82979 | refs/heads/main | 2023-08-19T23:46:58.982258 | 2021-10-29T17:59:09 | 2021-10-29T17:59:09 | 419,330,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py | """hosting URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"srivaryan2@gmail.com"
] | srivaryan2@gmail.com |
05bbe819c737091fa9d1aff4a383a5ca8734dd1c | 461cf2fd99330558ec96bf551cb1703e627868a0 | /get_pages.py | b050961df0e6de3f1240f8bc48e06c5237fb092d | [] | no_license | abelsonlive/bcni-pra | 408f72ba369ca164c5efb4442ebd2eaeb2c8dd78 | fa51ae45382c45f15fe861060d6e90cc00c27590 | refs/heads/master | 2021-01-20T11:50:13.432486 | 2013-04-29T14:45:04 | 2013-04-29T14:45:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | import selenium
from selenium import webdriver
import time
URL = "http://secure.phila.gov/paplpublicweb/GridView.aspx"
b = webdriver.Firefox()
b.get(URL)
for i in range(2, 806):
print i
text = b.page_source.encode('utf-8')
fp = "raw_pages/page%s.txt" % (i-1)
print "writing", fp, "to file"
with op... | [
"brianabelson@gmail.com"
] | brianabelson@gmail.com |
74ccae8a1b850350f6fc5408dc7d415442e67624 | ec50d7e79741d1dfa050559220cb536ec5fe42f5 | /prettify.py | 0264ee65f3493fa6d84389798f165d96608d5b28 | [] | no_license | pankdm/icfpc-2016 | b2fbc355db4312f272e991c6708c779bf1b657dc | 14ac75fec03bc34c4d6145e5f9fde1682b93e52c | refs/heads/master | 2021-01-09T09:24:38.872494 | 2016-08-08T23:08:45 | 2016-08-08T23:08:45 | 65,159,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | import sys
import json
f = open(sys.argv[1], 'r')
data = f.read()
js = json.loads(data)
| [
"pank.dm@gmail.com"
] | pank.dm@gmail.com |
99c513f86707ade0a324dfc4b72f5acc7eaaa4ac | 80b2c3c5c7bdf6b52dc857a89aa217207bbdbbc0 | /Code/DataLoader_Turnover.py | a026cc878b96ab822002e44b0193825864d401cc | [] | no_license | yc11241124/NYU-ML-2021-Spring | 694a64bc381e7dc7fee120d12394a751c800dcde | 093c738ece70a7ea10dd8725a749d460c37b6c3a | refs/heads/main | 2023-08-11T01:44:05.876971 | 2021-09-12T22:41:30 | 2021-09-12T22:41:30 | 405,762,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,352 | py | import os
import numpy as np
def LoadData_Abalone():
file_original = open("abalone.data", "r")
Lines = file_original.readlines()
X = []
Y = []
for line in Lines:
data = []
line = line.replace('\n','')
line_split = line.split(',')
label_int = int(line_spli... | [
"noreply@github.com"
] | noreply@github.com |
07ef1f4cd0c16e4c233fb1e556b52b581f2e4532 | 0ed9c1d60399ca524779d403b641c8585bab8e15 | /test_request/get_package/case_check.py | 25cbe729b65391ae392dc2902d5d79a1d12d1f44 | [] | no_license | Asan7777/Asan | 17ccc45fa2633c1e63351fd2552864a25dbbc893 | b9b86455b00d3c004d4ce0da31465154a410025c | refs/heads/master | 2022-01-20T10:18:47.309895 | 2019-07-26T09:35:55 | 2019-07-26T09:35:55 | 198,197,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | import json
import operator as op
# from idna import unicode
from idna import unicode
class CommonUtil():
def __init__(self, str_one, str_two):
self.str_one = str_one
self.str_two = str_two
def is_contain(self):
'''
判断一个字符串是否再另外一个字符串中
str_one:查找的字符串
str_two... | [
"13426038659@163.com"
] | 13426038659@163.com |
a73c7308d19a2723bbdb73a89ceca2790e0ddbea | 3a10cda6dbdeee36b24591ada2c551ff2f179d19 | /app/models/hour.py | 1a14852b19fe5a1765504a13f12ccb678185c99c | [] | no_license | ttecles/weather_backend | a0d0c6317c3fde6c4ac6df17c7c9a5ea59299302 | b4b2886a3f0a2b6b502bd38d0b98f017b01ef6b0 | refs/heads/master | 2023-02-19T12:31:52.295041 | 2021-01-26T08:56:34 | 2021-01-26T08:56:34 | 330,950,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | from app import db
class Hour(db.Model):
__tablename__ = 'Hour'
locality_id = db.Column(db.Integer, db.ForeignKey('Locality.id'), primary_key=True, nullable=False)
date = db.Column(db.Date(), primary_key=True) # "2021-1-15"
hour_data = db.Column(db.Time(), primary_key=True) # "13:00",
temperatur... | [
"joan.prat@knowtrade.eu"
] | joan.prat@knowtrade.eu |
b83bd941c10051706dd4bda266e000a394c0b865 | e50838a8cb6617808c4a76da536b03386e1d8303 | /Exercise10.9.py | a28becd94eaf10356d6a567ac2bda3e111a4e5cf | [] | no_license | clayygodd/my-ThinkPython-solutions- | afaab8dad6963b7abe60120d1489f3b9726b6fa5 | bc11160b504511ee4a916621c666b09047b0d8b0 | refs/heads/master | 2020-07-01T15:42:37.453300 | 2019-08-08T08:45:19 | 2019-08-08T08:45:19 | 201,214,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | fin = open('words.txt')
t = []
for word in fin:
t.append(word)
print t[0]
| [
"noreply@github.com"
] | noreply@github.com |
348bfe11b3b0696038f79b93c1de0305b51118f6 | a1cc8e0976f296192b1002e279d66a6a3dada28f | /reefbot/bin/CameraCaptureManager.py | cb0106b35bd019c8b1f90eb0dcbae7a7aef5599a | [
"MIT"
] | permissive | MRSD2018/reefbot-1 | 40ef435ac4e1664858f225fde1d9ee995d55f235 | a595ca718d0cda277726894a3105815cef000475 | refs/heads/master | 2021-04-09T10:26:25.455651 | 2018-04-01T19:13:43 | 2018-04-01T19:13:43 | 125,381,499 | 0 | 0 | MIT | 2018-04-01T15:24:29 | 2018-03-15T14:41:59 | C++ | UTF-8 | Python | false | false | 5,485 | py | #!/usr/bin/python
'''The Camera Capture Manager that recieves joystick commands to take
a picture and then, grabs the picture from the camera publishes a
SpeciesID Request to figure out what fish was in the picture.
Author: Mark Desnoyer (markd@cmu.edu)
Date: July 2010
'''
import roslib; roslib.load_manifest('reefbot'... | [
"mdesnoyer@gmail.com"
] | mdesnoyer@gmail.com |
f9791b2b58c0ed0961046f7b8a0dd4bb73d8450a | 5410700e83210d003f1ffbdb75499062008df0d6 | /leetcode/tree2Str.py | 61ae648b31c803481fe3db7769a6109de4b7ac74 | [] | no_license | lilyandcy/python3 | 81182c35ab8b61fb86f67f7796e057936adf3ab7 | 11ef4ace7aa1f875491163d036935dd76d8b89e0 | refs/heads/master | 2021-06-14T18:41:42.089534 | 2019-10-22T00:24:30 | 2019-10-22T00:24:30 | 144,527,289 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | class Solution:
def tree2str(self, t):
"""
:type t: TreeNode
:rtype: str
"""
if t == None:
return ""
if t.left == None and t.right == None:
return str(t.val)
elif t.left == None:
return str(t.val) + "()" + "(" + self.tree2st... | [
"myyan_yan@msn.com"
] | myyan_yan@msn.com |
4622dd167378c5d839005568cfb7944437db9bb2 | d2a2c252488adbcd3546668e6abcd32fbf0c427b | /chapter_2/scrape_re.py | 32bb95fbc360692af51c658887ca5aefdbd7c20e | [] | no_license | niharu/python-crawling-scraping | f0493a275e8a6a33bbb2963b2a7feb5e6cc4642d | 7e49fe654ad5575113bcfa1de3d7d711b45692df | refs/heads/main | 2023-07-07T23:18:15.040898 | 2021-08-21T17:47:24 | 2021-08-21T17:47:24 | 398,577,826 | 0 | 0 | null | 2021-08-21T17:47:25 | 2021-08-21T14:25:27 | null | UTF-8 | Python | false | false | 495 | py | import re
from html import unescape
with open('dp.html') as f:
html = f.read()
for partial_html in re.findall(r'<a itemprop="url".*?</ul>\s*</a></li>', html, re.DOTALL):
url = re.search(r'<a itemprop="url" href="(.*?)">', partial_html).group(1)
url = 'https://gihyo.jp' + url
title = re.search(r'<p it... | [
"niharu.dev@gmail.com"
] | niharu.dev@gmail.com |
0924a12cd5b76c25074c0a53e6bd6dd9a4edbe97 | 865969935f29dc20c74ae0d7a6c5c3218ef73a4f | /app.py | b977edcbf175848b580d8cfb8dea668d7fe93a3e | [] | no_license | Nitesh909/LoanApp3 | f615261378e9da55e80aff1ae7bfb26f61bd9620 | 39df25696546abd0200ed24403228e45593d8a5e | refs/heads/main | 2022-12-26T06:42:37.001173 | 2020-10-02T19:38:43 | 2020-10-02T19:38:43 | 300,717,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | from flask import Flask, render_template, request, url_for, redirect
from joblib import load
import numpy as np
app = Flask(__name__)
model = load("newmodel.joblib")
@ app.route('/')
def home():
return render_template("index.html")
@ app.route('/result', methods=['GET', 'POST'])
def result():
if r... | [
"noreply@github.com"
] | noreply@github.com |
fbb8fd2981dcd6d139d81dc69aef91c52bf1e604 | 87f5d4f3092929921069986d4ee53002fbcfaad8 | /scripts/opencache-node | 4bb7f2a377a2edc0746a8b3c0c233c952d1f0437 | [
"Apache-2.0"
] | permissive | opencache-project/opencache-node | 22f675f10039c286cac97a3f055e7db1f46fe0a7 | 65aae90ba6e8c2f11ad4df8e812d4811d7d29007 | refs/heads/master | 2020-03-27T23:06:46.983150 | 2016-01-08T19:50:13 | 2016-01-08T19:50:13 | 20,293,321 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 542 | #!/usr/bin/env python2.7
"""opencache-controller: Simple script used to execute either the OpenCache controller or node."""
import opencache.node.opencachenode as node
import optparse
import os
parser = optparse.OptionParser()
parser.add_option("--config", "-c", dest="config",
help="location of configuration fil... | [
"matt@matthewbroadbent.net"
] | matt@matthewbroadbent.net | |
43387b0df1c22da601c740d3c1fbbd6238e02279 | 3e924b59710ffdce72777358f76d34c860d25fc3 | /custom_gym/setup.py | d8b0cb22e9c2cde031cadcedef06c04d7ccd6798 | [] | no_license | nontnont01/lucy-rl-appium-1 | 648b567a09adb8125cc9ac8dc9cd4f915ca4a8dd | 829d72fb5a7ca999de3976643786965b0394e885 | refs/heads/master | 2023-06-20T16:39:24.746392 | 2021-07-28T10:10:07 | 2021-07-28T10:10:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | from setuptools import setup
setup(
name= 'custom_env',
version= '0.1',
install_requires=['gym']
) | [
"hoppyhope01@gmail.com"
] | hoppyhope01@gmail.com |
d88a68e4fb641928f7fcb6702f53e4c94ab26f6c | 54bcefb6cb926583d1a6abe97190d04b9142f5f4 | /tests/livetest/livetest.py | 88eb1c75183379d0ed388cdce0cc3a53a8729e82 | [
"MIT"
] | permissive | huntflow/pytest-testrail | 15ed9a0fb49edf2aa0ec678341aa48179d9544d4 | 7ed8829e9948597ebc7eb76e6a91f1609a05e069 | refs/heads/master | 2022-12-25T05:03:26.853604 | 2020-10-14T06:09:19 | 2020-10-14T06:09:19 | 263,955,931 | 1 | 0 | MIT | 2020-10-14T06:09:21 | 2020-05-14T15:40:57 | Python | UTF-8 | Python | false | false | 434 | py | # -*- coding: UTF-8 -*-
import pytest
import time
from pytest_testrail.plugin import testrail, pytestrail
@testrail('C344', 'C366')
def test_func1():
time.sleep(0.5)
@testrail('C345')
def test_func2():
time.sleep(1.6)
pytest.fail()
@testrail('C99999')
def test_func3():
time.sleep(0.5)
@pytestrail.c... | [
"dubnerr@gmail.com"
] | dubnerr@gmail.com |
ae411c2778a3bce3f10cac7602f68285ebf4dbe5 | b37ada1653d97de60173d85989c34a2a93e2f7b1 | /remindGit/celery_beat.py | 9ab6ce2dab99c48dfe25a42d77f99fe537f84183 | [] | no_license | PyJava-Nikhil/remindGit | 497a95abd191a967358f09d0872f6836a8d6e861 | 08ecd3bca374d32b03da27de16bdbc4494963b6d | refs/heads/master | 2022-12-17T23:19:19.043317 | 2020-02-10T11:51:46 | 2020-02-10T11:51:46 | 238,858,141 | 0 | 1 | null | 2022-12-08T03:34:14 | 2020-02-07T06:27:51 | Python | UTF-8 | Python | false | false | 184 | py | from celery.schedules import crontab
CELERY_BEAT_SCHEDULE = {
'send_reminder': {
'task': 'reminder.tasks.send_reminders',
'schedule': crontab(minute='*/1')
}
} | [
"nsharma@focusvision.com"
] | nsharma@focusvision.com |
d87de4a5deb346043db63ce34a639299059fde51 | 378ad0c10fdb35e83c8bd1640202518acaa936f5 | /osa09-15_tavara_matkalaukku_lastiruuma/test/test_1_tavara.py | 08cd9f777e5c0b8e5b3db44471b4ba09cbcffe66 | [] | no_license | sami-one/mooc-ohjelmointi-21 | cc1af96f0accdf18e2c4bbcbaa236a00e1d905bf | ba41b099be16ed55a5fd3ebe113fd145ba8d88f4 | refs/heads/main | 2023-05-02T12:12:09.233333 | 2021-05-27T13:10:52 | 2021-05-27T13:10:52 | 371,375,306 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,309 | py | import unittest
from unittest.mock import patch
from tmc import points, reflect
from tmc.utils import load, load_module, reload_module, get_stdout, check_source
from functools import reduce
import os
import os.path
import textwrap
from random import choice, randint
from datetime import date, datetime, timedelta
exerc... | [
"sami@samione.fi"
] | sami@samione.fi |
53234971fde311041641ce460e876ae08df1a6d4 | ea67d0e7db990e341f8dbb0b69a2aa48835af35c | /renderMeshSilhouette.py | 6de115aff35fea4677f7690e9985ed85c2fb546b | [
"MIT"
] | permissive | alexlimofficial/opengl-toonshader-silhouette | 86b2e883cf7a04b339842d22e5c100175bdf9003 | 727ee223cd6adaf0a30b47344a21a4c3ee48da4d | refs/heads/main | 2023-03-29T12:09:40.290193 | 2021-04-02T15:53:52 | 2021-04-02T15:53:52 | 353,188,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,268 | py | import pyrr
import glfw
import numpy as np
from math import sin, cos
from OpenGL.GL import *
from OpenGL.GL.shaders import compileProgram, compileShader
from lib.util.obj import ObjLoader
from lib.util.texture import load_texture
##############################################################################
# shader... | [
"alexlim95@gmail.com"
] | alexlim95@gmail.com |
0b5f2151006a1871143c1b28da5be92d90adf6e6 | 2c38a2d95aa7d27f66d36e8a60af86fdc5956afe | /password-storage/Table.py | 9dda1fc873614b446e537697584af2da84ebb7f6 | [] | no_license | HuBoZhi/python | 312602efcafdc945f1d8937b76f268e2a852414d | 699b696f963c841a8825270cacb645b4388440b2 | refs/heads/master | 2021-04-03T07:07:33.451691 | 2018-03-09T10:10:39 | 2018-03-09T10:10:39 | 124,405,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Table.ui'
#
# Created by: PyQt5 UI code generator 5.10
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Table(object):
def setupUi(self, MainWindow):
MainW... | [
"36149293+HuBoZhi@users.noreply.github.com"
] | 36149293+HuBoZhi@users.noreply.github.com |
7cc2c7507b75fcd535a7e8e9c9b0457f48bd6414 | e0b6f5bd451aa8af3273fbc948799637681342e1 | /scripts/wm_representation/functions/IEM/Controls/trial_by_trial/trainT_testT_wm3_shuffles_refs.py | 99a1066c8955feb220ec3514ad753bea566ad476 | [] | no_license | davidbestue/encoding | 6b304f6e7429f94f97bd562c7544d1fdccf7bdc1 | c27319aa3bb652b3bfc6b7340044c0fda057bc62 | refs/heads/master | 2022-05-05T23:41:42.419252 | 2022-04-27T08:34:52 | 2022-04-27T08:34:52 | 144,248,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,890 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 1 18:24:32 2019
@author: David Bestue
"""
#######
####### In this analysis:
####### I am doing the reconstruction training in the delay period and testing in each trial. No CV and No Shuffles
#######
############# Add to sys path the path where the tools folder is
i... | [
"davidsanchezbestue@hotmail.com"
] | davidsanchezbestue@hotmail.com |
7e94dcdb37b413a9610d6df5998fce9b1a0a13bb | 86d01337a2d3f354c27e03299e1088b05932edcb | /src/trackimo/protocol/protocol.py | 8d3d03874c2cfa20ec37ebf3f34003ffc512eee1 | [
"MIT"
] | permissive | troykelly/python-trackimo | 2b2281f8053b7639c016e081576bbd75dc8f5d73 | d38a36faccfb6d0f75d1cef23637c1e7e5e6797a | refs/heads/master | 2023-05-29T16:27:42.650967 | 2020-10-01T07:42:32 | 2020-10-01T07:42:32 | 149,948,474 | 1 | 0 | MIT | 2023-05-23T00:12:47 | 2018-09-23T04:42:28 | Python | UTF-8 | Python | false | false | 16,661 | py | # -*- coding: utf-8 -*-
"""
Protocol handler for Trackimo
"""
import logging
import sys
import requests
import os
import asyncio
import functools
import backoff
from datetime import datetime, timedelta
from .user import UserHandler
from .account import AccountHandler
from ..exceptions import (
MissingInformation,... | [
"troy@troykelly.com"
] | troy@troykelly.com |
a8016f7948019572509c378ff2bfdf66dd58aae8 | d165fc9cdb0d83b23bca7817cce5396ff8ab7e72 | /test_rc_car/flat_game/siraj_nn.py | 6151c847b93bf9d514f2542fc0d3cf2097e8e57d | [
"MIT"
] | permissive | Amaravati/outlace | 277d6e0fd915e1d3818b127d3c04a232572f8b07 | 4fba15e960ed318dd02c2d0fedb4fcd6f1ffa172 | refs/heads/master | 2021-01-09T06:09:09.002929 | 2017-02-04T14:48:42 | 2017-02-04T14:48:42 | 80,925,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,111 | py | """
Simplistic implementation of the two-layer neural network.
Training method is stochastic (online) gradient descent with momentum.
As an example it computes XOR for given input.
Some details:
- tanh activation for hidden layer
- sigmoid activation for output layer
- cross-entropy loss
Less than 100 lines of active c... | [
"aamaravati3@gatech.edu"
] | aamaravati3@gatech.edu |
e947ab798f35f442dd5385a344c2690865fd1546 | 947867a3d446f7b790d1bcd0cfaf9cf3a1b4d841 | /python/example_code/ses/ses_deletereceiptfilter.py | 28fb99c7c111091b20d4bffdc0f378449cc1c645 | [
"Apache-2.0",
"CC-BY-NC-SA-4.0"
] | permissive | qh96/aws-doc-sdk-examples | 1839e0b6379980418a3d1df44e205f9fd90f90d7 | 3d8d8aaf199c276e84e1d5e10c9355306e095a38 | refs/heads/master | 2020-04-05T08:50:08.236093 | 2018-11-07T02:46:07 | 2018-11-07T02:46:07 | 156,731,920 | 1 | 0 | Apache-2.0 | 2018-11-08T15:56:33 | 2018-11-08T15:56:32 | null | UTF-8 | Python | false | false | 1,246 | py | # Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license"... | [
"jamisch@amazon.com"
] | jamisch@amazon.com |
d3a92669d402c8e28659a759ac1a2d6cc27440b5 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/MindSpore/Research/cv/image_classification/FaceAttribute_for_MindSpore/train.py | a269bece0a922cf7323ebe7a7e5a57abd9157391 | [
"Apache-2.0"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 8,476 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
22c3b581600e5d06700052f819ba896e25a18821 | 4872a403db1cb386a881c85c54308acb2480ca0e | /manage.py | 895c068f294129021a747c65d5884d88dd70324d | [] | no_license | jiangboLee/LEEBlog1 | 6d1e592b4f84b9c7780a23d1af192ef660d700c5 | 8f041750410e6bdbdf8f95a774750ba35c57fab0 | refs/heads/master | 2020-12-02T12:46:39.385049 | 2017-08-22T04:49:22 | 2017-08-22T04:49:22 | 96,593,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "LEEBlog.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"584556825@qq.com"
] | 584556825@qq.com |
1c633248bdbe9600e57f95c55c00e346f1b7e29c | 29e10bbfcf805993d5acd3dd28aee9b2de3e4c76 | /posthog/models/filters/stickiness_filter.py | dcc963918d805564fcd7d970c75757e8bc23ebf7 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ramesharun/posthog | 191375316a304b97848ef8ebcb66559ecf443821 | 51b291602e718e1bf213438f33a4cb7248761851 | refs/heads/master | 2023-02-05T00:53:55.563148 | 2020-12-23T11:56:10 | 2020-12-23T11:56:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,794 | py | from datetime import datetime
from typing import Any, Callable, Dict, Optional, Union
from django.db.models.expressions import Value
from django.db.models.functions.datetime import TruncDay, TruncHour, TruncMinute, TruncMonth, TruncWeek, TruncYear
from django.http import HttpRequest
from django.utils import timezone
... | [
"noreply@github.com"
] | noreply@github.com |
a628abcf7734d5f34909b24a744a964221a470f3 | a47a5d5280041e43b1a2dfdfdd0e77929a4e0a7b | /lasagne_mnist.py | f1993b60e070b48855275cd2c5bf818845507120 | [] | no_license | truongkyle/dummy_dataset_fpga | 69c2a4f7ea9ce795b005865a02fc11c713d1e03b | a6b140a86bfbd5e335590716ebbbbcaaed915d31 | refs/heads/master | 2020-08-31T02:03:05.532824 | 2019-12-05T06:49:55 | 2019-12-05T06:49:55 | 218,552,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,928 | py | #!/usr/bin/env python
"""
Usage example employing Lasagne for digit recognition using the MNIST dataset.
This example is deliberately structured as a long flat file, focusing on how
to use Lasagne, instead of focusing on writing maximally modular and reusable
code. It is used as the foundation for the introductory La... | [
"leky1610fx@gmail.com"
] | leky1610fx@gmail.com |
4f714d6172a078dceda6b04a5faec6a75aeec621 | dc63e528012fb2f3e15b73e05c924236760d01b1 | /cloudify_azure/resources/compute/virtualmachine/virtualmachine_utils.py | 4a67d65a4df9ff6e52f6dd881668444d4f9e6848 | [
"Apache-2.0"
] | permissive | cloudify-cosmo/cloudify-azure-plugin | 515b6285b63c2a01ae4d666957541a1f08472410 | 361c48bc4abe38cf57354e8d36839137462ad345 | refs/heads/master | 2023-08-21T14:23:06.673284 | 2023-07-30T10:44:39 | 2023-07-30T10:44:39 | 36,666,947 | 4 | 14 | Apache-2.0 | 2023-07-30T10:44:41 | 2015-06-01T14:42:32 | Python | UTF-8 | Python | false | false | 3,521 | py | # #######
# Copyright (c) 2016-2020 Cloudify Platform Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | [
"noreply@github.com"
] | noreply@github.com |
2cff4309bada63d3fcf90cd5da550da6f77ecbd8 | ba07ca708a80efeeaafcbe95e95c26d1bb334897 | /files/ord_class.py | b7292cffc9717d46064ea7dd2548d2f1290132bc | [] | no_license | arickels11/Final_Project | 8c7f93beb3d120c1b91244127c26d235659f96c7 | d268001047a52594313692cf3cd758ad38ccbfeb | refs/heads/master | 2020-09-21T20:59:33.291795 | 2019-12-09T03:04:18 | 2019-12-09T03:04:18 | 224,928,697 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,049 | py | """CIS 189
Alex Rickels
Final Project - Tuscan Eatery"""
import datetime
from datetime import timedelta
class Order:
def __init__(self, table, dishes_list=[]):
'''
:param table: table # for the order, so other employee can bring food if ready
:param dishes_list: dishes in the order
... | [
"arickels93@gmail.com"
] | arickels93@gmail.com |
6ac86ed6fb4e52ebf43c10ef08a46b9288aff6e2 | a5c1dc40ee5e9383f00ebee400d59920ff867d67 | /InClass/Class18.py | f04283f12300693c789dc8769a8636e3ed352e9e | [] | no_license | Neurotrophin/CPSC230ParlettPelleriti | 9e5bce20f283bfa18e6f9f85cbb676e17b89d181 | 9977a6a6629b71fe26d083082c7fe79539a7219f | refs/heads/master | 2022-03-29T23:23:05.918982 | 2019-12-09T22:58:11 | 2019-12-09T22:58:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 988 | py | #MUTABLE OBJECTS
def petAdder(dict):
name = input("What's your name ")
pet = input("What's your pet's name")
if name in dict:
print("You're already in here so...")
else:
dict[name] = pet
d = {}
i = 0
while i < 3:
petAdder(d)
i += 1
print(d)
#--------------------------------... | [
"parlett@chapman.edu"
] | parlett@chapman.edu |
ecf2e202398d9c58d9d5bcb9846dbebaf58a02aa | 0ccab2965458454d6a4802b47d33310e43c10d8f | /classes/student.py | c9e7d33683deae9b858dc5fb04d7034fd00d39ca | [] | no_license | jazib-mahmood-attainu/Ambedkar_Batch | 11e66125647b3b348d4567862f8fc20a3457b2f0 | c99be9a401b8d00f6ca47398f48e90ead98f4898 | refs/heads/main | 2023-08-01T13:13:43.357769 | 2021-09-25T03:54:27 | 2021-09-25T03:54:27 | 390,405,238 | 16 | 10 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | class Student:
def __init__(self,roll,name,age):
self.roll = roll
self.name = name
self.age = age
def reads(self):
print(self.name,"is reading")
preeti = Student(10,"Preeti",24)
print(preeti.name)
print(preeti.roll)
print(preeti.age)
preeti.reads()
print("**********")... | [
"jazib.prof@gmail.com"
] | jazib.prof@gmail.com |
e6160cfebc2a43b5c30200a58e3ff04cd3aafdcc | c819c2f4b1547762d12015ebf7263f5db2b9cfb9 | /polls/admin.py | 0c56726fe2a93d3c015fe565b465aaefd2272649 | [] | no_license | saomajixiao/Django_vote | e66b77d6e0a18ac812c4973bf0036e5c9a6ab701 | b0561482fa3ee0c56d1bc5285565a495d3fb3150 | refs/heads/master | 2020-04-23T00:57:55.430251 | 2019-04-19T14:47:03 | 2019-04-19T14:47:03 | 170,798,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from .models import Question,Choice
class ChoiceInline(admin.TabularInline):
model = Choice
extra = 3
class QuestionAdmin(admin.ModelAdmin):
fields = ['pub_date', 'question_text']
inlines = [ChoiceInline... | [
"prnedved@163.com"
] | prnedved@163.com |
bb225b5211002db9b4aee185f095dae4f1e68fa8 | 4146e7cc441f51d66bd42d0fd49d436079cfacb0 | /par.py | d3ddb2fc89c56d99d52732f4efba49cbe9c7bc74 | [] | no_license | Iboll/untitled2 | 8dbcf3206adae6e633bfcde09ea345fb2b8ce6d8 | 9276c81a880134ecb5817977cb07d9ec568413ae | refs/heads/master | 2021-03-15T02:12:14.722375 | 2020-04-11T20:37:04 | 2020-04-11T20:37:04 | 246,816,299 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from flask_restful import reqparse
parser = reqparse.RequestParser()
parser.add_argument('email', required=True)
parser.add_argument('name', required=True)
parser.add_argument('surname', required=True)
parser.add_argument('age', required=True, type=int)
parser.add_argument('position', required=True)
parser.add_argumen... | [
"soltan.shamgunov@yandex.ru"
] | soltan.shamgunov@yandex.ru |
588f53f955204f081034a2b5b07dc3312c3d971e | 101cab2e63d8cd73b6db0d9655291f181789ae0f | /catalog_app/tests/test_forms.py | c17f91136c53c9e48e60757dc77a48609fb00e65 | [] | no_license | TheWoops/test-deploy-backend | 268658f2f215b30c3d156f2b2a59f41e99452a9c | 2d15a25fc0188f2822914769ab4f731ad1d7066a | refs/heads/master | 2022-07-28T14:51:33.922973 | 2021-04-11T18:16:06 | 2021-04-11T18:16:06 | 350,643,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from django.test import TestCase
from catalog_app.forms import UpdateCustomerForm
# Create your tests here.
class TestUpdateCustomerForm(TestCase):
def test_new_location_label(self):
'''Test if attribute new_location has the correct label assigned'''
form = UpdateCustomerForm()
self.asser... | [
"thewoops.deeplearning@gmail.com"
] | thewoops.deeplearning@gmail.com |
98fa4703bd418ed584d3c0b4069f185a536db5ec | 87e7f159b48ad4e2b784c8846bed37e1825fb375 | /gamma/grd_batch_process.py | 2438f8c31f8555e79c2e0e4fb469c0d34b7b1584 | [] | no_license | whigg/GeorgeVI-surface-melt | 0db560640209911d5ef432ebf1fdef49b1f9957a | 0778de50fa747a4165273c9ef9edd65bf783fd34 | refs/heads/master | 2023-07-10T22:14:57.455070 | 2020-05-28T12:20:57 | 2020-05-28T12:20:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,982 | py | #activate the gamma environment in the shell
#gma
#geoutils
import os
import os.path
from os import path
import subprocess
from pyroSAR import identify
#import faulthandler; faulthandler.enable()
dem = "/exports/csce/datastore/geos/groups/MSCGIS/s2002365/code/data/DEM/REMA_resampled_10m.dem"
dem_par = "/exports/csce/... | [
"noreply@github.com"
] | noreply@github.com |
8806780712e5054373bdc136bb537dece0d2b9ac | ffd2126e1ba5d1acea0bb0b3d011f4ccaf1c1f1f | /gia/gia/doctype/gia_sector/gia_sector.py | 4a1e4524728a0939102446bd86307c02279f077f | [
"MIT"
] | permissive | alkuhlani/gia | fd55c65b0f430f24c7fbe3aef5ea911af8642702 | 9af9737cef7b0b947baa21f46c7be381c4fc9d98 | refs/heads/master | 2022-12-10T02:45:47.907158 | 2020-09-04T16:37:10 | 2020-09-04T16:37:10 | 276,495,714 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Ahmed Mohammed Alkuhlani and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe import _, throw
from frappe.model.document import Document
class GIASector(Document):
def validate(self):
if no... | [
"frappe@ubuntu.vm"
] | frappe@ubuntu.vm |
59b93ec9acf4cea910ecdcb8812f3bc6fcbda7ca | 297e6d66302aa4037b702b24ee0c119e0bbd38e2 | /free_wifi_reboot.py | 617c59d435e54118f228a1e28298747e1b106a42 | [] | no_license | talehm/Rebooting-TP-link-Router-with-Phyton- | 081d97e63e2f997598e69113f9b8d0774a5d0cb1 | bdfc8ced8226d99d6dde620e89851578275ced70 | refs/heads/master | 2020-04-15T21:42:01.444621 | 2020-01-27T13:32:28 | 2020-01-27T13:32:28 | 165,043,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,565 | py | import pexpect
import sys
import getpass
import time
import subprocess
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0
# available since 2.26.0
from selenium.webdriver.support import expected_conditio... | [
"noreply@github.com"
] | noreply@github.com |
e2230aed752c8a73948aecc725580d22f370446b | 1e9fed88ce4a623970f7e53143753a170d4bdcda | /aat/tests/test_strategy.py | 37e4f8123735a0e70663ec060bc26eda308854e1 | [
"Apache-2.0"
] | permissive | krusty45/aat | 06dedbfe0abaf76c4a584ad441dc7badd093a939 | a14b652f7ff90761d0e1198a85d8fc02efeff0eb | refs/heads/master | 2020-06-24T09:34:30.981326 | 2019-07-09T19:34:22 | 2019-07-09T19:34:22 | 198,929,483 | 1 | 0 | Apache-2.0 | 2019-07-26T02:07:57 | 2019-07-26T02:07:56 | null | UTF-8 | Python | false | false | 453 | py | # for coverage
from ..strategy import *
class TestStrategy:
def setup(self):
pass
# setup() before each test method
def teardown(self):
pass
# teardown() after each test method
@classmethod
def setup_class(cls):
pass
# setup_class() before any methods ... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
7ac55fae4dff112e3f68063f3e79fb7c3247eec9 | cb2a7e659b2ca21b391ac2bbed8e34aa5ed17bb6 | /nba/migrations/0001_initial.py | 2733b02467c4f5feb7069c681a5f1ef4a31bbf42 | [] | no_license | k24dizzle/meow | 04c124b38220072d7130acee4e1912e0023d3f5a | 5afd4bb274611ae8482e62f0c559d9fd960757c6 | refs/heads/master | 2021-01-21T13:53:18.007463 | 2016-05-18T21:12:20 | 2016-05-18T21:12:20 | 51,556,962 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-02-11 23:24
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | [
"zhaok24@uw.edu"
] | zhaok24@uw.edu |
8a633ce99beb82b6b65a0ed5d1c65801a5ef744e | ca7a1f0f16dcb8a7c077f6ef81413ea6b150513b | /pythonFiles/pydev/util.py | 995b3ac5c5d011846eebff34560c886e431df4bf | [
"MIT"
] | permissive | lee-vius/python-preview | 79af9b8aaeb9fe297dab3eb4af10370ec23a6724 | 1d953a8d08698693042ce763ec7861224661032f | refs/heads/master | 2020-09-03T00:53:51.811005 | 2019-11-05T19:18:23 | 2019-11-05T19:18:23 | 219,345,117 | 0 | 0 | MIT | 2019-11-03T18:19:20 | 2019-11-03T18:19:19 | null | UTF-8 | Python | false | false | 1,952 | py | import sys
import struct
from encodings import utf_8, ascii
try:
unicode
except:
unicode = str
try:
xrange
except:
xrange = range
if sys.version_info[0] >= 3:
def to_bytes(cmd_str):
return ascii.Codec.encode(cmd_str)[0]
else:
def to_bytes(cmd_str):
return cmd_str
if sys.versi... | [
"dongli0x00@gmail.com"
] | dongli0x00@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.