blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e7ce1b59ac16070ee7d9834a295ee8a281b0d0e5 | 6e91ad505da417a6345b84ea02534deb3ec0427a | /src/data/transforms/transforms.py | 611cea6c83cf24bbc8941fb3b2fd25d481c13973 | [] | no_license | cocoaaa/Tenenbaum2000 | 257a7a0376b670a0896ecd09ace848cb276d5813 | 6f6e8ee74bc9f597def9559f74a6841c37c0a214 | refs/heads/master | 2023-04-25T23:36:13.566521 | 2021-06-06T00:49:20 | 2021-06-06T00:49:20 | 312,381,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,594 | py | # encoding: utf-8
"""
@author: sherlock
@contact: sherlockliao01@gmail.com
"""
import math
import random
import torch
from torchvision import transforms as T
import numpy as np
from sklearn.preprocessing import minmax_scale
from typing import List, Set, Dict, Tuple, Optional, Iterable, Mapping, Union, Callable
from .... | [
"haejinso@usc.edu"
] | haejinso@usc.edu |
80954ebe7830dd8dfab25e0a013922bc01815edb | 160ff0dbe7f9e5d740faa3ce13302190e1e5f1f0 | /Calc.py | db893a216b2d9cc553077be5697b83b7af2224fd | [] | no_license | sivatoms/PyReddy | 9a84e1568e9ee6c16c2b51ba6044059d31ae62dd | fcc0ab8705d409c6b609f9b5f5cffb8900dd8eb7 | refs/heads/master | 2021-06-26T17:42:43.104598 | 2021-01-20T21:40:06 | 2021-01-20T21:40:06 | 197,511,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py |
from Demo import wish
def add(a,b):
print(a+b)
def sub(a,b):
print(a-b)
def mul(a,b):
print(a*b)
def div(a,b):
print(a/b)
wish()
print("This is second modules") | [
"sivatoms@gmail.com"
] | sivatoms@gmail.com |
77b485b69080e2bcdc5c77e82f78060389522740 | 91428afe2325ec377e19284ebcbd15036e9e3bf3 | /blog/models.py | fd3d852bbd2ecf147b9b46a86a0cf9ac308c5e3b | [] | no_license | jtwray/blogApp-djangoheroku | 152bb5004d5cf8ac115cf9fbdce40f7f45d0eb24 | dcd166d6ab3c8a962ebac3df50669758fd827194 | refs/heads/master | 2022-08-02T10:01:23.758776 | 2021-01-11T16:56:36 | 2021-01-11T16:56:36 | 165,558,412 | 1 | 0 | null | 2022-07-29T22:49:28 | 2019-01-13T21:50:57 | Python | UTF-8 | Python | false | false | 1,085 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(default=timezone.n... | [
"tuckerwray84@gmail.com"
] | tuckerwray84@gmail.com |
729438ce7d9dfa18db5b7b8dc7d0af0b4fe9937b | 64895f4b8a15f875344d7232aaad54739aca9747 | /app/bestsongs.py | 428e67f73e5f88f5f6ecafc2a5593e44504c71cb | [] | no_license | skipluck/bestsongs-docker | 1e2b61d6a82d0d9a8b20776da06a5071757d8f55 | 0cefbaa3ed5383a2f3a77c62553f4b122ffed1eb | refs/heads/master | 2020-03-18T07:10:41.006138 | 2018-05-22T17:12:20 | 2018-05-22T17:12:20 | 134,437,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # BestSongs
from flask import Flask
from flaskext.mysql import MySQL
import os
mysql = MySQL()
app = Flask(__name__)
app.config['MYSQL_DATABASE_USER'] = os.environ['MYSQL_USER']
app.config['MYSQL_DATABASE_PASSWORD'] = os.environ['MYSQL_PASSWORD']
app.config['MYSQL_DATABASE_DB'] = os.environ['MYSQL_DATABASE']
app.conf... | [
"skipluck@outlook.com"
] | skipluck@outlook.com |
731b982ded55e2663dc0e0d29bc2c91250cff82b | 31ec3ca684f466c8ae8bc78d9584bda7b25661c3 | /src/app.py | 9beea55508741a0903bb009e9f803162029ff931 | [] | no_license | jlott-wtw/flask-tutorial | 69e7d5fbee0dc1b7f7cdf368193d549f93b8a828 | 4f2950fafb9f57b4c7cc35f58c65c579223be1a3 | refs/heads/main | 2023-02-25T03:25:10.709075 | 2021-02-03T17:58:16 | 2021-02-03T17:58:16 | 335,717,079 | 0 | 0 | null | 2021-02-03T18:25:06 | 2021-02-03T18:25:05 | null | UTF-8 | Python | false | false | 205 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0")
| [
"joe@uicraftsman.com"
] | joe@uicraftsman.com |
cea016516d64349e75bb25cc022212e25872017d | da3e0757e222b4351f86ce629507674cda11bc5b | /35-Pizza-Order-RafaelaOsawe/main.py | 600fdf2b384baf7cd0a48052212e7af83335f146 | [] | no_license | RafaelaOsawe/pizza_anyone | f7dcab0d6c6b230abba1fe27c7e9f84aab190597 | e6ba9d0066da3f7aca9add46a0e2b5fac4dd8b74 | refs/heads/main | 2023-09-05T05:50:09.895472 | 2021-11-16T13:40:06 | 2021-11-16T13:40:06 | 428,239,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | # A pizza restaurant would like you to create a program that works out the total cost for each pizza that they sell.
# Create a series of print statements and inputs that will allow the customer to type in their pizza requirements
#Make sure that a total_cost variable has been created for the total cost of the pizza ... | [
"noreply@github.com"
] | RafaelaOsawe.noreply@github.com |
1969a00c60b0629cd71bfe27503f2079ef24c039 | c6462a5daf37d630ea7d21db9d74a8ead1f8ecba | /feature_output/isDisease.py | 1331d41641423b864b7d4a2b8ddbef0aa29021fa | [] | no_license | GumpCode/Disease | d96581a27cb5c2dd02eed74508c7d66533d0701b | 6d6452aa8069329c9a0f5bd40dbf37bc285e6e7e | refs/heads/master | 2021-01-10T17:46:42.454246 | 2016-02-26T03:58:13 | 2016-02-26T03:58:13 | 52,574,879 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | #coding: utf-8
import theano
import cv2
import numpy as np
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D, AveragePooling2D
from keras.optimizers import SGD, Adadelta, Adagrad
from keras.utils impo... | [
"gumpglh@qq.com"
] | gumpglh@qq.com |
cc7b665c83f8543103917e758110a0740728df5d | 3fca2d6716aeb04c85f91c92b3c1f2ecdfc3675d | /my_django/wsgi.py | 246127533ab664282da402571810e7f27c9f1d4a | [] | no_license | kimhs1876/new_django | a9c18bf2176eb125b3f7c6c3de25ae834678f599 | 0741a30f0541f5061f91a243f33d021110afe8db | refs/heads/master | 2023-05-04T22:20:07.862367 | 2021-06-01T14:33:25 | 2021-06-01T14:33:25 | 371,668,173 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for my_django 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"kimhs1876@naver.com"
] | kimhs1876@naver.com |
323f70b3f8204547a3ec94e5bf783ea3f8c6bd48 | bd3945643f5dcc3e844f7104b9de45a0670d3322 | /Exercises/lecture_14_16/02_dialog.py | f05e00f5148f1a22bb797e1d3f3e5670c99b82e4 | [] | no_license | anatshk/SheCodes | 219d036af0cf88ee047728487f87ea782c4588ce | 427d10b056144900e7158e9ac5cf9aa116592cc3 | refs/heads/master | 2021-01-19T01:16:06.008378 | 2019-08-24T09:39:57 | 2019-08-24T09:39:57 | 87,235,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | from tkinter import *
from tkinter import messagebox
root = Tk()
# *********** Functions ***********
def about():
messagebox.showinfo(title='About', message='blah blah') # show info icon
# messagebox.showwarning(title='About', message='blah blah') # show warning icon
# messagebox.showerror(title='Abou... | [
"as@consumerphysics.com"
] | as@consumerphysics.com |
920c7b795dcb7736a6d1c57d8726c3042a054608 | 8ecc4094237b63a897a27bd368b4d9842e8ae9d2 | /experiment-directory-tools/__init__.py | 5f6e44ccab5372c91bd849e734e4345dd63404a2 | [] | no_license | RedLeader962/experiment-directory-tools | 6ee66f0ffef219a0e8712afd632a35984427acad | c209b8fb4be86251cd68c590007816d3f7de09a3 | refs/heads/master | 2020-03-27T16:27:47.630396 | 2018-09-07T12:49:01 | 2018-09-07T12:49:01 | 146,784,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #!/usr/bin/env python
from experiment_directory_tools import clean_result_directory, create_run_directory
__all__ = ["create_run_directory", "clean_result_directory"] | [
"luc.coupal.1@ulaval.ca"
] | luc.coupal.1@ulaval.ca |
e3d5e92a76b6f3a211aabefe26a206f2c8ebe0e8 | a25edcafff4c890210c39bed91d1647bffb3fcee | /Machine Learning/SVM's/SVM.py | 3312dff1bd6e0cdd714045b0d0c2d495fb1abbe4 | [] | no_license | Oregand/4THYEARPROJECT | 68b4f81bfaa8aa39da141312a2697dcf36aa0719 | cbd3b8228e8247129cffb80225ffc6fc1fe75ee7 | refs/heads/master | 2021-01-13T01:59:33.906624 | 2014-06-05T18:14:05 | 2014-06-05T18:14:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,264 | py | """ Example script for SVM classification using PyBrain and LIBSVM
CAVEAT: Needs the libsvm Python file svm.py and the corresponding (compiled) library to reside in the Python path! """
__author__ = "Martin Felder"
__version__ = '$Id$'
import pylab as p
import logging
from os.path import join
from sklearn import *
... | [
"davidoregan91@gmail.com"
] | davidoregan91@gmail.com |
03ff54224dfdb710b2127f90b62adc825688daf5 | 419637376e445ec9faf04c877d5fb6c09d15903f | /steam/admin/activity/productAuditService.py | ec92efa0a2a88750d9fbbdda4e0b8a68c42dbce8 | [] | no_license | litaojun/steamOmTest | e4203df30acafaa5e282631d77429c0e4483fb88 | 86f84dbd802d947198823e02c2f1ba2695418a76 | refs/heads/master | 2020-04-02T21:48:55.115389 | 2019-07-11T06:08:27 | 2019-07-11T06:08:27 | 154,812,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from steam.util.httpUopService import HttpUopService
from opg.bak.uopService import decorator
class ProductAuditService(HttpUopService):
'''
审核活动
'''
def __init__(self, kwargs):
super(ProductAuditService, self).__init__(module = "",
filename = "",
sqlvalu... | [
"li.taojun@opg.cn"
] | li.taojun@opg.cn |
a0b916ba59d2287f975c8dd6cacb536734ae2464 | 02a39e3492b37e612a7076fe35bc2c2a08e3426e | /ml/rl/test/preprocessing/test_feature_extractor.py | aa4c899cec483d6904b1c6ba26e6301559e6b45d | [
"BSD-3-Clause"
] | permissive | xuegangwu2016/Horizon | a0fd11c3bd3c763a07d113fbc6fd51d50a15252d | a7633d8375240b757b34645a1fbebb809d2eabf2 | refs/heads/master | 2020-04-10T08:11:56.004183 | 2018-12-07T06:40:34 | 2018-12-07T06:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,018 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
import unittest
import numpy as np
import numpy.testing as npt
from caffe2.python import schema, workspace
from ml.rl import types as rlt
from ml.rl.preprocessing.feature_extractor import (
PredictorFeatureExtractor,
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
043726843b64f7026111458e53c6551599ad3e12 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03328/s713805169.py | 9bf51a8dd2d62f9ce6c096b400cb84417951bd79 | [] | 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 | 454 | py | import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce
rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2f33717119e1037f6daa632209ccc67ce2da79ba | 7a92877018d91ca697d3af9c4a7dfe64710d9417 | /algorithm/python/MachineLearning/Apriori.py | 45f2c91abbe8f7d837f9b122a83996586b2bbf9e | [] | no_license | TonyMou/Algorithm | c39cc896ee44af56562d807bb158ce88d0b9760b | 8f58eebc863c2eca158c351425cc7d89c839102f | refs/heads/master | 2020-12-02T03:04:00.329602 | 2016-08-30T03:04:48 | 2016-08-30T03:04:48 | 66,848,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | # -*- coding: utf-8 -*-
def loadDataSet():
return [[1, 3, 4], [2, 3, 5], [1, 2, 3, 5], [2, 5]]
def createC1(dataSet):
C1 = []
for transaction in dataSet:
for item in transaction:
if not [item] in C1:
C1.append([item])
C1.sort()
return map(frozenset, C1)
def ... | [
"liutuo@outlook.com"
] | liutuo@outlook.com |
f021bd45d6ee149fbd6949dd30fa1aaf4fe1e125 | 8198dd21a5fb2ca0717c013b52b29f8c82ba23b6 | /companies/migrations/0006_auto_20171116_1705.py | 5937564ff10c8abf34b86447e0fad03f1aa7c698 | [] | no_license | Code-Institute-Submissions/Project3GI | 3f3ecdaeb3ceaca1addf9e2a5739d0bbf870b554 | 841d94b45bf12c5ef709b5283218e261cecbdfa3 | refs/heads/master | 2021-05-06T11:31:12.896386 | 2017-12-14T16:24:04 | 2017-12-14T16:24:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-16 17:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('companies', '0005_companytrade_date_created'),
]
operations = [
migrations.... | [
"kaiforward123@gmail.com"
] | kaiforward123@gmail.com |
01fbcb3a3e835adf648c78a175cf15859e65174b | 6ee130a0990cc49d1f5aff5ddc7ed734e3e21162 | /index/context_processors.py | 105de95eabaf332e6bab75b31202affd50c21e3f | [] | no_license | Juggernaut-98/Drug-store | c504d582a335fd55ff924b71c48d79bdef6da3fe | 5d902c8878ebc6a4da13b36ad10bde3220c2dfc6 | refs/heads/master | 2022-02-17T22:59:54.525759 | 2022-02-01T21:24:47 | 2022-02-01T21:24:47 | 165,412,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from products.models import category
def categories(request):
categories=[]
for key in category.objects.all():
categories.append(key)
return {'categories': categories}
| [
"tayyab.athar.saleem@gmail.com"
] | tayyab.athar.saleem@gmail.com |
20a8d63f94bd59917256072940521595da8b1352 | 796c8bd841d529afcc093f2b3e1ffc03a948b440 | /deep_learning/network/Connection.py | 431fbfc626cd219b161c0ae9b10500b1d75cedc3 | [] | no_license | QcQcM/visualComputingCourse | e24fa17c80091ef1d674597a8ee64e017f49a211 | 422ad3b3bf1b5f21d6b2a8179ef22fd33fa04e23 | refs/heads/master | 2020-09-14T07:41:20.893861 | 2020-02-12T05:45:39 | 2020-02-12T05:45:39 | 223,067,759 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | class Connection(object):
def __init__(self, input_node, output_node, weight, learn_rate):
self.input_node = input_node
self.output_node = output_node
self.weight = weight
self.learn_rate = learn_rate
def update_weight(self):
self.weight += self.learn_rate * self.output... | [
"708805642@qq.com"
] | 708805642@qq.com |
37ed3ba6d3cc4f00202b0465713769024a60819c | a9bde343d9c23fb0b2a3e9b8e87305d8daedc6ef | /blog/migrations/0004_auto_20190805_2340.py | c27025e3093cd0372064d8281b0d572b9b02970f | [] | no_license | Donghwa96/sixproject | cc9a37aa91edaceaba8eb62bed669aefa828f50f | 3c9e79d01b5e77be27c9542955d377af5a82bcc8 | refs/heads/master | 2022-12-06T21:12:40.955191 | 2019-08-15T16:28:48 | 2019-08-15T16:28:48 | 202,531,508 | 0 | 0 | null | 2022-11-22T04:11:34 | 2019-08-15T11:46:52 | JavaScript | UTF-8 | Python | false | false | 698 | py | # Generated by Django 2.2.4 on 2019-08-05 14:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('blog', '0003_auto_201908... | [
"ensk960405@gmail.com"
] | ensk960405@gmail.com |
f049b38dd78617eb496ff0fcb6c2524c5dd784dc | 9191ab3307791847f15083f2884b5c30cce6dc24 | /produtor/urls.py | 05ccd8d2f50663d81ca0717a1faf31e145260629 | [] | no_license | Nelzio/hialitics | 7f1769dc5e3d4c167d10402df125a8f824f62ae6 | 616ef6deb9f60f6c66ba55544c79fc8b7b279e0a | refs/heads/master | 2022-12-10T10:47:27.304383 | 2019-03-17T06:34:16 | 2019-03-17T06:34:16 | 175,998,064 | 0 | 0 | null | 2022-12-08T04:52:34 | 2019-03-16T16:45:12 | HTML | UTF-8 | Python | false | false | 702 | py | from django.urls import path, include
from . import views
from rest_framework import routers
router = routers.DefaultRouter()
router.register('endereco', views.EnderecoAPI)
router.register('contacto', views.ContactoAPI)
router.register('produtor', views.ProdutorAPI)
router.register('pavilhao', views.PavilhaoAPI)
rout... | [
"nelziositoe@gmail.com"
] | nelziositoe@gmail.com |
f096553bf112edde9a685cccede57835e9c15dd8 | 392a35174450d1151d276481be4bb4c1ed1fc841 | /chapter-05/Q06_conversion.py | d280bd750de009a1f698bee7dc71814d7822e90f | [] | no_license | jcockbain/ctci-solutions | 8f96a87532a7581cdfc55c29c8684fcdfab77a62 | 6854e9f6c7074ae22e01c3e5f6c03f641e507cd7 | refs/heads/master | 2023-01-15T16:59:58.038900 | 2020-11-28T09:14:36 | 2020-11-28T09:14:36 | 202,898,842 | 6 | 0 | null | 2020-11-28T09:14:37 | 2019-08-17T15:33:25 | Python | UTF-8 | Python | false | false | 254 | py | import unittest
def conversion(n1, n2):
c = n1 ^ n2
count = 0
while c:
c &= c - 1
count += 1
return count
class Test(unittest.TestCase):
def test_conversion(self):
self.assertEqual(2, conversion(29, 15))
| [
"james.cockbain@ibm.com"
] | james.cockbain@ibm.com |
d3c04239cbf82fb6c83edd7f0d839a76a25a1fb7 | c19ca6779f247572ac46c6f95327af2374135600 | /backtrack/leetcode 784 Letter Case Permutation.py | 7145ae98631ee4d97b9ba49b7d4cfe96f90f5f24 | [] | no_license | clhchtcjj/Algorithm | aae9c90d945030707791d9a98d1312e4c07705f8 | aec68ce90a9fbceaeb855efc2c83c047acbd53b5 | refs/heads/master | 2021-01-25T14:24:08.037204 | 2018-06-11T14:31:38 | 2018-06-11T14:31:38 | 123,695,313 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,006 | py | __author__ = 'CLH'
'''
Given a string S, we can transform every letter individually to be lowercase or uppercase to create another string. Return a list of all possible strings we could create.
'''
class Solution(object):
def __init__(self):
self.S = []
self.answer = []
self.total_answ... | [
"15720622991@163.com"
] | 15720622991@163.com |
ed040008ab01ccae838c6f31a4b81b04effa632f | 9159464e4ee0112d4b73f948919d99addafe9b1c | /veggie411/admin.py | 5f3c1be5c0aaad8b37e103df99e86b93c86dc581 | [] | no_license | josefsresearch/veggie411 | dbb8434a36461c23922525fc90fa20cfd5de5279 | b843bd8906b14927573f4ffe5c27c87151545623 | refs/heads/master | 2020-03-29T13:31:05.022528 | 2013-08-03T12:40:59 | 2013-08-03T12:40:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | from django.contrib import admin
from veggie411.models import Email
admin.site.register(Email)
| [
"josefsresearch@gmail.com"
] | josefsresearch@gmail.com |
cf64f9a87f6ef63aa7b54b05ab9a7e7bdcb36c00 | 1f70857ff5425aa5f65afb7fce6c172a65a70338 | /mvsrvd/db.py | adc402807c029e36661c1aa04aedd9670da0e323 | [] | no_license | SpComb/myottd2 | da0d87304f50349667a8faae59dc903e4d5ef68f | 599c3720ec92a711bb91f99c7d4b129a96a2aa0a | refs/heads/master | 2021-07-18T21:16:00.399021 | 2017-10-25T09:35:19 | 2017-10-25T09:35:19 | 108,247,168 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | from twisted.internet.defer import returnValue, inlineCallbacks, maybeDeferred
from secrets import db_password
import settings, errors
from lib.db import DB, callFromTransaction
db = DB(settings, db_password)
@db.wrapAsTransaction
def initialize_server (trans, server_id, backend_create_cb) :
# fetch an unused s... | [
"terom@fixme.fi"
] | terom@fixme.fi |
99dd30f23ee4e20084f957c62cc8b8ebfd897604 | 2b2b5fe4d7684a79443a8fc798786accc99b8179 | /template_store/models.py | e620213b676c9e3737cb67850e007074cae8a7be | [] | no_license | ewanlockwood/django-fullstack-project | 07701a7447f4fbcee3060750862a5b673a2a972f | 456537d56f074baf3c59a62957aa32eed8f7c410 | refs/heads/master | 2020-08-01T18:23:56.934968 | 2019-10-04T10:50:32 | 2019-10-04T10:50:32 | 211,075,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | from django.db import models
# Create your models here.
class Template(models.Model):
title = models.CharField('Template Title', max_length =30)
description = models.TextField()
image_url = models.CharField('Template Image Url', max_length = 300)
color = models.CharField('Template Color', max_length = ... | [
"ubuntu@ip-172-31-27-44.ec2.internal"
] | ubuntu@ip-172-31-27-44.ec2.internal |
56a2b628001cbc8b80e9af74b4972644b513bd67 | 81407be1385564308db7193634a2bb050b4f822e | /library/lib_study/138_mm_imghdr.py | b2e25a38bf54fb2a4859d179ee87719fc5ae4348 | [
"MIT"
] | permissive | gottaegbert/penter | 6db4f7d82c143af1209b4259ba32145aba7d6bd3 | 8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d | refs/heads/master | 2022-12-30T14:51:45.132819 | 2020-10-09T05:33:23 | 2020-10-09T05:33:23 | 305,266,398 | 0 | 0 | MIT | 2020-10-19T04:56:02 | 2020-10-19T04:53:05 | null | UTF-8 | Python | false | false | 210 | py | # imghdr模块 推测文件或字节流中的图像的类型
import imghdr
print(imghdr.what('bass.gif'))
# gif
# 可以识别的图像类型 https://docs.python.org/zh-cn/3/library/imghdr.html#imghdr.what
| [
"350840291@qq.com"
] | 350840291@qq.com |
9a728c8b4a66cbb3a7552cd72d430484fca35238 | 5b4c6872c32cc82a2e0b18bee8a74bdff93241c3 | /dumpsters/management/commands/importfallingfruit.py | 50b69fda65fc8d3e9d24dd8fa49ad57f371fcb3b | [] | no_license | Debakel/Dumpstermap | a078b0837758d47fb357f94ea194052eda0f6097 | 69c91a696ceabb4143dafbf26f4327a03ef11932 | refs/heads/main | 2023-08-31T11:32:41.329508 | 2023-08-29T11:34:16 | 2023-08-29T11:34:16 | 41,272,591 | 12 | 3 | null | 2023-09-13T17:04:16 | 2015-08-24T00:02:21 | Python | UTF-8 | Python | false | false | 584 | py | from django.core.management.base import BaseCommand
from dumpsters.models import Dumpster
from dumpsters.serializers import DumpsterSerializer
class Command(BaseCommand):
help = "Exports dumpsters as geojson"
def add_arguments(self, parser):
parser.add_argument("file", nargs="+", type=str)
def ... | [
"2857237+Debakel@users.noreply.github.com"
] | 2857237+Debakel@users.noreply.github.com |
7ee392f14cf76cf17f113034c49cf15a30acbeb4 | d14e2ba3c2ef1d732e4d5be1fcf9839679021fd9 | /ruta_camionera/models/__init__.py | c36e653dd615035fdc1e28739c8fdc746e80ff38 | [] | no_license | alien010101/ruta_final | 62caf5013f8034eb0b28849a35ca421b06dea66c | acf62a3e8852509d275cf22a64ff47654b8d3f9e | refs/heads/master | 2020-06-06T02:53:09.429437 | 2019-06-18T22:03:18 | 2019-06-18T22:03:18 | 192,618,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | # -*- coding: utf-8 -*-
from . import models
from . import ruta_reporte_wizard
from . import ruta_reporte_duenio
from . import enrutamiento
from . import enrutamiento_reporte_wizard | [
"noreply@github.com"
] | alien010101.noreply@github.com |
e418f29f6324cbfb10915736c410ec13dc788ee7 | b10338838e375530f1ff54de5ea62a5f48fe9e9e | /class/leebyeongcheol/1015 전체복습/lec01~lec03 복습/move_character_with_mouse.py | 62eb423d9492527c770d28a4fbedd3316ed85b51 | [] | no_license | leebyeongcheol/2D_TeamProject | aee8a9606db7944b1becd10d8a5cb5c7a374711c | 14d300e45cf30b134dea160e06142233a7658576 | refs/heads/master | 2021-05-15T04:52:47.002962 | 2017-12-15T00:44:39 | 2017-12-15T00:44:39 | 104,991,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from pico2d import *
def handle_events():
global running
global x, y
events = get_events()
for event in events:
if event.type == SDL_QUIT:
running = False
elif event.type == SDL_MOUSEMOTION:
x, y = event.x, 600 - event.y
elif event.type == SDL_KEYDOWN and... | [
"32187933+leebyeongcheol@users.noreply.github.com"
] | 32187933+leebyeongcheol@users.noreply.github.com |
d8507728b84bfbe09580345d419ab4e41b827e76 | 14f1563556f29a1da60f8a2a9827ef9fc1097ee9 | /min_eigvec.py | 0bbd9161c6da46364b5a2a166aa69c369262f7ba | [] | no_license | AndrewTNaber/memeffpsd | 7f98106f8add3766a18eecc18796003589171de6 | 5b267035c6b5dba7c9d0e00cbc79320c72300a07 | refs/heads/master | 2023-01-01T21:45:01.435235 | 2020-10-05T06:36:24 | 2020-10-05T06:36:24 | 301,314,541 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,701 | py | # NAME: min_eigvec.py
# AUTHOR: ANONYMOUS
# AFFILIATION: ANONYMOUS
# DATE MODIFIED: 10 June 2020
# DESCRIPTION: Functions for computing the minimum eigenvalue/vector using
# ARPACK, Lanczos, shift invert, or power iteration.
# Implementations of the power iteration and Lanczos methods
# ... | [
"naber@stanford.edu"
] | naber@stanford.edu |
84a87e224279a2026d32243673dfe8d0e77bc3c7 | dfc745ea5c8c9f8034e9c03913256c7016268545 | /code/Comments_word_cloud.py | 2ece44b85d936cc07032c5e96e6f2ac74d3da6e4 | [] | no_license | chawucirencc/Crawl-comment-generation-word-cloud | 3a746b4ae0c98bf2634ac7999d1aa60fc923a5ea | 7de94fcd5652c731ffd334006c8b6526d4934bee | refs/heads/master | 2020-03-27T04:38:29.799487 | 2018-08-24T07:21:56 | 2018-08-24T07:21:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,821 | py | #!/usr/bin/env.python
# -*- coding: utf-8 -*-
import requests
import re
import random
import jieba
import wordcloud
import matplotlib.pyplot as plt
from bs4 import BeautifulSoup
from requests import RequestException
def get_url_list():
"""得到URL列表"""
url_list = []
for i in range(0, 50, 2):
... | [
"noreply@github.com"
] | chawucirencc.noreply@github.com |
6c4e60d8e9cc45ef7e1a5dcd992fa8c88ac7d723 | a0071459ad6ddd84b12603ef8bb375787ee7090b | /amazon/amazon/spiders/amazon_spider.py | 0d6e04d23ea0fa35f723d4189a20d78c131b9558 | [] | no_license | diprish/Crawler | 2ac7ffea0b6477a83b182b11e2e911ec028c18a9 | 524d7f13cf64a4a614656d4fe64dc8ee6026140f | refs/heads/master | 2016-09-01T23:57:16.364576 | 2015-07-02T13:12:33 | 2015-07-02T13:12:33 | 27,781,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | # -*- coding: utf-8 -*-
from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.lxmlhtml import LxmlLinkExtractor
from scrapy.selector import HtmlXPathSelector
from amazon.items import AmazonItem
class AmazonSpiderSpider(CrawlSpider):
name = "amazon_spider"
allowed_domains = ["... | [
"diprish@gmail.com"
] | diprish@gmail.com |
001be2189228e14ea6f87b0daeaacc16a3873cd0 | 4f5ff0a478aa3d33c287bbd678c558dfa2c4c5c4 | /RNN_Embedding.py | 3e20c8462c59f64878c524fa5b534afe23c90c87 | [] | no_license | ishmukul/SentimentAnalysis | 0e07ed4587ffad656195e95f3b10b9ed30fcea42 | af51e70b9556ecee9bfa4aadf80c3562b307446a | refs/heads/master | 2022-11-07T19:41:19.056026 | 2020-06-24T19:18:21 | 2020-06-24T19:18:21 | 274,742,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,785 | py | """
A Recurrent Neural Network model using Word embedding training for sentiment analysis.
Embedding layer is trained on full set of 1.6M tweets and 10k word vocabulary.
Model uses two LSTM layers-> Dense layer
Accuracies are pretty good.
Training ~ 81.5%
Validation ~ 81.62%
Test ~ 81.49%
Achievement: Model was able... | [
"ishmukul@gmail.com"
] | ishmukul@gmail.com |
ee9ade01e55751cb4ad59fad7e8007aa52bf3c2d | d5b339d5b71c2d103b186ed98167b0c9488cff09 | /marvin/cloudstackAPI/createCounter.py | a4ed8386ce48bc5d359fb2c7235ada34f89378f4 | [
"Apache-2.0"
] | permissive | maduhu/marvin | 3e5f9b6f797004bcb8ad1d16c7d9c9e26a5e63cc | 211205ae1da4e3f18f9a1763f0f8f4a16093ddb0 | refs/heads/master | 2020-12-02T17:45:35.685447 | 2017-04-03T11:32:11 | 2017-04-03T11:32:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | """Adds metric counter"""
from baseCmd import *
from baseResponse import *
class createCounterCmd (baseCmd):
typeInfo = {}
def __init__(self):
self.isAsync = "true"
"""Name of the counter."""
"""Required"""
self.name = None
self.typeInfo['name'] = 'string'
"""S... | [
"int-mccd_jenkins@schubergphilis.com"
] | int-mccd_jenkins@schubergphilis.com |
45f9f2259b59d7ce3aafb5602ae87abaff307a61 | 742d4c904fcf0a5a0aadfd074b9823ef313d66b4 | /swagger_spec_compatibility/rules/common.py | 7ef32af182b0f9da6fb1199a672ce9d8b3108cb2 | [
"Apache-2.0"
] | permissive | sptaylor/swagger-spec-compatibility | 8f86090165b84d2480c0d93daebd3e26f168a55f | d9a72a15bc7664d8c99062f4d6ec0f66c0be6a00 | refs/heads/master | 2023-01-02T22:05:00.033544 | 2020-10-26T18:19:39 | 2020-10-26T18:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,305 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
import typing
from abc import ABCMeta
from abc import abstractmethod
from enum import IntEnum
import typing_extensions
from bravado_core.spec import Spec
from six import iterkey... | [
"macisamuele@gmail.com"
] | macisamuele@gmail.com |
52266f9293e6ca5502f42fc135f99a86e9c27e53 | 6088859303f409a44768de29f1ac4a7437bb39ed | /polls/polls/settings.py | d70881229e64d86ac5be85c00b98a4baade0b146 | [] | no_license | dynajosh/election | defeb1ffc1f631f2beb3740bd02c55a152f20f12 | f50e968235fdeeefbf439c9042c881a60cd064a8 | refs/heads/master | 2022-12-28T15:21:24.754978 | 2019-12-18T04:48:20 | 2019-12-18T04:48:20 | 228,758,987 | 0 | 0 | null | 2022-11-22T04:19:15 | 2019-12-18T04:38:25 | HTML | UTF-8 | Python | false | false | 3,452 | py | """
Django settings for polls project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# B... | [
"47697810+dynajosh@users.noreply.github.com"
] | 47697810+dynajosh@users.noreply.github.com |
d21e0535aa4bdb86ba1c102bc3807548e71afa07 | 0002c86d8473bd7a67fdb15fa576f7b2d76090c5 | /Prelab03/basicOps.py | ee1a83e0606384c003e2da746b3da61c942ff06d | [] | no_license | AnthonyKang/ece364 | ef0eac6c10846fc743a2296c04b9c2e3a6fedbae | df00bc59adcc4ae14cd4383e494d3ee6d2430e7a | refs/heads/master | 2016-09-15T21:47:19.157088 | 2015-09-11T23:29:04 | 2015-09-11T23:29:04 | 33,378,227 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py |
# Add all numbers between 1 and 1000 inclusive
def addNumbers():
nsum = 0
for i in range(1001):
nsum = nsum + i
return nsum
# calculates and return the sum of all multiples of input that are between 0 and 1000
def addMultiplesOf(n):
multiples = range(0,1001,n)
total = sum(multiples)
... | [
"akang3894@gmail.com"
] | akang3894@gmail.com |
9b2b69d5c6e79a87bddb7e6771896d87e5eb2662 | 447d399cabd8f0a576e948323db160e378005867 | /app/env/bin/flask | 940464141427c00d7c975e1aecd88e0e1717a68e | [] | no_license | kodiak74/whatweather | 4de7b1a3fea733017ac75a3bc71fc83072d5d9fd | 3a8fd48745b487dc3ed63aa7190c3cc562dc5243 | refs/heads/master | 2023-02-24T08:12:17.777104 | 2023-01-16T23:27:18 | 2023-01-16T23:27:18 | 245,575,407 | 0 | 1 | null | 2023-02-16T00:41:37 | 2020-03-07T05:39:42 | JavaScript | UTF-8 | Python | false | false | 259 | #!/Users/chris/projects/CodeChallenges/weather/app/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"chris@binarycube.com"
] | chris@binarycube.com | |
c0d404e57750dcb40b7a15f49a6d3f01312c3b4c | afd54ae699c4a9800099f9492433968c3850b048 | /write_screen.py | 3d550d2d55d82f0f16b4f627004e2ab20df512ce | [] | no_license | keyvin/ili9341workshop | d6ff883d9641335c6d7c4b1b8f01f3db822ac476 | 29bdaefa7a78d20a7f1617863e106d3f7f56f2ac | refs/heads/master | 2023-07-18T03:16:07.364186 | 2021-08-27T02:45:33 | 2021-08-27T02:45:33 | 397,848,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | import board
import digitalio
import busio
import time
import init_screen
import struct
write = init_screen.write
_CASET = init_screen._CASET
_PASET = init_screen._PASET
_RAMWR = init_screen._RAMWR
spi = init_screen.spi
#pack RGB
def color565(r, g, b):
return (r & 0xf8) << 8 | (g & 0xfc) << 3 | b >> 3
#two 16 b... | [
"keyvin@gmail.com"
] | keyvin@gmail.com |
291dd5df72f43880f627f673249c3503847e4d8a | 16b93b6782685abf78b4551d4df6631c349f8bd8 | /worldmap OOPs paul.py | 9c58217a5a571e1932ad80629eb932e99d39cab2 | [] | no_license | 69xp/cse-notes | d88833962a14e4d2ac25b870359e2d66f788e291 | 964aa8b8d0a761e2b51ee668308f85937fbe4498 | refs/heads/master | 2021-09-15T03:02:01.185597 | 2018-05-24T16:41:10 | 2018-05-24T16:41:10 | 111,137,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,680 | py | class Room(object):
def __init__(self, name, description, north, northeast, northwest, south, southeast, southwest, east, west):
self.north = north
self.south = south
self.east = east
self.west = west
self.northeast = northeast
self.northwest = northwest
self.... | [
"33761423+69xp@users.noreply.github.com"
] | 33761423+69xp@users.noreply.github.com |
86189fab76c8d396364008e82e47ea8f317a1382 | 6041d0f99f2457bc3e021f35c989c0a1a34f5a4e | /automation/sele/trainNum.py | 5175cfb5f662ddfcbbd12dd54de1597619b54c4e | [] | no_license | hanqingxiao/songqin | 05b0d9a4e8e88b51d8df6302dc12dfdb8496a937 | 7247f8438ee60fb1826f4d5dda6105712eaa7544 | refs/heads/master | 2020-09-16T09:57:11.955392 | 2019-12-31T14:00:28 | 2019-12-31T14:00:28 | 223,735,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | from selenium import webdriver
import time
from selenium.webdriver.support.ui import Select
driver=webdriver.Chrome('D:\chromedriver_win32\chromedriver.exe')
driver.get('https://kyfw.12306.cn/otn/leftTicket/init')
#出发城市 南京南
leave=driver.find_element_by_id('fromStationText')
leave.click()#一定要先点击一下输入框
leave.send_keys('南... | [
"2036244560@qq.com"
] | 2036244560@qq.com |
2c980956d589e4751618f4c687685c843d88f1bb | 341696164dd12703c7703d83993c705f776aaee7 | /features.py | d1fdb41f4d1a9d5d3dab333869c6e35ca86bc805 | [] | no_license | 17683995446/voice_recognition_mfcc_and_gmm | 012a252f34362ce1137285bacbbded3e19fe9c61 | 14e933748af7a8b5536d416515ce80c361cb0bfb | refs/heads/master | 2022-09-30T03:30:01.695410 | 2020-06-06T02:16:51 | 2020-06-06T02:16:51 | 269,838,931 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from python_speech_features import mfcc
import sys
def get_feature(fs, signal):
mfcc_feature = mfcc(signal, fs)
if len(mfcc_feature) == 0:
print >> sys.stderr, "ERROR.. failed to extract mfcc feature:", len(signal)
return mfcc_feature
| [
"noreply@github.com"
] | 17683995446.noreply@github.com |
748fc1027540e935d449fb88db4601a7b3347b56 | 41bbb9e0a04c84c17ef4fae931a4ecb4ca6bc6c4 | /Homework9ready.py | d87cdf5eb0d1cd7540fb1122a040a01a9ef8eed2 | [] | no_license | Riasanow/Homework10 | 9852e2cb157ae908bcdf2b6eb7e69e2b08760826 | 7cb2d0d365479b244a358b4a1e73367538a8a881 | refs/heads/master | 2023-01-06T16:50:53.578331 | 2020-11-03T10:29:27 | 2020-11-03T10:29:27 | 303,849,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,311 | py | import requests
#1
import requests
intellegence_values = []
response_hulk = requests.get('https://superheroapi.com/api.php/1430014010524830/search/hulk')
hulk = response_hulk.json()['results'][0]['powerstats']['intelligence']
intellegence_values.append(int(hulk))
response_captain_america = requests.get('https://su... | [
"n.riasanow@gmail.com"
] | n.riasanow@gmail.com |
874717db3cbe769a46cafd9896b68ede6504f722 | c28b984731b51aee2ac93471a033b8c513bda11d | /cifonauta/wsgi.py | 6d574daa2d1b08bbe6aea00d5cc8cb9a6204a02b | [] | no_license | pablovaldes/cifonauta | 01e3ba01fc5e0ea26a3d5af7c7231879fa0fcfaa | 4ba8ce1089ee6e974d1d58aed62cde5acc07398a | refs/heads/master | 2020-07-26T18:11:02.537379 | 2016-10-30T19:30:47 | 2016-10-30T19:30:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for cifonauta project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cifonauta.settings")
from django.co... | [
"organelas@gmail.com"
] | organelas@gmail.com |
028a6300e1254800df156281c88a4be2c8cd0b93 | 22cc3cf2ba4c11e0f59b6db44ae8ed715519600c | /app/bank_account/admin.py | c248bbde74e8c670501c933d7f663f11ff44f2a4 | [] | no_license | piotrrybinski88/bank_account | c0cd8ea2bb4b156dee085f4a6d15be536dbbd0d1 | 50631dcad004cd0906fffd58cbb991eb1a2ddc23 | refs/heads/main | 2023-03-11T20:47:27.918576 | 2021-02-26T06:04:24 | 2021-02-26T06:04:24 | 341,609,338 | 0 | 0 | null | 2021-02-26T05:54:14 | 2021-02-23T16:00:56 | Python | UTF-8 | Python | false | false | 669 | py | from django.contrib import admin
from .models import Account, Transaction
class AccountAdmin(admin.ModelAdmin):
list_display = (
'id', 'account_number', 'currency', 'date_created', 'account_owner', 'balance'
)
readonly_fields = ('account_number', 'currency', 'date_created', 'balance')
class Tra... | [
"piotr.rybinski@polcode.net"
] | piotr.rybinski@polcode.net |
087a67e5405e3ada78f98dc48c3379436a96b3a2 | 6ac723c541e410f737be68f0af634c738e881d74 | /probes.py | abd27d07112f5ce2f0c88bd8935838e6c005df25 | [] | no_license | cxrodgers/Adapters | d478616372ca9fbfc55a886d5b384a15b01a7b91 | da68169c4bb8d8f3c4df13205df2626635632cb8 | refs/heads/master | 2022-12-22T07:46:25.588285 | 2022-12-09T15:21:54 | 2022-12-09T15:21:54 | 4,681,174 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,830 | py | """Pinout for each probe, from channel numbers to Samtec numbers."""
from builtins import range
import Adapters
## This is for Adrian's 1x8 shank array
# This one goes from "electrode #" (depth?) to "interposer PCB #"
adrian_8shank2interposer = Adapters.Adapter(
[27, 25, 21, 20, 9],
[41, 45, 53, 55, 52],
)
#... | [
"xrodgers@gmail.com"
] | xrodgers@gmail.com |
abfc935cd1caa0772fb3edadd90108205f8c3b5e | 681cbcbfea344cbfe1d9b3c8f06a5052abdb74c6 | /codeup/100제/1062.py | 0b00720efa2ab52d800e120ab21bf96ed9b87419 | [] | no_license | leesk212/Daily_Practice_Coding | 02bdf1fcb279367e2321fa899b137b652420265c | fcf68dab87a8b561063e96ff033d89d448fae354 | refs/heads/master | 2023-08-25T19:25:17.141355 | 2021-09-25T18:31:08 | 2021-09-25T18:31:08 | 287,914,804 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | first,second = map(int,input().split())
a=bin(first^second)
print(int(a,2))
| [
"leesk212@gmail.com"
] | leesk212@gmail.com |
a1859e065c1578bd66e9b48fdf00cdfddebabd81 | c30a798cf67aba777174c15802bb51f642741e00 | /LoginSystem.py | 4947ac80a6a7cd43fe48a11b6dd3f0ef952cec6b | [] | no_license | Luke-thompson705/Student-Event-Planner- | f0d2160e4f5f26f06f4a53021625f8f2996c5712 | 940c783ddad47c97599acf78e30d75833a890bc7 | refs/heads/master | 2021-04-26T14:38:36.932393 | 2016-04-25T10:08:13 | 2016-04-25T10:08:13 | 51,303,292 | 0 | 1 | null | 2016-04-25T08:54:05 | 2016-02-08T14:41:47 | Python | UTF-8 | Python | false | false | 3,597 | py | __author__ = 'Harry'
from tkinter import *
def tryLogin(username, password):
myfile = open("PasswordDatabase.txt")
data = []
for eachline in myfile:
eachline = eachline.strip("\n")
data = eachline.split(" ")
if not eachline.isspace():
if 2==len(data):
... | [
"naahbo@hotmail.com"
] | naahbo@hotmail.com |
161ef121e5f50f8ab2a32b0600ab9a65c050b69b | 01b49cefcb2e1aae896a444e525c4cd09aff68be | /nyankobiyori.py | 5e84f044fb388d972b61ccd0aeeb3abbcb0436e1 | [
"MIT"
] | permissive | ikeikeikeike/scrapy-2ch-summary-spiders | 308eccbe83bfc03064ec4b7a9b3952985bf58a15 | 7142693f25025a09390377649a727cfd33d15af3 | refs/heads/master | 2020-04-01T18:04:38.319532 | 2015-01-08T08:30:16 | 2015-01-08T08:30:16 | 28,956,442 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,625 | py | # -*- coding: utf-8 -*-
import re
import itertools
from scrapy import log
from scrapy.selector import Selector
from summaries.items import SummariesItem
from thread_float_bbs import (
SequenceAppend,
ThreadFloatBbsSpider
)
class NyankobiyoriSpider(ThreadFloatBbsSpider):
""" for nyankobiyori.com
"""... | [
"jp.ne.co.jp@gmail.com"
] | jp.ne.co.jp@gmail.com |
10bb84772bc2259f096c95680535c73be6e92a02 | f6793d3af7d0fb77a8f97d1407cab683d0d70f39 | /src/dash_tutorial.py | d086b8fe0d8e6249f1ab9bd5a6f8acd9d65d2e55 | [] | no_license | leopold-franz/swiss-healthcare-datavisualization-test | 0df5dd6db9e33521a5531827dd65a2fffded0382 | 0c7f881050ff6f6f5da38b07e874237c67557773 | refs/heads/master | 2023-01-21T20:14:07.434688 | 2023-01-12T11:45:31 | 2023-01-12T11:45:31 | 286,707,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | import dash
from dash import dcc
from dash import html
from dash.dependencies import Input, Output
import plotly.express as px
import pandas as pd
from pathlib import Path
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
# The d... | [
"leopold.franz@gmx.ch"
] | leopold.franz@gmx.ch |
e88faa6e524a01a987338390bf5e01efd5009456 | 8f117ba7a1087a57c2a0fd41b902108e0bee490e | /cal.py | cda3ce00a6d9f6d460f0660b40894c47e534edc2 | [] | no_license | 1304740908/ACCM | dbb51e5f9827d7ce3babafe89af7c7d643967afa | 1eadfbf869015c10cafc3115766e09f84a071563 | refs/heads/master | 2022-01-04T23:04:49.669424 | 2019-05-12T22:21:09 | 2019-05-12T22:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | # -*- coding: UTF-8 -*-
from numpy import *
import operator
import sys
import re
from os import listdir
def loadGraphDict(fileName):
dataDict = {}
fx = open(fileName)
for line in fx.readlines():
lineArr = re.split(' |,|\t',line.strip())
lenth=len(lineArr)
if(lenth<2):
... | [
"noreply@github.com"
] | 1304740908.noreply@github.com |
1e23e7a0136d045d6b3707215f193b71e0e7ee8c | 62420e35e497f3026a980f1ab6dd07756eeeae7f | /oparlsync/generate_thumbnails/GenerateThumbnails.py | 804a53c257d97dd0ebb4f2b689dcd0deabb6991d | [] | no_license | curiousleo/daemon | b530f528449579ecbb0bd52dee94cbc954bd9b96 | d47a5b49ac144b9992ab35ff09f113a94f16bd60 | refs/heads/master | 2020-04-14T01:56:52.316211 | 2018-12-30T09:20:18 | 2018-12-30T09:42:53 | 163,573,533 | 0 | 0 | null | 2018-12-30T08:38:41 | 2018-12-30T08:38:41 | null | UTF-8 | Python | false | false | 9,206 | py | # encoding: utf-8
"""
Copyright (c) 2012 - 2016, Ernesto Ruge
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of condit... | [
"mail@ernestoruge.de"
] | mail@ernestoruge.de |
c79d5564e78d20d17cb770d41df75384c39e4317 | 057891dfaee63691cd03502a78849c7d44416eac | /py/climber.py | 4ea0656fa5f59fcc363634bff1b81d9e3269c5ec | [] | no_license | VictorGhercoias/LPD8806_PI | ba36ef3872ce2af82f9f6bc4606450e3c30f1ef9 | 0b67d674aa8e3aef671f8171d87a21a5f765f4bc | refs/heads/master | 2021-05-10T07:43:36.549599 | 2018-01-24T22:15:03 | 2018-01-24T22:15:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # !/usr/bin/python
from bootstrap import *
from raspledstrip.animation import *
#setup colors to loop through for fade
colors = [
(255.0, 0.0, 200.0), # red
# (0.0, 255.0, 0.0), # blue
# (0.0, 0.0, 255.0), # green
# (255.0, 255.0, 255.0), # white
]
... | [
"catalin.ghercoias@gmail.com"
] | catalin.ghercoias@gmail.com |
c597e4a2e219ff461d0a9195d8c6499ce1384248 | 0acc2e1fafb6eb74832ad40c12dc7c6daf12df3e | /problem-sets/melon-raffle/solution/customer_info.py | 736c8d379dbe9f6bf2f26a50f557eb40f09d1633 | [] | no_license | jttyeung/hackbright | 692911705dfbf3aa3f59bd897b9f12b2a7f1abca | 4d9650e4b88def4d8765a6680450d81f08d5b5a1 | refs/heads/master | 2021-01-12T00:53:39.314166 | 2018-02-01T07:13:41 | 2018-02-01T07:13:41 | 78,312,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | from customer import Customer
def organize_customer_data(customer_file_path):
"""Read customer file and return list of customer objects.
Read file at customer_file_path and create a customer
object containingcustomer information.
"""
customers = []
customer_file = open(customer_file_path)
... | [
"jttyeung@gmail.com"
] | jttyeung@gmail.com |
7fd7a0d7b7067957a3e68dee68983705f5d47407 | 6265991d742eaf72331d845f03b7b98e11029486 | /Queue.py | 973a0d96b0207195b373ef51973ec80caab9187a | [] | no_license | Khamies/Data_Structures-and-Algorithms | 6a63cea297b5379684394f3ed9f630f3743695a5 | 75169c4be7684df64fbe2b4d652c43026ed1ab4a | refs/heads/master | 2020-04-21T09:42:09.572719 | 2019-02-09T14:04:11 | 2019-02-09T14:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py |
class Queue:
def __init__(self, capacity):
self.capacity=capacity
self.array=[]
self.write=-1
self.read=-1
def enqueue(self,element):
if self.read == -1 and self.write >= self.capacity:
print(" Queue is empty")
return -1
else:
... | [
"waleed.daud@outlook.com"
] | waleed.daud@outlook.com |
0b8ba97f179806b4636613b056bfd9ef384ad098 | 8d7b88d41be387552922992f8600ee65ead1c467 | /parsefec.py | 912ca6f73207fc30440da910cf30381839252a03 | [] | no_license | electionr/parsefec | 6e4a80420e0258a106a48cce9ffa7fb57a80449e | 5d68646b574a35cc3d61fa6d110c77d9c475a332 | refs/heads/master | 2021-01-16T20:05:30.741433 | 2014-06-03T23:04:03 | 2014-06-03T23:04:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,928 | py | '''
parsefec is a command line tool and python library for downloading, parsing FEC Electronic filings.
Usage: parsefec.py [-h] [--outdir OUTDIR] [--inputdir INPUTDIR] [--mode MODE]
[--delimiter DELIMITER]
Parser for FEC Electronic Filing data from OpenSecrets.org
optional arguments:
... | [
"alexbyrnes@gmail.com"
] | alexbyrnes@gmail.com |
0335920b85313fe41a0cc25191d8d8d1039dc145 | e1071cd8065ed01b8bc42f5f47f964837ec723b8 | /bin/python/ripple/util/test_ConfigFile.py | 0d7efc896e484fafd0bd7e810380c9b115228788 | [
"MIT-Wu",
"MIT",
"ISC",
"BSL-1.0"
] | permissive | SAN-CHAIN/sand | 07355acf0ba4607a5cb1408a1d86d87f03e3a317 | 1c51a7d1b215a7a2e1e06bd3b87a7e1da7239664 | refs/heads/master | 2020-06-22T01:27:21.168067 | 2016-10-15T11:22:18 | 2016-10-15T11:22:18 | 94,208,495 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,271 | py | from __future__ import absolute_import, division, print_function, unicode_literals
from ripple.util import ConfigFile
from unittest import TestCase
class test_ConfigFile(TestCase):
def test_trivial(self):
self.assertEquals(ConfigFile.read(''), {})
def test_full(self):
self.assertE... | [
"nemox1024@hotmail.com"
] | nemox1024@hotmail.com |
248b8e5a606abc28c5345081f3e44a98c551c887 | 6450234cc5339e9d05102b25b25ba38e2bd9e4cb | /MonoJetAnalysis/python/defaultMETSamples_mc.py | 7e30898207a90d75e9d21b8ec7eea5427d251ec5 | [] | no_license | wa01/Workspace | 57b87481005c441ab91a8180ddf6ea00b520aca7 | 47759c6a20473f7a694ca9e3fd4e0e8343c8018c | refs/heads/master | 2021-01-15T10:36:55.429420 | 2014-09-20T17:44:54 | 2014-09-20T17:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,897 | py | import copy, os, sys
allSamples = []
from Workspace.HEPHYPythonTools.createPUReweightingHisto import getPUReweightingUncertainty
S10rwHisto = getPUReweightingUncertainty("S10", dataFile = "/data/schoef/tools/PU/MyDataPileupHistogram_Run2012ABCD_60max_true_pixelcorr_Sys0.root")
S10rwPlusHisto = getPUReweightingUncerta... | [
"robert.schoefbeck@cern.ch"
] | robert.schoefbeck@cern.ch |
1485f5c74c536b2b92e1bb01b55283d6afe8f884 | d243d2313dbcafaed3ce119610dcac846a76c119 | /进程、线程、协程/多线程/线程隔离对象Local.py | c50d4fae732d7e3d74c9fd246a8d0a9a5bdd7628 | [] | no_license | H-tao/Python | 8c9751a8678b755b88ecb3a1610ef842aaf13ec2 | 80276ce15272369a4577b4067766d784969dc02d | refs/heads/master | 2023-04-19T18:31:04.828689 | 2021-05-12T08:58:29 | 2021-05-12T08:58:29 | 283,165,278 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | from werkzeug.local import Local
from threading import local
| [
"noreply@github.com"
] | H-tao.noreply@github.com |
09efa3e2cc46a870ee131e9c706297c18b8b44e4 | 2db5bf5832ddb99e93bb949ace1fad1fde847319 | /beginLearn/googleclass/class4/pdtest.py | 3b933a6cef80f4c7bb2ba24fc99b874212470863 | [] | no_license | RoderickAdriance/PythonDemo | 2d92b9aa66fcd77b6f797e865df77fbc8c2bcd14 | 98b124fecd3a972d7bc46661c6a7de8787b8e761 | refs/heads/master | 2020-04-06T17:36:46.000133 | 2018-11-15T07:07:03 | 2018-11-15T07:07:03 | 157,666,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | import pandas as pd
import numpy as np
city_names=pd.Series(['San Francisco', 'San Jose', 'Sacramento'])
population = pd.Series([852469, 1015785, 485199])
cities = pd.DataFrame({'City name': city_names, 'Population': population})
california_housing_dataframe=pd.read_csv('data.csv')
california_housing_dataframe.hist... | [
"1371553306@qq.com"
] | 1371553306@qq.com |
060f6f2f5d9c68e50ff34698805854ed563dfdc5 | a74ebe21cc1bbc50fc58ea619ba3348a4160e19d | /setup.py | 707011151a232fd112400ba2f2917e33f0088110 | [
"MIT"
] | permissive | sharebears/pulsar-messages | 61e47a373fcd6ea6d9d51a1ea21cb6020603fa9d | 723faa7be560f97f9a349e23b395239ccc10161f | refs/heads/master | 2020-07-06T00:15:03.036290 | 2019-08-17T03:53:44 | 2019-08-17T03:53:44 | 202,827,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,063 | py | #!/usr/bin/env python3
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pyt... | [
"lights@tutanota.de"
] | lights@tutanota.de |
8c6f22eb0df54d68816c89fd47124609cdda6a8b | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/rhinocero.py | 73c56188877d4091cd9bac140d2c91b768e60ab7 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 397 | py | ii = [('LyelCPG2.py', 3), ('RogePAV2.py', 6), ('RogePAV.py', 4), ('RennJIT.py', 3), ('ProuWCM.py', 2), ('PettTHE.py', 1), ('ClarGE2.py', 1), ('CoolWHM.py', 5), ('BuckWGM.py', 22), ('LyelCPG.py', 9), ('WestJIT2.py', 4), ('CrocDNL.py', 1), ('KirbWPW2.py', 11), ('BuckWGM2.py', 3), ('FitzRNS4.py', 10), ('CoolWHM3.py', 1), ... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
f3cbd2827b909b1a99c7b0e29d97be9be7d47f52 | 731a47d4d489bc8c052c03d1ff5d125ec2efe41f | /rosalind_scripts/rear_rosalind.py | 99fe90307ee73db09b4ccf1dce052af1bf67d9bf | [] | no_license | mRotten/rosalind_scripts | 76d800773a026fd10ad3e55fed874d873252ceaa | ecb4a5dde72c5a3f8f1761f9d6cf395717a4e542 | refs/heads/master | 2023-06-27T06:36:15.853240 | 2021-07-25T20:01:47 | 2021-07-25T20:01:47 | 389,404,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,601 | py | import argparse
import time
def main():
parser = argparse.ArgumentParser()
parser.add_argument('-i', '--input_path')
args = parser.parse_args()
seq_pairs = __get_input(args.input_path)
result = list()
for i, sp in enumerate(seq_pairs):
print(f'Starting pair {i}...')
rpl = __get... | [
"lalondematthew@hotmail.com"
] | lalondematthew@hotmail.com |
c9c9bb8d059a003ddb370ae07f11e838d25e6baa | 64e6bec993e89c884332d479b5fddf91cda44a8f | /.c9/metadata/environment/guitar_shed/guitar_shed/urls.py | f17f225e75d9b78470e2acd2d75a4dd0da70ef0f | [] | no_license | richdevelopments/guitar-shed | d8379eb75a06d2d9f14de49d870588821e9385f9 | c730a4c47b218b80214ce7e4cc27cb3f039ec9ad | refs/heads/master | 2022-12-01T11:58:09.514294 | 2019-11-11T22:18:39 | 2019-11-11T22:18:39 | 202,613,070 | 1 | 1 | null | 2022-11-22T02:40:09 | 2019-08-15T21:21:15 | Python | UTF-8 | Python | false | false | 1,062 | py | {"filter":false,"title":"urls.py","tooltip":"/guitar_shed/guitar_shed/urls.py","undoManager":{"mark":3,"position":3,"stack":[[{"start":{"row":20,"column":38},"end":{"row":21,"column":0},"action":"insert","lines":["",""],"id":2}],[{"start":{"row":21,"column":0},"end":{"row":21,"column":42},"action":"insert","lines":["fr... | [
"ubuntu@ip-172-31-39-232.ec2.internal"
] | ubuntu@ip-172-31-39-232.ec2.internal |
0a06a2b02ea2ebe7e1e750ff6fcf6079526a4e8e | 53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61 | /.history/EMR/zhzd_add_20190618132817.py | d0748388e5fbee29a405014068576007a52ae777 | [] | no_license | cyc19950621/python | 4add54894dc81187211aa8d45e5115903b69a182 | d184b83e73334a37d413306d3694e14a19580cb0 | refs/heads/master | 2020-04-11T20:39:34.641303 | 2019-07-02T12:54:49 | 2019-07-02T12:54:49 | 162,078,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
import pandas as pd
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHRzhzd5')#txt目录提取
emrtxt2s = EMRdef.txttq(u'D:\DeepLearning ER\EHRsex')
ryzd = []
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")... | [
"1044801968@qq.com"
] | 1044801968@qq.com |
e0f360d9759ebff847437f85252bd34c60c36381 | 9c31ebe65e81c67c572bf8b95990d99e61834c63 | /Python_tutorial/Multiprocessing/process-images.py | 1edbd5a8a8741845a8b0428dc566ca9ac27597a2 | [] | no_license | kissbill/Corey_tutorials | 0ebb79bb4242902874f1d0b3daeeb2734b170a7b | b3bd110bba415f2ded989f08bf9250d1c1f2d711 | refs/heads/master | 2022-12-08T14:51:47.602361 | 2020-08-23T14:06:57 | 2020-08-23T14:06:57 | 260,650,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py |
import time
import concurrent.futures
from PIL import Image, ImageFilter
img_names = [
'photo-1516117172878-fd2c41f4a759.jpg',
'photo-1532009324734-20a7a5813719.jpg',
'photo-1524429656589-6633a470097c.jpg',
'photo-1530224264768-7ff8c1789d79.jpg',
'photo-1564135624576-c5c88640f235.jpg',
'photo-... | [
"milerik@hotmail.com"
] | milerik@hotmail.com |
01e69620a852049ef9660d3dcad0b98553eff7e6 | 83330fd1c3ca40757494ca44f590a9a91ba5cb8e | /scripts/slope_vs_bunches.py | 5532dd4884905b430eb61249b1c380434addd548 | [] | no_license | alexandertuna/MuonRawAnalysis | 4878d4729cbc0ccbe046326611e8a1f76272e003 | 11426e28191fed1ff35e8119b720355bdbb0179b | refs/heads/master | 2021-01-10T14:27:27.257909 | 2016-10-18T11:42:40 | 2016-10-18T11:42:40 | 45,977,223 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,370 | py | import argparse
import array
import sys
import ROOT
ROOT.gROOT.SetBatch(True)
ROOT.gStyle.SetPadTickX(1)
ROOT.gStyle.SetPadTickY(1)
ROOT.gStyle.SetPadTopMargin(0.06)
ROOT.gStyle.SetPadBottomMargin(0.12)
ROOT.gStyle.SetPadLeftMargin(0.18)
ROOT.gStyle.SetPadRightMargin(0.06)
def options():
parser = argparse.Argum... | [
"alexander.tuna@gmail.com"
] | alexander.tuna@gmail.com |
0bba2f23d7e8f8a26a516f6f9179ce1e7e8e8fb1 | c2b62ff80572d2bd91a02013171910374af02707 | /sendText.py | 8e8c8adee60ab456e3101d5905cf0ffc625644d1 | [] | no_license | hotpepper/pyFoundationCoruseWork | 0328c8ec5f9e7103dc32b3bf1dae99a65b8c0ffb | aa9d54ff3c904f1c975abf790154d2c8b39364ec | refs/heads/master | 2021-01-21T17:45:46.901297 | 2014-09-02T14:51:27 | 2014-09-02T14:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | from twilio import rest
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "AC60bd7b39268433022559ebe2a30edb6e"
auth_token = "53e210bd6d8361e0d3c629767362587f"
client = rest.TwilioRestClient(account_sid, auth_token)
message = client.messages.create(
body="Seth's first code generated T... | [
"heyseth@hotmail.com"
] | heyseth@hotmail.com |
8ad137287df44bbff4ee4ba45d2dac576f3fd04b | 061d476d23bcd9f6bf68acdde971c0477be476c5 | /app.py | 1c7cb3accadfb8d6abdd03e3025b13bbf7e566d0 | [
"OGL-UK-3.0"
] | permissive | antarctica/flask-request-id-header | e86e06a71b61648514858d7211e444a37b38215c | 01131ef2f116b6db13b72cd08b2c0aca1d997203 | refs/heads/master | 2023-01-08T22:20:25.351175 | 2019-03-04T16:50:29 | 2019-03-04T16:50:29 | 173,466,292 | 8 | 3 | NOASSERTION | 2022-12-27T15:35:54 | 2019-03-02T15:43:04 | Python | UTF-8 | Python | false | false | 389 | py | from http import HTTPStatus
from flask import Flask
from flask_request_id_header.middleware import RequestID
def create_app_with_middleware():
app = Flask(__name__)
# Configure and load Middleware
app.config['REQUEST_ID_UNIQUE_VALUE_PREFIX'] = 'TEST-'
RequestID(app)
@app.route("/sample")
de... | [
"felix@felixfennell.co.uk"
] | felix@felixfennell.co.uk |
5ea79c1daa9825dbd9a6bd0aa2da84e9baf9c673 | ab95f02a096723df64eeee6636cb567187cc974c | /venv/Lib/site-packages/pylint/test/functional/invalid_slice_index.py | f2bc1d7cd719a9509511df35c8d6d12f0d669f34 | [
"MIT"
] | permissive | mcappleman/rotogrinders-projections | 62485bbe43f3e2cc974b54a2cddd16babf4ed343 | dd51c2d954c46b3ebb452bcd7546c03bf034b0b6 | refs/heads/master | 2020-03-28T16:20:22.837326 | 2018-10-05T15:03:26 | 2018-10-05T15:03:26 | 148,684,049 | 2 | 2 | MIT | 2018-09-13T19:56:32 | 2018-09-13T18:58:44 | Python | UTF-8 | Python | false | false | 2,002 | py | """Errors for invalid slice indices"""
# pylint: disable=too-few-public-methods, no-self-use,missing-docstring,expression-not-assigned, useless-object-inheritance
TESTLIST = [1, 2, 3]
# Invalid indices
def function1():
"""functions used as indices"""
return TESTLIST[id:id:] # [invalid-slice-index,invalid-sl... | [
"matt.cappleman@gmail.com"
] | matt.cappleman@gmail.com |
953d8bc38856a27f6a9df03d5819e05e01559c06 | 646b0a41238b96748c7d879dd1bf81858651eb66 | /src/mdt/orm/GulpOpt.py | 177f7a316baa5b0cda918805763bfe60e8fcfac3 | [] | no_license | danse-inelastic/molDynamics | ded0298f8219064e086472299e1383d3dff2dac3 | c8e0bfd9cb65bcfc238e7993b6e7550289d2b219 | refs/heads/master | 2021-01-01T19:42:29.904390 | 2015-05-03T17:27:38 | 2015-05-03T17:27:38 | 34,993,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,749 | py | #!/usr/bin/env python
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# J Brandon Keith, Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
be907003cd2e91f3dadaba00cc17706508463cb3 | 0967f58ec8c75b63f1ff0241f155816571b11076 | /PycharmProjects/projectEuler/p8.py | 30560511c53513a8e25d4447ea2e76f991d2a798 | [] | no_license | prudhvirajboddu/IDE_VScode_projects | d1c80b78fb1aa9740a7f3935ea646770c1cfc347 | 183c213a190b8c52f1db6e727fea47603a9216de | refs/heads/master | 2022-04-15T18:32:06.342657 | 2020-04-11T09:25:15 | 2020-04-11T09:25:15 | 254,832,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | num="731671765313306249192251196744265747423553491949349698352031277450632623957831801698480186947885184385861560789112949495459501737958331952853208805511125406987471585238630507156932909632952274430435576689664895044524452316173185640309871112172238311362229893423380308135336276614282806444486645238749303589072962904... | [
"prudhvirajboddu@gmail.com"
] | prudhvirajboddu@gmail.com |
4b33c1024af7b1abc75d91256f45ce1f66a61096 | 2da4731b79fc3d45ea4b58fb22ff16b1f764bdf9 | /blog/migrations/0001_initial.py | 239259f48d9dc582b514f8cbbddfc5ad372402f8 | [] | no_license | ashmika-26/django3-personal-portfolio | a1c47e60829e163d295c9c1d120281914daaaa90 | 78c67b80e7f06c31e569ec37c8e6f52b97da2033 | refs/heads/master | 2022-11-09T10:14:24.129053 | 2020-06-27T03:21:31 | 2020-06-27T03:21:31 | 272,818,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # Generated by Django 3.0.7 on 2020-06-14 22:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Blog',
fields=[
('id', models.AutoField(aut... | [
"ashmika.b26@gmail.com"
] | ashmika.b26@gmail.com |
e7b090e0ec000dd32b8931875c1690ddb8321725 | bf55f0047e462da6b61271df05796805efd691b2 | /2. Add Two Numbers.py | 8b26677ce7a6ff637f1c3162aa1081b5ff8d1c24 | [] | no_license | xuwang278/leetcode-python | e4230e41533beb048acd82ae2fb9b0d973fec243 | d9782e8861e88cad27d34ce4cb7884fe690208fb | refs/heads/master | 2020-12-11T01:30:21.059370 | 2020-03-18T23:09:18 | 2020-03-18T23:09:18 | 233,766,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
leading = 0
dummy = cur = ListNode(0)
while l1 or l2:
a = l1.val... | [
"noreply@github.com"
] | xuwang278.noreply@github.com |
aa3aeffa957b719ab62bb90a685325b0a5425ceb | 023f7adf81be5aa89fcef5064091320354329d96 | /ex10.py | 391c5d274db8a87b6ef0b2745abd8ddef6c66622 | [] | no_license | andrewmbales/Beginnings | d545eb7fda236fd79b037a56a2f5be3966760fef | 33411fa6fe931cbb654aac82d81c5ebc260319c4 | refs/heads/master | 2021-01-19T11:54:40.732237 | 2017-04-12T04:08:42 | 2017-04-12T04:08:42 | 88,008,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split\non a line."
backslash_cat = "I'm \\ a \\ cat."
fat_cat = """
I'll do a list:
\t* Cat food
\t* Fishies
\t* Catnip\n \t* Grass
"""
print tabby_cat
print persian_cat
print backslash_cat
print fat_cat
| [
"andrewmbales@gmail.com"
] | andrewmbales@gmail.com |
a12d1b1730da6dd35de1d0d79e7fca73682bbff0 | 6cd3060abd6c7467715f73f276d2f4d5f9f5175c | /backend/apps/api/offers/v1/views.py | 7bc226eb523d9c78f5660a44aa247d84b2f363e4 | [] | no_license | Digitize-me/gpb-corporate-application | 3e2ef645d34802621badc630ab445d15428aeb5e | d59d146e131b49a670e3ac4752ea91aa7e148e51 | refs/heads/master | 2022-11-07T16:39:39.876126 | 2020-06-20T22:53:22 | 2020-06-20T22:53:22 | 273,590,113 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,518 | py | from rest_framework import generics
from .serializers import (
OfferSerializer,
TagOfferSerializer,
CategoryOfferSerializer,
)
from ..models import Offer, TagOffer, CategoryOffer
class OfferListCreate(generics.ListCreateAPIView):
"""
Предложения
"""
queryset = Offer.objects.all()
seri... | [
"wsxxx2016@yandex.ru"
] | wsxxx2016@yandex.ru |
9658641287de4f3a4b4c49ee83dd9335aa114fb1 | df7bdf5b45d53ba7b6fa63efc2383633da12976a | /static/sql_.py | 432b69c7dc997c809470b8c00af55e474d076d33 | [] | no_license | P79N6A/myauth | 0ed78bdef9599d9a755098cea14103a7da7604f9 | 65006007010ee8b0506d6f91a139d752420a6903 | refs/heads/master | 2020-04-26T04:01:05.214564 | 2019-03-01T10:56:29 | 2019-03-01T10:56:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,702 | py | # coding: utf-8
#!/usr/bin/env python
# coding: utf-8
#import pyodbc #sqlserver
import MySQLdb #mysql
import redis #redis
#import cx_Oracle
import os,copy,datetime,time,sys,re
import settings
#os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8'
#reload(sys)
#sys.setdefaultencoding('utf-8')
class sqlbase():
... | [
"noreply@github.com"
] | P79N6A.noreply@github.com |
54b1480d0cb6c34e1e93a325650f3e7c1faebf22 | 2ec951c4a56071d351e70539b74ef8cf445e82b7 | /4-3.2_telnet_CMTS_IPv6_python2.py | b929643b31baa6eb9749cbfb728b945c3026e837 | [] | no_license | chenchih/python-full_script | 370730d256ce6592f3ee03b8953f79480d135fe0 | 9d9952145e222cef9c20bfbbd9448c969ac23cbd | refs/heads/master | 2023-03-21T10:34:52.316489 | 2021-03-11T08:55:55 | 2021-03-11T08:55:55 | 295,582,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,045 | py | # -*- coding: utf-8 -*-
import telnetlib
import subprocess
import time
import re
def Telnet_Check_reachability(ip):
ping_count=3
process = subprocess.Popen(['ping', ip, '-n', str(ping_count)],
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
... | [
"noreply@github.com"
] | chenchih.noreply@github.com |
3b154d71ba814d6f7437af78cd78b12ff781411c | 3ccf552a92dc78da06bcd7242ab62b3adf0c9019 | /demos/mybin.py | e4cce305053fdce3e2e9eac5126500d3e377cd69 | [] | no_license | linkcheng/python_demo | a3437bd56083f04d440ae3b4d44f6bffe806dee2 | 332b75948745d66d1a74253033444a2c63fb8e51 | refs/heads/master | 2022-07-08T10:45:53.587317 | 2020-08-07T10:23:49 | 2020-08-07T10:23:49 | 52,152,418 | 2 | 1 | null | 2021-03-25T21:43:04 | 2016-02-20T12:33:20 | Python | UTF-8 | Python | false | false | 694 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import random
def get_nums():
return [random.randint(0, 255) for x in range(0,32)]
def show_nums(nums):
bin_num = []
for index, num in enumerate(nums):
b_num = str(bin(num))[2:]
list_num = ['*'] * 8
for i, b in enumerate(b_num):
if b == '1':
list_num[... | [
"zhenglong1992@126.com"
] | zhenglong1992@126.com |
3e3069a97bc070a69231339f733c72cb4dedbf54 | 049b1d0733cb22b4d5c2a1084aa6dbe209a5d7e2 | /arrays/quicksort_list_comprehension.py | c5dd2bc54453c1e5ae45d36bf295da3f9194cde4 | [] | no_license | prashant4nov/codesamples | 440108b33892f73d737d4d9bbd52a2e3674d4739 | daf452bd5881e379f9d1351635f75e29447186d2 | refs/heads/master | 2021-01-16T19:30:56.426100 | 2018-09-19T19:55:22 | 2018-09-19T19:55:22 | 31,382,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | '''
quick sort using list comprehension.
http://en.literateprograms.org/Quicksort_%28Python%29
'''
def quicksort(arr):
if arr == []:
return []
else:
pivot = arr[0]
lesser = quicksort([x for x in arr[1:] if x < pivot])
greater = quicksort([x for x in arr[1:] if x >= pivot])
return lesser + [pivot] + greater... | [
"prashant.talkin@gmail.com"
] | prashant.talkin@gmail.com |
c044fa3e113645f0e469386305cab1a5df54e5c7 | 1b340699e4c6e03d669552eea22c81e34b5b70f2 | /keras/2.1-a-first-look-at-a-neural-network_data.py | 0f0d4e07be9a117dc0e8d5b2a8f47b794fd52e54 | [] | no_license | codelifehoon/ml_training | 8ba45588aff14ade865f0d47172ceb9a20a40d81 | 6dd5fbc02cac52ffb1913fc34052e5cad8f44c78 | refs/heads/master | 2020-04-14T18:53:34.918496 | 2019-01-04T01:24:34 | 2019-01-04T01:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,271 | py | import tensorflow as tf
import keras
import numpy as np
import pandas as pd
from keras.datasets import mnist
from keras import models,layers
from keras.utils import to_categorical
import datetime
import matplotlib.pyplot as plt
from sklearn.preprocessing import OneHotEncoder
(x_train, y_train), (x_test, y_test)... | [
"codelife@11st.co.kr"
] | codelife@11st.co.kr |
832262a934a5356ef52afd88cf511932e2f28cfe | 4a9ef609da356706c524e3465204ccde9365ea2f | /plotter.py | 8a4ac1f1592b089d11b60547c7351d97334dea86 | [] | no_license | 12102man/DEProgAssignment | 432281d4a24ab4282649b6fc19acbed18e98e5af | b5aa31e4473dbbb244ca1ce8f270a0161a2dee41 | refs/heads/master | 2020-04-02T09:18:48.297475 | 2018-10-23T19:42:38 | 2018-10-23T19:42:38 | 154,286,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,926 | py | from matplotlib.figure import Figure
from methods import *
class Plotter:
def __init__(self, title):
self.figure = Figure(dpi=70)
self.figure.suptitle(title)
def add_graph(self, method):
"""
Method that adds the graph onto a Plotter
:param method: name of method used
... | [
"12102man@gmail.com"
] | 12102man@gmail.com |
ab7a612016a318c2c025a2be9ed8315101fc1ea2 | 3f8f165b3a0deab912e98f291640530f9e7b4f9d | /encoder_decoder_helpers.py | f463eaa390754ce58efca83f13a1c8ae78bc2199 | [
"MIT"
] | permissive | chris522229197/iTalk | 9170ad9ce49510e293c08a7b154c41787d7b3f94 | d377e8e5bd8bc1fbad180e5305d794fb8981bd4c | refs/heads/master | 2021-05-07T01:41:34.303455 | 2017-12-15T22:08:35 | 2017-12-15T22:08:35 | 110,385,440 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,716 | py | # -*- coding: utf-8 -*-
# Code adopted from lstm_seq2seq.py in the keras examples, with MIT license
# (https://github.com/fchollet/keras/blob/master/examples/lstm_seq2seq.py)
import numpy as np
from keras.models import Model
from keras.layers import Input, LSTM, Dense
from keras.models import model_from_json
# Conver... | [
"chris522229197@gmail.com"
] | chris522229197@gmail.com |
828864a623c3ec272203eaf78ed0ab7b7c4c67a1 | 49a58915bbdfa00216ef541dbeab84cb0f02efe5 | /DataStructures/LinkedList/11_delete_duplicates.py | 84577228a576b14d5c5a929c00c2e0ec99cc7efe | [] | no_license | Victor-Foscarini/HackerRank_Solutions | 5846e3e4277c32d8a319358a5fe5522a6ff1661e | c3c52c2c31554cbfd8b2a1e0634a9f73ee995588 | refs/heads/master | 2023-08-26T20:41:28.162231 | 2021-10-29T11:50:50 | 2021-10-29T11:50:50 | 284,184,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | py | #!/bin/python3
import math
import os
import random
import re
import sys
class SinglyLinkedListNode:
def __init__(self, node_data):
self.data = node_data
self.next = None
class SinglyLinkedList:
def __init__(self):
self.head = None
self.tail = None
def insert_node(self, no... | [
"noreply@github.com"
] | Victor-Foscarini.noreply@github.com |
52bcf7e23fe4b37bfd523de9844d5c7ea80383b4 | 5e061edad95393788944c0e85ef53bde7f5f933c | /lecture/migrations/0001_initial.py | 5987d136689e85cd1b194466fb790f4b95c92be7 | [] | no_license | nkucs/server | 1901d82ec13d6761516474751fad2183961e4236 | 6e5b306b061866be3367a30f4df372d4895c684a | refs/heads/master | 2020-05-22T03:05:16.641234 | 2019-06-07T13:18:35 | 2019-06-07T13:18:35 | 186,206,488 | 5 | 7 | null | 2019-06-07T15:57:33 | 2019-05-12T03:27:24 | Python | UTF-8 | Python | false | false | 1,134 | py | # Generated by Django 2.2.1 on 2019-05-15 15:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Lecture',
fields=[
... | [
"tdingquan@gmail.com"
] | tdingquan@gmail.com |
534b4bb885f6c94bdebbcb061517b030ad0879ed | 5e0440df22432129ca2c01bb695c397667004bfe | /aoc11_1.py | b19b5ccaadaba99200c18800b765c3357dbd2805 | [] | no_license | Nadkine/AdventOfCode2020 | 6dc4d056e14905934958fb3f6956b865818d1781 | 392fbeef42361fac3a2924043bf2634566ec0124 | refs/heads/master | 2023-02-16T05:29:57.340982 | 2021-01-14T20:35:37 | 2021-01-14T20:35:37 | 320,621,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | board = []
board_copy = []
with open('data11.txt','r') as f:
for line in f.readlines():
row = []
for seat in line:
if seat != '\n':
row.append(seat)
board.append(row)
different = True
counter = 0
def getSeats(row_i, seat_i,board,row_counter,seat_counter):
k ... | [
"fullredmacbook07-2020@fullreds-MacBook-Pro.local"
] | fullredmacbook07-2020@fullreds-MacBook-Pro.local |
30bc00a04df933035bcd8c90e1f79f7c31ca345a | c4832442c41aa546e1279a6f9036e3fddd00ffa4 | /result/DataWrite.py | 2ee9400baf8bece0ae471490e4702d683ff1c937 | [] | no_license | chengmingchun/af_algo | 880fc5a4164fd9be261fbaa522693d971481ff01 | 16c32e928dba104cc10e5c1fc6a54797a1d8f8be | refs/heads/master | 2022-12-06T03:25:11.174962 | 2020-08-26T14:32:39 | 2020-08-26T14:32:39 | 290,493,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 22 04:23:54 2020
@author: 13052
"""
import openpyxl
import numpy as np
import pandas as pd
re = pd.read_table('temdata.txt',header = None, delimiter='\t')
re2= pd.read_table('result_t.txt',header = None, delimiter='\t')
dis = pd.read_table('distance.txt',header = None, d... | [
"1305232381@qq.com"
] | 1305232381@qq.com |
01b65fa62f033ee2bb173040766119fcba0b4fe2 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /pinpoint_write_2/endpoint_delete.py | cf53331aefddda4f6a700adcbf0325709acdb957 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,101 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/pinpoint/delete-endpoint.html
if __name__ == '__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
437b3c5985b0414df473e0f59608a289953b502d | 114178ce0d34c3c44f1dbe11e412739deded9137 | /todolist/migrations/__pycache__/0003_auto_20190516_0922.py | e52dc2edde2a2e5c3dabaf35cd6a6fc867fb6388 | [] | no_license | Boxtell/Task_Manager | 142bbc03f44ff820611903a6b95367974b806d73 | b8990eee44918c2003483aee8621a3d67379eaf1 | refs/heads/master | 2023-01-11T18:29:40.089960 | 2020-11-13T15:23:22 | 2020-11-13T15:23:22 | 187,052,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | # Generated by Django 2.1.8 on 2019-05-16 09:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('todolist', '0002_auto_20... | [
"noreply@github.com"
] | Boxtell.noreply@github.com |
9acf4483983d71100bbeaa09d24842d025152055 | 70325313f66b5a2e31aee098597ab143fab952be | /scrapers/scrape_vs_districts.py | bf476e8d5df7e6eb00afc70c69f2a8392a1c8dfd | [
"CC-BY-4.0"
] | permissive | honsa/covid_19 | dde2d3960f3775d7e02ae9cf4d6e014395239059 | f195925dadc51e1734c2d21433907dc2dd7022f4 | refs/heads/master | 2023-01-28T22:24:22.315239 | 2020-12-09T20:36:35 | 2020-12-09T20:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,543 | py | #!/usr/bin/env python
import re
import scrape_common as sc
import scrape_vs_common as svc
# get the latest weekly PDF
url = svc.get_vs_latest_weekly_pdf_url()
# fetch the PDF
pdf = sc.download_content(url, silent=True)
week, year = svc.get_vs_weekly_general_data(pdf)
# last page contains the district data
page = i... | [
"maekke@gentoo.org"
] | maekke@gentoo.org |
4cc8e4b8d9e1acdd387171b059190f073f8caa77 | 9a425f153816cd206451876b8da570a9446d76c4 | /reviews/forms.py | 302a57a8a772568d6f52fece684e3fd6c26fd46b | [] | no_license | salhi100/airbnb-clone-2 | cea837f8dd24ab4e634ff7e2f0ce474581313642 | 685477bedc6fed18e40fb53febf22e4393796f4f | refs/heads/master | 2023-01-31T11:31:37.190244 | 2020-01-09T04:53:35 | 2020-01-09T04:53:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | from django import forms
from . import models
class CreateReviewForm(forms.ModelForm):
accuracy = forms.IntegerField(max_value=5, min_value=1)
communication = forms.IntegerField(max_value=5, min_value=1)
cleanliness = forms.IntegerField(max_value=5, min_value=1)
location = forms.IntegerField(max_value... | [
"53186618+hanulbom@users.noreply.github.com"
] | 53186618+hanulbom@users.noreply.github.com |
001c98bc6f6b8dc1802f1a8b694696f7b87583a8 | beeb062b7b46a34321e3eed94bde8bfc32968c6e | /user_profiles/urls.py | d1cc2e29c6ae019d05f56dcf282e4d71ae8327c0 | [] | no_license | Meepit/Exercise-Routine-Recommender | 54c1226db6bfa06a6dec326fdf06bc3ef3a2ffc0 | 3948ef9fe125581e7f77afeac45974829c73dcac | refs/heads/master | 2021-01-19T12:51:25.879391 | 2017-08-31T19:30:35 | 2017-08-31T19:30:35 | 100,799,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | from django.conf.urls import url, include
from rest_framework.urlpatterns import format_suffix_patterns
from progress.views import ProgressList
from user_profiles import views
urlpatterns = format_suffix_patterns([
url(r'^users/(?P<pk>[0-9]+)/$', views.UserDetail.as_view(), name='user-detail'),
url(r'^... | [
"James-L"
] | James-L |
832bfc52535b87c19a4763e4a866f7fc434ddaff | 0bf51dd24f87ebd30f8e95d9aa7dd85be3940237 | /tests/console_test.py | b79b6bce697e1e5688aaafdf63c45702005810f1 | [] | no_license | AFDudley/btpy | e7cd01d106f8ae38814cad42a833c45592460da4 | 3287a82491388ffe3d804b8c6bfb063ac8106214 | refs/heads/master | 2020-04-20T09:00:05.138992 | 2013-07-07T19:06:34 | 2013-07-07T19:08:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,743 | py | import pygame
from pygame.locals import *
import pyconsole
class UpDownBox(pygame.sprite.Sprite):
def __init__(self, color, initial_position):
pygame.sprite.Sprite.__init__(self)
self.image = pygame.Surface([15, 15])
self.image.fill(color)
self.rect = self.image.get_rect()
s... | [
"a.frederick.dudley@gmail.com"
] | a.frederick.dudley@gmail.com |
d0c9244a2108dc33f849a3554243a934611a27da | 6ac1398727395b0444439c149ada5a82815f168e | /python/solutions/lab13.py | 57efb2e14109677954def2451e6b919e761f2999 | [] | no_license | xvanausloos/DevSpark_Labs | 7e438736de688b5a101e9a6411d051a85c78e3ba | 36086122769dabb58fc475459d85dd8279100767 | refs/heads/master | 2021-08-16T13:30:06.515435 | 2020-12-04T06:19:26 | 2020-12-04T06:19:26 | 229,521,089 | 1 | 0 | null | 2019-12-22T05:09:48 | 2019-12-22T05:09:48 | null | UTF-8 | Python | false | false | 460 | py | ##Developer should start REPL using:
#pyspark --master local[2]
#3a
from pyspark.streaming import StreamingContext
#3b
ssc = StreamingContext(sc, 2)
#3c
inputDS = ssc.socketTextStream("sandbox",9999)
#3d
ssc.checkpoint("hdfs:///user/root/checkpointDir")
#3e
windowDS = inputDS.window(10,2).flatMap(lambda line:line.... | [
"joe.widen@gmail.com"
] | joe.widen@gmail.com |
8ec17c05887a213edf3782ea63b6ce597f90925b | 0b46dbe589c5ca134ceadce5281b9890f7ae2eff | /Merlin/Main/Languages/IronPython/IronPython/Lib/iptest/test_env.py | ec4af26d00620b8f8b612fd053fb2dd1ae33961b | [] | no_license | tnachen/ironruby | bcde4a1121bb3d3b4c2e0d93e5a3d105d08b2f9c | 1323df51a7abf6394f27468a1bda788f4bba9aa9 | refs/heads/master | 2020-12-30T19:22:37.411261 | 2009-09-05T00:26:33 | 2009-09-05T00:26:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,762 | py | #####################################################################################
#
# Copyright (c) Microsoft Corporation. All rights reserved.
#
# This source code is subject to terms and conditions of the Microsoft Public License. A
# copy of the license can be found in the License.html file at the root of this... | [
"jdeville@microsoft.com"
] | jdeville@microsoft.com |
03c975d57422ec32427a7a548e0e6544d7025109 | 7d7db95d45c9fec591fa9d94157d194d91d6b413 | /D3/d3p1.py | 397a58e7be5d3a3317b7ba6a229e00bd4d9255da | [] | no_license | snoobism/advent-of-code-2019 | 228c5e4b736fea6ad56de123808b82ca4a428787 | 1ed9d6315f6c01639b0d35fd47652f85c94d33ad | refs/heads/master | 2020-11-25T02:07:17.893005 | 2019-12-27T18:35:54 | 2019-12-27T18:35:54 | 228,444,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,574 | py | fileInput = open("d3input.txt", "r")
fileOutput = open("d3p1output.txt", "w")
class Coord(object):
def __init__(self, x, y):
self.x = x
self.y = y
self.d = 0
def __str__(self):
return "(" + str(self.x) + "," + str(self.y) + ")"
lineOne = [x.rstrip() for x in fileInput.readline().split(",")]
lineTwo = [x.rst... | [
"30446392+snoobism@users.noreply.github.com"
] | 30446392+snoobism@users.noreply.github.com |
5284fc7236d9820d8e60caa79c49221f224a7753 | bfd75153048a243b763614cf01f29f5c43f7e8c9 | /1906101019-贾佳/Day0225/1.py | 0bdbc889f558fa53c61ce7609f0bf8290a0cdb2a | [] | no_license | gschen/sctu-ds-2020 | d2c75c78f620c9246d35df262529aa4258ef5787 | e1fd0226b856537ec653c468c0fbfc46f43980bf | refs/heads/master | 2021-01-01T11:06:06.170475 | 2020-07-16T03:12:13 | 2020-07-16T03:12:13 | 239,245,834 | 17 | 10 | null | 2020-04-18T13:46:24 | 2020-02-09T04:22:05 | Python | UTF-8 | Python | false | false | 1,757 | py | #构建集合
#两种方法
A = {"a","b","c","c",1} #然后每个元素用逗号隔开,字符串类型的数据需要加定界符。
B = set("aabbcce")#注意使用的是小括号,所有元素放在一起,
#print(A,b)
#集合的并集
#print(A|B)
#集合的交集&
#print(A&B)
#集合的补集
#print(A-B)#A当作全集,B当作补集
#不同时包含
#print(A^B)
#集合的增删
#两种方法
#A.add('d')#元素存在时不操作
#print(A)
#B.update({1,3},[4,2],"e")#元素可以多种多样
#print(B)
#删除元素的方法
#A.remove(... | [
"541554971@qq.com"
] | 541554971@qq.com |
1046654f65640caa5908eda3fde1c22753d1c106 | 3155c495bdc224ea2a99db4ed73d162ad004f1b8 | /hangman.py | df2a58a15b4af3abc64c8fcda144ab0be26cd8ff | [] | no_license | santiagokazlauskas12/hangman | 1795d9b04696d58713302331bbfba6c813e7dc9e | 4d932da4b8e423afe089177f6dcd0b1e205c7f35 | refs/heads/master | 2022-11-13T00:18:32.151195 | 2020-06-30T22:24:42 | 2020-06-30T22:24:42 | 276,221,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | import random
# seleccionador de palabra ---------------------------------------
def select_word (words):
random.shuffle(words)
word=[c for c in words[0]]
return(word)
# seleccionador de palabra ---------------------------------------
# creador de blanks ------------------------------------
def under... | [
"63759091+santiagokazlauskas12@users.noreply.github.com"
] | 63759091+santiagokazlauskas12@users.noreply.github.com |
702d222428773d4309d41c11af3522790b2d2bc0 | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /dbpedia/models/mayor.py | 6526d40de4f17f276f8ee52b9b8af54cfc7af7e8 | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233,338 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from dbpedia.configuration import Configuration
class Mayor(object):
... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
7e5e77a073e739f388c40f80557022d7517deed8 | c3b14bad834e9d8ef054573566c769154d8da731 | /www/urls.py | 37b69ebbb382da4954a9cacd095ee2f129eaaf5e | [] | no_license | adufi/Resume_Django | d5109c12222d15973392e53b4b3ffcb89e532c89 | 23860acdd1b86b141f6cca6feb5a27edb4da9dc7 | refs/heads/master | 2022-04-29T01:37:04.566327 | 2019-07-27T17:41:00 | 2019-07-27T17:41:00 | 195,679,343 | 0 | 0 | null | 2022-04-22T21:41:54 | 2019-07-07T17:31:43 | CSS | UTF-8 | Python | false | false | 613 | py | from django.urls import path, re_path, include
from . import views
app_name = 'www'
urlpatterns = [
path('test', views.test, name='test'),
# path('api/skill', views.api_skill, name = 'api_skill'),
# path('api/projects', views.api_projects, name = 'api_projects'),
path('api/skill', views.SkillViewSet.as_view(... | [
"sneelshneider@gmail.com"
] | sneelshneider@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.