blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f23b2f1a0f51f385862ff8d5a5ea6f26947847e | b4cd6acd822dc2fbc97908aafc910e60bf597756 | /web_s/env/lib/python3.7/keyword.py | c829f53b9c895483ad9f7c5c7ba0a5b6f6bf08e7 | [] | no_license | vaibhavCodian/Stock-Prediction-Web-App | 868685786c43155ae4abcf7dd6c4590802faa168 | 54ca117150c71a2a017c0ba4b8d91324a7645a8b | refs/heads/master | 2021-02-12T14:06:53.216536 | 2020-04-28T17:50:24 | 2020-04-28T17:50:24 | 244,597,359 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | /home/vaibhav/anaconda3/lib/python3.7/keyword.py | [
"30vaibhavshukla@gmail.com"
] | 30vaibhavshukla@gmail.com |
f427c925290c5a2a81db95be3c0f18e6c3e33066 | dccd1058e723b6617148824dc0243dbec4c9bd48 | /atcoder/abc048/a.py | 2a32b441150b9a7e79505fe4330cbbf200516869 | [] | no_license | imulan/procon | 488e49de3bcbab36c624290cf9e370abfc8735bf | 2a86f47614fe0c34e403ffb35108705522785092 | refs/heads/master | 2021-05-22T09:24:19.691191 | 2021-01-02T14:27:13 | 2021-01-02T14:27:13 | 46,834,567 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | for s in input().split():
print(s[0],end="")
print()
| [
"k0223.teru@gmail.com"
] | k0223.teru@gmail.com |
7c1cf7586a7cc9ff5c8a7ecd4890b9115290f894 | f578bf168e4f8df91007bae7a2352a31cd98d375 | /CraftProtocol/Protocol/v1_8/Packet/Play/ConfirmTransactionClientPacket.py | 784d4f7628593a4131223067b1b3c32efe08486b | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Toranktto/CraftProtocol | 97a4e4f408e210494f6acbec0f30c477bb55f8fa | a6f4a67756c3868820ab76df5e148d76b020d990 | refs/heads/master | 2021-07-18T11:04:13.432733 | 2018-09-09T17:23:51 | 2018-09-09T17:23:51 | 144,491,218 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,528 | py | #!/usr/bin/env python
from CraftProtocol.Protocol.Packet.BasePacket import BasePacket
from CraftProtocol.Protocol.Packet.PacketDirection import PacketDirection
from CraftProtocol.StreamIO import StreamIO
class ConfirmTransactionClientPacket(BasePacket):
PACKET_ID = 0x32
PACKET_DIRECTION = PacketDirection.CLI... | [
"toranktto@gmail.com"
] | toranktto@gmail.com |
f1ea3f92b383d226f7bc949e68085f65407309e1 | 97fd76dd9f2fd29a6418e26b8f8d21f330b58a9c | /tests/test_main.py | 2025733d3b9de2147a4a03c1f3d06c4a418c6312 | [
"MIT"
] | permissive | sudeep611/nepserate | d53d39ca4c204508621379787ac8d4cbb40a68d3 | b7247839ed1675eeaecf6cac4124507a35f6c8d3 | refs/heads/master | 2021-05-29T15:35:24.690452 | 2014-10-31T16:56:06 | 2014-10-31T16:56:06 | 25,625,531 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | # Test Script
# If this test pass then everything should work fine
from nepserate import ScrapeRate
import unittest
class TestScrapeRate(unittest.TestCase):
def test_result(self):
ns = ScrapeRate()
# Check if the return type is list
self.assertEqual(type(ns.getRate("ADBL")), type([]))
if __name__ == '__mai... | [
"sudeep611@gmail.com"
] | sudeep611@gmail.com |
22cd4aa937ae8cfd23745a3259f156cd50b64a4e | cb3583cc1322d38b1ee05cb1c081e0867ddb2220 | /donor/migrations/0014_auto_20210331_0404.py | b1189bdce3ff86f5f1436a2a55ec393aa74d80f9 | [
"MIT"
] | permissive | iamgaddiel/codeupblood | 9e897ff23dedf5299cb59fd6c44d9bd8a645e9c6 | a0aa1725e5776d80e083b6d4e9e67476bb97e983 | refs/heads/main | 2023-05-07T23:34:27.475043 | 2021-04-24T20:49:08 | 2021-04-24T20:49:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 3.1.6 on 2021-03-31 11:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('donor', '0013_auto_20210330_0743'),
]
operations = [
migrations.AlterField(
model_name='appointment',
name='d_id',
... | [
"www.spbiology@gmail.com"
] | www.spbiology@gmail.com |
fce283892ba59dcf2ba42e224830b42612d88aa5 | ec3e9925af8742d578fd11aac6f000ced71aa9f5 | /crm_app/migrations/0001_initial.py | a8d2064e20aeff0443aad84487887d739acbfa32 | [] | no_license | amrit-kumar/CRM-Customer-relationship-management- | cfd3ec42a975e7b987d76abe465cb2ec9eec62b4 | d41b482166557e17825b2a010d24bb03ee469245 | refs/heads/master | 2021-06-25T06:37:51.721771 | 2017-08-12T09:43:23 | 2017-08-12T09:43:23 | 96,964,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2017-01-17 10:59
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MsgRepo... | [
"kumaramrit38@gmail.com"
] | kumaramrit38@gmail.com |
c833bef47a138873f53849c9dffd03c4f3bb8c82 | f54e711cb7fa9ec0295d1e5519fde39778299c48 | /blogProject/myApp/migrations/0004_comment_name.py | 0e5793a15f0e9b585a0ce290649d05cbf9f3c64e | [] | no_license | Sushma-RV99/blog-repo | bb9c795784fd82178384ede75ef369d64997fa1a | a1443c963fdcaaf38904b3f6faa90401a396564e | refs/heads/master | 2023-02-11T06:07:48.709194 | 2021-01-08T14:23:36 | 2021-01-08T14:23:36 | 327,924,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # Generated by Django 2.2 on 2021-01-01 15:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('myApp', '0003_comment'),
]
operations = [
migrations.AddField(
model_name='comment',
name='name',
field=mo... | [
"sushmavbharadwaj99@gmail.com"
] | sushmavbharadwaj99@gmail.com |
0ff0703817449a164cc4148e5e772d7aad82761d | 20a0bd0a9675f52d4cbd100ee52f0f639fb552ef | /transit_odp/data_quality/migrations/0010_auto_20191118_1604.py | 1dbd2499c70b6991917a996f3979d7d53de8b877 | [] | no_license | yx20och/bods | 2f7d70057ee9f21565df106ef28dc2c4687dfdc9 | 4e147829500a85dd1822e94a375f24e304f67a98 | refs/heads/main | 2023-08-02T21:23:06.066134 | 2021-10-06T16:49:43 | 2021-10-06T16:49:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | # Generated by Django 2.2.7 on 2019-11-18 16:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("data_quality", "0009_auto_20191118_1029"),
]
operations = [
migrations.RemoveField(
model_name="service",
name="repo... | [
"ciaran.mccormick@itoworld.com"
] | ciaran.mccormick@itoworld.com |
c941709fbed0b9fa452dac0e4e3ea4916d99de51 | 3b630e8ffae16049b09ea90b3d4af4e2c7b9483b | /firstphy.py | 35ea0b20e4778b407114c119c477c625d43f2d8e | [] | no_license | shafifx/myhub | fe91a2d46c0ba7f7d58057e1d05aecc067989fc9 | a3939fe4743a80535af1334f1f7fc78f28482745 | refs/heads/main | 2023-06-06T22:34:09.271540 | 2021-07-08T16:17:53 | 2021-07-08T16:17:53 | 383,184,433 | 0 | 0 | null | 2021-07-08T16:17:53 | 2021-07-05T15:21:38 | Python | UTF-8 | Python | false | false | 43 | py | hry pythonhttps://github.com/shafifx/myhub
| [
"noreply@github.com"
] | noreply@github.com |
33eadd24b48302614418717e1f4b4966a2618001 | 5b6ec20f6a62e2daf46e13c8740e9d8c8f4ff0e2 | /mvloader/nrrd.py | 68430da6cbbd010a39c01834606f84bae565ca30 | [
"MIT"
] | permissive | dichetao/mvloader | 946575ee2cad2daa2d4ae507ba44bf120e100966 | 4244ba30f4c8f92ccf7605dc0134ef32706a70a2 | refs/heads/master | 2021-09-23T14:23:26.151457 | 2018-09-24T14:11:24 | 2018-09-24T14:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,901 | py | #!/usr/bin/env python
# coding: utf-8
"""A module for reading NRRD files [NRRD1]_, basically a wrapper for calls on the pynrrd library [NRRD2]_.
References
----------
.. [NRRD1] http://teem.sourceforge.net/nrrd/format.html (20180212)
.. [NRRD2] https://github.com/mhe/pynrrd (20180212).
"""
import nrrd
import numpy a... | [
"simon.pezold@unibas.ch"
] | simon.pezold@unibas.ch |
22eee1e5ce8c1bd1a482bcb953ffebe1d366e5d7 | 1c73ef51b70251ed6ed24ce7a9ea08e601b602dd | /insert_mysql.py | 2672456d4f9ab5af82e2e0d026f684b8fa32ba81 | [] | no_license | java2man/restful-client | 21487f0a8361c499277d6863e86d0fdf4060ff46 | d1cc2a3b3995214d9c71ad50a5149f145fd3063e | refs/heads/master | 2021-01-22T04:11:07.756990 | 2017-02-10T01:50:50 | 2017-02-10T01:50:50 | 81,513,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,067 | py | # -*- coding: utf-8 -*-
import sys
import mysql.connector
from mysql.connector import conversion
class DBOperator:
def __init__(self, user, password, host, database):
self.conn = mysql.connector.connect(user=user, password=password, host=host, database=database)
self.cur = self.conn.cursor()
def myprint(self, s... | [
"zheng-49@mt.com"
] | zheng-49@mt.com |
b933acdeb2309ba593e6d9e9d9d667aff904c210 | 520c5877c4f7e33b66a955bde8eb0b613b99666a | /lyric_generation/embedding.py | 4970fcff859b9802952e2bb645b2b409cfea1c74 | [] | no_license | richardsavery/interactive-hiphop | 53db132369bb354c626d5a28635d1bba857a12d8 | 41bb1b7a7eb2a6bc1eb33a7f4cdf640e4cda7ff1 | refs/heads/master | 2022-02-23T20:30:52.354441 | 2022-02-10T03:58:17 | 2022-02-10T03:58:17 | 206,121,157 | 3 | 2 | null | 2022-02-11T03:00:55 | 2019-09-03T16:21:45 | Python | UTF-8 | Python | false | false | 829 | py | from gensim.test.utils import datapath, get_tmpfile
from gensim.models import KeyedVectors
from gensim.scripts.glove2word2vec import glove2word2vec
import pickle
# GLOVE_FILE = "/Users/brianmodel/Desktop/gatech/VIP/interactive-hiphop/lyric_generation/glove.840B.300d.txt"
WORD2VEC_FILE = "/Users/brianmodel/Desktop/gat... | [
"brian.model@gmail.com"
] | brian.model@gmail.com |
3979ad9eea86bdb41c9f35d9812b87941eb06226 | 5ed4a4dc164791157d089568a6a256372262f6d4 | /7.9.aux_NM.py | 0f4e42b0ac10c712a35ad01de06f2b6434811b62 | [] | no_license | Valkyries12/algoritmos-programacion1 | 72cf6c2146ff8822b1ff8aa8bf6d7c4c677fc55e | 20a5861c85e2841fdba9574c4b08cec6b2200b15 | refs/heads/master | 2020-07-02T08:16:53.670119 | 2019-08-18T01:59:09 | 2019-08-18T01:59:09 | 201,470,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | #Ejercicio 7.9. Escribir una función que reciba como parámetro una cadena de palabras separadas por espacios y devuelva, como resultado, cuántas palabras de más de cinco letras tiene la cadena dada.
def cantidad_mas_de_cinco(cadena):
""" devuelve cuantas palabras tienen mas de 5 letras """
lista = cadena.spli... | [
"nico.caruso1992@outlook.com"
] | nico.caruso1992@outlook.com |
78f31a9c174255d188697506e1941c866f62891c | 8f949493064b77dd3f19ceeed1e86382ace176d6 | /posts/urls.py | 3f113ad6817989d01a71ca2970489a00507bc58f | [] | no_license | sudhanshu-jha/simplesocial | 44a19a1b1051dcc8577de5d87660a5b890b829d1 | 6d40293be75703d5498025150acf9e91bae6f77c | refs/heads/master | 2020-04-17T07:41:54.207867 | 2019-01-18T10:24:14 | 2019-01-18T10:24:14 | 135,698,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from django.conf.urls import url
from . import views
app_name = "posts"
urlpatterns = [
url(r"^$", views.PostList.as_view(), name="all"),
url(r"new/$", views.CreatePost.as_view(), name="create"),
url(r"by/(?P<username>[-\w]+)/$", views.UserPosts.as_view(), name="for_user"),
url(
r"by/(?P<user... | [
"noreply@github.com"
] | noreply@github.com |
d1a50b99473a4235042bb673ae4d5648722d7914 | 720dcd12b8fb7ab26125317a6f3d00c2623e5f13 | /chatbotQuery/__init__.py | fe8fcde48e539b7f3222f7e172a5b2d88236c54b | [
"MIT"
] | permissive | tgquintela/chatbot_query | 78e6f21268e06572009295c271c277ef89f2dcbc | 4c5160992a444f828da019ae57a802467a13c2fa | refs/heads/master | 2021-01-01T18:00:46.261089 | 2017-10-13T18:03:32 | 2017-10-13T18:03:32 | 98,224,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,896 | py |
"""
TODO
----
Decorator for message collections
"""
import copy
class ChatbotMessage(dict):
"""
Compulsary elements
-------------------
- message
- collection
- from [user, bot]
"""
def __init__(self, message):
self.update({'message': '', 'collection': False})
self... | [
"tgq.spm@gmail.com"
] | tgq.spm@gmail.com |
d1193d44c5e75ff605a3a7007ffa13f5294f8fb5 | e6120961ab5a2005e86cf772e56d694878b8cb35 | /Finance/Old_Finance/MyFinance8.py | c3c87e529104e1875500a06c8783c14c4d4e7ac1 | [] | no_license | marcelo-alves87/STN-PythonLearning | a81e1d379dc28fd0334883dc7f930c7aadc6f047 | c2d31c0ae55a302d8cd35636ed02673452536f8e | refs/heads/master | 2023-08-22T09:05:56.313556 | 2023-08-20T21:33:16 | 2023-08-20T21:33:16 | 139,202,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,580 | py | import numpy as np
import pandas as pd
import pandas_datareader.data as web
from collections import Counter
from sklearn import svm, cross_validation, neighbors
from sklearn.ensemble import VotingClassifier, RandomForestClassifier
def process_data_for_labels(ticker):
hm_days = 7
df = pd.read_csv('ibovespa_join... | [
"marceloalves87@gmail.com"
] | marceloalves87@gmail.com |
0f0a43f2a910cb3bd27dccab958083608f47a592 | 0258e0c9595406ceb3de32067aff776bc2a58fa8 | /06_p12.py | a649f413d98bebdcef131856db0da2a3d6949b5d | [] | no_license | akromibn37/python_code | 72c016c361b3ba2e04c83e1d1a703171b0bd8819 | 41d1a09f8ec8696e37ad83c1a0cb6506c7f0f4f6 | refs/heads/master | 2020-03-21T22:57:25.111642 | 2018-06-29T14:14:33 | 2018-06-29T14:14:33 | 139,157,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | data = input().strip()
l = []
for x in range(len(data)):
l.append(data[x])
num = int(input().strip())
out = ""
i = 0
while i<num:
out = ""
command = [e for e in input().split()]
if command[0] == "in":
l.insert(int(command[2]),command[1])
elif command[0] == "out":
l.pop(int(command[1]))
elif comm... | [
"apple@Apples-MacBook-Pro.local"
] | apple@Apples-MacBook-Pro.local |
261b9e2fe87ce74a8028d94c3c61852211f01d39 | 1d482878230a6c6cbef7680f3910561a4b35c35c | /element/scripts/migrations/0021_auto_20180218_0632.py | dacc71e2958595a88be73d43e5bd6e43cab8ed4d | [] | no_license | karthikvasudevan92/elem | ac5355fe029251b7de76428a558049ab949689df | f5dad5cdfaba736843d29c781ec253d2cee51ccd | refs/heads/master | 2021-04-28T03:47:23.643252 | 2018-03-17T13:10:07 | 2018-03-17T13:10:07 | 122,144,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | # Generated by Django 2.0.1 on 2018-02-18 06:32
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('scripts', '0020_auto_20180218_0621'),
]
operations = [
migrations.AlterField(
model_name='scrip... | [
"vasudevankarthik92@gmail.com"
] | vasudevankarthik92@gmail.com |
e8a033aa3f8f48fd75b3f9aca077478771f2bb75 | 01f09bdec77ee7823919824ac25cb1a3610790cb | /d2_Assignment_07_a.py | 8a77cb92183fcedb51f410582e51d30fbffb372e | [] | no_license | SYN2002/PYTHON-LAB | 3da5bda642d7a139ccf39e350750da8d4f5128d0 | dd93fa884415f423988375f2d3b0f058bc253135 | refs/heads/main | 2023-08-27T11:53:53.075132 | 2021-10-17T15:31:00 | 2021-10-17T15:31:00 | 406,604,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | n1=int(input("Enter the lower limit: "))
n2=int(input("Enter the uper limit: "))
i,j,c=1,0,0
print("The prime numbers are: ")
for i in range(n1,n2+1):
c=0
for j in range(1,i+1):
if(i%j==0):
c=c+1
if(c==2):
print(i,end=" ") | [
"khanra.sayan2002@gmail.com"
] | khanra.sayan2002@gmail.com |
46e316c0cc99e56127b71e1ee886f2f946be6258 | 1b6da6feaeeaa3801279781ab8421e7294c5b393 | /python27/py_auto_test/test_cases/utility_mysql.py | f2253b0fd0e97f23add55b6d6364cf3cd8efa204 | [] | no_license | doorhinges0/my_projects | 703bbc92425e6c0604088d546b84be6dca37c0cd | f981ca0bfd79c3a119cd52155028f3f338378690 | refs/heads/master | 2021-01-13T12:00:06.992906 | 2015-12-28T12:00:42 | 2015-12-28T12:00:42 | 48,828,883 | 0 | 1 | null | 2015-12-31T02:24:37 | 2015-12-31T02:24:37 | null | UTF-8 | Python | false | false | 1,354 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import mysql.connector
# 注意把password设为你的root口令:
conn = mysql.connector.connect(user='root', password='trxhfly', database='account_system_db', use_unicode=True)
def get_user(type, id):
if type not in ('uid','acc','phone','email'):
return None
if not id:
... | [
"1817201531@qq.com"
] | 1817201531@qq.com |
d4db6548602d798752d08f491cc5d988c7ab352a | ce46bd76dac66e5ff6cfa6556c9d549af324f48e | /ml-progress-bot/download_media.py | 41ffb527fb8f60c7b463737282c8784264a7a0f9 | [
"MIT"
] | permissive | yell/kaggle-camera | f21b56277c278395496dc78bafbdb41de60439de | 7b471c3631343f6f7fd7adf1a80b2edb46d62f0b | refs/heads/master | 2023-08-26T04:49:11.158767 | 2021-11-05T14:54:58 | 2021-11-05T14:54:58 | 117,623,865 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | from telethon.sync import TelegramClient
api_id = 'TODO'
api_hash = 'TODO'
client = TelegramClient('test_session', api_id, api_hash)
client.start()
print(dir(client))
for message in client.get_messages('ml_progress_bot', limit=10000):
client.download_media(message)
| [
"yell.bondarenko@gmail.com"
] | yell.bondarenko@gmail.com |
67cd9c4d1cbc6de5a7be578e14c812fc18dd3f18 | 2edbe77571e522722a759921cd45cf6ff540e87d | /quene/marketmodel.py | da9893a00121afcdaeb56f737460e67203feb162 | [] | no_license | nasty11pig/pyStudy | 5253da4334c3e51bff938d1343a85ff76cd1c0d6 | da33c6c59bc84689c4aae8771be4ad36671ab5bf | refs/heads/master | 2020-03-17T01:08:35.501268 | 2018-05-26T15:51:38 | 2018-05-26T15:51:38 | 133,141,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | # -*- coding: utf-8 -*-
class MarketModel():
def __init__(self, lengthofSimulation, averageTimePerCus,
probabilityofNewArrival):
self._probabilityofNewArrival = probabilityofNewArrival
self._averageTimeperCus = averageTimePerCus
self._lenthofSimulation = lengthofSim... | [
"50954250@qq.com"
] | 50954250@qq.com |
2d85e566ab46559127ff094934cff6b9e3b4a756 | e72db255e41332c113f929eb63815b2169038209 | /Chapter08/audio-encode-server-4/audio_encode_server/s3.py | 8585e1faf5d52e430754cde9e22635bf0eee6396 | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Reactive-Programming-with-Python | b196b971fe49a36da9f979790b8c31c98a659031 | 757d45e2023032c6074e26ad252530f3c89978bf | refs/heads/master | 2023-02-07T01:03:37.648175 | 2023-02-05T18:21:17 | 2023-02-05T18:21:38 | 128,761,473 | 75 | 19 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | import asyncio
from collections import namedtuple
from io import BytesIO
import reactivex as rx
import boto3
from boto3.session import Session
from cyclotron import Component
Source = namedtuple('Source', ['response'])
Sink = namedtuple('Sink', ['request'])
# Sink objects
Configure = namedtuple('Configure', [
'a... | [
"romain.picard@oakbits.com"
] | romain.picard@oakbits.com |
de47d3adc3f532d09cc14eab66da496c3a9dfa6a | 5f82cd4c97e3bc950799f3d2feedd8e5f800dc4c | /FNN.py | 7e0a73075675825258d17f22f9d8062db01426e9 | [] | no_license | Zhetuo-Zhao/deepLearning_template | 77f0b79d229999f009de61fe43c5d80a85ce7743 | c477a4eccb24cd833e2cbdd9840923f5d3f6ebb1 | refs/heads/master | 2022-12-19T05:19:28.724019 | 2020-09-16T06:11:17 | 2020-09-16T06:11:17 | 295,637,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,401 | py | # %%
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist=input_data.read_data_sets("/tmp/data/", one_hot=True)
n_nodes_hl1=500
n_nodes_hl2=500
n_nodes_hl3=500
n_classes=10
batch_size=100
x=tf.placeholder('float',[None, 784])
y=tf.placeholder('float')
def neural_network_model(d... | [
"zzhaoaa@gmail.com"
] | zzhaoaa@gmail.com |
a70ed864f8709eca7cb6f56bd0f9445ad1b82d1b | b828fc06f40d1754dc5d6ab87b7360b97dff2938 | /intrinio_sdk/models/zacks_long_term_growth_rate.py | 38b6c21e356c2fd74ea5df4aca5ee4409d3c9166 | [] | no_license | dhruvsagar/python-sdk | 90302f3727022b9bc2dea83c7df2268bac180281 | 792f8b47a5d3238a92f62b40d164639850d9c4cb | refs/heads/master | 2022-06-04T20:38:51.263726 | 2020-05-05T20:24:29 | 2020-05-05T20:24:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57,035 | py | # coding: utf-8
"""
Intrinio API
Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ... | [
"mvonlintel@hotmail.com"
] | mvonlintel@hotmail.com |
f354b13480738cfc382c8ee67d5d250310c01f13 | eebeeb2c31dc90b21878196502efec9086b87c46 | /07/vmparser.py | b63709acbddb5f5c3126b6dab11a6926fae4627c | [] | no_license | festa78/nand2tetris | 6f07673d69277125331f7536f18214dce64d8008 | 815f887c584d3de91591abe44123ee5c3b006575 | refs/heads/master | 2023-03-06T00:46:01.412600 | 2021-02-07T12:35:33 | 2021-02-22T08:53:08 | 328,305,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,696 | py | class Parser:
COMMAND_TYPES = (
'C_ARITHMETIC',
'C_PUSH',
'C_POP',
'C_LABEL',
'C_GOTO',
'C_IF',
'C_FUNCTION',
'C_RETURN',
'C_CALL',
)
COMMAND_TO_TYPES = {
'and': COMMAND_TYPES[0],
'or': COMMAND_TYPES[0],
'not': ... | [
"nonamehorses78@gmail.com"
] | nonamehorses78@gmail.com |
c82b677441afb16074f0386638f5da0f86f9303e | 56a8d1f72b005bd52560c3804541be729876aa9f | /rotation.py | 2f05ebde4daf3525b7c39a173e8cbb402cf3dc59 | [] | no_license | drrobotk/pycodilitytests | e5e13c9dd683207290e598e577d73555c0ef29ed | acb5a8ad52135fa327fb97d7c42f95ae23cb3389 | refs/heads/master | 2021-04-14T03:16:33.397722 | 2020-03-22T15:23:57 | 2020-03-22T15:23:57 | 249,203,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(A, K):
k = 0
# write your code in Python 3.6
if len(A) != 0:
for i in range(K):
k = A[len(A)-1]
A.pop()
A.insert(0,k)
return A
if __... | [
"noreply@github.com"
] | noreply@github.com |
835fa05e3acbfa8beb25f0ef8b975295d4668c90 | 20002b0c41f0ff67553ea7ffb6568975792d8c95 | /main.py | 37a235d422efc3a4b23733caa5426aac6eee1393 | [] | no_license | hugos0910/Data_Science_London | be18667fd0121ba0b2549f02263fcad6d2a54448 | 74dcdd7d2504f0ba9be9b58acb01d2e305827b12 | refs/heads/master | 2021-01-18T06:00:53.529998 | 2016-09-21T17:17:48 | 2016-09-21T17:17:48 | 68,791,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py |
import numpy as np
import pandas as pd
import util
from sklearn.neighbors import KNeighborsClassifier
from sklearn.decomposition import PCA
from sklearn.svm import SVC
# Import data
print('Importing data...')
train = pd.read_csv('train.csv', header = None)
test = pd.read_csv('test.csv', header = None)
label = pd.read... | [
"hugochiang0990@gmail.com"
] | hugochiang0990@gmail.com |
a3832070b1ec7002d6f2dd0a9f5bd280d29a3962 | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/tensorflow/python/keras/layers/cudnn_recurrent 2.py | 96ae66c775e623fff4738688d4f11005c5261b33 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:52c49577848819c4116b99c29c11e765e7a2d686e7ccb4dc7b84454bdf31510f
size 20854
| [
"business030301@gmail.com"
] | business030301@gmail.com |
de220ce4ab36c212e05c19db10caeba92cbbe9e1 | 9f0d913822de7ebb86d9a2634e3b99d452db83ee | /py/folder2zip.py | 83bec69e42cb6e9818dbedca25d2eeee81ab084e | [] | no_license | esabox/code-desu | 3029e71d031a26c4da7687a394e4f497e09acabf | 63b3756035163cc3f480a0e87127eed93b090dfb | refs/heads/master | 2023-03-30T09:02:55.631388 | 2021-04-09T04:58:04 | 2021-04-09T04:58:04 | 222,210,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,994 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# フォルダの中のフォルダを無圧縮zip化
import os
import glob
import re
import sys
import shutil
gomibako = '/Users/kazoku/.Trash/'
def main():
print(sys.version)
print(sys.argv)
work_dir = '/Users/kazoku/Desktop/book/'
# workdirの引数があれば
if 1 < len(sys.argv):
... | [
"esabox@live.jp"
] | esabox@live.jp |
e6417d749e8b17495ea9739ff8246df8c4a1a1eb | f5fe67aada0fca0ebc71d605e4a2dd3d60695a25 | /Evelyns Dateien/Grundpraktikum 2/US3/profil_streu_34.py | 2ee8df1f9cba6afa10dd8360dd49b71308ac5b84 | [] | no_license | rkallo/APWS1718 | 25eb10a88783434c81ebf1902936ceb6fc06ab0d | 5e124d5342ef2fd333311ddb4d323744323b68b8 | refs/heads/master | 2021-08-28T06:45:08.518688 | 2019-11-21T18:05:29 | 2019-11-21T18:05:29 | 223,233,392 | 2 | 1 | null | 2021-08-22T19:20:50 | 2019-11-21T17:59:30 | TeX | UTF-8 | Python | false | false | 479 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
from pylab import figure, axes, pie, title, show
from fractions import *
x, y = np.loadtxt('streu_34.txt', unpack=True,delimiter=',')
plt.figure(1)
plt.plot(x, y,'rx', label='Messdaten')
plt.ylabel(... | [
"ramonagabriela.kallo@tu-dortmund.de"
] | ramonagabriela.kallo@tu-dortmund.de |
ab7427ee9ab9e98e843967f814b678f41e26f819 | a0406e59552037a3277d51eb9994565d3f557d7f | /book_lib/presentation/resource/book.py | c60de1f3f7e52df92f27bfa9d0b5430f5ae8b497 | [] | no_license | eezhal92/flask-sqlalchemy | 84bbf18fc041a2339842d56a7924a10f0332b975 | 7092651a5b5b73f1366c1c2473aab9b1c4eedea5 | refs/heads/master | 2021-07-12T10:10:54.572392 | 2017-10-17T11:47:39 | 2017-10-17T11:47:39 | 106,980,363 | 0 | 1 | null | 2017-10-17T11:47:40 | 2017-10-15T03:19:24 | Python | UTF-8 | Python | false | false | 454 | py | """Books Controller."""
from flask import jsonify
from flask_restful import Resource
from book_lib.infrastructure.repository.book import BookRepository
class Book(Resource):
"""."""
def __init__(self, **kwargs):
"""."""
self.db = kwargs['db']
self.book_repo = BookRepository(self.db)
... | [
"arkinthesky.69@gmail.com"
] | arkinthesky.69@gmail.com |
2d5543f03917a6065eba621b789a7e27e75d8cf2 | 21c1da4a354037f8aed1fb323d64295f1d40d0c6 | /additive-number/solution.py | 3f0c8e98f8f5ab4e12f51b90f3a53185f8d49432 | [] | no_license | hsinhoyeh/leecode | b0de2334a1bcd9277335fba4ae7e3519775da8f9 | 7760d44f7a9038f48e12eabb6d5bafd182a0a8f6 | refs/heads/master | 2021-01-10T10:11:40.259319 | 2017-08-11T01:31:22 | 2017-08-11T01:31:22 | 45,776,150 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | import math
class NextNum(object):
def __init__(self, num, start_index, max_len=None):
self.num = num
self.start_index = start_index
self.end_index = start_index
self.max_len = max_len
self.last_val = None
def next(self, nlen=1): # default, lookup the number with len=1
... | [
"yhh92u@gmail.com"
] | yhh92u@gmail.com |
58529c5f530f1fe4e00a6432565eb83f72ad4840 | f9c3c75718f5cfb3827658f8cedaa1fb8e289011 | /BujaMovies/migrations/0018_auto_20190903_2229.py | 77723265ca8edf07a4838817bed39093d340faac | [] | no_license | twizy/BullyHoodyGit | 7559c70269cd3b0abafb662a56fa33d95df9d6ff | 1a75617954428c70c82cf355f5aab0cb822ebc7a | refs/heads/master | 2020-07-12T21:25:29.609503 | 2019-09-03T21:50:57 | 2019-09-03T21:50:57 | 204,909,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # Generated by Django 2.2.3 on 2019-09-03 20:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('BujaMovies', '0017_auto_20190903_2118'),
]
operations = [
migrations.AddField(
model_name='films',
name='film',
... | [
"twizalain@gmail.com"
] | twizalain@gmail.com |
be7ba6113a8c980e9031c22cdb4c40498940dcc3 | c6bded1f43beb191c9c5fd7a96edc6f6bc366781 | /src/crawl_CF.py | d56d19a0593dac3dfdc11e4f72b330cb8d5b56d0 | [] | no_license | Renjerhady/EloR | 13d7a432504367755cda2200d08fd209fe7504a8 | 51edfaa260b491a7310815bbf961a3a099becbe7 | refs/heads/master | 2022-02-23T15:59:27.078638 | 2019-10-21T06:43:36 | 2019-10-21T06:44:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,830 | py | from bs4 import BeautifulSoup
import requests
import itertools
def get_soup(url):
headers = {
"User-Agent": "Pied Piper (www.arameb.com)",
"From": "Aram Ebtekar"
}
response = requests.get(url, headers=headers)
soup = BeautifulSoup(response.content, "html5lib")
return soup
def ... | [
"aramebtech@gmail.com"
] | aramebtech@gmail.com |
a39cbb706ac3420712b45eb050eae01efddba13e | 1e3f458b297b349eb875aebab254e05cdad2458e | /guessno.py | 6d6b1cee5d25c4ad5b2e5dd171bb21ffbf8c8694 | [] | no_license | mezeru/Python_Coding | 899169e162d01a2a1f6f043e45f3b07dc68e1001 | 99941431025b5c35731903dabb6c9e6106f59fcc | refs/heads/master | 2023-07-04T11:51:28.174018 | 2021-08-06T20:05:58 | 2021-08-06T20:05:58 | 255,226,334 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import random
def rnum():
return (random.randint(0,10))
fnum=rnum()
cou = 0
while True:
print("Guesses the no :")
cou=cou+1
G=int(input())
if fnum == G :
print("You guessed right in " + str(cou)+" Guess")
break
elif fnum > G:
print("You guessed... | [
"noreply@github.com"
] | noreply@github.com |
088293b7dea6a8f0f04a083b5246bc45e276a471 | c584fd0c13d2f396aaf940e9d4e774f01ce5e2ce | /apps/users/apps.py | 5838b89ccd4979ad020b44afbd2652bfef00306a | [] | no_license | wxrapha/RoadBicycle | ee07601458b5af72b1a853b2c4c969d6cdf81ae8 | 0f990267a47b738e97880c999ed3bc054c2889c7 | refs/heads/master | 2021-07-10T13:30:25.484884 | 2017-10-10T23:52:14 | 2017-10-10T23:52:20 | 103,798,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.apps import AppConfig
class UsersConfig(AppConfig):
name = 'apps.users'
verbose_name = u'用户信息'
| [
"xiehao@xiehaodeMacBook-Pro.local"
] | xiehao@xiehaodeMacBook-Pro.local |
c261e60b78e10d19087b88625ff766401bcafd78 | 0bcd538401c0f7ffa61047c44ca5f497afc56f82 | /datasets/flowers.py | ed865e8b5d968ed02fc87f1c1cd0d06a01e91ad0 | [
"Apache-2.0"
] | permissive | Ningchen-Wang/DCGAN | fae14ae1bb6147caf600396d1689cc3877dacb37 | 4ba9fd4cdb89c809e90511427f85e88a589671be | refs/heads/master | 2021-08-10T11:09:44.577277 | 2017-11-12T13:36:22 | 2017-11-12T13:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,267 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | [
"wnctsinghua@163.com"
] | wnctsinghua@163.com |
bded7a0abc4bf1dc4955561f7e0715bcba19006f | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /codeforces/cf326-350/cf334/b.py | 3d79209e1a77d7ad5f7c126cf1c70b802e0ece89 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,258 | py | # -*- coding: utf-8 -*-
import sys,copy,math,heapq,itertools as it,fractions,re,bisect,collections as coll
mod = 10**9 + 7
class UnionFind:
def __init__(self, size):
self.rank = [0] * size
self.par = range(size)
self.g_num = size
def find(self, x):
if x == self.par[x]: return ... | [
"roiti46@gmail.com"
] | roiti46@gmail.com |
cd65aa3b646cd5e825a104e8767b2dbe1068af20 | b741252e3677dd2e981d452a14b41b182ebac18b | /hexomap/virtualdiffractor.py | eaab8a5029aa9b9ea1c36e5495136a499c652b89 | [
"BSD-3-Clause"
] | permissive | KedoKudo/HEXOMAP | 01960559c2c88fc37962f966ed43b13b169bc90f | 81f1c200fe5a3ad035adf22e941e08588192d513 | refs/heads/master | 2020-04-29T05:41:27.724239 | 2019-08-26T19:06:24 | 2019-08-26T19:06:24 | 175,891,640 | 0 | 0 | null | 2019-03-15T21:10:54 | 2019-03-15T21:10:53 | null | UTF-8 | Python | false | false | 7,181 | py | #!/usr/bin/env python
"""
Module of components for virtual diffraction.
"""
import os
import yaml
import numpy as np
from dataclasses import dataclass
from itertools import product
from hexomap.orientation import Frame
from hexomap.npmath import norm
from hexomap.utility import iszero
# --... | [
"zdms1987@hotmail.com"
] | zdms1987@hotmail.com |
889f0a628633729df0d4a4bc22d12bf0d72f43b7 | 548e34ebef0904ad21efa3fd53a10b6af1011152 | /uva/10180 - geom/gen_data.py | 8b3c2f71c5cacf2a069b847041645d4e8e623ae2 | [] | no_license | eric7237cire/CodeJam | 1646f43ec34b87edf8029b839b01fb0d667758ce | ca9dd1ddad5c42a02731c3c7c8e4342bd5c9ee9d | refs/heads/master | 2021-06-08T17:47:53.204535 | 2018-01-01T15:34:29 | 2018-01-01T15:34:29 | 1,331,950 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | import sys
import random
import math
random.seed()
T = 30000
MAX = .1
print( str(T) )
for t in range(T):
r = random.random() * MAX
p = 0
list = []
while len(list) < 4:
x = -MAX + random.random() * MAX * 2
y = -MAX + random.random() * MAX * 2
if math.hypot(x, y) <= r + .00001:
continue
list.a... | [
"eric7237cire@gmail.com"
] | eric7237cire@gmail.com |
098998f8d95c610204722f8f0990286191492db1 | e9a0efee2089b1c3bf843633c7b226638bc09e0d | /DataStructures and Algorithms/Ammortization onArrays/CaesarCipher.py | 5bb577ea9668f61442f19fefda679a1816f4a8c4 | [
"MIT"
] | permissive | abhishekratnam/Datastructuresandalgorithmsinpython | 41226cf41d288e24dbe9cd9643650151cb2a1037 | 9339319f441755797f4d2818ac9cf742a63ab5ea | refs/heads/master | 2020-04-15T03:16:24.337787 | 2019-02-01T23:47:52 | 2019-02-01T23:47:52 | 164,342,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | class CaesarCipher:
"""Class for doing encryption and decryption using a Caesar Cipher."""
def __init__(self,shift):
"""Construct Caesar Cipher using given integer shift for rotation."""
encoder = [None] * 26
decoder = [None] * 26
for k in range(26):
enco... | [
"noreply@github.com"
] | noreply@github.com |
79445dc9be69e70168bbf832fc269c16f8377373 | c5859d1bdf44c8452563f856dc4191b74e85ce21 | /custom_components/image_processing/tagbox.py | 163ce385bf2c8182fd5f439a3f58b3d206199a0e | [] | no_license | balloob/homeassistant-config | 46774ea88ced4414e48e4f1f40af63ff67b6f990 | 9f341e4b695db56f3c4af7299a336d5a0f60cdcf | refs/heads/master | 2020-03-21T03:10:31.729526 | 2018-06-18T18:27:54 | 2018-06-18T18:27:54 | 138,039,924 | 11 | 0 | null | 2018-06-20T13:56:12 | 2018-06-20T13:56:12 | null | UTF-8 | Python | false | false | 4,157 | py | """
Component that will search images for tagged objects via a local
machinebox instance.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/image_processing.tagbox
"""
import base64
import requests
import logging
import time
import voluptuous as vol
from h... | [
"arsaboo@gmx.com"
] | arsaboo@gmx.com |
6e40ec6f6b3b14aa33b9e1e5a07f218ba7ee36e0 | 00d2f3fde2c3d9e03a1babc958e35285d5798352 | /removedependent.py | 626bf7416873208dd75191cd10f065def3a4c318 | [] | no_license | N-S-Krishnan/Database-GUI-Elmasri-and-Navathe- | 14043e90c2e25e6c5ab080cc5efe985731479b93 | f8a60edad75505ad0587f3a3562cfc14cc0d018f | refs/heads/main | 2023-04-22T07:34:54.141788 | 2021-04-26T01:07:05 | 2021-04-26T01:07:05 | 361,572,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,474 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'removedependent.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 i... | [
"noreply@github.com"
] | noreply@github.com |
f4d0fbd3015939c5f1fbedeb7e90834ae6473193 | b02a2c1e8cf778f8f810897c478abcec720b7220 | /ds_algos_primer/python/arrays_and_strings_solutions.py | a70325060b6be3c328ac7c8980a14ffffa4407b0 | [] | no_license | naraekwon/CodingInterviewMastery | d8596a4decb52086ea2eefa32ebccd4a25c6181a | c14ceaa19649269467160a5bf53e4a3d927e97a5 | refs/heads/main | 2023-09-05T16:28:25.253482 | 2021-11-04T18:56:19 | 2021-11-04T18:56:19 | 428,470,905 | 0 | 0 | null | 2022-02-13T19:54:09 | 2021-11-16T00:58:46 | null | UTF-8 | Python | false | false | 15,724 | py | """
Title: Arrays and Strings Solutions
This file contains the solutions for the Arrays and Strings exercises in
the DS & Algos Primer. If you have not already attempted these exercises,
we highly recommend you complete them before reviewing the solutions here.
Execution: python arrays_and_strings_solutions.py
*** ... | [
"sam@byte-by-byte.com"
] | sam@byte-by-byte.com |
92f03d5304cd9df07112f72bed3d35156851705e | f80f7529a68c168fd19dda179ad5ea762a7faa90 | /alembic/versions/ec62bcefe99d_create_categories_table.py | 6205d6232105826d204aa36c96074971f3eba8f4 | [
"MIT"
] | permissive | luisignaciocc/python-books-scraper | 76b9509444ca52af65411ca821ea9ffd8ff23a03 | a8dba19c1fd49a746711235219eb528a9743d108 | refs/heads/master | 2023-05-06T07:07:03.641242 | 2021-05-26T13:49:19 | 2021-05-26T13:49:19 | 349,744,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | """Create categories table
Revision ID: ec62bcefe99d
Revises:
Create Date: 2021-03-28 14:19:59.387880
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'ec62bcefe99d'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands... | [
"luis.cabezas@aukko.cl"
] | luis.cabezas@aukko.cl |
9f173ba385b704082ea7dd42c3c5fcdda3c25bb0 | 8e6c4def374ba21c934f6856c0333a1e8bff69db | /190415/randomTest2.py | 059ba08f9ea23984706e9c2cf9d8f94c9a6c3e4f | [] | no_license | inuse918/Python_Practice_2 | d5a930a95b51181330abc6601d80f71b67780740 | de4dd6ec8d96e9d259566916b9e7f08402e7917d | refs/heads/master | 2020-05-06T13:20:08.153295 | 2019-12-25T23:07:47 | 2019-12-25T23:07:47 | 180,128,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | import random
time=random.randint(1,24)
sunny=random.choice([True,False])
print("지금 시각은 ",str(time),"시 입니다.")
#if (sunny==True)and((time>=6)and(time<=9)):
# print("현재 날씨는 화창합니다.")
if sunny:
print ("현재 날씨는 화창합니다.")
else :
print("현재 날씨는 화창하지 않습니다.")
# 종달새가 노래를 할 것인지를 판단해보자
if time>=6 and time<9 and sunny:
... | [
"s2018s34@e-mirim.hs.kr"
] | s2018s34@e-mirim.hs.kr |
69ef378642a90c904e60bcd86fa6932e967ed311 | 032117bbf248a76abd25fcc2355bc8ade84fa76a | /inheritance_4.py | b62203cddf2bf1a42b3576a58752aaab34cfb71a | [] | no_license | shefaligoel136/python_summer_training | ba8f28f6af008584b4239c73d466e4e9d35b4b01 | 0b97fea050342fe4ed95b18c5f7ed885a6c8ca23 | refs/heads/master | 2022-11-13T07:22:32.855717 | 2020-07-06T08:33:19 | 2020-07-06T08:33:19 | 277,480,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # using super
class a:
def __init__(self):
print("initof A")
def feature1(self):
print("feature 1 is working")
def feature2(self):
print("feature 2 is working")
class b(a):
def __init__(self):
super().__init__()
print("initof B")
def feature3(self):
print("feature 3 is working")
def fea... | [
"goel136shefali@gmail.com"
] | goel136shefali@gmail.com |
5c0d30018cbe2c3ef11519938d2dcc3bbcfa328b | 267ab87884d6c74f8d676c1b6cfebf7e217e2ea7 | /index/views.py | 79a1320fcddf6b714ccc0465ccd2299e1bfd4d22 | [] | no_license | Emehinola/charlotte | 0d564181de1f5419a67c06e7dba5cd81796cb1aa | c3175757f5ce7d3ceab272dad9a866c4bea4bd1d | refs/heads/master | 2023-04-23T00:38:18.965089 | 2021-04-30T19:34:17 | 2021-04-30T19:34:17 | 363,119,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | from django.shortcuts import render
from django.views import generic
from blog.models import Article, categories
# Create your views here.
class Home(generic.ListView):
model = Article
paginate_by = 30
template_name = 'index/home.html'
def get_context_data(self, **kwargs):
context = {
... | [
"emehinolasam01@gmail.com"
] | emehinolasam01@gmail.com |
4f763a66d6c6077358c6dadee57b52bddcadf918 | 2a9572e6f1cfb329a12d6835071483ec89ec6538 | /flask_test/flask_blog.py | 1ceec00beaf74f9b274f237f1860dfff21615f7f | [] | no_license | Cezar04/petproject | c8a4c810a8b05d0645dc36601539034dc35be6b5 | 9093d2435f779235db5f9e79417395e4dd13e8b0 | refs/heads/master | 2022-11-13T11:12:29.785362 | 2020-07-03T11:14:25 | 2020-07-03T11:14:25 | 276,875,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | from flask import Flask, render_template, url_for, flash, redirect, request
from forms import registration_form, login_form, post_form
import data_manager
app = Flask(__name__)
app.config['SECRET_KEY'] = 'haker'
posts = [
{"author":"Gigel",
"title": "blog post 1",
"content":"First post content",
"... | [
"noreply@github.com"
] | noreply@github.com |
2c003bc352ae9a2de24edeacf73478e603742dce | d27e62cb69beddbb52c63be4a7a1f54cf258ba67 | /services/users/project/api/models.py | 548b3d7c296c65573824fe23d1bb24b316ab824c | [] | no_license | gavinest/testdriven-app | 7f7f04278f148e42d30fa3b33b84c63bde0888ed | 44d83fc087e2adedeba48adbe739875d427a1de2 | refs/heads/master | 2020-03-29T18:17:21.734301 | 2018-10-24T12:59:35 | 2018-10-24T12:59:35 | 140,979,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | import datetime
from flask import current_app
from sqlalchemy.sql import func
import jwt
from project import db, bcrypt
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
username = db.Column(db.String(128), unique=True, nullable=False)
e... | [
"gav.estenssoro@gmail.com"
] | gav.estenssoro@gmail.com |
de3fe45a87e82c646b0708bb94ef18a5f539f842 | 4d675034878c4b6510e1b45b856cc0a71af7f886 | /mmdet/models/seg_heads/panoptic_fusion_heads/heuristic_fusion_head.py | 06c1de2b9010fef13bd2322bbd3352d82a1f3e2f | [
"Apache-2.0",
"BSD-2-Clause-Views",
"MIT",
"BSD-2-Clause"
] | permissive | shinya7y/UniverseNet | 101ebc2ad8f15482ee45ea8d6561aa338a0fa49e | 3652b18c7ce68122dae7a32670624727d50e0914 | refs/heads/master | 2023-07-22T08:25:42.646911 | 2023-07-08T18:09:34 | 2023-07-08T18:09:34 | 263,555,721 | 407 | 58 | Apache-2.0 | 2023-01-27T01:13:31 | 2020-05-13T07:23:43 | Python | UTF-8 | Python | false | false | 4,482 | py | # Copyright (c) OpenMMLab. All rights reserved.
import torch
from mmdet.core.evaluation.panoptic_utils import INSTANCE_OFFSET
from mmdet.models.builder import HEADS
from .base_panoptic_fusion_head import BasePanopticFusionHead
@HEADS.register_module()
class HeuristicFusionHead(BasePanopticFusionHead):
"""Fusion ... | [
"noreply@github.com"
] | noreply@github.com |
170eb1cf38678e8baf10258b548535244e7f2996 | 12df1e58fe493c4a929e6d54a938f9b357964701 | /Day-5 Closest Value in BST.py | 68d748a07e7b9618aa7fce5bd8d1b7190170c74e | [] | no_license | Anshul-Dagar/100-Day-Coding-Challenge | 132dadc50b572428c7e33ceda329770d8766965a | 33f10cc6357d4ca3fa8a16cc954f6559f39e73bb | refs/heads/main | 2023-02-12T04:04:12.389433 | 2021-01-09T13:56:36 | 2021-01-09T13:56:36 | 326,140,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 6 19:30:49 2021
@author: ironman
"""
class BST:
def __init__(self,value):
self.value=value
self.left=None
self.right=None
def insert(self,value):
currentnode=self
while True:
if ... | [
"noreply@github.com"
] | noreply@github.com |
d2e145a737723d90d40cb49ba1513f4ce09da229 | d0fcc2198f1caf5633c4fc0d004ba68714396f1b | /bc4py/utils.py | d1c4a85cb4d9f0df6c85fb081bee3a4001b51119 | [
"MIT"
] | permissive | webclinic017/bc4py | 4bfce04b666c2aaadda4b7ecc2a8270839231850 | 620b7d855ec957b3e2b4021cf8069d9dd128587a | refs/heads/master | 2022-12-09T22:23:49.842255 | 2019-06-21T14:24:17 | 2019-06-21T14:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,100 | py | from bc4py.config import C, V
from bc4py.gittool import get_current_branch
from bc4py.chain.utils import GompertzCurve
from Cryptodome.Cipher import AES
from Cryptodome import Random
from Cryptodome.Hash import SHA256
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter
from logging import getLogger, DEBU... | [
"thhjuu@yahoo.co.jp"
] | thhjuu@yahoo.co.jp |
9c435a42cdc60fb08b9624fc926efccf8f66c4b1 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-alloydb/google/cloud/alloydb_v1/services/alloy_db_admin/transports/grpc_asyncio.py | 1472c7e2d2d253937db5f0bc67d4dde86f67efb8 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 50,442 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | noreply@github.com |
98952fb10cb1ca024f54f5d5c0ed1a7a188ee2fe | e70d8a72a793943418943cbb9ac9466338a62e68 | /env/bin/jupyter | 9d2f3a6e4c45876082d250a3642c0b2d736606e3 | [] | no_license | smwitkowski/HHH-Roles | 8209d690eaa5879224dd36d3aa784f6ee9ead866 | b7d6fcb3896ed72b897feae1ee94ccf258f0b897 | refs/heads/master | 2022-10-28T05:21:48.790671 | 2019-06-01T23:58:42 | 2019-06-01T23:58:42 | 189,666,309 | 0 | 1 | null | 2022-10-22T08:38:30 | 2019-05-31T22:39:22 | Jupyter Notebook | UTF-8 | Python | false | false | 281 | #!/Users/user/Documents/Projects/python-virtual-environments/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from jupyter_core.command import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"user@users-MBP.lan1"
] | user@users-MBP.lan1 | |
56141ab1f36a5991fdb4b13da10601235ea38066 | 24298abd2af582ed31fb38ec4c68d36dd7bf8598 | /estimate.py | a7dd4761aa713e8099d3c5270771902e5535e903 | [] | no_license | csvetnicka/csvetnicka.github.io | a130c3f8098c0621f547abe84e8cce0a305874b7 | 32703c0955779928b8d728c7973d30d5340081c3 | refs/heads/master | 2020-06-13T20:22:37.320479 | 2016-12-04T20:39:16 | 2016-12-04T20:39:16 | 75,556,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | print(300 * 40 * 30 * 4 * 'a')
| [
"ksandera@umich.edu"
] | ksandera@umich.edu |
d7df952db203ae0eae7c815bea836cbbaa26d296 | 08f2419edcbd1464ba4496e8cc40589e19401b90 | /kfk/main.py | ec8315f2900073a3ca6ac54e32d467814b17f13e | [
"Apache-2.0"
] | permissive | alainlompo/strimzi-kafka-cli | 6bcbff4925b6673299261e0d2a526c57823bca32 | f4ed19b849fdd9b59274eab96fc29fab3aa38e0f | refs/heads/master | 2023-09-02T22:05:47.765551 | 2021-11-15T07:42:28 | 2021-11-15T07:42:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | from kfk.commands.main import kfk
from kfk.commands.clusters import clusters
from kfk.commands.topics import topics
from kfk.commands.users import users
from kfk.commands.console import console_consumer, console_producer
from kfk.commands.configs import configs
from kfk.commands.acls import acls
from kfk.commands.opera... | [
"mabulgu@gmail.com"
] | mabulgu@gmail.com |
f94ebff30078394b605fc47632cbcc1df7200fb5 | 971fd54845868a4db46ae7e5802c0f584acf0242 | /mining/test/learning/Spotify.py | 80e393af2bfa32385ffe23ece95b941c81a02a6d | [] | no_license | monkeyboiii/eastmoney | 017f2e2a9c42865930ca44748660b0dee2f251e4 | dde99651be2135022fa41cf0871c923bbaf5b8ee | refs/heads/master | 2022-04-22T19:45:35.719068 | 2020-04-13T01:35:26 | 2020-04-13T01:35:26 | 255,081,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import requests
url = "https://api.spotify.com/v1/search?q=Trap&type=track&market=US"
payload = {}
headers = {
'Authorization': 'Bearer '
'BQC6cJmlEkhTe5U53eGHOdYwQOLTNq8_PgHATFWVD9O9pz-eH9peX17hQ7R_6n0XK8RKy2UzCeNv8ikM9cZtE0pbJnXm_HOP-kdZk1b1FYQGmOhArgfN5VEUt6taQnNrEJtdvp85kRWdJEa1M7QJ3pY0i... | [
"1283045105@qq.com"
] | 1283045105@qq.com |
3dbad78ba483ba4a076743f3dc60241739f36cc7 | dbf556a2085c45498f23d15a719b1a96b840ef8d | /Simple/LinkedListCycle.py | d8a483b4213f98ce897b4b124fba93cad96f2a4f | [] | no_license | FrancisFan98/Leetcode- | 43cf46d88d8927848bf47a0a11aabdc1f9d8f628 | a9b7e1e890417ae7352cc98bccddee27ce657b0f | refs/heads/master | 2021-07-12T17:55:22.119661 | 2020-05-27T02:17:29 | 2020-05-27T02:17:29 | 142,628,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def hasCycle(self, head):
"""
:type head: ListNode
:rtype: bool
"""
cur = head
if head == None or hea... | [
"1125180016@qq.com"
] | 1125180016@qq.com |
6ddb8e3c2e4fe29b69b14ca4ef76e926ce5243b2 | fd9dd0b4aea0f55e2b35529462bf5fa7bd4f9d33 | /test.py | 85cc06087dbb4615d77c4fd7382cdab9d535dd14 | [] | no_license | mraines4/Python_wk1 | 833a48f6576cb2130c02516c69a537a1a4e0f158 | 88bb07b706a67254d795e616412b2baf70217e6c | refs/heads/master | 2020-04-23T16:05:43.731860 | 2019-02-19T20:28:39 | 2019-02-19T20:28:39 | 171,286,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | user = input('type number ')
if user.isdigit():
print('yes')
else:
print('no') | [
"mraines4@DC-MacBook-Air.T-mobile.com"
] | mraines4@DC-MacBook-Air.T-mobile.com |
4bb323f332c4b4171eb8fc81e644fc306a720eff | e9bfbb32f8e682afae8505fb45e32571ad866080 | /Drills/Drill-05/move_character_with_mouse.py | 49a36e0695819c4f5386fd35730a7181f5c93e2f | [] | no_license | msbk427/2014182020-2DGP | 4f0834bcb2320b56bff1e1eec8d2f24baa40a555 | 90bcaf0027d73d4c819d0d2399ac664f70081541 | refs/heads/master | 2020-08-05T23:00:51.053010 | 2019-12-02T03:18:38 | 2019-12-02T03:18:38 | 212,746,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | from pico2d import *
KPU_WIDTH, KPU_HEIGHT = 1280, 1024
def handle_events():
global running
global x, y
global cx, cy
events = get_events()
for event in events:
if event.type == SDL_QUIT:
running = False
elif event.type == SDL_MOUSEMOTION:
x, y = event.x, K... | [
"msbk427@naver.com"
] | msbk427@naver.com |
1ba209054c0782d87286628966586b58f76b2eec | 15855ce729e78fa0628d0e5a774b7fcaff7acc85 | /pythonProject/Dictionary (Key value pair collections)/DictionaryDemo3.py | ec0c92f9d429a3b35decc30530fd050e28c1a186 | [] | no_license | nikhil-shukla/GitDemo | d8c63aec6978aed251c0a4df3c5b4aacef702735 | f060716815f9ba1025ce8fc525dd10e9ddc0b2dc | refs/heads/master | 2023-07-08T22:48:26.439978 | 2021-08-16T13:25:18 | 2021-08-16T13:25:18 | 396,787,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | #Syntax 2 - using dictonary constructor
emp=dict(QA="nikhil",Dev="ak",qa="python",Qa="cpyhton")
print(emp)
#Syntax 3 - using dictonary constructor and passing values as tuples
newemp=dict([(1,"Python"),(2,"Java"),(3,"JS")])
print(newemp) | [
"nikhilshukla912@gmail.com"
] | nikhilshukla912@gmail.com |
9f6f269323eea9a6b3519445a652ffba91b0c580 | ea79bd5a2d2a15f1d8ca12b4dede02934305bc28 | /approcPatternCount.py | 884e0d55218f72c8bbfa2813ecb1d3d45a704fc0 | [] | no_license | jtt48/Coursera | 54b1b29561eb3a362c261d55fc4d12cde3de9590 | 69366264652d7ee0688af3538c0848910b93c8d0 | refs/heads/master | 2020-03-25T05:30:35.384253 | 2018-08-03T17:23:01 | 2018-08-03T17:23:01 | 143,450,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | import sys
import re
import json
import glob
import linecache
# cycle window od size (len pattern) through text.
# if window is <= errorNmb place start index in rString.
def approxPatternCount(pattern, text, errorNmb):
# print("starting approxPatternMatch")
# print("Pattern: ", pattern, " Matching to: ", te... | [
"jtodd@tgen.org"
] | jtodd@tgen.org |
8d8566234ea438d492afb7febfec544f5211e99a | e31c5eecfed4502e22c810e798003a40082c1279 | /collab_app/models/profile.py | b0f8014e1dce8dfdda01aa008560123c152c54c1 | [] | no_license | CollabSauce/collab-backend | 96367dedce7d1b64d8921b74e5e22706384d4624 | b8726c8ff43d8995415b7ac81b38bc6973943c50 | refs/heads/master | 2023-02-04T07:07:36.836601 | 2020-12-24T19:48:45 | 2020-12-24T19:48:45 | 290,001,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from django.conf import settings
from django.db import models
from collab_app.mixins.models import BaseModel
class Profile(BaseModel):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
| [
"cooperjbrandon@gmail.com"
] | cooperjbrandon@gmail.com |
8c9fc38f1538d4919a49ff72447c1c932fc03db5 | 0c0ec63b2dc805be3affc7a5e501c2a23c8a16ac | /ml_process/stock/test.py | d58e5eb639df4fb2bfaafb6b8e3619b495e012c2 | [] | no_license | choochootrain/newty2 | 4cb4cc1d9942729a3ca389cc6a35d1a769dafdb8 | 022b1eaedb87f290e23e7faf516d4bb2f42424c9 | refs/heads/master | 2021-01-22T06:44:16.840231 | 2013-05-17T20:48:21 | 2013-05-17T20:48:21 | 9,737,048 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | f = open('AAPL.npy', 'r')
import numpy
x = numpy.load(f)
print x
print 'one_result', x[0]
| [
"lu.cheng@berkeley.edu"
] | lu.cheng@berkeley.edu |
4dcda266d8a1504833b25c78716a5a608cb703b3 | 4c8228b9a5720e1159233d79f463645ffad2eb06 | /notification/urls.py | b876c19f8a259655cf3ca99c0a0233734aae5c03 | [] | no_license | prateek789/Device-Management | 58e7eab68614eca3aea49228e6914828871e0bc6 | 0c33134ba0836624118ef3c3c21455f2c1b262ab | refs/heads/master | 2021-01-20T02:42:04.694139 | 2017-04-27T09:05:33 | 2017-04-27T09:05:33 | 88,947,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from django.conf.urls import url
from notification import views
urlpatterns = [
url(r'^get-notification',views.get_notification,name='get-notification'),
url(r'^desktop-notification',views.desktop_notification,name='desktop-notification'),
url(r'^read-notification',views.read_notification,name='read-no... | [
"prateek.jain1@ideavate.com"
] | prateek.jain1@ideavate.com |
3a6ccd4f7a0edffa6f93e9687c076417d0a1b0d7 | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/__hooks__.py | 85e30235b7cb2d5c0d2088433d93d3f9f0f6c835 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | RELOADER_ENABLED = False
__enable_gc_callback = True
import gc
try:
import _profile
except:
__enable_gc_callback = False
def system_init(gameplay):
import sims4.importer
sims4.importer.enable()
print('Server Startup')
if __enable_gc_callback:
gc.callbacks.append(_profile.notify... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
1f57a361859833b5623a103f29d1b18d051e101f | 05bec8583ff39d864557ea5df51a6ec2d14ede03 | /ms/accounts/migrations/0012_auto__add_field_myprofile_revenue__add_field_myprofile_balance.py | c0319c1d1e8ed753690eb13c4d497571ee22b0bb | [
"MIT"
] | permissive | joeyjy/ayi-django | 7a0164a61b24393c4cf132bf1abc9cd6032baa68 | de72f82a3754a56dc77c21501baa5809b6410057 | refs/heads/master | 2016-09-06T10:23:45.131049 | 2015-02-03T09:52:44 | 2015-02-03T09:52:44 | 21,931,383 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,935 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'MyProfile.revenue'
db.add_column(u'accounts_myprofile', '... | [
"joeyjy@outlook.com"
] | joeyjy@outlook.com |
f83d582584b1f3898d024e48b6fb7fe03a1db33f | fdab0c18eab28477d0980723c5ac5b4ba10c506f | /shelf/__init__.py | 7a691c178c4a1e6817a33c9fb6cc581431763af4 | [
"MIT"
] | permissive | MIT-Informatics/PreservationSimulation | 58b53595841c39e1fe00a05241be43ed0bcf6430 | 38c6641a25108022ce8f225a352f566ad007b0f3 | refs/heads/master | 2021-08-25T10:35:46.066554 | 2021-08-24T20:17:13 | 2021-08-24T20:17:13 | 17,369,426 | 9 | 0 | NOASSERTION | 2021-03-20T02:55:37 | 2014-03-03T15:03:30 | R | UTF-8 | Python | false | false | 30 | py | # Nothing to say here, yet.
| [
"landau@ricksoft.com"
] | landau@ricksoft.com |
3d248b9822e566b434bc50291ba5c73e7f9d7aa3 | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2018_06_01/aio/operations/_virtual_machine_run_commands_operations.py | ae68dd96f544a951679e1e4b41833dc0b708fe85 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 7,966 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
19effaf2fd28cbfbcc5bf1197122f93d208d746b | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-res/huaweicloudsdkres/v1/model/show_res_datasource_request.py | 174e9c77405184d91a01ce3c43989fd6fba03d2b | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,956 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowResDatasourceRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
cb5b9d62e05d98b76c67688a3d75d3244e7b7adb | 6436424c051740418a7f7fbf1d1c9eecbebd6076 | /example/pull_data.py | 4fc471b57683bfb5245e81c001231004df7e197d | [] | no_license | sweetaz/ClientSDK | d0cc4e0facb34af5de15d7f1e17ecc95bc49d44d | 774793b0ddf660a6be9710c4d3ef81e59dd66236 | refs/heads/master | 2022-08-01T02:04:10.035693 | 2020-05-18T23:02:41 | 2020-05-18T23:02:41 | 267,210,826 | 0 | 0 | null | 2020-05-27T03:25:02 | 2020-05-27T03:25:01 | null | UTF-8 | Python | false | false | 1,196 | py | # pylint: disable=W0703
import sys
from thematic_client_sdk import Auth, ThematicClient
def main():
# get token and args from command line
if len(sys.argv) < 3:
print("Usage: "+sys.argv[0]+' <refresh_token> <survey_id> <result_id>')
exit()
refresh_token = sys.argv[1]
survey_id = sys.... | [
"nathan@getthematic.com"
] | nathan@getthematic.com |
ea826e75e6998d1dcfa8a8729f39b309e8af21ba | 4a83e737212f0c5f83e13be33deeeec1a8a0f4f3 | /posts/models.py | c1da3670d120cf3d154b3b10fc97e667b2374f0a | [] | no_license | 4dragunov/praktikum_social_network | c83e6a9d1eea1d0980f315abdc6df3e68dbdcef3 | c5a521df9bd5641ec2946edaf4fdc0922f32accb | refs/heads/master | 2023-02-13T20:47:08.787317 | 2021-01-12T16:53:14 | 2021-01-12T16:53:14 | 288,222,320 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | from django.contrib.auth import get_user_model
from django.db import models
User = get_user_model()
class Group(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
slug = models.SlugField(max_length=50, unique=True)
def __str__(self):
return self.title
c... | [
"4dragunov@gmail.com"
] | 4dragunov@gmail.com |
70c3c0d93eb896c3ee369ec5553227a67a88c379 | d2a030f7a050a641fddd657e895651ee0310ae41 | /givers/migrations/0005_auto_20210907_2029.py | 171e7f8a50f139766839d1879f38085452c55ea8 | [] | no_license | Shawen17/Giveawaynow | f052a1055a96f2d0a392aaf748adcafbec2a5135 | 92f3bc0b359a712776661348e239b492894b81a1 | refs/heads/master | 2023-09-05T00:28:59.237486 | 2021-10-24T21:12:37 | 2021-10-24T21:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | # Generated by Django 3.1.13 on 2021-09-07 19:29
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),
('givers', '0004_vendor_v... | [
"shawen022@yahoo.com"
] | shawen022@yahoo.com |
4f7b4debed8c09169aca4546cfce15ecead65567 | 3473f99b1832e261d1d98ef5a683aff2526b979f | /Binder/discussions/migrations/0016_notifications1.py | 03b01b76fcad3d85b02eee1454d9d8d6e0c7ed4c | [
"MIT"
] | permissive | pavan71198/dashboard_IITG | ae8ac224de327d53f680dc76a07c0116ebd21d4a | 28bc053eb5f8c81b1877796c7a2f960a7764dbb4 | refs/heads/master | 2020-03-24T01:30:36.010276 | 2018-03-07T09:56:35 | 2018-03-07T09:56:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10a1 on 2016-07-07 12:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('discussions', '0015_auto_20160627_1450'),
]
operations = [
migrations.Creat... | [
"er.mayank96@gmail.com"
] | er.mayank96@gmail.com |
f1ed979f7f03e65b62d9aaaf4f00cfeb7810bf4c | 17b0e3401dd87d936a8d9f76f3415bef9760741f | /survey_app/choose-3/utils.py | ade77ccb1b252cebd418e3aa83da715a50e7fe25 | [] | no_license | ahare63/categorical-to-latent | 6d95d133e1305ef20947554847bfb1f8b0dafec5 | 18789af26e7e9f5d46feed663baeea3a1c4a5a55 | refs/heads/master | 2023-01-22T19:52:52.573417 | 2020-12-02T22:14:06 | 2020-12-02T22:14:06 | 302,120,024 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,691 | py | import glob
import json
# Go through all responses and condense results into single output
def get_response_results(include_never=True):
with open("results_template.json", 'r') as f:
summary = json.load(f)
# Iterate through each response
files = glob.glob("./responses/*.json")
for f in fil... | [
"adam.hare@zoomi.ai"
] | adam.hare@zoomi.ai |
426a4d1815fa28c588b242e1acdb46bcae50ea1b | 7987490ca883c62e0172a18fa4e1c9267a96357c | /app/common/__init__.py | b14338470f87cdd4a5326a411a92ebca41588483 | [] | no_license | kulongwangzhi85/web-python-flask | 294b4f4c217ba829cf94c765def23cbc5adf36d9 | 1766a056a7d6b9f4f5110f9bbc0d76eeb6c676f2 | refs/heads/master | 2020-07-05T11:09:06.805755 | 2016-09-17T08:36:53 | 2016-09-17T08:36:53 | 67,272,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | import views
import models
import forms | [
"guocl85@163.com"
] | guocl85@163.com |
851ad067a6a1447415a84ba38c63afa33fab9098 | ea0d8dc86b07c802769d74dc38d97154a79c1dcf | /window-introduction.py | c8b52caf7711f6339afae5e9ea31c75dda603f10 | [] | no_license | aachellis/Spark-Join-Window_Introduction | a0d33934f23f7b11e5dcb70a1087adba58daed6a | cb237cbc152f2deec9ffe8d034550fea8d8e9e31 | refs/heads/master | 2022-12-08T21:03:34.607144 | 2020-08-04T03:27:59 | 2020-08-04T03:27:59 | 284,867,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,744 | py | '''
At its core, a window function calculates a return value for every input row of a table based on a group of rows, called the Frame. Every input row can have a unique frame associated with it. This characteristic of window functions makes them more powerful than other functions and allows users to express various d... | [
"noreply@github.com"
] | noreply@github.com |
0235d2d74cea99b568c3290179d49bebc8256fdc | 94829120ea91ee9e8a9c364ae52c7b9f373656c1 | /src/converters/rosbagConverter.py | 79dedb35d5ade3db221e39a6f5976fd69d0c39ef | [] | no_license | asdewar/event_conversor | e27513ffda764459bc6ec65155a0e1d80d1e03a6 | 596fd63c9e4dc93684f551baf3f4f596ef84d83f | refs/heads/master | 2023-07-11T10:07:33.744410 | 2021-07-12T14:11:48 | 2021-07-12T14:11:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | from src.utils.utils import combine, getNumProgress
from src.format.bag.EventRosbag import Event as _Event
from src.format.EventClass import Event
from src.config.config import Config
from src.ui.UI import UI
import rosbag
import rospy
def rosbagToAbstract(input_file):
UI().objectUI.showMessage("Starting to read ... | [
"acalderona01@gmail.com"
] | acalderona01@gmail.com |
a69501bb9f9d0f85d61b8e4912356da88c453e3b | 2f2fb10563b48675e5eb81b146a2338cc19dc447 | /nets/vgg.py | 0cfacdebd317ed366c69eef94c74e6bec8845a7d | [
"MIT"
] | permissive | longzhen520/Tensor_Layer_for_Deep_Neural_Network_Compression | d18c2644c0ef7d78f7b4ce4006429c4ff1f1e1b7 | 2fe88a989501e4c1f5e17d05873efe6906f45c55 | refs/heads/master | 2023-01-15T08:07:26.950156 | 2020-11-26T15:26:50 | 2020-11-26T15:26:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
import torch.backends.cudnn as cudnn
from torch.optim.lr_scheduler import StepLR
import torchvision
import torchvision.transforms as transforms
from torchvision import models
cfg = {
'VGG11': [64, 'M', 128, 'M', 2... | [
"yf2484@columbia.edu"
] | yf2484@columbia.edu |
3246ee08ccb18b69003effd0ef68bc968dc2dc72 | 6ea7ed159566fa290dbdf1524bba3ceec9c2da6a | /recipe_scraper/models.py | 5355e123eec8721924911dc52c29f4f7a29d6b16 | [] | no_license | jeffrey-hung/recipe-scraper | 9215cc23275d64d9262a98a130269c01acf7b1ac | 7b2073b70d5d7434501e8d84037da239087c902e | refs/heads/master | 2022-11-25T18:14:38.889719 | 2019-11-29T06:46:33 | 2019-11-29T06:46:33 | 224,792,882 | 0 | 0 | null | 2022-11-22T04:51:46 | 2019-11-29T06:42:03 | JavaScript | UTF-8 | Python | false | false | 1,694 | py | from django.db import models
from django.contrib.auth import get_user_model
# Create your models here.
class Ingredient(models.Model):
name = models.CharField(
max_length=200,
primary_key=True,
)
def __str__(self):
return self.name
class Recipe(models.Model):
nam... | [
"noreply@github.com"
] | noreply@github.com |
8434e794040a56ddfae1683df8ef406eb49ca681 | ea43ceb244b86f73fd8cee09da3a4b3d86f4100d | /SeamCarvingReduceWidth.py | cec01c60fc8826e9f93a349c923461513e366781 | [] | no_license | SrinidhiPalwayi/ps2 | 0cdf6786f4cfe1e7bc23e27e29e09fa66719409d | c8920888b9e83996da2865af01dbc9955dcaae77 | refs/heads/master | 2020-03-30T07:06:52.738058 | 2018-10-02T23:30:31 | 2018-10-02T23:30:31 | 150,916,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | from cumulative_minimum_energy_map import cumulative_minimum_energy_map
from find_optimal_vertical_seam import find_optimal_vertical_seam
from energy_image import energy_image
from reduceWidth import reduceWidth
import matplotlib.pylab as plt
import numpy as np
import scipy.misc
image = 'inputSeamCarvingPrague.jpg'
... | [
"srinidhipalwayi@lawn-143-215-123-240.lawn.gatech.edu"
] | srinidhipalwayi@lawn-143-215-123-240.lawn.gatech.edu |
e7b6cc2bcf1753ac1733d91128525009149d7115 | fc9f070fcff2cee6d3acc7111c3c83c2c4652911 | /blog/views.py | e464c8fbb592351c7ff248aff9831e1a4dafda7b | [] | no_license | hopgausi/Blog | 26e5a8f6f95e18c39e0551832eb4fbd604141c87 | 43309c18e81d7ae3cb18be99fb7fd7aafa5d525f | refs/heads/master | 2023-03-20T02:57:56.642381 | 2021-03-07T14:48:15 | 2021-03-07T14:48:15 | 289,376,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,439 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib.auth.decorators import login_required
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin
from django.contrib import messages
from django.utils.text import slugify
from django.views import generic
from .model... | [
"jspyhack@gmail.com"
] | jspyhack@gmail.com |
8600e3c9ea89535253035fff93316cd1d4f2aaa2 | e4384d6231d93171141b6e5023a31c01f3e2b5cc | /populate_rango.py | c592df4f8b332fe5b23210e19ea3cded5ef33816 | [] | no_license | lumaen/tango_with_django_project | 651a588dc1140c5005bf1976cce23c7af58663df | a56bbb9f1d317701cb42a4599cb3672b9b93b9d7 | refs/heads/main | 2023-03-02T16:12:20.961986 | 2021-02-05T14:44:58 | 2021-02-05T14:44:58 | 329,926,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,612 | py | # This script automatically populates the rango database
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
# Actual method to populate the database
def populate():
# Lists of d... | [
"2472780S@student.gla.ac.uk"
] | 2472780S@student.gla.ac.uk |
9f91ebdd34a36490f95c4dd170707f89b982530a | 122280a785fe08f6f520ad510068c584bc216a79 | /src/lr_schedulers.py | ba5bea2bf04ed1c6f8b8ce0b1378c0a024596807 | [] | no_license | AniketGurav/forensic-writer-identification-and-writer-retrieval-using-a-vision-transformer | 9824cc68854f8c4c5600e50272663e422d4ccc83 | 74421c74782cd03725f315f42b310e33afbda921 | refs/heads/main | 2023-09-04T22:48:02.753712 | 2021-11-14T13:12:01 | 2021-11-14T13:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | class WarmUpLR:
"""Learning rate warmup scheduler as used by [1] (implementation: [2]).
The learning rate is warmed up by dividing the initial learning rate by (`num_epochs_warm_up` - i),
where i is the current epoch (0 based indexing). After the learning rate was warmed up for `num_epochs_warm_up`
epo... | [
"michael.koepf@tuwien.ac.at"
] | michael.koepf@tuwien.ac.at |
75ca7486648bdecf2f8c0a230e5a1429072c4711 | 04b7663dceeab120224ba391c941a6498097cf1d | /profe-08-09-2021-2.py | 0862cbbd7c3c8ac466832247799e0a90c7f04451 | [] | no_license | TeacherAndres/Teinco-electivaTecnologica | 93217d58d95fdd6ddc027a40bc9957247ca5bf7e | 5c8606f83ad32f22e295e6c8464eaba9e0aff1c5 | refs/heads/master | 2023-08-13T08:35:30.365866 | 2021-09-22T03:32:10 | 2021-09-22T03:32:10 | 402,059,881 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,777 | py | #Definir y crear diccionario (perro)
perro = {'dueño': 'Federiko','raza':'canino','vacunas':['tosferina','rabia','cancha']}
#Imprimir diccionario perro
print(perro)
#Imprimir valor por la llave
print(perro['dueño'])
#Imprimir valor por llave y pocision interna
print(perro['vacunas'])
print(perro['vacunas'][0])
print(pe... | [
"camilosama6@gmail.com"
] | camilosama6@gmail.com |
4949fecd8736ec02cd382e73f6d52b49b11481e7 | 9249947c07f8addf64dd3d2a2f9f37d379f83921 | /libs/paramiko/__init__.py | 9e2ba013c33361a03c18e2ef64327289c8e2581b | [
"MIT"
] | permissive | operepo/ope | eb71aa763d157416009d7c3052ace11852660e0a | 018c82af46845315795c67c36801e2a128f515d5 | refs/heads/master | 2023-08-08T15:05:28.592589 | 2023-07-25T00:22:24 | 2023-07-25T00:22:24 | 96,855,111 | 12 | 11 | MIT | 2023-03-03T15:10:34 | 2017-07-11T05:42:14 | Perl | UTF-8 | Python | false | false | 3,922 | py | # Copyright (C) 2003-2011 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (a... | [
"rpulsipher@pencol.edu"
] | rpulsipher@pencol.edu |
78dfc7827343c4caa8b548bc7ae34fd16337a447 | 76326907ce2dc3407e81c29f450492266d8a36a4 | /usuarios/forms.py | 4dcbac355139f46a42c362607a10894a99c7c247 | [] | no_license | embolatado/ffwapp | a193e2f0083fe728b61a4be4963bda9c9f998415 | 2533cb8474967994de00c2042a99da32fdd13eb6 | refs/heads/main | 2023-05-12T23:39:12.069268 | 2021-05-23T00:21:09 | 2021-05-23T00:21:09 | 365,068,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class UsuarioRegistroForm(UserCreationForm):
email = forms.EmailField()
class Meta:
model = User
fields = ['username', 'email', 'password1', 'password2']
| [
"embolatado@gmail.com"
] | embolatado@gmail.com |
f44312a56f753dec7e321a13f2d402666c08d473 | 779af874adf1647461981b0c36530cf9924f5f01 | /python3/dist-packages/plainbox/impl/exporter/text.py | c8889b30876cfff0a422e3a3d37debfa5f7bf396 | [] | no_license | hitsuyo/Library_Python_3.5 | 8974b5de04cb7780b0a1a75da5cb5478873f08e7 | 374e3f9443e4d5cae862fd9d81db8b61030ae172 | refs/heads/master | 2022-11-05T23:46:47.188553 | 2018-01-04T19:29:05 | 2018-01-04T19:29:05 | 116,093,537 | 1 | 2 | null | 2022-10-26T03:07:06 | 2018-01-03T05:02:20 | Python | UTF-8 | Python | false | false | 3,001 | py | # This file is part of Checkbox.
#
# Copyright 2012 Canonical Ltd.
# Written by:
# Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
#
# Checkbox is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3,
# as published by the Free Software Foundation.
#... | [
"nguyentansang3417@gmail.com"
] | nguyentansang3417@gmail.com |
f20ebb6b95329c51dbc9d1fc3c6639b1ee3ec076 | 07d337a6e62d246ef36e62a72ca4ad403a40e960 | /Faster RCNN/utils/backbone_utils.py | fd9a365752196a40d8a57be9441449155e6389dd | [
"Apache-2.0"
] | permissive | Chrisa142857/PolarNet-GCdet | cff1ffa46e5b5a8446e6aec378a5834622e73028 | f706877c3ecac68c0cb03ef52065176837cb08e3 | refs/heads/main | 2023-05-22T23:58:23.544591 | 2022-07-03T13:04:01 | 2022-07-03T13:04:01 | 494,720,559 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,448 | py | #!/usr/bin/env python
# coding=utf-8
import torch.nn as nn
from torchvision.models import resnet
from torchvision.models import densenet
from .layergetter import IntermediateLayerGetter, DenseNetLayerGetter
from .fpn import FeaturePyramidNetwork, MaxpoolOnP5, Bottom_up_path
from .fpn import AttFeaturePyramidNetwork
fr... | [
"wzq10101@gmail.com"
] | wzq10101@gmail.com |
4d4a74d4003bc1e926a3fae3b93b30311cdc107c | 0244e54a42231399e84b40ca8b5b70fb75f92e13 | /crm/views.py | 2f75f50e52fda92722603394dab4375ecf555591 | [] | no_license | wkoonings/maverickfoodservicewillem | 43371cd367d4b8d0d483aa4e70809cedeea2a431 | f5605c4714a7a6d9cf937d9ee076e41f912c65e4 | refs/heads/master | 2022-11-30T02:22:02.485874 | 2019-11-17T03:06:08 | 2019-11-17T03:06:08 | 212,730,718 | 0 | 0 | null | 2022-11-22T02:40:42 | 2019-10-04T03:44:43 | HTML | UTF-8 | Python | false | false | 7,429 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render, get_object_or_404, redirect
from .models import *
from .forms import *
from django.db.models import Sum
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
... | [
"willem_koonings@hotmail.com"
] | willem_koonings@hotmail.com |
f464d9bcbc96f968b327af9d7673c249df0ed42b | 70fa997255d87e343a1bf21167ac7b1a5d52fa5b | /pizza_project/pizza/pizza/urls.py | 8390cb3ffc1d22fde98aa66e417a734bf05c3365 | [] | no_license | nikivay1/pizza | e20ae6df362096d70ce894b71c79cab4f865a797 | c7f241ab54886597b0daf4147f862166e57f8fc8 | refs/heads/master | 2022-12-21T07:11:58.684603 | 2020-09-29T06:32:12 | 2020-09-29T06:32:12 | 299,525,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | from django.conf import settings
from django.conf.urls import url, include
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views.i18n import JavaScriptCatalog, javascript_catalog
from django.conf.urls import (
handler400, handler4... | [
"nikivay@yandex.ru"
] | nikivay@yandex.ru |
3782ab695f705b3ffac765f0c694caf4de5d1a8a | c88e5659ddb88ef6bcc52045ec48eb54458a351c | /NewWordExtractor/libs/Nlp.py | 480228ec6ab9559768d2fd7d336f907fa47250bd | [] | no_license | yyfsXZ/machine_learning_projects | 0e71e9ddc6558bdec90c829bc463c9e56433ba1c | 9c5b46f87afc6a0b7597c9f5feb9cc797b84e5a6 | refs/heads/master | 2020-05-29T21:47:16.442665 | 2019-06-18T07:17:05 | 2019-06-18T07:17:05 | 189,392,798 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!/usr/env/bin python
#coding=utf-8
import jieba
class Nlp(object):
def __init__(self):
pass
def wordseg(self, query):
return [word.encode("utf-8") for word in jieba.cut(query)] | [
"zhangxiang8@xiaomi.com"
] | zhangxiang8@xiaomi.com |
0d74cc1c1d6b0e6f49e96b743d49334c1f550195 | a6a539d0f8fde24434f90b3dedad6b1144066145 | /djangotest/account/views.py | 87fc1f36dd6b5f4f5eb1be1e6d3368ba879d6031 | [] | no_license | linneudm/djangotest | 5ddd1db2430e5119fe544b343bc81ee9e20cf15d | cb73259aa3e7a99b0cacbfd0d863ead87704cb65 | refs/heads/master | 2022-12-10T12:33:32.475341 | 2019-10-29T11:24:16 | 2019-10-29T11:24:16 | 176,003,475 | 0 | 1 | null | 2022-12-08T04:52:34 | 2019-03-16T17:33:53 | JavaScript | UTF-8 | Python | false | false | 2,405 | py | '''
from django.contrib.auth.decorators import login_required, permission_required
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin
from django.contrib.messages.views import SuccessMessageMixin
from django.contrib import messages
from django.http import HttpResponseRedirect
from django... | [
"Linneu.DM@Gmail.com"
] | Linneu.DM@Gmail.com |
30acd6fabbb86e2029fe9bdb373bcb1912239b99 | 7b4820948845f55274b211d676ab8a6253a6298b | /addons/plugin.video.phstreams/default.py | 165d263833b1730268ad874343597e83e0a9e838 | [] | no_license | bopopescu/mw | 524c57d4b859751e298b907a12e44e9711ef72a6 | 5ef2acea0fb4150578e53201463c6bc5da37be20 | refs/heads/master | 2021-05-30T19:33:11.750160 | 2016-01-11T05:28:46 | 2016-01-11T05:28:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,159 | py | # -*- coding: utf-8 -*-
'''
Phoenix Add-on
Copyright (C) 2015 Blazetamer
Copyright (C) 2015 lambda
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 o... | [
"bialagary@Garys-Mac-mini.local"
] | bialagary@Garys-Mac-mini.local |
0b0a32e3829836ea18e677b11ff16c958c14a807 | f28f038e641c0c4c446dd9b5c4b9baad9787be26 | /python assignments/Assignment2/19075043/20.py | aa888a2bcfc0784fe5fc512a57928ba7768f6835 | [] | no_license | king-11/Information-Technology-Workshop | 0122b9f155efa35f4a1415307c6056e7e6716c3b | 7890c3308f5cda8004b6f1edc89d4e4dc0f81d42 | refs/heads/master | 2023-06-02T03:20:18.337247 | 2021-06-20T17:56:11 | 2021-06-20T17:56:11 | 275,173,232 | 2 | 11 | null | 2021-06-20T17:56:12 | 2020-06-26T14:19:15 | Python | UTF-8 | Python | false | false | 120 | py | import sys
x = input("Enter objects ").split()
for a in x:
print(f"Memory size of \'{a}\' is {sys.getsizeof(a)}")
| [
"lakshay.singh1108@gmail.com"
] | lakshay.singh1108@gmail.com |
1c207a0144c0ae25da72a066a7c9bc0f7036d41c | fef7cfae5c35e7248a7057a83f9763c686a6397c | /exercises/6 - Challenges/A - Guess the number.py | 135ad32e8270374cd50b9bed72451becb3e642fc | [] | no_license | beajmnz/IEDSbootcamp | 41710965712d7650d101cbe910ea061b1cbb4c2b | 0b03a7c54711df469025602847c0f2be8541d234 | refs/heads/main | 2023-06-06T03:16:25.690091 | 2021-06-25T10:41:39 | 2021-06-25T10:41:39 | 360,922,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #! /usr/bin/python3
# -*- coding: utf-8 -*-
"""
Created on Tue May 18 17:16:20 2021
@author: Bea Jimenez <bea.jimenez@alumni.ie.edu>
"""
"""
Guess the number
================
The player is asked to guess a number between 1 and 100, picked randomly by the program.
Each time they propose an answer, the program tells t... | [
"github@ainda.net"
] | github@ainda.net |
847cf96f3f1e798f655128cfef4a1e6b7c30401a | 1e86e0b27357366182f0c1c0113c8c667990c2f5 | /2739.py | 4548ff89619a222ace7d3ff49c1f5e611780d277 | [
"MIT"
] | permissive | kwondohun0308/Beakjoon | 2a9302ae166162a2fd8d0aa41fd6acf209b5a2bb | 65e8c1015bcb3bb757d8056525034ee333ecb681 | refs/heads/main | 2023-08-16T03:48:28.432954 | 2021-10-14T12:30:27 | 2021-10-14T12:30:27 | 384,434,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | N=input()
N=int(N)
for i in range(1,10):
print(N,'*',i,'=',N*i)
| [
"87187428+kwondohun0308@users.noreply.github.com"
] | 87187428+kwondohun0308@users.noreply.github.com |
718e436c09f196413b130c80af8fa649bc506d25 | 3f225584602cc7fd2610911dc728a4d40a33348c | /convolutional-pose-machines-tensorflow/run_training.py | d1ac8f053626a7acd58478a37ee0a0e30e297274 | [
"Apache-2.0"
] | permissive | cccvt/HandPoseEstimation | 2f5e6b6e27be92de98a5a77bf060a723daa89d80 | 13745c572d87892a8ce332ff0dd7309ab0603b99 | refs/heads/master | 2020-03-26T19:22:18.058680 | 2018-06-05T06:07:09 | 2018-06-05T06:07:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,728 | py | import tensorflow as tf
import numpy as np
import cv2
import os
import importlib
import time
from utils import cpm_utils
from config import FLAGS
import Ensemble_data_generator
cpm_model = importlib.import_module('models.nets.' + FLAGS.network_def)
def main(argv):
"""
:param argv:
:return:
"""
... | [
"triangle@connect.hku.hk"
] | triangle@connect.hku.hk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.