blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
627745945b0f470a8f0c2173638f2a6876f3e8e8
132f602a34035037bb157b8c83fec7b8c5bbd967
/article/migrations/0006_article_article_image.py
56705d3613710a760286286f56be46f58c949847
[]
no_license
burakkoroglu/blogapp
aa0a24bcfcf0920986d6bcb948441108ca9a9223
b296b68ed9dd514250d4ac782702c44449830325
refs/heads/main
2023-03-29T17:22:37.643845
2021-03-31T20:45:45
2021-03-31T20:45:45
353,485,431
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
# Generated by Django 3.1.7 on 2021-03-30 20:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('article', '0005_auto_20210330_2143'), ] operations = [ migrations.AddField( model_name='article', name='article_imag...
[ "burakkoroglu200052@gmail.com" ]
burakkoroglu200052@gmail.com
fa39344f8d4e8ce35c807e8f98786b7b6f061a8c
c50a1348addcfda57342b7141e2a6b821e2a38d9
/stonehenge_game.py
e32b3fdf4d944fbde9f2d68a53c40328c3e35e91
[]
no_license
KG-UT/game-files
edc3f2a87a7739745a17d8075c203904629fdb8c
ba07bd54259a7d96b75159d778f227c6b6a89f99
refs/heads/master
2021-08-05T04:12:44.324387
2019-01-09T06:50:32
2019-01-09T06:50:32
136,755,697
0
0
null
null
null
null
UTF-8
Python
false
false
2,788
py
"""StoneHenge game. Subclass of game.""" from game import Game from stonehenge_state_4 import StonehengeState class Stonehenge(Game): """Implementation of the game Stonehenge.""" current_state: StonehengeState def __init__(self, p1_starts: bool) -> None: """initializes the game Stonehen...
[ "noreply@github.com" ]
noreply@github.com
e55166ca9c432b519f2b37f9fcbc65f2d7f3b754
7d8d506923361f7e6b2f8653b5d149b160128fe2
/quizproject/urls.py
cc61281e0c82380759f7ee4c21b2ef661b9b0df1
[]
no_license
satish17s/quizproject
48a8884bb499c59501ca438a40433485da85c4cf
58f462b86032b8ddfa580c453753144c8404da92
refs/heads/master
2022-12-15T04:51:27.442684
2020-09-15T17:56:07
2020-09-15T17:56:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,160
py
"""quizproject URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
[ "satishsharma.cse@gmail.com" ]
satishsharma.cse@gmail.com
1a9d4801ecc2db4d58bf854ae7c85e88b3f93d32
cbe3cb352a7512ef4ef4ea1c4e3ab5719da95e6e
/day0209/code7_12.py
94b069e1bbb08ba5eb116a6e0a98c5505d58b024
[]
no_license
kyousuke-s/PythonTraining
10fdc374bc637a3d2f1ff7315cc53f1fda27fabd
6c3a3d9652765e79045cff99f713ac244b10b391
refs/heads/master
2023-03-05T20:33:24.704648
2021-02-16T00:12:08
2021-02-16T00:12:08
338,927,877
0
0
null
null
null
null
UTF-8
Python
false
false
111
py
import matplotlib.pyplot as plt weight = [68.4,68.0,70.2,76.7,56.6,68.9,65.7,66.6] plt.plot(weight) plt.show()
[ "kyousukesato8@gmail.com" ]
kyousukesato8@gmail.com
dc26b2731cb16eb441a4a54b65c066c486e0c57f
d3f484a7be524f71f4614b242d2649364b981536
/day-01/part1.py
1b3eca902a2c5c005c61c17f2a6311f115097701
[]
no_license
NISH1001/advent-of-code-2018
581ce4466594c412b820599bf6dc5fb5d9f200a9
a4eaa35265afca0318c769335d46dd6ccc77ad0a
refs/heads/master
2020-04-09T04:00:09.910278
2018-12-11T05:49:46
2018-12-11T05:49:46
160,006,445
1
0
null
null
null
null
UTF-8
Python
false
false
171
py
#!/usr/bin/env python3 def main(): with open('input') as f: res = sum([ int(line) for line in f]) print(res) if __name__ == "__main__": main()
[ "nishanpantha@gmail.com" ]
nishanpantha@gmail.com
c71a372a975e84cfa1beca53766244361b5b5f77
c06b6c0eb8274f73b78c82c2a9c9b3428931ef5d
/models/store.py
c0ce4f50880cc46b24bf358e376a948d72e85324
[]
no_license
aleksandar89bt/Python-REST-API-with-flask
943dfc038b199070dcdd0846b952c257cb7f69e8
3feb5a639d3ccb2a38eca27bd316680eae57a77b
refs/heads/master
2020-09-13T13:39:00.466987
2019-11-20T21:38:49
2019-11-20T21:38:49
222,801,634
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
from db import db class StoreModel(db.Model): __tablename__ = 'stores' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(80)) items = db.relationship('ItemModel', lazy='dynamic') def __init__(self, name): self.name = name def json(self): return {"name"...
[ "aleksandar89bt@hotmail.com" ]
aleksandar89bt@hotmail.com
52dd599df6e77fd91779278402d371535e57b18a
b7ad5a09bbf48a058ca83d92d11159f30f9726ef
/plugins/udp.py
618943d7b2a4a4dda1ca89ad4a0b6b77ecf8b362
[]
no_license
RSPET/rspet.github.io
71a619ff4cec67b4f6870b7032a4d190690f8a80
115c693155e817b0819961a32cca97d6941063d7
refs/heads/master
2020-09-21T05:00:28.735926
2017-10-29T12:12:14
2017-10-29T12:12:14
66,701,178
0
1
null
2017-10-29T12:08:37
2016-08-27T07:06:54
CSS
UTF-8
Python
false
false
2,788
py
""" Plug-in module for RSPET server. Offer functions related to udp flooding. """ from __future__ import print_function from socket import error as sock_error from Plugins.mount import Plugin class Files(Plugin): """ Class expanding Plugin. """ __server_commands__ = {} __cmd_help__ = {} def __...
[ "panos122008@gmail.com" ]
panos122008@gmail.com
d64da185dd8fee430d47d7f3bce31fb57e9bbee4
823add886f95b79f806429f46f8c1aa5f0dd92c1
/dbdjd/venv/bin/pip3
ba65a2918183519c2fc2796728d451a7ea0c0de1
[]
no_license
lpgph/python
e3a5e320aa1625b6f4bc0d01389349fa5b5fff2c
84f88b4623f482ed3af14a21c78c62818268576a
refs/heads/master
2022-08-29T12:54:08.790123
2020-05-28T10:26:14
2020-05-28T10:26:14
64,984,273
0
0
null
null
null
null
UTF-8
Python
false
false
251
#!/home/lpgph/Public/Work/python/dbdjd/venv/bin/python # -*- coding: utf-8 -*- import re import sys from pip._internal import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "penghui.guo@outlook.com" ]
penghui.guo@outlook.com
4575d970e83e1f8dc41172f9fac691d384b2aeed
1afa27fd4084cd704e99d8d0b17b6b2f6ee15a32
/manage.py
68852e0bcf6807e5d9778fadda506484cbc49aa7
[]
no_license
brandon30Last/Portfolio-Project
9124aa803a5fab07f0c07ed46c9f396a9d2c4b8c
b04ea7655fee848a2ecea050cb8b89a68a3d3128
refs/heads/master
2022-11-07T15:16:38.086674
2020-06-03T19:43:44
2020-06-03T19:43:44
269,091,750
0
0
null
null
null
null
UTF-8
Python
false
false
633
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', 'PortfolioMain.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ...
[ "brandon30last@gmail.com" ]
brandon30last@gmail.com
456c2b78de112d96dc0c73cfd9ab785781b0d05e
dffc22d31c2d2d1d6e364d910bc4b2b709f5b344
/manage.py
8e8f1123812c7e508868224ff66c52525d6a3558
[]
no_license
dolastack/rssfeed
adeb85da802090924d450355f34e9c3e2d1f3c31
8543b3b97bf2e73627341353b6083deb842831f1
refs/heads/master
2021-01-21T17:06:52.820027
2017-07-08T02:45:59
2017-07-08T02:45:59
91,932,776
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "rssfeed.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
[ "india@ubuntu.dolastack.com" ]
india@ubuntu.dolastack.com
657df645b7c4a352581d802e29ead9bbcc0e831d
1b1158b51eb508f8712eddfb8730d468d824cf07
/screening_task/urls.py
39375aed0f824b5576e490fea9837d0a59673f6a
[]
no_license
BesnardConsultingSAS/django-screening
cadb658156c57edbc0294a756884880572ce24d3
ff5110e37a4fd7aea7f20dc97dffa51ab019ac4e
refs/heads/master
2022-12-09T16:53:32.857074
2020-08-11T14:20:40
2020-08-18T12:16:02
286,722,456
0
0
null
2020-09-14T11:28:06
2020-08-11T11:08:52
Python
UTF-8
Python
false
false
1,211
py
"""screening_task URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/dev/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...
[ "contact@besnard-consulting.com" ]
contact@besnard-consulting.com
83530addf4bdcb1e897e3ff6b44c9a664f8df6c3
880e49e43653a61f22df428aed02571177721c72
/doubleDB/routers.py
ed206c1562f70d39b86f41452627f647b0649ecf
[]
no_license
lacosmok/doubledb
30e9115554bce32bcf46a7ab1c47a23b0c26309b
3cbf9a064abc54b71613d86541e1e2b524b70da2
refs/heads/master
2020-03-20T21:58:41.440766
2018-06-18T22:44:34
2018-06-18T22:44:34
137,772,210
0
0
null
null
null
null
UTF-8
Python
false
false
703
py
class PrimaryRouter: def db_for_read(self, model, **hints): """ Reads depending on type """ return 'default' def db_for_write(self, model, **hints): """ Writes always go to primary. """ # print(hints['instance'].type) if hints['instance']...
[ "lacosmok@gmail.com" ]
lacosmok@gmail.com
17751572ebd1d61ba26c0d2bd99c9e79125c6933
511d9f8eeb89e26cb3901d8ce8f656e4c3a23c42
/src/program3Test.py
99ca4cb3d116d419767bad4b88d485eaaf5b82bf
[]
no_license
tiansiyu0210/Python-hw3
166475c79a0895e8d55923da4138cd177df4a511
d86d15b3abe5a20c83f7326af0c0eb4ca73bf7d3
refs/heads/master
2020-04-05T13:24:29.867968
2018-11-11T02:51:02
2018-11-11T02:51:02
156,901,127
0
0
null
null
null
null
UTF-8
Python
false
false
1,128
py
import unittest from src import program3 class Program3Test(unittest.TestCase): def test_case_1(self): test = program3.CreditCard() self.assertTrue(test.isValid('371232345686516')) def test_case_2(self): test = program3.CreditCard() self.assertFalse(test.isValid('3712323456865...
[ "tiansiyu297@gmail.com" ]
tiansiyu297@gmail.com
b028d6e77fbcf0591d0e14ba348002c534cdc523
7670a25a77f418ac5ed9728bb276c1848b0467c5
/tests/test_model.py
2a7435561a34b4ea54634c913a202487214ff18e
[]
no_license
rhzphlv/deploying_model
f9aef3da360160c519197c51bd97f8c696a42a2e
a4bfb2299aa5e629d42c3fca0a779570a26dc9b5
refs/heads/main
2023-03-30T13:26:49.683384
2021-03-23T20:29:51
2021-03-23T20:29:51
350,238,206
1
0
null
null
null
null
UTF-8
Python
false
false
774
py
from deployment_model.predict import make_prediction from deployment_model.processing.data_management import load_test_set from deployment_model.config import config import math def test_single_value(): #Given test_data = load_test_set(filename = config.TEST_DATA) json_test = test_data[0:2].to_json(orient = 'record...
[ "rheza.jogja@gmail.com" ]
rheza.jogja@gmail.com
a8f68a8dd54e0a5b800694a854a7f8df626bd445
1bbde263e4691d0fa71d2f68561a8c5013a39544
/Epic6/test_app.py
59fb8889866be35d2396ad28e3732a69082bcdaa
[]
no_license
robbm96/InCollege-Project
fc510d87c8d1e99a12cb6d83a1726058e437eb2f
f32a413f67d687d69cd5258adcb216f14a962fc9
refs/heads/main
2023-01-01T21:52:52.782471
2020-10-25T23:44:00
2020-10-25T23:44:00
306,399,189
1
0
null
null
null
null
UTF-8
Python
false
false
21,374
py
# This file contains all our pytest # Import every method/variable from our app file from app import * import json print("Starting test") def test_user_option(): option = get_user_option(1, 3) assert isinstance(option, int) assert option <= 5 and option >= 1 def test_verify_password(): acceptable_...
[ "noreply@github.com" ]
noreply@github.com
10e6c2473d46f0395d61ceb53a829bd201bce125
53e59b27ddde86802e4c9ecca49e6aa9bd456c6c
/robot_server.py
9a55f78053f7b3abafb854a53b59395fe7ce6671
[]
no_license
kumarisurbhi/SIH_Hardware_2019
3e6c5f245dd4ffe26967f1c031922a69f06acbb4
9da13e60d1b08a269fe8ccef40821641efc46f84
refs/heads/master
2022-07-11T13:14:38.551897
2020-05-17T06:23:02
2020-05-17T06:23:02
196,074,315
0
0
null
null
null
null
UTF-8
Python
false
false
2,158
py
import socket host = '' port = 5560 # any higher level port storedValue = "Yo, what's up?" def setupServer(): # socket.AF_* - address and protocol families # socket.SOCK_* - socket type s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) print('socket created') try: s.bind((host,port)) except socket.error ...
[ "itsmesurbhi27@gmail.com" ]
itsmesurbhi27@gmail.com
5a41960a55928dd63bb70c8a7008554e17a3496e
fa04e703556632fb6f513181070a496294b4f0dd
/patchnotifyer.py
e9804345e8e3f1936beb087a831e11a4efd27754
[]
no_license
mhagander/patchnotifyer
a377d741c3837cbe6e5c8026ceced9a0a4b4c056
14c9b1d14780460645807227176db01aeef18267
refs/heads/master
2021-01-11T15:01:35.217795
2017-01-31T10:03:56
2017-01-31T10:03:56
80,282,835
0
0
null
null
null
null
UTF-8
Python
false
false
2,583
py
#!/usr/bin/env python3 import argparse from io import StringIO import socket import smtplib from email.mime.text import MIMEText import apt_pkg class _DevNullProgress(object): # Need this class to make the apt output not go to the console def update(self, percent = None): pass def done(self, ite...
[ "magnus@hagander.net" ]
magnus@hagander.net
71aeaf9ace671939684b2e376836428e91321100
a72f501a945317646dfb3b1a049195994e63d69e
/migrations/versions/035ebdabfbca_.py
413ed9f036cf63cbe5e3f1391a63e34ff0c54001
[]
no_license
sseungyong/flask_pybo
bf49e11f3e5a70af751bf4a503476ccd6b2ba165
fbdd37bccb1eea1c53938ff14a4ef757540f426e
refs/heads/master
2023-01-01T21:51:52.998891
2020-10-13T17:07:17
2020-10-13T17:07:17
299,335,976
0
0
null
null
null
null
UTF-8
Python
false
false
1,022
py
"""empty message Revision ID: 035ebdabfbca Revises: e2002a5ab9f7 Create Date: 2020-10-02 00:49:20.198940 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '035ebdabfbca' down_revision = 'e2002a5ab9f7' branch_labels = None depends_on = None def upgrade(): # ...
[ "sseungyong@gmail.com" ]
sseungyong@gmail.com
b210ba738591526df3bf05544638139ece6c18ee
73e52b0411cb95aa1592aa3e1f9d86691d6e913c
/scraper.py
63a5c1a3914afb5e553b2c90db57ce7587e958cc
[]
no_license
PandeKalyani95/Image-Scraper-
cae43e3b4057b9041bf67344a4cdcbd0029f61aa
7bef3ad3ce5a153d70dade4f082d84d412c1db38
refs/heads/master
2023-01-15T23:25:38.271057
2020-11-26T11:11:20
2020-11-26T11:11:20
316,202,942
0
0
null
null
null
null
UTF-8
Python
false
false
4,513
py
import os import time import requests from selenium import webdriver def fetch_image_urls(query: str, max_links_to_fetch: int, wd: webdriver, sleep_between_interactions: int = 1): def scroll_to_end(wd): wd.execute_script("window.scrollTo(0, document.body.scrollHeight);") time.sleep(sleep_between_i...
[ "kalyanipande95@gmail.com" ]
kalyanipande95@gmail.com
df88d230cbd15ec04bc1a6a72a97e0b4d0682ea6
b7427b344463aa1f53b15d19d70612ba48fd127d
/ThE_HustleR_ThinG/hustlerApp/models.py
193937979c8f05469ab292421ca04393624e45ed
[]
no_license
faisal-git/ThE-HustleR-ProjecT
a778b186f6e09f1e85c35046380d74e786530eb8
6dae2d602d0f2606c64206cb17bdea748d7c9146
refs/heads/main
2023-02-21T15:43:41.909611
2021-01-28T06:47:30
2021-01-28T06:47:30
333,650,126
1
0
null
null
null
null
UTF-8
Python
false
false
2,445
py
from django.db import models from django.contrib.auth.models import User class userProfile(models.Model): user=models.OneToOneField(User,null=True,on_delete=models.CASCADE) FirstName=models.CharField(max_length=50) LastName=models.CharField(max_length=50,null=True,blank=True) Age=models.IntegerField(b...
[ "faisalkv1963@gmail.com" ]
faisalkv1963@gmail.com
8a751dd3fdd8f7cad0fb5420727098f2afbf427a
db3177a2130e32f5d77cdba0fcfa68d51aefe465
/Grade_Calculator/grade_calculatorV2.py
2cf6fa0adc2adaa74b31f623cde46c2d3bb04a93
[]
no_license
David-Papworth/python-examples
9880d4792a11c6a43e241e2f445bf28bac0aeaa7
09687a9aec186f982d846880142431eb184ec0bb
refs/heads/master
2023-04-12T10:23:15.335305
2021-05-05T16:19:57
2021-05-05T16:19:57
360,544,449
0
0
null
null
null
null
UTF-8
Python
false
false
629
py
def grade(): maths = int(input('Enter your maths mark: ')) chemistry = int(input('Enter your chemistry mark: ')) physics = int(input('Enter your physics mark: ')) total_mark = maths + chemistry + physics average_mark = total_mark / 3 if average_mark >= 70: achieve = "You achieved a grade...
[ "dpapworth@academytrainee.com" ]
dpapworth@academytrainee.com
fe54ef4a2f8f30cf3007c63d2da81d1941a2a673
2b8724d84d09f6fd92dc758e3bff7c38e5630ff6
/puzzle6.py
26a79673e3f5745c0566a2d6f3960394bcf127cc
[ "BSD-3-Clause" ]
permissive
apaku/aoc2017
c8605d0dc299dfe6263c0e708537035c5b24e205
03c7fa468d571c02cd7f577e309de5fb39d97092
refs/heads/master
2021-03-24T12:01:32.240124
2017-12-28T10:59:04
2017-12-28T10:59:04
113,380,043
0
0
null
null
null
null
UTF-8
Python
false
false
1,482
py
import sys def part1(numbers): blocks = list(numbers) seenConfigurations = [] iterationcnt = 1 while True: nextSplitIdx = blocks.index(max(blocks)) banksize = blocks[nextSplitIdx] blocks[nextSplitIdx] = 0 nextBlock = nextSplitIdx + 1 while banksize > 0: ...
[ "andreas@froglogic.com" ]
andreas@froglogic.com
41c2187a7bca2dee9abfa4754403ee086d30d9f3
9eb973d9c41708827579b7c4b5b0976fc420d7af
/src/command_modules/azure-cli-resource/azure/cli/command_modules/resource/commands.py
7eba5e84a7887f1178ec54e3130eebcf7e298b12
[]
no_license
affini-tech/azureCli
6e8c2a8a280e11a6a4c9e4cae78eecca8109edcd
5f0a699f78533723cc302a80d8b68a24f83cc969
refs/heads/master
2021-07-07T02:45:52.972867
2017-10-03T07:12:40
2017-10-03T07:12:40
105,291,966
0
0
null
null
null
null
UTF-8
Python
false
false
12,802
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
[ "lco@affini-tech.com" ]
lco@affini-tech.com
87f83e0d8d9efa6a1b537f090b0033bac8c5c9f1
077d59b7619d10d47b2f9ecbc7050f04a3dba4f1
/salaryhedge/salaryhedge/salaryhedge/wsgi.py
b834edaf1b94069f48274f7bb2523e4715f9e61a
[ "MIT" ]
permissive
focalpointgit/djangoReactDemo
04bb383ac6569408bb7dbdcdf8cb1fe123ce16fb
108cae09f1720179648c4e71192b62856ae6b5f0
refs/heads/master
2021-01-02T09:41:37.574732
2017-08-06T15:22:29
2017-08-06T15:22:29
99,280,399
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
""" WSGI config for salaryhedge 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.11/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_...
[ "droconnel22@gmail.com" ]
droconnel22@gmail.com
052b1695bde18eec7367c4ce1d83a35f05d7c79f
92c104f9624be9d4b260724f8c85a71de269b7bf
/ChannelChanger.py
7a3ca177207d68f27e348d912c90e0de77cb9990
[]
no_license
avenezia/Freebox-v5-Management
185b0f00c4f485d1a2bde290e726a5232717b88c
112e35e88b2234a55062935f9f2cee72d280f775
refs/heads/master
2020-05-18T10:59:53.763929
2015-10-11T14:57:12
2015-10-11T14:57:12
25,402,231
0
1
null
null
null
null
UTF-8
Python
false
false
1,613
py
import random import re import requests import time remoteControlCodeFile = "remoteControlCode" def AskRemoteControlCode(): isValid = False code = "" while not isValid: code = raw_input("Please provide the code of your remote control (8 digits): ") isValid = isValidCode(code) SaveCode(...
[ "alessandro.venezia86@gmail.com" ]
alessandro.venezia86@gmail.com
cd856b80d6ed4672151d27dbe1db630024af5417
d71eb59b3890f15e052bb958cfed03b1da5d9e48
/intercommodityArbitrage/reverseStrategy_v1.py
89ad14463dcac9eb94c3b811046cf2ab6987d031
[]
no_license
JasonGuoSkr/futureArbitrage
1a9696ee5ba00515c496d143adbc663b164d938c
3f42ceb914bd9628ef875b4c3924737432b4a396
refs/heads/master
2023-04-03T06:50:47.613013
2021-04-08T05:18:24
2021-04-08T05:18:24
262,966,400
2
0
null
null
null
null
UTF-8
Python
false
false
10,222
py
# @Time : 2020/6/7 16:28 # @Author : GUO LULU import os import datetime import numpy as np import pandas as pd import plotly.graph_objs as go from plotly.subplots import make_subplots import intercommodityArbitrage.futureData import intercommodityArbitrage.spreadAnalysis import rqdatac as rq """ 期货跨品种日内交易策略: ...
[ "gl18253166772@163.com" ]
gl18253166772@163.com
8b51c987b63b3177ed110cb9eba833dc3e9b1891
c1cd6a7a446934c428bc4fbf988f8d6680460488
/dist/restclient.app/Contents/Resources/py2app/bootstrap/path_inject.py
ace081845b5061c6e400919901db030b61234c9f
[]
no_license
devvmh/restclient-py2app
ed016d1763ee99779388c8700dfb9c129cf8ce1a
6826f6cb81c08a36b30878683a58e4f7a18f5041
refs/heads/master
2021-01-10T12:01:31.411373
2016-01-18T03:34:02
2016-01-18T03:34:02
49,850,053
0
0
null
null
null
null
UTF-8
Python
false
false
92
py
/Users/devin/git/restclient/venv/lib/python2.7/site-packages/py2app/bootstrap/path_inject.py
[ "devin@callysto.com" ]
devin@callysto.com
9bbd1824156c6c3fbddd4d501507406d7e4363ca
34179547b19e84de36658edc3bc1d467ea9def22
/2018/Evaluator.py
6ebdd31f78eb0feb444335fe4235dcf0300168de
[]
no_license
MathyasGiudici/polimi-recsys-challenge
a7ca211a0d76a8ac900ad36051854a268bc8d944
7ec8b5913d51772bb79fbff932fba73c806f1121
refs/heads/master
2022-04-18T20:41:28.739208
2020-01-13T19:32:07
2020-01-13T19:32:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,804
py
import numpy as np def precision(recommended_items, relevant_items): is_relevant = np.in1d(recommended_items, relevant_items, assume_unique=True) precision_score = np.sum(is_relevant, dtype=np.float32) / len(is_relevant) return precision_score def recall(recommended_items, relevant_items): is_relev...
[ "mathyas.giudici@mail.polimi.it" ]
mathyas.giudici@mail.polimi.it
ed4509fd979a91930169ae8f72c2fecda12f5bb8
187ea97ac522e70a7c3c7c1f0d85a1f98a347f3b
/config.py
32b5b1180419be78b0c8e28fdf1f16eaafb2b0dc
[]
no_license
RomanRusyn/gRPC_weather
538a01146a3e01cb58baaf4840c68c362572f222
3a2accb4033111c3861196fa8f09f4db192c4ff8
refs/heads/master
2023-07-14T13:41:51.109402
2021-08-26T09:22:24
2021-08-26T09:22:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
import logging from confluent_kafka import Consumer log = logging.basicConfig(filename='consumer_results.log', filemode='w', datefmt='%d-%b-%y %H:%M:%S', level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s ' ...
[ "romanR@ss" ]
romanR@ss
bcc17cde14b9b19e6d3ad5157dd1b1d909f06dc6
87434c060cc23d82e527c0e2f1f972c29e30a0bf
/main/experiments_urls.py
ee187656a35ba90e7f8bad1cc167a5b26d7cce7d
[]
no_license
NSchroeder97/HSB-PHYSIK
2581f95cee8a82cdf031d4578507bb5c3dc86988
a4d3c7cea2f6dc9271a5f15f335b72115b00d51a
refs/heads/main
2023-05-26T15:48:18.974023
2021-05-12T12:11:01
2021-05-12T12:11:01
371,008,727
0
0
null
2021-05-26T11:25:22
2021-05-26T11:25:22
null
UTF-8
Python
false
false
697
py
from django.shortcuts import render from django.http import HttpResponse, JsonResponse from . import experiments # Doppelspalt def doppelspalt(response): return render(response, 'main/experiments/doppelspalt/index.html') # Return the data def doppelspalt_api(response, lam, b, d, angle): data = experiments.do...
[ "mail@lars-jelschen.de" ]
mail@lars-jelschen.de
3e612434ec8be084c6f74e3e8af5bfb81ced3033
20d03615ecb5282fb10dca75dd11469db5d02065
/prq.py
1d2d798324bcd01961bb07cf4ba6e4538cf39d23
[]
no_license
laharikaneelam/Python_exercises
227f2d3c51b652991c77f1e9a947b435376ba9bf
0fcd396a465294c94a20272367799e395cdde954
refs/heads/main
2023-01-24T08:42:46.409130
2020-11-26T14:39:35
2020-11-26T14:39:35
314,806,989
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
def prt(aswrd): sch=aswrd.strip() sch=aswrd.upper() print(f"{aswrd}") prt("print")
[ "noreply@github.com" ]
noreply@github.com
1f72205dad514935455fd3be194807f4ebba7730
7a10bf8748c7ce9c24c5461c21b5ebf420f18109
/ml_training/PythonCode/P4_Pandas_Basics.py
76770dbb25d18994fa84bd5163e320d499c538b4
[]
no_license
VishalChak/machine_learning
aced4b4bf65bbbd08c966a2f028f217a918186d5
c6e29abe0509a43713f35ebf53da29cd1f0314c1
refs/heads/master
2021-06-15T07:13:56.583097
2019-10-05T06:01:58
2019-10-05T06:01:58
133,164,656
0
0
null
null
null
null
UTF-8
Python
false
false
3,051
py
# Import Library import pandas as pd # Read data from a url url = "https://vincentarelbundock.github.io/Rdatasets/csv/datasets/HairEyeColor.csv" df = pd.read_csv(url) # Type of the df object type(df) # Column names list(df) # Show first few rows df.head() # Show last few rows df.tail() # Data...
[ "vishalbabu.in@gmail.com" ]
vishalbabu.in@gmail.com
4de23b31d356ffaea7b2fdcd2e520c3510ebcf5a
a4423a4d393181daf8cd7d5d1426f6b0349a75e8
/SGR_database/database/migrations/0014_auto_20210715_0518.py
7dfde0fab8f5f910cffe944866dd4f773f121618
[]
no_license
CharlieWelly/SGR
73464a9f17b4aa233005eea1331c03a8c64b0646
feaf123cd3a5a4ac92011ddb9595fa61c086b9a4
refs/heads/master
2023-06-15T18:27:12.907551
2021-07-15T11:14:29
2021-07-15T11:14:29
381,625,799
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
# Generated by Django 3.2.4 on 2021-07-15 05:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('database', '0013_rename_statement_categories_statement_statement_category'), ] operations = [ migrations.RemoveConstraint( model...
[ "chicuong.tran08@gmail.com" ]
chicuong.tran08@gmail.com
92d05229bfa88ea1c51868a7605e54193ba9900b
6ca91984eb1bfaae020072e30ac8ba5b81a538ae
/python_ops/__init__.py
b750bcea97b6b2f7a9b06ee6bad54c794aabbb75
[]
no_license
nikhilmishra000/tf_utils
052b3f97715745638901a70bdcde662aa433e10f
0370320d8d276905cbc564d11d4867bf6c025e98
refs/heads/master
2021-01-18T12:21:30.357692
2017-03-03T05:38:41
2017-03-03T05:38:41
68,735,993
1
1
null
null
null
null
UTF-8
Python
false
false
165
py
from .ops import * from .conv_ops import * from .causal_conv import * fc_stack = make_stack(affine) conv_stack = make_stack(conv) deconv_stack = make_stack(deconv)
[ "nikhilmishra000@gmail.com" ]
nikhilmishra000@gmail.com
147eabb86c23fd8281b4ba09190388f7a3989371
549afd4c4c5c9b401a2643210d6a4d75b7aaa308
/src/optlang_operations.py
17e0c0f49974128cd21393d536cc7587fb94db62
[]
no_license
OGalOz/FBA_Learn_Python
ff6c4ab5335b8f0cbfead5dc8da7392429503235
2df9b6fd128db8af1f97f6d12e9ab34ec5268a49
refs/heads/master
2023-05-27T03:06:27.671342
2019-10-07T18:19:34
2019-10-07T18:19:34
210,938,075
0
2
null
2019-10-03T21:48:04
2019-09-25T20:49:44
Python
UTF-8
Python
false
false
2,749
py
# In this file we make use of optlang # More info here: https://optlang.readthedocs.io/en/latest/ from optlang import Model, Variable, Constraint, Objective # You can declare the symbolic variables here with upper and lower bounds: ''' x1 = Variable('x1', lb=0, ub = 100) ''' #S is the stoichiomatrix as passed in ...
[ "ogaloz@lbl.gov" ]
ogaloz@lbl.gov
eb86c5d2bcdc85721b23e67fb5747812f0c969e5
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/providerhub/v20201120/get_skus_nested_resource_type_first.py
48f43b29f82376eb8e0e141895212a4bf923acac
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,018
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
[ "noreply@github.com" ]
noreply@github.com
c909c27dee1ebaf63d9a85b7a5f256163a57af3d
80e80d222068f26773b5a866d4244ec215227bf2
/cogs/twitch.py
ee9f751519ff13013e23e8ba336aa9b69ded0b29
[ "MIT" ]
permissive
coma3009/harin
399958aea42b37b04c2e259f88a4624ed5c8a1ad
b0fb198a5928b05c032d017e3f6998a978c9b92e
refs/heads/master
2023-09-03T02:30:45.241978
2021-11-22T07:19:04
2021-11-22T07:19:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,966
py
import asyncio import json import os import time import traceback import aiohttp import aiosqlite import discord import discordSuperUtils import requests from PycordPaginator import Paginator from discord.ext import commands from typing import List from discord_components import Select, SelectOption, Button from dote...
[ "popop098@naver.com" ]
popop098@naver.com
c273e5c4afb916b2bfe8fda1dff478b84e299c6e
27aaadf435779c29012233cb1dacf27bd9dd0d0f
/cdn-20141111/alibabacloud_cdn20141111/client.py
ef23e019ac3566d3e731afcffe814a639e52c28f
[ "Apache-2.0" ]
permissive
aliyun/alibabacloud-python-sdk
afadedb09db5ba6c2bc6b046732b2a6dc215f004
e02f34e07a7f05e898a492c212598a348d903739
refs/heads/master
2023-08-22T20:26:44.695288
2023-08-22T12:27:39
2023-08-22T12:27:39
288,972,087
43
29
null
2022-09-26T09:21:19
2020-08-20T10:08:11
Python
UTF-8
Python
false
false
99,229
py
# -*- coding: utf-8 -*- # This file is auto-generated, don't edit it. Thanks. from typing import Dict from Tea.core import TeaCore from alibabacloud_tea_openapi.client import Client as OpenApiClient from alibabacloud_tea_openapi import models as open_api_models from alibabacloud_tea_util.client import Client as UtilCl...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
a481bdd3a1a74bf95361e1226dd78bdd78fb27f1
d088bd6e31a64affda073ddc902fa77a4a8a4e0d
/handdle.py
bdb3dd7f2351c6828d19dfa471ea453027eacd86
[]
no_license
fangtang0101/python-data
a21def51bf73a3e30b256b4512d0c3a53431d233
edbae51267d025fd938ee6478de6497a2e63a3fc
refs/heads/master
2020-04-07T12:26:27.180146
2018-03-07T09:55:59
2018-03-07T09:55:59
124,211,397
0
0
null
null
null
null
UTF-8
Python
false
false
4,248
py
#-*-coding:utf-8 -*- import os import string import shutil import xlrd import sys import chardet from xlutils.copy import copy import json import xlwt import sys #2. 将对应的数据放到 对应的 文档里面 path_or = "source_or" path_tar = "source" list_info ={ "content": [ { "path":"./source/model/西餐厅.xls", "key_sheet_nam...
[ "fangchungao@rltx.com" ]
fangchungao@rltx.com
f8fb78b34913903cdd4e7dbecf2b63afad70b866
b19a1baf69d1f7ba05a02ace7dfcba15c8d47cfb
/my_random.py
1a36aadaabd3e30ae66d3858d940a5fa861897f8
[]
no_license
MarkHofstetter/20191018-wifi-python
20ed5de1cf28996902cecf7cd681d054e0d06739
7427b896783059a77c541e95df851a492ef5ebb9
refs/heads/master
2020-08-15T03:43:42.964992
2019-10-28T14:39:17
2019-10-28T14:39:17
215,275,139
2
2
null
null
null
null
UTF-8
Python
false
false
991
py
# kopfrechen # der benutzer bekommt 2 unterschiedliche zufallszahlen jeweils im Bereich 1 - 10 # die muss der Benutzer multiplizieren # und es wird ueberprueft ob die aufgabe richtig geloest wurde # zusatz # 10 verschiedene Aufgaben stellen und sich merken # wieviel richtig und falsch waren import random from util i...
[ "mark@hofstetter.at" ]
mark@hofstetter.at
d332b3dd09b91c5e952ba6af93587d2050fea535
f20d9ff8aafb8ef2d3e4a14b1d055be7c1a1e0db
/create_database.py
1c4848520b8d61043baad8f24786a792f0988323
[]
no_license
HopeCheung/menu_api
25fee2d807e86245bc547c753a8bc156d99b9962
bfb410bfe5cd686e237f937f64bac198e178c75e
refs/heads/master
2020-05-09T20:59:49.467719
2019-04-15T17:42:24
2019-04-15T17:42:24
181,426,747
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
import os import sqlite3 conn = sqlite3.connect("menu.db") conn.execute('create table menu (id int, name varchar(20), item varchar(20))') cur = conn.cursor() cur.execute('insert into menu values(1, "Lunch Specials", "Chicken")') cur.execute('insert into menu values(2, "Dinner Specials", "Pork")') cur.execute('insert...
[ "568038810@qq.com" ]
568038810@qq.com
2f00b65bb0196e3aa1f07c30430bc2e692b9861d
5476559c5a1b2d45533da87f0d4919cc97a41d5c
/map_objects/tile.py
1fca69ba8f3e9574b7da022c03c3b6ff56bcb938
[]
no_license
sheekthief/RoguelikeAdventure
c56044ea9671cfbe598a65dc794e79147258c9e1
9d12639ec499543da61b3b6d0231787b7399ddb4
refs/heads/master
2020-05-07T21:02:24.499353
2019-04-11T22:49:44
2019-04-11T22:49:44
180,888,930
0
0
null
null
null
null
UTF-8
Python
false
false
412
py
class Tile: """ A tile on a map. It may or may not be blocked, and may or may not block sight. """ def __init__(self, blocked, block_sight=None): self.blocked = blocked self.explored = False # By default, if a tile is blocked, it also blocks sight if block_s...
[ "noreply@github.com" ]
noreply@github.com
3f2df8afaad5f9ab52f07effc22cd98efdca27fd
1da709080d0cc12f58a15d9ea1aa1e3c8511b0ad
/HW 4/hw4_TempSolver.py
ad26fb46f86a6f9b13e17b261faf3e5bbfa48c30
[]
no_license
Avd6977/me701
75b2462229d2852e42443632d3cba8f351f01725
8888825389758f7691b18176a219ea76ab8ff3a3
refs/heads/master
2020-05-18T15:27:24.151420
2014-11-26T01:37:33
2014-11-26T01:37:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
# Test of the F2PY module from hw4 import * print "Dirilicht conditions (temperature at both sides defined)" tempsolver.tempsolve(1, 1, 100, 0, 100, 0, 0) print "\n" print "Left side temperature and spatial derivative defined" tempsolver.tempsolve(1.5, 2, 500, 1.5, 0, 0, 1) print "\n" print "Right side temperature an...
[ "Avd@ksu.edu" ]
Avd@ksu.edu
36d309841dbe245ef49c789e87285f004a3dd0c7
169e75df163bb311198562d286d37aad14677101
/tensorflow/python/keras/_impl/keras/layers/gru_test.py
48e7e14f5ab73b534ab0d1c765ad2572b2930b2b
[ "Apache-2.0" ]
permissive
zylo117/tensorflow-gpu-macosx
e553d17b769c67dfda0440df8ac1314405e4a10a
181bc2b37aa8a3eeb11a942d8f330b04abc804b3
refs/heads/master
2022-10-19T21:35:18.148271
2020-10-15T02:33:20
2020-10-15T02:33:20
134,240,831
116
26
Apache-2.0
2022-10-04T23:36:22
2018-05-21T08:29:12
C++
UTF-8
Python
false
false
7,280
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "zylo117@hotmail.com" ]
zylo117@hotmail.com
7f6219a3f5413f7f8ccc9a6748aee73c9408722c
8cb5b2e2a84252403ca2cd271c4a227eba1ae003
/test_grid.py
c0800c9d451513546124d95ce0cedd82e442a760
[]
no_license
barnybug/aoc2018
e2e972e984b807bae55ca0914de2fbb197ac8a91
a98d8992ccc4a7cc3d49084fb179665ff5bba605
refs/heads/master
2020-04-09T07:29:54.204975
2019-01-07T20:18:30
2019-01-07T20:18:30
160,158,332
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
import collections from grid import DenseGrid, SparseGrid def test_empty_grid(): g = DenseGrid() assert str(g) == '' def test_grid_set(): g = DenseGrid() g[1,1] = 'A' assert str(g) == 'A' g[2,1] = 'B' assert str(g) == 'AB' g[2,2] = 'C' assert str(g) == 'AB\n.C' g[-1,1] ...
[ "barnaby@pickle.me.uk" ]
barnaby@pickle.me.uk
8543373d98c1f04b791fbc898524b98731cd31c2
490fad8eb8856c16b3d1d2e1ac3d00f5bd1280ba
/langsea/managers/category_manager.py
5e1600baac8d6797c904a7ef17ec7107403b641f
[ "MIT" ]
permissive
blancheta/langsea
ebd12b16ff1b36d4292f527ec58f23b93deecbe7
e268b43fb94e3234ac161f2e5d9600d51360e4b3
refs/heads/master
2020-12-25T14:14:49.029568
2016-08-20T16:31:00
2016-08-20T16:31:00
66,143,438
1
0
null
null
null
null
UTF-8
Python
false
false
591
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import requests from langsea.models.category import Category class CategoryManager: categories_api_url = 'http://www.langsea.org/api/categories/' def all(self): response = requests.get(self.categories_api_url) if response.ok: categories = [] for category_...
[ "alexandreblanchet44@gmail.com" ]
alexandreblanchet44@gmail.com
059440aacffa1c8f20a8b2ab1a4509ae258fd1a7
3bf32bd11cb1a9d52eb40e89d0cca3ff00b8f11f
/catalog/migrations/0004_auto_20200908_1443.py
cb2d06b580abe94c245df3cd2945c19749d55c06
[]
no_license
poojabankapur/my_django_project
8c608933e21ceed8e7f8dcc8d37274ebaa22435b
1a9d7dce7b1e4ff0b3052f20b67a5c5e6a59f212
refs/heads/master
2022-12-12T06:23:06.398165
2020-09-14T10:08:54
2020-09-14T10:08:54
294,719,173
0
0
null
null
null
null
UTF-8
Python
false
false
432
py
# Generated by Django 3.1.1 on 2020-09-08 13:43 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('catalog', '0003_bookinstance_borrower'), ] operations = [ migrations.AlterModelOptions( name='author', options={'ordering': ...
[ "pbankapur@ICTs-MacBook-Pro.local" ]
pbankapur@ICTs-MacBook-Pro.local
fc0a6b47b61e7204041f443dd3d55ac34db67122
7181e3d99d12a52ae77235bc2558b4a142e22aa6
/7/wangpeng/trans/main.py
ede9e408a846dde83206e7a664536143334de01c
[ "Apache-2.0" ]
permissive
ywang412/homework-arch-4
2ede97e1fb400744e7108b8f9c44c3eb77b21324
4182448356f875398d2a2ac34092d876261e3078
refs/heads/master
2021-05-09T20:02:19.520761
2015-08-06T04:53:13
2015-08-06T04:53:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
786
py
#!/usr/bin/env python # coding=utf-8 import sys, os import MySQLdb as mysql import json import hashlib sys.path.insert(1, os.path.join(sys.path[0], '..')) from simpleNet.nbNetFramework import nbNet, sendData_mh save_l = ["localhost:9650", "127.0.0.1:9650"] ff_l = ["localhost:9652", "127.0.0.1:9652"] saver_sock_l =...
[ "pengwang18@163.com" ]
pengwang18@163.com
342faa074eb53a041843400d7c3e767d4ba98c72
96c199298bb00724463dcc66ccf887008b76a9d0
/py_pairing-master/tests/test_bn128.py
232d20adaea0f56644df789aa2d2ad4ea4e7e4c9
[ "MIT" ]
permissive
Yuki23329626/bilinear_pairing
6853d93ffd93811802bce4e1f220e430707ffe7a
b5d937668bfb6794ccb612f368ae5b5221aa1e4d
refs/heads/master
2023-04-15T05:55:17.417321
2021-04-20T05:19:35
2021-04-20T05:19:35
355,343,351
3
0
null
null
null
null
UTF-8
Python
false
false
3,336
py
import time from py_ecc import bn128, optimized_bn128 print('Starting bn128 tests') for lib in (bn128, optimized_bn128): FQ, FQ2, FQ12, field_modulus = lib.FQ, lib.FQ2, lib.FQ12, lib.field_modulus assert FQ(2) * FQ(2) == FQ(4) assert FQ(2) / FQ(7) + FQ(9) / FQ(7) == FQ(11) / FQ(7) assert FQ(2) * FQ(7)...
[ "michael7105@gmail.com" ]
michael7105@gmail.com
a4e0b6eb057702056e41fe66f4ad49f9ee4bbfe4
520908cb844d4f26e06c36675a0aeecd1d428942
/teachDRL/gan/maze_generators/pacman_blocks.py
5fc2f0f55a0d6e92713be664df66a80ccd46c1cf
[ "MIT" ]
permissive
pierreosselin/teachDeepRL
713e3b2273aafbb4adcf562f745c69854c59b808
51b512ce17a271a63b4d8b0780850511eb008750
refs/heads/master
2023-08-14T23:47:27.575306
2021-09-23T20:37:36
2021-09-23T20:37:36
395,716,623
1
0
MIT
2021-08-13T16:13:20
2021-08-13T16:13:18
null
UTF-8
Python
false
false
5,792
py
import numpy as np import random rectangle3x3 = np.array([[1, 1, 1], [1, 2, 1], [1, 1, 1]]) rectangle2x5 = np.array([[1, 1, 1, 1], [1, 2, 2, 1], [1, 1, 1, 1]]) rectangle5x2 = np.transpose(rectangle2x5) rectangle3x5 = n...
[ "pierre.osselin@gmail.com" ]
pierre.osselin@gmail.com
c4d0070b71718c580c72e76d286979f11962b509
bab394bc828702663baef346fe65e3cbe592121e
/get_id.py
410448e820bbd61217022470dd8194ef382d0d92
[]
no_license
hilting/9sig
79ba22ac377f630a440e6424f5f98f49ccdbe7bf
1b4390206d9d9d4277687083d5447bede1b00fcd
refs/heads/master
2020-03-06T14:16:59.440043
2018-05-10T07:05:05
2018-05-10T07:05:05
126,932,995
0
0
null
null
null
null
UTF-8
Python
false
false
556
py
# coding: utf-8 import urllib.request from xml.etree.ElementTree import * def get_id(url):#論文IDを取得する result = urllib.request.urlopen(url) return result def main(): keyword = "all[filter]" baseURL = "http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&retmax=28389011&term=" url = ba...
[ "to1216goo@gmail.com" ]
to1216goo@gmail.com
d3270efae30d0bd295cd3e3f2a19feb5ea441aca
719fd713fbe76af8d7a957ceb3f8857daeeca2cd
/users/models.py
8b0e1f4375bd40b00e375b3ceb0529b3d7ba176d
[]
no_license
geraldbryan/DayDreams
bf6a6008fc64012bfbd72a02feaffb8de53507c8
1408b4eb54147e676d25ad27701f21b70fdb7ddc
refs/heads/master
2023-06-07T08:31:32.891910
2021-07-09T08:41:42
2021-07-09T08:41:42
384,371,163
0
0
null
null
null
null
UTF-8
Python
false
false
620
py
from django.db import models from django.contrib.auth.models import User from PIL import Image class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE) image = models.ImageField(default='default.jpg',upload_to='profile_pics') def __str__(self): return f'{self.user....
[ "geraldbryan9914@gmail.com" ]
geraldbryan9914@gmail.com
f2baaf3156daf238102ec6521a31dcbcc7642cee
e344705eb6b8bae2e06cd658f540219f8b6e7973
/baidubaike/baike/spiders/swg.py
371bfbaef8481e3c4ee900d995b1ab173d8d4702
[]
no_license
dustw/my-scrapy
023211f1d32b2883ef58249ec528ec15658db86d
7263680cfa16e2615187b745c97fbc3cacf3780a
refs/heads/master
2020-04-11T21:13:45.622353
2017-08-23T02:49:31
2017-08-23T02:49:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
# -*- coding: utf-8 -*- import scrapy from baike.items import SWGItem class SwgSpider(scrapy.Spider): name = "swg" allowed_domains = ["chazidian.com"] def start_requests(self): for i in range(1, 64): url = "https://www.chazidian.com/kepu-1/%s/" url %= str(i) ...
[ "azraelkuan@gmail.com" ]
azraelkuan@gmail.com
1721190f8b16788f28f27201dfa5c446cc4a8387
45983984d5c2b655e2e3b13538e3c93993c41649
/fourm/migrations/0003_auto_20200518_1646.py
232abdad560d2bcf24fef31b28808627053cf7da
[]
no_license
Code-Institute-Submissions/reddevil-it
14c172ddd13c2796250108221b9dafe67306eff3
57dc4561382086cd7847058cc6f754c24c04316d
refs/heads/master
2022-11-16T10:59:26.757803
2020-07-03T20:48:58
2020-07-03T20:48:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
# Generated by Django 3.0.6 on 2020-05-18 15:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('fourm', '0002_comment'), ] operations = [ migrations.AlterModelOptions( name='comment', options={'ordering': ['-created_date...
[ "plyn99@gmail.com" ]
plyn99@gmail.com
17155a2faf01fd4d1b8ef2bd64c48e450adac8c7
8aa04db29bae5e0391543349eb2c0f778c56ffae
/tensorflow/python/trackable/asset.py
c218f7240e4f29d6e95140050581981776c3b287
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
mansnils/tensorflow
ec1a840f8fca6742d6e54dcf7b00eae0180f4023
b0164f014fd4f1b5af2c7b578aa7687198c5d92e
refs/heads/master
2023-01-30T00:13:07.772844
2023-01-09T09:45:45
2023-01-09T09:49:49
226,075,754
1
0
Apache-2.0
2019-12-05T10:27:38
2019-12-05T10:27:37
null
UTF-8
Python
false
false
4,278
py
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
2b088e0ff1d83996a411c99f34c71c0535824b69
739ed6d193d5d524777d88dbebb0dd86b09a0002
/04_Self_Organizing_Maps/som2.py
53a8f33246f74e820ef8ca892e44938a6a657320
[]
no_license
gnzeleven/Introduction-to-Deep-Learning
0480963ea4b722a310d180c7d66ff53db9cbf5d5
dbf5db18b7c8e77562bbbeb9a51c675b8b946665
refs/heads/master
2022-04-26T15:26:02.973164
2020-04-29T07:32:17
2020-04-29T07:32:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,099
py
# -*- coding: utf-8 -*- import numpy as np import pandas as pd # Import the dataset df = pd.read_csv("Credit_Card_Applications.csv") X = df.iloc[:,:-1].values y = df.iloc[:,-1].values # Feature Scaling from sklearn.preprocessing import MinMaxScaler scaler = MinMaxScaler(feature_range=(0,1)) X = scaler.fit_transform(X...
[ "vsav4796@gmail.com" ]
vsav4796@gmail.com
4befe135006f88eaa43f75a4a79d805a6d066eaa
6188f8ef474da80c9e407e8040de877273f6ce20
/examples/docs_snippets/docs_snippets/guides/dagster/asset_tutorial/non_argument_deps.py
9d15421d4ee2978a194a43bb4d650ad0f3abb1eb
[ "Apache-2.0" ]
permissive
iKintosh/dagster
99f2a1211de1f3b52f8bcf895dafaf832b999de2
932a5ba35263deb7d223750f211c2ddfa71e6f48
refs/heads/master
2023-01-24T15:58:28.497042
2023-01-20T21:51:35
2023-01-20T21:51:35
276,410,978
1
0
Apache-2.0
2020-07-01T15:19:47
2020-07-01T15:13:56
null
UTF-8
Python
false
false
2,104
py
"""isort:skip_file""" import csv import requests from dagster import asset @asset def cereals(): response = requests.get("https://docs.dagster.io/assets/cereal.csv") lines = response.text.split("\n") return [row for row in csv.DictReader(lines)] @asset def nabisco_cereals(cereals): """Cereals manu...
[ "noreply@github.com" ]
noreply@github.com
9363952762d4ee6b82a4c8df7930a32ea9a3d38e
bf142a05b1ca81133134a0edc5c17ae5663f5674
/raindrops/raindrops.py
e06b1130f72344e3b4017f8530c8567a6161b837
[ "MIT" ]
permissive
brincandodecodigo/exercism-python
3861aebe242521ac150da4ab4ac025edb83de60e
e8b85b58b95e765d0007c42f1831fb101932ba2d
refs/heads/master
2023-08-24T23:58:32.866224
2020-02-10T12:53:39
2020-02-10T12:53:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
def convert(number): result = '' if has_a_factor(3, number): result = 'Pling' if has_a_factor(5, number): result += 'Plang' if has_a_factor(7, number): result += 'Plong' if result == '': result = str(number) return result def has_a_factor(divi...
[ "rodolfoghi@gmail.com" ]
rodolfoghi@gmail.com
1a7a8e09a81b8040aac3110112deebcf610eb7f1
e5235cd85bd39f6217daad41bd36f5d21eb9453c
/crm/customers/migrations/0001_initial.py
2441f376f23c77e88af0ea60cdf90dab06c90a14
[]
no_license
nvkgrandhi/micro_demo
e02fa3e78a6ea0e235a26aca0b028bdaa7418ca8
536cbab1337f0093dc13e689f91cbb216ff30eee
refs/heads/master
2021-01-15T10:30:16.359677
2016-09-22T06:55:25
2016-09-22T06:55:25
68,444,191
0
0
null
null
null
null
UTF-8
Python
false
false
1,091
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-08-31 10:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Custome...
[ "nvk.grandhi@gmail.com" ]
nvk.grandhi@gmail.com
f0fe8bf81395b500283f072d2cfc7707ccbc1605
4904f8a7621abdf94c2024d6a7548f509795031a
/part2_lesson4_part8.py
2b952ccca5f97acbc75938d5f92c98cee8aa10ee
[]
no_license
tagval/stepik_selenium_course
945a0dc6539ee1dcb2616b4bdbc6615ce76eac05
d98955b0e98a7ff9a88248206a2ece595b9040f5
refs/heads/main
2023-03-07T17:50:47.678212
2021-02-27T16:55:19
2021-02-27T16:55:19
342,903,793
0
0
null
null
null
null
UTF-8
Python
false
false
895
py
from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium import webdriver import math browser = webdriver.Chrome('C:/chromedriver/chromedriver') browser.get("http://suninjuly.github.io/explicit_wa...
[ "elanskaiavaleriia@gmail.com" ]
elanskaiavaleriia@gmail.com
fe6afb0a5ceacf91383ce734fe45b592f58f00f9
d05a59feee839a4af352b7ed2fd6cf10a288a3cb
/xlsxwriter/test/comparison/test_chart_axis30.py
9e4ec252d029acea26ddf0d4218712e6c3c78c56
[ "BSD-2-Clause-Views" ]
permissive
elessarelfstone/XlsxWriter
0d958afd593643f990373bd4d8a32bafc0966534
bb7b7881c7a93c89d6eaac25f12dda08d58d3046
refs/heads/master
2020-09-24T06:17:20.840848
2019-11-24T23:43:01
2019-11-24T23:43:01
225,685,272
1
0
NOASSERTION
2019-12-03T18:09:06
2019-12-03T18:09:05
null
UTF-8
Python
false
false
1,350
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2019, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
44d8425b208455af67d6a623c4d696395a4de417
7a813b486667c779c9448a2a177279fabf1821d0
/ikinciProje/QT_Elemanlari4.py
d8111a87992092d1b0f9fd6bcc1f30ea7af99c7a
[]
no_license
ilker07/pythonProjeler2
bc1ca6882ee273f9e9317347ba0a90dff13c0797
ece48c4bb9b13ccb5ac1b314b81a3148aa0472d1
refs/heads/master
2020-08-01T03:19:01.805408
2019-09-25T12:55:52
2019-09-25T12:55:52
210,842,979
1
0
null
null
null
null
UTF-8
Python
false
false
2,567
py
import sys from PyQt5.QtWidgets import * class TabWidgetPencere(QTabWidget): def __init__(self): super().__init__() self.tab1=QTabWidget() #widget da olabilir. self.tab2=QTabWidget() self.tab3=QTabWidget() self.Tablo1() self.Tablo2() ...
[ "noreply@github.com" ]
noreply@github.com
0cb18c06d4974881f1dc288fc8f99a559cac9f83
d48c03d5d925a3626dacf7e071fd1844165aa816
/day2-4.py
1f9f614cd1f7ef3e9ab3f56343e7c2fc771a0f3e
[]
no_license
Nene888/Python200804
2ec8ae4c304842418a09885600fe221cb4b0680d
e31364fb9f80fadb1be9f8a6aa3ccdedc11dec16
refs/heads/master
2022-11-25T12:46:35.115403
2020-08-04T08:55:10
2020-08-04T08:55:10
284,927,210
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
# -*- coding: utf-8 -*- """ Created on Tue Aug 4 14:29:31 2020 @author: USER """ ww=['芒果','西瓜','蘋果','鳳梨'] ww.append('榴槤') print(ww) ww.insert(2,'檸檬') print(ww) ww.remove('榴槤') print(ww)
[ "noreply@github.com" ]
noreply@github.com
cd0aa0709e33dd26bd91d1e55facc99254e15216
d0b6940acef2dd8ee8e37dc1034cb7e6799889f8
/build/ur_e_description/catkin_generated/pkg.installspace.context.pc.py
eae8692e9c7a38050d6c96c32a004725305a6ce3
[]
no_license
robwoidi/ws_MoveIt
5477202f01e7ddd9c4bdf21187c755fe80bf6c4d
9b004cd792193337f9f3e628ded7a63e97f85295
refs/heads/master
2023-07-06T01:54:24.311735
2021-08-08T11:57:34
2021-08-08T11:57:34
393,943,940
0
0
null
null
null
null
UTF-8
Python
false
false
380
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 = "ur_e_description" PROJECT_SPACE_DIR =...
[ "woidi@t-online.de" ]
woidi@t-online.de
92b993bc968fb1474af2b62d15d6c00134f51a89
2baa8c8b4394d2e35fa4a31064d8164bda472a33
/natural-helpers-sematic/Dynamic Echo Chamber Code/runAll.py
5800eef69f8cbefa5bd95cf98f48fe9bad69f3d6
[]
no_license
ZencoderO/Code-Examples
2c15f25ebc3596d4ea0a9350f058ea89d00e9439
6b4f7e649e191c68c8c2c0573057a93156b85c6c
refs/heads/main
2023-03-25T23:23:09.647451
2021-03-21T04:38:58
2021-03-21T04:38:58
341,817,551
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
import sys import createComunities import proccessDataNoSciKit import printDatNoSciKit createComunities(sys.argv[0],sys.argv[1]) proccessDataNoSciKit() printDatNoSciKit()
[ "noreply@github.com" ]
noreply@github.com
c174eeaece6b1b311b305f2b8e6aae548566a5fb
b314518eb3e33c872f880c4f80a0f3d0856cf9ee
/12_marks.py
bd31d77188a83adcb12a63ab0e53a8fd0675250c
[]
no_license
namntran/2021_python_principles
0ba48d2cb6ff32a4fefd0b13ae24d2376e17740e
bf33210f9b0e02dfefe7a9a008936e8f47d25149
refs/heads/main
2023-03-10T15:47:48.930202
2021-02-25T07:27:53
2021-02-25T07:27:53
330,814,436
0
0
null
null
null
null
UTF-8
Python
false
false
964
py
# 12_marks.py # Prompt for and read marks for a test unit a negative number is entered. # Print the number of marks entered and the average (arithmetic mean) of marks # Print the highest and lowest marks # use indefinite loop - while loop n = 0 total = 0.0 mark = float(input("Enter a mark: ")) #initialise variables t...
[ "namtran78@gmail.com" ]
namtran78@gmail.com
5081ba74faf068dafa072c75ebd968f006d2a8d4
7356b5b759ad072b1277470dbe9c777ff08ca22d
/Adventure/inventory.py
b7e82e37101cc696d3d8d8c52830ac8f88981146
[]
no_license
Nmad7/A-forest-adventure
a206348c302b126598492c13a01ea52aad47533e
9703657074f744711ed9fe3fa51c07afda829dc0
refs/heads/master
2021-09-01T01:05:31.512322
2017-12-24T01:44:04
2017-12-24T01:44:04
115,231,677
0
0
null
null
null
null
UTF-8
Python
false
false
3,518
py
''' A model of an inventory Created on Nov 20, 2017 @author: ngm7 ''' class Inventory(): ''' A class which keeps track of player inventory and allows changes to it ''' def __init__(self): ''' Initializes an empty inventory and item classes ''' self.item...
[ "noreply@github.com" ]
noreply@github.com
815c29c7ac315b39685f4cb97cfe0129b2f4b029
b2c0517a0421c32f6782d76e4df842875d6ffce5
/Algorithms/Dynamic Programming/121. Best Time to Buy and Sell Stock.py
ebf0f3692c9e7ba74f468b736b65e900ba63d3d1
[]
no_license
SuYuxi/yuxi
e875b1536dc4b363194d0bef7f9a5aecb5d6199a
45ad23a47592172101072a80a90de17772491e04
refs/heads/master
2022-10-04T21:29:42.017462
2022-09-30T04:00:48
2022-09-30T04:00:48
66,703,247
1
0
null
null
null
null
UTF-8
Python
false
false
1,053
py
#Forward class Solution(object): def maxProfit(self, prices): if(not prices): return 0 minP = prices[0] maxPro = 0 for i in prices: if(i <= minP): minP = i else: maxPro = max(maxPro, i-minP) return maxPro #Backward class Solution(o...
[ "soration2099@gmail.com" ]
soration2099@gmail.com
8a680ee2aed29c19da1dff4e54875c68891b75dc
b746470138e95b56d67ecfe376c439c7de094357
/find_your_celebrity_lookalike_with_computer_vision_594.py
a5dd79b7103bfecaf4c58df3892a3ed73dbe974d
[]
no_license
mdtahsinasif/CloudLab
aaf896990612c364a85f22a84378b193749185b9
601b6b3c8dd37b368390e3a2ee4dcc296541bdf2
refs/heads/main
2023-03-26T06:08:16.756202
2021-03-09T11:20:57
2021-03-09T11:20:57
330,952,349
0
0
null
null
null
null
UTF-8
Python
false
false
1,917
py
#!/usr/bin/env python # coding: utf-8 # In[18]: get_ipython().system('mkdir ../lookalikeceleb/') # In[19]: import face_recognition import os import numpy as np from IPython.display import Image # In[20]: def load_images(known_images_dir): known_encodings = [] known_images = [] for file in os.lis...
[ "noreply@github.com" ]
noreply@github.com
d84cdd667cd99b39e7bb85cdc640ce9d2da56e13
ee7abc2f88faf56699197732bf215fd0b1c0d992
/18.LocalChat/vd/vd2.py
59d273191d294a28fa1951d649768a8493d74df9
[]
no_license
hntvinh90/python_project
4bd2256885ff2efc48f7c35959a3f05ba507c2c8
489da9cd309f79d56a020334ce5a80480e678b70
refs/heads/master
2020-04-25T19:10:14.350978
2019-02-28T16:53:49
2019-02-28T16:53:49
173,009,904
0
0
null
null
null
null
UTF-8
Python
false
false
110
py
#!/usr/bin/python """""" def main(): return True if __name__ == '__main__': main() ''' ''' 'asdas'
[ "honguyenthanhvinh@gmail.com" ]
honguyenthanhvinh@gmail.com
e86d67f32b9eade3829748ae16ebc5608042241f
f791462fb1286607d16459c1602d133f8d8c8b59
/test/test_distributions_mixture.py
a1ab093e65ea5c73f333d6fcd898c35cb3340e73
[ "Apache-2.0" ]
permissive
pyro-ppl/numpyro
b071ed2bd93be41bafc3da8764c9f5617f996d92
ca96eca8e8e1531e71ba559ef7a8ad3b4b68cbc2
refs/heads/master
2023-09-03T15:56:13.252692
2023-08-28T14:32:25
2023-08-28T14:32:25
170,580,540
1,941
219
Apache-2.0
2023-09-04T11:26:11
2019-02-13T21:13:59
Python
UTF-8
Python
false
false
5,161
py
# Copyright Contributors to the Pyro project. # SPDX-License-Identifier: Apache-2.0 import pytest import jax import jax.numpy as jnp import numpyro.distributions as dist rng_key = jax.random.PRNGKey(42) def get_normal(batch_shape): """Get parameterized Normal with given batch shape.""" loc = jnp.zeros(bat...
[ "noreply@github.com" ]
noreply@github.com
678afcc0724c6f5ef1b5f4ed3a8f9fc6b59d5a11
26418ec10db11fcce0acdaaef8b01ff7576f5584
/secondproject/urls.py
4d799338e0d990f74b918fe015e57b9052b3f188
[]
no_license
yeeunee/real_blog
bc949e04aa84023e8d53d1f60450ea38520c2806
1487054a87ac215b5ef13e0ab5ad6f1d2b84e6ef
refs/heads/master
2020-04-28T15:04:03.569158
2019-03-13T06:21:26
2019-03-13T06:21:26
175,358,629
0
0
null
null
null
null
UTF-8
Python
false
false
817
py
"""secondproject 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') Class...
[ "sentirector@gmail.com" ]
sentirector@gmail.com
9681b96bcbfa23482456f66a61a1679fa4b8b4c4
a2ecfcd9f51c00b8836c0357f6b7b8482733e544
/src/finetune_scripts/transformer_models.py
c40fda94ee5c5029f05bbcdb29e1b584df410598
[]
no_license
Enniwhere/airbnb-sentiment-vis
03e98787a21a11ef819f740981b4edd17b2ad0ae
09a415061112e9c69675f1181902906e31e430de
refs/heads/master
2021-05-20T02:03:00.421021
2020-04-20T08:59:48
2020-04-20T08:59:48
252,139,245
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:a84bdd75aacb61d69f63c11f9c449eef2bd07881c00fddb82d76e7ca98bf5b7b size 3802
[ "enni@cs.au.dk" ]
enni@cs.au.dk
0cfe6683a4fd0a381b62f6da4647e3531099d53e
f1bc74572c5e93d3a8d40aaec47f36af7dfba2ee
/prototype/Tuna/myvenv/Scripts/django-admin.py
de343c74f429c717d2d4c1fb2a0d80ab273a088d
[]
no_license
jbnulastproject/ant_front
d0f85a3b203a05a6a40fb9b804206baf0f9ad8f5
379b41a3c1246648ad6faa2fad6b8df83dc4f6c5
refs/heads/master
2020-11-30T12:26:06.176588
2019-12-29T13:10:19
2019-12-29T13:10:19
230,396,608
0
0
null
null
null
null
UTF-8
Python
false
false
181
py
#!c:\users\user\desktop\ant_front\prototype\tuna\myvenv\scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "rudals901@gmail.com" ]
rudals901@gmail.com
1de8c0a0efc4e8cbd1f338c8f43f5c4b19e5dc87
0ccede4589d755393f28f48d9ee3e4e1f95cb68c
/django/django_fullstack/Favorite_Books/favbook_app/models.py
2255b73353fc6d9e77c06a59f55f64da64eeb306
[]
no_license
mezoswn/python-stack
766caa92a13160dab9a3649ffffb26375735715c
e12e82bc3aaaaa0e9cb4314da3c391006c7e08fc
refs/heads/master
2023-05-08T00:24:02.863567
2021-05-31T01:59:53
2021-05-31T01:59:53
364,519,735
0
0
null
null
null
null
UTF-8
Python
false
false
2,961
py
from django.db import models from time import localtime, strftime import re from django.db.models.deletion import CASCADE class BlogManager(models.Manager): def basic_validator(self, postData): errors = {} EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$') lisOfEmai...
[ "m.sweidan@hotmail.com" ]
m.sweidan@hotmail.com
b3e93972753af0b81f60866b5810dda48c085e27
d2f4aba8f2bae909267a7e19af30355277f51266
/jd_spider/information_summary_filter/__init__.py
f294a8e80324feea507629ebdaaf6fbaa5b09bf9
[]
no_license
msechen/jdpor
24cb315a76bbd6c92d1f4bbc3100960aac328491
af89f0d420b55648b244fcb64802beff783af28e
refs/heads/master
2023-03-18T19:04:10.133701
2020-06-19T05:52:09
2020-06-19T05:52:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,684
py
# 基于redis的存储 import hashlib import six class BaseFilter(object): def __init__(self, hash_func_name="md5", redis_host='localhost', redis_port=6379, redis_db=0, redis_key='boss', ): self.redis_host = r...
[ "2521815745@qq.com" ]
2521815745@qq.com
25a56b9668be160cc2d3f1113f3f44564b46c9fe
356151747d2a6c65429e48592385166ab48c334c
/backend/manager/threads/manage_chef/th_remove_chef_query.py
ea0d3f08d872c0edeeb0b8a88499869306d0296d
[]
no_license
therealrahulsahu/se_project
c82b2d9d467decd30a24388f66427c7805c23252
c9f9fd5594191ab7dce0504ca0ab3025aa26a0c1
refs/heads/master
2020-06-25T02:51:30.355677
2020-04-20T13:01:36
2020-04-20T13:01:36
199,175,627
0
0
null
null
null
null
UTF-8
Python
false
false
1,371
py
from PyQt5.QtCore import QThread, pyqtSignal class ThreadRemoveChefQuery(QThread): signal = pyqtSignal('PyQt_PyObject') def __init__(self, parent_class): super().__init__() self.output_list = [] self.parent_class = parent_class def run(self): in_name = r'(?i){}'.format(se...
[ "43601158+therealrahulsahu@users.noreply.github.com" ]
43601158+therealrahulsahu@users.noreply.github.com
a8e8716ec163600523b8424e9c8d0f4011d3dd2d
35db4ed134393a8ff06469f5155d4cc9c61d396f
/calculator.py
1831e002968e61376bc50122a7d4b76df635544f
[]
no_license
kjrashmi20/python_class
6e2595b40146e530de426019923352e9905b910f
91b42aadd8f8e1aadb5abaf431fcabdb1cf489a5
refs/heads/master
2020-03-31T05:18:36.332992
2018-11-24T13:35:57
2018-11-24T13:35:57
151,941,067
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
while True: print("1:Do you want to add two numbers ?") print("2:Do you want to subtract two numbers?") print("3:Do you want to multiply two numbers?") print("4:Do you want to divide two numbers?") print("5: Exit program") a=int(input("Select option")) if a==1: add=int(input("Enter f...
[ "rashmikj1992@gmail.com" ]
rashmikj1992@gmail.com
6c160a23807d2b6a1341c5701099e507cfeaf14e
668f9da3e30d63cf4475cd922981def446551014
/lesson_2/exercise_13/preprocess_inputs.py
178b3f817437a3fe3019406f5f6e2a98ee8e23f8
[]
no_license
melitus/intel_openvino
b14322aa6f8261ade55b8c1177152c7dd32f26ea
7d64349c2110e4b364a49941a6f7d19401d21217
refs/heads/master
2020-12-13T20:07:18.363860
2020-02-14T15:46:27
2020-02-14T15:46:27
234,518,382
0
0
null
null
null
null
UTF-8
Python
false
false
2,763
py
import cv2 import numpy as np #note: check the pre-trained model shape input, e.g / shape: [1x3x256x456] = [BxCxHxW] #B - batch size, C - number of channels, H - image heightm W - image width #syntax resize((Input_image, (width, height)) except for reshape() where you have to pass height first and then width one by on...
[ "asmelitus@gmail.com" ]
asmelitus@gmail.com
bd1648e753b21f488e833b19647f1e0cccd7604d
15fa84d9f3250537dcda5117275bf56ec9ad99dd
/project/apps/core/migrations/0001_initial.py
bafc2d596978c660322f2beb83d8fac0ccfc97d9
[]
no_license
danbeggan/contextualised-server
4425f085b2602bc1fa30925d883190f82983e8a0
6f0811e00b672b4a6aa312e0d69ab5a8e6a1b923
refs/heads/master
2021-01-17T22:36:48.573581
2017-10-26T14:54:47
2017-10-26T14:54:47
84,200,508
0
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.12 on 2017-02-26 13:13 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
[ "danbeggan@gmail.com" ]
danbeggan@gmail.com
221b36b5f091132763c293d1bd0373aa8ab7f2c8
7f80ea25908ce2eba6f6a72689f88c142319fe56
/backtracking/baekjoon/2580.py
6451fe1e80ba3457eba728de64bdc892abf909aa
[]
no_license
JUNGEEYOU/Algorithm-Problems
1b242ae3aec3005d4e449f8b6170a63d1acac60b
5e4a8a37254120c7c572b545d99006ebb512e151
refs/heads/main
2023-04-06T11:45:47.867171
2021-04-22T13:49:36
2021-04-22T13:49:36
353,240,130
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
import sys zero_list = [] arr = [] for i in range(9): x = list(map(int, sys.stdin.readline().split())) zero_list.extend([(i, j) for j in range(len(x)) if x[j] == 0]) arr.append(x) zero = len(zero_list) result = [] def dfs(): if len(result) == zero: return # 나의 가로, 나의 세로, 나의 사각형이 모두 합이 45 ...
[ "junge2u@naver.com" ]
junge2u@naver.com
0a1105cc825c055ce865b8c5c5f61fe56a6ff4c9
1670cc30dbe1ee193889cbd1d4944cefb296b441
/compareDataSet.py
61d0ba62f9635e3f5c9a4345fc523029a54667f4
[]
no_license
RaghavendraTA/TestingTool
11dbca023a8271e9c941f6c398c570895d78afbe
ee2a9de483c5570bbcb4ddecea1d69cd7b7461d1
refs/heads/master
2020-12-03T01:56:18.932925
2019-06-25T13:16:13
2019-06-25T13:16:13
95,880,866
0
0
null
null
null
null
UTF-8
Python
false
false
2,720
py
import operator class ExcelGenerator: def push(self, alist, counter): print(alist, end=' -> ') def color(self, counter, cells): print(cells) def compareDataSet(leftData, rightData, ExcelCounter): leftMap = {} rightMap = {} for item in leftData: leftMap[item[1]] = item...
[ "noreply@github.com" ]
noreply@github.com
b00488bdbd576ad735be7916e04db39f869a3cf9
93032a4d62adf19260b8bf39ecee87c87e1c5b9c
/WEL/WEL-Random2.py
f39a797203124efb5ee033687d3648a6960f6f6b
[]
no_license
xiao666/DLMFSP
ecdfc8e6133852d62d1bfa76ad64307d5bf734bc
68b86d6f19487c3a08f5eba06eaaeb869ad15690
refs/heads/master
2021-01-20T21:12:29.384697
2017-11-16T10:38:25
2017-11-16T10:38:25
101,756,670
0
0
null
null
null
null
UTF-8
Python
false
false
4,898
py
#text preprocessing:remove stopwords, puntuation, numbers from nltk import word_tokenize from nltk.corpus import stopwords from string import punctuation from sklearn.feature_extraction.text import CountVectorizer,HashingVectorizer from keras.preprocessing.text import Tokenizer from keras.preprocessing import sequence...
[ "xjqxiaojianqing@vip.qq.com" ]
xjqxiaojianqing@vip.qq.com
26126cfb3f6d2866be0b29241996ad92fe0eeee1
e30db68eefc1c8b6f2eb7190b17ddb70b617913a
/square_num_test.py
15ae69931d2daeaa84a3db32fa8a50f17e033035
[]
no_license
rahulk9691/Stats_GA
533e2f2c80f17fe4ff425db35830b42b03358620
6f2e051c5c2db1c7ce0e2cbe818c4657647ac953
refs/heads/master
2021-10-23T11:27:16.590285
2019-03-17T05:30:34
2019-03-17T05:30:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
66
py
def square_num(num): return num*num a = 10 print(square_num(5))
[ "neosam.rahul@gmail.com" ]
neosam.rahul@gmail.com
88bd95963c7c8bf981a85646dee3cbabf6b2601e
69a7eba415d2c97f1d5667c37362994e8077ad53
/numpy.py
c36b62283c6d48b9d1c4fc3971d4d9e7812c00e9
[]
no_license
AyushAggarwal768/basic_python_programs
a03292d65314e1d914f4b4dbbadd36020de0dd13
279065419ed428f9b298706eec6820f863c659f1
refs/heads/master
2020-03-21T15:11:35.347075
2018-07-08T14:02:10
2018-07-08T14:02:10
138,698,927
0
0
null
null
null
null
UTF-8
Python
false
false
1,055
py
#Q.1 - Create a numpy array A of shape(10,20) and B of shape (20,25) using np.random. #Print the matrix which is the matrix multiplication of A and B. #The shape of the new matrix should be (10,25). Using basic numpy math functions only find the sum of all the elements of the new matrix. import numpy as np a = np.ran...
[ "aggarwal768projects@gmail.com" ]
aggarwal768projects@gmail.com
f908e937a19b718a4c2843454a515a8c29e473d4
78a5b5bbe96843027b7117b4d99cfecc959f3068
/assignment1/cs231n/classifiers/linear_svm.py
8bdfa5d633d01e31248d38793b884644f9b71d8e
[]
no_license
chengxiu2008/deep_learning
a306206cf14c74d8585024ddacee1d614c60a606
5f3ee03a3e04a8737d177c5d95ee3103b9fe92bf
refs/heads/master
2020-03-17T11:44:12.914878
2018-07-25T17:13:01
2018-07-25T17:13:01
133,558,834
0
0
null
null
null
null
UTF-8
Python
false
false
5,086
py
import numpy as np from random import shuffle from past.builtins import xrange def svm_loss_naive(W, X, y, reg): """ Structured SVM loss function, naive implementation (with loops). Inputs have dimension D, there are C classes, and we operate on minibatches of N examples. Inputs: - W: A numpy array of sh...
[ "noreply@github.com" ]
noreply@github.com
eeeed493d28fcc8c9819e0034e50ac7b62315780
c3e39cfa32c749e1517d2e5be7cc95743daf0ffe
/PycharmProjects/Python Tutorial/PersonClass.py
e4faffe5f3ef9683ade51b60d2a6dc9989afdc59
[]
no_license
priyasjoshi/Python
940871bbe207f15315e25b9183d190a730f80d91
c6a3ee2dbbb73b1e2f22ad3628dcc206dd1d1fc2
refs/heads/master
2022-11-04T04:27:16.439798
2019-06-21T05:50:05
2019-06-21T05:50:05
193,037,122
0
1
null
2022-10-31T06:53:27
2019-06-21T05:38:21
Python
UTF-8
Python
false
false
848
py
import datetime class Person: def __init__(self,name,birthdate): self.name = name self.birthdate = birthdate self._age = None self._age_last_calculated = None self.recalculate_age() def recalculate_age(self): today = datetime.date.today() age = today.year ...
[ "priyujoshi10@gmail.com" ]
priyujoshi10@gmail.com
b8a648e695ffd41107411a2a06894c584e2e6f86
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/securityinsights/v20210301preview/get_dynamics365_data_connector.py
aab4cce733e30b9d124ff6383db6269c8390a7b0
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
5,892
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
noreply@github.com
3216fe50f659f9555182cd6e9010327a99bc736c
50c2bf03543eff23ec2e88f086e33848b50b5c4f
/docs/links.py
7fb1ce92193eab8aaee889f6876ac192227aa78d
[]
no_license
CiscoTestAutomation/geniefiletransferutilslib
d06967476d78eafe1984a9991a57def25523ade7
9c32f121816d7d8f4a1fc4fc1b7c2fe0cf4e9449
refs/heads/master
2021-06-03T21:04:24.922438
2020-01-20T19:36:53
2020-01-20T19:36:53
131,624,514
3
0
null
null
null
null
UTF-8
Python
false
false
1,016
py
internal_links = {'pyats': ('%s://wwwin-pyats.cisco.com', 'pyATS'), 'devnet': ('%s://developer.cisco.com/', 'Cisco DevNet'), 'multiprotocolfileutilities': ('%s://wwwin-pyats.cisco.com/documentation/html/utilities/file_transfer_utilities.html', 'Multiprotocol File Transfer'), ...
[ "karmoham@cisco.com" ]
karmoham@cisco.com
cf70dfa5d43d48127e293a0c5dd35957a50a8c06
85a60a4ca26f0d38968f7b3746e72e38bae84a18
/db/base_modle.py
2c3c5a4d4c78e96bb2e0e4dfb593102700bae422
[]
no_license
zht-AHTVU/daliyfresh
3e5bbab9242ede92433da5067ae17dcb1de16f70
125579511de9fa6dfb27d2a05b088b20f8205858
refs/heads/master
2020-05-25T19:13:52.205338
2019-06-02T04:14:43
2019-06-02T04:14:43
187,945,934
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
from django.db import models class BaseModel(models.Model): '''模型抽象基类''' create_time = models.DateTimeField(auto_now=True,verbose_name='创建时间') up_date_time = models.DateTimeField(auto_now=True,verbose_name='更新时间') is_delete = models.BooleanField(default=False,verbose_name='删除标记') class Meta: ...
[ "zhangting@ahou.edu.cn" ]
zhangting@ahou.edu.cn
ec729ccc29e9f141219a60fe2ab62d58e727803f
fafbbc387a587ba7f8cdb2c6cbca7d7cc1b89f1f
/model/model/settings.py
db5eb87ded543f8aed0caef21fe952f748ca8738
[]
no_license
anaroja/Django_projects
3e54652af304b56be9775f1f0287717524a795fa
1043e69201db5719559599291d7025cf21203f05
refs/heads/master
2020-03-09T21:24:09.572508
2018-04-13T23:16:37
2018-04-13T23:16:37
129,008,239
0
0
null
null
null
null
UTF-8
Python
false
false
3,110
py
""" Django settings for model project. Generated by 'django-admin startproject' using Django 1.11.12. 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 ...
[ "anaroja@amazon.com" ]
anaroja@amazon.com
db25637737ba7e8275ff2519978809d8f69adc0e
961cc32229fa31592f85e3ee84626b25f739a507
/contraladorGastos.py
2c78598688d0c3fbb14853f3513877831b560c56
[]
no_license
ElaineVicente/ExerciciosPython
7025db0aefd21986aea0c4b977c7e89d5bf7f3a8
ad7ca55335d60a5f3b273113c7b14193c57b6235
refs/heads/main
2023-04-18T20:59:47.026863
2021-04-26T00:58:18
2021-04-26T00:58:18
361,571,789
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
qt_transacoes = int(input("Digite a quantidade de transações realizadas ")) i = 1 valor_total = 0 media_total = 0 for i in range(qt_transacoes): valor_transacao = int(input("Digite o valor da transação ")) # alimentos = [i] valor_total = valor_total + valor_transacao media_total = valor_total/qt_transacoes...
[ "elainevicentesouza@gmail.com" ]
elainevicentesouza@gmail.com
858a53123632c2341a8d43156ec562807a7a9d52
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_205/ch139_2020_04_01_19_45_57_332549.py
850ba88067b364259c8a558e3cceaab56293684b
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
def arcotangente(x,n): m = 3 i = 3 u = -1 z = x while (m<n): z += u*(x**m/i) u*=-1 m+=2 i+=2 return z
[ "you@example.com" ]
you@example.com
ff9187fa987aa771ad4a15e06fd8b50ed0b35bbb
bac2fb7ae9a5997cb25774a3e808673acc6fbdc0
/oconsole.spec
9b72fbbd4b54558300334932c4948ca68bc24078
[]
no_license
EarthBugs/ThreadSimulator
dd3998206fc945c9644717b32ee1e99ece0e4025
df661bf3df6e3cf2e8afd572fc2d79f0fd79db70
refs/heads/master
2023-06-04T13:02:26.482950
2021-07-03T14:42:29
2021-07-03T14:42:29
382,634,714
1
0
null
null
null
null
UTF-8
Python
false
false
900
spec
# -*- mode: python ; coding: utf-8 -*- block_cipher = None a = Analysis(['Main.py'], pathex=['D:\\Project\\Programming\\PythonProjects\\ThreadSimulator'], binaries=[], datas=[], hiddenimports=['PySide2.QtXml'], hookspath=[], runtime_hooks...
[ "TknHJQ@qq.com" ]
TknHJQ@qq.com
6b3e19b3c633b7ce0aa72c220770ab72ab12a828
6a0589aa1a5f9071cbcee3f84452c880bf96c12d
/tests/conftest.py
1b5dcb8b25e52d3f3937e03f61d604e1bf155437
[ "MIT" ]
permissive
UWPCE-PythonCert/py220_extras
d3203e2fd44ee840d008fac9597a5b0c165e8cc7
57336429fb782c4901e7709c0275242e6af4264a
refs/heads/master
2020-12-01T23:42:58.660565
2020-03-11T02:44:18
2020-03-11T02:44:18
230,816,756
0
1
null
null
null
null
UTF-8
Python
false
false
236
py
# -*- coding: utf-8 -*- """ Dummy conftest.py for uw_py220_extras. If you don't know what this is for, just leave it empty. Read more about conftest.py under: https://pytest.org/latest/plugins.html """ # import pytest
[ "akmiles@icloud.com" ]
akmiles@icloud.com
d5273fc4c826924fa2f91bac2446187315ca100f
310fa7c3307a00b744d84734c8b52fd6f0e4d50c
/tags.py
d4b334b8a106356f90d48116d3f4428aca00ecdd
[ "MIT", "CC-BY-3.0-US", "GPL-1.0-or-later", "BSD-3-Clause", "OFL-1.1", "WTFPL" ]
permissive
martinapugliese/martinapugliese.github.io
116c1976b2613b2709c8a0e701dcd8584319cc21
fd9fc4a28dfcad4c8f52b15134af7c38c80d2039
refs/heads/master
2023-09-04T11:08:04.600248
2023-09-03T10:42:52
2023-09-03T10:42:52
69,119,434
4
5
MIT
2023-08-12T10:09:34
2016-09-24T18:11:06
SCSS
UTF-8
Python
false
false
646
py
# lil' script to fetch all tags on posts (outside of categories ones) # to see which ones have already been used and to which extent import os from collections import Counter tags = [] filenames = [item for item in os.listdir('_posts') if '.DS_' not in item] for filename in filenames: content = open('_posts/' + f...
[ "m.letitbe@gmail.com" ]
m.letitbe@gmail.com
1c3727643167dbc90fdee63c457b06770635f3fb
b9d720f7fdb5c4ff927c2579a7033b27683b620d
/main_module.py
31c2aecc9b3200afd7f06318b0da1dc9837ba66f
[]
no_license
koh1979/bottest01
cc419a4d6ab5ed68669f027339d9d3b71d99f453
c624019dc8b31371556745fb06d12762579c5ce1
refs/heads/master
2022-12-31T02:00:08.239762
2020-10-16T16:35:00
2020-10-16T16:35:00
304,662,264
0
0
null
null
null
null
UTF-8
Python
false
false
36
py
def test(): print('module test')
[ "piriya.ng@gmail.com" ]
piriya.ng@gmail.com
c364f65a620c15ad847eea7738a9b68dceef4c9c
a2c22f562d824e7f866b0904fd474aeb84db893d
/xmltool/dtd.py
7021a5fd41723579c7ddfc324b24db1040f61882
[ "MIT" ]
permissive
LeResKP/xmltool
d823428fe2b62fea3d05ea7863e59b8d76aa5206
178d54a8d8d2c80a6ce4b96eb5030fa7fea5b62b
refs/heads/develop
2021-05-17T19:51:49.445632
2019-04-03T05:42:26
2020-07-21T14:58:32
6,756,118
6
2
MIT
2021-03-02T17:30:28
2012-11-19T06:52:37
Python
UTF-8
Python
false
false
4,665
py
from io import StringIO, open from dogpile.cache.api import NO_VALUE from lxml import etree import os import requests import six import tempfile from . import dtd_parser from . import cache class ValidationError(Exception): pass class DTD(object): def __init__(self, url, path=None): """ u...
[ "a.matouillot@gmail.com" ]
a.matouillot@gmail.com
dfeb29a64581f84d9e2ab512576acb3bf5fbf769
51aa2894c317f60726fe9a778999eb7851b6be3e
/140_gui/pyqt_pyside/examples/PyQt_PySide_book/002_Processing_of_signals_and_events/+21_Handling signal and slot/21_9_Using class QTimer.py
d3b27afda8a2731f5c7749a149ae85dd10462344
[]
no_license
pranaymate/Python_Topics
dd7b288ab0f5bbee71d57080179d6481aae17304
33d29e0a5bf4cde104f9c7f0693cf9897f3f2101
refs/heads/master
2022-04-25T19:04:31.337737
2020-04-26T00:36:03
2020-04-26T00:36:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,608
py
# -*- coding: utf-8 -*- from PyQt4 import QtCore, QtGui import time class MyWindow(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.setWindowTitle("Использование класса QTimer") self.resize(200, 100) self.label = QtGui.QLabel("") sel...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
516ca97ed4de2823f6105dd13e51cbf631df8882
ef9d010451492f896e611130630865ad82da4351
/src/dataset/imagenet.py
718ebfaf9c6156ab8c9777b9e1668593b762f18b
[ "BSD-2-Clause" ]
permissive
goan15910/ConvDet
72125bb7b35734237ef7480785ce1d205a684a31
6404622cc9d0c8e8b756260c4979b6842b2d0cb0
refs/heads/master
2021-01-11T14:19:21.335131
2017-05-16T07:40:48
2017-05-16T07:40:48
81,350,946
0
0
null
null
null
null
UTF-8
Python
false
false
3,304
py
"""Image data base class for ILSVRC 2013""" import cv2 import os import numpy as np import xml.etree.ElementTree as ET from dataset.imdb import imdb class imagenet(imdb): def __init__(self, image_set, data_path, mc): imdb.__init__(self, 'ILSVRC2013_'+image_set, mc) self._image_set = image_set self._d...
[ "goan15910@cml19.csie.ntu.edu.tw" ]
goan15910@cml19.csie.ntu.edu.tw