blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
220 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
9dea79ebe2acef41d229a77657e6b1cf232caf43
5215715a4cbcf9ce065b1542db224a2b1997c760
/T3/t3.py
5523731288ed9eb2d6e7a4f542b5a35d71a18b89
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
Cgipson06/reddit
02deac29ead779890e42d48400d2233ce888e5a0
deb1da398840bbd311a79eec25ef2a8b5a8ed5b1
refs/heads/master
2021-01-08T23:19:55.245559
2014-12-28T20:52:26
2014-12-28T20:52:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,034
py
#/u/GoldenSights import praw import time import sqlite3 import datetime import random USERAGENT = """ /u/GoldenSights T3 data collection: Gathering Submission data for statistical analysis. More info at https://github.com/voussoir/reddit/tree/master/T3 """ r = praw.Reddit(USERAGENT) print('Connected to reddit.') sql ...
[ "edalool@yahoo.com" ]
edalool@yahoo.com
668403015d3558f567d49b9ab11c48be8202d6a0
69aaa71852bde5b2a4d297b6814ca0bf607053c8
/jarvis.py
6d46a86f112682ac4f06fe08a9938d84af0c382b
[]
no_license
sckzy/JarvisAI
cf36bf827a06faeb05a2a26d4f3a21dfd0eaa44c
147b62cb2002b099865c10b2be023e0147fd96a1
refs/heads/master
2023-01-22T09:34:33.070981
2020-12-03T04:39:40
2020-12-03T04:39:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,217
py
import pyttsx3 import datetime import speech_recognition as sr import wikipedia import webbrowser import os import smtplib def wishMe(): hour = int(datetime.datetime.now().hour) if hour >= 0 and hour < 12: speak("Good Morning!") elif hour >= 12 and hour < 18: speak("Good Af...
[ "noreply@github.com" ]
sckzy.noreply@github.com
4b26d689090b162798e9ad7184c3ae1a58f20af4
67113383dcc2a9484a82cfc6de3e1546d1000a13
/accounts/filter.py
da704192a0f60f8d439fdbe3b7eee7521b809bba
[]
no_license
Yair-BD/Customer-Managment
4ef703f6562b88875086425d8509ba8aa363c0cd
a92fb7341d5383da2e8f15818133b955174ce05b
refs/heads/master
2023-06-26T07:16:41.855959
2021-07-27T11:48:06
2021-07-27T11:48:06
382,893,936
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
import django_filters from .models import * from django_filters import DateFilter, CharFilter class OrderFilter(django_filters.FilterSet): start_date = DateFilter(field_name='date_create', lookup_expr='gte') end_date = DateFilter(field_name='date_create', lookup_expr='lte') note = CharFilter(field_name='no...
[ "79565335+Yair-BD@users.noreply.github.com" ]
79565335+Yair-BD@users.noreply.github.com
74c507fea182bc755c7aeb7685aba03bf3b95d65
29592ead4965e1152a1558351b3c60005438c85f
/v0.97/dc/models/batches.py
2969e64c06b0fa446afe5c7ef5bdd6d41c5d9319
[ "MIT" ]
permissive
iaiting/Flask-and-pywebview-followup-application-gui
5e489eda889c6d02ffb8efd40098a380dedd0558
b665334403b4a8471b5f28054ee2dc7adda7d9fc
refs/heads/master
2020-04-04T11:30:57.294114
2018-10-29T09:14:34
2018-10-29T09:14:34
155,893,938
0
1
MIT
2018-11-02T16:36:19
2018-11-02T16:36:18
null
UTF-8
Python
false
false
13,049
py
import os import re import pandas as pd from lxml import etree from dc.utils.commun import Commun from dc.utils.dbwrap import Dbwrap from dc.utils.folders import Folders from dc.models.users import User class Batches: func = Commun() conf = func.config_info() db = Dbwrap(conf["path_to_datab...
[ "noreply@github.com" ]
iaiting.noreply@github.com
09e6ba57f63d8ca9d88d39ff34881ab5d048bc96
e823bc36af457f229f6879d6e6a3ef6247c129aa
/virtualenv/Lib/site-packages/pyasn1_modules/rfc2560.py
e41994abf64813e9eb5f70b1dd1b03519a320ed1
[ "MIT" ]
permissive
William-An/DFB_Final
e772fa979c41f2f83a4bf657cde499456215fb3b
49a9244c98116574676992ebecd1d9435e1d5b1e
refs/heads/master
2022-11-07T15:47:36.189057
2017-07-22T01:01:37
2017-07-22T01:01:43
97,426,562
1
1
MIT
2022-10-15T02:45:57
2017-07-17T02:21:42
Python
UTF-8
Python
false
false
8,251
py
# # This file is part of pyasn1-modules software. # # Copyright (c) 2005-2017, Ilya Etingof <etingof@gmail.com> # License: http://pyasn1.sf.net/license.html # # OCSP request/response syntax # # Derived from a minimal OCSP library (RFC2560) code written by # Bud P. Bruegger <bud@ancitel.it> # Copyright: Ancitel, S.p.a, ...
[ "China_Aisa@live.com" ]
China_Aisa@live.com
148610beec78d8585a9828b6d141e4d2459acfd4
77f47db313b4f018d64f0f5095ac10ae12655507
/campaign/urls.py
48cbb5118bac3376b0b1526b54854552694d9177
[]
no_license
idlivada/campaign
e03ef58cb9fac05513734625ce2b94d4a430da4f
d85ad505c420b71ca4bf2de754b53e8ec0d7629e
refs/heads/master
2020-04-16T16:40:49.666387
2017-06-27T12:49:58
2017-06-27T12:49:58
19,208,632
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
from django.conf.urls import patterns, include, url from django.conf.urls.static import static from django.conf import settings from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), url(r'^^$', 'core.views.home', name='home'), url(r'^loc...
[ "idlivada@gmail.com" ]
idlivada@gmail.com
219af0b72ccdda85c00c48773350f2e417059536
a9d079617071855dfbd183cac5a9588ab6e30d84
/models/test_model.py
791316b6416c23091bf5fa7b3878ea7ab5ee4ec2
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
yunyanxing/pairwise_xray_augmentation
1ecb1a1114688b307673e5346a27f6300dd2874c
057927cf247b3854e311fbdf52b74001175915d8
refs/heads/master
2020-08-09T13:32:21.899166
2020-01-22T00:58:49
2020-01-22T00:58:49
214,098,075
2
0
null
null
null
null
UTF-8
Python
false
false
1,726
py
from .base_model import BaseModel from . import networks from .cycle_gan_model import CycleGANModel class TestModel(BaseModel): def name(self): return 'TestModel' @staticmethod def modify_commandline_options(parser, is_train=True): assert not is_train, 'TestModel cannot be used in train mode' parser = Cycle...
[ "yunyan.xing@monash.edu" ]
yunyan.xing@monash.edu
ca99b5cf3ba81bd26679882f2f553c50dc8dabe1
eb40dce4039d528b9cd06dbeda75da09d09d7fc5
/need_install/Django-1.8.17/django/db/models/fields/__init__.py
8bba4cb3216e4eef1a0fcb5822bd70cfc3c685c8
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
MulticsYin/MulticsSH
39b62189446787c7f0f037b1640c9c780bd1dddd
5837a0bff0e7da0e8535e4e0b31ef6baf24274b4
refs/heads/master
2021-08-28T07:53:51.759679
2017-12-11T15:31:03
2017-12-11T15:31:03
82,428,902
4
2
null
null
null
null
UTF-8
Python
false
false
89,179
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import collections import copy import datetime import decimal import math import uuid import warnings from base64 import b64decode, b64encode from itertools import tee from django.apps import apps from django.db import connection from django.db.models.lo...
[ "multics_luo@163.com" ]
multics_luo@163.com
8a5602d811f96072614c0fb9de6a9ce93ee0dc75
53095b893d0a80614aa43ab5a50b07d929fa4cf8
/HRC_archive/LETG/extract_pha_file.py
1cc120ec5884157a1a500717ef8a97b01372c3bf
[]
no_license
chandra-mta/HRC
e4cd297373e5e8f6dfb0e014275f5cee82b326b6
aafb1f552394efd3367635a968f8df1e26b6f1c8
refs/heads/main
2021-10-23T23:06:45.964300
2021-10-21T10:10:09
2021-10-21T10:10:09
154,149,839
0
0
null
null
null
null
UTF-8
Python
false
false
10,854
py
#!/usr/bin/env /data/mta/Script/Python3.8/envs/ska3-shiny/bin/python ######################################################################################### # # # extract_pha_file.py: create a pha2 file and a tg directory for LE...
[ "bspitzbart@cfa.harvard.edu" ]
bspitzbart@cfa.harvard.edu
bb146c14c39b06484ad348ceeed461644b34d13c
df3853b41ed05d86f5bcd992fcc265f637c67784
/graph/blini1.py
a90284faa70677f0bfa9cbcff1a51bda97d6ec7c
[]
no_license
KseniaMIPT/Adamasta
6ab0121519581dbbbf6ae788d1da85f545f718d1
e91c34c80834c3f4bf176bc4bf6bf790f9f72ca3
refs/heads/master
2021-01-10T16:48:31.141709
2016-11-23T21:02:25
2016-11-23T21:02:25
43,350,507
1
0
null
null
null
null
UTF-8
Python
false
false
100
py
def check(): for i in range(5): yield i+1 print(check()) for i in check(): print(i)
[ "ksenia22.11@yandex.ru" ]
ksenia22.11@yandex.ru
ebc550669115d5534bc61b8f5cd01e7b0b38ed40
c32d6a87858139a66dde152097e333eee92a08de
/csrv/model/actions/play_event_action.py
a57f67402f82243d5b293609aa208f7bb54e38fa
[ "Apache-2.0" ]
permissive
cpjolicoeur/CentralServer
79b8b5a3a3ed4aa29167ecdcb4e40983a1d5e598
e377c65d8f3adf5a2d3273acd4f459be697aea56
refs/heads/master
2020-12-29T00:12:31.245099
2014-03-08T07:33:38
2014-03-08T07:33:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
"""Base actions for the players to take.""" from csrv.model.actions import action from csrv.model import cost from csrv.model import errors from csrv.model import events from csrv.model import game_object from csrv.model import parameters class PlayEventAction(action.Action): DESCRIPTION = '[click]: Play an event...
[ "mrroach@okmaybe.com" ]
mrroach@okmaybe.com
27bb5b5457ce8249495d9fcc5263dd01e827aed6
e7d2c2c7fbcffc3b4e8976f01b354f794fc3b71d
/bmga/utils/formatting.py
6ab11a6dfcbe02e87b651ba6371989e3ca2c1403
[ "BSD-3-Clause" ]
permissive
vituocgia/boxme-api
41da50fcec12089e59a29786b3bcff6c9b169d99
10c8054a223f124a85e70669d17313e3a2991226
refs/heads/master
2020-03-08T19:18:21.829490
2018-04-06T09:11:30
2018-04-06T09:11:30
128,347,542
0
0
null
2018-04-27T04:43:38
2018-04-06T05:24:05
Python
UTF-8
Python
false
false
822
py
from __future__ import unicode_literals from django.utils import dateformat from bmga.utils.timezone import make_naive, aware_datetime from dateutil.parser import parse as mk_datetime # flake8: noqa def format_datetime(dt): """ RFC 2822 datetime formatter """ return dateformat.format(make_naive(dt...
[ "dotiendiep@gmail.com" ]
dotiendiep@gmail.com
a9f7a5d7afa2ce9694901a23dc8266394a8b4b54
1c6283303ceb883add8de4ee07c5ffcfc2e93fab
/Jinja2/lib/python3.7/site-packages/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/iptvrange_b15e81483d5be2cf30e042843e79b969.py
1574bc8306f8407f267c617e318f6311dba42fcd
[]
no_license
pdobrinskiy/devcore
0f5b3dfc2f3bf1e44abd716f008a01c443e14f18
580c7df6f5db8c118990cf01bc2b986285b9718b
refs/heads/main
2023-07-29T20:28:49.035475
2021-09-14T10:02:16
2021-09-14T10:02:16
405,919,390
0
0
null
null
null
null
UTF-8
Python
false
false
37,452
py
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, ...
[ "pdobrinskiy@yahoo.com" ]
pdobrinskiy@yahoo.com
89b88fec9ac2985d22a7fca2da8155088f1e5567
219389652f57204b5d942ae8cdb7647650cc495f
/src/metricas.py
a92b9e13999190a65cc88303917aeaa402cc4b70
[]
no_license
vsantsal/DesafioFolhaSistemaEstelarPython
dcc5bfb519ab1af3d022c642320511ef8a143115
19fa1e2102ec2348b2d5b7319efb2fd4efb66ddc
refs/heads/master
2023-07-09T12:56:00.349140
2021-08-19T00:04:47
2021-08-19T00:04:47
267,566,330
0
0
null
null
null
null
UTF-8
Python
false
false
1,661
py
#!/usr/bin/env python3.9 from functools import reduce from operator import mul from typing import ( Any, Dict, List, Protocol, TypeVar, ) """ Classe responsável em que se a regra de negócio RN1 para descobrir o destino da espaçonave está definida RN1:O local de chegada pode ser conhecido sabendo ...
[ "vsantsal@gmail.com" ]
vsantsal@gmail.com
a4016f8a6330e19ed8a96f4454f25d67f80f281e
b8ec3e360f091240304afcbebb0860730ac3d835
/mpu6050.py
c18ac2caf048a629782f454ffde99e9326f409a3
[]
no_license
brbza/motion
89a8a9a2ede6906ecb9bf25edd9b90d2c4cd94cf
d903e346e941e5d3e96363a97eaf27fd0ba04019
refs/heads/master
2023-05-11T15:03:43.891032
2019-06-24T08:05:20
2019-06-24T08:05:20
193,440,400
0
0
null
2023-05-01T20:35:16
2019-06-24T05:35:16
Python
UTF-8
Python
false
false
3,946
py
import machine class MPU6050(object): SELF_TEST_X = 0x0D SELF_TEST_Y = 0x0E SELF_TEST_Z = 0x0F SELF_TEST_A = 0x10 SMPLRT_DIV = 0x19 CONFIG = 0x1A GYRO_CONFIG = 0x1B ACCEL_CONFIG = 0x1C FIFO_EN = 0x23 I2C_MST_CTRL = 0x24 I2C_SLV0_ADDR = 0x25 I2C_SLV0_REG = 0x26 I2C_S...
[ "carlos.barboza@gmail.com" ]
carlos.barboza@gmail.com
de74d6e820b635b6bbf1e43e970cb33fe5450482
0bfb74494054dc9e0774618687b5d234e6db6a92
/ch12/gen_throw.py
fa2bf2ecf95d8d411c7a56100871ebf2f7390a2c
[]
no_license
FSSlc/AdvancePython
dddee32524cf1071a36eb4316efc2b53185645e3
61ed98f951fc877cc01e43a50488fc91b775c0f0
refs/heads/master
2022-11-06T10:53:07.812770
2020-06-25T23:43:24
2020-06-25T23:43:24
273,885,468
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
#!/usr/bin/env python # coding: utf-8 def gen_func(): try: yield "user" except Exception as e: pass yield 2 yield 3 return 'user' if __name__ == '__main__': gen = gen_func() print(next(gen)) gen.throw(Exception, "download error") print(next(gen)) gen.throw(Ex...
[ "fsslc235@gmail.com" ]
fsslc235@gmail.com
3f1407aeca182aa219f12783beac7371b4dd6ad1
3c3df48ff6239c5387847200c25d67c8c1b59491
/alien_invasion.py
e53683fdd6c8210596db0118bfe98acfcdf4cf9c
[]
no_license
sdkcouto/coronapython-game
cf8930721883f9ec7786d61959989bcdf2a381d0
5e11f35d6ae8035d640d4e768432074f7a80f427
refs/heads/master
2022-11-19T03:47:27.375952
2020-07-21T18:44:25
2020-07-21T18:44:25
278,443,053
0
0
null
null
null
null
UTF-8
Python
false
false
1,208
py
import pygame from pygame.sprite import Group from settings import Settings from game_stats import GameStats from scoreboard import Scoreboard from button import Button from ship import Ship from alien import Alien import game_functions as gf def run_game(): pygame.init() ai_settings = Settings() s...
[ "matheuscouto.eng@gmail.com" ]
matheuscouto.eng@gmail.com
c2f5d321adc23f137909c4b7b15ea48ad477e908
d9874a4d69027dd401314828a9d19e686a62b31d
/stamps.py
799b1f7b60be0575dc81351a41ef953ca79ab61a
[]
no_license
09o/ProgrammingBasis
e9612b7ac59aadf6cf406dbbb7bb42c5d9502e42
6fdd6b69653cc6d89b6841883e6795191a742847
refs/heads/master
2020-04-03T13:03:30.455309
2018-11-14T08:44:54
2018-11-14T08:44:54
155,272,452
0
0
null
null
null
null
UTF-8
Python
false
false
1,270
py
# Define a procedure, stamps, which takes as its input a positive integer in # pence and returns the number of 5p, 2p and 1p stamps (p is pence) required # to make up that value. The return value should be a tuple of three numbers # (that is, your return statement should be followed by the number of 5p, # the number ...
[ "igsober@gmail.com" ]
igsober@gmail.com
76d236d6b4d1a10f3a74eee09e3478109205972e
830db802b4cce9d4b5a34c8351caf6573bf5f385
/basic_functions.py
2da3b0a3d1d10dea785c7a1b0ddb5a0be4d7addb
[]
no_license
317002/Normal-Modes
856e33dbe103c45ab17e9c0c417a7f8bbd64aed8
dc599e1c4abc035bae8abdced600119ec42fc7df
refs/heads/master
2020-08-31T22:59:41.116273
2019-11-12T01:46:38
2019-11-12T01:46:38
218,807,505
0
0
null
null
null
null
UTF-8
Python
false
false
1,471
py
# -*- coding: utf-8 -*- """ Created on Fri Nov 8 14:38:11 2019 @author: Nathan Richard """ import numpy as np from math import floor def gen_k(n): index = [] ind = [] for i in range(0,n+2): ind += [0] for i in range(0,n+2): index += [ind] for i in range(0,len(index...
[ "ndr1005@wildcats.unh.edu" ]
ndr1005@wildcats.unh.edu
7728d77ed32221009bb1df33c077dfc8ef3d3b5f
8dcd3ee098b4f5b80879c37a62292f42f6b2ae17
/venv/Lib/site-packages/pandas/tests/frame/test_api.py
1cfbd5961177ae6b74b0110ac71414299c5047fe
[]
no_license
GregVargas1999/InfinityAreaInfo
53fdfefc11c4af8f5d2b8f511f7461d11a3f7533
2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a
refs/heads/master
2022-12-01T20:26:05.388878
2020-08-11T18:37:05
2020-08-11T18:37:05
286,821,452
0
0
null
null
null
null
UTF-8
Python
false
false
18,965
py
import datetime import pydoc from copy import deepcopy import numpy as np import pandas as pd import pandas._testing as tm import pytest from pandas import Categorical, DataFrame, Series, compat, date_range, timedelta_range from pandas.compat import PY37 from pandas.util._test_decorators import async_mark class Test...
[ "44142880+GregVargas1999@users.noreply.github.com" ]
44142880+GregVargas1999@users.noreply.github.com
8a7e729fa2cc60c00b630bcd1e18b05703782c80
88d33f643f0116f0557a60d409183f66f528cb53
/blogs/migrations/0043_auto_20190603_2054.py
ea9de7e0b4c9625696d3006dd57c7d5843a0b532
[ "MIT" ]
permissive
vikrantgoutam17/my_blogs
13e8e531a35173fbb22c07456b72444ba8391ee3
64b48eb8c466f46ac21e7ee137bbe8033f6a28ab
refs/heads/master
2022-04-15T17:28:48.982593
2020-04-11T07:46:09
2020-04-11T07:46:09
254,733,039
0
0
null
null
null
null
UTF-8
Python
false
false
1,059
py
# Generated by Django 2.2.1 on 2019-06-03 15:24 import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blogs', ...
[ "vikrantgoutam17@gmail.com" ]
vikrantgoutam17@gmail.com
d57deec55818ba052668da21c0a7d21e7d37f27c
3365209124a099d96b7397012865a544c60fbab3
/PyPoll/PyPoll_IGR.py
3f65ff292c2d4a187c26ced1618990ca64bd6531
[]
no_license
igr1993/python-challenge
317f651c154edc862907998e543e11ceaab6f07e
857977490b622c6f7bf4edf0e0f0065c91149959
refs/heads/main
2023-03-07T06:04:02.207958
2021-02-21T01:41:07
2021-02-21T01:41:07
340,744,301
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
#lets go PyPoll! import os import csv candidates = {} election_csv = os.path.join('.','Resources','election_data.csv') with open(election_csv, 'r') as csvfile: csvreader = csv.reader(csvfile, delimiter=',') header = next(csvreader) for row in csvreader: if row[2] in candidates.keys(): ...
[ "igr@Ians-MacBook-Pro.local" ]
igr@Ians-MacBook-Pro.local
d62cb9ed15fdf25fbcf76191f5229784b9ee13e5
cf3ef8f3eca858bd3c64ba6159a2ba7cdb1722ad
/studygroups/views/organizer.py
06e748fc35dd2c27b9b26843e6b0676e4ae6d0d6
[]
no_license
alvarmaciel/learning-circles
2ff956dcbe0b5a42f64036c33613644115063a8d
3ac444fd6f5a81f655face733e7d41786e085cd4
refs/heads/master
2021-01-11T00:45:04.513019
2016-10-05T14:13:16
2016-10-05T14:13:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,094
py
import datetime from django.shortcuts import render, render_to_response, get_object_or_404 from django.template import RequestContext from django.template.loader import render_to_string from django.core.urlresolvers import reverse, reverse_lazy from django.contrib.auth.decorators import login_required from django.cont...
[ "dirkcuys@gmail.com" ]
dirkcuys@gmail.com
dede7897aa89f5106650a0cc96628e0b6108d67e
9ee537601cbca4be70870d60910ce808da4f766e
/PROJECT-WORKING VERSION-issue.py
bcf71964dd23b6d934705ca27ceb5766335b8449
[]
no_license
sanjanab003/Library-Management
063b98e98d50bbd16e358329b7683707561965c6
eafcbc7814a7933c6243ef6cec02b803c4810a2d
refs/heads/master
2020-08-01T01:51:46.160900
2019-10-20T04:48:08
2019-10-20T04:48:08
210,818,939
0
1
null
null
null
null
UTF-8
Python
false
false
3,914
py
c=0 areMem=() c1=0 t=() u="" p="" q="" b=0 a=0 user="" pas="" z=0 t1=() import mysql.connector mydb = mysql.connector.connect( host="localhost", user="root", passwd="0025", database="library" ) mycursor = mydb.cursor() def regName(): print("Please register") global u ...
[ "noreply@github.com" ]
sanjanab003.noreply@github.com
b23b322eb6d1bfaf868d64b5b3e0f1fc530701a6
d783f5e6b02d91990e30b7e9edb41b9725f540cf
/intro-cs/intro-to-programming/exercises/ex_06_02.py
f7ca5b3c1d5f30d22db7facaa3d2df4d7888af4c
[ "MIT" ]
permissive
solanyn/cs-courses
1c4ac7ea146b816731f7016c988423a8a5c7d180
db10f8d9ad9a4f00a661c58eed7d2423ff9871bc
refs/heads/main
2023-07-05T16:51:49.384749
2021-08-06T04:01:38
2021-08-06T04:01:38
332,115,999
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
"""Exercise 2: Given that fruit is a string, what does fruit[:] mean?""" # fruit[:] means all characters in the sequence fruit
[ "andrewchen1520@gmail.com" ]
andrewchen1520@gmail.com
29fb1dc505940b341e55979260d1600d60d2fd10
6fad4c35342a27bd9882b3a55e99da461df8f6c3
/scripts/token_check.py
81bcb49afee511a7d3b182e99de819cba6c8a4f2
[ "MIT" ]
permissive
tonychew1986/erc20-token
137bdb06dbbd275165cf6f9c6703b6927c9c4cb3
dd206c2e2282f0fce57c4da05111210102bbfbde
refs/heads/main
2023-03-28T01:12:14.142687
2021-03-28T08:54:10
2021-03-28T08:54:10
352,282,111
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
#!/usr/bin/python3 from brownie import Token, accounts #etherscan api #Q9JWR2ZC58AGT4MTM7CEFI8UD8IH3VQ2WS def main(): # user_account = accounts.load('xxx_shared_1') # user_account = accounts.load('xxx_shared_mainnet') token_contract = Token.at("0xe63d6B308BCe0F6193AeC6b7E6eBa005f41e36AB") # us...
[ "tonychew1986@gmail.com" ]
tonychew1986@gmail.com
814949dee15c29811a0f3cb2131cabed7e0f87f0
52b17383556c615f6e9ea8888efbfc3c0bfbe726
/tests/__init__.py
2aac0df30f37c2d7f9d7ec10bada80f300ecf814
[ "Apache-2.0" ]
permissive
nerdfiles/bloom-filter
725f164bd5b99339f128d34f6b355f4efdbdc0f0
affd787cec3804fb806146eb464f77f37ed5b85e
refs/heads/master
2021-09-15T03:16:02.775833
2018-05-25T00:02:02
2018-05-25T00:02:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
#-----------------------------------------------------------------------------# # __init__.py # # # # Copyright (c) 2017-2018, Rajiv Bakulesh Shah, original author. # ...
[ "noreply@github.com" ]
nerdfiles.noreply@github.com
fe36ebadacdc7dccccf286e4f14226a17838d061
e5b4d9e3240b3302db47d770260dd1bcff93d5ef
/BatchShell/batchshell/batchrun.py
e7b2149a60d35511889eb259d80525464d279240
[ "MIT" ]
permissive
fczj/python-S14
a28f255b13c15f17d632cf920bca53ed5035752a
53a1350dae7c797134463c8c42edae44bb5427cb
refs/heads/master
2021-01-02T09:23:48.195642
2017-10-30T12:35:57
2017-10-30T12:35:57
99,205,729
0
0
null
null
null
null
UTF-8
Python
false
false
3,829
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 17-8-26 下午10:08 # @Author : xiongzhibiao # @Email : 158349411@qqcom # @File : batchrun.py # @Software: PyCharm import sys sys.path.append('/home/xiongzhibiao/github/python-S14/Common/common') import paramiko from multiprocessing import Process,Pool,Lock...
[ "158349411@qq.com" ]
158349411@qq.com
3ffdef70c90547fe0a5a46765f97abf944b606a2
2ebbeef48fc7094f2089c5a82119d02af65a82dc
/codegolf/temperatures/solution.py
1131f415d0ff594a97c6a114b11d5ce49eea0708
[]
no_license
marty-Wallace/CodinGame
b93812c253795a3fba8ecc3bfa01f6f6b5047d26
6eeb5b5d1cff15c475cc2a7b6b8bcac68367b9fd
refs/heads/master
2020-07-01T22:07:44.289785
2017-03-01T04:59:45
2017-03-01T04:59:45
74,251,457
1
0
null
null
null
null
UTF-8
Python
false
false
75
py
input() print(min(map(int,input().split()),key=lambda x:x*x-x/9,default=0))
[ "martin.v.wallace@ieee.org" ]
martin.v.wallace@ieee.org
e16ebb8614032c72852153165835f46bd16e6965
787407f3afc659a75915352368374670c265134f
/3dcnn_gwak/network.py
fa19e211c452b485ec440f4b9c7fd24b26478e2a
[]
no_license
swilso421/shiny-barnacle
39c189d380488718cb56084225be705c7dce52fb
01285a82fefa32f6ec06cd299c8bb994d593ab10
refs/heads/master
2020-03-18T04:09:26.326083
2018-07-18T20:29:17
2018-07-18T20:29:17
134,272,733
0
0
null
null
null
null
UTF-8
Python
false
false
4,445
py
import tensorflow as tf NUM_CLASSES = 18 def CNN_3D(input_node, stddev = 0.03, name = '3DCNN'): filter1 = (3, 3, 3, 1, 32) filter2 = (3, 3, 3, 32, 64) filter3 = (3, 3, 3, 64, 128) filter4 = (3, 3, 3, 128, 256) weights1 = tf.Variable(tf.truncated_normal(filter1, stddev = stddev), name = name ...
[ "swilso421@gmail.com" ]
swilso421@gmail.com
ae79c1df65cf49985b7a5950ad1c6f7c40f0cad6
3c80d771e2ca592a54db7b7a07e1d75180cf423d
/TestFolder/TestClasses.py
d033c998f4426f1cf07f305b681d683ff6e0310b
[]
no_license
TobiasTiedtke/Projekt_dsd_gui
4873c759739f1011fd473eb69d1426225f123d21
83c02efd8776353db003f23404b25dc52df8bb33
refs/heads/master
2020-08-26T16:49:35.754859
2020-01-29T10:21:43
2020-01-29T10:21:43
217,078,904
0
0
null
2020-01-29T13:05:13
2019-10-23T14:32:50
Python
UTF-8
Python
false
false
436
py
import os, sys def SingleBrowse(): #browsing for a folder and changing it to a string filePath = "/informatik2/students/home/6kornell/Schreibtisch/bitbots_behavior-master/bitbots_head_behavior/src/bitbots_head_behavior/actions/look_at.py" f = open(filePath, 'r') for line in f: line = str(line) ...
[ "fwwx652@informatik.uni-hamburg.de" ]
fwwx652@informatik.uni-hamburg.de
03fbeb1450ccc44bd26fc126ce64cfd378980fa0
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_117/1246.py
70e284873ba26f9f9d0eb663271fb9c4b2097cdc
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,615
py
__author__ = 'joranvar' __problem__ = 'B' class Field(object): def __init__(self, data, height, width): self.data = data self.height = height self.width = width def is_cuttable(self): max_x = [max([self.data[y][x] for x in range(self.width)]) for y in range(self.heigh...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
7617b75c7a76b5009e6dca9b3e54dd53393f66d3
b76876afc024f33491c0e9838366eb8934ae1e65
/blog/tests.py
8aae2a6a15cdd63918dad96cb0ab16cb648e644d
[]
no_license
wiremine/djang-modelfun
03fb2ffc68a01822c7e767f9e51913be938d8a8f
a0188b53b8355839b78306ab9a8d7058cd00bafd
refs/heads/master
2020-05-16T03:37:14.994587
2011-01-20T03:30:21
2011-01-20T03:30:21
977,476
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
from django.test import TestCase from django.test.client import Client from django.core import mail # mail.outbox will contain emails during tests from django.http import HttpResponse from django.core.urlresolvers import clear_url_caches from django.conf import settings class ControllerTestCase(TestCase): def set...
[ "wiremine@gmail.com" ]
wiremine@gmail.com
17f9e6c0e56e8413c26b56d50634d33d99988d02
0dcb743d6409478d01706f48616df6a1c089c0f0
/Project/code/loadbalancer-server.py
097411dbfc2d4e9664c83cfd5f70331a2709c1ef
[]
no_license
marcotcr/systems
063b2b78b99e9e0a7733760125a999106d7fc6ba
b35358cbc83daa7900f049bf544bd4df500b0749
refs/heads/master
2021-01-20T10:50:28.518802
2014-03-14T16:42:32
2014-03-14T16:42:32
15,811,702
0
1
null
null
null
null
UTF-8
Python
false
false
2,224
py
from __future__ import division import sys sys.path.append('gen-py/autoscale') sys.path.append('gen-py/') import LoadBalancer from autoscale.ttypes import * from autoscale import LoadBalancer from thrift.transport import TSocket from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol fro...
[ "marcotcr@gmail.com" ]
marcotcr@gmail.com
e7573bed0af5548993771609353cbf19e6c6588c
9dbd215e72f410f810606109632db30556d07f74
/BuildingSystems/Resources/Scripts/JModelica/Buildings/Examples/BuildingTherma1Zone1DCylinder.py
b5b655006868817fcaba5def05d7357c4c6a71aa
[ "BSD-3-Clause" ]
permissive
TonyJava/BuildingSystems
a7bc822e2277ef87fd7dbce2f2dd685bd311b013
56ccd43d1a8de8e2f6dfaed3a2cef9e3edf27b7f
refs/heads/master
2020-04-24T21:48:34.956614
2019-02-22T13:22:34
2019-02-22T13:22:34
172,290,652
1
0
BSD-3-Clause
2019-02-24T03:18:32
2019-02-24T03:18:31
null
UTF-8
Python
false
false
1,817
py
# paths and info import os, sys homeDir = os.environ['HOMEPATH'] jmodDir = os.environ['JMODELICA_HOME'] workDir = "Desktop" # has to be adapted by the user !!! moLiDir = os.path.join(homeDir, workDir, "BuildingSystems") # give the path to directory where package.mo is stored moLibs = [os.path.join(jmodDir, "ThirdParty...
[ "nytsch@udk-berlin.de" ]
nytsch@udk-berlin.de
343ee30c9eeda3d263414b6da3a2aaaee932a506
74bd3a29425a6dae085af292d71b0bcbee5a0744
/music_eda_STFT.py
b1246e477fffb8439fddcd019a0936dc6ce1720e
[]
no_license
tacyi/graduation_p
3d42746d3e87f08754203a0a9fec19df95297324
ce9112537165f8cd40f4253d938ffef8cd1b4728
refs/heads/master
2020-11-27T17:10:57.098501
2019-12-22T08:08:13
2019-12-22T08:08:13
229,536,101
0
0
null
null
null
null
UTF-8
Python
false
false
1,672
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/12/3 18:38 # @Author : tacyi import matplotlib.pyplot as plt import numpy as np import scipy.signal as signal from scipy.io import wavfile import os # 画短时傅里叶声谱图并保存图片,代码相关参考链接https://blog.csdn.net/qq7835144/article/details/88887576, # 最主要的疑问是我不确定 # (sam...
[ "tacyi@139.com" ]
tacyi@139.com
780ef530a2c311710a82743db16d99d91edf5d3b
35387a94b884466188c525a11cf7bf4dbf3c291f
/deepspeed/pt/deepspeed_constants.py
1ba3dd482e25b1782b88a86ceab5d7a308f7bf4d
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
liuyq47/DeepSpeed
6808653e9adf490799fe9fe630d8cf20bc4a51b2
cd68e6e55a2155ffaea681b18e012aafd686dce4
refs/heads/master
2022-12-12T07:35:00.362124
2020-08-10T17:09:40
2020-08-10T17:09:40
278,738,026
0
0
MIT
2020-08-26T16:14:54
2020-07-10T21:37:45
Python
UTF-8
Python
false
false
8,682
py
""" Copyright (c) Microsoft Corporation Licensed under the MIT license. """ ############################################# # Routes ############################################# ROUTE_TRAIN = "train" ROUTE_EVAL = "eval" ROUTE_PREDICT = "predict" ROUTE_ENCODE = "encode" ############################################# # B...
[ "noreply@github.com" ]
liuyq47.noreply@github.com
8bbd1f616dd60b38607f42fb53b0bed2badfe9b5
583f91afcb377707c830ad739b3d22d38f7eb4bf
/venv/bin/easy_install
d37d504868e9c4dc0754e20af384f4987ab2648d
[]
no_license
wjwalcher/CSP
1544556606ea83f54aaceff9ad701c8eb4bedb7a
1bddfd6dc5d70350323cd60224df804ef67dd581
refs/heads/master
2020-04-01T12:49:25.271546
2018-10-16T05:03:35
2018-10-16T05:03:35
153,225,369
0
0
null
null
null
null
UTF-8
Python
false
false
448
#!/Users/williamwalcher/PycharmProjects/322CSP/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.ex...
[ "williamwalcher@Williams-MacBook-Pro-3.local" ]
williamwalcher@Williams-MacBook-Pro-3.local
f9184c9bc8feb760a6b06e8e4065cacd924722c5
24223cba74ca8c293aaa4381fecf80acd237fc94
/jensen_comparison/bin/jupyter-kernelspec
048319db09ad921800f7139bc93ab93c2745267a
[]
no_license
Aequivinius/jensen-comparison
df0f4424160d5c4d37f29eb8939518c96b446b9c
04910a40869103a618dd4cea5035ff2c9c6797bf
refs/heads/master
2020-04-30T00:44:18.755131
2019-03-19T12:48:10
2019-03-19T12:48:10
176,510,273
0
0
null
null
null
null
UTF-8
Python
false
false
312
#!/Users/sazerac/jensen_comparison/jensen_comparison/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from jupyter_client.kernelspecapp import KernelSpecApp if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(KernelSpecApp.launch_instance())
[ "ncolic@gmail.com" ]
ncolic@gmail.com
7d0942492c486ab43f4c39a5adee4453c034f50e
c1fe97208afe479b7ae1ee67d69866a6911564ca
/AdvCBV/basicapp/admin.py
046528c9de692ae1d3f199606430ad8437e9c4a1
[]
no_license
jaindhairyahere/Python_Django
a0a46c57b6ca60d0942ae181fe28ea56bb1ee948
f170a2e38b78df698a02821a454a3baea0c358a6
refs/heads/master
2020-06-18T09:17:56.364928
2019-11-02T18:34:12
2019-11-02T18:34:12
196,249,108
0
0
null
null
null
null
UTF-8
Python
false
false
164
py
from django.contrib import admin from basicapp.models import School, Student # Register your models here. admin.site.register(Student) admin.site.register(School)
[ "jaindhairya2001@gmail.com" ]
jaindhairya2001@gmail.com
84c66116e8584f0c2d0ad42b6fdb367629748331
a51453f9d5f7a93d5ce7f909e96507d24a34b40c
/small_knowledge.py/extract_num.py
e8159d0681311895eb5599a7cf0383cf6312cf4b
[]
no_license
justkissme/crawler
99a228019836700c4cdb548d6ab76f3e3b1c0ddb
b0a6964d657486f6af90519f885352945e107409
refs/heads/master
2021-03-22T15:57:46.195433
2020-03-15T01:49:10
2020-03-15T01:49:10
247,380,355
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
link = 'https://www.xslou.com/yuedu/9356/' id_list = list(filter(str.isdigit,link)) book_id = ''.join(id_list) print(type(book_id)) print(book_id)
[ "noreply@github.com" ]
justkissme.noreply@github.com
55eda8146943aa974f2b0b70a0e47c6a5dbd6c54
da013048a61c4e34419c0b7ec721203ab1081173
/large_shirts.py
f01231ceec2dadb643abac4273e53785d9a5964c
[]
no_license
makeTaller/Crash_Course_Excercises
2c3bd3ac7c50a1830ce087b8187b93d93fab771e
66b50906e6b33e6ba0d15a8a98ee17ca689392c4
refs/heads/master
2020-03-18T04:17:42.342365
2018-07-17T22:02:45
2018-07-17T22:02:45
134,280,608
0
0
null
null
null
null
UTF-8
Python
false
false
220
py
size = [ "small","medium","large"] def large_shirts(message="I love python",size="large"): print("Your shirt will be " + size + " and will read " + message) large_shirts() large_shirts("I Love the world!","medium")
[ "kirktolliver28@gmail.com" ]
kirktolliver28@gmail.com
6be8285fe34928e223d9dcc5d0e598306f563657
c762138fc50d2ac66a3fa9314102c9f15c8e0a2e
/S3utils.py
1029978ca960245b77350ddc4dce7bffa9444663
[]
no_license
saivamsikayala/garbage-detection-flask
500492d013a47196dd04acc490ec955893a0560c
5d380f4468af5de6290e19f555cf5b1223f6495f
refs/heads/master
2022-11-30T10:10:22.134815
2020-08-01T09:37:32
2020-08-01T09:37:32
283,982,797
0
1
null
2020-08-01T04:30:49
2020-07-31T08:24:24
Python
UTF-8
Python
false
false
1,180
py
import boto3 import uuid import io from . import settings class S3utils(): def __init__(self): self._session = boto3.session.Session() self._client = self._session.client('s3', region_name = settings.AWS_S3_REGION_NAME, endpoint_url = settings.AWS_S3_ENDPOINT_URL, ...
[ "abhinav.dayal@hotmail.com" ]
abhinav.dayal@hotmail.com
486782999f26b2d806dfe00600731c63363f0469
5f9d274602d630173ac36227d8a70ed163d7a8d6
/quickroute/utils.py
aeda2a4660fbeb2a7cdd6960a6d3538fc3826cc8
[ "Apache-2.0" ]
permissive
jvtm/python-quickroute
88ef1f594f6da99e1300bf36e6bdc1b16d6ab752
758e97cf38200efd649cb797c64c51b608db5de5
refs/heads/master
2020-03-30T23:06:24.348614
2014-08-14T20:37:54
2014-08-14T20:37:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
''' Python QuickRoute utility functions ''' from datetime import datetime, timedelta import json class DateTimeEncoder(json.JSONEncoder): """ Replacement JSON encoder supporting datetime and timedelta objects """ def default(self, obj): if isinstance(obj, datetime): return obj.isoformat()...
[ "jvtm@kruu.org" ]
jvtm@kruu.org
5c9d3d6c5f48bd56c8f41c7340f23a939dd6540c
7bf59a25a66578cff650b0435ac95485ff51b43f
/model/couresDB.py
4e1b59b80a6807a10bccdb4571b6ca3412fc9c41
[]
no_license
amekaki/cmajorMiniProgram
a02ee5e9fcf93922e13c15ce9d2504211fc4324f
15517e6d5c8514f8ac262265b77f2e60a0b3b9b9
refs/heads/master
2023-03-10T04:10:20.036776
2020-12-11T02:49:59
2020-12-11T02:49:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
# -*- coding: UTF-8 -*- from model.modelDB import Course def getAllCourses(): res = Course.query.all() return list(map(lambda x: {"cId": x.cId, "cname": x.cname}, res))
[ "1150774341@qq.com" ]
1150774341@qq.com
0cb89a8adfed56ffbd5bc7113d6cc6a65c390491
a0c130ab410d2ceebe8b8b28a80cb95a3f33f35c
/aei2/locweat.py
d0cf84e76d6ca9467740c4c393a9c69e6987fe09
[]
no_license
zkevinfu/emotion-simulator
1180dd7f5694ceae1c38ad291d49143950fdbce0
46679fbc18d7640c808eff388da56700cad07c24
refs/heads/master
2020-03-30T02:36:06.748842
2018-09-28T00:23:51
2018-09-28T00:23:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,580
py
import requests import Queue import json def get_loc(): loc_url = 'http://freegeoip.net/json' r = requests.get(loc_url) j = json.loads(r.text) return (j['latitude'], j['longitude']) def get_weat(): ds_url_base = 'https://api.darksky.net/forecast' ds_api_key = '12caf1dbd09b0e555c8b4a27339abb75'...
[ "zkevinfu@gmail.com" ]
zkevinfu@gmail.com
2e7cbcd4794cba57103a59e55b86743311629cf7
9ed58ef096d558a024aef9927e7f53fdf8805f85
/applications/expensive_seq/expensive_seq.py
a599aede02737774b47914d10e7b5686d1e4d3e6
[]
no_license
squashgray/Hash-Tables
11e6c4e0cb9aa0dd3a2592fd04918311e5a23346
d97ab7dad3dd34277b8084badcd27f19cb848ee6
refs/heads/master
2022-10-26T11:24:43.664825
2020-06-10T04:34:42
2020-06-10T04:34:42
261,280,162
1
0
null
2020-05-07T03:31:35
2020-05-04T19:46:26
null
UTF-8
Python
false
false
223
py
def expensive_seq(x, y, z): # Implement me if __name__ == "__main__": for i in range(10): x = expensive_seq(i*2, i*3, i*4) print(f"{i*2} {i*3} {i*4} = {x}") print(expensive_seq(150, 400, 800))
[ "beej@beej.us" ]
beej@beej.us
151fc23e1533e76eb12ce1b8bb1392755667dbab
7f54637e347e5773dfbfded7b46b58b50544cfe5
/7-3/chainxy/spiders/tradesecretscanada.py
dc8b30b2b1997267ec5b41a42628814c788f3cc0
[]
no_license
simba999/all-scrapy
5cc26fd92b1d03366b74d4fff58c4a0641c85609
d48aeb3c00fa2474153fbc8d131cf58402976e1d
refs/heads/master
2021-01-25T14:24:04.715550
2018-03-03T13:43:13
2018-03-03T13:43:13
123,695,640
1
0
null
null
null
null
UTF-8
Python
false
false
2,369
py
import scrapy import json import os from scrapy.spiders import Spider from scrapy.http import FormRequest from scrapy.http import Request from chainxy.items import ChainItem from lxml import etree from selenium import webdriver from lxml import html import usaddress import pdb class tradesecretscanada(scrapy.Spider): ...
[ "oliverking8985@yahoo.com" ]
oliverking8985@yahoo.com
d4a5a2155aa71f6f81e1301fb6dea5d302b0742f
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_greens.py
ce3b23baa678edd94ee5bf830fa189133e5ffadb
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
from xai.brain.wordbase.nouns._green import _GREEN #calss header class _GREENS(_GREEN, ): def __init__(self,): _GREEN.__init__(self) self.name = "GREENS" self.specie = 'nouns' self.basic = "green" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
16609f41774f606706d680afcec9bb61b9b40b3d
e540673e49a0ea897b0df0d15c2c5df38e54e8b0
/TF_polynomial_regression_2.py
85025c0668bb062ec899d2646b6dc3697620fdbc
[]
no_license
rottendoom001/PYTHON_TF
ec97a287ec71cfb24e4bf94cc27df36c8d451a1a
0de5489b08f60c91bb71145c16836bbf91174409
refs/heads/master
2021-09-03T17:56:04.114074
2018-01-10T22:06:01
2018-01-10T22:06:01
109,761,949
0
0
null
null
null
null
UTF-8
Python
false
false
1,986
py
"""Simple tutorial for using TensorFlow to compute polynomial regression. Parag K. Mital, Jan. 2016""" # %% Imports import numpy as np import tensorflow as tf import matplotlib.pyplot as plt # Normalizar datos def normalize (xs): ln = [] maxValue = max(xs) minValue = min(xs) for e in xs : # Fo...
[ "alanorlando.cruz.manrique@bbva.com" ]
alanorlando.cruz.manrique@bbva.com
8fe101007d836f2e2cedb46604f7ca5e40fe18f5
3b8deb008d8bb5199e4ea37a0715886bf02559c0
/examples/fakerstc.py
0f4eaa7793229cdf198523acd71dec790b001314
[]
no_license
ryanmwhitephd/ADD
759be1b8afd4433ff9d76606ad3deead64814977
60ad72f0e4360cf66e204451efbc9a5baa0732fa
refs/heads/master
2021-09-18T14:40:17.398413
2018-07-16T06:57:01
2018-07-16T06:57:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,834
py
# -*- coding: utf-8 -*- """ Created on Thu Jan 25 12:24:32 2018 @author: ryanwhi """ import logging import unittest import argparse import json import functools log = logging.getLogger(__name__) log.addHandler(logging.NullHandler()) from faker.providers import BaseProvider from faker import Faker ...
[ "noreply@github.com" ]
ryanmwhitephd.noreply@github.com
6e2274d661b06ca37349193c0aebe92de6199296
e7a79c157fe0edde0cabb4cebc707ce1530b5b7e
/answers/cartridge_base_state.py
e281bddc7ae481e400eea459831529801ab1ff55
[]
no_license
Logsod/noti_rest_server
1684d1d03c67aea46b4c6888d0951477de2888af
529e9a0c66a6c7021224a2daf60f378f01164ca5
refs/heads/master
2023-08-10T16:39:43.000835
2021-09-29T13:19:41
2021-09-29T13:19:41
408,777,957
0
0
null
null
null
null
UTF-8
Python
false
false
1,381
py
import falcon from flask import json import db class CartridgeBaseState: def on_post(self, req, resp): """handle post""" param = req.media action = int(param['action']) data = db.Db() if action == 0: # add if "cartridge_id" in param and "amount" in param: ...
[ "wwwref@gmail.com" ]
wwwref@gmail.com
f5b01891fa5b5a79a702ba2de7a0f3e064675000
6d86d4e07eeed66fdc08f68560dce9696bb35c01
/app/main/errors.py
d787733609d6910457a6556500d9d042d3fa9ec0
[]
no_license
Moxikai/law_show
5d4828a85a2bf1ae530a7e1f3d87e117d2fec4aa
9819b263a7c22680695d8a04a3992a627a73f585
refs/heads/master
2021-01-13T10:30:58.666067
2016-10-13T08:47:31
2016-10-13T08:47:31
68,830,448
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
#_*_coding:utf-8_*_ from flask import render_template from . import main #使用app_errorhandler修饰器,处理全局错误 @main.app_errorhandler(404) def page_not_found(e): return render_template('404.html'),404 @main.app_errorhandler(500) def internal_server_error(e): return render_template('500.html'),500
[ "zhu-hero@qq.com" ]
zhu-hero@qq.com
62f1f7e28e890ada8f842b1295e4c295bd93ce6b
3d14e2430b696a21661ee1b5fc000aa031a81a67
/locators/books_page_locators.py
403e152b6985de415825fb662971e8422cf916ea
[]
no_license
a-soliman/books-toscrap
53defb67df7167917a53fa1193fff5f3bccd998c
958c347eeb881178346f228326b4ccfe47b7acd2
refs/heads/master
2020-04-25T17:25:36.492827
2019-02-28T16:22:59
2019-02-28T16:22:59
172,947,801
0
0
null
null
null
null
UTF-8
Python
false
false
114
py
""" extracts books from a page """ class BooksPageLocators: BOOK = "li.col-xs-6.col-sm-4.col-md-3.col-lg-3"
[ "ahmed.soliman@programmer.net" ]
ahmed.soliman@programmer.net
2370e7452bcc9e77a37e5853184a510e1184341d
d2c4934325f5ddd567963e7bd2bdc0673f92bc40
/tests/model_control/detailed/transf_Logit/model_control_one_enabled_Logit_MovingMedian_NoCycle_LSTM.py
52f0b5d941ab48694348dbd8ae8a86fd89845917
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jmabry/pyaf
797acdd585842474ff4ae1d9db5606877252d9b8
afbc15a851a2445a7824bf255af612dc429265af
refs/heads/master
2020-03-20T02:14:12.597970
2018-12-17T22:08:11
2018-12-17T22:08:11
137,104,552
0
0
BSD-3-Clause
2018-12-17T22:08:12
2018-06-12T17:15:43
Python
UTF-8
Python
false
false
155
py
import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod testmod.build_model( ['Logit'] , ['MovingMedian'] , ['NoCycle'] , ['LSTM'] );
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
7548f99c00f871df535a5e2a2a86c932211f256d
3609f3da79af9ad44f047c58edd92da590afa17e
/PythonExerciseFolder/WearwolfOutTheDoor.py
11961bf0da3d0167ce6cc75f3e556955080e28fc
[]
no_license
Poludzku/master
bcfaab3d4e8e20d4cb5b6e31ea349342c67a7f8f
8fbc44b30b35f9b0e7608782da4d61e673d68bab
refs/heads/master
2020-12-25T18:22:24.650293
2012-07-28T12:25:13
2012-07-28T12:25:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
905
py
# -*- coding: utf-8 *-* from WearwolfZones import mountines from WearwolfZones import spring_oasis from WearwolfZones import forest def steping_out_the_door(): print """As you take a step out the door the fresh air fills your lungs, you can feel that tonight it will be a good kill, but where will you hunt? ...
[ "jacek@mint" ]
jacek@mint
a8b4064eeb4bb83cbf8897edf30fd9ef90b99913
88940cbee65e15f8d9dce61ea313a03d38131e85
/fbproj.py
59263db4e13a12a883d849aa33f66cb8d17624a3
[]
no_license
hanslee95/206FB
025fd961deffbab868238addd276177cc3839e5a
f79640b84c9f47a75b98cadded6228ec0784afac
refs/heads/master
2021-08-28T21:38:44.846473
2017-12-13T06:44:25
2017-12-13T06:44:25
112,550,535
0
0
null
null
null
null
UTF-8
Python
false
false
6,275
py
import urllib3 import facebook import requests import json import datetime import sqlite3 import plotly.plotly as py import plotly.graph_objs as go import pandas as pd from facepy import GraphAPI #NOTE: I have gotten 100 interactions extracting 100 posts, however, the final data table will have 7 items (rows) in each c...
[ "hanheum@umich.edu" ]
hanheum@umich.edu
be6628d9dba373743c57c916d5222277a1ceab7e
e4284c03268b662eb6d121fedd32aedbabd2ae4b
/test/FileIoTest.py
59794fc60bae2af560a73de5df088c4f42da0105
[]
no_license
rennX/FunctionPointParser
99af5588158163f78b07dd3b4bfb8196db71b557
65fce373fae5baf1b34e8a2863c7358981139fa6
refs/heads/master
2016-09-09T23:42:56.676573
2014-04-20T14:02:36
2014-04-20T14:02:36
16,235,300
1
0
null
2014-01-26T22:53:35
2014-01-25T17:05:10
null
UTF-8
Python
false
false
474
py
#! /usr/bin/env python """This class reads in and processes input text from a file""" import unittest class FileIoTest(unittest.TestCase): det setUp(self): self.fileIo = FileIo("input.txt") def tearDown(self): self.fileIo = None def toStringTest(self): """Prints out the contents of the input file""" ...
[ "renn.xa@gmail.com" ]
renn.xa@gmail.com
5c6e5146bb6f11b1d58dd88282e817ec96737c23
6051b1df3a84ca6dc3d4c4ce90202e64a31da22b
/test_studentlists.py
8d714b81118ded8f1a951b467ba98d2ec7583061
[]
no_license
omarmohamud23/Labweek4--studentlist
e4c614ee93c0cf2e911210aaeeb368ef37916953
8b11a661ffdc226c049d48b4d4e0479926e004a4
refs/heads/master
2023-02-26T22:32:06.700044
2021-02-05T21:59:53
2021-02-05T21:59:53
336,397,878
0
0
null
null
null
null
UTF-8
Python
false
false
5,545
py
''' Practice using assertTrue assertFalse assertIsNone assertIsNotNone assertIn assertNotIn ''' from studentlists import ClassList, StudentError from unittest import TestCase class TestStudentLists(TestCase): def test_add_student_check_student_in_list(self): test_class = ClassList(2) test_c...
[ "Omar" ]
Omar
b119a388c312e6aa8b39e003c88c95a830239c8a
39e1f30888267253a0e2976c05e364c001f386df
/validate-user.py
81499137b2e28d5885e4b4ca891499f25dc7672b
[]
no_license
atomWeb/facegnition-back-end
e1ce12aced40bc9fc902fa3d86695746f811814e
f6ef3ec256c05f5db64d25e12c006aef12f5848d
refs/heads/main
2023-08-17T01:05:32.200992
2021-10-08T10:32:33
2021-10-08T10:32:33
403,296,567
0
0
null
null
null
null
UTF-8
Python
false
false
2,631
py
import json import boto3 from boto3.dynamodb.conditions import Key import os from utils import jsonify, get_str_timestamp_by_zone S3_BUCKET = os.environ["IMAGE_BUCKET"] REGION = os.environ["REGION"] USERS_TABLE = os.environ["USERS_TABLE"] VALIDATIONS_TABLE = os.environ["VALIDATIONS_TABLE"] COLLECT_NAME = os.environ["R...
[ "cristianjose@gmail.com" ]
cristianjose@gmail.com
b7c679595c429b8800f1d4f502e2a7f308771f09
c478f4c1c14a250633666b9eac9835b36f86f704
/ckcore/core/task/task_handler.py
dbfabe44bf93545706eaeb0b91447a503a52210a
[ "Apache-2.0" ]
permissive
yasinai/cloudkeeper
10d49df5e9a69b4106ca16fff6bb04e150dd743d
7d1708deaf237b4175006852d87a2ecce1372779
refs/heads/main
2023-08-14T07:10:33.071714
2021-10-13T08:37:23
2021-10-13T08:37:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
26,786
py
from __future__ import annotations import asyncio import logging import re from asyncio import Task, CancelledError from datetime import timedelta from io import TextIOWrapper from typing import Optional, Any, Callable, Union, Sequence, Dict, List, Tuple import argparse from aiostream import stream from argparse imp...
[ "noreply@github.com" ]
yasinai.noreply@github.com
a33ea344425501fccf20a8502fc44380fce73c76
ebfcae1c5ba2997b2ac4471d5bedc3f5daffcb31
/dino-master/dino/rest/resources/send.py
a63978198fcff73e1c60cefb3ad6386d3ea9a807
[ "Apache-2.0" ]
permissive
babiato/flaskapp1
84de2d0b26a54f5820d3bbe97926782ad41e005c
530beb9e3b8516e0e93960b99521c23a523ef546
refs/heads/master
2023-02-26T16:36:49.760632
2021-02-04T09:08:40
2021-02-04T09:08:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,723
py
import logging import traceback import eventlet import sys from dino import environ from dino import utils from dino.utils.decorators import timeit from dino.db.manager import UserManager from dino.rest.resources.base import BaseResource from flask import request logger = logging.getLogger(__name__) def fail(erro...
[ "jinxufang@tencent.com" ]
jinxufang@tencent.com
34612b6bfe10f23da813bdc293d433a1103a70bd
ad9eaab5b382190ce76fb921c1a12f1c3adc4e09
/main.py
5993a711e30fa1537e727e5512bebe83a5847a92
[]
no_license
dex1cre/asistent_bot
9e7bc1ed3a293e1eea77fea258aafcafd469531e
9b93166117a600815d45ab2b05940fdd9e065747
refs/heads/master
2021-01-21T10:04:34.188968
2017-03-07T19:30:36
2017-03-07T19:30:36
83,360,574
0
0
null
null
null
null
UTF-8
Python
false
false
8,185
py
#!/usr/bin/python3 #-*- coding: utf-8 -*- #главный(здесь) модуль для работы с telegram import telebot as tlb #модуль для определения дня недели from datetime import datetime #модуль для многопоточности import threading as potok #модуль для работы с базами данных sqlite3 import sqlite3 #модуль с основными константами ...
[ "dex1cre@mail.ru" ]
dex1cre@mail.ru
92e1f7036fa5a7c131b843407e94744c4c5e5dee
67212da14d34fe69de64dcc14301a6d3f2004b89
/main.py
95789d840eaf50d28773ee383491fa71b7346331
[]
no_license
seiya-tsukada/my_gae_sample
7212b60bc48da4a06a7ff3d83c2c0a1db4dbc28f
4223923fb00c2b75fac0520f5938bfdeb9b3db92
refs/heads/master
2020-04-01T23:45:36.970914
2018-10-19T15:47:17
2018-10-19T15:47:17
153,772,079
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
#! /usr/bin/env python # coding: utf-8 from flask import Flask, jsonify app = Flask(__name__) app.config['JSON_AS_ASCII'] = False @app.route("/") def index(): return jsonify({"message": "hello world"}) if __name__ == "__main__": app.run()
[ "seiya.tsukada@accenture.com" ]
seiya.tsukada@accenture.com
e3a17a5121943d355e6b723092ef64da003de344
40b52661769a803f470b84872d692a388095cca6
/lovelace/migrations/0013_auto_20190319_2002.py
67687e3fc0868d8e75c8be7e5a20dd96cdf83b91
[]
no_license
leilesca/demodayfinalizado
4ff2e3fc4fabfa85c96cd4778b257cb20d00dd71
edb117f3d73bcda53f6db0625335e3bbd688f6f8
refs/heads/master
2020-04-30T06:55:57.077625
2019-03-20T15:14:00
2019-03-20T15:14:00
176,668,242
0
0
null
null
null
null
UTF-8
Python
false
false
582
py
# Generated by Django 2.1.7 on 2019-03-19 23:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('lovelace', '0012_perfilusuario'), ] operations = [ migrations.AddField( model_name='estabelecimento', name='imagem',...
[ "alessandra.mitie@gmail.com" ]
alessandra.mitie@gmail.com
efafbc94b23a7a62be62c4ca61b6578234ec47c0
92e2145b2424134112ef0d7b1b5cf1c1220dbc1e
/Sith/wsgi.py
fe015aa0f796905984ddf362e66f7fe3c8aba921
[]
no_license
rustam66637/SithRecruitTest
9c52725d99df8ae074068d17e7412565a12d9f2d
1f8fd5da3b71d8b1af59b6d8214807ec37941dc5
refs/heads/master
2023-08-06T17:02:51.966481
2021-02-07T15:48:20
2021-02-07T15:48:20
265,617,598
0
0
null
2021-09-22T19:03:30
2020-05-20T16:04:42
Python
UTF-8
Python
false
false
385
py
""" WSGI config for Sith 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS...
[ "rust66637@gmail.com" ]
rust66637@gmail.com
ffb81ac3e424652e5a48fdb526bf4d905bbd1018
cfb61b4a2fbe0f7a162e71208b8b772e4300b66b
/read_record/utils.py
2dae7fcfe0490756c835e00583026a19f3b23923
[]
no_license
zy421612918/blog
4c18ca6364fc1d4425dbba82fedb42d762e93ffe
f5b92452b468a54108c23a4a45b6e8c504a3f301
refs/heads/master
2020-03-22T12:38:56.977149
2018-07-07T04:35:41
2018-07-07T04:35:41
140,053,094
0
0
null
null
null
null
UTF-8
Python
false
false
2,329
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # __author__ = "Zhangye" # Date: 18-6-6 import datetime from django.contrib.contenttypes.models import ContentType from .models import ReadNum,ReadDetail from django.utils import timezone from django.db.models import Sum from Blog.models import Blog def check_read_record...
[ "421612918" ]
421612918
94d95349f260143004954f60708415d49af4c291
741d2868877fbd237a966e04899942224e36ae76
/QT_Mouse_House/Qt_Exp_Controls.py
dba439c0336c290c9bc35c28e9d3e221e52bcfe6
[]
no_license
TiangeLi/ArduinoCntrl
5e7b9357a4b304e712b1046ae6d13cda05c4fc01
f0ec2eef91d145f4807928e020857c62aaaf159b
refs/heads/master
2021-05-04T09:41:44.942708
2018-03-28T18:15:44
2018-03-28T18:15:44
61,747,298
0
1
null
null
null
null
UTF-8
Python
false
false
37,091
py
# coding=utf-8 """Qt Widgets for Experiment Config and Control""" import os from Names import * from Misc_Classes import * from Misc_Functions import * from Custom_Qt_Tools import * from copy import deepcopy from Dirs_Settings import ArdDataContainer from Custom_Qt_Widgets import GUI_LiveScrollingGraph, GUI_LJDataRep...
[ "tiange.l" ]
tiange.l
c797e1ec5b3e5955a867418fed9a26431bd4212c
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/cloud/redis/v1/redis-v1-py/google/cloud/redis_v1/services/cloud_redis/pagers.py
ea1c2287e22e2c73eb752e030a4919c860621449
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,709
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
cc43440bf8eef90f605cad03be1c751c39264596
dbc5bfb2b3eec582c58dc3e76c1e92450250b371
/app.py
a39b092802bf44862baf5865cdc4c07b315988d4
[]
no_license
olawrence799/webScraping
ac36a0bfa5ce15fe506e9ebbfbfcebc625014e17
50e608426ebfe1efbc237de16ba30c21f5b19553
refs/heads/master
2021-09-09T16:38:54.013295
2018-03-18T05:03:49
2018-03-18T05:03:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
511
py
from flask import Flask, render_template, jsonify, redirect from flask_pymongo import PyMongo import scrape_mars app = Flask(__name__) mongo = PyMongo(app) @app.route('/') def index(): mars = mongo.db.mars.find_one() return render_template('index.html', mars=mars) @app.route('/scrape') def scrape(): mars = ...
[ "owen@Owens-MacBook-Pro.local" ]
owen@Owens-MacBook-Pro.local
fc5950f4de4608412e324da17fb6c26e9e26f0c3
637175e6a58817d77ce160744de1ee1b43d76cda
/tutorial/tutorial/spiders/TorDown.py
a3abf30b597692d36831756b899d4a9b6b04c9bf
[]
no_license
AgentG2015/Scrapy
283a26f7201deaa1498a429fda77421f470f93f1
30687f75c578ccb5d5c0c488d639567ce8013406
refs/heads/master
2020-04-06T04:08:47.260255
2016-07-04T06:33:51
2016-07-04T06:33:51
59,291,648
1
0
null
null
null
null
UTF-8
Python
false
false
2,006
py
import scrapy from tutorial.items import * from scrapy.contrib.spiders import CrawlSpider, Rule from scrapy.http import Request,FormRequest from scrapy.utils.project import get_project_settings class TorDown(CrawlSpider): name = "tordown" allowed_domains = ["tp.m-team.cc"] link_template = r"https://tp.m-te...
[ "AgentG2015@gmail.com" ]
AgentG2015@gmail.com
4a8ba21250def0e771eb0d8cfee9b9e5f35ef4b8
e87415a8507341d66991411c91e77ad38cda3df9
/templated_email/block_render.py
9ddf822ec66358a729ae9b8e2ad0a806ddf76d91
[ "MIT" ]
permissive
somair/django-templated-email
6185abf24031a9813fc8b9d53faa8433f7bda0a6
b217a3e38d7af8b514d8f83568c1fd55efd1ac11
refs/heads/master
2021-01-19T14:13:10.500289
2017-01-13T13:06:06
2017-01-13T13:06:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,748
py
from django.template.loader_tags import BlockNode, ExtendsNode from django.template import loader, Context, RequestContext def _get_template(template): if isinstance(template, (tuple, list)): return loader.select_template(template) return loader.get_template(template) class BlockNotFound(Exception): ...
[ "alex.hayes@roi.com.au" ]
alex.hayes@roi.com.au
d7e8659136c28db77da24a4ae6108c9816b9874f
13e406093d44072cf378689ca5c7116b5426701e
/TugasKelas2Pembahasan.py
b1053f43fdbd6ae0b9ef6da914b5d76edcd5f320
[]
no_license
ReyhanR/fundamental-python
9251c013493d3567bd4a98da202b14d75a8aa88f
8042671d6b08ce551a43f4b094a271570f3bbaf7
refs/heads/master
2021-01-03T06:26:29.443876
2020-02-19T08:38:56
2020-02-19T08:38:56
239,959,999
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
# Ganjil genap # Genap, habis dibagi 2 atau hasilnya 0 jika di modulus dengan 2 / Ganjil, number = int(input('Masukkan angka : ')) if (number % 2 == 0): status = 'Genap' else: status = 'Ganjil' print(f'Angka {number} termasuk bilangan {status}')
[ "rryanafi@gmail.com" ]
rryanafi@gmail.com
c413c1f3310160c4a5734f569e47321d1e3bd9a6
36989b4bcd070b0889e9be921f8142df9cec67f5
/PYTHON/Questao10.py
850eed441aa1b2f2d9c2637f0aca160fa34890d1
[]
no_license
larissacsf/Exercises-1
61dfc46d594c3a20673f65809606cdc814639792
26f39571ba870c1a584ac8ad80efe841b231018e
refs/heads/master
2021-05-23T09:48:08.245971
2020-04-05T15:46:52
2020-04-05T15:46:52
253,228,979
0
0
null
2020-04-05T12:25:30
2020-04-05T12:25:29
null
UTF-8
Python
false
false
498
py
'''Elaborar um algoritmo que lê 3 valores a,b,c e os escreve. A seguir, encontre o maior dos 3 valores e o escreva com a mensagem : "É o maior".''' def maiorNumero(n1, n2, n3): if n1 > n2 and n1 > n3: aux = n1 elif n2 > n3: aux = n2 else: aux = n3 return aux def main(): n1 =...
[ "larissa_cuane10@hotmail.com" ]
larissa_cuane10@hotmail.com
d4ef7df593f1fbf7027fa866174ceb80592f6f0c
bb33e6be8316f35decbb2b81badf2b6dcf7df515
/source/res/scripts/client/gui/battle_control/controllers/quest_progress/__init__.py
f9b0128616646671d06aafd2df3f29f0785e39a0
[]
no_license
StranikS-Scan/WorldOfTanks-Decompiled
999c9567de38c32c760ab72c21c00ea7bc20990c
d2fe9c195825ececc728e87a02983908b7ea9199
refs/heads/1.18
2023-08-25T17:39:27.718097
2022-09-22T06:49:44
2022-09-22T06:49:44
148,696,315
103
39
null
2022-09-14T17:50:03
2018-09-13T20:49:11
Python
UTF-8
Python
false
false
151
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/gui/battle_control/controllers/quest_progress/__init__.py pass
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
aa6a81ca2a68d3bbe0fcd037c5db7068f2adb766
dd44e145ac547209f5f209bc9b1f09189bb8b5c7
/Python-Advanced-2021/03.Multidimensional-lists-L/02.Sum-of-matrix-columns.py
719862b6c9646cc99f509dcebd28edadbfe2e5d6
[]
no_license
todorovventsi/Software-Engineering
e3c1be8f0f72c85619518bb914d2a4dbaac270f8
64ffa6c80b190e7c6f340aaf219986f769f175ab
refs/heads/master
2023-07-09T05:35:14.522958
2021-08-15T14:35:55
2021-08-15T14:35:55
336,056,643
2
1
null
null
null
null
UTF-8
Python
false
false
254
py
rows, columns = map(int, input().split(", ")) matrix = [[int(i) for i in input().split()] for _ in range(rows)] for column in range(columns): column_sum = 0 for row in range(rows): column_sum += matrix[row][column] print(column_sum)
[ "todorov.ventsi@gmail.com" ]
todorov.ventsi@gmail.com
d34c725b1262b78badb8817d31b511b34234cf00
9809666dd2cdedf154ed8056fa9795d30307644a
/OPENCV BEGGINNER LEVEL/code/image_processing_2.py
78711a9ac14e2ceea7733ee2f5b8ef5de5cde5a7
[]
no_license
draco-git/test
dcdb91eb780926c8a20ac844cb64c6295d14c176
c0c76c04c265a52a5fb379751adf4fa17eadd646
refs/heads/master
2023-08-05T07:10:31.699593
2021-09-20T05:59:16
2021-09-20T05:59:16
408,156,269
0
0
null
null
null
null
UTF-8
Python
false
false
4,819
py
import cv2 import numpy as np import import_images import stacked_images import gui_features #reading images images = import_images.dict_images() names_of_img_in_dict =[ ] for i,j in images.items(): images[i] = cv2.imread(j) names_of_img_in_dict.append(i) #print(names_of_img_in_dict) : ['avengers', 'balls', ...
[ "madhavgedela3@gmail.com" ]
madhavgedela3@gmail.com
d198cc72d424a69a2c2d0a225554d187793a8099
2415d7f3cc3a4cb98897e91386d861d4b672e824
/src/puremvc/utilities/pipes/messages.py
c8189aae63b178e59f8c87c0193b09a84c06a93f
[]
no_license
Yoriz/puremvc-python-util-pipes
cc4cf60675f4e700736a6bbf6bda13374a37d87e
c8136e648683560c991c0ff359eb14e509f84ee2
refs/heads/master
2021-04-09T16:54:36.803883
2012-11-28T19:16:25
2012-11-28T19:16:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,646
py
''' Created on 26 Nov 2012 @author: Dave Wilson ''' from puremvc.utilities.pipes import interfaces class Message(interfaces.IPipeMessage): """ Pipe Message. Messages travelling through a Pipeline can be filtered, and queued. In a queue, they may be sorted by priority. Based on type, the...
[ "dave.wilson1@ntlworld.com" ]
dave.wilson1@ntlworld.com
21be216193f7f5ea64fdfa525d451bf6e7d4d223
202c1ceb861171aeae9a63a23ab0f823773a02c5
/tiny/scheduling/scheduler.py
61d5bd7e2012769b2316a6066f189b23f53ad0db
[]
no_license
oampo/tiny
33d62eb1ed6fdf5d015f7a75c3ed07ecb6c7e387
83f987e49152bc6716a7cc80c9d3e5ac80e2ce34
refs/heads/master
2016-08-03T09:17:22.544009
2015-03-13T15:27:37
2015-03-13T15:27:37
31,021,320
0
0
null
null
null
null
UTF-8
Python
false
false
4,423
py
import time import asyncio import functools from heapq import heappush, heappop from .patterns import p_dict class Scheduler: duration = "duration" def __init__(self, bpm=120): self._queue = [] self.bpm = bpm self._time = time.time() self._beat = 0 self._beat_in_bar...
[ "joe@oampo.co.uk" ]
joe@oampo.co.uk
257b7003bc935a62b341351ce28e8be2d272b6ae
bb88a96f31e12007ec99f8e64045e790831805fe
/gringotts/api/v1/sub.py
71f38bf767d8eab916dcde5a1fd699fbbcb865f1
[]
no_license
rogeroger-yu/ustack-gringotts
38ed680f111c262a666f55609074a00fd6f76b7e
75f656398c11b0dbddf99bf429994624915c3565
refs/heads/master
2022-09-24T03:52:46.452502
2017-03-30T11:03:54
2017-03-30T11:19:22
86,901,913
1
0
null
null
null
null
UTF-8
Python
false
false
1,502
py
import calendar import pecan import wsme import datetime import decimal from pecan import rest from pecan import request from wsmeext.pecan import wsexpose from wsme import types as wtypes from oslo_config import cfg from gringotts import exception from gringotts import utils as gringutils from gringotts.api.v1 imp...
[ "guangyu@unitedstack.com" ]
guangyu@unitedstack.com
d47adad75197246557075f605b07f839b2123a11
d4f1bd5e52fe8d85d3d0263ede936928d5811bff
/Python/Problem Solving/BOJ/boj5724.py
c8ae00d9227f3f31db76e85c3ec8da1ed321f2ee
[]
no_license
ambosing/PlayGround
37f7d071c4402599995a50cac1e7f1a85c6d10dd
0d5262dbb2fa2128ecb3fd969244fa647b104928
refs/heads/master
2023-04-08T04:53:31.747838
2023-03-23T06:32:47
2023-03-23T06:32:47
143,112,370
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
lst = list() idx_lst = list() max_val = -1 while True: n = int(input()) if n == 0: break idx_lst.append(n) if max_val < n: max_val = n for i in range(1, max_val + 1): if i != 1: lst.append(lst[i - 2] + i ** 2) else: lst.append(1) for i in idx_lst: print(lst[i...
[ "jiyang@student.42seoul.kr" ]
jiyang@student.42seoul.kr
3c27fc64a1e079739ba16dd4a648e0eb9ab172c6
89b5966506cb7dcbdbce8f686d920b7146cceebe
/Exponential_Experiments/HMC_runner.py
bcd2d38ec90d000a0d82ded4bbb9be8f48c89a81
[]
no_license
matthewwicker/CertifiableBayesianInference
b4f796b7ea9cdcffb067ab8896ecfaafb1687b62
289b87b0332de81b2132f6461af24f7e2a6310de
refs/heads/main
2022-12-30T17:38:17.111368
2020-10-22T04:11:54
2020-10-22T04:11:54
302,975,908
5
1
null
null
null
null
UTF-8
Python
false
false
3,064
py
# Author: Matthew Wicker # Description: Minimal working example of training and saving # a BNN trained with Bayes by backprop (BBB) # can handle any Keras model import sys, os from pathlib import Path path = Path(os.getcwd()) sys.path.append(str(path.parent)) import BayesKeras import BayesKeras.optimizers as optimize...
[ "matthewwicker@cs.ox.ac.uk" ]
matthewwicker@cs.ox.ac.uk
cc6ae0e7dab5a85c0321944085e16e0d3c43552e
10eeee95f5f3fb436a0a3cf50a2fd057779808af
/sockjs/cyclone/__init__.py
3aa631ff8643b6d96b46cb0628e42c3529c4cb58
[ "MIT" ]
permissive
flaviogrossi/sockjs-cyclone
b9c84c28036049ee58f948e4cf5e33a850286fb0
d3ca053ec1aa1e85f652347bff562c2319be37a2
refs/heads/master
2020-05-31T07:02:48.428630
2014-08-13T07:20:13
2014-08-13T07:20:13
4,571,140
11
2
null
2014-07-16T19:14:26
2012-06-06T10:14:36
Python
UTF-8
Python
false
false
106
py
from .conn import SockJSConnection from .router import SockJSRouter from .conn import MultiplexConnection
[ "flaviogrossi@gmail.com" ]
flaviogrossi@gmail.com
1cf47e979c62abe7878aec58e70e8bf82cace12f
3cfc6d23f37e45b8fd8b3810aa56eee21a493a01
/custom/plugins/RBKeyshot/KeyShot_RenderScript.py
1b2b4b7b7cbcf42f8fc4921ae87894b943238807
[]
no_license
joinmm/Deadline_Development
eb72f13e1beffac2dd55b3d0eb69d56b98110a86
90b1031ffa27177c2b7b93ac4fa59fca0f79e227
refs/heads/master
2023-03-17T22:56:53.716116
2019-08-30T03:18:33
2019-08-30T03:18:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,952
py
import os import time import shutil HOME_PATH = os.path.join(os.environ["HOMEPATH"], "Desktop", "Temp") SCENE_FILE_PATH = "A:/RenderShot_Dir/Files/ctCmh6931TKgvV2/made_to_travel_black_rev4_92630339406526/made_to_travel_black_rev4.bip" NEW_SCENE_FILE_NAME = os.path.basename(SCENE_FILE_PATH) NEW_TEMP_SCENE_FILE_NAME = ...
[ "hamedhematyar91@gmail.com" ]
hamedhematyar91@gmail.com
6c685c912dc3606c91cb0c2ed32d5fd4d5107297
0e2005613bfbefaa5dd423f74326cf7854f7d83c
/UbuntuScript2.0/script.py
6d5ff2d0f2347ed7f61e7ec65e856b663e0dc466
[]
no_license
xrchsploit/Tricks
1f3bcf4e3f73ece23dba6ef495bdc370ae7b86e3
8a7753bf0c5b881cc09f4a266dee06395e37da69
refs/heads/main
2023-02-20T05:48:24.911850
2021-01-23T03:20:27
2021-01-23T03:20:27
325,204,038
0
0
null
null
null
null
UTF-8
Python
false
false
8,149
py
# Modules that are going to be used import os import time # Colors for text class bcolors: RED = '\033[91m' BLUE = '\033[94m' GREEN = '\033[92m' YELLOW = '\033[93m' NORMAL = '\033[0m' BOLD = '\033[1m' FLASH = '\033[5m' os.system("clear") # Firefox settings, warning, apt fix, GUI updates...
[ "noreply@github.com" ]
xrchsploit.noreply@github.com
ce6dd7b3572bd458bdf2c0016d8e8241ce7d3b27
bd4a7496f732d9268377292616f6973586abf7b6
/login.py
467bba5e37b9677be8aa671ce35edd98b3b0ea4a
[]
no_license
Code-Institute-Submissions/squirrel
35853094cc42e0a32a47c4d8a77d12dee09b9c3d
420022b54af404a3bb1b6580ac52b011d1af8285
refs/heads/master
2022-12-09T20:34:13.704136
2020-08-24T16:14:30
2020-08-24T16:14:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
854
py
from flask_login import LoginManager, UserMixin from config import app, users from bson.objectid import ObjectId """ # USER MANAGEMENT # =============== # The following uses flask_login to create a user class that will be used # throughout the application. """ login_manager = LoginManager(app) login_manager.login_v...
[ "simoncastagna@Simons-MacBook-Pro.local" ]
simoncastagna@Simons-MacBook-Pro.local
48d347ad45dc5dc9a881be62103d5e32a1581f13
27cc8ec982975383a07e7781b2b09600f4a2518d
/demo/urls.py
54abef98b39afec91417cc5bf6e80175ce307529
[]
no_license
srilekha201created/Grammer
b038677ee4152261fb1b79a7f03f373fcdfb047e
e8110620a98511f4c6518eb99a262cfc05355985
refs/heads/master
2023-04-07T17:43:17.407537
2021-04-15T10:14:10
2021-04-15T10:14:10
358,164,863
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
"""demo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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-based vi...
[ "srilekhajagarlamudi.ce@gmail.com" ]
srilekhajagarlamudi.ce@gmail.com
73ae1bcec05d76e0187dedc15f40138e3430f48b
d95026fe7dbcf749b3cceb3cfd35ffed52d8bc88
/manytomanybug/urls.py
634882c5c914a063fdda9707b828634be91ead9c
[]
no_license
arthurio/manytomanybug
c9d3b028862dcef1cbe56d1b7dfb4c437169bdea
c90bc0451e8ed576a0a52933f3436a7a71c34426
refs/heads/master
2020-12-24T14:18:43.901741
2015-06-18T09:24:02
2015-06-18T09:24:02
37,646,303
0
0
null
null
null
null
UTF-8
Python
false
false
763
py
"""manytomanybug URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Cla...
[ "arthur@punchtab.com" ]
arthur@punchtab.com
f236d30755d31dd21adfeefd650ed057583684a9
084191aab1a6f975515fc33b7c7e55f7e2fb90fb
/DataRace/DataFountain/消费金融场景下的用户购买预测/git方案学习/rank1/extract_feature.py
ecfd7818044085ce984ee27e3eae86d562e76d44
[]
no_license
whoami-zy/StudyML
481829be126a789faa79524a2cc5acee28aa3174
5f12d6cb1b97ba4b2dbabe83062c6435b7729fd4
refs/heads/master
2020-04-05T20:30:05.789389
2018-11-13T07:14:33
2018-11-13T07:14:33
157,183,037
1
0
null
null
null
null
UTF-8
Python
false
false
16,700
py
import pandas as pd import numpy as np from collections import Counter import scipy.stats as sp import time import datetime def get_continue_launch_count(strs,parm): time = strs.split(":") time = dict(Counter(time)) time = sorted(time.items(), key=lambda x: x[0], reverse=False) key_list = [] valu...
[ "wantong.sun@foxmail.com" ]
wantong.sun@foxmail.com
46d6f02672c8b538642ba2d89ea3eefeabcf2b6f
38fd6b48e6ec234c60596645bd1bf9f0c9920a3d
/crm web app-django3/accounts/migrations/0004_auto_20191125_1335.py
a08f40711cee3053c9fe14b4e2930b1240c1456d
[]
no_license
zoiandrea/Python-Django-WebApp-Portofolio
7895fdac9c4e9cf3c7107a36d38b18b2b7eaf924
f41eff620d3893519006af4a6096b2f6b0a251eb
refs/heads/master
2022-12-16T19:00:40.801194
2020-09-13T10:02:08
2020-09-13T10:02:08
295,118,909
0
0
null
null
null
null
UTF-8
Python
false
false
1,204
py
from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0003_order_customer'), ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models...
[ "zoiandrea01@gmail.com" ]
zoiandrea01@gmail.com
a76467992f1f14732f636cc43adeebbf5894a737
5b9539b0c1ac5cf6b55fc1f392e9048aa8dd7866
/apps/example/urls.py
0845485e8be425eb4181e24886f7060179cebd66
[ "MIT" ]
permissive
ZhuoZhuoCrayon/AcousticKeyBoard-Web
6deae3f12f69d3c429c5955866c7e2f6612e6066
0a0ead78aec7ed03898fd51e076aa57df966508c
refs/heads/master
2023-04-19T16:44:43.207600
2021-05-05T12:25:52
2021-05-05T12:25:52
350,017,290
0
0
null
null
null
null
UTF-8
Python
false
false
610
py
# -*- coding: utf-8 -*- from django.conf.urls import url from django.urls import include from rest_framework import routers from apps.example import views router = routers.DefaultRouter(trailing_slash=True) router.register(prefix=r"book", viewset=views.ExampleBookViews, basename="book") router.register(prefix=r"aut...
[ "873217631@qq.com" ]
873217631@qq.com
2cae6553ffc000be3d826179dda5c3915a8113fa
36c0890762bde19b7ebb6330da79da46b3c2332e
/course/9/9-3.py
59da17882606ae2032b5175ee8c9a4918636fc4f
[]
no_license
chuanyedadiao/Python-Practice
143857630d8f3129ff62d1063c2b84334dbcd5e7
a5322241b38f2d1304c2a56ee28f4a2ae12490e2
refs/heads/master
2021-01-06T14:45:52.935151
2020-03-03T06:47:20
2020-03-03T06:47:20
241,365,934
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
class User(): def __init__(self,first_name,last_name,age): self.first_name=first_name self.last_name = last_name self.age=age def describe_user(self): print("FirstName:\t"+self.first_name) print("LastName:\t"+self.last_name) print("Age:\t\t"+str(self.age)) d...
[ "chuanyedadiao@gmail.com" ]
chuanyedadiao@gmail.com
ec39fe868aee193ea835519b73520e2b459f06a2
4c2ba0f1fb160682d6513aa1212990d5c9cdeaca
/RuleBased.py
d98c843129b0215553b3eb6fbb23b719efc13ee0
[]
no_license
ThomasGuily/SignalProcessing
2edcd3645f3a72806c732e87fb88e4d0a0c84366
4247c34d5971469e723026f2f80dfe4d5dfd40ba
refs/heads/master
2020-04-06T22:36:54.541832
2018-12-19T16:38:34
2018-12-19T16:38:34
157,841,526
0
0
null
null
null
null
UTF-8
Python
false
false
2,380
py
from Pitch import pitch ,cepstrumpitch import random from Preprocessing import makeframe, normalize import numpy as np def rulebased(nbr) : n=15 #can be changed at any times verify = [] test =[] writest = [] counter = 0 #different initialisation F0mean = pitch(n) # n files for each type (bdl/stl) will be anal...
[ "thomas.guily1998@gmail.com" ]
thomas.guily1998@gmail.com
1bbcc01ac088646277008e1eb2cd085872555dbc
8da91c26d423bacbeee1163ac7e969904c7e4338
/pyvisdk/do/map.py
6cd8f87633a30e6210e2784a05d6e7d2c56ec9bd
[]
no_license
pexip/os-python-infi-pyvisdk
5d8f3a3858cdd61fb76485574e74ae525cdc7e25
1aadea0afbc306d09f6ecb9af0e683dbbf961d20
refs/heads/master
2023-08-28T02:40:28.789786
2020-07-16T04:00:53
2020-07-16T04:00:53
10,032,240
0
1
null
null
null
null
UTF-8
Python
false
false
1,019
py
import logging from pyvisdk.exceptions import InvalidArgumentError ######################################## # Automatically generated, do not edit. ######################################## log = logging.getLogger(__name__) def Map(vim, *args, **kwargs): '''Topological representation of entity relationships as a...
[ "jmb@pexip.com" ]
jmb@pexip.com
b703d23d4eb23bc86961a3a4aeb666dabf0dda73
6f594cc963795c69d8da3c30ca580c0405ef2d6e
/bitwise/476NumberComplement/0.py
33f4c15e585b8d532a3126140c9cbb3e777b3817
[]
no_license
lo-tp/leetcode
25933c5b25f64f881d43748d8b2763f69614a97f
4cc4d76c64e9d9aa3f53c5e9574e488c93e10a50
refs/heads/master
2022-09-07T20:32:58.487759
2022-09-05T03:39:50
2022-09-07T13:39:50
116,555,892
1
0
null
null
null
null
UTF-8
Python
false
false
819
py
def helper(k): if k is 0: return 1 else: return 0 class Solution(object): def findComplement(self, num): """ :type num: int :rtype: int """ binaryForm = [] tem = num while tem: binaryForm.append(tem%2) tem = tem ...
[ "regesteraccount@hotmail.com" ]
regesteraccount@hotmail.com
41bc879377fb025f109b4ead056627f4d30424db
799d8f9024926bb69a0226110740a56bf30929e3
/SoftuniAdvanced/ADVANCED/stacks_and_queues/crossroads.py
bacd369a82728fa8c60e20e0b88a0d8917517af0
[]
no_license
velinovasen/python-adv-oop
a849cdff92793b45c6cca3279f1db853125b6ec8
1e3d7c194c2e8e24e4d7b07969db86e9973890cb
refs/heads/main
2023-01-01T11:16:55.572778
2020-10-25T18:06:34
2020-10-25T18:06:34
307,159,270
0
0
null
null
null
null
UTF-8
Python
false
false
423
py
from collections import deque green_light_time = int(input()) free_window = int(input()) total_time = green_light_time + free_window crossroad = deque([]) car_inside = deque([]) cars_passed = 0 while True: command = input() if command == 'END': break elif command == 'green': while green_lig...
[ "velinovasen@users.noreply.github.com" ]
velinovasen@users.noreply.github.com
ebef321d9a0556a9e2f4f2d7842bf593a80d130f
382959555c5bff81d219644feedb803d034be00c
/submissions/aardvark/myLogic.py
e09ff6887a24d2291105a49adb9eea533e12d475
[ "MIT" ]
permissive
Fruit-Snacks/aima-python
bbcb8d3412d2c0b171561c7b172714cd1f068d0c
866a1302db9af8fe9c8d3d431f4b8f023eea1042
refs/heads/master
2020-12-03T09:24:06.958825
2016-12-04T05:58:17
2016-12-04T05:58:17
66,583,651
0
0
null
2016-10-25T10:16:15
2016-08-25T18:38:13
Jupyter Notebook
UTF-8
Python
false
false
344
py
Examples = { 'weapons': {'kb': ''' (American(x) & Weapon(y) & Sells(x, y, z) & Hostile(z)) ==> Criminal(x) Owns(Nono, M1) Missile(M1) (Missile(x) & Owns(Nono, x)) ==> Sells(West, x, Nono) Missile(x) ==> Weapon(x) Enemy(x, America) ==> Hostile(x) American(West) Enemy(Nono, America) ''', 'queries':''' Crimi...
[ "william.hooper@belmont.edu" ]
william.hooper@belmont.edu
9e58026144d6dec74feda2fa0d79b3fc3bbf05b2
ec6d2cdd96be805a4a011b14aa042d05bc41eb91
/even_sum.py
d9beca8fd00e4b431b34c84854cd20ac24329b9b
[]
no_license
evrenesat/codility_answers
9538121f791f0a2594bacd1c0123f1dbe7831e34
a031e93841d23c47763c24d3efbbf55de14aa799
refs/heads/master
2021-01-17T17:27:49.005627
2016-08-15T07:47:46
2016-08-15T07:47:46
65,673,883
0
0
null
null
null
null
UTF-8
Python
false
false
3,012
py
# -*- coding: utf-8 -*- """ Even sums is a game for two players. Players are given a sequence of N positive integers and take turns alternately. In each turn, a player chooses a non-empty slice (a subsequence of consecutive elements) such that the sum of values in this slice is even, then removes the slice and concate...
[ "sleytr@gmail.com" ]
sleytr@gmail.com
5819ab4cff79eb228f85beba9b54e16617bec292
af0aeed3c16e85fc11cf760de5c81f66c0a1fb8a
/apps/gtfs/helpers/coordinates.py
3c1a4b1c6dc117216b9bf620715f20891ed43c55
[]
no_license
mateusolorenzatti/gtfs-farroupilha-manager
1acd628879428d9ba044946bc34e8644559c0e12
81ef97e9273c438c516f2920dabd1987121d1df5
refs/heads/master
2023-04-09T09:31:24.824206
2021-03-31T01:39:49
2021-03-31T01:39:49
321,531,658
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
from apps.shapes.models import Shapes def shape_midpoint(shape_list): lon = [ float(shape.shape_pt_lon) for shape in shape_list ] lat = [ float(shape.shape_pt_lat) for shape in shape_list ] return [(max(lon) + min(lon)) / 2, (max(lat) + min(lat)) / 2] def shape_midpoint_dict(shape_dict): lon = [ flo...
[ "mateusolorenzatti@gmail.com" ]
mateusolorenzatti@gmail.com
a71be691daf8a1ce341a7810ccd5fd1f3af58bcc
667a04973f5ae793f7f632be166f7cfdb67cc324
/source/project.py
2ea0d38afd79cbe6a9812115ffb0db8d321d1d8e
[]
no_license
baeikjong/DeepLearing-MNIST_project-
1cf6ddbfadbeb45cbdfd2b29e22ba2bfec627eb7
59fc79ad1c9059785519c0e3d7f1d23fffae2599
refs/heads/master
2020-09-07T20:58:48.034580
2019-11-11T05:57:26
2019-11-11T05:57:26
220,911,258
0
0
null
null
null
null
UTF-8
Python
false
false
2,425
py
# -*- coding: utf-8 -*- # import cv2 import numpy as np import matplotlib.pyplot as plt import warnings warnings.simplefilter(action='ignore', category=FutureWarning) import sys import tensorflow as tf import keras from keras.models import load_model model = load_model('./model/05-0.0488.hdf5') model.su...
[ "dlrwhd200494@gmail.com" ]
dlrwhd200494@gmail.com