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
e1a2338abe1238f16b69aba0e9ab5ff6a2642a82
6b5474323207d071d5a800524f420c7c5a13f5ec
/GMON/gmon_fuzzing.py
40b21ae466febf93f3df8b77e6284ef78574214a
[]
no_license
Cyber-F0x/vulnserver-writeup
6609d5b6005045d11295d05529b8d5bd3d74c256
ac385bc4c5105753a584e2fa0704350700cacb1f
refs/heads/master
2022-12-23T20:10:46.366646
2020-10-03T22:26:46
2020-10-03T22:26:46
254,636,624
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
#!/usr/bin/python3 from boofuzz import * import argparse def test_connection(target, logger, session, *args, **kwargs): try: banner = target.recv(1024) except: exit(1) def main(ip,port,cmd): session = Session( sleep_time=1, target=Target( connection=SocketConnection(ip...
[ "iwillupdatethislater@nahIwontlol.com" ]
iwillupdatethislater@nahIwontlol.com
37ad1111add5ac097df6043448c33dbb789bcff9
12ba3bccebcf37ce09c4574e3f481501994c6d59
/ex02/03_binary.py
1f73f10f234b9347f1ce3f67bff62d79fc261a17
[]
no_license
jbirech/Parseltoungue
9ac20f9b0a30f6b77377ba0827ebcf32b5c223a6
57f3effab674daa75129226c45fda5be2cc1b0d0
refs/heads/master
2020-03-22T01:13:31.002266
2018-07-04T23:11:19
2018-07-04T23:11:19
139,291,062
0
0
null
null
null
null
UTF-8
Python
false
false
1,311
py
# **************************************************************************** # # # # ::: :::::::: # # 03_binary.py :+: :+: :+: ...
[ "jobirech@e1z2r6p10.42.us.org" ]
jobirech@e1z2r6p10.42.us.org
cd9fdce95b4532b432a08f34ab17b3c307fbc4f6
2211cf1827bd19171fc3811d3833e00970b2d00f
/noti/migrations/0001_initial.py
6e9759182968b8120a67ba20e035994f209f0339
[]
no_license
BaselAllam/tagry
5659d0ef476707342157a5913fa086953c823332
a40d383f9df3d61742aa5f2d8e44787cd43f7f59
refs/heads/main
2023-08-22T17:15:02.940856
2021-10-30T14:51:26
2021-10-30T14:51:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
# Generated by Django 3.2 on 2021-04-28 10:39 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Noti', fields=[ ('id', models.AutoField(prima...
[ "lamiaah669@gmail.com" ]
lamiaah669@gmail.com
750681f1bc834edff7b9ed4749ec15dc955323e3
83401bda175e68b3452222322b3ec2a0d118a6b1
/MDVRP/localSearchBest.py
e07103ce22ab4df44877612ccff4a728d2d1481a
[]
no_license
Fabiana-BP/Projeto-MDVRP
d6719b65c1f5bf9bacbc6e5903c170512d14ba9b
19793e53c64c3498efcd886ab502235ec989583d
refs/heads/master
2023-07-13T14:59:15.515853
2021-08-24T23:53:02
2021-08-24T23:53:02
289,782,437
1
2
null
2021-08-24T23:53:03
2020-08-23T23:18:28
Python
UTF-8
Python
false
false
27,462
py
from collections import Counter from distances import Distances as dist from depots import Depots as dpts from movimentsLocalSearch import MovimentsLocalSearch as mov import copy import config import numpy as np import random import math import time ''' Pesquisa local de Prins2004 ''' class LocalSearchBest: def...
[ "fabi_bp91@hotmail.com" ]
fabi_bp91@hotmail.com
5d11bcbbbb8cfe659783ba765ff02b2cd2ea8b0d
6609c26b4ed72c156104ce282c3cf88c6aac59f6
/chapter09/example15_formulas.py
a0b854c34b5de02f0e522bd4669039b9c7180405
[ "MIT" ]
permissive
yordanivh/intro_to_cs_w_python
4ab9dbbc2963b285b22cacb6648d1300fded18ce
eebbb8efd7ef0d07be9bc45b6b1e8f20737ce01a
refs/heads/master
2020-09-06T12:25:23.362118
2020-02-14T14:07:07
2020-02-14T14:07:07
220,423,698
0
0
MIT
2020-02-14T14:07:08
2019-11-08T08:41:25
Python
UTF-8
Python
false
false
385
py
#Repetition based on user input text = "" while text != "quit": text = input("Please enter a chemical formula (or 'quit' to exit): ") if text == "quit": print("...exiting program") elif text == "H2O": print("Water") elif text == "NH3": print("Ammonia") elif text == "CH4": ...
[ "yordan@hashicorp.com" ]
yordan@hashicorp.com
c4929fbef9afe95b00ee56f88f0de85082b93f22
12eafc7f64b39de04a07cac75b8951de1e1484b7
/layer_dmft/conductivity.py
d02cca6a7a791bd385ca775a76e41d9323467767
[]
no_license
DerWeh/layer_dmft
d62a298c99b3cb8446b639f23f8d72ce53967b39
18dba6f322f27733307b4d0679e7629d69689415
refs/heads/master
2020-04-04T16:09:47.345811
2019-11-16T09:21:49
2019-11-16T09:21:49
156,067,004
0
0
null
null
null
null
UTF-8
Python
false
false
5,783
py
"""Calculate conductivity according to Junya's notes and code. Glossary -------- curr Current acorr, autocorrelation Correlation between the same quantity at different times. n1 single site """ import numpy as np import gftools as gt from gftools import pade from layer_dmft import Hubbard_Parameters, mo...
[ "andreas.weh@student.uni-augsburg.de" ]
andreas.weh@student.uni-augsburg.de
2f6431ab8ee2190fc6b3c596bfec11fb414bad95
297fb49679e17372d5a1c29bf86dbc65600bb179
/tests/test_poe_config.py
22af4236a59334719552c0c0ea2de1277f14fe93
[ "MIT" ]
permissive
sachasi/poethepoet
5e77f1691bbe3cef6863201dd56fe689ad63e9ea
b1f621d2930bb8dea21ac5d9ba52c97a7ffb14b4
refs/heads/main
2023-06-12T01:18:37.264547
2021-05-24T11:15:46
2021-05-24T11:24:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,249
py
import os from pathlib import Path import tempfile def test_setting_default_task_type(run_poe_subproc, scripts_project_path, esc_prefix): result = run_poe_subproc( "greet", "nat,", r"welcome to " + esc_prefix + "${POE_ROOT}", cwd=scripts_project_path, ) assert result.captur...
[ "n@natn.me" ]
n@natn.me
3f3ea32395628def25fe0fafc5c4996611eb9cf0
085488720112922ff3aed15f99f3c93911425c4a
/vesper/command/station_name_aliases_preset.py
0188c41410e63f2a621096eea37ab59056c0769b
[ "MIT" ]
permissive
HaroldMills/Vesper
0b61d18bc241af22bfc251088fc87d72add6367b
ec92fe5231f54336499db189a3bbc6cb08a19e61
refs/heads/master
2023-07-05T22:45:27.316498
2023-07-04T11:58:14
2023-07-04T11:58:14
19,112,486
49
6
MIT
2023-02-14T16:09:19
2014-04-24T14:55:34
Python
UTF-8
Python
false
false
377
py
"""Module containing class `StationNameAliasesPreset`.""" from vesper.util.yaml_preset import YamlPreset class StationNameAliasesPreset(YamlPreset): """ Preset that specifies station name aliases. The preset body is YAML that specifies a mapping from station names to lists of aliases. ...
[ "harold.mills@gmail.com" ]
harold.mills@gmail.com
5a7dbca47b3acb3108bec93d827019023e18efc6
05df145529adc145aebae871cc9c188eb18fe3c9
/vector.py
0b49d870f749f175e3cc491fd3bc73ae236db3f2
[]
no_license
LawrenceMoruye/10DaysOfWinterCode-Tensorflow
1eeffca52c77e863a7aa3e7fde4d7913dd4e8d0b
0b2923efe967d05c4f7e9c0360eac083897c5c8f
refs/heads/master
2020-03-22T22:45:55.640370
2018-07-12T22:23:52
2018-07-12T22:23:52
140,769,711
0
0
null
null
null
null
UTF-8
Python
false
false
493
py
import tensorflow as tf #y=wx+b w=tf.constant([10,100],name="constant_w") x=tf.placeholder(tf.int32,name="x") b=tf.placeholder(tf.int32,name="b") wx=tf.multiply(w,x,name="wx") y=tf.add(wx,b,name="y") with tf.Session() as sess: print("wx:",sess.run(wx,feed_dict={x:[5,500]})) print("y",sess.run(y,feed_dict={x:[5,500...
[ "moruyelawrence@gmail.com" ]
moruyelawrence@gmail.com
b75dbfb5879fc58f82f014ed3d954cd18d86fdf8
66e45a2760db8a1fc580689586806c2e3cce0517
/pymontecarlo/options/beam/gaussian.py
f899c96d4c539645036e125a335c60688599a596
[]
no_license
arooney/pymontecarlo
4b5b65c88737de6fac867135bc05a175c8114e48
d2abbb3e9d3bb903ffec6dd56472470e15928b46
refs/heads/master
2020-12-02T18:01:42.525323
2017-05-19T16:44:30
2017-05-19T16:44:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,600
py
""" Gaussian beam. """ # Standard library modules. # Third party modules. # Local modules. from pymontecarlo.options.beam.cylindrical import \ CylindricalBeam, CylindricalBeamBuilder from pymontecarlo.options.particle import Particle # Globals and constants variables. class GaussianBeam(CylindricalBeam): ...
[ "philippe.pinard@gmail.com" ]
philippe.pinard@gmail.com
00da945565f09b900f74aadad32813c82c145c2f
6b5431368cb046167d71c1f865506b8175127400
/challenges/filtra-positivos/tests.py
c5012357f4ede037d68c5541b1104ebaf7a60f7b
[]
no_license
Insper/design-de-software-exercicios
e142f4824a57c80f063d617ace0caa0be746521e
3b77f0fb1bc3d76bb99ea318ac6a5a423df2d310
refs/heads/master
2023-07-03T12:21:36.088136
2021-08-04T16:18:03
2021-08-04T16:18:03
294,813,936
0
1
null
2021-08-04T16:18:04
2020-09-11T21:17:24
Python
UTF-8
Python
false
false
401
py
from strtest import str_test class TestCase(str_test.TestCaseWrapper): TIMEOUT = 2 def test_1(self): entradas = [[-1, -2, -3],[-1, -2, -3, 0, 1, 2],[0, -1, 1, -2, 2]] esperados = [[], [1, 2], [1, 2]] for entrada, esperado in zip(entradas, esperados): self.assertEqual(espera...
[ "andrew.kurauchi@gmail.com" ]
andrew.kurauchi@gmail.com
24827acb2602b46afde1695f7112b038288f730b
120c1ac36b043530f08c71f97d6e9accda379e95
/src/cityCount.py
0c239f269df475a04327d9eda8a533ce187d2804
[]
no_license
DDDDxue/usps-2
d56a96eed459b1dc2fceef7246aa2757d13be92a
f434e79e59b82bc359cc87e2230dd1a448ca61fb
refs/heads/master
2021-08-24T14:03:37.633454
2017-12-10T03:59:24
2017-12-10T03:59:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,026
py
import collections import numpy as np import joblib def city_counter(collected_data): # collected_data = {} # if os.path.isfile('../out/collection.dump'): # collected_data = joblib.load('../out/collection.dump') city_count = dict() for key in collected_data: if "TrackDetail" not in collected_data[...
[ "582578359@qq.com" ]
582578359@qq.com
c06d33b5376d18b9566dc178560199949ecbca8b
41c67f05631c2f16297d7644c7319a1ff650eac4
/setup.py
9468f6f5c57f49aef5fec07f6ad6c5d503b3b61e
[ "MIT" ]
permissive
bellyfat/pyrankvote
0702c753563ead8ec6c0d4b05f77e7c252f870c2
7ee0899088e83252996a7393e3e4b417da3c7a41
refs/heads/master
2023-08-19T16:13:41.710354
2021-10-19T22:59:15
2021-10-19T22:59:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,160
py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() import unittest def my_test_suite(): test_loader = unittest.TestLoader() test_suite = test_loader.discover('tests', pattern='test_*.py') return test_suite setuptools.setup( name='pyrankvote', version='2.0.3'...
[ "jon.tingvold@gmail.com" ]
jon.tingvold@gmail.com
f438a6065335e54fda6372a08b5f24b26a75cbf6
d67f20953b61218c27d89e0166aed89e5b7a3c3d
/mini_programs/skauti.py
3dbec36fb4fe74730bdae138e65d5567abd48d2f
[]
no_license
balrog-nona/learning_python
130dff649425051240e304f78cec50d87de81f63
cad88f65a2f5daae58c4b062b3010599c8b8b365
refs/heads/master
2023-08-17T01:21:26.172175
2023-08-06T14:56:50
2023-08-06T14:56:50
156,737,580
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
import random d = {"Kdo?": [], "S kym?": [], "Co delali?": [], "Jak?": [], "Kdy?": [], "Kde?": [], "Proc?": []} for key in d: zadani_klice = True while zadani_klice: pokracovat = True while pokracovat: vstup = input(key) vstup = vstup.strip() ...
[ "nona.h@seznam.cz" ]
nona.h@seznam.cz
c150c4f49f97279e85049b249166d4611c8cd312
d63f383a3bcbef66dc9738b74cda602b55d13948
/myprim/urls.py
28b268d720a1c842feddac32ef83d44c7debd548
[]
no_license
firstcode63/my-first-blog
9c7ad80c15381a24155279585f4f21a8ece9c442
00d6f7692b4a6c37829259acb163b4689350a0b6
refs/heads/master
2020-03-07T02:41:32.511739
2018-04-01T20:14:24
2018-04-01T20:14:24
127,165,790
0
0
null
null
null
null
UTF-8
Python
false
false
923
py
"""myprim URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.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-based ...
[ "i.soloidenko@gmail.com" ]
i.soloidenko@gmail.com
59d98bbb8a8561e275f104b8a5b0389a6dba78c0
f979ce2c44fc4ab76a990b2f57eb468301dd690a
/environments/gym-adlr/gym_adlr/envs/toy_env.py
17b8549abb6730db7f59d7b1d6ab7401a002d97a
[]
no_license
shrey-1995/tum-adlr-ws20-05
7d754d273d463f76e2299dd2f4ee76f592933ae3
f2c5f5004d88fa02e51eea975f64ab60062f2d15
refs/heads/main
2023-03-21T05:22:33.425409
2021-03-14T11:02:06
2021-03-14T11:02:06
312,356,746
0
0
null
null
null
null
UTF-8
Python
false
false
10,741
py
import gym from gym.utils import seeding import random from gym.envs.classic_control import rendering from gym import spaces import numpy as np from shapely.geometry import LineString from shapely.geometry import Point import torch from gym_adlr.components.car import Car import Box2D import pyglet from pyglet import gl...
[ "javier.rando@tum.de" ]
javier.rando@tum.de
d6c270a033707784f80a98a31bce18ab226dc68d
d65960e0796b357fc7cb7daa7ebdf9c9203cc9a8
/eventex/subscriptions/forms.py
1c8127fb6773432ca7674848f14378e6c6f3593c
[]
no_license
Vellinha/wttd-eventex
575f4c2de85c0aa502144170daad84b3307c5326
23007ebc2ecd8ba82b54de41e87589e6b9237beb
refs/heads/master
2021-08-06T08:46:39.680400
2017-11-04T13:43:51
2017-11-04T13:43:51
109,498,699
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
from django import forms class SubscriptionForm(forms.Form): name = forms.CharField(label='Nome') cpf = forms.CharField(label='CPF') email = forms.EmailField(label='Email') phone = forms.CharField(label='Telefone')
[ "vellinha@gmail.com" ]
vellinha@gmail.com
35fb0e05c20a03f4c0d58a1bbc9be038e1dd99ca
a1e9101bbd309f613369b10018b16541e9af2fd0
/main_test.py
c0dde9578ba15e5d57c1bbe51d11621114464ad7
[]
no_license
seuqaj114/ANN
93d6fb474cde319c26ba5e557208fbb0e59a39a5
9453604bdf87d8fadf726735eb8bed1b37a93319
refs/heads/master
2016-09-05T15:57:39.117540
2014-12-22T17:12:54
2014-12-22T17:12:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
import numpy as np import sys import time import network from generate import generate import sys from pprint import pprint from utils.math import set_norm if __name__ == "__main__": newtork_geometry = [2,2,1] #training_set = generate(100,6) training_set = [([1,0],[1]),([1,1],[0]),([0,1],[1]),([0,0],[0])] net =...
[ "migjacques@hotmail.com" ]
migjacques@hotmail.com
1404ea6c9709cd64290332c33ec253c790b48832
c93c30fa5fd0d952e054b86863fa20e722e3151d
/web/forms.py
951771f458b94b3f2c0762048320ac5dad00f4a6
[]
no_license
pombredanne/GithubAutomation
d747d3538470ffa2f93d6d53dc9dc05bd79b4635
3a3081599bad1fbe72b7b3cd386c378eb598b284
refs/heads/master
2023-03-15T16:24:12.055549
2017-12-19T18:02:26
2017-12-19T18:02:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
309
py
from flask_wtf import Form from wtforms import StringField, IntegerField from wtforms.validators import DataRequired, NumberRange class ReleaseConfigForm(Form): name = StringField('name', validators=[DataRequired()]) sp_target = IntegerField('sp_target', validators=[DataRequired(), NumberRange(min=1)])
[ "robertneville73@gmail.com" ]
robertneville73@gmail.com
f4b8dd0f86197e4f8c6a1bdd7b9fa7bd3c667640
da4c995018a5f07759f90988ede46ec84384765c
/src/compare_subjects_method_emotiv.py
60c8383a379b60223c02ba16455d70c82964555a
[]
no_license
fferrara/pyassistive
7b369d2cf46f2542c745bf6ca1674cc99a4f8319
3dcfeada26e140862e3daa8940c7fd091e4782fc
refs/heads/master
2021-01-23T09:28:15.010650
2015-04-01T09:36:09
2015-04-01T09:36:09
24,339,904
1
0
null
null
null
null
UTF-8
Python
false
false
3,680
py
# -*- coding: utf-8 -*- # !/usr/bin/env python import numpy as np import scipy.io as sio from scipy import signal import os from util import config, preprocessing, featex, offline, performance import matplotlib.pyplot as plt def apply_method(data, windowSize, segmenting, criterion, method, prot_iterations, prot_peri...
[ "thecrow.eric@gmail.com" ]
thecrow.eric@gmail.com
0bab17cbcb697c91f6c1d0104dbbd9fe5cfc48d0
ecface1240526ce71210b5fde245edc7d0e62124
/level_creator.py
c37180850ae8c58291d6785b464f72556a120158
[]
no_license
AlexFSmirnov/Tanks
f47193ec2e56d7d462032eeb45ec1fb9a634b92f
358402376ab006eabc882bb311498be77b464f81
refs/heads/master
2021-01-13T09:49:39.434038
2016-02-27T20:44:57
2016-02-27T20:44:57
51,204,827
0
0
null
null
null
null
UTF-8
Python
false
false
11,681
py
from random import randint from random import choice from time import sleep from pygame import * import pygame import sys import os def seticon(iconname): icon=pygame.Surface((32,32)) icon.set_colorkey((0,0,0))#and call that color transparant rawicon=pygame.image...
[ "alex.f.smirnov@yandex.ru" ]
alex.f.smirnov@yandex.ru
e0606d6d38fc089b63725df350a5cdfd84866c17
85a32fc66050b5590f6a54774bbb4b88291894ab
/10-days-of-statistics/day-8-least-square-regression-line/python3.py
8b9028d791e8278e76ef465b56d78615f88c5516
[]
no_license
charlesartbr/hackerrank-python
59a01330a3a6c2a3889e725d4a29a45d3483fb01
bbe7c6e2bfed38132f511881487cda3d5977c89d
refs/heads/master
2022-04-29T07:40:20.244416
2022-03-19T14:26:33
2022-03-19T14:26:33
188,117,284
46
37
null
2022-03-19T14:26:34
2019-05-22T21:38:18
Python
UTF-8
Python
false
false
387
py
x = [95, 85, 80, 70, 60] y = [85, 95, 70, 65, 70] n = len(x) mean_x = sum(x) / n mean_y = sum(y) / n square_x = sum(x[i] ** 2 for i in range(n)) product_xy = sum(x[i] * y[i] for i in range(n)) b = ((n * product_xy) - (sum(x) * sum(y))) / ((n * square_x) - (sum(x) ** 2)) a = mean_y - (b * mean_x) score_x = 80 # re...
[ "e-mail@charles.art.br" ]
e-mail@charles.art.br
bb86e3fb7057107083874a6507f4677ec48b32c4
826d4fa3d60cb09abaad626b2f6f651e3ac763ae
/Data-Visualisation/source/excel_write.py
71dc5544b954400e768a5950b5fa59cc117f97ef
[ "MIT" ]
permissive
EUROAVIA-AS-Patras/Rocket
f49ddb220f6fe84e5e5b4291cc4dd7d1c6da90fd
e902013a48cc626a8599122cebbffa6e6c7b087b
refs/heads/master
2023-02-02T21:05:31.753248
2020-12-21T17:58:42
2020-12-21T17:58:42
323,401,469
0
1
null
null
null
null
UTF-8
Python
false
false
1,132
py
import xlsxwriter import plot as graphs import process_txt as txt TIME_INTERVAL=0.5 logs=txt.Logs # Create a workbook and add a worksheet. workbook = xlsxwriter.Workbook('Rocket_data.xlsx') worksheet = workbook.add_worksheet() #Make custom formats to use title = workbook.add_format({'bold': True,'align':'center'}) ...
[ "frank1999ipod@gmail.com" ]
frank1999ipod@gmail.com
af7d1b5ade3d3973d76044d50914057691bcc74f
55951f0948de5266710090398c5b81b22eef8e66
/SlowestKey.py
8a01a72365766264e7de9f6e2569c77b921112bc
[]
no_license
lingyk/Code_Interview
7f951aac3052b31db935f5bbbcb3fe8b86cefbd9
9eb595072a7d5dd9d296e349b8195785dc45effd
refs/heads/main
2023-03-10T09:24:22.918839
2021-02-24T21:36:16
2021-02-24T21:36:16
323,773,153
1
0
null
null
null
null
UTF-8
Python
false
false
549
py
class solution(object): def slowestKey(self, keyTimes): maxDiff = keyTimes[0][1] res = chr(ord('a') + keyTimes[0][0]) for i in range (len(keyTimes)-1): nextKey = keyTimes[i+1] curKey = keyTimes[i] diff = nextKey[1] - curKey[1] if diff > maxDiff...
[ "lingyk1995@gmail.com" ]
lingyk1995@gmail.com
5b97637d6d3599f0fa2418b5f6ad1c530a40781d
f20e846b669f9efa5ed91762ace068648410a78f
/trip_group/get_city.py
599407531d108b5c37aca218fc5c9f197492138b
[]
no_license
HotelDataCatchAnl/HotelDataCatchAn
f14f7bd875e7f4299d63f47ec0ad530469f3e927
883a407bb1d3f8c87fb6d138060831974ef1073e
refs/heads/master
2022-12-25T14:59:21.031131
2020-09-29T10:45:26
2020-09-29T10:45:26
294,622,793
2
0
null
null
null
null
UTF-8
Python
false
false
1,982
py
import random from datetime import date, timedelta data = { '广州': 'https://hotel.qunar.com/cn/guangzhou/?fromDate=2020-09-15&toDate=2020-09-16&cityName=%E5%B9%BF%E5%B7%9E', '深圳': 'https://hotel.qunar.com/cn/shenzhen/?fromDate=2020-09-15&toDate=2020-09-16&cityName=%E6%B7%B1%E5%9C%B3', '珠海': 'https://hotel.q...
[ "HJB133144522@163.com" ]
HJB133144522@163.com
be649890d2e60ca0ce76cb623cdfcd06fefa1901
d603117ced2ea5296a88a8149391e72bf39c1a0c
/main.py
660584fddea83e2d39c94f8815d522e33ae5d129
[]
no_license
valeness/wow-auction
b30c58ac391fec65cf0bd393761321ebda27228b
e74aba9f33cdcf2edea78d74886d9cea7b49e61e
refs/heads/master
2021-01-12T02:28:13.983207
2017-01-03T23:18:39
2017-01-03T23:18:39
77,961,493
0
0
null
null
null
null
UTF-8
Python
false
false
2,643
py
#!/usr/bin/python import requests import json import time from pymongo import MongoClient class WoW: def __init__(self): self.client = MongoClient() self.db = self.client.wow pass def load_config(self): with open('auction.conf', 'r') as f: self.config = json.lo...
[ "valeness84@gmail.com" ]
valeness84@gmail.com
6dc24e6e9dc2ac5b81fe106aafe9c9efcdd3c231
1f98ccf9ef52d3adab704676480c85fe22c9542d
/simpledb/tx/TxTest.py
2243678f4f85a87127d5ea2fc6e3c2c891fab0d3
[]
no_license
61515/simpleDB_Python
234c671cbbf57f3e8fc5489ec4c292365085b7a8
b6846da4a78369838f5b3c7a704de704e18f7be7
refs/heads/master
2023-02-22T14:07:52.660633
2021-01-24T02:25:40
2021-01-24T02:25:40
332,343,905
0
0
null
null
null
null
UTF-8
Python
false
false
1,773
py
from simpledb.buffer.BufferMgr import BufferMgr from simpledb.file.BlockId import BlockId from simpledb.log.LogMgr import LogMgr from simpledb.tx.Transaction import Transaction from simpledb.util.File import File from simpledb.file.FileMgr import FileMgr class TxTest(object): @classmethod def main(cls, args):...
[ "1632039752@qq.com" ]
1632039752@qq.com
bf41d3301840a07139a8656932fa600b19eeaa9d
b1ff576cdde5adf698b98446538e0b56d18f070f
/klasses/migrations/0003_auto_20210308_1410.py
38ed54499f645f695f7d61108f3d1d74e57c9592
[]
no_license
DUMBALINYOLO/gbc_oms
e3cfba17a12f3600b6503fc70cc9f3dcab5cc0e2
cdea6fd81333088b2db9911140681fec9577132a
refs/heads/main
2023-08-20T11:48:36.418990
2021-10-11T23:25:35
2021-10-11T23:25:35
322,593,446
0
0
null
null
null
null
UTF-8
Python
false
false
539
py
# Generated by Django 3.1.5 on 2021-03-08 12:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('people', '0001_initial'), ('klasses', '0002_auto_20210201_1054'), ] operations = [ migrations.Alter...
[ "baridzimaximillem@gmail.com" ]
baridzimaximillem@gmail.com
10ad81e1ec0dbb45e3b86748b126cb9c94ee3c97
043e511436798e9aed96052baddac7a353ac6562
/printZigZagMatrix.py
88bb65c74eabe5d24283634c30dbb4d1b1d12569
[]
no_license
bch6179/Pyn
01e19f262cda6f7ee1627d41a829609bde153a93
e718fcb6b83664d3d6413cf9b2bb4a875e62de9c
refs/heads/master
2021-01-22T21:28:13.982722
2017-05-05T07:21:19
2017-05-05T07:21:19
85,434,828
1
0
null
null
null
null
UTF-8
Python
false
false
1,623
py
Solution(object): def printZigZagMatrix(self, A): n,m = len(A), len(A[0]) x,y=0,0 x = [] for i in range(n+m): if i % 2 == 0: x = i while x >= 0: if x <= m and (i-x) <= n: res....
[ "bch6179@gmail.com" ]
bch6179@gmail.com
3b852eab16c802fad017d8dbc780791730df3e35
8eadd4c7db6872f28592333207b23a6e9309aba7
/cities/migrations/0019_hotel_city.py
5c67acf480e7b48ac8f8eb8188f58c5733437c25
[]
no_license
tripupp/Sep19
142255904d186845f0f5cdc5b04064fa081c9e6d
4e9ab2077be21c914f2f0207e64268fe6f98224d
refs/heads/master
2022-11-23T23:46:01.512565
2019-09-19T19:46:20
2019-09-19T19:46:20
205,845,957
0
1
null
2022-11-22T04:13:26
2019-09-02T11:51:07
CSS
UTF-8
Python
false
false
510
py
# Generated by Django 2.2.4 on 2019-09-17 23:17 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('cities', '0018_hotel_hotelfacility'), ] operations = [ migrations.AddField( model_name='hotel',...
[ "ahuja.devansh2@gmail.com" ]
ahuja.devansh2@gmail.com
1e47459d2f8e82e85788b1b4c9c7b3e00fa49f14
4b7b2d8edca7eb45141ffa5bd31531028ed17839
/tuples_in_python.py
e7a82068465aa915f548ce1411d776b2cc8ee2ba
[]
no_license
TorczerA/TuplesInPython
440fa2663a45deec6b2ec9968453bf569679fdf5
a35eb8656ee2b439fbfe1cbd2686ea9ced0b47b8
refs/heads/master
2020-03-19T22:52:48.575648
2018-06-11T21:51:15
2018-06-11T21:51:15
136,984,811
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
#Tuples in Python L = [100, 200, 300] T = (100, 200, 300) L.append(400) # T.append(400) <- This won't work because tuples are immutable unlike lists. print("List L =",L,"<- L.append(400) works") print("Tuple T = ",T,"<- T.append(400) won't work")
[ "coolrohit1996@gmail.com" ]
coolrohit1996@gmail.com
088f566064206fdac0fc7dd94d490188513886f9
dd7d76d94d5a6b68196e727dc56b150ed6b4d94b
/webserver/ws.py
930fe37606cb87e324fee0c396650b3467578118
[]
no_license
prestonj/tools
db01551bc08b044d0b69a3b42c351b615f839124
360d7d14be63e1517663dfcc36fc680aa5af0ab3
refs/heads/master
2021-01-10T04:38:00.306295
2016-03-21T18:57:14
2016-03-21T18:57:14
43,772,451
0
0
null
null
null
null
UTF-8
Python
false
false
1,311
py
import time import BaseHTTPServer HOST_NAME = 'localhost' # !!!REMEMBER TO CHANGE THIS!!! #HOST_NAME = '207.181.118.113' # !!!REMEMBER TO CHANGE THIS!!! PORT_NUMBER = 5432 class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler): def do_HEAD(s): s.send_response(200) s.send_header("Content-type", "...
[ "prestonj@gmail.com" ]
prestonj@gmail.com
314cf83aa64a7869ec9c142da460cfa5cb9b5943
027ca3f67525de3ceb64403e0355d42ffb136388
/alien.py
0bfa6580565bcb651896cf906c4badb7f8536c57
[]
no_license
VinceM80/Python-Projects
d10d9fb2b2b5356d0b3f5ba41c6ddc23e7ca176d
8b1ad0b136387c941eb17e396e670c1f8a711c8b
refs/heads/master
2020-12-21T02:49:25.268064
2020-01-26T08:47:52
2020-01-26T08:47:52
236,284,122
1
0
null
null
null
null
UTF-8
Python
false
false
1,344
py
import pygame from pygame.sprite import Sprite class Alien(Sprite): """A class to represent a single alien in the fleet.""" def __init__(self, ai_settings, screen): """Initialize the alien and set its starting position.""" super(Alien, self).__init__() self.screen = screen ...
[ "noreply@github.com" ]
noreply@github.com
c38f26aaaba15719777629fb06353fd8f6155b6d
f0f9e70d46361d2d435553ecfeea410419e6b8bd
/chatbot/admin/controllers/index.py
ce5009140c9839e050e80cc53e62d2e020627402
[ "MIT" ]
permissive
hysakhr/flask_chatbot
f58b810bf1b068f2e836e2e37eed1d2233a545f3
8751fcb7fb9d46b023bd1fe33d734c58332d77e9
refs/heads/master
2023-05-26T07:31:39.771815
2023-03-27T11:12:38
2023-03-27T11:12:38
207,779,591
3
1
MIT
2023-03-31T14:50:20
2019-09-11T09:56:10
JavaScript
UTF-8
Python
false
false
195
py
from flask import ( Blueprint, request, render_template ) bp = Blueprint('admin', __name__, url_prefix='/admin') @bp.route('/') def index(): return render_template('admin/index.html')
[ "hysakhr@gmail.com" ]
hysakhr@gmail.com
7f76eb843562801a02c84e85e74061173a89f858
22f08a6692389bb4145eac3e07c9eaa616f70bdf
/statistics.py
d88e3bc7b5605af0fd7384884b890ea3e0f9efb5
[]
no_license
sgaobnl/Cold_ADC_Edoardo
957712970f8a7fd663229bf19693179a21c3a3f5
210e13d6d5870ab9438c0f4bbdb29be4d472af7b
refs/heads/master
2021-07-08T01:43:41.088963
2020-01-31T21:08:32
2020-01-31T21:08:32
213,663,119
0
0
null
null
null
null
UTF-8
Python
false
false
24,111
py
# -*- coding: utf-8 -*- """ Created on Wed Jul 24 00:00:54 2019 @author: protoDUNE """ import numpy as np import os from sys import exit import os.path import math import time import statsmodels.api as sm import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import matplotlib.patches as mpatches imp...
[ "sgao@bnl.gov" ]
sgao@bnl.gov
5c0b1ed0af605cfca6411fb25f4e72fc5d812943
f9fe13fe62ba3fb1fb096da4268d5dc43e435ea4
/52)convert_num_to_words.py
e2ec69789424a1254d41ee6f1e0853fc530c1494
[]
no_license
MANNEMPRATAPVARUN/guvipy
7e460da8b9d98c2fcd488757585d5bd207570666
4da4fe4f3d4855e14383015da19588ef0aea4f32
refs/heads/master
2020-06-10T01:22:26.063815
2019-06-12T13:44:44
2019-06-12T13:44:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
n1=int(input()) if(n1==1): print("one") elif(n1==2): print("two") elif(n1==3): print("three") elif(n1==4): print("four") elif(n1==5): print("five") elif(n1==6): print("six") elif(n1==7): print("seven") elif(n1==8): print("eight") elif(n1==9): print("nine") elif(n1==10): print("te...
[ "noreply@github.com" ]
noreply@github.com
23a1085097f3a2e7b407fd30117545f30cb604db
e66ccc4ab81882b422cdb0cc65a6bc581f2a9eaf
/app/utils/code.py
6433dad1269a64b262eed9082abea0a87cfedcff
[ "MIT" ]
permissive
qzq1111/flask-restful-example
7bb1c6e9402240c0b1d0a00f980f10420db3c474
2793c33d018c860ca99d389d8134cde864937417
refs/heads/master
2023-09-02T15:20:48.335690
2023-09-01T04:20:21
2023-09-01T04:20:21
177,242,515
885
284
MIT
2023-08-28T17:35:35
2019-03-23T04:09:00
Python
UTF-8
Python
false
false
821
py
class ResponseCode(object): Success = 0 # 成功 Fail = -1 # 失败 NoResourceFound = 40001 # 未找到资源 InvalidParameter = 40002 # 参数无效 AccountOrPassWordErr = 40003 # 账户或密码错误 VerificationCodeError = 40004 # 验证码错误 PleaseSignIn = 40005 # 请登陆 WeChatAuthorizationFailure = 40006 # 微信授权失败 Inva...
[ "472597709@qq.com" ]
472597709@qq.com
60cd38b9379f11114913533282aedd46f9ee2113
da7bad85d3c54c3dbb816cf929d63858d8a0a93d
/python/tvm/contrib/rpc/client.py
1ea94eeb68edc3d17dfc85827acea6f8fe8c01c2
[ "Apache-2.0" ]
permissive
shin0403/tvm
aec8315cd02420e7ecad01a0b16ecd690c9d93d4
39047131c75ab8d5291f67f2390ee4c8e52a50a9
refs/heads/master
2023-01-18T19:59:05.768195
2018-04-06T04:44:07
2018-04-06T04:44:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,344
py
"""RPC client tools""" from __future__ import absolute_import import os import socket import struct import time from . import base from ..._ffi.base import TVMError from ..._ffi.ndarray import context as _context class RPCSession(object): """RPC Client session module Do not directly create the obhect, call...
[ "noreply@github.com" ]
noreply@github.com
714fbdc3316f07578e6cb0f042e3fcd1c4c8d2b3
41974c0ea7443f1596c7c8310568ea7378300aed
/Linear_regression.py
806002d61c2b3479023f312662d9eb11040f9571
[]
no_license
lvcz/sentdex
ce455c8d45937bbfcd6996de9699356b0a751dc7
2df9235b904215bc65301840769908d6c33b4696
refs/heads/master
2020-03-19T03:47:34.170775
2018-06-01T21:04:43
2018-06-01T21:04:43
135,763,229
0
1
null
null
null
null
UTF-8
Python
false
false
2,095
py
import pandas as pd import quandl import matplotlib.pyplot as plt from matplotlib import style import math import numpy as np from sklearn import preprocessing, cross_validation, svm from sklearn.linear_model import LinearRegression import datetime import pickle style.use('ggplot') # df = quandl.get('BCHAIN/TRVOU') d...
[ "lvcz@github.com" ]
lvcz@github.com
f641b68b595b5952d722ebd6a5cfb5fcabc1f896
570bc7e8de8a17f3714ccca39ab5b31dc98824b6
/code/python/prime-check/fast_ex.py
d72339e7a65783fee488b45320a65d185361740f
[]
no_license
csknk/number-theory-notes
e0bedeb7e5840a1620a688f7d9eef834b03211d0
54226793f884076824d779b749220799d6bfdcb9
refs/heads/master
2020-07-31T02:11:26.618109
2019-10-10T20:50:48
2019-10-10T20:50:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
#!/usr/bin/env python3 def fast_ex(b, e, m): e2 = 1 while 1: e2 *= 2 if e2 > e: break b = (b * b) % m return b, e2 / 2 def compute_modular_exponent(b, e, m): r, e2 = fast_ex(b, e, m) while 1: if e2 >= e: break s, t = fast_ex(b, e - e2, m) r *= s ...
[ "david@carawebs.com" ]
david@carawebs.com
f3cfbcaeb7265dd3b6d5567e322a51609e6e59bf
2ff30123d6bb423b1582d09ff05fdf053a199c15
/Widget/ContactButton.py
4128b709c06f30f5111c81da9b218dd5e0491d04
[]
no_license
giuliobz/ContactManager
972992a03c4840a08b925279a4e8f0e7b7b96f16
fea6fc3c080b4c5424e0fa3a05c34cad0055ca03
refs/heads/master
2022-04-23T22:38:16.707068
2020-04-13T13:36:19
2020-04-13T13:36:19
230,072,703
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
from PyQt5.QtWidgets import QPushButton, QSizePolicy class ContactButton(QPushButton): ''' Button to open a contact to see information ''' def __init__(self, name, model, id, **kwargs): super().__init__(**kwargs) self._name = name self._model = model self._id = id se...
[ "giulio.bazzanti@stud.unifi.it" ]
giulio.bazzanti@stud.unifi.it
51e5b09ae5c5e5ac33c97985e86db39aaa56c462
9048b05b73b8e930149f45e148f64980579e6118
/sms/migrations/0001_initial.py
a3827acec54b1d5c3f3018cd308b134f081efdb6
[]
no_license
MoneshKumar/hedgehog
c6e3409949541ad65430512a234bad78edcde27a
c16498a438bfc325bfb1dc332e8c962904597280
refs/heads/master
2020-08-07T08:07:59.472788
2019-10-07T11:52:22
2019-10-07T11:52:22
213,365,297
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.25 on 2019-10-07 09:08 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.Cre...
[ "mpasupur@cisco.com" ]
mpasupur@cisco.com
65b0f22962ed07410e4f35bca87ab008b70a3eef
3be21ba5a741bef570b60bfd050b31648b8518c5
/api_test/urls.py
85d2328010b839b7800b7a84c882ae3c795ca0bb
[]
no_license
xuepl/api_test
98c121f88ead025fbf3bf6e6d1dbf160f8d6c793
1eac525d47fc4481180bf31af420c2dc47ebd388
refs/heads/master
2022-11-06T06:18:55.014591
2020-06-24T13:17:37
2020-06-24T13:17:37
273,865,943
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
"""api_test 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-base...
[ "xuepl@guoyasoft.com" ]
xuepl@guoyasoft.com
005ee105e711ec0845bdb9dca95d49aa3ba6aa97
c373b35bb5b88f735326895af73504f8016055b8
/tasks/admin.py
96816c96c8efd1df145c98057eb1f9dd29ba57e8
[]
no_license
coylec/django_todo
33f73b86ce87c400ae276e6136a2dd6c49373044
205eb457949c60bf2eb5d9bb6aedbc7c5d3f7702
refs/heads/master
2021-01-01T06:15:15.957807
2017-07-16T15:45:43
2017-07-16T15:45:43
97,393,438
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from tasks.models import Tasks # Register your models here. admin.site.register(Tasks)
[ "coylec@users.noreply.github.com" ]
coylec@users.noreply.github.com
65a9b03f547a18f4099ac0b376b2b11c40f01b68
b1ccf62b097afd6880b4c3422bc8a773cc96a889
/dags/etl_spotify.py
7a47ec8bac1677c646587806d0433c86ef0babd3
[]
no_license
davidy87/ETL-spotify-data
adf1f9a7c838cf82d0d2a8c6d84167afe67a80af
f7078c1f5b6c99f5cf3a59c6c80978412588f904
refs/heads/main
2023-07-03T17:31:06.104481
2021-01-18T13:41:38
2021-01-18T13:41:38
327,594,043
0
0
null
null
null
null
UTF-8
Python
false
false
3,917
py
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import psycopg2 import requests import json import pandas as pd from datetime import datetime, timedelta import os from collections import defaultdict import string import random """ References: https://spotipy.readthedocs.io/en/2.16.1/ ...
[ "dyoon0807@gmail.com" ]
dyoon0807@gmail.com
543fd4be6b22c96bcaa75db052979e4302c6b24d
52f0984561895b48f3e6e40658a6e52c97705715
/python-folder/serverless2.py
ddcd1ce97acb5419e4a251fe3bee710c7535e509
[]
no_license
jsanon01/python
8da2755e7724850875518455c1760bb9f04dd873
edd52214e3578f18b71b0ad944c287411fb23dfb
refs/heads/master
2022-05-20T00:29:10.550169
2022-05-10T01:08:48
2022-05-10T01:08:48
165,682,490
0
0
null
null
null
null
UTF-8
Python
false
false
3,377
py
""" I want to import website for Reference I want a function named 'compute' I want a function named 'storage' I want a function named 'data_stores' I want a function named 'api_proxy' I want a function named 'api_integration' I want a function named 'analytics' I want a function named 'dev_tool' I want a function name...
[ "jeansanon180@gmail.com" ]
jeansanon180@gmail.com
530f07016eaf13d8fbca12bb52081548432d9b02
2a47b4e7388f736169a1ab3ba7e97716565f279b
/AiVirtualMouseProject.py
4cab5ff2f452b9928e5995065413b2ea1f03a95b
[]
no_license
Utkarsh1101/Ai-Virtual-Mouse
b2c1b3339569f8cb9a98f5b1c610c48b386ff7a9
7c5de5d7af8944c43e117bebc45b12357b178b16
refs/heads/main
2023-08-03T20:19:37.729775
2021-09-19T12:39:19
2021-09-19T12:39:19
408,123,290
0
0
null
null
null
null
UTF-8
Python
false
false
2,277
py
import cv2 import numpy as np import HandTrackingModule as htm import time import autopy ########################## wCam, hCam = 640, 480 frameR = 100 # Frame Reduction smoothening = 7 ######################### pTime = 0 plocX, plocY = 0, 0 clocX, clocY = 0, 0 cap = cv2.VideoCapture(0) cap.set(3, w...
[ "noreply@github.com" ]
noreply@github.com
f226d0ef2e31d350f86f78906f0565ae5e9b2432
eb40a068cef3cabd7a0df37a0ec2bde3c1e4e5ae
/imperative/python/megengine/data/tools/_queue.py
9acd8396acb4078c93b51588585ba3c9a4325c34
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
tpoisonooo/MegEngine
ccb5c089a951e848344f136eaf10a5c66ae8eb6f
b8f7ad47419ef287a1ca17323fd6362c6c69445c
refs/heads/master
2022-11-07T04:50:40.987573
2021-05-27T08:55:50
2021-05-27T08:55:50
249,964,363
1
0
NOASSERTION
2021-05-27T08:55:50
2020-03-25T11:48:35
null
UTF-8
Python
false
false
5,241
py
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2021 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
[ "megengine@megvii.com" ]
megengine@megvii.com
5883b13a008f89976e099bb9238c124fc37ad18d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03273/s686375641.py
da4e84ee5bc242bc4a53671532a88a0e7dd849e7
[]
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
876
py
H,W = map(int,input().split()) A = [list(input()) for _ in range(H)] B = [[0 for _ in range(W)] for _ in range(H)] for i in range(H): for j in range(W): if A[i][j]=="#": B[i][j] = 1 C = [] for i in range(H-1,-1,-1): if sum(B[i])==0: C.append(i) B1 = [] for i in range(H): if i not...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e39bf21fcc082d08eb7dd6521a89049fdaddc47d
f31168962b359cff133916b559326d450b9780c7
/cron.py
f3f32f76c086ee24f1ff63f1167cf3c6014c3673
[]
no_license
oibe/sniper
4ba80b4855c96c8fbd4f3688007d0c73d637a09f
369d449a0509b662d1162fbf588df8288a165f6c
refs/heads/master
2020-12-25T19:27:19.874576
2014-02-20T17:59:46
2014-02-20T17:59:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,605
py
#!/usr/bin/env python """ This represents the cronjob that runs to check for course openings""" from flaskext.mail import Message import urllib from models import db, Snipe from soc import Soc from app import mail, app import datetime from collections import namedtuple soc = Soc() EMAIL_SENDER = "Course Sniper <snip...
[ "vaibhav2614@gmail.com" ]
vaibhav2614@gmail.com
b9e686ac4a2cfffd0a9a4f512498df16afe1b8f8
9e93a7da703c8ea1371823c19bd441bf05f29639
/coremltools/converters/mil/input_types.py
e8e643f33c1b0d3273e617b2ca73e3ec753e28a5
[ "BSD-3-Clause" ]
permissive
harshthaker/coremltools
df3d0fc0c97c2a969526193afc85b10662a1f314
db55e571b27284978d9cc115d8d9a837d8c75707
refs/heads/master
2022-12-06T19:13:13.584895
2020-08-13T17:32:24
2020-08-13T17:32:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,591
py
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import logging import numpy as np import six from coremltools.converters.mil.mil.types.symbolic impor...
[ "noreply@github.com" ]
noreply@github.com
12e5800207492dac7953321328f67ed98eef57d9
9753facc9513e41aa53057d41294d0a707e9f78c
/utilities/sklearn_sparse/SparseKPCovR.py
bcb6d445af6ba1eef82ead4cfa042d8dc2979a7b
[]
no_license
hurricane642/sklearn-cosmo
31944336d38dfe7c90237725bdde93b09c17cb50
f95b68d83ef96a8519d59c107120f16b043e4697
refs/heads/main
2022-12-31T17:45:38.872194
2020-10-20T22:56:30
2020-10-20T22:56:30
305,852,086
0
0
null
2020-10-20T22:55:03
2020-10-20T22:55:02
null
UTF-8
Python
false
false
5,832
py
from .Sparsified import _Sparsified import numpy as np from sklearn.preprocessing import KernelCenterer from sklearn.utils.validation import check_X_y from sklearn.exceptions import NotFittedError class SparseKPCovR(_Sparsified): """ Performs KPCovR, as described in Helfrecht (2020) which combines Kernel ...
[ "klyavinekss@gmail.com" ]
klyavinekss@gmail.com
5c7307c4a52f27eb624e9558dc408c01acc70c62
27105fbc652081d97b3c994400c20fc6326af563
/app.py
3adb1ca75b51311fd8053b90d0ec58f3a8bb8db4
[]
no_license
JaskiranKaur12/filespractice
3d8e526391480a221ec406a9b8af73d68a85b75d
0b1fd7d29ee268c59f399399cf2a979dc46b8aa2
refs/heads/master
2020-12-23T03:14:45.315907
2020-01-29T15:29:38
2020-01-29T15:29:38
237,016,557
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
my_file=open('data.txt','r') file_content=my_file.read() my_file.close() print(file_content) user_name=input("Enter your name:") my_file_write=open('data.txt','w') my_file_write.write(user_name) my_file_write.close()
[ "44074979+JaskiranKaur12@users.noreply.github.com" ]
44074979+JaskiranKaur12@users.noreply.github.com
9f9d28dd3b58871558e47f16bcaa7c0fdfaf514c
e5980220f6aa3342230c4d7578e8aae653d22787
/Hawkes/__init__.py
ee425f091ca19ea2cd89386dd405a53f5a9707ee
[]
no_license
majkee15/Hawkes
2d6847f358af05d823c5aaf8cfb9b89e39879562
f88e9d70068a6bfe8e5b9f84c2279d53c5df9269
refs/heads/master
2020-05-27T01:25:29.740449
2019-04-08T08:13:58
2019-04-08T08:13:58
188,437,528
2
0
null
2019-05-24T14:37:43
2019-05-24T14:37:43
null
UTF-8
Python
false
false
58
py
from .model import simulator from .model import estimator
[ "noreply@github.com" ]
noreply@github.com
69e23591c623ada3e09f740235dfefcc26edce02
350af2e5b0e5ad436090e313d0c67e78a347686f
/scratch/src/main_city-condition.py
b5ab540a473360487d6d768edc79f87d4d59962f
[ "MIT" ]
permissive
UNCG-DAISY/HurriGAN
3704bcc4de17eb9086e47c5c19601583744c823b
8a2df83f79ee064b10be62697bb9e1787ad2e4d1
refs/heads/master
2022-12-08T17:05:13.319759
2020-09-05T21:27:50
2020-09-05T21:27:50
292,673,372
1
0
null
null
null
null
UTF-8
Python
false
false
11,750
py
# authors: Andres Pitta, Braden Tam, Florence Wang and Hanying Zhang # date: 2020-05-25 '''This script takes the images from zipped files, stores it in a numpy array or a data generator and runs conditional Generative Adversarial Networks conditioned by city Usage: gans.py [--ROOT_FOLDER=<ROOT_FOLDER>] [--METHOD=<MET...
[ "tomas.beuzen@gmail.com" ]
tomas.beuzen@gmail.com
df84018ef1da143dc4a7386acd8b45a5a563f174
ebd7dcc67bc93eb8435d6ccda0013f414a80c42c
/Searcher/json_options.py
4dbcc39d5a9f113ddd415ee334dd4d1b36504d69
[ "MIT" ]
permissive
jbeha-philly/FinanceDatabase
76b064284cd57ccea53bc6118e7302c13745f52e
5b426aa555091dacbbe1faa2ec1a47f6da53e084
refs/heads/master
2023-02-25T09:41:16.584602
2021-02-04T13:27:52
2021-02-04T13:27:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,858
py
import requests import json def show_options(product, equities_selection=None): """ Description ---- Returns all options that exist in the database that you can use to filter the database. Input ---- product (string) Gives all data for a specific product which can be c...
[ "jer.bouma@gmail.com" ]
jer.bouma@gmail.com
6071ec247a38b9b90861e615d85b9398a6698cef
d060c5ccc0d45d12b9f3462264602e63ff0a6115
/api_management/models.py
5a336d2f8e88e6e8c395c2868152dce0b101204b
[]
no_license
greeneley/vSmartLight
d923b84c666455cb266150d3d6be5b5283464908
a0c97760af0fbeb0cddef25f020a6eccc693eaf4
refs/heads/master
2023-07-09T13:41:44.411362
2021-08-17T18:32:13
2021-08-17T18:32:13
396,212,237
0
0
null
null
null
null
UTF-8
Python
false
false
6,524
py
from django.db import models # Create your models here. class AdaptiveSignalProgram(models.Model): adaptive_signal_program_id = models.AutoField(primary_key=True) name = models.CharField(unique=True, max_length=45, blank=True, null=True) status = models.IntegerField(blank=True, null=True) alarm = mod...
[ "anhchangtoanhoc97@gmail.com" ]
anhchangtoanhoc97@gmail.com
6a88cdf3d25fcf38cf7c1232a0783fd4c139aed6
aeb327a26d069611ee5e381e3013ab26ca974346
/.env/bin/django-admin.py
c21fe340a34e045f8bbe6ed690cd30ea0fabfc87
[]
no_license
Ben-Kaplan/Project4
d01eb766f0f213166c21c47a83e49d54f860b512
a53a369326755b9a8916a081f5ea91313b415f63
refs/heads/master
2020-03-27T03:41:24.052796
2018-08-23T16:41:04
2018-08-23T16:41:04
145,881,079
1
0
null
null
null
null
UTF-8
Python
false
false
173
py
#!/Users/ericmtodd/ga_wdi_funky_ducks/project-4/.env/bin/python3.7 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "benjaminkaplanart@gmail.com" ]
benjaminkaplanart@gmail.com
1313e0f7a3469ba1a5c825ca4862eb0b4dc82759
1398534b1dc74fcfd3d565f408153162e86e534c
/main/migrations/0001_initial.py
81a7467fe454f372a3506fcca1cbb127ce5531f1
[]
no_license
aliyuyolatech/facebookbackend
c9d6a3390e4309057590a4a77209f8650129a075
1d4b4d4488933581d696df12a1ca18365af3de2a
refs/heads/master
2023-07-10T00:33:20.830198
2021-08-23T12:25:53
2021-08-23T12:25:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,026
py
# Generated by Django 3.2.6 on 2021-08-17 13:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import main.managers class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ...
[ "daniyafarida@gmail.com" ]
daniyafarida@gmail.com
a0187e3cf9f492ef6c1bc89361772c035ddcc37f
2ed229651c21f552b61c2a2e520450d20795780f
/simple_issue_tracker/issue/migrations/0003_auto_20180331_0756.py
2e079cb4b6193e0bd6c65a5a589f0d070d56a4b3
[]
no_license
SurendraKumar19/LaunchYard
360c2fbff58f453e5e1d21716ba033ce0203e279
8be7d967f986320cf212799e4a30b19724904cf2
refs/heads/master
2020-03-07T18:59:31.975463
2018-04-02T04:16:24
2018-04-02T04:16:24
127,658,734
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-31 07:56 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('issue', '0002_auto_20180330_...
[ "=" ]
=
d8a6bab89e21ad6755e45657f6c3a89796451d59
c4a2c701a75368629a199d9c489377ae35f89130
/NLP/morphologicalAnalyser/openCorporaDictFromPreparedFile.py
bddcde92c6de26e70f6564c3bdc29091f53894a3
[]
no_license
perchonock/stepic
01ee8029e186dffd553fd06416d1d814d0f317e6
00d114047ce0581d70b6af432babfc55143bc5a0
refs/heads/master
2021-01-22T08:02:06.369974
2017-12-08T18:25:39
2017-12-08T18:25:39
25,364,928
0
0
null
null
null
null
UTF-8
Python
false
false
1,054
py
dictionary = dict() lemmas = dict() for letter in 'абвгдежзийклмнопрстуфхцчшщыэюя': dictionary[letter] = dict() tags = {'NOUN': 'S', 'ADJF': 'A', 'ADJS': 'A', 'COMP': 'A', 'VERB': 'V', 'INFN': 'V', 'PRTF': 'V', 'PRTS': 'V', 'GRND': 'V', 'NUMR': 'ADV', 'ADVB': 'ADV', 'NPRO': 'S', 'PRED': 'ADV', 'PREP': 'PR', 'CONJ'...
[ "me_on@mail.ru" ]
me_on@mail.ru
e78a147c14f627881d881932b085a3131afbdd74
ac14140c0723d84603a584c3bef8383d780a9db6
/point2d.py
8b686c42975f70dc9afe6c2187c4add5e710cd32
[]
no_license
mir-evgenii/oop_lab_2
66caf25676e45130a6e2afa99022e270c2a365b3
042a652afdc90a1abf0a04ee72161e49bedeed57
refs/heads/master
2021-01-01T13:40:01.717963
2020-02-09T12:36:07
2020-02-09T12:39:17
239,303,515
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
class point2d: def __init__(self, x, y): self._x = x self._y = y def get_x(self): return self._x def get_y(self): return self._y def set_x(self, x): self._x = x def set_y(self, y): self._y = y
[ "mir-evgenii@mail.ru" ]
mir-evgenii@mail.ru
e0fcd2dfebc1ef1dbeec9a8fffd35cc9a6e744e4
46e07ee08e7da16f485e4ecaff4c904f4d35e861
/py/syntax/with/with.py
196076d1cb5bdefbb26d09fd4a7a825bf8927d7a
[]
no_license
xifeng205/test
3f5d5419ebaee2b6521842ac07b9036ec905fcb7
91935b42eda99200a411395f8708bef9027249a9
refs/heads/master
2023-02-02T12:53:29.932233
2020-12-17T06:58:15
2020-12-17T06:58:15
322,201,691
1
0
null
null
null
null
UTF-8
Python
false
false
427
py
#!/usr/bin/python3 # _*_ coding: utf-8 _*_ # ********************************************************** # * Author : cuiyunpeng # * Email : @163.com # * Create time : 2020-02-07 11:55 # * Last modified : 2020-02-07 11:55 # * Filename : with.py # * Description : # *****************************...
[ "xifeng527711@163.com" ]
xifeng527711@163.com
08fa71f89c9986c2120b62f3451a3c639c138ffc
9d0b3029a2c10683e6c7bda94887154857bfe634
/Beginner/URI_1014.py
4a80b4f69d4337b01819a38d1931d7c204997def
[ "MIT" ]
permissive
rbshadow/Python_URI
559b25a559fbe955c0e1fe6bdc1c39e30f5c18a9
4f7df8cdea0eba5c550bb3016b1a7ab6dc723d56
refs/heads/master
2020-02-26T15:53:55.367919
2018-10-04T00:43:31
2018-10-04T00:43:31
70,911,515
3
0
MIT
2018-02-15T17:35:56
2016-10-14T13:13:13
Python
UTF-8
Python
false
false
189
py
def math(): distance = int(input()) fuel = float(input()) result = (distance / fuel).__format__('.3f') print(str(result) + ' km/l') if __name__ == '__main__': math()
[ "ridoy.computers@gmail.com" ]
ridoy.computers@gmail.com
a63c205f0936102452ad17b5952656128fe67b4f
807142ff56f50454d5e3268c6a71cd022bfd0c50
/powerball/.ipynb_checkpoints/__init__-checkpoint.py
e82c75684289fcf74768b5d10cbb3ee04ce1f9a9
[]
no_license
medikid/PyLotto
c82d383649c97212de432979255bd2a23b0794d1
afaed6cfbbbb5f83af2b4e55c2bc9c9d95e3f71d
refs/heads/master
2022-11-18T16:49:53.209304
2020-07-19T20:21:10
2020-07-19T20:21:10
176,029,995
0
0
null
null
null
null
UTF-8
Python
false
false
8,899
py
from powerball.models import iresult, idraw, idepth, ifreq; from powerball.fetcher import Fetcher from powerball.db import db_init; from powerball.db.db_base import DBBase import numpy as np class PowerBall: db=db_init() def get_last_draw_id(self): res = iresult.iResult() return res.getL...
[ "soma.programmer@gmail.com" ]
soma.programmer@gmail.com
79af61c92daf1293ef0ba0bfcb34804805052a22
36c00fe2afff4818c937e312ce0c6a79f35e2a77
/7-kyu/array2binary-addition/python/solution.py
bcd80ff9c75f338e4958aaaaad30c2952f46cf09
[]
no_license
p-lots/codewars
0a67b6ee4c91180ff78c648421b9d2d64463ddc3
535faeee475c6b398124d6f5002b0e111406e8bb
refs/heads/master
2023-08-23T22:14:33.635011
2023-08-23T13:30:37
2023-08-23T13:30:37
195,320,309
0
0
null
2023-05-09T19:25:50
2019-07-05T01:40:15
Python
UTF-8
Python
false
false
102
py
def arr2bin(arr): return bin(sum(arr))[2:] if all(type(elem) == int for elem in arr) else False
[ "paul.calotta@gmail.com" ]
paul.calotta@gmail.com
b6b8d155ce64111bdf5d9e0937e5da0e3126fde4
8d66a8bc4e625534f2b63c7c22b3b7edf2d80aaa
/post/migrations/0011_auto_20191104_1025.py
183fec21131e42ee43b2b259608579856366c105
[]
no_license
pulkit1205/jango-blog
3617653faa03d5002564f24b6be0d083a769718a
76c8d9b25f56b51ec186051da31fb04359c38396
refs/heads/master
2022-12-05T15:02:32.903149
2019-11-15T13:42:27
2019-11-15T13:42:27
221,911,582
0
0
null
2022-11-22T04:49:25
2019-11-15T11:35:04
Python
UTF-8
Python
false
false
553
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.25 on 2019-11-04 10:25 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('post', '0010_auto_20191104_0837'), ] operations =...
[ "pulkit@technoarchsoftwares.com" ]
pulkit@technoarchsoftwares.com
dcf47f7664b9148112ace33ac73f2a5b952052f4
4251af97b0189a75b0c6ec9eefd0333fa1542e44
/base/views.py
bb1c6ac333e50a82f5dfc5bbe3fdff26c6c17b80
[]
no_license
MuhammadNumanmn/Full-stack-app-with-django-python-
ecc394eb620da5f198b1231322f047ef63b53b5a
1706a8d84571aec43d87704988f5ca806897d2bc
refs/heads/master
2023-08-16T21:46:17.711874
2021-10-05T11:06:32
2021-10-05T11:06:32
413,781,174
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
from django.shortcuts import render, HttpResponse rooms = [ {'id': 1, 'name': 'Lets learn Python'}, {'id': 2, 'name': 'Lets learn Django'}, {'id': 3, 'name': 'Lets learn React'}, {'id': 4, 'name': 'Lets learn Cloud Computing'}, ] def Home(request): return render(request, 'home.html')
[ "38610892+MuhammadNumanmn@users.noreply.github.com" ]
38610892+MuhammadNumanmn@users.noreply.github.com
3565507f8d9a85c2327ed93fe28b09dfd4f644e6
f4b5721c6b3f5623e306d0aa9a95ec53461c1f89
/backend/src/gloader/xml/xpath/Context.py
f82a5fa07e901b4eb84d3947e8023d537613d205
[ "MIT" ]
permissive
citelab/gini5
b53e306eb5dabf98e9a7ded3802cf2c646f32914
d095076113c1e84c33f52ef46a3df1f8bc8ffa43
refs/heads/uml-rename
2022-12-10T15:58:49.578271
2021-12-09T23:58:01
2021-12-09T23:58:01
134,980,773
12
11
MIT
2022-12-08T05:20:58
2018-05-26T17:16:50
Python
UTF-8
Python
false
false
2,193
py
######################################################################## # # File Name: Context.py # # """ The context of an XPath expression. WWW: http://4suite.org/XPATH e-mail: support@4suite.org Copyright (c) 2000-2001 Fourthought Inc, USA. All Rights Reserved. See http://4suite.org/COPYRIGHT for lice...
[ "maheswar@MacBook-Pro.local" ]
maheswar@MacBook-Pro.local
b8f6950229865f5168ba3000bc6cd0741f1f9845
47bace5283def8b1e660d181881cb96b8916dc0b
/generate.py
eba5b0bb899ba3a9f293baefe39bdea9cd0fbf92
[ "MIT" ]
permissive
RyanSinger/recipes-2
1977c667a21973e0316c6db0523d7fbf98a2cecf
1fbad7543b9b3a5423e66583ff038d76542bad10
refs/heads/main
2023-06-03T17:41:32.668016
2021-06-20T15:54:13
2021-06-20T15:54:13
378,719,890
0
0
null
2021-06-20T19:00:15
2021-06-20T19:00:14
null
UTF-8
Python
false
false
523
py
#!/usr/bin/env python3 import json import os import shutil if os.path.exists("build"): shutil.rmtree("build") # make build dir os.mkdir("build") # copy folder shutil.copytree("recipes", "build/recipes") shutil.copytree("images", "build/images") # copy individual files shutil.copy2("index.html", "build") shutil...
[ "joeeoj@blueskyemail.net" ]
joeeoj@blueskyemail.net
218ba86c9111feabe9758f0fdf5f8a46bdb12c36
5d217583ad1109242264190af15bfdb0cacd5ad0
/manage.py
4a9a2eba981a37065ad35eba6d88547fad8dadd8
[]
no_license
ados1991/portofolio
c6b16bee50026b881787f923ae8daaba5ead6672
528724c36e1e920487ff6b39c4d70ee303af3377
refs/heads/master
2021-01-20T02:49:24.102009
2017-07-02T19:17:40
2017-07-02T19:17:40
89,457,160
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": from mezzanine.utils.conf import real_project_name settings_module = "%s.settings" % real_project_name("whoami") os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module) from django.core.management import execute_from_comm...
[ "lionel.adossou@gmail.com" ]
lionel.adossou@gmail.com
a3ad3ca99b65c989492e22629087bc369214210e
0fe7ed44a34992f568f2b8e06dcb5b82c50c7b3c
/djangoproject/settings.py
20790db9cc3168cfac094c5ce2ff91c119312b42
[]
no_license
Abdulhafiz-Yusuf/DjangoWebsite
4512e9c15453bb6ec8be6b298e9e35bae3c7e096
06608b9e46144a42b62d7da55f25cf965448b756
refs/heads/master
2023-07-04T10:54:27.698667
2021-08-12T16:33:18
2021-08-12T16:33:18
395,009,359
0
0
null
null
null
null
UTF-8
Python
false
false
4,172
py
""" Django settings for djangoproject project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from ...
[ "talk2abdulhafiz@gmail.com" ]
talk2abdulhafiz@gmail.com
e4b39cdaf3e967be553950040526db5105580a14
4045e15cee260cd5a15c84d8b28452f5c0043ba3
/importFiles.py
66024871e6d5c941203e255ad4d231c32f450dbe
[]
no_license
Jpere905/News-Article-Word-Analyzer
9bf5dfbdee4525ffd25d2e9c2313506ac10ea687
c60da6d2ae4e8a7a1eee68156476c56eebbb9c45
refs/heads/master
2023-03-08T10:15:00.218351
2021-02-21T21:48:26
2021-02-21T21:48:26
301,002,729
0
0
null
null
null
null
UTF-8
Python
false
false
595
py
import main_functions import requestArticles import requests import pandas as pd import streamlit as st import numpy as np import altair as alt import time from pprint import pprint # pretty print from wordcloud import WordCloud import nltk from nltk import sent_tokenize # turn catted str sentenc...
[ "jpere905@fiu.edu" ]
jpere905@fiu.edu
ad3f14f01c95e48086aaa67370cd28d620fce285
8e0dadcc49c234787c83e83b3a1e327396925850
/main.py
a34925b9f2c3354acc9b56a6f0245ea93c94897e
[]
no_license
bradyrichardson/maze-solver
c8236f0b157297666846f699157c231b12780237
6f46d17035462d59a942c388763d4527d76e2df8
refs/heads/master
2022-03-01T05:14:51.961520
2022-02-15T02:42:13
2022-02-15T02:42:13
201,822,411
0
0
null
null
null
null
UTF-8
Python
false
false
1,525
py
from SolverClasses.maze import Maze from SolverClasses.moves import Moves maze = Maze(start=-1, end=-1, nodeList=[], foundation=[], currentPos=[], possibleYMoves=[], possibleXMoves=[]) maze.foundation = [ # hard-code the maze object's foundation array, walls are denoted by 0s and paths are denoted by 1s [0, 0, ...
[ "noreply@github.com" ]
noreply@github.com
226b391cbbbde2589790888758dbafb31e93999c
491946fde251c31eb92923da33f597e39a44b7c9
/MyPythonPractice/test1_7.py
e91ef0b747f82afbea3ca66aef5f379bcb811c53
[]
no_license
xukun12138/MyPythonPractice
05e0c0a5d9a88d9b1c33e4c1ec16f65be8fbfdca
1700b62358f93baf8f66334781fe4febb54c8ae1
refs/heads/master
2020-04-08T23:34:22.107641
2018-11-30T13:53:34
2018-11-30T13:53:34
159,830,554
0
0
null
null
null
null
UTF-8
Python
false
false
148
py
a=list(range(15)) b=tuple(range(1,15)) print(a,type(a)) print(b,type(b)) #(1) c=tuple(range(1,100,2)) print(c) #(3)
[ "45358158+xukun12138@users.noreply.github.com" ]
45358158+xukun12138@users.noreply.github.com
1419549496c1369487e5530ea797008120d738be
0b39c30e7bee94e511605c91fb2cf393345a5335
/Solution-10.py
628517a7827b1f0cb194af168eeba38b58304e00
[ "Apache-2.0" ]
permissive
MurrayLisa/pands-problem-set
7bb72cec4c167fbf02b3a486e9cf6099f738c83e
574fdbbcb7fd00942d8803f2aa0572e9ca91d9ed
refs/heads/master
2020-04-28T01:20:08.182222
2019-03-25T18:11:30
2019-03-25T18:11:30
174,851,417
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
#Solution-10 Lisa Murray #Import Libraries import matplotlib.pyplot as plt import numpy as np #Define x axis x = np.arange(0.0, 4.0, 1) #Define the function y1 = x y2 = x**2 y3 = 2**x #plot the y1-y3 functions plt.plot(x, y1) plt.plot(x, y2) plt.plot(x, y3) #Labelling graph plt.title('Solution 10 Graph - Plotting ...
[ "lisa.murray1605@gmail.com" ]
lisa.murray1605@gmail.com
46d5a0426a83b1d35f2d17fdf739b8e3a414f5bb
130c01dde54bdab36dbd868268a63d5afc0a21d5
/dev/breeze/src/airflow_breeze/pre_commit_ids.py
32bd376e69eb434bf853e4e208127b18abc0eee3
[ "Apache-2.0", "BSD-3-Clause", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
KarshVashi/airflow
1e5594598c398d74f2c14fafebca6576bd643fcd
b3e26560c7fd835570a0b3a9d65670c87c8cfe0a
refs/heads/main
2023-03-09T20:05:43.132699
2022-12-23T23:35:20
2022-12-23T23:35:20
300,826,071
0
0
Apache-2.0
2020-10-03T07:49:05
2020-10-03T07:49:05
null
UTF-8
Python
false
false
3,987
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
noreply@github.com
1bc2a363242f9b51fb7a08aee777e17e02b4bad4
a0131fa2c2b21120d178e11399c583a8b8afc755
/oversampling/yeast_dataset.py
2a84f6754c84648abf1f04326a75dba1c9219c5f
[]
no_license
nivgold/TTA-Anomaly-Detection
74de9667854f381421a8f5471460b370cd94e67e
a4a5ffc17172a81c287ea3c892092aa21d62eb79
refs/heads/main
2023-06-21T16:45:48.730887
2021-07-26T19:06:17
2021-07-26T19:06:17
307,829,646
0
0
null
null
null
null
UTF-8
Python
false
false
9,972
py
import pandas as pd import os import numpy as np import tensorflow as tf from datetime import datetime from sklearn.preprocessing import MinMaxScaler from tqdm import tqdm AUTOTUNE = tf.data.experimental.AUTOTUNE def reduce_mem_usage(df): """ iterate through all the columns of a dataframe and modify the data typ...
[ "nivgold@post.bgu.ac.il" ]
nivgold@post.bgu.ac.il
b27e5f48686f9b0bc3d7856fa4835128b729a63d
04aaec50ea5691f1ecc769899ccc1004621ee568
/groceryupdate.py
eae6c236b72d0b877643bc94a8040c63217e14d4
[]
no_license
Zkellogg/Assignments
0da12bc63a84bb74167249d7163b67eb826918ed
2d4ec9d8eb6bad00e3d41609ea70c908a7409c9f
refs/heads/main
2023-06-24T16:34:34.814183
2021-07-16T19:50:33
2021-07-16T19:50:33
385,968,357
0
0
null
null
null
null
UTF-8
Python
false
false
1,941
py
#Still working on it..made changes to reflect review today. stores = [] test = [] class StoreList: def __init__(self, name, address): self.name = name self.address = address self.items = [] class Item: def __init__(self, name, price): self.name = name self.price = p...
[ "59624561+Zkellogg@users.noreply.github.com" ]
59624561+Zkellogg@users.noreply.github.com
ed8fcb02760cbcd766f562bb509bc91469e1c601
d8ed34f712a7b83fa0ceb3ea6f78c7e9ccc0fa0c
/pyinvest/utils.py
b5ecd6b24fff8e87f11a0f4b6d52dde9e17b1d32
[ "MIT" ]
permissive
conceptric/pyinvest
9a71c450564496f70c81ff61575e0bcb63ce4a35
b233b803498794af0d8be2924426877b2a0df214
refs/heads/master
2021-01-20T02:19:51.005508
2013-04-15T18:34:34
2013-04-15T18:34:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,880
py
import numpy as np def cost_of_equity(rfr, mrp, beta=1): ''' Calculates the fractional cost of equity from collections: risk_free : collection of fractional risk free rates. market_risk: collection of fractional market risk premimums. stock_beta : collection of the market beta of the stocks. ...
[ "james@conceptric.co.uk" ]
james@conceptric.co.uk
d49f6c097e8b8a980d275c8ad04028f9c2f8a0db
de27e32c8a85cc33a23e189a32852b6ff0966630
/2020_reference_codes/B_league/Onedrone/main.py
1eb70d40d311aea8b75fdd1f66faf68543fc95b4
[]
no_license
NI2Lab/2021-mini-drone
ddb724da73f4a2c781e66d84737b0b7155b0de8b
f5f6672f365dd3075b7090a10c3b0cbaa5f8d685
refs/heads/main
2023-06-09T09:41:06.303491
2021-07-05T11:10:08
2021-07-05T11:10:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,189
py
from e_drone.drone import * from picamera.array import PiRGBArray from picamera import PiCamera from time import sleep import numpy as np import cv2 drone = Drone() drone.open() try: drone.sendTakeOff() sleep(4) camera = PiCamera() camera.resolution = (960, 720) camera.framerate = 32 rawCapture...
[ "mjw4260@naver.com" ]
mjw4260@naver.com
ccc15c918d078601b56daec7f90c314bdd198cf9
abb715bbd5cd27d7c395150ad9588d567a71b3a6
/hackathon_starter/hackathon/scripts/steam.py
e1741af5637b9646821c808821699d486dd3c5b1
[ "MIT" ]
permissive
kaiiyer/django-hackathon-starter
6f00d7b6b09ffbc7b94cce7b00e85baf219df27b
76df2f8f4a4595a8dfa8011436eb92ba3a2e8ccf
refs/heads/master
2020-04-16T04:22:18.138646
2020-02-15T18:17:54
2020-02-15T18:17:54
165,264,310
6
1
null
2020-02-15T18:17:56
2019-01-11T15:20:14
Python
UTF-8
Python
false
false
1,063
py
'''This script contains methods belonging to the Steam web API that can collect information based on an user's gaming library.''' import requests import json def gamespulling(steamid, apikey): '''Returns the JSON data from the Steam API based of one's Steam ID number and returns a dictionary of gameids and...
[ "cafe.mui@gmail.com" ]
cafe.mui@gmail.com
d77795f83cf3531eb6d38dc8bbceca8733172461
d509524de3b81f8fec31b73dbe207d212c7ba503
/Python/Proyecto/mouse.py~
0ee50680ba9831d0f101410293ae7883923dbd55
[]
no_license
dougtc1/algorithms1
1a73383c449ac302149396271927ec8557cd15d9
101605160f2066fffaf380069aa45a0138bd6f6f
refs/heads/master
2020-04-06T04:02:00.637407
2017-02-24T18:41:28
2017-02-24T18:41:28
83,071,215
0
0
null
null
null
null
UTF-8
Python
false
false
2,365
#!/usr/bin/env python3 # -*- coding:utf-8 -*- """ Universidad Simon Bolivar CI-2691 - Laboratorio de Algoritmos y Estructuras I Fecha: 08/06/2014 Material de Apoyo para tkinter Nabil J. Marquez 11-10683 """ from tkinter import * TOL = 8 CELLSIZE = 50 OFFSET = 50 CIRCLERAD = 2 DOTOFFSET = 50 GAME_H = 400 GAME_W = 40...
[ "douglastorres.usb@gmail.com" ]
douglastorres.usb@gmail.com
8c40e9fd7484e06d7091aae0dc289cbe31274f55
96df6a2287c4a31290ea64e1ff572ced4b07aae0
/train.py
486bb5f1a1d162d9164b95ffd067834658bd20aa
[]
no_license
ditto-cc/cDCGAN-tensorflow2
3f8eb8747ebbcf3838bd51cd76454ea653bd79aa
ed2c968efb75269a75fb845349a84e23837cf261
refs/heads/master
2022-12-24T10:25:15.849515
2020-09-30T07:53:48
2020-09-30T07:53:48
299,785,977
0
0
null
null
null
null
UTF-8
Python
false
false
6,990
py
# coding: utf-8 import glob import math import os import imageio import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import tqdm import utils from utils import path from model import generator, discriminator class CDCGAN: def __init__(self): self.ckpt_path = ut...
[ "chengchen.chn@outlook.com" ]
chengchen.chn@outlook.com
91867f9393f15bedc4c7875cec68f719632a0c02
a1c80589b4760712a3c80f9ce679d2526124ccf6
/P008 - Largest product in a series/main.py
b6869b8b84edbcfa355bd732c34b3a4098441be1
[]
no_license
libardia/ProjectEuler
395f8642ee6a80fd21525b1208aa130f446a8623
1cafae2da694ad4ab39b061dc0e8068466805b36
refs/heads/master
2020-04-07T22:28:12.096298
2018-11-23T03:02:56
2018-11-23T03:02:56
158,771,843
0
0
null
null
null
null
UTF-8
Python
false
false
2,614
py
# ====================================================================================================================== # PROBLEM 008: # The four adjacent digits in the 1000-digit number that have the greatest product are 9 * 9 * 8 * 9 = 5,832. # # 73167176531330624919225119674426574742355349194934 # 96983520312...
[ "libardi42@gmail.com" ]
libardi42@gmail.com
c3bf55ecaebb7517aa85a0abef26fdf5363f20dd
e730c3367959c0d46a4d776442704fec24b84afd
/guoke_spider/pipelines.py
0148d313b6cb0bf2b7a2554e0d257e74afdf9841
[]
no_license
IanChen6/guoke_spider
3baf4f110856b951ccf4b33c9a30d74287a12e0d
90c0e99ad752d421c46117a26af448bede8d5e9c
refs/heads/master
2021-01-23T18:44:36.839711
2017-09-08T01:57:43
2017-09-08T01:57:43
101,175,667
0
0
null
null
null
null
UTF-8
Python
false
false
4,274
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import codecs import json import MySQLdb import pymysql as pymysql from scrapy.pipelines.images import ImagesPipeline from twist...
[ "626614767@qq.com" ]
626614767@qq.com
95f87ca3f746b6ebf3a4f8a588fde8c7852bf984
2a0f0dabaace6a3ba164015473a3b281ab2f415e
/src/mtts.py
dbda7846e7ac390d9b2a2b423431a6acfdc1c4a2
[ "MIT" ]
permissive
icewwn/MTTS
a503cf4bcaaa89e41d2ccd8fa8d2ccc16430262c
e07f410127e475e35b0bd16037b89c11fa6ba982
refs/heads/master
2020-03-21T05:55:36.179193
2018-05-10T03:41:48
2018-05-10T03:41:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,537
py
import os import re import logging from pypinyin import pinyin, Style, load_phrases_dict import textgrid as tg from mandarin_frontend import txt2label consonant = ['b', 'p', 'm', 'f', 'd', 't', 'n', 'l', 'g', 'k', 'h', 'j', 'q', 'x', 'zh', 'ch', 'sh', 'r', 'z', 'c', 's', 'y', 'w'] ...
[ "707610215@qq.com" ]
707610215@qq.com
71e2016edbb152b6c30a8d3f50f6cea2e63b1cb2
8d56828fb72dcbb502a857c48394ee3684120745
/parsers/pe_hdr.py
691798f51cd9c757b0c1468369c4f99201b1566b
[ "MIT" ]
permissive
ArseniySky/mitra
1a26166e39df76d4472ce2a3000fca46e5327034
bb6038587300d34072cda1409e3bb72772b11dc9
refs/heads/master
2023-01-03T05:39:51.486063
2020-10-24T15:35:56
2020-10-24T15:35:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,695
py
#!/usr/bin/env python from parsers import FType from helpers import * class parser(FType): DESC = "Portable Executable (hdr)" TYPE = "PE(hdr)" MAGIC = b"MZ" def __init__(self, data=""): FType.__init__(self, data) self.data = data self.bAppData = True # let's not have duplicates self.bParasite = True # ...
[ "ange.albertini@gmail.com" ]
ange.albertini@gmail.com
cc5ec3f9411a75ef11c15047034ce3d90a7cd0d7
c197aac4760d055c2fe69c0e7a644b3a61225979
/week1/exercise2.py
c185acc31c242d53ebd98addf284710e4018ee17
[]
no_license
ericma1999/COMP0005-TA
26d0bee05f6672139961da3c6a3f98ef45770042
2189c630aed4fb1ed3bdd1bac2aeff3355bb8f71
refs/heads/master
2023-03-23T23:47:18.019937
2021-03-17T10:59:31
2021-03-17T10:59:31
329,199,053
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
# recursive version ## the space complexity is O(N) //not sure about this ### constant memory assignment of variables in each, but has more depth as n increases ## the time complexity is O(2^N) as the bigger value of N will generate more node trees. def fibonacci(n): if n == 0: print("Error") elif n =...
[ "official.passawis@gmail.com" ]
official.passawis@gmail.com
e353fee49acd714ca689de8d3ed9bc1512aab467
37945bf4454f6486979d44dd0be048ac3313b275
/matrix_freq.py
78740eb76b2d1c6b3eb8d5261bdb14b7fdfa70c2
[]
no_license
VMijangos/n-phones
e1d4d11dbdbeddc8b21e2527afd524425fc9f206
7ca2b65eb3bff82d6f3bad904844d43d69b3da3b
refs/heads/master
2020-05-02T16:53:42.921353
2019-05-08T00:27:27
2019-05-08T00:27:27
178,081,995
0
0
null
null
null
null
UTF-8
Python
false
false
1,779
py
from sys import argv from nphones import nPhones from collections import defaultdict, Counter from itertools import chain import numpy as np #Abre el archivo file = open(argv[1], 'r') #Estrae los nphones. Puede variar el tamaño del nphone: uniphone, triphone, etc. phones = nPhones(file.read(),nphone_siz=1) phones.ge...
[ "noreply@github.com" ]
noreply@github.com
c03da917bab449ab5a0857c6e6e2c45956ddfbcd
f0e9efbb0b90ff3f6c3796ab5cfcfecd3d937188
/travel_buddy/apps/first_app/views.py
6565dd2f866b03559a79d10cee1eef1fe5aac969
[]
no_license
john-gore/belt_exam_travel
9d6a05b6128ab4d8d3ac50c80784e383e0098a44
2d32a22aa66f58a0835e7d3daedeab83925a0a8c
refs/heads/master
2021-07-21T11:54:26.658977
2017-10-27T21:42:54
2017-10-27T21:42:54
108,598,248
0
0
null
null
null
null
UTF-8
Python
false
false
2,039
py
from django.shortcuts import render, HttpResponse, redirect from django.core.urlresolvers import reverse from .models import User, Trip from django.contrib import messages def index(request): return render(request, "login.html") def register(request): result = User.objects.validate_registration(request.POST) ...
[ "johngore@Johns-MBP.localdomain" ]
johngore@Johns-MBP.localdomain
0eb80b629c8082667ee1021a152d0bbb55b1e6ab
617bbfa2356f9a744f400014635675b95afcb157
/Rover/RaspberryPi/picamsnap.py
a163b29b914800e4d1f71d3217a522e4a7c7b353
[]
no_license
UnibotUS/ERC2016
08651a691b5049e4daee9ef4815efc54ee18e573
d2d882b3e17df711898306f233360d7770d2bcee
refs/heads/master
2020-09-20T20:28:19.728366
2016-09-06T14:52:26
2016-09-06T14:52:26
67,366,661
0
0
null
null
null
null
UTF-8
Python
false
false
1,698
py
#!/usr/bin/python # -*- coding: utf-8 -*- """ Created on Wed Aug 31 08:17:45 2016 @author: Mikołaj Karawacki This script is called via RPyC by the EV3 """ from picamera import PiCamera from time import sleep, gmtime, strftime import os camera = PiCamera() camera.hflip=True#horizontal flip enabled camera.vflip=True#ve...
[ "mapkarawacki@gmail.com" ]
mapkarawacki@gmail.com
90437a8fd5c457854c244eb20b48ded10affbfd3
dd791d36d8b6be64d8eb0ea21ce62aa12ab1a0ea
/venv/bin/f2py3
da57a6823c08fa4ee6e2256404463a54cf263711
[]
no_license
matkwi/PythonSPLA
c7fb9f1753887a616778b8d8b96395d89e99e265
8b51b89533983108ffa6db69eeecfb32069b3b88
refs/heads/main
2023-03-11T20:37:30.125602
2021-02-28T16:17:08
2021-02-28T16:17:08
322,438,686
0
0
null
null
null
null
UTF-8
Python
false
false
260
#!/Users/matkwi/PycharmProjects/sieciNeuronowe/venv/bin/python # -*- coding: utf-8 -*- import re import sys from numpy.f2py.f2py2e import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "matkwi@pc23.home" ]
matkwi@pc23.home
870b89779a326a8ad7f5d0a8ae8f9736e854516a
46646aaeecc313471ce5b9fbc3ffe98fa2779079
/tests/test_pitch_shift.py
0f638710fbd8cddecf6cff6c5bf78c9a7b9ef8f0
[ "MIT", "Python-2.0" ]
permissive
psgainz/audiomentations
c57840cc9516564cff00a9db64e8e92807024bfb
a5512965bb59995cbad6a3e5a5994dfaba7185d0
refs/heads/master
2020-08-23T01:30:44.289468
2019-09-22T13:48:07
2019-09-22T13:48:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
587
py
import unittest import numpy as np from audiomentations.augmentations.transforms import PitchShift from audiomentations.core.composition import Compose class TestPitchShift(unittest.TestCase): def test_dynamic_length(self): samples = np.zeros((512,), dtype=np.float32) sample_rate = 16000 ...
[ "iver56@hotmail.com" ]
iver56@hotmail.com
71c68d744e4bcf29dbd00664de62bbc139049737
e041ec4dc727b41d7928ae4523382aed8bf3fd5f
/src/commands/__init__.py
d635aad241edb536d868b211d2cb6269bf1ca078
[ "MIT" ]
permissive
benluks/NEA-Your-Personal-Speaking-Clock
976653641a8d2e5d541705ae04578850ccc62cf9
b6dab6713db0804eaeaa704549c1e094112330aa
refs/heads/main
2023-08-26T15:07:41.327095
2021-11-12T18:28:51
2021-11-12T18:28:51
418,568,418
0
0
null
null
null
null
UTF-8
Python
false
false
34
py
from .commands import commands_map
[ "70067243+benluks@users.noreply.github.com" ]
70067243+benluks@users.noreply.github.com
9ac6a3833f40c5084192e54f33ca2514da3fabd4
6993c979a57a7300523b1737ea246fcc01db4464
/refgenieserver/server_builder.py
087feda8881aeae6895db69dfe6f57a318f91260
[ "BSD-2-Clause" ]
permissive
refgenie/software_deploy_demo
96502ac415a387022fa2cd90431ea20c7341a407
d3144edd02c8f623cddf0aca1a92d0aece009f57
refs/heads/master
2022-11-06T12:35:52.308881
2020-06-18T18:45:49
2020-06-18T18:45:49
273,245,044
0
0
null
null
null
null
UTF-8
Python
false
false
18,334
py
import sys import logging from glob import glob from subprocess import run from refgenconf import RefGenConf from refgenconf.exceptions import RefgenconfError, ConfigNotCompliantError, \ GenomeConfigFormatError, MissingConfigDataError from ubiquerg import checksum, size, is_command_callable, parse_registry_path f...
[ "nsheff@users.noreply.github.com" ]
nsheff@users.noreply.github.com
68ae66a703a4ce249787e890b3b7cb8b806b0787
ce14e0e8d81b9a4b66551ae1c8f63fd0a0f84c39
/gestures_Tello.py
6834fc3e6e07a801fee4bcefac66d066f090b32c
[ "MIT" ]
permissive
ilkatsanis/Tello-Control-With-Arduino-Nano33BLE
bc16122c05ff162fa318d1320dc356c704255860
7a57be7370f626d951852895ec7e849a6e256235
refs/heads/main
2023-08-07T07:25:43.954192
2021-10-06T12:22:39
2021-10-06T12:22:39
411,599,586
1
0
null
null
null
null
UTF-8
Python
false
false
2,032
py
# import the necessary packages from djitellopy import Tello import time import serial """ The detected gestures need to be read from microcontroller's serial output to the laptop and then pass them to drone """ ser = serial.Serial('/dev/cu.usbmodem1101') # declare the serial port ser_bytes = ser.readline() # read fro...
[ "noreply@github.com" ]
noreply@github.com
1d20ecc0c8aa04d563ce38ea93e6531100c524ed
db94cc86464757f77367f7fd52f08727fa2c6d07
/resource-manager/src/__init__.py
35e5c4547074b7a1f664944bf3a65396646a53d6
[]
no_license
kasugare/test
c60925551a3026089cd0e86f16a0751ff7c527b5
9e271ce7a1e414e5d06057635ad1d255698a347e
refs/heads/master
2021-09-06T10:01:06.381306
2018-02-05T09:02:48
2018-02-05T09:02:48
106,766,259
1
1
null
null
null
null
UTF-8
Python
false
false
87
py
#!/usr/bin/env python # -*- coding: utf-8 -*- __all__ = ['common', 'resource_manager']
[ "406548@406548-MacBook-Pro.local" ]
406548@406548-MacBook-Pro.local
a2c0a5e09f476c6720c11533da2aa0ad0003a5d0
52a2aadfe846888d57003bfc0cd8f2f41899632a
/dweather_client/gridded_datasets.py
ed8929205cd31c6c4c1d3c4d18c14d4a58b5bc85
[]
no_license
0xO0O0/dWeather-Python-Client
b45483429fde09d75a699f80e387a834defcb435
441fc49e1dd316bcb7236d64a5232ed622e95b84
refs/heads/master
2023-09-05T13:40:50.463698
2021-09-29T21:18:55
2021-09-29T21:18:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,725
py
from dweather_client.ipfs_queries import SimpleGriddedDataset, RtmaGriddedDataset, Era5LandWind, PrismGriddedDataset, Vhi """ Module containing the leaf classes for the gridded dataset inheritance chain. Do not add non-leaf classes to this file, as it will cause the dict built from this module to break "Unused" `Vhi` ...
[ "schechter.evan@gmail.com" ]
schechter.evan@gmail.com
41bfa16dc61c56da11b0ac61055d62943d6efcf4
76b1e713a3057e6f08abc116814af00891dbc2ef
/store/models/product.py
c85acce04472c75ceaee1e079948a3a94d9b3407
[]
no_license
Jay28497/Django-Ecommerce-Website
ed17f6536fe4be4d6db658c46999bb05ec22d3f8
2697d376c8ff2720720183c0e475b188ff7b0e33
refs/heads/master
2023-03-31T15:20:56.008251
2021-04-10T12:21:08
2021-04-10T12:21:08
355,427,413
1
0
null
null
null
null
UTF-8
Python
false
false
878
py
from django.db import models from .category import Category class Product(models.Model): name = models.CharField(max_length=50) price = models.IntegerField(default=0) category = models.ForeignKey(Category, on_delete=models.CASCADE, default=1) description = models.CharField(max_length=200, default='') ...
[ "jaykanjariya28@gmail.com" ]
jaykanjariya28@gmail.com