blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4641686c6506d804e9db248b283213edfca6aad7 | 9dd81f05a180edb8a3fa74baba5debac7e4f34e6 | /1000-1999/1008.py | 06f5c3b3926538671967ac645c566eea02705d5c | [] | no_license | nowroo1/Baekjoon | 1a52f8bff9899e727d5821a0fb42df8562cb87e8 | 72abe129cbc4b5194c81ed037411066fc14a673f | refs/heads/master | 2022-06-07T22:48:09.709703 | 2020-05-04T07:08:32 | 2020-05-04T07:08:32 | 257,307,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | data = input()
a = data.split()
print(int(a[0]) / int(a[1])) | [
"nowroot@gmail.com"
] | nowroot@gmail.com |
e0d0ea404eae12c78c32454341edb61e6200ca9e | 342528613bdc6f9671bb33df47afad7fbf3d5812 | /multi-task-nn.py | b30443beb59646965549afd1d21c9ebbf68d2fcf | [] | no_license | yijunwang0805/demo-code | abccb85ba91fe63b55c53556a25065b8800bab28 | 530288629dc019274f4c9a985150b1631413e10a | refs/heads/main | 2023-06-13T23:03:25.865250 | 2021-07-08T23:46:42 | 2021-07-08T23:46:42 | 360,235,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,079 | py | class Data(Dataset):
def __init__(self, path, y):
super().__init__()
df = pd.read_csv(path, usecols=y, low_memory=False)
df = df[df.bert_feat.notna()].reset_index(drop=True)
feat_list = [torch.tensor(eval(x)) for x in df['bert_feat']]
self.x = torch.cat(feat_list).view(-1, 10... | [
"noreply@github.com"
] | yijunwang0805.noreply@github.com |
ba0a854554f2118533e2d9bf479fd6a3f41b1a20 | 60d7f3968102badbe41f50e70b9c7a570750d0c9 | /cap_5/listagem5_13.py | f131174b586520bbdf35642636ce2e46d3390d45 | [] | no_license | brunolevy06/python_initial | 73eb662cab6484c618c0e3ccabe262a0aed3c36d | c2c6d7f3ef64571556872caa1584b85fe22c71ed | refs/heads/master | 2020-03-18T12:40:05.869281 | 2018-08-02T00:25:07 | 2018-08-02T00:25:07 | 134,737,596 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | s=0
while True:
v=int(input("Digite um numero a somar ou 0 para sair: "))
if v == 0:
break
s = s + v
print(s)
| [
"brunolevy06@gmail.com"
] | brunolevy06@gmail.com |
d4c6e5f278e5277a02c573abaa15df4c3f4c6d46 | dab9b0cff33585c2a1575a715dd6e45c6f02020e | /exercises/17_serialization/task_17_2.py | 81877b670212014045df082f4bc61c2ab4f26ab4 | [] | no_license | notoriginalnik/pyneng-exe | 33f2beb7e5fa0667f4e5db7e23a7e8a66a17f3df | 3e790d63edfa788a86e3a3fbb6c53ff160a6f12a | refs/heads/master | 2020-12-14T11:00:48.596852 | 2020-01-19T10:11:05 | 2020-01-19T10:11:05 | 234,720,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,920 | py | # -*- coding: utf-8 -*-
'''
Задание 17.2
В этом задании нужно:
* взять содержимое нескольких файлов с выводом команды sh version
* распарсить вывод команды с помощью регулярных выражений и получить информацию об устройстве
* записать полученную информацию в файл в CSV формате
Для выполнения задания нужно создать две ... | [
"notoriginalnik@gmail.com"
] | notoriginalnik@gmail.com |
4c8d23a1bcd44f5db101d055f37b563c83ea8fe2 | f7b1bd000d9483343f915f057ac8e36a2de78334 | /experiment-2/SimpleRNN.py | b23476106218300f82144281ddd8cc7f526ed469 | [] | no_license | spencergritton/Time-Series-Predictions | 511ded04f88e296eb4d30b98f58ac29c9d7e4668 | 76dcc7c61cd61b7c231796abee6ea5b3c4f870d8 | refs/heads/master | 2021-09-28T06:01:57.439727 | 2020-05-13T04:07:56 | 2020-05-13T04:07:56 | 251,520,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,903 | py | import os
import os.path
import numpy as np
from matplotlib import pyplot as plt
import matplotlib.patches as mpatches
import pickle
import time
import random
import pandas as pd
import tensorflow as tf
from tensorflow.keras.models import Sequential, Model
from tensorflow.keras.layers import SimpleRNN, Dense, Bidirect... | [
"SpencerGritton@Spencers-MBP.lan"
] | SpencerGritton@Spencers-MBP.lan |
7a8971d7ff7f1384a23050c45c163735a7b10f95 | e299e9657accccd78dae8217f9fc41b561251d85 | /labfinal/settings.py | 57584dd2e5e725c046b72f458149329657b4ea8c | [] | no_license | tania18115934/lab_Final | 4c36c963ddc2650a78794a50baf015149771b177 | 81ece133f70ffec7321b357b9670d3b12e17aeb3 | refs/heads/main | 2023-04-03T00:04:24.799211 | 2021-04-06T13:09:57 | 2021-04-06T13:09:57 | 355,179,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,354 | py | """
Django settings for labfinal project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
... | [
"noreply@github.com"
] | tania18115934.noreply@github.com |
a9689e5978162a2f6b5f7482e71582c8d7269d64 | d826e977fb969cd6b94f9d70c3721a62cdc29c84 | /tests/test_variational.py | 40dca7f96722aae5b8eb52b6b7e8fc5d656ef75b | [
"Apache-2.0"
] | permissive | fonnesbeck/pymc4 | c2101beb57124bca6c8241bb994fb356ba3797d6 | 0d69691c8350a99096a278250f2cbcb05497583a | refs/heads/master | 2021-06-27T02:30:16.742127 | 2020-07-29T16:03:14 | 2020-07-29T16:03:14 | 162,760,291 | 4 | 2 | Apache-2.0 | 2018-12-21T21:45:40 | 2018-12-21T21:45:39 | null | UTF-8 | Python | false | false | 3,392 | py | import pytest
import pymc4 as pm
import numpy as np
@pytest.fixture(scope="function")
def conjugate_normal_model():
unknown_mean = -5
known_sigma = 3
data_points = 1000
data = np.random.normal(unknown_mean, known_sigma, size=data_points)
prior_mean = 4
prior_sigma = 2
# References - http:... | [
"noreply@github.com"
] | fonnesbeck.noreply@github.com |
7f418a52a6716871d15b6b8f3ba89cbaa3cd4da8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03138/s702162180.py | 23360336ae7fa25d7e78a6efe78b883d1ec939af | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | import os, sys, re, math
N,K = list(map(int,input().split(' ')))
A = list(map(int,input().split(' ')))
d = math.ceil(math.log2(1e+12))
ones = [0 for _ in range(d)]
for a in A:
s = bin(a)[::-1]
for i in range(len(s)-2):
if s[i] == '1':
ones[i] += 1
X = 0
for di in range(d-1,-1,-1):
if... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
11d12a9d4bace367060d7c72eb3d4cc0218d14d8 | 0587b15b6dda8ca4ed24295d052450d5c350b543 | /etl/etl.py | ec90cc3303402ee559b336e3d5127575046454a0 | [] | no_license | MaxyMoos/exercism_python | a6518ade10c6db7008e9822d69f5b41e9efec56d | ee50f8bdb289e32a03c35e08a99264ca272dc930 | refs/heads/master | 2016-08-12T17:13:42.288135 | 2016-01-19T22:10:43 | 2016-01-19T22:10:43 | 49,986,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | def transform(old):
new = {}
for key in old.keys():
values = old[key]
for singleValue in values:
new[singleValue.lower()] = key
return new | [
"ohouiduspam@gmail.com"
] | ohouiduspam@gmail.com |
9ec342d11277ab3c3daa4867c1bb011eb93f1655 | fc529d1d801d695150a6ebcd3e2d548ffa8d738d | /tests/test_parser.py | 86ba3dbec713ac04cd077e2304299e0d3fd5199a | [] | permissive | JeanExtreme002/Virtual-Assistant | 1db080cf3026a64918c0ebadd1727c29bb46205e | 1444af964b21c6d043b1b8ccb23f34999c5fd81a | refs/heads/master | 2021-07-25T05:54:58.886570 | 2021-07-09T05:35:31 | 2021-07-09T05:35:31 | 219,252,394 | 7 | 2 | BSD-3-Clause | 2020-09-22T16:01:20 | 2019-11-03T04:41:47 | Python | UTF-8 | Python | false | false | 1,510 | py | import os, sys, util
sys.path.append(os.getcwd())
from src.assistant.exec.commandList import CommandList
from src.assistant.exec.parser import VoiceCommandParser
command_list = CommandList("EN-US")
parser = VoiceCommandParser(command_list)
def test_parse_system_command():
command_instance = parser.parse("repeat ... | [
"jeangamerextreme@gmail.com"
] | jeangamerextreme@gmail.com |
ba6e9b6ae615cd10419af46c1815aecd84a3b835 | 44a3a5f5cfff9a63c9e77df12589ec6e2a828f43 | /massspam.py | 98ad54dced3fb1a20588435ceebb15f2b5c0666a | [] | no_license | D4-dev/qr-code-grabber | e96dd957114c486cabe567abd3a8cc1c7df25704 | 0c2a25eefbfd96c97b7bb6f002268d12a052d559 | refs/heads/main | 2023-05-01T12:04:46.305065 | 2021-05-12T22:09:29 | 2021-05-12T22:09:29 | 366,865,777 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | import discord
import random
import os
token = input('Entrer votre token > ')
guild = input('Entrer l id du serveur > ')
client = discord.Client(status=discord.Status.online)
sentList = []
@client.event
async def on_ready():
print("Je suis connecté sur le compte {0.user}".format(client))
print("... | [
"noreply@github.com"
] | D4-dev.noreply@github.com |
3aa7c18611605387c74ed66a544c49a9bc6ee2e2 | 52e0aff2bcbb27d4f193a557ea51321fa102cc4c | /shapechooser.py | a98e7086ec1856554a7ce242fa1ad5d1196d4021 | [] | no_license | ramenkup/FunctionsandLoops | 11cfb4767fa47cf711d50d8ab20baf72e7c5f4d4 | 350358452b6f8006efea644e93f908ac502cee4a | refs/heads/master | 2021-01-10T05:00:46.669592 | 2016-01-13T20:41:55 | 2016-01-13T20:41:55 | 49,597,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | '''
Author: Spencer Klinge
Date: 9-24-2015
Class: ISTA 130
Section Leader: Will Zandler
shape_chooser.py
Description:
This program promts the user to input the number of sides, color, and side length of a polygon
it then draws that polygon with the givin characteristics using the turtle class.
'''
import turtle
'... | [
"sklinge@email.arizona.edu"
] | sklinge@email.arizona.edu |
149b691ee439a8d0a0d99a8d0e4ac6254fc50945 | 2cc6cf6e9d91799cbd9ac02f2771f7c9f95776bd | /test13.py | ce7a89c8373a7740d97c943989fa75b86726a611 | [] | no_license | Master-sum/python_project | f938aa9f27e040c68c11766e1358dd7fff231b22 | 63036d1d80cd645d8080c8fee5bb30f241ab9914 | refs/heads/master | 2022-04-22T04:45:21.263195 | 2020-04-11T11:14:54 | 2020-04-11T11:14:54 | 254,782,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | def change (aint,alst):
aint = 0
alst[0] = 0
alst.append(4)
print('aint:',aint)
print('alst:',alst)
aint = 3
alst = [1,2,3]
print('1',aint)
print('1',alst)
change(aint,alst)
print('3',aint)
print('3',alst) | [
"285957109@qq.com"
] | 285957109@qq.com |
fdec30499e52218bc3b96a0bca7f156c36926dd4 | 07b8e3073574d69c9e6f5a269e01a1bf1500e5fa | /modeling_experiments/sklearn/sampled_measure.py | 564e10b12193e2a42fe9956a8e734afa3a45d5f0 | [] | no_license | sinaghadermarzi/XRRpred_experiments | 8642e45eecd67d57a9fb28e75be3dfe799da130b | 9f437fb803e5d8f9fd340c85da125fe9175374bb | refs/heads/master | 2022-04-08T12:16:38.466033 | 2020-03-24T17:25:41 | 2020-03-24T17:25:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,617 | py | import numpy
import pandas
import seaborn
import random
from scipy.stats import pearsonr
from scipy.stats import spearmanr
from sklearn.metrics import mean_absolute_error
from sklearn.metrics import mean_squared_error
import sys
from scipy.stats import ttest_ind
from matplotlib import pyplot
import itertools
def pvalf... | [
"sina.ghadermarzi@gmail.com"
] | sina.ghadermarzi@gmail.com |
860d571cc8bf8c01768bebd64e77899d3af20bd8 | f7d99b97d91aefec2020e55134e725bfd9eda30f | /dice.py | dd398512a205e4377aefa7c5d08d65f381da41d8 | [] | no_license | Marceloprime/Project-1-Dice-rolling | 4773aa775e0040b64a0065562fc47641ab823914 | ea94ad0c273cd26e9d4a68904abb6504f9a47d71 | refs/heads/main | 2023-04-11T12:26:19.564894 | 2021-04-27T19:07:05 | 2021-04-27T19:07:05 | 362,222,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | import random
number_face = random.randint(1,6)
if number_face == 1:
print("---------------")
print("- -")
print("- * -")
print("- -")
print("---------------")
elif number_face == 2:
print("---------------")
print("- * -")
print("- ... | [
"marceloreis7777@gmail.com"
] | marceloreis7777@gmail.com |
80eafed209979f5d08ad6febeacb34c38e271d38 | cbc7db560a5662aa5fcbc475969daffc62be53d4 | /python/plugins/sextante/modeler/ModelerDialog.py | b875a5766971eb1e915aeda418d1db68f1dd4b93 | [] | no_license | jacklibj/readqgis | 8ddbd6364fdd318eb31a2806c65785d4518b54f5 | 798e055f307a57e80eeb95e800fac85ec999e7c7 | refs/heads/master | 2021-01-16T18:30:12.693253 | 2013-04-01T15:01:17 | 2013-04-01T15:01:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,279 | py | # -*- coding: utf-8 -*-
"""
***************************************************************************
ModelerDialog.py
---------------------
Date : August 2012
Copyright : (C) 2012 by Victor Olaya
Email : volayaf at gmail dot com
*************************... | [
"worinco@163.com"
] | worinco@163.com |
d0988eee2d4b2860874096b6e88374cb1f25e8ec | 478450bd45f37c333665ed0594816d950bb5602c | /Ecommerce/Ecommerce/urls.py | 009882dc2913169af90201025ffcb0b280a66254 | [] | no_license | ahmed-shamim/Web | fd2149e91f7923d836f353cbe70975aa2b61b026 | c345bad1c9fd119a461a406ac9617abd54d73a6b | refs/heads/master | 2022-12-29T04:06:08.773101 | 2020-10-17T17:31:22 | 2020-10-17T17:31:22 | 304,917,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py |
from django.contrib import admin
from django.urls import path,include
#To show media FILES
from django.conf import settings
from django.contrib.staticfiles.urls import static, staticfiles_urlpatterns
urlpatterns = [
path('admin/', admin.site.urls),
path('',include('App_Shop.urls')),
path('account/',includ... | [
"cse.shamimahmed@gmail.com"
] | cse.shamimahmed@gmail.com |
d31d5d7cef0600e1d5a74e0cefa7406c7f20d598 | 9d41f84c0a7a9c76f49bcfa2da5a3d362494239e | /leetcode/026_Remove_Duplicates_From_Sorted_Array.py | aff44d66d6fd04843e5bd2eb17d4f2fed1930c86 | [] | no_license | musedy/LeetCode | 9302d5e1bc6326ba63ad0bb12a9b79c2201baf54 | 7a33b026ed913a40b193ebd648d6b7f2e2938d0c | refs/heads/master | 2020-08-12T18:43:04.743979 | 2019-11-23T17:20:44 | 2019-11-23T17:20:44 | 214,821,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | class Solution(object):
def removeDuplicates(self, nums):
"""
:type nums: List(int)
:rtype: int
"""
if len(nums) <= 1:
return len(nums)
count = 0
for i in range(1, len(nums)):
if nums[count] != nums[i]:
count += 1
... | [
"charles09015@gmail.com"
] | charles09015@gmail.com |
aeb8b2fe9095164e8fa12451d0d10e1a784add85 | 651a296c8f45b5799781fd78a6b5329effe702a0 | /subset/comp_rank_grlex.py | 0d203ef0c529c7bf4b41b524004553b9408e4928 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | #!/usr/bin/env python
def comp_rank_grlex ( kc, xc ):
#*****************************************************************************80
#
## COMP_RANK_GRLEX computes the graded lexicographic rank of a composition.
#
# Discussion:
#
# The graded lexicographic ordering is used, over all KC-compositions
# for NC =... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
efdd83f89865011b36433b262e2cd99fe684ad1c | 6c10c6e229014dc3bf14efaec2ea8bf07c406752 | /AILearning/OptimationDeepLearning/MinibatchSGD.py | e41b377b4f3ba2829d2a1b4188d25f78bd57522d | [] | no_license | GuyRobot/AIPythonExamples | e59c6edb355d9cadee2b3f19a087b1b656956262 | 4acdd0d4966e31a616910554bc075b641aa152df | refs/heads/master | 2021-05-21T13:05:49.615593 | 2021-02-28T06:41:04 | 2021-02-28T06:41:04 | 252,662,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,465 | py | from d2l import AllDeepLearning as d2l
from mxnet import autograd, gluon, init, nd
from mxnet.gluon import nn
import numpy as np
"""
Mini batches
w←w−η_t*g_t
where gt=∂_wf(x_t,w)
We can increase the computational efficiency of this operation by
applying it to a minibatch of observations at a time. That ... | [
"bluexker@gmail.com"
] | bluexker@gmail.com |
917f1e4058d8ddec0274a5dd448fc901123da679 | e1f53cb481f2b6ea2ac3ee53d0251c5d9ea782e0 | /src/pyaid/xml/XMLConfigParser.py | 8b3e6cb5d6bcf0235329fc8e3052b949a29c32ed | [] | no_license | hannahp/PyAid | 8771ee35c2fdf9503e68e808dc0028e885e68158 | b9562a954552334fab16c32a6b8285ea3e1571e0 | refs/heads/master | 2021-01-22T14:02:26.068735 | 2014-01-29T23:33:33 | 2014-01-29T23:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,164 | py | # XMLConfigParser.py
# (C)2011
# Scott Ernst
import re
import xml.dom.minidom as minidom
import codecs
from pyaid.xml.ConfigData import ConfigData
#___________________________________________________________________________________________________ XMLConfigParser
class XMLConfigParser(object):
"""XMLConfigParser.... | [
"swernst@gmail.com"
] | swernst@gmail.com |
1c393dc8228d6c82c2c480595b1099e1ecd90e27 | f87b0af8029c1172654ee58f818b1d78e2a9b5da | /classes.py | 874ae60134cdd9793687917b05680f28a00d96d3 | [] | no_license | sd19spring/Proj-Gutenberg-TextMining | 0804e4f74503feb8ae46911be0cd9961a58cf99c | 7931d481d3adc685a74abed40baaf94e822cfeb9 | refs/heads/master | 2020-04-26T05:33:23.484994 | 2019-05-08T18:13:15 | 2019-05-08T18:13:15 | 173,338,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,046 | py | """
This stores the classes used for the text mining project.
"""
import pickle
import os
import string
import requests
import math
class Error(Exception):
"""Base class for other exceptions"""
pass
class InvalidBookError(Error):
"""Raised when the book could not be successfully acquired"""
pass
... | [
"dmazza@olin.edu"
] | dmazza@olin.edu |
5a2a55a993186bacf8fed7bada23f6ab0264b6b5 | 8e55b122aa7b18b1734aafc3699b477c1e85cb91 | /pippy/fx/experimental/refinement_types.py | 665c9d0d651b4ed929e974d822a447809f3d26dd | [
"BSD-3-Clause"
] | permissive | yunxing/tau | 0a7a641db49da795de70e8db9748d93205be31ac | c679248814a76c915e651806f1b4f30a3de9fe92 | refs/heads/main | 2023-03-17T01:02:23.222622 | 2022-09-30T23:18:25 | 2022-09-30T23:18:25 | 543,822,164 | 0 | 0 | BSD-3-Clause | 2022-09-30T23:13:57 | 2022-09-30T23:13:56 | null | UTF-8 | Python | false | false | 457 | py | # Copyright (c) Meta Platforms, Inc. and affiliates
class Equality:
def __init__(self, lhs, rhs):
self.lhs = lhs
self.rhs = rhs
def __str__(self):
return f'{self.lhs} = {self.rhs}'
def __repr__(self):
return f'{self.lhs} = {self.rhs}'
def __eq__(self, other):
i... | [
"noreply@github.com"
] | yunxing.noreply@github.com |
8c0a4f5b85c510d63ce5695baafd7aac77604f94 | 3d6bb3df9ca1d0de6f749b927531de0790aa2e1d | /compare_SV_groups_to_trees.py | 5927663662c3f71b3728d89b37c671512184bf25 | [] | no_license | standardgalactic/kuhner-python | da1d66a6d638a9a379ba6bae2affdf151f8c27c5 | 30b73554cc8bc9d532c8108b34dd1a056596fec7 | refs/heads/master | 2023-07-07T04:18:30.634268 | 2020-04-06T04:37:48 | 2020-04-06T04:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,128 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 4 12:43:41 2018
@author: Lucian
"""
from __future__ import division
from os import walk
from os import path
from os import readlink
from os import mkdir
from os.path import isfile
from copy import deepcopy
import numpy
import math
import matplotlib.pyplot as plt
import... | [
"lpsmith@uw.edu"
] | lpsmith@uw.edu |
e01a98187650ed7041432510adc9b93780662152 | c28b1a3e3ac6092473399ecec641ba4d2df6ea78 | /files.py | 2090a7e72479cf8d16f770ba4e647305c0c7dc88 | [] | no_license | walak/cloud-hamster | f60b355fbc079d69a79ea9a5c0dc7697af12477c | a62c5c598d0603aba5514b41e70b65c8e974855a | refs/heads/master | 2021-10-26T02:33:31.350385 | 2019-04-09T20:47:30 | 2019-04-09T20:47:30 | 104,904,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | import random
import string
from datetime import datetime
from os.path import join
from config import get_config
from base64 import b64encode
def get_date_and_time():
return datetime.today().strftime('%Y%m%d%H%M%S')
def str_to_base64(s):
encoded = s.encode('utf-8')
return b64encode(encoded).decode('utf... | [
"feniksy@gmail.com"
] | feniksy@gmail.com |
9b875b0f2099e0bfd6817014a1288c30d4e9b0be | c4ce3e9115cd393eca4152dadf0178ab813c7851 | /13.자연어 처리 기술-16T/course/nlp/applications/named_entity_recognition/tf_train.py | 70ef05e7ed576081df65a147faad777a7a78158d | [] | no_license | ckiekim/TIL | 2314cbfd304d60240ece879a0e405ec4dd73e386 | bc77e2c9e8d10757ee07c6c6c4d3c08f8539d376 | refs/heads/master | 2023-02-20T16:59:54.805208 | 2023-02-08T09:00:49 | 2023-02-08T09:00:49 | 188,774,191 | 0 | 2 | null | 2019-05-27T05:28:57 | 2019-05-27T05:05:51 | null | UTF-8 | Python | false | false | 12,606 | py | """
Named Entity Recognition
Author : Sangkeun Jung (2017)
- using Tensorflow
"""
import sys, os, inspect
# add common to path
from pathlib import Path
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
common_path = str(Path(currentdir).parent.parent)
sys.pat... | [
"ckiekim@naver.com"
] | ckiekim@naver.com |
bb7f9cb32bb95cb1b3e534b8c1116eaa9e52fe8e | 05094cf20b13e5ae3973419ae6cba7260ec17b15 | /Missing number in array.py | de2e9d31ceb2cf4efa09b167b5c97b32d64188df | [] | no_license | himanshu2801/Geeksforgeeks | 456f6efbd3d9088841559b4a042ac92a044b08f0 | 861ba6a45b339455caf78275ab3864dd7dbe48e8 | refs/heads/master | 2023-01-22T20:15:15.186591 | 2020-11-24T17:26:20 | 2020-11-24T17:26:20 | 295,760,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """
Given an array C of size N-1 and given that there are numbers from 1 to N with one element missing, the missing number is to be found.
Input:
The first line of input contains an integer T denoting the number of test cases. For each test case first line contains N(size of array). The subsequent line contains N-1 ar... | [
"noreply@github.com"
] | himanshu2801.noreply@github.com |
ac5d761e500af3b7e0d2471519b3472941f9d66c | 8452be5d9ff830adafe108d0e29a5a22f6867cce | /github helper code/zillow scraper function/zillow_functions.py | f373216cf00934f017693883496feeff246ca034 | [] | no_license | 10brink/Zillow-home-value-prediction | 13017eab8abe6295582ba5533cabebc694266b80 | cbf6ae50d02a1d1ed9740242182a782af6385961 | refs/heads/master | 2020-03-17T19:46:15.356523 | 2018-06-05T21:34:20 | 2018-06-05T21:34:20 | 133,877,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,452 | py | # -*- coding: utf-8 -*-
# Zillow scraper functions, these are sourced at the top of zillow_runfile.py
import re as re
import time
import zipcode
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expe... | [
"noreply@github.com"
] | 10brink.noreply@github.com |
dc12baf9f5cae66760d0253bcd0635193132fde6 | 7a9fa92afe646126d806b4759e0c36e472228b4d | /portfolium/settings/__init__.py | d42ea04490fe4ab639135212bce042fa4b28d005 | [] | no_license | ChangeUs/cloudfolio | b55f22b2bdb3921406c6b655ae896c448fb0f50e | 4dc35696b2aa9cd57245809cdc45a5e6eb8c6fb9 | refs/heads/development | 2021-08-28T10:43:41.777127 | 2017-12-12T01:05:42 | 2017-12-12T01:05:42 | 105,460,405 | 0 | 0 | null | 2017-12-12T01:05:43 | 2017-10-01T17:35:12 | CSS | UTF-8 | Python | false | false | 172 | py | import os
from .base import *
ENV_TYPE = os.getenv('RUNNING_ENV', 'development')
if ENV_TYPE == 'production':
from .production import *
else:
from .local import * | [
"hyunseo@Hyunui-MacBook-Pro.local"
] | hyunseo@Hyunui-MacBook-Pro.local |
3eb909695b4ab4c616287977a20c6ad8ca8554ae | 455edca1438baebd6c541b8f61ad5a09a1b3a651 | /Python/lab5/p5.py | 8f83805b3cbde2f3316d69c7db54d0d2e6d30461 | [] | no_license | yu-yang/project | b815ed654698ded1de9cd5a2724126fa8a49987e | 4b4a14ed8752094f1eb63e50f092d7f83a70c829 | refs/heads/master | 2020-05-16T21:37:49.340614 | 2015-04-06T05:51:26 | 2015-04-06T05:51:26 | 29,277,110 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | import httplib
import base64
username = 'bob'
password = 'password'
conn = httplib.HTTPConnection("192.168.14.50", 80)
authen = base64.encodestring("%s:%s" % (username, password))
headers = {"Authorization" : "Basic %s" % authen}
conn.request("GET", "/lab05/prob05/flag.txt", None, headers)
response = conn.getresp... | [
"yuyang753@gmail.com"
] | yuyang753@gmail.com |
ca60ffe0443bb07e494632fa5f39f6372218f4ec | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/125/usersdata/172/29042/submittedfiles/ap1.py | 683a565ff52ea8deb8c87ed40b155d4040448259 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # -*- coding: utf-8 -*-
a=float(input('digite o 1° número:'))
b=float(input('digite o 2° número:'))
c=float(input('digite o 3° número:'))
if a<=b and a<=c:
print(a)
if b<=c:
print(b)
print(c)
else :
print(c)
print(b)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
296cd23ace5ee0ee5eee95ad54b0675b557f5a7e | ee503635b867e8b9e3da526a0fe4f611f694ebdc | /src/python/generators/file_types.py | 821098090bafaf2457847c2aa702e8e38fe6bc29 | [
"MIT"
] | permissive | ncsa/MayomicsVC | 1aa8da361e9209d655fd5085cdb253e2c9788171 | 4611896ea1bb50df50120752712e8d4b32a6d023 | refs/heads/master | 2021-06-05T00:12:39.999846 | 2019-05-17T21:35:25 | 2019-05-17T21:35:25 | 105,283,002 | 17 | 12 | MIT | 2019-05-17T18:31:59 | 2017-09-29T14:41:15 | Shell | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python3
class FileType:
def __init__(self, name, input_variable_name, output_variable_name):
self.name = name
self.input_variable_name = input_variable_name
self.output_variable_name = output_variable_name
FASTQ = FileType(name="fastq", input_variable_name="InputReads", ou... | [
"jacobrh91@gmail.com"
] | jacobrh91@gmail.com |
215d249cab367cfe44efe93e0a627c0fb97aa3c5 | 3db280b5821c4799cd571adbdc476f760dfd3461 | /tree.py | 85c2add686f723c31fed7173f163bb72b380afc3 | [] | no_license | choltz95/lipo-b--annealing | 1f862323f8acc1145b76be58fdfb0b8119c3acc4 | 01478fdc46fe2f9059d13c46e5a0f02c2eb26992 | refs/heads/main | 2023-01-06T15:09:15.113034 | 2020-11-11T20:26:21 | 2020-11-11T20:26:21 | 304,671,997 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | """
Simple tree object
"""
class Node(object):
def __init__(self, id, level=0, cost=0.0, fname="", children = []):
self.id = id
self.cost = cost
self.children = children
self.level = level
self.fname = ""
def insert(self, parentid, new_id, cost=0.0, fname="",):
i... | [
"chesterholtz@gmail.com"
] | chesterholtz@gmail.com |
7ccbfdbf9eb671918f8f2d2beca9b69a75d10e8d | a3e1e797acb16bf4d1e298271545927df8eaeae7 | /tests/unit/services/storage/test_base.py | 81a39a0af33497a1293be5621915105e9b1b977e | [
"MIT"
] | permissive | totem/cluster-deployer | 481b11b2953a3e195c46762659c97fceca75945a | 75160f051250fd782af42af472f965d50f721ff5 | refs/heads/develop | 2022-10-12T09:09:30.417412 | 2017-06-30T22:32:56 | 2017-06-30T22:32:56 | 23,778,754 | 0 | 2 | MIT | 2022-09-13T21:48:32 | 2014-09-08T04:03:06 | Python | UTF-8 | Python | false | false | 2,592 | py | import datetime
from freezegun import freeze_time
from mock import MagicMock
from nose.tools import raises
import pytz
from deployer.services.storage.base import AbstractStore
from tests.helper import dict_compare
NOW = datetime.datetime(2022, 01, 01, tzinfo=pytz.UTC)
NOW_NOTZ = datetime.datetime(2022, 01, 01)
clas... | [
"sukrit007@gmail.com"
] | sukrit007@gmail.com |
cd7f37a9b936647ac196bbd22cf1e6cb455cb8de | acec0a3d2220bbd0531ab44159e20bf28a9dd71b | /src/moviesapp/migrations/0001_initial.py | fcd20ded5a642116b0df6b114cd73f280a471420 | [] | no_license | desecho/movies | ad48c262f836a65902e7135fe7d3e3dde9e5c69c | 04141e4cfc885ba6c53328e1222980b85d9828ef | refs/heads/master | 2023-06-22T23:06:53.114491 | 2023-06-10T14:20:55 | 2023-06-10T14:21:35 | 8,838,721 | 14 | 4 | null | 2022-10-01T15:00:05 | 2013-03-17T18:00:49 | Python | UTF-8 | Python | false | false | 8,907 | py | import annoying.fields
import django.core.validators
import django.utils.timezone
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("auth", "0001_initial"),
]
operations = [
migrations.CreateModel(
... | [
"desecho@gmail.com"
] | desecho@gmail.com |
d77d483b8babc4a5cb4790342305cd115701d5d1 | f9ec463d7604f44266a203de633c0928073f70b7 | /WordPaper0.1/WordPaper/urls.py | 9de5641f088c5d0cdd7f7c343c56dae8217bdfb4 | [] | no_license | bowen1993/wordpaper | 2bb7eeefc033787e17793eb6ddcf723bd5f13221 | a95469cee1205080088c3ec05d9f17641c250990 | refs/heads/master | 2021-05-28T19:21:55.544620 | 2015-05-23T03:15:16 | 2015-05-23T03:15:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'WordPaper.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^$', include('accounts.urls')),
url(r'^admin/', include(admin.site.urls))... | [
"gbwlovehp@gmail.com"
] | gbwlovehp@gmail.com |
0999d78cf0dd1694e019c4eb4b3853bf826fa935 | f2772fe2a3578e7d0027b00e6b6092d7bda8bc71 | /venv/Scripts/pip-script.py | b435512a00974bd07d371af2499731af2328d3b3 | [] | no_license | Yurchezz/RegExPostPython | 3235c9f8629525a7e0ee877a62f65f4bdc254083 | dc5dd8af29017ccc647110085fab2bac6eac3be4 | refs/heads/master | 2020-05-31T12:19:00.811143 | 2019-06-04T20:58:33 | 2019-06-04T20:58:33 | 190,277,867 | 0 | 0 | null | null | null | null | KOI8-R | Python | false | false | 412 | py | #!C:\мско\WinterSchool\RegExPython\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"urik.voevidka@gmail.com"
] | urik.voevidka@gmail.com |
4d51fff98a6c22973d1cfa92ea37e67458c7b2d6 | 31e49c2c3ec7433406a7105f1484cff2361f3055 | /HeadFirstPython/chapter9/simple_httpd.py | ef9c9a0f15588dfe67e0d6d5c1dd5998844b0d85 | [] | no_license | Wenfeng-GAO/A-Byte-of-Python | 001f4b0b360f44a442aa4fddc9bcc45a41c19445 | e0ac1309f1fabc508b8f5fdcce2508195c6b107e | refs/heads/master | 2020-05-30T08:34:32.203807 | 2015-01-16T19:15:31 | 2015-01-16T19:15:31 | 28,546,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | import BaseHTTPServer
import CGIHTTPServer
port = 8000
httpd = BaseHTTPServer.HTTPServer(('', port), CGIHTTPServer.CGIHTTPRequestHandler)
print("Starting simple_httpd on port: " + str(httpd.server_port))
httpd.serve_forever()
| [
"elricfeng@gmail.com"
] | elricfeng@gmail.com |
0ad4c3e122354fbf1382259f75e16b5f65bae0b2 | 4de9808c2d362a83801365dc7ea83e44a4f2d77e | /Computación/SAR/P1/pig_latin.py | 2a538f84a8c11c387a781baf770d42d9413d669e | [] | no_license | GSpako/UPV-3 | 9cb3dafefdcde92e4b0bbabc328b45c648a16cef | 603f4591cfe3af131c0d18f7e649b8b92dc9de3a | refs/heads/master | 2023-03-15T12:16:22.458819 | 2018-06-13T14:21:42 | 2018-06-13T14:21:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,390 | py | #!/usr/bin/env python
#! -*- encoding: utf8 -*-
"""
1.- Pig Latin
Nombre Alumno: Marcos Esteve Casademunt
Nombre Alumno: Jose Gómez Gadea
"""
import sys
vocales = "a","e","i","o","u","y"
signos_puntuacion = ",",";",".","?","!"
def piglatin_word(word):
"""
Esta función recibe una palabra en inglés y la tr... | [
"marescasinf@gmail.com"
] | marescasinf@gmail.com |
14dc11f08a298635e3fcc6e94c73c03dbd0bb70f | cfc90e07f857f7ae4a286b22c0387dfaf62f63eb | /Organizer.py | 1cfdf6551890931cb5022b2ff22543b21ba968b3 | [] | no_license | shubham8patni/Folder-Organizer | 9bb10e81565b562f9cc3196a95c1a79a99af00e5 | 43ce15b0d1346d340623d81b053444beefbc9fd3 | refs/heads/master | 2022-12-08T22:26:17.870674 | 2020-09-07T10:07:34 | 2020-09-07T10:07:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | import tkinter
from tkinter import filedialog
from tkinter import *
import os
import shutil
formats = {
"video_formats" : [".mp4", ".m4a", ".m4v", ".f4v", ".f4a", ".m4b", ".m4r", ".f4b", ".mov", ".3gp", ".wmv", ".avi"],
"doc_formats" : [".doc", ".docx", ".ppt", ".pptx", ".xlsx", ".xls", ".txt", ".csv", ".dif",... | [
"shaktidagar09@gmail.com"
] | shaktidagar09@gmail.com |
2c9078efe02083e3971024d34074ab17227b18b8 | a2739feb6f319aa4a3b991f8d531a85aef9b8435 | /src/extract_api.py | 4c6e12ab8931eab66aded76f2975933aaa4169b8 | [] | no_license | kefkaaah/Fire-Department-Clustering-Dashboard | e0401679523b676fa3707bbb38a4e8ddc19e1abc | 5c62e8551a66336903441e052009ae61ad9d148d | refs/heads/main | 2023-02-24T21:31:31.736322 | 2021-02-01T22:25:45 | 2021-02-01T22:25:45 | 335,100,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,931 | py | """
This package coordinates and parses GET requests to the Muncipality's API.
NOT USED IN THE DELIVERABLE
"""
# Import Modules
import pandas as pd
import pprint
import src.api_requests as ar
def woonfunctie(gebruiksdoel: list) -> bool:
# Loop over all gebruiksdoelen of a Verblijfsobject
for _gebruiksdoel ... | [
"noreply@github.com"
] | kefkaaah.noreply@github.com |
fd99bf3d3c0e15b0191184e3ac916eff8f0f70d2 | a57e66be33512a7e2e99adb6f597151b56c4c373 | /psgreet.py | 23cec5ae7e9d198ceaf39575804a96c85a4837e3 | [] | no_license | ravijaya/sep28 | 17025ea0997a371f54a6374f90d4bf56e0206840 | 8907f4b03ac2c4b2f1806d0d7cf3fd6aa680680c | refs/heads/master | 2022-12-18T23:58:12.989144 | 2020-09-30T12:13:15 | 2020-09-30T12:13:15 | 299,901,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | name = input('enter the name :')
city = input('enter the city :')
zip_code = int(input('enter the postal code :'))
print('name :', name)
print('city :', city)
print(zip_code)
print(type(zip_code))
| [
"ravi.goglobium@gmail.com"
] | ravi.goglobium@gmail.com |
d8c1268253a55b552a1766dca9855a16bb18ab78 | df489fddec1ffa936f0223efca3a35a22df36dc0 | /99_backup/25_各国历年二氧化碳CO2排放量统计分析/challenge7_1.py | 7c9a6e07c6db0eee678564cc8f73ddede36755f8 | [] | no_license | echo-xr/pc | 3af106530815956feb458889408085285b3fd8f5 | 03160675e912b4e4ad4642e14b5ab0230b973f6c | refs/heads/master | 2020-04-26T16:54:03.408688 | 2019-03-03T11:27:34 | 2019-03-03T11:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | def co2():
import pandas as pd
# 读取 Data 表
data = pd.read_excel('ClimateChange.xlsx')
# 取 'Series code' 这列中值为 'EN.ATM.CO2E.KT' 的行并设置索引
data = data[data['Series code']=='EN.ATM.CO2E.KT'].set_index('Country code')
# 刪掉多余的前五列,只留各年排量数据
data.drop(data.columns[:5], axis=1, inplace=True)
# 把数组中... | [
"1195581533@qq.com"
] | 1195581533@qq.com |
da7005725a515537dea22b7538fb079ac8f49e03 | 96ef34aed9406d9678962a27b4092e511409750b | /train.py | 9cba5d51ad4eb70b74e158027849788a42f532a8 | [] | no_license | lazloalexandru/ai_bot | 021becd1606650a0ca2046699bb252885c43d075 | 837389892fca1dc7d126dfe11b8aadf006c401e1 | refs/heads/master | 2023-02-13T22:22:03.817920 | 2021-01-08T09:09:17 | 2021-01-08T09:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,697 | py | from __future__ import print_function
import os
import torch
import torch.nn.functional as F
import numpy as np
import torch.optim as optim
from termcolor import colored
from model import Net
import matplotlib
import matplotlib.pyplot as plt
import chart
import gc
import common as cu
import time
from chart import get_m... | [
"lazloalexandru@gmail.com"
] | lazloalexandru@gmail.com |
a73e87f959c4e7877ce47ec7e8f5960a425f44b5 | 8372abb7b5c60c0d9eaf91413ee78afa19edb995 | /Twitter_bot/monkeys_episodes.py | af4551fc96c9dbafc55d48fc38f69c19830a4030 | [] | no_license | james-cole2015/reimagined-waffle | eb265669bb7853e92d909b81a0bf06fc0257b636 | e2cfafe85f96e3d3878ea199b3e987f7befa2624 | refs/heads/master | 2022-11-08T18:32:02.514493 | 2020-06-24T02:39:00 | 2020-06-24T02:39:00 | 267,687,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | # # This stores the episode names # #
import random
monkeys12 = {
'101':'Splinter',
'102': 'Mentally Divergent',
'103':'Cassandra Complex',
'104':'Atari',
'105':'The Night Room',
'106':'The Red Forest',
'107':'The Keys',
'108':'Yesterday',
'109'... | [
"brooks.houck@gmail.com"
] | brooks.houck@gmail.com |
4cdc740b044d14aef71ade275d9cb64cef80aef6 | ea89f040082f55a019d37c6caef6fd0726802727 | /szoveg_2.py | 77d86b8eff096453bd22d1d9faf708eb65508ef6 | [] | no_license | Krisz2750/first_project | ce5ab4bb86e3db92bb3ba151d15e4ced3269a930 | c9a9c7e1aaae66d53c9146cec725f50423aa1628 | refs/heads/master | 2023-08-22T02:37:30.030696 | 2021-10-15T11:03:22 | 2021-10-15T11:03:22 | 416,730,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | sz = "medvemancs"
e = 0
sz2 = ""
for c in sz:
sz2 += c + "*"
if c == "e" or c == "E":
e = e + 1
if e > 0:
print("Ebben a szövegben van e karakter van.")
else:
print("Ebben a szövegben nincs e karakter van.")
print("Ebben a szövegben:", e ,"db e karakter van.")
print(sz2)
| [
"szepek@ahrt.hu"
] | szepek@ahrt.hu |
e095bb08830df4cb39df6e6f8c0f7a370cf6d071 | 524baf7de05bd3fc5b9d08083cbb0b7b47a67979 | /40.py | d5ffe3d133240d1686dcb26040a6492346e80813 | [] | no_license | gk90731/100-questions-practice | 1356dd577516567a5c51a4257f59fe01b123e7ff | f855549e037b9924dd6f0370dc2f2a53765d9227 | refs/heads/master | 2020-05-25T14:04:59.642819 | 2019-05-21T12:49:04 | 2019-05-21T12:49:04 | 187,835,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | '''Question: Please try to guess what is missing in the following code and add the missing part so that the code works fine.
import math
print(math.pow(2))'''
import math
print(math.pow(2,3))
| [
"gk90731@gmail.com"
] | gk90731@gmail.com |
a5cce87a39931fb519c376cb9f1625d5c436898d | d65083a420fc66eb8aca977c9b844ef12eb5fb80 | /back.py | a772348301ddfd5ffc32e15516df17b616a1d5e6 | [] | no_license | NiverMtz/PS-ex_pai | 045112aea88dcf0af34922ea7f3abe06d180d782 | 4821c36998a63ee69dc3aba2db5e8749139bdcd1 | refs/heads/master | 2022-09-21T00:16:01.503743 | 2020-05-31T19:48:20 | 2020-05-31T19:48:20 | 268,314,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,169 | py | #Import personality Insights SDK
from watson_developer_cloud import PersonalityInsightsV3
#import json
import json
#import googletrans
#from googletrans import Translator
#import pandas
import pandas as pd
#import webrowser
import webbrowser
url='https://api.us-south.personality-insights.watson.cloud.ibm.com/instances... | [
"nivermartinezmed@gmail.com"
] | nivermartinezmed@gmail.com |
94a02e63f9b5fba7ae6127312658a22d3acb1763 | 352070909f410dd8d62bdcf3a628802227619eac | /manage.py | 80ba38fee18ded42fd60dca6093d121dcaa3769e | [] | no_license | amirhoseinhqp/amirproject | 5863d6c7e7c3616383ce30241c4f93e38eb4fbf5 | 4a5ff2f03f163b6f68ab3c19113be90275ecb754 | refs/heads/master | 2023-01-22T12:05:08.644373 | 2020-11-23T20:24:26 | 2020-11-23T20:24:26 | 308,609,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'poroje.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportE... | [
"amirhaghparast412@gmail.com"
] | amirhaghparast412@gmail.com |
aedde284f489d3f26bdc1756bff075d893405e52 | d5f91c58f39b0351542578182dbe0301e13b4b24 | /stack.py | 2cde856cdf53a7e1dcaef53b3e21f4479df60dec | [] | no_license | tstannius/Blackjack-python | a544f94b81260b459606bc9439ae9cbeb9404863 | 395f5c1bdd4c0c3130e5fc8b2cb7c31b50543fde | refs/heads/master | 2021-06-22T15:08:18.083767 | 2017-08-04T20:00:59 | 2017-08-04T20:00:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | """Stack module"""
import __main__
import card
import random
class Stack(object):
"""Stack class"""
def __init__(self):
self.cards = []
def draw(self):
"""Returns top card"""
drawn_card = self.cards.pop()
return drawn_card
def shuffle(self):
"""Shuffle a new ... | [
"qch898@alumni.ku.dk"
] | qch898@alumni.ku.dk |
0ea5ee185ffdc5dc67c8d732a9dd4340defe8f49 | 6ceca04544f6a8e7ee9f81286af95837724d0106 | /src/manage.py | 2a511f09bfb56fe4c4b0e98c32f66ee36f8911b8 | [] | no_license | atelier-matthias/Shop_API-django_rest_framework | 608d9d067391c6525a15f00349ec5e676d2a43c6 | d9056ebfae1c338f268b4820336074e0d5c0f9bf | refs/heads/master | 2021-09-02T00:27:31.319532 | 2017-12-27T15:17:36 | 2017-12-27T15:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "Shop_API.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... | [
"maciejrudnicki82@gmail.com"
] | maciejrudnicki82@gmail.com |
5c821ee1bea28056f2f4defd863411ff97d6d269 | 2b5e54558811481e4f93936838ff6ac6dea161ee | /frcl/datasets/split_mnist.py | 28f6a00be869a6a12f31de1293ef14e84edbda64 | [] | no_license | AndreevP/FRCL | e8f2bebe458ad3d5184f50eea7888af3f0052b5b | 91ad8908d2efd41eaaef99c22ee5c29e8c51eeaa | refs/heads/master | 2023-01-01T01:08:44.561699 | 2020-10-24T20:57:09 | 2020-10-24T20:57:09 | 297,110,325 | 17 | 4 | null | 2020-10-22T10:29:02 | 2020-09-20T15:52:40 | Jupyter Notebook | UTF-8 | Python | false | false | 1,970 | py | import torch
import torchvision
from torch.utils.data import Dataset
class SplitMnistDataset(Dataset):
@staticmethod
def is_positive(x):
return int(x > 0.1)
def __init__(
self, lbl_1, lbl_2,
train=True, data_root="../data/", normalize=False):
'''
Creates split mn... | [
"mokrov.pv@phystech.edu"
] | mokrov.pv@phystech.edu |
d7637764e04c8bd0f0765898622e4146542e48f5 | 2dea5e1a21efe5b0642bbd8f56d0445b1d4db82b | /mlp.py | 5e547ce15f94eec74dc98fba807493d7898883ce | [
"MIT"
] | permissive | twolffpiggott/deeplearning2 | cedaaa9b69ecc9d600d8a1a5682501c7c6a8ed32 | 3803e790554b3d129e53faaf0e62e0b869f1bf23 | refs/heads/master | 2022-12-10T09:47:08.008488 | 2018-08-26T20:49:26 | 2018-08-26T20:49:26 | 109,051,432 | 0 | 0 | MIT | 2022-12-08T02:50:40 | 2017-10-31T20:56:29 | Python | UTF-8 | Python | false | false | 3,316 | py | import torch
import torch.nn as nn
class MLP_G(nn.Module):
"""
Multilayer perceptron generator
"""
def __init__(self, isize, nz, nc, ngf, ngpu):
"""
Initialisation of MLP_G.
:param isize: number of pixels in output image
:param nz: size of random noise input to generat... | [
"twolffpiggott@gmail.com"
] | twolffpiggott@gmail.com |
277c954a7ca0cfca8163b32c222c436d2ce7cd22 | cf2d1e5626c2f85593134213d4a5208bcaa21d88 | /ForthWeek/Twentyoneth.py | a41c59c01c46f49b9ea9ffe188aae62440e09580 | [] | no_license | Naif18/PythonCourse | adccfeac7eab3c7b20b2e9412460a2f109a0abc9 | 00d5e35e5124bb6ac9d6cc0349f69b055f1c0b71 | refs/heads/master | 2020-07-07T13:25:50.501938 | 2019-09-26T08:57:50 | 2019-09-26T08:57:50 | 203,361,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | sets= {"One" , "Tow" , "Three" , "Four" , "Apple"}
print(len(sets))
sets.remove("Four")
print(sets)
sets.discard("One")
print(sets)
#pop method delete any items in the set becouse it is unordered
X = sets.pop()
print(X)
print(sets)
#del sets
#Using the set constructor to make a set
con_set=set(("Apple" , "B... | [
"naif.naasr@gmail.com"
] | naif.naasr@gmail.com |
91b6115e017d0a921d65e9ec410606eecd9e9cdd | df4a07ca2cb1d36fdebc6cfcaa08bc4aa1750876 | /unifier/settings.py | 5436bf1a5ec99cef80a8e51d06ab4667b5768f50 | [] | no_license | MasterAlish/liberty_task | 9d5c29cadd9574de9327e24a16dbf44efeb1c671 | 83391bc7a6ce902ecf0db0aad82601d9fcd12ded | refs/heads/master | 2023-03-01T03:14:38.138942 | 2021-02-04T14:11:15 | 2021-02-04T14:11:15 | 335,971,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | BANK_CSV_CONFIGS = {
"bank1": {
"has_header": True,
"columns_order": ["created_date", "type", "amount", "source", "destination"],
"date_format": "%b %d %Y"
},
"bank2": {
"has_header": True,
"columns_order": ["created_date", "type", "amount", "destination", "source"],
... | [
"masteraalish@gmail.com"
] | masteraalish@gmail.com |
d4e55b4a3c1058d466250a81fc43250a26f6e81e | 79f541042e4b4d6bb443e7a758ca918817ea0f33 | /PythonGTK/Examples/19_cellRendererPixbuf.py | 075ed4f57dca6d57224051e634c8867f76537d47 | [] | no_license | ashutoshm1771/Source-Code-from-Tutorials | d5f950db8f5f648e87303835e9558eeba404939a | f5552d4bd0f4bebcf5c674ff730fcb61f2d7a1ce | refs/heads/master | 2020-09-15T06:08:31.777622 | 2019-11-22T09:08:31 | 2019-11-22T09:08:31 | 223,364,275 | 4 | 0 | null | 2019-11-22T09:01:51 | 2019-11-22T09:01:48 | null | UTF-8 | Python | false | false | 962 | py | from gi.repository import Gtk
class CellRendererPixbufWindow(Gtk.Window):
def __init__(self):
Gtk.Window.__init__(self, title="CellRendererPixbuf Example")
self.set_default_size(200, 200)
self.liststore = Gtk.ListStore(str, str)
self.liststore.append(["New", "document-new"])
... | [
"buckyroberts@gmail.com"
] | buckyroberts@gmail.com |
d5043f60f0a1b975ad1c59ae6055ebbd4517f664 | bfe9942c974af91f9077e93a88f52bf083c534b3 | /app/pages/urls.py | 0940b7a4c50c3c8de2b6b0c807dfab0fecf46ae1 | [] | no_license | Denuk68/Yakuza | 8642d792fd104e00b0b625ca81c0e0d46b433b0e | 88eecb881cfd0b1300845afb2a5f8ed3184ee166 | refs/heads/master | 2022-12-22T17:59:24.324488 | 2020-10-03T16:02:17 | 2020-10-03T16:02:17 | 293,479,718 | 1 | 0 | null | 2020-10-03T15:52:34 | 2020-09-07T09:17:33 | JavaScript | UTF-8 | Python | false | false | 375 | py | from django.urls import path
from . import views
app_name = 'pages'
urlpatterns = [
path('', views.index, name="index"),
path('about/', views.about, name="about"),
path('menu/', views.menu, name="menu"),
path('blog/', views.blog, name="blog"),
path('contact/', views.contact, name="contact"),
p... | [
"denus.denisovuch@gmail.com"
] | denus.denisovuch@gmail.com |
88b243edf39b6ff45e8c9152f52def169ef439c5 | 8c9ac1ed20ce95dee3af5d08b712fdbf61d8e2dc | /example_bakarss.py | eb4aaf539debd8266bd36dd09b2cf0a54056a07a | [] | no_license | Darayavaush/rss-filter | b8d504ffed289d5a9fa31a98ec12b4490439261d | 559a7cbfd1bfef8792fc084bb93c730b311bf1ef | refs/heads/master | 2021-01-10T18:02:30.761157 | 2015-10-11T08:55:18 | 2015-10-11T08:55:18 | 44,045,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | from subprocess import call
import requests
import bs4
html = requests.get('https://www.mangaupdates.com/mylist.html?id=450989&list=user2')
soup = bs4.BeautifulSoup(html.content).find(id='ptable')
links = [x['href'].replace('https', 'http') for x in soup('a')]
call("""python rssfilter.py\
-f "C:/wamp/www/baka.xm... | [
"archsinus@gmail.com"
] | archsinus@gmail.com |
555768f7f3294b960854d8e29e515027c5aefc09 | c1e87e9a7f0f2e81e3113821c21378f7b6436b6f | /Щелчок/15_поляков/22.py | 23cd2689e5ef0c8d8a5c67a9dc002aa76f830d5a | [] | no_license | Pochemu/Activity | 8e2a7ec4f6b7fd233c0ee48e893733b077aac7a4 | 1b21e674635ff95104e18e93241c30020032e26a | refs/heads/main | 2023-07-09T04:04:06.337321 | 2021-07-06T21:38:26 | 2021-07-06T21:38:26 | 337,492,398 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | for i in range(101, 1000):
x = i
L = x - 21
M = x + 12
while L != M:
if L > M:
L = L - M
else:
M = M - L
if M == 11:
print(i) | [
"48361330+Pochemu@users.noreply.github.com"
] | 48361330+Pochemu@users.noreply.github.com |
17cc083fe8b1a28a5e028daff08263bf37cc4f6e | 5f15dd6be0bbbcdc4d399a063a8f00ac548cc96c | /pytests/test_socket.py | 1f1c4cc3c3c059f4406dc6554824e274485bf445 | [
"MIT"
] | permissive | scorphus/ptvsd | 76ee3d349186553e909e3cff1c25de075fc9d8ee | 26cfd18f99343a9f474dc240b4cefea98ffdea69 | refs/heads/master | 2020-04-02T04:15:06.237709 | 2018-10-19T22:00:37 | 2018-10-19T22:00:37 | 154,007,608 | 0 | 0 | null | 2018-10-21T12:49:38 | 2018-10-21T12:49:38 | null | UTF-8 | Python | false | false | 1,023 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See LICENSE in the project root
# for license information.
import pytest
from ptvsd.socket import create_server, shut_down
class TestSocketServerReuse(object):
HOST1 = '127.0.0.1'
HOST2 = '127.0.0.2'
PORT1 = 789... | [
"noreply@github.com"
] | scorphus.noreply@github.com |
888ff976f586a4717efd5af84e8a6aa7d3cb34bb | 5e8778ae5144619b415fa1ef5a44a0930bcdd4d2 | /machine_learning/5_k_means/k_means/k_means_sklearn.py | 8969ae8191432c978eaa5a3125924007e7bea203 | [
"MIT"
] | permissive | kinghaoYPGE/my_python | e2ece10f1bddc5602a34817b4690d26585dc6915 | 4f1368b7a1eba872ab67f8a867d81d5c71a2e9ba | refs/heads/master | 2023-01-13T13:57:47.112013 | 2020-04-02T13:28:06 | 2020-04-02T13:28:06 | 183,596,446 | 0 | 0 | MIT | 2022-12-26T20:16:21 | 2019-04-26T09:08:39 | Jupyter Notebook | UTF-8 | Python | false | false | 445 | py | #! /usr/bin/env python
# encoding: utf-8
from scipy import io as spio
from sklearn.cluster import KMeans
import matplotlib.pyplot as plt
def kMeans():
data = spio.loadmat('data.mat')
X = data['X']
model = KMeans(n_clusters=3).fit(X)
centroids = model.cluster_centers_
plt.scatter(X[:, 0], X[:, 1])
... | [
"oncwnuBD7HT1CEVNErYticxPdM4k@git.weixin.qq.com"
] | oncwnuBD7HT1CEVNErYticxPdM4k@git.weixin.qq.com |
29cb7a11a2e89322e2c7b4b4001959f3b808f7d0 | 48370a956d3004a1bd6496bd13357578990b258b | /__init__.py | fcd93df58f8543ac602a3a3c5f8cf44ed3a7ebbe | [] | no_license | shreyaspotnis/gpe1d | 3ce7b879d446090f92a7ee8a52a772718d0c034b | 6933b3b5a83921ca832588f10a68e778e88e1dd5 | refs/heads/master | 2021-01-19T13:46:09.939548 | 2014-04-23T00:56:16 | 2014-04-23T00:56:16 | 7,594,815 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | from gpe1d import *
| [
"shreyaspotnis@gmail.com"
] | shreyaspotnis@gmail.com |
f7fb4d9a7d5027b2266d958ce939e45c3c255fd8 | 571a89f94f3ebd9ec8e6b618cddb7d05811e0d62 | /past202010/h/main.py | 3b515938a65636dfb734674b57c922c04b987390 | [] | no_license | ryu19-1/atcoder_python | 57de9e1db8ff13a107b5861f8f6a231e40366313 | cc24b3c2895aad71d40cefbb8e2893dc397b8f4f | refs/heads/master | 2023-05-10T05:32:16.507207 | 2021-05-19T17:48:10 | 2021-05-19T17:48:10 | 368,954,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | #!/usr/bin/env python3
import sys
from collections import deque, Counter
from heapq import heappop, heappush
from bisect import bisect_right
from itertools import accumulate
sys.setrecursionlimit(10**6)
INF = 10**12
m = 10**9 + 7
def main():
N, M, K = map(int, input().split())
S = [list(input()) for _ in ran... | [
"ryu1007kami@gmail.com"
] | ryu1007kami@gmail.com |
922b0105fb3f0badbd1e082d4fee5812d190c55e | 9dd81f05a180edb8a3fa74baba5debac7e4f34e6 | /2000-2999/2908.py | 0367a86866fbf89d7b4fcc976e75854b12810a3c | [] | no_license | nowroo1/Baekjoon | 1a52f8bff9899e727d5821a0fb42df8562cb87e8 | 72abe129cbc4b5194c81ed037411066fc14a673f | refs/heads/master | 2022-06-07T22:48:09.709703 | 2020-05-04T07:08:32 | 2020-05-04T07:08:32 | 257,307,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | a, b = input().split()
a = int(a[::-1])
b = int(b[::-1])
if a >= b:
print(a)
else:
print(b)
| [
"nowroot@gmail.com"
] | nowroot@gmail.com |
db651cd9e2ab45ae971027fca59b1f3b6b9274e9 | 55182bf02abd2f3d69b7ae829a57fdcd49a5b43c | /pages/demo_blaze/about_page.py | 1636fa0e273348a03898dff1f9691def5f91ae7a | [
"MIT"
] | permissive | sgbm0592/test_automation | 310e9ea246a5fe860aad7df4be339aa00f34a07f | 0965b9a4b4df450d90e11b798d107837abf1bdca | refs/heads/master | 2023-05-10T04:45:14.604997 | 2021-06-05T03:26:55 | 2021-06-05T03:26:55 | 340,690,419 | 0 | 0 | MIT | 2021-02-20T18:32:26 | 2021-02-20T15:44:50 | Python | UTF-8 | Python | false | false | 408 | py |
class AboutPage:
_option_about_xpath = '//a[contains(text(), "About us")]'
_option_play_class = 'vjs-big-play-button'
_option_close_xpath = '//button[contains(text(), "Close")]'
def get_about_option(self):
return self._option_about_xpath
def get_play_option(self):
return self._op... | [
"sgbm0592@gmail.com"
] | sgbm0592@gmail.com |
14ab1476b3200e6ac621f11637098423c7f5e8b4 | 2b85cb421bf53be9bd26b53bdf9d0817d9ab2d60 | /chatbot_apis/facility/facility_finder.py | c1e9a645d8778e5aebffa8b9980034c41fea8867 | [] | no_license | Deeathex/EmBot | 0b7822e05d16af7507bf3bf533ad5cd86989eade | e36a6f97be4ef3bcdbd3f2b798be105bf27fe2e7 | refs/heads/master | 2023-06-07T14:27:26.223891 | 2021-06-29T19:46:54 | 2021-06-29T19:46:54 | 359,791,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,944 | py | import ipinfo
import googlemaps
from urllib.parse import quote
VICINITY = "vicinity"
NAME = "name"
PLACE_ID = "place_id"
LONGITUDE = "lng"
LATITUDE = "lat"
LOCATION = "location"
GEOMETRY = "geometry"
RESULTS = "results"
DATA_TEXT = 'text'
class NearbyFacilityFinder:
def __init__(self):
self.__ipinfo_ac... | [
"andreea.ciforac@tora.com"
] | andreea.ciforac@tora.com |
cc7747150e26d83405882a1c27d478d9f22fed6b | f89e049d8d7bd2bbd09627eccc6843a67caa3dd1 | /src/svm/applications/bank.py | dbbe0c8d697105138bf8aeb4a9b813c504b0ccce | [] | no_license | mryanivtal/dual_svm_project | 6cd035507ba920dd1440984c213ef8dec5c48c1a | eefb28a99238a52e88952b8d0efc5fe69b765ea5 | refs/heads/master | 2023-06-05T00:55:25.540590 | 2021-06-26T19:42:45 | 2021-06-26T19:42:45 | 380,583,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | import pandas as pd
from sklearn import svm
from sklearn.model_selection import train_test_split
from src.svm.helpers import data_helpers
from src.svm.helpers.test_hyperparams import test_hyperparams_linear, test_hyperparams_RBF, test_hyperparams_poly
DEBUG = False
TRAINING_SIZE = 800
TEST_SIZE=15000
# Load data fro... | [
"Yaniv_Tal@amat.com"
] | Yaniv_Tal@amat.com |
58c47c465ab0fcb4a83f67d593bdc72a9c619f7f | ce570d319482ce3c9e6318f9b879673f2f25528f | /codility/BinaryGap.py | 2d0d9a3bd59d3a5d13672e4d78feecc82f1deed5 | [] | no_license | chajk811/algorithm | 35b2d18298a00e0e72ba8335db045771e7ad24c9 | fc4a258a0cd252043e395e8970a8c071f172cac8 | refs/heads/master | 2020-12-22T08:22:51.806152 | 2020-05-29T06:16:48 | 2020-05-29T06:16:48 | 236,724,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | def solution(N):
tmp = bin(N)[2:].split('1')
check = False
arr = []
for idx in range(len(tmp)):
if idx == len(tmp)-1:
if tmp[idx] != '':
break
if tmp[idx] != '':
arr.append(len(tmp[idx]))
return max(arr) if len(arr) > ... | [
"chajk811@gmail.com"
] | chajk811@gmail.com |
59d4c01d5cfcf4ed342790fd1274876e93dd8832 | 26b0a513571a68576687b98de61d24be609b7595 | /problem_set_7/NewsStory.py | 350dd691a2f84602fbf6138df49edbbbe8c487c1 | [] | no_license | sirajmuneer123/MITx-6.00.1x-Introduction-to-Computer-Science-and-Programming-Using-Python | ea487447e119d9f1a23d49b9d6ddbe3a27b6f972 | 757c8087005bebb0fb250526d0caf7b79e3d1973 | refs/heads/master | 2021-01-10T03:21:53.565688 | 2015-11-07T17:57:26 | 2015-11-07T17:57:26 | 45,476,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | # Enter your code for NewsStory in this box
#Part 1: Data Structure Design
class NewsStory(object):
def __init__(self, guid, title, subject, summary, link):
self.guid = guid
self.title = title
self.subject = subject
self.summary = summary
self.link = link
def g... | [
"sirajmuneer4@gmail.com"
] | sirajmuneer4@gmail.com |
60fb4519d440f21b4cfea8ee6b9eeec07aa42fe1 | f9bcca1beb25b39eca06eb69aa8c57283eda3e6e | /banner/migrations/0001_initial.py | b76343dbfaacafe88fd84fec0c753abc6ff9bdf3 | [] | no_license | 1903760/textura | a2c9f1eb037b3a4307d1d6251a9b2f9ce62fcc5e | 11f11ee8ad7462d13c6a1b51f242397f70a99c77 | refs/heads/master | 2021-01-02T22:28:40.325259 | 2017-10-16T05:28:56 | 2017-10-16T05:28:56 | 96,103,570 | 0 | 1 | null | 2017-07-03T11:58:11 | 2017-07-03T11:25:51 | JavaScript | UTF-8 | Python | false | false | 960 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-07-28 12:10
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Banner... | [
"berwcl@gmail.com"
] | berwcl@gmail.com |
99712e5994e4f62c535cc123f5dee3ae5e41dc7c | b3a2e683ca82de3758fd62a8dea16bf2be7ebb78 | /sequences/sorting.py | eb8a7a548068d777b5de382221deaa3f25e1f0d2 | [] | no_license | jschnab/data-structures-algos-python | dc60f4e26d4d86470039bab1f4422e86a6da736b | 7b7821d5fc5378c8c7a4be088aadd6c95b154312 | refs/heads/master | 2022-12-27T17:56:34.622558 | 2020-10-24T19:47:37 | 2020-10-24T19:47:37 | 265,121,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import random
def select(seq, start):
min_idx = start
for j in range(start + 1, len(seq)):
if seq[j] < seq[min_idx]:
min_idx = j
return min_idx
def selection_sort(seq):
for i in range(len(seq) - 1):
min_idx = select(seq, i)
tmp = seq[i]
seq[i] = seq[min_id... | [
"jonathan.schnabel31@gmail.com"
] | jonathan.schnabel31@gmail.com |
785a0e838d2086e476faf98a5ab30824e7268acd | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/learningCurve/tenPercent/lrClassifierN.py | 5b2e407f3df56718ee1c0db2c70f5c4f024f8ad3 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,133 | py | # 9 September 2019
# Kiyoto Aramis Tanemura
# I modified the rfClassifier.py script to implement a logistic regression classifier. This classifier runs faster than the random forest classifier and Jun previously observed comparable results between logistic regression and random forest classifiers for the protein fold... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
7a8bd6e1a434cca4be334dcc46c52dc876733df1 | 1186be130d93f5ae756dbc80a40deddfabc1e7a7 | /Adafruit_Python_SSD1306/examples/stats.py | 9f632626c6abf9cc1d7a7880ba258ec545043aad | [
"MIT",
"BSD-2-Clause"
] | permissive | Jonathan-SyLuen/RPi_Script | 6e02611ba8db9c4febb201c39a0ea128fc040dc6 | bf07300906250bf8e0a94a74701e74daef46ce30 | refs/heads/master | 2022-09-08T08:09:32.734597 | 2020-05-09T11:15:50 | 2020-05-09T11:15:50 | 262,303,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,027 | py | # Copyright (c) 2017 Adafruit Industries
# Author: Tony DiCola & James DeVito
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# ... | [
"jonathan.sy.luen@gmail.com"
] | jonathan.sy.luen@gmail.com |
3997d4051e2df12bf21d542ce8da6bd90be8e2b3 | 1c25798a9ae17ca228383fcd04a1e801415a78e7 | /Chapter 3 Math, Function, Strings and Objects/commonPythonFunction.py | 25618b0b6296236322877889a7f2286192eceb02 | [] | no_license | padamcs36/Introduction_to_Python_By_Daniel | 688c56fff598617e979a5f71e9a48e50844ad7ea | 8b8f00c9d93428c58df9c90e5edd8f75a1662647 | refs/heads/main | 2023-02-22T08:11:01.450054 | 2021-01-28T09:45:01 | 2021-01-28T09:45:01 | 333,700,411 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | '''
abs(), max(), min(), pow(), round() these are python built in functions
there is no need to import separate module for them
'''
print(abs(-3)) #return the value in positive always
print(max(4,5,-8,0,7))
print(min(0,4,6,3,-4))
print(pow(4,3))
print(round(4.535))
print(round(5.554667, 2)) | [
"noreply@github.com"
] | padamcs36.noreply@github.com |
bd9ed5751eee1c211f209fe86a475e63d9c97c2d | 93684882400d0249ad733249f5b2c8dbd230110f | /ClassExercise & studio/chapter 8/Ex.02 pass 7-04-2016.py | b2e97a34f99d78980e9dea2a41e658df9a7c41ee | [] | no_license | SmileShmily/LaunchCode-summerofcode-Unit1 | c492bbed966547cc8c1be7f15d7a23cb989d407b | 03474cf77b0dae2bcfaf8513711d3fec72bd4166 | refs/heads/master | 2021-01-16T23:19:23.413010 | 2017-06-29T02:49:19 | 2017-06-29T02:49:19 | 95,730,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | ''' ’
(GRADED) Write a function analyze_text that receives a string as input.
Your function should count the number of alphabetic characters (a through z, or A through Z)
in the text and also keep track of how many are the letter 'e' (upper or lowercase).
Your function should return an analysis of the text, somet... | [
"zyxjyaya@gmail.com"
] | zyxjyaya@gmail.com |
0d2cb05f03c5148d545df139b233bb65df55f7c4 | 21d1d0cade05ae0ab3dff1598d64f80cef9a411d | /Python/Programmers/Level3/리틀프렌즈사천성.py | 7aabad1adc691ca74efc1da5c8df28984e00bf84 | [] | no_license | louisuss/Algorithms-Code-Upload | 56d1a140a1674a53c13bcec5be96ea6da7c35219 | 6c97c713858b075162d5d86f124c0555f383c5b0 | refs/heads/master | 2023-01-08T21:37:19.702276 | 2020-11-09T04:03:50 | 2020-11-09T04:03:50 | 258,399,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,352 | py | def find_route(m1, n1, m2, n2, c):
up, down, left, right = check_edges(m1, n1, m2, n2, c)
case = (m1-m2)*(n1-n2)
if case == 0:
return (m1 == m2 and up) or (n1 == n2 and left)
elif case > 0:
return (up and right) or (down and left)
else:
return (up and left) or (down and right... | [
"dobi1115@gmail.com"
] | dobi1115@gmail.com |
9ca783c3b3701909173548533b8d995ebf32a0f4 | 9a9e7b1428192deeb186bd1cd43f278178a384f5 | /controller.py | f5111fed61a27ee998aee3c4c4b705fe90c70462 | [] | no_license | jragni/TurtleBot3-SLAM-and-Obstacle-Avoidance | be33c5351c1f8285f8f63765f8e659cdbada6a26 | 0de3409326d3f3a4074be4231c229b408a026a15 | refs/heads/master | 2022-11-30T17:46:38.227048 | 2020-08-12T04:58:22 | 2020-08-12T04:58:22 | 286,919,849 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,837 | py | #!/usr/bin/env python
# Author: Jhensen Ray Agni
# RBE500 Project
# Controller
# DESCRIPTION:
# The controller node utilizes the turtlebot3's odometry and lidar data in order to move through the perimeter of an indoor course. The controller allows for
# obstacle avoidance. When coupled with the turtlebot3_slam turtle... | [
"noreply@github.com"
] | jragni.noreply@github.com |
3f468f59d4ef99584f24a2f2b80cb68c27335ccf | ae81fb7eb3c4fa7a1862bfab23b582969776a9dc | /pyexamples/decorators/decorators_05.py | 88735203b9d95313faf5babd659056255f73b639 | [] | no_license | tsemach/pyexamples | 29f7697163221dff82e7ec1243af094c66c1a774 | 25d4af5a6f3ec29f77892c8f0fcb2efd0a10fd7f | refs/heads/master | 2021-04-03T12:26:10.981404 | 2020-03-18T22:05:01 | 2020-03-18T22:05:01 | 107,895,862 | 3 | 2 | null | 2017-10-22T19:41:19 | 2017-10-22T19:24:50 | null | UTF-8 | Python | false | false | 882 | py | import sys
import os
import linecache
def trace(f):
def globaltrace(frame, why, arg):
if why == "call":
return localtrace
return None
def localtrace(frame, why, arg):
if why == "line":
# record the file name and line number of every trace
filename =... | [
"tsemach.mizrachi@gmail.com"
] | tsemach.mizrachi@gmail.com |
950a07791ad13668ab9e5f9cc69d7c2209da5100 | d98d3daf371edae1c05bcdd1373cfee1c3d84c1b | /console_parseSteadyCFDXML.py | 45e06ccca2fc733e8b38f4c29953a92f7c257b98 | [] | no_license | spaceparticle/parseFluentParticleTrackXMLFile | 822603db98e5b5d0f675ec0eba4a4c7075fba10f | 8e675ea9c73d7745a436e26a6d45324d4ac6c9bd | refs/heads/master | 2020-04-26T16:54:19.786301 | 2019-10-25T13:08:01 | 2019-10-25T13:08:01 | 173,695,645 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,043 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 28 15:54:21 2019
@author: spaceparticle
"""
from parseFluentXML import *
import xml.dom.minidom
import numpy as np
from pandas import DataFrame
from pandas import Series
if __name__ == '__main__':
# %% ------------- read the XML file and parse information of elements ... | [
"liugqthu@gmail.com"
] | liugqthu@gmail.com |
8c7528abac71136cad54131e9a41c7e5a0de6109 | 573d470c9fcb3799e8822e6953e1259b74e0672c | /Course/syntax/example_37.py | 4dec6e18ca446e0776f554d3f82b7f877eb2a471 | [
"Apache-2.0"
] | permissive | zevgenia/Python_shultais | e6f35773e54a72477ea5ee83520dbecfbee7ff48 | e51c31de221c5e7f36ede857a960138009ec8a05 | refs/heads/master | 2020-03-31T21:46:25.061571 | 2018-10-11T13:43:47 | 2018-10-11T13:43:47 | 152,593,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | """
Модуль демонстрации строк документации.
Пример использования смотрите в файле example_38.py
"""
def square(x):
"""
Функция принимает число и возвращает квадрат этого числа.
"""
return x ** 2
| [
"zatonskaya@yandex.ru"
] | zatonskaya@yandex.ru |
46e2d49e16ed3d0262619f0fbf1e647bfc9ce7da | 5f889a6cf5a96b7d46ac1f7860443e1e0cd6dbdc | /tests/debug_new_pattern.py | 94b97a162fbfed0acce7737ae110cc45bbf029f6 | [
"MIT"
] | permissive | jumbrich/dtpattern | 2cbcdd6c87655170a9d973f683a82a0baeb39bab | 38433c89d169a280b0439b9cd4f463d5d7604dd7 | refs/heads/master | 2021-01-24T11:58:02.281618 | 2018-09-01T19:15:35 | 2018-09-01T19:15:35 | 123,108,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,023 | py |
from csvmimesis.mimesis_data_providers import list_providers_methods, list_locals
from csvmimesis.table_generator import create_data_provider_list
from dtpattern.unicode_translate.uc_models import PATTERN
from dtpattern import dtpattern2, value_pattern_detection
from dtpattern.unicode_translate.pattern_detection_print... | [
"jueumb@gmail.com"
] | jueumb@gmail.com |
499608fb6ec7814bd738d0cd19d9aca184e85a9b | 0ec73d4f9bab2f2ce8bb4a59ee3cb94b07af171d | /createTables.py | 75fdfba50de9ca10ae1941179ca2053d756dc9c9 | [] | no_license | kelsonflint/rsbAPI | a18a09888ca3aa15aa3e607b0d15d98348f665c8 | eca62ebb8953f959a0c8d263511287821e0c1e7f | refs/heads/main | 2023-05-05T01:50:07.197968 | 2021-05-19T20:49:33 | 2021-05-19T20:49:33 | 335,735,700 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,693 | py | import boto3
def create_user_table(dynamodb=None):
if not dynamodb:
dynamodb = boto3.resource('dynamodb', region_name='us-west-2', endpoint_url="http://localhost:8000")
table = dynamodb.create_table(
TableName='Users',
KeySchema=[
{
'AttributeName': 'id',
... | [
"kelson.flint@gmail.com"
] | kelson.flint@gmail.com |
065f431944b6c55eff7a20c1ed7b70d3bc71d79b | e37275d6c6b036cea44213e9d0ec35c66d36c1d0 | /LeetCode/ctuoJul/wbTreeHeightBuntoro.py | 5ec6e914793f541b9bd3c6a06d7dd056ceb2d0d7 | [] | no_license | appsjit/testament | e059a08f301966a7e461f9f273a67854de25d6bd | b3d45908b41d37c3799e447fc0f6ffad0ea967da | refs/heads/master | 2021-12-15T01:59:11.061249 | 2021-11-28T19:09:13 | 2021-11-28T19:09:13 | 49,539,322 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | class Vertex:
def __init__(self, id):
self.id = id
self.edges = []
def deserialize(n, edges):
vertices = {}
while n > 0:
n -= 1
vertices[n] = Vertex(n)
# Vertex(7) -- Vertex(1) total 6
for edge in edges:
v1 = edge[0]
v2 = edge[1]
vertices[v1]... | [
"appsjit@gmail.com"
] | appsjit@gmail.com |
bde36c96bbfba3305912f6d49acbda215b8835f3 | df7ccc95b6edef2acbb8fdce6527fb6a8564ef12 | /app/spider/mywishs.py | 01f72c02466b5a3ac526a2727ff5f1281daa0b4c | [] | no_license | superdicdi/fisher | c44beb222187ce31e5c4094e2ee48af222a827dc | 8a5aa85a06d3b80bc9ebb0fbbc5cc3c883c05e8c | refs/heads/master | 2022-12-12T00:55:52.926291 | 2018-12-29T06:42:38 | 2018-12-29T06:42:38 | 162,064,174 | 1 | 0 | null | 2022-12-08T01:31:44 | 2018-12-17T02:35:54 | CSS | UTF-8 | Python | false | false | 897 | py | from app.libs.http_tool import HTTP
from app.spider.yushu_book import YuShuBook
__author__ = "TuDi"
__date__ = "2018/12/17 下午1:13"
class MyWishes:
def __init__(self):
self.wishs = []
def __fill_single(self, data, count):
if data:
self.wishs.append({"wishes_count": count, "book":... | [
"superdi.cdi@gmail.com"
] | superdi.cdi@gmail.com |
671e39afac880504a3b71ad352e62a8e2dba0560 | 2b2ec8120c91166157c91b325efb01c4f54fce8d | /user/tests/test_model.py | e3914dd508cc2ef43b961b8609d175ed10525529 | [] | no_license | tamaramalysh5991/asana_integration | 204c8687b50e67b0bd494ea8a56907a635923944 | faa2bbaafa52e465f843ef86c8cecd107f8ed3c4 | refs/heads/main | 2023-01-04T03:30:12.231144 | 2020-10-16T09:33:34 | 2020-10-16T09:33:34 | 303,921,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | import pytest
from ..models import User
from .fixtures import ASANA_USER
@pytest.fixture(autouse=True)
def mock_create_asana_user(mocker):
"""create asana user mock object for check the function call"""
mock = mocker.patch(
'asana.resources.gen.workspaces._Workspaces.add_user_for_workspace'
)
... | [
"tamara.malysheva@saritasa.com"
] | tamara.malysheva@saritasa.com |
6b49473abce39f0169294f832573d958ed264e27 | c7a404e6fe1861c90ff8dc9cbc69462ebcbb744c | /app.py | 7c2a34914a0512a254d56cb7547873a693cb3975 | [
"MIT"
] | permissive | bossnode/rufo-mp3-fetcher | b40ced257b7127456b5fbdd27b19cb5ce9f6289e | ed14c44c27761e4d2b2625da17a62c036f38dafd | refs/heads/master | 2020-06-10T04:11:09.257754 | 2019-06-26T20:25:12 | 2019-06-26T20:25:12 | 193,578,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
import os, sys
from soundspider import SoundSpider
from time import sleep
import threading
class Handler:
def onDestroy(self, *args):
try:
download_thread._stop()
except:
pass
Gtk.main_quit()
def onToggleDownload(self, button):
s... | [
"="
] | = |
e8b3a1c00a0adcbb6c45e0613c18c21c3c1a2f8b | 1bc7456240639a4fac54c411fbcb562cdbcc420c | /20.valid-parenthesis.py | 505f4e6def7acd2d3df87521451cf3e681bda834 | [] | no_license | Manash-git/CP-LeetCode-Solve | bdbb9f13946faee5da24e191a3d593b99da61ed2 | 45052c7613345c76f8a12bac780ffb899062dea9 | refs/heads/master | 2022-11-29T13:16:03.474242 | 2020-08-11T19:06:07 | 2020-08-11T19:06:07 | 275,853,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | def isValid(s):
stack=[]
pairs={
'(':')',
'[':']',
'{':'}'
}
for char in s:
if char in pairs:
# storing corresponding closing parenthesis
stack.append(pairs[char])
# print(stack)
else:
if not stack or ... | [
"emailatmanash@gmail.com"
] | emailatmanash@gmail.com |
414526802bcb1a66cff43e73f03bda1e0553c727 | 7ba1e67051b1b666a651a59623cec5cd8705f7b3 | /bin/older/crossCode | b335d8453cffc6e83af9110156acef3d20ec4369 | [] | no_license | sudeepdas/lensReconsMC | 0f3a2ca69c98797cc40bf2ef12c3726384997b64 | 5ca3ff8c9ef7ffbceeb18960b3e896f093ac83a2 | refs/heads/master | 2016-09-05T23:00:31.991030 | 2013-03-20T21:55:04 | 2013-03-20T21:55:04 | 8,915,201 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,161 | #!/usr/bin/env python
#Given N-maps calculates cross-reconstruction between them
from flipper import *
from lensTcorrCombIR import *
from numpy.fft import fftshift,fftfreq,fft2,ifft2
from scipy import interpolate
from scipy import *
import os
import random
import sys
import pickle
TCMB = 2.726e6
def getEmptyMapWithD... | [
"sudeepphys@gmail.com"
] | sudeepphys@gmail.com | |
3187e666494fbbcd1627863c925e7268e627d31e | 62f1206de11ccf329d89b15fda2421cae14eae37 | /data_loader/test/__init__.py | 1d432f0c476c8dd7f4148963600e9a692175f326 | [] | no_license | zq-ucas/high-order-graph-convolution-network | 6ca05d5960b95011608d11b9e6118ad589435567 | 5ffb5f3bdbc1de19583086d3ff53c08128bc7302 | refs/heads/master | 2022-06-05T04:40:48.753795 | 2019-08-20T15:48:57 | 2019-08-20T15:48:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!/usr/bin/env
# coding:utf-8
"""
Created on 2019/4/9 13:12
base Info
"""
__author__ = 'xx'
__version__ = '1.0'
| [
"15624987290@163.com"
] | 15624987290@163.com |
be19e49ff8ca50f044aa74a299385f507daf7c95 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_34/785.py | 9c28392c2800225546e52dd464a7bb364a89ea2b | [] | 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 | 378 | py | import sys
import re
firstline = sys.stdin.readline()
(L, D, N) = map(int, firstline.split())
lex = []
for x in range(D):
lex.append(sys.stdin.readline())
lex = ''.join(lex)
for (i, pattern) in enumerate(sys.stdin.readlines()):
pattern = pattern.replace('(','[').replace(')',']')
matches = re.findall(pat... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8aeea72b7d8a05fcd367ad2245993782dde02fba | 3330944ef9af811ed59e3f40721e6b7da754e1e7 | /setup.py | 1d70fdd49af304dc6bdae85abbb3f2671b9bf919 | [] | no_license | loum/baip-loader | 8ee6ad184f4cb557437ed92590b591eaa0032956 | 68a4b1556b8d745e51a1502092cd1d54bfd96c76 | refs/heads/master | 2021-01-25T07:39:34.190887 | 2015-05-05T00:15:21 | 2015-05-05T00:15:21 | 30,627,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,249 | py | """:mod:docutils` setup.py file to generate Python compatible sources in
build/ directory
"""
import os
import glob
import fnmatch
import shutil
from setuptools import setup
VERSION = '0.0.0'
def opj(*args):
path = os.path.join(*args)
return os.path.normpath(path)
def find_data_files(srcdir, *wildcards, **... | [
"lou.markovski@gmail.com"
] | lou.markovski@gmail.com |
ffac6712307729c29715a4c5a5c393488ebe537f | 5799ba6fb6f1cf728731d12af4a0e4e1d3a79d20 | /zhaquirks/konke/motion.py | 1209b13da52bc50e9ec456e0305379647d7ecd83 | [
"Apache-2.0"
] | permissive | grea09/zha-device-handlers | d045ba4b73a6ef9fcb6ae8046113ab310116dad8 | b7d2af91c8aead35cd03efc0ca449c7e35f3bcf9 | refs/heads/master | 2021-04-21T12:31:28.569006 | 2020-03-16T14:07:38 | 2020-03-16T14:07:38 | 249,779,944 | 0 | 0 | Apache-2.0 | 2020-03-24T17:57:20 | 2020-03-24T17:57:19 | null | UTF-8 | Python | false | false | 2,026 | py | """Konke motion sensor."""
from zigpy.profiles import zha
from zigpy.quirks import CustomDevice
from zigpy.zcl.clusters.general import Basic, Identify, PowerConfiguration
from zigpy.zcl.clusters.security import IasZone
from . import KONKE, MotionCluster, OccupancyCluster
from .. import Bus, PowerConfigurationCluster
... | [
"noreply@github.com"
] | grea09.noreply@github.com |
dff4007e32d56a114ebc3f16d919da548dfcf080 | 9a10b31c7900d72df14a56bfd65955302d9fd1d6 | /pama/module.py | 119e5ccc4b9b65ab63b3de1dafb07d05ab31f087 | [] | no_license | duytk5/Practice-ML | cee7776acea9ebeadd8c4e7d44a58ae91fba4569 | d1d9fd72cb7528b155455f16d32812fe42cf92c9 | refs/heads/master | 2020-03-28T16:42:28.819303 | 2018-09-14T03:02:23 | 2018-09-14T03:02:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,669 | py | import random
from collections import namedtuple
import torch.nn as nn
import torch.nn.functional as F
######################################################################
# Replay Memory
Transition = namedtuple('Transition',
('state', 'action', 'next_state', 'reward'))
class ReplayMemory(... | [
"duytrkh@gmail.com"
] | duytrkh@gmail.com |
66e624919b320b93feb67cb186abd282d4d46faa | c4a9a5cf5fd0eeb2433b2b0883e3a8e1e4c2df02 | /prod/schemas/project_fund_schema.py | 496dbedb9b45f5c6cf4d0063d028e48298fdb13e | [] | no_license | diegobalestieri/Gateway | a15abce04bdb9a703a02467c9e115fac90067d10 | 516090c07673a94acb4cf85b60e202851f544e75 | refs/heads/main | 2023-07-02T19:09:48.770823 | 2021-08-01T21:16:59 | 2021-08-01T21:16:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | from flask_restx import Namespace, fields
from .common.found_schema import body_swg
from .common.errors_schema import server_error, user_not_found, invalid_token
from .common.errors_schema import SERVER_ERROR, USER_NOT_FOUND, INVALID_TOKEN, \
SUCCESS
ns = Namespace(
'projects/<string:project_id>/funds',
de... | [
"brianzambellitello@gmail.com"
] | brianzambellitello@gmail.com |
c886d026554eb02a740ba2ff1fe41d5cda414774 | b385f39c5b701fb6f22796ab951872257ae8398a | /exercicios-secao08/exercicio29.py | ebaee4355b5c1a1ef226ff1e088f5a6abccb4523 | [
"MIT"
] | permissive | EhODavi/curso-python | 5c97a6913bad198ae590519287ed441c95399d80 | cf07e308be9d7516f2cfe7f21c539d214c836979 | refs/heads/main | 2023-08-07T13:44:46.608118 | 2021-06-14T21:40:50 | 2021-06-14T21:40:50 | 356,542,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from math import factorial, radians
def sinh(graus: float) -> float:
soma: float = 0.0
x: float = radians(graus)
for n in range(6):
soma += (x ** (2 * n + 1)) / factorial(2 * n + 1)
return soma
| [
"davi.miau@gmail.com"
] | davi.miau@gmail.com |
d08d566fec8e6362ded5eced9937d5449872b30a | 613d0766a36a0354ed8b7be4c8a552068afe5e71 | /08 Linked List/15 Reverse Linked List/02.py | 45530e293097a676b12012d31b88a5d9f2c7ec75 | [] | no_license | HYLee1008/Python | e9fb2109ed29d11faa37b0a823e603134d85dc28 | 04900b6de1d56c11fbb98d518c9b4cdd37772490 | refs/heads/master | 2022-12-12T12:07:49.198551 | 2020-09-05T12:41:55 | 2020-09-05T12:41:55 | 280,879,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | ### Reverse linked list by iterative
### Iterative consumes 70% memory of the recursive method. And slightly faster.
from datastructure import *
def reverse_list(head):
node, prev = head, None
while node:
next, node.next = node.next, prev
node, prev = next, node
return prev
input = List... | [
"discone1008@gmail.com"
] | discone1008@gmail.com |
e0e14678d39a0ba42b2fbc9715d475d3f2a2c275 | 928a27c89a9f0da9abffe758d158137fc6450e2a | /CODING/Python Problems/Halloween_Sale_function(HackerRank).py | 4142d6c4783cbdd74ac4094483afbd19b18101f9 | [] | no_license | Shantanusharma949/CODING | 0bd06c6a115d24a489528b85922a3950254ee054 | 2322d1d17de3a751f071c24ba2453d80daf94053 | refs/heads/main | 2023-08-19T21:32:50.030051 | 2021-10-31T15:30:53 | 2021-10-31T15:30:53 | 358,306,846 | 1 | 1 | null | 2021-10-31T15:30:54 | 2021-04-15T15:27:12 | C | UTF-8 | Python | false | false | 979 | py | #!/bin/python3
import math
import os
import random
import re
import sys
#
# Complete the 'howManyGames' function below.
#
# The function is expected to return an INTEGER.
# The function accepts following parameters:
# 1. INTEGER p
# 2. INTEGER d
# 3. INTEGER m
# 4. INTEGER s
#
#This function i... | [
"noreply@github.com"
] | Shantanusharma949.noreply@github.com |
0a9eff3139f2ab7ae30808fca9d86965e9e20ee5 | 4ac84972c3c2eefaa0bc593cde94da01f3d61f70 | /gob05_castillo.py | 12514b76d172e7c1c1c3b967e1555fcd6d92ec8e | [
"MIT"
] | permissive | dlunna/gob.selenium | c95cf30083f0a24d2d1e7c9238f452c541a64abb | 9c663e78b880b3363731f6e6f5b6899a972ef7c0 | refs/heads/master | 2020-12-21T20:16:30.867964 | 2020-03-02T19:31:41 | 2020-03-02T19:31:41 | 236,545,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,164 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
# para base de datos
import mysql.connector
tiempo = 1
mydb = mysql.connector.connect(
host="sisinv.upp.edu.mx",
user="inventario2019",
passwd="1a2s3d4f.",
database="inventario2019",
)
# inicializando la base d... | [
"d4v@localhost.localdomain"
] | d4v@localhost.localdomain |
348b445e8bdca1ecf6d7a4842e9a7db13c99e2c3 | 4de4dc68ba5674eefc8f61296558eaa6805951eb | /Decryption/ps6.py | 868b4b8d40ead8924c5e2fb35355edcdb53f46ff | [] | no_license | Guluna/HackerRank-Practice | 08fe19a7e0b35d328e467073df0322432ed3e473 | 264557dca0268a09acc0ec667aa03728c98983f7 | refs/heads/master | 2020-11-29T20:33:26.237883 | 2020-07-27T16:36:50 | 2020-07-27T16:36:50 | 230,210,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,959 | py | import string
### DO NOT MODIFY THIS FUNCTION ###
def load_words(file_name):
'''
file_name (string): the name of the file containing
the list of words to load
Returns: a list of valid words. Words are strings of lowercase letters.
Depending on the size of the word list, thi... | [
"noreply@github.com"
] | Guluna.noreply@github.com |
a2587ba00df0459f84b064d5713f77897fa207c9 | 8f122810d1b604c25e792a9ee28da94bce755a76 | /mytest.py | 59e3119caba0fcc02524ab2f43a1d44ef218b4ed | [] | no_license | rohitkeshav27/Windows-Debugger | c5d9ad54a15b235ca2f9b4fda654007e66152758 | 51ffaf8c100f41f4c8726a58e2d1a205cb7efb7e | refs/heads/master | 2022-05-18T13:10:32.875448 | 2020-04-30T06:39:14 | 2020-04-30T06:39:14 | 260,133,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 10 20:06:00 2020
@author: rohit
"""
import my_debugger
debugger = my_debugger.debugger()
debugger.load("C:\\Windows\\System32\\calc.exe") | [
"noreply@github.com"
] | rohitkeshav27.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.