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 213
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 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed7bdce889e461553bb10bad06747aae9bc3bee8 | 22ee2c0b35393e31c0bf9d715ad0cd4c884c0615 | /day2/buggy/dicegame/die.py | 148544efaa4d61e92a6f89f8c8738d7598ed69ee | [] | no_license | wwa-vanekeren/aspp2021_solutions | de051bdf3571affdcb17cf8d876218f870d3db13 | eac2ff0e3f0d2c60aca5b9115dd3039608aaacf9 | refs/heads/main | 2023-03-17T17:51:00.019986 | 2021-02-26T10:50:23 | 2021-02-26T10:50:23 | 340,689,036 | 0 | 0 | null | 2021-02-21T08:08:48 | 2021-02-20T15:38:14 | null | UTF-8 | Python | false | false | 1,112 | py | # Just count the stupid dice
import random
def roll(dice):
for die in dice:
# XXX: I don't even know what this function does
continue
class Die:
"""
This is always correct. Seriously, look away.
"""
def __init__(self):
self.roll()
def roll(self):
... | [
"noreply@github.com"
] | wwa-vanekeren.noreply@github.com |
e0974cb3b18e1e63399d4a31048a7e7a76a9a09e | 1f7bc6ee69209f91b96b258def5e75e0e5fde3c2 | /listbox.py | 9835cddc447b5f919f097cbf07b725884dbf8a46 | [] | no_license | kaurjassi/GUI | d82a93be9ec9be0fea95f22059d374fbe72ccfcb | d30a24bd5ece7641cda976c4eec594f442bc6a82 | refs/heads/master | 2022-11-09T06:43:04.145684 | 2020-06-25T14:39:01 | 2020-06-25T14:39:01 | 274,936,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from tkinter import *
def add():
global i
lbs.insert(ACTIVE,f"{i}")
i+=1
i=0 #intial value
root = Tk()
root.title("Listbox")
root.geometry("500x400")
# list box = list box is a widget which displays the alternate list..
# blank list box and insert the items in it
lbs = Listbox(root)
lbs.pa... | [
"noreply@github.com"
] | kaurjassi.noreply@github.com |
5242129ffbb2e23f80babe8513a9e8272fd25dcf | 75f5eab9a026c3076972690519fb90489d60de16 | /discord/helpers/utils.py | d3be7004d3052ffbd757620634dfbac138befd28 | [
"Apache-2.0"
] | permissive | yogurtcpu/RPANBot | 72f507bd346d9c6370d4210fccb580da0988c061 | 0515e3dbac31735a0f936365919e46851a91dc36 | refs/heads/master | 2023-02-27T06:36:54.156607 | 2021-02-02T18:50:45 | 2021-02-02T18:50:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | """
Copyright 2020 RPANBot
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 in writing, software
distrib... | [
"56532639+OneUpPotato@users.noreply.github.com"
] | 56532639+OneUpPotato@users.noreply.github.com |
432af564f54f219a36399d60ff01262383c310b7 | bd359061d94167f624db31e1b583a0b19a0bcff6 | /src/Test_DiGraph.py | bbb4aa93d4caee386a3a8680301cd1ba41a41f7c | [] | no_license | rinatGrinberg/Ex3-python | b69bfb4571b75b17e1be999ffa20e976ecda5f56 | 4945e7ba872543410efd452bbb45f156f89162ab | refs/heads/main | 2023-02-14T19:15:31.617860 | 2021-01-13T18:35:30 | 2021-01-13T18:35:30 | 329,116,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | import unittest
from DiGraph import DiGraph
from src import GraphInterface
import calc
class MyTestCase(unittest.TestCase):
def test_nodesize_and_addnnode_and_removenode(self):
g = DiGraph()
for i in range(3):
g.add_node(i)
g.remove_node(0)
g.remove_node(1... | [
"noreply@github.com"
] | rinatGrinberg.noreply@github.com |
b636530dff51028fbe0a7fbb20a468126863860f | 3b9d763180410bf0abf5b9c37391a64319efe839 | /toontown/building/DistributedHQInteriorAI.py | d7c12fec12fec9b0432c0e998ae1a9b352eb808e | [] | no_license | qphoton/Reverse_Engineering_Project_ToonTown | 442f15d484324be749f6f0e5e4e74fc6436e4e30 | 11468ab449060169191366bc14ff8113ee3beffb | refs/heads/master | 2021-05-08T00:07:09.720166 | 2017-10-21T02:37:22 | 2017-10-21T02:37:22 | 107,617,661 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
import cPickle
class DistributedHQInteriorAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedHQInteriorAI")
def __init__(self, air):
Distrib... | [
"Infinitywilee@rocketmail.com"
] | Infinitywilee@rocketmail.com |
2466113f0da79b2244862448de9eb3746c0d33d1 | 8fd255fc3498ec970d7202d3f70a671b7aa4c64b | /pmsal/blog/views.py | d5b704545317b790379154f070dad0ca73a0eb84 | [
"MIT"
] | permissive | klebercode/pmsal | afda05fe29bb67db70fc7dcb8dfc577f4a3f0c9c | d78477f7cd1a5d1ed9973e13be5758c71a2ce2db | refs/heads/master | 2016-09-06T05:42:34.468341 | 2015-04-04T17:24:07 | 2015-04-04T17:24:07 | 33,409,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | # coding: utf-8
from django.db.models import Q
from django.views import generic
from django.views.generic.dates import (YearArchiveView, MonthArchiveView,
DayArchiveView)
from pmsal.context_processors import EnterpriseExtraContext
from pmsal.blog.models import Entry
from pmsal.... | [
"kleberr@msn.com"
] | kleberr@msn.com |
980959abb37db81339bd74bddf75e0f1e7839b61 | f4b77a4bac8acdf550a13e04661765f0eab4509d | /contenta/manager.py | ec84b4863d2e655bc5dc1fb26e6a8a446f14342a | [] | no_license | k1000/contenta | b6d083c2c78e8fc8bd27481c4e94e8c0ef841909 | a3d11ac71a1bba82320daa2be6a7b322aa76b6b9 | refs/heads/master | 2021-01-18T22:59:14.022598 | 2016-06-22T08:25:22 | 2016-06-22T08:25:22 | 7,433,369 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | from django.db import models
class PageManager(models.Manager):
def active(self, **filters):
return super(PageManager, self).get_query_set().filter(state=2, **filters)
def siblings(self, page): # TODO
if page.parent:
return self.active().filter(parent__pk=page.parent.pk)
def... | [
"selwak@gmail.com"
] | selwak@gmail.com |
7b46bd89e96c7e6548ef6f816becf00ba0d630ee | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py | 67e80611ef10e78892a747eb9f010880cb4577dc | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 22,347 | py | """
An agg http://antigrain.com/ backend
Features that are implemented
* capstyles and join styles
* dashes
* linewidth
* lines, rectangles, ellipses
* clipping to a rectangle
* output to RGBA and PNG, optionally JPEG and TIFF
* alpha blending
* DPI scaling properly - everything scales properly (dashes, linew... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
583466431748d71c10e4768b2295e9e980422200 | 10d77a1bca1358738179185081906956faf3963a | /venv/Lib/site-packages/django/core/mail/backends/filebased.py | f01e1497dbcc6dc15a7cf45416368b8606f613a2 | [] | no_license | ekansh18/WE_Care_NGO_WEBSITE | 3eb6b12ae798da26aec75d409b0b92f7accd6c55 | 7c1eaa78d966d13893c38e7157744fbf8f377e71 | refs/heads/master | 2023-07-16T07:22:48.920429 | 2021-08-31T04:11:19 | 2021-08-31T04:11:19 | 401,563,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,727 | py | """Email backend that writes messages to a file."""
import datetime
import os
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.core.mail.backends.console import (
EmailBackend """Email backend that writes messages to a file."""
import datetime
import os
from d... | [
"ekansh00@gmail.com"
] | ekansh00@gmail.com |
b77167d258ce02e04bdda1ea6a83707259bbe0f7 | 80e701c5b9c03ef288848d8b368360e0940d9b67 | /sleyeball/files.py | 51db5f0a7dda0c4166dceea14a6d3bc400d4b819 | [] | no_license | esheldon/sleyeball | a4917300b041747e0600186f0e596c6d83a95ff4 | 9eee500119d2bc07c942350a67c8777257e92a3d | refs/heads/master | 2020-06-20T05:22:59.921610 | 2019-07-17T18:38:29 | 2019-07-17T18:38:29 | 197,008,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | import os
def get_base_dir():
"""
base directory
"""
return os.environ['SLDIR']
def get_cand_dir():
"""
we keep lists here
"""
return os.path.join(get_base_dir(), 'candidates')
def get_cand_file_orig():
"""
holds paths to coadds
"""
d = get_cand_dir()
return os.... | [
"erin.sheldon@gmail.com"
] | erin.sheldon@gmail.com |
3d0f5f9fa5889a3b0c4e7e33c56710be4c790b92 | 03f82e74d54399eff2282e853ffacf4a29722ca4 | /2.py | 323c7ed69b8ae0730cb39c2e08f0ee9a39167d3a | [] | no_license | SerdarKuliev/proj1 | d7eff875ca7788e7e391b417bcab5ba7ed9975b1 | 07c3a3f9069b512378e78db5caedd0c73c39e2df | refs/heads/dev | 2022-12-19T06:50:26.810610 | 2020-09-29T12:34:45 | 2020-09-29T12:34:45 | 265,944,603 | 0 | 0 | null | 2020-06-13T00:53:17 | 2020-05-21T20:25:21 | Python | UTF-8 | Python | false | false | 1,644 | py | m1 = int(input("Введите выручку за январь 20 года."))
m2 = int(input("Введите выручку за февраль 20 года."))
m3 = int(input("Введите выручку за март 20 года."))
n1 = int(input("Введите расходы за январь 20 года."))
n2 = int(input("Введите расходы за февраль 20 года."))
n3 = int(input("Введите расходы за март 20 года.")... | [
"“Serdarkuliev@gmail.com”"
] | “Serdarkuliev@gmail.com” |
b3effc169e3db184f1082b87601f29458d399353 | 38952ab2dd82309b7ef2b510a69084f9e0945921 | /shuake/venv/bin/easy_install | eb458e8af0336cd3e6c931240e2437b961f90561 | [] | no_license | zicarb/YorkCoursebro | 6c88fdf66c852defbd7e26e204c7715f8384e16d | ac5d4aba8320d7c73c6bd2bdc9d8dbbb4e1c8dea | refs/heads/master | 2020-03-19T19:47:56.649018 | 2019-02-13T04:53:50 | 2019-02-13T04:53:50 | 136,874,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | #!/Users/zombie/PycharmProjects/shuake/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"zicarb09@gmail.com"
] | zicarb09@gmail.com | |
a67af589f2fcef2b0ce235cad9572f2f6497b238 | e96434fd49285d66cf926730f3b5c8ae2e51ee77 | /org/cyy/fw/piedis/Client.py | b07f56a2fd4a05c6239d0a59031c2d9fb1a55889 | [] | no_license | chenyihan/piedis | 2d213f2b06ef151803b7b8a9d9c253429fbf41c4 | 2649d71c5e6d599fa33864e5ca82bdce23fede6f | refs/heads/master | 2021-01-20T12:37:28.735144 | 2015-12-17T15:42:16 | 2015-12-17T15:42:16 | 39,572,341 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 23,872 | py | # -*- coding: GBK -*-
'''
Created on 2015Äê7ÔÂ8ÈÕ
@author: yunyun
'''
import socket
from org.cyy.fw.piedis import RedisProtocol, Command, RedisKeyword, Response
from org.cyy.fw.piedis.Command import BinaryCommand
from org.cyy.fw.piedis.Server import ServerNode
from _sha1 import sha1
class PiedisClient... | [
"348800349@qq.com"
] | 348800349@qq.com |
58f90438673edd09c98d1e6d02b198892e98435b | 62633b4b273cdd264d9669b69d54a06064d656e1 | /backend_app/migrations/0001_initial.py | 01365a9f5775a5af33e052007b855e6299833dfc | [] | no_license | mrsamharuna/django_project | 53784755e503c746315ccb7c12b98869de1e8953 | bcd64474cc48689dd8330ac0f7754130092a7dda | refs/heads/master | 2020-11-23T23:29:32.396272 | 2019-12-13T15:10:45 | 2019-12-13T15:10:45 | 227,864,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,743 | py | # Generated by Django 2.1 on 2019-11-18 17:20
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_... | [
"samsonharuna@yahoo.com"
] | samsonharuna@yahoo.com |
83884b6bc0bdd63b534e896ac4c6c081dac4c117 | 307a9a94091981325c6fcd0cfce5f1c1f12d5530 | /basics.py | 5aecef9d960db1559ff950b472048ee2fce2b4c9 | [] | no_license | 88aleksandra88/python | a6b14eebef0d2848ce4ae32bd101cac6f816130e | 1060f02e59d151e6bb1cff7fbc199df80c598e75 | refs/heads/master | 2022-12-29T07:17:45.106336 | 2020-10-09T14:14:57 | 2020-10-09T14:14:57 | 302,300,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | glass_1="water"
glass_2="soda"
temp=glass_1
glass_1=glass_2
glass_2=temp
print('glass_1='+str(glass_1))
#glass_1=soda
print('glass_2='+str(glass_2))
#glass_2=water
number_of_steps=70
print("You're on step:")
print("number_of_steps +1")
#kilometer convert
miles=500
kilometers=miles * 1.609344
print(kilometers)
#... | [
"aleksandra.slowik88@gmail.com"
] | aleksandra.slowik88@gmail.com |
fedce837ffffa9807fa1d941d6e9277cdd7c1908 | 7484e6e9bdf9fc8181d986fe7ff301937352c962 | /preparation.py | 33bc9fe244e340fff4948b524966340a87b75efc | [] | no_license | Avagr/JBReactGraph | 1323b93424b3c4521598d88560767f533267c7e8 | 90873b47f094e6104423caa677578bd62ed43114 | refs/heads/master | 2023-04-15T07:14:26.869449 | 2021-04-11T16:51:19 | 2021-04-11T16:51:19 | 356,913,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,140 | py | import requests
import json
from requests.models import HTTPError
url = "https://api.github.com/repos/facebook/react/stats/contributors"
# Function for encoding sets into json as lists
def set_default(obj):
if isinstance(obj, set):
return list(obj)
raise TypeError
# Prepares data and writes it to t... | [
"avagroskin@edu.hse.ru"
] | avagroskin@edu.hse.ru |
c73127e8739fa2e754892d7131be696a9376fc51 | 90803c3d5db398d357e63c782231bbf57d135a77 | /arrview/tools/paintbrush.py | 27a7b9629c4fc4bd069ab8296df31c5a455350a6 | [
"MIT"
] | permissive | jthacker/arrview | 08b70c948689c6998f53bd3ebc32dffac32226f4 | 93d5d0a17a33dbbc7098eb4e5eac92d84d9ba04c | refs/heads/master | 2021-04-15T15:23:47.073725 | 2016-08-02T22:11:58 | 2016-08-02T22:16:11 | 63,819,285 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | from PySide.QtCore import Qt, QRectF, QPoint, QPointF
from PySide.QtGui import (QColor, QGraphicsItem, QGraphicsPixmapItem, QPixmap, QPainter)
import logging
import math
import skimage as ski
import skimage.draw
log = logging.getLogger(__name__)
class PaintBrushItem(QGraphicsItem):
"""PaintBrushItem is a QGrap... | [
"thacker.jon@gmail.com"
] | thacker.jon@gmail.com |
fb2f50056d7b8095e873a122bd1b1f9cedf06047 | 355e280100fd321584a153e9ace6426df7181deb | /examples/get_all_jobs.py | 6306f38b7cd534dac2bc765c1f5b177ec8235ecb | [
"Apache-2.0"
] | permissive | kimiwangjm/drmaa2-python | 11d3563955d8468a3fb60afc7234b10e7972a09b | 1df04191ae22aea3bd86f9d110e347a76bc6039d | refs/heads/master | 2020-08-29T21:55:08.656600 | 2019-10-03T15:11:22 | 2019-10-03T15:22:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | #!/usr/bin/env python
# ___INFO__MARK_BEGIN__
##########################################################################
# Copyright 2016-2019 Univa Corporation
#
# 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 co... | [
"aalefeld@univa.com"
] | aalefeld@univa.com |
9c1e1b031fb6ac5960c2e6a08b7e5fc4683cd159 | b775ef7ae427d3199eb2015c08a6468f3b5cc8ad | /ant.py | 6bd9855bc9bd129dbc29c68d89e14f44931c5d83 | [] | no_license | j3camero/Ant-Combat | ae671ae5c9ffe02d9429be524156898da34ccb34 | 3a3a86303cf316a56a19582369b7503962ece60a | refs/heads/master | 2020-12-30T10:50:12.860917 | 2011-01-12T00:47:58 | 2011-01-12T00:47:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py |
class Ant:
def __init__(self, x, y, owner):
self.x = x
self.y = y
self.owner = owner
| [
"cameron.jp@gmail.com"
] | cameron.jp@gmail.com |
941f4dbc2fbf6e26a024c61793156ca108517cfe | 8d5acda7549d3625340d785698b521ed1583c6d6 | /review.py | 537c6c78f8ab35deabc9b6d399c2e9e94270ed17 | [] | no_license | jerry-sjtu/flask_demo | db7f5ac1dd332dd47f491b45f68a0e4838447ff7 | c0bc7f80f89c5cff52b3c7ea284e3aae7f1d5cf0 | refs/heads/master | 2021-01-23T12:17:30.437414 | 2015-04-13T03:22:43 | 2015-04-13T03:22:43 | 29,714,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,448 | py | # -*- coding: utf-8 -*-
from flask import Flask
import urllib2
from flask import render_template
import json
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
app = Flask(__name__)
BASE_URL = 'http://www.dianping.com/shop/%s/review_all'
BIZER_HOST = "192.168.220.235"
BIZER_ABSTRACT_URL = "http://%s:4153/search/sh... | [
"qiang.wang@dianping.com"
] | qiang.wang@dianping.com |
07f7480b8204fdcc16a56564512124c02be477e2 | f3050b7f84e584dcde54ca1690944bfccc6f5d9c | /demo/other/demo_fomat.py | 767ea789d7dee62f3161cff0034d57438ab22024 | [] | no_license | azhenglianxi/api_Project | 0c8444c2bad7464fd57911be4fdcd131a63c46b2 | 2ae87b87e41f522d4ef20f63bad6adcaec1f9874 | refs/heads/master | 2020-09-14T12:08:07.080748 | 2019-12-12T09:08:22 | 2019-12-12T09:08:22 | 223,124,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | name="tom"
age=20
#1. 输出:你好,tom先生,今晚吃鸡!
print(f"你好,{name}先生,今晚吃鸡!")
print("你好,{}先生,今晚吃鸡!".format(name))
#2. 输出:你好,tom先生,今晚{吃鸡}!
print(f"你好,{name}先生,今晚{{吃鸡}}!")
print("你好,{}先生,今晚{{吃鸡}}!".format(name))
#3. 输出:你好,{tom}先生,今晚吃鸡!
print(f"你好,{{{name}}}先生,今晚吃鸡!")
print("你好,{{{}}}先生,今晚吃鸡!".format(name))
print("姓名和年龄分别是:{}、... | [
"azhenglianxi@163.com"
] | azhenglianxi@163.com |
b7227548c832af5339342dcb56efb5c69c872ea2 | 1e4ddb07b9ab386d49036bae631508ca99d1375d | /django_jquery_bootstrap/mysite_jquery/basic_site/migrations/0001_initial.py | 43737f97b2e118aa7ecae3adebbf11236a8c8861 | [] | no_license | air2637/django-ajax | ce55c22c11dd703db04faf65b71d6dc67c27d899 | f791dedbf568a99dcaba614329f761071978023a | refs/heads/master | 2021-05-14T01:52:15.487867 | 2018-01-07T16:15:27 | 2018-01-07T16:15:27 | 116,578,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-07 02:55
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Module',... | [
"weizheng@WeitekiMacBook-Pro.local"
] | weizheng@WeitekiMacBook-Pro.local |
0821f14666c075ca5ef4644670d667a41ce5450f | ce6c8e0e3a986af3fe3c347a4af16f1ca337f82c | /630.course-schedule-iii.py | c6f16e25c08edfd0eebd9959c9ace96be3683d8b | [] | no_license | chenjienan/python-leetcode | dc098373ae7f73dd502d7747888a37a3bd0820cb | 90c000c3be70727cde4f7494fbbb1c425bfd3da4 | refs/heads/master | 2020-04-28T20:46:50.395260 | 2020-02-12T18:48:01 | 2020-02-12T18:48:01 | 175,556,339 | 16 | 3 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #
# @lc app=leetcode id=630 lang=python3
#
# [630] Course Schedule III
#
import heapq
class Solution:
def scheduleCourse(self, courses: List[List[int]]):
courses.sort(key=lambda x: x[1])
day = 0
heap = []
for i in range(len(courses)):
if day + cours... | [
"chenjienan2009@gmail.com"
] | chenjienan2009@gmail.com |
83f1f40c0a3f881f189f6a378cd661fcde67e432 | 962d42197c56346d348d334dd7435224d4aed99d | /Inventationery/apps/Customer/forms.py | 5897817c4d2509271a3fce09f250f0156eed676d | [
"BSD-3-Clause"
] | permissive | huarmenta/Inventationery | e5750274c0b281208fa1f33590f0402349f7e8da | 1bf9ee2c56492ab66947886590b7ec17fa3a6195 | refs/heads/master | 2021-05-30T08:31:15.368712 | 2016-01-06T03:23:45 | 2016-01-06T03:23:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Alex
# @Date: 2015-11-16 19:22:39
# @Last Modified by: Alex
# @Last Modified time: 2015-12-28 19:32:30
from django import forms
from .models import CustomerModel
from Inventationery.apps.DirParty.models import DirPartyModel
from Inventationery.apps.LogisticsP... | [
"h.alexarmenta@gmail.com"
] | h.alexarmenta@gmail.com |
d618c52095145ad11dea0dcaef997f4e40d3ab6d | 505456805c026f2e6e2421ebaf745a3bc72c3dfb | /run.py | 923c7644672cf855177e2d3a8c004c7d6cd78512 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | www10177/fbcrawl | 1029f9fedea68d82e3c894fe0f60a841aa86a3d7 | bcd79d8292c4016f31767b2c50ab6ff1e69efa73 | refs/heads/master | 2020-04-26T08:49:45.766583 | 2019-03-22T17:02:18 | 2019-03-22T17:02:18 | 173,435,725 | 1 | 0 | null | 2019-03-02T10:44:49 | 2019-03-02T10:44:49 | null | UTF-8 | Python | false | false | 2,212 | py | from subprocess import call
from tqdm import tqdm
import pandas as pd
import sqlite3
import os
# Config
email= 'www10177@gmail.com'
password= 'u9Vd53SCX5'
year= 2008
lang= 'it'
def crawl_pages():
l=pd.read_csv('./update.csv')
for name,url in tqdm(l.values):
print('crawling %s'%name)
print(ur... | [
"www10177@gmail.com"
] | www10177@gmail.com |
924703d92cf2b60786d5198e1fdf455dfd379162 | 3a86fef1551d97141d3a192abe7cf5c826106377 | /python_problems/union.py | a0d9f768de9c103c4e01b6e34838b7267ac658af | [] | no_license | andrayantelo/hackerrank | bbaee4f3eb7fac1b60fce8a5dfb3f4368d7c48db | 11589bc2858028ddbcdc7ab87285f3d16e3773b9 | refs/heads/master | 2020-03-29T20:55:15.543255 | 2018-11-06T21:46:03 | 2018-11-06T21:46:03 | 150,336,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # Task
# The students of District College have subscriptions to English and French
# newspapers. Some students have subscribed only to English, some have
# subscribed to only French and some have subscribed to both newspapers.
# You are given two sets of student roll numbers. One set has subscribed
# to the English ne... | [
"andrayantelo@gmail.com"
] | andrayantelo@gmail.com |
4930f53fa7f6aae3b12d5558dc8e8d6aa7468c13 | 2161bf5488654aa2c2919f7839820c46bd9db0c4 | /keyboards/inline/__init__.py | 709d059e906a63e8a5362e98523b884c15eb7743 | [] | no_license | Asqarov-Fayzullo/antirobot_aiogram | c50f9ae451a575e434d8c664f8ee8a1ab30c4e92 | 02c85bcad6975473b5d264ed90d10515ad4b3625 | refs/heads/master | 2023-07-10T07:45:50.056757 | 2020-12-01T16:42:10 | 2020-12-01T16:42:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | from .guardian_keyboard import generate_confirm_markup, confirming_callback
| [
"kostyajog@mail.ru"
] | kostyajog@mail.ru |
89a31706b3313829d16e3ef3246f1c8408518820 | 4c8df11e3d2c5065afb67e6d6a975a8afc678526 | /Text Mining/Workshops/week2/generateDTM.py | c035812ebd4ca123459592c781ee69b88181543e | [] | no_license | shenshutao/machine_learning | da8d866f95e8021044823f4b5b3d48596477db67 | 185532ffda1e3994ceca9c0ebf0f9cbe232222a1 | refs/heads/master | 2021-09-14T09:33:24.597332 | 2018-05-11T09:20:59 | 2018-05-11T09:20:59 | 89,137,160 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,001 | py | # -*- coding: utf-8 -*-
"""
Workshop: Text Preparation (TDM)
Created on Wed Sep 6 16:19:52 2017
@author: Fan Zhenzhen
"""
from nltk.corpus import reuters
from nltk import FreqDist
import string
from nltk.corpus import stopwords
# We'll use the reuters corpus in NLTK.
# The same steps of preprocessing can ... | [
"sstwood@gmail.com"
] | sstwood@gmail.com |
cfffb928dd17b54c411a485b5ae009481e2a32e6 | b24c500dfdbbe56229031d7bdc02ba22dd055a41 | /image_stitch.py | 0921be28ef8d9265185f6d637c295ea16797da6a | [] | no_license | Trimax69/Python_random | 5c147c9fbb04082d3b204f31a50bd9d2dab6469f | a969c19ca7198909e128bf4496811657f6498ed4 | refs/heads/master | 2022-12-27T14:15:51.289238 | 2020-10-04T15:44:50 | 2020-10-04T15:44:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,054 | py | import time
import string
from os import listdir
from os.path import abspath, dirname, isfile, join
from PIL import Image
VALID_FORMATS = ('jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'webp')
VALID_CHARS = set("-_.() %s%s" % (string.ascii_letters, string.digits))
DIRECTORY = dirname(abspath(__file__))
OFFSET... | [
"noreply@github.com"
] | Trimax69.noreply@github.com |
cfe183779f01a5fbe1379f11d1cc62902be02994 | 9079a555d1fd22ad9701227c58151ae1ca3595d3 | /CSES/1097.py | 85e2d0f2b48353028d34faa5b5a999c8a74da857 | [] | no_license | DebRC/My-Competitve-Programming-Solutions | c2a03b18f15cebd3793ce1c288dbb51fc0a33ef4 | fe956eed619a21bd24a5fd647791d4c56cd1b021 | refs/heads/main | 2023-02-04T08:28:13.915967 | 2020-12-28T09:11:29 | 2020-12-28T09:11:29 | 324,591,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | def removal_game_tab(a, n):
dp=[[0 for i in range(n)] for i in range(n)]
for i in range(n-1,-1,-1):
for j in range(i,n):
if i==j:
dp[i][i]=a[i]
else:
dp[i][j] = max(a[i]-dp[i+1][j],a[j]-dp[i][j-1])
return dp[0][n-1]
n = int(input... | [
"noreply@github.com"
] | DebRC.noreply@github.com |
ca1de3b0d14a8422dee3935ae2801d6ac3503037 | f725df1a1a494f13d9f179e5981a30d3a843f8b7 | /piEstimate.py | 76659ac84ae4f282602f1cd6ac28e3eb65c8804b | [] | no_license | aaronscode/piEstimate | f8fadeefdb0e3a7f49b94f1f490c96608ff91dc6 | cb7d18e726399c5c482796e16e66b2ecd1b80579 | refs/heads/master | 2021-01-22T13:23:25.780468 | 2018-07-04T03:19:44 | 2018-07-04T03:19:44 | 100,665,792 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import math as m
import random as r
def main():
numSamples = int(input("Number of Samples: "))
numWithinRadius = 0
for i in range(0, numSamples):
x = r.uniform(0,1)
y = r.uniform(0,1)
if m.sqrt(x * x + y * y) < 1:
numWithinRadius += 1
ratio = numWithinRadius / nu... | [
"agross@temple.edu"
] | agross@temple.edu |
b3f1c0052489cfc59ab9c29a478a91935c971633 | 27c1053165bad4d93b375c92a458504a27ed2628 | /app/forms/create_client_form.py | 7557f29cb94ed4d59dbcc078b9649e92fb4814ae | [] | no_license | ransonk/trainer-hub | d13068e1b8d2f37604cd1e92b37fd043c50228a9 | 463b78147f7d6f2330346025cb3c14e8254febf4 | refs/heads/master | 2023-04-09T15:29:11.539943 | 2021-04-19T01:16:10 | 2021-04-19T01:16:10 | 318,020,072 | 0 | 0 | null | 2021-04-09T19:05:18 | 2020-12-02T23:34:22 | Python | UTF-8 | Python | false | false | 1,328 | py | from flask_wtf import FlaskForm
from wtforms import StringField, IntegerField, BooleanField
from wtforms.validators import DataRequired, Email, ValidationError, Optional
from app.models import Trainer, Client
# from app.models import User
def client_exists(form, field):
print("Checking if client exists", field.da... | [
"ransonknorr@gmail.com"
] | ransonknorr@gmail.com |
6e46d41d4d26e0cd32bd2ca55fb3fe92590599e8 | 080c78a077796d06e80aa6b02c220099c6fa41dc | /helpers.py | 08ec00a63ed9617041444e5a504ce61d400c03c9 | [] | no_license | nikita-mishunyayev/Kaggle-Aptos-Blindness-Detection-2019-solution | a44081259db095ed97c2cac4bbd866fed649a6eb | e3c6479c99570339775f28e8c42462193a4cf9a5 | refs/heads/master | 2022-03-09T11:13:36.886285 | 2019-11-19T02:17:32 | 2019-11-19T02:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,901 | py | import re
import math
import collections
from functools import partial
from collections import Counter
import json
import imageio
import os
import re
from tqdm import tqdm
import numpy as np
import pandas as pd
import cv2
import collections
import torch
import torch.nn as nn
from torch.nn import functional as F
from... | [
"noreply@github.com"
] | nikita-mishunyayev.noreply@github.com |
e70cb2bf382b44dc97be7bff59e7923a6a9b57ec | 94675efda520e7c7927e0ff98302ba8d11d0f7e6 | /myvenv/bin/pip-3.4 | ec0a4a7114df884b35b77e8c995e7b33f10d95ba | [] | no_license | estefib/my-first-blog- | 23358cfda50aab1f85b8d333ba7b8ad5300b8ccb | b4128b1035af300e0e3db9863716183dae0c7639 | refs/heads/master | 2021-01-18T22:13:38.488749 | 2016-10-29T17:38:32 | 2016-10-29T17:38:32 | 72,300,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | 4 | #!/Users/Estefi/Documents/django_girls/dg-project/myvenv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.2.1','console_scripts','pip-3.4'
__requires__ = 'pip==1.2.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==1.2.1', 'console_scripts',... | [
"estefaniaballesterg@gmail.com"
] | estefaniaballesterg@gmail.com |
9460c243621b5445e7a03324b7c44b33627e7ba6 | 91406d4983e24a4ac8563bc68b50ce1060259300 | /digital_handwriting/urls.py | cf1c8e1bd054ee2548f2f8b3814eaaa9fda25c40 | [
"MIT"
] | permissive | therajmaurya/Digital-Handwriting | c71b208c0c8268a026eafd3ca7d09c53bae40a51 | 8ec89a0ad11b1d071536f77d6cac85ba02b83d43 | refs/heads/master | 2022-03-30T01:54:36.743159 | 2019-12-25T21:44:39 | 2019-12-25T21:44:39 | 113,925,666 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | """digital_handwriting URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, na... | [
"therajmaurya@gmail.com"
] | therajmaurya@gmail.com |
f59d1cdb320110df45c4594d131216bb073e5546 | 33f697fd4fd2398500cf5f8d555617a863de1eb4 | /problem1_3sand5s.py | d7dc311b254a287122e893cbb1e9ee460d322951 | [] | no_license | AlexHahnPublic/EulerProblems | c70e5744dc74b293a2d325b0dface457f517ad5f | 53efea4f941c93d8a5e114e80f836a53dc5d9cf9 | refs/heads/master | 2021-06-07T02:05:16.801556 | 2016-10-22T04:25:00 | 2016-10-22T04:25:00 | 33,910,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | # Euler Problem 1:
# If we list all the natural numbers below 10 that are multiples of 3 or 5, we
# get 3, 5, 6, and 9. The sum of these multiples is 23
# Find the sum of all the multiples of 3 and 5 below 1000.
# Solution: trial division, check each number up to n, if divisible by 3 or 5
# add it to the running tota... | [
"afh53@physics.cornell.edu"
] | afh53@physics.cornell.edu |
95f77f9ccf028b1c765b0de7d6a75f8a0979455b | d4e5a2095e15e5e8fc5e3ddb232f41cc3c5aa608 | /Python/1001.py | c7703ba4060b8fbfdd25f5ed8fec879df3dcd8ec | [] | no_license | xaadu/uri-solves | bea5c3e78e3c6a6f3aa8c83ef9407e08d714a94a | 7f0d03376c4295e9e658c5b198d1d304c93699b3 | refs/heads/master | 2020-05-14T17:03:44.545029 | 2019-04-17T12:33:49 | 2019-04-17T12:33:49 | 181,885,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | # URI --> 1001
x = int(input())
y = int(input())
print("X =", (x+y))
| [
"xayed42@gmail.com"
] | xayed42@gmail.com |
41e0c35d8f6f140f28776895e5818242163e49f8 | 7a239875dc9147377c68403e33ce234448b3b443 | /libsubmit/version.py | e35bbbade12937ef58ce92916b9c34a995a2520d | [
"Apache-2.0"
] | permissive | benhg/libsubmit | a51f14ffe7220a5c523d5b9b5c079b2a4f030749 | 3ff05719d01e9a7c78c81d002b22f9a927cb6a4f | refs/heads/master | 2021-05-14T02:25:27.566641 | 2018-02-09T21:35:44 | 2018-02-09T21:35:44 | 116,594,575 | 0 | 0 | null | 2018-02-09T21:12:08 | 2018-01-07T19:55:57 | Python | UTF-8 | Python | false | false | 91 | py | ''' Set module version
<Major>.<Minor>.<maintenance>[-alpha/beta/..]
'''
VERSION = '0.3.0'
| [
"yadudoc1729@gmail.com"
] | yadudoc1729@gmail.com |
e08959efc568fd56daefcf8ab0405bd7db16d4b2 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayOpenMiniTipsDeliveryCreateResponse.py | 0f0bc4813082df45cd6c1d04d87d1319c5c3daad | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayOpenMiniTipsDeliveryCreateResponse(AlipayResponse):
def __init__(self):
super(AlipayOpenMiniTipsDeliveryCreateResponse, self).__init__()
self._delivery_id = Non... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
c1415377ed6f1240038e86f44212940480f53494 | eb8d1aaf5992b5734bc5be5320144552decacba0 | /reccurent.py | 6a1603a28ec394be4cd5a9b368aa25c7d09a13c4 | [] | no_license | olivernina/htr-ctc | 3fa719a9ffb041dc7cd7499c0731cfd4f0a03e15 | a147801741b94bac9f1658e83790d06a2a043b99 | refs/heads/master | 2021-01-10T05:54:09.562636 | 2018-07-18T10:27:06 | 2018-07-18T10:27:06 | 50,888,562 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | import theano
import theano.tensor as tt
from weights import init_wts, share
class RecurrentLayer():
def __init__(self, inpt, nin, nunits, conv_sz=1,
learn_init_state=True):
# inpt is transposed a priori
tablet_wd, _ = inpt.shape
if conv_sz > 1:
inpt_clipped = ... | [
"pk_blaze@knights.ucf.edu"
] | pk_blaze@knights.ucf.edu |
2f5faa2b2d0339df0be2c970e5ca671545dfad00 | f11c0cb4e9fafde02c2d4a59ce5627a21a0f2e93 | /turtlebot/build/turtlebot/turbot_map/catkin_generated/pkg.develspace.context.pc.py | 00c3586ca66dbfaabc797269a59875e3e3884c69 | [] | no_license | ilazy991/turtlebot | 99e3b914758c257e92a87b34beef75c353941034 | 09740786a9cda8abd4c1defe90cdceb7c6e1a18f | refs/heads/master | 2020-04-30T00:09:51.391880 | 2019-03-19T10:25:25 | 2019-03-19T10:25:25 | 176,495,982 | 0 | 2 | null | 2019-03-19T11:21:12 | 2019-03-19T11:21:11 | null | UTF-8 | Python | false | false | 388 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "turtlebot_map"
PROJECT_SPACE_DIR = "/... | [
"1142144213@qq.com"
] | 1142144213@qq.com |
cce5f7d532abfffad86be6ec42bce232e7d6d494 | fe97b7ba5dd24e52e0ef2f4a9cf3b2461e10ceea | /To-Do List/task/todolist/datastore.py | c2666d56a5fb7998aa6c6439f767e326bd6fff2d | [] | no_license | nghianja/To-Do-List | 4acc8a5c82110d3959ddd5c1f6bc23a53cd4397b | fab7313da51a5bc4ce398550c6ba2f48e3108b0c | refs/heads/master | 2022-12-18T02:44:12.213690 | 2020-09-26T14:26:40 | 2020-09-26T14:26:40 | 298,739,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | # A model class that describes the table in the database.
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String, Date
from datetime import datetime
from sqlalchemy.orm import sessionmaker
Base = declarative_base()
class Table(Base... | [
"james.ng@projapps.com"
] | james.ng@projapps.com |
d6f643dec24cf89d8b97066a05f2dc90e6dfbe46 | 1adf7d71d32ac15a94251cbf8c296857e7e0ab11 | /Advanced Python/Design Patterns/anti-patterns_correctness.py | 0d9b6613645fcd5bed2d4de35eb7266d506756ef | [] | no_license | pvvanilkumar/Learning | 691c07688dc6395b2e9e92bd44e33ee8f19c7cd0 | 83e5bbd296031812526b7df0ae4cf7dac8aae568 | refs/heads/master | 2020-12-22T03:40:07.319396 | 2020-01-28T04:56:14 | 2020-01-28T04:56:14 | 236,659,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | class Rectangle(object):
def __init__(self, width, height):
self._width = width
self._height = height
r = Rectangle(5, 6)
# direct access of protected member
print("Width: {:d}".format(r._width)) | [
"pveerav@apac.corpdir.net"
] | pveerav@apac.corpdir.net |
7baaeaed32956cf32db8273ce882ac55fbcf7d77 | 5695d365852a5b9bc4f8092c8aba139530def229 | /hs_collection_resource/migrations/0002_collectiondeletedresource_resource_owners.py | d6a80fde974db5778255ad0469fa26b6f89dd634 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | heliumdatacommons/commonsshare | 6863705e71be2fb9ef4a822e391d60cfcbc82a44 | 4336dc337ca2b36c2d0a0a7ea793af624c1356c7 | refs/heads/develop | 2021-05-11T14:12:53.511860 | 2020-04-15T20:48:38 | 2020-04-15T20:48:38 | 117,697,775 | 2 | 4 | BSD-3-Clause | 2020-03-31T14:08:15 | 2018-01-16T14:58:04 | Python | UTF-8 | Python | false | false | 586 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('hs_collection_resource', '0001_initial'),... | [
"zyli2004@gmail.com"
] | zyli2004@gmail.com |
c60c7909ee17189186d37d45b7eda97c4c7d3bf0 | bc441bb06b8948288f110af63feda4e798f30225 | /resource_manage_sdk/api/cmdb_approve/get_history_approver_list_pb2.pyi | abd98e65926c1c34c66d48ba053cdace0455c688 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,398 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScal... | [
"service@easyops.cn"
] | service@easyops.cn |
f56554b1fcba93eccdd0b91c791dba09a26ef386 | 699b75c65e1bc5a793aef69dad6350fdc6e99fd6 | /number_1.py | 259ac43ae6b7476b3d09f30d0a94aa13a80d6a18 | [] | no_license | najihabrilianti/flip.id-test-qa | 4bc56487b65d88713ea606de42c74d4167717fe1 | 750c0ee2aa3eef1a93f4ebd1acb418e7822e3417 | refs/heads/main | 2023-04-18T23:46:11.497349 | 2021-05-08T21:56:03 | 2021-05-08T21:56:03 | 365,614,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | db_transaction = [['011','Smith','BCA','BRI',1000000],['100','John','BRI','BCA',1000000],['101','Fulan','Mandiri','BCA',4333011],['110','Sri','BNI','BSI',3000000],['111','Bambang','BCA','BSI',1500000]]
dash_admin = [['001','Smith','BCA','BRI',1000000],['100','John','BRI','BCA',None],['101','Fulan','Mandiri','BCA',40000... | [
"73904901+najihabrilianti@users.noreply.github.com"
] | 73904901+najihabrilianti@users.noreply.github.com |
8819265c82f77a7ee9ccf1be48314333ca28c1c5 | 704fda0d0e05f66f0c4f3c17cc4b39e2b0bc6220 | /homework1/task2.py | 29779bec2ac406bc0aae1e8f0b6b2cd82a98eb24 | [] | no_license | humantom88/geekbrains-python-basics | 71eae1be4f8b1d757db17200d64d2b14ea51d83f | ebde8e0a9b92386f2a5b994a880184adde8c7454 | refs/heads/master | 2021-05-17T10:48:56.788147 | 2020-04-23T09:51:10 | 2020-04-23T09:51:10 | 250,743,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # 2. Пользователь вводит время в секундах. Переведите время в часы,
# минуты и секунды и выведите в формате чч:мм:сс. Используйте форматирование строк.
print('Введите количество секунд: ')
seconds = int(input())
minutes = seconds // 60
hours = minutes // 60
seconds = seconds % 60
minutes = minutes % 60
hours = hours... | [
"humantom88@gmail.com"
] | humantom88@gmail.com |
0d2af27c7b63e8f21fc7c713d6004cfdb8063ea9 | 820a8e7ec541299f315ac43ddb3b41236e11cd33 | /demo/streaming/message_based_client.py | 8bba3e3493dd7f6aadd1d443706b2ee614e2f6f3 | [
"Apache-2.0"
] | permissive | hpsaturn/Autobahn | 5caba163ee976e8ddedadfb1a79139ba6014861b | f7bd44433f227130901440e768073e2afbf410bf | refs/heads/master | 2021-01-17T22:09:02.484645 | 2011-11-01T18:27:57 | 2011-11-01T18:27:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | ###############################################################################
##
## Copyright 2011 Tavendo GmbH
##
## 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
##
## ht... | [
"tobias.oberstein@tavendo.de"
] | tobias.oberstein@tavendo.de |
870c4b191c4b5666fd9ab5962c5bad455a42e9b3 | 4b0b0031c812b457925002236ec0ad5c98df2c63 | /app.py | 12b289d731d9f18327a4580bb2ba06d407f898be | [
"MIT"
] | permissive | antoreep-jana/webapp-main | 1e6e418ec032492f7ef22c6be0e51bd867c2c7b1 | d81cfc2f90ae5fe571e287307d194517cb202070 | refs/heads/main | 2023-01-05T09:31:15.452956 | 2020-11-05T13:59:22 | 2020-11-05T13:59:22 | 310,307,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,695 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function
# coding=utf-8
import sys
import os
import glob
import re
import numpy as np
import tensorflow as tf
from tensorflow.compat.v1 import ConfigProto
from tensorflow.compat.v1 import InteractiveSession
# Keras
from tensorflow.keras.applications impo... | [
"antoreepjana@yahoo.in"
] | antoreepjana@yahoo.in |
6d82dbb77c8190ea8ac5e5035aba0ecb0d2223df | 8d7bd15a2d303510e483940a96200e4811d1f4df | /14_this_s.py | 2e8d235b2e0b8b87497801ff7cf20b0fb0ff5184 | [
"Apache-2.0"
] | permissive | zhuhuifeng/PyOJ | cecd5a97418cc282a335cb2841bb5783020a75b0 | 94f2bcd6f0efab099eca5ffa7e776d149b69d8d8 | refs/heads/master | 2021-01-13T04:46:31.843020 | 2017-01-31T12:58:59 | 2017-01-31T12:58:59 | 78,987,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py | # coding=utf-8
# 输出Python之禅
import this
print this.s | [
"zhuhuifeng_4981@126.com"
] | zhuhuifeng_4981@126.com |
be9e9f2b85890f23ffa63690cb52d7a7b92e2eb5 | 35bf55a3e18dfe5086d7ba39f3b5e7cdc068a9f9 | /segment/statistic.py | 20f0cee553f4654482b69bb385e756ad26a6603b | [] | no_license | chensian/TextProcess | c566eec375bb37c4c30f7e2c8caaaedbd4b49e92 | fb50d15cc9fd2440e77c96f0b5f2e2b764043e37 | refs/heads/master | 2021-01-15T18:41:15.499983 | 2018-03-04T10:50:19 | 2018-03-04T10:50:19 | 99,799,189 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,562 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2017/10/9 12:35
# @Author : chesian
# @Site :
# @File : statistic.py
# @Software: PyCharm
import pandas as pd
# 统计 总词数
from load.import_util import file_to_dict
def compute_word_num(name):
path = "D:/python/workspace/TextProc... | [
"1217873870@qq.com"
] | 1217873870@qq.com |
68c0899de663ac126455d7e02416c71399934052 | 720aea0fd454b029cfa09331f2d1bbd4775e0b89 | /crowdfunding/users/migrations/0002_auto_20200915_1006.py | afc27b8e39d26775181bd47d0f06ea61dd95d478 | [] | no_license | RebeccaMillwood/DRF_project | e159d5f276ab51e37ac95ccd49f2f288c7ee5497 | b93a1cac5ff8c4ed7736966869d93c1fe8dbd5b4 | refs/heads/master | 2022-12-18T16:15:14.937724 | 2020-09-26T02:07:39 | 2020-09-26T02:07:39 | 293,739,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,176 | py | # Generated by Django 3.0.8 on 2020-09-15 10:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='customuser',
name='about_me',
... | [
"bec-millwood@live.com.au"
] | bec-millwood@live.com.au |
61f6f08c005103942b34e89882f9fddfa2baaf82 | e61f16faf742ce29a12706880acd96cf4b267b91 | /main.py | a2b5e84de363dbbdb962c5e752c6df6f8efb323a | [] | no_license | sabbaskaragiannidis/studyGame | cbae14cb9ecf31786ca477a92fa9fc5bfe0caf4b | 08199b8e34a219065f086390af4c431c29f6564b | refs/heads/master | 2022-12-16T22:14:09.651773 | 2020-09-20T12:10:59 | 2020-09-20T12:10:59 | 297,060,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | from enemy import Enemy, Troll, Vampire
ugly_troll = Troll("Pug")
print("Ugly troll - {}".format(ugly_troll))
another_troll = Troll("Ug")
print("Another troll - {}".format(another_troll))
another_troll.take_damage(18)
print(another_troll)
brother = Troll("Urg")
print(brother)
ugly_troll.grunt()
another_troll.grunt()
b... | [
"sabbaskaragiannidis@yahoo.com"
] | sabbaskaragiannidis@yahoo.com |
f346a398fe5784e66ff4835f354e82f233b674e1 | aea77af99b0667930c5adaa4d4e73670f6533568 | /app/lookup.py | eeda258772d1c96ab902ce6a51b127f7202adb93 | [] | no_license | dionseow/entity-extraction-api | ed57028a24c7f9d7be76d82d671f478aed10109f | 56613dcbff5955d70d2419f72921fdfdf46ad96e | refs/heads/master | 2023-06-21T06:27:55.617051 | 2021-08-04T07:48:10 | 2021-08-04T07:48:10 | 392,598,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | import spacy
import os
import glob
import pandas as pd
class LookUpService:
def __init__(self):
# Use chinese since it can handle whitespace and
# non whitespace tokens
self.nlp = spacy.blank("zh")
ruler = self.nlp.add_pipe("entity_ruler")
lookup_files = glob.glob("./rules/*... | [
"dseow93@gmail.com"
] | dseow93@gmail.com |
2413c49ba7094d1184240f864f659a5d3c483dd9 | 038e9f4f0d2d0907ca7c93fd703fee7b5484bfc3 | /travel_api/asgi.py | fa8fdd6ce36eafcbf209688c3ef6c6364703ec0e | [] | no_license | Begayim1/final-project | d62c5cfa60ae03670b17179f5028c7b45d37ecd1 | 9377a608b7d02f6c4eff0f45246bc080ea57733f | refs/heads/master | 2023-07-13T15:40:10.206086 | 2021-08-20T06:24:20 | 2021-08-20T06:24:20 | 397,110,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for travel_api project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"kyrgyzalieva12@gmail.com"
] | kyrgyzalieva12@gmail.com |
cb1d4ea82e737e5bf9c2ec42560c94336b5e4563 | 5182897b2f107f4fd919af59c6762d66c9be5f1d | /.history/src/Simulador_20200711163425.py | aca21747f8e28878eb2b0759badeae8ea1d21215 | [
"MIT"
] | permissive | eduardodut/Trabalho_final_estatistica_cd | 422b7e702f96291f522bcc68d2e961d80d328c14 | fbedbbea6bdd7a79e1d62030cde0fab4e93fc338 | refs/heads/master | 2022-11-23T03:14:05.493054 | 2020-07-16T23:49:26 | 2020-07-16T23:49:26 | 277,867,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,607 | py | import pandas as pd
import numpy as np
from Matriz_esferica import Matriz_esferica
from Individuo import Individuo, Fabrica_individuo
import random
from itertools import permutations
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from scipy.sparse import csr_matrix, lil_matrix
class S... | [
"eduardo_dut@edu.unifor.br"
] | eduardo_dut@edu.unifor.br |
34025f1e64a14c25f1d5699d3cd87e25e6ea9587 | 969e5c8152ef5001ba7dbaa187c75b057b4ef2ef | /pm/migrations/0030_auto_20170826_1351.py | 579de1666f756f8c53406aad794a822ef001c4a3 | [] | no_license | nickwilkinson/projectmatica | 94ab930843d6512efd0c55093d4da5ffc6d293bb | 8e9874ac713d995a6a92814030d51aa607cb0369 | refs/heads/master | 2021-01-12T04:18:32.379449 | 2018-02-02T19:54:01 | 2018-02-02T19:54:01 | 77,577,536 | 5 | 1 | null | 2021-01-25T10:16:07 | 2016-12-29T02:54:48 | Python | UTF-8 | Python | false | false | 460 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-08-26 20:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pm', '0029_auto_20170818_2230'),
]
operations = [
migrations.AlterField(
... | [
"nwilkinson@artefactual.com"
] | nwilkinson@artefactual.com |
86c6fa174383a66c46552769888fee6328dd982e | aa431a5cd979fe5b02467758bf818a1c2f503724 | /make/photon/prepare/migrations/version_2_2_0/__init__.py | 6a3ef56e44e83fc3f47c9fd6802c266bbcc664cd | [
"Apache-2.0"
] | permissive | stonezdj/harbor | 3f12fd935ce1a5c4b020a93347ce050d0d4fdeb8 | bc6a7f65a6fa854735e39381846e2a68951905c4 | refs/heads/master | 2023-08-31T17:31:43.685007 | 2021-10-21T01:25:18 | 2021-10-21T01:25:18 | 102,460,256 | 1 | 12 | Apache-2.0 | 2019-03-12T08:28:26 | 2017-09-05T09:12:25 | Go | UTF-8 | Python | false | false | 563 | py | import os
from jinja2 import Environment, FileSystemLoader, StrictUndefined
from utils.migration import read_conf
revision = '2.2.0'
down_revisions = ['2.1.0']
def migrate(input_cfg, output_cfg):
current_dir = os.path.dirname(__file__)
tpl = Environment(
loader=FileSystemLoader(current_dir),
u... | [
"dengq@vmware.com"
] | dengq@vmware.com |
76586634f0e167954ccb36328502d4e8c4ce378d | a6aadaa997afb9d93f3968d7b35856d2df30eda4 | /examples/Adafruit/Adafruit_Python_BNO055-master/setup.py | ae4a2b55fcb770d922f0ed93ba54a2e4e8f95809 | [
"MIT"
] | permissive | Stranjyr/FireflyControls | 40e1be7236e37bac2d25b86e43cff2217544d999 | 662b366717e60d875a13db7338fe532978785b20 | refs/heads/master | 2021-01-20T04:17:17.989595 | 2017-04-16T10:14:06 | 2017-04-16T10:14:06 | 83,838,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup, find_packages
classifiers = ['Development Status :: 4 - Beta',
'Operating System :: POSIX :: Linux',
'License :: OSI Approved :: MIT License',
'Intended Audience :: Developers',
... | [
"whampton99@gmail.com"
] | whampton99@gmail.com |
a2822f528b7ce6c08129ddb728eb5ec76c5718e3 | 5374df75c4c1edf044040d838b8bca5eee7428a3 | /apps/quiz/migrations/0002_auto_20180225_1348.py | 6590f8e86d0a435ae2b8a1ef0fb37bf8c0023790 | [] | no_license | jonathan-murmu/trivia | 0d6a81fca1b00fa08fde4ba999066b2772c9dc1d | ba9d2b5e0700c17f65e851d42cb53d2673a02aa3 | refs/heads/master | 2022-12-09T22:36:27.079105 | 2018-07-11T18:17:11 | 2018-07-11T18:17:11 | 122,649,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # Generated by Django 2.0.2 on 2018-02-25 13:48
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('quiz', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='objective',
... | [
"jonathanmurmu@gmail.com"
] | jonathanmurmu@gmail.com |
ab754465e32782642ed3f665783f5a0990399811 | c30c7cb65835e483d8329354892756390ad170db | /.config/python/pythonrc | 0ff561f40fca611ec79da79e1c7da1efc9f889a9 | [] | no_license | resuscv/dotfiles-python | 0d94ab9741ff005b1ab21d13699d37c4af5f4921 | f373a064ab25333afb4d4125b847c1e8c0881c3b | refs/heads/master | 2020-06-01T00:22:35.938978 | 2013-12-24T05:02:28 | 2013-12-24T05:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | # Hey Emacs! This is a -*- python -*- file.
# Get tab completion
# http://docs.python.org/2/library/rlcompleter.html
try:
import readline
except ImportError:
print "Module readline not available."
else:
import rlcompleter
readline.parse_and_bind("tab: complete")
# Import pandas and numpy
try:
import pandas as... | [
"still.another.person@gmail.com"
] | still.another.person@gmail.com | |
8c1cdeb504e120cfab9d249122eaae7a5174815b | 36091288a431917f8966dce0316ae2a8091a182b | /scripts/shell.py | eda07f45115e9f359a1b3db5a6a5b16f2ac0a0ad | [
"MIT"
] | permissive | qustodio/libimobiledevice-node | f31860963c9d3dba65732f954a98fbcde6169f6b | d97b452c3e5166b3f4f9e8ba180c8de6dec2d08d | refs/heads/qustodio-main | 2023-09-05T23:31:40.254804 | 2023-06-29T08:15:51 | 2023-06-29T08:15:51 | 142,663,144 | 1 | 0 | MIT | 2023-06-29T08:15:53 | 2018-07-28T09:06:49 | C | UTF-8 | Python | false | false | 778 | py | import subprocess
from typing import Text
import os
def uname(option: str):
return subprocess.run(["uname", option], capture_output=True, text=True).stdout.strip()
def shell(command: str, cwd: str = None, check=True, env = None, executable=None):
subprocess.run(command, cwd=cwd, shell=True, check=check, env... | [
"didix21@users.noreply.github.com"
] | didix21@users.noreply.github.com |
cfbf423ff62caf2ee97e36223dd20e5712eaaf0c | d1ae812c9338da065197bb936cdd96d173f868c3 | /8/adventofcode-8.py | e9dcced161f163b6749a89f51a7080e7e1a39cbb | [] | no_license | NickUK/advent-of-code-2018 | 3d98e728eacc2f64efe63305d4dd75562ba63eff | 91f5b694cedce69cfeb8b02499691090391ed67d | refs/heads/master | 2020-04-09T08:20:18.156802 | 2018-12-25T08:10:46 | 2018-12-25T08:10:46 | 160,190,618 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | # Day 8 part 1+2
from functools import reduce
class ParsedFile:
def __init__(self, children, meta, value):
self.children = children
self.meta = meta
self.value = value
all_meta = []
def parse(input, pos):
files = []
meta = []
value = 0
num_files = int(input[pos])
num_meta = int(inpu... | [
"nick_horne_90@hotmail.com"
] | nick_horne_90@hotmail.com |
097321d7ebb305770869f9fd631a4837eeeec702 | b87f66b13293782321e20c39aebc05defd8d4b48 | /maps/build/mayavi/enthought/mayavi/tools/sources.py | 2dcd4601cae2528189b5d19a6fb7ba72ba533b83 | [] | no_license | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,570 | py | """
Data sources classes and their associated functions for mlab.
"""
# Author: Gael Varoquaux <gael.varoquaux@normalesup.org>
# Prabhu Ramachandran
# Copyright (c) 2007-2010, Enthought, Inc.
# License: BSD Style.
import operator
import numpy as np
from enthought.traits.api import (HasTraits, Instance, CAr... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
fbf7172250b9692f46a56d7db4810ee51a517b74 | e1ef870bcb76966092da2e7d8c80764e88564bd1 | /lad/lad/spiders/jiujianglaolingwang2.py | 3b566db65f79512e84b229585c7db11779ea23e0 | [] | no_license | nicholaskh/lad-crawler | 77b3586210d916758d214c1eda665d1aedf38c0a | 8bee1d3c8e7dbf8ad1dfb98b9f325b9100a72df3 | refs/heads/master | 2020-03-22T19:20:16.661953 | 2018-06-06T12:59:38 | 2018-06-06T12:59:38 | 140,521,672 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,680 | py | #coding=utf-8
import scrapy
import re
from ..items import YanglaoItem
from ..spiders.beautifulSoup import processText, processImgSep
from datetime import datetime
from .basespider import BaseTimeCheckSpider
class newsSpider(BaseTimeCheckSpider):
name = 'jiujianglaolingwang2'
start_urls = ['http://www.jjllw.go... | [
"onebrolei@gmail.com"
] | onebrolei@gmail.com |
bd4ec6f3e5db07b6e41f8752228054e9727b6fde | eca39bee61b46256bbaa417beb9f340c60bcfe2f | /settings.py | f8c20689d6aa7e8edfb67f7411ce36fc22b18d81 | [] | no_license | tjsavage/runahouse | 968fd8683d10f7f4ec04bc569a52990cdab1c61b | 8e0f094c6120a0fd78248346a2b3320cb32e588c | refs/heads/master | 2021-01-01T19:29:33.185862 | 2011-09-27T00:41:16 | 2011-09-27T00:41:16 | 2,464,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,266 | py | # Django settings for runahouse project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': '', ... | [
"tjsavage@glados.stanford.edu"
] | tjsavage@glados.stanford.edu |
a8a95539dac6b0b456a25ccbafca9321dd5c8b20 | 5e8832e7a49e121c4db1f57d036fe39b4250246a | /347_top_k_frequent_elements.py | f3f54cdd069c2acf438ed7c5694b526627821a0d | [] | no_license | shaniavina/Leetcode_Python | 9e80477794cd80e00a399d65b76088eea41d80d1 | 185bf1542265f5f4feca2e937d1d36a7bb4a5d2b | refs/heads/master | 2022-10-12T10:56:23.476219 | 2022-09-21T01:53:40 | 2022-09-21T01:53:40 | 52,979,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import collections
class Solution(object):
def topKFrequent(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: List[int]
"""
frq = collections.defaultdict(list)
for key, cnt in collections.Counter(nums).items():
frq[cnt].append(key)
... | [
"noreply@github.com"
] | shaniavina.noreply@github.com |
b9b347334b0c918f282370fb07ea6d660c7155fa | 378a987ebe3c4418a5c3362fad5c243f8ae9ccf7 | /book/writer/models.py | 16a874b13c5c1a102ceeda8e691f48eb92789b93 | [] | no_license | wccou/lab44 | 8669cb3804a346fb45c2af38d4ef6f9a3f9f9ce2 | 59b40b930af43ead468de9558b89a53d9d121c0d | refs/heads/master | 2021-01-10T01:36:38.632269 | 2015-11-10T10:13:20 | 2015-11-10T10:13:20 | 45,905,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from django.db import models
from django.contrib import admin
# Create your models here.
class Author(models.Model):
AuthorID = models.CharField(max_length = 150)
test = models.CharField(max_length = 150)
Name = models.CharField(max_length = 150)
Age = models.CharField(max_length = 150)
Country = models.CharField... | [
"1281585844@qq.com"
] | 1281585844@qq.com |
89fc1e0b297896bce1e1f940d5d733a873e63077 | 71f7c70bcf044eceb3f31103eade40a2f6f342a1 | /p9/hello/apps/hello/views.py | e0dcb332ca45cfea8324aa12b44fc42e1c165dc5 | [
"MIT"
] | permissive | honestcomrade/diveintodocker | 9212eab83e22b02ce87411d927618930f0fbd6dc | 7dcde4272704fdbbab9b37c6ade4484792b3be2d | refs/heads/master | 2021-08-10T13:31:36.272431 | 2017-11-12T16:22:43 | 2017-11-12T16:22:43 | 109,224,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from django.http import HttpResponse
from django.template import loader
def index(request):
template = loader.get_template('index.html')
return HttpResponse(template.render(request))
| [
"honestcomrade@gmail.com"
] | honestcomrade@gmail.com |
d0b3b7556a2fc76ae67d6b26584cda560e0e48a1 | 4d0f0fe04b7d9d96ad8f202550f2d04f7b873621 | /agSciencesCollege/agsci.UniversalExtender/trunk/agsci/UniversalExtender/interfaces.py | 604b397d384721cb0b90907ed3b9a9c92da21225 | [] | no_license | tsimkins/svn-import-agSciencesCollege | 20509d679fdd3f297c5eda4f324ae382e49e9826 | 42b4d5cd0a8bb7bda2b413424cb3aa342ba42924 | refs/heads/master | 2021-01-01T15:31:24.614632 | 2015-04-10T14:25:10 | 2015-04-10T14:25:10 | 26,240,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | from zope.interface import Interface, Attribute
from plone.theme.interfaces import IDefaultPloneLayer
from plone.app.portlets.portlets.navigation import INavigationPortlet
class IUniversalExtenderLayer(IDefaultPloneLayer):
"""A Layer Specific to UniversalExtender"""
class IFSDPersonExtender(Interface):
""... | [
"trs22@ea9a3244-bef9-0310-a2a5-f2a3d2dd1ec8"
] | trs22@ea9a3244-bef9-0310-a2a5-f2a3d2dd1ec8 |
6ddd919ec3149aaced404211f7ae154ec52fce11 | 7ee986a1957c621813cae28d5ab5eb688a1e4e65 | /rsalgos/ressys_nearest_neighbour.py | 27e3d8a5d602712e2b39c064935072dfab32fbfb | [] | no_license | datagrad/MS_Reference_recsys-rl-base | 7810247351435314709a7ec55e06cd0edb61a28a | 6e93aed18cf9c1b857ff13a3642abe134c8a6a9f | refs/heads/master | 2023-07-08T09:08:53.843168 | 2020-09-30T05:30:09 | 2020-09-30T05:30:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | from sklearn.neighbors import NearestNeighbors
from joblib import dump, load
class RecSysNearestActions(object):
NN_MODEL_SAVE_PATH = 'models/nearest_neighbour.model'
def __init__(self):
self.model_nn = None
def get_nearest_neighbours(self, query_array, k_neighbours):
distances, indexs ... | [
"sjana@yodlee.com"
] | sjana@yodlee.com |
89ced595161f3d6bd446f66218771ab53cf7a9ae | 3a9454ad6d7bb5a3d313c4266f0ddd8dc87190e1 | /Geeksforgeeks/count_even_odd_num_list.py | dbf009c76e2bbdc5f9b3b37ad9eb024410d81b69 | [] | no_license | indrakumar0812/develop | bc60f49fbed29e148966b880a606b1f18464ac76 | f0268b5a70dc2590cc236864428e1192cb30ba5e | refs/heads/master | 2022-12-20T14:49:56.396032 | 2020-10-19T03:37:47 | 2020-10-19T03:37:47 | 305,252,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | list = [2, 7, 5, 64, 14]
list1 =[]
count_odd=0
count_even=0
for i in list:
if i%2==0:
count_even+=1
else:
count_odd+=1
print("no. of odd numbers are", count_odd)
print("no. of even numbers are", count_even)
| [
"indrasen.170190@gmail.com"
] | indrasen.170190@gmail.com |
e48b835e1d5120077a7225a0065dbe3c3ce26277 | 21c805ceb4a1f2f9142d81d4e3bf4d910e5aa19d | /mail/views.py | 5bef491af9166436db497e899b2837c6adc3371e | [] | no_license | dbonach/cs50web-project-3-mail | 7d9895898ebfd6defbf4e9461bdcb656d5b7a24e | 0e338831d1599e14930f48d34886639bd94653d0 | refs/heads/main | 2023-07-02T14:01:05.953569 | 2021-08-08T21:05:07 | 2021-08-08T21:05:07 | 369,681,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,467 | py | import json
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.db import IntegrityError
from django.http import JsonResponse
from django.shortcuts import HttpResponse, HttpResponseRedirect, render
from django.urls import reverse
from django.... | [
"deivitlopes@gmail.com"
] | deivitlopes@gmail.com |
fed1bc7f40bb6feaf49880cd138754f9076b0128 | fd7fe855490f80bef9cbb1b44230c31c1133635b | /HardwareObjects/SOLEIL/PX2MultiCollect.py | 5773693f8f2a2eb09c7891a5ed0f11043faf7541 | [] | no_license | SOLEILPX/mxcube | 75dd528bbcd8743896217a7e490bf530cb5be4b1 | 062ccc01ecf6e9ad1ee40f6a0d4d5b42f7a49be0 | refs/heads/master | 2021-01-22T18:32:36.584828 | 2013-11-01T17:44:09 | 2013-11-01T17:44:09 | 13,930,813 | 0 | 0 | null | 2013-11-01T17:44:10 | 2013-10-28T16:04:27 | Python | UTF-8 | Python | false | false | 2,383 | py | from SOLEILMultiCollect import *
import shutil
import logging
from PyTango import DeviceProxy
import numpy
import re
class PX2MultiCollect(SOLEILMultiCollect):
def __init__(self, name):
SOLEILMultiCollect.__init__(self, name, LimaAdscDetector(), TunableEnergy())
#SOLEILMultiCollect.__init__(self, ... | [
"blissadm@proxima2a-5.(none)"
] | blissadm@proxima2a-5.(none) |
ddf31aa0247b5bd2963cdb3c8159a26bb33c77e0 | fe039f62337b210061bfd7291000c5fa406fd0ff | /list/webapp/models.py | 4a9bf3ad037982d3daaeb33bc2a410482cb276bf | [] | no_license | Erlan1998/python_group_7_homework_45_Erlan_Kurbanaliev | a5f5956490d778341e4958fe6740ab6e1a395f45 | 4f860b561f046413bbc9ab8f587b8f7c40b8c23a | refs/heads/main | 2023-05-07T00:16:28.530637 | 2021-03-04T12:32:36 | 2021-03-04T12:32:36 | 342,240,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from django.db import models
status_choices = [('new', 'Новая'), ('in_progress', 'В процессе'), ('done', 'Сделано')]
class List(models.Model):
description = models.TextField(max_length=200, null=False, blank=False)
detailed_description = models.TextField(max_length=3000, null=True, blank=True)
status = m... | [
"kurbanalieverlan@gmail.com"
] | kurbanalieverlan@gmail.com |
271f0e1a53a69327d69451cb15835b1dbd9ab828 | 13b8b25240f2fc4ed2a2c5e2a5384888c7920760 | /company_logo.py | 841c6a0fc2ae94d659fb1be5da20893d035079fc | [] | no_license | Harshkakani/hackerrank_python | 9227f408552e10e645863c6e994ea5b6bb976bd4 | fbd0391111316439c1dc8a206f68d76c3b5e132c | refs/heads/master | 2022-12-21T23:57:48.569952 | 2020-10-01T04:00:08 | 2020-10-01T04:00:08 | 280,214,248 | 0 | 0 | null | 2020-10-01T04:00:09 | 2020-07-16T17:19:25 | Python | UTF-8 | Python | false | false | 310 | py | s = input()
letters = [0]*26
for letter in s:
letters[ord(letter) - ord('a')] += 1
for i in range(3):
max_letter = max(letters)
for index in range(26):
if max_letter == letters[index]:
print(chr(ord('a') + index), max_letter)
letters[index] = -1
break
| [
"harshkakani.hk@gmail.com"
] | harshkakani.hk@gmail.com |
f53ac3f6c538688800be418ff966c4e0919f43ec | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_248/ch81_2020_04_12_22_18_46_334181.py | 8e1cf83d9390b88d1079f2c7a2e6970a6b74812b | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | def interseccao_valores(dic1,dic2):
v=dic1.values
v2=dic2.values
lista=[]
if v1==v2:
lista.append(v1)
return lista | [
"you@example.com"
] | you@example.com |
5c6ca9b47c769d947c3323009808774f0d662ef7 | fd8286efe303afa40354aff60282b3ec81fbb479 | /Python Data Structure/Ch6-Solutions-Student.py | ba0b7fbc4bd7ecd7c6d02a99ad03125bb2e6f142 | [] | no_license | Busymeng/MyPython | 76419db7e2a4ec1ba91ca94a3340c889e4545165 | 2ca149de972d5834c912485883811a58e0ca715d | refs/heads/master | 2023-07-06T18:14:29.708542 | 2023-06-30T19:29:03 | 2023-06-30T19:29:03 | 138,058,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | #####################################################################
## Ch6 Quiz
##
"""
1. Hellothere
2. 42
3. print(x[8])
4. print(x[14:17])
5. letter
6. 42
7. print(greet.upper())
8. shout()
9. .ma
10. strip()
"""
#####################... | [
"noreply@github.com"
] | Busymeng.noreply@github.com |
9ac90402d2cf35ca49656daf947ac350ce5fdcb0 | 5291587d464fa1845e4689b07252d1c9c3a91994 | /DNS_homework/Unit4_python_homework/test.py | b4e1fb11ee13f3716ad7e5edcadf19755ab8eca0 | [] | no_license | CamboRambo83/My_projects | 03a01c1c3141085fdc7ceffdd203b6f75c5d539d | 0f976b5511141419ab26a28d0a4726053f1767dd | refs/heads/master | 2020-07-04T11:19:29.018424 | 2019-08-17T21:02:49 | 2019-08-17T21:02:49 | 202,271,684 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | print('wtfffff')
| [
"Khmerprince83@gmail.com"
] | Khmerprince83@gmail.com |
de3d4233cf25be9b3f24af1908a33f3ae45e1f5e | b3a5f2a9a1d777978a27d39325872ca8faf2f681 | /RockPaperScissors.py | e31020392f25c2f2dace4042a6130b418613c6b9 | [] | no_license | nickiapalucci/RockPaperScissors | 28ee78e518e5801038f962d46020ea0fb0f0afbe | 492bec6d3386400f6147bf747cde5a91005a46cf | refs/heads/master | 2021-01-02T09:27:53.368446 | 2020-10-02T04:28:48 | 2020-10-02T04:28:48 | 39,541,269 | 1 | 1 | null | 2020-10-02T04:28:49 | 2015-07-23T02:29:25 | Python | UTF-8 | Python | false | false | 2,349 | py | # include random module to generate opponent hand in this game of chance
import random
# Welcome, title, explanation
print("\n\nWelcome to Rock, Paper, Scissors!\n\n\n"
"This is a game of luck, you versus the computer.\n"
"You both will secretly pick a rock, paper, or scissors.\n\n"
"The winner is de... | [
"cukid9876@outlook.com"
] | cukid9876@outlook.com |
1da0fa467b0dabe86ba10b2cefbb02583f434cc5 | 4831ef3cf429899d657f29a6f84f7c396a8d9872 | /avito/extract_features.py | 360bc84b48bf0fe8f5dd8847541898d6d57ba65f | [] | no_license | senkin13/kaggle | f0aebef1fa8ecc5e4f234df91be63279d900cd0d | 5f1a078eb864623376813dea620138653ada69a8 | refs/heads/master | 2022-12-08T09:58:40.363726 | 2022-12-07T08:17:48 | 2022-12-07T08:17:48 | 99,398,475 | 110 | 23 | null | 2022-12-07T08:15:14 | 2017-08-05T04:15:43 | Jupyter Notebook | UTF-8 | Python | false | false | 26,007 | py | import pandas as pd
import numpy as np
import pickle
from sklearn.preprocessing import LabelEncoder
from tqdm import tqdm
train = pd.read_csv('../input/train.csv', parse_dates = ['activation_date'])
test = pd.read_csv('../input/test.csv', parse_dates = ['activation_date'])
train_active = pd.read_csv('../input/train_a... | [
"noreply@github.com"
] | senkin13.noreply@github.com |
e29535f0d26e87b86587500aa5e2cb512dab6bd2 | 1118aec39a839da2ebc508f1d2a6b377aa70274d | /src/lib/test_weakset.py | 9f3e8aba2ca12ecf934a509ad65cbf622dd40597 | [] | no_license | serg0987/python | b3a9a2b22b4ef5a39e612a0a170ba9629933c802 | 074449ad6b3a90352939c55a9db37bd248cab428 | refs/heads/master | 2020-05-15T09:30:17.500158 | 2015-10-18T21:28:08 | 2015-10-18T21:28:08 | 2,454,952 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
'''
weakref — Weak references
link: http://docs.python.org/2/library/weakref.html
'''
import unittest
from weakref import WeakSet, WeakValueDictionary
class Object:
pass
class TestWeakSet(unittest.TestCase):
def test_len(self):
obj = Object()
obj2 = Object()
... | [
"serg0987@gmail.com"
] | serg0987@gmail.com |
836368a464341d665f660be2e150e73f7438b986 | e2ea841245e6e28604d529a34e4b2e21f41e97cd | /NeuralNetworkUI/NetworkXNetworkInterpreter.py | 95a0022392281310632171b99fc226b594d9be89 | [] | no_license | chezanthony/NaiveNEAT | 81e20db90c454521b5efa4c066659f25c04e6f4d | 98881c0cbcc6b6fd1c9bcd347896a5537943aba8 | refs/heads/master | 2023-03-23T16:48:09.661784 | 2020-08-31T17:11:37 | 2020-08-31T17:11:37 | 289,199,711 | 0 | 0 | null | 2020-08-24T18:27:07 | 2020-08-21T06:51:29 | Python | UTF-8 | Python | false | false | 1,420 | py | class CNetworkXNetworkInterpreter:
@staticmethod
def interpret_network(network, nx):
node_container =\
network.get_node_container()
connection_container =\
network.get_connection_container()
CNetworkXNetworkInterpreter.\
_add_nodes(node_container, nx)... | [
"chezanthonyintud@gmail.com"
] | chezanthonyintud@gmail.com |
1579047ff059b9711269bf038bcafe72d691e46b | 7a305f7f5bfb0789f12fe3f846a5aa10fcb79d4b | /python_module/stomp/test/local_test.py | fc96b984880423f96252e893cf27c1b543cee504 | [
"MIT",
"Apache-2.0"
] | permissive | GeneralizedLearningUtilities/SuperGLU | 873dbd8c9c19117721e01e8ce7da1edea962b803 | 1c373d1358431fb96dd70b324b26a14fc8ed1fcb | refs/heads/master | 2023-01-03T00:47:18.183214 | 2021-08-24T16:49:24 | 2021-08-24T16:49:24 | 38,255,548 | 8 | 6 | MIT | 2022-12-29T09:47:41 | 2015-06-29T15:36:46 | JavaScript | UTF-8 | Python | false | false | 1,190 | py | import time
import unittest
import stomp
from stomp.listener import TestListener
from stomp.test.testutils import *
class TestIPV6Send(unittest.TestCase):
def setUp(self):
conn = stomp.Connection11(get_ipv6_host())
listener = TestListener('123')
conn.set_listener('', listener)... | [
"daniel.auerbach@gmail.com"
] | daniel.auerbach@gmail.com |
505e5e0ce0cb191a5ec404f1e81be10da0578bf5 | 268d9c21243e12609462ebbd6bf6859d981d2356 | /Python/python_stack/Django/Dojo_ninjas/main/apps/dojo_ninjas/migrations/0002_dojo_desc.py | 58a3322cbefd8d01f3ac70e8cbe91f35e5cc03d2 | [] | no_license | dkang417/cdj | f840962c3fa8e14146588eeb49ce7dbd08b8ff4c | 9966b04af1ac8a799421d97a9231bf0a0a0d8745 | refs/heads/master | 2020-03-10T03:29:05.053821 | 2018-05-23T02:02:07 | 2018-05-23T02:02:07 | 129,166,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-05-08 14:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dojo_ninjas', '0001_initial'),
]
operations = [
migrations.AddField(
... | [
"dkang417@gmail.com"
] | dkang417@gmail.com |
cd802f3c8a2cb2614620310b207adc8d3b08794c | e709ba8bea070d1178b14609b771f7d751a881ef | /Ada.py | 83a1dca833ce65a769f39737b19586867d4d897b | [] | no_license | youko70s/2018-Humana-TAMU-HealthCare-Competition | 6b25e0e16cd412243a78ed861a88dd5dd79bc92a | 19ea30673c59a7d0abd9279da3517855282a382f | refs/heads/master | 2020-03-31T09:58:22.148712 | 2019-02-22T23:11:53 | 2019-02-22T23:11:53 | 152,117,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,158 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Oct 7 18:01:07 2018
@author: youko
"""
##import packages needed
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from pprint import pprint
import sklearn
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClas... | [
"noreply@github.com"
] | youko70s.noreply@github.com |
a5049b077e0a7a7ba99e60920e4dd3e0ba882227 | c2bd34dfcfb45f6b0da327badc928779773696a8 | /math_paradox.py | 9190ba1593c547758962be10c41a487ae069f9b0 | [] | no_license | lisiynos/sis-cpy | 2f8555b24c9e301649569b1617ad1742fc763143 | d43c62697bb37d763003d1e1e4bf22e92ec5f8dc | refs/heads/master | 2021-01-02T09:28:22.476953 | 2018-03-29T11:08:09 | 2018-03-29T11:08:39 | 99,215,997 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | # Начнем мы с равенства:
assert 16 + 45 == 25 + 36
# которое перепишем в виде:
assert 16 + 9 * 5 == 25 + 9 * 4
# Перенесем некоторые слагаемые в другие части равенства —
# естественно, изменяя знаки на противоположные:
assert 16 - 9 * 4 == 25 - 9 * 5
# теперь к обеим частям добавим по 81/4.
assert 16 - 9 * 4 + 81 / 4 =... | [
"denis@taxify.eu"
] | denis@taxify.eu |
fa2e03c8a8e5896e8ea1a1cf821802b666c2ccf0 | 7fa5dd810aa8f2e20c59590aa6be132de749542c | /GestorCaptura.py | 59ab586fbc557fb008841d7c6ce4bce079d51033 | [] | no_license | such-stupid6/-Miner_Detector | 802fa5cde37bb508dbcc7f7c927eb95bdc5ee818 | 7e2b265781d36d0bd877238a3aa691a2afaae3de | refs/heads/master | 2023-03-01T16:25:19.005802 | 2021-01-24T04:20:13 | 2021-01-24T04:20:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import time
import os
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
#Lee los archivo
def readArchive():
archive = open("./Entrenamiento/data0.txt" , "r")
print(archive)
j = 434
for i in archive.readlines():
try:
driver = createSession()
managmentBrowser(driver, i, j)
j+=... | [
"steven.bernal@correo.icesi.edu.co"
] | steven.bernal@correo.icesi.edu.co |
ef52298f256957366a62065c6bbda48bbbfa0568 | 8efd8bcd3945d88370f6203e92b0376ca6b41c87 | /problems100_200/131_Palindrome_Partitioning.py | 4fd4acc10c6135bdd9be20744a848feda4634b56 | [] | no_license | Provinm/leetcode_archive | 732ad1ef5dcdfdde6dd5a33522e86f7e24ae2db5 | 3e72dcaa579f4ae6f587898dd316fce8189b3d6a | refs/heads/master | 2021-09-21T08:03:31.427465 | 2018-08-22T15:58:30 | 2018-08-22T15:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | #coding=utf-8
'''
131. Palindrome Partitioning
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s = "aab",
Return
[
["aa","b"],
["a","a","b"]
]
'''
class Solution:
def partition(self, s):
... | [
"zhouxin@gmail.com"
] | zhouxin@gmail.com |
0b047206028e48fd160273fdfe964e854fa7c65d | 82418725b9f000282171dc8a455402078858d0f9 | /headache/main.py | 00a28263b96e3b17acff81c9bec4c3bea08d2491 | [] | no_license | sabinzero/various-py | ee2c9c16334ab3e985da2e36a3cebbceca08c6ea | 2fb859a1fb64b764ef8c75a7a66db45b6e46a01c | refs/heads/master | 2020-11-28T08:42:19.359185 | 2019-12-23T13:37:39 | 2019-12-23T13:37:39 | 229,759,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | fact = 1
sum = 0
n = input("enter value of n: ")
for i in range(1, n + 1):
fact = 1
for j in range(1, i + 1):
fact *= j
sum += fact
print "%d! = %d" % (i, fact)
print "sum of factorial of every individual number is : %d" % (sum)
| [
"sabinzero@gmail.com"
] | sabinzero@gmail.com |
38a7f9d190da0e26eb059cb2731c59a8ff39c6b9 | 288ab32e56cf34ec8a49cb57cd9674a8792b004e | /roles/migrations/0066_auto_20190813_1118.py | 6f6e404b79bfcdeb44045d1dd00b4d8d0fb24437 | [] | no_license | Artvell/apex | a231747a81e09bb06bab84c61aaac7d5069cba90 | 46dbfe5f0cd9480cdf77197116d8ccef099e25a4 | refs/heads/master | 2022-04-10T18:20:18.602564 | 2020-03-09T12:21:52 | 2020-03-09T12:21:52 | 219,150,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,660 | py | # Generated by Django 2.2 on 2019-08-13 06:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('roles', '0065_auto_20190813_1113'),
]
operations = [
migrations.AlterField(
model_name='purchase',
name='fact_kol',
... | [
"hurilla2003@mail.ru"
] | hurilla2003@mail.ru |
eb7b37d089415c0132787510a0ff8cd33942e87c | b06e5e9bbc2e801135822ffee40ac52475cf5a84 | /Revision/Recursion/productSum.py | 97d681ba90e3ce385769cb965fc2cf04bcf56cd3 | [] | no_license | vikashvishnu1508/algo | 7755d4d5da3c2866d6dd623793a7777623778640 | a376565362123c44288233b49e20293ebf870233 | refs/heads/main | 2023-06-09T08:20:46.140158 | 2021-06-26T19:05:31 | 2021-06-26T19:05:31 | 355,154,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | # Tip: You can use the type(element) function to check whether an item
# is a list or an integer.
def productSum(array):
# Write your code here.
return getSum(array, 1)
def getSum(array, depth):
print(f"array = {array}")
productSum = 0
for curItem in array:
print(f"curItem = {curItem}, productSum = {prod... | [
"vikashvishnu1508@gmail.com"
] | vikashvishnu1508@gmail.com |
d22e6d2825462adbd210700d367af82d43fbe5a7 | ffced6fdbfd50ccd8db25e95bbd8dfa799a2e515 | /school-project/pro_blog/pro_blog/wsgi.py | df55660045bbd2b1008881944cca1ca38dd029ee | [] | no_license | danilF4/school-project | 6751ad8996ab50090e487503b709f37f4f41841d | 3dad6d8c72b89e84e2225d0d8b54e0d131798779 | refs/heads/master | 2022-12-11T05:49:07.556358 | 2019-01-24T21:53:49 | 2019-01-24T21:53:49 | 166,719,375 | 0 | 1 | null | 2022-11-27T03:42:50 | 2019-01-20T23:09:14 | Python | UTF-8 | Python | false | false | 394 | py | """
WSGI config for pro_blog 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"danilfatkin23082000@gmail.com"
] | danilfatkin23082000@gmail.com |
6b3dc31037a691d81abf299b989c4221b7da7ad9 | 20aa042f9c37d52c86aee8fef58652e321a0a61a | /titanic/analyze.py | bc1d69470896cda3f937e04b6bddeab63a5e6b3b | [] | no_license | EagleEYErus/coursera_ml | 6705de81d488608169911c3b6abd7d5ce268d9d5 | e6941a4542e0fe53a945567335299d0f3c18b106 | refs/heads/master | 2021-04-29T14:08:10.431471 | 2018-02-21T12:40:23 | 2018-02-21T12:40:23 | 121,766,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,971 | py | import re
from collections import Counter
import pandas as pd
from titanic.file import write_file
# Read data from CSV
data = pd.read_csv("titanic.csv", index_col="PassengerId")
# Counting gender
count_sex = data["Sex"].value_counts()
write_file(sub_dirname="analyze", filename="count_sex.txt", data_to_file=f"{count... | [
"alex_afsoc@mail.ru"
] | alex_afsoc@mail.ru |
22082fac0984c7728a7ac71f5666b9a60a1c7171 | 15cace5f904c5c2389ca3cc02b5ff1fc029c7651 | /parsing/management/commands/scraper/test.py | cc3b4a7431673dd5f8c4b261fd80953be86ccffa | [] | no_license | ghostnoop/django-youtube-parser-asyncio | fb7146e788dfe5986ad31a45a5d5b1da918583c6 | 631bc4ddc0eed0407f09a810c334a0e9d8d0ed7a | refs/heads/main | 2023-03-26T12:57:32.248097 | 2021-03-25T11:02:54 | 2021-03-25T11:02:54 | 341,303,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | main_list = [i for i in range(100)]
size = len(main_list) // 4
a = main_list[:size]
b = (main_list[size:size * 2])
c = (main_list[size * 2:size * 3])
d = (main_list[size * 3:])
| [
"giliyazovmarat@gmail.com"
] | giliyazovmarat@gmail.com |
334391aae07943250837c1baee5637ca0f10d64d | 14946cd014b3bbd20a8cb687ef10748901a1762b | /Task/Task/settings.py | 0e5dc408b452a5f6777caf3219cfc1b915d7f11c | [] | no_license | bhatiboss/Task-Manager | ade247e0c856e2f79ee720461f18200ee23f3036 | 445f33323d7f5f3b64140a38edbce22c4e420028 | refs/heads/master | 2023-05-23T01:41:01.330288 | 2021-06-13T20:23:05 | 2021-06-13T20:23:05 | 376,008,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,338 | py | """
Django settings for Task project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bu... | [
"harshitbhati40@gmail.com"
] | harshitbhati40@gmail.com |
5c816bd4cd0e394c580f6a6778a47207256c2d70 | 4f696b0712f530f0d8e7d968ee52ed4dda97a2c6 | /admix/dataset/_index.py | 2ffb7196e475cb142a769a03dd81c359aa616806 | [] | no_license | KangchengHou/admix-kit | 5d0e1f4225f6339f10bece6fded7c156794bccbe | 136e8999d94440d604a2dcfb7b7d1a340a5f6e67 | refs/heads/main | 2023-09-01T08:58:05.219692 | 2023-08-24T17:33:58 | 2023-08-24T17:33:58 | 335,100,490 | 7 | 1 | null | 2022-08-20T23:01:26 | 2021-02-01T22:23:02 | Python | UTF-8 | Python | false | false | 4,468 | py | import pandas as pd
import numpy as np
from typing import (
List,
Union,
Tuple,
Sequence,
)
def normalize_indices(
index, snp_names: pd.Index, indiv_names: pd.Index
) -> Tuple[Union[slice, int, np.ndarray], Union[slice, int, np.ndarray]]:
"""Normalize the indices to return the snp slices, and ... | [
"kangchenghou@gmail.com"
] | kangchenghou@gmail.com |
4cb6895734e7784bb846ef54f0aa69215cadbcf7 | 524d9d26fa05d554261ad8ce97566bf7aa517b6a | /Logistic Regression/Logistic_Regression.py | 2328431fab851f487ea625e082030e29e20839ab | [] | no_license | karolsitarz/MLalgorithms-collection | 9bfccc5af5b01a7e57b34f7e506e82c8c13c7d15 | 86f6ac95625dcf1290d1e353a7de01f7bc14f4ff | refs/heads/main | 2023-08-14T04:08:32.388054 | 2021-10-04T15:11:47 | 2021-10-04T15:11:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | import numpy as np
class LogisticRegression():
def __init__(self,iterations=100,alpha=0.0115):
self.iterations = iterations
self.alpha = alpha
self.J = []
self.J_val = []
self.output = 0
self.o_val = 0
self.regularization = False
def sigmoid(se... | [
"noreply@github.com"
] | karolsitarz.noreply@github.com |
b1474276c846fd67467f0624f4fe65200dc1f5cd | cd117c1bcde2d7d7d7a389ef6889630b99a53059 | /Lesson4/L4_T2/L4_T2/L4_T2.py | aea2e29ff75371393f396fd5bc0ecf1a83e577ab | [] | no_license | mironnay/Python-Classes | e120cf5ea5403a907a9c567f9e634ab89cd04bea | 6f44618519983b28e2b743f9f7f982d556fee177 | refs/heads/master | 2022-08-31T17:28:59.064379 | 2020-05-27T12:57:46 | 2020-05-27T12:57:46 | 259,941,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py | user_line = input("Enter some number. I`ll calculate sum of all digits: ").strip()
while user_line.isnumeric() == False:
user_line = input("Wrong format. Try again ").strip()
sum = 0
for i in user_line:
sum += int(i)
print(sum) | [
"noreply@github.com"
] | mironnay.noreply@github.com |
459e5bfca5c7c425942e7aed02526142213dbb81 | f9d3f08a3eaa857d36e9348ab1d72273aefb30db | /peachbox/task/task_chain.py | 0cb37ad15e3f745656e31850f82daf0e0f07fec0 | [
"Apache-2.0"
] | permissive | orakle/peachbox | 466f0c4ce8d25be715928f34b7ba21e339dce990 | 568f10f14cac5cc2794dbb9b652aa3e86a881aa0 | refs/heads/master | 2021-01-15T08:37:39.714575 | 2015-06-24T11:01:44 | 2015-06-24T11:01:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | from peachbox.task import Task
"""
Copyright 2015 D. Britzger, P. Pahl, S. Schubert
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 ... | [
"ph.pahl@gmail.com"
] | ph.pahl@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.