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
98e60fc6389398e16d76d7de6e665ef79eac8947
dcc36a7744d657e15385803fcd13335685a595af
/quantdigger/demo/test_backtest.py
9500f1a4557b50deac1f9ee32fcf107612863f33
[]
no_license
timedcy/quantdigger
777c28ba96d7dba1cb491a634f46e3968f3232bb
bc492811c796caaad3801d379bb485c1986d4619
refs/heads/master
2021-01-22T01:27:52.102183
2015-11-08T04:35:37
2015-11-08T04:35:37
45,767,058
1
0
null
2015-11-08T04:36:13
2015-11-08T04:36:13
null
UTF-8
Python
false
false
2,362
py
# -*- coding: utf-8 -*- from quantdigger.engine.execute_unit import ExecuteUnit from quantdigger.indicators.common import MA, BOLL from quantdigger.engine.strategy import TradingStrategy from quantdigger.util import pcontract, stock from quantdigger.digger import deals import plotting #def average(series, n): #""...
[ "dingjie.wang@foxmail.com" ]
dingjie.wang@foxmail.com
144e2902dff07ccc9008bdb81891c775c216b282
22ca9743aa05b70002276f37284e13c9ce614257
/nodemcu-uploader.py
041c15e601d52821ee82ade6466d5e9464a093d1
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Christoph-D/nodemcu-uploader
efe2d68aab12a220c8fe9496245e92bf3ecb2923
7c7026491a4a730965903d7eb848a47f4e628195
refs/heads/master
2020-07-12T04:11:27.443014
2016-03-09T21:20:57
2016-03-09T21:20:57
53,532,605
0
0
null
2016-03-09T21:19:45
2016-03-09T21:19:45
null
UTF-8
Python
false
false
172
py
# -*- coding: utf-8 -*- # Copyright (C) 2015-2016 Peter Magnusson <peter@birchroad.net> from nodemcu_uploader import main if __name__ == '__main__': main.main_func()
[ "peter@birchroad.net" ]
peter@birchroad.net
3a206f6d8e955b15bbd61988b40ea1f668583f18
8ef5a09d76a11c56963f18e6a08474a1a8bafe3c
/algorithm/dp_subset_sum.py
44580f16c302081909155ac156cefc69cf012378
[]
no_license
roiei/algo
32c4677649c7666db148f6183fbfbf66c8b1969f
ae8bb8bf4ae4026ccaf1dce323b4098547dd35ec
refs/heads/master
2022-04-01T19:21:27.768675
2022-02-19T06:15:29
2022-02-19T06:15:29
169,021,154
0
0
null
null
null
null
UTF-8
Python
false
false
1,898
py
nums = [34, 4, 12, 5, 2] target = 9 #target = 40 def dfs(nums, depth, n, target): if target == 0: return True if depth == n or target < 0: return False res = dfs(nums, depth + 1, n, target - nums[depth]), res += dfs(nums, depth + 1, n, target), return any(res) ...
[ "hyoukjea.son@hyundai.com" ]
hyoukjea.son@hyundai.com
03dde1a263827b35b7aaa86f9f7835c933b700cc
48f73b5b78da81c388d76d685ec47bb6387eefdd
/scrapeHackerrankCode/codes/find-point.py
fc6157b3e72153e83bf8e16e66b00a8c13227285
[]
no_license
abidkhan484/hacerrankScraping
ad0ceda6c86d321d98768b169d63ea1ee7ccd861
487bbf115117bd5c293298e77f15ae810a50b82d
refs/heads/master
2021-09-18T19:27:52.173164
2018-07-18T12:12:51
2018-07-18T12:12:51
111,005,462
2
1
null
null
null
null
UTF-8
Python
false
false
251
py
# Accepted # Python 3 def find_point(x1, y1, x2, y2): print((2*x2-x1), (2*y2-y1)) for _ in range(int(input().strip())): x1, y1, x2, y2 = input().split() x1, y1, x2, y2 = int(x1), int(y1), int(x2), int(y2) find_point(x1, y1, x2, y2)
[ "abidkhan484@gmail.com" ]
abidkhan484@gmail.com
e51ccbd873a076784af7467c364a96aa7d2e3b3e
20f1d8b7fb5331d6df6e7bee796afa3beac7910d
/Practice_2/lab4/lab4_2.py
77487d2fa5253f9ce7a9232a51ca3c46fbd727ac
[]
no_license
ndtands/Algorithm_and_data_structer
e169c262445dffa132b297b55c50a2d769648f17
bb83e2185a2244ef311fb80584fd28b0c40f8329
refs/heads/master
2023-05-30T08:49:27.984870
2021-06-14T09:33:08
2021-06-14T09:33:08
376,193,072
2
0
null
null
null
null
UTF-8
Python
false
false
909
py
""" pesudocode: - weigh: from 0 to n-1 - W - value : nxW - O(nxW) Main: init value all = 0 for i from 0 to n-1: for m to 1 to W: value[m][i-1]; m < weigh[i] value[m][i]= max{value[m][i-1],value[m-weight[i]][i-1]+weigh[i]}; m>=weigh[i] ...
[ "ndtan.hcm@gmail.com" ]
ndtan.hcm@gmail.com
2c3d7af90245cf571a6c064aa837b69a7be5e9f3
b9123130de15cef57c4c10ed8fcccf2952151407
/djangoFamily/urls.py
5ada4539fcda65667d0ad20c30ed713277f71aa1
[]
no_license
ffpaiki/django-family
ad7f063af4100b7be8722a4372fb65097530d785
8b60d4bf7b68d25a9589bf246a3118b98bf9115a
refs/heads/master
2023-05-14T21:51:17.939068
2021-06-01T21:18:07
2021-06-01T21:18:07
372,964,025
0
0
null
null
null
null
UTF-8
Python
false
false
873
py
"""djangoFamily URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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-...
[ "74241058+ffpaiki@users.noreply.github.com" ]
74241058+ffpaiki@users.noreply.github.com
1e8294ec9b10630a7a9116f76fccd3992da630d5
a1ae8d7a75566dacafc46635d34314989d2ea3a1
/脚本/backup_ver1.py
1b483ce56621c6b3994e78cb5baa8ffa6745f918
[]
no_license
lianshitong/pylearn
a03cc9129be381d06f4223fa5e6bd81fae69f64c
caeb15a7ce55d8bd88be22b4942900925106b8d7
refs/heads/master
2021-01-19T04:38:12.569234
2017-04-06T03:54:48
2017-04-06T03:54:48
87,383,951
0
0
null
null
null
null
UTF-8
Python
false
false
3,019
py
#来源:www.open-open.com #编写一个Python脚本,实现为重要的文件或文件夹在指定的目录下创建备份。 #[设计思路] #[1] 将需要备份的文件和目录由一个列表指定,通过传入参数获得并保存到列表中。 #[2] 备份应该保存在主备份目录中。 #[3] 将文件备份成一个压缩文件。 #[4] 每一次备份都根据当前的日期在主备份目录中创建一个子文件夹,而所备份的文件命名为当期的时间保存在这个子文件夹中。 #[5] 压缩命令由本地用户决定。可以使用任何本地的存档压缩命令,只要它有命令行界面就可以了,那样就可以从脚本中传递参数给它。 # [参考] # [1] A Byte of Python, 2005 # [2] Pyth...
[ "lianshitong@Gmail.com" ]
lianshitong@Gmail.com
4fd112924b7f8d61fe2121c3674b954118913501
2b74bc3a31e0fa01bdd080d59b02b7eea3e1d77f
/examples/rd_themis.py
0536a036e2031fdbfaf487852e853311f9c33f64
[ "Apache-2.0" ]
permissive
serious-company/rd_themis
4fc892ec49da16856061576a3ed6d18d1f70a980
de851123cfbb4fd941f969107844023d169febfd
refs/heads/master
2023-04-08T20:15:43.943249
2020-03-08T12:55:40
2020-03-08T12:55:40
234,794,002
0
1
Apache-2.0
2023-03-30T13:32:14
2020-01-18T20:31:42
C
UTF-8
Python
false
false
1,931
py
#!/usr/bin/python3.5 # # Copyright (c) 2016 Cossack Labs Limited # # 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...
[ "andrey@cossacklabs.com" ]
andrey@cossacklabs.com
ed9afc7e270d21655fb7f14fc7d36f3a8ad9427a
0ae43af4c1dde70faed80981cf807514031b8c6c
/Monte Carlo/mcmc.py
9530b1e8844b0182fdbfa7560735b1ad5b9f6776
[ "MIT" ]
permissive
pengyuan/mlnote
6a9043867a1540f4365f2923aa04610756c74744
d390ea5d95d63fa7ce43805a36de136b0d013688
refs/heads/master
2020-03-11T23:18:44.929694
2018-04-20T10:12:29
2018-04-20T10:12:29
130,318,015
1
0
null
null
null
null
UTF-8
Python
false
false
3,680
py
# coding: utf-8 from pylab import * """采样问题:分布->数据 计算机可以获得服从均匀分布的随机数(容易根据种子生成伪随机数)。 一般的采样问题,都可以理解成:有了均匀分布(简单分布)的采样,如何去获取复杂分布的采样。 """ """M-H采样 """ def mh(): mu = 3 sigma = 10 def qsample(): return np.random.normal(mu, sigma) def q(x): return exp(-(x - mu) ** 2 / (sigma ** 2)) d...
[ "ericpeng@PengYuanWeGene.local" ]
ericpeng@PengYuanWeGene.local
9aff07ad32360b10ae281e93532a2f1af7a967f5
7826681647933249c8949c00238392a0128b4a18
/cosypose/simulator/__init__.py
6242dfa1c761870f2a85f43957247c13b7b53277
[ "MIT" ]
permissive
imankgoyal/cosypose
b35678a32a6491bb15d645bc867f4b2e49bee6d2
fa494447d72777f1d3bd5bd134d79e5db0526009
refs/heads/master
2022-12-09T11:18:23.188868
2020-08-31T15:34:02
2020-08-31T15:34:02
291,834,596
2
0
MIT
2020-08-31T22:06:12
2020-08-31T22:06:11
null
UTF-8
Python
false
false
173
py
from .body import Body from .camera import Camera from .base_scene import BaseScene from .caching import BodyCache, TextureCache from .textures import apply_random_textures
[ "labbe.yann1994@gmail.com" ]
labbe.yann1994@gmail.com
422f1fd4ccf12e0a93f2d2fe7bbdebf8e36d78f2
e1c91b1d26183fdde27e1f4392cee6924f4ee085
/models.py
202755c4736ac2a363fa81ed2b392db41608fb28
[]
no_license
ArchipLab-LinfengZhang/Auxiliary-Training
8106e5a722db921085204df2fc08ef95a161521f
568dc11c5a397a12724f302a304da60e98e68a85
refs/heads/master
2021-04-20T06:43:39.756616
2020-10-13T11:53:35
2020-10-13T11:53:35
249,663,017
5
1
null
null
null
null
UTF-8
Python
false
false
11,632
py
import torch.nn as nn import torch.utils.model_zoo as model_zoo import torch import torch.nn.functional as F __all__ = ['ResNet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152'] model_urls = { 'resnet18': './pretrain/resnet18-5c106cde.pth', 'resnet34': './pretrain/resnet34...
[ "shaokaiyeah@gmail.com" ]
shaokaiyeah@gmail.com
a85f691e07272e37e184d43b23232623c6d4c14b
1567d96d6874b2f86096eaccafbaa59ed95f726c
/laywer_in_touch/project/api/migrations/0003_auto_20190420_2108.py
124fd350b6cbd3fa1d2ff5fd33f25c63f71f2876
[]
no_license
nativanando/lawyer-in-touch
b11ff78cbcaabb292e94e7ec861eb7359300d471
771afd742c44408140c4c3d672e1dabda3fa5fab
refs/heads/master
2021-10-28T03:46:02.559506
2019-04-21T18:29:05
2019-04-21T18:29:05
182,430,472
1
0
null
null
null
null
UTF-8
Python
false
false
509
py
# Generated by Django 2.2 on 2019-04-20 21:08 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20190420_2107'), ] operations = [ migrations.RenameField( model_name='contract', old_name='customer', ...
[ "nativanando@gmail.com" ]
nativanando@gmail.com
abf3cc2733f9ecf9e321e886fbfc782dc581e43e
741f7d43d5e5d20d15d975ec8153d7ccdec19f3f
/se/task2/migrations/0002_auto_20200810_2213.py
cb4e261f57f6870e83f6dadbf6cda02f40e43b07
[]
no_license
krishnumkhodke/tasks
2ff20e3f4f6a10d962167380762b3171e845e3d8
1295c0422838c19c7ec859945863b785dd59c47f
refs/heads/master
2022-11-30T06:29:36.635311
2020-08-14T18:30:39
2020-08-14T18:30:39
287,596,927
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
# Generated by Django 3.0 on 2020-08-10 16:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('task2', '0001_initial'), ] operations = [ migrations.AlterField( model_name='user_info', name='email', fie...
[ "krishnum.khodke@gmail.com" ]
krishnum.khodke@gmail.com
dae2781054c223b7973d66222611a491d8b965b8
52407745c0d787e296de7877c6113daa814c9304
/zstp/py180320/classify_text.py
5fd2b3f92ffdd4df99496aae146c9804c7063f94
[]
no_license
moafmoar/hello
28bd378e1035dda1419a445e231601dd16a3ab15
a595c97f951591948797518f4a9d379f25d982c5
refs/heads/master
2021-09-10T17:36:40.647306
2018-03-30T06:45:25
2018-03-30T06:45:25
114,957,097
1
0
null
null
null
null
UTF-8
Python
false
false
4,680
py
""" 通过训练好的模型,对投诉进行分类 """ import pandas as pd import numpy as np import os from sklearn.externals import joblib as jl import time import jieba, re import jieba.posseg as pseg import sys, unicodedata from sklearn.feature_extraction.text import TfidfVectorizer from collections import Counter #数据和模型的存储地址 # main_path = os...
[ "cao_manman@126.com" ]
cao_manman@126.com
c3988bcfd867b120960050f68e13953610bb01d2
4ceb794a6f7951ba17b64f4d25c3780883156bbe
/codes/model.py
d64e126eeda0455f1afb72c79581194cbc9f8284
[]
no_license
TimmyWang/time_series_anomaly_detection
37ceb35198aee93788fd92c14b59cdb1d6a717e6
068ac33c695a2607658dc9dc2f8b34e5f970cf68
refs/heads/master
2022-12-06T06:58:36.256626
2020-08-23T10:36:36
2020-08-23T10:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,267
py
import os os.environ['KMP_DUPLICATE_LIB_OK']='True' from keras.models import Model from keras.layers import Input from keras.layers import Conv1D, Dense #from keras.layers import LSTM, TimeDistributed from keras.layers import Flatten#, Reshape, Concatenate import numpy as np import matplotlib.pyplot as plt def ge...
[ "michisirube1984@gmail.com" ]
michisirube1984@gmail.com
9f3e8d0c12df00c8e7512f2dd31e83eb5a13fe01
7c04c5c8c8330b4e2babffb96f7d8c88f1a39e7f
/flow/db/instdata/admin.py
cf54ff28c1ccbc770364837b67e80f9342cc97e8
[ "BSD-3-Clause" ]
permissive
OspreyX/flow
d200a07e21a90e0ff621a7d0012754d6559cd538
20cdcd6b128defe57649d6e20a5fec60488fd0d2
refs/heads/master
2020-12-27T21:22:22.863762
2013-05-20T06:11:39
2013-05-20T06:11:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,082
py
from django.contrib import admin from django.contrib.admin import helpers from django import http from django.template import loader from django.utils.safestring import mark_safe from django.contrib.admin.util import unquote from django.forms.models import modelform_factory from django.utils import simplejson as...
[ "info@quantmind.com" ]
info@quantmind.com
49254eb20c5905f20020b227a913eea9b9007358
457c673c8c8d704ec150322e4eeee2fde4f827ca
/Programming Basic/First_Steps_in_coding_lab/07_Projects_Creation.py
ccf04b1496f502d612f560496cd25f03a08b4d0e
[]
no_license
xMrShadyx/SoftUni
13c08d56108bf8b1ff56d17bb2a4b804381e0d4e
ce4adcd6e8425134d138fd8f4b6101d4eb1c520b
refs/heads/master
2023-08-02T03:10:16.205251
2021-06-20T05:52:15
2021-06-20T05:52:15
276,562,926
5
1
null
2021-09-22T19:35:25
2020-07-02T06:07:35
Python
UTF-8
Python
false
false
191
py
architect = input() amount_projects = int(input()) total_time = amount_projects * 3 print(f'The architect {architect} will need {total_time} hours to complete {amount_projects} project/s.')
[ "daredevil91138@gmail.com" ]
daredevil91138@gmail.com
f5b3338d64bfd8747d4e1c0534c8191e3607e991
a9e09d4de8c0d012877aaf8db40331bea5bf1462
/examples/bert_cls_pooling.py
a5193dab4a9d22802ca5f2311441b93305ab60e1
[ "BSD-3-Clause" ]
permissive
amenityllc/SentEval
24dabcaf1e0784a14774c52414f9c28141eb2d95
8b6b4528820dbe06869c39829512785b2f56189d
refs/heads/master
2020-04-28T09:32:17.943065
2019-03-18T15:08:32
2019-03-18T15:08:32
175,170,273
0
0
NOASSERTION
2019-03-12T08:47:29
2019-03-12T08:47:00
Python
UTF-8
Python
false
false
594
py
# from examples.bert_embeddings import BertEmbeddings, AbstractBertPooller from bert_embeddings import BertEmbeddings, AbstractBertPooller import numpy as np class CLSPooller(AbstractBertPooller): def __init__(self): super().__init__() def get_name(self): return 'cls_pooler' def pool(sel...
[ "moshe@amenityanalytics.com" ]
moshe@amenityanalytics.com
0d2b450afa4215b6663f3662b252963b05493a13
7e2d802a17e42d50974af29e4c9b658d5da6471b
/IC/21-Missing-drone.py
addde9d1910b7c9628616aee6fecb212e90f64fb
[]
no_license
siddharthadtt1/Leet
a46290bacdf569f69d523413c0129676727cb20e
1d8b96257f94e16d0c1ccf8d8e8cd3cbd9bdabce
refs/heads/master
2020-06-20T16:21:15.915761
2017-05-15T22:35:42
2017-05-15T22:35:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
28
py
# see Leet 136 single number
[ "me@example.com" ]
me@example.com
6924472770c9b64625e91f5425599c76f151c774
e3946d91dc5fe71989c2f4b6390232865fcb5d1b
/fjord/flags/spicedham_utils.py
2e87b27ba33d4e350010c6253dd663f313cda103
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
zeusintuivo/fjord
61b632fd6df0e1b3508e628fe4f682a937cc0244
3bd227004d369df1fdc39f06acff12ebc8f0fe34
refs/heads/master
2021-01-16T18:28:52.564638
2014-09-24T21:02:51
2014-09-24T21:02:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,166
py
import json import os import re import threading from spicedham import Spicedham from spicedham.backend import BaseBackend from fjord.flags.models import Store class FjordBackend(BaseBackend): def __init__(self, config): pass def reset(self): Store.objects.all().delete() def get_key(se...
[ "willkg@mozilla.com" ]
willkg@mozilla.com
832974b9068a90cd72f7987a17131faae3924d37
f3bd271bf00325881fb5b2533b9ef7f7448a75ec
/xcp2k/classes/_cell3.py
c1150112a0c843de3db8f2c0d137662bf75a7671
[]
no_license
obaica/xcp2k
7f99fc9d494859e16b9b0ea8e217b0493f4b2f59
6e15c2c95658f545102595dc1783f5e03a9e6916
refs/heads/master
2020-07-15T17:27:43.378835
2019-02-11T16:32:24
2019-02-11T16:32:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
from xcp2k.inputsection import InputSection from _cell_ref1 import _cell_ref1 class _cell3(InputSection): def __init__(self): InputSection.__init__(self) self.A = None self.B = None self.C = None self.Abc = None self.Alpha_beta_gamma = None self.Cell_file_na...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
a056eed4886e7ab503371a8658a267813fb8a067
dc7632da4f04385142ea86e4a63c8537eaa2edeb
/django_app/config/urls.py
a7a6a32944ca6639e025c365d8c4507f1ca55a53
[]
no_license
jmnghn/0621_test
bf4ecd4cc4ce56e06f4f07922d53e4dfb7471bab
9cb3930d24644897074a336c998759a6a86b656a
refs/heads/master
2022-10-11T17:53:34.715991
2017-06-22T05:03:39
2017-06-22T05:03:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
"""test_project 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') Cla...
[ "joengmyeonghyeon@gmail.com" ]
joengmyeonghyeon@gmail.com
0103d51ce865761ed13bd38499675fd2c9ebd607
e865222c08dbd64758e70d67b97cf954334f1cf1
/find_refs.py
80baad3c7b1fad0cbf5e0fa732fa0c625d134add
[]
no_license
gbroques/fc-scripts
83f9313eab02fc2f38fbe7f5f4ad8119f1ff8e3b
283bbed243718e261a9f52deb436378162b53a8e
refs/heads/master
2023-06-26T06:27:20.529426
2021-07-26T01:44:04
2021-07-26T01:44:04
380,091,819
1
0
null
null
null
null
UTF-8
Python
false
false
12,366
py
import argparse import glob import os import re import zipfile from pathlib import Path from typing import Callable, Dict, List from xml.etree import ElementTree from xml.etree.ElementTree import Element class Reference: """Represents a reference to the property of an object in another document.""" ...
[ "groques360@gmail.com" ]
groques360@gmail.com
fdfe2da15ad67c8b189985f392c4c6bf45bfc155
2df04f6354647440618f87acc9fe8eee480ab11a
/ex036.py
962783fa2bc74fa6a18e3385a7b4ea2fc071d8fc
[ "MIT" ]
permissive
zWillsz/exsvscode
de6a3d79d73178e6168088a2851bfc4bf9cc9985
ba507dca6de748e3c82c306731137bb5f6f0c918
refs/heads/main
2023-03-22T00:39:58.021276
2021-03-11T00:48:17
2021-03-11T00:48:17
345,176,629
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
n1 = float(input('Digite um número: ')) n2 = float(input('Digite outro número: ')) n3 = float(input('Digite outro número: ')) if n1 < n2 + n3 and n2 < n1 + n3 and n3 < n1 + n2: print('É possível fazer um triângulo.') else: print('Não é possível fazer um triângulo.')
[ "williammenezes719@gmail.com" ]
williammenezes719@gmail.com
e959abd5bcb09d4400358e2b64740608947477ad
990aeac794d108927157ba0e13e85dad622f9970
/LAB/SourceCodes/EchoServer/client.py
21d343d05f481df640fa401b06f284ba9c001f96
[]
no_license
darwinsubramaniam/UDTECH
af07f0690bbe4304670d4d98a71caeeaaaadbc97
6f6151845a20c3dd456b70aab361ce7e1bb9eeec
refs/heads/master
2021-01-17T05:34:57.104956
2015-11-14T15:48:40
2015-11-14T15:48:40
42,150,764
0
1
null
2015-10-16T18:13:58
2015-09-09T02:18:46
HTML
UTF-8
Python
false
false
847
py
__author__ = 'darwin' import socket import sys #create a TCP/IP socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # Connect the socket to the port where the server is listening ser_address = ("192.168.1.19", 10000) print(sys.stderr, 'connection to %s port %s' % ser_address) sock.connect(ser_address) t...
[ "darwinsubramaniam@googlemail.com" ]
darwinsubramaniam@googlemail.com
7b6adfe3e2a7b0b6f0a1ad95b1f71cfddbc311ea
7e583b67f1a3e73d7ed10a63372bcba70c3d4432
/sim_db/src_command_line_tool/commands/delete_sim.py
892e06e181d106043458784238a0db352c606780
[ "MIT" ]
permissive
task123/sim_db
6edd9e502186b13eec19ae1a02edbf8ccd6c09d7
892934693fc166640f6cbf7af905a2c0d48ea99b
refs/heads/master
2021-07-20T02:19:10.764670
2020-05-07T10:00:08
2020-05-07T10:00:08
153,098,309
0
0
null
null
null
null
UTF-8
Python
false
false
4,091
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """Delete a row in the sim.db. One must either provide a list of ID's or a condition to delete sets of simulation parameters (rows) from the database. Usage: python delete_sim.py --id 'ID' python delete_sim.py --where 'CONDITION' """ # Copyright (C) 2017-2019 Håko...
[ "hakon.tasken@gmail.com" ]
hakon.tasken@gmail.com
73ebe4706416324038c098bffa8ff1673ac13aab
96a08c181df0873ed61645c63cbb2870b713ec56
/lane.py
65c5343077343eeb0669dafd3d2ffb52b11db41a
[]
no_license
KnightFoxii/Lane-Detection-system
fe33cff4ba5a9b5c9a8c1a77a88633437b1a5555
5991e2b57fe9cf42cc4b7ce3f859ee5dbd7ca3bd
refs/heads/master
2022-12-01T22:16:59.298843
2020-08-20T15:59:58
2020-08-20T15:59:58
289,047,663
0
0
null
null
null
null
UTF-8
Python
false
false
2,940
py
# Import the required libraries import cv2 import numpy as np import matplotlib.pyplot as plt def canny_edge_detector(image): # Convert the image color to grayscale gray_image = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY) # Reduce noise from the image blur = cv2.GaussianBlur(gray_image, (5, 5), ...
[ "noreply@github.com" ]
noreply@github.com
98f971dc88967fb06d38b0ee5fa5d6a36c736e0f
0b078aec6ff439aa7a59152913d88cd617d6bdd1
/main.py
3cd15d07c4494a73774edf5bc597542a3f7ddb54
[]
no_license
RahulAnand442001/ColorgramPy
0f2fc7a70376c32e72625365ecef8b618441dc72
11c829f985a4b399703964d7a7e83b6f59e2a7da
refs/heads/master
2023-02-05T09:22:16.726583
2020-12-17T07:42:11
2020-12-17T07:42:11
322,218,526
0
0
null
null
null
null
UTF-8
Python
false
false
1,364
py
# import colorgram # colors = colorgram.extract("image.jpg", 30) # for col in colors: # red = col.rgb.r # blue = col.rgb.b # green = col.rgb.g # color = (red, green, blue) # rgb_colors.append(color) # print(rgb_colors) import turtle import random color_list = [(202, 12, 30), (238, 24...
[ "sahurahul442001@gmail.com" ]
sahurahul442001@gmail.com
51faeca946587f96b7b9dd94f87c793737f1948a
2bcafd5b76b68956489c2e9f9df0e44ec18b3b95
/HardExamples.py
4808338ebb8470b25fa17335a869087da74fe312
[]
no_license
pekkar/hog-cell-detection-framework
45439c893ca63b77fa192d3e206e442a89df4f50
1299799245bd3a537d57704ee2d5c356259abbe8
refs/heads/master
2021-01-22T21:12:08.158648
2015-09-29T18:02:55
2015-09-29T18:02:55
43,384,354
0
0
null
2015-09-29T17:52:20
2015-09-29T17:52:20
null
UTF-8
Python
false
false
13,923
py
# -*- coding: utf-8 -*- # Libraries import os import glob import time import datetime import numpy as np import cv2 import scipy import uuid # Files import SVM import DetectionProcess import Filters import MeasurePerformance # ---------------------------------------------------------------- # Returns a list...
[ "tuomas.tikkanen@hotmail.com" ]
tuomas.tikkanen@hotmail.com
58e37c32308bc62287cb206420482f9b9601e669
0bb040ccd488f83655bd7f20305dd3e66b5b5bed
/stuff5e/forum/migrations/0016_auto_20210103_2318.py
f8d2f2376f4e1604e0c8579df47110db076f79a8
[]
no_license
kozakusek/bd_proj
75bc4bfc17708f850d13fe4f798ccbdb89a711dc
bd11a3a5ef17fd3ac08469a798b44f8dda1b4215
refs/heads/master
2023-03-04T00:03:59.783426
2021-02-18T20:10:22
2021-02-18T20:10:22
326,291,648
0
0
null
null
null
null
UTF-8
Python
false
false
503
py
# Generated by Django 3.0.5 on 2021-01-03 22:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('forum', '0015_auto_20210103_2212'), ] operations = [ migrations.AlterField( model_name='bonus', name='name', ...
[ "kozarynabartlomiej@gmail.com" ]
kozarynabartlomiej@gmail.com
541cb69c75260157173f8624d237328916435f77
cfd374b34a6b1a6ae16b5d23f633a0c47ae471e1
/generated_python_code/ball_collector/ballcollector/scripts/subsystem_camera.py
2b5a8a3131b05aa8935b5914b541fe7ed40ab212
[ "BSD-3-Clause" ]
permissive
mfigat/public_rshpn_tool
dd91d12e28d31a9c97c878b4d6e0a482a9bddfb6
3555cb8f1eb35ef12441b9aef63dae8f578c2aa7
refs/heads/master
2021-11-05T23:47:08.904506
2021-11-02T12:26:29
2021-11-02T12:26:29
207,675,046
0
0
null
null
null
null
UTF-8
Python
false
false
26,765
py
#!/usr/bin/env python ''' Copyright (c) 2019, Robot Control and Pattern Recognition Group, Warsaw University of Technology All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions...
[ "maksym.figat44@gmail.com" ]
maksym.figat44@gmail.com
ac56f7c3e781f8956edb58ef1d5a1467891a3fb5
dd47f3cbdc1ca987dd30275d6612f34f7cd69885
/lesson_4/lesson_4_5.py
b8f646bdcbb679847cf5b0c7b1319063ca071a1d
[]
no_license
ek01012020/python_base
3c7a6db6dc5039b07e504eae4b78e171989d3e61
67ba00581361322bae151e61cf9e41bcaa3aa456
refs/heads/master
2023-01-20T02:33:43.434356
2020-11-20T10:14:07
2020-11-20T10:14:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
'''Реализовать формирование списка, используя функцию range() и возможности генератора. В список должны войти четные числа от 100 до 1000 (включая границы). Необходимо получить результат вычисления произведения всех элементов списка.''' from functools import reduce def my_func(pre_el, el): return pre_el * el m...
[ "ek01012020@gmail.com" ]
ek01012020@gmail.com
dd1abf4c54ae75cafa0a93d25b9b6d4ff5540e44
56e37f0a0dd73fd544853bbbeb41e4ec2906b157
/setup.py
b83d5a13b9f28ef178588c5e0caae4a7e720af29
[ "Apache-2.0" ]
permissive
gsjurseth/aws-api-gateway-developer-portal
575a7a4a83a073f48e2bc41691fd3bc00f0b1ade
69c5c13dc9d70b74ef1f8eaf77153b88348aad43
refs/heads/master
2021-01-19T05:50:02.994606
2017-10-30T09:59:49
2017-10-30T09:59:49
100,585,005
0
1
null
2017-08-17T09:14:27
2017-08-17T09:14:27
null
UTF-8
Python
false
false
1,460
py
#!/usr/bin/python import logging import os import sys from golem.build_utils import build_gradle, get_arguments args = get_arguments() logging.basicConfig(level='DEBUG'); logger = logging.getLogger('setup') env_vars = { "cco-dev" : { "eu-west-1": { "CUSTOM_DOMAIN_NAME": "apigw.ebuilder.io", "LOGLE...
[ "geir.sjurseth@gmail.com" ]
geir.sjurseth@gmail.com
84e38d5ffdb27a5283e46d446abbd1e8d4a947e3
655c6b2500bd72d8f84e9197b534afc9e336917e
/doubanCrawl/settings.py
1110333a19d991838a68affdef8f8637f832ac7b
[]
no_license
hackingwu/doubanCrawl
da66d3c51d5d77d79627a6c7e25fa4d255dfa22b
e8005409238a515eedc2630e6c01acd6f1eda846
refs/heads/master
2021-01-10T11:04:31.156443
2015-11-30T13:28:15
2015-11-30T13:28:15
47,086,483
0
0
null
null
null
null
UTF-8
Python
false
false
3,130
py
# -*- coding: utf-8 -*- # Scrapy settings for doubanCrawl project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # http://doc.scrapy.org/en/latest/topics/settings.html # http://scrapy.readthedocs.org/en/la...
[ "flywu5@gmail.com" ]
flywu5@gmail.com
9944cc9c11328eb7a6c0cf0d9b7bbb05684f89f3
0c84329f5d1e4e9070cece982ac827644d8a1893
/venv/bin/python-config
66e81ac48125aa0cbe7cfce2392c3aba8a368cf7
[]
no_license
Tiyas-13/LC
955deece0ecf1fc42e6a5d5fcc287ff0fca63679
ef45b44198532173c37793b9b0e8905ad7739f57
refs/heads/master
2020-06-09T16:30:02.176987
2019-07-02T22:10:50
2019-07-02T22:10:50
193,467,920
0
0
null
2019-07-02T22:10:51
2019-06-24T08:44:05
Python
UTF-8
Python
false
false
2,334
#!/home/hp/LC/venv/bin/python import sys import getopt import sysconfig valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags', 'ldflags', 'help'] if sys.version_info >= (3, 2): valid_opts.insert(-1, 'extension-suffix') valid_opts.append('abiflags') if sys.version_info >= (3, 3): ...
[ "deytiyas@gmail.com" ]
deytiyas@gmail.com
36e17c4801a1e696dbc5f9a0ef3cebb947a956f4
667a8604914d8137d0e667924a54ebc708090646
/buildpack/databroker/config_generator/scripts/config_env_whitelist.py
b1f89b3ed4b734986709a5fadcc04059b0c0c685
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mendix/cf-mendix-buildpack
ec3df05165760d716263c50923fca69bc699aee7
bd5df58da5bc106f6d864304bb8d55371d40cbc5
refs/heads/master
2023-07-26T18:37:41.970004
2023-07-13T12:42:03
2023-07-13T12:42:03
19,174,281
41
155
Apache-2.0
2023-09-14T11:52:35
2014-04-26T09:53:49
Python
UTF-8
Python
false
false
415
py
# This is list of allowed ENV VARS that will be converted into configuration from buildpack.databroker.config_generator.scripts.constants import ( ENV_VAR_BROKER_PREFIX, NODE_COUNT_KEY, ) whitelist = [ "MXRUNTIME_DatabaseType", "MXRUNTIME_DatabaseHost", "MXRUNTIME_DatabaseName", "MXRUNTIME_Data...
[ "abhishek.amte@mendix.com" ]
abhishek.amte@mendix.com
7414ad7eafe29973d4611d6f86ba80c8f4db9c97
6944f0aa994045e04d01445c70667f25184736de
/softmax.py
3e3448b10d5387abd321f6d71d0bf74275f9fc2e
[]
no_license
sumantsaxena/ML_Projects
af5918b01238977433cbe0d13587ec5b196924f6
37847f4c828be65392423f43196543f2f1769252
refs/heads/main
2023-07-17T23:58:50.442728
2021-09-05T18:26:29
2021-09-05T18:26:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,539
py
import numpy as np from scipy.special import softmax from scipy.special import log_softmax data = np.genfromtxt("HamiltonCases.csv", delimiter=',') X = data[:, 0:4] y = data[:, 4] z0 = (y < X.min(axis=1)).astype(int) z2 = (y > X.max(axis=1)).astype(int) z1 = ((z0 == 0) & (z2 == 0)).astype(int) y = np.concate...
[ "noreply@github.com" ]
noreply@github.com
164503ed62c9543f52af60bfa4c3b9c71832e65c
e5fe7c3b4f2ede48cf32353e70c74961c726a026
/server/rest/main/rest_controller.py
1cae2712a858e226bae38f189916503c2f67273d
[ "MIT" ]
permissive
lazykyama/ClusteringVisualize
871e971a6839f2d34d5ba023ff40981d3b8c5983
5ce366bf05474ab91ef8eec78bc217168f893dc2
refs/heads/master
2021-01-23T08:43:34.323670
2013-05-03T11:59:11
2013-05-03T11:59:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,797
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys, traceback from kmeans_rest_controller import * from http_response_wrapper import * class RestController: # コマンドとクエリをサブコントローラに渡して実行させる def execute_with_subcontroller(self, command, query): # 本当はこのへんでメッセージキューを利用したほうがいいと思いますが、 # 簡易実装ということ...
[ "yamasaki.k.1101@gmail.com" ]
yamasaki.k.1101@gmail.com
2a976cf99191a3f8e6e31bfa00a10abbbf4117fb
3099c7efd083e4bab488912134a2694e0492bc34
/ch09/regularization.py
15b840b14b4954f602185896c7971a36d418984d
[]
no_license
lkhoho/DL4CV_Starter
54d948b4771fef38c2ad8302b0a6396f46eca917
fdc296bce4146f18d140e03fdc4da3170287eddc
refs/heads/master
2022-02-03T22:06:47.679246
2022-01-25T09:46:28
2022-01-25T09:46:28
131,102,142
1
1
null
null
null
null
UTF-8
Python
false
false
1,578
py
import argparse from imutils import paths from sklearn.linear_model import SGDClassifier from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import train_test_split from pyimagesearch.datasets.simple_dataset_loader import SimpleDatasetLoader from pyimagesearch.preprocessing.simple_preprocessor...
[ "keliu@uwm.edu" ]
keliu@uwm.edu
d06ae631edf4627719568c2fa0175e50fd4988cf
05172b2f9ac3cc2dc925631fcb49513b3e02ea2c
/_PythonDataStrutures/DynamicArray.py
89bad60ce24f861f5bcb6e1d810f71816fdb0a35
[]
no_license
KickItAndCode/Algorithms
cbe1ea95c1e655cbfa0b829d3bd2a2a78d7d862f
d41e8a2262cede3154bc5b48c43fb60ac098e385
refs/heads/master
2020-04-26T07:08:37.127285
2019-12-17T03:46:10
2019-12-17T03:46:10
173,385,735
2
0
null
null
null
null
UTF-8
Python
false
false
908
py
import ctypes class DynamicArray(object): def __init__(self): self.n = 0 self.capacity = 1 self.A = self.make_array(self.capacity) def __len__(self): return self.n def __getitem__(self, k): if not 0 <= k < self.n: return IndexError('K is out of bounds...
[ "henderson@Roberts-MacBook-Pro-3.local" ]
henderson@Roberts-MacBook-Pro-3.local
c8df08cd076940f234c738d05d98284b04845a7d
0921aa5e3e6084ea391bcfd690ecb03025cbdacc
/job_import.py
3f226e8d5369b36505488bdeb3c1ce9883d94798
[]
no_license
h-parekh/jenkins_utils
aebc5b6cabcacde475e8e3442de6862fe2fe639c
9f7f037f84dfd74b5d551662389ce903aa3e1c2c
refs/heads/master
2020-03-21T01:13:31.930866
2018-06-19T18:37:23
2018-06-19T18:37:23
137,930,604
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
import jenkins import xml.etree.ElementTree as ET import os url = os.environ['JENKINS_URL'] username = os.environ['JENKINS_USERNAME'] password = os.environ['JENKINS_PASSWORD'] path_to_config_file = os.environ['JENKINS_JOB_CONFIG_FILE_PATH'] job_name = os.environ['JENKINS_JOB_NAME'] def convert_xml_file_to_str(): ...
[ "hparekh@nd.edu" ]
hparekh@nd.edu
f717b3d1730d62889162b5e26f197a781a601552
2a04091dcb63cc2b8bc803d3ec497e6e775a0e61
/tests/providers/audio/test_youtube.py
4efc445139c8a2cd7f488ae7fa61ca819039bece
[ "MIT" ]
permissive
vaginessa/Spotify-Downloader
3f4655e5004b7c9e50f89d657597bcffc94f7d91
d1d1223e196891d26825cbfe38e44eef8057c908
refs/heads/master
2023-08-05T09:32:12.341299
2023-01-24T07:12:35
2023-01-24T07:12:35
78,599,970
0
0
MIT
2023-07-25T22:24:21
2017-01-11T03:41:44
Python
UTF-8
Python
false
false
1,559
py
import pytest from spotdl.providers.audio.youtube import YouTube from spotdl.types.song import Song @pytest.mark.vcr() def test_yt_search(): provider = YouTube() assert ( provider.search( Song.from_dict( { "name": "Nobody Else", "ar...
[ "xnetcat.dev@gmail.com" ]
xnetcat.dev@gmail.com
433413195ed7c45b3676f07608e167a1fde9eec0
3be14950c61913576e1ee695ec05fc7ceed3b78e
/pecs/migrations/0004_auto_20210214_2048.py
02ff45b8e9bba5318a83bf2f80e75be795c0ea7c
[]
no_license
roquemike/binder2
8c991262553ede3e929c378dadbb9786fac6e97f
7917f863c34ade5646a9d334255a82cd710e919e
refs/heads/main
2023-03-11T15:50:46.317606
2021-02-26T07:06:54
2021-02-26T07:06:54
342,656,659
0
0
null
null
null
null
UTF-8
Python
false
false
915
py
# Generated by Django 3.1.5 on 2021-02-15 01:48 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('pecs', '0003_auto_20210123_0057'), ] operations = [ migrations.AlterField(...
[ "72677716+roquemike@users.noreply.github.com" ]
72677716+roquemike@users.noreply.github.com
ae5b5e91cf43266b95ffaeb5f1795e03a00655ff
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part003803.py
26d534cc630c79581554130b81c7f37de6f38777
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
5,094
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
46b9a9f729ed98e272f6501feadb2762b71b8590
7bafe264cb4ac6eff7b7e1edb6ddca267cc7e0ae
/sell_your_phone/accounts/signals.py
32f55b33a83385f254215d41afe9894ed45d9888
[]
no_license
Valentin2333/Sell-Your-Phone
6bd55acb3121ce79345b26b016db75b192d34650
e8e64e6a41826e48f8fa28af345938202d785ce4
refs/heads/master
2023-07-01T19:46:48.767568
2021-08-13T19:41:59
2021-08-13T19:41:59
394,266,053
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
from django.contrib.auth import get_user_model from django.db.models.signals import post_save from django.dispatch import receiver from sell_your_phone.accounts.models import Profile UserModel = get_user_model() @receiver(post_save, sender=UserModel) def user_created(sender, instance, created, **kwargs): if cre...
[ "v.tenev10@gmail.com" ]
v.tenev10@gmail.com
b9a35d9b23d72056681ea97f3befda8018e6c7fd
6611fc8f80e9d2ba6879ce6fae3069a66d34cc82
/python-39 objectoriented.py
83c9d8af9aa6bb896ec4c3fe127660d05ea1ac38
[]
no_license
mass234/broPython12hoursTutorials
6feae46e7f6a934b264e15e15dca1f6616958136
7d908752f4709519a9fc6885f25e8433434710ce
refs/heads/main
2023-07-09T04:16:43.939355
2021-08-16T08:04:03
2021-08-16T08:04:03
396,685,248
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
from car import Car car_1 = Car("Chevy","Corvette",2021,"blue") car_2 = Car("Ford","Mustang",2022,"red") # print(car_1.make) # print(car_1.model) # print(car_1.year) # print(car_1.color) car_1.drive() car_1.stop() # print(car_2.make) # print(car_2.model) # print(car_2.year) # print(car_2.color) car...
[ "noreply@github.com" ]
noreply@github.com
ca948906b190235d198874d255c25307202a2b12
bee57d5be5e4d249275b6709b6f2582591b72036
/Dummy K_means.py
45f26929301c1d897515fe61aa784e2a3a9caa65
[]
no_license
0zymandias11/ML
a6b3d30cd5f469b817b51b0f1bf13657cde1b423
76f6d99549becc15f914595aaec210105fea7495
refs/heads/master
2023-03-19T15:26:22.291801
2019-02-10T21:41:03
2019-02-10T21:41:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,673
py
# -*- coding: utf-8 -*- """ Created on Sun Jan 6 00:59:29 2019 @author: priya """ import numpy as np import random import matplotlib.pyplot as plt l=[] for i in range(50): l.append([]) for j in range(2): l[i].append(random.randint(1,100)) X=np.array(l) plt.scatter(X[:,0]...
[ "noreply@github.com" ]
noreply@github.com
e66c08b871e76eeaf4e11f234bb1968803b42de1
3b6074316cbce6eebb13407f221759b2a47b5548
/othellologic.py
e3789b9576c01f332829ee97f13a364a700fcd97
[]
no_license
asiddiq1/Othello
a240b0eebbc883778e8537a584268da50f77f4b1
e9638149f3d95e8db130367a3461b83b37e31315
refs/heads/master
2021-09-11T16:51:08.945852
2018-04-10T00:45:48
2018-04-10T00:45:48
107,196,174
0
0
null
null
null
null
UTF-8
Python
false
false
6,408
py
#Aisha Siddiq 81047072 Project 4 class InvalidMoveError(Exception): '''Raises an error whenever an invalid move is made ''' pass class OthelloGame: #Public Functions def __init__(self, row, column, turn, top_player_piece, bottom_player_piece): '''Initializes all objects inserted b...
[ "noreply@github.com" ]
noreply@github.com
882029deae2d3a31649ea48615af00792b932715
49406aa32e049ef52903777b5f7598c28348aa6f
/TankPy/test.py
6bf824f6eb375529c98bd8fa7e6b0b36872a1255
[ "MIT" ]
permissive
kmcgill88/TankPy
1beb3b728d153b8da6d2e576dd4b5b7deeb2216d
5c214eb452dce6669fd64e0c17b04c02d8709e88
refs/heads/master
2021-01-12T12:12:43.159641
2016-10-30T17:51:59
2016-10-30T17:51:59
72,364,951
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
import datetime from dateutil import tz on_off = "OFF" now = datetime.now(tz=tz.gettz('America/Chicago')) print "%s: %s" % (now, on_off)
[ "kevin@mcgilldevtech.com" ]
kevin@mcgilldevtech.com
e95625894d5cba62471ce44e67b02160ea805c8f
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_3/shangtai/codejamC.py
be3aad06742fb467f6074f6d0a440327d6d7dc65
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
999
py
T = int(raw_input()) N, J = map(int, raw_input().split()) def is_prime(n): if n == 2 or n == 3: return True if n < 2 or n%2 == 0: return False if n < 9: return True if n%3 == 0: return False r = int(n**0.5) f = 5 while f <= r: if n%f == 0: return False if n%(f+2) == 0: return False f +=6 re...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
85ef2d4e488b8bb8cc6f70bb01e7d115d50ceea6
dee7b7fd962bb940f63e27da2e1e7823821e0444
/test/core_tests.py
5532b9b98c926c5a07d182d1e667fb25a810fc36
[]
no_license
russellchristensen/mesh
841fd104f6ad858b7c68837442d574a06a0a63c9
20c69366ac874e1f33f26ad02ed6a5da9a354378
refs/heads/master
2021-01-18T05:54:40.243461
2013-07-15T17:13:38
2013-07-15T17:13:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,824
py
# This file is part of Mesh. # Mesh is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # Mesh is distributed in the hope that it will be...
[ "nathan.stocks@gmail.com" ]
nathan.stocks@gmail.com
0b1abe5fdb7987e0b580bb34afc4c2743ed01d20
e84c5b51e672f687ea4bbf74114c2cf5079188a9
/Hamonsoft_project01/urls.py
09eb94bf091d6643d5e07db5fb4010a9173c789e
[]
no_license
jisuuuu/Hamonsoft_project01
8620af8d3996cddec206d0d228cf0954fbdd4a45
13a1b9438efd30f5890da0994fc22d90ac920507
refs/heads/master
2021-05-17T00:39:15.591854
2020-03-27T14:06:23
2020-03-27T14:06:23
250,540,214
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
"""project_1 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-bas...
[ "gjkl55@naver.com" ]
gjkl55@naver.com
44b33e99e4d184d47d2dff12c7aa8a5883e26fff
b09147b584d6f19b4bb60fef782783ed3cd90648
/ipconfig/ipvalid.py
126474efd5f32f20d6dbdb47d7fb4bf1304ed2ba
[]
no_license
xiaobabyLu/myspider
9d442f06262acb2e43d92df96a75d2684820a2eb
dc8300bf31dcb249112698875f99ca0df512da77
refs/heads/master
2021-07-01T13:40:02.512194
2017-09-22T03:20:38
2017-09-22T03:20:38
104,065,879
0
0
null
null
null
null
UTF-8
Python
false
false
2,949
py
# -*- coding : utf-8 -*- import urllib2 import time from bs4 import BeautifulSoup import sys reload(sys) sys.setdefaultencoding('utf-8') print sys.getdefaultencoding() xici_headers = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'Accept-Language': 'zh-CN...
[ "virgolink008@163.com" ]
virgolink008@163.com
566f030c732e651fcf0627d3621b4e3301bb19d1
0263a4863b56d7b35f3d0b948dd946ff104083b6
/part03/list_factory.py
844aaa01ecdf996c8c006656bda68acc9cd712c7
[]
no_license
who-you-me/design_pattern
79208bf7de5b8d516b04c651d9d61a53f03beec2
338421901d21870be7a4c791e59cd495e38aff83
refs/heads/master
2021-01-15T23:30:43.311710
2015-02-11T14:50:45
2015-02-11T14:50:45
28,767,439
1
0
null
null
null
null
UTF-8
Python
false
false
1,226
py
# coding: utf-8 from factory import Factory, Link, Tray, Page class ListFactory(Factory): def create_link(caption, url): return ListLink(caption, url) def create_tray(caption): return ListTray(caption) def create_page(title, author): return ListPage(title, author) class ListLink...
[ "hisao.soyama@gmail.com" ]
hisao.soyama@gmail.com
81ae8ada7fd81464e17d0959e6d5cd34aea1928c
c69422b3b24928cb7f1bec375edf0edbb0eca791
/test/rbdefects/rbdefects/resources.py
15dc68bf1a2ca9186ee62de69cab36c3e2edf2a7
[]
no_license
pcr/reviewboard_git_hooks
aff0101167fa343790a6235c8b50327db4abdce5
2e38cf3303f6699fb2653c492169da213059d719
refs/heads/master
2016-09-10T23:10:54.240772
2014-02-20T02:47:54
2014-02-20T02:47:54
15,449,656
1
0
null
null
null
null
UTF-8
Python
false
false
59
py
from reviewboard.webapi.resources import WebAPIResource
[ "zhangqingyong@kingsoft.com" ]
zhangqingyong@kingsoft.com
1c7f22e097b3a2d83172781b98634e53be397dc9
5a19bcfbdf57eff9863d3e958fd00674022c9065
/Meritt_Josh_Midterm/Part_2/Meritt_Josh_Midterm_part_2.py
613e1ee38d6e5c0d6b72c27a2a2ce5cf74246237
[]
no_license
M3ritt/ISC_215
06f57109f284d805a11406fb0792a5b20c3358a9
06d68c9cf88d264f65e5af7e8e8e04c3a68dbf10
refs/heads/main
2023-03-19T23:38:49.096647
2021-03-11T21:28:03
2021-03-11T21:28:03
340,162,873
0
0
null
null
null
null
UTF-8
Python
false
false
2,110
py
""" @Authors Josh Meritt : 805157393 Midterm part 2: Simple Linear Regression """ import os import numpy as np import matplotlib.pyplot as plt import pandas as pd from sklearn.model_selection import train_test_split from sklearn.linear_model import LinearRegression d...
[ "noreply@github.com" ]
noreply@github.com
9bc07e7f9b6af02f91aaf4a8526b71f89cb6eee9
76711371a37406353e8ddad84f234a1527013e1b
/SuperResolution/main.py
0cc35a3337a17df64104228517440b7fa3131aa3
[]
no_license
oosky9/MachineLearning
b3ac9349ee15bd18a9dc23e8128de276f3858881
e89ab8a86ae59a2aee6ad5f1683be340e15daf29
refs/heads/master
2023-04-16T17:38:57.110069
2020-05-23T07:47:58
2020-05-23T07:47:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,452
py
import torch import torchvision from torch import nn from torch.utils.tensorboard import SummaryWriter from srgan import Generator, Discriminator, GeneratorLoss, DiscriminatorLoss from utils import load_datasets, psnr, ssim from tqdm import tqdm import statistics import os import argparse def get_psnr(fake, real)...
[ "oosky.ms9@gmail.com" ]
oosky.ms9@gmail.com
a508f1b21eb0f6780f7e25f0848a5d2a51ae29ab
1edd52cf197e5ae67b5939a3beb3e70761334e62
/Udemy/python/Session-1&2-Intro-print-indentation-comments/using_indent.py
dce3afaf2ce37572dcc99994e37f4ba78baff000
[]
no_license
sandeepmchary/Devops_wordpress_Notes
bdcd85d526780d03c494ecb93e714e7ffe0a4d58
ffd2092162073e1e7342c6066d023d04e6ca8c1c
refs/heads/master
2022-06-18T21:33:02.471025
2022-06-12T11:14:47
2022-06-12T11:14:47
154,679,658
1
4
null
2022-05-19T16:59:57
2018-10-25T13:51:40
HTML
UTF-8
Python
false
false
117
py
print("this is for indentation") if 3 > 1: print("using if condition") print("we are comparing 3 with 1")
[ "awssandeepchary@gmail.com" ]
awssandeepchary@gmail.com
8a9561159e82907417c9e0b374b3f8f11bf078ac
72e11a80587342b3f278d4df18406cd4ce7531e8
/pip-10.0.0.dev0-py3.6.egg/pip/_internal/index.py
7c1c210b697a85f199e819826dd94ed5eab4da72
[]
no_license
EnjoyLifeFund/Debian_py36_packages
740666f290cef73a4f634558ccf3fd4926addeda
1985d4c73fabd5f08f54b922e73a9306e09c77a5
refs/heads/master
2021-08-24T02:17:24.349195
2017-12-06T06:18:35
2017-12-06T06:18:35
113,167,612
1
0
null
null
null
null
UTF-8
Python
false
false
40,528
py
"""Routines related to PyPI, indexes""" from __future__ import absolute_import import cgi import itertools import logging import mimetypes import os import posixpath import re import sys import warnings from collections import namedtuple from pip._vendor import html5lib, requests, six from pip._vendor.distlib.compat ...
[ "raliclo@gmail.com" ]
raliclo@gmail.com
4161ab8e5b053e034447ffc09fd26f16745bd00c
a52c74a91f2de9ecf08559b1a4e6e8e07b34702d
/2_Loops_and_Lists/1_word_loop.py
7791bd34c847def50c2d35dd772884270974bb3c
[]
no_license
Demdillypickles/Python_Demos
63d5624817031437dba950d22e6a9149e0ae294d
899c25d14a1310bca227057d77713cc93c2356b3
refs/heads/main
2023-04-15T13:30:35.095365
2021-04-22T12:56:10
2021-04-22T12:56:10
360,518,026
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
from time import sleep separator = "#---------------#\n\n" word = input("Give me a word!\n>>> ") for x in word: print(x) sleep(0.5) print('\n' + separator) for i in range(0, 20): print(word[0: i % len(word) + 1]) sleep(0.5)
[ "noreply@github.com" ]
noreply@github.com
2b2ecf4b17dd2b31fbfbf57f46f019b2b1eb04ec
c903382b1c2d170ca5a00a4482ee23be94da76d8
/quokka/core/admin/views.py
b7dff6308251262454ea8aa0e2499378eaebf24c
[ "MIT" ]
permissive
alyoung/quokka
63c74ff913fe3d3b5ebdef38d9d267b149a6c9c1
a38749379f01c01cc887838999efa364dea5de04
refs/heads/master
2021-01-17T22:56:34.760694
2013-11-22T21:42:50
2013-11-22T21:42:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,499
py
# Create customized index view class from flask import current_app from quokka.core.models import Content from quokka.utils.routing import expose from quokka.core.widgets import TextEditor, PrepopulatedText from .ajax import AjaxModelLoader from .models import BaseIndexView, BaseView, ModelAdmin, BaseContentAdmin cl...
[ "rochacbruno@gmail.com" ]
rochacbruno@gmail.com
1dea255ed37b2dc4dc02999793cf9f877ff42627
f5c7b5ccee346fa60fd3da4aa296de58b7a0cf2a
/catalyst_mlcomp/executors/valid.py
0aea9d4e86c42a63be7207562706c6a505bb4314
[]
no_license
CozyDoomer/steel-defect-detection
8a1df7a418c68c1dea0446ba67178cdd87a06305
bb1b803cde34cc5dbb5cae819791be00a62d5ad0
refs/heads/master
2022-02-25T08:49:46.693357
2019-10-21T18:18:39
2019-10-21T18:18:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,567
py
from collections import OrderedDict from copy import deepcopy import cv2 import numpy as np from tqdm import tqdm from mlcomp.contrib.dataset.segment import ImageWithMaskDataset from mlcomp.contrib.metrics.dice import dice_numpy from mlcomp.worker.executors import Executor from mlcomp.worker.executors.valid import V...
[ "chr.unterrainer@gmail.com" ]
chr.unterrainer@gmail.com
b76a0dfa887b2f0159fd967b61e4c40f5431f2a8
6729079d2ed02ebbca05adbb165d321dd37966a7
/courses/tests.py
353141a1272890080377ed5dc42f7c2dfdc29162
[]
no_license
ivanprytula/yps_test_task
0df9064d76cf9acfa9613da729d7ce531de35d75
6b6bf5ea8bb29b187bbbfc2ab8582a38906e4f72
refs/heads/main
2023-04-15T12:16:34.237140
2021-04-26T23:17:41
2021-04-26T23:17:41
361,918,949
0
0
null
null
null
null
UTF-8
Python
false
false
1,961
py
import datetime from http import HTTPStatus from django.test import TestCase, Client from .models import Course class ModelTestCase(TestCase): """This class defines the test suite for the Course model.""" def setUp(self): self.course_name = "Yalantis Python course" self.start_date = datetim...
[ "johnnyforester@gmail.com" ]
johnnyforester@gmail.com
6665c52b545bfa40ef7b723af971b5ab3734efa2
d58f9e650c4d8f1fe0379bb5c0a8d2f58ae697ec
/thorvald_penetrometer/scripts/penetrometer_driver.py
5116ed52841c9316380b945b56beff444f675d8b
[]
no_license
mfkiwl/lcas_hardware-gnss-imu
41a02418c3895463b0e22e36eb9669560d516e8a
2aaed0601e2fd165cfb1f2a58b7c19df3b55ed2d
refs/heads/master
2021-09-28T20:33:53.096301
2018-11-20T09:21:55
2018-11-20T09:21:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,844
py
#!/usr/bin/env python import rospy import actionlib import serial import threading import yaml import std_srvs.srv #import actionlib_msgs.msg import dynamic_reconfigure.server # import Server from thorvald_penetrometer.cfg import PenetrometerConfig import std_msgs.msg #import String import thorvald_penetrometer.msg ...
[ "pulidofentanes@gmail.com" ]
pulidofentanes@gmail.com
0b1fe5dd3b5144549478b281e02f43cbacf5bb45
ae6622afe8364de9fe7464d20228dff80f1f13d5
/cours_POO/Projet/Plateau.py~
b7e6bccdadb4433065a5b4cf603e8175e3a4254d
[]
no_license
porigonop/code_v2
eafb2adcbbb2d88dc607fb54d87ef301faeca776
147773cc8871d74f1ec1d6bd03e3cce95e9490d1
refs/heads/master
2021-06-25T20:39:37.819172
2021-01-11T13:31:45
2021-01-11T13:31:45
97,024,626
0
0
null
null
null
null
UTF-8
Python
false
false
874
#!/usr/bin/env python3 from Moteur import Moteur class Plateau: def __init__(self, max_x, max_y): """constructeur du plateau, demande les maximum ou i peux se déplacer """ self.moteur_x = Moteur(0, max_x) self.moteur_y = Moteur(0, max_y) def deplace_x(x): x_init...
[ "Antoine Lievre" ]
Antoine Lievre
1f4cbb30733a343b0ca5263a94e3f50c0079b49c
6f9c652eda2a9fad43031d3321e3b77add8737fd
/app/api/views/version.py
eaa2aa610592940a5ea6a1fd823ba829eff73204
[]
no_license
Y16v/intelect
eddd6a8f47d71226287d0c27f63995468950929a
0542ae3a7300c366d77284fcb1a991dd0316f97a
refs/heads/main
2023-08-15T17:05:33.627560
2021-10-14T16:16:49
2021-10-14T16:16:49
417,198,567
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
from django.http import JsonResponse import os from intelect_kg.settings import FRONTEND_DIR def get_version(request): try: version_path = os.path.join(os.path.dirname(FRONTEND_DIR), 'version') version_file = open(version_path, 'r') version = version_file.readline() except FileNotFound...
[ "yrysbek.isakzhanov@gmail.com" ]
yrysbek.isakzhanov@gmail.com
39c5075ed44cd2213f1a886f5908e0a89c393c13
f886c00fa022cc997f18e8d1228510624e274af8
/BlackJack.py
6ee9eda15954c7ceb8a820b76fecc59a6746e41f
[]
no_license
manugangadhar/Python-Bootcamp-Zero-to-Hero
9eaecfd557dca62c404cd9ed0e83fcf77d2ee58b
d7d75bc4789e20c4e655100257422f7bd9bd4183
refs/heads/master
2020-04-16T23:35:16.007948
2019-02-18T10:23:03
2019-02-18T10:23:03
166,017,373
0
0
null
null
null
null
UTF-8
Python
false
false
17,056
py
import random card_types = ['s', 'h', 'd', 'c'] global players_list players_list = {} global dealer_cards dealer_cards = [] global fiftytwo_cards fiftytwo_cards = set() class Blackjack: def __init__(self, name, bet, player_cards, gain_loss): self.name = name self.bet = bet self.player_car...
[ "noreply@github.com" ]
noreply@github.com
eae25c446f1476173e50c81ee59f60f158f41104
c6ceceb555759b7aa59599fbd46adadc73f5ae2d
/forms.py
4342b181de359bc477eb83a9955a385009244c0a
[]
no_license
DruSerkes/Adopt-a-Pet
989ca9db1b152b5964aab651581465ac37628886
91120ef0c3b34a670d2108925fe10884e78cc660
refs/heads/master
2023-05-11T04:47:31.502430
2023-05-02T12:04:03
2023-05-02T12:04:03
270,837,220
0
0
null
2023-05-02T12:05:08
2020-06-08T21:45:23
HTML
UTF-8
Python
false
false
1,070
py
from flask_wtf import FlaskForm from wtforms import StringField, FloatField, BooleanField, IntegerField, RadioField, SelectField from wtforms.fields.html5 import URLField from wtforms.validators import InputRequired, Optional, AnyOf, NumberRange, DataRequired class PetForm(FlaskForm): """ Form for Pet data """ ...
[ "DruSerkes@gmail.com" ]
DruSerkes@gmail.com
5c958bbe5102f43324270833aeb0498212e1dfa1
d05cd4d5963de73323cb5e86b7a832992649091d
/python/Lab13/Lab13_6.py
928b539d47b2c8e2d5f08aa6dc9489648fe8d09f
[]
no_license
bhelga/university
c46eeed000f08b8faa9e5e7556816b5ee3deb67e
0169d245e9b9b459de2dfb4433653e609cb1e927
refs/heads/main
2023-07-02T20:22:18.372432
2021-08-04T16:03:41
2021-08-04T16:03:41
343,385,090
0
0
null
null
null
null
UTF-8
Python
false
false
1,476
py
from collections import namedtuple import random def good_insurers(insurers): avarage = 0.0 for i in insurers: avarage += i.number_of_agreements avarage /= 7 ary = [] print("Страховики", end=" ") for i in insurers: if i.number_of_agreements > avarage: ary.append(i) ...
[ "olgaburiak1207@gmail.com" ]
olgaburiak1207@gmail.com
2b2b7d8dae3230411d0c99c98d1108263429d8e4
720c106a3e5e13b58154070e530574f110b1c138
/01.tictactoe/sample.py
e077c485cf0a90b2eb073131d4283bdd8ce374a5
[]
no_license
thanpolas/hackerrank
37c8be4b3f0f96ed4211e6a93eab043828a7e347
7aaf3805c8e1811b912dee849b304f1e1d46c892
refs/heads/master
2020-12-24T13:36:07.891519
2013-01-09T17:50:07
2013-01-09T17:50:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
#!/bin/python import random # Complete the function below to print 2 integers separated by a single space which will be your next move def nextMove(player,board): print (1, 0) #If player is X, I'm the first player. #If player is O, I'm the second player. player = raw_input() #Read the board now. The board is a ...
[ "thanpolas@gmail.com" ]
thanpolas@gmail.com
5046ab134fa58280291b52068b117f161cc3c023
69cc3a2d036f5a7d26844913a8ae6167a26c33c4
/univ_softplus.py
ad4aeb9711d3d7f39805910a2f127a9e0ee39323
[]
no_license
JakeSigwart/Curve_fitting
c6758ce69b1e22973940418f4ccc5333046038f8
67adbd2d51aff023379143e17fe154cb7e21b6ce
refs/heads/master
2020-03-22T01:59:03.302925
2018-07-01T15:57:29
2018-07-01T15:57:29
139,342,405
0
0
null
null
null
null
UTF-8
Python
false
false
2,591
py
#The purpose of this program is to show that a neural network is a universal approximator #In order to be a univaersal approximator, the network must have non-linearities i.e. softplus function #I am training the network to approximate sin x on [-2*pi, 2*pi] #Results: import os import math import time import r...
[ "noreply@github.com" ]
noreply@github.com
e1e6b4a1acf4098929d38b140640b4ebe4c39c3d
c5447b9d51b8135a79b39bdb9f19806de860cf00
/quick_train.py
dc7ee4799629ad278cb2b0a14c7f15bd9aff8247
[ "MIT" ]
permissive
HarlanHW/My_YOLOv3
d85c75a9e6eb02277b8923c09d28adbfe14cb4e4
03ebdd564f77dd42cb389460efba111df3c516ea
refs/heads/master
2020-05-02T05:38:19.455680
2019-03-26T12:11:39
2019-03-26T12:11:39
177,774,370
0
0
null
null
null
null
UTF-8
Python
false
false
4,402
py
#! /usr/bin/env python # coding=utf-8 #================================================================ # Copyright (C) 2019 * Ltd. All rights reserved. # # Editor : VIM # File name : quick_train.py # Author : YunYang1994 # Created date: 2019-01-21 14:46:26 # Description : # #===================...
[ "1223101214@qq.com" ]
1223101214@qq.com
fc309d02b0fd046fac2d2d289f27fba3c46c9ed1
766865913811b66ff8b3cfd2b1d1588a0b34cd52
/app.py
695e2b6fbe3adee25787a9a17bd3810dead6bc4b
[]
no_license
waizhen/Recruitment_Scam_Prediction
a80e0428128a648bb0ad5fe6ef953a015700f7b2
ff0bb7554945797f11063254fbb35cdc784bf185
refs/heads/main
2023-06-27T08:37:44.706868
2021-07-19T14:52:15
2021-07-19T14:52:15
387,481,272
2
0
null
null
null
null
UTF-8
Python
false
false
14,571
py
#!/usr/bin/env python # coding: utf-8 # In[2]: import gradio as gr import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt import joblib import lightgbm as lgb from lightgbm import LGBMClassifier # Create a country abbreviation dict country_dict = { 'United States': 'US', '...
[ "wz_chin04@hotmail.com" ]
wz_chin04@hotmail.com
11f252b09bcb7de7f6dbdee53b3882b0b0a61b75
f200822cc6d970ad5b1bfc17cd0a01c4104719ac
/functions/greet_users.py
104e1499d255e049c2bd985bf7752577607e6837
[]
no_license
iepisas/python-crash-course
5da7b48d96e4a73f9f9675bb241bd0e1f1d54f96
cf20911ea5c4c2ae47c314f2900f483ab86c4bd1
refs/heads/master
2022-11-23T04:17:47.089911
2020-07-25T16:04:52
2020-07-25T16:04:52
280,761,466
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
def greet_users(names): for name in names: if type(name) == str: msg = f"Hello,{name.title()}" print(msg) else: msg = f"Hello,{name}" print(msg) usernames = ['adhfa','adf','qw','awe',12,45,33] greet_users(usernames)
[ "chenxh0722@126.com" ]
chenxh0722@126.com
36811db9fc562b21f2ab8e14d862f543801cf47e
56ca3845607c8fed8fac81a07cdfa4d48139b7ef
/deep_translator/google_trans.py
89f6ed38a37dcc5beeb0414d583a0fd7af889b30
[ "MIT" ]
permissive
trucnguyenlam/deep-translator
0db420de6d2de699db8aa26d5f32e4d0d41fc187
6cfdf620c7e27a839183ea854b52b01c51687d65
refs/heads/master
2023-03-20T16:52:09.878932
2021-03-08T18:08:08
2021-03-08T18:08:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,303
py
""" google translator API """ from deep_translator.constants import BASE_URLS, GOOGLE_LANGUAGES_TO_CODES from deep_translator.exceptions import TooManyRequests, LanguageNotSupportedException, TranslationNotFound, NotValidPayload, RequestError from deep_translator.parent import BaseTranslator from bs4 import BeautifulS...
[ "nidhalbacc@gmail.com" ]
nidhalbacc@gmail.com
32cce0cbf7ef28210c580969ba28b3dc75ae60e1
15353c80ea6e594ea0a994f634bdc0731b8908dd
/env/bin/fixup_firestore_v1_keywords.py
0e25ae65b410682c50fb128f4cb178cec38ad785
[]
no_license
Yasinymous/CoronaMap-py-vue
45294c88bf5ead536fc7d6da81bc7b3b76da74b6
62abd84e4ef799217e5ebb0112ee749fd8d9dc91
refs/heads/main
2023-04-22T17:37:59.368803
2021-05-08T03:06:31
2021-05-08T03:06:31
364,439,543
1
0
null
null
null
null
UTF-8
Python
false
false
7,273
py
#!/Users/yasinymous/Desktop/Projects/CmapQuasar/Cmap/env/bin/python3 # -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.ap...
[ "ysnakyz55@gmail.com" ]
ysnakyz55@gmail.com
3a19230ff45e21637cf52aff6917cd3099d7b236
08aa57ca17363db0b73e4703d835564ecdbef7e8
/Django/finalproject/finalproject/settings.py
d469e817213ef58a4defaa6694d8893ea69d2d07
[]
no_license
y2k6302/ITskillMaster
3009b7b165c2fe271fe6f930689ec4c05317c5f9
50f4678ed2cc739163a92e0c40f157b0412f90d7
refs/heads/master
2020-05-26T00:35:45.946567
2016-03-22T16:46:51
2016-03-22T16:46:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,831
py
""" Django settings for finalproject project. Generated by 'django-admin startproject' using Django 1.8.1. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build...
[ "Jimmy Yang" ]
Jimmy Yang
371cc9f0dc52fef0024cbd20662008e67b8ba5b3
fbaef3fca70c200316583f4ec1247995604efeab
/venv/bin/waitress-serve
6b0f25bd844f966a21ee8cfc50439b30efa8a21c
[]
no_license
thevivotran/flask_tutorial
aedffa7ea8ae968f978110b7fc5152656037360d
9820ae544a9e98295ee2f051fe10f91ba8e021ff
refs/heads/master
2023-01-01T16:17:28.861590
2020-10-25T04:26:07
2020-10-25T04:26:07
306,787,294
0
0
null
null
null
null
UTF-8
Python
false
false
242
#!/home/vivo/flask_tutorial/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from waitress.runner import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "thevivotran@gmail.com" ]
thevivotran@gmail.com
1208b40ce0c798e530cea20672f8b392f0158c00
5821d864fb40417184cd37a3ee3c889895d39efb
/src/ch6/3-caricature/mesh.py
1dad28a1503f6e6857e5eb6ebcdb79d0a699128d
[ "WTFPL" ]
permissive
ssloy/least-squares-course
9c86d8c54894248440fba78206ce253559f4257b
13692cdfd40a8005893fd33887d6cc743c5f01ec
refs/heads/master
2022-08-18T15:53:15.313071
2021-12-01T12:44:59
2021-12-01T12:44:59
222,901,933
162
18
WTFPL
2022-07-28T21:16:03
2019-11-20T09:38:37
TeX
UTF-8
Python
false
false
3,119
py
import numpy as np class Mesh(): def __init__(self, filename): # parse the .obj file V, T = [], [] with open(filename) as f: for line in f.readlines(): if line.startswith('#'): continue values = line.split() if not values: continue ...
[ "ha@haqr.eu" ]
ha@haqr.eu
bc3fb289dd1d8667dc0ee7fdf9dabd0bcf56c95e
bb80b2d1d7b51f50d000294df4b68cde053fe288
/proyectos/10/src/jack_listener.py
a6c18a2c319f3cfeac257e4684586bae1bd03da8
[]
no_license
imurielr/Computer-Achitecture
f76f44a700f5da6ac847de0b23192710f55c060b
cd941f725b328a3f9bac85b7fc6f73c932d7129f
refs/heads/master
2021-01-15T05:44:28.559781
2020-02-25T02:46:53
2020-02-25T02:46:53
242,893,428
0
0
null
null
null
null
UTF-8
Python
false
false
3,851
py
""" Module containing Listener class which inherit from the JackListener class generated by Antlr """ from JackListener import JackListener from JackParser import JackParser class Listener(JackListener): keyword = ["class","constructor","function","method","field","static","var","int","char","boolean","void","t...
[ "isamuriel@MacBook-Pro-de-Isa.local" ]
isamuriel@MacBook-Pro-de-Isa.local
43904990078a40f1f4a6b35bf7f6e392a966f1e9
1bb0690ab2750aae7485a011d6a176fca100bf31
/openacademy/model/openacademy_course.py
1ca2c294fd9501abc778e7c683d0a8db050c99d7
[ "Apache-2.0" ]
permissive
gylmargarcia/openacademy-project
5a4d3a619c8d06ec36e2e97ae06051d4a268f021
3657080f929a380df66063d6b522cd8d8ddbc917
refs/heads/master
2020-05-25T09:26:59.605268
2014-12-12T05:54:15
2014-12-12T05:54:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
321
py
from openerp import models, fields, api class Course(models.Model): ''' This class create model of course ''' _name = 'openacademy.course' #Model odooname name = fields.Char(string='Title', required=True) #Fields reserved to identify name record description = fields.Text(string='Description')...
[ "gylmar.garcia@smartsolutia.com" ]
gylmar.garcia@smartsolutia.com
5ba3eb2c99cb4886c0d71494e016a22abad98aee
acbe6bd6cefaf8b12070d7258dab30e4f7fcebed
/ui/style.py
c5b1d5ee83c7a5fb029f0f3becf8dba8c57a3b3b
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
RogueScholar/debreate
02c98c5a78d33041798410f0e3b99e80fda65d00
dfe9bcac7333a53082b3a2ae169806cf604d59f6
refs/heads/master
2023-06-07T11:49:03.821969
2023-04-28T02:14:25
2023-04-28T02:14:25
253,707,766
0
0
MIT
2023-05-28T15:24:17
2020-04-07T06:34:47
Python
UTF-8
Python
false
false
1,267
py
# ****************************************************** # * Copyright © 2016-2023 - Jordan Irwin (AntumDeluge) * # ****************************************************** # * This software is licensed under the MIT license. * # * See: LICENSE.txt for details. * # ********************************...
[ "antumdeluge@gmail.com" ]
antumdeluge@gmail.com
c140e474ec324763c62376fce310ab79a289d686
7bf0becb36d56808e7d2ee0d278325ec86e2a465
/PyLibrary/BinarySearch/binarySearchIterative.py
4d88ba408b4f0d13673ee16ef3aaa0b5324f02b3
[]
no_license
adrianna/DSandA
afb49225b7f910c6c98b9bbe809563efa1a484c9
0087dcfd02f4b9617f3eb05e7f1ce73fc3ca386e
refs/heads/master
2020-05-22T02:07:21.811682
2019-08-31T19:19:33
2019-08-31T19:19:33
186,191,976
4
0
null
null
null
null
UTF-8
Python
false
false
2,142
py
#!/usr/bin/env python # coding: utf-8 # # Binary search practice # # Let's get some practice doing binary search on an array of integers. We'll solve the problem two different ways— # both iteratively and resursively. # # Here is a reminder of how the algorithm works: # # 1. Find the center of the list (try setting...
[ "acgalletta@gmail.com" ]
acgalletta@gmail.com
6439b3fa39579b18cc7fe52d0293ff002b66b28e
5da5415e27383731e3d141430a051d9a99c97c78
/ex_11/ex_11_01.py
509683e7fa6722a431b29c102ed6329e5a211e7b
[]
no_license
Harshith-S/Python-4-Everybody
ea89cda84d117168ebfc9a8da0f668eb7c3f355e
6a62da9f5c0159e7a8a3eb46c42562380fe6df85
refs/heads/master
2020-05-19T12:24:08.873275
2019-05-05T10:05:09
2019-05-05T10:05:09
184,626,400
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
""" Finding Numbers in a Haystack In this assignment you will read through and parse a file with text and numbers. You will extract all the numbers in the file and compute the sum of the numbers. Data Files We provide two files for this assignment. One is a sample file where we give you the sum for your testing and t...
[ "harshithullal2@gmail.com" ]
harshithullal2@gmail.com
5d831e4185fbab06635d9f25266e662f0c8d44d7
a178885065966a14eebd0ab1ff4f9e9ca6598987
/cdf/practice/a1.py
fd8cf688833c7e258c6800091fd67425813fffdc
[]
no_license
Abhik1998/CP
34fa16330a408007d5643adf7830e17e08a2e4f8
c836a96d8275e7e756f9d18153174c215b1263f9
refs/heads/master
2023-01-02T14:11:59.370497
2020-10-12T19:21:13
2020-10-12T19:21:13
292,824,072
1
0
null
null
null
null
UTF-8
Python
false
false
445
py
MOD = 998244353 p = [1] * 200005 for i in range(1, 200005): p[i] = (p[i - 1] * 10) % MOD n = int(input()) for i in range(1, n): res = 2 * 10 * 9 * p[n - i - 1] res += (n - 1 - i) * 10 * 9 * 9 * p[n - i - 2] print(res % MOD, end = ' ') print(10) ...
[ "abhik1998chakraborty@gmail.com" ]
abhik1998chakraborty@gmail.com
ba623f7039cb4e93da77833f6adaa48a96c55ae1
21c2c8d3a71328f8aabf95b492e1907b7aff2608
/testerapp/views.py
c3f937695cf3695083530089cfbc956876ef1c0f
[]
no_license
kushalp13/Issue-Management-System
89891b31b684f1873b863feb67c1f6fe65b39b99
3aa5d239a47a4a69869625ac647587f61f95c657
refs/heads/master
2022-11-29T00:48:43.644523
2020-08-05T11:17:14
2020-08-05T11:17:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,347
py
from django.shortcuts import render from .models import BugInfo # Create your views here. def reportBug(request): return(render(request,'loginapp/report_bug.html')) def fixedBug(request): appName = request.POST["username"] password = request.POST["password"] usertype = request.POST["usertype"]...
[ "kushal.p13@yandex.com" ]
kushal.p13@yandex.com
6d66a2db8f11ffd28ada75f1f0b889f531bb5f03
c223a73c09f9f384ff964012be51873b8f997c8f
/manticora/controllers/modules/register.py
ad408f6e6eebc18a102675f4d40f99aaecc92537
[]
no_license
WhiteSummeRK/manticora
c4d2a9c6a71ad6e96009887b0ee892662aaf0ce6
b0e44f3b02451030d7f282102a60872d1153b1e0
refs/heads/master
2020-03-24T19:01:57.457597
2019-04-22T22:57:35
2019-04-22T22:57:35
142,907,269
2
0
null
null
null
null
UTF-8
Python
false
false
2,696
py
from manticora.models.database_functions.usuario import ( insert_new_user_account, check_for_existing_mail, check_for_existing_name, update_user_from_db ) from manticora.models.database_functions.restaurante import ( insert_new_rest, get_actual_rest, update_rest_from_db ) from manticora....
[ "kauan.alves1996@hotmail.com" ]
kauan.alves1996@hotmail.com
e892918ab46f8e39c2e19115b98da50e402eff2c
72b8cedcfeb3b98abf2965efa5f5ba7b02563647
/train.py
4d917ecf1f2ae99e6a3d49be9bd8166ed2c77d53
[]
no_license
18205097282/DBFC-Net
48f0c1139d719c3769658dec16303a1bfafe5702
5166ffe45651595eb81fee6be0879173e12cec9b
refs/heads/master
2022-11-27T03:11:33.487739
2020-07-12T14:20:29
2020-07-12T14:20:29
260,202,702
0
0
null
null
null
null
UTF-8
Python
false
false
5,738
py
import os import time import torch from torch.autograd import Variable from util import AverageMeter, Log from rankingloss import * def train(train_loader, train_loader1, train_loader2, train_loader3, args, model, criterion, center_loss, optimizer, epoch, num_epochs): print(len(trai...
[ "noreply@github.com" ]
noreply@github.com
e0e16019e1c7c31f775be698bcb15dd511f10ebe
1cd3177c88a9b15264aec1b3738c55b28cbc88e6
/lib/pirates.py
b855410bf86a75ff45537329c9de59694c01bbab
[ "MIT" ]
permissive
maurogaravello/pirati
3685f7d7ac164dd3ea6baf97ba434761a2b38993
27c07a368f026a43efc1cd5df9368004689bb04a
refs/heads/master
2020-05-21T20:08:46.711754
2017-02-07T09:46:46
2017-02-07T09:46:46
64,026,411
0
0
null
null
null
null
UTF-8
Python
false
false
9,926
py
#!/usr/bin/env python ### pirates.py ### class containing all the relevant data import numpy as np import logging class pirates(object): def __init__(self, x_1, x_2, y_1, y_2, n_x, n_y, M, tMax, d_o, InitialDatum_rho, InitialDatum_A, speed_ships, nu, DirName, mathcal_K, cut_off...
[ "mauro.garavello@unimib.it" ]
mauro.garavello@unimib.it
00584c9346dc4deaf86a7dc7b1447a77f268d162
370985396544a6c2601300b7802b16082017cc97
/TULER/RNN/rnn_model.py
b84cf3b5e5f2ba2289d9a45bcc9374ea1b89e411
[]
no_license
runnerxin/Paper-Reproduce
038d6e3ea33d373bfea2bc28fc40110fbdfbc3dd
2ad45ca791e45e8e0fe4d34e3bae10b05e0267b6
refs/heads/master
2020-03-31T05:19:03.456280
2018-12-11T10:40:12
2018-12-11T10:40:12
151,941,391
2
0
null
null
null
null
UTF-8
Python
false
false
2,246
py
# ============================================= # @Author : runnerxin # @File : rnn_model.py # @Software : PyCharm # @Time : 2018/11/22 14:43 # ============================================= # !/usr/bin/env python # -*- coding: utf-8 -*- from RNN.model import RNN from RNN.data_read import Data import torch f...
[ "runnerxin@163.com" ]
runnerxin@163.com
dd50d872377ade072ed8611c0266bc038e3ffa75
bf418efc6dfa4a1702b6360265607c4f008f399d
/rgb/train_rgb.py
6d7d5d47024f37538ad2cf4538a316aa616fc508
[]
no_license
klnavaneet/differ
4775f390e8f62755d23fb1a70315dc9e24b54d73
3aba1bd8fa58a8e3b1b8cc22abeb95cb6c65ea7e
refs/heads/master
2020-05-20T06:16:36.673477
2019-05-09T19:38:36
2019-05-09T19:38:36
185,425,397
8
2
null
2019-05-09T19:38:37
2019-05-07T15:03:56
Python
UTF-8
Python
false
false
16,499
py
############################################################################### # Training code for reconstructing colored point clouds # Use run_train_rgb.sh for running the code ############################################################################### import os, sys sys.path.append('../src') from train_utils i...
[ "klnavaneet@gmail.com" ]
klnavaneet@gmail.com
1f750de145ff1d1760c2e589a0d0a0c59f1a2da7
4f0b846a4cfb36803690480e78104072d28bcf9e
/week6Python/pset6/readability/readability.py
863e53525facf8c895a95cd8cc9be39ffe469368
[]
no_license
Jordhan-Carvalho/cs50-examples
0c6f1b2b5b7f9078d827f1ee417713b1c9840681
2b51b805f89c325744d553aa9acab63e8c9a6d6f
refs/heads/master
2022-10-06T10:48:23.114773
2020-04-03T14:03:53
2020-04-03T14:03:53
245,007,357
0
0
null
null
null
null
UTF-8
Python
false
false
673
py
from cs50 import get_string text = get_string("Text: ") countWords = len(text.split()) # create a list of characters and remove the non alphanumerics and get the length countLetter = len(list(filter(lambda x: x.isalpha(), list(text)))) countSentences = 0 for c in text: if c == "." or c == "!" or c == "?": ...
[ "jordhan.rdz@gmail.com" ]
jordhan.rdz@gmail.com
baeac5bf1cea541d8480d0f20f6e5a423da871c2
409625b6cff358da4074b9c095f663bee9c027e4
/01-Introductions/02-While_loops/syntax.py
ed972146c32f0b620a3a8f9247e948f930aa965b
[ "MIT" ]
permissive
francisrod01/udacity_python_foundations
f610b683d85eaffa211ca07010187ebb1a0df62e
2a384cf35ce7eff547c88097cdc45cc4e8fc6041
refs/heads/master
2021-01-24T06:42:26.181582
2017-07-29T18:52:44
2017-07-29T18:52:44
93,314,658
0
0
null
null
null
null
UTF-8
Python
false
false
125
py
#!/usr/bin/python3.4 count = 0 while count < 9: print("The count is: ", count) count = count + 1 print("Good bye")
[ "dev@tosystems.net" ]
dev@tosystems.net
0464801decb99dbb953fb042822a2cbb7de6d889
5e6af0801f40e2dfd8dddff100236822ecca2093
/Calculations/separationArm.py
3a5f9a01fa335f2f2f3bb1bd646241b643763301
[]
no_license
jcchin/ANGEL
40430afeff50aaaa51ce954b1840ac2804300442
3b9deca878f05b82216862b71601fbe95b747f51
refs/heads/master
2021-01-02T08:19:26.142272
2015-11-15T04:15:26
2015-11-15T04:15:26
22,022,686
1
0
null
null
null
null
UTF-8
Python
false
false
7,598
py
import time import numpy as np from scipy.interpolate import interp1d from math import log, pi, sqrt, sin, cos from numpy import arctan #from matplotlib import pylab as plt #from matplotlib import mlab as mlab from openmdao.main.api import Assembly, Component from openmdao.lib.datatypes.api import Float, Bool, Str fr...
[ "jchin89@gmail.com" ]
jchin89@gmail.com
ae796b3097dabfd106f7fd7c8273d327130a63dc
64181e8126bf77125e2a55df0d739643a8cc2ded
/transformada.py
15ef06690c9bc07eb6909c98aee5a60523d6e274
[]
no_license
pereznator/IPC2_Proyecto2_201900810
ddac37439713d09a3a5f66dfb1a2a539caad1ff8
92f9a955d8fc469380d71ad494475a277568f42b
refs/heads/master
2023-04-04T23:18:43.481296
2021-04-06T01:34:58
2021-04-06T01:34:58
352,747,982
0
0
null
null
null
null
UTF-8
Python
false
false
3,585
py
class Transformada: resultado = [] def __init__(self, matriz): self.matriz = matriz self.verMatriz() def verMatriz(self): self.arreglo = [] faux = self.matriz.listaFilas.primero for f in range(self.matriz.listaFilas.cuenta): caux = faux.primero ...
[ "jorgeperezlj@gmail.com" ]
jorgeperezlj@gmail.com
b9a1445acb587e66c1aae0c2b015dd133b28be69
810d3856f8c1bb5364ea20917690a8f3b5e83e66
/other/实验报告/NCM/three_spline_interpolation.py
45541a7b6a9066d508a0503beb8f992a27f0b8b0
[]
no_license
Saber-f/code
6c36bff79a6590bf8eb4f740cf5c403d31ddb17e
9e8646a320d91c0019493854f879bd6aefa6521d
refs/heads/master
2021-07-15T21:53:54.440183
2019-05-20T07:18:37
2019-05-20T07:18:37
129,101,087
0
0
null
null
null
null
UTF-8
Python
false
false
3,677
py
'''三次样条插值,矩阵解''' from numpy import * import numpy as np import matplotlib.pyplot as plt # 将字符列表转换为浮点数列表 def str2float(L): i = 0; while i < len(L): L[i] = float(L[i]) i += 1 # 得到m x n 的零矩阵 def get_mat(m,n): A = [] i = 0 while i < m: j = 0 A.append([]) while j...
[ "735974175@qq.com" ]
735974175@qq.com
9b655a2950c9d31a015a40bfc9dd87f0b5641102
9c47be5ddab07802e5812b8f1a2f6830b9323f10
/untitled/modules/arr_procedures.py
eef9193968c70b9d41514f0724e83fe31f4609c7
[]
no_license
hotriluc/pyth_diploma
db2c8d41dd20f69ac0028f8eb6dc08ab8efb9202
e2a92802487cd4d67d7ab05f3f19254e08ed746b
refs/heads/master
2021-07-10T06:05:34.582939
2020-10-30T20:24:04
2020-10-30T20:24:04
210,030,207
0
0
null
null
null
null
UTF-8
Python
false
false
12,223
py
import copy import itertools import pickle import numpy as np from modules.calculations import coprimes, printFullStat, getPair, getMax #==============================BASIC MANIPULATION WITH ARRAYS============================== # write string def writeListInFile(aList:list,filepath): f = open(file...
[ "noreply@github.com" ]
noreply@github.com
8e1ea6a797d71d000461aeffa863481bf30c15f0
f9364a60157f2d4eaaddb053980055d12ecf4c9e
/RL_routing/RL_ACRR.py
316eccfb49f5728af60cea07e8f7cdc5a8f4ba95
[ "MIT" ]
permissive
lorenzoviva/Tesi
de038a2d1b69076bc9e9f15b4c34a76d5e6e0c50
a8a439e32f1d7484ff6b0bf96a0cfe877001640c
refs/heads/master
2023-07-19T00:22:06.155791
2020-03-05T16:52:00
2020-03-05T16:52:00
245,185,242
0
0
null
2023-07-06T21:47:40
2020-03-05T14:31:28
Python
UTF-8
Python
false
false
6,408
py
import argparse import gym import numpy as np from itertools import count from collections import namedtuple import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.distributions import Categorical import matplotlib.pyplot as plt from models import * # Cart Pole pars...
[ "lorenzoviva@github.com" ]
lorenzoviva@github.com
afec745bb4473e5a96a1af30aa862110d6309a68
db0633d8ec23937f087bfdccf53afe8d584906c2
/datasets/harem/harem.py
68ca465314e3be3910a1c30b445f013349cacf59
[ "Apache-2.0" ]
permissive
pranavnt/datasets
8b7d671c9f9a9a28097e361d43494b779dd2117b
f2439a743012055b4ad8d5c1b758658afe246f3e
refs/heads/master
2023-02-23T01:14:13.066679
2021-01-27T02:03:36
2021-01-27T02:03:36
318,725,185
1
0
Apache-2.0
2021-01-27T02:03:38
2020-12-05T07:05:31
null
UTF-8
Python
false
false
11,684
py
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
[ "noreply@github.com" ]
noreply@github.com
b31c59a0010e457b6542772a973b3e6da56bfc29
9cfd73a998d842d767071b26cefe0eb8efe39e90
/learning_rates.py
3b8df2efc6fd82922d321b26d58e4bf9e17144c4
[]
no_license
boyko11/LogReg-DLAI
829e9b4e6b8dd23d6f3b5f0f68550d83c080104d
d222f6501ec4f0ea427f42706bb98c28c832fdb8
refs/heads/master
2022-11-23T19:26:10.052482
2020-08-02T17:57:24
2020-08-02T17:57:24
284,513,600
0
0
null
null
null
null
UTF-8
Python
false
false
842
py
from logistic_regression import model import data_service import matplotlib.pyplot as plt import numpy as np train_set_x, train_set_y, test_set_x, test_set_y, _ = data_service.load_and_preprocess_data() learning_rates = [0.01, 0.001, 0.0001] models = {} for i in learning_rates: print ("learning rate is: " + str(i)...
[ "boyko11@gmail.com" ]
boyko11@gmail.com