blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
1c66ccb80383feeee96b3fb492ff63be1a67a796
f1a6726105c414e394470c6c3846c16ac0fb53d9
/content_management_portal/tests/interactors/test_question_interactor.py
fcdf93e13c0be613b4560b3ac19da31f859ac057
[]
no_license
srinivasukotipalli/content_management_portal
9496f80db911e09977ec7a69fd20950a3ec837d8
462272cb1f175f69711ac77d20c65b750dc0a139
refs/heads/master
2022-10-20T02:39:14.235923
2020-06-09T04:09:56
2020-06-09T04:09:56
269,610,340
0
0
null
null
null
null
UTF-8
Python
false
false
3,352
py
import pytest from django_swagger_utils.drf_server.exceptions import NotFound from unittest.mock import create_autospec from content_management_portal.constants.enums import TextType from content_management_portal.interactors.storages.storage_interface \ import StorageInterface from content_management_portal.inter...
[ "srinivasktpl122@gmail.com" ]
srinivasktpl122@gmail.com
6d2d789d8d362370753b294e203208f455a2619a
8744fa436516097b7cc283ecc79faa1fe44ea513
/test2.py
0be4d1e9ea7d8b18e00bb40a412d14496732c7e4
[]
no_license
SsomyaA/WebScrap_Naukri
ba9ece7cc139c821f4024fe9ae9620ad0e0a435e
93f9a1a2c7142bd539c278e93424987910ac17d5
refs/heads/master
2022-02-22T02:31:14.237420
2019-08-06T14:27:28
2019-08-06T14:27:28
198,096,460
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
import xlsxwriter Wb = xlsxwriter.Workbook('arrays' + str(1) +'.xlsx') Ws = Wb.add_worksheet() array = [['a1', 'a2', 'a3'], ['a4', 'a5', 'a6'], ['a7', 'a8', 'a9'], ['a10', 'a11', 'a12', 'a13', 'a14']] row = len(array) for row in range(row): Ws.write_row(row, 0, array[row]) Wb.close...
[ "somya.kec@gmail.com" ]
somya.kec@gmail.com
a337213d15591a67ac7e22f0bdfa4617c7dba0b6
9756229c6014524b7e32ceaa75be751d9c3c6f8b
/app/views/admin_view.py
1770186c756317423f78815ab90f87f2b597c634
[]
no_license
Flagchet/MSHP-CTF
bd83e72a2523120446b42a33a0cdd2e2d8cd4909
5abf4a9e78f16c401a19d1f057f758a0dc5151c6
refs/heads/master
2020-12-02T10:03:56.559182
2017-07-03T07:07:31
2017-07-03T07:07:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
752
py
from flask import redirect from flask import session from app import app, admin, db from app.models.db_models import User, Task, SolvedTask, Contest, ContestTask from flask_admin.contrib.sqla import ModelView class MyModelView(ModelView): def is_accessible(self): print(session) return session['lo...
[ "johnnovikov0@gmail.com" ]
johnnovikov0@gmail.com
a1255a1d1a6c6b8b8eb660a4ddf801259e1f4fa5
fe19923be5086e6ba68b7809ba77093e82fc271c
/p2.py
bbf7a5a8d8bae15bb4030c86997bed47b328559a
[]
no_license
ps-star-empire/jenkins_python
44ab0405150b3f97274bb61e7d2f593997a3d1df
23056e089d6959edcd7735ab10fa321c71d0c94f
refs/heads/master
2023-01-05T11:52:41.731867
2020-10-27T14:10:58
2020-10-27T14:10:58
307,921,944
0
0
null
null
null
null
UTF-8
Python
false
false
37
py
Welocme the world of git and jenkins
[ "you@example.com" ]
you@example.com
e6fb318626c221366a806c2cf1985fa2cb88e345
a8378aa5cc4b706e058a9599ce89def6e6045e49
/cash/urls.py
ae77c05f9b3dfedcac0be17cb2c55bf19ec44f0b
[]
no_license
khigor777/cash
cb7bf0d95478311d0b1a708be9ea5da44f719ece
1f7b16021cfd8e2c68de37c20850d2531332847e
refs/heads/master
2021-01-20T19:19:58.658497
2016-06-06T10:53:29
2016-06-06T10:53:29
60,447,049
0
0
null
null
null
null
UTF-8
Python
false
false
815
py
"""cash URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.9/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based ...
[ "khigor777@yandex.ru" ]
khigor777@yandex.ru
fea66616a93898ab80d6fdb57705917d225f9bce
8900db5096dcf2f8a758f6792cc7c8f2bc1d7785
/src/utils/cityscapes_gen_list.py
6d719fa98920814b922988780f38591598cf6c6c
[]
no_license
PeterZhouSZ/seg2vid
ca5d649a19c47b769fc243ef5da4f95e965c42a9
306ca254ac30620afe48767d02b9cf3fecba1194
refs/heads/master
2020-06-01T19:50:22.737812
2019-03-26T11:37:58
2019-03-26T11:37:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,084
py
import torch from torch.utils.data import Dataset, DataLoader import os import numpy as np import glob from tqdm import tqdm from multiprocessing.dummy import Pool as ThreadPool # image_root_dir = '/mnt/lustre/panjunting/video_generation/cityscapes/leftImg8bit/train_extra/*' # image_root_dir = '/mnt/lustre/panjunting/...
[ "panjunting@sensetime.com" ]
panjunting@sensetime.com
41223899ee36d16c57acd6cffe8eb09edef53345
b6389525ca18ed9d47f1ff7208469d2a105647a0
/esp32_00_MicroPyhtonCode/GPIOs/deep_sleep_external_0_esp32.py
4c97de91783d8f0709de0e0e4e68d4bff3357424
[]
no_license
Qu3d45/MicroPython_ESP32
f5d6f0587958b5bf3a78a106c5a085b17d847755
7f27fc2d6d5fcf46a45521366c43dd15e07a7aa0
refs/heads/master
2020-09-26T19:17:36.601210
2020-04-04T10:15:19
2020-04-04T10:15:19
226,323,418
1
3
null
null
null
null
UTF-8
Python
false
false
481
py
# Button: ESP32: # GND Add 10kOhm --> GND + GPIO4 # VCC --> 3V3 import machine import esp32 from machine import Pin from time import sleep wake1 = Pin(14, mode=Pin.IN) # level parameter can be: esp32.WAKEUP_ANY_HIGH or esp32.WAKEUP_ALL_LOW esp32.wake_on_ext0(pin=wake1, level=esp32.WAKEUP_AN...
[ "qu3d45@gmail.com" ]
qu3d45@gmail.com
e0339dd4ba3994af18657657533435c000618e27
f980929e94530c8276e24fb5be1b3d5fe2e4bc5a
/utility/drivermanager.py
ce2ea7009e3e862c4d8029798f542572a67a5d76
[]
no_license
arokiaanburaj/python_UI_automation
ae9a55019b5f00339dce773d2cd95f3efc0ddb85
cb57c61aa90c2fcf3651531a3ff298aec08d514d
refs/heads/master
2020-08-01T12:36:14.254048
2019-09-26T06:12:06
2019-09-26T06:12:06
210,998,779
0
1
null
null
null
null
UTF-8
Python
false
false
2,412
py
""" @author: Arokia Anburaj @email: arokiaanburaj@gmail.com @date: 12-Jul-2015 """ import logging import unittest from selenium import webdriver logging.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p', level=logging.INFO) import sys, os class Drive...
[ "arokiaanburaj@gmail.com" ]
arokiaanburaj@gmail.com
1c9361f16d3fe65ca23f48b2d65c9d11236c073c
985267e31099fd72d7f6bcc52435e266bec41c2b
/mikaponics/account/serializers/logout_serializers.py
c606706d27bf0461997158c8ca7c047c116772af
[ "BSD-3-Clause" ]
permissive
mikaponics/mikaponics-back
32d2e9a159876592b1c437bc3118165b12478995
98e1ff8bab7dda3492e5ff637bf5aafd111c840c
refs/heads/master
2022-12-09T23:59:11.612473
2019-07-13T01:16:32
2019-07-13T01:16:32
175,534,652
4
1
BSD-3-Clause
2022-11-22T03:45:09
2019-03-14T02:35:19
Python
UTF-8
Python
false
false
1,090
py
# -*- coding: utf-8 -*- from django.contrib.auth.models import Group from django.contrib.auth import authenticate from django.db.models import Q from django.shortcuts import get_object_or_404 from django.utils.translation import ugettext_lazy as _ from rest_framework import exceptions, serializers from rest_framework.r...
[ "bart@mikasoftware.com" ]
bart@mikasoftware.com
0380787ee55f00a58cad9c7029b5a1cb7924f779
d9befc41646bbf05232d065a75ed711d5b7111a5
/excercise/osmodules.py
69677d50d831b4ed7b158e47c47b7390c1344708
[]
no_license
sanketkothiya/python-programe
aae170720bfe0a80edd2c190ec01efd0f99b9e12
e0638ae530e537a5771d98be93414086ac2a2b06
refs/heads/master
2023-04-18T16:01:34.476070
2021-05-06T10:56:40
2021-05-06T10:56:40
364,875,055
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
import os # print(dir(os)) # print(os.getcwd()) # os.chdir("C://") # print(os.getcwd()) # f = open("harry.txt") print(os.listdir(os.getcwd())) # os.makedirs("This/that") # os.rename("harry.txt", "codewithharry.txt") # print(os.environ.get('Path')) # print(os.path.join("C:/", "/harry.txt")) # print(os.path.exists("C://...
[ "sanketkothiya53@gmail.com" ]
sanketkothiya53@gmail.com
958a92c3ed430284122abed4b7fbfff4ed8a891c
9a000fd5ae262210277934b381639844a316933b
/setup.py
b2883d345eb08d4b2df84b22c118a6a312578813
[ "Apache-2.0" ]
permissive
lelandlib/handout
0f0fb0c8a890799a004b8c31a41acd24b7c57a0a
c0476b838087930c04c2e528e8c335085f1de442
refs/heads/master
2023-04-06T08:08:59.002099
2019-08-08T03:33:25
2019-08-08T03:33:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
594
py
import setuptools setuptools.setup( name='handout', version='1.0.0', description='Turn Python scripts into handouts with Markdown and figures', url='http://github.com/danijar/handout', install_requires=[], extras_require={'media': ['imageio']}, packages=['handout'], package_data={'hand...
[ "mail@danijar.com" ]
mail@danijar.com
7b6b41631fdd479565383193200327c970580bcf
0aad4ba48f2fcdfbfac68db1dcf83592ad014141
/docker/yuanqu/Device/migrations/0035_project_users.py
d4d85e50d079e8966f8f0f47972a866741e9de6a
[]
no_license
cauckfgf/fullstack
d55f5640df4c8c5917f0b23b405422975f347bef
e398797d23b2ef1afd3605f5600a9c4dae8efec8
refs/heads/master
2021-07-17T10:49:21.211777
2020-04-09T14:16:54
2020-04-09T14:16:54
123,122,968
1
3
null
2020-03-23T13:55:05
2018-02-27T11:59:44
JavaScript
UTF-8
Python
false
false
674
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2019-11-18 12:19 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
[ "fgf@bimsheng.com" ]
fgf@bimsheng.com
2de2ff7631315fd28b7856999a20223f01a447c8
910f1159bd4e5feff35c7145771d66b28f08036c
/apps/users/migrations/0002_banner_emailverifyrecord.py
99eb4caaa8e44204319c3074eb704f740b619913
[]
no_license
chenhuihaha/MxOnline
f66cb1502e4ad5f5d8fd9fb76c28c2ea8f68e183
ebc9a141f1cd980fa2c78c0d1ab12748ee2f46ef
refs/heads/master
2020-08-31T19:36:34.461419
2019-11-08T12:04:11
2019-11-08T12:04:11
218,767,668
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2019-11-01 02:12 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.CreateMod...
[ "450358108@qq.com" ]
450358108@qq.com
0e6b31178c22e4725a9e8a5299e0bc30e50ab588
af3ce59f21f13f8bec46fc28895313fde3c1c4f6
/Task4.py
e9f002b519efc0b22e5fd04fcfaff215c42e1692
[]
no_license
yichen123/Algorithm_p0
8965f141bc907378899ce27779f7e7e6cbe545d8
76b4152950e1948ace7c4ff04d6c75b576da5c69
refs/heads/master
2020-05-16T21:56:04.270904
2019-04-26T13:26:59
2019-04-26T13:26:59
183,321,713
0
0
null
null
null
null
UTF-8
Python
false
false
1,694
py
""" Read file into texts and calls. It's ok if you don't understand how to read files. """ import csv with open('texts.csv', 'r') as f: reader = csv.reader(f) texts = list(reader) with open('calls.csv', 'r') as f: reader = csv.reader(f) calls = list(reader) """ TASK 4: The telephone company want to i...
[ "chenyi330@hotmail.com" ]
chenyi330@hotmail.com
7faf32885b34e41c6daad9a5f3c507c878277f42
773bb7e986841d68d0b61bd4310178c7d4bf9276
/contacts/migrations/0003_alter_contact_owner.py
f2bb563a8c2ebf986b686d01fb082c430b60748b
[]
no_license
Retr02332/Agenda_Contactos
4c01f2489ae522863c7718d7f8ff6e4ba334b484
45c167fb2cb9159509cb66e3e855eb745673e914
refs/heads/master
2023-05-08T13:42:22.034636
2021-06-03T02:58:17
2021-06-03T02:58:17
373,363,657
3
0
null
null
null
null
UTF-8
Python
false
false
580
py
# Generated by Django 3.2.2 on 2021-06-02 14:43 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('contacts', '0002_auto_20...
[ "bello.carlos@correounivalle.edu.co" ]
bello.carlos@correounivalle.edu.co
ee8f1edd0b62eb97599683f3f80c8eec5b03a92b
8b901d1d77b6939b4582a11501b921e0bf6106e2
/views.py
406b1ef417681570993f005a7bd4117f943bc1dc
[]
no_license
hmetua/UA-BDR
8db9a701b35d7f808f91811a79f5b2e42a7cc181
8ffec4f1eaec133584d754ea0eeab655be2b99f0
refs/heads/master
2023-04-30T15:48:44.710802
2021-05-16T22:27:56
2021-05-16T22:27:56
349,147,152
0
0
null
null
null
null
UTF-8
Python
false
false
6,937
py
from django.shortcuts import render from django.http import HttpResponse from monappli.models import MessageInfo,EmployeeEnron,DateEnvoi from django.db import connection # Create your views here. #def index(request): # return HttpResponse("<header> Accueil </header>") def accueil(request): return render(request,...
[ "noreply@github.com" ]
noreply@github.com
3f17da05a8aece307fb7389e2f06458db2e2a458
67acb613d10fec7c66cfcfda98f849e81218a2dc
/Lib/site-packages/state_machine_crawler/logger.py
cdc1dea8c457942986020f850ec45fc3eafd5c3e
[ "MIT" ]
permissive
gallrobert/Pyweek32-neverending
32e58ec63d8bd2e1a9d6166d078ddc4e6afcccf9
59659e0ded536e17b7450cbd234e6b50096c97b5
refs/heads/main
2023-08-01T04:46:03.437911
2021-09-20T13:48:36
2021-09-20T13:48:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,474
py
import sys import traceback class Color: RED = "\033[1;91m" GREEN = "\033[1;92m" BLUE = "\033[1;94m" NO_COLOR = "\033[0m" class Symbol: PASS = u"\u2713" FAIL = u"\u2717" UNKNOWN = "?" class StateLogger(object): def __init__(self, debug=False): self._debug = debug def ...
[ "root@localhost" ]
root@localhost
8a703d90bf6a6d184b2fbb50bde9b056ce571e27
f5ff0f4d44c9473452a92a5f6b0fd502a0d61e2e
/main.py
6179c28bc1f5a25471767e58005d23b58ed935d0
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
hutch-matt/var-MiT-TFKeras
65a3de5dd405cd44b501de37a04f0469bf3d92b2
94e4fd5307f9dae085e408ff19aa4dc6781b17b5
refs/heads/main
2023-02-16T14:42:42.478666
2021-01-06T18:53:56
2021-01-06T18:53:56
321,402,057
0
1
null
null
null
null
UTF-8
Python
false
false
5,110
py
# Copyright 2020, MIT Lincoln Laboratory # SPDX-License-Identifier: BSD-2-Clause import argparse import time import os import horovod.tensorflow.keras as hvd from utils import * if __name__ == '__main__': time_start = time.time() # Parse arguments parser = argparse.ArgumentParser() parser.add_arg...
[ "noreply@github.com" ]
noreply@github.com
f34a8d1493d1dccda6339e8c7dac90eeb8aa0ead
17358332cab8c2b17078af53453008f11e5cdcc8
/Code/Utils/fig_area.py
ba12f28f7c7f13fc2ab38173223ad5d5e7c542ad
[]
no_license
jakubwida/MasterThesis
7857a684897f827a576a1092014d32d8ba317c5d
8bc97cdb73fdbe3754beeddcc64a06870be48661
refs/heads/master
2020-06-16T11:36:51.531830
2019-09-13T06:43:56
2019-09-13T06:43:56
195,558,705
0
0
null
null
null
null
UTF-8
Python
false
false
1,638
py
import numpy as np import shapely from shapely.geometry import point from shapely.geometry import linestring from shapely import ops import matplotlib.pyplot as plt from descartes import PolygonPatch def split_disjoint(radiuses,positions): size = len(radiuses) collision_groups = [{i} for i in range(size)] for i in...
[ "jakub.wida.box@gmail.com" ]
jakub.wida.box@gmail.com
b394e36719b9e55f7e706baf6fae30445a66fa3d
cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45
/Personal/Developent/AjaxWithDjango/bin/django-admin.py
4e1e59e580a78fff0c5e6e5df8d28ccb987f3e29
[]
no_license
ProsenjitKumar/PycharmProjects
d90d0e7c2f4adc84e861c12a3fcb9174f15cde17
285692394581441ce7b706afa3b7af9e995f1c55
refs/heads/master
2022-12-13T01:09:55.408985
2019-05-08T02:21:47
2019-05-08T02:21:47
181,052,978
1
1
null
2022-12-08T02:31:17
2019-04-12T17:21:59
null
UTF-8
Python
false
false
168
py
#!/root/PycharmProjects/Developent/AjaxWithDjango/bin/python3 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "prosenjitearnkuar@gmail.com" ]
prosenjitearnkuar@gmail.com
7b353bbb14a0e2e0939e80efd3d9aead6c7940a4
b0de612c2f7d03399c0d02c5aaf858a72c9ad818
/armi/cli/gridGui.py
a1fc5254b325be2ea49a6af8e2eab5f663a17409
[ "GPL-1.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
wangcj05/armi
2007e7abf4b422caca0157fc4405b7f45fc6c118
8919afdfce75451b291e45ca1bc2e03c044c2090
refs/heads/master
2022-12-22T00:05:47.561722
2022-12-13T16:46:57
2022-12-13T16:46:57
277,868,987
0
0
Apache-2.0
2020-07-07T16:32:40
2020-07-07T16:32:39
null
UTF-8
Python
false
false
1,929
py
# Copyright 2019 TerraPower, 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 writi...
[ "noreply@github.com" ]
noreply@github.com
9a5efdde39fe2d4a9c80dde02c65c509f4afcf61
b72a2589aacacb10921cb3bfcfb23b853f92286d
/single_jeans.py
a7632e76888f7600935751412d8937754a6266ab
[]
no_license
Jonathanfreundlich/CuspCore_NIHAOtest
7d2257fec15eb983457302ae94d37ac7e39e9046
5d5bf6654e5e32cd5566b644023f38fb5a9e76f8
refs/heads/main
2023-03-27T23:20:35.479772
2021-03-30T12:28:01
2021-03-30T12:28:01
352,965,575
0
0
null
null
null
null
UTF-8
Python
false
false
9,195
py
# COMPARE (alpha+gamma-2beta)sigma_r^2 and Vc^2 from matplotlib.pylab import * G = 4.499753324353496e-06 # gravitational constant [kpc^3 Gyr^-2 Msun^-1] parsec=3.085677581e16 #m year=3.1557600e7 #s kms_to_kpcGyr=1/parsec*year*1e9 fontsize=20 legendsize=18 linewidth=2 linesize=5 component='d' rcParams['axes.linewidth...
[ "noreply@github.com" ]
noreply@github.com
3cc5a69c59fc3e2453bfc4a89635a7f329aff0e6
33a4dfa243eefe6f0b6c5cb522f77ff54b72060b
/website/settings.py
fcd0d89490e54cf1c9b0efdfcc3464e5b26e2c87
[]
no_license
hussamjarrar/blog2
ef7d86b10b7db51341dc46e5308f279d16c00150
cb654a01f157b505394aa68703b84003cc4bb38a
refs/heads/master
2021-05-15T11:38:45.541843
2017-10-25T13:07:45
2017-10-25T13:07:45
108,243,965
0
0
null
null
null
null
UTF-8
Python
false
false
3,174
py
""" Django settings for website project. Generated by 'django-admin startproject' using Django 1.11.6. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os...
[ "hoss646@gmaile.com" ]
hoss646@gmaile.com
5b017f7e867d09e7f141ac36f2038c60b4c5f071
5b392247faf8a59529bf4101c746883aa1bf58a5
/src/extra_apps/xadmin/plugins/filters.py
74fa41113e6d838ec2bb2400c031179d35c02f0a
[]
no_license
Kingvast/GmOnline
5d18343d03a54721c955d32b5bdb0d78e4aaa544
34497e0857cc62a967c04ed4627fc51bc751bb07
refs/heads/master
2022-12-09T22:40:38.814639
2022-03-20T17:23:46
2022-03-20T17:23:46
150,425,272
1
0
null
2022-12-08T05:13:47
2018-09-26T12:45:09
JavaScript
UTF-8
Python
false
false
10,772
py
import operator from future.utils import iteritems from xadmin import widgets from xadmin.plugins.utils import get_context_dict from django.contrib.admin.utils import get_fields_from_path, lookup_needs_distinct from django.core.exceptions import SuspiciousOperation, ImproperlyConfigured, ValidationError from django.db...
[ "kingvast.wh@gmail.com" ]
kingvast.wh@gmail.com
bfeb340af283eb04f5529820d56d98a9732a5174
3cd35c16392d865d448cc55ae4a28cc3f2011120
/apimadetest/apitest/views.py
1964a67caf76c2a27a870e6b69436f2ee0763acc
[]
no_license
testshiling/apimadetest
d91e37fe4856f9f05a7741b0fead161e77a5c18c
d2e0fd4d04557248de90b0981ff0b6c2b7e5b6ec
refs/heads/master
2020-05-18T16:53:26.168897
2019-12-06T14:38:43
2019-12-06T14:38:43
184,537,222
0
0
null
null
null
null
UTF-8
Python
false
false
10,230
py
from django.shortcuts import render,HttpResponse from apitest.models import * import json from rest_framework import permissions from rest_framework.response import Response from rest_framework.decorators import api_view, permission_classes from django.views.decorators.csrf import csrf_exempt from django.contrib.auth.m...
[ "noreply@github.com" ]
noreply@github.com
b9ce345218a56559b1c0e2d0548939b30672a0b7
43b86533a02d9dc975808284bcf8662adf188738
/catalog/admin.py
d4e88b9e200698ae60b30cf29f1695565ad2ac7a
[]
no_license
AltFlexe/Django_Website
6248c441ad71fbb312ec77b31e99b4b495754fdd
1dcd72dd9e414dc9e2f1c35304d1fbac9ca37cdd
refs/heads/master
2023-05-30T02:33:32.503387
2021-06-20T18:18:16
2021-06-20T18:18:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,095
py
from django.contrib import admin from .models import Author, Genre, Book, BookInstance # admin.site.register(Book) # admin.site.register(Author) admin.site.register(Genre) # admin.site.register(BookInstance) # Register your models here. # Define the admin class class AuthorAdmin(admin.ModelAdmin): list_display...
[ "denis.uvarov135@yandex.ru" ]
denis.uvarov135@yandex.ru
1c1378d18703f296f0dd3b18faca5c91b2c7ce25
0d6b7158479642b4e663bd68ef13d9e7d5dec528
/E_Helth/E_Helth/settings.py
bcc2173b166f278daaa2ffafcbc5f906eca9dc11
[]
no_license
GMurali2020/Python_projects
994cd9972414a73b128774e96156586985bdbb8e
20a24d1fd20149f41f388efb96fe2157eff62c16
refs/heads/master
2023-01-28T13:19:32.432190
2020-12-12T10:35:04
2020-12-12T10:35:04
285,795,524
0
0
null
null
null
null
UTF-8
Python
false
false
3,176
py
""" Django settings for E_Helth project. Generated by 'django-admin startproject' using Django 2.2.4. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
[ "69345474+Muralidevoloper@users.noreply.github.com" ]
69345474+Muralidevoloper@users.noreply.github.com
19fa85186e9ff41bb0bc2d9c93867717f0417bdf
47ece9868ababa1aa49adb529d305cf406ddcd1a
/STracker/wsgi.py
5212c3a016a4b8a9d9fca26603ab15fdc5263a38
[]
no_license
skonstantinov89/STracker
e6d1f3abc3cb1559c80602219ed93e807c532a28
6fb94347d476be7205845b66734490ee8c12a963
refs/heads/master
2021-01-10T03:22:31.747369
2016-01-25T14:59:55
2016-01-25T14:59:55
48,292,854
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" WSGI config for STracker project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
[ "stoyan.konstantinov@directservices.bg" ]
stoyan.konstantinov@directservices.bg
5665f714e62a89b8c8766794c9e419937da7ce59
ca9da73975aa686a5ec68b7b761e47da2070ee04
/main.py
3b333678a542433d219d08148910bd7ae1e13dd6
[]
no_license
RajuDhl/iclan
2977d8179f5d0a7003bcecc5dbbd8fa169934ab8
56f00a5acd05de51ccf14bd4458b9981921baadb
refs/heads/master
2023-07-30T05:15:48.351495
2021-09-15T13:58:52
2021-09-15T13:58:52
399,783,110
0
0
null
2021-09-15T13:58:53
2021-08-25T10:46:24
JavaScript
UTF-8
Python
false
false
441
py
from flask import render_template, Flask, request main = Flask(__name__) @main.route('/') def home(): return render_template('index.html') @main.route('/<url>') def redirect(url): path = request.path url = path[1:len(path)] file = f'{url}.html' try: return render_template(file) exce...
[ "dahalraju55@gmail.com" ]
dahalraju55@gmail.com
bcae894964be340bd41e97249039c84ee1b2704f
99a43a3eaeaa6d6f2175825ca7fac12d0832c0d5
/src/experiments/base_trainer.py
f4b55885a2054868e0315623e7bd6a3de775baed
[ "MIT" ]
permissive
gorinars/VQ-VAE-Speech
2a4eebc096fc8e78e831a4515591ceaa136a5453
60398f03eb129195bce402a423ace8cca8995f3c
refs/heads/master
2020-12-09T23:59:22.565008
2019-11-17T02:13:19
2019-11-17T02:13:19
233,451,368
0
0
null
2020-01-12T20:06:43
2020-01-12T20:06:42
null
UTF-8
Python
false
false
5,937
py
##################################################################################### # MIT License # # # # Copyright (C) 2019 Charly Lamothe ...
[ "charly.lamothe@sfr.fr" ]
charly.lamothe@sfr.fr
d9993d3d63705e88b6e3e42b91894d35e509f4d2
e33fce460fb64b7271f85adcf6b08ba0e9c4d2b7
/setup.py
5e115a8985b58f1668ba68db35291eb658a71485
[]
no_license
sabyasachi-biswas/vault_setup_file
fa5916c8bd00cd3ae9b5afd859efd85dcd439de6
fbcba061ed4d3a1b80106cc68d274dd1c839ea32
refs/heads/main
2023-03-28T12:12:22.181648
2021-03-30T05:07:08
2021-03-30T05:07:08
352,876,209
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
import sqlite3 from tkinter import filedialog import os conn = sqlite3.connect('user_data.db') c = conn.cursor() c.execute("""CREATE TABLE user ( uid integer NOT NULL PRIMARY KEY, name string, username string, pwd string )""") c.execute("""CREATE TABLE vault_config ( uid integer NO...
[ "noreply@github.com" ]
noreply@github.com
79f303f6fae45d041e55f7fec4c9a8757afb5b8c
b47c3cb57fcd195197605d6753dbbed216b71a78
/ggd/finance/StkQuoteCollector.py
953093934e7641a2390ae97f4d9253499c69a8de
[]
no_license
gauciouss/python-finance
b9c2aca0c5bef1d1505d97f0f79cd2d764403727
d66627e4605d7815fdff77c5d9eb2fd20819e9a8
refs/heads/master
2021-09-16T00:20:41.891655
2018-06-13T18:51:34
2018-06-13T18:51:34
112,549,605
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
# -*- encoding: utf8-*- from ggd.log.logger import * from ggd.net.httpUtil import * from bs4 import BeautifulSoup class StkQuoteCollector: logger = None httpUtil = None url = "http://www.twse.com.tw/exchangeReport/STOCK_DAY?response=json&date={}&stockNo={}" def __init__(self): self.logger = L...
[ "gauciouss@gmail.com" ]
gauciouss@gmail.com
78dab4d93bba9a1921cc5afc998d0db52088e38f
9b846f4a692eb04ee9604d0c6ef66805f2dc8d47
/7 kyu/square_every_digit.py
febf656b7f52103d4906f7f3d8e1410baebd24bd
[]
no_license
Juozapaitis/CodeWars
93dc4b121d7b1b03650b8d52dc67775c29a2d87b
3ebeb5a6124757c3248d686fdd8477f735c69098
refs/heads/main
2023-08-20T23:38:58.578269
2021-10-20T12:36:41
2021-10-20T12:36:41
381,331,907
0
0
null
null
null
null
UTF-8
Python
false
false
118
py
def square_digits(num): ans = [int(digit) ** 2 for digit in str(num)] return int(''.join(str(v) for v in ans))
[ "justasjuozapaitis65@gmail.com" ]
justasjuozapaitis65@gmail.com
306c316a327c0c4f171d3650f76eb33d56e2d348
280a23e1910f21f9ff203858db56530dc8a7d33a
/Code/Modules/plot_network.py
dec39cd864e2cd2014b811ea61ea4a92fe1d86fc
[]
no_license
culuc/Network-Science-Project
08bac838d03c1d3054d9d28f5546e9f568e9abce
d63b689c471be0b0c730e3a6dd780703ba90a389
refs/heads/master
2023-04-10T12:58:40.002880
2021-04-09T16:04:08
2021-04-09T16:04:08
356,321,445
0
0
null
null
null
null
UTF-8
Python
false
false
1,822
py
from matplotlib import pyplot as plt from mpl_toolkits.basemap import Basemap import networkx as nx # Create basemap of region Germany to draw nettwork onto def draw(G, path=None): plt.figure(figsize=(6, 12)) m = Basemap( projection='merc', llcrnrlon=5, llcrnrlat=46, ...
[ "luc.pascal.seiler@gmail.com" ]
luc.pascal.seiler@gmail.com
1961cabeffd309cf7edbba6e5a9c0554c8869b31
bcc2244d3115866a10d0fe8cdd4d1a2a6764a535
/user/migrations/0010_acknowledgment.py
13238d035b4b781ffe5764d286838a4e91913e7d
[]
no_license
Hardik-Dharmik/Online_Notice_Dashboard
037b66bbce1d106ce70c3988f75ae334052431c3
313dd61e606917a4530b1232f81a173daeb84c2b
refs/heads/master
2023-08-27T19:18:58.757947
2021-10-12T09:07:09
2021-10-12T09:07:09
397,969,375
0
1
null
null
null
null
UTF-8
Python
false
false
795
py
# Generated by Django 3.2.5 on 2021-09-23 11:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Admin', '0004_addnotice_year'), ('user', '0009_profile_notice'), ] operations = [ migrations.Create...
[ "hardikdharmik94@gmail.com" ]
hardikdharmik94@gmail.com
6f390581974497e18baa65474194a2178635ca3c
c80804bc7ebb123dc3bb65c1dd5188274555819c
/workflow/parametersGridSearch.py
e612e092d512bffceaf0f011948cdad258bd57ec
[]
no_license
vagabundoo/predicting_financial_markets_deep_learning
8c195e1ab6682ee2eae106df153acb3c3021d551
5dd4bc76167816fb8fc7fe9b8224711a7265e100
refs/heads/master
2021-02-15T08:34:49.289504
2020-03-12T22:43:34
2020-03-12T22:43:34
244,882,662
1
0
null
null
null
null
UTF-8
Python
false
false
130
py
ltsm_layer1 = [50, 100, 150, 200] dropout1 = [0.1, 0.2, 0.3, 0.4] ltsm_layer2 = [25, 50, 100, 150] dropout2 = [0.1, 0.2, 0.3, 0.4]
[ "evillamorm@gmail.com" ]
evillamorm@gmail.com
9fb9df422087935d4d24a18abd078bebe32de083
4ce4b441069a2420775d6e6f293fd2a208970e96
/jibreel/orcrider.py
a0b385d2cb11d9b46b40b03cd55a114d94298a72
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmrcastillo/python-simple-game
740358f1a6126b06a774013466dedb32b4291ee8
0f08781e2f8cb0b4a4cfbac32ac568c1a2bb88a9
refs/heads/master
2022-12-12T04:16:27.831556
2019-09-18T12:20:42
2019-09-18T12:20:42
209,301,943
0
0
NOASSERTION
2022-12-08T06:15:18
2019-09-18T12:23:06
Python
UTF-8
Python
false
false
547
py
from __future__ import print_function from gameunit import AbstractGameUnit class OrcRider(AbstractGameUnit): """ Class that represents the game character Orc Rider """ def __init__(self, name=' '): super().__init__(name=name) self.max_hp = 30 self.health_meter = self.max_hp...
[ "jm.cass20@gmail.com" ]
jm.cass20@gmail.com
5c7264287aad4d842ddf8fb0386e9e321920d4af
7e1cf6c9ebf64536e3b0a2cadc4964cba6c6426e
/searchdb_coocurence/migrations/0006_coocurence_data_base.py
15c27f490be94ca0310880b5ce12d785e5522cef
[]
no_license
steven0seagal/PhD-project
afcacf01920c8f4ad3c986107776b86bc80976e7
6e4d30c03c499eed1ad227d9844ace3925c2f807
refs/heads/master
2022-12-01T21:38:57.085752
2020-06-09T23:13:42
2020-06-09T23:13:42
229,573,242
0
1
null
2022-11-22T04:38:09
2019-12-22T13:38:28
JavaScript
UTF-8
Python
false
false
416
py
# Generated by Django 2.1.7 on 2019-04-19 10:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('searchdb_coocurence', '0005_auto_20190315_1900'), ] operations = [ migrations.AddField( model_name='coocurence', nam...
[ "bartosz.piotr.baranowski@gmailo.com" ]
bartosz.piotr.baranowski@gmailo.com
e8b0a577d9eae7c0d08d3202b3281bb0e0e3b37a
9e85514daac857cdf3f44fae6b3aecc7b1b4e387
/DJANGO_PROJ/mysite/mysite/urls.py
de6e4e5d27d356019e354820bca91341d56a2908
[]
no_license
hstets/pyDjanHockeyApp
56cee764050cee220b23db08a2dbb8b95ab223b3
bf214426fc4f9aa20a9916e410ea7202e3d7c4e7
refs/heads/master
2020-04-11T23:49:11.899441
2018-12-17T19:41:50
2018-12-17T19:41:50
162,180,593
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
"""mysite URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/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') Clas...
[ "noreply@github.com" ]
noreply@github.com
63e3f9b2072c80383c383c6d242276f41bb03b64
183898b5781b596c22ad8fd0dd922f3b4bac261f
/register/forms.py
52497c113fd2d80e34fe05a4faff6841601af181
[]
no_license
prithahowladar/Apply-Form
10a910cc8ab3a1fded0d23c4b6c25b7dd17e094c
f5fe5ed7ff1784ce32175432ea53df4562a18958
refs/heads/master
2022-09-26T00:27:10.068054
2020-05-30T15:26:08
2020-05-30T15:26:08
255,154,417
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User from .models import UserInfo class SignUpForm(UserCreationForm): class Meta: model = User fields = ('username', 'password1', 'password2', ) class UserInfoForm(forms.ModelFo...
[ "howladarpritha@gmail.com" ]
howladarpritha@gmail.com
ebb7e458bc8013bdf2ff470f71c02b21b7215cd5
115b8345fa6db4ee2df004427451ae1c60723f34
/Registraion_testElastix.py
711b1b7ab669428ea04a573af8da7b619b378a27
[]
no_license
anouk610/CapitaSelecta_8DM20
c3923ae4c74efc342e5c6c94a5b1ee7e9948b6ed
d131d9855a0e0c03cb1f30f0f5b13bc38eb0c06f
refs/heads/master
2023-03-02T09:12:49.390989
2021-02-08T13:58:06
2021-02-08T13:58:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,687
py
# -*- coding: utf-8 -*- """ Created on Tue Feb 2 11:37:07 2021 @author: s169369 """ import elastix import os import imageio import matplotlib.pyplot as plt import SimpleITK as sitk from cv2 import * import numpy as np from scrollview import ScrollView import rawpy import imageio ELASTIX_PATH = os.path.join(r'C:\Us...
[ "63597553+JulievPagee@users.noreply.github.com" ]
63597553+JulievPagee@users.noreply.github.com
af6d9f15c3dba17c199ca66803fe38480347b962
cc096d321ab5c6abf54fdcea67f10e77cd02dfde
/flex-backend/pypy/translator/flex/examples/sound/sound.py
fb3dc79b00c8ad0b3b9b614b18195db2ea5b34c9
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
limweb/flex-pypy
310bd8fcd6a9ddc01c0b14a92f0298d0ae3aabd2
05aeeda183babdac80f9c10fca41e3fb1a272ccb
refs/heads/master
2021-01-19T22:10:56.654997
2008-03-19T23:51:59
2008-03-19T23:51:59
32,463,309
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
from pypy.translator.flex.modules.flex import * from pypy.rpython.ootypesystem.bltregistry import BasicExternal, MethodDesc class Sonido(): def load_sound(self, w): s = Sound() r = newURLRequest("sal.mp3") s.load(r) s.play() def flash_main( x=1 ): w = castToWindow( x ) o =...
[ "facundobatista@dbd81ab4-9648-0410-a770-9b81666e587d" ]
facundobatista@dbd81ab4-9648-0410-a770-9b81666e587d
d13f51d530dfdbf41575380cd547755b2bc4a010
3656b052aba0c7673e200b286ea211a63ab90584
/hw1/ab8541_hw1_q3.py
13a84e82a14dcb8d3b8559e6fda3eb1914300e2c
[]
no_license
alisha-bhatia/1134
20bf6c3dd330faf42947899f0af72c719c310169
87c4b9178a475f60a84a81bfbb58838f3daf48f3
refs/heads/master
2022-11-10T21:22:22.011055
2020-07-03T21:06:06
2020-07-03T21:06:06
274,279,085
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
#3a: def squares_sum(n): total = 0 for x in range(1,n+1): total = total+ x**2 return total #3b sum(k*k for k in range(3)) #3c def odd_squares_sum(n): total = 0 for y in range(1,n+1): if (y%2==1): total = total+y return total def main(): y = squares_sum(3) pr...
[ "noreply@github.com" ]
noreply@github.com
7ba6a228cb2e5dfcd05ea45a34e1bf43bccabd08
f811244ce15308f2e2bc4509e0fe18025a06ff87
/tool/autoPlatform/tools/excel_parse_isp/rules.py
8444c61832bed2a0f806bbb4537d762cb5a75819
[]
no_license
autoCore/autoTest
cb21118374d69897ee9a363921fce4ff230bfb4c
6b778aafca1fb170201813c4a1fda315fc6322ef
refs/heads/master
2023-06-12T04:51:22.266677
2021-07-01T06:42:03
2021-07-01T06:42:03
112,465,116
7
2
null
null
null
null
UTF-8
Python
false
false
1,641
py
#! /usr/bin/env python class Rule: def action(self, block, handler): handler.do(self.type) return True class BaseRule(Rule): type = 'capbase' def condition(self, block): for row in block: try: row[0] + '' except: ...
[ "binwu@asrmicro.com" ]
binwu@asrmicro.com
cbc4517dfd261c43287ac8afc77191cb726c026f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02595/s629865346.py
d0a82f085823894f709114df5b0bba8496dd8d7c
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
237
py
n,d = [int(x) for x in input().split()] x = [] y = [] for i in range(n): x1,y1 = [int(x) for x in input().split()] x.append(x1) y.append(y1) c = 0 for i in range(n): s = x[i] ** 2 + y[i] ** 2 if s <= d ** 2: c += 1 print(c)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
77425464532646f7e160d2ca347be9551fc737b0
c45b34c191c4f89710a937ddf82df063e701c752
/apps/accounts/migrations/0001_initial.py
961340272bb7bc485373f0e35c2a59216d3f3855
[]
no_license
kzh3ka/junior_django_todo
822aac5278304d300543fcfa5f05c1c43c0449d5
deb5f17e3a428e2391e57f5d76ed0da5bb583dd6
refs/heads/master
2023-08-04T09:26:10.909727
2021-09-04T19:50:40
2021-09-10T13:59:21
403,142,659
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
# Generated by Django 3.2.6 on 2021-09-04 19:34 from django.conf import settings from django.db import migrations def create_user(apps, schema): User = apps.get_model(settings.AUTH_USER_MODEL) User.objects.create_superuser("admin", "admin@gmail.com", "1") User.objects.create_superuser("user", "user@gmail...
[ "kzh3ka@gmail.com" ]
kzh3ka@gmail.com
842c064847ec0ecf83a8ed3fdbe0570b18e385f0
6cf4783e44837b05163beed2ee10e19c71b51bce
/oddnumber.py
6a13acb8c3556e1c76469028d18b09ee2031cb0c
[]
no_license
bindurathod/Assignment5
52bd5cf57fd4e47a0faae3b31fbf96724708838d
7c37545b4113120ed5b2efdcd76edd153c9db7b9
refs/heads/main
2023-01-12T00:52:36.828637
2020-11-05T05:40:54
2020-11-05T05:40:54
310,200,937
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
def odd_numb(num): if num%2==0: print(num, "odd") else: print(num, "odd") odd_numb(13)
[ "noreply@github.com" ]
noreply@github.com
d0a6b55a1a10b91a7089c1e11d5153948f254604
f8f20f48de71862722615ad1ce4d40de4d4f9024
/python/image_proc/calibrate_kinect_extrinsics.py
67f885a0c2105c5bd6eebc98bcf1729a67e49302
[]
no_license
rll/sushichallenge
33cdc7b7bcdbc3a9b42e03eff9e46103ce58404b
372345361dc44e785c9b98d538373b33e7174060
refs/heads/master
2016-09-05T12:53:16.754195
2012-05-21T23:54:36
2012-05-21T23:54:36
4,010,735
1
1
null
null
null
null
UTF-8
Python
false
false
2,067
py
import numpy as np import cv2 import calibration import chessboards from rave.openrave_kinematics import RaveRobot from os.path import join import transformations import roslib;roslib.load_manifest('sensor_msgs') import pcl_utils import cPickle #rr = RaveRobot() DATA_DIR = "/home/joschu/Data/calib" bgr_kinects = np....
[ "team2@prj1.(none)" ]
team2@prj1.(none)
36b959d058b43bfcac23c454c8c2e6319756bb85
8b6139ff207c20dc9b3dc13d26f4cb73c54c59e7
/Crud2/env/bin/django-admin
68db5ad754532a5f2c4a997db3799dc314cdb0ca
[]
no_license
CarolinaPardoFuquen/Crud
52ecef0353ed8c53087fb3e2cb8db37b3d83deae
beedf204fe7c5d7000c15e3c00e9cf2b5d4c6834
refs/heads/master
2023-04-28T01:42:00.088982
2020-01-22T23:30:05
2020-01-22T23:30:05
235,474,924
0
2
null
2023-04-21T20:45:29
2020-01-22T01:21:07
JavaScript
UTF-8
Python
false
false
310
#!/home/estudiante/Escritorio/PruebaIngreso/Crud2/env/bin/python3 # -*- coding: utf-8 -*- import re import sys from django.core.management import execute_from_command_line if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(execute_from_command_line())
[ "carolinapardofuquen@gmail.com" ]
carolinapardofuquen@gmail.com
764a1510383c384620c7766d9c7b9359b1433dc0
14828da26a31b618bc0e87b27853cc46f7474b4a
/mysite copy/polls/models.py
3f2999a5ce99f8025786316ce9df14aaa395ee6d
[]
no_license
ayush-mayur/django-am
089e680005bce2a066e0e9343c1ad936c26c35df
245d32802dc4b34e8af10e3a3eed2cec1ee97b8c
refs/heads/main
2023-03-06T22:11:22.844395
2021-02-21T09:00:41
2021-02-21T09:00:41
340,819,288
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
import datetime from django.db import models from django.utils import timezone class Question(models.Model): question_text = models.CharField(max_length=200) pub_date = models.DateTimeField('date published') def __str__(self): return self.question_text def was_published_recently(self): ...
[ "am3nz@virginia.edu" ]
am3nz@virginia.edu
eb7c63fd6a53470763db9d871f3bc50924492016
ba5a6f1b6776c3503a4e6f486795ffd62a11810b
/Loja/cliente/views.py
5fbfdf60a07d138a5b63653a43a384160f5b37d5
[]
no_license
AmaroCesa/intmed_test
9e4e78a0dc7eb989b797ca9b5c56d94588d08193
1e59a365298ad33216aad5635b6df3fe98749c7c
refs/heads/master
2021-06-13T06:44:29.943526
2019-05-27T02:08:47
2019-05-27T02:08:47
155,141,625
0
0
null
2021-06-10T20:56:24
2018-10-29T02:44:41
JavaScript
UTF-8
Python
false
false
1,232
py
from django.shortcuts import render # Create your views here. from rest_framework import generics from rest_framework import viewsets from rest_framework import serializers from rest_framework.decorators import list_route from rest_framework.decorators import permission_classes from rest_framework.permissions import ...
[ "amaro.txt@gmail.com" ]
amaro.txt@gmail.com
d32c8ea081b171bd68dfa57d848475b5c2f3164c
426961e942392584e37e703246b14b2290248057
/scikit_learn/train_test_split.py
fc799ca6e52bdad703c63afb47f92fe115151459
[]
no_license
chingandy/Data-Science-with-Python
34beb6e965feb98ef5f3626d1ba1d46faee91796
5d58c0d63231ad996ff500400a557f43a7fc6937
refs/heads/master
2021-01-24T16:39:42.873489
2018-03-20T09:48:53
2018-03-20T09:48:53
123,205,952
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
# Import necessary modules from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error from sklearn.model_selection import train_test_split # Create training and test sets X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.3, random_state= 42) # Create the reg...
[ "chingandywu@gmail.com" ]
chingandywu@gmail.com
32d50e2a5e620f4e704d3a8bc918a444a27385dc
d5e8b4b1e0b4ffecc248221cd15628e62ac65ef9
/euclid.py
86aa9ca5d9e866a811d909926e5dbb4503088eca
[]
no_license
thangvynam/simulation-math-python
897ef9c5d3590b8f08d8d5496330961974cacb4a
36ca6014f5fed8043dc1fcc4d09cd429e0f961f4
refs/heads/master
2023-02-07T10:49:05.283434
2018-05-26T08:24:27
2018-05-26T08:24:27
134,943,140
1
0
null
null
null
null
UTF-8
Python
false
false
1,024
py
a = input('Enter a: ') b = input('Enter b: ') a=int(a) b=int(b) #Euclid def ucln(a, b): while b != 0: r = a % b a = b b = r return a def gcd_extend(a,b): x=1 y=0 x1=0 y1=1 while (b!=0): q=a//b r = a%b a=b b=r x2=x-x1*q y2=y-y1*q x=x1 y=y1 x1=x2 y1=y2 print("x = ",x) print("y = ",y) ...
[ "thangvynam1808@gmail.com" ]
thangvynam1808@gmail.com
ba35438e1d6b05abc413431836945ef3ca569972
9888a22651ceb0f36f987aa4f7c8ed4c02e1862d
/src/model/connection/server_connection.py
d0894937a0efbb617cb8e3e988fbf68ffd086680
[ "MIT" ]
permissive
jtkorhonen/mtms-console
7359be1db54e67b9fc604a0be16e5d66ad18c02c
8861a8938ce0f1cc213ad1f85c5f5a6606e37f29
refs/heads/main
2023-03-18T22:02:27.746506
2021-03-10T12:29:46
2021-03-10T12:29:46
345,942,485
0
0
MIT
2021-03-10T12:28:16
2021-03-09T08:56:09
Python
UTF-8
Python
false
false
4,982
py
#!/bin/env python3 # -*- coding: utf-8 -*- from __future__ import annotations import logging from enum import Enum from typing import Optional, Callable import asyncio from .helpers import validate_url logger = logging.getLogger(__name__) class ConnectionStatus(Enum): UNDEFINED = -1 DISCONNECTED = 0 CONN...
[ "noreply@github.com" ]
noreply@github.com
8a2c72c03696bed7a71a0ccf77f70d54cf3b7c60
e0332fff3931ada2a491990237d5721e04292cdb
/qiskit/circuit/library/template_circuits/toffoli/template_9d_9.py
9a269ed985714606603b1a1b144ecfc6e5be81b3
[ "Apache-2.0" ]
permissive
AustinGilliam/qiskit-terra
b5ab851cab94e1222c008bc3a5696a6981fd3f99
a4caec885fe5ff013092979ee00d5cdd9c26e848
refs/heads/master
2022-12-21T04:47:01.370948
2020-09-21T09:17:22
2020-09-21T09:17:22
283,307,467
0
0
Apache-2.0
2020-07-28T19:25:11
2020-07-28T19:25:11
null
UTF-8
Python
false
false
1,641
py
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modif...
[ "noreply@github.com" ]
noreply@github.com
5918738529e12ee8429b809d031b11311b8647cb
bef1177d3c9f5a6484d80139365f6c994c985cee
/quantum classifier/cin/dataset/iris.py
a2007cada090242da36e38b5fb418a02a1a844e8
[]
no_license
israelferrazaraujo/dcsp
6c32272959d1823d13d38fc10779c706309907eb
44177a73417f783a7ef9bebe916caf7db1fb8ef1
refs/heads/master
2023-02-27T04:53:43.727026
2021-02-06T10:06:08
2021-02-06T10:06:08
285,107,847
1
0
null
2020-08-04T21:49:02
2020-08-04T21:49:02
null
UTF-8
Python
false
false
941
py
import numpy as np from sklearn import datasets def load(classes): iris = datasets.load_iris() # load the iris dataset. X = iris.data # separate the data from the target attributes. # pylint: disable=no-member Y = iris.target # # pylin...
[ "israelferrazaraujo@hotmail.com" ]
israelferrazaraujo@hotmail.com
bf1caeb574730c6e6c13e8c7fa72ae842a3a9dd5
a6d61c8f5cf893213b5c3b47ae354b6e6bd2dd11
/source/main.py
b27622fd6a13eb3b4eb2be2ba948ea714d93d3b7
[]
no_license
mtaziz/anomaly-detection
aa9ddb61d156f393d4cdbba40cebea8404ee97f4
3cafa3cdf5b325b4804e3374bb1e77937e2b51dd
refs/heads/master
2022-11-25T15:33:08.800914
2020-07-31T19:02:35
2020-07-31T19:02:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
732
py
from source.machine_learning.adquire_data import read_data from source.machine_learning.preprocess import process from source.machine_learning.train import train from source.machine_learning.validate import validate from cd4ml import tracking from cd4ml.pipeline_params import pipeline_params def run(): # get_file...
[ "cfuentes@thoughtworks.com" ]
cfuentes@thoughtworks.com
d8bf06539adc2d58a081df688a73c9b2aa5d8fdc
3944261f92ad298450742fd2d55300e58ad4df38
/apps/users/migrations/0002_banner_emailverifyrecord.py
77cbc4577ec23ff9779676dcddbf0a320d5724b3
[]
no_license
ybyangjian/moocdemo
f38124351bb2da5421768e3a2aa94dd81d281cd6
0ebbe7f7da44fbea1a08dbbe0142fd7394891ee6
refs/heads/master
2020-03-13T07:21:44.856961
2018-04-28T15:34:35
2018-04-28T15:34:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,826
py
# Generated by Django 2.0.4 on 2018-04-25 14:50 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('users', '0001_initial'), ] operations = [ migrations.CreateModel( name='Banner', fields=[ ...
[ "809127232@qq.com" ]
809127232@qq.com
063e327c3f613572963cbe12854b56e017fe62cb
856f5d5482fd973f902afb13be5782c8fc57cca3
/hw5/test.py
986ed071f44f1123f9e6b8664cc13061235dcc8b
[]
no_license
wukm/579
021e12ada91923ae756bddfd18033c1da7e9174d
cfaa8f8fa782cb97d275daea552fe0682f40a90f
refs/heads/master
2020-05-31T08:09:15.472410
2015-05-22T00:18:00
2015-05-22T00:18:00
29,958,134
1
0
null
null
null
null
UTF-8
Python
false
false
495
py
#!/usr/bin/env python3 """ make this a unit test. this should result in an x_est s.t. nonzeros(x_est) = [a] where a is very close to 1 (i.e. .99) and other items are 0 or very close """ import numpy from numpy.random import randn from scipy.linalg import norm from LASSO import * def nonzeros(a): return a[a.no...
[ "lxvkee@gmail.com" ]
lxvkee@gmail.com
f726fc166e76a8551aa2031ad6a49a81b90801fc
d4561571faf82f6b61fca851c42ceeea09df72eb
/commands/base.py
1aab32f7545f1becc5b2fec37b65a430f7db7a38
[ "MIT" ]
permissive
rafaelcassau/pycommands
614659f005d6b7badd8be81bc00ddab957a7c442
e94db33915463264539d49a1887d414fd0bbb9f5
refs/heads/master
2021-06-12T01:40:06.445078
2019-11-07T20:05:06
2019-11-07T20:05:06
198,507,558
2
2
MIT
2021-06-02T00:22:52
2019-07-23T21:00:53
Python
UTF-8
Python
false
false
1,750
py
import logging import subprocess import sys from subprocess import CalledProcessError, TimeoutExpired logger = logging.getLogger() logger.setLevel(logging.DEBUG) handler = logging.StreamHandler(sys.stdout) handler.setLevel(logging.DEBUG) logger.addHandler(handler) class BaseCommand: def __init__(self, timeout=...
[ "rafa.cassau@gmail.com" ]
rafa.cassau@gmail.com
6587b8bef4d0b5548dedf4bbbb41f0fd5f4dccc0
537b7b1d67f39b2c0351d58906e7b24125866d5f
/Restful_API_flask/bai2_my_app/__init__.py
66289d19b1115fa30bd963c7bf351bffbe654531
[]
no_license
PhungXuanAnh/python-note
8836ca37d9254c504f9801acca3977e2c28a4f60
9181c4845af32c2148e65313cbb51c2837420078
refs/heads/master
2023-08-31T02:43:16.469562
2023-08-22T03:14:44
2023-08-22T03:14:44
94,281,269
16
5
null
2023-05-22T22:30:46
2017-06-14T02:46:49
Python
UTF-8
Python
false
false
342
py
# khoi tao app, database va ket noi dung voi nhau # from flask import Flask from flask_sqlalchemy import SQLAlchemy app = Flask(__name__) app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db' db = SQLAlchemy(app) from Restful_API_flask.bai2_my_app.catalog.views import catalog app.register_blueprint(catal...
[ "xuananh@viosoft-PC" ]
xuananh@viosoft-PC
cc0c205a5eadcfb338aabc12159d5d53c11ec7dd
115ff19cdc284d66bc58596a6da1550b59f395d7
/TrainingApp/demo-service.py
0a052883536ace06aaf063562e6e5ec91ae5c988
[]
no_license
quentinPitalier/mappa
9201cf30513ad29b2250a9d19dd4bcab5cc6e6e0
571b529c3869827cefc0022dbfcab8e461ba1962
refs/heads/master
2021-05-06T19:06:12.532721
2017-11-25T20:01:04
2017-11-25T20:01:04
112,008,140
0
0
null
null
null
null
UTF-8
Python
false
false
7,616
py
#!/usr/bin/env python import qi import sys import os import pyrebase class DemoService: services_connected = None connected_signals = [] def __init__(self, application): # Getting a session that will be reused everywhere self.application = application self.session = applicat...
[ "quentin.pitalier@gmail.com" ]
quentin.pitalier@gmail.com
1c82743c96d1940c061fc6d1386573e2303e61f5
832690986c5b97336616617231e10b9e1bd72502
/permutation.py
2d98a36ec1069c88937fb1a9ece5735a5d97555c
[]
no_license
digitallyamar/Python-Permutation
63a185702d306c354a077c167aee9efa998bdb16
4d41da4b5e80bf42ac240ba0381f4f46fd201ee9
refs/heads/main
2023-01-19T14:15:26.469873
2020-11-29T11:25:47
2020-11-29T11:25:47
316,933,615
0
0
null
null
null
null
UTF-8
Python
false
false
212
py
from itertools import permutations my_list = [1, 2, 3, 4, 5] list_len = len(my_list) while(list_len): perm = permutations(my_list, list_len) for el in perm: print(el) list_len = list_len-1
[ "digitallyamar@gmail.com" ]
digitallyamar@gmail.com
ac0134ceac28d0816c485119d79811f97dd8fdb3
d82a1781665d6caa1a5a2eff85b306eb19680f07
/AoC21_reversed.py
14adc0ab24348bf4e377ce2427049432a8b2bc24
[]
no_license
Solaxun/aoc2016
91aedce86bb9abb8cc81cf896982b02c7606946a
5d7084cd0d8fbfba32c70f844186ea3615e23d93
refs/heads/master
2021-01-12T00:57:05.451086
2017-01-19T04:58:54
2017-01-19T04:58:54
78,320,869
0
0
null
null
null
null
UTF-8
Python
false
false
2,642
py
""" swap x y index swap x y actual (even if not in string at least try) rotate left or right x steps rotate right based on index of letter x - right once, then right index num plus one more if index >= 4 reverse x through y inclusive (index) move x to y means remove x, and insert so it ends at pos y """ from collectio...
[ "solaxun@hotmail.com" ]
solaxun@hotmail.com
b7d5cb97979742b3898d60ce38760912032fb414
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03472/s684454987.py
b6b020b957450bcb071ab3ec20a7b70b19eedd33
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
import sys mina=10**10 def waru(a,b): if a%b==0: return a//b else: return (a//b)+1 N,H=map(int,input().split()) A=list() B=list() for i in range(N): a,b=map(int,input().split()) A.append(a) B.append(b) ma=max(A) ind=A.index(ma) B=[i for i in B if i>ma] B=sorted(B,reverse=True) cou=1 s=0 for i in range...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d869081774173e11aebfc948ae74e1c95ef6ac88
4eb569fb25a5084dd94b65a23726976d907db9ba
/app/__init__.py
a1daead289cd1f93d6b03c77111ba8c015d186ca
[]
no_license
zhengxingliu/Cloud-Photo-Gallery-with-Text-Detection
297402af0f3168ec0484fd32d8e8ac212cd582c3
43592dcb4d9cbc7fc41bcfe415c81d47ce9c809e
refs/heads/master
2022-04-08T12:48:37.518693
2020-03-28T00:56:34
2020-03-28T00:56:34
217,774,383
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
from flask import Flask, session from datetime import timedelta webapp = Flask(__name__) from app import user from app import photo from app import http_rate # set session timeout, user login expires after 1 day webapp.config['PERMANENT_SESSION_LIFETIME'] = timedelta(days=1) webapp.config['SECRET_KEY'] = 'bf7\xf3MP...
[ "karenliu@Karens-MacBook-Pro.local" ]
karenliu@Karens-MacBook-Pro.local
c470558508805f0829d0884a4351f44ba88dba99
31178640835955cff2dcac9fe5b61339bec62842
/eval.py
302506664c8e136fd8ed818978b99b172fc50880
[]
no_license
JonyFaker/Segmentation-developing
0215c80969e4b16c64cfeacf814595b96c3cba79
55579f318a7d3d26769ea73bca05eabee2698866
refs/heads/master
2020-03-18T17:50:54.812600
2019-01-03T12:08:08
2019-01-03T12:08:08
135,054,852
1
0
null
null
null
null
UTF-8
Python
false
false
8,250
py
# System libs import os import datetime import argparse from distutils.version import LooseVersion # Numerical libs import numpy as np import torch import torch.nn as nn from scipy.io import loadmat # Our libs from dataset import ValDataset from models import ModelBuilder, SegmentationModule from utils import AverageMe...
[ "352815247@qq.com" ]
352815247@qq.com
08d82ea861ed6eee8f531713ffd5141071ed595d
698a33fc5ba3814eae252b9c08db40befc3a301c
/klinurl_api/klinurl_api/settings.py
76bce9f747d97584f1b136cf98dfd29878ba48a9
[ "MIT" ]
permissive
HarrietAkot/klin-url
fb1f62e3f43c7fce40cdfcd43dcd6e48c3eac59f
1b13291cf3f5f40a8d7b46c76f8a70695a55df32
refs/heads/main
2023-01-25T02:07:30.554527
2020-11-23T00:05:41
2020-11-23T00:05:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,787
py
""" Django settings for klinurl_api project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os ...
[ "cnyior27@gmail.com" ]
cnyior27@gmail.com
0ad7d9c088386520f67394b94a0cb1764d95f141
41a3caecc80a5e9da719ff906718297987c787ee
/lecture_3/tasks/views.py
ea5a629049b6f93d81a1332f8c9a871b4509228b
[]
no_license
astafanous/Django
942af6455ceac29cc7b93b0bc1f7bde7dbd666c1
3b5fd918687c829cf09a7b8bdc60a7ec7ac35d86
refs/heads/master
2023-05-01T18:44:47.154421
2021-05-24T14:46:42
2021-05-24T14:46:42
369,448,041
0
0
null
null
null
null
UTF-8
Python
false
false
1,711
py
from django import forms from django.http import HttpResponseRedirect from django.shortcuts import render from django.urls import reverse # tasks = ["foo", "bar", "baz"] # tasks = [] class NewTaskForm(forms.Form): task = forms.CharField(label="New Task") # priority = forms.IntegerField(label="Priority", min_...
[ "astafanousf@yahoo.com" ]
astafanousf@yahoo.com
39c54c0f3a91f4a6abf3b5eb069ff2fd357bce5b
91e91449b2c554a82a0438995cb90f39cae4e537
/issues/migrations/0002_issue.py
1c9576ee3768ce3a9eacd11611f53304a027aac9
[]
no_license
paul4000/github-issues-manager
922e4875db0b7575d4898ae95703e64e66ccad6d
7648971966fa1079abb6f256f0c6c0a26c2a3eb0
refs/heads/master
2021-07-18T02:12:28.067480
2020-06-02T19:36:08
2020-06-02T19:36:08
167,267,771
0
0
null
null
null
null
UTF-8
Python
false
false
1,420
py
# Generated by Django 2.1.2 on 2019-02-05 20:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('issues', '0001_initial'), ] operations = [ migrations.CreateModel( name='Issue', fi...
[ "pk.koziol49@gmail.com" ]
pk.koziol49@gmail.com
a9b9299e0daaa0d0fb5aa3c702fb8a4915ccfae9
586068e0de8011da1310c07834a068e441f1f3f2
/graphql/execution/experimental/tests/test_mutations.py
431073f4d376c7170da3d475db6d99efb38a9104
[ "MIT" ]
permissive
yen223/graphql-core
36603497b87af07b6f8e267c0cfdb22cf5f121fc
431ea35d383e8064bb8d5829e7b3cb8d4f395cd9
refs/heads/master
2021-01-11T01:01:15.429546
2017-05-10T21:15:27
2017-05-10T21:15:27
90,983,518
0
1
null
2017-05-11T13:39:45
2017-05-11T13:39:45
null
UTF-8
Python
false
false
4,263
py
from graphql.language.parser import parse from graphql.type import (GraphQLArgument, GraphQLField, GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLSchema, GraphQLString) from ..executor import execute class NumberHolder(object): def __init__(self, n): ...
[ "me@syrusakbary.com" ]
me@syrusakbary.com
d98c1414a799bd3ca5f26129831f1b0c15580229
9f1394dde9a51ba9cdeb6f83db82aa2f7b028e9f
/59.py
7fbb3127552a6d9e99408ee93677fe6980e84e3b
[]
no_license
Yuvanshankar21/beginner-set-5
143c42c8a042106034d3279b89745a396751600a
65f6e4ca5c3bcf30f1aa64d2c6bb6a0b0d7e8989
refs/heads/master
2020-06-21T05:53:13.593001
2019-08-04T06:07:02
2019-08-04T06:07:02
197,361,159
0
0
null
null
null
null
UTF-8
Python
false
false
84
py
num=int(input()) count=0 while(0<num): count=count+1 num//=10 print(count)
[ "noreply@github.com" ]
noreply@github.com
42e006389fff8b08ff28973bbffa8caf713652c5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03402/s593504264.py
64942787d3b18bc2ccc81dfb44fa5d990935a6e8
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
4,212
py
#!/usr/bin/env python3 import sys # import time # import math # import numpy as np # import scipy.sparse.csgraph as cs # csgraph_from_dense(ndarray, null_value=inf), bellman_ford(G, return_predecessors=True), dijkstra, floyd_warshall # import random # random, uniform, randint,...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1096376646272e6e4c6f694be7f696f06836c1b1
fd070e08e244e98446107d21b133f8a70b4984a7
/baseballcardproject/baseballcardapp/views/players/list.py
5fa8747778536fb7a57ea2c5976a1f2d5d3d3d92
[]
no_license
ChaseSully222/Backend-Capstone
a033397f82432074a3c96e0775064cb604c18ed2
c3d5392c63dfc49396e1066f9c724400337063a2
refs/heads/master
2023-08-01T13:33:27.524060
2020-07-01T02:22:54
2020-07-01T02:22:54
271,038,506
0
0
null
2021-09-22T19:13:52
2020-06-09T15:21:40
Python
UTF-8
Python
false
false
1,648
py
import sqlite3 from django.shortcuts import render, redirect, reverse from baseballcardapp.models import Player from baseballcardapp.models import model_factory from ..connection import Connection from string import ascii_uppercase playerCount = Player.objects.all().count() def player_list(request): if request.m...
[ "Jcsullins222@yahoo.com" ]
Jcsullins222@yahoo.com
2269f70b99adcbcb2b425bbb05b96c5e1f0382b1
b7bb2c03fbb6a55270fa193eb80bad4388a06661
/raw_pre/raw_lstm.py
035f4a08f10a9cd1eec7366211199f7a40a8f586
[]
no_license
voltelxu/notes
b50fa54583d789d7e363f7614838b5e89b0d7814
419db03a335e4c3da62806b7a9d311a604c323aa
refs/heads/master
2022-01-09T18:30:59.867372
2019-06-21T10:13:32
2019-06-21T10:13:32
112,202,492
0
0
null
null
null
null
UTF-8
Python
false
false
7,406
py
import tensorflow as tf import numpy as np import random ''' global variable ''' train_rate = 0.7 #the percent of the train_data set lr = 0.5 # the learning rate batch_size = 2 # the batch size of model embed_size = 128 # the word embedding size voc_size = 0 # the vocabulary size max_num_step = 0 # the max number ste...
[ "voltelxu@gmain.com" ]
voltelxu@gmain.com
db5f0da3df6e5192b2a58b8ee7e3399d3a85be3d
859e958d5397d0bd35adb3bcfc63261d893a4a54
/functions/DICTIONARIES_AGNfitter.py
6e395d0f2c93b226f0c9c716d751b8cc4d506f58
[]
no_license
DLZRR/AGNfitterALESS
205ca861b37a22eae2ae626d8a1879bb23908c02
d9ddbe7c6a70a6962977dfd6a9019bd0629623b1
refs/heads/master
2020-03-17T21:49:29.175567
2018-07-06T11:41:31
2018-07-06T11:41:31
133,977,093
0
0
null
null
null
null
UTF-8
Python
false
false
10,390
py
"""%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DICTIONARIES_AGNFitter.py %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% This script contains all functions which are needed to construct the total model of AGN. ##For constructing a new dictionary, (in cases: 1)add a filter which is not included, 2) need finer grid for better...
[ "noreply@github.com" ]
noreply@github.com
d9cc495ec1b18f73a3ba8fbcaedd9a6744f5b454
59ef249574f087775ee9d21576fb962af7e284ce
/front_end_flask.py
1513d17c249d76d169e3a70e2e4e4d2703ef8e7b
[]
no_license
djonvincent/DSCW
8c69bc5dd511c1f9d48a54bdbad98c0b1dc89f14
c5ab73f05f419a64c408228594414fc43679fa42
refs/heads/master
2020-04-26T10:41:07.285242
2019-03-08T01:04:03
2019-03-08T01:04:03
173,493,185
0
0
null
null
null
null
UTF-8
Python
false
false
2,098
py
import Pyro4 import json import random from flask import Flask, request, abort app = Flask(__name__) update_id = 0 ns = Pyro4.locateNS() proxies = {} servers = [] def refresh_servers(): global proxies global servers proxies = {} servers = [] for k, v in ns.list(prefix='MovieRating').items(): ...
[ "dionhs@hotmail.co.uk" ]
dionhs@hotmail.co.uk
b5dcc9981dbfed0cd29ed4ebd34415c2df8551d2
9b834b334447e72b73b277d121737eab046ab127
/loops/Breaking-and-Continuing-in-Loops.py
67a4c36abcc9a4f63f6f040482ef3c384f7d6586
[]
no_license
ty1cube/Python-Is-Easy
7a52ee9195eb240d45e9473feafe060edb848361
6c460db15dc4e22662da3dc44de0c8d259d476d4
refs/heads/master
2020-04-11T08:22:09.563781
2018-12-09T17:22:38
2018-12-09T17:22:38
161,640,660
2
0
null
2018-12-13T13:07:39
2018-12-13T13:07:39
null
UTF-8
Python
false
false
2,775
py
## # Breaking and Continuing in Loops Lecture ## # -*- coding: utf-8 -*- Participants = ["Jen", "Alex", "Tina", "Joe", "Ben"] #create a list of 5 elements. position = 0 #set position is equal to 0 for name in Participants: ...
[ "code@pirple.com" ]
code@pirple.com
405b1afa2defd7618c5c3cba640e214cc724e058
1d18c82d6ad1ac7ebaa332a81c89a716b1dfdae8
/remote-control-with-speech-recognition/public/chatbot_module/chatbot.py
f545cebbbf2d4a04f25cb7b2927e506c3e54879e
[]
no_license
roshandev77/personal-assistant
b32dc39f420b28270152d63b0c8e2f796c477573
a280f6a7846df3a29734301141bd4dc04e128d32
refs/heads/master
2020-04-27T18:23:49.461063
2019-03-08T16:14:12
2019-03-08T16:14:12
174,567,726
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
from chatterbot import ChatBot from chatterbot.trainers import ListTrainer def get_response(usrText): bot = ChatBot('Bot', storage_adapter='chatterbot.storage.SQLStorageAdapter', logic_adapters=[ { 'import_path': 'chatterbot.logic.BestMatch' }, ...
[ "kumar.roshansingh89@gmail.com" ]
kumar.roshansingh89@gmail.com
ac7ea011d20baa44d30192b324ebc9a79ac1974b
61a591f2a8019be6abadf880be7c614b6e907835
/servos/simple_servo_test.py
dabc36daf616b933583d7b43b6e1036acdb6194e
[]
no_license
sabatesduran/motioneyeos-telegram-bot
df6de9b0995230e2df0337196d3216e7261f78d4
3d66668951653a95702655a20f32bbea27a7a288
refs/heads/master
2023-05-27T13:38:41.074813
2020-05-03T13:07:08
2020-05-03T13:07:08
249,285,896
0
0
null
2023-05-22T21:39:06
2020-03-22T22:39:54
Python
UTF-8
Python
false
false
476
py
import sys from gpiozero import AngularServo from time import sleep SERVO = sys.argv[1] TO_POSITION = sys.argv[2] V_SERVO_PIN = 12 H_SERVO_PIN = 13 def move(with_servo, to_position): if to_position == 'mid': with_servo.mid() elif to_position == 'max': with_servo.max() elif to_position ==...
[ "didac@verse.me" ]
didac@verse.me
a84e11b9b91a2583243dd53c152683f6f6a05eee
bb67d55c64589c77e574529835dbf998461f2878
/pattern/pattern53.py
e6053e06201aca0d44a3bc2881a0e0d6160071d5
[]
no_license
kritikyadav/Practise_work_python
bf8eb42b03ee8f47a5021f7d3fbc68a02142ae8c
22a24d18c7d0502f5896f3239cee7730192ea5c3
refs/heads/main
2023-07-24T05:47:45.886517
2021-08-26T14:47:23
2021-08-26T14:47:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
n=int(input('rows= ')) for i in range(1,n+1): for j in range(1,n-i+1): print(end=' ') for k in range(1,i+1): print(k,end='') for l in range(i-1,0,-1): print(l,end='') print()
[ "noreply@github.com" ]
noreply@github.com
9b7300e3043117c6eb3dc1adadad3d3652e6d3cf
7dfdd69c2a698b1618cf62b98795f63d0fcb67bd
/even_odd_array.py
09a0a90fc4dd26c3eea163d6dedb22fa33215f02
[]
no_license
nestorghh/coding_interview
437eb35da1e282c14a4706f5faa9b36a01a985c3
f3df5520a7491b3e8d0c245036b1647302538716
refs/heads/master
2021-09-24T08:49:43.730747
2021-09-16T03:25:45
2021-09-16T03:25:45
150,933,465
0
1
null
null
null
null
UTF-8
Python
false
false
407
py
# Your input is an array of integers, and ou have to reorder its entries # so that the even entries appear first. ########################################################################### def even_odd(nums): even, odd = 0 , len(nums)-1 while even<odd: if nums[even]%2==0: even+=1 else: nums[even], nums[...
[ "nestorghh@outlook.com" ]
nestorghh@outlook.com
924e7a0ee39250cf95e009cc76b177a51a18c0a3
d37363bdbe10b426d57593138f20d80b355412c1
/dealership/migrations/0014_auto_20180206_1817.py
58694c9e2dcd9d6f3d6089814524c90dc8981af2
[]
no_license
Nightcrawler2114/CarSupplyChain_
6f11dcbe52420bbccab1efb26eaf3afcbf0bd8a6
ccbaf80890c1e2d1f89dad10167323df054c6f9c
refs/heads/master
2021-05-03T12:43:09.188309
2018-02-08T16:29:19
2018-02-08T16:29:19
120,499,487
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
# Generated by Django 2.0.1 on 2018-02-06 17:17 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('dealership', '0013_auto_20180202_1522'), ] operations = [ migrations.AlterField( model_name='wh...
[ "vlad.ivanyk@gmail.com" ]
vlad.ivanyk@gmail.com
489cbbf423a18d45cf6f5b1ca64da3f7c45b2407
3825126997a40c42f56765d9c0dae2047e8b7297
/energy/forms/orum_date_use_add_form.py
242c048161e009255ab1692eb8e471cd7869b1e5
[]
no_license
kirill1990/kalugaenergo
34a87aec7104b8caef7b6b803ffa78f72e2f33f6
393e3cbcd6dcb78fb489408c8f94365e52606b89
refs/heads/master
2021-01-10T08:25:26.100346
2016-02-26T12:52:18
2016-02-26T12:52:18
47,502,152
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
# coding:utf8 from django import forms from energy.models import Orum from energy.models import Period __author__ = 'Demyanov Kirill' class OrumDateUseAddForm(forms.Form): orum = forms.ModelChoiceField( queryset=Orum.objects.all(), ) period = forms.ModelChoiceField( queryset=Period.objects...
[ "demyanov.kirill@gmail.com" ]
demyanov.kirill@gmail.com
c70ddb74d036303d665a46c34a7b13569017ff7f
da9e4d611c36dc5beb24bc3ec844695713cd7565
/Tests/AutoUITests/JuicyPeachInLinyi/__init__.py
94e56cae34461002b2d94c1879237e3f4efffc50
[]
no_license
yangjourney/AutoTestTaffy
e8128c78c0d0a515c5b4b0b459994fc71ea4da7c
504c826813859800492c5034721856c4a534db3b
refs/heads/master
2021-09-18T10:35:45.759077
2018-07-13T04:01:55
2018-07-13T04:01:55
107,228,091
1
2
null
null
null
null
UTF-8
Python
false
false
42
py
# coding=utf-8 # 临沂蜜桃追溯系统@
[ "yangbo145@hotmail.com" ]
yangbo145@hotmail.com
dd5b25af8252fced7e12f4465472f69156d301a7
e9e0bc8adaa070b6506ed15adbac551f43082891
/pandas-0.15.1/setup.py
d0741fce5bfd4dba784a0167d909ce0fadb457aa
[ "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "BSD-2-Clause" ]
permissive
Martbov/InformationRetrieval
515bfa809676113080a3bf0dedb55e7469c1e8e6
9083b3a3e94d299beca7b6721f5886efcb854a23
refs/heads/master
2021-01-10T16:16:59.704048
2016-02-03T23:18:11
2016-02-03T23:18:11
49,127,133
0
0
null
null
null
null
UTF-8
Python
false
false
21,689
py
#!/usr/bin/env python """ Parts of this file were taken from the pyzmq project (https://github.com/zeromq/pyzmq) which have been permitted for use under the BSD license. Parts are from lxml (https://github.com/lxml/lxml) """ import os import sys import shutil import warnings import re # may need to work around setup...
[ "Mart@RN-145-97-167-38.eduroam.rug.nl" ]
Mart@RN-145-97-167-38.eduroam.rug.nl
beece128371755369309896016d68fd877323c91
43e5e3b0b95bfa5bfad2045badee7dd02b5cc887
/comprenhension.py
6d582da8944bcfe281dbb0fc13bc4de24635b436
[ "MIT" ]
permissive
AmaroPy/python_koans
c87ec454c41d676ae86a16fd40b5f68325ce5159
4b80e7fce5c1140d47c4bc8e0e858db8b807ac16
refs/heads/master
2020-05-14T08:41:16.021875
2019-05-09T10:30:41
2019-05-09T10:30:41
181,727,510
0
0
MIT
2019-04-16T16:32:02
2019-04-16T16:32:02
null
UTF-8
Python
false
false
572
py
numbers = [1, 2, 3, 10, 11, 15, 99] def algo(n): if n % 2 != 0: return True return False def both_requisites(n): if algo(n) and n > 10: return True return False higher_than_ten = [num for num in numbers if both_requisites(num)] print(higher_than_ten) nombres = ['Alicia', 'María', '...
[ "julianamaro@gmail.com" ]
julianamaro@gmail.com
e70f666c2512f65e0f4bf7cad39667faf4acf374
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5670465267826688_1/Python/Yibo/program.py
477ba3c31f713299617ea990c7476a0ebf64d07b
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
2,437
py
#!/usr/bin/python2.7 f = open('input.txt', 'r') T = int(f.readline()) mult_table = [ [0, 0, 0, 0, 0], [0, 1, 2, 3, 4], [0, 2, -1, 4, -3], [0, 3, -4, -1, 2], [0, 4, 3, -2, -1] ] dic = { 1: 1, 'i': 2, 'j': 3, 'k': 4 } def mul(v1, v2): # Returns the numerical value of v1 * v2 ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
98ddb19c7338d5c09a5e06f0bdcc344e8b8cd5e3
1d5832de0d4561ba0c42d7c8f86ca564e08f3112
/flask_blog/wanghublog/controllers/Image.py
c5dc8239987111ff23578ce39f9e5b7570c5fe96
[]
no_license
wanghublog/Flask_Blog_Linux
f4cec1afd5671ca5f875b9710c6716fd6d5ebdbd
1c070edf85236962298194a495df00609d320f08
refs/heads/master
2022-12-14T15:29:48.487549
2019-11-04T12:40:31
2019-11-04T12:40:31
219,126,794
0
0
null
2022-12-08T06:15:09
2019-11-02T08:41:37
Python
UTF-8
Python
false
false
1,281
py
from PIL import Image, ImageDraw, ImageFont, ImageFilter import random # 随机字母: def rndChar(): return chr(random.randint(65, 90)) # 随机颜色1: def rndColor(): return (random.randint(64, 255), random.randint(64, 255), random.randint(64, 255)) # 随机颜色2: def rndColor2(): return (random.randin...
[ "wjamesh@qq.com" ]
wjamesh@qq.com
cbdbc3ce3b472c5817697f8da8d9f19a125c4872
08ec706df8afe5ed0a85c41c7ea47d83f6d59622
/devel/lib/python2.7/dist-packages/vrx_gazebo/__init__.py
c471c9ae890c761c7b7ee01a08cdd222dd654d63
[]
no_license
aahuhu/boatland
8aff4f8b6cc1854370f142f1d7aa8415abbd239c
2d66ec49afa932105aba4fc086100d94bb1874d1
refs/heads/master
2023-03-11T03:10:50.764343
2021-02-26T03:22:23
2021-02-26T03:22:23
342,447,668
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
# -*- coding: utf-8 -*- # generated from catkin/cmake/template/__init__.py.in # keep symbol table as clean as possible by deleting all unnecessary symbols from os import path as os_path from pkgutil import extend_path from sys import path as sys_path __extended_path = '/home/hedy/autoland/src/vrx_gazebo/src'.split(';...
[ "13319200380@163.com" ]
13319200380@163.com
0f38cbcc9e4a2dbb6b7ec9a17fa6bebb8943c405
04ed7d595f6a2e52455d22fc906570621c4a1288
/app/migrations/0001_initial.py
5e41f9ba4c32ae260dde42e1b9ef20798643ea21
[]
no_license
mrclap/dodolist-public
a34b6569389a1491017c3d370fc52f32db820824
18ff53f7dc948c85fbbe75334d700ed05b74eb74
refs/heads/master
2020-05-25T02:20:55.037006
2019-05-20T05:57:40
2019-05-20T05:57:40
187,576,222
3
0
null
null
null
null
UTF-8
Python
false
false
2,731
py
# Generated by Django 2.2.1 on 2019-05-15 07:12 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField...
[ "clap@kdml.co.kr" ]
clap@kdml.co.kr
b05dc270889047f4ca8b6c93a64fa44312707097
1654ad47bd1de7b7fb05360ee6d47d4ebfe39f34
/members/test_models.py
2d74f0e667b8ffb2e647f580c099d22ad8b40533
[ "BSD-3-Clause" ]
permissive
profbiyi/djangoproject.com
c710906be7c3673170614fb189111bde11bd5877
5bc906c7b12d470aa7523d2571c4796abd89ff4c
refs/heads/master
2021-01-11T22:25:41.736810
2016-12-20T17:43:56
2017-01-13T14:08:28
78,961,009
1
0
null
2017-01-14T19:13:21
2017-01-14T19:13:21
null
UTF-8
Python
false
false
3,520
py
from datetime import date, timedelta from django.test import TestCase from members.models import ( GOLD_MEMBERSHIP, PLATINUM_MEMBERSHIP, SILVER_MEMBERSHIP, CorporateMember, IndividualMember, ) class IndividualMemberTests(TestCase): @classmethod def setUpTestData(cls): cls.member = Individua...
[ "timograham@gmail.com" ]
timograham@gmail.com
07dff20a921241c2bc968135bade70efa18b081e
9d3e3ee3f90398a825e9cac49593eaea3ade651c
/covid_19_data_collector/covid_19_data_collector/settings.py
46eb77a32c8c9ee78aa97529318fa9130fc569e0
[]
no_license
mmcgov/covid_19_tracker
b73017490b9909d36f0217e036336cf7a6bfabea
b16d863d86fca1c037204307718a08dd09e30cf4
refs/heads/master
2021-05-20T12:42:05.284199
2020-08-03T22:06:00
2020-08-03T22:06:00
252,301,578
0
0
null
null
null
null
UTF-8
Python
false
false
3,197
py
# -*- coding: utf-8 -*- # Scrapy settings for covid_19_tracker project # # For simplicity, this file contains only settings considered important or # commonly used. You can find more settings consulting the documentation: # # https://doc.scrapy.org/en/latest/topics/settings.html # https://doc.scrapy.org/en/lat...
[ "mmcgov@outlook.com" ]
mmcgov@outlook.com
89e049e3ec9191b36e0a4997d35499d7c1f80446
62d1c7344691dd2513ca11c2c49282139782591b
/面向对象/demo_08_继承.py
46c2484c679b8195124830a8299468f1cd9fee2d
[]
no_license
zhanglei12306/PythonProject
5766ba38a54f9db43c089611d5189db9e86d56c7
07649f58f00825c0e833125092aec10b858ba95b
refs/heads/master
2023-02-08T02:21:05.392537
2021-01-02T13:37:04
2021-01-02T13:37:04
323,079,233
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
# 继承:某个类直接具备另一个类的能力(属性和方法) # 格式: # class 子类名:(父类名) # class Animal: 经典写法 class Animal(object): #新写法 def eat(self): print("-----吃-----") def drink(self): print("-----喝-----") class Dog(Animal): def playing(self): print("-----玩-----") class Cat(Dog): def pao(self): pri...
[ "1044570046@qq.com" ]
1044570046@qq.com
22d627417b77424db925df02aa33d9050035ffc0
cb04879732abff760f572012cd03dd8e64c66b97
/prob6.py
14f8d70f1bf2e19fca12aa770f4729d5607e731a
[]
no_license
DarylWinslow/DT211-3-Cloud-
fb2c12ad97baa1b2406a5349f66b4466bf414ceb
14292bdce3d41c900c3d72ca172ec422103ca8d9
refs/heads/master
2020-05-19T09:10:43.834750
2014-10-02T14:56:33
2014-10-02T14:56:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
def main(): n = 100 sum1, sum2 =0, 0 for i in range(1, n+1): sum1 += 1 sum2 += pow(i,2) return pow(sum1,2) -sum2 if '__main__' == __name__: print(main())
[ "darylwinslow87@gmail.com" ]
darylwinslow87@gmail.com
257a9de7de8acf4c8dc41472a399bdf79329fae3
96d393cef29738f3d5eac0a2bea9711ee51d4c47
/logicpy/result.py
5ce5b00589491efdb07d3b3b0e32b7e1b5779fdc
[ "MIT" ]
permissive
evertheylen/logicpy
b01fae5088b30a41f37dcfb91fae563e9afe48bc
18dac5b2b659d6598692a165b39dccbf413781bc
refs/heads/master
2021-09-01T20:11:31.070883
2017-12-28T14:48:27
2017-12-28T14:48:27
109,205,315
11
0
null
null
null
null
UTF-8
Python
false
false
5,070
py
from logicpy.data import Term, Variable, BasicTerm, has_occurence, replace from logicpy.debug import NoDebugger class ResultException(Exception): pass class UnificationFail(ResultException): pass class Uninstantiated(ResultException): pass class Result: def __init__(self, it = None, var_cache = ...
[ "evertheylen@gmail.com" ]
evertheylen@gmail.com
bd00c13e9e1a5274d1c0d52f684814c023849b59
39d6a6eec662ad0b81f3f9f262646162daac59de
/WIDHYA DAILY SOLUTIONS/w2/notebook3a6b8eef1f (1).py
a7c39746029c06fa52465450f773ed7ca4f661e8
[]
no_license
Hashmeet229/Widhya-Intern
c281554c98b72e2b89417ce4d59e0bcc8699f0dd
56a74dcf54ba69b959ad9823e5b6c8f9f09ea14b
refs/heads/master
2023-06-29T10:32:55.431187
2021-07-27T08:23:57
2021-07-27T08:23:57
389,902,718
0
0
null
null
null
null
UTF-8
Python
false
false
3,874
py
#!/usr/bin/env python # coding: utf-8 # In[ ]: # This Python 3 environment comes with many helpful analytics libraries installed # It is defined by the kaggle/python Docker image: https://github.com/kaggle/docker-python # For example, here's several helpful packages to load import numpy as np # linear algebra impor...
[ "hashmeetsingh409@yahoo.com" ]
hashmeetsingh409@yahoo.com
d6937ef5a73d2d4f2380e8360ad1ef7346b7ba88
6f28494af3db4603d0f20ad8b1e7c57c1efc8acc
/traning/test_demo1.py
6b6f6edc6f4dff4fb71197032682239ab4a2cc7a
[]
no_license
zhangwanli-marker/Lagouzuoye
e9351652cb95856cd3c2df139db2623d1b1fe061
26dd998c74a12a3c0c8e6da2ad433a9d81620cca
refs/heads/master
2023-01-03T07:27:47.061687
2020-10-20T12:58:13
2020-10-20T12:58:13
269,674,564
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
import pytest import yaml class TestData: # with open('listdata.yaml', 'rb') as f: # data = yaml.safe_load(f) @pytest.mark.parametrize("a, b", yaml.safe_load(open("./listdata.yaml"))) def test_data(self, a, b): c = a + b print(c)
[ "18321228089@163.com" ]
18321228089@163.com
387485152a5a4b081dd974bcc6df35d3c80b145c
90291c34ad890fe1a8c926083c0e6a1fb9d73126
/supervised_learning/0x05-regularization/4-dropout_forward_prop.py
e6728ddc034073c39f024de42bee3a8cf3d25df9
[]
no_license
zahraaassaad/holbertonschool-machine_learning
7ce800f3a5bd1ef4941e4dd632f22867e2c951a1
131be8fcf61aafb5a4ddc0b3853ba625560eb786
refs/heads/main
2023-05-15T01:48:04.687777
2021-06-09T19:07:41
2021-06-09T19:07:41
318,150,125
1
1
null
null
null
null
UTF-8
Python
false
false
1,003
py
#!/usr/bin/env python3 """conducts forward propagation using Dropout:""" import numpy as np def dropout_forward_prop(X, weights, L, keep_prob): """Returns: outputs of each layer and the dropout mask used on each layer""" cache = {} cache["A0"] = X for i in range(1, L + 1): w = "W" + ...
[ "noreply@github.com" ]
noreply@github.com
5f0a1e189920fdab1d92c136932df084d672e547
1c2798a474f279e62eea0466654f6715ad90fb71
/long_short_term_memory.py
55e74b815f09a3b150fe1f612ea073df4371e007
[]
no_license
gratrow96/ml_stock_market
5822a115753fded4e56e63c2c87a7d3c710472ed
d74d8866ab3f47c7b263091dad2de22660e354e3
refs/heads/main
2023-02-21T05:23:29.591210
2021-01-21T23:08:02
2021-01-21T23:08:02
331,778,593
0
0
null
null
null
null
UTF-8
Python
false
false
333
py
from sklearn import utils from math import sqrt from scipy.stats import pearsonr, kendalltau from sklearn.metrics import mean_squared_error as mse, accuracy_score from sklearn.model_selection import train_test_split import numpy as np import pandas as pd import tensorflow as tf from sklearn.preprocessing import...
[ "noreply@github.com" ]
noreply@github.com