blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
77d2fa83d35599a5b053874fa4654b5d4fae6602 | 7e72c17745625a1dd4d04f1787c1d2b7bd90642f | /htmlgen/attribute.pyi | 7d17093d5f6cc7d37287a665c5b87a2b0710bba8 | [
"MIT"
] | permissive | ra2003/python-htmlgen | 27de75b94ad3b635caf11d26fa64f4a19e543668 | cbe74d89acd655b78ffe12773b16ef2036502514 | refs/heads/master | 2022-04-08T10:37:36.265349 | 2020-03-11T13:46:53 | 2020-03-11T13:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,239 | pyi | import datetime
from typing import Optional, List, Iterable
from htmlgen.element import Element
class html_attribute(object):
def __init__(
self, attribute_name: str, default: Optional[str] = ...
) -> None: ...
def __get__(
self, obj: Element, type: Optional[type] = ...
) -> Optional[s... | [
"srittau@rittau.biz"
] | srittau@rittau.biz |
4adbb6e8afd7e434e7586c6ae23f649c7c704138 | ea2ca23c1aa6f5de744179097ef625d30b5514f0 | /battery.py | 6b0aec623cdbaa9eebcebfc9677a83747575b5f0 | [] | no_license | isovector/oh-my-zsh | 998f11a3b1b9f7aefa97458f803d29a8ae4ad66c | 28bbad0e768954c0fad4cb51e8530bfea489a8b9 | refs/heads/master | 2021-01-16T19:53:26.932483 | 2015-02-19T06:10:00 | 2015-02-19T06:10:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | #!/usr/bin/env python2
# coding=UTF-8
import sys
import time
import math
import string
import subprocess
p = subprocess.Popen(["acpi"], stdout=subprocess.PIPE)
output = string.split(p.communicate()[0])
percent = int(output[3][:-2]) if output[2] != "Full," else 100
width = 10
if output[2] == "Discharging,":
full... | [
"sandy.g.maguire@gmail.com"
] | sandy.g.maguire@gmail.com |
4f66898e78968d145cadffd50f0fbaa0bc24e6f1 | 3b1daac7c1f72b985da899770d98e5f0e8fb835c | /Configurations/VBS/2017CR_v7/plot.py | 98e0a0b236687fec6d81492a000ee0a41787e122 | [] | no_license | freejiebao/PlotsConfigurations | 7e10aa45aa3bf742f30d1e21dc565d59d2a025d8 | cdfd3aff38d1ece9599a699997753bc8ba01b9b1 | refs/heads/master | 2020-06-18T19:22:00.561542 | 2019-09-02T12:52:28 | 2019-09-02T12:52:28 | 186,931,874 | 0 | 0 | null | 2019-05-16T01:58:07 | 2019-05-16T01:58:07 | null | UTF-8 | Python | false | false | 1,009 | py | # plot configuration
# groupPlot = {}
#
# Groups of samples to improve the plots (merge different sample during plot).
# If not defined, normal plots is used
#
Red=632; Violet=880; Green=416; Orange=800; Yellow=400; Azure=860
groupPlot['non-prompt'] = {
'nameHR' : 'non-Prompt',
... | [
"jiexiao@pku.edu.cn"
] | jiexiao@pku.edu.cn |
673c01d2d26270daffb217e67049c5f9edc1b729 | c5487a0ab6ac1bf03cdb5e6942d1581ba863c5a9 | /pgs_venv/bin/django-admin.py | 297ad9bd8e56bf6cc9da1c48fa4b85f3270adebb | [] | no_license | Veldyale/books_projects | 4d4a76ad17fffc32d631d333c506b0cd8292513f | f1139100ebf195f8162aa1f3239e10ba1195c813 | refs/heads/master | 2023-06-22T06:13:46.150921 | 2021-07-20T04:36:14 | 2021-07-20T04:36:14 | 387,556,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | #!/Users/veldyale/PycharmProjects/books_projects/pgs_venv/bin/python3
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-ad... | [
"veldyale@icloud.com"
] | veldyale@icloud.com |
8b30cb6bd87a5879669d17eadf69b563911511f2 | c876544555a8903ba83934130685897f7960feb3 | /nanonispy/tests/test_read.py | 2f2174099d23a01add632126707aba98f5c26ed1 | [
"MIT"
] | permissive | Ex-libris/nanonispy | 61f882e405854c9a7bea4caf9767e2cd9916b14c | 0183c1147d160825b5c2c5c9e39e51efe033ce86 | refs/heads/master | 2021-07-14T10:04:58.591597 | 2017-07-07T01:30:24 | 2017-07-07T01:30:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,965 | py | import unittest
import tempfile
import os
import numpy as np
import nanonispy as nap
class TestNanonisFileBaseClass(unittest.TestCase):
"""
Testing class for NanonisFile base class.
"""
def setUp(self):
self.temp_dir = tempfile.TemporaryDirectory()
def tearDown(self):
self.temp_di... | [
"yanns.tremblay@gmail.com"
] | yanns.tremblay@gmail.com |
d01e1db1a3d1d0bce24766f0e241c2a7a9923a0f | 665b89f2472f5cf7eb441609eb112109b7381884 | /weblatex/migrations/0003_song_attribution.py | 98e7a851e1a47ea4155fcbc38063165cc4d344cb | [] | no_license | Mortal/weblatex | 5807bf25ea0d6a371e9fc6f0094f7e7375645b6c | 9c841f9ec226e99f38b6e0c4f12e03535d2c06de | refs/heads/master | 2020-05-14T11:53:08.299274 | 2016-12-23T12:03:50 | 2016-12-23T13:43:52 | 24,682,829 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-31 09:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('weblatex', '0002_auto_20151227_1835'),
]
operations = [
migrations.AddField(
... | [
"rav@cs.au.dk"
] | rav@cs.au.dk |
15c2f5343620cc2bd92a19eaf89edeb81b65f80d | ba3bdea3133e8efc33498b80169be6d7b103c3c4 | /blog/admin.py | 75bf66c97971eb9575a109a0c665834e1c29b43c | [] | no_license | kurtchen1988/my_blog | c7e714ae2ec7fcc1336c36b8c4b1d366ffdd311c | abc7002e654362a32bca1c699a9cf98866654bc1 | refs/heads/master | 2022-12-21T05:11:46.955819 | 2018-11-05T12:27:30 | 2018-11-05T12:27:30 | 154,171,969 | 0 | 0 | null | 2022-12-11T12:17:23 | 2018-10-22T15:52:26 | Python | UTF-8 | Python | false | false | 475 | py | from django.contrib import admin # https://docs.djangoproject.com/en/2.1/ref/contrib/admin/
from .models import BlogType, Blog
# Register your models here.
@admin.register(BlogType)
class BlogTypeAdmin(admin.ModelAdmin):
'''注册博客类型'''
list_display = ('id', 'type_name')
@admin.register(Blog)
class BlogAdmin(admin.Mod... | [
"kurtcobain1988824@hotmail.com"
] | kurtcobain1988824@hotmail.com |
bc7735fce206af38f2cf083763163c375849f5e8 | bf6e6e7be2323c3fb99a9998c67ad1975e7b80d4 | /0_startcamp/day 3/am_i_lucky_practice2.py | 84cbb7786711dd6314a9ded68b43bc9094597265 | [] | no_license | temporarykwon/TIL | 04fdf98ba7f9ebfa09a17e62782f9849c649fddc | 83f31898e0237d2b330fce6f1679cd1d7865088e | refs/heads/master | 2020-04-12T02:51:16.895716 | 2019-01-18T11:22:11 | 2019-01-18T11:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | my_numbers = set([1, 2, 3, 4, 5, 8])
real_numbers = set([1, 2, 3, 4, 5, 6])
bonus = 7
match_count = len(my_numbers & real_numbers)
print(match_count)
if match_count == 6: # same meaning of if diff == 0:
print('1등')
elif match_count == 5 and bonus in my_numbers:
print('2등')
elif match_count == 5:
print('3등... | [
"kwonzoidsbob@gmail.com"
] | kwonzoidsbob@gmail.com |
8606b6c98479d61f17568b1a216d7c5c7ac358b1 | dbf8dbbfdad118e0b8ca22afe2f01b31c316d35c | /wishApp/wish/views.py | 8d91a2b6a85e36430a2a2efab4cbe5f963691898 | [] | no_license | Anoldyogi/Django-Projects | 9d8008d9685afe47a51747c026ae8f8a9bc88387 | 70acd8c4f483bd17acaf884a1f6d66a473d79b1d | refs/heads/master | 2020-08-27T09:00:38.518026 | 2019-11-18T05:13:06 | 2019-11-18T05:13:06 | 217,309,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from django.shortcuts import render
from django.http import HttpResponse
import datetime
# Create your views here.
def wishing(request):
date=datetime.datetime.now()
h=int(date.strftime('%H'))
msg="<h1> Hello Friends How are you "
if h<12:
msg=msg+" GM "
elif h<16:
msg=msg+" GA "
elif h<21:
msg=msg+" GE "
... | [
"dhami.yogesh@gmail.com"
] | dhami.yogesh@gmail.com |
30439a393e056cc7000eab110322533ac9ba4ff9 | 0d9e5e1d10fd8a0692f1bc77122499991e071d63 | /week4-python/ImageSmoothing/boxBlur.py | 64e6096da81b84b735028ad8e0a5be626d3c7b62 | [] | no_license | gpokhark/OpenCV-CV1 | 06ec457d263b75c4789b0a7a2a7248f573a99d8a | 487f2ce145802b8261c921c4e646d0c67670e1fa | refs/heads/master | 2022-12-13T08:18:06.059507 | 2020-09-07T21:55:51 | 2020-09-07T21:55:51 | 262,436,580 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import cv2
import numpy as np
from dataPath import DATA_PATH
filename = DATA_PATH+"images/gaussian-noise.png"
# Load an image
img = cv2.imread(filename)
# Apply box filter - kernel size 3
dst1=cv2.blur(img,(3,3),(-1,-1))
# Apply box filter - kernel size 7
dst2=cv2.blur(img,(7,7),(-1,-1))
cv2.imshow("Original Image... | [
"gpokhark@gmail.com"
] | gpokhark@gmail.com |
d2b0c1495e93219e94d9bd2315ce951915cea7a6 | 5961fd8dd1c047b85e9a3cce22b0fc58c575f420 | /vrep_gym/vrep/__init__.py | b34ea56993ac6e586538ea2ba336f0c42cf51cde | [] | no_license | anand-bala/vrep-gym | edcc0603cdf5e7513c7fe198372e3af9c4413f03 | a9066c689dae9639b67b16a8390b17a8985015e7 | refs/heads/master | 2020-04-24T22:50:06.780116 | 2019-02-28T03:01:18 | 2019-02-28T03:01:18 | 172,324,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from vrep_gym.vrep.api import VREPSim, VREPObject
__all__ = [
'VREPSim',
'VREPObject',
]
| [
"anandbala1597@gmail.com"
] | anandbala1597@gmail.com |
64a16cee3a63dd8751894635b665e2f63df51a93 | caebdf8f0b4349b4b465865d7ef8ae4436f5769f | /tfidf.py | 6d63c1514f904dda4acaac978bc96b72b08e4e8a | [] | no_license | ngoduyvu/DeeepSense-Project | 5cbfd54a5bf1f42e5923cfd709fb98f2d23263e0 | 92a0516b95455ed7e305f9f8a291f8d3d10ea2e4 | refs/heads/master | 2021-01-19T16:40:43.848524 | 2017-11-27T00:05:17 | 2017-11-27T00:05:17 | 101,017,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,673 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 31 09:06:33 2017
Author: Ngo Duy Vu
Project:DeeepSense customer review
TF-IDF and cosine distance to
find the similar document and keywords
"""
import math
import operator
import string
from nltk.corpus import stopwords
from autocorrect import spell
fro... | [
"noreply@github.com"
] | ngoduyvu.noreply@github.com |
9ca45cc581947b9ffa18024c1e68fc812623bfaa | 3036ea8b4385deaf9942d43f95308e249c140e0e | /test_weight_entry.py | 6ad2229e520fe5f5575d21f2f978fef2ed045d16 | [] | no_license | hbprice65/classworkFall21 | 0800a84fe4ab054f38936a6903e40993f48db0eb | 9fe79d4e2c871a9d78d87cfbed4b224cf1079111 | refs/heads/main | 2023-08-14T16:13:08.628062 | 2021-09-20T16:34:45 | 2021-09-20T16:34:45 | 399,880,892 | 0 | 0 | null | 2021-09-20T16:34:46 | 2021-08-25T16:09:17 | Python | UTF-8 | Python | false | false | 385 | py | import pytest
@pytest.mark.parametrize("input, expected", [
("22 lb", 10),
("50 kg", 50),
("22.1 lb", 10),
("22 lbs", 10),
("22 KG", 22),
("22 Kg", 22),
("-22 lb", -10)
])
def test_parse_weight_input(input, expected):
from weight_entry import parse_weight_input
an... | [
"hp48@duke.edu"
] | hp48@duke.edu |
f7166be9fcfedf3308a08d2311f9df3ea6d9f985 | 17795f81da1b5e242091b0bcf0f29011106eb1d7 | /blog/migrations/0002_auto_20190524_0708.py | de9e066368b3244d0c371edb8ecc1a05f4c508b4 | [] | no_license | Anirudha1995/portfolio | 782a9100b7720fe00a2e2cab219caf66085f0a78 | 02ae1a7dbf02f5ea43f345baefafa5fd1d513538 | refs/heads/master | 2020-05-27T20:15:59.270310 | 2019-05-24T08:48:46 | 2019-05-24T08:48:46 | 188,776,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | # Generated by Django 2.2.1 on 2019-05-24 07:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Blogs',
new_name='Blog',
),
]
| [
"shirolkaranirudha@gmail.com"
] | shirolkaranirudha@gmail.com |
e894dd2c0042e872525cb05a134c54ed4c900387 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5010/317005010.py | bae484c5693cbe1c4f44c01024c8ae9c43673514 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 756 | py | from bots.botsconfig import *
from records005010 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'SO',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'N1', MIN: 1, MAX: 10, LEVEL: [
{ID: 'N2', MIN: 0, MA... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
c845f6f485a435d3981ca72437d62c5756fe5c00 | 1b62be8a219ac18094fda7957546cb9b7e3f6062 | /gl0/urls.py | 5558dac5b98133d1465ffdfdbf91c383a7491722 | [] | no_license | jguaraz/gla0 | 7749e4cd9668ea0b223eeefacb103a0205a278ea | b7b2002f0eb20e85b0f3fbebcaa4785bfe2ecfce | refs/heads/master | 2020-07-01T12:22:27.732279 | 2017-01-15T19:58:12 | 2017-01-15T19:58:12 | 73,826,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from django.conf.urls import url, include
from django.contrib.auth import views, logout
from . import views
from .forms import LoginForm
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^list/$', views.post_list, name='post_list'),
url(r'^g_new/$', views.g_new, name='g_new'),
url(r'^login/$',... | [
"jguaraz@openmailbox.org"
] | jguaraz@openmailbox.org |
b31a19f61f75d84e9c43cae789ca4a9fafb8dfc3 | 3cae667175b2d6aac6d7f3d8189e9a02c38ea1cf | /AOJ/ITP1/python/ITP1_3_B_Print_Test_Cases.py | 01ada1baf19ee14e9ca3f502aaf3c19915bc6f52 | [] | no_license | kokorinosoba/contests | 3ee14acf729eda872ebec9ec7fe3431f50ae23c2 | 6e0dcd7c8ee086650d89fc65616981361b9b20b9 | refs/heads/master | 2022-08-04T13:45:29.722075 | 2022-07-24T08:50:11 | 2022-07-24T08:50:11 | 149,092,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | for i,e in enumerate(list(open(0))[:-1],1):print(f'Case {i}:',e,end='')
"""
i=1
while 1:
n=input()
if n=="0": break
print(f"Case {i}: {n}")
i+=1
"""
"""
import sys
for i,x in enumerate(sys.stdin,1):
if x=="0\n":break
print(f"Case {i}: {x}",end="")
"""
| [
"34607448+kokorinosoba@users.noreply.github.com"
] | 34607448+kokorinosoba@users.noreply.github.com |
0627bf1ede15181473245fadf4e2ba06f3291f58 | abab0d762aa9968c344d47e0634a20d65883d106 | /mnist_board_2.py | a08f8bf5ec939b470b127bf5a78ebbb29e7b4ea8 | [] | no_license | wangaolong/tensorboard | f670db0d1881e245cc0633b80fd6495e335afb73 | 73974aca258078cd0952e098f942c8d08429ede6 | refs/heads/master | 2020-05-03T03:19:27.718774 | 2019-03-29T11:39:33 | 2019-03-29T11:39:33 | 178,394,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,065 | py | import os
import tensorflow as tf
import urllib
LOGDIR = './mnist/'
mnist = tf.contrib.learn.datasets.mnist.read_data_sets(train_dir=LOGDIR + 'data', one_hot=True)
def conv_layer(input, size_in, size_out, name="conv"):
with tf.name_scope(name):
w = tf.Variable(tf.truncated_normal([5, 5, size_... | [
"noreply@github.com"
] | wangaolong.noreply@github.com |
647edb53f15bd0f4088b90b39be7f5102ec74ab1 | dcc42d24c7b01501176acf5a9e0900c5691a71eb | /sar_strategy.py | 7ff9c818cbb023535d2860a8bb31184de5dd78f4 | [] | no_license | zihpzhong/mexbot | cf316d7fa2f506be192e351d2df5cbbf24cb5b37 | d87cb02c0b036c9db1357e18c04f5b41b25b9e7d | refs/heads/master | 2020-03-23T08:47:19.372628 | 2018-07-17T08:30:08 | 2018-07-17T08:30:08 | 141,345,453 | 7 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | # -*- coding: utf-8 -*-
from strategy import Strategy
from indicator import *
def sar_strategy(ticker, ohlcv, position, balance, strategy):
# インジケーター作成
vsar = last(fastsar(ohlcv.high, ohlcv.low, 0.02, 0.06, 0.2))
# ロット数計算
qty_lot = int(balance.BTC.free * 0.02 * ticker.last)
# 最大ポジション数設定
strateg... | [
"arms22@gmail.com"
] | arms22@gmail.com |
ac68fecbfa4b730b98452c152b6d456abb68da9c | 1ea081d37694edf58826724708f5a252b6f059bd | /akad/SnsAdaptorService.py | f4f03991b17798881eb85b37ceb63ff08e7629de | [
"Apache-2.0"
] | permissive | line-bot-oss/oss-bot | 4169b1a97190b97964f902bd6b81c89f7c9764b6 | 1efc1220fb2a308789fa5cfc618a6ae4a22a09d4 | refs/heads/main | 2023-06-12T16:54:47.534742 | 2021-07-02T09:10:42 | 2021-07-02T09:10:42 | 381,408,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 25,974 | py | #
# Autogenerated by Thrift Compiler (0.12.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift_0_13_0.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException
from thrift_0_13_0.protocol.TProtocol import TProtocolException
from thrift_0... | [
"admin@nanato12.info"
] | admin@nanato12.info |
e64ca823abfcbd82614d6ad46755ce122f1083e3 | 20cc0400066673de3eb06e6fa0d533673aee60fb | /csmapi.py | 72b427bf8990a79233ed284b2988f35ad97283b9 | [] | no_license | IoTtalk/Map_origin | b0314e28c9434a70188fc85a0ad8a58c68c18836 | 9b25d38897dd03fbef81ec99f838685ab26fdd29 | refs/heads/master | 2022-10-31T07:18:50.787275 | 2018-12-17T10:41:10 | 2018-12-17T10:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | import requests
ENDPOINT = None
TIMEOUT=10
IoTtalk = requests.Session()
passwordKey = None
class CSMError(Exception):
pass
def register(mac_addr, profile, UsingSession=IoTtalk):
global passwordKey
r = UsingSession.post(
ENDPOINT + '/' + mac_addr,
json={'profile': profile}, timeout=TIMEOUT... | [
"masterchen.06g@g2.nctu.edu.tw"
] | masterchen.06g@g2.nctu.edu.tw |
b48dcf9f5b7d59b2d1a5af62864c0e213f7ea7d7 | 2ab2b78fe54755ba3f653cf34b5f70bd1cb02660 | /manager/migrations/0010_auto_20190204_2339.py | 10b93fc95dd74af90f5c71c0b23b1880cd6eb837 | [] | no_license | rezasblade/cotslandwick | 0658b0554bcb0e508ddd855dfaee549e59ec3aa8 | c62a48d9867d57671be3e1c5f84a4ea2e0f305f2 | refs/heads/master | 2020-04-18T05:03:24.668983 | 2019-02-22T17:34:01 | 2019-02-22T17:34:01 | 167,262,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # Generated by Django 2.1.2 on 2019-02-04 23:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manager', '0009_player_preferredfoot'),
]
operations = [
migrations.AddField(
model_name='player',
name='position',
... | [
"Rezasblade@gmail.com"
] | Rezasblade@gmail.com |
524abfd28d64a72146e89166fa64fa9a07ed750f | 32e63a555fddecd5365854d4d509e8f6c10389f6 | /33.py | 7acbe2d483c886cc98e4cfdc190f485fa40ca905 | [
"MIT"
] | permissive | sukirt01/Python-for-Beginners-Solve-50-Exercises-Live | 8ef11558a7ca48f37d5086ead639deba018bf21c | bb26f0aea6c07e91c011614faf180f4361fbabdc | refs/heads/master | 2022-12-24T23:41:46.216194 | 2020-10-03T15:42:51 | 2020-10-03T15:42:51 | 300,915,104 | 0 | 0 | MIT | 2020-10-03T15:42:52 | 2020-10-03T15:39:05 | Python | UTF-8 | Python | false | false | 806 | py | '''
According to Wikipedia, a semordnilap is a word or phrase that spells a different
word or phrase backwards. ("Semordnilap" is itself "palindromes" spelled backwards.)
Write a semordnilap recogniser that accepts a file name (pointing to a list of words)
from the user and finds and prints all pairs of words that are... | [
"garg10may@gmail.com"
] | garg10may@gmail.com |
0042aba77e768718882348e47951b934c08e2a9d | c2a168ec9e91415eeadd53ba6042e614c3e8460c | /benchmark_features/hpopt_1/hpop_test_1/ht_98.py | c901ea3fa3afaaad12754f331e2d90ee977f80d9 | [] | no_license | LiYanChalmers/BoschProductionLine | 530098a9de0d08332511b24a31cdd4b4ec5473fb | de864e55be0e8cd174ccacb06afc77e3dc9ec42a | refs/heads/master | 2020-03-21T20:29:14.134812 | 2018-09-03T08:10:08 | 2018-09-03T08:10:08 | 139,010,159 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,487 | py | # -*- coding: utf-8 -*-
"""
Template for CV parameter search
Tasks:
1. CV
2. Train model
3. Predict on test set
4. Save
a. CV results
b. models trained in CV
c. model trained on the whole train set
d. predictions on test set
To-do:
1. Use models in CV to predict on ... | [
"li.yan.chalmers@gmail.com"
] | li.yan.chalmers@gmail.com |
de44f671db344112f3455fc9a68fd630b9fa685c | a16feb303b7599afac19a89945fc2a9603ae2477 | /Simple_Python/standard/exception/exception_3.py | c238bdfaf994db7ca61ad080adc0958a24b2cca5 | [] | no_license | yafeile/Simple_Study | d75874745ce388b3d0f9acfa9ebc5606a5745d78 | c3c554f14b378b487c632e11f22e5e3118be940c | refs/heads/master | 2021-01-10T22:08:34.636123 | 2015-06-10T11:58:59 | 2015-06-10T11:58:59 | 24,746,770 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | #! /usr/bin/env/python
# -*- coding:utf-8 -*-
class MyClass(object):
__slots__ = ('attribute',)
o = MyClass()
o.attribute = 'known attribute'
o.not_a_slot = 'new attribute' | [
"zhuzhulang@126.com"
] | zhuzhulang@126.com |
8c01cd644e3947c8c131e6da091a882cafdb17c4 | 3c4450ccd471f7720ef32cce3b5f5221981547ec | /openapi_client/models/instance_status.py | 7687a269856f24327f99f91d990cc8f7bc90e5ef | [] | no_license | ContatoGrupoOptimus/python-client | eb21d88a5725294609d589474e09463ab659d45b | f84ee64f741c096aadefc1088d1da88e97663fb1 | refs/heads/master | 2022-12-14T10:57:45.041040 | 2020-09-10T21:28:19 | 2020-09-10T21:28:19 | 294,526,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,387 | py | # coding: utf-8
"""
Chat API SDK
The SDK allows you to receive and send messages through your WhatsApp account. [Sign up now](https://app.chat-api.com/) The Chat API is based on the WhatsApp WEB protocol and excludes the ban both when using libraries from mgp25 and the like. Despite this, your account can be... | [
"71100986+ContatoGrupoOptimus@users.noreply.github.com"
] | 71100986+ContatoGrupoOptimus@users.noreply.github.com |
d7ee00da2734562f112c093249781066a481d129 | 7014a13b6163c9d8882c987bf137c238b4711180 | /Messages/Messages/urls.py | b18fc6f526038554e85c674fa44140fb019848e8 | [] | no_license | gordiig/Un_RSOI_Microservices | 1492be7a9c9d136c26b5db74932d4bd0eaa92ac3 | 11253b684a55f42908724c7278f608de92233ed5 | refs/heads/Dev | 2022-05-08T09:08:05.712865 | 2019-12-09T07:28:39 | 2019-12-09T07:28:39 | 211,895,636 | 0 | 0 | null | 2022-04-22T22:29:23 | 2019-09-30T15:44:04 | Python | UTF-8 | Python | false | false | 840 | py | """Messages URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"gordiig@gmail.com"
] | gordiig@gmail.com |
ef666dd55a79a37dd98a1d01931f9f8bacf94013 | b4527ccdc9dd8b525deee070653f3ab0f14e28cd | /CarParser/CarParser.py | 66e2dfbd6c025ba3598c7dfa058656451ed6d65d | [] | no_license | HardCorn/pythonScripts | 041f1dd9d1378f1db8b9f39668dd2ea72aa9802a | 090a47f6a126d1ac86133de1ca779f566887a739 | refs/heads/master | 2021-04-28T17:11:30.193737 | 2018-07-08T18:36:33 | 2018-07-08T18:36:33 | 121,848,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,827 | py | import csv
import os
class BlankObj:
def __init__(self, blank=None, is_exception=False):
self.blank = blank if not (is_exception and not issubclass(type(blank), BaseException)) else BaseException(blank)
self.is_exception = issubclass(type(blank), BaseException) or is_exception
def __repr__(se... | [
"kuz-proper@list.ru"
] | kuz-proper@list.ru |
d66f5181446f5349454f7327d80031e5ad23c868 | f859de034c282fd272893887c0aa21c9f8f5bad6 | /test/test_date_time_helper.py | 17b96d7ed85a364f1178795b5663a21674b74804 | [
"Apache-2.0"
] | permissive | Scandinaf/ll_free | cd1cb1a812c0c6b400e266dc843872a59388fa83 | 7d35dce5955f11e4af52400f961c76c9904c2f05 | refs/heads/master | 2020-04-10T19:29:27.671602 | 2019-01-12T05:21:18 | 2019-01-12T05:21:18 | 161,236,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import datetime
from utils.helper import DateTimeHelper
year = 2020
month = 5
day = 17
hour = 12
minute = 45
helper = DateTimeHelper()
helper.current_date_time = datetime.datetime(year=year, month=month, day=day, hour=hour, minute=minute)
def test_subtract_months():
count = 1
result = helper.subtract_months... | [
"sergeyqwertyborovskiy@gmail.com"
] | sergeyqwertyborovskiy@gmail.com |
e4be1f6b38a590a47708ccab19dd9239e95fc5fc | 57eb5f0832f0684fcae7ac84adb0925a2b081cee | /process.py | 272073636bc6d3aa79a7bc4308373755f21d7f71 | [] | no_license | unit02/370A1 | 4ccefcf626f1ac6d6bb728ed799e792c39a3e013 | d7a298f27b208e037530b1d81686a689b910acf8 | refs/heads/master | 2020-04-15T17:06:59.247244 | 2015-08-16T07:53:58 | 2015-08-16T07:53:58 | 40,747,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,664 | py | # A1 for COMPSCI340/SOFTENG370 2015
# Prepared by Robert Sheehan
# Modified by ...
# You are not allowed to use any extra sleep calls.
import threading
import _thread
from random import randint
from time import sleep
from enum import Enum
Type = Enum("Type", "background interactive")
State = Enum("State", "runnable ... | [
"elizaorchard@gmail.com"
] | elizaorchard@gmail.com |
1395fdc0e17b6a0304769eba37eb9d6e6ee9afb4 | 018e0e9858249e0c6ed20ee74e37b9f732d3356a | /core_oop.py | 21c37089bf9e3492cfd40945d0d55e6f4b532e1b | [] | no_license | watersb1323/Squash | e6874c2480038bbc07700e3e02ffc157f329dadf | 06cfb02b5c130599a383a882482daf640d45d662 | refs/heads/master | 2020-05-24T21:41:20.716094 | 2018-02-26T23:06:15 | 2018-02-26T23:06:15 | 84,883,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,660 | py | import pandas as pd
class Player:
''' Player as defined by squash information
'''
numPlayers = 0
def __init__(self, name, PF=0, PA=0):
self.name = name
Player.numPlayers += 1
self.id = Player.numPlayers
self.PF = PF
self.PA = PA
def get_name(self):
... | [
"watersb1323@gmail.com"
] | watersb1323@gmail.com |
e53c94360c91db293573eac3213b22e8a4f52306 | f79904b7e16768ef2360ae9ca3f75519d4c4c5d9 | /std_deviation.py | d4983c366f4658ec66a94e545a3119440f048967 | [] | no_license | Yash27112006/C105-std_deviation | 7deaeea48a76ef464a38df7f2e657730cc2c344a | e66fec6d544161b77c134ec3d26a98663eefb6d1 | refs/heads/main | 2023-04-15T00:51:16.084281 | 2021-04-19T20:59:59 | 2021-04-19T20:59:59 | 359,596,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | import csv
import math
with open ('data.csv', newline="") as f:
reader = csv.reader(f)
file_data = list(reader)
data = file_data[0]
def mean(data):
total = 0
total_entries = len(data)
for x in data:
total+=int(x)
mean = total/total_entries
return mean
squared... | [
"noreply@github.com"
] | Yash27112006.noreply@github.com |
a396adede5315997c758c190ed6df97b6a084566 | 37c53a0d1ab8395c1a0ebf95a1368ca131d1dd81 | /editor.py | 697f43320c4d3afe267eb95d4a4a9f299789111a | [
"Apache-2.0"
] | permissive | JonathanQuang/Wifi-Basher-Windows10 | b871ebf1ee704b44dd4843fff0dfead31a404142 | 951f0f4881ae1ddd4595ea5b9d9b16926b7029d4 | refs/heads/master | 2021-01-24T16:53:34.319292 | 2018-03-28T05:13:42 | 2018-03-28T05:13:42 | 123,218,643 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py |
xmlFileString = "INSERT XML FILE NAME HERE"
charset="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789-_"
f = open("pingResult.txt","r")
pingResultText=f.read()
#print pingResultText
f.close()
def isPingBroken():
if pingResultText.find("could not find") > 0:
#print "ping Failed"
modifyXML()
prin... | [
"jquang@stuy.edu"
] | jquang@stuy.edu |
a0626e7b3facbb1cfe1a1f7975b5c52787b70e78 | 21eb191e7ba0c6706c3858c0499e2cb659758b61 | /blackjack.py | 69fa84542b8c81cb2dbbfeef96bc81f89a93bf1e | [] | no_license | fortenforge/pwnable.kr | 0f4bb4369c3b63e10762825771f83c9432c787b6 | bf32644ece16e391b9d3b95495e80ac22a9a1a59 | refs/heads/master | 2021-03-12T19:32:05.854490 | 2017-11-14T22:56:57 | 2017-11-14T22:56:57 | 102,881,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | from pwn import *
# input
host = 'pwnable.kr'
port = 9009
# Notes
# * Just bet a very large negative amount and then lose.
def attack():
s = remote(host, port)
print s.recv()
s.sendline('Y')
print s.recv()
s.sendline('1')
print s.recv()
s.sendline('-1000000')
print s.recv()
for i in range(5):
... | [
"sridhar.rahul@gmail.com"
] | sridhar.rahul@gmail.com |
556621b3bffb8ae2724e3701c79e7cadc3ba4758 | 746343ec01702270ddb8f101dc42f214bcec3ee8 | /moveit_fake_controller_manager/conf.py | 19a2de46bba656fcd8552277f50adb863930453e | [] | no_license | ros-planning/moveit_plugins | 162829d6dc430e372e1dc80f83ed7f87d01ddd3a | cf0ddc86cf843688c8d172cf233a5d0e63e7f9de | refs/heads/kinetic-devel | 2023-08-30T13:58:57.844330 | 2016-08-05T09:49:31 | 2016-08-05T09:49:31 | 10,380,404 | 13 | 12 | null | 2016-08-25T19:07:29 | 2013-05-30T10:20:05 | C++ | UTF-8 | Python | false | false | 603 | py | import sys, os
extensions = [ 'sphinx.ext.extlinks' ]
# The master toctree document.
master_doc = 'doc/tutorial'
# The suffix of source filenames.
source_suffix = '.rst'
project = u'moveit_rviz_plugin_tutorial'
copyright = u'2016, Bielefeld University'
# If true, sectionauthor and moduleauthor directives will be ... | [
"me@v4hn.de"
] | me@v4hn.de |
53f875bb56b97a81f14c3124ae6390204fd8cef4 | 6f041cfcadc66206a00eca5eafb1378fe261d2dd | /8x26tools/tools/ramdump-parser/linux_list.py | f7168beb4093aa79089384756f945a3d2469847f | [] | no_license | kalmuthu/slos | bf857aaa80c33f0a59361614702740c46fa20d01 | 7516632037f788b00e1137619b88ecca1ac66fa3 | refs/heads/master | 2021-01-18T03:38:55.509889 | 2017-02-26T15:24:34 | 2017-02-26T15:24:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,328 | py | # Copyright (c) 2013, The Linux Foundation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and
# only version 2 as published by the Free Software Foundation.
#
# This program is distributed in the hope that i... | [
"chungae9ri@gmail.com"
] | chungae9ri@gmail.com |
5168e1c2d9374e94ddd524960cd3e1565aa75bfa | 1ce65c3c08691cc3d0733b7b918bfce0a1683ea6 | /testFunction2.py | a99f1c0cf41501fdaa9782f6a617030692f881fd | [] | no_license | lf-xxxyyy/lfpy | db4d521b43d88d129eb2612c17559dcdf5056546 | 30d3ad7534923a2d78efeb2d73c494fc24cb879f | refs/heads/master | 2020-06-12T23:45:16.630034 | 2017-01-16T14:10:43 | 2017-01-16T14:10:43 | 75,477,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from testFunction import my_abs
from testFunction import my_hello
from testFunction import power
from testFunction import enroll
from testFunction import add_end
from testFunction import calc
print(my_hello('tony'))
print (my_abs(100))
print(my_abs(-200))
print (power(14))
print(power(10, 4))
enroll('tony', "mal... | [
"liufeng.lf@aliyun.com"
] | liufeng.lf@aliyun.com |
87ee3ca0437c88123ea9d904ca36e0f460b1e91b | 54c657c96dcfb7f5f8dd32e24c0198312e438600 | /parlai/agents/fairseq/fairseq_py/fairseq/criterions/fairseq_criterion.py | bed7efe1be88eb9f019dd6706fb320c37e91f688 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | urikz/ParlAI | 09ab2024cd623327d0cc7c2fd3fdc3177b00a0e9 | 2813e9fb10562027ffb6c69e05fb1a8127b7141a | refs/heads/master | 2021-04-26T23:54:36.024365 | 2018-04-09T15:19:43 | 2018-05-21T22:42:00 | 123,878,487 | 2 | 1 | BSD-3-Clause | 2018-03-08T20:44:39 | 2018-03-05T07:02:20 | Python | UTF-8 | Python | false | false | 1,177 | py | # Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the license found in the LICENSE file in
# the root directory of this source tree. An additional grant of patent rights
# can be found in the PATENTS file in the same directory.
#
from torch.nn.modules.loss impor... | [
"kshuster@fb.com"
] | kshuster@fb.com |
96626bb34109b8ab51a91a8421462ed420d9af83 | 4723613aaf8cc5ecb7c94536586615c83a9f63ac | /equations.py | 1a2c980f95ab5cfeeed39be8475daf48247206b0 | [] | no_license | max123522/targil_1 | fe0f696119a74325a17252826e7e9d9347fa28dc | 6c588f55198b22976e549151879f3e0895a991ee | refs/heads/main | 2023-03-24T03:16:06.342865 | 2021-03-16T19:44:44 | 2021-03-16T19:44:44 | 348,471,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,227 | py |
def power(x:float,n:float):
machpela = 1.0
for i in range(int(n)):
machpela = machpela * x
return machpela
def azeret(n):
result3=1.0
for i in range(1,int(n)+1):
result3=result3 * i
return result3
def exponent(marih:float) -> float:
result2=0.0
for i in range(0,... | [
"maxkap1205@gmail.com"
] | maxkap1205@gmail.com |
2ff03a3d07da824d69de0a7ba661cbf423b86218 | 7fab3415bae4c70d462c1a43cead5b0aabf67489 | /Research/Dijkstra.py | cd42ca3ffc1bcc6a1f2969fedf31b4701e409acd | [] | no_license | Alex-D-G/R2D2-Research | a495e32c198da6fc25392a45bc3a6f9a3ad7ca81 | 1f154aad22d8753cb824b50672e8d186cf6f277e | refs/heads/main | 2023-05-13T01:47:54.177485 | 2021-05-31T08:35:43 | 2021-05-31T08:35:43 | 372,437,869 | 0 | 0 | null | 2021-05-31T08:36:04 | 2021-05-31T08:36:04 | null | UTF-8 | Python | false | false | 4,630 | py | from matplotlib import pyplot as plt
import numpy as np
import copy
import time
import statistics as stats
# Een zeer generieke manier om een graaf de implementeren is er
# daarwerkelijk twee sets van te maken op basis van twee classes:
class Vertex:
def __init__(self, identifier, data_):
self.id = identi... | [
"noreply@github.com"
] | Alex-D-G.noreply@github.com |
4f0507e424a507f5a01bb9d4424aa4840f5b1127 | 0c4d93cfc1d3f35152a8aaa3e20b88c87892e0ef | /Functions/linkCollector.py | 292b6e5af17a6d7dd4d1d3d19f37c06b9e32971d | [] | no_license | AkibSadmanee/Mailfinder | fddd9b8a05a598d8eb7a8a00b6a9f0eafcb9e57d | 1744290ddbbbeccdd99f9069520c4887b74c819f | refs/heads/master | 2020-07-10T04:21:01.150509 | 2020-06-22T18:36:02 | 2020-06-22T18:36:02 | 204,166,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | def getLinks(respond,printProgressBar):
from bs4 import BeautifulSoup
soup = BeautifulSoup(respond, 'lxml')
links = soup.select('.rc .r a')
link_storage = []
pc = 0
for link in links:
pc += 1
printProgressBar(pc,len(links),"Collecting Links from google", "Completed")
... | [
"akibsadmanee@gmail.com"
] | akibsadmanee@gmail.com |
1c738ef73bdc0768137d85581d244067c1e3ef73 | f9d7036649ff5d64660c33bc295ddf97e316d082 | /blog/settings.py | b9c6c73355a9da6b8c57b7e16e0b4b08e72fe807 | [] | no_license | jocsakesley/blog-jocsa-kesley | 1ebd6c11ad45c98a6b396ddfe58675da5cd113ec | d106a0870636542c08ee7791d971d77a948b3e0a | refs/heads/main | 2023-03-16T00:08:23.688040 | 2021-03-12T15:36:57 | 2021-03-12T15:36:57 | 322,912,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,687 | py | """
Django settings for blog 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
from p... | [
"jocsadm@gmail.com"
] | jocsadm@gmail.com |
cf79b0c7467ad594ae0411f8467196f72af51882 | 5449037cb41fc12eaa30cdf9b4dd9b5ad536848a | /PyBank/main.py | b71b8f6b0d099afe9e0bd751770031264b89ac25 | [] | no_license | dlg410/Python-challenge | 61cf873e5d0f8d43404dd614fe70e808b509f348 | af5eb694a21bba6a5fa47c9ef0059a4ad3609aff | refs/heads/master | 2022-12-17T02:32:42.456055 | 2020-09-21T17:28:04 | 2020-09-21T17:28:04 | 265,031,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | #Import Dependencies
import os
import csv
#Data File Name and Path
budget_path = os.path.join("Resources","budget_data.csv")
with open(budget_path) as csvfile:
csvreader = csv.reader(csvfile, delimiter= ',')
print(csvreader)
#Read Header Row
csv_header = next(csvreader)
# Variable
month = []... | [
"noreply@github.com"
] | dlg410.noreply@github.com |
843331de4602456e0bca3c39c6ddbf5c197b6d96 | ee7631bce162099cbbca0b7aecda0f3ffb3d31e8 | /www/region/models.py | 010e44dc1f7bcdd7ff9d73763e673279cd79d2dd | [] | no_license | poffey21/inventory | b0829b0dacd93e4248ba22efa8b6fa912f3cd76e | e65b9adf99618a1a25accd97781ce874dcb84bda | refs/heads/master | 2020-07-30T16:22:08.946036 | 2016-11-16T04:24:09 | 2016-11-16T04:24:09 | 73,626,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from __future__ import unicode_literals
from django.db import models
# Create your models here.
class City(models.Model):
""" city for stores and taxes """
class Tax(models.Model):
""" percentage by city """
| [
"poffey21@gmail.com"
] | poffey21@gmail.com |
59d1c6d9a4904b9ded3a33877749c4c95b801d4e | 5804abbaa9c54589284a2c14d0071b8348f14f7b | /Python/Cents.py | 4e30141949d687d65ddc32153cb73ac7ac182a0c | [] | no_license | steffanc/Practice | 76f138f849179cf544b567b0d9824b3f86a57122 | 7fb2c47804908ee3d3211482d126dc42eeb3b17e | refs/heads/master | 2020-06-07T04:02:17.895262 | 2020-06-06T21:17:46 | 2020-06-06T21:17:46 | 3,214,914 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # Given an input number of cents, print all combinations of change that
# would total the number of cents
def cents(target):
doCents(target, [], 0, 4)
def doCents(target, output, current, level):
if current == target:
print output
else:
if current+100 <= target and level >= 4:
... | [
"schartrand@twitter.com"
] | schartrand@twitter.com |
68844cb9f643ffa4e036fe891ec3864aae7070f0 | bb898753e0de090db0614bad3ff5d6b8b4050fda | /week_2_if_n_while/reverse.py | c6bd409b3e8be32f78bd43fc95ccc5a798e66a29 | [] | no_license | MRS88/python_basics | 4c2fb7fffed3542b0a4739934eb771f49be720e4 | 20995e267c67077e4b78ebd05b4ddd4506295c59 | refs/heads/master | 2023-04-03T18:48:37.524741 | 2021-03-31T18:35:32 | 2021-03-31T18:35:32 | 347,826,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | '''Переставьте цифры числа в обратном порядке.'''
n = input()
print(int(n[::-1]))
| [
"salavat.mr@gmail.com"
] | salavat.mr@gmail.com |
63071d56bf62b4aef145af25d7b33009c19fb9e7 | 58359b8cc618c20f8561779a9e773308befa10b7 | /show_PT.py | 8aad340e343f90adeb3a8502e48666db956183d0 | [] | no_license | Cho-sei/Mystudy | 2cdc4e7c0314148444ce7bc978be85e2d409f445 | d61b82ba3f44f402ff1237fa4b19e9c4b147a45b | refs/heads/master | 2022-03-31T21:57:48.681259 | 2019-12-17T04:20:16 | 2019-12-17T04:20:16 | 196,204,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | import pandas as pd
import matplotlib.pyplot as plt
import sys
data = pd.read_csv('result/' + sys.argv[1] + '_PT.csv')
plt.subplot(1, 2, 1)
pre = data[(data.timing == 'pre') & (data.hand =='left')].PTime.mean()
post = data[(data.timing == 'post') & (data.hand =='left')].PTime.mean()
plt.plot(['pre', 'post'], [0, post... | [
"knct0420@gmail.com"
] | knct0420@gmail.com |
94320151a2602c398d57f65c3e6993dc7b9f706e | 11099a71c685f04a207cdd119031d20ba0e7e670 | /test.py | 57ecb2f07030055d6177ec934a3a338c97a0939c | [] | no_license | zeniconcombres/exercises | d4a0ea8ae82f9b013de0b5b6e47200882566fc7d | ee5c719ea201be34f2272d45211644d72038e7e7 | refs/heads/master | 2023-04-19T00:26:34.595950 | 2021-03-13T06:23:25 | 2021-03-13T06:23:25 | 347,286,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | test = str(input("What is your name?\n"))
print("Hello %s!" % test)
greeting = str(input("How are you?\n")) | [
"email.me.inez@gmail.com"
] | email.me.inez@gmail.com |
c5ae206215093773715894fb6909c2cb1019ce6a | 221729e86d3cef6af170bd969deddceabbf6c16f | /steam_gsi/events.py | 995b92b4741922962b788a92f3fc0dea74361078 | [] | no_license | Natsku123/steam-gsi.py | dbc53c3bafb19256ed21976e52cf121d2cd85260 | f6f2cebb2ce4a33c2deed6bfebaba682ca9462c2 | refs/heads/main | 2023-05-31T16:31:24.557959 | 2021-06-30T12:53:50 | 2021-06-30T12:53:50 | 378,603,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | from .games import Base
def event_trigger(gs: Base):
pass
| [
"max@meckl.in"
] | max@meckl.in |
c536b9fd5c1e73cc295090ed7b3acb50d109db16 | fec863b67ec1ae65da7111bd8c77d0ab2ef1f6ce | /movie recommendation system/.history/moviemodel_20210503171215.py | 065bab6744cb5a59f9f2bcad99cc217a20cecea4 | [] | no_license | kannan768/movie-recommendation-system | e6cf71620e25a0185fed3b37896137f1f39b0801 | 7460d440d44e77390e459ab10c535b6971c9c3ab | refs/heads/main | 2023-05-14T02:21:50.930672 | 2021-06-09T05:02:30 | 2021-06-09T05:02:30 | 375,225,316 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | import pandas as pd
import numpy as np
from zipfile import ZipFile
import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
from pathlib import Path
import matplotlib.pyplot as plt
"""##Dataset"""
df = pd.read_csv('ratings.csv', sep=',', encoding='latin-1', usecols=['userId','movieId','... | [
"kannanbsk1609080@gmail.com"
] | kannanbsk1609080@gmail.com |
68152eb0046118464c20ab2b166aa716745123ad | 25194bd77823c25f65553c4400788040e69b1a1f | /okikae_kun.py | a97a70d2ab4031c54d1b64ed4b6830679a738834 | [] | no_license | cabbage63/okikae_kun | 936c1ff7299384a863a359eb4971ee68dee7895b | 00fcbc1c12d7129b5436ac6dcd40aaf7e4276084 | refs/heads/master | 2020-12-24T12:40:00.714906 | 2016-11-06T03:23:24 | 2016-11-06T03:23:24 | 72,967,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | import sys
argv = sys.argv
temp_body = open(argv[1]).read()
temp_body = temp_body.replace('http://ecx.images-amazon.com/','https://images-fe.ssl-images-amazon.com/')
temp_body = temp_body.replace('http://www.amazon.co.jp/','https://www.amazon.co.jp/')
f = open('output.txt', 'w')
f.write(temp_body)
f.close()
print("fin... | [
"e.cabbage63@gmail.com"
] | e.cabbage63@gmail.com |
47a785f3921367e2e31811da2a583af9fc3f97f4 | bfdbdaec2d61df45098f51dbb55438d67f9767a3 | /states/StateAddRegionalAcc.py | dd29261cc5c7a5c09d9fab198f17b40816cbd0e4 | [] | no_license | doroshenko-online/autobot | 46cc65b070eb86d3e26e63ff29f2862f4ae8724f | 48fa1fa224c6b537e364c8d78fb16ac05960aa63 | refs/heads/main | 2023-06-25T06:17:56.788216 | 2021-07-25T10:05:38 | 2021-07-25T10:05:38 | 382,090,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from aiogram.dispatcher.filters.state import State, StatesGroup
class AddRegionalAcc(StatesGroup):
wait_for_chat_id = State() | [
"doroshenko@tutanota.com"
] | doroshenko@tutanota.com |
edff97ca61c1b4e2b30b5dc729f5248998193855 | 9a320ffbd992d09c7767221339153af1494c72f4 | /ecommerce/lib/python3.6/hashlib.py | e43cedba2aec0dc40a199d1c255c2ee174e8528b | [] | no_license | carlosblancosierra/ecommerce-cfe | 520c7baf2a10c7e0a83459de4ff31fedbec983e4 | 9538034ad0e39dae226ebc350b38fbe20ffe4c18 | refs/heads/master | 2022-12-18T16:45:17.645842 | 2018-06-14T01:29:03 | 2018-06-14T01:29:03 | 122,151,270 | 0 | 0 | null | 2022-12-08T00:53:45 | 2018-02-20T03:33:13 | Python | UTF-8 | Python | false | false | 54 | py | /Users/carlosblanco/anaconda3/lib/python3.6/hashlib.py | [
"carlosblancosierra@gmail.com"
] | carlosblancosierra@gmail.com |
6c7d033f0a21fcd56c5a711729f9b0b772a27e13 | 6d7e8a61a85baf858805c1ae47328a27b5bbb4bd | /send_notifs_cron.py | 21a6f9d84b173a26d8e7d4a079ba3f5e9144f2ca | [] | no_license | shannon-heh/TigerSnatch | 8c8f681d7e1d27497cc685b6e560b24b9d732462 | b91415db1035b4709e605336c9221414d565ae6d | refs/heads/main | 2023-06-02T10:54:17.707749 | 2021-06-27T05:41:46 | 2021-06-27T05:41:46 | 341,774,248 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # ----------------------------------------------------------------------
# send_notifs_cron.py
# Manages regular execution of the email notification script using a
# cron wrapper. Disable/enable using admin panel or _set_cron_status.py.
#
# Set execution interval in config: NOTIFS_INTERVAL_SECS
# ------------------... | [
"nicholaspad@gmail.com"
] | nicholaspad@gmail.com |
93b77f70dfda6c460a897355c421e575f087f2c7 | d1232b3befce740f9c0a8bfb2834bb05f1094999 | /article/migrations/0003_auto_20170715_1140.py | 38319b43e5de87ac6877c2983d5a9a6ea0b8f3ff | [] | no_license | Samarth08/first | 8a31eb24979172d49a584cb7bb9e25f210bd6107 | 13b73c09c95ea20d64bada9e41251afb0323c7dd | refs/heads/master | 2021-01-23T09:10:58.488652 | 2017-09-06T05:11:43 | 2017-09-06T05:11:43 | 102,564,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-07-15 06:10
from __future__ import unicode_literals
import django.core.files.storage
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0002_art_picture'),
]
operations = [
... | [
"samarthsah@Samarths-MacBook-Pro.local"
] | samarthsah@Samarths-MacBook-Pro.local |
cc0cf070c1d0508310505b023dd2e2a65e030828 | 33a2ef2e0d078656afe2e79ddb941778a5439aa0 | /rent_a_dent_app/rent_a_dent/views.py | aedbcbd23048287aef3f789ff52aa1f04c64a037 | [] | no_license | leszekemil/rent_a_dent-rekrutacja | 8b0b02b0e4f811f740147a5aed1894be12f0a01a | eec4a7075f96941fbb70fd89dfd0e0f243cbc3a1 | refs/heads/master | 2023-02-09T05:47:32.034639 | 2021-01-04T10:34:04 | 2021-01-04T10:34:04 | 326,598,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,155 | py | from django.contrib.auth.mixins import PermissionRequiredMixin, LoginRequiredMixin
from django.shortcuts import render
from django.views import View
from django.shortcuts import redirect
from django.views.generic import UpdateView, DeleteView
from rest_framework import generics
from rent_a_dent.models import Visit
fro... | [
"nortal@gmail.com"
] | nortal@gmail.com |
cbfe59adc4ccebcfac17c721ef9cd51d45ee2c74 | 68c90ef853ea415a3c43ca10ebc9c23656907e10 | /list/threeSumClosest.py | 143151efa28bb9b18de5a53e1533e3247e79909c | [] | no_license | NJ-zero/LeetCode_Answer | 73889f46f4cd0c08f60a1e556c29114495062b2b | 1040b5dbbe509abe42df848bc34dd1626d7a05fb | refs/heads/master | 2021-08-06T04:33:39.890568 | 2020-04-14T09:59:39 | 2020-04-14T09:59:39 | 145,671,777 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | # coding=utf-8
# Time: 2019-11-18-17:46
# Author: dongshichao
'''
16. 最接近的三数之和
给定一个包括 n 个整数的数组 nums 和 一个目标值 target。
找出 nums 中的三个整数,使得它们的和与 target 最接近。
返回这三个数的和。假定每组输入只存在唯一答案。
例如,给定数组 nums = [-1,2,1,-4], 和 target = 1.
与 target 最接近的三个数的和为 2. (-1 + 2 + 1 = 2).
思路:
先排序 后 双指针
固定的ans = 0 + 1 +2
遍历数组,i + i+1 + r
如果三个和大于... | [
"dongshichao@qutoutiao.net"
] | dongshichao@qutoutiao.net |
0e0b02856e4b9275bbad24a7461c2c793b231d87 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_208/81.py | 5eb844629edbf0f9bad243963bf552da90da0e7c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | for t in range(int(input())):
n, q = (int(i) for i in input().split())
hs = [[int(i) for i in input().split()] for j in range(n)]
ds = [[int(i) for i in input().split()][j + 1] for j in range(n - 1)]
input()
input()
tc = [0] * n
tc[n - 1] = 0
for i in range(n - 2, -1, -1):
min = -1
sd = 0
for j in range(1... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0dff6a1e70b3e0c2cc329b7b201add7b52e52901 | f814b8069fe2f5fe14fe5767db68c2385e504cd1 | /jobsProject/jobsProject/urls.py | 5a5a3c29f565815c55d6bac0efae58ba00b62f0a | [] | no_license | sohaibmansuri/jobs-project | adb2184447db9d2a3274e52829eabe7fddf30f7f | e384aede5646b542cb37dfc3c8d424d6feae4387 | refs/heads/master | 2023-03-20T07:05:17.639843 | 2021-03-22T10:11:47 | 2021-03-22T10:11:47 | 350,303,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """jobsProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Clas... | [
"sohaibmansuri2@gmail.com"
] | sohaibmansuri2@gmail.com |
1041f3b038fd79462b48848f5cbf72db5b84b583 | aeb33e5eeaf9c77167f1af433c2b000de4aafe07 | /helloworld.py | 146695b88402bc954bc05310ddc88da2592d81f5 | [] | no_license | jchapman68/pyworld | 0a9167975b3479371cc44217d3e0510e7c4dc89e | b2d6cbe000091e8827da19071a585590527f0371 | refs/heads/master | 2020-03-22T15:50:56.187094 | 2018-07-12T07:41:53 | 2018-07-12T07:41:53 | 140,283,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import os
#os.environ["GREETING"] = "Hello Rob"
#myvar = os.environ["GREETING"]
#if myvar == "Hello Rob":
# print ("success")
#else:
# print("fail")
#print os.environ["GREETING"]
#print("Goodbye, World!")
def test_greeting(message):
if message == "foobar":
return message
else:
return "H... | [
"joshua.chapman@ons.gov.uk"
] | joshua.chapman@ons.gov.uk |
128c8218b9b250556682a1630279f115ed7218c6 | 922dba5cbe7b261cad13f0aa520d365307a053cd | /string.py | 712a7aeacefcbe60fe9424e05f2477f0ed15b8b7 | [] | no_license | dtwin/shiyanlou_code | 2cf7364896270b63543560d77be75ce90a4541b8 | 5db23b577f11eb4ca81564176a6bf8a7312db1a1 | refs/heads/master | 2020-07-01T14:54:41.123468 | 2019-11-21T08:16:45 | 2019-11-21T08:16:45 | 201,202,551 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | s='I am Chinese'
s="Here is line \...split in two lines"
print(s)
print("""Usage: thingy [OPTIONS]
-h Display
-H hostname hostname
""")
a= "shi yan lou"
print(a.title())
print(a.upper())
print(a.lower())
print(a.swapcase()) #jiaohuan daxiaoxie
print(a.isa... | [
"495271301@qq.com"
] | 495271301@qq.com |
2d939764dcd1a8446c88df11df99c240bdf0e89d | 72d17b9ef29724a314650f95bb247180bea5e39a | /q1.py | 29c53490a359b51cd97bdf3a11b3965b91035ce5 | [] | no_license | kanglif2/ke5205-text-mining-project | a5dda9cad13dd3e9671daa644ef492b3e6febcf0 | 6338a6e157ae5b5b915e5c80ffe19618c04efd67 | refs/heads/master | 2020-05-04T23:40:39.120345 | 2016-10-15T12:42:40 | 2016-10-15T12:42:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,107 | py | # -*- coding: utf-8 -*-
import string
#import unicodedata
import pandas as pd
import matplotlib.pyplot as plt
#import numpy as np
import nltk
from nltk import pos_tag, word_tokenize, sent_tokenize
from nltk.corpus import stopwords, wordnet
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.cross_v... | [
"yan9za1@gmail.com"
] | yan9za1@gmail.com |
4c592d51f61cf481cc775b42cd08c2ac8509d63a | d2f50124ff3bec70b9b3139ecb063b06e526781d | /biable/migrations/0063_auto_20170209_1210.py | b1f585b6e2133d7294f9972748a301e53108e589 | [] | no_license | odecsarrollo/odecopack-componentes | e8d993f089bf53bbf3c53d1265e70ac5c06b59b8 | b583a115fb30205d358d97644c38d66636b573ff | refs/heads/master | 2022-12-12T00:33:02.874268 | 2020-08-13T18:45:01 | 2020-08-13T18:45:01 | 189,262,705 | 0 | 0 | null | 2022-12-08T11:23:46 | 2019-05-29T16:37:21 | Python | UTF-8 | Python | false | false | 470 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-09 17:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('biable', '0062_auto_20170209_1032'),
]
operations = [
migrations.AlterField... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
9d63e54252a9268a3d5a8ae57963c481936b808d | 1f8d7bcbd223e86ed862a89e0cd6b2112f9112a3 | /habataku300checker.py | 20455cfb82ff3d34d9bba501ab948db2e1cfdfef | [] | no_license | howther111/utility | c94d7a1036e7365bbeed3b3c454351752242bdb1 | b074a67b8aa9fe5593a80071b1ef98ce193d835b | refs/heads/master | 2021-10-16T18:20:37.136517 | 2019-02-12T13:27:50 | 2019-02-12T13:27:50 | 113,938,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,632 | py | import openpyxl
import os # osモジュールのインポート
def year_change(gengo, year):
if gengo == '明治':
if year != '元' and year != '':
ans = str(int(year) + 1867)
return ans
else:
return '1988'
elif gengo == '大正':
if year != '元' and year != '':
ans = ... | [
"atsukiexfeel@yahoo.co.jp"
] | atsukiexfeel@yahoo.co.jp |
5eae4b091b6eef83c71055a0e4d6c073a7746749 | 34c6384d4137003317a5c3ac9d3ef34b831bbf44 | /code/qrcode.py | af5d7b57e7cc69890ca18983ad567125859ede63 | [] | no_license | brekooname/License-Detection-using-QR-Code | c59fe35967f48335d8c138738b1c05ef1ca72930 | 9a7eedaa903a89030127d3ea5c5e16625307ad82 | refs/heads/master | 2023-05-01T04:29:45.884905 | 2021-05-15T12:54:33 | 2021-05-15T12:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | import cv2
import numpy as np
from pyzbar.pyzbar import decode
from tabulate import tabulate
import csv
def data_list():
myDataList = list()
with open('hello.csv', 'r', newline='') as cs:
reader = csv.DictReader(cs)
for row in reader:
myDataList.append(row['Name'])
return m... | [
"hms@290926.github.com"
] | hms@290926.github.com |
42c170cdc7ec40157a5fe37fc17a43224af43c96 | ed9fe676f645263c7e05242fd2c18dd06286296b | /bfs_and_dfs.py | 1133ced2837d1e9154e64517aaa90e694923f95d | [] | no_license | nadavleh/Undirected-unweighted-graph-search | 1938e6a52d7d10a2ec12d203892f68455e779655 | 0c99ea31b653503fa3a88367e3192539fce3a94e | refs/heads/master | 2020-12-06T05:35:34.150689 | 2020-01-07T16:03:35 | 2020-01-07T16:03:35 | 232,361,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,237 | py | """
In this script I implement the Breadth First Seach Algorithm or BFS and
Depth First Seach Algorithm or DFS, to determine a route or "traversal"
between nodes in a graph (if such traversal even exists)
In order to do so, i first define a graph on which i implement this seach.
This graph is a grid of size-by-siz... | [
"noreply@github.com"
] | nadavleh.noreply@github.com |
203559691a9f96446d035b939909c16743b23ade | 1bc1727c17e237c1badafc0233115d5001ff5274 | /audioset/vggish_slim.py | fba0feb693aca9aa24c55ee976ee1ff4eb8d992f | [
"Apache-2.0"
] | permissive | sshleifer/object_detection_kitti | 09b0ae37608f31491f79c537916cea8fd446f698 | 7f8c93c96a7ab5e150f217b7c369bec9d4b8bb81 | refs/heads/master | 2022-10-29T19:13:21.657012 | 2019-05-09T06:11:52 | 2019-05-09T06:11:52 | 103,348,300 | 35 | 18 | Apache-2.0 | 2022-10-26T09:39:39 | 2017-09-13T03:23:16 | Python | UTF-8 | Python | false | false | 5,773 | py | # Copyright 2017 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 applicab... | [
"plakal@google.com"
] | plakal@google.com |
b6cd59becb4fb605ea25d1342073d03073b486b8 | 54d60cf707139ae3eefac7d4136fc4b57a33c6cb | /Json_webScrapping/scrapping_bs4.py | ec1ac2a38f3be8a24a6e8ed8147531488b68e05a | [] | no_license | rakeshgowdan/Python_DataAnalysis | 7814eb13274ca95d5ffc405dff1b9093b9c6d3bf | d911b9f3bde57b615d28eab142dde2720f066d16 | refs/heads/master | 2020-03-31T12:45:59.356181 | 2019-03-15T10:31:51 | 2019-03-15T10:31:51 | 152,228,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | import requests
from bs4 import BeautifulSoup
data=requests.get('https://www.w3schools.com/tags/tag_table.asp')
soup=BeautifulSoup(data.text,'html.parser')
for tr in soup.find_all('tr'):
for td in tr.find_all('td'):
print(td.text)
| [
"rakeshgowda3101@gmail.com"
] | rakeshgowda3101@gmail.com |
b247c4def0f45dc6866abfd6944a0a96789d5be0 | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /examples/plot_kernel_approximation.py | 735ed9238223d5243a53a245a95a7e1b780db417 | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,687 | py | """
==================================================
Explicit feature map approximation for RBF kernels
==================================================
An example illustrating the approximation of the feature map
of an RBF kernel.
.. currentmodule:: mrex.kernel_approximation
It shows how to use :class:`RBFSampl... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
92e592f69aa42552367251f1e4374870fcf374cf | b77c767fe684e1263bf5a9b40e679fed993c56d5 | /manage.py | 8f2f8db8e50c8d4b03c0e19034bb507f6b7c370e | [] | no_license | OMCloud/SecurityAuditPlatform | 53990e4580ad14d8dc1706181db507ab7ab8155e | c16fb6f28de8c13e78367d67003ebe878bf842e4 | refs/heads/master | 2020-06-07T02:40:21.232755 | 2019-06-20T10:53:08 | 2019-06-20T10:53:08 | 192,902,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "SecurityAuditPlatform.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. En... | [
"omcloudw@gmail.com"
] | omcloudw@gmail.com |
7f62acfb8b4c1fece3fa958fc6321f174a5dc480 | bcdbf414e06115a7f57c551886850ce95fc14a51 | /tzfinderapp/main.py | 5734737bd4557bb9ac10aade36e2ae18b796d3f6 | [
"MIT"
] | permissive | mblackgeo/timezone-finder-webapp | e5d7272618a67d65e8acc4b72fe434b6ee48bb70 | 4aa32874eb91ea7d3b1225fe7fc78c74388cc375 | refs/heads/main | 2023-08-03T07:20:49.778356 | 2021-09-15T20:13:53 | 2021-09-15T20:13:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | from typing import Tuple, List
import dash_html_components as html
import dash_leaflet as dl
from dash import Dash
from dash.dependencies import Input, Output
from flask import Flask
from timezonefinder import TimezoneFinderL
server = Flask(__name__)
app = Dash(prevent_initial_callbacks=True, server=server)
tf = Time... | [
"18327836+mblack20@users.noreply.github.com"
] | 18327836+mblack20@users.noreply.github.com |
f562bc0096ec80473c16957f03b4c070b782bab7 | 99280ee4672420b43bdcedb9c6f5c93a5fe182f0 | /API/backend_3/todo_project/todo_project/settings.py | 297321c3ae1b7a167c333d4af61b2cc4b333d714 | [] | no_license | kamral/test_1 | f8674a075d51fc94630df7d6a5cf55b11d086db0 | a10ce3337463d1cb9b56876d0566798740c0b42f | refs/heads/master | 2023-08-06T23:50:45.519935 | 2020-06-07T09:27:43 | 2020-06-07T09:27:43 | 265,688,683 | 0 | 0 | null | 2021-09-22T19:23:15 | 2020-05-20T21:21:21 | Python | UTF-8 | Python | false | false | 3,293 | py | """
Django settings for todo_project project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"kamral010101@gmail.com"
] | kamral010101@gmail.com |
e7d10f8320db3c2f560b7875b1bb254593aca879 | 5ffa05429f1278455cd02e759cc64f376813ce20 | /html_form_builder/__openerp__.py | 1e8592471c11867f3ba1a29645d05d25c8cae4e7 | [] | no_license | tonihr/Odoo9 | 217f483993c4a49d5c14ad93ec2594e0a46bef5d | 93e0d3de55714e34229cb5273400a6ebc1f6e3e0 | refs/heads/9.0 | 2021-01-19T04:02:57.407271 | 2017-03-08T05:35:47 | 2017-03-08T05:35:47 | 84,426,868 | 0 | 0 | null | 2017-03-09T10:02:45 | 2017-03-09T10:02:45 | null | UTF-8 | Python | false | false | 681 | py | {
'name': "HTML Form Builder",
'version': "1.8.9",
'author': "Sythil Tech",
'category': "Tools",
'support': "steven@sythiltech.com.au",
'summary': "Manage both internal and external forms",
'description': "Manage both internal and external forms",
'license':'LGPL-3',
'data': [
... | [
"steven@sythiltech.com"
] | steven@sythiltech.com |
cf160eb097ceba05d1280e889a1944044246a65f | 65b604f19644628791f7f286538d2ac80deba225 | /user_app/urls.py | ce570b5f957810e87479e74aa48ad75a876ebc84 | [] | no_license | Anish8/instaclone | e68d6de1de0e21cb4560ce4f84d52222d0903ba9 | c8c831776f231c4f09052fe87b6eb8ba91fc272d | refs/heads/master | 2023-04-30T07:05:47.167340 | 2019-12-23T03:13:53 | 2019-12-23T03:13:53 | 229,521,803 | 0 | 0 | null | 2023-04-21T20:43:37 | 2019-12-22T05:18:10 | HTML | UTF-8 | Python | false | false | 929 | py | """Tasbir URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"anishsubedi9@gmail.com"
] | anishsubedi9@gmail.com |
b6e342601739bf2ac9de2c64dcc912651a121c30 | f5cb63b795246acb80e1de74f4218a449b05bd6f | /with Sentiment (3.25 hours)/LSTM-Sentiment.py | 0ff53d978750534ce2857f6597dfff0a597e0645 | [] | no_license | Kreuz-und-QuerHan/Bitcoin-Trend-Prediction | 7a0e00c07e074846c70aa25ebdcd0ccd3df74da1 | bd97e7b7ea471215ceec64a49e08edf18572f14b | refs/heads/main | 2023-06-02T12:18:09.245775 | 2021-06-23T20:52:22 | 2021-06-23T20:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,183 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
# Libraries
from pandas import DataFrame, read_csv, concat
from keras.models import Sequential
from keras.layers import Dense, Dropout, LSTM, Bidirectional, GRU,ConvLSTM2D, Flatten
from matplotlib import pyplot as plt
from numpy import concatenate, reshape
from sklearn.... | [
"79607020+TandonAnanya@users.noreply.github.com"
] | 79607020+TandonAnanya@users.noreply.github.com |
9f3e522f5eaf4bccca6718e97418876a8b0a517a | 3b3e6c246bb61681fe083fff76f7867fdc713d24 | /fedot/core/operations/evaluation/regression.py | 245bfad74323c488eca5c7b063941182fb75732b | [
"BSD-3-Clause"
] | permissive | houmanb/FEDOT | 2f57a60f9c78e879cf3a97ce9c4bfa53c5cf1a0e | b7123d586616fbd1cb067ea61e1b688829b11685 | refs/heads/master | 2023-06-17T02:47:58.190501 | 2021-06-30T10:34:59 | 2021-06-30T10:34:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,286 | py | import warnings
from typing import Optional
from fedot.core.data.data import InputData
from fedot.core.operations.evaluation.evaluation_interfaces import EvaluationStrategy, SkLearnEvaluationStrategy
from fedot.core.operations.evaluation.operation_implementations.data_operations.decompose \
import DecomposerRegImp... | [
"noreply@github.com"
] | houmanb.noreply@github.com |
9abfdc5a2c0729518fddf65bbefeae6317b8b9a0 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev2283-2366/right-branch-2366/twisted/internet/tksupport.py | 19dcf48b56a21fe81e5d2e00d290099a36bdac51 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | """This module integrates Tkinter with twisted.internet's mainloop.
API Stability: semi-stable
Maintainer: U{Itamar Shtull-Trauring<mailto:twisted@itamarst.org>}
To use, do::
| tksupport.install(rootWidget)
and then run your reactor as usual - do *not* call Tk's mainloop(),
use Twisted's regular mechanism for runni... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
533661d3c3dc30a457cf43ee40b712444cab32f4 | c5033ec18d537b26db80fd2fa6a6b61d30bcd313 | /stocket/models.py | 4ee0d8ba3551e4d697ae817ba7297eafd35d5a19 | [] | no_license | dannyphan2910/stocket | 2b8068bad3c74a5ac56f76a22b07e55463a9fb94 | ab4eec6e8a3b73da6752924bb409e2307741d8ed | refs/heads/main | 2023-06-16T15:25:29.307687 | 2021-07-10T04:27:51 | 2021-07-10T04:27:51 | 350,432,403 | 0 | 0 | null | 2021-06-17T02:29:05 | 2021-03-22T17:32:15 | Python | UTF-8 | Python | false | false | 2,378 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
TRANSACTION_TYPES = [
(0, 'BUY'),
(1, 'SELL')
]
class Account(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
balance = models.DecimalField(max_digits=12, decimal_places=2, ... | [
"phanhaidang29102000@gmail.com"
] | phanhaidang29102000@gmail.com |
878bd389051dba8d38357329c923e6f9ea202a2c | 8b197dcaa22b867c101dd4d13267949f2962e94c | /json_test.py | a99883115ed69dd65998f0b23faa31653d4f17a9 | [] | no_license | tomasmenito/PythonTests | 45670a5439906fb3e6ba2b350d1a474d12c0d811 | c21e38f2c8722c17cf8f8ec904df3cae82518e7a | refs/heads/master | 2022-11-07T06:17:05.922191 | 2020-06-16T17:45:35 | 2020-06-16T17:45:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import json,requests,sys
url ='https://api.github.com//users//mralexgray//repos'
response = requests.get(url)
response.raise_for_status()
data = json.loads(response.text)
w = data['list']
print(w)
| [
"tomaslm@hotmail.com"
] | tomaslm@hotmail.com |
03b32bd18ba48df51ff3afa7c4c8d2f65e28caeb | 7b9b7367a98fc29ef173b37abd611065bfda289e | /placa.py | 8c1d03d54f92059d28baab780275f9f3d7154e8a | [] | no_license | smorap/Proyecto_Proc._Imagenes | 30e98273921a0b1b1fcc80ac156463ef1b95499d | eca0344e0079f02edda300fc62b0105ae6e3d2f4 | refs/heads/main | 2023-01-07T20:48:14.090713 | 2020-11-03T01:35:52 | 2020-11-03T01:35:52 | 309,530,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | import cv2
if __name__ == '__main__':
path = "D:/Datos/sergio/UNIVERSIDAD/2020/Proc_ Imagens/Poryecto/Imagenes_fuente/Foto_2.PNG"
img = cv2.imread(path)
image_draw=img.copy()
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
filename1 = 'placa_grises.jpg'
cv2.imwrite(filename1, img_gra... | [
"noreply@github.com"
] | smorap.noreply@github.com |
74cdf0828e11c756fec67a5b80bde0e5b418453d | f0063ed82e9f6c71485796826b1cb8878b2d50f5 | /lab2/lab2c.py | b08170a118b6cc91a7402b32e9eff08b4f16c758 | [] | no_license | pyao7-code/ops435-Python | d6ca6c9651c9426d010e8f15450d43920e3bd706 | 488b382d28e2530baf8da5a1f25a4bd88f471dd2 | refs/heads/master | 2021-10-26T02:38:31.576764 | 2019-04-09T22:00:56 | 2019-04-09T22:00:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | #!/usr/bin/env python3
import sys
name = sys.argv[1]
age = sys.argv[2]
print('Hi ' + name + ', you are ' + str(age) + ' years old.') | [
"vlha@myseneca.ca"
] | vlha@myseneca.ca |
d5a1208ab0db01560b65193a0939850725825dbe | 2fdabdbf4a1cce9708e5b194331908e95172fe4f | /crudapplication/migrations/0002_auto_20190518_1557.py | 4387d58084c3fe23d14d122065aca11e9d0468ab | [] | no_license | patilganeshv/DjangoSampleProject_webapplication | b1245d7291d080f1b5e3ecbcd43231803a096d25 | 116b8f5b6fa19945d23f090786b2e426f805450b | refs/heads/main | 2023-03-24T23:32:34.094132 | 2021-03-08T07:03:36 | 2021-03-08T07:03:36 | 345,560,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | # Generated by Django 2.2.1 on 2019-05-18 10:27
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('crudapplication', '0001_initial'),
]
operations = [
migrations.AlterModelTable(
name='employee',
table='employee11111',
... | [
"patilganeshv@gmail.com"
] | patilganeshv@gmail.com |
7129342bc82be34d2f6921de2f6dfee14ef9e637 | d719e636edefb96d43383245c9c36dd701605092 | /setup.py | dd7440e7ec0034f1f44853ee11b55e11bbaa250a | [
"MIT"
] | permissive | Spider8801/conllu | a5c6c6b128f4ee1989449f8dbc8474763d61ea16 | d3f72686961376ac63e7b0e6ae47776bc6e50c55 | refs/heads/master | 2022-07-29T13:07:39.171546 | 2020-06-07T14:53:48 | 2020-06-07T14:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # -*- coding: utf-8 -*-
import os
from setuptools import setup
VERSION = '3.0'
setup(
name='conllu',
packages=["conllu"],
version=VERSION,
description='CoNLL-U Parser parses a CoNLL-U formatted string into a nested python dictionary',
long_description=open(os.path.join(os.path.dirname(__file__), ... | [
"em@kth.se"
] | em@kth.se |
04610e70877f5e0bfca5d4ab9e745ffc7706df50 | b80d6ad08fa5dc8c21bd08f99249c8df37af3126 | /setup.py | 4c2b3e596423b6ecd2f2e967c8a2462c801cfed6 | [] | no_license | quentin-auge/hilbertpiet | 717295e344ede803885fac2262816e2c115c4fb2 | 304c52129013c46ba71886be792039fc0a6a25be | refs/heads/master | 2022-07-13T10:16:53.801796 | 2020-05-10T02:15:56 | 2020-05-10T02:18:29 | 257,011,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | # coding: utf8
from setuptools import find_packages, setup
setup(name='hilbertpiet',
version='0.1',
description='Hilbert-curve-shaped Piet programs generation',
author='Quentin Augé',
author_email='quentin.auge@gmail.com',
license='closed',
packages=find_packages(),
package_... | [
"quentin.auge@gmail.com"
] | quentin.auge@gmail.com |
cd14d101a34e2fb93abf67a6f5d7818b15d89544 | e3565e1ce607f60745f2a045aae8026661a6b99b | /resources/Onyx-1.0.511/sandbox/malach/filefix.py | b32a126b489cba53a0958df1d590cbbd7e027b16 | [
"Apache-2.0"
] | permissive | eternity668/speechAD | 4c08d953b2ed06b3357b1c39d8709dd088a2471c | f270a1be86372b7044615e4fd82032029e123bc1 | refs/heads/master | 2021-01-12T22:10:33.358500 | 2014-02-03T16:03:28 | 2014-02-03T16:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,982 | py | ###########################################################################
#
# File: filefix.py
# Date: Tue 28 Apr 2009 14:51
# Author: Ken Basye
# Description: Some general tools for fixing files
#
# This file is part of Onyx http://onyxtools.sourceforge.net
#
# Copyright 2009 The Johns Hopki... | [
"nassos@n12mavra.cs.ntua.gr"
] | nassos@n12mavra.cs.ntua.gr |
a51419acde7f1d082a6e3f58a35f250b8ce99b1b | 73d4f10770b30eb5014fe6f12ad11656f08b5a15 | /venv/Scripts/pip3-script.py | cc4a41a0d49198bb572b233539d2b003babfdb75 | [] | no_license | wksiazak/machinelearning_practicing | 95ed9ac8de2c0a270ade9fde148b8237b30618f0 | b7b747c293329390efc68cf847fc4c4e4692256a | refs/heads/master | 2022-06-20T22:16:55.264199 | 2020-05-09T10:22:35 | 2020-05-09T10:22:35 | 258,751,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | #!C:\machinelearning_1904\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exi... | [
"weronikaksiazak@gmail.com"
] | weronikaksiazak@gmail.com |
4cec37fbef63716ae1ffe812f59e2cb1b4f0e9fa | 469eb9256ade8913a454d9e59bb11710239c9ab1 | /test/test_Identify.py | 9067654f9abd852594d855c81297232f1c76363c | [] | no_license | mokko/oai | 8b564b3bba0561278a34e7fdad26d35b9f931ee1 | 5d5ed4c0e2a792c82c1b6b3daa042c1bb9890c80 | refs/heads/main | 2023-04-13T17:15:59.891005 | 2021-05-01T10:16:34 | 2021-05-01T10:16:34 | 363,194,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | import sys
sys.path.append ("../src")
from Identify import Identify
def test_init():
i = Identify(
baseURL="www.mmm.com/oai", deletedRecord="transient", repositoryName="M3OAI"
)
assert i
assert i.baseURL == "www.mmm.com/oai"
assert i.deletedRecord == "transient"
assert i.repositoryName == ... | [
"mauricemengel@gmail.com"
] | mauricemengel@gmail.com |
9cacc499ad1d427ec8d2592fa29bfeab94a32130 | bb18f19a00e01e94652bcbe1aeb5d5da70f58f8f | /setup.py | 7ba523b7a8795415a2d1f494060fe99a81697a6d | [
"MIT"
] | permissive | MLDERES/isys599v | 02b8e4d573bccbbf06ab31b307649f99c03c334c | 078097f23c3d636a1472546ff4384abbe641a28d | refs/heads/master | 2022-04-08T14:20:14.646766 | 2020-02-23T20:50:25 | 2020-02-23T20:50:25 | 234,643,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from setuptools import find_packages, setup
setup(
name='src',
packages=find_packages(),
version='0.1.0',
description='Repo for work in 599v',
author='Michael Dereszynski',
license='MIT',
)
| [
"mlderes@hotmail.com"
] | mlderes@hotmail.com |
ab7cff661520295ebd66cdf67181839a9f2b1a66 | c547c293c101cd245d4219475587a312b53e5f6c | /KNN/kNN3.py | dbe213cb7483d3d427db003713340f2be47868ea | [] | no_license | MaxTian666/machine-learning | 4c977593d618526ff03525a38ed96b89e86997e7 | b0c1799c735a0acba8a517f79757f12d27bb312b | refs/heads/master | 2020-03-08T03:47:42.018667 | 2018-04-03T12:25:16 | 2018-04-03T12:25:16 | 127,901,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | # -*- coding:utf-8 -*-
"""
@author:Tian Sir
@file:kNN3.py
@time:2018/3/2214:16
"""
'''
实施KNN算法的步骤:
1)计算已知分类数据集点与当前点的距离;
2)安装距离递增次序排序
3)选取与当前点距离最小的k个点;
4)确定前k个点出现的频率;
5)返回前k个点出现频率最高的类别作为当前点的预分类。
'''
from numpy import *
import operator
'''
创建一个函数用于生成一个待分类的数据及对应的数据标签
'''
def createDataSet():
group = array([[1.0, 1.1]... | [
"409855255@qq.com"
] | 409855255@qq.com |
8c895338f7d0efd258a225c32321d524a8813768 | 9cddc6000431b88e78e8f953855db135b62dd490 | /question_generation/framework/simulation.py | 7a0c31cd598a22f2a1f0e9cdd036fd387717eb28 | [
"MIT"
] | permissive | hucvl/craft | 5aae1c3e3e6eac23e0c2c9ef4c18fc1a51d01d61 | 85c50b26eb8941781dc4bb93bce61201aff4643d | refs/heads/main | 2023-05-15T00:57:37.502562 | 2021-06-10T13:29:34 | 2021-06-10T13:29:34 | 372,904,182 | 12 | 0 | MIT | 2021-06-10T13:29:35 | 2021-06-01T17:00:44 | C | UTF-8 | Python | false | false | 14,309 | py | import copy
import json
import os
import subprocess
import sys
from pathlib import Path
from loguru import logger
from framework.utils import FileIO
from svqa.causal_graph import CausalGraph
import svqa.generate_questions as QuestionGeneratorScript
class SimulationRunner(object):
def __init__(self, exec_path: ... | [
"m.samilatesoglu@gmail.com"
] | m.samilatesoglu@gmail.com |
cdf4f9f0feb9581b551fcc12879a25bdc4bcd735 | 5eb91e9c60f79d401a8580768885d227dfb75cf1 | /sahara/plugins/mapr/services/oozie/oozie.py | e11c18f6ba0d56552e99f7e89422558105efea85 | [
"Apache-2.0"
] | permissive | hamzehkhazaei/sahara | 3b2375e1a6602fc359766abdf5b7453a407a164b | 58faa2d62e30390732dc1be4be5bc9220960fcf0 | refs/heads/master | 2021-05-29T00:19:24.588397 | 2015-05-05T14:41:35 | 2015-05-05T14:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,903 | py | # Copyright (c) 2015, MapR Technologies
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"aosadchiy@maprtech.com"
] | aosadchiy@maprtech.com |
0a101df3b11fa31f2f9270e4eb622a88f96554f3 | 41c605bf3a002a757cb2344cff526d7a7ae56ea9 | /plotly/validators/scattercarpet/selected/marker/__init__.py | 67542f2ea7f75af48003f76f0d057af6429e1e4c | [
"MIT"
] | permissive | Jonathan-MW/plotly.py | 9674b90b5de11fd9089e6afefd04b57bc4587829 | 7528c00772f44dee24c0df7e15d70a4852f171a8 | refs/heads/master | 2020-05-30T06:04:13.621478 | 2019-05-31T10:34:15 | 2019-05-31T10:34:15 | 189,571,988 | 2 | 0 | MIT | 2019-05-31T09:59:53 | 2019-05-31T09:59:53 | null | UTF-8 | Python | false | false | 1,616 | py |
import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name='size',
parent_name='scattercarpet.selected.marker',
**kwargs
):
super(SizeValidator, self).__init__(
plotly_name=plotly... | [
"noreply@github.com"
] | Jonathan-MW.noreply@github.com |
d1ca2a52b83d8def8c1aa10f303e6cad817df346 | 41a20700b5bb351d20562ac23ec4db06bc96f0d7 | /src/fg/tv_metrics.py | f38e38ae3fce02c994c9be7c9605523073f0d3f0 | [] | no_license | kedz/noiseylg | ee0c54634767e8d3789b4ffb93727988c29c6979 | 17266e1a41e33aecb95dc1c3aca68f6bccee86d5 | refs/heads/master | 2020-07-30T11:22:08.351759 | 2019-10-30T21:33:11 | 2019-10-30T21:33:11 | 210,212,253 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | from plum.types import register, PlumModule, HP, props
from subprocess import check_output
from queue import Queue
from threading import Thread
from pathlib import Path
from tempfile import NamedTemporaryFile
import json
import d2t.preprocessing.tvs as preproc
@register("metrics.tv_metrics")
class TVMetrics(PlumMo... | [
"kedzie@cs.columbia.edu"
] | kedzie@cs.columbia.edu |
cab40ed6e22c6fcff267f7add19123109e54eaf2 | fd714513f0923a4e533ecb5e5ece1e78105544cd | /views.py | abb858051ed528f85a520d3ffa8860149c2c0b4d | [] | no_license | zhaojason98/Bungalow_challenge | 102f1eb45c6aca3256db304fe3b60baccfcbef18 | 003e4cfd780f6ac4424bc61791802cd5f04b94ae | refs/heads/master | 2020-08-11T06:18:47.839710 | 2019-10-11T18:58:58 | 2019-10-11T18:58:58 | 214,508,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from django.http import HttpResponse
from django.template import loader
from .models import House
def index(request):
houses_list = House.objects.values_list('id')
return houses_list
def description(request, zillow_id):
house = House.objects.get(id=zillow_id)
return house.getDescription()
... | [
"noreply@github.com"
] | zhaojason98.noreply@github.com |
ca3084e1c7ae03fd9680cca4f6fa0bbcafd079d7 | 89e8383393fd69ee8c60c392131f1707e36e476b | /variable.py | 351ee054a921f9b6f16ed993a561b69c23c5ea17 | [] | no_license | vaarigupta/python_practice | ce011196576171bfb0b43cf8e37a21784d5361a4 | d642649a0835b3a991961faf3c8bd34434d06080 | refs/heads/master | 2020-03-12T23:21:33.512791 | 2018-04-24T14:12:23 | 2018-04-24T14:12:23 | 130,864,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | Python 3.6.4rc1 (v3.6.4rc1:3398dcb, Dec 5 2017, 20:41:32) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> no1 = 1
>>> no2 = 2
>>> print("number1:",no1, ", number2 :", no2)
number1: 1 , number2 : 2
>>>
| [
"cutievaarigupta@gmail.com"
] | cutievaarigupta@gmail.com |
e1e15445a7861fad680daa90f449659e805d60da | f65c89f0cf09912dbf55ee077d583085b0a607dc | /keyboards.py | 2254e464a3e9b1960761d2dcba5a88755ceb385a | [] | no_license | Hacker12lamer/HackerPisya | 02ffe7bc106edcfab89a9afe8795c3a63ff445e0 | c2fec30831a232e8ee4e997587faa50c69c68fb1 | refs/heads/master | 2020-12-10T00:49:26.337633 | 2020-01-12T21:41:57 | 2020-01-12T21:41:57 | 233,462,870 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 25,726 | py | # -*- coding: utf-8 -*-
import telebot
keyboardMain = telebot.types.ReplyKeyboardMarkup(True)
keyboardMain.row('🔹 Москва')
keyboardMain.row('🔹 Санкт-Петербург')
keyboardMain.row('🔹 Ростов-на-Дону')
keyboardMain.row('🔹 Екатеринбург')
keyboardMain.row('🔹 Челябинск')
keyboardMain.row('🔹 Новосибирск')
keyboardMain.r... | [
"noreply@github.com"
] | Hacker12lamer.noreply@github.com |
b48cbc34229e604e32f551d252f74916fe277a3e | b789bf78ffe684782da7eed9df9d88a62d13ad82 | /pyannote/database/protocol/__init__.py | d9f270782593bbe36e7e6fabe7d6039e4a1d5979 | [
"MIT"
] | permissive | yinruiqing/pyannote-database | 8d77678efec06ffb797716e28b4673f1d5ec6453 | 731593b57082e675e0f661f6211f2dd261807561 | refs/heads/master | 2020-12-02T06:45:29.029202 | 2017-06-28T13:12:26 | 2017-06-28T13:12:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | #!/usr/bin/env python
# encoding: utf-8
# The MIT License (MIT)
# Copyright (c) 2016 CNRS
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... | [
"bredin@limsi.fr"
] | bredin@limsi.fr |
67537101f00bc797bd0d8de976e3d5c87cdc51dc | 5c0afded80cd9d773ae13a9558867716f8878e98 | /evernote_oauth_sample/wsgi_aws.py | b9b6e96a0ec79d02b9d20f547d1a6e6151ea14b2 | [] | no_license | teraijun/EN_Markdown | 3230c3043e963f7bf0a17c684897bd53f9e22573 | 016b251ee5bbd9fc64c4bcebb8efbd4268cdd5b8 | refs/heads/master | 2021-01-13T01:28:20.254636 | 2015-09-01T05:50:15 | 2015-09-01T05:50:15 | 33,945,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
import os
import site
import sys
# virtualenvのパッケージパス
site.addsitedir("/home/ec2-user/ENV/lib/python2.7/site-packages")
sys.path.append('/var/www/cgi-bin/EN_Markdown')
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "evernote_oauth_sample.settings")
# virtualenvの実行コードのパス
activate_env = os.pa... | [
"teraijun48@gmail.com"
] | teraijun48@gmail.com |
9d7d16c4a73674e00426099c87f36ac5e20d778f | 60a4f0fa5c8239edbb4cd4390e3b4a7d70c919de | /user/migrations/0006_auto_20190805_2145.py | 54fac07db74e7b1545406f8ec51ded054071913c | [] | no_license | DuncanMoyo/Developer-Portfolio | cca6cbe29e13bddbf56584e400cbd169a515c047 | 9aa8dcef123b3144d9bf2c34a19f4c65c193ac98 | refs/heads/master | 2022-12-09T17:14:42.865413 | 2019-08-09T03:55:21 | 2019-08-09T03:55:21 | 200,691,837 | 0 | 0 | null | 2022-12-08T05:59:41 | 2019-08-05T16:31:39 | CSS | UTF-8 | Python | false | false | 497 | py | # Generated by Django 2.2.4 on 2019-08-05 19:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user', '0005_auto_20190805_2144'),
]
operations = [
migrations.RemoveField(
model_name='userprofile',
name='skill_le... | [
"duncanfmoyo@gmail.com"
] | duncanfmoyo@gmail.com |
6b542e6a7eab78022064b7f12bc849610f028555 | 540506f511b41101aa0a7cb3156582d343b6b036 | /multidigrec.py | 70b3e651dd0365d719bf3710aee029754dafcdd2 | [
"MIT"
] | permissive | RajdeepMondal/NumRec | fed34be63ea98a0521f75b5721dd451d67d87a50 | 39c9bc2c1abd204b49baa3593905cf3ccede2354 | refs/heads/master | 2022-04-26T02:14:52.189318 | 2020-05-04T07:18:27 | 2020-05-04T07:18:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | import cv2
import imutils
from dnn_softmax import *
import numpy as np
import pickle
with open("parameters.pkl", "rb") as f:
parameters = pickle.load(f)
file = "digits.jpg"
img = cv2.imread(file)
img = cv2.resize(img, (700, 200))
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
thresh = cv2.threshold(gra... | [
"noreply@github.com"
] | RajdeepMondal.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.