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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
511e48ff9cf4124d93300673c578b39bc6d7f334 | 0bd1a778c5cf9d908a2eee61945f86aa61b686ff | /Circular_Array/test_circular_array.py | 536932be7132b394a22f41d6b561d5f928fc8b29 | [] | no_license | baubrun/HackerRank | 81f652bde608d79ec9d678e21afa9d174fe850b1 | f9d5def5b5f9f4cf4d365ccb2e51053de72e482a | refs/heads/master | 2021-07-06T18:02:35.585945 | 2020-07-19T14:47:55 | 2020-07-19T14:47:55 | 133,244,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | import pytest
from .circular_array import circular_array_rotation as cr
@pytest.mark.parametrize("k, a, queries, expected", [
(2, [1, 2, 3], [0, 0, 0], [2, 2, 2]),
(3, [99, 10, 2, 3, 672], [0, 2, 3], [2, 672, 99]),
(10, [], [], []),
(1, [1, 2], [-1], [1]),
])
def test_circular_array_rotation... | [
"noreply@github.com"
] | baubrun.noreply@github.com |
c1d4e5f26be2344dfa2accb7a8e7e99f3bdd7265 | f659d3bf1a963705e1d1b14891e6e3162d0a704b | /homework_3/all_tasks.py | 051e8053c8dcef6997c8b29c9db3ee29009abdeb | [] | no_license | alexvinyar/python_homeworks_2017 | 178f84677d242d27c1fd890a6fd8cf8206b42c59 | adc87d7b54b37781dd974fb84ea534e97fe3e355 | refs/heads/master | 2021-09-09T16:18:30.862569 | 2018-03-17T21:11:06 | 2018-03-17T21:11:06 | 103,245,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,460 | py | from pattern.web import Wikipedia, plaintext
from nltk.util import ngrams
from collections import Counter
import string
import re
import numpy as np
class WikiParser:
def __init__(self):
pass
def get_articles(self, start):
start_article = Wikipedia().article(start)
links = start_ar... | [
"alexvinyar@yandex.ru"
] | alexvinyar@yandex.ru |
7db05f705d72bdf87180f6a7bff371d915d8b61e | 299e5934971f9de638692e2667d6e270bcab5cbd | /214.最短回文串.py | fd576408b90eb365d8d4759abcade422cdf7f582 | [] | no_license | ycj123/Leetcode-Python3 | 14bcd6c9f4d26191d5d40c77e923df4d0be4c0e5 | 1593960cdf2655ef1dcf68e3517e7121670c6ac3 | refs/heads/master | 2022-12-16T23:12:19.326702 | 2020-09-18T00:17:45 | 2020-09-18T00:17:45 | 295,302,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | #
# @lc app=leetcode.cn id=214 lang=python3
#
# [214] 最短回文串
#
# https://leetcode-cn.com/problems/shortest-palindrome/description/
#
# algorithms
# Hard (36.30%)
# Likes: 262
# Dislikes: 0
# Total Accepted: 23.3K
# Total Submissions: 64.2K
# Testcase Example: '"aacecaaa"'
#
# 给定一个字符串 s,你可以通过在字符串前面添加字符将其转换为回文串。找到并... | [
"yangchijiang@icloud.com"
] | yangchijiang@icloud.com |
ed36ee78b965fc7dec1022adbadd0b25044a33e8 | b2e57842d156ef97ce843a30bcd53d64cae1714f | /manage.py | 91ca64ac90352be6943720d97020ebd39c171397 | [] | no_license | jauharibill/datascience-pertanian-web-django | 2daeb85e3cd519af5fb5e77f6075b77ef6f1ee7c | be451c27340a40dffc2bf9fc01a2f3a5fd594c20 | refs/heads/master | 2020-04-05T21:36:20.620363 | 2018-11-24T23:25:34 | 2018-11-24T23:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "SKRIPSI.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the
... | [
"xcodebill@gmail.com"
] | xcodebill@gmail.com |
662555aca7c1d66e74f10738efcc2f5fb35f7b05 | c2284525657ab9793998f7c24c77f5771e71dcf5 | /python/schedule_table.py | fe1a5cda44c43e03dbe0deb80a2794f43c2029c4 | [
"MIT"
] | permissive | cebarbosa/spanet_gc2018 | 5663b4d139d4f38ca3c4ea9b2277f2a7b287865c | 73864099826cc906bf0ea708570381400fee079b | refs/heads/master | 2021-05-04T20:36:02.215227 | 2018-06-15T17:06:40 | 2018-06-15T17:06:40 | 119,824,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # -*- coding: utf-8 -*-
"""
Created on 20/03/18
Author : Carlos Eduardo Barbosa
Produces table with schedule
"""
from __future__ import print_function, division
if __name__ == "__main__":
with open("SPAnet_schedule.tsv", "rb") as f:
text = f.read()
schedule = ["\tschedule: ["]
for line in text... | [
"carlos.barbosa@usp.br"
] | carlos.barbosa@usp.br |
b158c6b766b190a354696a9b56f4c4b8b3e4e9e8 | 7d146952331a5351b251c386335d23831499a4b1 | /Max_Sum_Subarray_of Size_K.py | cd4531d6617cd5fc7fe47ff720ced67fd3b83e2d | [] | no_license | angela-laien/leetcode_problems | 12c98921994044d90a8d80bf23deb5fe6d9af7a9 | 31fda85d694f79f429f429ac64f5c6baa8d4bbdb | refs/heads/main | 2023-05-30T17:31:49.551098 | 2021-06-27T17:16:48 | 2021-06-27T17:16:48 | 364,058,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | # Given an array of positive numbers and a positive number ‘k,’ find the maximum sum of any contiguous subarray of size ‘k’.
# Input: [2, 1, 5, 1, 3, 2], k=3
# Output: 9
# Explanation: Subarray with maximum sum is [5, 1, 3].
def max_sub_array_of_size_k(k, arr):
# TODO: Write your code here
window_start = 0
win... | [
"laienxie@gmail.com"
] | laienxie@gmail.com |
b2df3ae98d1a7f952e4f192ca17d0aa494cf4859 | 5c5fb808dd5f4a6eaa78f2d1bf7b0a6812e41b41 | /database/mymysql.py | 819fcf32a7ea589acae0514b79a183bff1102a45 | [] | no_license | bugdude01/databaseTester | aa4d204ac7cfbc7bbacdc517249c04aaea9c294b | 82d9817b1d0ebc52376a7a5e162f614b1b354f96 | refs/heads/master | 2020-12-02T22:36:33.306029 | 2018-01-10T15:40:12 | 2018-01-10T15:40:12 | 96,155,503 | 0 | 1 | null | 2017-07-04T07:57:55 | 2017-07-03T22:39:04 | Python | UTF-8 | Python | false | false | 2,078 | py | import mysql.connector as _mysql
class MySQLDatabase(object):
"""
This is the driver class that we will use
for connecting to our database. In here we'll
create a constructor (__init__) that will connect
to the database once the driver class is instantiated
and a destructor method that will cl... | [
"rafrhodes@yahoo.co.uk"
] | rafrhodes@yahoo.co.uk |
ec7acf98f9484508ac4aef0ff75457eae8bd99f0 | f05acf7451fe58b64ec11744e8afddf142014efa | /crowdsorter/views/_session.py | dd75bd5c8d2a06dddfad4e0d7a5a23f7570d19a0 | [
"MIT"
] | permissive | iCodeIN/crowdsorter | 899ac58b1df43ca134d3f966dcf2ec1c4a49e0df | 1c847f1f0284fc810ec1f2dd501acb4dbfa16bbb | refs/heads/master | 2023-03-26T16:09:04.914897 | 2020-11-11T18:25:55 | 2020-11-11T18:25:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | from flask import session
VERSION = 2 # increment when session logic changes to clear sessions
VOTED_NAMES = f"voted-names:{VERSION}:"
SKIPPED_NAMES = f"skipped-names:{VERSION}:"
VIEWED_PAIRS = f"viewed-pairs:{VERSION}:"
def get_voted_names(code):
return _get(VOTED_NAMES, code)
def set_voted_names(code, name... | [
"jacebrowning@gmail.com"
] | jacebrowning@gmail.com |
6c3fd9da7b87347b3492d331dcb2e31a479bf9b3 | f1c21afcd4816411568e6697ad3925126269d1fc | /tests.py | 0d2fc9556a688cb20025594bb7a22da4d4be10e8 | [
"Apache-2.0"
] | permissive | alphabet5/yamlarg | 22acbd34daf48a9585f27c15162bdb91aea0d821 | 22ae5886f7ef2171d777c17cb0c436ada1672904 | refs/heads/master | 2023-07-10T12:33:24.691796 | 2021-08-18T05:12:32 | 2021-08-18T05:12:32 | 285,971,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | import yamlarg
if __name__ == '__main__':
args = yamlarg.parse('arguments.yaml', description="This is an example description.\nPlace an overview here.")
print(args)
assert args == {'string': 'default string',
'bool_false': False,
'bool_true': True,
... | [
"alphabet5@users.noreply.github.com"
] | alphabet5@users.noreply.github.com |
7b3cf3ffe24d71c33b95a9fdea478716907e5d9a | 7e2978d164305adfafd1f856817750fc54e161a8 | /exp/tools/exp2-2.py | 07ce08a32f6b6a61cfd43c94f8367af88345199a | [] | no_license | ZoharAndroid/plot-script | 6d88a99bef776eff3f03300bcd9e6db83d70f66e | 064b853c321fe2d3648d32d5257ec7674ad11419 | refs/heads/master | 2021-01-13T23:26:32.079141 | 2020-02-23T14:27:07 | 2020-02-23T14:27:07 | 242,527,452 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Author: zzh
# @Date: 2020/2/7 2:25
import numpy as np
from utils import Utils
from plot import *
from font import *
import sys
# 读取命令行参数
csv_filename = sys.argv[1] # csv文件名
platform = sys.argv[2] # 平台类型
# 读取csv文件中的内容
data = Utils.read_csv_row(csv_filename)
xtick_label ... | [
"1048132071@qq.com"
] | 1048132071@qq.com |
69aa022e185b5ec3bb7d2f6da610e01aedc92957 | fba1ae1672a770846eb219e4e092ba4c162aec40 | /2.py | 01fbf8c10fb3569d0961749560f345f35e124f7d | [] | no_license | peterbe/optimize-titles.json | 9272ad39d7565c448dce2b22a3d844ef0e7524d6 | ff7f8a01a5a742906ebb350c55cc963ca3b85e73 | refs/heads/master | 2022-11-23T05:33:05.004619 | 2020-07-15T18:18:48 | 2020-07-15T18:18:48 | 279,936,544 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 275 | py | import json
import csv
with open('0.json') as f:
data = json.load(f)
import csv
with open('2.csv', 'w') as f:
writer = csv.writer(f, delimiter="|")
for each, value in data['titles'].items():
writer.writerow([each, value['title'], value['popularity']])
| [
"mail@peterbe.com"
] | mail@peterbe.com |
e04bf0edd831ae16bfc02fa43b3fe311a800cda5 | 90e88e14e77e5689bfaf3dfcbebf87da3e244e08 | /packages/urls.py | 1d4c96ecf518dc513750ba2062f4eb240e8dca4b | [] | no_license | Code-Institute-Submissions/Fullstack-milestone-project-2 | 5309978a080ae9dd834f52b6931636003c189e68 | cbf1b60b570a93950e04870900ec1424c4f37785 | refs/heads/master | 2022-12-11T08:56:20.897445 | 2020-08-28T14:52:32 | 2020-08-28T14:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.all_packages, name="packages")
]
| [
"02bburrell@live.co.uk"
] | 02bburrell@live.co.uk |
11832a870cc5cd62a03c290b44260a6fe6dfca23 | b9a360c33aa6f2a33b3cc45a94667923aefb2d91 | /blueprints/puzzle/models.py | a18748f36d92714515423f401769d815cc23ff69 | [] | no_license | vkotek/web.kotek.co | 8068ab16926edee86c2bbb4829e52ca5d9707fb6 | d2f621fd3a16531efe4750f6969deb4a2e921690 | refs/heads/master | 2022-12-10T00:57:47.202437 | 2020-07-20T23:00:45 | 2020-07-20T23:00:45 | 192,185,513 | 0 | 0 | null | 2022-12-08T05:15:54 | 2019-06-16T11:55:59 | HTML | UTF-8 | Python | false | false | 3,177 | py | import datetime
class PuzzleCounter():
def __init__(self):
# with open('counter.txt', 'r+', encoding="utf-8-sig") as f:
with open('/home/vojtech/web.kotek.co/myapp/counter.txt', 'r+', encoding="utf-8-sig") as f:
self.errors = []
self.counter = f.readlines()
self... | [
"kotek.vojtech@gmail.com"
] | kotek.vojtech@gmail.com |
e7eb2234e064282efebfdb573efbd8e47c608a09 | 32a89f276e8e5784b41c652f2f6eded6cda0bf5a | /src/blog/urls.py | 0312104053fb8a8ab7b3fa70d9b0100e7e15b63f | [] | no_license | Chirag-py/Blog | 54c2d316fb104c888074f928a8cf5f5dae3ed5ca | b75449453cb765011a01ffad8cadb96e9b521a30 | refs/heads/master | 2022-12-07T20:30:48.593930 | 2020-09-01T19:07:50 | 2020-09-01T19:07:50 | 287,372,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py |
from django.urls import path
from .views import (
blog_post_detail_view,
blog_post_list_view,
blog_post_update_view,
blog_post_delete_view,
)
urlpatterns = [
path('', blog_post_... | [
"64911607+Chirag-py@users.noreply.github.com"
] | 64911607+Chirag-py@users.noreply.github.com |
66c5c64fb88018971d1bb341151a3e4ec51d0498 | 8f782f962ba2501a75d40fca88500d884e8229be | /Desafios/Desafio_079.py | b69a000240ee6d9aaa8fc8fff654d0c0a668dca3 | [] | no_license | HenriqueNO/Python-cursoemvideo | f6ec1284a9cbf7e86a12d6a541e45b4ad6290cf6 | 089f85fbfd88672cc1d9a89b075a40dd96354f40 | refs/heads/main | 2023-03-12T19:49:22.540090 | 2021-02-28T15:42:19 | 2021-02-28T15:42:19 | 343,133,567 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py |
lista = []
p = ''
while p != 'n':
n = int(input('Digite um número: '))
if n not in lista:
lista.append(n)
else:
print('Valor duplicado, número não adicionado')
p = str(input('Deseja continuar? [S/N] ')).lower().strip()[0]
while True:
... | [
"henrique.nunes478@gmail.com"
] | henrique.nunes478@gmail.com |
12bb374cf8180e49e825035a2663e222b3cc0907 | adf092e31ce156b45a03f0411ab18d0a567e4a39 | /showdata/admin.py | acc54fa885a69d5669d9a05810f26ac170103ef7 | [] | no_license | jaggi-mohit/Q-Think- | b8280e8014872bcdfa6f90b21aca028d1bc28e5e | 01ed7ebac4a55c955b3eabdf3028f058203b8fc7 | refs/heads/main | 2023-07-31T18:59:41.565946 | 2021-09-07T13:17:06 | 2021-09-07T13:17:06 | 403,983,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.contrib import admin
from .models import showdata,ans
admin.site.register(showdata)
admin.site.register(ans)
# Register your models here.
| [
"jaggimohit01@gmail.com"
] | jaggimohit01@gmail.com |
14a22648976b34b515b577929448b3bc0e537ab8 | 7703e4b37056ddb8ab5154caa200747b6af398de | /shiv.py | 8e223b44d2d8c2e90960eca9c0e91d3cadf3ab30 | [] | no_license | svk1998/Learning_rep | 27ab54c3e70e5a465aa8840512b408ea32c6a3de | 127df1a1890dd61bb6bab2671d0d33bf82c04070 | refs/heads/master | 2022-12-01T08:19:09.922847 | 2020-08-17T15:29:46 | 2020-08-17T15:29:46 | 288,235,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | print("jkasdhfk")
ghfghfgh | [
"svk19998@gmail.com"
] | svk19998@gmail.com |
c1db4e92b7a964a33d0b63902ca1030ea5153541 | 44d0256cf2b74fb48f2787ce5b32b61103eb8e81 | /forest_type.py | 904456349336c9fdf6d0331331ee974f43a2b4bd | [] | no_license | KongHag/Danslesbois | c0fa3ac72e52d864e1776b5c903985adc37b0b02 | da7d98eb7138125831a9fdb080919fb80d342ace | refs/heads/master | 2020-03-28T09:44:49.188270 | 2018-09-16T03:30:47 | 2018-09-16T03:30:47 | 148,057,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 9 19:13:47 2018
@author: hugof
"""
import pandas as pd
import numpy as np
train = pd.read_csv(r'C:\Users\hugof\OneDrive\Documents\Kaggle\all\train.csv',sep=',')
test = pd.read_csv(r'C:\Users\hugof\OneDrive\Documents\Kaggle\all\test.csv',sep=',')
| [
"39108853+hugof38@users.noreply.github.com"
] | 39108853+hugof38@users.noreply.github.com |
c2c72dd6a4037f0038e162dee8fcec72aba8097c | 68f6e727e8f95391d6381669c72857f8bc4ac142 | /source/demo_dqn_multi_new/dqfd_multi_largebasic_one_rocket_hate_exp036.py | ae1a5e8972266c05c9fe4b18f4b4c0a6df9c049f | [] | no_license | ushitora/vizdoom_experiments | db6b6279ce0b248c1e933340d518ce90189be37d | fcc6febcbd9039b0f0f0aea1d472b2226b5395e5 | refs/heads/master | 2020-04-28T09:40:56.209848 | 2019-03-12T10:00:28 | 2019-03-12T10:00:28 | 175,175,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71,570 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import multiprocessing
import skimage.color, skimage.transform
from vizdoom import *
import os, time, random, threading, h5py, math,pickle
import tensorflow as tf
import numpy as np
from game_instance_basic import GameInstanceBasic, GameInstanceSimpleDeathmatch
from glo... | [
"kikuchi.yutaro.s1@dc.tohoku.ac.jp"
] | kikuchi.yutaro.s1@dc.tohoku.ac.jp |
91e528925024ee60a3e68517f50cb0ef2c2dc7e3 | c71cde9642375b9365c41055c7b84bbef24cbdac | /ptp_nni_l2mc_basecase.py | d7c8b3026588939ab38a61a10716aed64d081a67 | [] | no_license | lightthgil/autotest | 10e59bc814690b6b298f70eb6822e4ec1d23494e | c2efb3f6d4eca3567a46aca15611a295337a38c0 | refs/heads/master | 2020-08-13T04:55:04.339047 | 2019-10-13T23:50:13 | 2019-10-13T23:50:13 | 214,910,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/3/14 15:03
# @Author : Jiang Bo
# @Site :
# @File : ptp_nni_l2mc_basecase.py
# @Software: PyCharm
from ptp_l2mc_basecase import *
class PtpNniL2McTestBaseCase (PtpL2McTestBaseCase) :
"""
PtpNniL2McTestBaseCase
"""
def change_inte... | [
"light"
] | light |
6f1f44af6ed076ab8a8925a0c8cb7ecb6222c034 | bac3be1d6321b903157965f33a48d7d616176c14 | /laba_1-main/13.py | fb3e8f7ab345a7faa06577944e450ba138a946e3 | [] | no_license | IlyaZuna/Python_2_course | a7ceb622c17a49cfbd70837fafc8fa2e0bce86f8 | 83e98301df3e187d11af73478b598c881315d70b | refs/heads/main | 2023-05-04T09:58:49.729157 | 2021-05-28T18:25:49 | 2021-05-28T18:25:49 | 371,779,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | def extra_enumerate(someArray, start):
st = start
cum = 0
for elem in someArray:
yield st, elem #vozvrashaet generator
st += 1
cum = cum + elem
print('(',st,', ',elem,', ',cum,', ',cum*0.1,')')
x = [1,3,4,2]
print ('(id,num,sum,10%)')
for i in extra_enumerate(x,0):
... | [
"noreply@github.com"
] | IlyaZuna.noreply@github.com |
ebff6e8a294d8b73e377247afd49c509be231ebf | a52e2dc412e81de22e1a56d22dbc2f4dce708ccc | /Systems/DT.py | 54926f136ac71af6859a77666110ba83150fb844 | [] | no_license | Team293/NoamsCode | 26f0858b32d7f7595db6d4dd803ef0e5ac4bc9d4 | 3052698e2373c13ebd86b8d6369c20467392e586 | refs/heads/master | 2021-01-22T11:55:12.126057 | 2015-10-19T19:30:35 | 2015-10-19T19:30:35 | 19,043,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | def main():
print("Oh yah driving \n")
| [
"noam999@veryspeedy.net"
] | noam999@veryspeedy.net |
a3e864dbe6345a2de83ebc2a959dd972fad8e4c0 | 7785cc3baee39fb4065538ea96513f181f5b2260 | /modules/BettingAnalyzer.py | b5ad5913c58b8b217338a8a9d8412a3f5c0988b9 | [] | no_license | AgborFrank/soccer-draws-bettor | 18d71fad5ef6e90e1f2a85d5a35c9faf8c552964 | 59c9c02b1fbfe18a57e3079966a1df6e3e524afb | refs/heads/master | 2022-02-20T09:52:26.752692 | 2018-12-26T16:53:09 | 2018-12-26T16:53:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,995 | py | """
BettingAnalyzer.py
"""
from Logger import Logger
from SystemParameters import *
import time
class BettingAnalyzer(object):
"""
Keeps bet history, provides related statistics
"""
def __init__(self):
self.current_balance = 0.0
self.current_betting_level = 1
self.start_time ... | [
"rjg26247@gmail.com"
] | rjg26247@gmail.com |
300d0550b3d9cd1ded41e503e66244eb8077a652 | 753b2846eeaf1c1642257d268db272d6fb1dfd8b | /pytorch/dqn_agent.py | 1c1d14044a5a68d5cacf205c610e9716c6e0716e | [] | no_license | JonasLeininger/deep-q-network-banana-navigation | bb2e199a25192f1475c366db0f61abcbec04d02d | 86b02edbd46df1a7cc1373e8bc28be04740bf5ac | refs/heads/master | 2020-05-22T22:41:13.290534 | 2019-07-17T04:46:48 | 2019-07-17T04:46:48 | 186,550,350 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,762 | py | import os
import numpy as np
import torch
import torch.nn.functional as F
from pytorch.dqn import DQN
from pytorch.replay_memory import ReplayMemory
class DQNAgent():
def __init__(self, state_size: int, action_size: int):
self.buffer_size = int(1e5)
self.batch_size = 64
self.tau = 1e-3
... | [
"jonas.leininger@gmail.com"
] | jonas.leininger@gmail.com |
9cc030bbca81a79c26e69685afe4616aebc404df | 0031bd210e25f9602a8ee3cf581c44e8e8f3a00f | /Junior/COSC0023-Py/Exercise/Queue at the School.py | 2a28b8f0c6fd269fc7ef8532c0aa0e06a1a0726b | [
"MIT"
] | permissive | TiffanyChou21/University | d991d30cad3b28bb5abc929faa6d530219a1d844 | 9584fa6b052a59ce01a256efc77add5bbec68d98 | refs/heads/master | 2020-09-29T10:54:00.297491 | 2020-08-16T03:47:57 | 2020-08-16T03:47:57 | 227,021,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | n,t=eval(input().replace(" ",",")) #老师讲的简便方法
s=input()
for i in range(t):
s=s.replace("BG","GB")
print(s)
| [
"TiffanyChou21@163.com"
] | TiffanyChou21@163.com |
93739bdfaa56d59c46f716b0f96d1eb1e9bd5a03 | e8a59da64d0c7cb31b7b692a4b99664a24040b63 | /google.py | fcf3e0f3a26493095f8dc722e8a93e3e0c9be450 | [] | no_license | geroalonso/emailalgo | f3ab3de0e1093052fe100984a26b0698f08d7773 | c9a984954f2e47a28726026df16ba53daea7b290 | refs/heads/main | 2023-03-07T09:01:13.033947 | 2021-02-28T22:12:42 | 2021-02-28T22:12:42 | 321,402,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | import requests
from bs4 import BeautifulSoup
import re
import urllib.parse
from urllib.parse import urlparse
#IMPORTANTE
#SOLO VA A LA PRIMER PAGINA
#TENGO QUE REACOMODARLO
def googleSearch(query):
g_clean = []
url = 'https://www.google.com/search?client=ubuntu&channel=fs&q={}&ie=utf-8&oe=utf-8'.format(quer... | [
"geronimoalonso@icloud.com"
] | geronimoalonso@icloud.com |
ccf1c9f6ef537d82ccc07b23265965dbb726f316 | 9aac8ad0ca3687536c4015b5f8e4035d3f600399 | /myenv/bin/pip | 015d5ca1221dc8b813fc27bf0d6620120a47d387 | [] | no_license | yespk/tweetme-2 | 9207f72c2099ba52e985a5f52a6c82d91944a18b | 5c2657483b9f3ac7b332127dd14e9f4becc346c5 | refs/heads/main | 2023-01-07T06:08:32.188335 | 2020-11-06T09:57:05 | 2020-11-06T09:57:05 | 310,548,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/home/satya/clone/tweetme-2/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ksatyaprakash143@gmail.com"
] | ksatyaprakash143@gmail.com | |
20be70f63cae206591407f2d022ea4038bbcf037 | 17782c846f362582772c53e3a3a0e5ddf95d54b2 | /1course/P/warrior.py | 5d6eb3c24efe4bb24da9388d935e6a315748941c | [] | no_license | youngdanon/InfoLessons2021-2 | 07e3cf4d15c6c3a5630d264c5b5336a276ec9793 | f4e4c970e9c7eda161b21d20a642f517913e01e8 | refs/heads/main | 2023-07-23T22:52:39.714760 | 2021-09-03T07:31:26 | 2021-09-03T07:31:26 | 338,988,399 | 0 | 0 | null | 2021-02-21T20:40:04 | 2021-02-15T06:38:23 | null | UTF-8 | Python | false | false | 4,226 | py | from abc import ABCMeta, abstractmethod
from random import randint as ri
units_classes = {"MAGICIAN": "MAGICAL", "WARRIOR": "SIMPLE"}
class Unit:
max_health = 0
__metaclass__ = ABCMeta
_max_damage = 0
_block_chance = (0, 0, 0) # randint([0], [1])==[2]
@abstractmethod
def __init__(self, name... | [
"Danil4693"
] | Danil4693 |
ac28490464c9de3e033a57f204f8d092c29bd4a1 | 8ddcd10b3f1edc78eeffa55dcf1562248dbee7ea | /encryption.py | 545a423aa38ca51f2fbbf89b4083f589c42f614a | [] | no_license | Perception12/EncryptionDecryption | fe660771e3b1ada0848e84d7fdf48412a76302ad | 415c97a6e9c659ed58957b23a2df8a33fa2efb96 | refs/heads/main | 2023-08-14T06:49:07.643362 | 2021-09-30T04:11:01 | 2021-09-30T04:11:01 | 411,842,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | import tkinter as tk
import random
import string
class Application(tk.Frame):
def __init__(self, master):
super().__init__(master)
self.master = master
self.createWidget()
self.grid()
# Gets the Alphabets
self.alphabet = list(string.ascii_letters)
self.alph... | [
"kehindeadejumobi82@gmail.com"
] | kehindeadejumobi82@gmail.com |
986e4045b106ad579041853e9891735e06800efd | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/rottenOranges_20200810191228.py | 2e8869821ab7c96fc3b8d53eff3ef2e939c3ffb4 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | def markrotten(i,j,row,column)
def oranges(grid):
# loop through the grid
# if there is no fresh orange just return 0
# if there is a two check all its four neighbours
# recursive call
# count when a one becomes a two
row = len(grid)
column = len(grid[0])
for i in range(len(grid)):... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
d20e606c613d78c5971e9e9c8e93448c465bcbe1 | 68aa9bf99d62a5b991dc5aaa3d794f4bcd6e355a | /Programiranje/gui/Capital_Cities.py | 24cfdaf80e27e2162949498aef012db6a6261742 | [] | no_license | dujodujo/lemur | 82c9e695459597ab1b3430e566bc375af84d563c | 1e6350b33f86f89f89c5bddbd3924364f027160e | refs/heads/master | 2021-01-01T16:49:35.386172 | 2013-11-06T09:59:12 | 2013-11-06T09:59:12 | 14,150,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | import sys, os, random
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class Form(QDialog):
def __init__(self,parent = None):
super(Form, self).__init__(parent)
self.get_data()
self.answers = 0
self.count = 0
self.countryLabel = QLabel("Country:")
self.fromCo... | [
"avsic.ziga@gmail.com"
] | avsic.ziga@gmail.com |
6105c024e51b9d2ded47f81f602e2f39c1080597 | aa9afcb895193a34e7622ae0b3e5efcd270f6f58 | /Pacico/0000/0000.py | 047a868714a24738ddda4c334f04fca2463b85a0 | [] | no_license | Pacico/python | f8542eba6e7cef91abeb0ca5e5adba9039095756 | d2df49c423cf7ec69c972a34db5f06a1dd0ec79d | refs/heads/master | 2020-05-29T11:46:32.416852 | 2015-12-02T12:35:39 | 2015-12-02T12:35:39 | 47,053,922 | 0 | 0 | null | 2015-11-29T07:17:21 | 2015-11-29T07:17:21 | null | UTF-8 | Python | false | false | 965 | py | # -*- coding:cp936 -*-
def imgaddingtext(filepath,text,fonttype='arial.ttf',color='black'):
from PIL import Image, ImageDraw, ImageFont
import os
img=Image.open(filepath)
x,y=img.size
draw=ImageDraw.Draw(img)
font=ImageFont.truetype(fonttype,(min(img.size))/5)
draw.text((x/2,y/2),text,fill=c... | [
"trin.lai@qq.com"
] | trin.lai@qq.com |
aa5b9abcf3f29620ae6f009d8186a34c7ef26686 | 3587930bb01a3935137a8ca5f83d93e88756f62c | /old/test/app.py | 18e5fd396e24b2989555dd8ce9c71843db9826bd | [] | no_license | gomi-kuzu/npb_bot | 2be518d8cbaa8be4833711fee43d278e074f1210 | dd1ae227650581231460a0822445f8fdeadf5584 | refs/heads/master | 2022-01-05T19:13:58.063004 | 2019-07-21T10:11:09 | 2019-07-21T10:11:09 | 198,041,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello():
name = "Hello World"
return name
@app.route('/good')
def good():
name = "Good"
return name
## おまじない
if __name__ == "__main__":
app.run(debug=False, host='0.0.0.0', port=5000) | [
"syookiti@gmail.com"
] | syookiti@gmail.com |
3e7c227a882f2cd39cdaf02c0f17a021690effc5 | 40a04920dea94179878e25a0804ce4a6b459aca9 | /Python/Django/Portfolio/apps/first_app/urls.py | 8e117530ce911208aad1a83f1f376ca1c35e005b | [] | no_license | Kryptonian92/pythonAssignments | 5c7dd9140d07c94b19816ebbcaba579338479136 | 06355e0481307a77e5acd53b86b1fc144e98302a | refs/heads/master | 2021-01-20T15:50:46.355224 | 2017-10-28T19:02:52 | 2017-10-28T19:02:52 | 90,771,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from django.conf.urls import url
from . import views # This line is new!
urlpatterns = [
url(r'^$', views.index), # This line has changed!
url(r'^testimonials$', views.show)
]
| [
"ausar_mcgruder@yahoo.com"
] | ausar_mcgruder@yahoo.com |
6165fd4fe24de731f158806ca62bf2c032c0ebf4 | eaa0f14677e111d3c2e83cebfdfcfd00b7575e61 | /radionator/radio/views/common.py | e7d7f8c6def12eae39dbebac76404fe0737784a9 | [
"MIT"
] | permissive | pierstoyanov/radionator | ae0f2ecfc18e8045a082c7b906db8fcbf4772f32 | 3c6212179ccd2e135727f2ce95fdd0e517ce1551 | refs/heads/main | 2023-07-16T15:46:58.539667 | 2021-09-07T16:58:36 | 2021-09-07T16:58:36 | 318,448,349 | 1 | 0 | MIT | 2020-12-15T16:07:20 | 2020-12-04T08:13:46 | JavaScript | UTF-8 | Python | false | false | 955 | py | from django.contrib.auth import get_user_model
from django.shortcuts import render
# Create your views here.
from django.views import View
from common.BackgroundMixin import BackgroundMixin
from common.CookieTestResultMixin import test_cookie
from radionator.profiles.models import Profile
RadioUser = get_user_model... | [
"0885095540gH!$!"
] | 0885095540gH!$! |
d84f4b126ec7829d18faeee96555f92262bc30de | 940c1c34c824886ddd6636ad5954c4c6dc708da3 | /InfluencerData/base/accounts/migrations/0064_current_package_user_package_exipry.py | 4151b614a46bd46867a438d4a8e172d5f15489ce | [] | no_license | saurabh69912162/Influencer-data | ba54cf5e1115674382b78334a0869aa7ed673cf9 | 908eab307ddb625d78e88fe6ad9aa5f3fa9af9df | refs/heads/master | 2020-09-17T01:29:14.871696 | 2019-12-04T18:22:07 | 2019-12-04T18:22:07 | 223,946,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | # Generated by Django 2.2.4 on 2019-11-24 12:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0063_myuser_new_user_notify'),
]
operations = [
migrations.AddField(
model_name='current_package_user',
... | [
"48159530+saurabh69912162@users.noreply.github.com"
] | 48159530+saurabh69912162@users.noreply.github.com |
075b73b96d2de8a69d8a57d0af2dcb35b97451a2 | cb0a0d4630b50c56b7285364b42aa2d072a45480 | /bin/current.py | ec5b7e0694d38d0c5c94a984f0c1678747689186 | [
"BSD-3-Clause"
] | permissive | fatlinlin/python | 2b6b60a278d2dcc720fb82838d27e1659cd85bce | abd538ee925e2f5268199aa004ab6bb63b13fd16 | refs/heads/master | 2020-04-14T10:24:46.121789 | 2013-07-16T12:07:48 | 2013-07-16T12:07:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | import argparse
import logging
from efront import iohelpers as io
from efront import repo
def add_args(parser):
parser.add_argument("-l", "--dir_list", help="list available dirs", action="store_true")
parser.add_argument("-v", "--verbose", help="control the output level", action="store_true")
def run... | [
"sbergot@efront.com"
] | sbergot@efront.com |
275b1304b2bd25a526a921b4065195cf4c92c6fd | 00d68c84c62f6708560e6f80344bf4f21ff6de1c | /jos_dup_wrd.py | 68b337e3afc3fab4f08b7460918ad5cdd053f0ed | [] | no_license | MimiDumpling/Mentors | 6b5f0dca9e8abdad595163fd3ea87251240a5ded | 231af0b667e647fdbaa775eb36ed1904b193b3fd | refs/heads/master | 2023-02-03T22:00:40.171114 | 2019-08-30T22:01:23 | 2019-08-30T22:01:23 | 102,072,578 | 1 | 0 | null | 2023-01-25T04:44:35 | 2017-09-01T04:03:22 | JavaScript | UTF-8 | Python | false | false | 578 | py | """
- takes a word
- return true if all letters are unique
- false if duplicate letters
"""
def dups(word):
letters = {}
word = word.lower()
for letter in word:
if letter in letters:
return False, "BOOOO"
else:
letters[letter] = 1
return True, "HAY"
result,... | [
"tienmiminguyen@gmail.com"
] | tienmiminguyen@gmail.com |
4edadd1ac8a0f5adebe4a40176f97daf50fa871d | 47835cc96e9f09611347d9463420ae44cb2cd2e3 | /test.py | 7435f28d76e034292ce0a6f4b3cef87d2eedbe5d | [] | no_license | shanahanjrs/LR35902 | b53fc4c41cfc55117e168622c60099a24f1cb6b0 | 545b1a71628f62f0b4dea044d8506d5f4243925e | refs/heads/master | 2020-11-25T07:12:29.067576 | 2019-12-26T05:03:26 | 2019-12-26T05:03:26 | 228,552,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | #!/usr/bin/env python3
"""
main entrypoint
"""
from mb import MotherBoard
def main():
mb = MotherBoard()
# Some fake data to render
j = [3, 3, 3, 3, 3, 1, 1, 3, 1, 1, 1, 1, 3, 1, 1, 3, 1, 3, 1, 1, 3, 3, 3, 1, 1]
##mb.gpu.map(0x0, j)
print('==== INITIALIZED ====')
print('==== cpu: ====')
... | [
"shanahan.jrs@gmail.com"
] | shanahan.jrs@gmail.com |
fe8ba77340b3ae2ed12efb74c11081fc1aa16a59 | 0d475571500afea47e36a94fef19f329a46261d3 | /detect_capital.py | 4970eebdc1e3538fec4f70c0acb44dcaa376c2d1 | [] | no_license | ankitupadhyay9/Python_Samples | ea7ecb7c2bd30cd530ec29e9fc631e0ccb7788c8 | f436588aee6876e2fc94b46a38340bb741fb4bb8 | refs/heads/master | 2021-04-28T13:35:50.530059 | 2018-03-16T22:43:08 | 2018-03-16T22:43:08 | 122,109,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | '''
520. Detect Capital
Given a word, you need to judge whether the usage of capitals in it is right or not.
We define the usage of capitals in a word to be right when one of the following cases holds:
1.All letters in this word are capitals, like "USA".
2.All letters in this word are not capitals, like "leet... | [
"noreply@github.com"
] | ankitupadhyay9.noreply@github.com |
168daad50747bc830f81b84fccc3f932b1cf4a0a | 3a2c6d04727e5150cd8308117fa3172f8e86a3db | /Fuentes/funciones_AG/naivef/generate.py | 634863794d19b439d75905749846e6c0eb454fa1 | [] | no_license | luisjimenezlinares/AGConsta | 2bc220d11f89aa3e3c86a12c0ee15ddcf0ad88ca | 9733bb27efc9dc29a9aeb215bf878249e336567c | refs/heads/main | 2023-06-16T06:20:28.958399 | 2021-07-07T17:17:58 | 2021-07-07T17:17:58 | 383,871,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # -*- coding: utf-8 -*-
from deap import creator
import numpy as np
import random
def random_generate(L, S):
ind = []
mini, maxi = minimo(S), maximo(S)
for i in range(L):
ind.append(random.random() * (maxi - mini) + mini)
return creator.Individual(ind)
def sample_generate(S):
return cr... | [
"luis.jimenez@uclm.es"
] | luis.jimenez@uclm.es |
1370807d55c14807b0c38bd17210d33afd2fd486 | deea011bef7b656eb579a9769d07f14478a32690 | /advanced-python/multi-threading/using-fork.py | 63a14fb4c9c33cde050881b61919018f42a390bd | [] | no_license | BhagyeshDudhediya/PythonPrograms | 38abcfd94e21b7cc8c323760a313cf3930bb07b2 | 185152b7644462d9dc75a1c91aedf2cf13da5015 | refs/heads/master | 2021-04-30T15:09:54.311064 | 2018-10-31T09:50:57 | 2018-10-31T09:50:57 | 121,232,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,048 | py | import os
# This will fail on windows as fork() is not defined for windows machine
# fork() returns 2 values, it returns 0 in child's context and returns
# non-negative value (childs PID) in parents context
# When a process is forked, everything including a program counter is shared
# between child and parent. Hence, ... | [
"dudhediyabv@gmail.com"
] | dudhediyabv@gmail.com |
6c7376c8231168cb83ab28cd66f7376c7363aa20 | 0b842bcb3bf20e1ce628d39bf7e11abd7699baf9 | /oscar/a/sys/platform/manager/blinky/__init__.py | 856452a17cd28db74867fb490c14dee2212dcaf8 | [] | no_license | afeset/miner2-tools | 75cc8cdee06222e0d81e39a34f621399e1ceadee | 81bcc74fe7c0ca036ec483f634d7be0bab19a6d0 | refs/heads/master | 2016-09-05T12:50:58.228698 | 2013-08-27T21:09:56 | 2013-08-27T21:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | #
# Copyright Qwilt, 2012
#
# The code contained in this file may not be used by any other entities without explicit written permission from Qwilt.
#
# Author: shmulika
#
G_GROUP_NAME_PLATFORM_POWER_BLINKY_ADAPTOR = "power-blinky-adaptor"
G_GROUP_NAME_PLATFORM_FANS_BLINKY_ADAPTOR = "fans-blinky-adap... | [
"afeset@gmail.com"
] | afeset@gmail.com |
e3b89978a46f073a7e64588a83c5a7135639bca4 | cbc817d47a448b048e5f50e90580a3b69560c757 | /thesisometer/wsgi.py | eb4c32a4392248af3d304a6995018ea57d19715e | [] | no_license | magnusmorton/thesisometer | 77411d213f766ea517b323e322c80b80519da053 | c7e3d138daa8f29f541e4e0ad0634d3ef178d99b | refs/heads/master | 2021-01-19T05:34:33.491353 | 2017-03-31T10:31:37 | 2017-03-31T10:31:37 | 58,637,908 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | """
WSGI config for thesisometer project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO... | [
"magnusmorton@icloud.com"
] | magnusmorton@icloud.com |
38a653ec34d2ca137957d5833d3e623c6ffdf1c9 | e101ed2b3e9df32f0e7f9173117d9d457f259fe1 | /Day04/part02.py | 59057e887486ad343461cd16dd6c822c16d6cdb8 | [] | no_license | MiConnell/AOC2020 | f4d5462b79ac738d2ee43524f362244c3178e580 | 3a8350b6b5b7d6bddc62425e2e240f9622a6a54f | refs/heads/master | 2023-02-03T04:35:58.164964 | 2020-12-15T07:42:38 | 2020-12-15T07:42:38 | 317,375,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,983 | py | import os
import re
from typing import Dict
from typing import List
from typing import Match
from typing import Union
file = os.path.join(os.path.dirname(__file__), "blob.txt")
REQUIRED = {
"byr",
"iyr",
"eyr",
"hgt",
"hcl",
"ecl",
"pid",
}
"""
byr (Birth Year) - four digits; at least 19... | [
"connellmp@gmail.com"
] | connellmp@gmail.com |
b2c1be6d03658e2b794333b2d98e59fda98d2e05 | 7d97daf9b9f46d68bbe29441d8db554918dfcdc4 | /leetcode/StringtoInteger8.py | 5a117868d64f0d0ad26bb4ae61baff99e7332feb | [] | no_license | hundyoung/LeetCode | 9a56c4f078dcb4e875a6178c14665b7784c1a0a2 | 803e164d3a21b593cb89206b3a362c1ab1eb9abf | refs/heads/master | 2020-09-23T02:51:13.657444 | 2020-05-06T12:53:07 | 2020-05-06T12:53:07 | 225,383,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | class Solution:
def myAtoi(self, str: str) -> int:
str1 = str.strip()
result = ""
for i in range(len(str1)):
char = str1[i]
if(i==0and (char=="+" or char=="-")):
result= result+char
elif char.isdigit():
result = result + cha... | [
"285080301@qq.com"
] | 285080301@qq.com |
c4a856dae562817734657a78568df2f522ab4f82 | 1ae2f3b5a1b194f819a50b0503384ba22c58cbc0 | /prob039.py | 545a6ed8fe6fa3c63549644d1ffcdd0e115ff141 | [] | no_license | KR4705/project_euler | 1ed7482d15d518f654879ee848b3b25b0d20b120 | bda51b83456a64cfe87ee0135110456321262c5c | refs/heads/master | 2021-01-01T16:29:11.824907 | 2018-02-03T07:53:31 | 2018-02-03T07:53:31 | 97,843,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | import time
start = time.time()
squares = []
for a in range(0,1000):
squares.append(a*a)
def triads(perimeter):
count = 0
for a in range(1,perimeter-2):
for b in range(a,perimeter-a-1):
c = perimeter-a-b
if squares[a] + squares[b] == squares[c]:
count += 1
return count
answer = 0
maximum = 0
for peri... | [
"gamerdude9@gmail.com"
] | gamerdude9@gmail.com |
31038ec0649c0dc0010fe5156fb4c056577c0dac | 006b5eab331c9bf02a6b9297918977bf77c86c84 | /static_pages/urls.py | fe0ad0fdc9e1ae04abde0a8b02da6a9ff4f2db9f | [] | no_license | donnywdavis/Django_Template | 06c3b03a7cc4265229f437dc8d05ab276eac19ff | dea8d41a746aa0854fc3bb41ddf70668f7966805 | refs/heads/master | 2021-01-23T20:12:50.900182 | 2015-09-30T00:33:54 | 2015-09-30T00:33:54 | 38,582,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from django.conf.urls import url
urlpatterns = [
url(r'^$', 'static_pages.views.index', name='home'),
]
| [
"donnywdavis@icloud.com"
] | donnywdavis@icloud.com |
74a34341337584f7b311a8997ad78f4bb49b70cb | e6e63aaabebd62adacf389ea3ef3e10536460421 | /main-menu/setup.py | 0aad1baa59e77afa5c9911af257cea74603cd27f | [
"BSD-3-Clause"
] | permissive | jtpio/extension-examples | 0d45d7df977896f9b8ff904cd1d3d77935b4e5bc | 0ce165c4487e9f605e512cd7445e381fe870001b | refs/heads/master | 2022-11-17T19:59:05.915190 | 2022-10-17T12:49:22 | 2022-10-17T12:49:22 | 248,619,218 | 1 | 0 | BSD-3-Clause | 2020-03-19T22:41:15 | 2020-03-19T22:41:14 | null | UTF-8 | Python | false | false | 2,565 | py | """
jupyterlab_examples_main_menu setup
"""
import json
import sys
from pathlib import Path
import setuptools
HERE = Path(__file__).parent.resolve()
# The name of the project
name = "jupyterlab_examples_main_menu"
lab_path = (HERE / name.replace("-", "_") / "labextension")
# Representative files that should exist ... | [
"noreply@github.com"
] | jtpio.noreply@github.com |
49c0d25246ab8592fad47c0d58fb7c76ee6c5fb9 | 4abfb04a77b4308c369e0cde7b2981ad661d8320 | /testing/test_calc.py | 572254a4ec3f98072d718e6a4df097ef79a503e4 | [] | no_license | yoyoxin/mytest | a7c9794174f80d5fbb0d0e6627b84e6df3959818 | 63f165b0a8a156258b337245dca7454de49025a7 | refs/heads/master | 2023-05-03T21:40:26.739109 | 2021-05-20T03:36:17 | 2021-05-20T03:36:17 | 368,783,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | import unittest
import sys
from pythontest.calc import Calc
class TestCalc(unittest.TestCase):
def test_add_1(self):
self.calc=Calc()
result = self.calc.add(1,4)
self.assertEqual(5,result)
unittest.main()
| [
"40452261@qq.com"
] | 40452261@qq.com |
6b1515908b2fe16543fdcf82ee9325387b7d572b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_plagued.py | 33674872c908833ea1ef79864be519cf6ce0d184 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py |
from xai.brain.wordbase.verbs._plague import _PLAGUE
#calss header
class _PLAGUED(_PLAGUE, ):
def __init__(self,):
_PLAGUE.__init__(self)
self.name = "PLAGUED"
self.specie = 'verbs'
self.basic = "plague"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
eac0f7f17e26e4bcda87feea5ee4778d4e04131b | 18701cf61b7e46ef8f352798b07d895c8d1ba160 | /assignment3/inverted_index.py | 0fb3835b71760816b6322e8b818ae6108ac19e01 | [] | no_license | JuanIgnacioGil/datasci_course_materials | 776ae525ed7ebf8aff3e1245a8dc4e4f03ed7df6 | ebdada1aca68054eeed083f2af39942e20364c0a | refs/heads/master | 2021-01-20T19:14:21.401098 | 2014-08-15T15:36:53 | 2014-08-15T15:36:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | import MapReduce
import sys
"""
Word Count Example in the Simple Python MapReduce Framework
"""
mr = MapReduce.MapReduce()
# =============================
# Do not modify above this line
def mapper(record):
# key: document identifier
# value: document contents
key = record[0]
value = record[1]
... | [
"iwan.manjak@gmail.com"
] | iwan.manjak@gmail.com |
65ab4f794bf809550a372a51156e69c862bc82ca | 3e2cf7cc9c3d0e3c89f5690d2d32ed157d828940 | /util/fuzz/fuzzloops.py | 2182ab188ccd3478f311199ebddd021cad082d39 | [
"ISC"
] | permissive | osresearch/prjtrellis | 2d989bdc838b9bbdfa24ec2e9e41000b5d9d1ca5 | 6d2d00db04d298ee228ec4cf37223f332d9f767d | refs/heads/master | 2020-06-05T09:07:04.559096 | 2019-06-17T14:29:39 | 2019-06-17T14:29:39 | 192,386,722 | 1 | 0 | ISC | 2019-06-17T17:01:35 | 2019-06-17T17:01:34 | null | UTF-8 | Python | false | false | 1,463 | py | """
General Utilities for Fuzzing
"""
import os
from threading import Thread, RLock
def parallel_foreach(items, func):
"""
Run a function over a list of values, running a number of jobs
in parallel. TRELLIS_JOBS should be set to the number of jobs to run,
defaulting to 4.
"""
if "TRELLIS_JOBS"... | [
"davey1576@gmail.com"
] | davey1576@gmail.com |
2bd765f9129f0648c344eac691a54cae5729812b | cc0d06e2aad3d30152c4a3f3356befdc58748313 | /13nov_til_19nov/17_novin1900.py | 0e049e544ca995c89370175743c5e1de70beedec | [] | no_license | lasse-steinnes/IN1900 | db0bb4da33fa024d4fe9207337c0f1d956197c50 | c8d97c2903078471f8e419f88cc8488d9b8fc7da | refs/heads/master | 2020-12-14T15:34:36.429764 | 2020-01-18T19:59:46 | 2020-01-18T19:59:46 | 234,789,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #### Forelesning in1900 ####
### Siste forelesning. Foilbasert.
## siste del av ODE-løsere og modellering av smittsomme sykdommer
## System av ODE´s
### Skal lage klassehierarki for ODE løsere.
###
| [
"lasse.steinnes93@gmail.com"
] | lasse.steinnes93@gmail.com |
58084fce6dc4b6242e670298ab622851749142f7 | 3e873bb5532685ac8d4fdb6d6266ab653b6beb44 | /extract_skills_from_docx.py | befd3adcdb6461593cfd7afe02b7c753061a9579 | [] | no_license | nelsonchacko98/resumeParser123123 | 5ed6d32904bf386c414dc8baf999353db19f21d2 | 16f3fd85a6ffe7b25090bae70f801ff4c8f8df44 | refs/heads/main | 2023-05-30T19:24:36.139428 | 2021-06-11T08:08:47 | 2021-06-11T08:08:47 | 375,951,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,510 | py |
import docx2txt
import nltk
nltk.download('stopwords')
# you may read the database from a csv file or some other database
SKILLS_DB = [
'machine learning',
'data science',
'python',
'word',
'excel',
'English',
]
def extract_text_from_docx(docx_path):
txt = docx2txt.pro... | [
"noreply@github.com"
] | nelsonchacko98.noreply@github.com |
e97f390167367281707f1fb7bdcfdad03ff816b6 | 6420b91261248a9602207528683696510ee2e5da | /ecommerce/ecommerce/wsgi.py | b1b89363183244c151f07c117a776f6687264b94 | [] | no_license | Mounikabudiga/ecommerce | bfe0d5178586720575f6d7dd1c278b118b5655bb | 4688a3d6ccf53d406e2dfa41ef20c1f1872840a2 | refs/heads/master | 2020-09-02T16:52:49.976204 | 2019-11-03T06:59:40 | 2019-11-03T06:59:40 | 219,263,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | """
WSGI config for ecommerce project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
wsgi:-webserver gateway interface
"""
import os
from django.core.wsgi import get_wsgi_application
... | [
"mounikabudiga98@gmail.com"
] | mounikabudiga98@gmail.com |
9a68a892ee7454b8952addae4614751aba7824f7 | 0789e92ff05448f511352982dbc9fcc8b481e806 | /kikar_hamedina/reporting/management/commands/export_commentator_data_to_csv.py | 728384914535440e35a1486adb779002cbeca29e | [] | no_license | danielhers/kikar-hamedina | 9645dfc554c004092cb44bb5189b63e9940b3801 | a838a2fc675ea7100c620477bae438f215c741f7 | refs/heads/dev | 2020-06-14T14:08:05.069290 | 2017-05-04T17:22:03 | 2017-05-04T17:22:03 | 75,173,287 | 0 | 0 | null | 2016-11-30T09:47:01 | 2016-11-30T09:47:01 | null | UTF-8 | Python | false | false | 6,338 | py | #!encoding utf-8
from csv import DictWriter
from django.utils import timezone
from facebook_feeds.management.commands.kikar_base_commands import KikarBaseCommand
from facebook_feeds.models import Facebook_Feed, Facebook_Status
DELIMITER = '~'
class Command(KikarBaseCommand):
def add_arguments(self, parser):
... | [
"yotammanor@gmail.com"
] | yotammanor@gmail.com |
dc69296f710f59da9be6abb305d86c572b7c5bbc | 38875c008f33d588ec5827f5b1f19c56b1bb56d5 | /docs/python/resources/config.py | d6a774a2f0a5525e2a13cdc183a74de44a5e6aa9 | [] | no_license | bryanwhiting/ds-arxiv | 6c9c0825e827ed8a3897780dfc71ccf6a454d80a | 6be1718b739da1965511a4792afb05c097fccd49 | refs/heads/master | 2020-11-25T04:56:29.508241 | 2020-01-28T23:45:16 | 2020-01-28T23:45:16 | 228,509,886 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | from datetime import date
feeds = {
'engineering': {
'openai': 'https://blog.openai.com/rss/',
'fb': 'https://research.fb.com/blog/feed/',
'airbnb-ds': 'https://medium.com/feed/airbnb-engineering/tagged/data-science',
'ggl_dev': 'http://feeds.feedburner.com/GDBcode',
'ggl_... | [
"bryan.g.whiting@gmail.com"
] | bryan.g.whiting@gmail.com |
98f50633d7a2f376fa62cba3433f8d1dd51588f3 | ebe5167148cfff43d24b6c66e44634bb55513b72 | /solutions/linkedlist/160.Intersection.of.Two.Linked.Lists.py | 2cf42f3f9cf91b328616216b08a513d48d5ff246 | [] | no_license | ljia2/leetcode.py | c90ac38a25331d61d3ff77fd135b82372da3a09f | 08c6d27498e35f636045fed05a6f94b760ab69ca | refs/heads/master | 2020-03-25T03:37:13.318582 | 2019-07-18T23:14:41 | 2019-07-18T23:14:41 | 143,351,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,122 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution(object):
def getIntersectionNode(self, headA, headB):
"""
Write a program to find the node at which the intersection of two singly linked list... | [
"ljia@conversantmedia.com"
] | ljia@conversantmedia.com |
9ffd5ba7b0f83beb82f278a5432c9738b8cb7a4b | 7ac3fb82698097fbfca84de452534adedead7c80 | /polls_grievance/polls/admin.py | 77489f022a971642f46532c55a40f7eebf5e7dd6 | [] | no_license | shruthi-ms/grievance-redressal-system-B05 | c3a0113c8008a9a1db16cbc409c68e8bdeb603a6 | 1ad4917de6aab1487adfe42d70426e87fd2de489 | refs/heads/master | 2020-03-31T22:21:55.615852 | 2018-11-09T06:53:54 | 2018-11-09T06:53:54 | 152,615,805 | 0 | 3 | null | 2018-11-09T06:35:41 | 2018-10-11T15:38:25 | HTML | UTF-8 | Python | false | false | 159 | py | from django.contrib import admin
from .models import Question,Choice
# Register your models here.
admin.site.register(Question)
admin.site.register(Choice) | [
"noreply@github.com"
] | shruthi-ms.noreply@github.com |
c0832261e777b57d203ecb1bef7b9c07cbd0adaa | 0db0cd4a1632151d9a643f5e8fd1d96963c0b624 | /transformer/transformer.py | 9180465ece4d6b6eb6175bfa2beab6c468ec7f0a | [
"Apache-2.0"
] | permissive | Nniy/lark | f0a4bace3259090a94d2afa8a8c1581684b35670 | 09a9ee45006ebf07ad8abe6f03384cac7f407cc1 | refs/heads/master | 2020-03-20T07:18:10.276531 | 2019-02-07T09:49:36 | 2019-02-07T09:49:36 | 137,277,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,236 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import math
import copy
import spacy
from torch.autograd import Variable
from torchtext import data, datasets
class EncoderDecoder(nn.Module):
def __init__(self, encoder, decoder, src_embed, tgt_embed, generator):
super... | [
"alexyin1012@gmail.com"
] | alexyin1012@gmail.com |
c797fec39e87cec2724d05c13ea1be0f98111384 | 7f66c66eb82b480e8a23ecbfb8613aae02cb50f7 | /tests/integration/parity/utils.py | 572d4c4af3500566de67c6e37afa8c80f6465074 | [
"MIT"
] | permissive | y19818/web3.py | 03ddedcfdbd4dde2c1a458b31f5e796509b3c7c6 | 32a85a287ab63220d1e0c06d77be74de595ff02f | refs/heads/master | 2021-06-25T00:30:50.312173 | 2019-12-02T08:21:40 | 2019-12-02T08:21:40 | 225,276,093 | 0 | 0 | MIT | 2019-12-02T03:20:47 | 2019-12-02T03:20:47 | null | UTF-8 | Python | false | false | 1,939 | py | import signal
import socket
import subprocess
import time
from vns_utils import (
to_text,
)
import requests
def wait_for_socket(ipc_path, timeout=60):
start = time.time()
while time.time() < start + timeout:
try:
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)... | [
"y19818@gmail.com"
] | y19818@gmail.com |
74e9df0b5d0ebe6672192510a53a197fe7aea039 | abf443927d76b4df7af6e4fcee85bdb4c9458ecd | /sta_etl/plugins/plugin_dummy.py | 1ddf5bcda9181127c894b4882b76dfb99f1f2d7c | [
"MIT"
] | permissive | XeBoris/git-etl | 0374b234f477251473c1673bfc4b6badadf1d49d | 888f26e51a797dd111c9ca457a0c83b4f00296f0 | refs/heads/main | 2023-04-08T06:02:53.708342 | 2021-04-25T13:06:44 | 2021-04-25T13:06:44 | 343,483,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,657 | py | from sta_etl.plugin_handler.etl_collector import Collector
import pandas as pd
import numpy as np
# from geopy.distance import distance as geopy_distance
# import math
@Collector
class Plugin_Dummy():
"""
This is template development plugin for proving the processing chain right with
depending plugins. Th... | [
"Boris.Bauermeister@gmail.com"
] | Boris.Bauermeister@gmail.com |
cfe01a4b169c15eb94d8021b61f0dde6ad776745 | bec2c75169d382832ed4d7bef22875134e8f5905 | /calculadora simples.py | 75a0cb4b286a441895308343bcc80ae77f3219eb | [] | no_license | guhavila/Calculadora-simples | 6b4ad8c408355df9c494f8127049d92a7fe73b5b | 652238696841d35796a79acfeef68837eef4d8e1 | refs/heads/main | 2023-08-16T09:39:34.911622 | 2021-10-04T17:59:12 | 2021-10-04T17:59:12 | 413,525,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | numero1 = 0
operacao = " "
numero2 = 0
resultado = 0
numero1 = int(input ("Digite o numero1: "))
operacao = input ("Digite a operacao: ")
numero2 = int(input ("Digite o numero2:"))
if operacao == "+":
resultado = numero1 + numero2
elif operacao == "-":
resultado = numero1 - numero2
elif operacao == "/":
r... | [
"gustavo_avila2005@hotmail.com"
] | gustavo_avila2005@hotmail.com |
1aa1112d089891e91e257655c1e42a991a974838 | e7293c737c841cba9442f96b1573eb223badd731 | /func/common.py | 2c6c24d0539e5114903874beac29f651bb67649e | [] | no_license | KD1792035/XueQG | 50d8637f6acd9c5ce7b352dbae394c5ae92a3008 | 6362a2dbd0d53fdd7b43fa94c54f27e3e2c6d62c | refs/heads/main | 2023-08-27T13:53:11.284511 | 2021-11-01T03:01:23 | 2021-11-01T03:01:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | import os, sys, random, time
import json, base64, pickle, requests, re
from requests.cookies import RequestsCookieJar
from configparser import ConfigParser
from func import color
from func.dingding import DingDingHandler
def get_appsyspatch():
application_path = './'
if getattr(sys, 'frozen', False):
a... | [
"noreply@github.com"
] | KD1792035.noreply@github.com |
66480d0c87e44292792f32a89d103e7e937b6bee | 37afcd9d248512303297e595c40716ecb614ab8b | /tfidf.py | 38ab7a0cd16784ed2cc6cf341e1ca3ab14705362 | [] | no_license | guoyin90/2019-sohu-finals | 093cc7bf02f826d072e064f8e271b946b6de71cb | a73104bc68a64bc80b67c94d83957c6f3d522674 | refs/heads/master | 2020-07-01T03:11:47.060416 | 2019-06-26T03:53:16 | 2019-06-26T03:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | import gensim.downloader as api
from gensim.models import TfidfModel
from gensim.corpora import Dictionary
from joblib import load, dump
from sklearn.feature_extraction.text import TfidfVectorizer
import csv
train_ners = load('data/final_train_cut_v3.joblib')
test_ners = load('data/final_test_cut_v3.joblib')
nerCorpu... | [
"noreply@github.com"
] | guoyin90.noreply@github.com |
14e9b8763448d24bfb6298dce83da3a2385c6ca9 | a7cf0faff89d15f364e5e245709392bcdfbb57bc | /tuple4.py | 1623d0fd81cbdde1fef9de2f3ff3e09700c551fc | [] | no_license | sanidhya12345/Python_lab | 3e5edd3ecdd42b45016d635d556c4377f2d319a6 | a90e1122de256d99a65abe83ac146e1eff2ea67e | refs/heads/master | 2020-12-28T14:29:42.365982 | 2020-10-01T05:24:49 | 2020-10-01T05:24:49 | 238,370,287 | 2 | 1 | null | 2020-10-03T06:39:36 | 2020-02-05T04:48:53 | Python | UTF-8 | Python | false | false | 35 | py | t=(1,2,3,4,5,6,7,8,9)
print(t[-1])
| [
"noreply@github.com"
] | sanidhya12345.noreply@github.com |
9c4bab3b48be93ed860e10acba9161ddcdec7dd5 | 3de97a4bbe114e5ca809ba570de825ceb151d81b | /01_Complete-Python-3-Bootcamp-Practice/06-Modules and Packages/ex02/myprogram.py | 70fe306b0dd8204b3eaaf16e91bb92a372dd62be | [] | no_license | duvvurupriyanka/Python | 699c19326b73a80d8170f51d52cb9156d53c6bb7 | cab669a3b18203449054dfd2b27f89f233c13825 | refs/heads/master | 2020-07-07T03:37:26.470997 | 2019-10-17T21:59:45 | 2019-10-17T21:59:45 | 203,233,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | from MyMainPackage import my_main_script
from MyMainPackage.Subpackage import sub_script
my_main_script.main_func()
sub_script.sub_func()
| [
"duvvurupriyanka@gmail.com"
] | duvvurupriyanka@gmail.com |
c96d9fbb1ec55e009c3130b003d3cd72bee5a478 | a9760a1f2384fc1ab221fac2c06ce5b8fc21b518 | /.ipython/ipy_user_conf.py | d814cd8491f14cf9afab3ba439a4d2191815a7cf | [] | no_license | escalant3/dotfiles | 261c1ba5d77e4fe2ab61cfade7ea043a5c8260ea | 5b441884929b39086fa605f28686daad2c201470 | refs/heads/master | 2021-01-01T15:36:38.781979 | 2015-12-28T20:42:07 | 2015-12-28T20:42:07 | 2,710,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,511 | py | """ User configuration file for IPython
This is a more flexible and safe way to configure ipython than *rc files
(ipythonrc, ipythonrc-pysh etc.)
This file is always imported on ipython startup. You can import the
ipython extensions you need here (see IPython/Extensions directory).
Feel free to edit this file to cus... | [
"escalant3@gmail.com"
] | escalant3@gmail.com |
122f1143e542f77ec9a512facbdde9cdf4939450 | 15d6a910b23d2cc0f1f7c634b7c0988d7a2dafb3 | /claire-f/2014_10_14CF.py | 70977eb6c70c7e01ff23fb22f7c8d73e00e87233 | [] | no_license | gitthabet/MS-BGD | c523451bb63a1723abccebe4086f0ba073999f41 | a157ba583b8a0f5bf8142e324a485bb7e1ee5f5f | refs/heads/master | 2021-07-08T12:33:17.933768 | 2016-12-30T00:28:24 | 2016-12-30T00:28:24 | 24,846,974 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | import unittest
# Given a string and a non-negative int n, return a larger string
# that is n copies of the original string.
def string_times(string, n):
i = 1
newstring = string
while i < n:
newstring = newstring + string
i = i+1
# print newstring
return newstring
# Given an arra... | [
"claire.feldman@telecom-paristech.fr"
] | claire.feldman@telecom-paristech.fr |
344080e25e9fc5e86575b64666d70cb7dc6f2f77 | 6779ba337409e99ba1b740ffd10972e4f4e13552 | /tensorflow_datasets/image_classification/isic2019_test.py | a656e9fd087ac9152af16da674b37e4416b34d6a | [
"Apache-2.0"
] | permissive | jmr137/datasets | 32fe843555a46a6966cf68bec97e0c51e6fd7f1b | 09276a35d75a453ec37db6e549a813e4575c796d | refs/heads/master | 2022-12-20T16:46:48.179924 | 2020-09-22T18:33:23 | 2020-09-22T18:33:23 | 297,554,966 | 0 | 0 | Apache-2.0 | 2020-09-22T06:22:05 | 2020-09-22T06:22:04 | null | UTF-8 | Python | false | false | 850 | py | """isic2019 dataset."""
import tensorflow_datasets.public_api as tfds
from tensorflow_datasets.image_classification import isic2019
class Isic2019Test(tfds.testing.DatasetBuilderTestCase):
# TODO(isic2019):
DATASET_CLASS = isic2019.Isic2019
SPLITS = {
"train": 3, # Number of fake train example
# N... | [
"jmr137@duke.edu"
] | jmr137@duke.edu |
b94b33eee424c11a30b3cdc6afe55de6c68ac690 | 9a336624952a794a0cc1674e5782286f54ad39d9 | /cubista3.py | 464185f30100000924df075de7af81fc52bf5ebc | [] | no_license | JNBIMI/QVistaMio | 282a3362c5801360d8de615e76954171e927690a | 8a8e6274245b851099613df0e1d06810c2418dd0 | refs/heads/master | 2022-09-28T15:01:40.180735 | 2020-06-03T08:06:58 | 2020-06-03T08:06:58 | 267,923,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,472 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Cubista3.ui'
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWin... | [
"javier.nieva.benito@gmail.com"
] | javier.nieva.benito@gmail.com |
92b81bdb559bb6564ba8c3e3179d1324f1e77352 | 93748d5565259361cdf880745f5f0242a02a37e0 | /src/server/views/UserView.py | 1f1e004b0b6400c2b5bd42298272b2a9520aa706 | [
"Apache-2.0"
] | permissive | daniel3303/sirs-project | 38a8aca51a376f91564f73be6ef9e40b0fce94b5 | 38a36ecf2373775c3a866f185dacb7597ad1e3cc | refs/heads/master | 2020-04-06T19:42:11.915440 | 2018-12-13T07:13:42 | 2018-12-13T07:13:42 | 157,746,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,468 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.http import JsonResponse
from django.views import View
from django.core import serializers
from django.contrib.auth import authenticate
import json
from server.models import User
class UserView(View):
def get(self, request):
... | [
"daniel-oliveira-11@hotmail.com"
] | daniel-oliveira-11@hotmail.com |
911d35984b9006f922ee1d30cf3c164969880479 | a8e4e84d62caf664e973a016fda5161ef1a775dd | /utils/layers.py | ca5fa3425c7855689ad153e5025f6502c6d1e768 | [] | no_license | HJ-Xu/SPS-LCNN | 3f560d53b0c5f1ecfc33d1c301b951e755dbe47f | 4598c5ba46ebc453fa1cce079cc25b23d9c6898c | refs/heads/master | 2023-07-20T02:46:46.154668 | 2023-07-06T02:24:42 | 2023-07-06T02:24:42 | 287,871,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,967 | py | import tensorflow as tf
import numpy as np
import os
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
ROOT_DIR = os.path.dirname(BASE_DIR)
sys.path.append(os.path.join(ROOT_DIR, 'utils'))
import tf_util
####################################################################################################... | [
"noreply@github.com"
] | HJ-Xu.noreply@github.com |
8c4e25032a017464274c3783f28d6988a1017590 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_135/3673.py | 56a2a64feb4db88351e2187df1ddbb45f569ef30 | [] | 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 | 583 | py |
import sys
def t_process():
n1 = int(sys.stdin.readline())
n1 -= 1
n1_matrix = [set(map(int, sys.stdin.readline().split())) for _ in range(4)]
n2 = int(sys.stdin.readline())
n2 -= 1
n2_matrix = [set(map(int, sys.stdin.readline().split())) for _ in range(4)]
sol = list(n1_matrix[n1].intersection(n2_matrix[n2]))... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
972a80ddb62fce85cc2a79f484049e457cf38d69 | 29cc07e52f8b31549df8900a9d3da155914c200a | /Client/Config.py | 6c229304e59517945da22d02f6bc9703bf09ea48 | [] | no_license | ingnelson/get-tunnel-py | c0a8a87054b60b81e351b6356212e6ba2a4740ae | 2560a950b944ba9586a42d3fca064ecdc36bddc4 | refs/heads/master | 2021-10-24T03:41:29.102157 | 2019-03-21T19:49:25 | 2019-03-21T19:49:25 | 261,303,786 | 1 | 0 | null | 2020-05-04T21:52:31 | 2020-05-04T21:52:30 | null | UTF-8 | Python | false | false | 476 | py | import base64
class Config:
def __init__(self, target, hostHeader, password, serverHostPort):
self.target = target
if len(hostHeader) == 0:
self.hostHeader = None
else:
self.hostHeader = hostHeader
if len(password) == 0:
self.password = None
... | [
"ailton.novais@corregedoria.df"
] | ailton.novais@corregedoria.df |
c2e730e85cb3784c6adfc50de37cf914ef909f5f | d784870a828760c910899bdfdfe075cf14e765bf | /S3FS/bin/rst2latex.py | e97c9c3605ec3c01b828472e3b703f1456393e0b | [] | no_license | Novandev/EasyS3FS | 61d91bb5046f2edb00ae0f0312e9884b31bdc497 | fa2128d4a80c963c933ec32e872f5b46c5b40528 | refs/heads/master | 2020-03-08T07:37:20.236148 | 2018-04-25T20:48:13 | 2018-04-25T20:48:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | #!/Users/donovanadams/Desktop/GitHub/EasyS3FS/S3FS/bin/python3.6
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
import lo... | [
"donovan.adams@students.makeschool.com"
] | donovan.adams@students.makeschool.com |
1152f9facac5c0cb34d89abe0989f056a54199fe | 0ab3ab2cda94a700f015ff172ef37abc3402ed75 | /drawfromfile.py | 3150dd3f92c114e2f97a979d71243be2403f76c8 | [] | no_license | mikerr/laserPOV | 719c85493f8a4dc05e92267695e9e0804aac0b64 | 215ee38db2c3a2ff6e92e1c4f5aa18615ec76839 | refs/heads/master | 2016-09-06T07:49:40.767385 | 2015-04-11T20:49:39 | 2015-04-11T20:49:39 | 33,660,512 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | #!/usr/bin/python
import subprocess,time
file = open('drawing','r')
x,y = [], []
for line in file:
row = line.split()
x.append(row[0])
y.append(row[1])
SPEED = 0.09
REPS = 10
XOFFSET = 160
YOFFSET = 110
for loop in range (REPS):
for i in range (len(x)):
xpos = int(x[i]) + XOFFSET
ypos = int(y[i])... | [
"pi@raspberrypi.(none)"
] | pi@raspberrypi.(none) |
c413695ffeb36ad73b5fc8d1b9c1bb011a87c2c6 | 1e9ca32f350f1434eaea85dad10af45d64d7fa00 | /conf_create_symlinks.py | 394dd0598d5d235de8adab67b4135e31d1705819 | [] | no_license | beneills/configuration | ffbc388e47eaf63cca580c6e458d13461f1d7512 | 0feb42037057fb0df584fb557809e23787146ced | refs/heads/master | 2021-01-10T20:04:27.341608 | 2018-12-14T17:16:31 | 2018-12-14T17:16:31 | 7,356,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | #!/usr/bin/env python
import os
import os.path
IGNORE_FILES = ( 'conf_create_symlinks.py', 'conf_add.py')
SOURCE_DIR = '/home/ben/files/conf'
TARGET_DIR = '/home/ben'
entries = [f for f in os.listdir(SOURCE_DIR) if f not in IGNORE_FILES and not f.startswith('.')]
count = 0
for f in entries:
source_path = os.p... | [
"ben@beneills.com"
] | ben@beneills.com |
23afbdc21f3c52e6711d6a97008f609df14f55bf | a2ad46d4995b2dbe182e645a15b7d5a7047d3b56 | /2018.12.05.provetta/all-CMS-submissions-2018-12-05/2018-12-05.12:18:30.099314.VR437605.conta_multipli.py | e4d78f797d2d4c80a6e99aaa5ded613795628fb5 | [] | no_license | romeorizzi/temi_prog_public | ccf634a0291dd943b503f8dc57ed03de4d9b1a68 | e9e3e98d4a9a3cddec45d514180b83fd5004fe7b | refs/heads/master | 2020-04-09T04:27:35.687265 | 2019-03-25T14:04:04 | 2019-03-25T14:04:04 | 160,024,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | """
* user: VR437605
* fname: ANNALISA
* lname: DETTORI
* task: conta_multipli
* score: 100.0
* date: 2018-12-05 12:18:30.099314
"""
#!/usr/bin/env python3
# Template per soluzione conta_multipli
from __future__ import print_function
import sys
if sys.version_info < (3, 0):
input = raw_input # in python2, l'eq... | [
"romeo.rizzi@univr.it"
] | romeo.rizzi@univr.it |
18f628bb34251a5e0265796a5d0ad8c3fc787498 | ca505019c94aec2a3f02675147689f9025fffc75 | /class_0601_리스트.py | 67df47354a402af6c2a68cc9dcf95b161d287803 | [] | no_license | broship0821/pythonbasic | f7efef7ee1e2b4f2e69dfca6d2cdb1689680b186 | 891c713d6c1cd3c9863b8fbb0f5b3493f077731f | refs/heads/master | 2022-10-21T01:56:20.068706 | 2020-06-15T07:22:31 | 2020-06-15T07:22:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,743 | py | # ###리스트
# 리스트는 데이터의 목록을 다루는 자료형
# []대괄호로 명명한다
# 리스트 안에는 어떠한 자료형도 포함시킬수 있음 C는 같은 자료형만 가능
# 변수가 많아지면 관리해야할 사항이 많아지고 실수할 확률이 높아짐
# 리스트는 연속적으로 되있어서 데이터 가져오기 편함
# 리스트를 가져올때는 인덱스를 사용 0번부터
# ls = [500, 200, 300, 400]
# Sum = 0
# print("ls:", ls)
# print("ls[0]:", ls[0])
# print("ls[1]:", ls[1])
# print("ls[2]:", ls[2])
# ... | [
"gudqo1995@naver.com"
] | gudqo1995@naver.com |
e82b8f60c7041d1ec12de66c1232989ec0bbaae1 | 896794d2ac6cd846ab81bee896831c2186897c7e | /qa/rpc-tests/merkle_blocks.py | 6b00f7bbf63642fb2e0f3addc36927e15775bf17 | [
"MIT"
] | permissive | pepcash/Pepcash-MN | d15fa60db6a9488f50eea400a5de2d7bae0c193c | 1ee89bc76f7f4f6354b7419a20c8532bbbc816d5 | refs/heads/master | 2020-03-19T14:49:29.694653 | 2018-06-09T09:25:58 | 2018-06-09T09:25:58 | 136,641,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,055 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test merkleblock fetch/validation
#
from test_framework.test_framework import BitcoinTestFramework
f... | [
"marquisogre@gmail.com"
] | marquisogre@gmail.com |
aaa9b0cd3ab96bdc110c54a91d771b1e93dced88 | 6251c24d4118d9bd743c1660be8cf3f697a0cb1b | /simple_calculator_using_python/main.py | c01e8cf26f64059df1888c47a882f0e4cf6e9943 | [] | no_license | kohinoor12/Simple_calculator_using_python | 67947663bd1170466a5a42daf5baa70b966d9927 | b17fb323e92a169201331e133eb33aa716b60da2 | refs/heads/master | 2022-10-20T14:38:20.943211 | 2020-06-26T09:47:36 | 2020-06-26T09:47:36 | 275,120,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,765 | py | import tkinter
import tkinter as tk
from tkinter import messagebox
# setting up the tkinter window
root = tkinter.Tk()
root.geometry("250x400+300+300")
root.resizable(0,0)
root.title("Calculator")
val = ""
A = 0
operator = ""
# function for numerical button clicked
def btn_1_isclicked():
global... | [
"noreply@github.com"
] | kohinoor12.noreply@github.com |
095aa9c799dfc36066b3dcd4c9527c9ba3197cfc | 9c89fc160f6a8d3c55a58385e8e24bb1d0d5e508 | /helpers/psc.py | ad2ceb050b7736c20fb8d57c11648afd11fd046e | [] | no_license | mpmbq2/StimPy | 72559a84e0a4670ba5c2aaa9cdda870d073d24f8 | ff47e2a619f744d2e233caae74d5a0ed1a1c011d | refs/heads/master | 2020-12-31T07:32:31.964213 | 2018-06-13T16:53:01 | 2018-06-13T16:53:01 | 80,551,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | import numpy as np
import pandas as pd
import stf
import stfio
"""Pseudocode describing the PSC analysis process to be used:
1) PSC object created by user, pointing to MetaData object
2) Psc.proceed() method called to open first file in list
3) User prompted to select traces to use for channel 1 cell 1
... | [
"mpmbq2@gmail.com"
] | mpmbq2@gmail.com |
cd9cfd4cc9d87b805776c185af32ddc03ec9aa44 | 5cdaff662ccbdf0d6a17f9796352c923bde1f590 | /mysql/zsgc.py | d92dafe50f13e67a702f88de33608db90c4d4200 | [] | no_license | renxiaoqi/JingDong | bcf7fc418d6c9adcc23cf39b048d929c9f01995b | 8b9fb0dab6ea26dec55472bb750258a827aba74b | refs/heads/master | 2020-09-29T09:44:25.482051 | 2019-12-10T03:19:51 | 2019-12-10T03:19:51 | 227,012,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | import pymysql
class Util:
__conn = None
__cursor = None
# 创建连接
@classmethod
def __get_conn(cls):
if cls.__conn is None:
cls.__conn = pymysql.connect(host="127.0.0.1",
user="root",
password="root",
... | [
"renxiaoqi1222@163.com"
] | renxiaoqi1222@163.com |
497b09aec342a86f55cb820435ec603f2aab872a | 07fbdae51275b4bab2074524fc4c1ae58ac53d08 | /List's/Lists Basics/Exercise/Solutions/10. Bread Factory.py | ef0ba277e0e12230313d1b24fb7eeaa1489595d6 | [] | no_license | rimisarK-blue/Python-Fundamental-knowledge | 85c2afa4401f848c9919f672c7fa3d54a43e761f | a182fb1c7c3ce11f9e26ce0afefe5c2069d70e8d | refs/heads/main | 2023-03-09T02:08:34.411768 | 2021-02-15T20:19:52 | 2021-02-15T20:19:52 | 326,009,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py |
events = input().split('|')
energy = 100
coins = 100
good_day = True
for com in events:
command, value = com.split('-')
value = int(value)
if command == 'rest':
if energy == 100:
print("You gained 0 energy.")
print(f"Current energy: 100.")
elif energy + value >... | [
"rimisark92@gmail.com"
] | rimisark92@gmail.com |
a439ef9d883b1ab7920ba877d8585795143600ec | c4d3466458d386dda17ab382ec5ae9dd5f3a7405 | /Graph/bfs/bfs.py | 8bf1415f743ef6c976a13994f3e1e296e2dde6ff | [] | no_license | faramarz-hosseini/Algorithms | 1db8dcc07f4c6baf7c22d525d7f1a46dc2311d16 | c51d7a48ac34f1433074295003609a451a2803e4 | refs/heads/master | 2023-03-14T19:53:25.712288 | 2021-03-20T13:00:39 | 2021-03-20T13:00:39 | 349,725,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | n = int(input())
m = int(input())
edges = []
q_nums = []
for _ in range(m):
edges.append(list(map(int, input().split())))
q = int(input())
for _ in range(q):
q_nums.append(list(map(int, input().split())))
class Graph:
def __init__(self, nodes_count, edges_count, edges):
self.nodes_count = nodes_co... | [
"moein.mirzaei@cafebazaar.ir"
] | moein.mirzaei@cafebazaar.ir |
28768b939d37f3492aab2f6c7d61c2166d775a84 | 89aa0190f9e902b9a7990f90d584e9f290f77f66 | /Finished Game/Game5/gameDemo.py | aa7514098accbe0ddf5425cf039a922d04112513 | [] | no_license | ElvedinDzihanovic/BluBlu | d88a12f666313268876345a7c40eb192c3c8d1ae | b4491a6b8ffacaf3ab53f7f2ff7ee8beb43372e5 | refs/heads/master | 2020-04-28T19:40:14.054412 | 2019-04-11T14:29:29 | 2019-04-11T14:29:29 | 175,518,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,043 | py | import sys
#Change the following line
sys.path.append('opencv\build\python\2.7')
import numpy as np
import cv2
import socket
import time
UDP_IP = "127.0.0.1"
UDP_PORT = 5065
print "UDP target IP:", UDP_IP
print "UDP target port:", UDP_PORT
#print "message:", MESSAGE
sock = socket.socket(socket.AF_INET, # Internet... | [
"elvedin.dzihanovic@edu.fit.ba"
] | elvedin.dzihanovic@edu.fit.ba |
462e7fa139213f3626fb0387c7ce113c72553c75 | 520ee398e5b1c24a44c62d639679b230afbba2b5 | /problem2.py | 7d690068dfe209030ebebb962ca9732e5d2c4700 | [] | no_license | HydroZA/Project_Euler | 1603e938552ff137b49f087e9299203fba51abc8 | 75c946d1e47fd583feebcfa0b8e4327793e6783a | refs/heads/master | 2020-12-23T21:50:20.261339 | 2020-01-30T19:19:19 | 2020-01-30T19:19:19 | 237,286,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | #Problem 2
#Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:
#
#1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...
#
#By considering the terms in the Fibonacci sequence whose values do not exceed four million, find the sum of the even-... | [
"jmslegge0@gmail.com"
] | jmslegge0@gmail.com |
ae5f8fa2f0055b22974ed3c8865abea3b4050980 | 1306fad75658a9f83320243b64ffd570586007a4 | /Files1.py | 1244d47863794ad56737d6237cc6a45f3a1891fb | [] | no_license | sandhya74/Python | 9447bad37bf18188ae2d20ab173591de18f90556 | e4a1bae1ee023dee89cb83a697483e087d6cad3d | refs/heads/master | 2023-07-06T17:42:20.457180 | 2021-08-12T10:21:22 | 2021-08-12T10:21:22 | 345,895,148 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | #f=open("demo.txt","a")
#f.write("hi")
#f.close()
#f=open("demo.txt","r")
#print(f.read())
"""
fp = open("demo.txt", "w")
for _ in range(10):
fp.write("Edureka is a platform for developing market based skills \n")
fp.close()
"""
"""
fp=open("demo.txt","a")
for _ in range(5):
fp.write("hello\n")
fp.close()
... | [
"sandhiya@5gindia.net"
] | sandhiya@5gindia.net |
1cbb9f01ef2201a746f5699df2bc97856ab41c02 | a79ba703611779e23d42c2be04cabd7c43a795fc | /log_utils/jlog.py | c0ab1d70f1e6f86e0479bbd4fa0e3737c8286fdb | [] | no_license | airjason13/pyTestMulticast | 89f19370c7f3716615ef26b192738f247afbf7b5 | a2c1e8c35c57abd03c77c1cd4808b37f7e33bab1 | refs/heads/main | 2023-05-03T22:45:42.247025 | 2021-05-27T10:16:53 | 2021-05-27T10:16:53 | 367,759,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import logging
import os
from logging.handlers import RotatingFileHandler
FORMAT = '%(asctime)s %(name)-12s %(levelname)s : %(message)s'
def logging_init(s, log_level):
try:
logging.basicConfig(level=log_level, format=FORMAT)
log = logging.getLogger(s)
os.makedirs('log', exist_ok=True)
... | [
"airjason13@gmail.com"
] | airjason13@gmail.com |
a7d31f45a48d70fbdb87cc92dfb0bfe2a7e60989 | 39de8c1d3dc87361d3d0048c02a50d6aacd0769d | /gallery/urls.py | 34165fc9eaa6311bf17f7514ce8034500ec0b1e2 | [] | no_license | yeamin21/ubayy | 9890360fd5aca869e9101e67c6fd3bcfc5244629 | d2c071bcc5df0d74917b95f8566c50178bad5425 | refs/heads/main | 2023-06-15T18:29:46.052379 | 2021-07-05T21:55:52 | 2021-07-05T21:55:52 | 370,625,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | from django.http.request import QueryDict
from django.urls import path
from .views import CreateProduct, ProductDetails, ProductList
app_name = 'gallery'
urlpatterns = [
path('', ProductList.as_view(), name='list'),
path('posts/<user>/', ProductList.as_view(), name='listself'),
path('product/<pk>/', Product... | [
"yeamin21@outlook.com"
] | yeamin21@outlook.com |
ea37b3a336b7925ac1e8dccd5a4d05ee874e0c6f | 88f0db4c85649101cc845a0afb71e428cc758c2f | /blog/app/migrations/0002_auto_20200517_1624.py | 897826f240e236c0e5adb8379b80dc1bac7e3e67 | [] | no_license | pmjabcd/django_blog | 1271732bb7458345339af7870466198592ca1578 | e64c6ae179d71beff7d692d4a04ec55f94473917 | refs/heads/master | 2023-07-18T22:48:14.890381 | 2020-05-17T08:59:06 | 2020-05-17T08:59:06 | 264,620,818 | 0 | 0 | null | 2021-09-22T19:13:03 | 2020-05-17T08:57:23 | Python | UTF-8 | Python | false | false | 542 | py | # Generated by Django 3.0.6 on 2020-05-17 07:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='article',
name='category',
fiel... | [
"wisely_@naver.com"
] | wisely_@naver.com |
f1fe68306f6c1e9af39926fb8fa2bb9d1638168f | 16df3eb8b83df2bfed7e0516e0d9385b39f47f89 | /walle/model/server.py | 42aa9e5673d408c54553103df20d67a88276d517 | [
"Apache-2.0"
] | permissive | fu648126437/walle-web | 3732545db54e7669659a899b4fca39aca397ea36 | a306f8212a2671411125f61a850b5869d315e283 | refs/heads/master | 2020-04-08T11:22:42.945715 | 2018-11-27T08:15:24 | 2018-11-27T08:15:24 | 159,303,729 | 2 | 0 | null | 2018-11-27T08:46:00 | 2018-11-27T08:45:59 | null | UTF-8 | Python | false | false | 3,816 | py | # -*- coding: utf-8 -*-
"""
walle-web
:copyright: © 2015-2019 walle-web.io
:created time: 2018-11-24 06:15:11
:author: wushuiyong@walle-web.io
"""
from datetime import datetime
from sqlalchemy import String, Integer, DateTime
from walle.model.database import SurrogatePK, db, Model
from walle.service.e... | [
"861459320@qq.com"
] | 861459320@qq.com |
7137d606dfc5163eb516e2df441af37841898baf | 4247840118d743435a9f6fe59020fc6c57a89c6a | /3.BAYES/bayes.py | d0e39a2032a691679b388a81f470dbe087cd4e1d | [] | no_license | TotallyFine/ML-In-Action | c65fb90fa7fa6fa47c5eb9cfbb6d97d9eccabff1 | 2a25efb3e9f2137049a17e97740a39b27770e6ec | refs/heads/master | 2020-03-22T20:10:26.041995 | 2018-07-12T03:37:45 | 2018-07-12T03:37:45 | 140,578,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,663 | py | # coding:utf-8
# 朴素贝叶斯方法进行分类,不会直接给出类别只会给出概率
# 在数据较少的情况下仍然有效,可以处理多类别问题
# 对输入数据的准备方式比较敏感
# 有大量特征时,绘制特征作用不大,此时使用直方图效果更好
# 如果每个特征需要N个样本,那么10个特征就需要N**10个样本
# 对于包含1000个特征的词汇表将需要N**1000个样本
# 所需要的样本数会随着特征数目增大而迅速增长
# 但是如果特征之间相互独立,那么样本数就可以减少到1000*N
# 当然实际中并不是这个样子的,而朴素贝叶斯就直接当成了独立
# 这也是朴素的原因,朴素贝叶斯的另一个假设是每个特征同等重要
# 这份代码实现的功能是根据一... | [
"2278650208@qq.com"
] | 2278650208@qq.com |
54babb345d5504b38949a02ef542b19c5f8afd30 | 3e8c7cc3c41a1db10f65800e999fa7976c4ee0d3 | /old/server/urls.py | eda76961fcf6f905fdbb81c6aca4c7cc6a50202a | [] | no_license | oryband/gov-review | 070313ab92de211ded2ff7a16ac4305274053a38 | c176d0e104d1303ec923447d883743ad18230d47 | refs/heads/master | 2021-01-19T18:33:17.941539 | 2016-01-18T19:48:22 | 2016-01-18T19:48:22 | 5,661,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | from django.conf.urls.defaults import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
url(r'^', include('gov_inspector.urls')),
# Uncomment the next line to enable the admin:
# url(r'^admin/', ... | [
"oryband@gmail.com"
] | oryband@gmail.com |
0e7737cccb51a80b11f78c5e07adef62d4d64487 | e61fa7205d3d01787ca0b3d512efa67a94c1105b | /Raspberry/config.py | ea6164f0af539e884b8d16c78501a11231c89ffb | [] | no_license | cyrilvincent/IoT | 4d95c6def9d4c822edee71d547e8b151846f26ee | d73a4d78501975beeeddc9fd90704f5982f66a66 | refs/heads/master | 2021-12-28T08:42:50.088460 | 2021-09-09T10:12:33 | 2021-09-09T10:12:33 | 215,299,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | mac="00:0E:EA:CF:47:5A"
usb="COM4"
usb2="COM5" | [
"contact@cyrilvincent.com"
] | contact@cyrilvincent.com |
a85ca73047ac8b70960d9f1fc9b2a54f698a1a3e | 3f2fb2e887194105919c75166615100d73bf6785 | /test.py | 574f73e29895537114fb4a1e0dd602879efc6ff2 | [
"MIT"
] | permissive | hermesfeet/summarize_text | 7007be904cadaff41621eec3d0d9e8ddae1d4ff4 | ce2d42f065f01a4ff5b16df5f0fa12cd3c9eeb3d | refs/heads/master | 2020-04-29T14:01:14.886436 | 2019-03-18T02:04:24 | 2019-03-18T02:04:24 | 176,184,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from textteaser.textteaser import TextTeaser
# article source: https://blogs.dropbox.com/developers/2015/03/limitations-of-the-get-method-in-http/
title = "Limitations of the GET method in HTTP"
text = "We spend a lot of time thinking about web API design, and we learn a lot ... | [
"hermesfeet@gmail.com"
] | hermesfeet@gmail.com |
d27208389d6ba8b4e8b86ffee2adb7a585b2ae5e | 15745463dda76d2f9419200aef24736521a07c1c | /src/descriptores.py | 981d3d460ffcdbdd4c53f5962d3efb4fbf2926db | [] | no_license | jjdenis/diagrama_caja | 7b27ae0e40bdb8901c4692aa34bc2c6db1af563d | dd31dbf629d91cd2997c4e39af5b8edf705c53af | refs/heads/master | 2020-05-23T05:07:24.401821 | 2017-03-15T07:37:56 | 2017-03-15T07:37:56 | 84,751,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
class Descriptors(object):
def __init__(self, valores):
self.maximo = max(valores)
self.ultimo = valores[-1]
valores = sorted(valores)
num_valores = len(valores)
self.media = sum(valores) / num_valores
index = int(... | [
"jjdenis@gmail.com"
] | jjdenis@gmail.com |
5e4e4b99d01da7a4993b8896434ad8b652c976f1 | 616f369bdd502396594e009781b45bcbf8968946 | /SwordToOffer/PrintList.py | 74aeeeade26632b7c9df584971f56f5f4945c751 | [] | no_license | ryan623555007/interview-python | f75b1f03cd067b879e3bf122711b9e380f129b2b | cedb03a43dc2e9cdd8a5077a7802d04caafe55b9 | refs/heads/master | 2020-03-23T22:05:57.051982 | 2018-07-27T21:30:16 | 2018-07-27T21:30:16 | 142,152,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | class ListNode:
def __init__(self, x=None):
self.val = x
self.next = None
class Solution:
def printList(self, listNode):
if not listNode:
return []
result = []
while listNode.next is not None:
result.extend([listNode.val])
listNode = l... | [
"623555007@qq.com"
] | 623555007@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.