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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0139a90daa7aba09474a438506fda874d445904a | 71df0a69bcfba49c7a5d0bff5fcd314942f10541 | /viewStatsPage.py | 7dc99083a1166f8666a42bbbede0f46c6385f17f | [] | no_license | linzinha/lvlUP | 24afde28362e62e04ef5c41ffcbd4f44fa4c4ad8 | 17fca44c02c92a8a8a25520b794187c19b6c7ada | refs/heads/main | 2023-05-29T12:36:53.635989 | 2021-06-13T13:36:22 | 2021-06-13T13:36:22 | 376,544,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,358 | py | #########
# Imports
#########
import json
import time
import tkinter as tk
from tkinter import *
################
# Open JSON File
# ##############
with open('stats.json', 'r') as string:
my_dict = json.load(string)
string.close()
####################
# Global Variables
####################
p0 = my_dict['points']... | [
"noreply@github.com"
] | linzinha.noreply@github.com |
e33487b216736e6059584d1fa1c040ace6df1cc7 | 5bfbc89974b7cb29e476c5c8e18d6e363019aacf | /Example/sentiment_lstm_regression.py | 83642cf1479c949bec11858edf1decc1c74e671f | [
"MIT"
] | permissive | lagleki/BayesianRNN | 1cec3f39bb4bc41a965d0443f7b01e1fd4186b9a | 0426c503438aa9106c676e8f68e85aa9f16bd05b | refs/heads/master | 2021-09-06T07:27:11.933093 | 2018-02-03T19:56:02 | 2018-02-03T19:56:02 | 120,124,468 | 0 | 0 | null | 2018-02-03T19:55:26 | 2018-02-03T19:55:26 | null | UTF-8 | Python | false | false | 5,025 | py | # Train a Bayesian LSTM on the IMDB sentiment classification task.
# To use the GPU:
# THEANO_FLAGS=mode=FAST_RUN,device=gpu,floatX=float32 python imdb_lstm_regression.py
# To speed up Theano, create a ram disk:
# mount -t tmpfs -o size=512m tmpfs /mnt/ramdisk
# Then add flag THEANO_FLAGS='base_compiledir=/mnt... | [
"yaringal@gmail.com"
] | yaringal@gmail.com |
2be7b229988ee87da8b2f46796797fd123be5e00 | 20722df255492f591b1a988c7499e1eab6c71a90 | /Ch1-Image_Recognition/stacked_autoencoders_for_mnist_classification.py | b7276e8c60f5905ae6df8947b5ada8ac112426d5 | [] | no_license | solaris33/TensorFlow_Examples | 551f721aa4c97b4735496d5a1aecf742de081fa9 | 122116b268badf27b605d7a3857215474ab99e6a | refs/heads/master | 2020-12-24T19:13:20.622985 | 2018-11-01T12:44:41 | 2018-11-01T12:44:41 | 58,610,121 | 4 | 1 | null | 2016-05-12T05:27:23 | 2016-05-12T05:20:56 | null | UTF-8 | Python | false | false | 6,234 | py | # -*- coding: utf-8 -*-
# MNIST ์ซ์ ๋ถ๋ฅ๋ฅผ ์ํ Stacked AutoEncoder ์์
# ์ ๋ ์ํฌํธ ์ค์
from __future__ import division, print_function, absolute_import
# ํ์ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ค์ ์ํฌํธ
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
# MNIST ๋ฐ์ดํฐ๋ฅผ ๋ค์ด๋ก๋ ํ๋ค.
from tensorflow.examples.tutorials.mnist import input_data... | [
"jinhoyang@snu.ac.kr"
] | jinhoyang@snu.ac.kr |
92a5da607045107bbee7fd23ac0e9e1ec54453da | 0d2811497b377bc3530c3ddc10f4e948ef3ab902 | /launcher/common/Keys.py | c7b1c24ad592f0a93219e61683c4b41f827cacc2 | [
"BSD-3-Clause"
] | permissive | liblit/sampler | a475b44d2a257bc9a2cf93bb5d04e94abc9d15b2 | eaedba51ee8367b9b355e6f85a6c677878160d49 | refs/heads/master | 2021-04-24T21:30:53.227637 | 2018-10-08T02:00:59 | 2018-10-08T02:00:59 | 117,015,273 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | ASKED = 'asked'
MASTER = 'enabled'
def settings():
# always use "schema_id" once Fedora 20 is no longer supported
import gi
key = 'schema_id' if gi.version_info >= (3, 14) else 'schema'
from gi.repository import Gio
return Gio.Settings(**{key: 'edu.wisc.cs.cbi'})
| [
"liblit@cs.wisc.edu"
] | liblit@cs.wisc.edu |
ed5a1888ab5c1d3ceab8561da97ea4f49ae630dc | 5f635d35ec6837142ecdd709af32646c936e36f5 | /ship.py | d7267d61d06ffbec16ed248ac045bdebe3b668bd | [] | no_license | SLinShi/AlinenInvasion | e6b61fc1b40331f4eb7c38c6be5476e9463a40bc | 468adcd796438cd83564ba1e4af79ed586d4f940 | refs/heads/main | 2023-02-25T00:22:51.156284 | 2021-02-03T04:24:16 | 2021-02-03T04:24:16 | 315,885,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | import pygame
class Ship:
# ้ฃ่น็ฑป
def __init__(self, ai_game):
# ๅๅงๅ้ฃ่นๅนถๅๅงๅๅ
ถไฝ็ฝฎ
self.screen = ai_game.screen
self.screen_rect = ai_game.screen.get_rect()
# ๅ ่ฝฝ้ฃ่นๅพๅๅนถ่ทๅๅ
ถๅคๆฅ็ฉๅฝข
self.image = pygame.image.load(
"/Users/shilin/Documents/VSCode/Python/alien_incasion/ima... | [
"anonymity_one@outlook.com"
] | anonymity_one@outlook.com |
34d1d295d4ea0e1a1589db374ba5f46c1c017507 | 6e922c94dc20370de2ad34cd501bdfa824d20515 | /analysis/planner_2D.py | 2b2768b17cc60f1162e12d1aba42f3ad169c6da1 | [] | no_license | funhere/auto-medical-detection | 0dc24c6e1a7ecc98cb33a37876c31c4678e17dfc | 653154b338bb844e73fa2ba931144d39db6f0174 | refs/heads/master | 2021-08-10T11:56:22.009012 | 2020-06-06T00:42:32 | 2020-06-06T00:42:32 | 188,710,527 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,737 | py |
import shutil, os
from analysis.planner_3D import Planner
from bins.analyze_and_preprocess import get_lists_of_splitted_dataset
from preprocessing.preprocessor import Preprocessor2D
from config.default_configs import *
from utils.files_utils import *
from net_architecture.generic_UNet import Generic_UNet
import numpy... | [
"noreply@github.com"
] | funhere.noreply@github.com |
0019c8ec5dd7461f3fd5921e275c326e9f78ab39 | 66149a32aca9d64f08d3ba111ede8613cd1cfb25 | /11-06-2020_SAMBIT_EMWAVES.py | a99ed74f578c7afa73afd522b853a49bd88672d6 | [
"MIT"
] | permissive | MAVIN-07/EM-WAVES-SAMBIT | ad3180ffe6a278f5ac55fe369832f5639f26d3f3 | c7c72111eed14a2aaa551306811fa1f26ea04f22 | refs/heads/master | 2022-12-11T08:17:21.756078 | 2020-06-17T22:04:04 | 2020-06-17T22:04:04 | 273,086,413 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,778 | py | #CREATED AND MAINTAINED BY: SAMBIT KUMAR MISHRA
#Email-ID: sambitmishra1968@gmail.com
import math
import cmath
import matplotlib.pyplot as plt
import matplotlib.image as img
#========================================================================================================================================... | [
"noreply@github.com"
] | MAVIN-07.noreply@github.com |
d8b9910b487bbb5eb2e7b49068c6d3b302e6cd43 | 7043eec45732b05686dd7da397f922339efad693 | /TA.py | 892b74546802ad34a83a52569521a4b2a44c031a | [] | no_license | rtgrimm/SpectralKineticsODE | 7fd35f924ad64aac08d76dd1141cf3b38051b82f | 68b3f16372a8294a714dd7df5a6029d1183fd9ae | refs/heads/master | 2023-07-15T06:11:15.368814 | 2021-08-09T17:15:56 | 2021-08-09T17:15:56 | 392,377,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | import numpy as np
from dataclasses import dataclass
from typing import *
from scipy.constants import Planck, speed_of_light, elementary_charge
from scipy.integrate import odeint, solve_ivp
import matplotlib.pyplot as plt
from kinetics import Scaler, Parameters, run
from style import set_style
@dataclass
class TAP... | [
"rygr1645@colorado.edu"
] | rygr1645@colorado.edu |
4a24d53b5b6eb6b7db4ed323a7726a5e0b69cd7b | 16cb142fb04798313c43a073cf1e0ddd6f4bf13b | /timing/resources/time.py | 978a0750832068ee69e9c5e493fb89f1c059e468 | [] | no_license | iRhonin/timing | 46d3b080333fe4b169252cdb37f3d3194fc00072 | 91b7d86ba053cf46df6a3edbdf273947d8a37ae3 | refs/heads/master | 2023-04-30T21:02:26.861632 | 2021-05-14T20:16:12 | 2021-05-14T20:16:12 | 279,684,898 | 0 | 0 | null | 2021-05-14T20:16:13 | 2020-07-14T20:19:47 | Python | UTF-8 | Python | false | false | 2,027 | py | from datetime import datetime
import falcon
from sqlalchemy import func
from timing.authorization import Authorization
from timing.models.time import Time, DATETIME_FORMAT
from timing.paginate import Paginate
from timing.schemas.time import TimeInSchema
class TimesResource(object):
@falcon.before(Authorization... | [
"fatahzade@gmail.com"
] | fatahzade@gmail.com |
c19012af2e5fe52651cc00b9775abc1d3e4e6ea1 | a71d5838e292e2c0c7371f7fc7870c7018820ae1 | /day03/03_pie.py | 71c8ec39a03c52234f30d2660394d2f3d37a995f | [] | no_license | skywalkerqwer/DataScience | be91541c3da383d15ee52d0101d2dbb0289c2fde | 4cfd42f3a9795e295393cdb045852d46e99b6e59 | refs/heads/master | 2020-06-17T11:41:40.113864 | 2019-07-15T09:49:40 | 2019-07-15T09:49:40 | 195,913,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | """
็ปๅถ้ฅผ็ถๅพ
"""
import numpy as np
import matplotlib.pyplot as mp
labels = ['Python', 'JavaScript', 'C++', 'Java', 'PHP']
values = [26, 17, 21, 29, 11]
spaces = [0.05, 0.01, 0.01, 0.01, 0.01]
colors = ['dodgerblue', 'orangered', 'limegreen', 'violet', 'gold']
mp.figure('Pie Chart', facecolor='lightgray')
mp.title('Lang... | [
"15902162780@163.com"
] | 15902162780@163.com |
ebcfe501255bb644caa92394017c550197a10ee4 | d27d98fc322ea3b29b77fdf0a8751bc6a6e4355a | /python/20/ccc20j4.py | 09d8866cfee2b5c41d870b92254d90a5edccd997 | [
"MIT"
] | permissive | sadmanca/ccc-solutions | 9e48279879241b94e746c7ce1c202d66ce5c46f4 | 1ab0d1d7a59eaf0f6b231208a5f42a5eb364caaa | refs/heads/master | 2023-03-05T17:19:18.776037 | 2021-02-17T00:40:30 | 2021-02-17T00:40:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | # COMPLETE
t = input()
s = input()
l = len(s)
shifts = set()
shifts.add(s)
for i in range(l-1):
s = s[1:]+s[0]
shifts.add(s)
cyc = False
for string in shifts:
for i in range(0, len(t)-l+1):
if string == t[i:i+l]:
cyc = True
if cyc == True:
print("yes")
else:
print("no") | [
"41028402+Sadman-Hossain@users.noreply.github.com"
] | 41028402+Sadman-Hossain@users.noreply.github.com |
0847d046a1cea08f4fceb4e24d0e9848c3efd510 | e1bcef91c724a3b89f442079ab51977ce5a6bc2f | /quote/forms.py | 1d803b8df3d24b45e9b8c59cb8586deddbaa426e | [] | no_license | mahdistt/CRM | 48550b1bb8adbd012b254e42edefc69a572a33fc | a1aa33df4ef2e342268f8965d43bf026be61db37 | refs/heads/master | 2023-07-09T05:11:23.497844 | 2021-08-11T18:45:56 | 2021-08-11T18:45:56 | 390,491,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 476 | py | from django import forms
from . import models
class QuoteCreateViewForm(forms.ModelForm):
class Meta:
model = models.QuoteItem
fields = (
'quote',
'product',
'price',
'quantity',
'discount',
)
widgets = {
'qua... | [
"80247767+mahdistt@users.noreply.github.com"
] | 80247767+mahdistt@users.noreply.github.com |
09f920dba59ee54359a4cf44bf01235cf2d05171 | 122779e414685ac95076f440f2809d314800e510 | /src/tests/integration/test_cli.py | 2f9573fd5a48bf3689f6afadd0a0a6530705bcbd | [
"BSD-2-Clause"
] | permissive | alexseitsinger/package-controller | 3fb7a09d2b965630fe11203f6f5c47e664826c7d | 0ee896986cfa17a96bf9fb6afff35dd97f0b1211 | refs/heads/master | 2022-12-11T18:00:17.922442 | 2019-08-21T02:24:35 | 2019-08-21T02:24:35 | 185,510,280 | 2 | 0 | BSD-2-Clause | 2022-12-08T05:50:25 | 2019-05-08T02:10:23 | Python | UTF-8 | Python | false | false | 238 | py | import pytest
from click.testing import CliRunner
from package_controller.cli import main
def test_add():
pass
def test_build():
pass
def test_commit():
pass
def test_release():
pass
def test_version():
pass
| [
"16756928+alexseitsinger@users.noreply.github.com"
] | 16756928+alexseitsinger@users.noreply.github.com |
6924a180ef02d2c2fcdab06a4084459706c24ff6 | ed8bfb44c7d8fd2ef3d0d493d39eba6d7b729aec | /decode.py | 05c18d5140f05ddeb6b1977cef37d543fe16147e | [] | no_license | omri123/text_lord | 5cedeb8fb53c69977b21ec25fe77e2d598614d97 | 59f8095784f702891d24c771281c03ec0402e4f0 | refs/heads/master | 2022-04-09T11:39:20.561554 | 2020-03-12T22:05:04 | 2020-03-12T22:05:04 | 243,927,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,893 | py | import torchtext
from restorant_dataset import START, END
from model import NoEncoderFConvDecoderModel
from archive.utils import load_checkpoint, vocab_to_dictionary
from restorant_dataset import get_dataset
import os
import pickle
import copy
def gready_decode_single(model: NoEncoderFConvDecoderModel, vocab: torcht... | [
"omri.bloch@mail.huji.ac.il"
] | omri.bloch@mail.huji.ac.il |
1e5237044f42dfe836143cd43c09e4bc38b7033a | c12d0e0935aadc52c6ae03d901fcb52e2b8fe4d7 | /task1/solution.py | f3614fd0a3446ed63f3aa00630f3e45ebe2df4f7 | [] | no_license | skeleta/python-retrospective | c19ec29867ea34ff96cd86c7c69fc0e1108d7f1c | e808e007f375fccbbb0ae7082bab0d39b93189fe | refs/heads/master | 2021-01-18T03:14:27.664850 | 2013-04-28T20:18:35 | 2013-04-28T20:18:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | SIGNS = ("ะะพะทะธัะพะณ", "ะะพะดะพะปะตะน", "ะ ะธะฑะธ", "ะะฒะตะฝ", "ะขะตะปะตั", "ะะปะธะทะฝะฐัะธ",
"ะ ะฐะบ", "ะัะฒ", "ะะตะฒะฐ", "ะะตะทะฝะธ", "ะกะบะพัะฟะธะพะฝ", "ะกััะตะปะตั")
RANGES = {1: 19, 2: 18, 3: 20, 4: 20, 5: 20, 6: 20,
7: 21, 8: 22, 9: 22, 10: 22, 11: 21, 12: 21}
def what_is_my_sign(day, month):
return SIGNS[month - 12 - (day <= ... | [
"ivankapukaranov@gmail.com"
] | ivankapukaranov@gmail.com |
442831645ae4c6f34df075f4576fd9a948e313c2 | 649c930c4c5c89b48673b438c8d42f70e6b00cfd | /day 03/ไฝไธ.py | d60c1b0df8e1db4ae550c6e5524337bfd22e6c18 | [] | no_license | zhangchenghao0617/Learn | a0f1ebb9b6248c83e0c87cb756d19b2243722679 | 32cbaacc697d7e5992e077f368c8c80c5900f96e | refs/heads/master | 2023-01-12T07:20:57.911545 | 2020-10-25T09:40:04 | 2020-10-25T09:40:04 | 306,071,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,515 | py | # # 1.ๆๅ้name = "aleX leNb" ๅฎๆๅฆไธๆไฝ๏ผ
# name = "aleX leNb"
# # - ็งป้ค name ๅ้ๅฏนๅบ็ๅผไธค่พน็็ฉบๆ ผ,ๅนถ่พๅบๅค็็ปๆ
# print(name.strip())
# # - ๅคๆญ name ๅ้ๆฏๅฆไปฅ "al" ๅผๅคด,ๅนถ่พๅบ็ปๆ
# print(name.startswith('al'))
# # - ๅคๆญnameๅ้ๆฏๅฆไปฅ"Nb"็ปๅฐพ,ๅนถ่พๅบ็ปๆ
# print(name.endswith('Nb'))
# # - ๅฐ name ๅ้ๅฏนๅบ็ๅผไธญ็ ๆๆ็"l" ๆฟๆขไธบ "p",ๅนถ่พๅบ็ปๆ
# print(name.replace('l','p'))
# # - ๅฐna... | [
"zhangchenghao0617@qq.com"
] | zhangchenghao0617@qq.com |
49bee32f7d8ddec8715ce98a577f088ab50e9d45 | a961a54e8d466b1fb98aee86d437ed6872e98d18 | /shows/management/commands/get_english_names.py | 403bad44964aea456ad293b48eb19dc7b5d768de | [] | no_license | akaram94/animemelody | 6bcc75e2746def0f3638b0e6acf6cf5b0e2b6f7c | 2adf79f232d06733bbc8af4def3778ea55838efa | refs/heads/master | 2023-08-19T00:19:43.688266 | 2020-07-27T16:24:56 | 2020-07-27T16:24:56 | 268,275,539 | 0 | 0 | null | 2021-09-22T19:08:05 | 2020-05-31T12:29:51 | Python | UTF-8 | Python | false | false | 1,233 | py | from django.core.management.base import BaseCommand, CommandError
from shows.models import Show, Theme
import datetime
import requests
import json
import time
class Command(BaseCommand):
help = '''
Used to import english show names from the Jikan API (rate limit of 2s)
'''
def handle(self, *args, **op... | [
"root@DESKTOP-FIFE14Q.localdomain"
] | root@DESKTOP-FIFE14Q.localdomain |
ef967c7df544cf14fd81acac69d9aa53ed4449d0 | 9cd4bd2d3c43d14a78c4f72dd2d8c6900aec56c4 | /TabuadaPython.py | 7f386b00ecc7d585dacc937cfee125710246f99e | [] | no_license | paulorod07/Tabuada | 937005686f0a9fb1c5b8a37dc49ae7178477c97f | 14ced3e51ec0ce2c9c7c92bdf6696ce24a956a45 | refs/heads/master | 2020-04-27T16:22:05.703246 | 2019-03-08T06:41:19 | 2019-03-08T06:41:19 | 174,481,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | print('Bem Vindo a Tabuada!')
numero = int(input('Digite um numero para a tabuada: '))
for n in range(11):
print(numero, 'x', n, '=', numero * n)
| [
"noreply@github.com"
] | paulorod07.noreply@github.com |
e714abb10599586f922ae28ac3e229eafdfbbc3b | 711ca7d1996f3eab0c9f8338fd49c9067274d5e5 | /image_augment-master/test_detect_multi_process.py | 34ce758c0c9c30786eaa30c6bbdf0b7112d8c2c3 | [] | no_license | zj463261929/tools | 408ccdbe93ae00d4825b74d6e37cc2bd77208504 | 47545fbbb6779378ad833a7b84c89cc91848e345 | refs/heads/master | 2020-03-20T13:01:10.970807 | 2019-07-22T02:36:12 | 2019-07-22T02:36:12 | 137,446,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,139 | py | #coding=utf-8
import codecs
import random
import cv2, os
import sys #sysๆฏPythonๅ
ๅปบๆ ๅๅบ
sys.path.append(os.getcwd())
from function import *
import function as FUN
import math
import numpy as np
import time
from test_detect_single import img_aug
from multiprocessing import Process
image_dir = "/opt/zhangjing/Detectron/dat... | [
"zhagnjing1@mail.e-u.cn"
] | zhagnjing1@mail.e-u.cn |
424d47cd8ca4fd8aff8087b739e35b6c874f1161 | 35ce7e974e1651b1031841d84bce190be73be196 | /autonomous_car/system/controller/pid_controller.py | 7da59857bae3bd7f590eaffa8b93d5e6a45e0ef8 | [] | no_license | th-sato/py-graduate-final-project | 459b515b1ba4629fb55ca0f028f0bb92ab715167 | 48d7afb0c0c49ed98a1263c9efdfcf26e99673cd | refs/heads/master | 2022-01-25T15:46:28.268045 | 2019-07-07T03:48:02 | 2019-07-07T03:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py |
class PIDController:
def __init__(self):
# Constantes do controlador
# Proporcional
self.KP = {'angle': 250.0, 'speed': 5.0}
# Integral
# self.KI = {'angle': 30.0, 'speed': 1.0}
# Derivative
# self.KD = {'angle': 1.0, 'speed': 1.0}
self.max_error = 10... | [
"thiagosato22@hotmail.com"
] | thiagosato22@hotmail.com |
f15414bf81d05d0860a3345a7f7b0679f6cbba74 | db35cba13f89601467b4bb4553d2b648c18fc3fb | /stores/topshop.py | 8e7c906ff53b33b1ba4e7916231b878688d31d1a | [] | no_license | jitsejan/outfitter | e6d73fcc2ec46c5236207c8bb8e1e72fc8929c38 | 53faab3e30e312bbdbc4ca0154efe35592708a8b | refs/heads/master | 2023-01-02T20:15:12.519289 | 2016-09-15T14:07:00 | 2016-09-15T14:07:00 | 309,139,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,113 | py | ################################################################################
# Application: Outfitter
# File: topshop.py
# Goal: topshop.py will retrieve specific information from a
# given Topshop link and save the data to a variable
# Input: url of websit... | [
"jitsejan@gmail.com"
] | jitsejan@gmail.com |
f6cc157fcac65c81a3809080db0f1aac9d4e2f7d | 82f40f23ea87d8ed09974a6ce87418cb7934b14b | /Logistic Regression & MultiLayer Perceptron/Code/logistic_kclass.py | 83abd0da19f525bde30fef8e517fe84551510fd0 | [] | no_license | priyankpshah/DataAnalysis_MachineLearning | 22a69bea1426d3291461177a4ddfd67a9f19741b | 68c7a27a84b341a2a19d7481410536c23750fa24 | refs/heads/master | 2021-06-08T14:51:05.167801 | 2016-12-15T21:37:28 | 2016-12-15T21:37:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,061 | py | from __future__ import division
from sklearn.datasets import load_iris, fetch_mldata
from sklearn.cross_validation import KFold
import numpy as np
def indicator(class_fact, class_val):
ind = []
for label in class_fact:
if label == class_val:
ind.append(1)
else:
ind.appe... | [
"priyank687@gmail.com"
] | priyank687@gmail.com |
668cd341318eeaefb3cfccd3c9694710dc5d5f46 | 6dec3256279f73c563b116a8fa44900c4b51a4ce | /scrapy_demo/scrapy_demo/pipelines.py | 736cf257e01c3b8c355daf21b7e4d34a1cf2bf32 | [] | no_license | gannonk08/scrapy-demo | 6802cfbe109ff428f58c5e9957ac109bfed282a0 | 86939c56b83c9142ac129f02769770128d1f6fc6 | refs/heads/master | 2020-07-05T22:50:47.026269 | 2016-11-17T21:09:01 | 2016-11-17T21:09:01 | 73,976,758 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import psycopg2
import logging
from spiders.items import awayTeamRushItem
from scrapy.conf import settings
from scrapy.exceptio... | [
"gannonk08@gmail.com"
] | gannonk08@gmail.com |
595635a1e4beaf535e5f7640bd2b7ca17a517b2c | b205909a015abf08dc15133797c465fd58a48352 | /sdes.py | 4d2868d7e9e2d273c541caee44e96f0f1bba4ee5 | [] | no_license | AlexanderFrancoletti/CryptographyHW1 | 2648f5b52053504ac6cbceb7964a596d91c1a4bb | 2d0b728046b91d099c3f6af9996c805db0df566e | refs/heads/master | 2020-03-29T05:20:02.226714 | 2018-09-20T17:02:00 | 2018-09-20T17:02:00 | 149,577,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,547 | py | #Define keys initially
IP = [2, 6, 3, 1, 4, 8, 5, 7]
EP = [4, 1, 2, 3, 2, 3, 4, 1]
IP_inverse = [4, 1, 3, 5, 7, 2, 8, 6]
P10 = [3, 5, 2, 7, 4, 10, 1, 9, 8, 6]
P8 = [6, 3, 7, 4, 8, 5, 10, 9]
P4 = [2, 4, 3, 1]
sbox0 = [[1, 0, 3, 2],
[3, 2, 1, 0],
[0, 2, 1, 3],
[3, 1, 3, 2]]
sbox1 = [[0, 1, 2, 3],
... | [
"alexander.francoletti@gmail.com"
] | alexander.francoletti@gmail.com |
45deb898113df9ae83c65ce0424014c7fb729b1e | 5ee088a8573a305ea30bfc6d083c4ec6a1112d1f | /doule_exit/InitialPedestrian.py | d22aa771df9f3d3e6f99b9247685e1904db665b2 | [] | no_license | Poloma07/CA_Multi_Exits | f176d3c68625e6ab571b08c20229416960931659 | c1736861c81a4328d9344522cc530bda7a8f67a3 | refs/heads/master | 2020-04-18T16:57:45.466170 | 2019-01-13T12:24:39 | 2019-01-13T12:24:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,499 | py | import random
import numpy as np
import Data, Block
import matplotlib.pyplot as plt
def creatPeople():
'''
ไบง็้ๆบ่กไบบ
:return:่กไบบๅ่กจ
'''
allBlock = [] # ็จไบๅญๆพๆ ผๅญ
allPeople = [] # ็จไบๅญๆพ่กไบบ
# ๅฐๆๆๆ ผๅญๅ
จ้จๅญๅ
ฅๅ่กจ'
for i in range(1, Data.ROOM_M):
for j in range(1, Data.ROOM_N):
b = Bloc... | [
"1279010287@qq.com"
] | 1279010287@qq.com |
0da39b2b6595f0a25f70e3735197ce8c382da45b | c7522a46908dfa0556ed6e2fe584fd7124ee5cdc | /ApplicationUsers/views.py | 80dd9c405729e423ad243becbd6d5c57ca1b5930 | [] | no_license | stheartsachu/Eventlee | 461cf35961a7f294229d6c611e58a09d9f4e1eb5 | 6b67dfc873203f1322c16664923ffe5a760d50ed | refs/heads/master | 2022-11-13T14:48:39.097718 | 2020-06-30T04:54:45 | 2020-06-30T04:54:45 | 276,000,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | from django.shortcuts import render,HttpResponse,redirect,HttpResponseRedirect
from ApplicationUsers.form import ApplicationuserForm
# Create your views here.
from ApplicationUsers.models import users
def home(request):
return render(request,"index.html")
def Contact(request):
return render(request,"contact.htm... | [
"seartsachu@gmail.com"
] | seartsachu@gmail.com |
0153dcd0356625cc5eeb56abefd0fa3a6ed54d56 | 1f0837796a613fcf1788b2361fe4d8d5943bcc47 | /Tarea Nยบ1/Ejer7.py | 5bd8720ac4dfec14680de5faa08d98c167e2b592 | [] | no_license | LeonardoArroba/Tarea-de-Estructura | 557f47206c007dad6a7ed5ecc8e29f73c1ab895c | d37e9e9fdf1a562c8f5d29c5fee8e836d87a32c9 | refs/heads/main | 2023-06-02T12:36:43.153125 | 2021-06-30T02:53:46 | 2021-06-30T02:53:46 | 381,556,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | #Determinar la cantidad de dinero que recibirรก un trabajador por concepto de las horas extras trabajadas en una empresa,
# sabiendo que cuando las horas de trabajo exceden de 40, el resto se consideran horas extras y que รฉstas se pagan al doble
# de una hora normal cuando no exceden de 8; si las horas extras exced... | [
"noreply@github.com"
] | LeonardoArroba.noreply@github.com |
cdcf3cbc200241606b4cc9140c33f8aa85da216f | 2c332ae49c8130ab88ee9be7b092f66e4f88324a | /MyOwnSolution/compare_images2.py | 91e3c8d21c645f96e8bf20b90a1abd0d7e2fdea6 | [] | no_license | lalona/parking-spot-classifier | fbc34b385d3620513126c91ecc106c3727a0be63 | 835ae0a514daecf623ba456b2ee5cab26123f939 | refs/heads/master | 2020-04-07T09:44:28.396823 | 2019-05-02T19:51:14 | 2019-05-02T19:51:14 | 158,263,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,367 | py | """
La idea es simple: con una imagen donde el espacio se encuentre vacio se compara con otra imagenes y dependiendo las diferencias
se concluye si estรก ocupado o vacio
"""
import cv2
import os
from skimage.measure import compare_ssim as ssim
from skimage.measure import compare_nrmse as nrmse
import pickle
import argp... | [
"sebastianxiro@gmail.com"
] | sebastianxiro@gmail.com |
6846461a15b491de3c42e18d6aa4d646d87bad7a | 4bd5e9b67d98bfcc9611bd8b774c9ab9f4f4d446 | /Pythonๅบ็ก็ฌ่ฎฐ/13/ไปฃ็ /3.ๅค็ปงๆฟ.py | 1693fc8f7b66401a95f44f287cfcb7d4c149f841 | [] | no_license | zhenguo96/test1 | fe21510aea7feb674e52fd7a86d4177666f841c5 | 0d8de7e73e7e635d26462a0bc53c773d999498be | refs/heads/master | 2020-05-03T13:09:53.592103 | 2019-04-06T07:08:47 | 2019-04-06T07:08:47 | 178,646,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | # # ๅค็ปงๆฟ
# class Base1:
# def __init__(self,name):
# self.name = name
# def t1(self):
# print("Base1")
#
# class Base2:
# def __init__(self,name):
# self.name = name
# def t2(self):
# print("Base2")
#
# class Base3:
# def __init__(self, name):
# ... | [
"1148421588@qq.com"
] | 1148421588@qq.com |
a9c4497452165d55ce911de902394c5c85022e33 | 1d1cb14e6d0b2a439348d6677eb9e8e72390d39f | /01_LiniarRegression/Live/linearRegressionWGradientDescent.py | 9be2c569d79cf3a532fbfc0bbbbd1a1c066e0416 | [] | no_license | EduardoFAFernandes/MyDeepLearningIntro | 2c7b2278ed1cf446c9f3656ae9dd421c22648933 | a35a43f0690ddfa499097335d9b8aa058d1db021 | refs/heads/master | 2021-09-05T06:51:33.479757 | 2018-01-25T01:07:54 | 2018-01-25T01:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,514 | py | from numpy import *
def compute_error_for_given_points(m, b, points):
totalError = 0
for point in points:
totalError += (point[1] - (m * point[0] + b))**2
return totalError / float(size(points))
def step_gradient(current_b, current_m, points, learning_rate):
gradient_m = 0
gradient_b = 0
N = float(len(points)... | [
"nomeaocalhas3@gmail.com"
] | nomeaocalhas3@gmail.com |
3a319731bfbf4784b70ae3333efef1452e0f0744 | bb0af8077407b27f8c3b787d32bdd9c4b37e977a | /fitmodel_densitysplit/do_fitting/modelfitfullk.py | 82cbe8d7dac400a6d8e1c6ddf94bc83a4de38ec0 | [] | no_license | JulianWack/IfA-SummerStudent-2022 | 94948169acc830da5b2b1bb5d227fb4e782dbe1c | d1c6ebe48e0a527fe6138c73adc35464538e2e04 | refs/heads/main | 2023-04-15T02:51:59.098422 | 2022-09-10T10:52:38 | 2022-09-10T10:52:38 | 508,616,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,407 | py | # Fit Kaiser with FoG term over largest possible k range
# Identical to modelfit.py excepet for storing paths and line 94
import numpy as np
import matplotlib.pyplot as plt
from scipy.special import legendre, erf
from datetime import timedelta
import time
from os import mkdir, listdir
import helper_funcs as hf
from as... | [
"jwack@cuillin.roe.ac.uk"
] | jwack@cuillin.roe.ac.uk |
964887bf2513e38eadfe80819f983c5826f676de | 0b9f6534a99ff551f0006df78a24e8af30340580 | /Source/BackupFiles/HDAPI/hdapi/API ๋ฌธ์/python_sample.py | 08a1d2e3fc1c3952637678e603a976500b276f82 | [] | no_license | jayirum/ChartProjSvr | 9bac49865d1e081de0cbd7559d0d2cbdd26279c2 | d69edfcb3ac3698e1bdfcf5862d5e63bb305cb52 | refs/heads/master | 2020-03-24T03:22:18.176911 | 2019-07-05T01:38:03 | 2019-07-05T01:38:03 | 142,416,528 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 130,254 | py | #-*- coding: utf-8 -*-
# Form implementation generated from reading ui file './python_sample.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
# Python version 2.7
from PyQt4 import QtCore, QtGui
#from PyQt4.QAxContainer import *
#from PyQt4.QtCore import *
fr... | [
"jay.bwkim@gmail.com"
] | jay.bwkim@gmail.com |
b19eb4c4a4c8e2182848c6efdc592bdd73bafd78 | 7f004635957d252b7e8d7d6e0aee47e24aca0b82 | /catkin_ws/src/sound_play/src/sound_play/libsoundplay.py | 12c62a885fc10f5d991711f131baaf324d3e99cd | [] | no_license | Pontusun/CIS700_Team2 | 75bef2305f5ccb7992f152b9fca20ea475077833 | 17b125b652d3be41884d6f625b7424b00ca0a6dd | refs/heads/master | 2021-01-10T16:02:19.327233 | 2016-02-11T22:20:46 | 2016-02-11T22:20:46 | 44,488,662 | 1 | 3 | null | 2015-11-29T19:54:32 | 2015-10-18T17:35:24 | CMake | UTF-8 | Python | false | false | 13,215 | py | #!/usr/bin/env python
#***********************************************************
#* Software License Agreement (BSD License)
#*
#* Copyright (c) 2009, Willow Garage, Inc.
#* All rights reserved.
#*
#* Redistribution and use in source and binary forms, with or without
#* modification, are permitted provided that ... | [
"genesis@nuc"
] | genesis@nuc |
96f4d811c08062451b1b929e346ee171461170de | 18aee5d93a63eab684fe69e3aa0abd1372dd5d08 | /test/legacy_test/test_poisson_op.py | ee66d578014c70395ec3525f8118d2780886458c | [
"Apache-2.0"
] | permissive | Shixiaowei02/Paddle | 8d049f4f29e281de2fb1ffcd143997c88078eadb | 3d4d995f26c48f7792b325806ec3d110fc59f6fc | refs/heads/develop | 2023-06-26T06:25:48.074273 | 2023-06-14T06:40:21 | 2023-06-14T06:40:21 | 174,320,213 | 2 | 1 | Apache-2.0 | 2022-12-28T05:14:30 | 2019-03-07T10:09:34 | C++ | UTF-8 | Python | false | false | 8,481 | py | # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | Shixiaowei02.noreply@github.com |
7bed90a14fc2ce416d14e56c5bf265e8b646487f | 7d3b096f803d1a47ad71a5c8aab30ba3aa67828c | /chibi_file/__init__.py | fe22184683cfdc5c75ca908282fad7a086a9d2bc | [] | no_license | dem4ply/chibi_file | 462244dac712d88915f2b931c5f0822f6d1fa937 | d27cef794512014b1602486edd0235052b38087a | refs/heads/master | 2020-12-03T05:09:15.825690 | 2017-08-23T09:36:57 | 2017-08-23T09:36:57 | 95,737,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | import mmap
import os
import shutil
def current_dir():
return os.getcwd()
def inflate_dir( src ):
if '~' in src:
return os.path.expanduser( src )
else:
return os.path.abspath( src )
def is_dir( src ):
return os.path.isdir( src )
def is_file( src ):
return os.path.isfile( src ... | [
"dem4ply@gmail.com"
] | dem4ply@gmail.com |
d6e8faee78b555a964bcdabf9d7b434fba09a3c0 | b96f1bad8a74d31d8ff79bc955813bfcd17d7b26 | /24. Swap Nodes in Pairs.py | 75e6d9a0451fd14aadd62f665ddbd922cfa44910 | [] | no_license | brianhu0716/LeetCode-Solution | e7177af15e84e833ce8ab05027683ed4ac489643 | 158a4359c90b723545b22c4898047274cc1b80a6 | refs/heads/main | 2023-07-11T05:29:56.783795 | 2021-08-28T12:53:14 | 2021-08-28T12:53:14 | 374,991,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 11 15:06:14 2021
@author: Brian
"""
'''
ไบคๆ็ธ้ฐๅ
ฉnode็ๅผๅณๅฏ
'''
class Solution:
def swapPairs(self, head: ListNode) -> ListNode:
while not head or not head.next : return head
ptr = head
while ptr and ptr.next:
temp = ptr.val
... | [
"85205343+brianhu0716@users.noreply.github.com"
] | 85205343+brianhu0716@users.noreply.github.com |
b7e89b7513c6151d39dc8adad4fee33e8afcf8f1 | 09cc8367edb92c2f02a0cc1c95a8290ff0f52646 | /ipypublish_plugins/example_new_plugin.py | 2fe177802ec9fd3259ca9ac9ac002ef160f3c1f2 | [
"BSD-3-Clause"
] | permissive | annefou/ipypublish | 7e80153316ab572a348afe26d309c2a9ee0fb52b | 917c7f2e84be006605de1cf8851ec13d1a163b24 | refs/heads/master | 2020-04-13T16:08:59.845707 | 2018-07-30T18:26:12 | 2018-07-30T18:26:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py | """html in standard nbconvert format, but with
- a table of contents
- toggle buttons for showing/hiding code & output cells
- converts or removes (if no converter) latex tags (like \cite{abc}, \ref{})
"""
from ipypublish.filters.replace_string import replace_string
from ipypublish.html.create_tpl import create_tpl
f... | [
"chrisj_sewell@hotmail.com"
] | chrisj_sewell@hotmail.com |
003e7a2f14683e4f88eca45a7c30f8fd449eba92 | aafedf44cbb6a2fd0616f01311e59bc55d19a87a | /todo/notes.py | 42ee723a6e0d7170fed945cff77a7390a0c070dc | [
"MIT"
] | permissive | rakeshsingh/todo.txt | 57ae6b86a9815945eebe9a2f25894ae5df060326 | 6d9d13aae99a4714bfa67c1c7b9d7d11b1ce6460 | refs/heads/master | 2021-08-16T22:13:24.960790 | 2021-06-30T20:37:53 | 2021-06-30T20:37:53 | 144,942,401 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,986 | py | import argparse
from datetime import datetime
import os
import re
import logging
from .log import setup_logging
from .exceptions import (
InvalidNotesFile,
)
from .utils import(
print_colorful,
set_file,
get_file,
)
from .constants import (
DEFAULT_FILE_SEPERATOR,
DEFAULT_FILE_SUFFIX,
DEFA... | [
"kumar.rakesh@gmail.com"
] | kumar.rakesh@gmail.com |
c02698bcbb5677d5aa1cdf687d66869a34eea59c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02742/s024664971.py | 37251941a04a71608f69d756b2f8eb6bf24e8a52 | [] | 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 | 259 | py | H, W = [int(_) for _ in input().split()]
if H == 1 or W == 1:
ans = 1
else:
ans = (H // 2) * (W // 2) * 2
if H % 2 == 1:
ans += W // 2
if W % 2 == 1:
ans += H // 2
if H % 2 == 1 and W % 2 == 1:
ans += 1
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7374ce7e683ccf1d4913b6f64fb04fb50b016df7 | 6c686d118e6d3072b3694c02c684a6619d4dd03e | /rsdns/tests/test_client.py | cb34bcfaef1aa74df689f00debfbff8959f697df | [
"Apache-2.0"
] | permissive | masthalter/reddwarf | 02e7b78e1e61178647fe8d98ab53eadfabe66e7f | 72cf41d573cd7c35a222d9b7a8bfaad937f17754 | HEAD | 2016-11-08T16:12:16.783829 | 2012-04-26T22:26:56 | 2012-04-26T22:26:56 | 2,387,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,033 | py | import httplib2
import mox
import unittest
from eventlet import pools
from novaclient.client import HTTPClient
from novaclient import exceptions
from rsdns.client.dns_client import DNSaasClient
ACCOUNT_ID = 1155
USERNAME = "test_user"
API_KEY="key"
AUTH_URL="urly"
MANAGEMENT_BASE_URL="mgmter"
class FakeResponse(ob... | [
"tim.simpson@rackspace.com"
] | tim.simpson@rackspace.com |
89b926a667374d24e238ffecadfdddc4cc558e8b | 79164d3ac85ab44b8b29dbea8ff7395b1bf15cba | /configurations/configurations.py | 8b3390c66948a3f2bb2856b3d26bbda53e6ce345 | [] | no_license | ReubenBagtas/pytestFramework | 60cb3daa5a8613ef0bca4f21d3282cdfa2cfd6a0 | cceca23007aab71447949d54949a0c306a4281f1 | refs/heads/master | 2020-06-02T04:06:45.139851 | 2019-06-09T16:34:38 | 2019-06-09T16:34:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | ALPHA = {}
DELTA = {}
PROD = {}
DEMO = {
'google-homepage': 'https://www.google.com'
}
DEFAULT = {} | [
"reubenbagtas.com"
] | reubenbagtas.com |
919cfaed50624e9fb97a068432bd5441d59ed4a1 | ff9c646af161bc4d1d38093380d8e2deb54f42d1 | /MiniAODAnalysis2/MiniAODAnalysis2/python/ConfFile_cfg.py | e4fe4e7ad2a2e67f021cd0c065696543022fb7a7 | [] | no_license | MatthiasHamer/CMS | 3ab99a9008324e104913c03c2aa322a816a2d582 | 3594ba61e5d794917cf5e0136da743fd5e6190f9 | refs/heads/master | 2016-09-10T03:55:30.810030 | 2015-07-27T16:45:40 | 2015-07-27T16:45:40 | 22,997,971 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Demo")
process.load("FWCore.MessageService.MessageLogger_cfi")
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
process.source = cms.Source("PoolSource",
# replace 'myfile.root' with the source file you want to use
file... | [
"Matthias.Hamer@cern.ch"
] | Matthias.Hamer@cern.ch |
5fb4b852b0812c437735609954ef8693db355baf | 75802efe7ac5e39d12c90b1ab91028f7a83f3623 | /ex3_2_nonlinear_model.py | 5527d8f1c41efad01b46792a6808fa3434ad63ef | [] | no_license | AOE-khkhan/PytorchZeroToAll | fbd5ecba967a4d7316667c028af37340518c451d | f8d9a392e44197de6c593dfd4b32cb192d3a6ba9 | refs/heads/master | 2020-09-02T12:21:32.800832 | 2018-05-09T12:38:52 | 2018-05-09T12:38:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py | x_data = [1.0, 2.0, 3.0]
y_data = [6.0, 17.0, 34.0]
w2, w1, b = 1.0, 1.0, 0.0 # a random guess: random value
lr = 1e-2 # a learning rate
num_epochs = 100 # numbe rof epochs
# our model forward pass
def forward(x):
return x * x * w2 + x * w1 + b
# Loss function
def loss(x, y):
y_pred = for... | [
"sbkim0407@gmail.com"
] | sbkim0407@gmail.com |
a911b9df049a048325fc20b414321d00fb1d10f4 | 64d36f801ff52465bb04b6783fab26359ffc6177 | /python-basic/meta10.4.py | 27ee8518f5623e3e896ed81b39d4010990855314 | [] | no_license | asiachrispy/tensor | 3ee3257e4c7cc518677395f81158a92339d410a2 | 29bbcd6350d3e4ce8363b25e86d708bce6612eac | refs/heads/master | 2021-01-11T20:19:14.381846 | 2018-05-15T09:33:13 | 2018-05-15T09:33:13 | 79,088,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | # early stopping
from numpy import loadtxt
from xgboost import XGBClassifier
from sklearn.cross_validation import train_test_split
from sklearn.metrics import accuracy_score
# load data
dataset = loadtxt('pima-indians-diabetes.csv', delimiter=",")
# split data into X and y
X = dataset[:,0:8]
Y = dataset[:,8]
... | [
"huangzhong@jd.com"
] | huangzhong@jd.com |
10a0f0560d4f34d9937c65d9b6b1f0b3ba125dcb | 4d8a66ebd98d18e407c20c93d4268b85f5548ed4 | /public/http_request.py | 9c15a12525a537248fd19e00abbaff92638d1ed6 | [] | no_license | 2295256562/API_Project | 57cc40a9c79e855aa30a25db820bbffb0add6410 | 66b72690d765ed96a9d8ae72debeaba4fe7a5073 | refs/heads/master | 2022-12-14T10:20:32.753852 | 2019-10-10T13:40:22 | 2019-10-10T13:40:22 | 213,394,060 | 0 | 0 | null | 2022-12-08T06:42:03 | 2019-10-07T13:42:25 | Python | UTF-8 | Python | false | false | 1,913 | py | import copy
import requests
from config.globals import headers
from config.globals import login_url
from functools import lru_cache
class HttpRequest:
def __init__(self):
self.headers_teml = {
'content-type': 'application/json',
'token': None
}
@lru_c... | [
"xinman.kuang@daddylab.com"
] | xinman.kuang@daddylab.com |
5b6ae4546dda852369334665c79612273e580227 | 0eaf0d3f0e96a839f2ef37b92d4db5eddf4b5e02 | /past3/e.py | 6a5af7eb3744903d23f04c0de4ad30e373c33a27 | [] | no_license | silphire/atcoder | b7b02798a87048757745d99e8564397d1ca20169 | f214ef92f13bc5d6b290746d5a94e2faad20d8b0 | refs/heads/master | 2023-09-03T17:56:30.885166 | 2023-09-02T14:16:24 | 2023-09-02T14:16:24 | 245,110,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | n, m, q = map(int, input().split())
e = [set() for _ in range(n)]
for i in range(m):
u, v = map(int, input().split())
u -= 1
v -= 1
e[u].add(v)
e[v].add(u)
c = list(map(int, input().split()))
for i in range(q):
s = tuple(map(int, input().split()))
vv = s[1] - 1
print(c[... | [
"silphire@gmail.com"
] | silphire@gmail.com |
9378b601770bd4c71b6a616ad9a7a895ad48a7b2 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5658571765186560_1/Python/StefanPochmann/D.py | feca86f2ed13ba681c7c3230c60ce03f3e2c21f7 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | #f = open('D.in')
#def input():
# return next(f)
T = int(input())
for x in range(1, T + 1):
X, R, C = map(int, input().split())
A = R * C
s, S = sorted((R, C))
gabriel = A % X == 0 and \
(X == 1 or
X == 2 or
X == 3 and s >= 2 or
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
1537c16957f6dab218fa76a979c37a5ba45f9468 | 0b4b1dd3e5652572571128750f31d088b28b19ad | /blog/views.py | 926c879a7599aea1421bbf3987c9a362189fe6b7 | [] | no_license | cozynn/djangoProject | 66d74d70efb8e0efeb4a2a21146e4a4473ab50e0 | 1bf95b7b906ce030616e994c091c9693e34c30ab | refs/heads/master | 2023-02-02T19:07:37.276396 | 2020-12-20T19:23:02 | 2020-12-20T19:23:02 | 323,114,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.utils import timezone
from .models import Post
from .forms import PostForm
# Create your views here.
def post_list(request):
posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('-published_date')
return render(req... | [
"cozynn@naver.com"
] | cozynn@naver.com |
3c3d8847ece82de5f4ddb2fa122ea976e7da211e | 2ee3a2b8971118b1a1e8c101382702d698021ad5 | /weather/models.py | 8372f28956277f086c9e5f53ff17faa6a968168c | [] | no_license | manikshahkataria/weather | 29a34264fd281cf26758be06d19dd19bbd226cfc | 1bb5160caab2dc287118ab7ed4a25cf575453ee4 | refs/heads/master | 2022-12-11T07:50:28.988645 | 2019-01-19T10:22:10 | 2019-01-19T10:22:10 | 163,946,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | from django.db import models
class City(models.Model):
name= models.CharField(max_length=25)
def __str__(self):
return self.name
class Meta:
verbose_name_plural='cities'
# Create your models here.
| [
"manikshah1998@gmail.com"
] | manikshah1998@gmail.com |
170427ab7a1e4482bd8912d41bdaa5ebbaf1c595 | fe969d059327d767c9eb442a441395fd5e389d6a | /OriginalCode-v1/create_graphs.py | 09812b2133780e5e29a5211411aabf3c7a09eb36 | [
"MIT"
] | permissive | Wayne-Bai/Graph | ba514418261189a89801ff10839fbfb651d98dc7 | 4b563c824d946471393a1c404810d6f39a49f7fb | refs/heads/master | 2022-12-18T20:32:06.797842 | 2020-09-16T14:12:50 | 2020-09-16T14:12:50 | 277,702,901 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,766 | py | import networkx as nx
import numpy as np
from utils import *
from data import *
from data_process import Graph_load_batch as ast_graph_load_batch
def create(args):
### load datasets
graphs=[]
# synthetic graphs
if args.graph_type=='ladder':
graphs = []
for i in range(100, 201):
... | [
"bwh.buaa@gmail.com"
] | bwh.buaa@gmail.com |
8f296f11eca9ea2bac005150d59334d961aca574 | 2e423a357321278e08fb009812f5fd2f794f66e5 | /users/migrations/0001_initial.py | 44c4896eefc330924229af13f6fc98432e429d7d | [] | no_license | rafnixg/platzigram | 2a0f5d4c5994be31401408fd3176f57beb1da98e | e51a9d92c14c23d0de24cdda78ce9683955c43e3 | refs/heads/master | 2022-04-27T12:04:21.549548 | 2020-01-17T21:26:18 | 2020-01-17T21:26:18 | 206,177,266 | 0 | 0 | null | 2022-04-22T22:25:27 | 2019-09-03T21:41:51 | Python | UTF-8 | Python | false | false | 1,116 | py | # Generated by Django 2.2.5 on 2019-09-04 17:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"rafnixg@gmail.com"
] | rafnixg@gmail.com |
c7293eeb3014b78e8398f1c4818bd0ae1e72f0a8 | 7ddae3bb754cadccae7bb9a9e11986c5d3bc06b2 | /sample/getweather.py | d99bd9b98f4d400b82dc3ae5c90f9567613ae096 | [
"MIT"
] | permissive | joembis/weather_texter | b9fa1449ad9097a292362556c26e4d2700713ed2 | 046fdf6811847072662b52e3873fae8bd45a8e85 | refs/heads/main | 2023-03-04T09:16:44.055293 | 2021-02-15T10:42:17 | 2021-02-15T10:42:17 | 339,039,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,469 | py | import requests
from datetime import datetime as dt
from datetime import timedelta
def request_weather(url):
"""request the weather from openweathermap.org API. Returns a dict of the json file"""
response = requests.get(url)
response_dict = response.json()
return response_dict
def parse_weather(weat... | [
"76848685+jobororo@users.noreply.github.com"
] | 76848685+jobororo@users.noreply.github.com |
7587bb7173fe75660b164c360fe327e5f35df3c5 | 6e8b2c9cd80af70fc070085a07d8f34216d16ec1 | /Task 25/main.py | 7e8a4623cd9610f3db37fea47aca067d85871129 | [] | no_license | tregubchenko-dima/modern_tech_programming | 65957a8da63903e17f8421c84379d3312ece3521 | 1aa824f9f5ef32772cfc61fa4d53ab1f898594fb | refs/heads/master | 2023-04-09T04:54:23.166673 | 2021-04-27T18:51:28 | 2021-04-27T18:51:28 | 352,748,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | from random import randint
from math import sqrt
def BozoSort(values, asc=True):
if isinstance(values[0], list):
list_temp = []
for i in values:
for j in i:
list_temp.append(j)
values = list_temp
num1 = randint(0, len(values)-1)
num2 = randint(0, len(va... | [
"tregubchenko2@yandex.ru"
] | tregubchenko2@yandex.ru |
ab881c94078041feb7fe0fefd3fb0913233feb4b | e715be7aef31a307d2cf09d8a4ecf46ea662826f | /device_simulator/src/orchestator.py | e88831369f171c3e6acd4859ce8da628125314b0 | [] | no_license | GabrielMartinMoran/TFI_UNTREF | 0dcfd0d5b4d69c282ce732a21039c4a69a6530af | e4abc9bc93b840627a008e3af5f4d86b7cd30732 | refs/heads/main | 2023-06-23T11:06:35.138785 | 2021-07-14T13:21:14 | 2021-07-14T13:21:14 | 358,573,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,489 | py | import time
from datetime import datetime
from src.models.energy_sensor import EnergySensor
from src.models.console_display import ConsoleDisplay
from src.models.measure import Measure
from src.repositories.user_repository import UserRepository
from src.repositories.device_repository import DeviceRepository
import conf... | [
"moran.gabriel.95@gmail.com"
] | moran.gabriel.95@gmail.com |
5fc93f5180bbbf9d6e8482073bcb89bf2d923892 | 2c68f9156087d6d338373f9737fee1a014e4546b | /src/connectedk8s/azext_connectedk8s/vendored_sdks/models/authentication_details_value.py | 982b4554803e85c978165d7b651f09cd77ff0c69 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | anpaz/azure-cli-extensions | 8b0d4071c49840da9883f13cb0fd1f4515246ee0 | 847fd487fe61e83f2a4163a9393edc9555267bc2 | refs/heads/master | 2023-04-23T17:22:53.427404 | 2021-01-29T17:48:28 | 2021-01-29T18:01:33 | 257,394,204 | 2 | 0 | MIT | 2021-01-28T10:31:07 | 2020-04-20T20:19:43 | Python | UTF-8 | Python | false | false | 890 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | anpaz.noreply@github.com |
2b152bec1bfa703b5df15c67f5fc0e3aa9ab815e | 432a58b3bad9eb008ea332c06f22700172c660ac | /admin/client.py | 19d4b3ccd622ebea00d2084316019e164af6a53a | [
"Apache-2.0"
] | permissive | achanda/flocker | 7b5c5264b52489e9da774ff011699c6b62a4bddd | ac822c3d6687ea63cad2aea81334a86100bfda0e | refs/heads/master | 2020-12-11T01:40:20.625304 | 2015-08-01T05:47:10 | 2015-08-01T05:47:10 | 37,820,406 | 0 | 0 | null | 2015-06-21T18:24:07 | 2015-06-21T18:24:06 | null | UTF-8 | Python | false | false | 9,859 | py | # Copyright Hybrid Logic Ltd. See LICENSE file for details.
"""
Run the acceptance tests.
"""
import sys
import yaml
from zope.interface import Interface, implementer
from characteristic import attributes
from eliot import add_destination
from twisted.internet.error import ProcessTerminated
from twisted.python.usage... | [
"jon.giddy@clusterhq.com"
] | jon.giddy@clusterhq.com |
b5f8da9a720fc87c6d511ba662b7005be382c8eb | da93b0746d5b12899c17db53839cd3055d6e8267 | /bin/dcn2.py | 111d73937abee3c2b859718d0ddab6fd1c745ffd | [
"Apache-2.0"
] | permissive | mattmoehr/rtdl | 01228261739dcc3cf3fb0e47f3a9d987c8e322eb | 44cdf56fd958bc60609ae595911d272afa998d67 | refs/heads/main | 2023-08-08T10:05:01.482980 | 2021-09-02T14:33:13 | 2021-09-02T14:33:13 | 408,602,108 | 0 | 0 | Apache-2.0 | 2021-09-20T21:14:04 | 2021-09-20T21:14:03 | null | UTF-8 | Python | false | false | 8,536 | py | # %%
import math
import typing as ty
from pathlib import Path
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import zero
import lib
# %%
class CrossLayer(nn.Module):
def __init__(self, d, dropout):
super().__init__()
self.linear = nn.Linear(d, d)
se... | [
"strausmg@gmail.com"
] | strausmg@gmail.com |
b1f2496ebe49df46a46292c6d998c4fbb52a383b | a10b0c634e83a652b02db4e6a24ba7d0429dfa05 | /main.py | 1caa556c793abd75cfe2dcbcde0ba8e6167be17a | [] | no_license | Diptasri/Intro-to-Ai-ML-5600 | 9f822327d5825e0e9c4cf7b446b61eaa9ee39a55 | 05efaa4f973f8c55bb12cb0b65407c3f9ce9bb50 | refs/heads/main | 2023-07-27T03:47:36.049328 | 2021-09-12T03:33:41 | 2021-09-12T03:33:41 | 399,465,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,388 | py | import matplotlib.pyplot as plt
# inputs
a = float (input ("Enter a value: "))
b = float (input ("Enter b value: "))
ax = a + b
ay = a - b
bx = a - b
by = a + b
# Internal division section formula
Px = ((a * a) + (b * b)) / (a + b)
Py = ((a * a) + (2 * a * b) - (b * b)) / (a + b)
# External division ... | [
"noreply@github.com"
] | Diptasri.noreply@github.com |
1ee56e00fc1f6518207dde8d7e2c4ad70939ccb7 | 62b90959763f40954a7c6270bfb0529b536b2888 | /user/forms.py | e3f2e1e1a1c2c677d176cbff33084fa0620bcb3a | [
"MIT"
] | permissive | thiagosouzalink/blogphoto_Django | 68698c4fc684f0ba1d9dde795a07f72df32ead38 | 7d09f44b196897c4d31fff2eff8d2a164e44db27 | refs/heads/master | 2023-02-20T20:32:00.527084 | 2021-01-25T15:16:07 | 2021-01-25T15:16:07 | 332,782,817 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,226 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import CustomUser
class UserForm(forms.ModelForm):
""" Formulรกrio para cadastrar usuรกrio"""
username = forms.CharField(
label='Usuรกrio',
error_messages= {
'invalid': 'Nome... | [
"thiagolsmail@gmail.com"
] | thiagolsmail@gmail.com |
21d962029b74b4eafe0c5b512082596bdf3800f2 | 95e7cf518b8d71270a7de6e7c7254861010f5035 | /garage/tf/algos/batch_polopt.py | 4245380d53581a9a7d6e72637049760557283eaf | [
"MIT"
] | permissive | reslthrowaway/garage | aaeadf7e918d80d467b2fcce61c50e8404480f83 | e921119434d205b6f644f139f6075516fb9ece74 | refs/heads/master | 2020-03-28T08:32:58.835060 | 2018-09-08T21:55:41 | 2018-09-08T21:55:41 | 147,972,769 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,354 | py | import time
import tensorflow as tf
from garage.algos import RLAlgorithm
import garage.misc.logger as logger
from garage.tf.plotter import Plotter
from garage.tf.samplers import BatchSampler
from garage.tf.samplers import VectorizedSampler
class BatchPolopt(RLAlgorithm):
"""
Base class for batch sampling-ba... | [
"reslthrowaway@yandex.com"
] | reslthrowaway@yandex.com |
8602e4c68c80a37d2046a827fca331f3acf97906 | c1cad053e9fbfe536722c13338fff63e471ff252 | /Next.tech/Analyzing-Text-Data/solution/chunking.py | 58c9c3ededb97de3f1ce991ac04f48ebe62345aa | [] | no_license | adataholic/Datascience | 9bedfda47c3b84e72e9833b293ce2f602ca2ec9f | 766a34c480eec61afdd0f485a4e77428cf3eba95 | refs/heads/master | 2020-12-27T01:33:55.458858 | 2020-01-06T23:48:28 | 2020-01-06T23:48:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import nltk
nltk.download('brown')
import numpy as np
from nltk.corpus import brown
# Split a text into chunks
def splitter(data, num_words):
words = data.split(' ')
output = []
cur_count = 0
cur_words = []
for word in words:
cur_words.append(word)
cur_count += 1
if cur_c... | [
"akshaymm13b034@gmail.com"
] | akshaymm13b034@gmail.com |
7c07de17053aa19697fa3b8ec39bfe5a624ff542 | feca84ca57eee5045a1235006e472b4766ca3b06 | /flaskapi/graphapp01.py | 083c083606a6b6a7422cad37d931d98e190b6d4e | [] | no_license | Chasbott182/mycode | 1b89fa5d1d94a4ff39c8ce98b046189a2d9df10f | 5afcd3cc32feee16e0fecc85a6165aaa01f60774 | refs/heads/main | 2023-07-14T17:06:34.618830 | 2021-08-13T20:46:59 | 2021-08-13T20:46:59 | 392,015,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | #!/usr/bin/python3
import numpy as np # number operations
import yaml # pyyaml for yaml
import re # regex
import paramiko # ssh into servers
from flask import Flask, render_template
import matplotlib.pyplot as plt
def sshlogin(ip, un, passw):
sshsession = paramiko.SSHClient()
sshsession.set_missing_host_key_... | [
"chasbott182@gmail.com"
] | chasbott182@gmail.com |
3ffd2a81defe2dd17e7c4f0ee0d2e75c6f233e90 | b481964a107b7a1afd5997e2736235ffb2c17138 | /hud.py | 86a51accc3edf2f32b32261581f9c30e58e9030f | [
"MIT"
] | permissive | marax27/pyNoid | 06503b576e97e839bcfa8d132bf8855769db7777 | c988db7ef6750352ecb6e3749f73302da4b71488 | refs/heads/master | 2021-09-04T11:19:22.625982 | 2018-01-18T07:03:43 | 2018-01-18T07:08:23 | 111,729,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | #!/usr/bin/python3
from constants import Constants
from vec2 import vec2
import sdl2.sdlttf
import sdl2.ext
import sdl2
import misc
class UIElement:
def __init__(self):
self.position = vec2(0,0)
self.size = vec2(0,0)
def centerHorizontally(self):
self.position.x = (Constants.WINDOW_SIZE.x - self.size[0])//2... | [
"kacpert314@gmail.com"
] | kacpert314@gmail.com |
6919b3a14f65b0c108aa619c12b7e531c0c04e51 | 6328387281d1b2b0bec13d51916d916fea1e7351 | /myvenv/bin/easy_install-3.7 | 185061d76e1848a152ec8b720265f7b58b47dc6b | [] | no_license | MedApplive/my-first-blog | 81e40789efe28cf99c7a342f7b8c48e879e70b4c | 0268eb6a64aa2733552b285accceba8cb82cd64d | refs/heads/master | 2020-05-01T11:58:28.305631 | 2020-01-20T17:04:57 | 2020-01-20T17:04:57 | 177,456,209 | 0 | 0 | null | 2019-09-30T14:45:40 | 2019-03-24T18:57:54 | Python | UTF-8 | Python | false | false | 272 | 7 | #!/home/maurice/Documents/djangogirls/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"msourir@gmail.com"
] | msourir@gmail.com |
339b6652e6902305375b21f8ec23ad0e0f230c76 | 6ddd0cfdbaca412ee2b3a7a01e7fcaad63550ac2 | /Python GUI/GUI window with various label,buttons,colors,font.py | b0274813b6a312766b548cf1260d2688c7d120c0 | [] | no_license | pranshu798/Python-programs | b302be9c9fd3aaf66824857bdb8bb2d9b8a9b5de | fb6e712594c72d8ea0be1026e6fb26c7fdd639ba | refs/heads/master | 2022-12-08T15:52:21.625098 | 2020-09-14T11:57:26 | 2020-09-14T11:57:26 | 281,318,764 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | #Python program to demontrate complete details of GUI window
from tkinter import *
gui = Tk()
def hello():
c = a.get()
guil3 = Label(text=c, fg='red', bg='yellow', font=10).pack()
def delete():
guil4 = Label(text='Delete', fg='red', bg='yellow', font=10).pack()
a = StringVar()
gui.title("Aliyas Shaik Butto... | [
"pranshuverma798@gmail.com"
] | pranshuverma798@gmail.com |
8402be75cce1ddbd62ff54e6ca1af746d547ba7e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04044/s043863854.py | 77675a21e84977960d992326c6742602cc68d034 | [] | 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 | 172 | py | N, L = map(int,input().split())
word = []
count = 0
while N > count:
S = input()
word.append(S)
count += 1
word = sorted(word)
ans = ''.join(word)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a799262d26ff055133010df02e61e893ddf72751 | 97ebc5e257d68eb9f46551d1897f3901e4faca41 | /poketypes/basic.py | 3037cd29cb0fec3108555337432f07f2ec491987 | [
"BSD-2-Clause"
] | permissive | GrenderG/PokeDuino | 16f6ab982c447d15ff5ed9ec55a9fd35551d3fcd | 5b2d7f8fa64edb52d68b647e723f513405b391d4 | refs/heads/master | 2021-06-01T02:33:46.419676 | 2016-06-29T09:57:47 | 2016-06-29T09:57:47 | 285,349,854 | 1 | 0 | NOASSERTION | 2020-08-05T16:44:29 | 2020-08-05T16:44:28 | null | UTF-8 | Python | false | false | 1,941 | py | import ctypes
from . import encoding
class PokeMetaStructure(type(ctypes.BigEndianStructure)):
def __new__(metacls, name, bases, dct):
cls = super().__new__(metacls, name, bases, dct)
for member, adapter_type in cls._adapters_:
cls.buildProperty(member, adapter_type)
return cls
def buildProperty(cls, mem... | [
"sven.koehler@student.hpi.uni-potsdam.de"
] | sven.koehler@student.hpi.uni-potsdam.de |
e18bf50cd5e5c0cee6e3670840430470da5195de | f1e4a8ab1ce478b3a95e8e8a74faa16409ac86e2 | /lambdas/InitializeDBCustomLambda/index.py | 7d26789efb9fa031b09f6bbee5909f5d6e904771 | [] | no_license | Ryanjlowe/pinpoint-engagement-scoring | 6b761fd7ada905db251d42ec1d4b47c0e27ad810 | a75f29f687c799ed6e0125c3c0044cc39c9dd2d5 | refs/heads/master | 2020-09-30T05:02:39.204421 | 2019-12-13T17:41:44 | 2019-12-13T17:41:44 | 227,209,468 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,868 | py | import json
import boto3
import logging
import os
from botocore.vendored import requests
dynamodb = boto3.resource('dynamodb')
PINPOINT_PROJECT_ID = os.environ.get('PINPOINT_PROJECT_ID')
scoring_definition_table = dynamodb.Table(os.environ.get('SCORING_DEFINITION_TABLE'))
def lambda_handler(event, context):
globa... | [
"rjlowe@amazon.com"
] | rjlowe@amazon.com |
e9dfc09020ce8682f64b107a1c8ad0d41d060345 | b1b520c9bae5b241405dbc1a6b25ef928877c317 | /defangIpAddress.py | 7bed80a95e1468a02ca4701cc4900f4fa9552b8a | [] | no_license | TBobcat/Leetcode | 0ee5d06be3f7f10077961a8e3aedcd28fe4cb85a | 3b6e3d38ac2d5158329a9444ad7e7e7ee9d07176 | refs/heads/main | 2023-06-04T10:40:00.275728 | 2021-06-16T23:05:35 | 2021-06-16T23:05:35 | 375,470,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | def defangIPaddr(address):
"""
:type address: str
:rtype: str
"""
## use list(str) and str.join(list_str)
## join can also be used like this
## 'abc'.join(address1.split('.')) -> '1abc1abc1abc1'
## str.replace() would also be useful
res = ""
list_address = list(addres... | [
"xiangyuantech@gmail.com"
] | xiangyuantech@gmail.com |
37dafa17ed9dc319a258358248dd28b2bbf33390 | ee8c4c954b7c1711899b6d2527bdb12b5c79c9be | /assessment2/amazon/run/core/controllers/old.py | b834b8f7e61106d74a5d8d14bccffde5155b3848 | [] | no_license | sqlconsult/byte | 02ac9899aebea4475614969b594bfe2992ffe29a | 548f6cb5038e927b54adca29caf02c981fdcecfc | refs/heads/master | 2021-01-25T14:45:42.120220 | 2018-08-11T23:45:31 | 2018-08-11T23:45:31 | 117,135,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | #!/usr/bin/env python3
from flask import Blueprint, Flask, render_template, request, url_for
controller = Blueprint('old', __name__, url_prefix='/old')
# @controller.route('/<string:title>', methods=['GET'])
# def lookup(title):
# if title == 'Republic': # TODO 2
# return render_template('republic.html... | [
"sqlconsult@hotmail.com"
] | sqlconsult@hotmail.com |
4106443cb73c63c91456d1feb0e571e206168629 | 0ad1a9530f0765b07d568095cb1534babc4432f5 | /utils/db.py | 0391f7d7acc6be817a2340825b6016c54fba89ab | [
"MIT"
] | permissive | bryceweiner/Infiniti | 18acc471b5882bd676e61b840bff793c22d6c272 | 5ea829dfa26c0948970329651d3cacff7788d116 | refs/heads/master | 2022-12-15T06:10:10.981048 | 2018-09-25T20:03:02 | 2018-09-25T20:03:02 | 147,550,307 | 1 | 2 | MIT | 2022-12-07T23:52:23 | 2018-09-05T16:47:43 | Python | UTF-8 | Python | false | false | 2,781 | py | import rocksdb,time,ast
from infiniti.params import *
MAX_RETRY_CREATE_DB = 100
def writebatch():
return rocksdb.WriteBatch()
def open_db(filename, logger=None, read_only=False):
db_default_path = (filename, "wallet_test")[filename == ""]
db_path = db_default_path
retry_count = 0
db = None
save_err=None
while... | [
"bryce@altsystem.io"
] | bryce@altsystem.io |
7436c86cf9c2ad83dacb6291b7f64493ca90f126 | 56e17984c230be6ee841264d65d7ba6ce949ceb1 | /DateAndTime/Calendar_Module.py | a2a0fd44eca638970bd921c1fc7b96f6358a26ef | [] | no_license | Shamsullo/HackerRank_Python- | 203b4277d7eb1de2236ff983415344a1409277d7 | 1f231f04cdd1cb0cd4e6a65318113ed15f1e47bc | refs/heads/master | 2021-05-15T05:45:58.885667 | 2018-01-11T18:36:28 | 2018-01-11T18:36:28 | 115,595,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import calendar, datetime
input_date = input()
month,day,year = map(int,input_date.split())
day_of_the_week = datetime.date(year,month,day)
print calendar.day_name[day_of_the_week.weekday()].upper()
#the code isn't giving an expected result, i wonder why?
| [
"noreply@github.com"
] | Shamsullo.noreply@github.com |
cdbf1c4051359a9d4660b03166c1b23f3c05428f | bb097a986d37c5b6d49bf6d1f9df17960e32e36e | /final_project/poi_id.py | 9f2d37fc735529d2c4baaf05ebe14afbc6c019da | [] | no_license | noslav/enron_analysis | 84e32fa2060c35d18e921cdb6647fd04019e7f57 | 9c98dfe8dcf71728cf8a8d75ab4b0c8468bd2d1e | refs/heads/master | 2021-03-22T04:42:56.034087 | 2017-12-07T15:15:55 | 2017-12-07T15:15:55 | 96,874,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,872 | py | #!/usr/bin/python
import sys
import pickle
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
from tester import dump_classifier_and_data
import pandas
import numpy as np
from sklearn.feature_selection import SelectKBest
from sklearn.feature_selection import chi2, f_classif, mut... | [
"pranay.valson@gmail.com"
] | pranay.valson@gmail.com |
6645d5a6dce03632ee27b25baedaec0596e6733e | 4eb32b229dffcfc19cc28189e12602e63a3799cc | /tests/conftest.py | b4628e9431f31f66807cbb01daa476159a7e75b7 | [
"MIT"
] | permissive | karlneco/kanji-test-maker | 4fc09e31a80fdb47e176ba7f69daaa36790dc412 | 6d3c855718971cb0061b4c238ebb8329328018bf | refs/heads/master | 2023-03-31T00:45:59.830161 | 2023-03-27T04:29:10 | 2023-03-27T04:29:10 | 227,032,872 | 2 | 0 | MIT | 2023-02-15T23:08:52 | 2019-12-10T05:00:46 | Python | UTF-8 | Python | false | false | 3,456 | py | import pytest
from flask_login import login_user, login_manager, LoginManager
from hktm import create_app, db
from hktm.models import User, Lesson, LessonMaterial, MaterialType
@pytest.fixture()
def app():
app = create_app('test.cfg')
return app
@pytest.fixture()
def auth_user(app):
@app.login_manager.... | [
"karl1112@gmail.com"
] | karl1112@gmail.com |
16ca7bb88839c3a6b72181762a2ffaa3aac44251 | f4062989a2b3cab117ac18a1e5408b521f69bf76 | /users/validators.py | d7e65c36f869f9ac0cf31fc4c5ebfb0141d88c2e | [] | no_license | saeedhassan/CHQ_Backend | 4e07bd5d95251e6bcd472d320e92f092d64bf071 | 3798a2b8c4e5bfbb4f4826ee22d9574316a18a90 | refs/heads/main | 2023-02-26T02:36:59.478206 | 2021-01-25T17:07:53 | 2021-01-25T17:07:53 | 467,846,247 | 1 | 0 | null | 2022-03-09T08:49:02 | 2022-03-09T08:49:02 | null | UTF-8 | Python | false | false | 1,732 | py | """
Custom model validators
"""
import re
import django
import jsonschema
from django.core.exceptions import ValidationError
from django.core.validators import BaseValidator
from django.utils.translation import gettext_lazy as _
from users.CHQ_Scoring.github_score import CHQScore
from django.conf import settings
from... | [
"x.suwaidi@gmail.com"
] | x.suwaidi@gmail.com |
64f1c7bd8f0f8bab932d8e95efb828f317b84145 | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/438806_catenateFilesFactory/recipe-438806.py | 59a8c77281e6b148e80c4e006fc5987455451ecf | [
"Python-2.0",
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 2,449 | py | import os
def catenateFilesFactory(isTextFiles=True, isClearTgt=True, isCreateTgt=True):
"""return a catenateFiles function parameterized by the factory arguments.
isTextFiles: Catenate text files. If the last line of a non-empty file
is not terminated by an EOL, append an EOL to it.
... | [
"betty@qburst.com"
] | betty@qburst.com |
35b33536fa724c6e8c12b3a831280b5ef91b1f3e | 336f6cbc2fa3821ad07c702c136bd55034cd2780 | /api/views.py | 5f4dc1ce2afdd034d87e15aa2e72ff373803d22c | [] | no_license | wucg-python/dry1 | 2521bccfa23c84d4d93e28c9a4a19c4eb0c6b6ec | e68ebc5e6f65ee3ca5850223a61574b40837feba | refs/heads/master | 2023-01-05T19:28:02.699639 | 2020-11-02T02:16:08 | 2020-11-02T02:16:08 | 309,234,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,390 | py |
from django.shortcuts import render
# Create your views here.
from rest_framework import mixins
from rest_framework.generics import GenericAPIView
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework import generics
from api.models import Book, User
from api.serial... | [
"1490168051@qq.com"
] | 1490168051@qq.com |
db6db0e486babf550b51b49de237a138ddc8b6ff | 960a8f1bec84563680271d10e2b9dfd296599d86 | /python/kyu_6/replace_with_alphabet_position.py | d24aef52d6acd7655c9d3a2f654f25666d09e95a | [] | no_license | Sqvall/codewars | 42bcbfad99cd6c34fd3ec5fd903010d255e5d8e9 | 4f102d89ff86cd544eed362a232cbc1f4afea77c | refs/heads/master | 2021-11-18T22:35:38.717604 | 2021-09-27T10:54:10 | 2021-09-27T10:54:10 | 204,555,403 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | """ https://www.codewars.com/kata/546f922b54af40e1e90001da """
from string import ascii_lowercase
def alphabet_position(text):
score = 1
score_dict = {}
for i in ascii_lowercase:
score_dict[i] = score
score += 1
t = text.lower()
out = ''
for i in t:
if i in score_dict:... | [
"masster1987@inbox.ru"
] | masster1987@inbox.ru |
b003fe59cd7510a33a775dff69cf99d6c0c439fb | c21b64617d440a2b70b75ecdb756607044b1b797 | /todo/views.py | c135c8223640593189972880eb382f5f623da91c | [
"Apache-2.0"
] | permissive | foxy4096/DjangoToDo | cfe8d6151ba2f32f922777f7d4646dd11d6b36cb | f19d1a6d0d953354245cb4e3dedd2ad8710b4ec0 | refs/heads/main | 2023-09-02T03:34:33.144510 | 2021-11-12T10:21:17 | 2021-11-12T10:21:17 | 427,317,178 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | from django.views.generic import *
from django.shortcuts import redirect
from .models import ToDo
class ToDoListView(ListView):
model = ToDo
context_object_name = "todos"
class ToDoCreateView(CreateView):
model = ToDo
success_url = '/'
fields = '__all__'
def form_valid(self, form):
... | [
"54215788+foxy4096@users.noreply.github.com"
] | 54215788+foxy4096@users.noreply.github.com |
d1fdbec314276a6ab8c6ad6bf9fb6fc536447263 | 09756a11e9c1e7c771a1ee7afaafff2bee28c9aa | /pyReadFileEx.py | 30682bc1a8cadb34471a27fbe7b7c67e3103ea17 | [] | no_license | mgupte7/python-examples1 | 74c1038ce0973ea6c668adec064c64ad59341073 | cfa903f3a6e021a408013f2fd45d3cb281a094ab | refs/heads/main | 2023-08-27T10:06:24.681075 | 2021-11-11T02:56:28 | 2021-11-11T02:56:28 | 405,139,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | # ------------------------------------------------
# ----------------Python Read Files---------------
# ------------------------------------------------
# ex 1 - The open() function returns a file object, which has a read() method for reading the content of the file:
f = open("demofile.txt", "r")
print(f.read())
# ex... | [
"noreply@github.com"
] | mgupte7.noreply@github.com |
0384ff350e0c11acd5694d601dd75ef9f8c1794b | 0e0254ead600d156e96b6a3a814806156f0d807d | /users/urls.py | a54f169d91f50903e4223765ed8dae5f79e9e341 | [] | no_license | catding/trainserver | 1ade4b9b53995ba93d290f19d74c7981ecc1a9bf | 3d0dbcf92642fe42293736f8bdf812d43e0cb67b | refs/heads/master | 2022-04-08T05:03:33.773819 | 2020-03-07T13:13:08 | 2020-03-07T13:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | from django.urls import include, path, re_path
from rest_framework import routers
from .api import (
LoginView, LogoutView, AccountDetailView, PasswordChangeView,
PasswordResetView, PasswordResetConfirmView, ExcelfileUploadView, UserAvatarView, UserView
)
router = routers.SimpleRouter(trailing_slash=False)
... | [
"36583983@qq.com"
] | 36583983@qq.com |
3e1077c0c7f104ca8e5cff93ad223d48c668bb26 | d04975c798ad43c8fadc8cf7b0b3742bbbdbc632 | /dashboard/consumption/queries.py | 402f2756edeaf320d860670f4f342dbda480aacc | [] | no_license | yuki0417/smap-coding-challenge | 331e99a980adcf561338ec539631c78e33b251d0 | 6041d895f6088d8d19c12cd0ec7a44c3bb15d04c | refs/heads/master | 2023-03-13T14:48:44.443640 | 2021-03-02T13:07:59 | 2021-03-02T13:07:59 | 339,998,433 | 0 | 0 | null | 2021-03-02T13:08:00 | 2021-02-18T09:28:08 | Python | UTF-8 | Python | false | false | 2,451 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db.models import Avg, Sum
from .models import Consumption, User
class ConsumptionQueryset():
"""queryset for consumption data
"""
def get_consumption_avg_and_sum():
"""get average and sum of consumption
Get aver... | [
"nicorasuster@gmail.com"
] | nicorasuster@gmail.com |
34ffe8b08928d8766903d48e45e665ebdbb0834e | 8f90482e83eaac3af8b8acf019a232ec92fc878d | /assignment1/q2_neural.py | 5c6f31e1da37706d0dfe27371bfba3de63ff1230 | [] | no_license | aoussou/cs224n | 72413ec35ad0c760127703da2ff0d6753d3a3559 | 1a27d8d359c920013424a5e3376fa734c20ac10c | refs/heads/master | 2021-10-23T16:08:50.336982 | 2019-03-18T17:31:39 | 2019-03-18T17:31:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | #!/usr/bin/env python
import numpy as np
import random
from q1_softmax import softmax
from q2_sigmoid import sigmoid, sigmoid_grad
from q2_gradcheck import gradcheck_naive
def forward_backward_prop(data, labels, params, dimensions):
"""
Forward and backward propagation for a two-layer sigmoidal network
... | [
"noreply@github.com"
] | aoussou.noreply@github.com |
f2f5ef38ae9682ff7b25a938c4bedefddb4f355e | 51a38a3b7d90bae3b8d137decb681eea5264c1d6 | /i_scene_cp77_gltf/material_types/glass.py | 188e0a71a10560152bd25f176c3e8fc445ba17c1 | [] | no_license | Walrus159/cp77research | 8ece0de4fec7ab9a61c43dbafc38350ee1f6d0ef | 4612c86245f874dec3fbf5c2deff9cbf998d23ce | refs/heads/main | 2023-07-19T12:32:59.968590 | 2021-08-31T23:56:42 | 2021-08-31T23:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,285 | py | import bpy
import os
from ..main.common import imageFromPath
class Glass:
def __init__(self, BasePath,image_format):
self.BasePath = BasePath
self.image_format = image_format
def create(self,Glass,Mat):
CurMat = Mat.node_tree
CurMat.nodes['Principled BSDF'].inputs['Transmission... | [
"65016231+ja-to@users.noreply.github.com"
] | 65016231+ja-to@users.noreply.github.com |
c15c181958bc2aea8abc6b30ac520658a40dd56e | 5a903f3d295b9942224e5f01bce388a25a788f35 | /Q_learning_Games_v2/Q_Learning_Games_v2_/Sarsa_vs_Q_Learning/Taxi_Game/Taxi_Analysis/print_taxi_comparison_plots.py | dc4dd5c1b825083bece4a64ebfcd723565d9adaa | [
"MIT"
] | permissive | GiacomoFerro/Bachelor-Thesis | 0382e6b36c5b890e72028a97e59e80b5563d0f0f | a9ac91a208dfc175084cf22673f88add6ec15281 | refs/heads/master | 2020-04-06T18:00:16.103447 | 2019-10-09T15:11:29 | 2019-10-09T15:11:29 | 157,681,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | #libreria per generare grafici
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
#lib to remove files
import os
print("Make the comparison Plots")
plt.rc('xtick', labelsize=8)
plt.rc('ytick', labelsize=8)
plt.figure(figsize=(10, 5))
f=open("rewards_taxi_qlearning.txt","r")
stringa=f.readl... | [
"noreply@github.com"
] | GiacomoFerro.noreply@github.com |
1da061864c1b1847e3f5e231440d129e3e4feb12 | a489362349b6c5b7eaa6b0be0a721e295d25b98b | /Gan.py | 50e05e54bef6fd823c8f0287aedc6382c45774aa | [] | no_license | gmc112/Synthesising-Images-Via-Imagination | 6de97ee71a321b203ed9a33094e2d7dbb51d45ae | d32fb800125b8fb8230a3e712ef287624098d5b0 | refs/heads/master | 2020-06-28T00:29:46.680922 | 2019-08-01T17:39:20 | 2019-08-01T17:39:20 | 200,092,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,951 | py | import tensorflow as tf
import tensorflow.contrib.layers as tfcl
import os
import numpy as np
import imageio
import datetime
import Utilities as util
import Layers_gan as lay
LEARNING_RATE = 2e-4
BATCH_SIZE = 64
HEIGHT = 128
WIDTH = 128
CHANNEL = 3
DATA_REPEATS = 4
EPOCHS = 1000
VERSION = "GAN_1"
DATE = datetime.datet... | [
"ntb15144@uni.strath.ac.uk"
] | ntb15144@uni.strath.ac.uk |
323ae2986aeb577ac7207ed8bc111206556ec27d | fbf7929ede740a416362e40b3b0d44d2b823c14e | /distinct_occure_helpers.py | f1b794b0ee5a00fe9dcf5314be1f2033a3856710 | [
"MIT"
] | permissive | martynaut/mirnaome_somatic_mutations | f588545c57871c0125656445cc66198f04c98895 | b7e332d56ee17c0b54969db8e515001bf23300f8 | refs/heads/master | 2020-04-24T22:33:20.446928 | 2019-08-08T20:14:56 | 2019-08-08T20:14:56 | 172,315,673 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,968 | py | import numpy as np
def set_balance(row, ratio):
if row['ratio 3/(3+5)'] >= ratio:
return '3p'
elif row['ratio 5/(3+5)'] >= ratio:
return '5p'
elif np.isnan(row['reads_3p']) and np.isnan(row['reads_5p']):
return 'unknown'
elif np.isnan(row['reads_3p']):
return '5p'
e... | [
"martyna.urbanek@gmail.com"
] | martyna.urbanek@gmail.com |
b4c799535b5e0995f3c1d6c81b0b0eaede036e40 | 19200bc6b36e33f9dec1394b90ff41272601b16d | /gistApi/asgi.py | d22173ac28e314752aaea0d52dc74a9b1c28f963 | [] | no_license | AnoshaRehan/github-gist-api-django | 103c8f0656899cd6cf068ea7945f29a51eb90e56 | 4c0a97f7eebca276de050ae071aabe40331806e1 | refs/heads/main | 2023-03-02T09:48:38.647915 | 2021-02-14T08:19:04 | 2021-02-14T08:19:04 | 338,624,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for gistApi project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"anosha.rehan@lovefordata.com"
] | anosha.rehan@lovefordata.com |
5f2b378d006e7aa2e46251661e0d4e03d3b9810f | d452e34253561a47b974e260dabd8dcda6e750a2 | /supervised_learning/0x0B-face_verification/5-main.py | 0859b3e7ecf4dc518afbab30ba555f77a521f265 | [] | no_license | JohnCook17/holbertonschool-machine_learning | 57fcb5b9d351826c3e3d5478b3b4fbe16cdfac9f | 4200798bdbbe828db94e5585b62a595e3a96c3e6 | refs/heads/master | 2021-07-07T10:16:21.583107 | 2021-04-11T20:38:33 | 2021-04-11T20:38:33 | 255,424,823 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/usr/bin/env python3
from align import FaceAlign
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
from matplotlib.patches import Circle
import numpy as np
fa = FaceAlign('models/landmarks.dat')
test_img = mpimg.imread('HBTN/KirenSrinivasan.jpg')
anchors = np.array([[0.194157, 0.16926692], [0.7888591... | [
"jcook0017@gmail.com"
] | jcook0017@gmail.com |
d5b8181aea069440370a3630b8e9b4e47a43870f | 72c9e235b19b80d9e332c1f19e1c4e1e28ff2cac | /craw/spider/LJ_parser.py | c2d8b50614943d46663ac37ac69ad4d2e39a7455 | [] | no_license | VinceLim68/python-craw | 56a1299b4e3ac55a3690946a6f4ff8c2c1ef5b04 | 37d1570ee10d080e55b5b8cf885b7e7a3b00c81d | refs/heads/master | 2021-01-20T06:12:10.753799 | 2017-10-28T13:56:30 | 2017-10-28T13:56:30 | 89,851,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,521 | py | #coding:utf-8
from html_parser import HtmlParser
import mytools
import urllib2
from bs4 import BeautifulSoup
import re
class LjParser(HtmlParser):
# ่ฟไบๆฏ2016.11.17้ๅ็๏ผๅๆฅ้ฃไธชๅบ็ฐไบ่งฃๆ้่ฏฏ
def _get_new_datas(self,soup):
page_datas = []
titles = soup.select("div.title > a")
houseinfo... | [
"1500725439@qq.com"
] | 1500725439@qq.com |
7508ed13cb989f8e06150d4a366684e8cb626f4c | 890c8b8e90e516a5a3880eca9b2d217662fe7d84 | /armulator/armv6/opcodes/abstract_opcodes/usad8.py | 6568222b03d6464463dd16b171bf86a89484d155 | [
"MIT"
] | permissive | doronz88/armulator | b864135996f876c7857b79a314d4aa06cc19c549 | 0294feac2785c8947e5943ac0c34f941ee4b5fff | refs/heads/master | 2022-11-05T08:14:42.405335 | 2020-06-18T23:53:17 | 2020-06-18T23:53:17 | 273,363,061 | 2 | 0 | null | 2020-06-18T23:51:03 | 2020-06-18T23:51:02 | null | UTF-8 | Python | false | false | 1,008 | py | from armulator.armv6.opcodes.abstract_opcode import AbstractOpcode
from bitstring import BitArray
class Usad8(AbstractOpcode):
def __init__(self, m, d, n):
super(Usad8, self).__init__()
self.m = m
self.d = d
self.n = n
def execute(self, processor):
if processor.conditi... | [
"matan1008@gmail.com"
] | matan1008@gmail.com |
8b5c5c6b77660de1cffa41c624fe3f6e1c9a7840 | fa88ee925ec2a3ca1def17f1518d6b3e59cab197 | /Database Preprocessing/prepare_protein_data.py | f8ba54116deca63a435cf94336b6c7590a31e788 | [] | no_license | asadahmedtech/DEELIG | 20d915851bc053db7647d94e3ee61570524339d7 | 3a3993fc903c40f1ce904111c8e085c79fb45df6 | refs/heads/master | 2023-05-19T21:53:18.196879 | 2021-06-09T14:15:18 | 2021-06-09T14:15:18 | 264,231,113 | 9 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,353 | py | from Bio import *
import os
#PDB Parser
from Bio.PDB.PDBParser import PDBParser
from Bio.PDB.DSSP import DSSP
from Bio.PDB.NACCESS import run_naccess, process_rsa_data
import pickle
#Labels for files
"""Secondary Structure in Millers Format
H - Alpha Helix (4-12) = 1
B - Isolated Beta Bridge residue = ... | [
"aahmed3@student.nitw.ac.in"
] | aahmed3@student.nitw.ac.in |
844abc176cf2c1ec5d48f1e98a0747b94eccebec | 004b7726cfbedd6ecb6a1dec455211f1b1635919 | /OCR_Test/gendata.py | 8b5a276f17c703b35952b97c6ac1e980d94f708b | [] | no_license | bluedott/p3_fuckup | e1cafabeda43b2d190836bd994c4af5d5b8c2379 | 6ff119cded8c30ef3acfc02c5ecefaa4d9178520 | refs/heads/main | 2023-01-22T00:16:01.252835 | 2020-12-07T03:00:45 | 2020-12-07T03:00:45 | 319,187,963 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,790 | py | # GenData.py
import sys
import numpy as np
import cv2
import os
# module level variables ##########################################################################
MIN_CONTOUR_AREA = 100
RESIZED_IMAGE_WIDTH = 20
RESIZED_IMAGE_HEIGHT = 30
##############################################################################... | [
"34089891+bluedott@users.noreply.github.com"
] | 34089891+bluedott@users.noreply.github.com |
84670e385fe2ed6a8e0c8a66732d455455589e1c | 5b5bac2aa1104bd7afe27527dc53c260667b4de1 | /spotify_convert/migrations/0011_remove_addedsong_spotify_name.py | 555b6a34320e1e011c126db41348d3376c956b96 | [] | no_license | mvasiliou/spotify-convert-app | 4bf86443ce9c216dc8a9bcbf3f7c81ff01828175 | 876e456c956fd0aeae65dc1db9f683373bfa9c9e | refs/heads/master | 2021-01-19T13:37:19.060429 | 2017-02-18T17:25:00 | 2017-02-18T17:25:00 | 82,402,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2017-02-15 22:01
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('spotify_convert', '0010_auto_20170215_1712'),
]
operations = [
migrations.RemoveFiel... | [
"mvasiliou94@gmail.com"
] | mvasiliou94@gmail.com |
ce9f9a67e6de02ba78da7819553047f0a148bb68 | 9bcb054fa53e1ff749f2ba06c7477b60c0a1dccf | /internet connection check.py | 025e54ba14c6fdfcd2dcc55e5a6b72e06dbf6956 | [] | no_license | thatscoding/Hacktoberfest-2023 | e67594420d39340095dde77e02bcf20353a5f645 | 40cfc950487e040b192a304a9d387dda2988845b | refs/heads/main | 2023-08-28T07:28:41.110272 | 2021-10-30T11:48:00 | 2021-10-30T11:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import requests
from requests.exceptions import ConnectionError
def internet_connection_test():
url = 'https://www.google.com/'
print(f'Attempting to connect to {url} to determine internet connection status.')
try:
print(url)
resp = requests.get(url, timeout = 10)
resp.text
resp.status_code
... | [
"noreply@github.com"
] | thatscoding.noreply@github.com |
cfbc73e87a1f617dd5d05185217fead9b365b1cd | 8c0e6de3a106ef148dd2994973f3f5cb807c70eb | /General Programing/Documentation Hub/imageviewer.py | ac39a35f9c94c5dffe56d0b6d169a8e29ad2f0fd | [] | no_license | TKprotich/Practices-and-Experimenting | 8f8928cc43e6cb9996b064d66dc6783fc8edf362 | 211e11f3f52b36dd6dc944d3b503c81d412acb4b | refs/heads/main | 2023-01-11T00:12:14.404189 | 2020-11-15T13:41:24 | 2020-11-15T13:41:24 | 304,259,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import pyglet
window = pyglet.window.Window()
image = pyglet.resource.image('workout.JPG')
@window.event
def on_draw():
window.clear()
image.blit(0, 0)
pyglet.app.run()
| [
"marchemjor@gmail.com"
] | marchemjor@gmail.com |
4e1ab212e6ce46a3bc3a610e4685b7449006b6ef | ad9a1711ec2d36b57576b30a5550a481bc07452a | /PANDAS/ser_02.py | f5d076631ff20dc4605d988fb89dd07e2abd6ebf | [] | no_license | Harshad06/Python_programs | 5ca0ba3ba8cbccbd39215efec96fb7b68307aa5a | ad908e59425b41c1bed032aaf9a115e123fd46c4 | refs/heads/master | 2023-06-22T07:44:45.435258 | 2021-07-26T08:16:22 | 2021-07-26T08:16:22 | 347,367,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # porgam to depict deep copy
# in pandas series
# import module
import pandas as pd
# assign series
ser = pd.Series(['Mandy', 'Ron', 'Jacob', 'Bayek'])
# shallow copy
copyser = ser.copy(deep=True)
# comparing deep copied series
# and original series
print('\nBefore Operation:\n', copyser == ser)
# assignmnet ope... | [
"harshad.shringi@gmail.com"
] | harshad.shringi@gmail.com |
3f45f7cee6d8468efa1e1fb46e91f0292b773b93 | 22295cda10cf11472fee987093e0b245f6f96ef3 | /common/infohistology/band073_tracks.py | bd72af8bb7165ed2ca221d979e82efa7299e791e | [] | no_license | sjara/jaratest | aecb9e3bcc1ff91db35e7cd551c0f4f3da0b690a | 09bf2c76bd5bf45191a2c37c14171ae1e8902c4b | refs/heads/master | 2023-08-11T09:55:17.684814 | 2023-08-03T22:03:31 | 2023-08-03T22:03:31 | 63,100,718 | 2 | 5 | null | 2023-04-11T18:14:08 | 2016-07-11T20:43:04 | Python | UTF-8 | Python | false | false | 1,697 | py | '''
TODO:
- add reference to type of recording device used? e.g. tetrode vs silicon probe, probe geometry, etc.
- 'shank' is very specific to silicon probes, replace with more generic info key?
'''
subject = 'band073'
tracks = [
{'subject':subject, 'brainArea':'LeftAC', 'histImage':'p1-C5-03',
'recordingTrac... | [
"jarauser@jararigtest"
] | jarauser@jararigtest |
664fd5e22572825ff02d5842fce584a415d850a8 | 62bdde43ce88507530610a2b77d2ce0859eebc8b | /SWEA/queue/L5105-๋ฏธ๋ก์_๊ฑฐ๋ฆฌ/L5105-๋ฏธ๋ก์_๊ฑฐ๋ฆฌ-jiwoong.py | 9ca4aecca30d1d8a77e4b2053a655343efd4a697 | [] | no_license | j2woong1/algo-itzy | 6810f688654105cf4aefda3b0876f714ca8cbd08 | 7cf6cd8383dd8e9ca63f605609aab003790e1565 | refs/heads/master | 2023-08-21T12:51:54.874102 | 2021-10-03T04:35:21 | 2021-10-03T04:35:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | def bfs(x, y, z, visited):
# ์ํ์ข์ฐ
dx = [0, 1, 0, -1]
dy = [-1, 0, 1, 0]
# ํ์ฌ ์์น queue
q = [(x, y, z)]
# ํ๊ฐ ๋น ๋๊น์ง
while q:
curr_x, curr_y, curr_z = q.pop(0)
visited[curr_y][curr_x] = 1
for i in range(4):
# ๋๊ฐ์ง ์์ผ๋ฉด
if 0 <= curr_y + dy[i] < N and ... | [
"j2woong1@gmail.com"
] | j2woong1@gmail.com |
78abb25a1c9ddc2546892cffbfa7b04ce2ad80ee | 2298959b25d93360be8dc45f00e989cac96b5c5d | /ex40.py | 6f7443d7d3dc28ec948c6a9106ff589391e9d7f1 | [] | no_license | VigneshMcity/Python | 6e7cdef7e4cb09eec587ca85073f8171aa9492ec | 8970368210d6e8c3f6ab1f6e6cf3213dd51b004a | refs/heads/master | 2020-04-14T20:08:27.298067 | 2019-12-13T07:17:04 | 2019-12-13T07:17:04 | 164,083,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | class Song(object):
def __init__(self, lyrics):
self.lyrics = lyrics
def sing_me_a_song(self):
for line in self.lyrics:
print(line)
happy_bday = Song([
"Happy birthday to you",
"I dont want to get sued",
"So I'll stop right here" ])
bulls_on_parade = Song([
"They rally around th... | [
"vignesh.rajendran01@infosys.com"
] | vignesh.rajendran01@infosys.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.