blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
7f2bb3cbda4b8f9951768f64c24853c22e2904a5
b7b1c2778d905ec8ea105ed9b0c845ade883ea38
/gestionprojet/migrations/0002_auto_20210601_1506.py
9b4e30fa675767dff0d6be0376c50ee1048aa324
[]
no_license
chaimamaatoug/django-project
222882cf462f80c5f72477cd35ccce37366b0fdf
3489207786c3cf72916b386aa383cf44092e0c13
refs/heads/master
2023-06-01T04:56:12.725194
2021-06-01T16:31:19
2021-06-01T16:31:19
372,891,876
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
# Generated by Django 3.2 on 2021-06-01 14:06 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gestionprojet', '0001_initial'), ] operations = [ migrations.AlterField( model_name='project', name='d...
[ "chaima4.maatoug@gmail.com" ]
chaima4.maatoug@gmail.com
3de583f2f00f4914d1aa86d9d991dd8cc02811f0
909afe0216a37bdc19683d81e533fa6c094329c1
/python/leetcode/53-maximum-subarray.py
a2af229326ee18c0e058516c510b22433c0acfdd
[]
no_license
wxnacy/study
af7fdcd9915d668be73c6db81bdc961247e24c73
7bca9dc8ec211be15c12f89bffbb680d639f87bf
refs/heads/master
2023-04-08T17:57:40.801687
2023-03-29T08:02:20
2023-03-29T08:02:20
118,090,886
18
22
null
2022-12-16T03:11:43
2018-01-19T07:14:02
HTML
UTF-8
Python
false
false
4,928
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: wxnacy(wxnacy@gmail.com) # Description: 最大子序和 为完成动态规划算法 ''' 给定一个整数数组 nums ,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。 示例: 输入: [-2,1,-3,4,-1,2,1,-5,4], 输出: 6 解释: 连续子数组 [4,-1,2,1] 的和最大,为 6。 进阶: 如果你已经实现复杂度为 O(n) 的解法,尝试使用更为精妙的分治法求解。 ''' from constants import NUMS_FOR53 ...
[ "371032668@qq.com" ]
371032668@qq.com
12ab0540bafb80390bcb2af09737bf5eb8328fae
b2ba670818623f8ab18162382f7394baed97b7cb
/test-data/AndroidSlicer/Bites/DD/4.py
b62029f34f1e3997c9a8c10994ecffaead769d2e
[ "MIT" ]
permissive
hsumyatwin/ESDroid-artifact
012c26c40537a79b255da033e7b36d78086b743a
bff082c4daeeed62ceda3d715c07643203a0b44b
refs/heads/main
2023-04-11T19:17:33.711133
2022-09-30T13:40:23
2022-09-30T13:40:23
303,378,286
1
1
null
null
null
null
UTF-8
Python
false
false
2,621
py
#start monkey test seedNo 0 import os; from subprocess import Popen from subprocess import PIPE from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage from com.android.monkeyrunner.MonkeyDevice import takeSnapshot from com.android.monkeyrunner.easy import EasyMonkeyDevice from com.android.monkeyru...
[ "hsumyatwin@gmail.com" ]
hsumyatwin@gmail.com
5f200f29037f348d64942c29fe43b97eb76763cf
2853e675fe8e83925e6318310e5239da0bbb3f73
/runMES/modeling/views.py
f4b36a6931fee3ba535844361388cb17a5ad5de2
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
runMES/runMES_1908.2
60f6272ad543609fd67411f760e4712b628fd19d
acae4bb86acf62206d6e26b82144c68677a893f9
refs/heads/master
2020-07-26T23:56:09.393975
2019-10-01T09:09:16
2019-10-01T09:09:16
208,802,769
0
0
null
null
null
null
UTF-8
Python
false
false
81,356
py
from django.shortcuts import render from django.db import transaction from runMES.models import * from django.views.decorators.csrf import csrf_exempt from django.contrib.auth.decorators import login_required from django.utils import timezone from django.utils.html import format_html from django.shortcuts import redire...
[ "joshua.chin@steptech.io" ]
joshua.chin@steptech.io
472257db66872ce7affd90f1572c302c72807d1f
159db9500c119898a6a8041263cb1be7e6583820
/main.py
e0fb3138aba2f55d6132fa28a78b0c9913edca60
[]
no_license
shipmatic/news-blog
aef0f1fd8419ac9f9d3a9fc4566e307dc3cb237f
b8cc16de75f2e85ef595a41f1ffa69e41ece2e1c
refs/heads/master
2023-06-25T23:01:39.335459
2021-07-16T13:31:33
2021-07-16T13:31:33
386,627,454
0
0
null
null
null
null
UTF-8
Python
false
false
7,510
py
from functools import wraps from flask import Flask, render_template, redirect, url_for, flash, abort from flask.globals import request from flask_bootstrap import Bootstrap from flask_ckeditor import CKEditor from datetime import date from flask_wtf.form import FlaskForm from werkzeug.security import generate_password...
[ "ssp.techproject@gmail.com" ]
ssp.techproject@gmail.com
9aa5243a1361a9ba0b3372a6f713bdaead5d5c19
24d3d9011a1792ec37c973c6974e7e8ad3cb80df
/neighbor/migrations/0008_auto_20180528_1726.py
879c41f913abcd1bc6935b8c9eba884865f0dbb0
[ "MIT" ]
permissive
Abdullahinur/NeighborHood-Watch
6a0fe49ab6f639961b5517dc6207435803712151
2d0fd962e24f9678596fd7747cecdc791f04916a
refs/heads/master
2020-03-18T23:50:47.096849
2018-05-30T13:08:00
2018-05-30T13:08:00
135,194,330
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-05-28 14:26 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('neighbor', '0007_auto_20180528_1724'), ] operations = [ migrations.AlterModelOptions(...
[ "aabdullahinur@hotmail.com" ]
aabdullahinur@hotmail.com
32245eaa2f0c0743d15adfd2dd63d081db2d8f46
06a18ff78abb52a6f6db1053958cab94948802c6
/manage.py
92c8452486877debeeaa290576a2af7842f45a09
[]
no_license
ZFCon/moviesdand
28b49d4428d4d4b445f940936c0529f55613f25e
4f3718e8082c7ec6201a4c5399a7ddb5d5b01031
refs/heads/master
2023-04-28T23:57:09.835193
2019-12-09T21:19:08
2019-12-09T21:19:08
224,487,270
1
0
null
2023-04-21T20:41:05
2019-11-27T17:51:35
CSS
UTF-8
Python
false
false
630
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'moviesdand.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Imp...
[ "ziad32ahmed111@gmail.com" ]
ziad32ahmed111@gmail.com
366558016a45d151d561ae52ed4b1b10733740b2
050bcd8b768c025ee4138618442b6b2897abbb7b
/32.py
6976824f210e22dd2dd7b17d84de5c47f40bc80c
[]
no_license
Wyuchen/python_hardway
a28a4c512157fa735535493937606eee7ad886b9
7b3a513e5a2e7119acc5b5ba31740396637f56e5
refs/heads/master
2021-01-01T15:38:24.752592
2017-09-14T08:40:45
2017-09-14T08:40:45
97,661,973
2
0
null
null
null
null
UTF-8
Python
false
false
626
py
#!/usr/bin/python #coding=utf-8 #笨办法学 Python-第三十二题 #列表的定义和循环语句的使用 count=[1,2,3,4,5] fruits=['apple','oranges','pears'] change=[1,'pennies',2,'dimes',3,'quarters'] #遍历count列表 for num in count: print 'the number is %r' %num #遍历水果 for fruit in fruits: print 'the fruit is %s' %fruit #遍历change for i in change: ...
[ "wz@qq.com" ]
wz@qq.com
c47878f40169722d807f5b58ef407f4acf0b85e8
36ff4e1fa0b6411b61da1d0cf54b9162eaa25325
/images/urls.py
ba9e5d7d7ef7445e08fd0e69e1acfd78e0812867
[ "MIT" ]
permissive
DebbieElabonga/Gallery
6260c6962d1e2582f3fcd824e5e3d3f436079523
a40dd91a9508098a51632059dc1caeb7350cd513
refs/heads/master
2023-06-14T22:45:32.071027
2021-07-09T18:19:59
2021-07-09T18:19:59
381,933,966
0
1
null
null
null
null
UTF-8
Python
false
false
417
py
from django.conf.urls import url from . import views from django.conf import settings from django.conf.urls.static import static urlpatterns=[ url(r'^$',views.welcome,name='all-images'), url(r'^search/', views.search_results, name='search_results'), url(r'^image/(\d+)',views.image,name ='image') ] if ...
[ "debbie.elabonga@student.moringaschool.com" ]
debbie.elabonga@student.moringaschool.com
34ade235fb1a029a2a134572372788816d02412e
f105582d428bc004fb7789aa40bc3792c52cab8e
/login.py
a34e11e0b9c64298605576f041b394c1d910b06b
[ "MIT" ]
permissive
ssingh55/Project2
f088cc3b8d9a6cea5514bde38ee97a7739e845cd
4b8b9bc183920d6d2ae1e656f524c210ca509a40
refs/heads/master
2021-01-01T18:10:26.293132
2017-07-25T11:25:27
2017-07-25T11:25:27
98,269,178
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
#!/usr/bin/python import cgi,cgitb import MySQLdb as sql cgitb.enable() print "content-type:text/html" print "" db=sql.connect("localhost","root","redhat","adhoc") cur = db.cursor() x=cur.execute("select password from add where email='%s' "%email) if x.fetchall()!=0: print "<meta http-equiv=\"refr...
[ "noreply@github.com" ]
noreply@github.com
fee72b1e3d61d18a097db9ab8eba756c169014d9
67a32f78199fa45a2385043d24961ec8b71eea50
/blog/urls.py
a70d49389a98799ea8c0d80be5044f236e49fd40
[]
no_license
xueshengshuo2/bp
eaea977a2ae3f488e965dd224c6d230771070dd0
615719aabebe6ebc7379a55ac435a3a063875692
refs/heads/master
2020-09-11T21:22:12.714964
2019-11-17T03:57:44
2019-11-17T03:57:44
222,194,553
0
0
null
null
null
null
UTF-8
Python
false
false
856
py
from django.urls import path from . import views #app_name = 'blog' urlpatterns = [ path('', views.post_list, name='post_list'), path('post/list/', views.post_list, name='post_list'), path('post/<int:pk>/', views.post_detail, name='post_detail'), path('post/new/', views.post_new, name='post_new'), p...
[ "xueshengshuo@163.com" ]
xueshengshuo@163.com
08e208cff5a26bb96b0cd10442faac5a1d7d71ee
57828f4d03c3e90a15c0cc232eba8f7bae829694
/Jean-Marco/Blatt 0/aufgabe3.py
076e8ca7e73b81e9b004d7bfa9bbee902399ac50
[]
no_license
DimensionalScoop/SMD
acb86f86deb43cc4df113d0741b93e84fe57dd12
9671bce8f1eb0c76c99f882ca3fc671de252d4ca
refs/heads/master
2021-06-10T23:17:43.738655
2017-02-06T22:53:36
2017-02-06T22:53:36
72,542,041
2
0
null
null
null
null
UTF-8
Python
false
false
865
py
import numpy as np import matplotlib.pyplot as plt def f(x): a = x**3 + 1/3 b = x**3 - 1/3 return a-b x = np.linspace(1, 0.2*10**6, 10000) plt.title('Aufgabe 3a') plt.xlabel(r'$x$') plt.ylabel(r'$(x^3 + \frac{1}{3}) - (x^3 - \frac{1}{3})$') #plt.xlim(-0.01, 1.01) #plt.ylim(-0.1, 1.1) plt.plot(x, f(x), 'b'...
[ "jean-marco.alameddine@tu-dortmund.de" ]
jean-marco.alameddine@tu-dortmund.de
79ec081546240e95eb75d8b409413e9ea7df0e07
2d601a44d0a409d5843399459b00deb6cbfa462f
/apps/adopcion/views.py
8c3e61eb39b69bcfb436b1f14cc45c394f44e21f
[]
no_license
RoyMelvinTM/project-refugio
260283ac900a6c968c7185e1863947eba860ac99
04485b0a3873cfdc71101ff79cb67fef0daa89fa
refs/heads/master
2020-03-22T22:33:22.501735
2018-07-18T20:56:04
2018-07-18T20:56:04
140,757,744
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
from django.http import HttpResponse # Create your views here. def index_adopcion(request): return HttpResponse("Soy la pagina principal de la app adopcion")
[ "roymelvin17@gmail.com" ]
roymelvin17@gmail.com
7989429c8bab1382162b75c14fc0cfce9f27dea4
6d11010c793ac3b217254b76d00476df5c495ce1
/core/codexec.py
3e6b931a87afaae6fd4b57cf27b09d4ec4228b8d
[ "BSD-3-Clause", "Unlicense", "MIT", "BSD-2-Clause" ]
permissive
Aareon/Akilang
7e0ecf76c6a88b5f67f5159b65d4e467eecab00a
3dda47064abd5846043364533d5af5f924f6660d
refs/heads/master
2020-03-30T19:54:28.112683
2018-10-04T01:52:22
2018-10-04T01:52:22
151,564,890
0
0
MIT
2018-10-04T12:01:59
2018-10-04T12:01:59
null
UTF-8
Python
false
false
9,025
py
from ctypes import CFUNCTYPE, c_int32, c_double from collections import namedtuple import colorama colorama.init() from termcolor import colored, cprint from core.parsing import Parser from core.codegen import llvm, LLVMCodeGenerator from core.errors import CodegenError, ParseError from core.repl import paths from cor...
[ "serdar@genjipress.com" ]
serdar@genjipress.com
b55280eb15ed76a5f6f72fd01b97259ad28c9235
5b2bd039802d748fd653286db85fe8ee6e72aa7c
/hw06-1.py
c619e40dc3b0a973d06c7989c9afb6ccd93fcb3f
[]
no_license
eTcilopp/algorithms_and_data_structure
6a15b78e7024d12e92a622b34f1e04e370c6577f
0eeb1d9ddcc5245572d01e218c2cc4675c89e07d
refs/heads/master
2021-01-05T10:15:07.860749
2020-03-25T03:30:45
2020-03-25T03:30:45
240,988,208
0
0
null
null
null
null
UTF-8
Python
false
false
6,836
py
# Подсчитать, сколько было выделено памяти под переменные в ранее разработанных # программах в рамках первых трех уроков. # Проанализировать результат и определить программы с наиболее # эффективным использованием памяти. # Выбран алгоритм поиска простых чисел. # Python 3.7.4 [MSC v.1916 32 bit (Intel)] # OS:...
[ "noreply@github.com" ]
noreply@github.com
c588a2e0be291b532ba8fb6159e3c036ce7b1812
29f4fb2ac4a3fe05f877ce70a07726db55d0494b
/hod/migrations/0003_auto_20190320_1219.py
47b020fd13169085f0defd00ed2d1549e77e8890
[]
no_license
mohitrajane/faq
33e1ad4e5176b6d0ac797cfcf0ac6abd295b2b42
f0a3a8d8d0a49526cec6283413ae0dbc6eeb0c82
refs/heads/master
2020-04-28T10:33:46.918567
2019-04-10T18:14:33
2019-04-10T18:14:33
175,205,962
0
1
null
null
null
null
UTF-8
Python
false
false
412
py
# Generated by Django 2.1.7 on 2019-03-20 12:19 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hod', '0002_question_mail_id'), ] operations = [ migrations.AlterField( model_name='question', name='mail_id', ...
[ "leo@localhost.localdomain" ]
leo@localhost.localdomain
3787e3fd933ddd148fab18af2ec10a45fdbe09e4
caf5807c331ff22b1e7d48f59b626a8869bd418d
/quotes/models.py
d5d4b80e67599700f8a2ceddb5a9ece5e1f0e9a7
[]
no_license
tahirawan4/cserver
d7cd2953f75485b8f061e0301d2ce4d77605e8fa
fcb7e0e22e3e2bac6e0278aa41709f84f93c9da2
refs/heads/master
2021-01-10T02:50:12.879964
2015-06-03T19:58:59
2015-06-03T19:58:59
36,827,447
0
0
null
null
null
null
UTF-8
Python
false
false
1,171
py
from django.db import models # Create your models here. from django.db import models # Create your models here. class Author(models.Model): name = models.CharField(max_length=30) author_discription = models.CharField(max_length=150) author_url = models.CharField(max_length=150) author_image = models.I...
[ "tahirawan4@gmail.com" ]
tahirawan4@gmail.com
b83def7d05dee0a6726c040d19f96e287ea31dc1
e4c4cdd4445b7ff905208797f7617b6bf52b5ea4
/led/led fade.py
df1833024a218163f9b866f37b6a9f68c07ddb87
[]
no_license
kmcgrat28/CircuitPython
d5b65b37002cc09661c9ddc0b92ab48b66a3f73c
65860c00dbba900dda6a5c64884b7bbd9ef90fb1
refs/heads/master
2020-08-08T23:26:53.096034
2019-10-25T16:25:28
2019-10-25T16:25:28
213,945,504
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
import pulseio import board import analogio led = analogio.AnalogOut(board.A0) brightness = 40000 fadeAmount = 10 import time while True: led.value = brightness brightness = brightness + fadeAmount if brightness <= 40000 or brightness >= 65000: fadeAmount = -fadeAmount
[ "kmcgrat28@ccs.local" ]
kmcgrat28@ccs.local
968e28e6c94490056cef364d2866734c13f22a6a
47aab1a794c59abd8c333fd8d0ae5979a3be2d3b
/scraper.py
e766e7136527daacdfb4b74d3b8ccdbf07bc1043
[]
no_license
rossjones/aewaits
28267a7357addb7028ef73e241daa154d8b0f29d
c90c815764cb0eb74cefbbb7d32ca5bb1a00f809
refs/heads/master
2022-12-10T08:41:53.598229
2019-06-15T15:27:18
2019-06-15T15:27:18
192,093,475
0
0
null
2022-12-08T05:15:45
2019-06-15T15:21:31
Python
UTF-8
Python
false
false
1,366
py
import requests import requests_cache from lxml.html import fromstring requests_cache.install_cache('scrape-cache', expire_after=240) def fetch_data(): page = requests.get('http://www.choosewellwales.org.uk/aewaits') content = page.content result = [] doc = fromstring(content) for row in doc....
[ "ross@mailbolt.com" ]
ross@mailbolt.com
50e0ca91f468c97722b103b4cd15a75ab728d389
493c14e7747884015271c0050f1c0dccda4faea5
/migrations/versions/91061fd6748d_private_messages.py
0aa46e54147754d88057b552aac9e1e06e2adeb0
[]
no_license
antoniovmonge/datapark
4636a7b491245e7dbedd4a01aa609df521dfceda
2a347dda85235e2cf43342ae6841b686cd37c805
refs/heads/master
2023-09-01T04:39:06.379066
2021-10-28T17:49:04
2021-10-28T17:49:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,352
py
"""private messages Revision ID: 91061fd6748d Revises: 0ad91954ff97 Create Date: 2021-10-27 15:39:52.394540 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '91061fd6748d' down_revision = '0ad91954ff97' branch_labels = None depends_on = None def upgrade(): ...
[ "antoniovmonge@gmail.com" ]
antoniovmonge@gmail.com
f2d8d610a91831089a043c2a2cc90501fadc1c31
10ce47b31444f8d5d9e6391c9dc0bff6ebc9fec3
/yqapi/yqdata/views_usermessage.py
8ffb1d27b3e4c5a0cde61a1f5852590ca7dcbbac
[]
no_license
shiozakixlg/system-v1
3df3adbb47fd0699ea88249791f389e13464fa7a
b5308887cb76821070e443cc18c02f0894c1ef6c
refs/heads/master
2020-03-28T18:14:52.107082
2018-09-15T03:18:26
2018-09-15T03:18:26
148,864,826
0
0
null
null
null
null
UTF-8
Python
false
false
22,715
py
# -*-coding:utf-8 -*- #https://github.com/django-json-api/django-rest-framework-json-api/blob/develop/rest_framework_json_api/views.py #http://django-rest-framework-json-api.readthedocs.io/en/stable/getting-started.html#running-the-example-app # http://getblimp.github.io/django-rest-framework-jwt/ from django.shortcu...
[ "syxiaoxue1@qq.com" ]
syxiaoxue1@qq.com
56239aae50b1f6b8280cb41c254528401ebb4a88
077c91b9d5cb1a6a724da47067483c622ce64be6
/betta_run/replay_config.py
1bab09d543c68c9229d9f19d67c8d36f415fb07d
[]
no_license
Spencerx/experiments
0edd16398725f6fd9365ddbb1b773942e4878369
aaa98b0f67b0d0c0c826b8a1565916bf97ae3179
refs/heads/master
2020-04-03T10:11:40.671606
2014-06-11T23:55:11
2014-06-11T23:55:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
812
py
from config.experiment_config_lib import ControllerConfig from sts.topology import * from sts.control_flow import Replayer from sts.simulation_state import SimulationConfig simulation_config = SimulationConfig(controller_configs=[ControllerConfig(cmdline='./pox.py --verbose openflow.discovery forwarding.l2_multi open...
[ "phynominal@gmail.com" ]
phynominal@gmail.com
4fcf71cdb3b42a16125cd3a567cfe813df97948d
bfa0aab4634daf1945bd518fd41e4becb83b3f69
/profile.py
7fb8110f71728c44e44674b093aba3c4b68813be
[ "Apache-2.0" ]
permissive
jmazar/conducto
2bac5418c64faec4f91297e34efbf51d61d6dff5
b480780905f5a25e8c803b60ca7cdf6976ce5ef6
refs/heads/main
2023-03-31T19:16:39.325911
2021-03-15T22:36:20
2021-03-15T22:36:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,248
py
import os import sys import time import json import socket import subprocess import urllib.error import conducto as co import jose from conducto.shared import constants, log, agent_utils, container_utils from . import api def _enrich_profile(profile, data): # this writes the profile auth_api = api.Auth() ...
[ "noreply@conducto.com" ]
noreply@conducto.com
5c77b04c66ad31505b0316ad93515b3bd493a4ea
0e1938dcbdd7ff525c76d51307a8737da2f51eae
/stock_packaging_product/wizard/__init__.py
65a38f6a3386166c0f20d64d821701bfe6c6c9f3
[]
no_license
vertelab/odoo-stock
3bbbf667a7563a5a9fb306c1674b1d57e0b8fd99
c1f2b98d3577fe7437c2eda33cf86c147a540b22
refs/heads/master
2023-05-10T17:09:35.921138
2022-01-20T12:16:34
2022-01-20T12:16:34
70,460,583
2
4
null
2021-09-13T13:53:32
2016-10-10T06:58:53
Python
UTF-8
Python
false
false
54
py
# -*- coding: utf-8 -*- import stock_transfer_details
[ "robin.chatfield@vertel.se" ]
robin.chatfield@vertel.se
853e4001f950e853e9eda7b8c8e1871311ebc226
f4ae705a31fec690b8449af2e621b4137ac37bee
/cassandraSent.py
d768df8138ff8c79b0012f196adcc49e5be455ae
[]
no_license
gitquart/appCJFExcel
b98d3db4f42b4116e766abe7c69a2a0eb782a225
31f5fa8dfd788efeca05f49fb822ed86ff3ef8c7
refs/heads/master
2023-02-11T13:27:26.447462
2021-01-04T22:04:48
2021-01-04T22:04:48
326,815,991
0
0
null
null
null
null
UTF-8
Python
false
false
4,240
py
import json from cassandra.cluster import Cluster from cassandra.auth import PlainTextAuthProvider from cassandra.query import SimpleStatement import os pathToHere=os.getcwd() cloud_config= { 'secure_connect_bundle': pathToHere+'\\secure-connect-dbtest.zip' } keyspace='test' def getCluster(): #Con...
[ "ulyses.rico.2012@gmail.com" ]
ulyses.rico.2012@gmail.com
56c9dae371e1c12cc9073c71cc2711fba214f1f6
2b30a4c49483eab695d24a536ceceb4efca111fb
/src/ctp/md.py
12702e14e8c7005eea21f9f327a1d374a49fe258
[]
no_license
wh1100717/nice
a53c73594ebd10098417cfefacf835abde8ea526
5d83fe00a88f61a9dbf131e43314dbbc3049e758
refs/heads/master
2016-08-08T21:32:53.596916
2016-04-10T04:04:19
2016-04-10T04:04:19
55,828,659
0
0
null
null
null
null
GB18030
Python
false
false
1,693
py
# encoding: gb2312 from src.util import * from src.lib import vnctpmd class NiceMdApi(vnctpmd.MdApi): def __init__(self): """Constructor""" super(NiceMdApi, self).__init__() @logger def onFrontConnected(self): """服务器连接""" pass @logger def onFrontDisconnected(sel...
[ "me@emptystack.net" ]
me@emptystack.net
6e2e255ae349d37e7813f9a2951cedab6ce46d1d
c802874550b2db9d56d546f84eccc732172a7e44
/feature_engine/transformation/reciprocal.py
66fe7f38b5ff4fc87062def44e4509158ac6b02f
[ "BSD-3-Clause" ]
permissive
Okroshiashvili/feature_engine
555732f10a2969464793369358b291044800d182
feddb0628c9e7ffe866418a81c697cecc62c1987
refs/heads/main
2023-06-09T10:17:32.198824
2023-04-22T12:14:52
2023-04-22T12:14:52
300,649,396
0
0
BSD-3-Clause
2020-10-20T15:57:20
2020-10-02T14:58:44
Python
UTF-8
Python
false
false
5,853
py
# Authors: Soledad Galli <solegalli@protonmail.com> # License: BSD 3 clause from typing import List, Optional, Union import numpy as np import pandas as pd from feature_engine._base_transformers.base_numerical import BaseNumericalTransformer from feature_engine._docstrings.fit_attributes import ( _feature_names_...
[ "noreply@github.com" ]
noreply@github.com
fcd6654a4af0d05bd041fdb9ccf9caafedf897c3
1deaa89a47eb76b102ab4bf0e7b4cdbe4eb7e017
/AnimeSpider/Email/Email.py
29c5139501be2fde7edcab1f04ec09eaf7835a0f
[ "Apache-2.0" ]
permissive
TreezzZ/AnimeSpiderzzZ
98c19a3454db4e73a26f32278cdffd9314ff0104
5f205bea33bb4e41fef760d5cd4aac9c0c007598
refs/heads/master
2021-07-07T18:40:30.665262
2017-10-05T13:35:44
2017-10-05T13:35:44
105,033,014
0
0
null
null
null
null
UTF-8
Python
false
false
1,322
py
# -*- coding:utf-8 -*- from email.mime.text import MIMEText from email.header import Header import smtplib import configparser # 邮件类 class Email(object): # 构造邮件 # @param AnimeName 动漫名称 # @param AnimeMagnet 动漫链接 # @return 邮件 def __createEmail(self, AnimeName, AnimeMagnet): content = '动漫更新: ...
[ "tree081996@gmail.com" ]
tree081996@gmail.com
401078474de60a54e21cb59ff3b91cce4c61736c
b123fb1cb632a1cab4a08b8029c751803baf491f
/geolocation/tests/settings.py
60b3c2413265096fa58398ed668297f3b9c09691
[ "BSD-3-Clause" ]
permissive
SRICKKY/django-geolocation
71d7a997c7a0979108dccdeb4cf5f51e19f336bb
887c0e2c913c32433d96c864523a494dc04ff90e
refs/heads/master
2023-03-16T09:56:14.243594
2014-11-20T15:02:17
2014-11-20T15:02:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,003
py
# coding=utf-8 import os DEBUG = True SITE_ID = 1 SECRET_KEY = 'blabla' DATABASES = { 'default': { 'ENGINE': 'django.contrib.gis.db.backends.postgis', 'NAME': 'test', 'USER': 'postgres', 'PASSWORD': 'postgres', 'HOST': 'localhost', 'PORT': '5432' } } INSTALLE...
[ "suselrd@gmail.com" ]
suselrd@gmail.com
31a6f857fa8b788f90d2998f43093fe0a1aa12d1
6d06ac416ce3ce3175d6527b105e2e7eb705df47
/Bai11_09.10_BangCuuChuong_VanDung.py
b83fcaaddf48fbcbba1b2130824a1498ce0efd92
[]
no_license
vandung311/PythonCanBan_Codegym
6d8b54619ffac214692c6454a8397a37c3624dd8
87e1f8f1becc1da8b53de6fd68636e91c44d8c4f
refs/heads/master
2023-08-24T16:14:40.979554
2021-11-10T15:13:30
2021-11-10T15:13:30
413,857,685
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
# Viết chương trình hiển thị tất cả các bảng cửu chương từ 1 đến 9 for i in range(1,10): for k in range(1,11): print(str(i),"x",str(k),"=",i*k)
[ "vandung311@gmail.com" ]
vandung311@gmail.com
430fbf7bf8a9d4ff76aabddaf8d3248189f40d08
5c1092f1b813111f7019b1489fb5224080e917ba
/connect2learn/connect2learn/settings.py
73e6265e5e210f32e1a096a7484562a20f1c70f1
[]
no_license
Mohammed-Sohail/Django-Projects
f08cdad285467e42646e18addabed032d1b95d44
fd0e216f652937f905b236bd05618fc1268538a4
refs/heads/master
2023-05-08T15:49:02.577589
2021-04-08T00:47:04
2021-04-08T00:47:04
328,395,968
0
0
null
2021-05-05T10:32:13
2021-01-10T13:59:52
HTML
UTF-8
Python
false
false
3,407
py
""" Django settings for connect2learn project. Generated by 'django-admin startproject' using Django 3.1.5. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from p...
[ "alisohail028@outlook.com" ]
alisohail028@outlook.com
d115791d209cc75f6bf87996d9457e6f14d7eb6b
4f268f9eb0a78d041de80a1bc4cdbb0f338233d6
/tango_with_django_project/rango/forms.py
d0cc938ff8b4fda386753c20a28e8122463b168b
[]
no_license
sys66666/wab21
f1f29d75009247395185446d224814deaa4da826
b2c1555934bc73c3441fa39132fe79efea1b3209
refs/heads/main
2023-03-05T18:56:46.305314
2021-02-09T18:57:13
2021-02-09T18:57:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,992
py
from django import forms from rango.models import Page, Category from django.contrib.auth.models import User from rango.models import UserProfile class CategoryForm(forms.ModelForm): name = forms.CharField(max_length=128, help_text="Please enter the category name.") views = forms.In...
[ "2515102G@student.gla.ac.uk" ]
2515102G@student.gla.ac.uk
fcd4adb84614db2a6c4be4547a4b6cec4a33591c
fec338d1b42d28d24b454b1eda1e2ccbfd137a43
/generate_result.py
396c2589fe235d6647bcd8ef2edbb8a4768a6078
[]
no_license
Rasgacode/Web_pet
7960fd06380e0b3439023be133ee5bd05dceaa66
39be851dad291fa155347e513cbb45ccb696b829
refs/heads/master
2020-07-24T07:13:55.479538
2019-09-13T14:56:28
2019-09-13T14:56:28
207,841,911
0
0
null
null
null
null
UTF-8
Python
false
false
30
py
import background_functions
[ "rongybaba12@gmail.com" ]
rongybaba12@gmail.com
eabb938ff2ffe8377b64c11833a37614f460d941
ef3e1c529a646ca2e0cca3483809903634d4903e
/Repositorio/Taller_Practica/Ejercicio28.py
987950c29679f98633a3ad042e60085711deca5b
[]
no_license
Acux-dev/Talleres-Actividades
67af45cbe16a681a7d3ef5fcfc87620ef5bf5700
94fd2a6a032bd3532d9e3d84e3eaa01d711eac6d
refs/heads/main
2023-04-26T06:09:26.697382
2021-05-01T02:30:58
2021-05-01T02:30:58
352,772,461
0
0
null
null
null
null
UTF-8
Python
false
false
187
py
numero1 = int(input("Ingrese el primer numero")) numero2 = int(input("Ingrese el segundo numero")) if numero1>numero2: print("numero 1 es mayor") else:print("numero 2 es mayor")
[ "noreply@github.com" ]
noreply@github.com
abb6a3cfa9f13d5524e67ac1ad028b9a3064598b
0ea281ecc203b6fa24f3dd86691458831f693c18
/PRF/__init__.py
89ea30cfbb60c4bee558e00ae60224eeacae8297
[]
no_license
maor63/MachinLearningCourceAutoML
11b919deb2e5cbc7e71909eb354f360697f279ee
645ddd813664c83a585dabec851e9d35a73fba9e
refs/heads/master
2022-12-07T10:08:33.239580
2020-08-25T10:33:10
2020-08-25T10:33:10
279,128,561
0
0
null
null
null
null
UTF-8
Python
false
false
50
py
from .PRF import ProbabilisticRandomForest as prf
[ "maor309@gmail.com" ]
maor309@gmail.com
497a9fbcff26fdec2bfd886a40ed6cae1bc0b5fc
72765c1736a10b86be8583dbd694906aff467068
/tkinter/tkinter_pack/tkinter_font.py
86bf8bb16121622c1a8e3b449bc37793646e9847
[]
no_license
taison2000/Python
05e3f3834501a4f5ef7a6260d8bf3d4ce41930f3
44079700c3db289f92792ea3ec5add6a523f8eae
refs/heads/master
2021-10-16T07:43:55.202012
2019-02-09T02:22:44
2019-02-09T02:22:44
103,322,062
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
#!/usr/bin/python # Comment start with # import sys import tkinter as tk #from tkinter import messagebox as msgBox ## tkMessageBox (v2.x) ==> messagebox (v3.x) top = tk.Tk() lbl1 = tk.Label(None, text='This is a label #1') lbl2 = tk.Label(None, text=' label #2', bg="light green") lbl3 = tk.Label(No...
[ "noreply@github.com" ]
noreply@github.com
c8e37a4e7ff9ca8a83334001a9fab6a03053e105
aa4daa17e7fd45748409052b470d9439d8ec98ea
/classification.py
2ec36ff69cf41aa85c38a6fda564184d86d1e445
[]
no_license
taichishadow/MachineLearning
c0d6e2e59f357280432f1d964cf1a377fe653a56
a4b5e484e24acfad420c39326cf4211863f8ebb6
refs/heads/master
2020-04-02T03:46:36.186396
2018-11-15T03:50:57
2018-11-15T03:50:57
153,982,833
0
0
null
null
null
null
UTF-8
Python
false
false
1,613
py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data mnist = input_data.read_data_sets('MNIST_data', one_hot=True) def add_layer(inputs, in_size, out_size, activation_function=None): Weights = tf.Variable(tf.random_normal([in_size, out_size])) biases = tf.Variable(tf.zeros([1, o...
[ "taichishadow@gmail.com" ]
taichishadow@gmail.com
287ea9e6f95498d1cc39def3a007c223b9d638fb
99a472a443ed55652de88dc82451fdcc22d601f9
/label_maker.py
1cc3d5b5bff9ef693b587a327bb524bf5bd29a8e
[]
no_license
JeremyGibson/gvision
c954144c8c8648619fb0e34cec855a6d72d23cb3
b218e0255d076c7bdb5f5c0c694264399fa4419d
refs/heads/main
2023-03-07T02:44:53.521075
2021-02-15T21:18:57
2021-02-15T21:39:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
#!/usr/bin/python import os from pathlib import Path from datetime import datetime from google.cloud import vision LOG_PATH = Path("logs") PATH_TO_IMAGES = Path(os.environ["PHOTOS_DIR"]) client = vision.ImageAnnotatorClient() POTENTIAL_DOCUMENT = ['font', 'material property', 'parallel', 'stationery', 'recipe', 'pap...
[ "vinod@kurup.com" ]
vinod@kurup.com
c32e21a1fea43aaf7bac000cc54cdf8c21000ccf
3193e002bfddad050033024935a7ed98b84d0516
/Examples/Ex4_ConversionTiming.py
c0b9633a7332351fe9885a5b447587fa1f3e9ff5
[ "MIT" ]
permissive
trevor-sprague/python-ftdi-tmp117
8ba5f4759b3125317bb2916f7f5d83cbd695ef34
1b1f46d828cdba08784e90559a60ace417d1d36f
refs/heads/main
2023-08-23T23:55:41.701008
2021-10-22T22:11:50
2021-10-22T22:11:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,671
py
""" This example sets a variety of conversion times and averaging samples. * Author: Trevor Sprague """ import tmp117_ftdi as tmp from time import sleep # This returns the number of samples averaged # rather than the bits in the config register num_samples = { 0: 1, 1: 8, 2: 32, 3: 64, } t = tmp.TMP...
[ "15519268+trevor-sprague@users.noreply.github.com" ]
15519268+trevor-sprague@users.noreply.github.com
551318f896c81af64b5c3f337cbca640b6e1fac9
aa116906718144d6fb220201f904c48fe6c18610
/travel_search/views.py
d9850f4d19188cb9002cf1448919cca3a620ecee
[]
no_license
eobrie16/travelator
e25d03f11c7fc699ba9c4bac94cbbdc935443fed
7bfb0ecd2456d367a8ac766055be40b9535ed25d
refs/heads/master
2020-05-19T05:15:04.255741
2019-05-04T02:55:34
2019-05-04T02:55:34
184,845,549
0
0
null
null
null
null
UTF-8
Python
false
false
787
py
from django.shortcuts import render from travel_search.models import Search from travel_search.forms import SearchForm from django.views.generic import (TemplateView,ListView, DetailView,CreateView, UpdateView,DeleteView) def index(request): ret...
[ "late.for.lunch@gmail.com" ]
late.for.lunch@gmail.com
78fc154ec5c947913466a5128343165455c515c1
967e4a20cde3f8994b3474e1ec38e937cab29631
/Assignment4/q3.py
a0ec160a0902ce22151bb7e70d9f27c80622ff47
[]
no_license
flowersw/Introduction-to-Scientific-Programming
933cc18b409025612f3ab1ef3b8d0559306b7444
609383262935939d8614664ba9a06776f46b3c8b
refs/heads/master
2020-06-02T15:06:11.726563
2015-07-14T06:37:46
2015-07-14T06:37:46
39,058,028
0
0
null
null
null
null
UTF-8
Python
false
false
953
py
#!/usr/bin/env python #Will Flowers #Assignment 4 #Question 3 import numpy as np from scipy import linalg #part 1 #make arrays A, and B , using array and reshape A = np.array([6,2,5,7,4,1,2,6,9]).reshape(3,3) B = np.array([1,5,3,6,5,4,9,8,2]).reshape(3,3) #take inverse of A and B D = linalg.inv...
[ "will.flwrs@gmail.com" ]
will.flwrs@gmail.com
d4b5acbff7a705c8b97d6891fadf0644a24d47ee
cca03d0c0a0814d40486652ed50df14352313172
/frequency.py
73c39db175d30538604968026eb18e79ef2f522f
[]
no_license
zyouzz/pythontest
001140a553f381498b5264433e2a418d7406187c
243b030a6dc4d97c49c74e9691bb8973096987c4
refs/heads/master
2021-01-19T04:45:01.331158
2017-04-06T07:09:50
2017-04-06T07:09:50
87,393,333
0
0
null
null
null
null
UTF-8
Python
false
false
826
py
#!/usr/bin/env python #-*-coding:utf-8 -*- __author__ = 'jiang' import os import re import collections outfile = open("C://Users//Esri//Desktop//frequency.txt","w") for line in open("C://Users//Esri//Desktop//duplicate1.txt","r"): reline1=line.split(',')[2] outfile.write(reline1) outfile.close() f1= ...
[ "jiangbh13@lzu.edu.cn" ]
jiangbh13@lzu.edu.cn
3311a5480bbbd53f0dc56c5c65f4edc5cf7bdf16
a01d3fd8a236e3a3fc3284b1fa7ed963e0157b8e
/DTL/LoadLocalCOCO.py
af83db7067179a263b88fe7709951760ec503677
[]
no_license
otakbeku/modified-FCOS
a4172776b1f8914868cf30e2cf4963270c770e05
189245905aa55c0b89b39feff31f0085b528e788
refs/heads/main
2023-01-29T17:26:16.648478
2020-12-02T05:17:34
2020-12-02T05:17:34
305,986,243
1
1
null
2020-12-02T05:17:35
2020-10-21T10:19:53
Jupyter Notebook
UTF-8
Python
false
false
3,125
py
import json import cv2 import pandas as pd from pathlib import Path import numpy as np from tqdm import tqdm from pycocotools.coco import COCO class LoadLocalCOCO: def __init__(self, file_path, coco_root, category_names=['dog', 'cat']): with open(file_path, 'rb') as f: self.data = json.load(f)...
[ "iceramngl@gmail.com" ]
iceramngl@gmail.com
199762c881f22d5f4551ff9d86c8f5c8289ceb93
6bc85dd727f138a07aa2aca3c3fdc83bbbeccf29
/newapp/migrations/0004_student.py
8d52bc7c11abf4857e0960548765eb1ee7adfbac
[]
no_license
Vikaas2607/djangodemo
2d272dba84a3fd56929577a8154567952c708730
649f833d48d18f11e3ae59a0e46c8e063fcd0535
refs/heads/master
2020-07-12T00:38:53.770736
2019-08-25T05:57:01
2019-08-25T05:57:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
# Generated by Django 2.1.2 on 2019-08-25 05:33 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('newapp', '0003_delete_student'), ] operations = [ migrations.CreateModel( name='Student', fields=[ (...
[ "pruthvibelide@gmail.com" ]
pruthvibelide@gmail.com
07de95c8229bbe86f2224e3a8dc4500abb508c69
9718994a8c4194f935a2c38b07ea24f4ccd99f8d
/SP_MC/averageSample.py
88efc428c4a9c65228de42763cecf814ee8b129d
[]
no_license
imakine/ProjectNonclassical
437dcd235c955e0128b4ca9a9a8c177a641680db
32f6a05664d2d315d3cbce49f01a97b82c7564b1
refs/heads/master
2021-01-19T17:10:40.606504
2017-06-22T18:35:47
2017-06-22T18:35:47
88,311,933
0
1
null
null
null
null
UTF-8
Python
false
false
2,746
py
# -*- coding: utf-8 -*- """ Created on Thu Jun 8 12:36:40 2017 @author: TH Lab """ def averageSample(fluxpic,variancepic,std,ERRORpic,n,Q,step,sigmatot,flux_local,s,variance,numscattot,numdeath,numesc,region,thickness): ''' Knowing the contribution of the n particles, a average can be done on that. ...
[ "noreply@github.com" ]
noreply@github.com
282f3faecb519c2eb3b8e8343f547ba94684e53b
a51a03520f9aedd9234a4db7a1f00be8b1ce6c10
/order/urls.py
80a25828c64fbfaa855221e32ba54c254dfb5b90
[]
no_license
mohammadmgh78/django-shop-project
abf62cd0ec76d0130c6cd7e72c6a291b7d944176
222803b06f31122ddd947837916e5202c5aa1cac
refs/heads/master
2023-07-31T23:28:15.309225
2021-09-24T12:49:32
2021-09-24T12:49:32
403,244,325
0
1
null
2021-09-24T12:49:33
2021-09-05T07:33:06
HTML
UTF-8
Python
false
false
752
py
from django.conf import settings from django.conf.urls.static import static from django.urls import path from . import views app_name = 'order' urlpatterns = [ path('', views.order_basket, name='order_basket'), path('order-submit/', views.order_submit, name='order_submit'), ...
[ "mohammad.m.ghasemloo@gmail.com" ]
mohammad.m.ghasemloo@gmail.com
6a5c670fd338934dc353a0497ce3a6344938d9b0
d1e8454e0f4f93f54d61fbcc7bf439b71ea97a43
/custom_components/hacs/hacsdatastore.py
da92f61b910276df6e2e3e6472692d9e6593bd49
[ "MIT" ]
permissive
rt400/hacs
eb63d6d0d0eabeddcd6ba5272fc3da3df6ce4118
145dee7d105077e0b7c16a08a2a678355b3b183f
refs/heads/master
2020-06-14T01:42:29.181324
2019-07-02T08:55:32
2019-07-02T08:55:32
194,855,129
1
0
MIT
2019-07-02T12:02:46
2019-07-02T12:02:45
null
UTF-8
Python
false
false
5,922
py
"""HACS Data store.""" import os import json from .const import STORENAME, VERSION from .hacslogger import HacsLogger from .blueprints import HacsRepositoryAppDaemon, HacsRepositoryIntegration, HacsRepositoryPlugin, HacsRepositoryPythonScripts, HacsRepositoryThemes class HacsDataStore: """HacsDataStore class.""" ...
[ "noreply@github.com" ]
noreply@github.com
b30524238baea341f860667ac6a9bf80371a5cfe
0ab456008d980db9cebb89e8a7b3eb76f84d9e94
/conftest.py
0eb4ffd3f14ba38ee05e2f9fbf5ea50d417468e2
[]
no_license
Renkar/Selenium_template
4dbf05bd90dacb20e2839a54080d1ff094be2ece
73a29567390bdaa0d18371449db97c431bc5b5f5
refs/heads/master
2022-12-09T01:57:45.113023
2020-10-03T10:52:48
2020-10-03T10:52:48
189,660,628
0
0
null
2022-11-22T04:31:36
2019-05-31T21:28:24
Python
UTF-8
Python
false
false
1,958
py
from models.application import Application from allure_commons.types import AttachmentType from allure import attach from selenium import webdriver from config import CHROMEDRIVER, GECKODRIVER import pytest def pytest_addoption(parser): parser.addoption("--browser", action="store", default="chrome", help="browser...
[ "k.rozanov@visionlabs.ru" ]
k.rozanov@visionlabs.ru
eb35046e2b6c4f11866a15ec83a1b6d45ec5dcb7
6580ba5d135c4f33f1a0996953ba2a65f7458a14
/applications/ji178/models/fd404.py
1e76f1088602024a7d98867bbe6b8c5253fb2792
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
ali96343/facew2p
02b038d3853691264a49de3409de21c8a33544b8
a3881b149045e9caac344402c8fc4e62edadb42f
refs/heads/master
2021-06-10T17:52:22.200508
2021-05-10T23:11:30
2021-05-10T23:11:30
185,795,614
7
0
null
null
null
null
UTF-8
Python
false
false
3,643
py
# # table for controller: X404 # from gluon.contrib.populate import populate db.define_table('d404', Field('f0', label='key', writable = True , length= 1000), Field('f1', 'text', label='data string', length= 1000), Field('f2', 'text', label='save data string', length= 1000, default='' ), ) # i...
[ "ab96343@gmail.com" ]
ab96343@gmail.com
336901eabfc773ca6a68d1e05b12269c91382c86
0856fd74485007fafda6e3739a105426924cc316
/chapter1.파이썬 기반의 머신러닝과 생태계 이해.py
6ca6d9b4add00f077bd96ce72286ecf3fa9da4da
[]
no_license
formroller/book
3781b7a746b6b2b84c43964ddc39eb867bccd529
490d8e2b226a04ea17802b7c0f55f3f817df1045
refs/heads/master
2022-11-27T04:36:56.024985
2020-08-06T08:58:14
2020-08-06T08:58:14
283,696,076
0
0
null
null
null
null
UTF-8
Python
false
false
8,787
py
# CHAPTER 01. 파이썬 기반의 머신 러닝과 생태계 이해 # 01) 머신러닝의 개념 애플리케이션을 수정하지 않고도 데이터를 기반으로 패턴을 학습학고 결과를 예측하는 알고리즘 기법 단점) 데이터에 매우 의존적이다. (Garbage In - Garbage Out : 좋은 품질의 데이터를 갖추지 못한다면 머신러닝 수행 결과도 좋을 수 없다.) [머신러닝 분류] (지도학습) - 분류 - 회귀 - 추천 시스템 - 시각/음성 감지/인지 - 텍스트 분석, nLP (비지도 학습) - 클러스터링 ...
[ "noreply@github.com" ]
noreply@github.com
10499f45f70777412be4208940c1c3af1934c27a
d658b7c523b6f41fbe9d493d906561a4d19e8388
/2_flask_1/source/FileWrite.py
caa18294d623d29906bcc55b184c72ab011c6e85
[ "MIT" ]
permissive
universe3306/WebStudio2019
b02d2f3c11f6f2ff5671cdb7a8fba89f7a8e1a08
f6827875c449e762bae21e0d4d4fc76187626930
refs/heads/master
2020-04-28T04:39:17.357330
2019-06-29T23:36:45
2019-06-29T23:36:45
174,987,343
0
0
MIT
2019-03-11T11:37:05
2019-03-11T11:37:05
null
UTF-8
Python
false
false
116
py
s = 'hey guys, please don\'t sleep. i\'d like to sleep too.' with open('Filename.txt', 'w') as fp: fp.write(s)
[ "sisobus1@gmail.com" ]
sisobus1@gmail.com
0626a56993ed80769f437f488810dde353cdb39b
6d66f18df1371ac5a0dc7547446d1087119d3e4f
/Лабораторная 2/Lab2/PythonApplication2/module1.py
c4795294fc47be9fed1754c098e08f1dcf7c6951
[]
no_license
Set1902/Labs
cec15da71fb6b38e237831acc1f572e069f60460
25e552582fc330a95f4c5eee5d9d734e3c3ec425
refs/heads/master
2021-07-05T04:39:14.453865
2020-12-28T18:12:34
2020-12-28T18:12:34
215,030,548
0
0
null
null
null
null
UTF-8
Python
false
false
689
py
from lab_python_oop.GeometricFigure import GeometricFigure from lab_python_oop.FigureColor import FigureColor import math class Circle(GeometricFigure): FIGURE_TYPE = "Круг" def __init__(self, color, radius): self.radius = radius self.figure_color = FigureColor() self.figur...
[ "noreply@github.com" ]
noreply@github.com
1f4fc6c7eee5b82ea686875e7a379a7e1f509552
e311664619d469addd2c77566ec97d24affcbfd9
/src/apps/alumno_profesor/migrations/0007_alumno_last_login.py
bf2c5409384950bcfb799164bb23bacfe9e2d549
[]
no_license
danielhuamani/Proyecto-taller-base-datos
361dc8c915dff36a9ce96a7147c11f0af9d51227
5d791383f77f8042a2890db4cfd31079c6d1dc7b
refs/heads/master
2016-08-11T13:47:03.169317
2015-12-22T04:28:52
2015-12-22T04:28:52
46,673,349
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('alumno_profesor', '0006_auto_20151220_1948'), ] operations = [ migrations.AddField( model_name='alumno', ...
[ "danielhuamani15@gmail.com" ]
danielhuamani15@gmail.com
0cbc815d5b29926ad5dd52a02a0ab03c2ff1a3d3
7f3a1c05d6ef1a55151d81e7dd644d965104aa04
/flaskCharts/app.py
70a68c138dcd49b123a0784506c171514f7ad92a
[]
no_license
JEWELTOMY/TEAM14.BDAT1004FP
bbea5347b3c6d85338d544a8257a0bbf6622e6f9
1316aa12784edb251ac11a77f0a6d7aee0421014
refs/heads/main
2023-07-08T21:28:38.454471
2021-08-20T03:44:38
2021-08-20T03:44:38
398,146,352
0
0
null
null
null
null
UTF-8
Python
false
false
428
py
from flask import Flask, jsonify, request, render_template app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') @app.route('/google-charts/bar-chart') def google_bar_chart(): data = {'Currency' : 'USD', 'exchange_timezone' : 'America/New_York', 'type' :'Common Stock...
[ "noreply@github.com" ]
noreply@github.com
91a92bb9bb18f1dc95b743363840202289890264
8d9377486945ead21f78b28cec2e926c1055775a
/projects/capstone/starter/auth.py
50cd664f330fe2a30f091fab52c93cfc3d43b538
[]
no_license
SparkyWhite/FSND
d3eb00601a8a8604439a525692ac35c6f602ee93
c48a81c20255ab16a715e4c985bfce5f3c63de2f
refs/heads/master
2021-01-16T12:20:07.098178
2020-05-11T05:06:49
2020-05-11T05:06:49
243,117,071
0
0
null
2020-02-25T22:32:45
2020-02-25T22:32:45
null
UTF-8
Python
false
false
3,790
py
from flask import Flask, request, abort, jsonify import json from functools import wraps from jose import jwt from urllib.request import urlopen import base64 AUTH0_DOMAIN = 'dev-jie5-13n.auth0.com' ALGORITHMS = ['RS256'] API_AUDIENCE = 'https://udacity-flower-shop.herokuapp.com' class AuthError(Exception): def _...
[ "randy.richards@columbiacu.org" ]
randy.richards@columbiacu.org
9012f3d446c9811c846cbdf005bfb6e188fa54c8
52b5773617a1b972a905de4d692540d26ff74926
/.history/rottenOranges_20200810193226.py
9ad8d01ffd15107d6776d9a79b8fb4622742316f
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
def markrotten(i,j,row,column,grid): if (i < 0 or i >= row or j < 0 or j >= column) or grid[i][j] !=1: return else: grid[i][j] == 2 print('grid',grid) # checking its neighbours markrotten(i+1,j,row,column,grid) markrotten(i,j+1,row,column,grid) ma...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
db4c0ffed3f944393f245cfb18da5f1f37a4f589
fd95dae2f07ede829d05ff81f05c23d7ed6b3906
/Machine_Learning/Naive_Bayes/Naive_bayes_car.py
7a357f30de44d58c62c4cc1fe5eda8758be44e81
[]
no_license
TheAshpak/Projects_For_Learning
1ba2c37edb988dc14dca8483cb3b151067688b01
f3fba03b869011ee92586a4b8e457f53bb046dc1
refs/heads/main
2023-08-21T11:07:45.362472
2021-10-06T17:20:16
2021-10-06T17:20:16
410,826,162
0
0
null
null
null
null
UTF-8
Python
false
false
2,188
py
# -*- coding: utf-8 -*- """ Created on Sat Jun 5 20:30:21 2021 @author: theas """ import pandas as pd import numpy as np #importing data set car=pd.read_csv("D:/DataScience/Class/assignment working/Naive Bayes/NB_Car_Ad.csv") #checking data car.head() #checking null value car.isna().sum() #dro...
[ "noreply@github.com" ]
noreply@github.com
e81481b04fb1f65a6e1d9d47e39919236d78028e
81a62053841c03d9621fd31f8e7984c712c7aed2
/zoo/BEVFormer/attacks/attacker/pgd.py
f0b9a265b5f49216b58f49230fbcad46f430c69e
[ "Apache-2.0" ]
permissive
Daniel-xsy/BEV-Attack
d0eb3a476875f9578c53df9bcb21564dea18ce0c
7970b27396c1af450c80b12eb312e76a8ab52a0a
refs/heads/master
2023-05-23T01:13:44.121533
2023-02-22T05:48:14
2023-02-22T05:48:14
540,328,937
7
1
null
null
null
null
UTF-8
Python
false
false
4,428
py
import torch import torch.nn as nn import numpy as np import random import mmcv from attacks.attacker.base import BaseAttacker from attacks.attacker.builder import ATTACKER @ATTACKER.register_module() class PGD(BaseAttacker): def __init__(self, epsilon, step_size, ...
[ "1491387884@qq.com" ]
1491387884@qq.com
c6ed082882660b9c5251ecc74cba519354b38a9e
60df5f45e7f776c68f694c3cbef85a796b180725
/classes.py
6691aed19cbc8d1c7a310bd4ed194a2aa23aadf8
[]
no_license
MakeNEnjoy/Simple-Pygame-Platformer
f3456bf7db10144351db3b5e5db1dd6e978cbac1
ad9ee1a8dbe8a8cacfea3be4ee0336a452cc5c7f
refs/heads/master
2020-04-09T05:33:57.439631
2018-12-02T17:08:26
2018-12-02T17:08:26
160,069,609
0
0
null
null
null
null
UTF-8
Python
false
false
1,851
py
import pygame from intilialize import * class sprite: def __init__(self, picture, height, width): self.height = height self.width = width self.img = picture self.x = 0 self.y = 0 def update_position(self): gameDisplay.blit(self.img, (self.x, self.y)) def getRect(self): return pygame.Rect(...
[ "noreply@github.com" ]
noreply@github.com
a9b66bfafdae81a479bdb341cbce153b8d8dec62
0fe394b10b39864915fcc4073a5fa050aa02502e
/SoloLearn_Project/skip.py
15ca46a183e4985396b92c323c1ecce9196dcecc
[]
no_license
JohnAssebe/Python
9997d47bba4a056fdcd74c6e5207fc52b002cbfd
b88a7c2472f245dc6a0e8900bbea490cb0e0beda
refs/heads/master
2022-05-14T10:08:37.311345
2022-05-09T19:48:53
2022-05-09T19:48:53
212,562,910
0
1
null
null
null
null
UTF-8
Python
false
false
613
py
def skip_elements(elements): # Initialize variables new_list = [] i = 0 if len(elements)==0: return [] # Iterate through the list for i in range(0,len(elements),2): # Does this element belong in the resulting list? if elements[i] not in new_list: # Add this element to the resulting list new_list.appen...
[ "noreply@github.com" ]
noreply@github.com
7a89b4b5cb4517160df60e2afbf059a4e035a8c1
515409a739443b129e81a290c6b9d47b8bec37f8
/app_temp/WebService_old.py
ff427b022f684ff45de1473f574ff64def209554
[]
no_license
soareslucas/AppDrone4IoT
ae2e26b91393a27a609b32a172ad1a4e732789c5
c03aa1f94b9126109698b579bc9ba48b7d1a0eea
refs/heads/master
2023-05-26T18:12:18.656542
2020-07-26T18:33:37
2020-07-26T18:33:37
193,954,856
0
0
null
2023-05-02T18:32:41
2019-06-26T18:06:36
Python
UTF-8
Python
false
false
9,133
py
''' Created on Jun 1, 2019 @author: lucassoares ''' from flask import Flask import json from flask import jsonify from flask import Response from flask import request from flask_cors import CORS, cross_origin import numpy as np import Otimizacao as otim import Sensor as Sensor import Site as Site import TabuSearch as t...
[ "lsrodrigues@tjgo.jus.br" ]
lsrodrigues@tjgo.jus.br
06d9cc3109dd47541d7395954e7811434852a59f
5ee7789492c5b31b78fea05210973f031d9a7664
/venv/lib/python2.7/stat.py
00606af7d80315840c5a141347e33166400fe061
[]
no_license
Gegegegensan/flask-quiz
811288ccbb77070678c2ff7e024b3dca52a341cd
a92d082fcb1f050bea2c7baed5f321bffeffd6b4
refs/heads/master
2022-12-12T06:52:56.589428
2019-09-27T12:24:05
2019-09-27T12:24:05
210,606,803
0
0
null
null
null
null
UTF-8
Python
false
false
51
py
/Users/ryo.yamamoto/anaconda2/lib/python2.7/stat.py
[ "ryo.yamamoto1106@gmail.com" ]
ryo.yamamoto1106@gmail.com
563ec0aa200133b9fe88ba45dbb936ed22b766c0
a87c5c1f99e1a0b1602f2f0229d96f0794844eed
/logView/view/models.py
36b5a4f2e9f42da1f02b262639e20762d49decb2
[]
no_license
nullne/log_analysis
bacf9a618bb1ae020ca36616a6e99c3bd8d0dea7
4e8cce46a9c8e930fade255f345ebaaeb9e70d92
refs/heads/master
2021-01-13T14:20:15.349108
2014-07-30T09:36:27
2014-07-30T09:36:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
926
py
from django.db import models class LogAnalysis(models.Model): name = models.CharField(max_length=255, unique=True) project = models.CharField(max_length=255) manipulate_time = models.DateTimeField('Manipulate Time') start_time = models.DateTimeField('Start Time') end_time = models.DateTimeField('En...
[ "co.crary@gmail.com" ]
co.crary@gmail.com
1edb9ae7fd8237f94d649a9af47757a6ad086796
95ad637ede0acdd88bbfffd10e344aff89ec298f
/impc_etl/jobs/loaders/quml_loader.py
faeb2f1ac5cd8b9827afbcbfbb00603878b02695
[ "Apache-2.0" ]
permissive
luwei1234567/impc-etl
c13386b0f6871c17353ae4884cc444222e66f91b
8bad084c00ec63b2b5d109f84db77dd0172d142d
refs/heads/master
2020-04-03T20:43:59.859205
2018-10-31T12:43:11
2018-10-31T12:43:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
""" Queen Mary University of London data loader load_diseases: load_disease_models: """
[ "fico89@gmail.com" ]
fico89@gmail.com
e6ca5c3071ee46e7cd82950b86454f1d9d1f446b
ff757d3b24b8af8d3cfbcfcf2a4ec574dd8f0f26
/typeidea/blog/migrations/0002_auto_20190321_1900.py
bbf0f80f20de3d97f4c1eb57eaa4a71b7af6e1cc
[]
no_license
Dannystudy/blog
e07d10c1324d36b5ed5bc170cd036d8291adfa71
68e137d450dc755c59ccfc9dfae025ba7e688be2
refs/heads/master
2020-04-28T23:05:56.953160
2019-04-15T15:41:29
2019-04-15T15:41:29
174,994,240
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
# Generated by Django 2.1.7 on 2019-03-21 11:00 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.RenameField( model_name='category', old_name='ower', new_nam...
[ "480474021@qq.com" ]
480474021@qq.com
85f2ca0acb3c50a40ed1dab164e84bfe27c65fb2
f3a65e88556873234d12fb25edd2e1831ea56b2c
/models/label.py
21e8ba8f61bcb14c4d4372d38cb525a9a21b4e51
[]
no_license
Kailianghu/A-Hierarchical-End-to-End-Model-for-Jointly-Improving-Text-Summarization-and-Sentiment-Classificatio
f3ec577a45171409ec99a5c00f262ef79513cfc6
73f2be521010198adb9a858650fbc813a4a61bea
refs/heads/master
2020-05-01T18:05:45.750878
2019-03-25T15:47:30
2019-03-25T15:47:30
177,616,651
4
0
null
null
null
null
UTF-8
Python
false
false
8,133
py
''' @Date : 2018/1/23 @Author: Shuming Ma @mail : shumingma@pku.edu.cn @homepage: shumingma.com ''' import torch import torch.nn as nn from torch.autograd import Variable import utils import models class label(nn.Module): def __init__(self, config, use_attention=True, encoder=None, decode...
[ "dwing@DWingdeMBP.lan" ]
dwing@DWingdeMBP.lan
770872511d9e39aefc929ca08fc5069abee51261
054c480cfc53139e1cbd210ea7ccfff2aad0f377
/web-APIs/REST jSON.py
ed19f8df4b02ccbc92124b797098fe8aca545407
[]
no_license
brightbortey/web
90fb7a124d8769a1604e42577627deb28291a177
cbc946348c6991ffe46b102471e5daaff356822d
refs/heads/master
2020-06-21T22:23:19.738924
2019-07-18T10:35:20
2019-07-18T10:35:20
197,565,894
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
from pprint import pprint import requests r = requests.get('http://api.openweathermap.org/data/2.5/weather?q=London&APPID=2292caf2ed6c00c89402a12881f42fa0') pprint(r.json) #london in http is location of area to collect weather data from
[ "brightbortey76@gmail.com" ]
brightbortey76@gmail.com
ce9a5031900e47af49c265a0167a4e10b2e39d9e
97d1fe99690ea7e02d2ba0e1750b27c5123ecbcc
/google_code_university/basic/string1.py
fd9025e2f52de5376f1066727db0d477a79bbec9
[ "Apache-2.0" ]
permissive
AdmiralAsshat/learn_python
3c7f9ac7518b9da1e6d6bdc5dcf6bc4bdb813d67
89fd515855b5dd487e45d0970f1790cde1e88657
refs/heads/master
2021-01-19T10:02:22.650283
2016-10-29T18:46:03
2016-10-29T18:46:03
13,074,466
7
0
null
null
null
null
UTF-8
Python
false
false
3,627
py
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Basic string exercises # Fill in the code for the functions below. main() is already se...
[ "asshatadmiral@gmail.com" ]
asshatadmiral@gmail.com
347400c8060a73e66bfad94000c02563352b964c
27001beaff274fe06453d16e981ebf46d954cef9
/distribuidoraml/wsgi.py
7d36a6da873fb834052407830b28d407af3959b9
[]
no_license
josecifuentes/distribuidoraml
03518268f51ced98f167b339417497807a0eee01
0e24e8d79e148a319209676837d9c6f625ff9842
refs/heads/master
2020-08-03T00:31:25.573011
2019-10-28T20:21:35
2019-10-28T20:21:35
211,564,932
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
""" WSGI config for distribuidoraml project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJAN...
[ "josecifuentes22@gmail.com" ]
josecifuentes22@gmail.com
f911704947fed0f321d384a421764df70bde047a
dc1e3e5ffd3a7c67e4879e62ba23f75a3be08e29
/problems/product_of_array_except_self.py
3c25d072930287bd7ed72b788b7f1b1bb687ddea
[]
no_license
historybuffjb/leetcode
c1d97531d4824f7985b6d55858ecd1f7df52e5da
663615341f5de5df59916fdb9a8e43d0e543f70f
refs/heads/main
2023-03-25T10:28:24.582747
2021-03-26T02:29:36
2021-03-26T02:29:36
350,187,770
0
0
null
null
null
null
UTF-8
Python
false
false
1,522
py
""" Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]. The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer. """ from typing import List def product_except_self(nums: List[int]) -> List[int]: "...
[ "historybuffjb@gmail.com" ]
historybuffjb@gmail.com
9f7ab36b72ea976d64ec31fe193a1ffd67c51b33
3ced55b04ec82df5257f0e3b500fba89ddf73a8a
/src/stk/molecular/functional_groups/factories/bromo_factory.py
efd349b3d0830c3e38e99827798093df7e4a8813
[ "MIT" ]
permissive
rdguerrerom/stk
317282d22f5c4c99a1a8452023c490fd2f711357
1ac2ecbb5c9940fe49ce04cbf5603fd7538c475a
refs/heads/master
2023-08-23T21:04:46.854062
2021-10-16T14:01:38
2021-10-16T14:01:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,018
py
""" Bromo Factory ============= """ from __future__ import annotations import typing from collections import abc from .functional_group_factory import FunctionalGroupFactory from .utilities import get_atom_ids from ..functional_groups import Bromo from ...molecule import Molecule from ...elements import Br __all__...
[ "noreply@github.com" ]
noreply@github.com
2fa80d77bbcd7f45d70f7cecb8e604e06b51e3aa
4406e24a80219f5efa7280e354167075f852a3dd
/Lesson 05 - Prefix Sums/GenomicRangeQuery.py
369c345faa8dcfc7eecf17c35f715ea1241c12d2
[]
no_license
rnmourao/codility-lessons
dfb65d86f0aa423aa016b208a1668071c0924098
df72ba3d228fa3fd32a700aa6f81e8e7876fefc9
refs/heads/master
2022-12-09T20:12:46.020978
2020-09-03T23:36:05
2020-09-03T23:36:05
216,432,389
1
0
null
2022-12-08T07:30:10
2019-10-20T21:52:42
Python
UTF-8
Python
false
false
2,443
py
""" A DNA sequence can be represented as a string consisting of the letters A, C, G and T, which correspond to the types of successive nucleotides in the sequence. Each nucleotide has an impact factor, which is an integer. Nucleotides of types A, C, G and T have impact factors of 1, 2, 3 and 4, respectively. You are go...
[ "robertonunesmourao@yahoo.com.br" ]
robertonunesmourao@yahoo.com.br
c69aa80b4baf01b7420bb8b20be77c5cb2d50b21
9309ed5f3b8ef099cfc18118d023b47586789e54
/rssreeder/cgi-bin/templatebbs.py
cedc6f52e672d911b420e74f5797b4536dbf2bbf
[]
no_license
soel/My_training
3abe5056041f0dfaa696173da24312d452737fe2
974353cf08005bd040b43cd90f403735924236a0
refs/heads/master
2021-01-21T12:39:49.886332
2012-12-26T00:44:17
2012-12-26T00:44:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
#!/usr/bin/env python # coding: utf-8 import sqlite3 from string import Template from os import path from httphandler import Request, Response, get_htmltemplate import cgitb; cgitb.enable() con = sqlite3.connect('./bookmark.dat') cur = con.cursor() try: cur.execute("""CREATE TABLE bookmark ( t...
[ "kanbara@www16290ue.sakura.ne.jp" ]
kanbara@www16290ue.sakura.ne.jp
d3bed57051b54e53f42055cf854feb30901805e1
245d2c1c9e942c33c10e7cf4e1df397f5eb51d8c
/imdb.py
91c30c958525653efb4d75817df5394a1beda3ab
[]
no_license
henrigerardin/imdbWebScrapping
abfd9d553d116956f828f08ad3383232cf0732b2
00cd23e3334b23b6b46194afa7da586d2deb0caa
refs/heads/master
2023-01-16T03:16:18.799018
2020-11-25T10:16:48
2020-11-25T10:16:48
315,668,899
0
0
null
null
null
null
UTF-8
Python
false
false
3,404
py
from bs4 import BeautifulSoup import urllib.request import csv import time urlpage="https://www.imdb.com/chart/top/?sort=ir,desc&mode=simple&page=1" # query the website and return the html to the variable 'page' page = urllib.request.urlopen(urlpage) # parse the html using beautiful soup and store in variable 'soup' ...
[ "henri.gerardinphei.yncrea.fr" ]
henri.gerardinphei.yncrea.fr
501535d57b23c1a24ea204b2cd5590ee52a9fc43
b1f22eb5ae339d96f92c39d17d7425c527d3502b
/chat/bin/tap2rpm
65b5649aecdcf20598524070989c26e191aea327
[]
no_license
luxorv/Chat-GBH
e722e8a59cb18ded83e83d9a5333a0f132479699
c29221ac5f6217261653efaab1aab014dcf32ce2
refs/heads/master
2020-12-31T06:31:40.594723
2014-04-24T07:14:46
2014-04-24T07:14:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
356
#!/Users/vmp2408/Desktop/untitled/chat/bin/python # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. # based off the tap2deb code # tap2rpm built by Sean Reifschneider, <jafo@tummy.com> """ tap2rpm """ import sys try: import _preamble except ImportError: sys.exc_clear() from twisted.s...
[ "vmp2408@gmail.com" ]
vmp2408@gmail.com
89f9f75f141176d6f18a759ab6418ece84475c39
d89377b95544a2516ba6d49501d2ebfb5a1f57a8
/Modules/Blueprint/spline.py
36fecf917bb98f0c14efaebca47750abce8c3b99
[]
no_license
xtrimzz/Autorig-Tool
7bd97d7bf7346ece1640c66f439639a5a3a21ec0
50af072a09f402c47e38b3e43a8a88d23ccc7d00
refs/heads/master
2020-12-30T17:00:16.142220
2017-05-12T05:09:25
2017-05-12T05:09:25
91,055,707
0
0
null
null
null
null
UTF-8
Python
false
false
9,033
py
import os import maya.cmds as cmds import System.blueprint as blueprintMod #reload(blueprintMod) import System.utils as utils reload(utils) CLASS_NAME = "Spline" TITLE = "Spline" DESCRIPTION = "Create an optionally interpolating, joint-count adjustablee, spline.Ideal use: spine, neck/head, tails, tenticles ..." ICO...
[ "aoadegbite15@gmail.com" ]
aoadegbite15@gmail.com
1f5752e38c646451451a6cd1f83f73b71eabb317
ee6ca7dc9a6ea376c8cb0eecec10a24d9f7acd2e
/awards/migrations/0001_initial.py
9790f11fbd70365f0553981c28f40c60a976abfc
[]
no_license
danizen/pack493-awards
71f3a8d695c806bbe28471acabf6192849d2d7d6
8fe65470c2a73bccad8045bdb87d60f54a1e6a55
refs/heads/master
2020-12-31T06:24:09.248028
2017-08-31T04:55:38
2017-08-31T04:55:38
57,184,962
0
0
null
null
null
null
UTF-8
Python
false
false
2,142
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='Adventure', fields=[ ('id', models.AutoField(ve...
[ "dan@danizen.net" ]
dan@danizen.net
436118acf5efe3df504115580077ad3ab4c9b84b
6e7e823b98613fb5bfaba2240a22ae02e649057d
/python/test_fk.py
0b12817f18a420e7a11213161307685789988d15
[]
no_license
panlei7/FindFK
59f01e530f221c8729cc010fb4ce6f30c3211a62
64ce9fe0c4144f093441615972879e2a415f5efd
refs/heads/master
2020-12-24T10:31:19.337571
2018-04-25T03:49:23
2018-04-25T03:49:23
73,149,045
0
0
null
null
null
null
UTF-8
Python
false
false
2,053
py
import numpy as np import matplotlib.pyplot as plt store = dict() current_mode = -1 f = np.loadtxt("f1.txt") k = np.loadtxt("k1.txt") X = np.loadtxt("./input_fk.txt") for x in X: x /= np.max(x) def onclick(event): global current_mode if current_mode == -1: current_mode = 0 store[0] = [] ...
[ "panlei7@gmail.com" ]
panlei7@gmail.com
db431d9e93dd7b65b8dad33e2dccb31adb4e6276
6c137e70bb6b1b618fbbceddaeb74416d387520f
/pyqtgraph/examples/contextMenu.py
c2c5918dbf2642bbf316f24c4f9143c973f8d93c
[ "BSD-2-Clause", "MIT" ]
permissive
zhong-lab/code
fe497c75662f8c3b7ab3c01e7e351bff6d5e8d15
b810362e06b44387f0768353c602ec5d29b551a2
refs/heads/master
2023-01-28T09:46:01.448833
2022-06-12T22:53:47
2022-06-12T22:53:47
184,670,765
2
7
BSD-2-Clause
2022-12-08T21:46:15
2019-05-02T23:37:39
Python
UTF-8
Python
false
false
4,497
py
# -*- coding: utf-8 -*- """ Demonstrates adding a custom context menu to a GraphicsItem and extending the context menu of a ViewBox. PyQtGraph implements a system that allows each item in a scene to implement its own context menu, and for the menus of its parent items to be automatically displayed as well. """ imp...
[ "none" ]
none
a64ace726598022b6eb6b6c93eb08a3d7c827d98
a69f551e9dcc118e730c4e85e096993535fa0c70
/AtCoder/ABC121/D - XOR World.py
7e24c59deb2d5d80b034017cd7ed27237a00889b
[]
no_license
DHaythem/Competitive-Programming-Solutions
ef30c9418f47e522b8f5096f6077c487ed247500
5c4e6b78ee9657ee46abd1fce082ef11acd6a13c
refs/heads/master
2021-07-07T16:29:55.013246
2021-03-18T22:12:03
2021-03-18T22:12:03
229,136,575
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
#https://atcoder.jp/contests/abc121/tasks/abc121_d a,b=map(int,input().split()) a=max(0,a-1) if a%4==0: a=a elif a%4==1: a=1 elif a%2==0: a=a+1 else: a=0 if b%4==0: b=b elif b%4==1: b=1 elif b%2==0: b=b+1 else: b=0 print(a^b)
[ "noreply@github.com" ]
noreply@github.com
1974a71145eabc83d069ae9eb89f4b22ccb733e3
6044266e775c87afed99397c8bb88366fbbca0e7
/scrapy_projt/xpath_tutorial_1/xpath_normalize-space_span.py
a61ab6ea4dc655eeab231d5be07451831d6f7fc6
[]
no_license
ranafge/all-documnent-projects
e4434b821354076f486639419598fd54039fb5bd
c9d65ddea291c53b8e101357547ac63a36406ed9
refs/heads/main
2023-05-08T20:01:20.343856
2021-05-30T10:44:28
2021-05-30T10:44:28
372,186,355
0
1
null
null
null
null
UTF-8
Python
false
false
1,181
py
import scrapy html="""<form class="variants" action="/cart"> <a class="thumb fancybox image_outer" href="products/apple-iphone-5s-16gb-black--space-gray-chernyj" data-fancybox-group="gallery5"> <img src="http://first-store.ru/files/products/iphone%205S%20black_1.100x112.jpg?16ef5c4132fc88594851f92ccc2f3437"...
[ "ranafge@gmail.com" ]
ranafge@gmail.com
929be28c327ea60f84b8fcbd619a0898a6af7ab9
6dd234e23db8c0ca09e09ae87482da05cdee6c70
/prevadoproj/te/urls.py
cba65ba07e2ebccf934e82b64de05e87885b0acb
[]
no_license
CodeVINCI/privado
3f8eee4386b35d3a0d914db9b946e54c49445f93
6a6f89618c673a903416740afae0fbce95bde924
refs/heads/main
2022-12-27T04:31:20.896969
2020-10-10T17:46:13
2020-10-10T17:46:13
302,954,028
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
from django.urls import path, include from . import views urlpatterns = [ path('customer/<int:customerid>/templates', views.customer,name='customer'), ]
[ "abhishek.c@karza.in" ]
abhishek.c@karza.in
83c644506d964c736a4d5cae65f08195d41dc016
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/7yo5FJX4xFbNxim5q_22.py
9783436a95859a2a95ce2cbc4b159661968c0f8b
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
def harry(po): if len(po[0])==0: return -1 downright = sum(po[-1])+sum(po[i][0] for i in range(len(po)-1)) rightdown = sum(po[0])+sum(po[i][-1] for i in range(len(po)-1)) return max(downright,rightdown)
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
c5f49a28f9ad42e2f1e91d7923dcc02fd9909ffb
9e58bd486211be6bf8e0b3ee799b8503d74ed73f
/20-21_day/scoreboard.py
0df250a0082939e275ef734c4be3fbb7aee313a6
[]
no_license
DorakAlba/100_days_of_python
f3e18fae9df21cc09663ef51f5784d2fec8020a8
6a24cfd9d3c47571b93548a5e954446cdab35744
refs/heads/master
2023-05-06T09:45:50.703282
2021-05-25T06:33:22
2021-05-25T06:33:22
347,164,007
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
from turtle import Turtle class Scoreboard(Turtle): def __init__(self): super().__init__() self.score = 0 self.color('white') self.speed('fastest') self.hideturtle() with open('data.txt', mode='r') as data: self.high_score = int(data.read()) self...
[ "mr.demyank@gmail.com" ]
mr.demyank@gmail.com
d0c4d0d97f9a1c42d2bc97257e59f28c94e033e4
6f56dbc188abcc8156eb7dae625243192516675b
/python/jittor/test/test_lazy_execution.py
ce276b4798848f4d6ea6f3e482b3ff93859baa1f
[ "Apache-2.0" ]
permissive
linker666/jittor
80e03d2e8dec91bb69d4d6f7b0d222bfbf6c750f
96545765eca7364ec4938e1fa756bce4cb84dfb8
refs/heads/master
2023-02-09T21:28:48.706061
2021-01-05T15:08:33
2021-01-05T15:08:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,315
py
# *************************************************************** # Copyright (c) 2020 Jittor. All Rights Reserved. # Maintainers: # Meng-Hao Guo <guomenghao1997@gmail.com> # Dun Liang <randonlang@gmail.com>. # # # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of ...
[ "randonlang@gmail.com" ]
randonlang@gmail.com
73cfe49df23e53d9d10b8fd0c9d61e190714c862
58d4f78c44d75ed63655968064ad70d30bad2b87
/app/irsystem/models/database.py
83c267c1fee83dff9e511cfcabd8eb58cf64ca02
[]
no_license
maobowen/BookHub
e24fbffa0a5570145998b6023a0b6e26ceb3d546
594bab830b52a84632dabf5af6547263447676a8
refs/heads/master
2020-04-28T17:13:42.228926
2019-04-30T04:25:11
2019-04-30T04:25:11
175,438,258
0
0
null
2019-04-30T03:50:12
2019-03-13T14:33:37
Python
UTF-8
Python
false
false
2,986
py
from app.irsystem.models import db, Book import json import os def init_db(): DATA_DIR = os.path.abspath(os.path.join(__file__, "..", "..", "..", "data", "v2")) ALL_BOOKS_FILENAME = "books.json" ALL_REVIEWS_FILENAME = "reviews.json" BOOK_REVIEW_MAP_FILENAME = "book-review-map.json" COS_SIM_DESC_FI...
[ "b.mao@columbia.edu" ]
b.mao@columbia.edu
53347a945f1e45e931d5c814c294c65e773e2f2b
cd6a1e4c5dec0b6ce8f445e61b95ead1a4006871
/data_check/plot_energy_from_columnfile.py
99ba11db1432e21e1c816a5dc41ce051a86d244d
[]
no_license
jessimic/LowEnergyNeuralNetwork
d6884575223eed88bacbb88d036c68aba9adfd8c
b773ce4b4e4915a279be464cff148bc7833fb07b
refs/heads/master
2022-05-03T13:16:37.871962
2022-05-01T21:35:55
2022-05-01T21:35:55
163,332,551
2
4
null
null
null
null
UTF-8
Python
false
false
3,786
py
import matplotlib.pyplot as plt import numpy as np import argparse parser = argparse.ArgumentParser() parser.add_argument("-i", "--input",default=None, dest="input_file", help="input file and path") parser.add_argument("-n", "--name",default=None, dest="name", help="name of samp...
[ "micall12@msu.edu" ]
micall12@msu.edu
5271fe704839daf77985cb682e036e485b9a1bc6
dc3906aca33187fba00dd7c61c10261ec521189d
/regis_project/manage.py
577368b9285cca824298fc2d84092eee2a8f5bf4
[]
no_license
bharatasnani/practice
d321d4433a73f820cb38bc41399d098b871cb501
827fa29338a400dbb8951c3b7f7f5abc75b77564
refs/heads/master
2021-04-30T14:15:33.988295
2018-02-12T07:28:12
2018-02-12T07:28:12
121,213,919
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "regis_project.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure tha...
[ "bharatasnani777@gmail.com" ]
bharatasnani777@gmail.com
67c247e23245971a4c411bbfc72e80d3cb854cc8
a8577e7ad1652458de236b85636069a1ca0c9c96
/tests/test_meta_types.py
691222cfe5541ade46291eed4406fdc7ec7e4efd
[ "MIT" ]
permissive
codefortulsa/oscn
596678649b9e5e0db58ad6ad7313cfcd90b907b0
012f721127849ff24f3f8b3c17c640c388e82591
refs/heads/main
2023-02-11T15:11:59.651899
2023-01-26T23:16:05
2023-01-26T23:16:05
140,227,962
11
10
MIT
2022-12-26T21:31:55
2018-07-09T03:42:54
Python
UTF-8
Python
false
false
592
py
import oscn def test_get_type_desc(): cm_desc = oscn.type("CM") assert isinstance(cm_desc, str) assert "CRIMINAL MISDEMEANOR" in cm_desc def test_get_all_types(): dict_of_all = oscn.types assert isinstance(dict_of_all, dict) def test_judges(): judges = oscn.judges assert isinstance(jud...
[ "johnadungan@gmail.com" ]
johnadungan@gmail.com
c55d7e21b155df85decbb4db71b4bff34ba005ab
c80b3cc6a8a144e9858f993c10a0e11e633cb348
/components/ally-core-http/__setup__/ally_core_http/definition_time_zone.py
c7622168d8027cd0b24ee99b10fc4017a9d64a68
[]
no_license
cristidomsa/Ally-Py
e08d80b67ea5b39b5504f4ac048108f23445f850
e0b3466b34d31548996d57be4a9dac134d904380
refs/heads/master
2021-01-18T08:41:13.140590
2013-11-06T09:51:56
2013-11-06T09:51:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,179
py
''' Created on Jul 17, 2013 @package: ally core http @copyright: 2012 Sourcefabric o.p.s. @license: http://www.gnu.org/licenses/gpl-3.0.txt @author: Gabriel Nistor Provides the time zone header definitions. ''' from ..ally_core.definition import definitions, defin, errors, error, desc from .definition_header import ...
[ "gabriel.nistor@sourcefabric.org" ]
gabriel.nistor@sourcefabric.org
bea63463962444b7864be146c2a239f23b09c230
26b4e6d43f6d06a50def6f199b7e28fa7613d824
/mysite/settings.py
0b7d6ff86a9465c2d573fb4dfc1ddf9eabc064dc
[]
no_license
holong3355/my-first-blog
1c088a4a3dbd84e6102f860929a2063216f4d020
6cd11fd8999e77391595695d757666c43aa2e29b
refs/heads/master
2023-02-10T08:11:15.822061
2021-01-11T03:07:44
2021-01-11T03:07:44
327,299,049
0
0
null
null
null
null
UTF-8
Python
false
false
3,182
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os # n...
[ "bsangmoo@gmail.com" ]
bsangmoo@gmail.com
111c2327699b369d1230a9d7c3a2f82c38de7fbb
c224f9a56e601caf7fa0bf6faa46307b6530cecc
/django_redis_sdk/compressors/zlib_compressor.py
c501ddbef4e84b668a4ccf22ee00755d92e39432
[ "MIT" ]
permissive
midhuncnair/django_redis_sdk
6dc95e126ebc132ac6b52c5b3e90f6691a77530f
f5af1b0a9ec6f3e95fd96adfd3ebb8703058ae71
refs/heads/master
2022-05-09T03:54:35.058467
2020-04-10T09:03:36
2020-04-10T09:03:36
247,053,543
1
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
#!/usr/bin/env python3 """Defines the zlib compressor for django-redis-sdk backends """ # from __future__ import __all__ = [ 'ZlibCompressor', ] __version__ = '1.0.0.0' __author__ = "Midhun C Nair<midhunch@gmail.com>" __maintainers__ = [ "Midhun C Nair<midhunch@gmail.com>", ] import zlib from django.core....
[ "midhunch@gmail.com" ]
midhunch@gmail.com
f663b36df0521678d0c0adddcc3dfdefd10e7c2d
9fb0162a88190f20d84b2ffd0b505c0a9fff4e19
/draughtcraft/tests/controllers/test_signup.py
981bb2b6cc8b60638bd5fc27f842cdf91e271e06
[]
no_license
johnmontero/draughtcraft
3414924e7d0f659f6c3c6aaab47507f3fc0e7818
eb48473f880555119fe9497ed3db23e8a9f5c5e9
refs/heads/master
2021-01-15T18:36:34.137605
2011-11-27T22:01:24
2011-11-27T22:01:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,998
py
from pecan import conf, abort from draughtcraft.tests import TestApp from draughtcraft import model import fudge class TestSignup(TestApp): def test_signup_form(self): assert model.User.query.count() == 0 self.get('/signup') assert model.User.query.count() ...
[ "lists@ryanpetrello.com" ]
lists@ryanpetrello.com
9bc8fe7e994e5c3004fd47058541cc3827a0bf20
ddc2c0aead0b410c1033a3d4e38bac6465634eda
/blog/migrations/0002_comment.py
6f5a8fa1f4f384eb9add7917543452afa9328888
[]
no_license
yjisu/web_final
420c499637d2aa52d1ead5a0bd6d995572e08655
7a343f8dfe2b715c3ee371659c3f8939021fca43
refs/heads/master
2023-05-24T04:06:05.448077
2021-06-22T14:17:19
2021-06-22T14:17:19
376,479,435
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
# Generated by Django 3.2.4 on 2021-06-22 09:39 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( n...
[ "yangjisue@naver.com" ]
yangjisue@naver.com
39d8b6fd7fa2756d67632420685f49522dbcf230
45f997c4ebb26871783f8d6861695ead765b094f
/window.py
042d5ded857d614b1d66f71e97f82215e206585b
[]
no_license
Remixman/Game-of-Life
f2a3afb6cd0730c6228b259d470ef544d500f517
fba2dd428dbc1b49356db8ed439aa2272fc78c00
refs/heads/master
2020-05-17T13:32:26.015505
2014-01-18T00:37:50
2014-01-18T00:37:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,024
py
#!/usr/bin/python import sys import time from random import random from PySide.QtCore import * from PySide.QtGui import * class Board: def __init__(self, born_prob): self.numrow = 50 self.numcol = 70 self.matrix = [[0 for i in xrange(self.numcol)] for i in xrange(self.numrow)] self.init_matrix(born_prob) ...
[ "haoremixman@gmail.com" ]
haoremixman@gmail.com
3164a94179deb88bee61e2a1db774682e336a343
720f6c3cf6a8a263bf499574eb725ce05545fede
/misc/maze_2.py
48dcf26d66afc7ac512316ea98632813f97b6ff5
[]
no_license
chirag9127/programming_puzzles
d4adb1b6ad2b6eeaa764c69687334e458423d364
485c706d621c216cd8cc1cefa107985303df4e55
refs/heads/master
2020-12-25T16:47:53.503730
2017-07-15T19:29:56
2017-07-15T19:29:56
67,198,039
1
0
null
null
null
null
UTF-8
Python
false
false
2,362
py
""" Shortest path from start to destination in a maze. """ import heapq import pytest @pytest.mark.parametrize("maze,start,destination,expected_output", [ ([[0, 0, 1, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 1, 0], [1, 1, 0, 1, 1], [0, 0, 0, 0, 0]], (0, 4), (4, 4), 12), ([[0, 0, 1, 0, 0], ...
[ "chirag.mahapatra@gmail.com" ]
chirag.mahapatra@gmail.com
1096c922fa48d9406af901575f19d170fc516b69
8ab49a9905d0d93594f8e12b1c2a6973f3181458
/src/plugin.video.iptv.archive.recorder/listDownload.py
d2dfbc1fdfa25d8d78a4ced025b9785b84d7ef47
[]
no_license
kodiwpigulce/tbrek-kodi-repo
5ab00e3b045172fbb5155b635d59897549413ff9
73bb7cca67cc6a761602588360dbaf079960cd72
refs/heads/master
2023-01-02T06:31:47.100198
2020-10-09T23:02:11
2020-10-09T23:02:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,595
py
from __future__ import unicode_literals import locale import time from datetime import datetime from dateutil import parser from kodi_six import xbmc, xbmcgui DATE_FORMAT = "%Y-%m-%d %H:%M:00" def log(x): xbmc.log(repr(x), xbmc.LOGERROR) def get_format(): dateFormat = xbmc.getRegion('datelong') timeForm...
[ "tbrek@tbrek-bymiles.local" ]
tbrek@tbrek-bymiles.local
0517c6dc55ade19ce0221bcd0a876edca10998ea
5b360601b7a49fffa1772afc2b6e9ad3a023f73d
/static_handler.py
dcd0e011527fa08942925db649c00e90f073d4b1
[]
no_license
linjielangdang/HttpServer
bb65342b086bd4f11cd49b1e772af23dc91c15ab
af2f5786121ea84d154281b0b9ef9874e4d27467
refs/heads/master
2021-01-20T18:24:34.266008
2016-07-17T08:20:22
2016-07-17T08:20:22
63,522,804
1
0
null
null
null
null
UTF-8
Python
false
false
4,755
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import os import sys import shutil import mimetypes import urlparse import urllib from exception_handler import * from template import * from util import * # implementation of handlers, each handler class should implement a handle_request(serv) method # For now, static han...
[ "linjiexin@haizhi.com" ]
linjiexin@haizhi.com
a1897a7d243ec8b743587dcdfd420305569a05e8
d94dc5fe4afb3101a637abab619148a5ac35cc93
/model/solvepolynomial.py
474c94f4a10bc13a3ed4005948a4a3421af9ee53
[]
no_license
mmszhezhi/xylab
6416edeb8dd8ac90d173f9b755726c70613c311b
59208fbfdf0146374a71a3e8e62140ebd6815d04
refs/heads/master
2023-02-21T19:10:07.157859
2021-01-21T06:43:41
2021-01-21T06:43:41
324,989,021
0
0
null
null
null
null
UTF-8
Python
false
false
6,197
py
import math import numpy as np import numpy from sklearn.linear_model import LinearRegression class SolvePolynomial(): def __init__(self, order): self.order = order self.model = None def monomial(self, a, b): return lambda x: a * math.pow(x, b) def polyList(self, order): r...
[ "mmszhezhi@gmail.com" ]
mmszhezhi@gmail.com
f6474eeb17b804211570adc1aee5b244101d523a
911b2f303db4eedc89f645cec236447abb0cbda5
/ShortestDistanceToACharacter.py
3b9cbd884980d304b88fbba6bf6ef363548a2a49
[]
no_license
hoangthongtv91/LeetCode
a259cc87a8223b130f7c693097001cdfad285a68
df73cf66eb30cd10a162e35b399ddfa2c0e3bb29
refs/heads/master
2020-07-02T14:15:10.872191
2019-08-23T18:58:09
2019-08-23T18:58:09
201,553,906
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
from typing import List class Solution: def shortestToChar(self, S: str, C: str) -> List[int]: listS = list(S) arr = [] ans = [] for i in range(len(listS)): if listS[i] == C: arr.append(i) for i in range(len(listS)): ans.append(min(abs(i - location)...
[ "thongnguyen@Thongs-MacBook-Pro.local" ]
thongnguyen@Thongs-MacBook-Pro.local