blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c923e6312165159a17cfce68ebb90fc23b507106 | 1429cfd7e58858b3557c89cbb174716ff6959f29 | /TIC TAC TOE.py | 62eff864c12b9b67e5b5e38d1a39674f1e3f012c | [] | no_license | mrshahalam/New-Python-programme | f90ae6046da383a5df4dc36a47dfbb2ba51fb840 | 009d4f0fb759168f8927ceb6c713c9b29b584692 | refs/heads/master | 2020-06-28T22:46:01.631996 | 2020-01-30T16:06:45 | 2020-01-30T16:06:45 | 200,361,968 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,577 | py | """
A Two-Player Tic Tac Toe Game.
1. Displaying Board
2. Play Game
3. Handle Turn
4. Check Win
- Check Rows
- Check Columns
- Check Diagonals
5. Check Tie
6. Flip Player from X to O or O to X
"""
from sys import *
# Initializing the Board
board = ["-", "-", "-",
"-", "-", "-",
"-", "-",... | [
"noreply@github.com"
] | noreply@github.com |
5c11d0ef4c5a83f6c0d971af6f4730a9a6fe1a67 | c1e488789b41a714cdd37525d7e71815753c21d9 | /atcoder/beginners/chap1/PASTFILES/ABC088A_1.py | 041c7c7cbb41d815d7d2848a46a3bce2ad8a670a | [] | no_license | happyhappyhappyhappy/pythoncode | 638a0cbeb94ec04829c1c4e216fb200863cd7a4e | 247b8346a503cab272043c20e6210ee03cfdd8c4 | refs/heads/master | 2023-08-31T20:54:06.144750 | 2023-08-30T08:33:15 | 2023-08-30T08:33:15 | 223,697,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Problem https://atcoder.jp/contests/abc088/tasks/abc088_a
# Python 1st Try
if __name__ == "__main__":
yes = "Yes"
no = "No"
answer = ""
N = int(input().strip())
A = int(input().strip())
chargeCoin = N % 500
if chargeCoin <= A:
answer = yes
else:
answer = no
print(an... | [
"ymnkkj@gmail.com"
] | ymnkkj@gmail.com |
f79103b6166bbcddf98f63d0c258951fb19b31eb | 28280d1c7ca06f89906e811f3b7311a5e8a0046b | /ecoz2py/__init__.py | 5bffc1a049e5d658a7b607a7b4e2c48e1360e361 | [] | no_license | mbari-org/ecoz2py | e5e96ba127a397c7d319a15ca13889f724943ba5 | 00d17b1696debc3aff7da37f0e4be316de70c3a7 | refs/heads/master | 2022-09-03T20:59:18.927539 | 2020-05-03T02:06:51 | 2020-05-03T02:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,691 | py | import os
from _ecoz2_extension import ffi
from _ecoz2_extension.lib import ecoz2_hmm_learn
from _ecoz2_extension.lib import ecoz2_prd_show_file
from _ecoz2_extension.lib import ecoz2_set_random_seed
from _ecoz2_extension.lib import ecoz2_version
from _ecoz2_extension.lib import ecoz2_vq_learn
def get_version():
... | [
"carueda@mbari.org"
] | carueda@mbari.org |
4f1cf1347b78f2c9ecb4170992e0d6cc1810de58 | 16dbe8b1be0cd360ac1062072430f1f2b7d95bd6 | /FlightPlanner/BasicGNSS/ParameterDlgs/DlgCaculateWaypoint.py | a6bc525d80735a610431231967d854ce93aaae7a | [] | no_license | developer124320/FlightPlanner | 4a0d9a450ddddede95512ad76437db2906154536 | f1e4c762c360c0a00022ae6fa028fc1aee2a467d | refs/heads/master | 2022-08-25T14:00:57.495037 | 2020-05-27T01:26:27 | 2020-05-27T01:26:27 | 267,186,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,721 | py | # -*- coding: utf-8 -*-
from PyQt4.QtGui import QWidget, QFrame, QVBoxLayout, QGroupBox, QSizePolicy, QHBoxLayout, \
QLabel, QFont, QLineEdit, QToolButton, QIcon, QPixmap, QDialog, QDialogButtonBox, QMessageBox
from PyQt4.QtCore import QSize, QSizeF, Qt, SIGNAL, QObject
from FlightPlanner.captureCoordinateTool im... | [
"yongjin.818@gmail.com"
] | yongjin.818@gmail.com |
f29f4d3f9eb00ed98d6c9da648caeb5da3c9d380 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /f3jX2BwzAuR8DXsy4_22.py | e469acc301be3f4807256f980cb528fa19e2fb93 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | """
Create a function that takes an integer `n` and returns the **factorial of
factorials**. See below examples for a better understanding:
### Examples
fact_of_fact(4) ➞ 288
# 4! * 3! * 2! * 1! = 288
fact_of_fact(5) ➞ 34560
fact_of_fact(6) ➞ 24883200
### Notes
N/A
"""
import math
fr... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fe29981fe14f0c7e9d65c8cd88d54641a0a4e314 | ca715ecc910c61ebf126be96c2e38224ff774fd7 | /bot.py | 6c56f8abe8888d77c6aa8415d7441978cdfc6084 | [] | no_license | jeraldseow/cryptobot | dd5bda9318ea6d4b94f90ead40f7c263008fb55b | 6ceccdbd26a835b6c8e3a74db67a40137b886f70 | refs/heads/master | 2023-04-27T16:47:29.765535 | 2021-05-17T11:09:39 | 2021-05-17T11:09:39 | 368,135,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | import websocket, json, pprint, talib, numpy, sender
ETH_USDT = "ethusdt"
BTC_USDT = "btcusdt"
SOCKET = f"wss://stream.binance.com:9443/ws/{BTC_USDT}@kline_1m"
RSI_PERIOD = 14
RSI_OVERBOUGHT = 70
RSI_OVERSOLD = 30
TRADE_SYMBOL = "ETHUSD"
closes = []
def on_open(ws):
print("Opened Connection")
def on_close(ws... | [
"jeraldseowwenyuan@gmail.com"
] | jeraldseowwenyuan@gmail.com |
96093e0e0b317846982be7163fd0fb65f35e64a6 | 90fa5489f9849494da93d64d54557491bf85d52f | /PythonNLP/C05/C0502.py | 01b42fee0d9479ef0e45dd5c28809e341fbbdf0f | [] | no_license | liping2084/NLTK-Python-CN | f0a072e9632661e95b4fb6419bb125dcdb8d68cd | f5b7520811f727e0111336efd536b28bbb01edf1 | refs/heads/master | 2023-05-09T05:42:34.004242 | 2020-12-15T04:39:37 | 2020-12-15T04:39:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,587 | py | # -*- encoding: utf-8 -*-
"""
@Author : zYx.Tom
@Contact : 526614962@qq.com
@site : https://zhuyuanxiang.github.io
---------------------------
@Software : PyCharm
@Project : NLTK-Python-CN
@File : C0502.py
@Version : v0.1
@Time : 2020-11-19 10:34
@License : (C)C... | [
"zhuyuanxiang@gmail.com"
] | zhuyuanxiang@gmail.com |
328697067ce65e17a1fc75506e3125b383a93687 | fcc307a37e476afe6974feba52a9c81e9feede55 | /Importable Files/Circuits.py | 48fdedd0b66f4d437639cdc787445f0566355065 | [
"Apache-2.0"
] | permissive | thealexrk/Optimizing-Gate-Synthesis | ab8be5cccbc91b8b300cc56fd4e15972feafab8a | 3bc36f5d591d746d7b0d142797b53fb52382edec | refs/heads/main | 2023-06-24T08:36:30.743415 | 2021-07-18T02:35:08 | 2021-07-18T02:35:08 | 383,876,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,261 | py | import numpy as np
import tensorflow as tf
import strawberryfields as sf
from strawberryfields.ops import *
def one_mode_variational_quantum_circuit(cutoff, input_state=None, batch_size=None,
depth=25, active_sd=0.0001, passive_sd=0.1, **kwargs):
with tf.name_scope('variables'):
d_r = t... | [
"noreply@github.com"
] | noreply@github.com |
2174b795b603fa21096a6785c9d48f544f644a5f | f30163c5c3c2051a699062a2baa4a632e2d47ad6 | /openspeech/models/openspeech_encoder_decoder_model.py | de45acc8ed693c7d77c9502a55c9ffc3282f54ff | [
"MIT",
"LicenseRef-scancode-secret-labs-2011",
"Unlicense",
"HPND",
"BSD-3-Clause",
"ISC",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | dnfcallan/openspeech | 6740672df1e9c43e898ff9eaa5fafdc20bf9593a | 55e50cb9b3cc3e7a6dfddcd33e6e698cca3dae3b | refs/heads/main | 2023-06-20T19:40:28.953644 | 2021-07-16T10:16:05 | 2021-07-16T10:16:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,191 | py | # MIT License
#
# Copyright (c) 2021 Soohwan Kim and Sangchun Ha and Soyoung Cho
#
# 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... | [
"sooftware@Soohwanui-MacBookPro.local"
] | sooftware@Soohwanui-MacBookPro.local |
8c6e4b91e7b6f79b3630064c37797349bea0cd72 | ae926cc3cf35b56db4788792c0f6efeee6fadfe6 | /backend/backend/settings.py | ae37e1bf39f04cc72e335d49b78c23616e139976 | [
"MIT"
] | permissive | dgrechka/RAAHAnomalies | c3dcfab601a55be2a592f030350927bcbedd1334 | db045f77a2cfade903c4206958641ee0a0e94566 | refs/heads/master | 2021-01-13T17:09:52.856709 | 2016-09-30T05:49:12 | 2016-09-30T05:49:12 | 69,476,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 1.10.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os... | [
"dmitry@grechka.family"
] | dmitry@grechka.family |
0383b2b2b507b402219ade21d8941ecaa8968754 | 035b1bf87df0c27222da1ce0495b9e6f65ac3ce1 | /user/urls.py | a05cae585fd00a00a1256983e0bc058d8202552d | [] | no_license | klevamane/Airtech | 445760eb779ba65c7f878f0cbd72f5583702b241 | c04cf002c26f774428cddc8572886f933a14ab10 | refs/heads/develop | 2022-12-11T18:55:10.251077 | 2021-06-11T03:04:16 | 2021-06-11T03:04:16 | 201,683,952 | 0 | 0 | null | 2022-12-08T08:29:34 | 2019-08-10T21:18:28 | Python | UTF-8 | Python | false | false | 418 | py | from django.urls import path, include
from user.views import ListCreateUsers, UpdateUser, RetrieveUser, UserPassport
urlpatterns = [
path('', ListCreateUsers.as_view(), name='list_user'),
path('update/<int:pk>/', UpdateUser.as_view(), name='update_user'),
path('<int:pk>/', RetrieveUser.as_view(), name='ret... | [
"klevamane@gmail.com"
] | klevamane@gmail.com |
e42aacb10289b7c12bad3e11cd8976449bf40bab | a52aa2887c455cbf5356f2daf18b227eaa9b2bea | /PageObject/Sites.py | 2ae3b6b908c926ad228a773b3bca34dbea19accc | [] | no_license | soneygeorge20/Test | 70cd0deeeb362b8eed1615925caa80f6f947936b | 3c8aa2836dd5e91bea4816a9fcba5495c10a44b5 | refs/heads/master | 2022-08-28T20:43:01.608571 | 2020-05-27T05:45:50 | 2020-05-27T05:45:50 | 267,230,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,929 | py | from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
import time
from Tests.test_Login import login
from selenium.webdriver.support import expected_conditions as ec
from selenium.webdriver.common.action_chains import ActionChains
class EstateManagement():
def __in... | [
"ramanan.renjith@hashedin.com"
] | ramanan.renjith@hashedin.com |
d213dcb78a7385c863ee504ef0b48d0dd068f1cc | 248f4ca913ccee282611ef2300f31a7bfd0d7add | /0x00-python-hello_world/code/0-main.py | b4e714ac1ef649522cb646efdbf3b0a45e056f7b | [
"MIT"
] | permissive | Chivylif/alx-higher_level_programming-1 | c17b2e390e19c208ce6328faf7281f71bccea026 | 0555feb195ee7373d1d6f9eb300d30ca10a967d8 | refs/heads/main | 2023-09-04T16:39:43.168964 | 2021-11-15T12:45:56 | 2021-11-15T12:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | #!/usr/bin/python3
print('Best School')
| [
"paannang@st.ug.edu.gh"
] | paannang@st.ug.edu.gh |
4a5dfdff1d4b9a470669aab31e774e0f0efe5b61 | 7eb3ca539f3419056181ec6dcaf81ce43772aed3 | /Covid19/settings.py | 58dbd7c7ab25d0d96ec4da83959849155a841c50 | [] | no_license | XSarthakJain/Covid19 | b3e57f0abf40b0986e8eee99dc52f8488034a081 | f2b8a8d8639a4b534522ff6d229faf6863bacd45 | refs/heads/master | 2021-04-24T00:17:18.395687 | 2020-12-18T18:22:45 | 2020-12-18T18:22:45 | 250,041,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | """
Django settings for Covid19 project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
#... | [
"sarthakjain31797@gmail.com"
] | sarthakjain31797@gmail.com |
e5ddd7aba69f9a89bd05e9fe964134631de6076e | c5a60e12ee8ccfe3d54af7002ea2415dfe1d465f | /Utils/OfTheSample.py | 731b34287f72a7b6a07c94ef64cdf67d2155b949 | [] | no_license | ptax/WebCrawler_FR | 3e2e34ca4cde20dd3590a4e9d554e744a62d663f | 3fa69996862b2d921a594a3160f800486d8c2ab8 | refs/heads/master | 2020-12-03T03:52:09.027456 | 2017-09-18T07:23:05 | 2017-09-18T07:23:05 | 95,782,184 | 1 | 1 | null | 2017-08-14T06:48:22 | 2017-06-29T13:46:30 | Python | UTF-8 | Python | false | false | 6,181 | py | # -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
import os
sys.setdefaultencoding('utf-8')
import os
from bs4 import BeautifulSoup
import urllib2
import codecs
import re
import urllib
import collections
import Utils.SaveAndLoadDictFile
import Utils.GetListInFile
import Utils.convert_to_l... | [
"truhanski@gmail.com"
] | truhanski@gmail.com |
ea7bf0f7096a8349299ef936f938975ab7b73adb | 01816e373df80cd141d99bb206d354f36606b73b | /collegecircles/profiles/forms.py | 28af29223fa8744b1b389e8b82286322c2429b7e | [] | no_license | enliven-/task-it | f9304e01190e28ec9f1c461b34d7da61929926ae | 8af0b0bf878f4f1a5419c5075fbceaa07fe1b68f | refs/heads/master | 2021-01-10T21:01:48.574874 | 2012-10-16T06:48:37 | 2012-10-16T06:48:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | from django import forms
from django.utils.translation import ugettext_lazy as _
from userena.forms import SignupForm
class SignupFormExtra(SignupForm):
"""
A form to demonstrate how to add extra fields to the signup form, in this
case adding the first and last name.
"""
first_name = forms.... | [
"enliven.viksit@gmail.com"
] | enliven.viksit@gmail.com |
5937a083574b20b77de3073d1b7317e4f94be9ec | c9cf4e7acd3ff09412610965dc83988b3f501e5e | /utils/readWrite/read.py | 2fe030fe3668a47d797bc8bc787023f8779bee51 | [] | no_license | Noba1anc3/General-Doc-SemSeg | 31df6cc0c747c5586fbbeb9dace6170d3fbef4bd | 27d9761fd45b2d5d52cfe3ed50413f902912b238 | refs/heads/master | 2021-05-19T04:15:42.604378 | 2020-03-31T06:59:45 | 2020-03-31T06:59:45 | 251,524,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,247 | py | import os
import sys
from configparser import ConfigParser
from utils.logging.syslog import Logger
class Configuration():
def __init__(self):
self.logging = Logger(__name__)
Logger.get_log(self.logging).info('Start processing ConfigFile')
self.config()
Logger.get_log(self.logging).i... | [
"zxryhjp@yahoo.co.jp"
] | zxryhjp@yahoo.co.jp |
f136d9db8b94f0e53efbbc70c47580ef221ffdba | b37c3880d70bcddc4d5bbf6a9eda1448d6479ccf | /models/actions/collect_stats_from_model.py | f55d8effb6b0ab678dc23a2b1fcf3ef6a2aaabb1 | [
"Apache-2.0"
] | permissive | marco-foscato/Lib-INVENT | 1e04efafa831f37520d713edefc65c44295a0937 | fe6a65ab7165abd87b25752a6b4208c8703d11f7 | refs/heads/main | 2023-08-20T00:59:47.398695 | 2021-10-12T09:26:56 | 2021-10-12T09:26:56 | 414,649,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,471 | py | import random
import scipy.stats as sps
import numpy as np
import torch
from rdkit import Chem
from reinvent_chemistry.library_design import BondMaker, AttachmentPoints
from models.actions.calculate_nlls_from_model import CalculateNLLsFromModel
from models.actions.sample_model import SampleModel
class CollectStatsF... | [
"vendy.fialkova@gmail.com"
] | vendy.fialkova@gmail.com |
43213fd8ed7802e09246a9ad9f3a8db7e018b0c0 | 4e0edae5e6d44efb29ac10983565b5898be66cc7 | /Backend/JobDecision/universities/schema.py | 2bdbe7415fdc4b3d90f3ea2881dcc199abe7a8eb | [] | no_license | deaddesert/Job-Decision-Blog | 3fbf8a3258bf0a50654db7d97d1b99be121e6bd9 | 8bdeadfe76b3d8366fa8469f28098f6ce71aa7d2 | refs/heads/master | 2023-04-22T02:40:10.729697 | 2021-05-13T06:24:27 | 2021-05-13T06:24:27 | 366,952,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | import graphene
from .models import Universities
from graphene_django import DjangoObjectType
class UniversityType(DjangoObjectType):
class Meta:
model = Universities
class Query(graphene.ObjectType):
all_universities = graphene.List(UniversityType)
def resolve_all_universities(self, ... | [
"daipham1302@gmail.com"
] | daipham1302@gmail.com |
d5daa8b5cd6d5f6b59bd29392c68fe322c4c8036 | 0938650b1b4c8bedfc1c1c9a20ed7d5f128d4336 | /money/dbs.py | c7a0cc32d547643931c9d0b80c5b3826e2772be4 | [] | no_license | hussachai/money | 21a5d3234aa0ac1dc5d259c42a9195e46bbc994e | 689a88528dad3e146115ecdfec3a45d49d22da2b | refs/heads/master | 2021-05-04T22:50:37.161863 | 2018-02-03T07:12:26 | 2018-02-03T07:12:26 | 120,067,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,329 | py | from django.db import connection
from django.db.models.functions import Coalesce
from money.models import *
def get_saving_goal(year):
return AnnualGoal.objects.filter(year=year).values_list('target_saving', flat=True).get(pk=1)
def get_record_years():
# return StmtBalance.objects.order_by('-closing_year')\... | [
"hussachai.puripunpinyo@workday.com"
] | hussachai.puripunpinyo@workday.com |
81f661054b560fbd42aecda12a314ae90688b328 | baf950e39fd81ab0006de7fe51e957f85e7f8c44 | /pytorch9.py | 8ccc616fdf816de6631da01da0a01f7b9bb6f308 | [] | no_license | LuisStruggle/pytorch | ef8a569d5410c7f25785a4aa5d1374a0688bff1a | 4b64054502d6e91ee387f8437a7bf7fd3fa15e56 | refs/heads/master | 2020-03-27T18:58:46.195290 | 2018-09-01T01:26:58 | 2018-09-01T01:26:58 | 146,957,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
# @Time : 2018/8/30 15:46
# @Author : ly
# @File : pytorch9.py
import torch
from torch import nn
from torch.autograd import Variable
import numpy as np
torch.manual_seed(1) # reproducible
# Hyper Parameters
TIME_STEP = 10 # rnn time step / image height
INPUT_SIZE = 1 # ... | [
"18300767078@163.com"
] | 18300767078@163.com |
b5d584c0987fe45dac2d1daf4fcd072b9b34ef63 | 82a7ae58802527ef4728b7842eaad654c65333fe | /Python/Segurança/Redes/UDP/01_Unidirecional/client.py | a971765e0c5df61342cc83b0c68be9cfb3409fd2 | [] | no_license | Alhenri/Codigos | 77929651091d2af63fe689e2a90758126f8ffb5c | 681ef7abeee61e843e6a6717ca5f0be8d9ce0eb5 | refs/heads/master | 2022-12-19T23:39:02.773176 | 2020-10-07T19:30:22 | 2020-10-07T19:30:22 | 259,753,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | import socket
HOST = '10.0.0.103' # Endereco IP do Servidor
PORT = 3000 # Porta que o Servidor esta
udp = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
dest = (HOST, PORT)
print('Para sair use CTRL+X')
msg = input("Mensagem: ").encode()
while msg != '\x18':
udp.sendto (msg, dest)
msg = input("Mensa... | [
"ahssf@cin.ufpe.br"
] | ahssf@cin.ufpe.br |
6ffe89477a6ba30eede26110722d8e5903edaec3 | 676b857c58d12732107b777292dfd30a38628f6e | /Web_App/migrations/0005_auto_20191216_2017.py | bc13754bea62b30741b5300d0df787c17de8576c | [] | no_license | Vadi3994/ProjectCDEMCA | 889a8a229e618a7d7ed179162e4038d756f9aa96 | d6875107507b98b3937e81efa8b31dc9d62fe36a | refs/heads/master | 2022-12-11T08:41:03.123339 | 2020-01-07T10:34:39 | 2020-01-07T10:34:39 | 220,671,890 | 0 | 0 | null | 2022-12-08T03:22:02 | 2019-11-09T16:41:02 | CSS | UTF-8 | Python | false | false | 3,223 | py | # Generated by Django 2.2.5 on 2019-12-16 14:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Web_App', '0004_auto_20191216_1957'),
]
operations = [
migrations.RemoveField(
model_name='dish',
name='restaurant',... | [
"57568956+Vadi3994@users.noreply.github.com"
] | 57568956+Vadi3994@users.noreply.github.com |
3bdd6251f6f7f7c4622a1699b8f4ec4bec29f69c | 7d48435ff8a3d68fe2f4dd13e45416018e08f068 | /migrations/versions/54d450ac3d88_.py | 174708466aef2534c76fd288ec795e8158d6858d | [] | no_license | blessingodede/Fyyur-1 | ba930bb5e78ed57923ec58f325f6fb1fada2b3e6 | ba878826aff28c8a2313d0447218c4fccafbdc65 | refs/heads/master | 2023-08-15T17:03:18.382190 | 2020-06-26T23:13:08 | 2020-06-26T23:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,682 | py | """empty message
Revision ID: 54d450ac3d88
Revises:
Create Date: 2020-05-02 11:16:19.255130
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '54d450ac3d88'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"szalai.balazs.david@gmail.com"
] | szalai.balazs.david@gmail.com |
bd37d6634f405523c79a877228689da80f242c6a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_89/46.py | 2b2b33f6462a2c18f37ba5fc20391f0621f9a50f | [] | 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 | 1,842 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Waiters en LCM
"""
import sys, time, copy
from pdb import set_trace as DEBUG
def p(*s):
print >> sys.stderr, s
def gcd(a, b):
while b:
a, b = b, a % b
return a
def lcm(a, b):
return a * b // gcd(a, b)
def lcmm(*args):
return reduce(lcm,... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
78834feda7d793f9bb22256459dfe7e441573300 | 9042ed3100891c2fbe063d56b59e850a8e7f97cf | /src/example2/receive.py | 706ea40da000be5e486aed3c3e71e017fccb7e38 | [] | no_license | gonzalo123/rabbit_examples | 6b94fa0ec9673cec41c7ac398bbd8407a0392ddb | a3922344f6f76826c3596f37bb16f8e8b9f8cb87 | refs/heads/master | 2020-04-14T06:24:18.601886 | 2019-01-01T19:38:52 | 2019-01-01T19:38:52 | 163,685,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | import pika
import logging
from dotenv import load_dotenv
import os
current_dir = os.path.dirname(os.path.abspath(__file__))
load_dotenv(dotenv_path="{}/../.env".format(current_dir))
queue_name = 'example2_queue'
exchange_name = 'example2_exchange'
logging.basicConfig(level=logging.WARNING)
def callback(ch, method... | [
"gonzalo123@gmail.com"
] | gonzalo123@gmail.com |
ad0e5761a1f31f49b7f39cfb2155fa2919f90598 | 4ed2353da08d7acb2c70ee2f4df4f31491cbddc8 | /Python/kakao-crane.py | 04750bece328d708293dbea921b81418b37af890 | [] | no_license | hayoungishere/Algorithm | 95f0b6a76002a00c677dcfb1d276858c79824a40 | 46bcc06705fb9e1c0d102e415381b3d88dc29600 | refs/heads/main | 2023-03-04T14:25:13.185809 | 2021-02-17T08:31:44 | 2021-02-17T08:31:44 | 315,022,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | '''
문제 : 크레인 인형뽑기 게임
접근 : 인형의 위치별로 Queue를 생성해서 먼저들어간 인형을 뽑기 완료 통에 옮긴후
뽑기 완료 통의 마지막 두개의 인형을 비교해서
같으면 완료통에서 제거 및 제거된 인형의 수를 2개 증가시킨다.
'''
def solution(board, moves):
answer = 0
q=[]
for i in range(len(board[0])):
q.append([])
for b in board:
for idx in range(len(b)):
if b[i... | [
"hayoung.is.here@gmail.com"
] | hayoung.is.here@gmail.com |
095caea73aa96ae1296741d2bdaebcccd396fe96 | 7361ee0129351b8bb594b7a7bb47c143de84dd36 | /1009.py | 85da83df649bda6d6593278319f2d1310a44abef | [] | no_license | antonioroddev/Uri | 5d22c3ba3e01977674874cc4d1ad38ecb8be1ee9 | 12e7c447e79db71ff13587de0079d0a5bcdac218 | refs/heads/master | 2022-05-22T12:03:33.717084 | 2022-04-14T01:52:26 | 2022-04-14T01:52:26 | 216,880,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | if __name__ == '__main__':
lista = [input() for i in range (0,3)]
valor = float(lista[1]) + (float(lista[2]) * 0.15)
print('TOTAL = R$ {:.2f}'.format(valor)) | [
"juninhor-51@hotmail.com"
] | juninhor-51@hotmail.com |
c0e7b618b41f6bf572931b8cb5856b7a0df3f2a6 | c72dae37d94d8f9e80db232a9838244e2bb33fb2 | /src/manage.py | f540c9bbd28fadb0d88b4cc35e2e4f64a9735e3f | [] | no_license | Asifrahman96/DjangoTeachzy | 956ae3c2e9b917ec1bb181fb06babe32f7f48083 | 89e3a07b0beb12e328747a0bc369d731d63b10ec | refs/heads/master | 2023-02-24T03:08:17.274863 | 2021-01-28T20:18:41 | 2021-01-28T20:18:41 | 333,869,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'teachzy.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"asifrahmananvar@gmail.com"
] | asifrahmananvar@gmail.com |
666af051b388d54ac1c5626df13b9623c27559f9 | 031689bc515f36124f717163eedc3e26104ac9c2 | /numbers/numbers.py | def438419584f744602cfceeacac6fac3a7142eb | [] | no_license | maduoma/Python | 8bbe7fb04e3e8546a4f09bdfd06888ed9289adef | 54ba02d3e5b84f9d18a0fbf95cdf4b716785b6a7 | refs/heads/master | 2023-01-25T00:43:27.170455 | 2020-12-09T17:07:17 | 2020-12-09T17:07:17 | 212,003,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | print('Adding numbers')
x = 34 + 4
print(x)
print('Substracting numbers')
j = x - 5
print(j)
print('Dividing numbers') #USE this comment to debug or detect where errors occur in your code easily
y = x / 2
print(y)
print('Multiplying numbers')
z = y * 2
print(z)
print('Exponential')
k = z ** 2 # z is raised to the pow... | [
"aachilefu@yahoo.com"
] | aachilefu@yahoo.com |
df83d5a7dd4519c161af3d3ee44ec13728526be2 | df0131275eee8ca8094bf976d21c06fb15beb050 | /mysite/polls/migrations/0002_auto_20170627_0547.py | 7aec92622c08c269175c232389aad17a584f3e8d | [] | no_license | tallestross/django-blog | adecbbd589301f542a781b474e173b350079481e | d2bbd1fde3fda601d95a6190ac17fe62af998f32 | refs/heads/master | 2020-12-03T03:44:23.426402 | 2017-06-29T10:42:09 | 2017-06-29T10:42:09 | 95,767,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-27 05:47
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('polls', '0001_initial'),
]
operations = [
migrations.RemoveField(
model... | [
"rossmaude@daedalus.local"
] | rossmaude@daedalus.local |
8cde3781272c47dc93995ad7a393be282fd619be | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/9/wuz.py | 25bf44e8b6d42681dc820d4df1c4e481b029d13a | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
72c850969dfe5e6528309e706ffd673c82f7a44c | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/VanderPlas17Python/E_Chapter4/E_VisualizingErrors/index.py | c2c770e9b709e97993efbbfb79962c767157f91e | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,314 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.HierBlock import HierBlock as hbk
from modules.node.block.ImageBlock ... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
c3eb45757b31826b76c4a5bccf76f83a9879853c | 547bcde193880e1eb4f106bba86b6f834bff67f1 | /Python training/random&statistic.py | ba3fcf5955a2661d4c93a5be7007c6beaf957cae | [] | no_license | samwang1228/python_university | e68865dcfac1013cba1a3902f5ad2b977878d907 | 699c413fc8602e9e4f2e6c79a1e9a13717c8711e | refs/heads/main | 2023-07-11T16:56:49.809966 | 2021-08-25T06:29:43 | 2021-08-25T06:29:43 | 382,614,912 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | # import random
# data = random.choice([3, 5, 7, 8, 9])#隨機選取數
# data2 = random.sample([56, 7, 8, 99, 55, 789], 3) #隨機選取n數
# print(data)
# print(data2)
# data3 = [6, 7, 8, 9, 56]
# random.shuffle(data3)#隨機對調
# print(data3)
# data4 = random.random() #隨機得到0-1的亂數
# data5 = random.uniform(60, 700) #隨機得到自訂範圍的亂數
# print(d... | [
"samwang19991228@gmail.com"
] | samwang19991228@gmail.com |
ddf18c6a060e40517c149887c561b4e03e87793a | 8079653aa4e6c4b9a0cb8e0443b7733a59f97d4c | /conduit/apps/authentication/migrations/0001_initial.py | 722bfc8c740fa3cc87fbbcdbf6f6b3775ac54741 | [] | no_license | awesomeo184/conduit-django | 0d1b7fedc1708bc45c0b94b47f31e54394922cd4 | e78a92a70716db39d084405f84864e5a837a8af9 | refs/heads/master | 2023-04-24T07:21:21.888778 | 2021-05-15T09:58:57 | 2021-05-15T09:58:57 | 365,478,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | # Generated by Django 2.1.7 on 2021-05-08 08:54
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_last_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
... | [
"63030569+awesomeo184@users.noreply.github.com"
] | 63030569+awesomeo184@users.noreply.github.com |
244432cad8114ac63b3727be89be73ba4dde304e | 00c7e4998c4fc598a94659bb26aff134a07f233d | /book_list_processor/admin.py | 737794e456ad7d84edd3d4361901d1a67ef447b3 | [] | no_license | majajj/bibliotecos | 169ae84f3bcddd6193d39c48e82eb7e04c828326 | 9352a8dddb77078a23f5ba0967e626236812c9b2 | refs/heads/main | 2023-09-03T13:14:18.805642 | 2021-10-22T19:14:10 | 2021-10-22T19:14:10 | 419,840,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | from django.contrib import admin
# Register your models here.
from .models import Books, Languages, Authors
admin.site.register(Books)
admin.site.register(Languages)
admin.site.register(Authors) | [
"maja_jj@interia.pl"
] | maja_jj@interia.pl |
09de20572af603359e9a5141a7b3b235bf3c8d92 | 734a4a8515a60d35129199864832d074db22b490 | /GWC_Unit_2/U2L4/Project_DictionaryAttack.py | d0cedf207a19a2f6dd92baa1314cc305dcedba5a | [] | no_license | Ale-ZJ/GWC-SIP-2019 | 751bf55ff6f977e22c9e9ed9473a9c901d3c71f4 | a956ac46ac06defc3f494cf09a59f431b3ed4a5f | refs/heads/master | 2020-10-01T11:51:21.091875 | 2019-12-12T06:06:07 | 2019-12-12T06:06:07 | 227,532,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | #Opens a file. You can now look at each line in the file individually with a statement like "for line in f:
f = open("dictionary.txt","r")
def main():
print("Can your password survive a dictionary attack?")
#Take input from the keyboard, storing in the variable test_password
password = input("Type ... | [
"noreply@github.com"
] | noreply@github.com |
708ec5e9efed78704e36ae71c7532a84aa87f723 | 8e2962ac3aeb1c584bdddbc993a2873037139030 | /play_turf_book/main.py | 4e0655d1c42db6d658aeb827dadf34404673b177 | [] | no_license | shakhawat009/terf-booking-system | ff1a1b913aade135b24af5ace8ddd7fc50d71bfe | d394d7e003fadec3d95444ee16b328c79df0f897 | refs/heads/main | 2023-04-10T01:00:27.651409 | 2021-04-17T16:54:35 | 2021-04-17T16:54:35 | 358,913,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,676 | py | from flask import Flask, render_template, request, redirect, session
import mysql.connector
import os
app = Flask(__name__)
app.secret_key = os.urandom(24)
conn = mysql.connector.connect(host="localhost", user="root", password="", database="turf")
cursor = conn.cursor()
@app.route('/')
def login():
return rende... | [
"anol182006@gmail.com"
] | anol182006@gmail.com |
0fbaab7562dfc9e920f442142b34da9865161986 | 7fdff3ab45f5fef05cc76f97ee44e44779f87120 | /peerloan/migrations/0018_auto_20160912_1536.py | e45c005b5ff05f11df1b1b9a437414fdb3067bda | [] | no_license | Calvin66der/project_peerloan | 4a132c7464b21e75a80f091d44c389cbd10c2cc5 | 99a02843addbfcffec5c7d7a964f0b3347a03962 | refs/heads/master | 2021-01-12T07:45:00.811952 | 2016-12-20T08:44:42 | 2016-12-20T08:44:42 | 77,006,043 | 0 | 0 | null | 2016-12-21T01:47:48 | 2016-12-21T01:47:48 | null | UTF-8 | Python | false | false | 425 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('peerloan', '0017_borrowrequest_overpay_amount'),
]
operations = [
migrations.AlterField(
model_name='loanschedul... | [
"15113029g@connect.polyu.hk"
] | 15113029g@connect.polyu.hk |
74dd618d18c4dd6fd9ec1f4f37e5133181f704b5 | 07aa4ceb23e978f56c0b0d0252cb956fcbd0f406 | /stock/forms.py | 70de2cb433f70135940e48b446314e6daba8deb6 | [] | no_license | roneluis/atv_1 | 59d051ea65fb91ce3f60d9b441e61ce43501f958 | a0b0e862f51ef337bd373076a1b59ca88d224bc7 | refs/heads/master | 2020-07-31T19:13:49.988000 | 2019-10-31T22:59:15 | 2019-10-31T22:59:15 | 210,724,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | from django.urls import path
from . models import Product
class ProductForm():
class Meta:
model = Product
fields= '__all__' | [
"aluno@ifpi.edu.br"
] | aluno@ifpi.edu.br |
b9a172d7ba31bd020ab4da9502ea8144497f4b18 | d58e4c4d955700979a093013488cc154cf1416f9 | /launcher.py | bf45f5f57e9a63b6230c63f784e5f413dfdbdf98 | [] | no_license | sgh304/YouTube-to-Podcast | 8ed5f3a363eb1bb29c9994ac3405335ea29df0fb | 864e3cc89d807b4e6e9a4c4af52a17f62974b9d8 | refs/heads/master | 2021-04-09T16:17:58.409523 | 2018-03-21T01:44:27 | 2018-03-21T01:44:27 | 125,786,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | # Running this script will launch YouTube to Podcast
from gui.app import YTPApp
YTPApp().start() | [
"sgh304@nyu.edu"
] | sgh304@nyu.edu |
db61be2c3b26ca80b961f9b324f981d7de1be14a | 99361c45166c3e39bdc1e5e7ff796b60e5edc20e | /setup.py | 59352d3cc65d0277c567478e0470ebd9187c11c0 | [] | no_license | wkcn/WorldCup | 2b358b73aab5496b3f7e209dc615c97c0181abff | 1acef2d2cadf5e8cbb911b05a8ecfd98aa43920d | refs/heads/master | 2020-03-08T10:38:08.558059 | 2018-04-04T15:03:07 | 2018-04-04T15:03:07 | 128,077,995 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # -*- coding: utf-8 -*-
from distutils.core import setup
import py2exe
import sys
sys.argv.append('py2exe')
setup(
windows=[
{"script":"run.py","icon_resources":[(1,"logo.ico"),]}],
options={
"py2exe":{"includes":["sip"],"dll_excludes":["MSVCP90.dll"],\
"bundle_files": ... | [
"wkcn@live.cn"
] | wkcn@live.cn |
3037cc9f0d5675cef844ea03c08be30f015cdeb3 | fe7996f7110211e8c2df7cd7a4d81cc572204a70 | /synthetic-enumeration/sprint-12/03-collect-experimental-data-from-Lauren-assignments.py | afb9cf0e066c49396bcbc2bd77a5215fad858d7a | [
"MIT"
] | permissive | FoldingAtHome/covid-moonshot | 78c2bc7e6d00f371d626fcb0a4381cf528413eef | 814189c239f8f0189c6cc48afcbca1f96c87dd09 | refs/heads/master | 2023-02-23T04:23:00.064389 | 2023-02-19T23:18:10 | 2023-02-19T23:18:10 | 249,626,873 | 62 | 11 | MIT | 2022-03-01T20:43:56 | 2020-03-24T06:07:39 | Python | UTF-8 | Python | false | false | 5,603 | py | #!/bin/env python
"""
Collect experimental data from Lauren's reassignments via CSV file
"""
import numpy as np
import json
import math
import itertools
import datetime
from rich.progress import track
from openeye import oechem
xchem_project = 'Mpro'
creator = 'John Chodera <john.chodera@choderalab.org>'
creation_d... | [
"john.chodera@choderalab.org"
] | john.chodera@choderalab.org |
dafdc684d69ccb7e4b1bf6da6b8f289643e6dcdc | 056e68b3d1f69a1fe39ed309e02021510fb42c86 | /flaskblog/models.py | 891616024bf296701924735920ffa2c5e53e3ba1 | [] | no_license | thecatfather/ccusingflask | 478e9b8ead59e2337a17a5b792298478f109546f | f39cd7d280bb16a34bb9ca2ceb046ac959033221 | refs/heads/master | 2020-04-20T16:57:32.481600 | 2019-02-13T08:19:02 | 2019-02-13T08:19:02 | 168,974,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py | from datetime import datetime
from flaskblog import db, login_manager
from flask_login import UserMixin
from flaskblog import ma
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(db.Model, UserMixin):
id = db.Column(db.Integer, primary_key=True)
username =... | [
"rbongole@gmail.com"
] | rbongole@gmail.com |
eca69742d6ec30ac047d2b79b46fa7b0ddc3cf56 | 237cc38de0cf7a6e3661ed552ae771bd972d7438 | /base/obj2_demo.py | ce08920ba539aeb6829dc7a411f369bec63a4e60 | [] | no_license | chydream/python | af5ad8a98c78de71e255f7b776f936c4b89c616e | e5bfef53a7770d4f323bd2877f93c8166c563695 | refs/heads/master | 2020-05-07T17:00:33.558178 | 2020-05-05T13:45:19 | 2020-05-05T13:45:19 | 180,708,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,949 | py | class Point(object):
# 自定义Point类的构造(初始化)方法
def __init__(self, x, y):
self.x = x
self.y = y
# 自定义Point类对象的格式化输出函数(string())
def string(self):
print(print("{{X:{0},Y:{1}}}".format(self.x, self.y)))
class Circle(Point):
# 自定义Circle类的构造(初始化)方法
def __init__(self, x, y, radi... | [
"yong.chen@doone.com.cn"
] | yong.chen@doone.com.cn |
c35ab579b433069684ee0bf476370e083fcfb453 | aeb80fbbdf88c34db80622f5217a4d8063ac9e61 | /d05/d05.py | 085ba6f0d0884ff06260de3f699f88cddc9bc2c3 | [
"MIT"
] | permissive | panaC/aoc2020 | f8b0344832ec1c6ac3f5479a039824226d5ea511 | f56557dace7ffb127dd5cb65aaaa9545be3aa7fb | refs/heads/main | 2023-02-25T01:00:23.667314 | 2021-01-28T11:21:46 | 2021-01-28T11:21:46 | 317,681,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | #! /usr/local/bin/python3
import sys
hight = 0
for line in sys.stdin:
code = line[:-1]
row = code[:-3].replace('F', '0').replace('B', '1')
col = code[len(code)-3:].replace('L', '0').replace('R', '1')
rowNb = int(row, 2)
colNb = int(col, 2)
result = rowNb * 8 + colNb
hight = result if res... | [
"pierre@leroux.tech"
] | pierre@leroux.tech |
61b29a161fb3a5b414f6c50b219b64635692cc93 | 5d8d03c6a76d3135b197bf384196da1e09cc05ed | /pca_refit.py | 48bcbc4f05b5290fe89ef0c5e5f865956d75375c | [] | no_license | Rizo-R/halo-emulator | c68da732bf9f6a00850268c129141062f8ec7d03 | 50c383008a038859ac1e7877791ba0aca2ad055b | refs/heads/master | 2022-12-17T10:24:00.556646 | 2020-09-09T04:57:12 | 2020-09-09T04:57:12 | 294,006,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,470 | py | import glob
# import matplotlib.pyplot as plt
import numpy as np
import os
import pickle
import scipy.integrate as integrate
import scipy.linalg
import scipy.optimize as optimize
import scipy.stats as stats
import sys
import time
from emulator import *
from HMF_piecewise import *
from likelihood import *
from pca imp... | [
"rr555@cornell.edu"
] | rr555@cornell.edu |
bcecf19a76654b9735e8f6b836de6dcc2ee25033 | 1496c7886cf599cc2168aba4948b4928018c3639 | /0x0A-python-inheritance/100-my_int.py | 9d35dc64e881227b3ea25e363b7895b572123aac | [] | no_license | RhysMurage/alx-higher_level_programming | 5365e3617bdba54d8093de7f0869f89bf89ccebd | 08c50efb3602ce7d4ff1782351fac8103fd38e12 | refs/heads/main | 2023-03-16T02:01:40.105333 | 2022-09-24T13:51:40 | 2022-09-24T13:51:40 | 497,946,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | #!/usr/bin/python3
"""Module: 100-my_int.
Defines a class that inherits from int.
"""
class MyInt(int):
"""MyInt inheriting from int
and alters the behaviour of __eq__ and
__ne__ methods
"""
def __eq__(self, other):
"""Equal to returns not equal to."""
return super().__ne__(other... | [
"rhysmwangi96@gmail.com"
] | rhysmwangi96@gmail.com |
807e44571462068ec800b4c50f9971c9cb9ca44e | 99921fdadad851381cb3181389bbaec3afa216f4 | /src/process_data.py | 4f1fc60c9d4c951b2a896e3e2f2870f96dafe789 | [] | no_license | 0ncorhynchus/brcn | 3352e6cf7da502baba86fe8393687d6d05053e53 | c58379dd2e1d4863fc2ecc9c8817cae491f54012 | refs/heads/master | 2020-04-08T14:23:39.829433 | 2018-12-07T00:07:22 | 2018-12-07T00:07:22 | 159,435,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | import cv2
import numpy as np
import os
from yuv import *
import tensorflow as tf
from example import encode
video_size = (176, 144)
spatial_size, spatial_stride = (44, 14)
temporal_size, temporal_stride = (22, 8)
blur_size = 2
scale = 2
def generate_low_resolution(image):
(height, width) = image.shape
blur... | [
"salmon.bioinformatics@gmail.com"
] | salmon.bioinformatics@gmail.com |
9933283ab2b775642801fc8a449775d294696780 | d94b4a5bc2102c44fc94febdd20f9f4f68539f54 | /Assignment-7/PoC/Decrypt-Exec-Hello.py | fa6a02e0f4862a0eb67e89100d72e4b458acbcd0 | [] | no_license | andrea-perfetti/SLAE32-Exam | 6bf997f1a9b7d6a6eeea553f908d2e866549251f | 01062ec7ae8b31bf1f27368ab42592bae60c1517 | refs/heads/main | 2023-03-22T10:12:57.258489 | 2021-03-15T21:58:53 | 2021-03-15T21:58:53 | 344,601,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | ########################################
# Filename: Encoder.py
# Author : Andrea Perfetti
# SLAE ID : SLAE - 1547
#:::::::::::::::::::::::::::::::::::::::
# USAGE
# Add your shellcode in the 'shellcode' variable following the example
# then run the script to get the encoded version.
# Copy it into Decrypt-Exec.py and... | [
"dont-delete-me.ko@protonmail.com"
] | dont-delete-me.ko@protonmail.com |
328b84e77f3572ea1cbccf24d81a1b205bb7d20e | e27124070b4603400111e6904b5ccf89a02fc3b6 | /manage.py | b16005ea12184873baf0c6cf5c8e53d76270ec9c | [] | no_license | Kamigami55/eason-web | 1e4ee7a24add696a16c92069caa94419ab3a0d64 | fcbea248b4a661a0be07d6652edb6226a96ecc05 | refs/heads/master | 2021-04-27T06:43:29.080862 | 2018-02-26T19:57:47 | 2018-02-26T19:57:47 | 122,618,565 | 1 | 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", "easonweb.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... | [
"samkami@icloud.com"
] | samkami@icloud.com |
de7cace9fcdd435663d1c5929d8486dd6f76c4f8 | 1cfc389ea896917b9e37942807ff28775b254cbb | /Mask_RCNN/mrcnn/config.py | d8d72ae842d249e25b29aea6623bd90518d1f5e4 | [
"MIT"
] | permissive | lykhahaha/Lyft_Perception_challenge | c047fd3dc6dc609e9abe2637c24da24d7976677c | e34e32beb2195d80bd27a6990cecfb030f65c686 | refs/heads/master | 2020-03-19T08:02:12.908056 | 2018-06-03T17:49:56 | 2018-06-03T17:49:56 | 136,170,019 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,402 | py | """
Mask R-CNN
Base Configurations class.
Copyright (c) 2017 Matterport, Inc.
Licensed under the MIT License (see LICENSE for details)
Written by Waleed Abdulla
"""
import math
import numpy as np
# Base Configuration Class
# Don't use this class directly. Instead, sub-class it and override
# the configurations you ... | [
"ameya555@gmail.com"
] | ameya555@gmail.com |
a4c898b3529cb20f808c845d565a55d25d400d66 | 20378aeeab98be5d6076c055127c4af90c96f5fe | /catastrophe_clock/serializers.py | 258ae131af9830a23b5de346a9677a1957181828 | [
"MIT"
] | permissive | MCGallaspy/catastrophe-clock | 03fb9c3a6c33f92c67de012eaced355cbc20f8d7 | c7cd7def54c76fa7893b502433b211edbb9b97aa | refs/heads/master | 2021-01-10T17:00:56.190533 | 2015-12-28T05:38:27 | 2015-12-28T05:38:27 | 48,357,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 470 | py | from django.contrib.auth import get_user_model
from rest_framework import serializers
from .models import Catastrophe
class CatastropheSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = Catastrophe
fields = ('name', 'description', 'arrival_date', 'url', 'more_info', )
class... | [
"gallaspy.michael@gmail.com"
] | gallaspy.michael@gmail.com |
2ae8c6ff55e061d11b944f6c13ce94d8714d9c5e | a815e987868355a80a7117a1a326132863d2e4ec | /dingdian/spiders/dingdian.py | d361abb54e2230581914c2adf1523266a8b6f83f | [] | no_license | CvnYv/Scrapy-dingdian | aec42eac2b0fc8ca84391be3e265b41ee06a8f77 | f99111b849f465f9a2d8f102619c7ac4d6ac2ac3 | refs/heads/master | 2021-01-20T08:07:25.066300 | 2017-05-04T04:11:21 | 2017-05-04T04:11:21 | 90,099,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,695 | py | #! usr/bin/env python3
# -*- coding:utf-8 -*-
import scrapy
import re
from dingdian.items import DingdianItem
from scrapy.http import Request
from bs4 import BeautifulSoup
class DingdianSpider(scrapy.Spider):
name = 'dingdian' # 项目名称,必须是唯一的
allowed_domains = ['23us.com'] # 域名
start_urls = [] # 构建各个类... | [
"cvnyv21@163.com"
] | cvnyv21@163.com |
f31a50aaf5650420eddc7d4b4b4b0b17edbae209 | 3fd7adb56bf78d2a5c71a216d0ac8bc53485b034 | /experiments/cem_exp/benchmarks_goalimage/hor15_easygoal/mod_hyper.py | 1060f0f55147f0e67cf53d1bef3020b1c04858e0 | [] | no_license | anair13/lsdc | 6d1675e493f183f467cab0bfe9b79a4f70231e4e | 7760636bea24ca0231b4f99e3b5e8290c89b9ff5 | refs/heads/master | 2021-01-19T08:02:15.613362 | 2017-05-12T17:13:54 | 2017-05-12T17:13:54 | 87,596,344 | 0 | 0 | null | 2017-04-08T00:18:55 | 2017-04-08T00:18:55 | null | UTF-8 | Python | false | false | 640 | py |
current_dir = '/'.join(str.split(__file__, '/')[:-1])
bench_dir = '/'.join(str.split(__file__, '/')[:-2])
from lsdc.algorithm.policy.cem_controller_goalimage import CEM_controller
policy = {
'type' : CEM_controller,
'use_goalimage':"",
'low_level_ctrl': None,
'usenet': True,
'nactions': 5,
'r... | [
"frederik.ebert@mytum.de"
] | frederik.ebert@mytum.de |
7ec6fad1a11bda30f343039f927bce7454d86242 | 59c83b78a52f8a04b4b0a36164281b94d8690e51 | /hparams/data_hparams.py | 195dc65ae16a862ce6b4bc664d843bf5c7c17182 | [] | no_license | Interfish/deep_hunter | e387d2bd1da376f92347109ddad2286eb9146901 | cb313a0375bf84c1da2d59e0025b90b944b2b1be | refs/heads/master | 2021-06-18T22:32:03.482534 | 2019-06-15T11:53:33 | 2019-06-15T11:53:33 | 191,005,769 | 0 | 1 | null | 2021-03-25T22:41:00 | 2019-06-09T12:49:26 | Python | UTF-8 | Python | false | false | 91 | py | def params():
return {
# database path
'db_path' : 'data.sqlite3'
} | [
"330508653@qq.com"
] | 330508653@qq.com |
61a2273792e89593374119c156d6c173f0dd59e9 | 8aa7defd57ab4dbf29b06bef3baef2736e1d453c | /analysis_2020/Snakefile | 61895366288a9d406b248022329dbbb88e64f912 | [] | no_license | paraslonic/g7c_analysis | 0d0ac5d3eddd7b72a490b5d87c07b4280fd0d5fc | 4e05b80b106ae12ae38d1b5cd24b4679c0755572 | refs/heads/master | 2021-01-08T02:19:50.777917 | 2020-02-26T09:26:21 | 2020-02-26T09:26:21 | 241,883,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,881 | configfile: 'config.yml'
GENOMES, = glob_wildcards("fna/{genome}.fna")
#localrules: all, make_path, calc_complexity
def aggregate_input(wildcards):
return expand("Results/ortho/coreogs_aligned/{og}.fasta.iqtree",
og=glob_wildcards(os.path.join("Results/ortho/coreogs/", "{og}.fasta")).og )
rul... | [
"paraslonic@gmail.com"
] | paraslonic@gmail.com | |
844a927a21cc0f2bb904c04382157d0ca5130018 | 94e0f438eb3c23851d9a9ef4a0def0197647fafd | /pombru/pushsafer.py | 7d3b75446f928b8fb7b020439ec8fcafc0922b74 | [] | no_license | miklospocsaji/pombru | 7f95f8bcd9fece2805e7c69f9ad2910354e71010 | 97d21c829383465526b4d7ed0dc49170ada9fbf2 | refs/heads/master | 2021-06-03T07:32:13.408103 | 2021-05-22T08:58:19 | 2021-05-22T08:58:19 | 97,268,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | # pushsafer 0.2
#
# Copyright (C) 2016 Kevin Siml <info@appzer.de>
# forked from https://github.com/Thibauth/python-pushover
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of... | [
"pocsaji.miklos@alerant.hu"
] | pocsaji.miklos@alerant.hu |
bf155f5ea309916b064684b3ae20bdd51831ef73 | 142da5dac7715414517f37ad2fce1731f8a28dcb | /lib/python3.6/site-packages/pyxb/bundles/wssplat/raw/soap12.py | 00e916a98a3d291f3154d78f99efe8e205da6288 | [] | no_license | t6fore/network-automation | fcd0b015922b654c69e38184383bae7bec42011c | a5124053b86334f714f2372ab44e214e81d78ce4 | refs/heads/master | 2022-12-10T18:08:36.482371 | 2022-12-04T14:37:40 | 2022-12-04T14:37:40 | 229,970,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,222 | py | # ./pyxb/bundles/wssplat/raw/soap12.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:d8b77ba08b421cd2387db6ece722305a4cdf2cdc
# Generated 2017-09-03 06:16:45.433027 by PyXB version 1.2.6 using Python 2.7.12.final.0
# Namespace http://www.w3.org/2003/05/soap-envelope
from __future__ import unicode_literals
import pyxb... | [
"t6fore@gmail.com"
] | t6fore@gmail.com |
b3ca4e3a59fb16b2b7566c20b240f0eb9bcf93bf | 81d3f5dab24825549a77b53ab6ea01a04e9275dc | /merge_sort.py | 40e049cbd7bb400961526be078b3821dbe1efac5 | [] | no_license | pavel-kostyanov/sorting-algorithms | 7eaa5b7d0fe1c0da69b1b879171610149efb8201 | d1882374006719a343c7ecf24f9834b93fd2e698 | refs/heads/master | 2020-04-03T19:27:23.271531 | 2018-11-04T07:20:10 | 2018-11-04T07:20:10 | 155,524,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | def merge_sort(arr):
if len(arr) <= 1:
return arr
middle_index = len(arr) // 2
left_side = arr[: middle_index]
right_side = arr[middle_index :]
left_sorted = merge_sort(left_side)
right_sorted = merge_sort(right_side)
return merge(left_sorted, right_sorted)
def merge(left, right)... | [
"kspavel777@gmail.com"
] | kspavel777@gmail.com |
b178fbf34786963f7e9c098bb41308a7714d2352 | ebf3160dbe77e900ec9381209e2fee7d9bce1eff | /backend/pavement.py | 2470b3ec47bd94d8dcb1987ac543f9d8db34f4cd | [] | no_license | kyleddude007/pasaHero | 928c17619232d0790e41afd40309224d280820a8 | b459de19f5592ad5fafe5c6090bb9750f7cebadf | refs/heads/master | 2021-01-23T02:29:09.057230 | 2013-09-15T16:32:06 | 2013-09-15T16:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | import rethinkdb as r
from optparse import make_option
from paver.easy import *
from datetime import datetime
import os
import json
options (
dbhost = 'localhost',
dbport = 28015,
dbname = 'pasahero'
)
@task
def dbcreate(options):
"""Create pasahero database and tables"""
conn = r.connect(options.... | [
"ceassi@yahoo.com"
] | ceassi@yahoo.com |
f2ff21626ec0dde7d1acfc600d26160ee6a50201 | 38fbb33abba27094be67e514dbb4c5a84d27b7cc | /pathogen/cipsite/views.py | c0a04f72e4932fa9c4e1647d6e9adea9e0a14e63 | [] | no_license | MFlores2021/PNIArep | 14a75f501b278fe26cdec7b90e31048cde9d6ef9 | 32feb5dd896db7bb765f5ecca4fea89809a20d57 | refs/heads/master | 2021-06-06T11:24:01.240995 | 2020-05-14T15:40:44 | 2020-05-14T15:40:44 | 102,232,053 | 0 | 0 | null | 2017-09-11T16:02:38 | 2017-09-03T00:50:29 | HTML | UTF-8 | Python | false | false | 507 | py | from django.shortcuts import render
def index(request):
return render(request, "index.html")
# def map(request):
# return render(request, "map.html")
def tables(request):
return render(request, "tables.html")
def participant(request):
return render(request, "participant.html")
def publication(reque... | [
"mire_flor3@hotmail.com"
] | mire_flor3@hotmail.com |
58cc862e69dd431adf40230e3329687e7cbee05d | 435218e08c3dc62fbe52a2f59a1ee1e3651ddebc | /word_dict/base_dict.py | 12e04f662e793d42bdcacda35066c5ac5a014e63 | [] | no_license | Wingsdh/WordTranslator | 0041fa34500eee55d53d154daa8489ff3066d28d | a729e58ebd2c7109e61f3e74f46e1d7163994497 | refs/heads/master | 2021-05-17T11:52:11.751005 | 2020-03-31T13:09:04 | 2020-03-31T13:09:04 | 250,759,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | # -*- encoding: utf-8 -*-
"""
-------------------------------------------------
File Name: base_dict.py
Description :
Author : Wings DH
Time: 2020/3/28 5:50 下午
-------------------------------------------------
Change Activity:
2020/3/28: Create
------------------------... | [
"wingsdh@gmail.com"
] | wingsdh@gmail.com |
e17f92d3d343d5272ea4fbcebd7c5a86df5c6a2d | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2811/60768/235290.py | 44942420c792f233946644b79e4acce40a08ea76 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | pAndn = input().split(' ')
map = int(pAndn[0]) * ['']
num = int(pAndn[1])
conflict = False
for i in range(num):
index = int(input())
if map[index % len(map)] == '':
map[index % len(map)] = index
else:
print(i + 1)
conflict = True
break
if not conflict:
print(-1) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
dd44247bd638d2aa03261edee5c4c1520992ec10 | 4012189144a34d4e12ac5607d30ddd1c29fbb324 | /ex5-ListOverlap.py | 4aaa0a958e1f64e383c9e25dfe59043048430206 | [
"MIT"
] | permissive | Philthy-Phil/practice-python | abbf41a8ca4af1402b386f3dcee9ac80b9e84377 | c2a7eed4754aa401c04e9d060a7dec5223b12f45 | refs/heads/main | 2023-04-14T01:35:34.199717 | 2021-04-24T07:05:50 | 2021-04-24T07:05:50 | 356,037,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | __author__ = 'phil.ezb'
import random
# hard coded lists
# list_a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
# list_b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
# random num list
list_a = random.sample(range(0, 100), 20)
list_b = random.sample(range(0, 100), 20)
# set() to prevent duplicates
list_total = set(list_... | [
"phil.ziegelbauer@gmx.at"
] | phil.ziegelbauer@gmx.at |
9c1b8ad47ddcb7428095e0a9e4d6082a4f7a15eb | 54ebd7f82e10707de7e3f7729e56025a7d4a211b | /pygen/pygen_src/riscv_instr_stream.py | c02fac36afc05679b20442a9ecb007ddad757973 | [
"Apache-2.0"
] | permissive | bugfreee/riscv-dv | 04ef058ba97570816560e8a6a2489832ff8edd68 | 17eec2d00c6f1d162016902806c73bdbeec6f566 | refs/heads/master | 2022-11-17T14:59:52.444436 | 2020-07-09T13:55:15 | 2020-07-09T13:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,613 | py | """
Copyright 2020 Google LLC
Copyright 2020 PerfectVIPs Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ... | [
"b150023ec@nitsikkim.ac.in"
] | b150023ec@nitsikkim.ac.in |
ee6b02d18f5a98597a3cc9da3c4ccc30900a6b45 | f5ad49b17b9dcc924790adf5cae94cb315e952e7 | /tests/contracts/test_package_version.py | 861d22380feb7d45205cf05dc20357e1d695ec84 | [
"MIT"
] | permissive | devopshq/crosspm2 | de0eed8024a05335ad1acbdb83882bc388c229a0 | b97539430b1d163fbd960c57e780022ddeb90a2b | refs/heads/master | 2023-06-15T18:10:20.053225 | 2021-07-15T07:15:41 | 2021-07-15T07:15:41 | 281,886,426 | 3 | 0 | MIT | 2021-07-15T07:15:41 | 2020-07-23T07:47:36 | Python | UTF-8 | Python | false | false | 1,243 | py | from crosspm.contracts.package_version import PackageVersion
def test_package_version():
assert PackageVersion("1.2.3") < PackageVersion("10.2.3")
assert PackageVersion("1.3") == PackageVersion("1.3.0")
assert PackageVersion("1.3") < PackageVersion("1.3.1")
assert PackageVersion("1.2.3") < PackageVersi... | [
"apazdnikov@ptsecurity.com"
] | apazdnikov@ptsecurity.com |
ecfb08069558a9bb83d38c1599cd117f26077fa6 | 51edacc7eb7c90a9c3dbb8218ce70533646c031a | /pythonProject2/FIRSTPROJECT/FIRSTPROJECT/settings.py | d1cd0b75707d44740e0f214b77456c142dd7839b | [] | no_license | Neelima1234534-tech/Django | 013be682c8d07845e25b811d75742495335ee128 | 1b56ef48925238517204391f44f209992276d337 | refs/heads/master | 2023-02-25T02:06:01.502335 | 2021-01-22T21:26:32 | 2021-01-22T21:26:32 | 332,064,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,257 | py | """
Django settings for FIRSTPROJECT project.
Generated by 'django-admin startproject' using Django 3.1.5.
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/
"""
from pa... | [
"76076133+Neelima1234534-tech@users.noreply.github.com"
] | 76076133+Neelima1234534-tech@users.noreply.github.com |
6f30f0587a27efa73334f093ee5bbe39f6015019 | 0825774028251f020352ac9ff3cbf2e34cb3af02 | /watcher-folder/file-copy/config/vars.py | ca503c9382d8b94cdf913f018fb15d93760ec385 | [] | no_license | wsalles/watcher-folder-simple-project-with-docker | 1b73b2a38567f84517975281fd733677055d0e01 | 25c4681bf1e92f162b53a7907e10d2060a335c68 | refs/heads/master | 2023-03-11T01:57:20.991868 | 2019-06-26T23:13:22 | 2019-06-26T23:13:22 | 339,831,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | import os
data = {
'WATCHDIR': os.environ['WATCHDIR'],
'WATCH_FOLDER': os.environ['WATCH_FOLDER'],
'DESTINATION': os.environ['DESTINATION'],
'TIMEOUT': int(os.environ['TIMEOUT']),
'EXT': ['*.mxf', '*.MXF'],
'REMOVE_META': False
}
| [
"wallace.salles@tvglobo.com.br"
] | wallace.salles@tvglobo.com.br |
fe93f57251e701508ed2152775bb40788f39915f | 881e0569d00139ff18b25f010093d8e85e8a0de5 | /deployments/docker/academy/services/models.py | fd977b0ecd1f4177802969ce31d0871de98650be | [] | no_license | Gulmira83/academy | fb72c46e9dfb6646ec55ab45f001eea80bc367c1 | f2330b69197af0d362ac27077a4a075167c1ae18 | refs/heads/master | 2022-11-14T16:29:48.410836 | 2020-07-02T01:58:13 | 2020-07-02T01:58:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,131 | py | from django.db import models
from kubernetes.client.apis import core_v1_api
from kubernetes import client, config
from django.contrib.auth.models import User
from django.conf import settings
from kubernetes.client.rest import ApiException
import yaml
import random
import logging
import os
def get_kube_config():
... | [
"sadykovfarkhod@gmail.com"
] | sadykovfarkhod@gmail.com |
9c05c4731a38f745c6bdbd8a3c089c350368dbc4 | 53e82d26572532c2a7ab94a21a43ee0b4632a378 | /06_testing/06_01_test_math_module.py | 997bbeee465abafffabd9b6166bd9b30138181f5 | [] | no_license | KacperCiepielewski/python301-labs | bae02bfa69b9ad87ffe4b2dc4d5cf163032e6bee | 326fc6cce44f3c262a4a8a020fc892f1948e42ee | refs/heads/master | 2023-05-25T07:14:12.840070 | 2021-06-12T22:09:45 | 2021-06-12T22:09:45 | 376,387,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | # Write a unittest test suite with at least two methods that test
# the functionality of the built-in `math` module.
import unittest
import math
class TestMath(unittest.TestCase):
def test_floor_rounds_down(self):
self.assertEqual(math.floor(3.4), 3)
def test_isnan_recognizes_numbers(self):
... | [
"KacperCiepielewski@gmail.com"
] | KacperCiepielewski@gmail.com |
4f9c184eba07a1dd1be714a247a3ae4a73641987 | 6b2d85ca45485973ff918a0269ba5dca194777b3 | /scatterPlot.py | 111e651f37872fd1e2d6bcdf98068d728528e39f | [] | no_license | BoriaK/ComunicationSysModel | 2e1a2ab46db4bcafcfd8ab1e08778a9ac7a8fb7b | d918071bfbdba35da10414f9598a9e8a4f94bff5 | refs/heads/master | 2023-04-06T18:06:03.413158 | 2021-04-23T12:36:51 | 2021-04-23T12:36:51 | 306,825,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import numpy as np
from matplotlib import pyplot as plt
# SymNum = int(10 * 1e6)
#
# ModNum = 16
#
# Ix = 2 * np.random.random_integers(low=1, high=np.sqrt(ModNum), size=SymNum) - 1 - np.sqrt(ModNum)
# Qx = 2 * np.random.random_integers(low=1, high=np.sqrt(ModNum), size=SymNum) - 1 - np.sqrt(ModNum)
# X = Ix + 1j * Qx... | [
"boris.kupcha@intel.com"
] | boris.kupcha@intel.com |
c85727fb88c601c6ac65efb6caf7501ada9b8752 | c6a4a06774c184d2659e0b04bbdf73c9c0bcf7dc | /Face_Dectection_DeMO/FaceCaptureOnPhotoPremier.py | bcb1547357de86c16798b7ff7a1011f0f5dc3604 | [] | no_license | DanferWang/Python_Project | 601427d12519e61b88676b46c13b82da88e1cb4d | 0af2dbc7152ba826644341843c653afab04b21ad | refs/heads/master | 2020-09-13T02:18:53.757643 | 2019-11-19T07:20:08 | 2019-11-19T07:20:08 | 222,631,584 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #导入库
import cv2
#加载照片
img = input("copy your photo to the aim directory, then input the filename of the photo which you wanna recognize:")
image = cv2.imread(img)
#加载人脸模型
face = cv2.CascadeClassifier("haarcascade_frontalface_alt.xml")
#调整图片灰度:提高性能
gray = cv2.cvtColor(image,cv2.COLOR_RGB2GRAY)
#检查人脸
fa... | [
"noreply@github.com"
] | noreply@github.com |
1ab6b871a38d865a54fcdc6e51f9368d137e61d8 | 0d3ed3ba6bd188128c25e1eac17c62d01dd816f2 | /env/lib/python2.7/site-packages/uszipcode/packages/fuzzywuzzy/utils.py | 18657028eee34081b841d04c4240102abc04f2b2 | [] | no_license | shawnaness/wheather | 2706b2292d6ce00e5b6835e5edc2a7e1eaf2eef8 | c2ff4d8f190255b1564cb77897a0c0bab7fe6cf4 | refs/heads/master | 2021-05-06T22:27:22.516985 | 2017-12-06T03:13:37 | 2017-12-06T03:13:37 | 112,817,531 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | from __future__ import unicode_literals
import sys
from .string_processing import StringProcessor
PY3 = sys.version_info[0] == 3
def validate_string(s):
try:
return len(s) > 0
except TypeError:
return False
bad_chars = str("").join([chr(i) for i in range(128, 256)]) # ascii... | [
"moziyan@yahoo.com"
] | moziyan@yahoo.com |
465f00c2c7cbdc3ba8b8108fe475a748598a12d7 | bade2e15e7c3ff165958c1a35a383a0221a897f3 | /details.py | 3eebf7bedb25a181f261c7d403de8b5e207bbe5a | [] | no_license | paulram2810/Python-Programs | 25daaaea3e057ef26ebca28ce901a8820c60656e | 436ae4f9287b02ab35991646bfafc72b3fba9df5 | refs/heads/master | 2020-05-02T18:44:45.332474 | 2019-03-28T06:18:56 | 2019-03-28T06:18:56 | 178,138,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | print("Enter Details : ")
print("First Name : ",end="")
fn=input()
print("Last Name : ",end="")
ln=input()
print("Contact : ",end="")
num=input()
address=input("Address : ")
print("\n")
print("Full Name : ",fn," ",ln)
print("Contact : ",num)
print("Address : ",address)
| [
"noreply@github.com"
] | noreply@github.com |
a7dc38662a958b0dc522f5d78a49129d092ed16d | 6bc9aacb414f62bdac4375305b8e7f401ab5af50 | /chapter2.数据抓取/2.2.6_scrape_callback2.py | 38a0d807aeb6261088e930dcc5c72e9bb421bf9f | [] | no_license | zero1248/web-scraping | d1d4ba82fb450fddd839d49e7faaba75a51d25bf | 8d4aaa2a5a50690adede16707044bcc4c9c9e214 | refs/heads/master | 2020-05-05T02:03:47.254575 | 2019-04-06T11:42:48 | 2019-04-06T11:42:48 | 179,623,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py | import csv
import re
import urllib.parse
import lxml.html
from cpt2public import link_crawler
class ScrapeCallback:
def __init__(self):
self.writer = csv.writer(open('countries.csv', 'w'))
self.fields = ('area', 'population', 'iso', 'country', 'capital', 'continent', 'tld', 'currency_code'... | [
"gaoyu10010@126.com"
] | gaoyu10010@126.com |
ef921343d682ac3fa05976f5c29c34274f6a83f6 | 997cededcb811cd7da0db4283356a065b248a9f5 | /web/app/models.py | 6637eba54478f96a243af8b5eb843ada422fd6f8 | [] | no_license | mfcardenas/tfm-server | 1f275f9574224da85f4b657e03efc39844f798a5 | 530e7f29a344649d9814131c1a943fc91dc50e4a | refs/heads/master | 2020-12-10T08:13:18.217992 | 2020-01-12T21:38:11 | 2020-01-12T21:38:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | from datetime import datetime
from hashlib import md5
from app import db, login
from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
class User(UserMixin, db.Model):
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(64), index=True)
... | [
"assddo@gmail.com"
] | assddo@gmail.com |
d2eb504a02f64da5c9e1772011810882693711af | 55b5ea0b5f06324c94182af4becb2961e5454a63 | /polls/tests.py | cfa86da56b211ca5ef1b51017f19ebadc2667304 | [] | no_license | serhii73/first_django_app | c58b1861cd7ed76aef88fbeeeea25bc10eaa10c9 | f93a7287880b2244c3d1e0c1ff44c455fb09cc3d | refs/heads/master | 2020-06-05T04:39:03.684831 | 2019-07-26T15:42:47 | 2019-07-26T15:42:47 | 192,316,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,848 | py | import datetime
from django.urls import reverse
from django.test import TestCase
from django.utils import timezone
from .models import Question
class QuestionModelTests(TestCase):
def test_was_published_recently_with_future_question(self):
"""
was_published_recently() returns False for questions ... | [
"aserhii@protonmail.com"
] | aserhii@protonmail.com |
076ebf05d5c2ab02b5f048e8ab31d338adc8e45a | 6102a4107e45e02f4fc9f692da54161d06d0446c | /Screen pet.py | 5848f403502b145f85551462f89dea31de5bfecc | [] | no_license | KavyaSai-T/ScreenPet | 671ee59c3d586b1a32a2a97a649afa35da5d6776 | c1120e238f03370e7988a2822c5e49e68aa46d59 | refs/heads/master | 2022-11-22T06:00:29.716283 | 2020-07-23T12:03:27 | 2020-07-23T12:03:27 | 281,939,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,017 | py | from tkinter import Tk , HIDDEN , NORMAL , Canvas
def toggle_eyes():
current_color = c.itemcget(eye_left,'fill')
new_color = c.body_color if current_color == 'white' else 'white'
current_state = c.itemcget(pupil_left,'state')
new_state = NORMAL if current_state == HIDDEN else HIDDEN
c.itemco... | [
"noreply@github.com"
] | noreply@github.com |
376f82bf1be280037aaad21374b43a1e4dce82eb | 69889d51e933b4e8a1d4c8397a317aa1d1365a5a | /Stack/17299.py | 3de2e8eff8d86d4a1485e3e058e23e566d2857dc | [] | no_license | ddraa/Algorithm | a35c87631420ceccec6f7094da6f2b22ddb66c8c | a97c6628d5389f7f93603a2e95ac3b569057f556 | refs/heads/master | 2023-06-25T17:12:39.925821 | 2021-07-18T05:53:28 | 2021-07-18T05:53:28 | 279,240,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | import sys
input = sys.stdin.readline
N = int(input())
F, stack = {}, []
arr = list(map(int, input().split()))
res = [-1 for _ in range(N)]
for n in arr:
if n in F:
F[n] += 1
else:
F[n] = 1
for i in range(N - 1, -1, -1):
while stack and stack[-1][0] <= F[arr[i]]:
stack.pop()
... | [
"ruuddyd@gmail.com"
] | ruuddyd@gmail.com |
bfb31bbaa48485e6c87d4b9683dbf6fc1c4d2f7b | 91a9f5a7afb398f4238527708cbc155dc972cbfa | /older/Grapher_app0/Names_Module.py | 1ff52a69c3e05a1e89a15ebd6b1cc78a4dd3597e | [] | no_license | bddmodelcar/kzpy3.2 | cd6f9bf6b7b8b920c79b4ee36c2592b992ae4332 | b044b26649b19b240bd580feca20424a237374b1 | refs/heads/master | 2021-01-19T21:01:58.687712 | 2017-08-23T22:39:56 | 2017-08-23T22:39:56 | 101,243,308 | 0 | 1 | null | 2017-08-24T02:04:50 | 2017-08-24T02:04:50 | null | UTF-8 | Python | false | false | 1,681 | py | from Paths_Module import *
exec(identify_file_str)
for _name in [
'pts_plot','img','purpose','name','xyz_sizes','data_type','x','y',
'xmin','ymin','xmax','ymax','xscale','yscale','floats_to_pixels',
'pixels_to_floats','ysize','xsize','lines_plot','color',
'reject_run',
'left',
'out1_in2',
'dic',
'name',
'tes... | [
"karlzipser@berkeley.edu"
] | karlzipser@berkeley.edu |
9159c331cb841b16ee912799461db8d6c1c669c8 | decf37b7209aee037eb445862ff5746791d978bd | /config.example.py | b8b27f3e5ff446fa844915cc2fb90f959e80d626 | [] | no_license | mbirth/wipy-theta | 9bcbd428eb32fc725224a2a1f83c386bba25c093 | 8c2f99951febce6996a183ec7e505f26d838098b | refs/heads/master | 2021-01-10T07:32:07.428076 | 2015-11-03T15:01:40 | 2015-11-03T15:01:40 | 44,282,060 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | # modify and rename to config.py
HOME_SSID = 'MyHomeNetwork'
HOME_PASSWORD = 'ultrasecret!'
| [
"mbirth@gmail.com"
] | mbirth@gmail.com |
37dcddbb5760b82cc718a99321054fb899fc11bf | ba3231b25c60b73ca504cd788efa40d92cf9c037 | /nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/cmp/cmppolicy.py | 27844dcdfaf065883b411a91b98dd7aa313f7a18 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhuweigh/vpx13 | f6d559ae85341e56472e3592cbc67062dac34b93 | b36caa3729d3ca5515fa725f2d91aeaabdb2daa9 | refs/heads/master | 2020-07-04T22:15:16.595728 | 2019-09-20T00:19:56 | 2019-09-20T00:19:56 | 202,435,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,184 | py | #
# Copyright (c) 2008-2019 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"zhuwei@xsky.com"
] | zhuwei@xsky.com |
53ae3685e3c2944ececf857d97562c509471aa2a | ce5052348295d08d3221ff6f474ad36d7fe6445a | /05-OOP_Exceptions/oop_2/classes/homework_result.py | 685fd3aba4fa65e2af9c4097cad4c75da000e70f | [] | no_license | AleksejSamarin/EpamPython2019 | bc045488d0b720379a4a21d86f389f69f182514a | b71943e4a544f602ce952b8a2af29ecf006ca5ef | refs/heads/master | 2020-05-24T12:49:11.443343 | 2019-07-04T11:00:57 | 2019-07-04T11:00:57 | 187,275,830 | 0 | 0 | null | 2019-05-17T20:11:30 | 2019-05-17T20:11:30 | null | UTF-8 | Python | false | false | 395 | py | from datetime import datetime
from .homework import Homework
class HomeworkResult:
def __init__(self, author, homework: Homework, solution: str):
if not isinstance(homework, Homework):
raise TypeError('You gave a not Homework object')
self.author = author
self.homework = homew... | [
"samarin113@gmail.com"
] | samarin113@gmail.com |
de85cd4ef55a89d3753d09221a1c3e2b4e6ce5d0 | 4adcb0d77047fc04f4f02b9828708eff47ca40ef | /user/views.py | 19c734e3ae1b696604a62449d33020b6d0cd48f6 | [] | no_license | gmjjatin/datapeace-assignment | 5cb042be0823cb8940c5f4d4672167075169c617 | 07f731dc35ea7c30df6caf8822577c2118d0288e | refs/heads/master | 2023-02-21T21:21:23.048948 | 2022-10-09T10:08:24 | 2022-10-09T10:08:24 | 184,530,280 | 0 | 2 | null | 2023-02-07T22:03:12 | 2019-05-02T06:12:50 | JavaScript | UTF-8 | Python | false | false | 2,367 | py | from django_filters.rest_framework import DjangoFilterBackend
from rest_framework import filters
from user.models import *
# api views
from rest_framework import generics
# from django_filters import rest_framework as filters
from .serializers import UserSerializer
class UsersView(generics.ListCreateAPIView):
se... | [
"jatin.irsc@gmail.com"
] | jatin.irsc@gmail.com |
7540b3442e53b36dbb55bce5a3c058d967207818 | 296d4fec38b2a5ec2f4eb402d1b2145980dd184b | /aliens.py | ac6d5f3a8d3bb0c5203dcb6a7cf851111dbd07b3 | [] | no_license | RayGutt/python | 9464ae7c63850240df58ff78c6050bc6e1d35b3e | a9b68d43923f13b58e7d59fdabf649820d48bd52 | refs/heads/master | 2020-11-27T01:17:57.136062 | 2020-01-22T14:36:25 | 2020-01-22T14:36:25 | 229,254,199 | 0 | 0 | null | 2020-01-05T19:47:27 | 2019-12-20T11:39:53 | HTML | UTF-8 | Python | false | false | 844 | py | alien_0 = {'color': 'green', 'points': 5}
alien_1 = {'color': 'yellow', 'points': 10}
alien_2 = {'color': 'yellow', 'points': 15}
aliens = [alien_0, alien_1, alien_2]
for alien in aliens:
print(alien)
print("_________")
# Make an empty list for storing aliens.
aliens = []
# Make 30 green aliens.
for alien_number ... | [
"le.caribou@gmail.com"
] | le.caribou@gmail.com |
2604150d960f651c0c307ed9da2d7154ec888a78 | de1045bcefaa44a4d8a7b1d9eb20a4b1dcce18b1 | /python/interview_questions/remove_nth_node_from_linked_list.py | 719e752b9a39dd0362ef4c73f7a54ad04ad881a4 | [
"MIT"
] | permissive | rcanepa/cs-fundamentals | d7c46383d759a841ce0ddb83ab56e86659dbf2c9 | b362fc206417501e53a5739df1edf7568901eef8 | refs/heads/master | 2022-11-05T21:30:56.546540 | 2020-06-07T01:10:56 | 2020-06-07T01:10:56 | 101,583,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,240 | py | """Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the linked list becomes 1->2->3->5.
Note:
Given n will always be valid.
Try to do this in one pass.
"""
class L... | [
"rcanepag@gmail.com"
] | rcanepag@gmail.com |
81e48fe24428936962f09d70e653c1c9e72b5e24 | 383b7a62d18a3efa358b526124fc52c157e9c5e8 | /parties/utils.py | cae18d54989a7a4547d9569ca84c2a6ade1d5845 | [] | no_license | josiahkhoo/barter-django | acb245a44376b56aae145fb363efc80f94aa2c2f | 4b933463f83579ec60b488bf4dfdd2f49599039a | refs/heads/master | 2022-11-26T10:55:01.476993 | 2020-07-27T13:46:52 | 2020-07-27T13:46:52 | 269,992,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from enum import IntEnum
class PartyState(IntEnum):
ONGOING = 0
COMPLETED = 1
@classmethod
def choices(cls):
return [(key.value, key.name) for key in cls]
class PartyEventType(IntEnum):
UI_PARTY_UPDATE = 0
UI_PARTY_COMPLETE = 1
@classmethod
def choices(cls):
return... | [
"josiahkhooshaoqi@gmail.com"
] | josiahkhooshaoqi@gmail.com |
19b7c412203b5be443f23f850a39b509ecdb5a04 | 2ad6c1940b777a51669f6a8c61f15d04ced443c6 | /Algorithms/test/task_1_9.py | 4eccfca0ec919c6ae6781dc154e6698ba1f69138 | [] | no_license | RomanLopatin/Python | df06e521fd0a4fa468e51b89df835fadc9aac888 | cef8df6f43564189bdd29043b6f8e23468ea438b | refs/heads/main | 2023-04-30T10:47:51.970254 | 2021-05-02T22:08:28 | 2021-05-02T22:08:28 | 317,842,764 | 1 | 0 | null | 2021-05-08T11:50:29 | 2020-12-02T11:37:39 | Python | UTF-8 | Python | false | false | 809 | py | """"coding=utf-8
1.9
ПВводятся три разных числа. Найти, какое из них является средним (больше одного, но меньше другого).
"""
print('Введите 3 числа: a,b,c')
a = float(input('Введите a:'))
b = float(input('Введите b:'))
c = float(input('Введите c:'))
if a > b:
if a < c:
print(f"Среднее число - {a}")
el... | [
"romanlopatin@gmail.com"
] | romanlopatin@gmail.com |
a232ab5e7b7b3938334e7d69911f01ae956a17eb | 4fdaa61e2fb2d320a0903e17024598c6a67ab0fb | /python/Vaav/kitchen.py | 9ffefc461390bce99d81d0b9e5536c9669c10b11 | [] | no_license | khans/ProgrammingAndDataStructures | 10d5cd5f30f703298ba132be4dfba828f3a0e9e1 | 58c1d822fa5eab17485369bc40dd1376db389f44 | refs/heads/master | 2021-01-25T14:03:40.616633 | 2018-06-19T23:02:44 | 2018-06-19T23:02:44 | 123,643,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py |
from collections import deque,defaultdict
class Table:
capacity = 0
availability = True
occupancy = 0
def __init__(self,number):
self.number = number
def addOccupant(self):
self.occupancy += 1
self.availability = False
def setCapacity(self,capacity):
self.capacity = capacity
de... | [
"isafakhan@gmail.com"
] | isafakhan@gmail.com |
836672426f628f5769afff768523aea5adfa1c6b | 5aa51d9db050c74929ac2296fd2b2bea1c1d6897 | /train.py | 093e9615527811aa86d219b0f00fca1346ca7e82 | [
"MIT"
] | permissive | monkeysforever/Sentiment-Analysis-using-Pretrained-Language-Models | 85cecde4470983f3ca534b1e7dbd0a8b80a2eef1 | 22086fb3f8b2cee9192eaf54bae3acc2ca53f9b1 | refs/heads/master | 2022-11-16T01:10:52.720970 | 2020-07-14T02:23:53 | 2020-07-14T02:23:53 | 279,455,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,317 | py | import argparse
from transformers import BertTokenizer, BertModel
from transformers import AdamW
import torch
import logging
import os
from torch.utils.tensorboard import SummaryWriter
from torch.optim.lr_scheduler import ReduceLROnPlateau
from data import dataset, transforms
from models.lm_classifier import Pretrained... | [
"ahlawat.randeep@gmail.com"
] | ahlawat.randeep@gmail.com |
597f1b6c57b44b3cb9610921015f1578d30d2124 | 434ced86acc31e03577fb41a1d959b88e8acccc3 | /ML-exercise1-4/ex4/nnCostFunction.py | d6910f2332632d1df963df228af7987f85a26f86 | [] | no_license | wangmx116/wdd | ab1837dc14bd547ecd3105f487a300cd13f2e99d | 1b190786ba6e1d35e101ef1c8bc22c066087a2f4 | refs/heads/master | 2022-11-26T21:30:23.232233 | 2020-07-20T05:40:02 | 2020-07-20T05:40:02 | 281,017,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,045 | py | import numpy as np
from numpy import log
from sigmoid import sigmoid
from sigmoidGradient import sigmoidGradient
def nnCostFunction(nn_params, input_layer_size, hidden_layer_size, num_labels, X, y, Lambda):
"""computes the cost and gradient of the neural network. The
parameters for the neural network are "unr... | [
"2429860229@qq.com"
] | 2429860229@qq.com |
ddc841703ae4178b72cba0ce52b7bf5ea4be2825 | b9db137d7e61f0d8bf15a5f03cf72e6d42558d6b | /helper.py | dd4d77c773313d7aa45c3b690202562665ab28e6 | [
"MIT"
] | permissive | zliu63/ctc_tf | 044ec42970b1a7970b5b1273a0dec266c94d3844 | 210de74c17bd64b5b2fefed69653e71626f6980a | refs/heads/master | 2021-09-13T12:11:12.688421 | 2018-04-29T21:17:57 | 2018-04-29T21:17:57 | 131,530,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,695 | py | import numpy as np
import os
import shutil
def split_train_val(X, y, train_size):
"""Split dataset for training and validation.
Args:
X: A 1-D numpy array containing pathes of images.
y: A 1-D numpy array containing labels.
train_size: Size of training data to split.
Returns:
... | [
"zliu63@illinois.edu"
] | zliu63@illinois.edu |
7fbc8d5ca1d93c1ff42c22beefc7772cb15d39ca | 2f8f8171b3b996b0c866ede72367ec26f64eae39 | /sampleproject/book/BeginningPython3_O_REILLY/chapter10/10-8.py | 659dc821caed89f2f69b939227a7fca816939de1 | [] | no_license | kabaksh0507/exercise_python_it-1 | da46edce09301b03a5351ee1885fb01eb69d8240 | 2b6c80a79494c9981e51bd03696c3aa19d6625ec | refs/heads/main | 2023-03-04T03:12:44.188468 | 2021-02-08T08:55:36 | 2021-02-08T08:55:36 | 337,014,697 | 0 | 0 | null | 2021-02-08T08:57:30 | 2021-02-08T08:57:30 | null | UTF-8 | Python | false | false | 169 | py | from datetime import date
birth_day = date(1987, 8, 9)
print(birth_day)
fmt = 'year = %Y , month = %B , day = %d , day of the week = %A'
print(birth_day.strftime(fmt)) | [
"kazkitou9080@gmail.com"
] | kazkitou9080@gmail.com |
fb152061e112dac669111ad1d1e9b0d3d1ce69be | fb7f9d890a5db02846b6a4a20e4a9cbaefa7eda4 | /python_snippets/assert_test.py | e5a46e57ee4c80cb897c0e19e6fe2e0ac3ab121a | [] | no_license | aftab82/practice | 94d86d0f3a403865d53ff4457e83b9b16bd048de | b9e0ba2f5e6c7dbe968dec18069b51144b3227e3 | refs/heads/master | 2020-08-05T15:55:05.431999 | 2020-06-08T06:06:14 | 2020-06-08T06:06:14 | 212,604,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import unittest
class Test(unittest.TestCase):
def test_empty(self):
self.assertNotEqual(mark1, [])
def avg(marks):
assert len(marks) != 0
return sum(marks)/len(marks)
mark1 = [1]
if __name__ == '__main__':
unittest.main()
| [
"sali@gogoair.com"
] | sali@gogoair.com |
90a954e345f531880f8bfee7f4c958164933934e | aeac5b3cc7a34e3eeaef5d41e8d8ef7f4b3b38dc | /testlib/test_transforms.py | cdc9ecac6b175b53f53b6ebf7dd8e8589d1dffe3 | [
"MIT"
] | permissive | venkatakrishnareddymallu/gramex | 7377f68d7207248b98f846e54a9c458f4300d30a | 725f7564e607f22fc43d06d639aeaf785500f284 | refs/heads/master | 2023-07-28T14:03:20.452158 | 2021-09-07T11:12:23 | 2021-09-07T11:12:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,608 | py | import io
import os
import yaml
import inspect
import unittest
from dis import dis
from types import GeneratorType
from tornado.gen import coroutine, Task
from orderedattrdict import AttrDict
from orderedattrdict.yamlutils import AttrDictYAMLLoader
from gramex.transforms import build_transform, flattener, badgerfish, t... | [
"root.node@gmail.com"
] | root.node@gmail.com |
be382d5197d7824ea29737950dfb67257cf93aaa | a0d06802a47fa67f78af9028e645138f2f2591ee | /app.py | e0ed314319af835434f9222c470ca6e13d40f451 | [] | no_license | andidietz/session-exercise | e7624d72715a4c1a0e4ee38e47f9930cbb0ad2a5 | cdafeb12be0ddc00e415d31c3aa80c39daa0e06b | refs/heads/main | 2023-06-13T00:06:54.637003 | 2021-07-09T21:53:11 | 2021-07-09T21:53:11 | 384,557,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,493 | py | from flask import Flask, request, render_template, redirect, flash, session
from surveys import satisfaction_survey as survey
from flask_debugtoolbar import DebugToolbarExtension
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret-goes-here'
app.config['DEBUG_TB_INTERCEPT_REDIRECTS'] = False
debug = DebugToolbarE... | [
"alexandradietz3@gmail.com"
] | alexandradietz3@gmail.com |
7af6ceaeace0d6efa4faa6104264ab3f50ca1b3f | 25ac3c7d2cbcb9e2634ca0cd0b4ffccb321516ac | /BubbleTracking/AncienTests/TrackPy/trackpytest.py | f1e70de24e68dec0cb9e8113e004f8a1afd16192 | [] | no_license | fabouzz/Marble_processing | 0c5250653fd87192e7b98908fc4b9c994996dbc1 | 1dcbc42d807e500c0c091d4f3ab55d5221347f30 | refs/heads/master | 2020-05-23T01:11:36.203610 | 2019-05-24T14:06:18 | 2019-05-24T14:06:18 | 186,584,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | """
Testing the trackpy library
"""
import os
import cv2
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pims
import trackpy as tp
from scipy import ndimage
from skimage import filters, morphology, util
from pims import pipeline
@pipeline
def as_grey(frame):
... | [
"oupsmajdsl@gmail.com"
] | oupsmajdsl@gmail.com |
bf6f30ccfa37f9d4acc212e1f4ec33d7b4457052 | 09fd456a6552f42c124c148978289fae1af2d5c3 | /Greedy/1282.py | 0aeb767815ec62b1439482c75e3f15c26f9a4fc9 | [] | no_license | hoang-ng/LeetCode | 60b4e68cbcf54cbe763d1f98a70f52e628ab32fb | 5407c6d858bfa43325363503c31134e560522be3 | refs/heads/master | 2021-04-10T11:34:35.310374 | 2020-07-28T10:22:05 | 2020-07-28T10:22:05 | 248,932,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | # 1282. Group the People Given the Group Size They Belong To
# There are n people whose IDs go from 0 to n - 1 and each person belongs exactly to one group. Given the array groupSizes of length n telling the group size each person belongs to, return the groups there are and the people's IDs each group includes.
# You ... | [
"hoang2109@gmail.com"
] | hoang2109@gmail.com |
8a63e8b8bbb49a2eeb5b40c9b896777878496c3c | 00e20eedf383eae6404cde2194b01f3c14ccb44f | /1.3.c.py | 4d0b524d41e1b338517bd7f35ee9cac263c67597 | [] | no_license | Nutamy/Brainskills-week2 | 13b4341595ff28c068d9137358565163e1e0b14b | 7ea3a62c5fe126a09901dbfcd49d166ef2ad0b38 | refs/heads/main | 2023-02-24T03:00:42.906694 | 2021-02-01T04:14:00 | 2021-02-01T04:14:00 | 331,017,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | # 1.3.c В первый день спортсмен пробежал Х км, а затем каждый день он увеличивал пробег
# на 10% от предыдущего значения. По данному числу У определите номер дня, на который пробег спортсмена за все дни
# составит не менее У км.
# Программа получает на вход действительные числа Х и У и должна
# вывести одно натуральн... | [
"natasha.pechenka@gmail.com"
] | natasha.pechenka@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.