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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90e145421e0bf3f625473a6875ab80784750697a | b4707b1d1d5e1bdd10123c6af6a13c86c1bc9d76 | /taxifares/taxifare/trainer/model.py | 4affc1d6ec5c68c557167fcb11a66dc04034f542 | [] | no_license | borzoj/ml-experiments | d43416b1635b698856e0a8c474a8b2cc3c7686ed | 1a1d2381366b8f4fcd7a3b91bcd0ad5992347da6 | refs/heads/master | 2020-04-22T22:04:42.121599 | 2019-04-03T18:15:39 | 2019-04-03T18:15:39 | 170,695,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,685 | py | #!/usr/bin/env python
# Copyright 2017 Google Inc. 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 require... | [
"michal@mercari.com"
] | michal@mercari.com |
c2fb7f0c7c179ee7608e4eb324287e1dba938c09 | a41d43b788458e54d90a547b2fe71cc40b68e42b | /manage.py | 8095a0f88bd37314871b8c3d47e8e42a0c55ed44 | [] | no_license | Bariss77/weight_02 | 9b74077e42e9f0ff03f0f29b0f5228f01f9cd5a6 | 915a3670d2ce4a422ac03cfa55098ee7c7e6bffd | refs/heads/master | 2020-04-15T02:14:13.675448 | 2019-01-06T13:01:44 | 2019-01-06T13:01:44 | 164,307,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'weight_02.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Ar... | [
"bariss@bk.ru"
] | bariss@bk.ru |
54e634a91b6785558588740c3c225ac1aa4c252c | bdf3c98e33c6bc9c8e0332043cc5a3a3f5e8ea42 | /src/mantis_model/catkin_generated/pkg.develspace.context.pc.py | c4db2075151b9a2c10d3a4400eb7142cca173946 | [] | no_license | jstestsuite/ros-test | c33e244794287e2665cace847a9faf1b596ddf92 | b0bb5b06c1c18b804c0f0a4e2deb4d88be894d1f | refs/heads/master | 2020-04-11T16:54:41.401198 | 2019-02-13T00:44:14 | 2019-02-13T00:44:14 | 161,938,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "mantis_model"
PROJECT_SPACE_DIR = "/h... | [
"jsteele171@gmail.com"
] | jsteele171@gmail.com |
7155ce2f0f61965636f0aa47b05584bfef6097ba | 82d4aac095fb4038563162c56fb1b55c1619467b | /biuropodrozy/users/tests/test_forms.py | 1bf33e1fc13111eff41545e977c6c2d14d7f2f5d | [
"MIT"
] | permissive | Kamilgolda/TripRecommendations | f133ec8de99b48b7f55ad90d72f3ee8ad12254ee | d3e5a10d80c405d5ac22f028be54c8198bc10410 | refs/heads/master | 2023-06-19T08:21:20.938540 | 2021-07-05T09:24:40 | 2021-07-05T09:24:40 | 380,500,741 | 0 | 3 | MIT | 2021-07-05T09:24:41 | 2021-06-26T12:50:45 | Python | UTF-8 | Python | false | false | 1,174 | py | """
Module for all Form Tests.
"""
import pytest
from django.utils.translation import ugettext_lazy as _
from biuropodrozy.users.forms import UserCreationForm
from biuropodrozy.users.models import User
pytestmark = pytest.mark.django_db
class TestUserCreationForm:
"""
Test class for all tests related to the... | [
"michaeldzindzio@gmail.com"
] | michaeldzindzio@gmail.com |
ba2edcab7e8d97ac362909c1db7622d50e309aac | 68b99720b6d3fb483c2c612beffdc23d36085bfb | /mlcube/mlcube/tests/test_mlcommons_mlcube_cli.py | 2e895c880c365dc50faa6430910eccf8293fd289 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | johnugeorge/mlcube | 50ef63264282df4c9bd9bf82afc471f7a8db6ca2 | 10bdfe859805aa8c868c5a4745259037e123e757 | refs/heads/master | 2023-08-22T22:31:53.892870 | 2021-09-24T19:48:07 | 2021-09-29T17:22:56 | 402,979,659 | 0 | 0 | NOASSERTION | 2021-09-29T17:16:39 | 2021-09-04T06:12:13 | Python | UTF-8 | Python | false | false | 624 | py | from click.testing import CliRunner
from mlcube.__main__ import cli
runner = CliRunner()
def test_mlcube():
response = runner.invoke(cli)
assert response.exit_code == 0
assert 'Usage: mlcube [OPTIONS] COMMAND [ARGS]...' in response.output
assert '--log-level, --log_level TEXT Log level to set, defau... | [
"noreply@github.com"
] | johnugeorge.noreply@github.com |
316f82be60d77481665da8b54b8a48decca9f131 | 8a07250aaa7aaa0756e1abc36579f6dcc8f2db1d | /solutions/72. Edit Distance.py | a2b8246ce394c3924d056cdeb752d1b8cdf741b9 | [] | no_license | atriekak/LeetCode | f92db0f5f2efb3ba97393b496374f7adc8b92545 | 8438f8a53fbc44d9d10a1e0b96f7ba78dc38eb88 | refs/heads/main | 2023-07-17T08:29:45.625297 | 2021-07-04T04:22:43 | 2021-07-04T04:22:43 | 324,005,296 | 0 | 0 | null | 2021-09-02T21:23:06 | 2020-12-23T21:29:59 | Python | UTF-8 | Python | false | false | 1,012 | py | class Solution:
def minDistance(self, word1: str, word2: str) -> int:
#Approach: Dynamic Programming
#Time Complexity: O(m * n)
#Space Complexity: O(m * n)
#where, m and n are the lengths of word2 and word1, respectively
m = len(word2)
n = len(word1)
... | [
"atriekak@gmail.com"
] | atriekak@gmail.com |
5fa21fadd207f6922a41ad01fad7d3295d852e5d | de358ba57518d65393c810da20c53e1c41494bff | /ALGOPYTHON/array2.py | 616580064c661e80fb9915007e10e09ad9a0cb0f | [] | no_license | avirupdandapat/ALGOPROJECT | 43eef94b13e38452cdc6a506b17b6fee581a07e1 | 55b60a0c6e51cae900e243505f6a4557ad4d7069 | refs/heads/master | 2022-12-29T13:02:54.655976 | 2020-10-18T12:23:57 | 2020-10-18T12:23:57 | 305,095,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | import subprocess
subprocess.run('dir', shell=True)
if __name__ == '__main__':
t = int(input())
for t_itr in range(t):
n = int(input())
q = list(map(int, input().rstrip().split()))
# arr = minimumBribes(a)
print(q)
| [
"avirup.dandapat@mindtree.com"
] | avirup.dandapat@mindtree.com |
0b7b8cc2114aca9d05671b6b132a1a909f63ca55 | f97a267b066f64177e382346e36cc06c25a3a6b1 | /src/quart/typing.py | a1be3a52dbb6ec3db1d23f2cf3688f19f97a56fe | [
"MIT"
] | permissive | p-unity-lineage/quart | a54ec9a1e6f61159c5c2688e24a2b54462bcd231 | 14efcd92f37bb4ef78d463d6d145f71c61665470 | refs/heads/master | 2023-03-31T23:56:56.881288 | 2021-04-11T09:28:28 | 2021-04-11T09:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,067 | py | from __future__ import annotations
import os
from datetime import datetime, timedelta
from types import TracebackType
from typing import (
Any,
AnyStr,
AsyncContextManager,
AsyncGenerator,
Awaitable,
Callable,
Dict,
Generator,
List,
Optional,
Tuple,
Type,
TYPE_CHECKI... | [
"philip.graham.jones@googlemail.com"
] | philip.graham.jones@googlemail.com |
4f8956babeaeca36bcee259d46ecb8ec16dbe067 | dc084a369e0f767bc5296739b24813470869522f | /main.py | ad9e07dfe136e778903fe0b117e3877fc9bb1631 | [] | no_license | JakeRoggenbuck/player_data_finder | 4a539ac7963f1f5025eda89c96c75e76a8268574 | 0ba87a5511810ac10d3f40049b21541b9a8be1bb | refs/heads/master | 2022-12-02T06:59:34.054775 | 2020-08-19T05:56:55 | 2020-08-19T05:56:55 | 288,645,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | from position_reader import PositionReader
from config import Config
from ftplib import FTP
import inquirer
import json
import os
class FTPConnection:
def __init__(self):
self.server = FTP()
def connect(self):
self.server.connect(Config.host, Config.port)
def login(self):
self.se... | [
"jakeroggenbuck2@gmail.com"
] | jakeroggenbuck2@gmail.com |
930903de90fc8bc73e32778e7f3480292f94f079 | 2c6466fa6ae9d3a4806f325a28ad6c8c7f490d04 | /exercicios/PythonExercicios_Desafio069.py | 3b0b9b6d7d542dea3725c88382dc19a554316544 | [] | no_license | samuelfranca7l/PythonExercises | 94750483a4c44e969ec254f5dd44e1c40a2fdc02 | 50571da236bb2eab04afe8d6e6246884bafc99ec | refs/heads/master | 2022-07-04T23:26:24.623353 | 2020-05-22T20:18:01 | 2020-05-22T20:18:01 | 266,181,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 809 | py | igenderM = iage18 = iFemaleAge20 = 0
opcao = ''
while True:
print('-' * 30)
print('CADASTRE UMA PESSOA')
print('-' * 30)
idade = int(input('Idade: '))
sexo = str(input('Sexo: [M/F]')).upper().strip()
while sexo not in 'MF':
sexo = str(input('Sexo: [M/F]')).upper().strip()
if sexo == ... | [
"samuelfranca.m@gmail.com"
] | samuelfranca.m@gmail.com |
11673e6ceffc1b11d4fa20923c84c7444b026e7c | f559b4d607cfdd3f192daed155ed8b0d263c71b2 | /env/bin/easy_install | 8340023df64d2030d9cc8e363b11ec8e070ff138 | [] | no_license | chris-baby/WbOnline | 6270015e9a7897b413a3fe97e2aca8a33f744995 | 91425f677d2e7c2a0ac9aeb8c1ee47d75f9b9321 | refs/heads/master | 2022-07-14T23:57:56.162760 | 2020-05-11T13:56:22 | 2020-05-11T13:56:22 | 263,056,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | #!/Users/tongtong/Desktop/root/bwOnline/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"918128078@qq.com"
] | 918128078@qq.com | |
5ae9fa71d6f0b5042f1b82d4235414e8ab85f2b8 | ec9a17a21a7c7de586093b9dc9cbae44e427e6cb | /Vulnerabilties/SSL Logjam Attack/ssl_logjam_attack.py | fd7ed07f3722246daa77c87953c1a5cd32c998e1 | [] | no_license | zflemingg1/Testing-For-SSL-Vulnerabilities-Misconfigurations | 6f7b1d5b69afef5f8a43045f6f09ef0b90f90ae1 | 49301587c1d68ae18cc469ede4d811819d3e10ea | refs/heads/master | 2020-03-18T23:40:30.951609 | 2018-05-31T09:39:46 | 2018-05-31T09:39:46 | 135,418,339 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,892 | py | #!../../Custom_Python/build/bin/python2
# Description: This script will test to see if the target site is vulnerable to sweet 32 attacks
# Author: Zach Fleming
# Date: 18/04/2018
# Import The Relevant Libraries
import socket # connecting to hosts
import ssl # ssl protocols
from termcolor import colored # needed for c... | [
"Zach.f@edgescan.com"
] | Zach.f@edgescan.com |
03e86919c07935ea23cbd2bc2035ff9e3aab5dfa | f43e9b5387d12fb844cf255a54c84615172fe37a | /courses/migrations/0010_auto_20200618_1157.py | 99856d87b88654f3675b27c931663a3768fcb6df | [] | no_license | Code-Institute-Submissions/ashleigh_baking_school | 09012899985ae898d84b847ccd2d50ba7f80813e | add4a404882e63952f3fced7ba22243765583584 | refs/heads/master | 2022-11-24T13:56:22.149495 | 2020-07-31T11:09:17 | 2020-07-31T11:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | # Generated by Django 3.0.7 on 2020-06-18 11:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('courses', '0009_auto_20200618_1154'),
]
operations = [
migrations.RenameField(
model_name='course',
old_name='datetime',
... | [
"sandoralai@gmail.com"
] | sandoralai@gmail.com |
f35bf08db192b2f12f1b4ff64bf4c6e9c9c0086e | bb6058b4850aac4c48a3c800b61606d868ffd9fa | /mysite/orders/migrations/0002_auto_20200601_1557.py | 1a29226dc6ff504e4171c5ad10da80fbd004cbf1 | [] | no_license | AlexanderSobolevskiy/project1 | e3354f0bc56bb113b199ef64a6deb429cb297a77 | 9a2af271aa6b8bc25e6fc97109ebc3029496dd2c | refs/heads/master | 2022-11-07T22:28:19.691327 | 2020-06-23T21:28:06 | 2020-06-23T21:28:06 | 273,778,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | # Generated by Django 3.0.5 on 2020-06-01 12:57
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='order',
name='customer_add... | [
"sobolevskiy.1@mail.ru"
] | sobolevskiy.1@mail.ru |
d80b410b5348e0c0627858a462910f433012546d | 53be3b2a18d4df2e675525a610f4e7dab8c0de6f | /myems-api/core/version.py | 0b884d96063823d791417aec31bff4eac4345132 | [
"MIT"
] | permissive | yxw027/myems | 16dc82fa26328e00adbba4e09301c4cf363ad28d | ea58d50c436feafb1a51627aa4d84caf8f3aee08 | refs/heads/master | 2023-09-03T17:57:18.728606 | 2021-11-04T14:13:42 | 2021-11-04T14:13:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | import falcon
import simplejson as json
class VersionItem:
@staticmethod
def __init__():
""""Initializes VersionItem"""
pass
@staticmethod
def on_options(req, resp, id_):
resp.status = falcon.HTTP_200
@staticmethod
def on_get(req, resp):
result = {"version": ... | [
"13621160019@163.com"
] | 13621160019@163.com |
5029d4ff82c752725820c976fe5935f269b09177 | 70137ac67ba2cd9970167b55fc5bbba7ce051950 | /叠加事件驱动策略/bert_base/train/train_helper.py | 36b0b8df0326bf02e18150c2e4339b6b98a99822 | [] | no_license | zhangfeng0812/quanta_competition | bbe0f73cbd51f9291f25515c260da7342987df7e | 3f56e6855db1638a1e7131670ea8660b63f85fc5 | refs/heads/master | 2020-09-16T16:19:05.067187 | 2019-11-25T00:06:24 | 2019-11-25T00:06:24 | 223,826,497 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,918 | py | # -*- coding: utf-8 -*-
"""
@Time : 2019/1/30 14:01
@File : train_helper.py
"""
import argparse
import os
__all__ = ['get_args_parser']
def get_args_parser():
__version__ = '0.1.0'
parser = argparse.ArgumentParser()
# windows下的路径表示
if os.name == 'nt':
bert_path = r'E:\nlp_data\chine... | [
"zhfeng012@gamil.com"
] | zhfeng012@gamil.com |
d6e08e3dc028e3cb4f87c36d69bdb3c0a4b371a7 | 282e756222c6db88589ae7bc9fb6c7bb010d7516 | /src/project2/lab2.py | 4b6eb36d660bf37f8d02aba4c0020a4edd78f1cc | [] | no_license | luyixiao95/CS5001 | 0497a4904afb7e24900216d3846f145e3167421a | f7f50dda5b3f217a2c68eb463befc44da85dd222 | refs/heads/master | 2023-06-25T20:47:27.826215 | 2021-07-20T03:22:19 | 2021-07-20T03:22:19 | 387,658,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | #luyi xiao
#CS 5001 2021 Spring
#Lab 2 code file
import turtle as t, random
#move turtle to location(x,y)
def goto(x,y):
t.up()
t.goto(x,y)
t.down()
#draw a rectangle by looping
def rectangle(x , y , scale):
#starting point is (x,y)
goto(x,y)
#looping for a rectangle with certain scales and specific... | [
"xiaoluyi95@gmail.com"
] | xiaoluyi95@gmail.com |
12f1dc25839f93fc337543a1efe4d02aee854533 | 24899d6a3f14e7c4459194dac503b3b461f405ce | /PythonPrograms/regularExpression/mobile.py | 1d4a51b9a114b403246014d98b2795e232bba451 | [] | no_license | joysjohney/Luminar_Python | 73cb09a0211db39f808a70f9252866461267b30d | 4774fc7c492cae16b89e74006c9164d76160eedb | refs/heads/master | 2023-01-07T02:57:42.419864 | 2020-11-08T06:41:01 | 2020-11-08T06:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | # Validate mobile number
from re import *
rule="/d{10}"
mobno=input("Enter mobile number : ")
matcher=fullmatch(rule,mobno)
if(matcher !=None):
print("Valid mobile no")
else:
print("Invalid mobile no!") | [
"44256029+joysjohny@users.noreply.github.com"
] | 44256029+joysjohny@users.noreply.github.com |
0e541e32d749a1302541ce19ccdf2b6c8d442a16 | bdc4ae3d691fcb50405235d963012d84ea8b8a06 | /src/b2r2b_youbot/message.py | d8d3c2a392182dba8f26573558c936ec091c3489 | [] | no_license | AndreaCensi/rosstream2boot | 53552a256979f072c7bf4abb9bc01eed3c960e97 | 7cce8cf270b67e8c9e5abe6cdfed9d5969a82c00 | refs/heads/master | 2021-01-01T19:11:04.669798 | 2013-07-13T14:11:28 | 2013-07-13T14:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,658 | py | from b2r2b_youbot import get_JointVelocities, get_JointValue, get_JointPositions
__all__ = ['get_joint_position_msg', 'get_joint_velocity_msg']
def get_joint_velocity_msg(array, timeStamp=None):
'''
:param array: float array with values to the joints
'''
JointVelocities = get_JointVelocities... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
ec7f35863a5fdd22a268819767e01e4dac4a06b1 | b44d094093d8852839eb715fafa7a3d2f41da582 | /wr_pintar_master/wizard/master_custom_import.py | 110451813ad0f8f3cdf3845dc776b3c657f06fbe | [] | no_license | sharibar/wr_pintar_recruitment | 4ab52a4185e9fb775f5275cd2c40f14c295efb15 | 24c1007c5fe90d08290f4c6ffdeec37d301c002c | refs/heads/master | 2020-04-18T23:00:40.026791 | 2019-01-28T06:00:23 | 2019-01-28T06:00:23 | 167,810,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,433 | py | # -*- coding: utf-8 -*-
from odoo import fields, models, api, _, sql_db
from odoo.tools import DEFAULT_SERVER_DATE_FORMAT
from odoo.exceptions import UserError
import tempfile
import base64
from datetime import datetime
import xlrd
from xlrd import open_workbook
import threading
class MasterCustomImport(models.Transi... | [
"syarifudin@portcities.net"
] | syarifudin@portcities.net |
c654a4bea3614b29572919712190529cf7f00581 | 36e499a94a355bb2e18468abb6182a3c328580ea | /new_python/wordSegment/fool/lexical.py | 509781011cb9f4d6e71d6a3f93268bad5c54ffda | [] | no_license | 1140831845/custkdxf_114code | 0fbe9213b2e015c50aa6e66b8949f90c8cf49ea5 | b7afe65af9e93609741981f0cc72b1eb7a6cd37d | refs/heads/master | 2020-04-03T10:18:56.629852 | 2018-10-30T13:40:57 | 2018-10-30T13:40:57 | 155,189,860 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py | #!/usr/bin/env python
# -*-coding:utf-8-*-
import sys
import os
import json
from .predictor import Predictor
from zipfile import ZipFile
OOV_STR = "<OOV>"
def _load_map_file(path, char_map_name, id_map_name):
with ZipFile(path) as myzip:
with myzip.open('all_map.json') as myfile:
content =... | [
"1440831845@qq.com"
] | 1440831845@qq.com |
b47a6d66fa27cdee16eb131e2432067dc963a979 | ef5f527476503657635243e3ec1f280877cedb26 | /Genie.py | 5f464da23226674e8ac64035a1579f291a3bfeb9 | [] | no_license | dcgmechanics/GenieVA | dd77ee454e695c1a50ab8c341f6764f00e7043d4 | 259512a3a987ba9c2ad347f01c90c5aac1a40529 | refs/heads/master | 2023-01-29T19:38:53.281655 | 2020-12-08T08:18:35 | 2020-12-08T08:18:35 | 288,934,818 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,687 | py | import os
import pyttsx3
print("Welcome To Genie Windows Assistant Version 0.1\n")
pyttsx3.speak("Welcome To Genie Windows Assistant Version 0.1")
print("Please Before Using This Program Open 'Read Me' Text File for Better Understanding Of Features of This Program.\n")
pyttsx3.speak("Please Before Using This P... | [
"noreply@github.com"
] | dcgmechanics.noreply@github.com |
75b71b1a3e7b2cc7b6f4ff915a2785ed4ba5b44e | bd1b126c0460e0df5a086000451642d198122939 | /projects/gmail/test.py | 3fadcc997c76a2170020a3f0918bea73d2722fbc | [] | no_license | anvesh001/page-object-model | bf749a6c19e7c43c111f7458974f8c531da6385d | 4e528b90b4a85db0173f0f66bca56905081029aa | refs/heads/master | 2020-05-21T07:08:45.614092 | 2019-05-10T08:41:14 | 2019-05-10T08:41:14 | 185,952,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | from selenium import webdriver
import time
import unittest
from projects.gmail.pages.login_page import LoginPage
from projects.gmail.pages.home_page import HomePage
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__),"..",'..'))
#print('test completed')
class test_login(unittest.TestCase):
@cla... | [
"anveshkumarnaidu402@gmail.com"
] | anveshkumarnaidu402@gmail.com |
eadaff38311d9b7fd22fb7f22162f2934b0a0a94 | 87bb2b9258c887e8fbcaca08d18e5d95ae96462d | /Codewars/Python/7kyu/7kyu_Largest pair in array.py | aec94dec63fcfa2b5e935b6ac65a4134e7f49ecf | [] | no_license | KonradMarzec1991/Codewars-LeetCode | a9e4d09f4271fecb3a7fc1ee436358ac1bbec5e4 | 442113532158f5a3ee7051a42e911afa5373bb5f | refs/heads/master | 2023-04-21T17:04:37.434876 | 2021-05-11T21:47:14 | 2021-05-11T21:47:14 | 166,555,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | def largest_pair_sum(numbers):
from heapq import nlargest
return sum(nlargest(2, numbers))
| [
"konrimarzec@gmail.com"
] | konrimarzec@gmail.com |
c60ebdb8493c520620b00a7500176196eafdd5a6 | 302ceac8466ef14d42d525170eb2f7719ec1a3d3 | /Introdução à programação com Python/aula08_contador_letras.py | 7140a0f24d5284154befc34beaddf01496b5ebe3 | [] | no_license | rgrtorres/cursos_python | 64eac8e88736a220bdd790dffd790f0a396c32a9 | 19addbbedca6e8c372e9c3c88d828606790f6820 | refs/heads/master | 2023-03-21T07:53:05.662439 | 2021-03-13T14:15:44 | 2021-03-13T14:15:44 | 346,204,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | def contar_letras(lista_palavra):
contador = []
for x in lista_palavra:
quantidade = len(x)
contador.append(quantidade)
return contador
def teste():
return 'teste'
if __name__ == '__main__':
lista = ['cachorro', 'gato']
print(contar_letras(lista)) | [
"rgrtorres@hotmail.com"
] | rgrtorres@hotmail.com |
112df351942fd6b1192e8e855ac9f1a4df780e1b | e710a2758e511239b4b37566ca78d9302ddbecc6 | /seventeenthPage/849_MaximizeDistancetoClosestPerson.py | 3896cfb7f3486289f8fde07918d240cc3c25470e | [] | no_license | jiangshshui/leetcode | 4d93fb5610446ca2d5ecfbe0312d4f3d74e50761 | 7aea885dfbb9bd157ce2c78b6e4e8af14afcb5b8 | refs/heads/master | 2021-03-27T18:59:51.110466 | 2018-11-07T06:20:45 | 2018-11-07T06:20:45 | 99,470,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | class Solution:
def maxDistToClosest(self, seats):
"""
:type seats: List[int]
:rtype: int
"""
seated=[]
for i,seat in enumerate(seats):
if seat!=0:
seated.append(i)
ans=0
ans=max([ans,seated[0]-0,len(seats)-1-seated[-1]])
... | [
"30767399+jiangshshui@users.noreply.github.com"
] | 30767399+jiangshshui@users.noreply.github.com |
1013785aa4623094ca872c97f462ebf477bb6274 | 0dfcb900d11918b85a3e1791983babd47a5080e2 | /notif_sender.py | e703821b51abba488277e9a7e23fe834f102a63c | [
"MIT"
] | permissive | redwanc12/DMV_APPOINTMENT_FINDER | 216207541f53eec36f8b92c51168764c5c216894 | 702142d26d5da63c30785941455c47cd6e524fdd | refs/heads/master | 2020-05-21T03:03:43.961592 | 2019-07-30T13:29:27 | 2019-07-30T13:29:27 | 185,891,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | """class to send notifications"""
import smtplib
import requests
from bs4 import BeautifulSoup
r = requests.get('http://127.0.0.1:8000/polls/open')
soup = BeautifulSoup(r.text, 'html.parser')
emails = soup.find_all('h1')
days = soup.find_all('p')
emailList = []
for each in range(len(emails)):
emailList.append({
... | [
"redwanc12@gmail.com"
] | redwanc12@gmail.com |
e2d70ea6765a4d2275d7fe4d41337de6d45d5449 | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/traits/ui/qt4/key_binding_editor.py | 12c440438d2c61dd566c494f787af54b63d61666 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 61 | py | # proxy module
from traitsui.qt4.key_binding_editor import *
| [
"ischnell@enthought.com"
] | ischnell@enthought.com |
5133a8fd1104ede5dd291548ccb3839973b70b67 | f6cb84f876f77a995b6fa1b37002d17fc7d71072 | /src/preprocessing.py | a01d670b9fca92e68c89aae45fbb6a9f7963d6a9 | [
"CC0-1.0"
] | permissive | roshande/ml-framework-template | d86870085acd7c104cfa3e0afc9979779140a740 | 154605edd0ed6459a4704d557a93e2b49da65018 | refs/heads/main | 2023-05-31T03:17:40.439194 | 2021-07-11T17:58:10 | 2021-07-11T17:58:10 | 382,545,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | from scipy.stats import mode
import numpy as np
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.utils.validation import check_is_fitted
__all__ = ['Numeric', 'FillNa']
class Numeric(BaseEstimator, TransformerMixin):
def __init__(self, errors="coerce", fillna_value=0, dt... | [
"roshanhande116@gmail.com"
] | roshanhande116@gmail.com |
03f2846a44dbf317f88f46f0902e8caf702171da | 5abd1c1792314f61029cbd49cd3a354350a364ad | /send_client.py | 94370117e9c703f40db1314a98b5060199846dc0 | [] | no_license | pvsune/simple-xmpp-chat | 051d8ddb4f188609b2e8c43ea25a9dabb43fd859 | 1b97d2bf441eba9ef604629c89f7ac0a9b812d19 | refs/heads/master | 2020-12-02T18:14:49.564675 | 2017-07-13T10:48:48 | 2017-07-13T10:48:48 | 96,501,324 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,816 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import sys
import logging
import getpass
from optparse import OptionParser
import sleekxmpp
# P... | [
"phil@pez.ai"
] | phil@pez.ai |
7f37c3725142271c5a1ca88a17921c7f106016b4 | 3d7b52e6739825aef8eafde73cb18f9904a7e638 | /Day-22-Mixed/question2_median_stream.py | 27056074f1d5b77710081a8ba550ca1dd8cbc3ba | [] | no_license | jsourabh1/Striver-s_sheet_Solution | 7707dfb03b022735135abe526c321e0919d76856 | d296f8b3cba5a03c3c9573c8e316aa92185420fe | refs/heads/main | 2023-07-30T23:13:23.878000 | 2021-10-03T02:42:00 | 2021-10-03T02:42:00 | 402,102,262 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | class MedianFinder:
def __init__(self):
"""
initialize your data structure here.
"""
self.max_heap=[]
self.min_heap=[]
def addNum(self, num: int) -> None:
if len(self.max_heap)==len(self.min_heap):
heappush(self.min_heap,-heappushpop(self.ma... | [
"jsourabh861@gmail.com"
] | jsourabh861@gmail.com |
b1bfad68ea410fdf790ec776a13e25ffff1072e4 | d9ec3e1a75df988a4ec905436b9a8db1ebf3cb97 | /school/views.py | 30210af4aa751831b654addabe142e8702e08bea | [] | no_license | shivamrvgupta/JBEHS | 1a7339b42118e0355abb2b49515f443ec9658b27 | 06e2e84a56f6a880b107d4fb5f5946744f92d797 | refs/heads/master | 2022-12-15T21:53:21.081889 | 2020-09-14T14:21:30 | 2020-09-14T14:21:30 | 295,432,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,325 | py | from django.shortcuts import render, redirect, HttpResponseRedirect, get_object_or_404
from django.contrib import messages
from .forms import SchoolRegistration, SchoolUpdate
from .models import School
from django.contrib.auth.decorators import login_required
# Create your views here.
"""
School Operations
"""
@log... | [
"shivamgupta@Shivams-Mac-mini.local"
] | shivamgupta@Shivams-Mac-mini.local |
0b34ee5faf9aba369b362c1b0725e0011a94a098 | 7bf906c992b9c79179fa52f6ba975b5e0f3505dc | /TT/Cuts.py | 1080e69c599d6e71b0e4dee6a196d524b3624df4 | [] | no_license | skyriacoCMS/Analysis | 1fe04028deee1953232dc8bf8b24924d2f73d6d1 | a74775120ac2b127698f52ca876dc8f77c0ab6a1 | refs/heads/master | 2020-03-13T23:47:31.451352 | 2018-04-27T21:37:53 | 2018-04-27T21:37:53 | 131,335,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import os
import sys
i = sys.argv[1]
cmnd = 'root -b -q -l "CUTS.C('+i+',5,-1,-1,-1)"'
os.system('cp ../Templates/CUTS.C .')
os.system('cp ../Templates/xsecs.h .')
os.system(cmnd)
| [
"savvasphy@gmail.com"
] | savvasphy@gmail.com |
b54f081a9d6b7446d1e5993745d42b278ed93235 | d9bfc35e34659220c5695360a4282293ad2ac74a | /flask_demo/get_post_demo/venv/bin/python-config | 922fdf1460d00dec2a904253b0e13926a33a7269 | [] | no_license | Carrie999/practiceHtmlDemo | c9e387b18f8b6ad9736631f104332445175a3a2e | 3e59843e2a15233c9ad086f8aff4db83bdfd886f | refs/heads/master | 2023-02-20T04:25:20.518659 | 2018-08-25T08:51:38 | 2018-08-25T08:51:38 | 128,219,772 | 3 | 0 | null | 2023-02-15T17:52:52 | 2018-04-05T14:41:41 | Python | UTF-8 | Python | false | false | 2,357 | #!/Users/orion/Desktop/get_post_demo/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append('abiflags')
if sys.ve... | [
"pangyajing@ainirobot.com"
] | pangyajing@ainirobot.com | |
b043023374ed31f1daee522d606925932e11d97f | d50e9b2a52cb4a5519ee972de1384bffa4fcefe2 | /tp3/prueba.py | 267fb84b8231552b4f700310bf37a05e6543faa6 | [] | no_license | LisandroRobles/tps_dsp | b2e3724bb3b569de2d8d244b6dddf116796bbcae | b46423a9f5b78835305ad6acae8e62cf67d23659 | refs/heads/master | 2020-04-09T06:20:15.682176 | 2019-05-05T15:15:37 | 2019-05-05T15:15:37 | 160,106,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 7 10:00:20 2018
@author: lisandro
"""
#Paquetes
import numpy as np
import matplotlib.pyplot as plt
import scipy.signal as signal
import pdsmodulos.signal_generator as gen
import pdsmodulos.spectrum_analyzer as sa
#Testbench
def testbench():
... | [
"LisandroRobles1@gmail.com"
] | LisandroRobles1@gmail.com |
0b44bb79faf29315ec66647b0981dec1ae31298b | 1674905f0ced7f6fe9b3ca1a40855eca6c49416f | /SRC/sampler.py | fcc2b506556e7526c5e48fe95fffcab07016778f | [
"Apache-2.0"
] | permissive | cyrilgalitzine/SDE_inference | 304a5dd6ed93bc198f8fde70160ab869f65814de | e64e9c5cdf4c13bf3ba67071949c71b0a1b6d8fe | refs/heads/master | 2020-03-19T00:07:23.502582 | 2018-05-30T14:38:07 | 2018-05-30T14:38:07 | 135,454,563 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,722 | py | import numpy as np
from scipy.stats import norm
import pandas as pd
import pathlib
#Define an equation class
class sampler:
def __init__(self,name,param,param_infer,sd,output_freq):
self.name = name
self.param_new = param #has to be a numpy array
self.param_old = param
self.Ndim = param.size #Should always b... | [
"c.galitzine@neu.edu"
] | c.galitzine@neu.edu |
07008e999f02c35e6a8c414d9321c124e90b441c | 1127be36a03677a9bf7226c87c4f6aec0b5a4fd7 | /pocdb.py | df443d329c92b598262c214df108ab1d4563081d | [] | no_license | chriskcl/AngelSword | b44de0194502a6a3e3d38b7fd0f949747f697b63 | f2dc09ee41422ef07c43b64a0aba523378cb7667 | refs/heads/master | 2021-05-14T00:44:28.175262 | 2018-01-04T08:11:32 | 2018-01-04T08:11:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,189 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: 漏洞字典
referer: unknow
author: Lucifer
description: 引入main接口
'''
from cms.cmsmain import *
from system.systemmain import *
from industrial.industrialmain import *
from hardware.hardwaremain import *
from information.informationmain import *
class pocdb_pocs:
def... | [
"297954441@qq.com"
] | 297954441@qq.com |
379d72d48e0202729e8fdc829e1b3293850a6f72 | 1c829b9f786a544f4cd715072af49b05f2aca545 | /indicators/trend.py | a683722cca0b4137586f4cb5a4f98eeb7d2f7bf2 | [] | no_license | Colman/Trading | 05f5a32b85ee927151b6a1948e5cac61021c48ac | 71cd5da318d3c56b763605b91a456b3cfaacd479 | refs/heads/master | 2020-12-26T23:50:30.702411 | 2020-02-01T23:56:50 | 2020-02-01T23:56:50 | 237,694,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,909 | py | def getSMA(candles, period, index=4):
if len(candles) < period:
raise ValueError('Not enough candles for the specified period')
SMA = list()
for i in range(period - 1):
SMA.append(None)
for i in range(period - 1, len(candles)):
total = 0
for j in range(period - 1, -1, -1):
total += candles[i... | [
"noreply@github.com"
] | Colman.noreply@github.com |
cd2174a9a924b6f860c2f48bc90d09a586d060ec | 395344ba5e342ba441eb1f157848bd91ee3d4bf6 | /stack_code.py | fbf12ac59cfb4f353ad325db703f885ed8d36556 | [] | no_license | i4seeu/my_learning_tools | b75588fec1d71ab00b7a307acbef055d0aacabe0 | 392ca66eba808ba8552c021d98e25a5137d97980 | refs/heads/master | 2021-03-25T14:18:31.469076 | 2020-03-16T19:47:43 | 2020-03-16T19:47:43 | 247,625,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | class Stack:
def __init__(self):
self.items = []
def isEmpty(self):
return self.items == []
def push(self, item):
self.items.append(item)
def pop(self):
return self.items.pop()
def peek(self):
return self.items[len(self.items) - 1]
def size(self):
... | [
"noordinmalango@gmail.com"
] | noordinmalango@gmail.com |
060e1ed423ff462c6643f90cb80ce36b0a84492e | af69291cc1c9000aff3ac754d8dcc053abc278bc | /old_versions/0.7.1/example.py | 7e97b467ca59815895092a2e48462c2bbf58c525 | [] | no_license | dcbmariano/BioSVD-GA | ae06e22a69770dfa19e9737c6a93e2133665ace4 | a8a1c11790a528387bfffeefa400ad08b47e3d55 | refs/heads/master | 2021-01-12T19:52:56.197803 | 2016-08-24T13:05:15 | 2016-08-24T13:05:15 | 44,193,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,012 | py | #!/usr/bin/python
# Program: biosvd.py
# Function: Implementa o metodo de svd para classificacao de proteinas
# Description: inclui: delaunay.py e sort.py - Por enquanto estamos limitado a 23 cores no plot assim so podemos ter 23 familas diferentes. Isso sera revisado(Por Thiago)
# Author: Thiago da Silva C... | [
"diogohenks@hotmail.com"
] | diogohenks@hotmail.com |
a82007d69c6f4e2df88bcdfd604ab7c5667cb165 | e581edf33f2d9c376f96e2c1658292e1af25809a | /docx_simple_service.py | 5cef8283f90f32e787ede5205a4400bf572dc312 | [] | no_license | Nissinko/AutoArticle | 0d9d2b6518e5d31a1337a8adceb3ab5339ec69bb | af6ef79453f133ac02206aae573095bd0e156a5d | refs/heads/master | 2020-03-27T15:26:21.045716 | 2018-10-18T07:18:42 | 2018-10-18T07:18:42 | 146,717,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,175 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# SimpleDocService
# python-doxに関する簡単なサービスを提供します。
# まぁ docxライブラリを理解するためのコードですね。
#
from docx import Document
from docx.shared import RGBColor
from docx.shared import Inches
from docx.shared import Pt
class SimpleDocxService:
def __init__(self):
self.docum... | [
"akiyama.takanori@unipro.co.jp"
] | akiyama.takanori@unipro.co.jp |
6e20ae8fccb33dc8bfa57f0dddb4a970d2d6e487 | 7cc1d37d8383ac16f8ac2bb5dec753d558f39e71 | /HastaAkriti/manage.py | b06580e5298af2f329141861ddc1fd0d8e5fbdfe | [] | no_license | internshipdeco/HastiaAkriti | 57e45f2cd5db217c6f6c41ca163a5705b200ed63 | ce5cca6a77e4d031d38c7bc3f3913d3ccb2ec439 | refs/heads/master | 2023-01-02T02:47:24.237434 | 2020-10-22T12:09:17 | 2020-10-22T12:09:17 | 306,059,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'HastaAkriti.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"kissna.yadav7@gmail.com"
] | kissna.yadav7@gmail.com |
58fffd1a4a3bc143d14f8ded6ee0c3af6f36b4a1 | 0c66d794765282400ba8f72c8f086d8a40fec16f | /Instruments/Blank/python/Blank.py | bb60cfa24b23d1af4a8cf9aefff64690e77b7346 | [] | no_license | collaborative-music-lab/NIME | 14940598d61c64d2c63db3380f0e48ad59515a06 | 38ffc312f41b11376a5409c3038cf8a59d790fb3 | refs/heads/master | 2023-05-26T10:42:10.931069 | 2023-05-08T19:24:57 | 2023-05-08T19:24:57 | 197,260,152 | 10 | 2 | null | 2022-02-09T22:42:49 | 2019-07-16T20:07:33 | C++ | UTF-8 | Python | false | false | 2,845 | py | #Blank.py
#Ian Hattwick
#Mar 1, 2023
PACKET_INCOMING_SERIAL_MONITOR = 0
CUR_PYTHON_SCRIPT = "Blank.py"
import serial, serial.tools.list_ports, socket, sys, asyncio,struct,time, math
from pythonosc import osc_message_builder
from pythonosc import udp_client
from pythonosc.osc_server import AsyncIOOSCUDPServer
fro... | [
"ian@ianhattwick.com"
] | ian@ianhattwick.com |
6bec3ddf43308f97381ac98d3aed4324806e4ca7 | 99c977d54eea4e56ebe363e52d6317daf8214ea3 | /reverie/apps/core/models.py | 36b8257d21d69d477724f46941b6ef23cf4e22ad | [] | no_license | ternus/reverie | 2fb89d64132b4801705f8096aefb6ccc4ba31348 | ed1740bf7fe93db39e341a280d948c625d525aeb | refs/heads/master | 2016-09-16T13:31:44.193021 | 2011-11-26T20:15:11 | 2011-11-26T20:15:11 | 2,828,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | from datetime import datetime
from django.contrib.gis.db import models
from django.contrib.gis.geos import Point
from const import Skills, LogTypes
from couchdbkit.ext.django.schema import *
DEFAULT_LOCATION=Point(42.359140, -71.093548) # 77 Mass Ave
class Character(models.Model):
name = models.CharField(max_leng... | [
"ternus@mit.edu"
] | ternus@mit.edu |
19e2826616e1dd3444926f89dbc7a7816a07236e | 5acbf224c36f812075b899320c74f0e47b448ad9 | /CNN_on_cifar_ByPytorch/12_WideResNet.py | 51f2233f95bce9d09529613f61c00b1a3f78cc76 | [] | no_license | lovecodestudent/Classification_model | a5b190a3788ed6b5ca28ea89e68e8814db382fd4 | 62b6849080da3f9033dcf01a9e16b0d35c371c45 | refs/heads/master | 2022-07-10T01:56:27.608340 | 2020-05-13T04:41:27 | 2020-05-13T04:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | import torch
import torch.nn as nn
import torch.nn.init as init
import torch.nn.functional as F
import numpy as np
import sys
def conv_init(m):
classname = m.__class__.__name__
if classname.find('Conv') != -1:
init.xavier_uniform(m.weight, gain=np.sqrt(2))
init.constant(m.bias, 0)
elif clas... | [
"gyt0713@126.com"
] | gyt0713@126.com |
91991f5a8611d5ea0c34e7e190b6f2f689575618 | e35c318b38e0d359f4c9597d7b6f62f48475b3ec | /tests/common/test_utils_logger.py | ec51c65f3b1d9e854a10ab5f49f6914cdf5717d1 | [
"MIT"
] | permissive | jongwonKim-1997/bayeso | fddca24c98ef90fdc74f24bcc35040ab064ff5e3 | f6f290c5ed33340beaf8dfa27a71d1dbce121e33 | refs/heads/main | 2023-05-10T12:25:04.353385 | 2021-04-19T00:32:25 | 2021-04-19T00:32:25 | 375,925,113 | 0 | 0 | MIT | 2021-06-11T06:21:42 | 2021-06-11T06:21:41 | null | UTF-8 | Python | false | false | 6,730 | py | #
# author: Jungtaek Kim (jtkim@postech.ac.kr)
# last updated: September 24, 2020
#
"""test_utils_logger"""
import logging
import pytest
import numpy as np
from bayeso.utils import utils_logger as package_target
def test_get_logger_typing():
annos = package_target.get_logger.__annotations__
assert annos['s... | [
"jtkim@postech.ac.kr"
] | jtkim@postech.ac.kr |
380e3c97f6cccfca0561f610fa9bacc68b1ea1d2 | 4f50a8a320e89fa60147ae21949168f9929a24ea | /wafweb/wafwebapp/classes/neo_classes/neoquery.py | f65b3097df5ad75b7eb91396b9c09fcb95da2ac8 | [] | no_license | hubaym/waf | 78732b3d42054b0bc608912a37bed3e78bd750f0 | a51ec7331c0c80841de3a52b325fb42708e38a6d | refs/heads/master | 2021-04-15T03:52:02.586070 | 2016-08-24T22:18:15 | 2016-08-24T22:18:15 | 65,689,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,883 | py | from neo4jrestclient import client
import classes.constant.wafconnection as con
from neo4jrestclient.client import GraphDatabase
from classes.constant.waflog import WafLog
import classes.utils.status as status
class NeoQuery():
def __init__(self):
self.db = GraphDatabase(con.NEO_HOST,
username=con.NEO_USER,... | [
"hubaymarton@Hubay-MacBook-Air.local"
] | hubaymarton@Hubay-MacBook-Air.local |
601df3ddcbd225d79671f80264b633e771676761 | 5cfbe2f43cc50930d1116992be542c50f297c7f8 | /mysite/settings.py | 11e9a043d9f57bb0ea7c9fa4244eecab60fd4c4b | [] | no_license | NataliTomilina/my-ferst-blog | e059fa6b562a62725bfc9168fa9a3685f2dfcd9d | 7e75be17a66419dec66d36288d9e058d163cd96d | refs/heads/master | 2020-03-21T13:03:02.766961 | 2018-06-25T11:16:42 | 2018-06-25T11:16:42 | 137,742,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,201 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# ... | [
"tomilina.95@mail.ru"
] | tomilina.95@mail.ru |
82753cf6b64dc98cdf65535e4818c0755652d67d | 8ac75ee9dcb850c966a05a72bdfaf34fcf35965d | /Company_ques/Avg.py | 066f2fbc121c96c00299bf439e3ccc92c855e13d | [] | no_license | mathankrish/Python-Programs | 3f7257ffa3a7084239dcc16eaf8bb7e534323102 | 2f76e850c92d3126b26007805df03bffd603fcdf | refs/heads/master | 2020-05-01T04:27:00.943545 | 2019-10-07T18:57:41 | 2019-10-07T18:57:41 | 177,274,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | # Average of two numbers
def Avg(num1, num2):
Total = num1 + num2
average = Total / 2
return average
num1 = int(input())
num2 = int(input())
print("The average of {0} and {1} is {00} ".format(num1, num2, Avg(num1, num2))) | [
"noreply@github.com"
] | mathankrish.noreply@github.com |
49cc7ab24fcf653315ed8b0a0c768e7420905965 | 4a2eac368e3e2216b0cd1dd70224da3ca4ee7c5e | /SecretManager/owlbot.py | 50c7c9bb3fb0bdd3f2138665e345cd50407ebd4c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | googleapis/google-cloud-php | 856a940eee158eafa6f2443f8d61813779216429 | ad50f749431287e7074279e2b4fa32d6d6c2c952 | refs/heads/main | 2023-09-06T05:48:31.609502 | 2023-09-05T20:27:34 | 2023-09-05T20:27:34 | 43,642,389 | 642 | 330 | Apache-2.0 | 2023-09-13T22:39:27 | 2015-10-04T16:09:46 | PHP | UTF-8 | Python | false | false | 1,871 | py | # Copyright 2020 Google LLC
#
# 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 agreed to in writing, s... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
97144af185424ea27a240b90f0c63e9326295721 | 5f19c7590f5639f0ec4e97c8e80c9cb9f4c30025 | /xgboost_logistic.py | 6150f2d3527cb86cce44394148be0a3567e27d0e | [] | no_license | PXPX11/Quantitative-Finance | 37448a3fa6a1b659fd83b01050c9cfb8344e639c | fc598ae75bbf54a660bd88f9a14e680d6a8890d0 | refs/heads/master | 2023-04-12T16:04:59.010704 | 2021-05-10T11:01:58 | 2021-05-10T11:01:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,192 | py | import pandas as pd
import numpy as np
import xgboost as xgb
from xgboost.sklearn import XGBClassifier
from sklearn import cross_validation, metrics
from sklearn.grid_search import GridSearchCV
from sklearn.cross_validation import train_test_split
import matplotlib.pylab as plt
from sklearn.preprocessing import... | [
"noreply@github.com"
] | PXPX11.noreply@github.com |
f2db845f6ed0455eb72a111058ae787634caf967 | 181e9cc9cf4e52fcc6e9979890cc5b41e7beb756 | /Module 1/02_Codes/miscellaneous/4-TenSecondCameraCapture.py | ffe0427cfa69b339ad2ddf078ae4c70f2d0dfbde | [
"MIT"
] | permissive | PacktPublishing/OpenCV-Computer-Vision-Projects-with-Python | ace8576dce8d5f5db6992b3e5880a717996f78cc | 45a9c695e5bb29fa3354487e52f29a565d700d5c | refs/heads/master | 2023-02-09T14:10:42.767047 | 2023-01-30T09:02:09 | 2023-01-30T09:02:09 | 71,112,659 | 96 | 72 | null | null | null | null | UTF-8 | Python | false | false | 515 | py | import cv2
cameraCapture = cv2.VideoCapture(0)
fps = 30 # an assumption
size = (int(cameraCapture.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)),
int(cameraCapture.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT)))
videoWriter = cv2.VideoWriter(
'MyOutputVid.avi', cv2.cv.CV_FOURCC('I','4','2','0'), fps, size)
success, frame = ... | [
"prasadr@packtpub.com"
] | prasadr@packtpub.com |
38e91d4d664c61c222b744872c51c349b5c6d785 | c74a140b434941e05978582b41ca6cdcc5ea8989 | /leetcode/editor/cn/[剑指 Offer 22]链表中倒数第k个节点 LCOF.py | c2a1ddadf9ff231c1947dbe047c4ab502521c31c | [] | no_license | Switch-vov/leet_code | 61e5ff781aba923971e294d9210c70088c6340a2 | c9dd9c1bf0213b12c499fbeccada5d0fd758fce1 | refs/heads/master | 2023-07-29T15:32:06.130178 | 2021-09-12T11:52:38 | 2021-09-12T11:52:38 | 396,201,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # English description is not available for the problem. Please switch to Chinese
# . Related Topics 链表 双指针
# 👍 220 👎 0
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
# leetcode submit region begin(Prohibit modification and deletion)
# Definition for singly-linked list.
#... | [
"switchvov@163.com"
] | switchvov@163.com |
2a2ed39cccfc804911fb565d6e90e37ab53ccb77 | 8ed9296cf14cbd48ad6c6ba977a4eddfb6158ec3 | /lib/examples/basic_radiation-LITE.py | 98e58e33c081925056c326049a5fdf5e1c07f745 | [
"BSD-3-Clause"
] | permissive | JoyMonteiro/CliMT | 51191c8e44eef28057971dd29de8e40c0bd3ef97 | 0949ed3a3a125638072351d7277ae4b956956d35 | refs/heads/master | 2021-04-09T17:45:56.369908 | 2016-10-28T08:32:26 | 2016-10-28T08:32:26 | 28,734,117 | 2 | 0 | null | 2015-01-03T03:45:23 | 2015-01-03T03:45:22 | null | UTF-8 | Python | false | false | 1,298 | py | #
# Set up realistic tropical temperature and moisture profiles
# and compute radiative fluxes
#
from numpy import *
import climt_lite
#--- instantiate radiation module
r = climt_lite.radiation()
#--- initialise T,q
# Surface temperature
Ts = 273.15 + 30.
# Strospheric temp
Tst = 273.15 - 80... | [
"rca@misu046.misu.su.se"
] | rca@misu046.misu.su.se |
855d10a127d4561780c68cd68a89ac02f14a8a10 | d79778a02e752879b337c9bfe567617e910befb9 | /model/all_data_representation.py | 9c2ba3323b47c526965496e37085a4f489f9c9e8 | [] | no_license | SubrataTech/fulfil_data_loader | fb38e47872c78976e4928ed2b47f650917b566d0 | 33418bf3901146df38fe38950cebd2a7bc57b0ce | refs/heads/master | 2022-09-28T21:55:42.047813 | 2019-11-17T21:00:56 | 2019-11-17T21:00:56 | 222,309,372 | 0 | 0 | null | 2022-09-16T18:12:56 | 2019-11-17T20:43:07 | HTML | UTF-8 | Python | false | false | 308 | py | from configuration_file import db
class UserTable(db.Model):
__tablename__ = 'user_data'
id = db.Column('id', db.Integer, primary_key=True)
u_name = db.Column('u_name', db.String(50))
u_sku = db.Column('u_sku', db.String(10))
u_description = db.Column('u_description', db.String(1500))
| [
"subratakamila2@gmail.com"
] | subratakamila2@gmail.com |
a256b033d5114fc08cddeaa6625a4ef957040c9e | c0d75e3f8c0383f528fbca434414185aa77b1de3 | /ceyrek_altin.py | 6c2390431f87d547088bd17a9b52c0f014e19e7b | [] | no_license | borayuret/yfscraper | 9339c9d5215f1a10f27aac21a9f368bbdb119604 | ad57f7e2826936473dad78ac4b729fadeb4d02ba | refs/heads/main | 2023-03-31T23:49:17.951674 | 2021-04-03T10:05:59 | 2021-04-03T10:05:59 | 347,348,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # hurriyet.com.tr den dolar fiyatı çekelim.
import requests
from bs4 import BeautifulSoup
hisse_url = "https://bigpara.hurriyet.com.tr/altin/"
html_kod = requests.get(hisse_url)
soup = BeautifulSoup(html_kod.content, 'lxml')
bilgi_bar = soup.find('div', class_='dovizBar mBot10').find_all('a')[1].find_all('span')[6... | [
"bora.yuret@bilgeadam.com"
] | bora.yuret@bilgeadam.com |
ad2fc3768caa165399299cbe9e9557c3e1406c60 | c4cba3a520eccfb60350cfd8bead6a434061bb4d | /projects_lpthw/gothonweb/gothonweb/app.py | 179976e2710ae3eff790a6d2a4498bebefa832ae | [] | no_license | thedoubl3j/python_playground | bb119e971e5a8d5e5118a6c788d8f140f8a8fb97 | b25cfdf3bbe337b46fbf350e785b8d13e129a6f6 | refs/heads/master | 2021-12-15T03:38:27.462891 | 2021-12-13T21:48:04 | 2021-12-13T21:48:04 | 128,975,263 | 0 | 1 | null | 2019-01-22T17:12:03 | 2018-04-10T18:02:37 | Python | UTF-8 | Python | false | false | 241 | py | from flask import Flask
from flask import render_template
app = Flask(__name__)
@app.route("/")
def index():
greeting = "Hello World"
return render_template('index.html', greeting=greeting)
if __name__ == "__main__":
app.run() | [
"jljacks93@gmail.com"
] | jljacks93@gmail.com |
1ac2383f4356c4123f3f0424f2d41eeb4d65eef7 | e00d41c9f4045b6c6f36c0494f92cad2bec771e2 | /multimedia/sound/celt/actions.py | ebbc7ace073cda6de994f48d6de40b6054304d7d | [] | no_license | pisilinux/main | c40093a5ec9275c771eb5fb47a323e308440efef | bfe45a2e84ea43608e77fb9ffad1bf9850048f02 | refs/heads/master | 2023-08-19T00:17:14.685830 | 2023-08-18T20:06:02 | 2023-08-18T20:06:02 | 37,426,721 | 94 | 295 | null | 2023-09-14T08:22:22 | 2015-06-14T19:38:36 | Python | UTF-8 | Python | false | false | 407 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.configure("--disable-static")
def build():
autotools.ma... | [
"ayhanyalcinsoy@pisilinux.org"
] | ayhanyalcinsoy@pisilinux.org |
09b2b9ce9f10a6ff28cd54739a2cd1fa4975567f | d0ec18e7111bd96cf4a5ed5336c4878a17f13255 | /config.py | cdd9028d4c01177b55efe73cc336e149b9772f29 | [] | no_license | elCalmo/Buddylift | 21e310d604ee5d49bd86ca4bd2834e9bc646fcad | 7beac9facc5b2ddb369103322293ba00a88d8fb2 | refs/heads/master | 2020-05-01T00:16:53.682749 | 2019-03-22T15:35:03 | 2019-03-22T15:35:03 | 177,165,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | import os
basedir = os.path.abspath(os.path.dirname(__file__))
secret_key = "~Xl\x84A\x95\xec\xca\x0c\x18\x86`%\\\xef\xa0\xd8\tV\xd8\xc3\xf2\x1dd"
class Config(object):
SECRE... | [
"noreply@github.com"
] | elCalmo.noreply@github.com |
09027e22728fd2c90a2f9e1cff4543b34182fa2d | 2113e5eac65f527e86eefcc5001d978c0a3e64a6 | /server.py | 917de850a3b7d86c2b1821dac7615abfab8110da | [] | no_license | Oksvol/D2-10-Homework | 42c0b8bd6873e8ee428f847b173448a0f6bef05b | 4f211da25a05137e8b7ea5c9419143782439bbfa | refs/heads/main | 2023-02-18T20:03:32.557687 | 2021-01-13T18:05:03 | 2021-01-13T18:05:03 | 329,385,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | import os
import sentry_sdk
from bottle import run, route, HTTPResponse
from sentry_sdk.integrations.bottle import BottleIntegration
from userconf import USER_DSN
sentry_sdk.init(
dsn=USER_DSN,
integrations=[BottleIntegration()]
)
@route("/")
def hello_page():
return HTTPResponse(status=200, body="Пр... | [
"noreply@github.com"
] | Oksvol.noreply@github.com |
a2ab289aae0d3b78772cbe37bf8afadf36646cfe | 99bc3defc34f3bc2854523c5c4a7c907c45233ec | /shanxingapi/testacse/case1.py | 7d450c4b89f91d66be2356aae370b0fec8e4d081 | [] | no_license | huangchunhui521/shanxing | 5ebc1ca0d30228bb19809e45aff0ac73bab0f538 | 8d26d3c5e41daab547799d28fb6071969500dde9 | refs/heads/master | 2021-05-21T13:35:02.883479 | 2020-04-03T12:04:33 | 2020-04-03T12:04:34 | 252,668,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,785 | py | # -*- coding: utf-8 -*-
# @File:
# @Time :
# @Author :
# @Detail :
import unittest
from shanxingapi.testFile import fux_api
from shanxingapi.testFile.fux_api import Consumer
class ConsumerTestCase(unittest.TestCase):
__doc__ = "TestCase"
_classSetupFailed = True
_cookies = None
_shop_id = None... | [
"53180380+huangchunhui521@users.noreply.github.com"
] | 53180380+huangchunhui521@users.noreply.github.com |
c8046c7484e23639cd6e983dfa5d597d5f603db9 | 17baed99ca2fb30a0578c89961addcab89c143f2 | /restful/settings.py | 33bb65320132b4ca50c9a961dfe40346b3984b82 | [] | no_license | newhuaszh/restful | 151ec4855177dee6ef497364e887cdaa4e40f7a0 | d1616c6c2d00dffcb5f2d15ff1b8935f60383095 | refs/heads/master | 2021-01-11T13:55:55.662099 | 2017-06-20T14:21:02 | 2017-06-20T14:21:02 | 94,899,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,249 | py | """
Django settings for restful project.
Generated by 'django-admin startproject' using Django 1.9.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# B... | [
"szhhzs@sina.com"
] | szhhzs@sina.com |
19b229e6e52bf90036dbd810bcd8227145b3ad0a | 764d2597021f3bb39a4076a96cb976e44b12b3d8 | /chatbot.py | 220b52f2fd8e72e676214aad08002ed7dbe6c53e | [] | no_license | tristanbriseno/chatbot.py | 50ef213ae2e928254b86319907f16a910737b38d | c395ad8501d8478a98d1d55eb9bc765e75841e68 | refs/heads/master | 2022-12-18T05:09:37.388849 | 2020-09-22T21:10:04 | 2020-09-22T21:10:04 | 297,402,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,759 | py | from random import choice
#I basically used the example that was provided for this project as a blueprint for my chat bot.
#what is happening here is that the code is using a psudo-code called random that acts as an rng and selects amoungst the choices provided.
def get_rude_bot_response(user_response):
#Here I am defi... | [
"noreply@github.com"
] | tristanbriseno.noreply@github.com |
2c23cac30eb794b54b016245d2b1078ebafd21bd | 0febefe0a6813a6828a9e8b5301b7e583a5b7c4e | /lab1_app/migrations/0001_initial.py | f1a193ac4a33f09b1f2f45d9116e78a02c38f3df | [] | no_license | vrekeda/django-lab1 | 117348c8162e50e0a0570dcdf9bd0bd8479fcd7f | e23047cffa0f0123fe4d4c22faf0c70de2e15b57 | refs/heads/main | 2023-05-09T01:37:05.214751 | 2021-05-28T20:43:44 | 2021-05-28T20:43:44 | 364,990,925 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 888 | py | # Generated by Django 3.2.2 on 2021-05-06 20:13
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Language',
fields=[
... | [
"vladimir.rekeda@beeper.ru"
] | vladimir.rekeda@beeper.ru |
ef1dee427fd1886305f8a5488e392f4572706fde | bc9cb3f0f104778026ca6f3a07595dd5d6ce840f | /DIA_01/introducao_python/aula/linguagem_python/05_conversao_de_tipos/exemplo_03.py | ba7db84a4bd8944411f327a1af919b84d29843a2 | [] | no_license | JohnRhaenys/escola_de_ferias | ff7a5d7f399459725f3852ca6ee200486f29e7d4 | 193364a05a5c7ccb2e5252c150745d6743738728 | refs/heads/master | 2023-01-12T11:30:46.278703 | 2020-11-19T14:59:10 | 2020-11-19T14:59:10 | 314,278,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | # Convertendo float para string
real = 1.23
print(real)
print(type(real))
print()
string = str(real)
print(string)
print(type(string)) | [
"joao.estrela@sga.pucminas.br"
] | joao.estrela@sga.pucminas.br |
bf066b0c96bc34015aad76b1865d66ea72737187 | ba527be278797cf60d7c34bd8dae7c56ceb35820 | /scripts/model_tuning.py | 91b654dca0e95496b245d8f2b1f3b5d4ea90f9e1 | [] | no_license | bl-m/HomeCredit | a9ee23675bc9adb3ff981e91dcc2a86ccad11d0f | e60e02a4e54861981b7491a26ad3d5489376cbcc | refs/heads/master | 2022-12-27T04:10:30.429719 | 2020-09-19T09:54:26 | 2020-09-19T09:54:26 | 296,838,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | """Model tuning scripti calistiginda hyperparameters klasörüne iki sonuc uretecek:
hyperparameters.pkl
lightgbm_model.pkl
"""
import os
import pickle
from lightgbm import LGBMClassifier
import pandas as pd
from sklearn.model_selection import GridSearchCV
lgbm = LGBMClassifier()
lgbm_params = {"learning_rat... | [
"m.vahitkeskin@gmail.com"
] | m.vahitkeskin@gmail.com |
71ab02075251ae94585f95c3374a589be9d31c19 | fc0ceb3a10511108d476ace8bf2c9479c72f5802 | /pinhole_model/calibrate.py | c4db5d22e4384350ced9a01360375ad3405cb8e6 | [] | no_license | robotique-ecam/new_camera_calibration | a824b7e2b1e0878925e65019808870e4be93b7bc | dd0f6d4a4a6e2ea9ae4b847f263cee3a2a607e0b | refs/heads/main | 2023-04-23T16:07:03.727814 | 2021-04-24T17:05:13 | 2021-04-24T17:05:13 | 355,595,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,342 | py | #!/usr/bin/env python
import cv2
import numpy as np
import os
import glob
def get_repo_directory():
return os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
# Defining the dimensions of checkerboard
CHECKERBOARD = (6, 9)
criteria = (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 30, 0.001)
# Cr... | [
"phileas.lambert@gmail.com"
] | phileas.lambert@gmail.com |
3d03517f3547f991cdc1626ffa4deed8f3f04736 | 6f47b0cc1b80d9fe5cdbab9f54def092050d87f7 | /A05-09/validators/validators.py | 0f8febe2f1c47b83fef1bfa529b710397a150a3f | [] | no_license | alexovidiupopa/Fundamentals-of-Programming- | 024cb4d20be2bab3372714bbf2aa493ce5193082 | 9d557a0b82ef87e46a716a3506939aaf9a5f5ffb | refs/heads/master | 2020-03-31T09:01:05.685430 | 2019-01-17T15:04:08 | 2019-01-18T11:59:25 | 152,080,329 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,515 | py | from errors.errors import ValidError
import datetime
class StudentValidator(object):
'''
the class to validate if a student is correctly inputted
'''
def validateStudent(self,student):
errors = ""
if student.getID()<0:
errors+="Invalid id"
if student.get... | [
"popaalexovidiu@gmail.com"
] | popaalexovidiu@gmail.com |
2bb80d3e76ad8eeb95f106c44017b8529377a982 | b715c79f52cf2c95927c19edf8f6d64f5322bf7d | /PJLink/start_kernel.py | 94e029381f90239bda03ffb6c2dba92292df92be | [
"MIT"
] | permissive | sunt05/PJLink | 4d6805b07070c0a2c7452464358ebcf075eeabb0 | cd623efebf4ddae8c5ea75b3ee08fe9819e78b40 | refs/heads/master | 2020-03-29T05:46:10.707576 | 2018-09-20T07:36:51 | 2018-09-20T07:36:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | """start_kernel is a convenience script for starting a kernel thread in python
"""
import sys, os, argparse
sys.stdout.flush()
true_file = os.path.abspath(__file__)
sys.path.insert(0, os.path.dirname(os.path.dirname(true_file)))
from PJLink import *
### I should do a lot more argparsing... but I don't
parser = ... | [
"b3m2a1@gmail.com"
] | b3m2a1@gmail.com |
d7844833faffeeb6ea09e3c6a4e91c845c8bcd78 | b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a | /examples/pwr_run/checkpointing/new_short/feedback/job13.py | 70a3df461607c82369d2bf42af52327b64207e16 | [
"MIT"
] | permissive | boringlee24/keras_old | 3bf7e3ef455dd4262e41248f13c04c071039270e | 1e1176c45c4952ba1b9b9e58e9cc4df027ab111d | refs/heads/master | 2021-11-21T03:03:13.656700 | 2021-11-11T21:57:54 | 2021-11-11T21:57:54 | 198,494,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,222 | py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [
"baolin.li1994@gmail.com"
] | baolin.li1994@gmail.com |
86ca70ec064a1b497a8d74d0e3d0844b4fa7c668 | 3e1d9a25426e2a157a69f3c4c6c41b5216deb8de | /LeetCode/Python/Easy/Heaters.py | 749d9559b5c23d9ae2cfa22db847e1981c3ed067 | [] | no_license | jashansudan/Data-Structures-and-Algorithms | 4e420586bc773c5fc35b7ce7be369ca92bf51898 | e38cfb49b3f9077f47f1053207f4e44c7726fb90 | refs/heads/master | 2021-01-12T10:47:05.754340 | 2018-02-13T01:01:50 | 2018-02-13T01:01:50 | 72,697,093 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | class Solution(object):
def findRadius(self, houses, heaters):
houses.sort()
heaters.sort()
i, maxDistance = 0, 0
for house in houses:
while (i < len(heaters) - 1 and
abs(heaters[i] - house) >= abs(heaters[i + 1] - house)):
i += 1
... | [
"jashansudan@gmail.com"
] | jashansudan@gmail.com |
a21e3c1b3fbe2d9f2cafe1555c7569238f005b50 | 6486ff37959925d992cb34c46635665ebcfd4bb7 | /BookmarkServer.py | cd6fdb05990048f088298ce652728e30a48af675 | [] | no_license | erichcharlwassermann/ecw-fswb-part-2-lesson-13 | 5546fc58e3279d73104fc64671bcea5e69075acd | 6547299c7cd829e8bcb8dad2ddd555658da19429 | refs/heads/master | 2021-01-01T16:28:00.169335 | 2017-07-20T13:29:31 | 2017-07-20T13:29:31 | 97,838,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,402 | py | #!/usr/bin/env python3
#
# A *bookmark server* or URI shortener.
import http.server
import requests
from urllib.parse import unquote, parse_qs
import os
memory = {}
form = '''<!DOCTYPE html>
<title>Bookmark Server</title>
<form method="POST">
<label>Long URI:
<input name="longuri">
</label>
<br>
... | [
"erichcharlwassermann@gmail.com"
] | erichcharlwassermann@gmail.com |
4cf487e4b92d1e27036830b85c8d01462301077d | b88c7025dac49cf9e933074062c47b04e75a7f42 | /test/test_imports.py | be0f39e81206a9504e567f7d43826cd2241231f5 | [
"MIT"
] | permissive | theendsofinvention/elib_logging | 2e45b574e30f2267266dfcda6af6762fc94f89f1 | 35f5830830ebe90d48c44a008850b2fd5bb9971c | refs/heads/master | 2020-03-20T19:25:52.157944 | 2018-06-17T14:34:30 | 2018-06-17T14:34:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # coding=utf-8
"""
Dummy test to make sure everything is importable
"""
import glob
import pytest
@pytest.mark.nocleandir
@pytest.mark.parametrize('module_', glob.glob('./elib_logging/**/*.py', recursive=True))
def test_imports(module_):
module_ = module_[2:-3].replace('\\', '.')
__import__(module_)
@pyte... | [
"132nd-etcher@daribouca.net"
] | 132nd-etcher@daribouca.net |
f1e0cce2582fadbf805d801d420991f393e8ca75 | 0728138c0c59305b410f1687ba3d32c656990ad3 | /social/backends/persona.py | c6ab197365f4b9367db6d30473a4ca871f4df107 | [
"BSD-2-Clause"
] | permissive | rhookie/flask_reveal | 82b2dd2f53ca03fc5f4a07f1c12c8d8680fc8eb4 | 5c8c26c8686b4ee9a952a92a8150a18995dc778b | refs/heads/master | 2021-05-07T05:04:43.887058 | 2017-10-10T16:52:49 | 2017-10-10T16:52:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | """
BrowserID support
"""
from social.backends.base import BaseAuth
from social.exceptions import AuthFailed, AuthMissingParameter
class PersonaAuth(BaseAuth):
"""BrowserID authentication backend"""
name = 'persona'
def get_user_id(self, details, response):
"""Use BrowserID email as ID"""
... | [
"ciici123@hotmail.com"
] | ciici123@hotmail.com |
688b77feb6f806d7f71b863600adf9b1853ed15a | 20496b6f0e3b89e1d68d8f062cd0e62d32a1a1ad | /assn2/countchar.py | 5aaa5a7729676d8cd2a85d27b3719c6f11ef9fd4 | [] | no_license | sushil246/myfirstrepo | 9a5636dd4b1475fb21009b6a336d5fc450c52789 | 3b76be6c3c348188f82d92eae065b7fafef2a829 | refs/heads/master | 2020-07-05T20:00:50.573268 | 2019-09-17T13:14:35 | 2019-09-17T13:14:35 | 202,757,980 | 0 | 0 | null | 2019-08-16T16:38:35 | 2019-08-16T15:59:14 | HTML | UTF-8 | Python | false | false | 290 | py | dictc = {}
inp = raw_input ("Enetr the String for Char to be counted \n")
def charcount(inp):
for i in inp:
if i in dictc.keys():
dictc[i] +=1
else:
dictc[i]= 1
for k ,v in dictc.items():
print (k , v)
print(dictc)
charcount(inp)
| [
"test@xyz.com"
] | test@xyz.com |
98fd062a3240a90df5b99feb6e74d4d6a0896bba | a6dc4a3fca7b55c7db4054dd38c30769ce0b1f93 | /ap_flow/validation/__init__.py | cbe591f09ed712045bc95d0c57fd640dd73e052f | [] | no_license | paolostyle/assignpro-api | e989493275db82176f810da86faf068f62983be2 | 04e4907398661bf585dbb4e447a1100d652b222f | refs/heads/master | 2020-04-13T08:53:28.392281 | 2019-01-27T16:09:49 | 2019-01-27T16:09:49 | 163,095,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | from .request_validator import get_request_validator
| [
"tuptus95@gmail.com"
] | tuptus95@gmail.com |
d3200416507538355822402d48c6102e6eac1710 | db1872a7014cc9422a233df843a705380fdc3d5c | /neural_network.py | aa619c462fdea8ea056ea56150652777cbf911d3 | [] | no_license | Mithul/bot-bot | 2a9c57b912fd16bfc17ab435ced73efb08b37f45 | 53cbfd63cac51f87e24cf5838d369ed30638819c | refs/heads/master | 2021-06-16T14:23:52.917258 | 2017-05-10T20:19:43 | 2017-05-10T20:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,086 | py | """
This module implements the neural network class and all components necessary to
modularize the build/use process of the neural network.
"""
import numpy as np
import pickle
import os
import h5py
# create NN using Keras
from keras.models import Sequential, load_model
from keras.layers import Activation
from keras.o... | [
"shriya.sasank@gmail.com"
] | shriya.sasank@gmail.com |
eec70be6f1347e0c67b92c7a3a0234739131b6ec | 41d579a0e17b9fb6b1994168f1a1857788e850c2 | /part03-e08_almost_meeting_lines/src/almost_meeting_lines.py | ac63d387528cda8632354b0e60ff99788a96fd4e | [] | no_license | clementeqp/Analisis_de_Datos_Python_2021 | 9daac062e8b64357d56592d65bdbd2cfb79eecc3 | 7c1025b974fde8ffee755d63a72329b84c965813 | refs/heads/master | 2023-06-19T03:25:44.346580 | 2021-07-11T07:00:14 | 2021-07-11T07:00:14 | 383,727,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | #!/usr/bin/python3
import numpy as np
def almost_meeting_lines(a1, b1, a2, b2):
return []
def main():
a1=1
b1=2
a2=-1
b2=0
(x, y), exact = almost_meeting_lines(a1, b1, a2, b2)
if exact:
print(f"Lines meet at x={x} and y={y}")
a1=a2=1
b1=2
b2=-2
(x, y), exact = al... | [
"clementeqp@hotmail.com"
] | clementeqp@hotmail.com |
28289127ec177ea4e6a063f782b3673fbfdb47c9 | f6f2576e54f3c4ff9e46be9e97bfe639e5c495cc | /migrations/0002_auto_20160311_2158.py | 3ff3016d7094a8742d8de8fb90d1550ae6907e36 | [
"MIT"
] | permissive | mback2k/django-app-comments | 2bd77fbec50fe37eb1dca10b45f76de7c46c23bb | 01ba89bf6c59e908a837a48c92575cc2c9f64d1a | refs/heads/master | 2021-01-17T07:10:07.325462 | 2019-04-27T18:17:27 | 2019-04-27T18:17:27 | 24,798,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comments', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Attachment',
fields=[
... | [
"info@marc-hoersken.de"
] | info@marc-hoersken.de |
c250ce17de3d4b5cc6706f63c1977f4f2fcee481 | d6d20681f41102df3feb2b438ef80569bd73730f | /Uge4-numpy/.history/exercises_20200218170520.py | ca2f210387343db0503dbab4b0b5f8b7d2cf8f1b | [] | no_license | MukHansen/pythonAfleveringer | d0ad2629da5ba2b6011c9e92212949e385443789 | 4107c3c378f757733961812dd124efc99623ff2e | refs/heads/master | 2020-12-22T13:27:19.135138 | 2020-05-22T11:35:52 | 2020-05-22T11:35:52 | 236,796,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | import numpy as np
import matplotlib.pyplot as plt
from collections import OrderedDict
filename = './befkbhalderstatkode.csv'
data = np.genfromtxt(filename, delimiter=',', dtype=np.uint, skip_header=1)
neighb = {1: 'Indre By', 2: 'Østerbro', 3: 'Nørrebro', 4: 'Vesterbro/Kgs. Enghave',
5: 'Valby', 6: 'Vanløse',... | [
"cph-mh752@cphbusiness.dk"
] | cph-mh752@cphbusiness.dk |
bbf650f23013a510fc45f9db197e856f4b58345a | c47f5ce7cc9b4ab5bc1640c5cc7457b239a17bb4 | /project_counter/urls.py | e2e842c6db0ee0a0dbcada7f70f3e5190ad4e353 | [] | no_license | Nathan-B21/django_counter | 97e7b2a8f63c58efebd3f341a3f24bcc11effb46 | 83f4bb49fcd47101434184c494f301a0b1c69c78 | refs/heads/main | 2023-03-21T11:03:34.601541 | 2021-03-18T22:08:54 | 2021-03-18T22:08:54 | 349,229,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | """project_counter 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')
Cla... | [
"nathanbludworth@gmail.com"
] | nathanbludworth@gmail.com |
ea7e309f7c49d75e513aa4e6d215df4c6ab155c4 | 48227bebe295925f7063d58521f3fd16273b1706 | /02/printing.py | e297ebec74e242204327d903a63f85909f0de936 | [] | no_license | akarneliuk/CEX | b8ffff64d57699fd17b4a7bfb52c64534bfb1ce8 | c869fb8c1f497933c8227e3c41b0f295a6dad3b2 | refs/heads/master | 2020-12-27T21:01:28.722083 | 2020-08-10T12:45:12 | 2020-08-10T12:45:12 | 238,052,880 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | #!/usr/local/bin/python3.8
print('Hello, new network automation mate! This exciting world is waiting for you.')
| [
"akarneliuk@gmail.com"
] | akarneliuk@gmail.com |
d8f1320a6a3259202b7d914635b62a8fcab53267 | ce66eb9242372126801a0558dde167a664f6a79c | /rl/tictactoe/player.py | 3695a25916d4f61ee6650c39677ed26878dda084 | [] | no_license | teerapat-ch/ReinforcementLearningUdemy | 3d631a9d2d3d1c20361be31e79faa97d2344045c | aaa4d7d23b228289b362e281c8a721f8c88843ab | refs/heads/master | 2022-04-05T20:56:39.650689 | 2020-02-01T03:41:39 | 2020-02-01T03:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | import random
class Player:
def __init__(self, p_index):
self.player_character = p_index
def play_game(self, board):
print(board.get_board())
x, y = [int(x) for x in input("Enter x, y: ").split()]
return board.update_game(x, y, self.player_character)
def update_state_hist... | [
"teerapat.time12@gmail.com"
] | teerapat.time12@gmail.com |
9a725f41172d9ade05875dcb65efc8a1736e28a6 | 009851177d04a441141113189125a91a26f4dc74 | /nodejs-mobile/deps/openssl/config/archs/linux-x32/no-asm/openssl.gypi | cf044b5b7feea81208deb55bcc6f1b1ad4e9f131 | [
"MIT",
"LicenseRef-scancode-unicode",
"Zlib",
"ISC",
"LicenseRef-scancode-public-domain",
"NAIST-2003",
"BSD-3-Clause",
"BSD-2-Clause",
"Artistic-2.0",
"LicenseRef-scancode-unknown-license-reference",
"NTP",
"LicenseRef-scancode-openssl",
"ICU"
] | permissive | xuelongqy/cnode | a967f9e71315b10d3870192b4bbe2c341b196507 | ac256264d329e68b6c5ae3281b0e7bb5a95ae164 | refs/heads/master | 2023-01-30T11:23:41.485647 | 2020-03-25T05:55:13 | 2020-03-25T05:55:13 | 246,811,631 | 0 | 1 | MIT | 2023-01-07T15:54:34 | 2020-03-12T10:58:07 | C++ | UTF-8 | Python | false | false | 25,516 | gypi | {
'variables': {
'openssl_sources': [
'openssl/ssl/bio_ssl.c',
'openssl/ssl/d1_lib.c',
'openssl/ssl/d1_msg.c',
'openssl/ssl/d1_srtp.c',
'openssl/ssl/methods.c',
'openssl/ssl/pqueue.c',
'openssl/ssl/record/dtls1_bitmap.c',
'openssl/ssl/record/rec_layer_d1.c',
'... | [
"59814509@qq.com"
] | 59814509@qq.com |
0b3755e3bd3b34d0e22b926ac2b98f4a59c61376 | d19adc3664f65bb529c45e4aceb49a0ac4c49c5e | /Keyblind.py | f812c92afe31f336afd98c79577de3e62357c1cf | [] | no_license | Nikhil-Sudhan/KeyBinds | e04dae9027d493ca43305e6ca23429c2b2351a5c | 823b2d912f1e9a411d23d21dff4b460554cd8d87 | refs/heads/main | 2023-06-05T10:41:15.615211 | 2021-06-27T15:25:07 | 2021-06-27T15:25:07 | 380,772,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | import pyautogui as pya
import pyperclip
import time
import keyboard
import webbrowser
lst = []
def copy_clipboard():
pyperclip.copy("")
pya.hotkey('ctrl','c')
time.sleep(.1)
return pyperclip.paste()
def double_click_copy():
pya.doubleClick(pya.position())
pya.click(pya.positi... | [
"noreply@github.com"
] | Nikhil-Sudhan.noreply@github.com |
28d18640e9a68b93724b6d7c3ec1fab763060fd7 | 7567b2e455495f84127f02a4a9d9b837734fdbed | /lab1/z18.py | b34725fa768fb3f2fba209e1360c7d6e7a043f47 | [] | no_license | lildauni/python_labs | a473dc6f2be61d8292e1d42a95ea090cae9ab128 | 0222ab148058f62475102b5b8943057af92b3771 | refs/heads/master | 2022-09-11T13:24:10.743185 | 2020-06-04T11:00:48 | 2020-06-04T11:00:48 | 263,330,776 | 1 | 0 | null | 2020-05-12T12:50:45 | 2020-05-12T12:32:03 | Python | UTF-8 | Python | false | false | 133 | py | a=input("Введите коефициент А: ")
b=input("Введите коефициент В: ")
print("x =",-1*int(b)/int(a)) | [
"dan.chobulda@gmail.com"
] | dan.chobulda@gmail.com |
aa34e99e6688b816416a6cb3f0f75eb072591f17 | 57c8da3715d5c096f9ab1b9fb03f9a3388b74162 | /Tracker/models.py | e3acef1131b6727d2116ece6778299c27ae30175 | [] | no_license | SRI-VISHVA/HealthX | b269ef3b74248c9f24eda46d37fed5c80251900e | 94f8c7d876946ed35262147d214cadcafe1bb613 | refs/heads/master | 2022-12-30T06:21:05.562037 | 2020-10-26T05:51:52 | 2020-10-26T05:51:52 | 288,995,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
class Meal(models.Model):
userfk = models.ForeignKey(User, on_delete=models.CASCADE)
name = models.CharField(max_length=15)
quantity = models.FloatField()
kcal = models.FloatField()
date = mo... | [
"srivishvaelango@gmail.com"
] | srivishvaelango@gmail.com |
7ed5b3f8029f75a015c05cd27144545db043b37a | 265321bc3ea58920eb6237c999f6d82b3182a96f | /movie-similarity.py | 9ec947fdcfc4443ff4e5774e71536929bc1791dd | [] | no_license | redhood95/Spark-with-python | b7681fe12c4f43494ec0db97d4633103e06af2b8 | 3b5a8372e7d14012e999fed6d9cd537c85705c84 | refs/heads/master | 2020-03-30T02:19:32.266448 | 2019-01-04T12:28:14 | 2019-01-04T12:28:14 | 150,625,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,487 | py | import sys
from pyspark import SparkConf, SparkContext
from math import sqrt
def loadMovieNames():
movieNames = {}
with open("ml-100k/u.ITEM", encoding='ascii', errors='ignore') as f:
for line in f:
fields = line.split('|')
movieNames[int(fields[0])] = fields[1]
return movi... | [
"yashup1997@gmail.com"
] | yashup1997@gmail.com |
c4c89d5d3e1fb32817d68cc87ca65704daa85c9b | 65595da35fa2fce4526bd811116056e81c02df78 | /Create a Blockchain/blockchain.py | 59d7adba3e436bcf89d890da8d989a10ce882c18 | [] | no_license | tany09/Blockchain | fbddab07b17b476e45910efcc805800998adc16c | 18c9dad4c2e3c4faabf9d4c608c4571f2d8561f5 | refs/heads/master | 2020-03-23T12:35:17.288766 | 2018-07-19T11:20:24 | 2018-07-19T11:20:24 | 141,568,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,254 | py | # Module 1 Create Blockchain
import datetime
import hashlib
import json
from flask import Flask, jsonify
# Part 1 BBuilding a Blockchain
class Blockchain:
def __init__(self):
self.chain = []
self.create_block(proof =1, previous_hash = '0')
def create_block(self, proof, previous_ha... | [
"34600671+tany09@users.noreply.github.com"
] | 34600671+tany09@users.noreply.github.com |
954f7db8ba47c3b81338c42b66bf38e685e12494 | ef30c9dd420059da03787352e6def4196b25d762 | /6/test.py | 01ba5859268599c86783a4a8228957f38c53b206 | [] | no_license | drahcirD/adventofcode2020 | 960e4c93c7bf315399ab48ed09413d7e2fb62cb9 | 7ed94896fa40e4941273dd55eeee8e5b4face385 | refs/heads/main | 2023-02-07T17:26:48.369991 | 2020-12-20T22:01:52 | 2020-12-20T22:01:52 | 318,323,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | import pytest
import pathlib
from main import get_result, get_result2
def test_1():
data = [line for line in pathlib.Path("input_test.txt").read_text().split("\n\n")]
assert get_result(data) == 11
def test_2():
data = [line for line in pathlib.Path("input_test.txt").read_text().split("\n\n")]
assert... | [
"richard.ericsson@outlook.com"
] | richard.ericsson@outlook.com |
3867bbbc7662fb1349d72bd81ecf53cca464d716 | 004c631d021403efd85febadd8371a60780a7a82 | /Perceptron.py | 263a22e30eafb34997f2f760e9b03c8f2b3ea672 | [] | no_license | toderesa97/NeuralNetworkRepo | d4c0cccbe2925f31e747256c87f2dcd60fc94db7 | 569a695d61612941021197bcbda13444741412c7 | refs/heads/master | 2021-04-15T15:30:07.910614 | 2018-03-25T12:30:32 | 2018-03-25T12:30:32 | 126,158,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | # This is the most basic example but crucial to have a
# firm grasp about what's going in the background when using NNs
# This models establish a line to separate two kind of samples
import numpy as np
# defining the dataset to be used
x_data = [[0, 0],
[10, 0],
[0, 10],
[10, 10]]
y_dat... | [
"toderesa97@gmail.com"
] | toderesa97@gmail.com |
738217bc077d05965d8fd80fd34250cc875ad0d4 | d6d6b8148d41082baf2458d74d3377ad0d93e4af | /python/src/infoflow/solver/pathedge.py | b988e45175385aafa40b32e7551aa3983af028c6 | [] | no_license | kordood/jpype-example | 58363694ae4a46d7d59a2ca1299c7f19077d006b | 109cabc2de30f2a29073c2d45fa6c2f0f3dcc365 | refs/heads/main | 2023-08-28T12:53:34.169025 | 2021-10-20T04:08:12 | 2021-10-20T04:08:12 | 398,946,369 | 1 | 1 | null | 2021-09-22T08:16:17 | 2021-08-23T02:05:15 | Python | UTF-8 | Python | false | false | 163 | py | class PathEdge:
def __init__(self, d_source, target, d_target):
self.target = target
self.d_source = d_source
self.d_target = d_target
| [
"gigacms@gmail.com"
] | gigacms@gmail.com |
3be13651bbed4a538066d92ec783895a05376b2a | 34f608b301355749f8578ea21f078b0f0642a065 | /utils/misc/__init__.py | b2a3996cc82034798d9ea66b7f4a8939766fd909 | [] | no_license | memew1se/TelegramBot | cc3d146fad171e829db45382a51ac02696de961d | 36152a156055a9a2cae6cf396635bc0a6c6a30f3 | refs/heads/master | 2023-03-10T20:26:56.591407 | 2021-02-25T20:06:27 | 2021-02-25T20:06:27 | 273,334,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | from .notify_admins import on_startup_notify
from . import parcer
__all__ = ["on_startup_notify"]
| [
"63961428+memew1se@users.noreply.github.com"
] | 63961428+memew1se@users.noreply.github.com |
4a738705797adc3d81470876dc1684833b3268cf | 8fac5766c811e4758887195094436879abbce69d | /springframework/beans/factory/xml/MockXmlParser.py | b61be6b663eed1134a7ada973012ed88ee2e6d7d | [] | no_license | j40903272/spring-webmvc-python | ac2be1a417006e645f216f9280d0b50d8beb2df0 | 13c122ab972a6f63bac360f3d9bc7872503a88f3 | refs/heads/master | 2023-02-13T03:55:18.108152 | 2021-01-07T19:11:31 | 2021-01-07T19:11:31 | 327,655,108 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | import xml.etree.ElementTree as ET
import importlib
class MockXmlParser:
def __init__(self, xml_path):
self.xml_path = xml_path
self.root = ET.parse(xml_path).getroot()
self.namespace = self._get_namespace()
self.class_ = self._get_bean_instance()
def _get_namespace(self):
... | [
"jason.tsai@appier.com"
] | jason.tsai@appier.com |
0f5d3af5d770a5812d29d823b50998f95cf288d8 | 4ce576791c7b3bc0154889143ea4f390417b6411 | /dataExecute_machineLearning/weka/chinauincom_pro1/test5/recommed_2.py | 9995fec7717dfcb5b7289fe73f713a38fff0ba3f | [] | no_license | wagaman/MachineLearning | 847b3b83cc986b26499f31335363d21727e2711b | 1fac4f973a75d0207864087dfd01be684d79dc8e | refs/heads/master | 2021-01-25T12:49:46.417404 | 2017-12-21T12:30:45 | 2017-12-21T12:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,110 | py | import codecs
__author__ = 'sss'
'''
理论:
http://www.cnblogs.com/luchen927/archive/2012/02/01/2325360.html
输入的数据:
数据id,用户id, 付费标签类型,信用等级,流量(通过length(num)等级处理),基站,品牌,时间戳
计算每条数据的相似度,根据用户id获取该条数据下一次购买什么品牌的手机
'''
def loadDataSet(filename):
dataMat = []
fr = codecs.open(filename, "r", "utf-8")
... | [
"34733853+chinaunicomdandanxu@users.noreply.github.com"
] | 34733853+chinaunicomdandanxu@users.noreply.github.com |
720d8fc3a3dbf99624038092d53a52d7a9ca4d0b | 3b8341161e841e8ccce8b5065e1c0a8b028f44b5 | /taskapp/views.py | ac9ec5c0550039042628f20dfde8e567d7b73fd5 | [] | no_license | zendergo2/task-manager | fbe793f708f70d1fd7109ccc9dbac51316d2b725 | 648db5d27b5eaccfcf5fd0cf1b2117b662c1402b | refs/heads/master | 2020-06-02T13:24:16.680838 | 2015-04-08T16:43:40 | 2015-04-08T16:43:40 | 32,353,086 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.shortcuts import render, get_object_or_404
from taskapp.models import Category, Project
from taskapp.forms import AddCategoryForm, AddTaskForm, AddProjectForm, AddProjectTaskForm
def index (request):
category_list ... | [
"jbabb@mail.bradley.edu"
] | jbabb@mail.bradley.edu |
26654af914453d575f2b21bbae4b6a0ee5ba6035 | a49acc754f99706a74270ba867d11b7851131160 | /apps/users/models.py | 378b91f30f559ed736d1cc026a3438ef59ff4d9f | [] | no_license | xr1627119275/MxOnline | ff45dc4c2b116bad6c9609b7b636ee15827609de | d22296ef7d79a62b835f2349b71791d11772910e | refs/heads/master | 2021-07-21T07:00:23.608556 | 2017-10-30T07:39:38 | 2017-10-30T07:39:38 | 108,816,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | # _*_ encoding:utf-8 _*_
from __future__ import unicode_literals
from datetime import datetime
from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class UserProfile(AbstractUser):
nick_name = models.CharField(max_length=50,verbose_name=u"昵称",default='')
... | [
"1627119275@qq.com"
] | 1627119275@qq.com |
10db9f571de7104e695842119b89770f6cba2767 | 44e6cd0127f9bf9487ab9c0e4c46222876b45e42 | /modele/model_02.py | a073f6721bf5e1a74979ae3622b17c65d2792a5a | [] | no_license | andreimardare05/python-lab-2020 | e6f143c69377307e52c8730eb50219928703e651 | 06e225d3bcc0c1553492e748aeb581062604fbbf | refs/heads/master | 2022-11-13T09:34:18.176453 | 2020-07-15T22:04:56 | 2020-07-15T22:04:56 | 279,989,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | import re
import socket
import urllib
import hashlib
from urllib import request
import json
import zipfile
import os
def problema2(url, cheie):
result = json.loads(request.urlopen(url).read().decode())
return result[cheie][-1]
print(problema2("https://pastebin.com/raw/PzM422T2", "abc"))
def problema4(list... | [
"andreimardare05@outlook.com"
] | andreimardare05@outlook.com |
a209476fece09e7ebc9fe98d6643923482690a0d | 4fad94751f12ca0a0665a15e47a51c2273a94f18 | /Artificial Intelligence/Lab_2_3-2019/app.py | 991daeb13d70895241d56a8a968ed54b59e45fbb | [] | no_license | andreihaivas6/University | 9354a0f2208b32ffd259d093fea2b4ea56d62a54 | dc24608cffce80cd4b285d586747cb5f12f618f9 | refs/heads/master | 2023-06-16T15:56:21.373371 | 2021-07-11T23:24:46 | 2021-07-11T23:24:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,843 | py |
import random
import time
import copy
MOD = 1000000007
def pow_mod(val, pow, mod):
if pow == 0:
return 1
if pow % 2 == 1:
return (val * pow_mod((val * val) % mod, pow // 2, mod)) % mod
return pow_mod((val * val) % mod, pow // 2, mod)
pow_31 = [pow_mod(31, i, MOD) for i in range(1, 7)]
... | [
"alexoloieri2014@gmail.com"
] | alexoloieri2014@gmail.com |
4a98bbe875ea92033cf4104a4afb702dc69a4f41 | 8873755db1c83c077921f13dc2ce2af54326861c | /neuralNetwork.py | da687d60ac4250d1f9c600f7fa3c459ce1933f36 | [] | no_license | sgandhi101/TSLA_Prediction | 72de42c18a505e3e083329099655e45460472599 | cc5f664d302c1e1d421e96d3d89655cbc79b178b | refs/heads/master | 2023-01-22T01:52:25.138625 | 2020-11-30T19:05:09 | 2020-11-30T19:05:09 | 316,622,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | # DO *NOT* RUN ON LOCAL COMPUTER, SEE NOTE BELOW BEFORE ATTEMPTING
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn.neural_network import MLPClassifier
from sklearn.metrics import classification_report, confusion_matrix, accuracy_sco... | [
"sugandhi@iu.edu"
] | sugandhi@iu.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.