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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1bfe1ae1aee67c2705d37357e3c0edecb88a0ba5 | 261dacd54882e4fcfea28ec164d5a0fe3941ced8 | /main.py | b5faea0b0777405134a7b6cd3846cdccbdc6a213 | [] | no_license | bebarrey/rock-paper-scissors-start | 99343fae69fe1497f7e758ebad243cab1921a89e | 8c132f0974712c344d69f4485b80de1905017fb4 | refs/heads/master | 2023-01-24T17:35:08.676399 | 2020-11-24T05:53:30 | 2020-11-24T05:53:30 | 315,532,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | import random
rock = '''
_______
---' ____)
(_____)
(_____)
(____)
---.__(___)
'''
paper = '''
_______
---' ____)____
______)
_______)
_______)
---.__________)
'''
scissors = '''
_______
---' ____)____
______)
__________)
(____)
... | [
"bharat.rajashekar@gmail.com"
] | bharat.rajashekar@gmail.com |
ca46b00bf89324ed706f2ec07aa26e868e8876a0 | 8b174b2c2d99b9932cab8f67b2e533c01bf68f81 | /SSD_Article/tf_convert_data.py | 01339a60f9e73df1f092c2cbe91a4865d1225c31 | [] | no_license | fanszoro/CV-detection | a7baac7273b5f6cca66babf341519821851c5350 | a56782edb9ebb15835836f2919dcc491b1cec49b | refs/heads/master | 2020-03-19T04:59:35.346990 | 2018-04-03T02:13:05 | 2018-04-03T02:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,526 | py | # Copyright 2016 The TensorFlow 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... | [
"sxf1052566766@163.com"
] | sxf1052566766@163.com |
7c4a49ed952f53cdc5e0c6c94b654dd880ebba91 | 917166048ce42f4702b8cc28f451b8489a8dc701 | /helper.py | a0e3e9207d75d5c24a5fee47f068c14e979004c8 | [] | no_license | sadhi003/DLND-cifar10 | dd4037113ccb7cd5fe20b6357c80eb69ed2ee20e | 4234df7f8c033f7ee408fa70c61a34e0595a6953 | refs/heads/master | 2020-03-21T11:32:37.915891 | 2018-06-24T19:59:05 | 2018-06-24T19:59:05 | 138,511,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,649 | py | import pickle
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import LabelBinarizer
def _load_label_names():
"""
Load the label names from file
"""
return ['airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck']
def load_cfar10_batch(ci... | [
"adhi.shankar3@gmail.com"
] | adhi.shankar3@gmail.com |
db165d9274fcb016b890aceacb0829fe76d14c0e | 12f5e1035cccb683c7b83d47bab3c809005546ce | /hhparser/pipelines.py | db6ba7948202cbb095793e17d0493164dffb6708 | [] | no_license | Nikita371/HH-Scrapy-MySQL | 57ac6567952f66e61bce8fcf6da25226c645ffb4 | 0541ab458055e0ec2ba9d5746e29289203986e35 | refs/heads/master | 2020-03-28T21:48:16.423678 | 2018-09-17T20:28:08 | 2018-09-17T20:28:08 | 149,183,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | # -*- coding: utf-8 -*-
import sys
import MySQLdb
from hhparser.items import HhparserItem
class HhparserPipeline(object):
def __init__(self):
self.conn = MySQLdb.connect(host="localhost", # your host, usually localhost
user="root", # your username
... | [
"38251442+Nikita371@users.noreply.github.com"
] | 38251442+Nikita371@users.noreply.github.com |
97dd05252b2d1f893c293761aec525bc4a53456d | 2c144a35c8b178b1eae8d37e2f73e4b203fc03bb | /pyprograming/open_file_editfile/open_file_editfile/open_file_editfile.py | cf71d59142ceb99b7845dcaaa39be6a606357531 | [] | no_license | ivanpedro/QT_dev | 01f9fe8d1b7342315b50073a0ff1283c2485dfd4 | 59753ea9983198c079dbf740d6154e05c9c0c547 | refs/heads/master | 2021-05-06T18:01:12.847687 | 2017-11-30T20:00:59 | 2017-11-30T20:00:59 | 111,859,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,020 | py | import sys
from PyQt5.Qt import QFileDialog
from PyQt5.QtGui import QColor , QIcon
from PyQt5.QtWidgets import (QColorDialog, QFontDialog, QStyleFactory,
QCalendarWidget, QComboBox, QLabel,
QProgressBar, QCheckBox, QPushButton, QAction,
... | [
"ivanpedrouk@gmail.com"
] | ivanpedrouk@gmail.com |
27982193987fec8be1dcf9936d232590f0fb7939 | c0343149672446e5264dd097fa623335121434d6 | /BSBI.py | 9d30db90e8c66663741c4b782e749ff18759bc80 | [
"MIT"
] | permissive | Google1234/Information_Retrieva_Learning | cc43913238f7fd0fd92541dc4c6712618f29bee8 | 0406bdebf8fbfd2d81a8c600620890a9fdbdb4b6 | refs/heads/master | 2021-01-01T05:10:29.886484 | 2016-05-10T09:37:36 | 2016-05-10T09:37:36 | 57,950,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py |
'''
BSBI NDEXConSTRUCTION()
n <- 0
while(all documents have not been processed)
do n<-n+1
block <- PARSENEXTBLOCK() //文档分析
BSBI-INVERT(block)
WRITEBLOCKTODISK(block,fn)
MERGEBLOCKS(f1,...,fn;fmerged)
''' | [
"taoJiang_ict@163.com"
] | taoJiang_ict@163.com |
c33a4797398bb281a0fc4cce2a453e42945a3181 | d79e21c02f5a82c83f87e797f1d29f4841ba87fd | /listmethods/TuesdayMorninglist.py | 2d855d01e5f4f3b50fc553106f1e1ff95ab39329 | [] | no_license | dragonwizard21/mycode | daa930ab65a8096287ee49ccdb49038befb4fe25 | 24c7e68132d0873138d2b7596e60827b3e3b22ad | refs/heads/master | 2022-12-18T16:47:00.607499 | 2020-09-19T08:19:27 | 2020-09-19T08:19:27 | 295,483,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | #!/usr/bin/env python3
#list of pets:
pets = ['fido', 'spot', 'fluffy']
i1 = input("Please insert a pet name:")
pets.append(i1)
print(len(pets))
i2 = input("Please insert another pet name:")
pets.append(i2)
print(len(pets))
i3 = input("Please insert one more pet name:")
pets.append(i3)
print(len(pets))
print(pets)
for ... | [
"zachhuff21@gmail.com"
] | zachhuff21@gmail.com |
e4e79f61d8937b553684ef09dc913c77cecc991a | 950db427f502e8d0c90c114dd9b145cb037ece4c | /mysite/urls.py | 1115ad84952bef7423374a32876bdad35a651e83 | [] | no_license | kornkritpawit/django-polls | d0c29be7d4baf9a416b0fbe9d947c14913d78c00 | 16d9b02fb481b5f17ecf75999d36a841dbfb5975 | refs/heads/master | 2020-07-22T16:21:55.336124 | 2019-11-30T15:30:22 | 2019-11-30T15:30:22 | 207,247,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | """mysite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"konsoo@hotmail.com"
] | konsoo@hotmail.com |
2ece8e71c47ea8af26db3b8613ff6240f90944fc | 97ee4b2e87d96a661b6f1c0e29d07ed9f7f4ef28 | /admission/migrations/0029_auto_20180728_1456.py | 7355a473eefb01f904d04c819b0df9fb409da07e | [] | no_license | GHostEater/Portal | 0aac67bf74b3476b26959dd3c80484e1390f1399 | 502dff5cbe0ad13f490e2e0b2600d895fc631068 | refs/heads/master | 2020-09-07T04:55:20.199427 | 2019-11-30T15:50:04 | 2019-11-30T15:50:04 | 94,420,941 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2018-07-28 13:56
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('admission', '0028_application_app_no'),
]
operations = [
migrations.AddFiel... | [
"lasisi28@gmail.com"
] | lasisi28@gmail.com |
fd2d118e11cb5e6a64fa7a81d1e6788c194dd960 | 643edac50049ec50a193f7b32d783cde46a32e02 | /utils/utils.py | a4e9dc4aafc42960fb5be9be3372a4da92d37bd4 | [] | no_license | olavblj/thesis-pong | 150aee6f523e32ba50376105fe9d34fa0d9a6fca | 709a068bda599dccd9918ceb9a8898fb303babff | refs/heads/master | 2020-03-28T16:13:21.876047 | 2018-12-31T11:43:28 | 2018-12-31T11:43:28 | 148,671,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from datetime import datetime, timezone, timedelta
import numpy as np
from config import Path
from system_manager import SystemManager
sys_manager = SystemManager.get_instance()
def date_str(timestamp):
return datetime.fromtimestamp(timestamp, tz=timezone(offset=timedelta(hours=2)))
def fetch_highscore():
... | [
"olavlj@me.com"
] | olavlj@me.com |
4aff42044e083db2d05e023305df2e5c3c5219fb | 72d1bacb885515d02de7192ec2fb9318dcc6bc11 | /migrations/versions/4e966cd2775d_.py | 5cb10950086ab04ece77610b891b8e2c27da75f3 | [] | no_license | ellsye/zlktqa | 10b419bf69efda1d83c4cb6fd032584428c1c437 | 9d80258868c65d557d55927dc15ba4a845801062 | refs/heads/master | 2020-03-08T14:52:40.351284 | 2018-04-05T12:26:13 | 2018-04-05T12:26:13 | 128,196,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 981 | py | """empty message
Revision ID: 4e966cd2775d
Revises: f02c53fd8c48
Create Date: 2018-04-05 16:12:37.382270
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4e966cd2775d'
down_revision = 'f02c53fd8c48'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"ells@dasudian.com"
] | ells@dasudian.com |
1db0677e6ea19f82689938367444e6926eff063b | 0b0d3246d39974cb8faff7d269da2d539415afab | /problem_python/p379.py | 80f05b909fe2051d1420340e3fec99855326600b | [] | no_license | xionghhcs/leetcode | 972e7ae4ca56b7100223630b294b5a97ba5dd7e8 | 8bd43dcd995a9de0270b8cea2d9a48df17ffc08b | refs/heads/master | 2020-03-07T17:18:08.465559 | 2019-09-29T11:11:26 | 2019-09-29T11:11:26 | 127,607,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,154 | py | class PhoneDirectory:
def __init__(self, maxNumbers: int):
"""
Initialize your data structure here
@param maxNumbers - The maximum numbers that can be stored in the phone directory.
"""
self.nums = [0]* maxNumbers
self.maxNumbers = maxNumbers
def get(self) -> in... | [
"xionghhcs@163.com"
] | xionghhcs@163.com |
e456ca431caac69054baecf48d19905f1ee2b55b | 3e0a05d3ad122a24427259d162717358b5365871 | /common/commonData.py | 54c545960bee527f966356471f01870c3d6cfd88 | [] | no_license | ly951107/pytest_Api | b128080a8cac728091dbb0434dae469cb887d890 | 6f2b7365b2912694cd2b9fb63784d319c81c9825 | refs/heads/master | 2020-05-05T10:22:30.326958 | 2019-04-07T09:39:35 | 2019-04-07T09:39:35 | 179,943,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | class CommonData:
modile="18210034706"
password="123456"
host="http://192.168.1.203:8083"
token=None
proxies={"http":"http://localhost:8888"}
#changeName——success
userId=136
userName="15935625020"
oldPwd="123456"
newPwd="951107"
#/user/saveOrUpdateUser
nickName_regiest... | [
"1982338935@qq.com"
] | 1982338935@qq.com |
cf4ab042a4fa03626c4f0acf22692693769810a3 | f8493a8b1fdf9b071c718c47ce9d5a4c896da555 | /apps/organization/migrations/0004_teacher_image.py | 0141e39e3e72bc1787ba9f6046a66a7fcb7d4ea2 | [] | no_license | ze25800000/Django-learning-project | 43c38ca30da00d41815397a271f29685c2118ac7 | fb7d1984945a25bbd4bfe75cfeec5699800b1cd5 | refs/heads/master | 2020-03-08T12:38:52.804741 | 2018-04-09T23:30:37 | 2018-04-09T23:30:37 | 128,132,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2018-04-06 16:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organization', '0003_auto_20180406_1159'),
]
operations = [
migrations.AddFi... | [
"ze258100000@sina.com"
] | ze258100000@sina.com |
64e6c4b3e5b32f69c893357ab399b23c309aaff6 | a9f7894aca35992dc90eecc7e4a3c4a1fd6fcb58 | /star_wars_planet/tests/conftest.py | 3a6e87687d081c50ec8722c1d493e684627231d9 | [] | no_license | vroxo/star_wars_planet_api | 8d10d2be4ff9247f129ba5edd0aa39b364551c6a | c3ee9c0ea66311e7bc20022b25b13c6f282a9b3c | refs/heads/master | 2022-12-21T10:40:00.610754 | 2020-04-17T17:11:09 | 2020-04-17T17:11:09 | 244,825,341 | 0 | 0 | null | 2022-12-08T03:44:04 | 2020-03-04T06:31:42 | Python | UTF-8 | Python | false | false | 952 | py | import pytest
from star_wars_planet.app import create_app, minimal_app
from star_wars_planet.extensions.commands import populate_db, truncate_db
from star_wars_planet.documents import Planet
@pytest.fixture(scope="session")
def min_app():
app = minimal_app(FORCE_ENV_FOR_DYNACONF="testing")
return app
@pytes... | [
"vitor@mobi2buy.com"
] | vitor@mobi2buy.com |
327ce5b287155b91abfb814164684e491a510614 | fb2f92e452a665746c3e551804d8635d67de1b51 | /list_2015_02_05.py | e00215dde403abfbb2ef01a12dca9cbf4a2e268e | [] | no_license | skaferun9/Twitch-s-Veiwer-For-Coding-Enducation | 3e446cb7556b33639aa6ad44a533902089b5bb85 | 6a5ba1663092beaadb229ff4ea91567be5ac0bfd | refs/heads/master | 2022-01-22T17:40:27.199953 | 2018-12-19T02:57:28 | 2018-12-19T02:57:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,247 | py | def list_name():
return (["2015-02-05/all-2015-02-05-00-00-00.txt"
,"2015-02-05/all-2015-02-05-00-05-00.txt"
,"2015-02-05/all-2015-02-05-00-10-00.txt"
,"2015-02-05/all-2015-02-05-00-15-00.txt"
,"2015-02-05/all-2015-02-05-00-20-00.txt"
,"2015-02-05/all-2015-02-05-00-25-00.txt"
,"2015-02-05/al... | [
"jer11698.553@outlook.com"
] | jer11698.553@outlook.com |
90669fdf9b20e3de4f1c21a79131f12f0013be09 | 28bec0072dbb493148034e45bfe283b6c15c511e | /acorn_framework/train_tagger_network.py | 74e9c5c21c24d95b46466156d547fa22b49a0beb | [] | no_license | cmilke/vbf_selection | 2db299fd667fa565181153870f887cb91da23c5a | 1cc1f65d81047758dabfdc0c3cbf5e531c4ac1b8 | refs/heads/master | 2020-08-01T23:43:31.433028 | 2020-03-06T16:27:38 | 2020-03-06T16:27:38 | 211,161,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,507 | py | #!/usr/bin/env python
import sys
import math
import pickle
import numpy
import random
from acorn_backend.tagger_methods import selector_options
from acorn_backend.machine_learning.ML_tagger_base import ML_tagger_base
def train():
training_category = 'JVT'
tagger_to_train = ML_tagger_base(selector_options['all... | [
"chrisdmilke@gmail.com"
] | chrisdmilke@gmail.com |
ab32a9e3ccd00d392b248cff6e1bae34efc0a5fb | 9d5183506ef06e2de297124222e0186974dcb065 | /manage.py | 29760bcd2f4a20f03ccc370f857efc9ad6cea405 | [] | no_license | ardaellidokuz/eycof | 2d33fb6aae4ebc66e5b7fb9c29632a979394d799 | cf0f8e3ef7f96acb05066bdaf943edc874d758ce | refs/heads/master | 2023-04-13T15:35:24.123790 | 2021-04-25T14:06:53 | 2021-04-25T14:06:53 | 361,445,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | 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', 'eycof.settings')
try:
from django.core.management import execute_from_command_line
except Import... | [
"ardaellidokuz@gmail.com"
] | ardaellidokuz@gmail.com |
a296ad39150d17d9697e34bbbaf44985d69eceae | fbe68d84e97262d6d26dd65c704a7b50af2b3943 | /third_party/expected-lite/script/update-version.py | 034e4f00671a011ffed11919b8981d460d2c1063 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"BSL-1.0"
] | permissive | thalium/icebox | c4e6573f2b4f0973b6c7bb0bf068fe9e795fdcfb | 6f78952d58da52ea4f0e55b2ab297f28e80c1160 | refs/heads/master | 2022-08-14T00:19:36.984579 | 2022-02-22T13:10:31 | 2022-02-22T13:10:31 | 190,019,914 | 585 | 109 | MIT | 2022-01-13T20:58:15 | 2019-06-03T14:18:12 | C++ | UTF-8 | Python | false | false | 3,877 | py | #!/usr/bin/env python
#
# Copyright 2017-2018 by Martin Moene
#
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
# script/update-version.py
#
from __future__ import print_function
import argparse
import os
import re
im... | [
"benoit.amiaux@gmail.com"
] | benoit.amiaux@gmail.com |
e7e55f1d520c4c58b05c92f01c099627c0f2f90f | d1ae9caf754fa31b0d452aacf619b7f286faaeac | /Chapter04/ch4-mod/counter/countdown.py | ad32bd1be211960e48c6267238c28d8a8cb68748 | [
"MIT"
] | permissive | PacktPublishing/Tkinter-GUI-Programming-by-Example | 1a89201334030b0dd7a4cd7251da9cedbe3042cd | 2ccea65c87d9c4da3438dd5cc230ec2688b2eba0 | refs/heads/master | 2023-08-19T10:06:05.179585 | 2023-01-30T08:52:40 | 2023-01-30T08:52:40 | 130,801,365 | 166 | 96 | MIT | 2023-08-10T13:11:40 | 2018-04-24T05:35:21 | Python | UTF-8 | Python | false | false | 118 | py | def count_down(max):
numbers = [i for i in range(max)]
for num in numbers[::-1]:
print(num, end=', ')
| [
"subhalaxmin@packtpub.com"
] | subhalaxmin@packtpub.com |
14a350e33c120435a0275dc517f3b6d994b30a1c | 7db97444b6af7de9392f0290fcc6768264ef04df | /udp_send.py | fe719d707c95ad7a8f7d4530a34398619a405bc4 | [] | no_license | acreel21/Cloud_Controlled_Mobile_Robot_Design | 5ffcbcae22175fe04a441bf1f2656227137134f1 | 16b2cf7cd8c84a53f4c093c3ffff4df5c027af17 | refs/heads/master | 2020-05-14T12:57:42.236614 | 2019-04-29T18:16:45 | 2019-04-29T18:16:45 | 181,803,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,124 | py | import socket
import sys
from ctypes import *
import getch
v = 0
t = 0
UDP_IP = "192.168.1.99"
UDP_PORT = 5005
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.connect((UDP_IP, UDP_PORT))
class Robot(Structure):
_fields_ = [("velocity", c_double),("theta", c_double... | [
"acreel@gmu.edu"
] | acreel@gmu.edu |
d5940530bc4553fabdeaed10fa92f452da0d3571 | 20a34ca150213244f9bf2fdf6641e0c282d492e4 | /test_app/models.py | 7b982ee6fcda4bf63b506378acfecdc1f4dfa91c | [] | no_license | SNCKER/CVE-2020-7471 | 3c1060673c0b2c27124da756a1b686eefadb39c3 | 8a9f5c098f484d2b04d481f3088cc235ad5cc9cc | refs/heads/master | 2021-01-09T10:10:24.467228 | 2020-02-22T01:42:03 | 2020-02-22T01:42:03 | 242,260,909 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.db import models
# Create your models here.
class testModel(models.Model):
field1 = models.TextField()
field2 = models.TextField()
| [
"948375961@qq.com"
] | 948375961@qq.com |
63d862cdc8edcd102a17e39a952df8976a4cccc3 | 93f266195cf5081ceb7ed356ef3dbf8712ca034a | /softwareprocess/Sample.py | 5be4c75a58fdacdf90e36e30d05e12004e3e1379 | [] | no_license | zzz0069/Navigation-positioning | b92cc9937adabe3323d4dc5c09f4c0b448033e9a | 4c06836dda215b7d87cf0c2be9fdcdcbafaf771d | refs/heads/master | 2021-03-27T19:25:29.644070 | 2018-04-19T19:13:10 | 2018-04-19T19:13:10 | 81,520,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | import math
class Sample(object):
# outward facing methods
def __init__(self, n=None):
functionName = "Sample.__init__: "
if(n == None):
raise ValueError(functionName + "invalid n")
if(not(isinstance(n, int))):
raise ValueError(functionName + "invalid n")
if(... | [
"zzz0069@auburn.edu"
] | zzz0069@auburn.edu |
9f13dfc1872ec53f15943d98dfd1dcd9ed0eaf09 | c43e8f4cc55c9aa0db70408ed56f74f1eb8de1d2 | /main.py | d56a3198af8d81d5fd00a7e941ae100327812eca | [] | no_license | shivaverma/Score-Time-Detection | 400e08824a9bfefca224f4052d3fe734700ae8e5 | 6dbf185e1d9e6035c4ccaf937d94fba1776d404d | refs/heads/master | 2022-12-04T22:17:01.038636 | 2019-05-29T12:03:58 | 2019-05-29T12:03:58 | 155,692,352 | 4 | 2 | null | 2022-11-22T03:05:22 | 2018-11-01T09:33:29 | Jupyter Notebook | UTF-8 | Python | false | false | 6,819 | py | import cv2
import torch
import random
import collections
import numpy as np
from PIL import Image
import torch.nn as nn
from torch.autograd import Variable
import torchvision.transforms as transforms
class strLabelConverter(object):
def __init__(self, alphabet):
alphabet = alphabet.lower()
self.a... | [
"shivajbd@gmail.com"
] | shivajbd@gmail.com |
2c48eb95fdde29c4ebdeaea526a1f270eb66f30e | 744096e063ffb4cdb017f60e6dfae410a51c789a | /AE/a11_noise1.py | cf32a655f4f90e0fe71c9ecb3f4b296da12e79f3 | [] | no_license | elf0508/Study-bit | 59ddab507b02c13a45913c05a4799ff946e63f95 | a773d7643cbb1c0008e7ea01c32615c9e6e3678c | refs/heads/master | 2022-12-31T11:53:44.344693 | 2020-10-16T09:04:01 | 2020-10-16T09:04:01 | 270,950,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,082 | py | # PCA : 선형
# 오토인코더 (autoencoder) : 비선형
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
import numpy as np
def autoencoder(hidden_layer_size):
model = Sequential()
model.add(Dense(units = hidden_layer_size, input_shape = (784, ), activation = 'relu'))
model.a... | [
"elf0508@naver.com"
] | elf0508@naver.com |
063d9dc1da74391f81c536fcc40be7623033109a | 025119796f1003b32d8f44d7e471f19b4380a592 | /Triviafile.py | 9ed3092dd8b162eb02b7458c7ef78ddb92a1a992 | [] | no_license | dzng1234/dz1234.github.io | b21eb774cd73cb2df5c81eb993387bdf76e43b63 | 87471a3e63e5d946bbc785a50ad9b6ff0f140b7d | refs/heads/master | 2020-07-17T22:42:14.843388 | 2020-01-09T15:56:39 | 2020-01-09T15:56:39 | 206,115,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,336 | py | def intro():
print ("Welcome to the Sport trivia game!")
print ("Which sport would you like to play?")
print ("Press f for Football, s for Soccer, and b for Basketball")
levelselect= raw_input()
if levelselect==("f"):
footballtrivia()
elif levelselect==("s"):
soccertrivia()
else:
bas... | [
"noreply@github.com"
] | dzng1234.noreply@github.com |
a56b54a1b148118fbd6bb0bfe054269d1aac4cb0 | f1c6178b5f0bb6cbd3d42d9326e9f9c41701e0a6 | /Day 7/hw2.py | 915bad5bdbd177e2d98455a02401957f7f654785 | [] | no_license | princemathew1997/random-python | 779d377fb43a39b37584b7f3a5702f0f29e98ad0 | 80b9065353525465b87636efcd7879d5f7a8ae76 | refs/heads/main | 2023-01-31T09:38:27.056368 | 2020-12-19T15:20:39 | 2020-12-19T15:20:39 | 319,009,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | num = int(input('How many numbers: '))
sum = 0
i = 0
while i<num:
a = input("Enter The Number: ")
if a == 'q':
break
else:
sum = sum + int(a)
i += 1
avg = sum/i
print(avg)
| [
"princepmd6@gmail.com"
] | princepmd6@gmail.com |
030114cbd063b9d9ebff2f297572a4ad727248b9 | be9704e5fbf2897cc49692967d1e15b4d6c9dc57 | /src/main.py | 562cf9ae0874e495efb5e00a4778cabaa2e581e3 | [] | no_license | Tanner0397/Gpac | 766de8ee001d2f178cdf5e098444688614794220 | 2ea8c276d729fcb9d1e1960d5d782ee6eb62e750 | refs/heads/master | 2020-04-12T20:12:11.260404 | 2019-01-23T21:27:18 | 2019-01-23T21:27:18 | 162,728,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,209 | py | """
Tanner Wendland
10/22/18
CS5401 - Gpac
"""
import game
import sys
import configparser
import copy
from config_builder import config_builder
import logger
sys.path.insert(0, 'build')
from fast_tree import tree
from evolution import Evolution
#For testing
from population_member import member
c... | [
"trwt33@mst.edu"
] | trwt33@mst.edu |
93b26866bb323f28e65e6a08907cc6ed82010b30 | 7e82610c94ff8b569fcb44c40800a88386be314d | /344.reverse-string.py | 1017dbc95d97700bd14f88fb74fee6b52d1b1f01 | [] | no_license | irtfrm/leet-code | c7614076add0a84118db36055b1ffa9e27b5b155 | af20a605fe9c01fc11f04ab70eff12b25ea066dc | refs/heads/main | 2023-08-01T16:15:28.200198 | 2021-09-17T13:24:00 | 2021-09-17T13:24:00 | 370,783,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | #
# @lc app=leetcode id=344 lang=python3
#
# [344] Reverse String
#
# @lc code=start
class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
for i in range(len(s)//2):
s[i], s[len(s) - i - 1] = s[len(s) - ... | [
"frm.tomoya@gmail.com"
] | frm.tomoya@gmail.com |
7570fc313c9dede406f12b3265be0521c1ef46ef | 69f2a41554cad2ed374ebfb045e08bca0e54c755 | /test.py | b470454371cbcccb46eb02ab151a066791f039ad | [] | no_license | Momentum-Team-8/python-word-frequency-qbarefoot | 0da449427709d852b00f929c72e480003a7854be | c4a2751e2a0cf2612704fd0673756299941ec644 | refs/heads/main | 2023-05-29T12:38:20.459150 | 2021-06-10T02:05:58 | 2021-06-10T02:05:58 | 375,056,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | import string
STOP_WORDS = [
'a', 'an', 'and', 'are', 'as', 'at', 'be', 'by', 'for', 'from', 'has', 'he',
'i', 'in', 'is', 'it', 'its', 'of', 'on', 'that', 'the', 'to', 'were',
'will', 'with'
]
with open ("praise_song_for_the_day.txt") as f:
text = f.read().lower()
words = text.split()
print(... | [
"quintenbarefoot@gmail.com"
] | quintenbarefoot@gmail.com |
1f61acd31da4332e2a3ac92943686889d38bbe78 | 9d9499a7ab0d3efccd35a29f997b3551573dfb64 | /SocialMediaProject/posts/urls.py | 8d88a7f2b91919b719c933bcc826292acf31ca95 | [] | no_license | SuryaSsrivastava/djangoProject | ec040c8813b4f2f15db53c38d031f47ee2afc7ca | d98f88e7a0ded1e9875ecf0e1021fa454bdf117a | refs/heads/master | 2022-01-15T17:14:20.927517 | 2019-07-16T14:22:26 | 2019-07-16T14:22:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | from django.urls import path
from . import views
app_name='posts'
urlpatterns=[
path('',views.PostList.as_view(),name='all'),
path('new/',views.CreatePost.as_view(),name='create'),
path('by/<username>/',views.UserPosts.as_view(),name='for_user'),
path('by/<username>/<int:pk>/',views.PostDetail.as_vie... | [
"scsuryamani@gmail.com"
] | scsuryamani@gmail.com |
c0e08cddd9467f521a019139fedd158aceceeb6e | fecac4770bb21e44f21a2aa148c2305c4f90e121 | /utils.py | acedcbb3fb0bb48be96db7209f05fcf86f5405c7 | [] | no_license | LucenZhao/Kaggle_House_Price_Prediction | 2c89b1d49116591f38fb88333d21cdd64737ba7e | 053e0b533266c0ebf95f8ded007b2866fbda8649 | refs/heads/master | 2020-03-10T08:06:39.090817 | 2018-04-27T12:19:07 | 2018-04-27T12:19:07 | 129,277,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | from sklearn.model_selection import KFold, cross_val_score
import numpy as np
import pandas
import config
def cross_valid(models, feats, labels):
ns = config.cv_folds
k_fold = KFold(n_splits=ns)
scores = []
for i, clf in models:
score = sum(cross_val_score(clf, feats, labels, cv=k_fold,
... | [
"noreply@github.com"
] | LucenZhao.noreply@github.com |
4945ebc633a91ec96ba5af4ca5b8dded7fb18667 | 414a2e81a33ad812245a4672daf99db9ed7274ee | /Python_code/pycharm/demo_random.py | b2a6a447c8d6727e6d0da37433cd522498514844 | [] | no_license | zhh-3/python_study | dd08e3768fb2973c8a4b0b07ff837c7620ddc661 | 07a702fbcf9f8d272aa58bbbe1548d08863e51ad | refs/heads/main | 2023-06-18T05:17:07.785058 | 2021-07-16T06:59:18 | 2021-07-16T06:59:18 | 386,537,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | import random # 引入随机库
# 随机生成0到3之间的整数 [0,10]
for i in range(10):
x = random.randint(0, 3)
print(x)
| [
"noreply@github.com"
] | zhh-3.noreply@github.com |
09d1fa2542d206fee4e3046b4f3e41b853deb3a0 | c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce | /flask/flaskenv/Lib/site-packages/pandas/tests/extension/json/array.py | 2035f19861796dea63b5d52f6a4751469439881c | [] | no_license | AhsonAslam/webapi | 54cf7466aac4685da1105f9fb84c686e38f92121 | 1b2bfa4614e7afdc57c9210b0674506ea70b20b5 | refs/heads/master | 2020-07-27T06:05:36.057953 | 2019-09-17T06:35:33 | 2019-09-17T06:35:33 | 208,895,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:71f932c427834e45b2bd65a7b9bcb6566fb58c3713a7dfe914347c0ae8240f05
size 6380
| [
"github@cuba12345"
] | github@cuba12345 |
66b25c223ada291e0cc5a9c44b0f8240ecc60514 | 7496d8997095708ec8365a7536564c338823bb34 | /Q3/combiner.py | dffc354cd9c3db8c3492936fa8076c4498146bb1 | [] | no_license | chihfenl/bomoda-practice | ee561fc7900db5023dd7854da1b34a7adff189e7 | 8500c59f2c1450913a338a01452578c1ca91c980 | refs/heads/master | 2021-05-30T04:27:28.900355 | 2015-11-26T04:00:56 | 2015-11-26T04:00:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | #!/usr/bin/python
# The object of this file is to remove duplicate id_brand input from mapper.py
# and output a unique one to the reducer.py
import simplejson as json
import re
import sys
previous_id_brand = ""
previous_brand = ""
previous_count = ""
previous_text = ""
first = True
for line in sys.stdin:
try:
id_... | [
"phone751230@gmail.com"
] | phone751230@gmail.com |
8c6eb05af7336cb5b5413f19657bc90ea67903c9 | 6a4a99ef02d4d9b5b03c16e0fb927ebe3ebd6bf4 | /Packages/app.py | aca4bf290d85897ae1601c80e39337274df3cbdf | [] | no_license | tinashiang/CEBI-Miner | cb9b51e43a4edd40f46da1e48f85eb5adda682e0 | 93971702bb3a576092ac46562d49d2d214150f74 | refs/heads/master | 2023-03-18T17:22:22.447073 | 2019-12-12T16:12:00 | 2019-12-12T16:12:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,730 | py | # -*- coding: utf-8 -*-
import base64
import datetime
import io
import sys
import os
import importlib as imp
import flask
from sys import platform
import time
if sys.version_info[0] >= 3:
imp.reload(sys)
else:
reload(sys)
sys.setdefaultencoding('utf8')
import dash
from dash.dependencies import Input, Ou... | [
"hashemi.s@husky.neu.edu"
] | hashemi.s@husky.neu.edu |
07ca464ec612048050152c4fdcca8a14f7eea684 | 98c57c08ade572eb4c65b06173fca64273eba7c4 | /math/0x00-linear_algebra/12-bracin_the_elements.py | 27f855735cf0be95c0900dfd214a0da5b24b8391 | [] | no_license | najikadriholberton/holbertonschool-machine_learning | 0fefe7d4c464f65b681bb6a68f02df5598fb1167 | 33ae88b3c6e684f9bd63c87d5fa2bce9e02c53cf | refs/heads/master | 2023-08-04T02:54:29.406478 | 2021-10-01T11:32:09 | 2021-10-01T11:32:09 | 386,055,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | #!/usr/bin/env python3
"""
Module for Bracing The Elements
"""
def np_elementwise(mat1, mat2):
"""elementwise operations"""
return mat1+mat2, mat1-mat2, mat1*mat2, mat1/mat2
| [
"3214@holbertonschool.com"
] | 3214@holbertonschool.com |
65c240ce157060af252de316c8a054885f09302b | dfc992c1bc4a4e6d704c9a790a367f71294baccf | /orders/migrations/0007_usercheckout_braintree_id.py | 846449ab93c7fa4ff2b5d6e01eec175611797ec2 | [] | no_license | spaceled/emartway | 06ecb2b2c09b07b75fe46282120f1e54ea802dcc | 924866182a1e3cdfe571db97f9aa582fb9d2046a | refs/heads/master | 2022-12-15T20:14:06.076940 | 2018-02-12T14:42:47 | 2018-02-12T14:42:47 | 121,132,162 | 0 | 0 | null | 2022-12-07T23:46:20 | 2018-02-11T14:34:50 | HTML | UTF-8 | Python | false | false | 478 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-02-08 02:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0006_order_status'),
]
operations = [
migrations.AddField(
... | [
"spaceled@gmail.com"
] | spaceled@gmail.com |
e9279d1562b5fc0a5afda27a597bd474e89f812f | d74d127e4d46cd45b11bfd225cb301b878f6f983 | /fit.py | 7248233cc7a3b69ebb2e8f42fa129087c605af0d | [] | no_license | Diego10HDZ/CUFICO-2018-2 | bfc62b522cba57a949204460958f2feb63c33cb7 | f4eeeb171c317e7b0b829f1efd762722b0d49bb5 | refs/heads/master | 2020-03-26T09:41:02.818706 | 2019-02-26T21:21:38 | 2019-02-26T21:21:38 | 144,759,068 | 1 | 0 | null | 2019-02-26T20:17:18 | 2018-08-14T18:41:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,250 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
def func(x, a, b, c):
return a * np.exp(b*0.01* x) + c
x = np.linspace(5,60,55)
y = [4.75840e-05, 5.43641e-05, 6.11506e-05, 6.37069e-05, 6.69806e-05, 1.72117e-04, 1.89360e-04, 2.27382e-04, 2.64877e-04, 2.63542e-04, 2.95507e... | [
"noreply@github.com"
] | Diego10HDZ.noreply@github.com |
2c687dbf04fda22347ea715f63400abcb4672fce | f1ec30dabdc40c0a569c54a5d00f0ce325c2d92e | /lista1/matcher.py | c33693358a58409670a3279eab7cda792e39efe6 | [] | no_license | JakubGogola-IDENTT/jftt | 3ae00da85e15fb5ee51207c076485cf593dda159 | a406afeb3fce94bec8f839985a5d62c95e1f1e05 | refs/heads/master | 2023-04-27T19:00:22.112695 | 2019-03-09T09:35:01 | 2019-03-09T09:35:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | # Patterns matcher
def compute_transition_function(pattern, sigma):
m = len(pattern)
delta = {}
for q in range(0, m + 1):
for a in sigma:
# The largest k where Pk is suffix of Pq|a
k = min(m + 1, q + 2)
k -= 1
while not str(pattern[0:q] + a).endsw... | [
"jakubgogola97@gmail.com"
] | jakubgogola97@gmail.com |
a5fd815823dd02f345d14a670163777412a29740 | ba7a526e65dfd482493de83be404b285e7b240f0 | /Python Stack/flask_fundamentals/great number game/great.py | 611380d2105578acb69e66d29a77044a70bf6f85 | [] | no_license | gracejansen227/CodingDojoAssignments | 3d19944098b82586d1d5a72283026477a8f9dce6 | b5dc035abdf7a87d8e1074bd6ddafb8690ba9cf2 | refs/heads/master | 2021-05-02T16:12:27.167783 | 2018-06-27T11:22:12 | 2018-06-27T11:22:12 | 120,667,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | from flask import Flask, render_template, request, redirect, session
import random
app = Flask(__name__)
app.secret_key = 'ThisIsSecret' # you need to set a secret key for security purposes
# routing rules and rest of server.py below
@app.route('/')
def index():
right_answer = random.randrange(0, 101)
session... | [
"graceowensjansen@gmail.com"
] | graceowensjansen@gmail.com |
d6b2e9abd476619cb46b072951c4017d486b6422 | db1089e6201a65d7813d3b82222ad4460d97d4b4 | /database/models.py | 6c9dc22744a113a015c00e38eff31d27a1852021 | [
"MIT"
] | permissive | imtiaz101325/movie_api | 5c0dd06f992323df4d573ebdca189f105cc77d7c | db54066bc2f8b55aacd92aaa678fa4e1ae9ff4b3 | refs/heads/master | 2022-01-10T21:13:03.190488 | 2022-01-06T21:03:38 | 2022-01-06T21:03:38 | 252,554,313 | 6 | 0 | MIT | 2020-04-06T09:44:22 | 2020-04-02T20:02:35 | HTML | UTF-8 | Python | false | false | 3,321 | py | from sqlalchemy import create_engine, Column, Table, ForeignKey, MetaData
from sqlalchemy.orm import relationship
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import (
Integer, String, Date, DateTime, Float, Boolean, Text
)
Base = declarative_base()
def db_connect():
return create_... | [
"imtiaz101325@gmail.com"
] | imtiaz101325@gmail.com |
5dda65dc3c38a21843e3353d394dd102b4f9b2f0 | 98b0d740346ad9aecd228b9a8ebb8e818908ce03 | /sd-exercise.py | c87a9aec8446d4e8a23ea36643c04628048a821e | [] | no_license | alexisbellido/python-examples | 8c63156a2800a584a8aff0909325e38acbe49163 | e6a4f61d9cd18588987430007e28ef036971764b | refs/heads/master | 2022-10-16T08:28:15.312916 | 2022-09-30T15:55:31 | 2022-09-30T15:55:31 | 240,379,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | from collections import deque
def get_next_pal(num, is_palindrome_fn):
try:
p_num = num + 1
while not is_palindrome_fn(p_num):
# print('current num', p_num)
p_num += 1
return p_num
except TypeError:
return 0
# TODO
# def is_pal_math():
# num = 807
#... | [
"alexis@ventanazul.com"
] | alexis@ventanazul.com |
d864de3060ba0754499f07512ef7b4a5127f3495 | 19bb7fdcbd8a2fc9209a87a9b42e699925a47aff | /aiosmb/dcerpc/v5/interfaces/servicemanager.py | 7f11cccdc956751db4804c3c0b39a197de5d55ef | [] | no_license | xBlackSwan/aiosmb | 4cbf8af4806631cf370a319317cc3714239e16ba | 82d0f490eb7aa81af8b73ad6cb59b423605c51c3 | refs/heads/master | 2022-09-06T21:18:40.228457 | 2020-06-01T21:55:53 | 2020-06-01T21:55:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,777 | py | import enum
import asyncio
from aiosmb import logger
from aiosmb.dcerpc.v5.common.service import SMBServiceStatus, SMBService
from aiosmb.dcerpc.v5.common.connection.smbdcefactory import SMBDCEFactory
from aiosmb.dcerpc.v5 import wkst, scmr
from aiosmb.commons.utils.decorators import red, rr, red_gen
class SMBRemote... | [
"info@skelsec.com"
] | info@skelsec.com |
c162445c33d189714668cb531a3348309d5df3bd | 3535e98acaefbb284f2bf0d6de76e31d849a3616 | /game.py | 66b261b15ab097b8edd48b8bfee5eeadf5dd51e8 | [] | no_license | omolazabal/tetris | 23740b13dff9ce9b5f78806a8c0207e886969f1b | 7cc7e8ac2126983b8c29071a60d8cb1300302306 | refs/heads/master | 2021-04-28T09:36:43.867911 | 2019-02-11T00:22:42 | 2019-02-11T00:22:42 | 122,044,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,927 | py |
import os
import pickle
import pygame as pg
import numpy as np
import datetime
from pygame.locals import *
from tetris.utils import Timer
from tetris.core import Tetromino, Board, Score
from tetris.settings import *
TILE_SIZE = TetrominoSettings.tile_size
TOP = DisplaySettings.height//10
BOTTOM = DisplaySettings.hei... | [
"oscarolazabal@gmail.com"
] | oscarolazabal@gmail.com |
f6e1a494ebaedee5837926e1f68f62a8843f3630 | 55cfc146ac938442789bdf18dffc4ceead99c0d7 | /HttpServerCode.py | b7d350541231b3bdd77826c123ba3356b85452ef | [] | no_license | kansalk/CN-Project | 0879b3e351bfd3039f50f739c8b5f3326f7684e0 | 4f34b2f7801e253c67282784c58623ae2ecc2615 | refs/heads/master | 2023-03-08T03:35:40.492734 | 2019-10-25T13:53:05 | 2019-10-25T13:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,300 | py | import os
import sys
import gzip
from socket import *
import threading
import functools
rootDirectory="/home/keshavk/Documents/CN Project/Templates1"
serverPort = 12000
serverSocket = socket(AF_INET,SOCK_STREAM)
serverSocket.bind(("",serverPort))
serverSocket.listen(1)
supportedFileTypes=['html','css','eot','svg','t... | [
"kansalkeshav@gmail.com"
] | kansalkeshav@gmail.com |
ba880850e2f70193fe11de6eb05519cbb4b2a638 | 9bf1fc29fd4ace556da64c5da46b60d15ffb5b9f | /EJERCICIO2.py | 81a2c9712e1db71801d5e4fe8d769a090fb6cbae | [] | no_license | Jelowis/Ejercicios-Python-U | 876e612aafef6a5c73c817b26b9e37388ae0d8f5 | 0dce56740b38811b3f5707da9ba5f2c63acff463 | refs/heads/main | 2023-06-07T23:02:42.506347 | 2021-06-28T05:06:31 | 2021-06-28T05:06:31 | 380,867,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | # for range(v) – range(vi,vf) - range(vi,vf,inc)
frase = input("Ingrese frase: ")
for indice in range(len(frase)):
print(indice,'=',frase[indice]) | [
"noreply@github.com"
] | Jelowis.noreply@github.com |
e6f15f434682f566a3a5fc6b95ea0645234f5d45 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/hard/8_20.py | 9b5691a40626bea7dee38b7648365443f5a95f4f | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,192 | py | Private Variables in Python
**Prerequisite:**Underscore in Python
In Python, there is no existence of “Private” instance variables that cannot
be accessed except inside an object. However, a convention is being followed
by most Python code and coders i.e., a name prefixed with an underscore, For
e.g. **_g... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
4737c16d94228d9c689c9fe4e6c7d3e559caff04 | a03c7e9a7c3b6b2c21929d184873107c66031ece | /chapter_01/pub_package/pyApp/__init__.py | 0db340a62606ca4a764965ba44c599282c56e7db | [] | no_license | maguichang/pyNote | bd8549d0a0665bd7fe40ef863f3d568859186f16 | b2bf748872cdfb87b381a9a948f7baa5f3fdd87f | refs/heads/master | 2020-09-05T19:28:31.010671 | 2019-11-07T09:06:11 | 2019-11-07T09:06:11 | 220,193,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | # -*- coding:utf-8 -*-
# @Time :2019/11/7 16:26
# Author :MaGuichang
"""
此 __init__.py 写下你的 name 和导入你的代码模块
"""
from __future__ import absolute_import
from .pyApp import *
name = "python 项目的正确打开方式" | [
"mgc5320@163.com"
] | mgc5320@163.com |
d24f4da6658241c60450ba6aba1669e8dc08157a | 4da58eeffd61b22e276dc6d56db31c7440544d2e | /basics/Calculator.py | 03dd5e64999f882d50046506051662b6056fc3ac | [] | no_license | Ro7nak/python | 604abfb42ccc2c7cd40588d4e36449b30f03a570 | 60d61f68ad438f355c6b9b8b8a3fb524e02cb0de | refs/heads/master | 2020-03-28T04:26:10.865955 | 2019-12-15T08:01:54 | 2019-12-15T08:01:54 | 147,714,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # from math import *
num1 = input("enter a number: ")
num2 = input("enter another number: ")
#add1 = int(num1) + int(num2)
# input from user is always a string so int can convert in into number
# int will wor for only whole number
add2 = float(num1) + float(num2)
# float will work for decimal numbers
#print("addit... | [
"rounak077@gmail.com"
] | rounak077@gmail.com |
3d0c0555f2535a6bc80ec1bd9ae8801309a8b061 | bcd5a15b00c918dcdc220f229489ed298ee0d99c | /src/products.py | d01292700991ae7193b4bf1976da60b1507552b9 | [] | no_license | stepp1/Landslide_EarlyDetection | 48c766d969b803d7f3eec0ffb2fb91516a3116ad | 934fda3b81c1ce21970c15fa2829c83bcd859c3c | refs/heads/main | 2023-08-08T23:55:40.471564 | 2020-12-01T05:06:55 | 2020-12-01T05:06:55 | 321,784,420 | 0 | 0 | null | 2023-07-25T17:03:49 | 2020-12-15T20:43:24 | null | UTF-8 | Python | false | false | 2,089 | py | weather_prods = {
'goes' : {
'id' : 'goes17:fulldisk:v1',
'short_name' : 'goes',
'freq' : '15 min',
'res' : 'multiple',
'bands' : [
'derived:evi',
'derived:ndvi',
'derived:ndwi',
'derived:ndwi1',
'derived:ndwi2'
... | [
"sfaragg@gmail.com"
] | sfaragg@gmail.com |
bf24f5fef311dba540023427219ffb4327c635f1 | c0fae5c72bf74f9577eba38fa319c6dff92a46af | /extension_2_ensemble.py | 7dab6f67c78b21a0aee885df26b8fbae7b9aa405 | [] | no_license | theriaultr/CISC_874_Project_Final_Code | 047a120b04a97aec28c29545aadcf302774686d7 | a5f695c43e120ff4037c7f53423d80ee2c0494af | refs/heads/main | 2023-04-04T07:55:25.516410 | 2021-04-15T22:44:42 | 2021-04-15T22:44:42 | 358,392,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,519 | py | '''
The purpose of this section is to extend ResNet in an ensemble approach using the final layer before model output.
It designed for combining 2 models with the same number of nodes on last fully connected layer before output layer
The optional methods set at the parameter OPTION are
1. Summing fully connected ... | [
"noreply@github.com"
] | theriaultr.noreply@github.com |
027213b7f05cac7207d402a79bd8a74355de05f4 | 11ef4bbb8086ba3b9678a2037d0c28baaf8c010e | /Source Code/server/binaries/chromium/pyproto/components/feed/core/proto/content_storage_pb2.py | ee9d322f417b3184236037d8f6e46f0940829c38 | [] | no_license | lineCode/wasmview.github.io | 8f845ec6ba8a1ec85272d734efc80d2416a6e15b | eac4c69ea1cf0e9af9da5a500219236470541f9b | refs/heads/master | 2020-09-22T21:05:53.766548 | 2019-08-24T05:34:04 | 2019-08-24T05:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 2,486 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: content_storage.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection a... | [
"wasmview@gmail.com"
] | wasmview@gmail.com |
1d2597e62867a48b42e627be8c5761ed4af60f31 | 443d16e224d7b8b9014746c4995ea48090b1e41d | /liction1/robot-tasks-master/task_27.py | 099ab024a84d86f74ee552426f51d9ae45035e46 | [] | no_license | motomax990/lictions | fae3ef891c92b7fbe1b5a74561a7c39d45f0c76f | 1a329b1b07f4da2fc7b0bbcf134c1912b87ae10a | refs/heads/master | 2021-05-21T01:04:57.940074 | 2020-04-03T07:44:32 | 2020-04-03T07:44:32 | 252,479,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | #!/usr/bin/python3
from pyrob.api import *
@task
def task_7_5():
move_right()
fill_cell()
n = 0
nn = n
while not wall_is_on_the_right():
if n < nn:
n += 1
move_right()
else:
n = 0
nn += 1
move_right()
if no... | [
"motomax990@gmail.com"
] | motomax990@gmail.com |
d969b7adc6bd3bbefcc49987e3756a2ac25fa5f6 | 528c66f55202c1c68fbfb727ecf6a9fc1e0caa0c | /katran/stamps/plugins/stamplink/dbgettext_registration.py | f95a06ac7bea58183db4f58a6b2bb467df2ed5a5 | [] | no_license | samjacoby/katran | 445d9e972b463e75c18f5deb2a6f34837c65b62f | 61b3d024e9209c925664c5c64e8b7aaa1f9d52a7 | refs/heads/master | 2020-03-31T07:41:46.138648 | 2011-08-19T21:50:38 | 2011-08-19T21:50:38 | 1,395,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from dbgettext.registry import registry, Options
from models import StampLink
class LinkOptions(Options):
attributes = ('name', 'url', 'mailto')
parent = 'page'
registry.register(StampLink, LinkOptions)
| [
"sam@shackmanpress.com"
] | sam@shackmanpress.com |
514a8ee2bbd1c46788a905786a44bd30fe126160 | 3fbf8a41253b008083a4ddb92955514f5f277df6 | /temp.py | 206341102a944e0da7051b9a17a9529320ec65f4 | [] | no_license | ashish0707/pagerank | f28a2c12ba93bd9ff001294e72e798c993ad9ba4 | f0450115a93ade9906d7f44106450dbe157a03f5 | refs/heads/master | 2021-01-11T01:09:38.256259 | 2016-10-16T22:44:34 | 2016-10-16T22:44:34 | 71,052,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,004 | py | import os
import sys
import fileinput
from collections import defaultdict
class Node:
inlinks = []
title = ""
numberOfOutlinks = 0
pageRank = 0.0;
newPageRank = 0.0;
def __init__(self, depth, url):
self.depth = depth
self.url = url
def __eq__(self, node):
if self... | [
"saashaa0707@gmail.com"
] | saashaa0707@gmail.com |
4a0fee6d173f9ed06c26a63cd716de5b07c251f6 | 813eebfeadbe8d77b02d307eb64dfa9a94aef553 | /slidenup.py | 52e608ed01a2f38c33c845746de5f8e7041dc45d | [
"MIT"
] | permissive | lacop/slidenup | efbf07fd84e071b6925e5d265214d45f71250539 | 50a7824a1019c058cde47d73c654c49e4bcc9167 | refs/heads/master | 2020-05-17T16:01:12.000548 | 2015-05-31T11:53:17 | 2015-05-31T11:53:17 | 36,600,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,777 | py | #!/usr/bin/env python3
import sys
import os
import subprocess
from termcolor import colored
import tempfile
NUPARGS = ['--nup', '3x2', '--landscape']
MERGEARGS = ['--landscape']
TEXPREAMBLE = [
r'\documentclass[12pt, a4paper]{article}',
r'\usepackage{multido}',
r'\usepackage[landscape]{geometry}',
r'\... | [
"lacop@lacop.net"
] | lacop@lacop.net |
cbcb4e26a72746f3f0c792281fd754aa831d4222 | 94e336b295eeee74862f4d88996bc6d98c10ad2c | /python/S14-Day12-学员管理系统/modules/db_conn.py | 691fdff3844e997580eb0df5c6d5500ca1ca7003 | [] | no_license | colinmaomao/python | f753b1bbe1ba3808af951bf8a2be2713568ebcd6 | 3c4375c91c9131c8a157146fd5aee832f75a0443 | refs/heads/master | 2020-03-13T03:19:12.678278 | 2018-04-25T03:13:53 | 2018-04-25T03:13:53 | 85,037,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Time:2017/12/19 20:37
__Author__ = 'Sean Yao'
from sqlalchemy import create_engine, Table
from sqlalchemy.orm import sessionmaker
from conf import settings
engine = create_engine(settings.ConnParams)
SessionCls = sessionmaker(bind=engine)
session = SessionCls() | [
"colinmaomao@live.com"
] | colinmaomao@live.com |
1ff3689cef9ea51c11ce8e0a2538fdcf94209214 | 9beb3189a58f8b212903bfb37d90866cff54c868 | /build/hokuyo_node/catkin_generated/pkg.develspace.context.pc.py | a73fb6e05bef682eb7bc658d162fc09b1822b1c5 | [] | no_license | HORIOJAPAN2017/GTUNE_catkin_ws | e6f20bde8f432e853c0e1f320d0f86844e7d4d16 | b88c7c0e90a6ea84ba8aa9087f0300bde67eb224 | refs/heads/master | 2020-03-22T21:22:47.965710 | 2018-07-12T08:03:57 | 2018-07-12T08:03:57 | 140,681,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/user/catkin_ws/devel/include;/home/user/catkin_ws/src/hokuyo_node/include".split(';') if "/home/user/catkin_ws/devel/include;/home/user/catkin_ws/src/hokuyo_node/include" != "" else []
PROJECT_CA... | [
"horiojapan2017@gmail.com"
] | horiojapan2017@gmail.com |
4fa8d0b64882d101c46fc76024cc58d44c6c15db | 5d0f5c079132dd477810d0d39b4fc365a9670791 | /Tools/ServerAutoTester/protocols/CLHeartBeat_pb2.py | dc0f00cb7979439aacca402a439c335e3332ec38 | [] | no_license | JoeChen999/scut | 457563734e33873c9c8781b6aa63b1e96e09f03c | eaac6e8fcc10263f126bae473b0777f36d09022d | refs/heads/master | 2021-01-19T11:48:44.886011 | 2016-09-22T03:48:50 | 2016-09-22T03:48:50 | 68,881,856 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | true | 1,630 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: 1001_CLHeartBeat.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(i... | [
"chenbiao@elex-tech.com"
] | chenbiao@elex-tech.com |
6ec73f5f5b1094fb1c39ec1e25616a5f5a012826 | 4c63edb34dbc6e7d3a07da10f25f23469824d36c | /exses2/printwithoutnextln.py | 38f7a0a6a882d619d23b6d0651cbdac7feefe712 | [] | no_license | KKAiser97/trantrungkien-fundamentals-c4e26 | 59a3c22433dfec85a778a8fc231f429080a6abc3 | 0812ad0061e6ff1aeb7928dfc3464f7b7f2cb193 | refs/heads/master | 2020-04-19T16:12:49.364161 | 2019-03-17T09:47:59 | 2019-03-17T09:47:59 | 168,297,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | print("Hello,", end=" ")
print("my name is", end=" ")
print("B-max", end=" ") | [
"dragonkien17@gmail.com"
] | dragonkien17@gmail.com |
a7b403a88927d37debd20ab3b7b266166a6a0bec | 23633f61451aa00dc8adf2446340621d7c22e6da | /venv/bin/chardetect | d6d9b28e12be62b00ec77c458cadd6979796f4b7 | [] | no_license | Vishula/twitter-bot | 8ee2b82d4f67bec4e06a96cd67cc5e6ad6281d4b | 3b24d7ad63e56218ae255a32372ca9c0fb52740a | refs/heads/master | 2022-04-24T12:14:44.330146 | 2020-04-27T23:44:55 | 2020-04-27T23:44:55 | 259,480,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/Users/Vishula/Desktop/tweepy-bots/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vishula.gamaetige@my.jcu.edu.au"
] | vishula.gamaetige@my.jcu.edu.au | |
7eaebce784acf19905cbf7c16b1af0eb28636a84 | bb3da11cc4b4fb442ab0bebaad38fd6cc10d83e0 | /Day_11_Problem_H-Index.py | 2ac4f5c77067642bac25baa5b70af1ccf98000fa | [] | no_license | Harsha4517/Leetcode_August_challenge | 772e05553c683d76ec740bf9bc133fa4e489d752 | eaa7c22f1fdaa979694cfba48292dfcaa0c60b34 | refs/heads/master | 2022-12-01T11:43:42.309452 | 2020-08-19T16:42:10 | 2020-08-19T16:42:10 | 284,933,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | class Solution:
def hIndex(self, citations: List[int]) -> int:
citations.sort()
r=len(citations)
for i in citations:
if r<=i:
return r
r-=1
return 0
| [
"noreply@github.com"
] | Harsha4517.noreply@github.com |
7b18838931145b1988e35860e46e2a8cade9689f | 7748e6279f48de7aceb18057e8faede9c272ce58 | /0x03-python-data_structures/8-multiple_returns.py | 7145f64e85ada5618383e003e99d7fae161107f6 | [] | no_license | pichu185/holbertonschool-higher_level_programming | 3eb2cfb692e7e405210fa69772b53a1bba7f7b07 | 1e70a39d39ad6b02ff1169a957a0459d7c42f9fc | refs/heads/main | 2023-07-31T13:22:22.241319 | 2021-09-22T22:07:50 | 2021-09-22T22:07:50 | 361,893,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | #!/usr/bin/python3
def multiple_returns(sentence):
if sentence == "":
return (0, None)
return (len(sentence), sentence[0])
| [
"pichu_otegui@hotmail.com"
] | pichu_otegui@hotmail.com |
5f0073cc2c699ab320785b7b4f05018258e7458e | f40110c2e0d4f2653017a3c5d4cd959cda0b543f | /tsai/data/unwindowed.py | 5d7c8c5da0e656140bb4784fb61b11a7a7f9b92e | [
"Apache-2.0"
] | permissive | jingmouren/timeseriesAI | 161ea09cc601cac6c61fc6d86696517215cd3ff6 | df8eb53c22701e633b796f5f61b5197d6a2a0872 | refs/heads/master | 2022-06-18T13:41:28.735669 | 2022-05-29T06:54:31 | 2022-05-29T06:54:31 | 212,359,225 | 0 | 0 | null | 2019-10-02T14:14:58 | 2019-10-02T14:14:57 | null | UTF-8 | Python | false | false | 3,382 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/014_data.unwindowed.ipynb (unless otherwise specified).
__all__ = ['TSUnwindowedDataset', 'TSUnwindowedDatasets']
# Cell
from ..imports import *
from ..utils import *
from .validation import *
from .core import *
# Cell
class TSUnwindowedDataset():
_types = TSTenso... | [
"“oguiza@gmail.com”"
] | “oguiza@gmail.com” |
cd5a0f8fe81207a66be3012c91827b4cacbf97bb | 1cd10945363de8c3c555fd002ee16bf078b3a4dc | /todobackend/todoapp/views.py | c66ce3f50bb0a5fc4e0decd0a586447a8ac89601 | [] | no_license | windlessStorm/todo-app | 63bcde89f123cf14fb12725a108b700ed4840f47 | 0e26a158437460c72bc7b078bd2f6f7def70a03c | refs/heads/master | 2022-12-24T02:39:45.500683 | 2018-10-25T16:17:51 | 2018-10-25T16:17:51 | 153,991,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | # using tastypie | [
"vikrant.biswas@gmail.com"
] | vikrant.biswas@gmail.com |
d104f81110379bd99dfed54230e5d9a2199b294e | ae544c4e0033e96a8d7cab802804f53f479a2ca6 | /Lecture_9-10/model_playground/main/admin.py | 005944d94a2f670d5c82691ec924a1ae772a71b6 | [] | no_license | jatinkatyal13/Python-Basics-Aug-2018 | e7c523ce23e7f9f5d7a823670509f5c160004901 | 6a224d21c4a49874ee844488b878b0e06a394532 | refs/heads/master | 2021-06-03T00:04:16.264794 | 2018-10-06T07:29:35 | 2018-10-06T07:29:35 | 146,196,887 | 6 | 11 | null | 2018-10-02T13:05:26 | 2018-08-26T16:24:06 | Jupyter Notebook | UTF-8 | Python | false | false | 193 | py | from django.contrib import admin
from main import models
# Register your models here.
admin.site.register(models.Student)
admin.site.register(models.Marks)
admin.site.register(models.Branch) | [
"jatin.katyal13@gmail.com"
] | jatin.katyal13@gmail.com |
6b281f7775ecf07282769814943ba415a7720747 | 9b2385171894da51bb4fd29fa3938d33ce15beb3 | /flask/project1/app.py | 685a13dadfad032cad0507e15a652f0102c76054 | [] | no_license | ArjunPadaliya/COMP840-Machine-Learning | 57a4a686ab8fbc0f76e7f9c6b099042fbd0a00e5 | 32d77e0944f27c0c458fb5328f563c1e6645e7c9 | refs/heads/master | 2020-03-27T23:03:32.616228 | 2018-11-08T21:25:50 | 2018-11-08T21:25:50 | 147,285,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from flask import Flask, request, render_template
app = Flask(__name__)
@app.route("/")
def hello():
return render_template('echo.html')
@app.route("/echo", methods=['POST'])
def echo():
return render_template('echo.html', text=request.form['text'])
if __name__ == "__main__":
app.run(debug=... | [
"arjunpadaliya@DESKTOP-DA4KHRT.localdomain"
] | arjunpadaliya@DESKTOP-DA4KHRT.localdomain |
3ee8e2adcf9f76f16ab706f3cf5d0974060e6e36 | 5ea9589b899ff843e548f317460f1574786a303d | /bi_lstm_crf/app/train.py | 5a26f07358703634beedb6e066deb5ce05d0f203 | [] | no_license | DarkPr0digy/Conditonal-Random-Fields-For-Morphological-Segmentation | 962f28e0cbd6777c0fdd8b9ec22f01d3fc0675fc | 8b31a3126579a9999c193b25428cd0a3dc714f29 | refs/heads/master | 2023-04-04T05:19:22.856013 | 2021-04-17T16:17:11 | 2021-04-17T16:17:11 | 284,056,945 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,249 | py | from os import mkdir
import numpy as np
import pandas as pd
import torch.optim as optim
from torch.utils.data import TensorDataset, DataLoader
from tqdm import tqdm
from bi_lstm_crf.app.preprocessing import *
from bi_lstm_crf.app.utils import *
def __eval_model(model, device, dataloader, desc):
model.eval()
... | [
"DarkPr0digy@users.noreply.github.com"
] | DarkPr0digy@users.noreply.github.com |
00a5456629eade115c10504c5c51ee715246da94 | 78efa54b2b253f99ea7e073f783e6121c20cdb52 | /Codechef/Make a Permutation.py | 0d93d423602cd522191dfdbd1c22c35da99cf806 | [] | no_license | NishchaySharma/Competitve-Programming | 32a93581ab17f05d20129471f7450f34ec68cc53 | 1ec44324d64c116098eb0beb74baac7f1c3395bb | refs/heads/master | 2020-04-08T04:02:46.599398 | 2020-01-01T15:51:39 | 2020-01-01T15:51:39 | 159,000,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | t=int(input())
for _ in range(t):
n=int(input())
a=list(map(int,input().split()))
s=list(set(a))
cnt=len(a)-len(s)
for i in s:
if i>n:
cnt+=1
print(cnt)
| [
"noreply@github.com"
] | NishchaySharma.noreply@github.com |
95c23c7e8223d508534b84b542974fe593930fcf | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2581/58585/318647.py | a775edb61e5b740e8766d7ab194e117bcb0c8eb4 | [] | 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 | 268 | py | a=int(input())
b=input()
if a==2 and b=='1,1':
print('False')
elif a==1 and b=='2,0':
print('False')
elif a==2 and b=='1,0':
print('True')
elif a==1 and b=='2,2':
print('False')
elif a==1 and b=='1,0':
print('False')
else:
print(a)
print(b) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
06639ce4d5c194b1663a7ed119fa779a310b4efd | ef8f61459130e4864779b45bb4bb8d61ff793458 | /BinarySearchLastTarget.py | a0968ec0fcc8a95f3939b3e591be7d8f6eebf6b3 | [] | no_license | invokerkael918/BinarySearch | 64a38c88a20da679f7466fb122f3d57c9f876d6e | 8f303f013193cb5a09c4263562839e92c8915ccc | refs/heads/master | 2020-08-09T16:25:18.325564 | 2020-01-21T03:23:59 | 2020-01-21T03:23:59 | 214,123,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | class Solution:
# @param {int[]} A an integer array sorted in ascending order
# @param {int} target an integer
# @return {int} an integer
def lastPosition(self, nums, target):
if not nums:
return -1
start, end = 0, len(nums) - 1
while start + 1 < end:
m... | [
"sam.cao918@gmail.com"
] | sam.cao918@gmail.com |
f4b60b1c6d8f00273517672a8ab1d2cab1416d77 | 442927aa09e6d9b0eded769a61944c87008ad8a2 | /rds_config.py | 2c77dc279c90b83628f1794deb100e279dec4f9c | [
"Apache-2.0"
] | permissive | AldebaranSouza/autorizador-debito-cartao | d28e27857da2cd0f940096fc7cb9a5fa0e140510 | ccef14eacd58f7f0d352726808013769865543fe | refs/heads/main | 2023-01-24T02:39:21.399682 | 2020-12-15T09:06:01 | 2020-12-15T09:06:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | import os
db_host = os.environ['RDS_ENDPOINT']
db_username = 'autorizador'
db_password = 'autorizador'
db_name = 'autorizador'
| [
"evandro@evandropires.com.br"
] | evandro@evandropires.com.br |
4b2b21f1afc3615ff25275755ccd49076db6a53c | b05d73a48ac0289eddd673f956c50c00d26faaf5 | /src/kugou/__init__.py | 11ffa566e6b57b33ae6e0317f97fc3c8d4ca86ea | [] | no_license | JUNEAPTX/Reptile_kugou | 60210b93a9b5b1998cbc79e565319da28c3db796 | f2d22d20a5b8c0d81f0edc8c18b2494e244cf882 | refs/heads/master | 2020-07-27T23:00:48.171354 | 2019-09-18T07:00:22 | 2019-09-18T07:00:22 | 209,239,211 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | import requests
from bs4 import BeautifulSoup
import time
headers ={
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36 QIHU 360EE'
}
def get_info(url):
wb_data = requests.get(url,headers = headers)
soup = BeautifulSoup... | [
"976123690@qq.com"
] | 976123690@qq.com |
76e7e5751a4f31fe956d9efd8d148850907a1efb | 937fb8880ab8d45b9f8761f4064e4be3bef1ccdc | /habit_tracker/settings.py | 6364962b6c2403aa632067534f1122b64265821e | [] | no_license | zyjswiadomielife/habits | 2d6df7d0014d8882383c6293dac9bcefed54209d | 639af25a5bee04da8b55a107e9f8bc397dc3a0b9 | refs/heads/master | 2023-05-27T02:39:21.437807 | 2020-07-07T14:39:58 | 2020-07-07T14:39:58 | 277,565,084 | 0 | 0 | null | 2021-06-10T23:08:04 | 2020-07-06T14:31:09 | Python | UTF-8 | Python | false | false | 3,479 | py | """
Django settings for habit_tracker project.
Generated by 'django-admin startproject' using Django 3.0.7.
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... | [
"maciejurmanski@gmail.com"
] | maciejurmanski@gmail.com |
3997a3c17986e696b21f385627d3ee4ee7e639a3 | 8b3ca44ee3d990233e74655b7131d616094f70c2 | /experiments/sparsity/drug_sensitivity_gdsc/gaussian_gaussian_volumeprior.py | ead1aea38e08f04599f394bcbe3113b61c9f5bb6 | [] | no_license | zshwuhan/BMF_Priors | 8b8c54271285a72d2085a56a9475c0756f375e67 | 6a600da1c41f1ccde2f2ba99298b40e68fb9910a | refs/heads/master | 2021-05-13T19:10:07.203215 | 2017-12-01T13:30:21 | 2017-12-01T13:30:21 | 116,883,181 | 1 | 0 | null | 2018-01-09T23:36:13 | 2018-01-09T23:36:13 | null | UTF-8 | Python | false | false | 1,396 | py | '''
Measure sparsity experiment on the GDSC drug sensitivity dataset, with
the Gaussian + Gaussian + Volume Prior model.
'''
project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/"
import sys
sys.path.append(project_location)
from BMF_Priors.code.models.bmf_gaussian_gaussian_volumeprior import BMF_Ga... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
f921ef84ef18f1e2cee7397d038613961a2c9258 | da421607c1b19ed660fcaee743fdb405aa4f4b7b | /route/general.py | 14a9f922face36d9b4f3a8bda346338f031755bc | [
"MIT"
] | permissive | chxv/myweb | be947d6f73c4b33a2e9713903857ef2deff1d8cd | ae69682d9cad1776604c2aa2804905e60b18090a | refs/heads/master | 2022-04-20T08:40:01.231113 | 2020-03-31T05:56:14 | 2020-03-31T05:56:14 | 146,612,834 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,342 | py | from flask import Blueprint, redirect, render_template, url_for, request, flash, g
from flask_login import current_user, login_required
mod = Blueprint('index', __name__) # 根目录
@mod.route('/')
def index():
return render_template('index.html')
@mod.route('/index')
def index2():
return redirect(url_for('ind... | [
"1149277941@qq.com"
] | 1149277941@qq.com |
8f5d2addd86aa90c831638a21a8d551a429fe95a | 95bad0e363fd299357666671d2008e5e12830ac9 | /model/__init__.py | 246f0b9081328a2c1a538c9966d08891eeb3d810 | [
"MIT"
] | permissive | flywind2/blend-mask | 7c0929d29f9ba50c18387d96baa776c82390bef3 | 3e1eaa6749ea8a09c9903d4654683090df01368f | refs/heads/main | 2023-04-08T17:18:30.412081 | 2021-04-20T06:52:02 | 2021-04-20T06:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | from .blend_mask import *
from .criterion import *
| [
"cbjg395@gmail.com"
] | cbjg395@gmail.com |
f8f82bec7431db41e4e71819c59e5aeac5d30794 | 30d4dee3f452ac3524cf8d9ab3261e8e4ad62606 | /loop_detection/test_linkedlist.py | 13bf80ef15429d11edb147c1a26f76764ed76014 | [] | no_license | pvanirudh23192/Challenges | 136fc27179c7e941342a9ed0a72d8996831e053f | 73b4dfa4a6cda84a8726e3fa5bbe3e71346cf416 | refs/heads/master | 2020-06-15T08:47:56.607464 | 2019-07-04T13:58:56 | 2019-07-04T13:58:56 | 195,252,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | def iscircular(linked_list):
"""
Determine wether the Linked List is circular or not
Args:
linked_list(obj): Linked List to be checked
Returns:
bool: Return True if the linked list is circular, return False otherwise
"""
# TODO: Write function to check if linked list is circular
... | [
"venkataanirudhpochiraju@Venkatas-MacBook-Pro.local"
] | venkataanirudhpochiraju@Venkatas-MacBook-Pro.local |
c978b9dfec34de8c806dc69eb913c40e76ae07b8 | a531771a4f2812898a5b54044d6d8c3ca4a249f6 | /Make-Sense-of-Census/code.py | 201996ccf612b417d5cdfadb3c040b849af30bb5 | [
"MIT"
] | permissive | manjunathvihaan5/ga-learner-dst-repo | 57f44e8dacc3bf4f242f94748f56852d22acf3f5 | 5ff5649f604eb89a7f4cab4b0315a3dadea2ba95 | refs/heads/main | 2023-08-25T07:01:40.920224 | 2021-10-19T20:25:05 | 2021-10-19T20:25:05 | 355,458,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | # --------------
# Importing header files
import numpy as np
import warnings
warnings.filterwarnings('ignore')
#New record
new_record=[[50, 9, 4, 1, 0, 0, 40, 0]]
#Reading file
data = np.genfromtxt(path, delimiter=",", skip_header=1)
#Code starts here
census= np.concatenate((data,new_record),ax... | [
"79388801+manjunathvihaan5@users.noreply.github.com"
] | 79388801+manjunathvihaan5@users.noreply.github.com |
95f5369cf13a4cc86db0d5c04bb83509514c7992 | 737c9fe51d6b369ef7951ae63c89e3fae5a5fdc1 | /sublimious.py | 75b0d16326ec46f0b1f520c9f241b78078a6b545 | [] | no_license | gitter-badger/sublimious | 8870161eca4a87d774ce7946f4009608f9c5ac26 | af3934663637de934093d30584b206166e31cda0 | refs/heads/master | 2021-01-18T07:36:20.434821 | 2015-09-18T03:53:38 | 2015-09-18T03:53:38 | 42,700,918 | 0 | 0 | null | 2015-09-18T05:10:47 | 2015-09-18T05:10:46 | null | UTF-8 | Python | false | false | 3,443 | py | import sys
import os
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
import sublime
import json
from .lib.io import write_sublimious_file
from .lib.collector import Collector
def plugin_loaded():
current_path = os.path.dirname(os.path.realpath(__file__))
sublime_dir = os.path.dirname(sublime.pa... | [
"me@dave.cx"
] | me@dave.cx |
a1d8afbd254a100e9cada4b2b37a471d5d076aae | 73726c82254ba59ddb7f85ec7d2e7d53f48e7061 | /pivoteer/writer/search.py | 01fec902af2fca8782834ed1137ad2d95c99d689 | [
"MIT"
] | permissive | brewst001/RAPID | bd65aeb22d6932582c3b67a014bdc2d1a5615716 | f7aa702be1136d5d51db1b9bb2f11729216c6445 | refs/heads/master | 2021-04-04T07:51:47.961931 | 2021-01-01T01:23:31 | 2021-01-01T01:23:31 | 248,439,142 | 0 | 0 | MIT | 2020-03-19T07:35:23 | 2020-03-19T07:35:23 | null | UTF-8 | Python | false | false | 1,110 | py | """
Classes and functions for writing Search Records.
A Search Record is an IndicatorRecord with a record type of "SR."
"""
from core.google import SearchResult
from pivoteer.writer.core import CsvWriter
class SearchCsvWriter(CsvWriter):
"""
A CsvWriter for IndicatorRecord objects with a record type of "SR" ... | [
"choman@eitccorp.com"
] | choman@eitccorp.com |
11196eb3c3c119871e932d3d88c4e57141ead2de | 9b004e9978a8c4579fb4ebec3d6e50acd272cd14 | /utils.py | 0b9175a7bc58b61ef9cd79d6df0ce7cf9b5f6d1d | [
"MIT"
] | permissive | TwelveYC/Continuous-Time-Network-Modeling | c8184272d82bbbf95aa13abc590f0563efeccbe6 | 72a9b858367a20c0a0b6b4a10050f3e33b034949 | refs/heads/master | 2022-08-04T11:35:57.181342 | 2020-05-19T08:48:28 | 2020-05-19T08:48:28 | 264,342,383 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | time_window = [1085980961, 1086000000]
def network_filter(infos):
if time_window[0] >= time_window[1]:
time_window[0], time_window[1] = time_window[1], time_window[0]
infos_length = infos.shape[0]
for index in range(infos_length):
current_value = infos[index][-1]
try:
... | [
"18039329128@163.com"
] | 18039329128@163.com |
a350ed78ef7c78122fb66062ee6daeb65dcbd048 | 525f94d72b86eea43b9a85d6f2c0bdb99b23cb64 | /manage.py | f5fe93bbc1b606b07baf8e4284a6c87d634ce370 | [] | no_license | zmz/vnfdeploy | 19abbf5cbf5f0bce2d507daba1782596b4ac3f4e | 74e8fa2480aabdc6daac7a90c2cf4d27f2955328 | refs/heads/master | 2020-03-09T06:47:20.526451 | 2018-04-08T14:37:26 | 2018-04-08T14:37:26 | 128,648,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vnfdeploy.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that th... | [
"zhaimanzhao@example.com"
] | zhaimanzhao@example.com |
655fddc823928f91492aad610835384ab03e8aae | 37f98d27bf8555beae35dfd0de6fd8c311b7f4a1 | /Formulario/apps.py | ab4b462e5b71f769619a3e614d83b458f75ca09a | [] | no_license | XikoCat/LES | 952cd6e5bbad6ccb208f24bf39e430e47e100e98 | 5bb526c2bbfdcc504b67cfc2e0f46c00335691b2 | refs/heads/main | 2023-06-24T01:19:29.828182 | 2021-07-07T10:36:39 | 2021-07-07T10:36:39 | 360,229,255 | 0 | 7 | null | 2021-07-05T23:20:32 | 2021-04-21T16:03:11 | JavaScript | UTF-8 | Python | false | false | 158 | py | from django.apps import AppConfig
class FormularioConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Formulario'
| [
"guigasreis99@gmail.com"
] | guigasreis99@gmail.com |
278051ec6cbcf629f1cebf9e7ec8534cfb5c0706 | 03b9d9cf6393b67f473d5db5d8e3aff593c1578c | /tictactoe.py | 91c365dc98aa6bfad666da2f4b25969a83300798 | [] | no_license | pulkitagrawal34/tictactoe | d6b9d4984569bfdd17735e7ee78d81954930fcd3 | 80620b772e1a85b7496504abf6c98e44721da8bd | refs/heads/master | 2020-05-30T12:05:24.370192 | 2019-04-04T20:10:56 | 2019-04-04T20:10:56 | 189,723,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | symbol1 = str(input("Hi, Welcome to Tic Tac Toe, Player1 which symbol do you wish to choose X or O :")).upper()
symbol2= ""
if symbol1=="X" or symbol1=="O":
if symbol1 =="X":
symbol2 = "O"
else:
symbol2= "X"
values= [" "," "," "," "," "," "," "," "," "]
def print_grid():
... | [
"agrawal.pulkit34@gmail.com"
] | agrawal.pulkit34@gmail.com |
5a7d6605786fc5fcc99855f8443cc353f88d41e1 | d7cfe98faeb0fe1b4ce02d54d8bbedaca82764f7 | /0805_list2/0805hw.py | 9b81c5c1d7ad7827934492d71fde55202a2de6b8 | [] | no_license | Anseik/algorithm | 27cb5c8ec9692cf705a8cea1d60e079a7d78ef72 | 925404006b84178682206fbbb3b989dcf4c3dee9 | refs/heads/master | 2023-02-26T00:02:01.696624 | 2021-02-03T14:10:28 | 2021-02-03T14:10:28 | 301,753,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | import sys
sys.stdin = open('sum.txt')
T = 10
for tc in range(1, T+1):
tc = int(input())
arr = [list(map(int, input().split())) for _ in range(100)]
N = len(arr) # 행의 길이
M = len(arr[0]) # 열의 길이
max_num = 0 # 최대 값을 비교하기 위한 변수 선언
total_dia1 = 0
total_dia2 = 0
#가로
for row in range(... | [
"kma9271@naver.com"
] | kma9271@naver.com |
3aee7e0ff5c37853dae067588888023b40a8e4a7 | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/additional_element.py | 72953cad961237f92dd486be93a95629a91844ba | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 898 | py | from __future__ import annotations
from dataclasses import dataclass, field
__NAMESPACE__ = "http://www.travelport.com/schema/util_v52_0"
@dataclass
class AdditionalElement:
"""
To add or update reference data master records.
Parameters
----------
name
Please provide other column names. ... | [
"chris@komposta.net"
] | chris@komposta.net |
15d4f3165a9bed215e27830574c790cbb0a85adf | ebe5a2fad13f8675c19aad889a51d6d149f3ba9a | /utils/dataloaders/data_loader_train_det.py | be61c4dfdfffbcecb8c716bfdbbecaa0f7cd6c23 | [
"MIT"
] | permissive | bentocg/seebirds | ca8244cf8daa438411f5d8651e76584031dcd274 | 8d606ecf5e8568397e54d453846810504c64330d | refs/heads/master | 2020-09-10T23:41:29.935948 | 2019-11-15T07:30:21 | 2019-11-15T07:30:21 | 221,868,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,381 | py | # modified from torchvision/datasets/folder.py
import torch.utils.data as data
from PIL import Image
import os
import os.path
import pandas as pd
import numpy as np
def has_file_allowed_extension(filename, extensions):
"""Checks if a file is an allowed extension.
Args:
filename (string): path to a ... | [
"bentocollares@gmail.com"
] | bentocollares@gmail.com |
1aa01a9696faa0f4c4ffb063e80ba12a999512ee | 80aec89e42bf21d8beb3b42bebd794a805f295eb | /Version Control Using Git/BootstrapCI.py | ca69fed12cdad8bea852547e99cdbae9c7790bbe | [] | no_license | hammadshaikhha/Tools-and-Documents-for-Researchers | 2b8c946455fdeefb9a517317ab7f95b6775397b6 | 0fa0d004a01148529db83c9998a1038bad325d65 | refs/heads/master | 2020-05-01T07:46:01.463696 | 2019-11-22T23:55:03 | 2019-11-22T23:55:03 | 177,359,427 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,472 | py | '''
Purpose: Compare Classical vs Bootstrap confidence intervals when sample size
is small and population is right skewed.
'''
# Load packages
import numpy as np
import seaborn
from scipy import stats
import matplotlib.pyplot as plt
from random import choices
# Initialize parameters
shape_a = 1.5
shape_b = 5
alpha = ... | [
"hammy.shaikh@mail.utoronto.ca"
] | hammy.shaikh@mail.utoronto.ca |
5343cb1815652c455db8a17c89c33d74c34cfc61 | e5e4f644f3c5bd69adef71ddabfc0ad986755604 | /morningprayers_project/todo/migrations/0001_initial.py | 8dbc03dcf973d43ca62b214c3645cbb9308f2b4d | [] | no_license | shobberlyridge/morningprayers | f54ba7f35f690e0748a140d42c4dc1bdb10006f8 | f4b10b223cbae9a7c435394676c47c376d7fb644 | refs/heads/master | 2020-05-03T13:59:27.604006 | 2019-03-31T11:02:14 | 2019-03-31T11:02:14 | 178,665,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # Generated by Django 2.1.7 on 2019-03-31 10:33
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Item',
fields=[
('id', models.AutoField(aut... | [
"edward@albany.me.uk"
] | edward@albany.me.uk |
5f8a3085e4ae101fad5f30a62fcd92d3ab2fbada | ba331fd3ccedb9fa438ca371e333251fa6bce15b | /bttest.py | 01716cafa6bca92c1c5294c8db86e2f0f5b5e9a5 | [] | no_license | wei-coder/tree | b1b08eecfe26b86da3db13144eabc0f8fccfa402 | 06e4e4b1f2395f9e2c0253acaf2b0b62c8c11163 | refs/heads/master | 2021-10-27T13:41:07.195377 | 2019-04-17T12:10:02 | 2019-04-17T12:10:02 | 113,540,319 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | #!/usr/local/bin/python3.8
# encoding: utf-8
import pexpect
import sys
import random
import time
import os
q_order = 'q'
p_order = 'p'
d_order = 'd'
i_order = 'i'
common = [".*quit]:", pexpect.EOF, pexpect.TIMEOUT]
add = [".*insert:", pexpect.EOF, pexpect.TIMEOUT]
remove = [".*delete:", pexpect.EOF, pexpect.TIMEOUT]... | [
"mazhiwei@didichuxing.com"
] | mazhiwei@didichuxing.com |
e9f47196e5378c2e19942da38c4cbf8c59c79085 | 669c206d30ea65a059c1e87876159a9b3c19458e | /Part 2 - Regression/Section 4 - Simple Linear Regression/simple_linear_regression.py | 27853618c33f4288170a7e1b5e5747a95a1c4e70 | [] | no_license | AtmiyaVaghela/udemy-machinelearning | 798e4ad35b368830c825a30dbc6af581efd4dd22 | f9e65a6f6263927d3e909b544e53b5e694d52510 | refs/heads/master | 2020-03-28T20:44:05.187517 | 2018-12-21T11:35:15 | 2018-12-21T11:35:15 | 149,096,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,441 | py | # Simple Linear Regression
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Salary_Data.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 1].values
# Splitting the dataset into the Training set and Test set
from sk... | [
"mailtoatmiya@gmail.com"
] | mailtoatmiya@gmail.com |
f870175d0e929eb6eecad68d33abcfe80ce9b210 | 258de533d72a25a454259c58950eed5ba8cbaf86 | /game.py | a891aaee71eca0e0264bdfad0dae8016d3809b1e | [] | no_license | leonardopiresousa/Game.Python | 734173dc0b8b123efd004c4ad22eba90eda6feb5 | a23894850fe4b2eac9838bba0b4bf9d43f4b8959 | refs/heads/master | 2023-06-01T21:37:14.616863 | 2021-06-15T00:32:19 | 2021-06-15T00:32:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | from models.calcular import Calcular
def main() -> None:
pontos: int = 0
jogar(pontos)
def jogar(pontos: int) -> None:
dificuldade: int = int(input('Informe o nível de dificuldade desejado [1, 2, 3, 4]: '))
calc: Calcular = Calcular(dificuldade)
print('Informe o resultado para a seguinte opera... | [
"leo17sn@gmail.com"
] | leo17sn@gmail.com |
ed6eabdc094e547631ddb4cc5e3a10d4b7a37158 | 07c61596c1fba2e2a7034fe5af9707794ea2e2c1 | /Kattis/addingwords.py3 | 8018221692c99ffee9041938edba3de0df57e4b2 | [] | no_license | H-Shen/Collection_of_my_coding_practice | 2fcb2f8fef9451ad4a3a9c063bbf6a34ea5966b4 | 6415552d38a756c9c89de0c774799654c73073a6 | refs/heads/master | 2023-08-24T21:19:08.886667 | 2023-08-22T03:47:39 | 2023-08-22T03:47:39 | 180,731,825 | 8 | 1 | null | 2021-08-13T18:25:25 | 2019-04-11T06:48:09 | C++ | UTF-8 | Python | false | false | 1,285 | py3 | # -*- coding: utf-8 -*-
# https://open.kattis.com/problems/addingwords
#
variableTable = dict()
try:
while True:
s = input().split()
if s[0] == 'clear':
variableTable.clear()
elif s[0] == 'def':
variableTable[s[1]] = int(s[2])
else:
exp... | [
"haohu.shen@ucalgary.ca"
] | haohu.shen@ucalgary.ca |
fcba717859670bfbb4c11b5323f0f8fe247c0b43 | 387bd1c179e9f0ce5ed626d408d78f95c1c84704 | /deltapv/spline.py | adc2fa87635d8780b24a3ed08bf66b03a59d55df | [
"MIT"
] | permissive | WenchenLi/deltapv | bf401d71a145be441fad5d17839a8b1a7e41241d | ffe1f9d46818f33fe51479fc00dc3bf826c6cf64 | refs/heads/master | 2023-07-01T05:28:40.986059 | 2021-07-28T15:20:00 | 2021-07-28T15:20:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | from jax import numpy as jnp, grad, vmap, jit
from functools import partial
import matplotlib.pyplot as plt
def quadratic(x, coef):
a, b, c = coef
y = a * x**2 + b * x + c
return y
def qspline(x, y):
n = x.size
M = jnp.zeros((3 * (n - 1), 3 * (n - 1)))
z = jnp.zeros(3 * (n - 1))
M = ... | [
"sean.mann.hk@gmail.com"
] | sean.mann.hk@gmail.com |
398bf5ce1b274b17e833f77259595b3afe67ee9a | 2d5cccc0d41a81b505c8c3b18e09c6eb3dd30018 | /battle_simulator/units/unit.py | b496e7513a175b0cb5c6678847d622b9fc53c3c1 | [] | no_license | NedelkoA/light-it | 5e4c55024f2a2eec48400610c6b4f28ddbbbeb42 | 12499b7bde4ca665e5ad6bed14a96ace39aa8fc8 | refs/heads/master | 2020-03-14T11:49:37.262999 | 2018-06-01T14:02:13 | 2018-06-01T14:02:13 | 131,597,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from abc import ABCMeta, abstractmethod
class Unit(metaclass=ABCMeta):
@abstractmethod
def attack(self, target, clock):
pass
@abstractmethod
def take_damage(self, dmg):
pass
@property
@abstractmethod
def alive(self):
pass
@property
@abstractmethod
def... | [
"nedartem@mail.ru"
] | nedartem@mail.ru |
363e2952b9826010aa3228020f24e7c391f24110 | e4e93391fd4792109eeee83a2e022f694577f545 | /clean2.py | 5c943d3f5f6966561c61fc99633ef3a3691b1083 | [] | no_license | madinabah2016/DataCleaning | 113022dd2f705ffcdf0f96890670f19a2727ab5f | 7bd6f34996812c23e6d8b79ee3ae4eb0caf965f7 | refs/heads/master | 2022-12-19T01:56:32.222649 | 2020-09-24T08:28:23 | 2020-09-24T08:28:23 | 294,628,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,146 | py | #!/usr/bin/env python3
import pandas as pd
from pandas import ExcelWriter
from pandas import ExcelFile
import math
def update_job_function(df):
list = ['Artist/performer','Consultant','Designer','Engineer','Financial analyst or advisor','Manager or administrator','Military service','Paralegal or legal aide', 'Po... | [
"bahmadina19@gmail.com"
] | bahmadina19@gmail.com |
7e577ecfa6bbf25dc171e66407f494492d5c7c76 | f0fe412430e15777ccde263810f058789500b46e | /dl/experiments/exp_def.py | debac5842044eb8a943d5e292dbd184119f1a7af | [
"MIT"
] | permissive | so-hyeun/BRET | 0230be498afd847e73f851348fcc403a326e5ff0 | cd59b02991944d5418a70b1c4c42e150eb6b1cca | refs/heads/master | 2023-02-20T05:00:58.411131 | 2021-01-15T12:48:08 | 2021-01-15T12:48:08 | 293,409,008 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,152 | py | # coding=utf-8
# Copyright (c) Microsoft. All rights reserved.
import yaml
from data_utils.vocab import Vocabulary
from data_utils.task_def import TaskType, DataFormat, EncoderModelType
from data_utils.metrics import Metric
from mt_dnn.loss import LossCriterion
class TaskDef(dict):
def __init__(self, label_vocab, ... | [
"s3267s@naver.com"
] | s3267s@naver.com |
9d7ed97c4e32b6d1240534ee386bd2f6ecc0a59f | dc5d9c301c62ce629fd26854599455bc946b0e34 | /generate_datasets.py | 0dadd88f175dbc2f8fd69ba2449a18c83fd20f91 | [] | no_license | quinlan-alexander/SNPFinderProject | 87572d70f1bb4a293a7396957812fd6ec92d6a40 | 4b91425bc4b8e44018d46f084cfad8772179a852 | refs/heads/master | 2021-04-06T10:06:57.156320 | 2018-03-28T02:11:47 | 2018-03-28T02:11:47 | 124,350,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | #!/usr/bin/env python3
# Name: Quinlan Alexander (qalexand)
# Group Members: None
import os
import arv
import pandas as pd
from find_snp import SNPFinder
from spinner import Spinner
########################################################################
# CommandLine
#################################################... | [
"quinlan.alexander@gmail.com"
] | quinlan.alexander@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.