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
9e69c2013364f4ed257b3f46392ed2611a7163b4
c44e28b14de66ca7a995c361ddec7add6c0c4775
/back/celery_local.py
e934b6bdc24a0488ec8abbd0571cf6b56813a9fa
[]
no_license
WnP/taiga-stack
27791318c87ba9cc7482542a2a1efa6c93c86112
c68cb634d1d2af64bf8e0ca084a0b7a94986e75f
refs/heads/master
2020-03-31T18:05:42.306457
2018-10-16T17:51:07
2018-10-16T17:51:07
152,445,933
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
from .celery import * # noqa # To use celery in memory # task_always_eager = True broker_url = "amqp://taiga:secret@tasks.rabbitmq:5672/celery" result_backend = 'redis://tasks.redis:6379/0'
[ "steevechailloux@gmail.com" ]
steevechailloux@gmail.com
72ed7287238b03b37d9fa4ab713ae57f4e995441
85e907873cb4ed2e663427b4d37c85661dc4ad2c
/listita/wsgi.py
6df54f098d7ba9cfee913cc7e207dec931908b63
[]
no_license
gabrieltron/lista
4f6c7e620a7325462ca16a8f7102449a7827face
c56186533cb6b58a8e3702108b10d5e554dbf417
refs/heads/master
2021-07-13T22:31:51.392260
2017-10-19T21:39:47
2017-10-19T21:39:47
104,925,635
1
0
null
null
null
null
UTF-8
Python
false
false
392
py
""" WSGI config for listita project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SETT...
[ "joao_trombeta@hotmail.com" ]
joao_trombeta@hotmail.com
2f83c5cac7624e5304cf2aa0459939e100999280
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_085/ch2_2020_07_09_22_36_13_402167.py
c82e823dcb2277b1070d6ac039df23e7849b4131
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
49
py
def calcula_velocidade_media(d,t): return d/t
[ "you@example.com" ]
you@example.com
bd690590a1b4049110cba3759fc56053d302b5d2
92fa526d5ca2e31f5908f17bb95c529b09ac9995
/old/models/socket-t/client.py
6edd2d446253a63ab16744b1bcd6f1ff4ca2109d
[]
no_license
KevinLongkk/IFit
55e1f7f872dbdd28e23066c9b96465315061ca2a
438fbdbd63d7cf4059038623e2739fc0a860c26b
refs/heads/master
2020-03-21T02:08:49.538064
2018-06-20T04:53:56
2018-06-20T04:53:56
137,982,728
0
0
null
null
null
null
UTF-8
Python
false
false
4,067
py
########################################################################### #*- -*# #*- coding : UTF-8 -*# #*- function : as a client to send and receiver file -*# #*- connectHost : 192.168.1.8 -*# #*- connectPort : 4518 -*# #*- author : pwn_w -*# #*- -*# ###################...
[ "1247594945@qq.com" ]
1247594945@qq.com
3fe33e070c2c0d75811a238d675bdd0dfbcf1773
dc84012d21ce76dc5300659d7fd6d711bd1534eb
/tests/transports_test.py
7973552568555e934c847d2b745a83738228197a
[ "ISC" ]
permissive
jia3857/py-restclient
64d7f885c76fe0a901fd26f0a33306a9dcd71e85
e44c4041b439bba31f4738974229d5f09e86f2ba
refs/heads/master
2021-08-22T21:01:33.350528
2017-12-01T05:08:19
2017-12-01T08:29:18
112,697,315
0
0
null
2017-12-01T05:06:45
2017-12-01T05:06:45
null
UTF-8
Python
false
false
6,935
py
# -*- coding: utf-8 - # # Copyright (c) 2008 (c) Benoit Chesneau <benoitc@e-engura.com> # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE...
[ "yjaaidi@gmail.com" ]
yjaaidi@gmail.com
8eb3b583ba00c21e0e51f30d62670c1da9f518e3
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/87/usersdata/171/57992/submittedfiles/contido.py
9b0e89a4443abb2d93f0a13c24567c49b26e2254
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
593
py
# -*- coding: utf-8 -*- def quantidade(lista,lista2): cont=0 for i in range(0,len(lista),1): if lista[i]==lista2[i]: cont=cont+1 return(cont) n=int(input('digite o numero de elemento:')) lista1=[] for i in range(1,n+1,1): cont=0 valor1=int(input('digite o numero á ser colocado na...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
5c45c17aefbe4fca29f0d7af21bc35890672183a
71d7c7c7abb33f3a0b36e401cbb546b1f7135fb8
/myproject/myproject/blacklist/models.py
582409b8bfd2bcb320763bab6cdb4c797e868931
[]
no_license
Naveen-yelamakuru/News_website
4de542b16f447294b755b380fa8f4ec027773541
05884b9a7bbaa1af1fa9c0c3a9796736fbf4bf4d
refs/heads/master
2023-04-01T06:59:26.384010
2021-04-07T06:27:28
2021-04-07T06:27:28
355,433,032
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
from __future__ import unicode_literals from django.db import models # Create your models here. class BlackList(models.Model): ip = models.CharField(max_length=10) date = models.CharField(max_length=12,default="-") def __str__(self): return self.ip
[ "yelamakurunaveen12@gmail.com" ]
yelamakurunaveen12@gmail.com
744d50f28a2c94ad5282605b6d3bb4517f7916ea
0466559817d3a1be9409da2c83db99c4db3bacfe
/hubcheck/conf/config.py
b68b5bd69b995419b02cbc759340b2a456a15ce1
[ "MIT" ]
permissive
ken2190/hubcheck
955cf9b75a1ee77e28256dfd3a780cfbc17de961
2ff506eb56ba00f035300862f8848e4168452a17
refs/heads/master
2023-03-20T15:17:12.949715
2015-09-29T16:11:18
2015-09-29T16:11:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
import os from pkg_resources import resource_filename class Config(object): data_dir = resource_filename('hubcheck','data') profiles_dir = resource_filename('hubcheck','profiles') # user configuration variables screenshot_dir = None video_dir = None config_filename = None tdfname = '' ...
[ "telldsk@gmail.com" ]
telldsk@gmail.com
72e9740d464cc851759637f97394bbe32c8a4474
c4cd9e23563072e810e90ada59904dc5247c92fb
/p_library/admin.py
d38deca44f1a68b27d9e4c4fdedeb749b5eb41c0
[]
no_license
riderufa/GGilmanovD411
130524818c6036fd9d5d29726e5dcabb8d68e2b6
59f05fec1b8dad5a6014e12f3f8c323ddb9143ed
refs/heads/master
2020-09-29T02:50:42.918242
2019-12-10T10:00:11
2019-12-10T10:00:11
226,932,203
0
0
null
null
null
null
UTF-8
Python
false
false
845
py
from django.contrib import admin from p_library.models import Book, Author, Publishing @admin.register(Book) class BookAdmin(admin.ModelAdmin): # @staticmethod # def author_full_name(obj): # return obj.author.full_name # author_full_name.admin_order_field = 'publishing' list_display = ('tit...
[ "noreply@github.com" ]
noreply@github.com
c4b1887ea606f6c95c6222db1351a682d8dad691
59eecdf59d632d21b94adcad01b5af1fc1f9ed72
/utils/balon_al_arco.py
d8d9fe8e0655b292fffe0aed8810a046c7938a99
[]
no_license
AnthonyCAS/vsss2015_Strategy
8caa668191651cee757a84cac47fa0ce509d9200
48ff71218dc55136369a9d24f7f510b675b80e77
refs/heads/master
2020-04-12T08:07:02.468659
2016-10-02T23:04:23
2016-10-02T23:04:23
42,489,287
0
0
null
null
null
null
UTF-8
Python
false
false
2,733
py
import sys import pygame from vsss.serializer import VsssSerializerSimulator, VsssSerializerReal from vsss.strategy import TeamStrategyBase from vsss.data import VsssOutData from vsss.controller import Controller from vsss.position import RobotPosition, Position from vsss.trajectory import TrajectorySCurve from vsss.vi...
[ "jose@amigocloud.com" ]
jose@amigocloud.com
35169d9ca2b214f9e10d0d57ba79f111fb07bed2
630ed534a7859ff79dee2f4c797a410952470551
/input_analyser.py
b7d90ad3d64af94b058ebe0b6fd3cc5a85b588d3
[]
no_license
shubh3695/Python-Question-Set-Generator
c98bd1bc52405f2df163f89254ca94c72d63033e
609a2617cddf1e66da9646a1841de22b12e1de0d
refs/heads/master
2020-06-23T07:01:58.731368
2019-07-24T04:16:21
2019-07-24T04:16:21
198,550,083
0
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
from json import load from models import Question, QuestionSet, Requirements, LoadedModel ########################## # Generic Input Mapper from JSon to RequiredModel ########################## class InputHandler: def __init__(self): with open('input4.json') as json_file: self.data = load(js...
[ "shubh3695@gmail.com" ]
shubh3695@gmail.com
8afef6f24d1c969ecf405eacaf0d931750e41313
aa1d9d60de89f92351cf37d9e1f4df04cd9b0449
/gcp/pubsub_client.py
a7e143bc87ecbc11f493f8042faa6d0a344fe6a0
[]
no_license
zhoufengzd/python
7ca0de97fa0050f4984d866c87ea0f3069ad3cfa
036e2e17fde91c5ef46b22af00fc73e41bf75428
refs/heads/master
2022-10-13T23:10:10.538705
2022-09-25T03:51:26
2022-09-25T03:51:26
209,899,423
0
0
null
null
null
null
UTF-8
Python
false
false
3,376
py
#!/usr/bin/env python ## utility to write / read messages with pubsub import argparse import os from google.cloud import pubsub_v1 as pubsub class PubSubClient: def __init__(self, gcp_project_id): self.gcp_project_id = gcp_project_id self.reader = pubsub.SubscriberClient() self.writer = ...
[ "feng.zhou@clearlabs.com" ]
feng.zhou@clearlabs.com
9390d1ba58dfdb8793881a2da5c58a7d8c865296
c5aa4c8c482925448634cf202140eb32e32500bb
/flash guided non-flash image denoising/code/DN_train_npy.py
d40a2e9b6a78f37809e8c538894edc2dfd239a74
[]
no_license
JingyiXu404/CU-Net-plus
e2c2636e71ec2ab8064ae6880f4afd89fa157542
aaf7e3eba938ec00297962cbd1c4d62fdb4b37c1
refs/heads/main
2023-08-14T07:37:45.991839
2021-09-20T03:09:16
2021-09-20T03:09:16
370,957,706
4
0
null
null
null
null
UTF-8
Python
false
false
1,480
py
import torch.utils.data as data from glob import glob import matplotlib.pyplot as plt from torchvision import transforms #import cv2 from PIL import Image import random import os import numpy as np import torch class cudataset(data.Dataset): def __init__(self,target_name,guide_name,label_name): ...
[ "noreply@github.com" ]
noreply@github.com
e273b347e2345994f64bb95af98c82b139510d43
97099104ac872920fd32b7149bcb3f785ce7da15
/src/data_ingestion.py
f8c7583b9e1fa8f645eac37d7f4d65250013cebf
[]
no_license
aj-1000/data-team-coding-exercise
a78c8ea8263bb48ba838d05eccc3e2328083ca69
3d2311c2e42690aa235d8ae3e766a1e8f2722fca
refs/heads/master
2023-08-19T09:25:17.839061
2021-09-27T17:20:20
2021-09-27T17:20:20
406,456,544
0
0
null
null
null
null
UTF-8
Python
false
false
1,570
py
import pandas as pd import pandera as pa import numpy as np from fastlogging import LogInit logger = LogInit(pathName='logs/data_ingestion.log') def check_dataframe_schema(df: pd.DataFrame, schema: pa.DataFrameSchema) -> None: """A function to assert that the dataframe has the types expected in the schema""...
[ "adafejaja@gmail.com" ]
adafejaja@gmail.com
8bcc7d5dab776217c266b88d9884fc3a7e5a583d
1bcb966740f47c0edc23e9b05afec55f2bcae36a
/app/game/appinterface/packageInfo.py
92697a828967b4ecf9a95dbc7d38fdf70e8c3d66
[]
no_license
East196/diabloworld
0d2e9dbf650aa86fcc7b9fc1ef49912e79adb954
d7a83a21287ed66aea690ecb6b73588569478be6
refs/heads/master
2021-05-09T12:15:31.640065
2018-02-04T15:16:54
2018-02-04T15:16:54
119,007,609
3
2
null
null
null
null
UTF-8
Python
false
false
2,226
py
#coding:utf8 ''' Created on 2011-4-13 @author: sean_lan ''' from app.game.core.PlayersManager import PlayersManager def getItemsInEquipSlotNew(dynamicId,characterId): '''获取角色的装备栏信息 @param dynamicId: int 客户端的id @param characterId: int 角色的id ''' player = PlayersManager().getPlayerByID(characterI...
[ "2901180515@qq.com" ]
2901180515@qq.com
da7a4c4583429538ef54bd4b92b0617d73b31115
785e3597b632b7f504572730779eaf92eaa5e5fa
/SSAFYcrawl_TEST.py
2f64f65b3da29def4053915bced78037a1313cb5
[]
no_license
zzangkkmin/AlgorithmPracticeZone
7fd4f2986a98c93b0e0cf5e40b30283c2a338d49
a1ee937379d8c78d24fffd98cdadd781710d7680
refs/heads/master
2020-04-22T19:00:13.436309
2019-11-25T07:41:03
2019-11-25T07:41:03
170,594,816
0
0
null
null
null
null
UTF-8
Python
false
false
2,551
py
#use pip # pip install bs4 --user # pip install lxml --user # pip install requests --user from bs4 import BeautifulSoup as bs import requests form_url ="https://edu.ssafy.com/comm/login/SecurityLoginForm.do" form_header = { 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/ap...
[ "zzangkkmin@naver.com" ]
zzangkkmin@naver.com
e5c59a146854f20e9180454a28c88279d02c0350
dabddb39b88cee43b4b6ad5a38aa54b0d31ada21
/main.py
871a48e563d743446ef20ed1b5522181d72f0298
[]
no_license
hcw-00/Inference_simple
f1bc8b34a39208159b6c47f84d65e3439256cbc6
ce4d901931bffad3d81e7540024904dcd339ddaf
refs/heads/master
2022-11-20T19:06:09.782513
2020-07-23T04:49:18
2020-07-23T04:49:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
import argparse import os import tensorflow as tf tf.set_random_seed(20) from model import infer def get_params(): parser = argparse.ArgumentParser(description='') parser.add_argument('--dataset_dir', dest='dataset_dir', default='dataset', help='path of the dataset') parser.add_argument('--batch_size', de...
[ "21908600@ncbnet.co.kr" ]
21908600@ncbnet.co.kr
10e46eb0dc43fc62e6216ee6b9a96cbf96e67b7a
4b7d1f2da5da0a9f03a58f59161f7eec12fc2f60
/q6_find_ascii_char.py
a33f048db5d620b42000c0d23556cea45fc92322
[]
no_license
leeliren/practical_1
6b4d6e89c8520ce75e2af879dbe655da3f70f6c1
ed33f677af1c2316bdb52f0d56f449b401c765e9
refs/heads/master
2021-01-10T08:37:01.411830
2016-02-26T04:15:19
2016-02-26T04:15:19
51,885,013
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
# q6_find_ascii_char.py # program that display acsii character # input acsii character acsii = input("enter acsii value: ") # conver acsii value to character character = chr(int(acsii)) # output character print(character)
[ "ncs3101sta@N3101SMCS5863.SCHOOLS.MOE.EDU.SG" ]
ncs3101sta@N3101SMCS5863.SCHOOLS.MOE.EDU.SG
c12227791c9532c511adc49b611291c60354dc51
948d84d2e3fc04e353a11384d8570308174242f5
/5-Pythonda Koşul İfadeleri/if-else-demo-2.py
ee6cf34554eeaa7723e51f9eedd857630f2067ee
[]
no_license
omerfarukcelenk/PythonMaster
a0084a800b8a41cd2ad538a7ca3687c26dc679ec
0db8f8b0ea2e1c2d810c542068cfcf1a3615f581
refs/heads/main
2023-04-16T17:42:05.501904
2021-04-26T21:19:27
2021-04-26T21:19:27
361,896,109
3
0
null
null
null
null
UTF-8
Python
false
false
3,485
py
''' 1- Girilen bir sayının 0-100 arasında olup olmadığını kontrol ediniz. sayi = float(input('sayı: ')) if (sayi > 0) and (sayi<=100): print('sayı 0-100 arasında.') else: print('sayı 0-100 arasında değildir.') ''' ''' 2- Girilen bir sayının pozitif çift sayı olup olmadığını kontrol ediniz. sayi = int(input...
[ "omerfar0133@gmail.com" ]
omerfar0133@gmail.com
aa893d19b93fa4e46eae5303e87793c9a2afed4f
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/1093.py
fa244fab36bc58d7529d2c7242771c1da73f5714
[]
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,133
py
def isPalindrome(num): if num - int(num) != 0: return False num = str(int(num)) l = len(num) for i in xrange(l): if num[i] != num[l-i-1]: return False return True def allFairAndSquare(a, b): rtn = [] for i in xrange(a, b+1): if isPalindrome(i...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
4531bc24b5d028b9ae04e0702a12afe5f44ac009
5079ba8f44eb52f96da6063ea88477c765b5a82e
/exceptions/customexceptions.py
f79dfdc25fbae94743d98cec4edf60cffc206339
[]
no_license
navdeep710/imapfilesync
e5747e724b26eaefa692be3d8f43a971a114e329
86056986b75d7ca13ab89b630cf844fb9bef52c0
refs/heads/master
2022-12-09T20:50:32.240855
2018-09-13T07:12:26
2018-09-13T07:12:26
146,305,090
0
0
null
2022-12-08T02:47:41
2018-08-27T13:57:58
Python
UTF-8
Python
false
false
82
py
class Queuenotfound(Exception): pass class Emailnotfound(Exception): pass
[ "navdeep.bits@gmail.com" ]
navdeep.bits@gmail.com
bb6a13c53d923939882c90a3722dcb0ee6f65008
ecee6e84ba18100b621c7e06f493ae48e44a34fe
/build/navigation/nav_core/catkin_generated/pkg.installspace.context.pc.py
7154b8261ec9e1dfe4b7533a24c5c418fed5f7a6
[]
no_license
theleastinterestingcoder/Thesis
6d59e06b16cbe1588a6454689248c88867de2094
3f6945f03a58f0eff105fe879401a7f1df6f0166
refs/heads/master
2016-09-05T15:30:26.501946
2015-05-11T14:34:15
2015-05-11T14:34:15
31,631,628
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/alfred/quan_ws/install/include".split(';') if "/home/alfred/quan_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "std_msgs;geometry_msgs;tf;costmap_2d".replace(';', ' ') PKG_CONFIG_LIB...
[ "quanzhou64@gmail.com" ]
quanzhou64@gmail.com
1adb61062d3e07b521e6e4b41ec14ddca7000d72
458d136f89388f3b6a98559f01addda5db3cf400
/common/tablib/tablib.py
c6f82696d5b8c15a7242af0ff3817edeb55d88b6
[]
no_license
secretleojoy/hack4tech-h
35626f11f655392cbc71208a63e8999f121dafbb
8c46f80e0c71d0e6bff939780e5b1ad202fafb99
refs/heads/main
2023-06-17T08:19:20.411688
2021-06-06T12:45:41
2021-06-06T12:45:41
385,784,799
0
0
null
2021-07-14T01:58:08
2021-07-14T01:58:08
null
UTF-8
Python
false
false
10,261
py
from collections import OrderedDict from .format import registry class Row: """Internal Row object. Mainly used for filtering.""" __slots__ = ['_row', 'tags'] def __init__(self, row=None, tags=None): if tags is None: tags = list() if row is None: row = list() ...
[ "vhhareesh947@gmail.com" ]
vhhareesh947@gmail.com
83a53505bd883a0049978dbdc0ef84340b64458c
ea1e0d6d8a7bd97d7b179f4e7857149012466ecc
/fiches/views.py
56ad0e8013f4ed8ddb5ced7d18aa14a6d05e15e4
[]
no_license
eloigrau/templatedjango
97575b5a098ec24a25b67a9f86a918d70f9e45a4
12a1768e92c43469d0127e7202af83e1d4a04321
refs/heads/master
2022-12-11T11:48:33.579366
2021-03-28T19:30:47
2021-03-28T19:30:47
237,098,214
0
0
null
2022-12-08T01:23:31
2020-01-29T22:51:54
JavaScript
UTF-8
Python
false
false
9,795
py
# -*- coding: utf-8 -*- from django.shortcuts import render, redirect, get_object_or_404, HttpResponseRedirect from django.urls import reverse_lazy from .models import Fiche, CommentaireFiche, Choix, Atelier from .forms import FicheForm, CommentaireFicheForm, FicheChangeForm, AtelierForm, AtelierChangeForm from django....
[ "marchelibre@gmx.fr" ]
marchelibre@gmx.fr
6512252e8f437e9237f39ae69a605cf3e891bd9e
713720fdc5ead7c8a13476da847e335202d6df03
/scripts/sorno_realdate.py
8136704bbfee2e999e640ae3742c2b921d9bf7fc
[ "Apache-2.0" ]
permissive
hermantai/sorno-py-scripts
26f72ce4f4711e2b3ee57f60c30ee1d9c314304d
6d1ccaba3c7a259a3bbbe13b39c3abfc951789f8
refs/heads/master
2022-04-30T13:02:20.037450
2022-04-22T03:29:30
2022-04-22T03:30:57
16,879,067
0
0
null
null
null
null
UTF-8
Python
false
false
2,684
py
#!/usr/bin/env python """sorno_realdate.py prints the human readable date for timestamps Example: $ sorno_realdate.py 1455223642 1455223642000 1455223642000000 1455223642000000000 1455223642: 2016-02-11 12:47:22-0800 PST in s 1455223642000: 2016-02-11 12:47:22-0800 PST in ms 1455223642000000: 2016-02-...
[ "htaihm@gmail.com" ]
htaihm@gmail.com
e5ba62b5f8329a38c865fda67e7a23bb28064ad6
b0232c7856879f720ca9f64ca4df5096a0c34356
/factoryTests.py
774a67c13adc3b380ca174425d61317a4dd5a8f9
[]
no_license
extramask93/CEVA_code_gen
2d7d614741edfe68fd9a29f4ae6960ae15985ebf
e2630c096840605d7f986c1db863ea3d213eb6a6
refs/heads/master
2020-03-23T15:05:22.158796
2018-09-06T16:10:57
2018-09-06T16:10:57
141,721,652
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
import pytest from decoder import TokenFactory, RegularRegister, VectorRegister, RegularImmediateToken, MultiTokenVPU, ModuRegister def test_factorytest(): a= TokenFactory("rA.ui") assert isinstance(a,RegularRegister) a = TokenFactory("vrB1.s16") assert isinstance(a, VectorRegister) a = TokenFactory...
[ "jozwiak.damian02@gmail.com" ]
jozwiak.damian02@gmail.com
9a9e8b7d9284574442ab7b8a10207055a4e065fd
fa07f9ff0c833746a4195a9092f5831e1126b684
/03逻辑回归/tool/Read_Minist_Tool.py
20e00b911aaddbd62cbe3738177e435b941c794e
[]
no_license
shiqiuwang/ML_basic_model
76c3b755dda772031bfba22860ee61bb2ea286fc
b6d7350332f3ef32ccc5dc69f81b629c5bcdd349
refs/heads/master
2023-03-23T10:23:08.130357
2021-03-20T16:43:30
2021-03-20T16:43:30
348,405,661
0
0
null
null
null
null
UTF-8
Python
false
false
6,341
py
# coding=utf-8 import numpy as np import struct import matplotlib.pyplot as plt # 训练集文件 train_images_idx3_ubyte_file = 'data/minist/train-images.idx3-ubyte' # 训练集标签文件 train_labels_idx1_ubyte_file = 'data/minist/train-labels.idx1-ubyte' # 测试集文件 test_images_idx3_ubyte_file = 'data/minist/t10k-images.idx3-ubyte' # 测试集标签...
[ "2714049089@qq.com" ]
2714049089@qq.com
7e6b235d3a48117b856cbec0dd3b7ae0d244ff98
d5bf16ecfba523d15eb2fc467c85c639a511a555
/createRenderFilesForDepths.py
0944bcffba98560958361d2a9ace8b8c0c6a2487
[]
no_license
chenkeshuai/TransparentShapeDatasetCreation
b5bbedcff5eb2bd8c25d51c40c756b252033a862
9c1ca853e02cec26ce1ca86b7a73deeff24625d9
refs/heads/master
2022-11-21T22:24:20.674760
2020-07-14T04:08:33
2020-07-14T04:08:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,681
py
import os.path as osp import numpy as np import glob import xml.etree.ElementTree as et from xml.dom import minidom import argparse def addShape(root, name ): shape = et.SubElement(root, 'shape' ) shape.set('id', '{0}_object'.format(name) ) shape.set('type', 'obj' ) stringF = et.SubElement(shape, 'str...
[ "zhl378@eng.ucsd.edu" ]
zhl378@eng.ucsd.edu
46fb50be72246b32790681ebd25f5daffa7354ac
649c17052feedff130bcb3283a0c3ae9a66c9669
/tests/test_iris_tree.py
7b2465ee3b96607988029ee2984062e31bae0e2f
[ "MIT" ]
permissive
drevilslab/pykitml
abb04d4aaafe3712ec24e9a9e38ed0b65c4cbb8d
1c3e50cebcdb6c4da63979ef9a812b44d23a4857
refs/heads/master
2023-01-16T03:29:14.762110
2020-11-02T11:03:55
2020-11-02T11:03:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,771
py
from pykitml.testing import pktest_graph, pktest_nograph @pktest_graph def test_iris_tree(): import numpy as np import pykitml as pk from pykitml.datasets import iris # Load iris data set inputs_train, outputs_train, inputs_test, outputs_test = iris.load() # Create model tree_iris_classif...
[ "vishnu.vish.shankar@gmail.com" ]
vishnu.vish.shankar@gmail.com
f6c5e331691fb14a8ca15b8f18c3deaa42168845
55813c77666d798e806a280f3305c6e6c6531df9
/desktop/main.py
91963db43d6eb5d80423c2217ecd5e533ef0aba5
[]
no_license
cwwang2/EmbeddedProto_Example_STM32_UART
d80ec11ecc81bd8f6e938e71c49f566067bb805d
d63952eb5aad5b15f9922aa5b6be8f695cdf0a62
refs/heads/master
2023-03-25T03:34:22.560786
2021-03-23T13:10:15
2021-03-23T13:10:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,840
py
# # Copyright (C) 2020 Embedded AMS B.V. - All Rights Reserved # # This file is part of Embedded Proto. # # Embedded Proto is open source software: you can redistribute it and/or # modify it under the terms of the GNU General Public License as published # by the Free Software Foundation, version 3 of the license. # # E...
[ "Bart@EmbeddedAMS.nl" ]
Bart@EmbeddedAMS.nl
e7a9f35ebb77c9eba8512429cdbcd7299268d354
954e077df69e90f3f3742276d0644485514b2de5
/PyBank/main.py
42053b8d79d5dd2d5b3cba5f207f27bc76e916a8
[]
no_license
Vilma0228/python-challenge
d5cce1bbfcacfacd80daaf39067882c540d51c8b
4fddf4f507d5c314f328b2f839c7f4e611dd2a04
refs/heads/master
2020-03-14T15:08:12.242787
2018-05-05T23:31:10
2018-05-05T23:31:10
131,669,444
0
0
null
null
null
null
UTF-8
Python
false
false
1,374
py
import os import csv #Files to load PyBankpath = "budget_data_1.csv" #Read the csv and convert to dictionaries with open (PyBankpath) as revenue_data: reader = csv.reader(revenue_data) #Use the next to skip first title row next (reader) revenue = [] date = [] rev_change = [] #Loop to ge...
[ "vilma0228@gmail.com" ]
vilma0228@gmail.com
8785bfa65e79ad99e0867513d746ace94f2107d6
43d33fe29c2d75b4612d01e804ff9aa96683e592
/day3/part2.py
bef750872601af0ccf84e0c5a5ebbc32c1b9b250
[ "Unlicense" ]
permissive
fvdnabee/aoc20
b2a7d0950086e3ab61821f23de6c3055cb0cafde
e4c9d31aaead998bad9f0a53612ab731b66933da
refs/heads/main
2023-02-05T16:01:15.342636
2020-12-25T13:27:49
2020-12-25T13:27:49
318,639,117
0
0
null
null
null
null
UTF-8
Python
false
false
490
py
with open('input') as fp: grid = [line[:-1] for line in fp] grid_width = len(grid[-1]) slopes = [(1, 1), (3, 1), (5, 1), (7, 1), (1, 2)] slopes_trees = [] slopes_trees_multiplied = 1 for r, l in slopes: n_trees = 0 x, y = (0, 0) while y < len(grid): if grid[y][x % grid_width] == '#': ...
[ "floris@vdna.be" ]
floris@vdna.be
3c60cb7e069f959fd27d7c4354d02b1fad18bef8
b31674c022fd03aee6b0d3f2c1a3b4c901b26c42
/Scripts/environment.py
5ca5b935c43c919822881bec6de9d7bb57e9aa77
[]
no_license
sdfgeoff/geodesic-chess
d033512ecd4b90428901a6d287de3f477862927d
ddba711af70bb8f443b98c2a1822f8e5c87638b2
refs/heads/master
2021-01-13T05:12:52.109560
2017-05-15T03:39:06
2017-05-15T03:39:06
81,260,952
2
1
null
null
null
null
UTF-8
Python
false
false
1,265
py
import bge def test(cont): '''This is used to test the enviroment class from Camera.blend. It checks to see if the game object exists, and if it does not, runs the environment''' # When you create a game, it puts itself in the global dictionary if 'GAME' not in bge.logic.globalDict: # Make this...
[ "sdfgeoff@gmail.com" ]
sdfgeoff@gmail.com
bd6fe3a09008d2af126731dc0dce5e67b38920d3
5b89963fedfd6caed58c9f08085abf4ccdf07d3e
/MLP_from_scratch/prediction.py
94b73fb7cba56a80fad395c0709ac38ad0f6b9c0
[ "MIT" ]
permissive
THINK989/Neural-Network-from-Scratch
0c0158e6327b6c95c66313fba5a4d83188904f93
cf410d45c4306b835b354bb19fb3051575d486fc
refs/heads/master
2020-07-06T10:57:09.591170
2020-05-01T15:29:35
2020-05-01T15:29:35
202,993,986
3
0
null
null
null
null
UTF-8
Python
false
false
910
py
import numpy as np from propagation import * def predict(X, y, parameters): """ This function is used to predict the results of a n-layer neural network. Arguments: X -- data set of examples you would like to label parameters -- parameters of the trained model Returns: p -- pred...
[ "noreply@github.com" ]
noreply@github.com
c5af1b1c066c1a49573ef543d9894567d5909df2
9e482a31dd8c1661ad1953d7fbd24a532306f58c
/Plays/Play10/medium_batch_normalization.py
2d0166d6dce71a2e1ec99d39a56e366341b49c99
[]
no_license
margaridav27/feup-fpro
49a66f6643c83adb948ff110f522948f43508519
e805e08d0fdd273db272300e3e9676c585030f23
refs/heads/master
2023-01-23T01:16:11.534704
2020-11-25T10:48:00
2020-11-25T10:48:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,115
py
# -*- coding: utf-8 -*- """ Created on Wed Dec 4 10:14:35 2019 @author: Margarida Viera """ #solution using generator def batch_norm(alist, batch_size): while len(alist) > 0: batch = [] l = alist.copy() if len(alist) < batch_size: batch_size = len(alist) ...
[ "up201907907@fe.up.pt" ]
up201907907@fe.up.pt
f1df3479147b367dfc6cc0d007b4386d3a0e7fa8
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2017_03_01/models/express_route_circuit_authorization_py3.py
b4bb3df4dd52a8366e8cb7b9b1d60fa77e023bf0
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
2,559
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
[ "noreply@github.com" ]
noreply@github.com
20c78b60b815c01583da61d8d071a7b4e1735589
dbf8768bb3818b4003f2e34ff561afb235a3734a
/Python/Templates/Django/ProjectTemplates/Python/Web/PollsDjango/app-admin.py
898eb59ef40b51c7c1a179375f53430f2d5f5b8c
[ "Apache-2.0" ]
permissive
wjk/PTVS
bf3880198ba35ae34b12872a86fe2b03d2a82180
184b6711a8700a7f9d78f6d6ac3b225f81a8b8b8
refs/heads/master
2020-12-14T16:11:40.486645
2020-01-17T20:45:15
2020-01-17T20:45:15
234,801,602
1
0
Apache-2.0
2020-01-18T21:41:27
2020-01-18T21:41:26
null
UTF-8
Python
false
false
669
py
""" Customizations for the Django administration interface. """ from django.contrib import admin from app.models import Choice, Poll class ChoiceInline(admin.TabularInline): """Choice objects can be edited inline in the Poll editor.""" model = Choice extra = 3 class PollAdmin(admin.ModelAdmin): """De...
[ "steve.dower@microsoft.com" ]
steve.dower@microsoft.com
1f9b7ac363f4e5ba9f5d25efa087f724e9cfa14e
67254af1798c9715e55a0a1457ddf4520210d22f
/2021届秋招/leetcode/链表/k个一组实现链表.py
7ef2beb9af6cec115525bf45301eee097da38c4c
[]
no_license
Aries5522/daily
0a3160494263871c361c1efa07e47899a7f2b4f7
d31a2c92e62b1699cda2ffa39395df5b372445b8
refs/heads/master
2021-08-10T11:49:17.954283
2020-09-07T15:39:41
2020-09-07T15:39:41
217,962,036
4
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
class ListNode: def __init__(self, x): self.val = x self.next = None def list2Node(nums): root = cur = ListNode(None) for i in nums: node = ListNode(i) cur.next = node cur = cur.next return root.next def print_(head): res = [] while head: res.appe...
[ "Aries5522" ]
Aries5522
1d67381581a090003013177bdf95c0a14cd224f9
c7a8be023b072f8a9eab0404556e37ba4ba8857e
/My_Django_Stuff/myDjangoEnv/lib/python3.6/_weakrefset.py
e4ebae2415877da84a02d1bd8072301185336225
[]
no_license
jbastawrose120/DjangoTutorial
efdbe6c83b7b6ba9024866aee11f5a0e66708f21
20a03fb98da26adfc2559cd95598a305b275540b
refs/heads/master
2020-04-30T05:06:11.414533
2019-05-24T02:14:07
2019-05-24T02:14:07
176,622,100
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
F:/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/_weakrefset.py
[ "jbastawrose120@gmail.com" ]
jbastawrose120@gmail.com
762c929c9132c0c6dcb7e70375cba733b0af371f
8e408d2efa879cc60bf2898e6705c91aae303097
/class10/timeseries.py
51c23d6a5dde47115a376edef7c5d4738769c4df
[]
no_license
mschachter/ml-biophysics-2014
ea1f05a68657f7a163511f3e16be835b94e530c3
d120e2acb76734655b5a4dc48b4cb36620b8dad8
refs/heads/master
2020-05-30T14:04:37.931556
2014-11-06T18:48:11
2014-11-06T18:48:11
24,829,676
2
0
null
null
null
null
UTF-8
Python
false
false
7,778
py
import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import Ridge def generate_sine_wave(freqs=[1.0, 2.0, 5.0], duration=5.0, sample_rate=1e3, plot=True): #generate vector that represents time num_samps = int(duration*sample_rate) t = np.arange(num_samps) / sample_rate #gener...
[ "mike.schachter@gmail.com" ]
mike.schachter@gmail.com
07fd478a0c99e3470575c12f1bb74ad945580d0c
e9a083fb04bf9061a2c49871cfbec9b37ff8f71b
/docs/source/conf.py
c609679b4ac4c8100904a33ce92c16726bc46c12
[]
no_license
olaurino/rama
7f86223d66f42c639672da6b8979eacaf56b28ed
2c88ca2263ccbf6d0737fea0ac5dc0341d71c53a
refs/heads/master
2021-01-25T14:49:32.330753
2018-06-04T14:25:27
2018-06-04T14:25:27
123,731,355
0
2
null
2018-05-08T13:25:28
2018-03-03T21:05:53
Python
UTF-8
Python
false
false
5,608
py
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
[ "olaurino@cfa.harvard.edu" ]
olaurino@cfa.harvard.edu
36e2367cd04b5957640725d4b5e176a6e2d4a2ec
60391b28bd2b11d7c905e8fc20ec049eb05e8f92
/lib/tests.py
fc271cced34e21d28d15cdfb68d1c0b783ea417d
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
serl/topoblocktest
d2adc8c886f4f637da7377c2c2ea2cce35e8b497
32870f863e128414b0f0f9b786815f38c35d7c73
refs/heads/master
2022-07-01T12:23:10.327429
2019-11-02T14:51:32
2019-11-02T14:51:32
58,321,253
0
0
MIT
2022-06-20T08:20:52
2016-05-08T16:34:10
Python
UTF-8
Python
false
false
9,666
py
import textwrap from .bash import CommandBlock def begin(): script = CommandBlock() script += '#!/bin/bash' script += 'umask 0000' # as the script will be run as root, this ensures that after you can play around as normal user ;) script += '' return script def counter_increment(**settings): ...
[ "livi@i3s.unice.fr" ]
livi@i3s.unice.fr
79800f0401cbb5ee3dfdafd55b2f0532cd565719
ab37cdd76b8d4da54ff1ce30b0fa2e3dfadd207f
/1001-1099/1008/1008.py
e2d869f2abde08e4f8eb119987332f9815576b5f
[]
no_license
hay86/timus
b163d94052d3dedd51c82f5c10874402f805c6e1
0d06073228c23538ca785938c862d2b5e08bda63
refs/heads/master
2023-03-08T06:34:28.707612
2021-02-20T14:38:48
2021-02-20T14:38:48
100,444,783
0
2
null
null
null
null
UTF-8
Python
false
false
1,553
py
import sys img = [[False for i in range(12)] for j in range(12)] def one(): for i in range(n): x, y = [int(j) for j in sys.stdin.readline().split()] img[x][y] = True if i == 0: x0, y0 = x, y v = [[False for i in range(12)] for j in range(12)] q = [(x0, y0)] v[x0][y0] = True print '%d %d' % (x0, y0) ...
[ "xukaifeng1986@gmail.com" ]
xukaifeng1986@gmail.com
81a081122381d85928f0ad8fb3aab7f699135e78
aca971629c16f16a4b0360669579d0751fd5da67
/src/indelPlot.py
f896ef722c39a732f5391609743e33d9627abe56
[ "MIT" ]
permissive
ngannguyen/referenceViz
43769ded8cb3c77445391e26233352a61ed72744
6990a00739a712ccd1371e996229882252fa8f91
refs/heads/master
2021-01-01T06:26:33.975514
2012-03-22T21:34:54
2012-03-22T21:34:54
1,750,339
1
0
null
null
null
null
UTF-8
Python
false
false
7,150
py
#!/usr/bin/env python """ Create Snp plots nknguyen at soe dot ucsc dot edu Jun 15 2011 """ import os, sys from optparse import OptionParser import xml.etree.ElementTree as ET #from numpy import * import libPlotting as libplot import matplotlib.pyplot as pyplot import matplotlib.pylab as pylab from matplotlib.ticker ...
[ "nknguyen@soe.ucsc.edu" ]
nknguyen@soe.ucsc.edu
b79cd911e54384cd26db6f16bcb60444a2e2f53c
dcbe98b20d12de456afdf1a0d7eafea03b347254
/src/ast/ast_node.py
bc7ef5cf60cc6fe132964c1c25981810cdd51ce1
[]
no_license
hborkows/TKOM
6c8cc257700b729f38ff9b4b8b3ebf90322096a5
115e45d620629177968a4cdd707b00d8a148e547
refs/heads/master
2020-09-27T09:51:54.716090
2020-01-19T20:18:06
2020-01-19T20:18:06
226,489,493
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
from typing import List, Optional class ASTNode(object): def get_representation(self) -> str: pass def get_children(self) -> Optional[List]: pass
[ "hubert.borkowski@hotmail.com" ]
hubert.borkowski@hotmail.com
b7f93333d8f7f87274baefcfac762f864f7617c2
f385e93fb799629318b6f5bbae1a3b29d62d8359
/database/citations/asuncion2012a.py
ea381f3189a4abf25a7944dc6845c8cf0f359501
[]
no_license
JoaoFelipe/ipaw-index
bf113649de497d2008922eb80f8ea3bf2cd6aba5
f8fe329f0c35b11c84bd76e7b7da7a465d380a02
refs/heads/master
2020-03-17T19:51:13.892958
2018-05-18T00:54:08
2018-05-18T00:54:08
133,880,857
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
# coding: utf-8 from snowballing.models import * from snowballing import dbindex dbindex.last_citation_file = dbindex.this_file(__file__) from ..work.y2012 import asuncion2012a from ..work.y2016 import reddish2016a DB(Citation( reddish2016a, asuncion2012a, ref="", contexts=[ ], ))
[ "joaofelipenp@gmail.com" ]
joaofelipenp@gmail.com
1d8418fc6edd086d8a53c8ff9b3b5c18aeddbd9d
b1249f4bae1106570601870d9e50f946fb1600f2
/0x01-python-if_else_loops_functions/0-positive_or_negative.py
a1fc89629667083b123b47fc3ece65490acb4010
[]
no_license
Eltotino/holbertonschool-higher_level_programming
275a1661589666194ffc3666bb9af8c1ec314983
5972c0d86f6a03f41861b35716276d79e1ccfe8b
refs/heads/main
2023-06-22T23:36:54.168404
2021-07-12T15:42:14
2021-07-12T15:42:14
259,333,569
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
#!/usr/bin/python3 import random number = random.randint(-10, 10) if (number < 0): print("{} is negative".format(number)) elif (number == 0): print("{} is zero".format(number)) else: print("{} is positive".format(number))
[ "totojaber1@gmail.com" ]
totojaber1@gmail.com
3eaa626d2ccbdec574056baced33f7ac3935a0e0
23acbd859a6f4ffa0296d092331a8ca83b79c543
/users/migrations/0005_auto_20200830_1602.py
c0f1b48a2c2bd2a89dfc5a4ba28ca991d551e438
[]
no_license
Timothy-Parteka/INVENTORY-MANAGEMENT-SYSTEM
0c0986174f8d7457103b83d9fe2b35b354bf30a5
bcd056c14b350e04abe0c82fd68f8789400ce45f
refs/heads/master
2023-02-12T18:22:20.120662
2021-01-13T13:40:15
2021-01-13T13:40:15
276,723,723
0
0
null
null
null
null
UTF-8
Python
false
false
1,794
py
# Generated by Django 3.0.8 on 2020-08-30 13:02 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0004_auto_20200701_0421'), ] operations = [ migrations.CreateModel( name='Department',...
[ "timothymweshen@gmail.com" ]
timothymweshen@gmail.com
2b64d7c87cb71a336307dcbab4db4d5d324b4e43
95f1541cac9e356b108fd4a7698dccd469f3996e
/backend/app/misc/tasks.py
1b2ff7d1a667b0fef02eb0b51a72ae62a22e53c2
[]
no_license
ramonsaraiva/multiplicae
f98c29e57cf53e358540fd590d55472311d9c382
29054abc83bad2309ab66698d7f3f3bbd683d570
refs/heads/master
2023-08-15T00:07:51.203417
2020-02-19T02:57:24
2020-02-19T02:57:24
238,992,039
2
1
null
2021-09-22T18:35:52
2020-02-07T18:00:24
JavaScript
UTF-8
Python
false
false
114
py
import dramatiq @dramatiq.actor( queue_name='default', max_retries=1, ) def healthcheck(): return 0
[ "ramonsaraiva@gmail.com" ]
ramonsaraiva@gmail.com
6dff353a0bd671343ab8740d4532e77f168e7ee7
c55a5a5f4b6acdb78a1c5e3cd722ecf5c4bb9257
/CodeForces And Random Practice Problems/Pangarm.py
ea10d32e2d1ea0d6686cdb5d127a2eae6066d936
[]
no_license
NazmulHayat/Competitive-Programming
9aeba8c12e31b1c240710dea3314a674062ae584
1aa432b81b1dd223d5414d40ad5a2807899a536f
refs/heads/master
2023-04-09T07:46:09.969017
2021-03-30T04:54:29
2021-03-30T04:54:29
289,615,276
0
0
null
null
null
null
UTF-8
Python
false
false
243
py
lst = [] i = int(input()) s = input() if(i<26): print("NO") else: s = s.lower() mylist = s.split() mylist = print(mylist) if(len(mylist) == 26): print("YES") else: print("NO")
[ "hayatnazmul@gmail.com" ]
hayatnazmul@gmail.com
d82ed1cfeb3e9cf9432826e65574bb198fceddb4
01dad4d1d2ffaf2fa070e99fe828d42f59a9f9d1
/src/pycrop2ml_ui/packages/SQ_Energy_Balance/src/openalea/Penman.py
ab023da150792ac8a482b0e9d2ed39cd94ea4ed8
[ "MIT", "BSD-3-Clause" ]
permissive
AgriculturalModelExchangeInitiative/Pycrop2ml_ui
5e210facf9689348bb57c16060967118b7c5f49a
3d5d2b87a74f0be306056b71808286922fef2945
refs/heads/master
2023-06-24T13:52:39.933728
2023-06-17T00:17:26
2023-06-17T00:17:26
193,912,881
0
4
MIT
2023-02-25T13:26:57
2019-06-26T13:44:34
Jupyter Notebook
UTF-8
Python
false
false
6,614
py
# coding: utf8 import numpy from math import * def model_penman(evapoTranspirationPriestlyTaylor = 449.367, hslope = 0.584, VPDair = 2.19, psychrometricConstant = 0.66, Alpha = 1.5, lambdaV = 2.454, rhoDensityAir = 1.225, specificHeatCapacityAir = 0.00101,...
[ "ahmedmidingoyi@yahoo.fr" ]
ahmedmidingoyi@yahoo.fr
c509a489439ea63675a461d4649b190defd866ce
66cc457d251021dae6d875dbef97d2d2402ba619
/main/urls.py
b663ff5e0f6ae78f2125722f54cce3c2f55a9d33
[]
no_license
Jayapraveen/Simple-chatbot
eb3f40316b3c67bc4f682b2793689233840dd809
a5117d5ed37b94d438ece5524d5934d400181847
refs/heads/master
2020-07-25T14:17:27.002689
2019-09-13T18:08:05
2019-09-13T18:08:05
208,320,220
0
0
null
null
null
null
UTF-8
Python
false
false
476
py
from django.conf.urls import include,url from django.contrib import admin from chatterbot.ext.django_chatterbot import urls as chatterbot_urls from main import views from main.views import ChatterBotApiView from django.views.decorators.csrf import csrf_exempt app_name = 'main' urlpatterns = [ url(r'^admin/', admin...
[ "jayapraveen.ar.2015.cse@rajalakshmi.edu.in" ]
jayapraveen.ar.2015.cse@rajalakshmi.edu.in
7a460b0c00e51c1c350cb5355df2ed784d08ca50
5a5b1cf029ef50c8f960cf283f7474046c5eebe8
/static/datatool/split.py
157985d42f365857e70387b5cc0737c9c01b72c4
[]
no_license
chenjuntao/gisdemo
e337f6949c0eabe68f58d3011894551ac801edfd
75a7b9a0e19d75ebf14a243ceb69d058def76106
refs/heads/master
2020-12-28T13:43:11.617876
2020-02-05T03:10:48
2020-02-05T03:10:48
238,354,596
0
0
null
null
null
null
UTF-8
Python
false
false
725
py
# coding:utf-8 import csv import os dir = './csv/in' page = 30000 print('打开要写入的文件...') f = csv.reader(open('./csv/allin.csv', 'r', encoding='UTF-8')) num = page count = 0 f3 = None writer = None csvHeader = [] # 表头 for i in f: if len(csvHeader)==0: csvHeader = i if num < page: writer.writ...
[ "cjt@snp.net" ]
cjt@snp.net
0284b2f0d100aa1fb76d5248cd791f88aa401612
8052c4237d2ef6da92c386d3199937b26a47cc46
/ckuser/migrations/0021_auto_20190608_1148.py
607f18e7ce94a45bdeffbf2cde0440119f75d74d
[]
no_license
prateekagarwal721/ck_backedn
58f1039902bfb87b930986069c393c11ebef7c80
70e9449171153d5c7850999d25b4e5562c64d8f0
refs/heads/master
2020-06-01T00:16:25.144131
2019-09-12T16:43:17
2019-09-12T16:43:17
190,553,412
0
0
null
null
null
null
UTF-8
Python
false
false
548
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('ckuser', '0020_auto_20190608_1147'), ] operations = [ migrations.Alter...
[ "prateek.agarwal@sporthood.in" ]
prateek.agarwal@sporthood.in
51d2268bc441dc7e0809af59b51d58def2641769
5f10ca2439551040b0af336fd7e07dcc935fc77d
/Binary tree/二叉树性质相关题目/求每层的宽度.py
dcef6bda78001250e1f9f1a433d3a54382bd13b5
[]
no_license
catdog001/leetcode2.0
2715797a303907188943bf735320e976d574f11f
d7c96cd9a1baa543f9dab28750be96c3ac4dc731
refs/heads/master
2021-06-02T10:33:41.552786
2020-04-08T04:18:04
2020-04-08T04:18:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,494
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2020/2/13 13:06 # @Author : LI Dongdong # @FileName: 求每层的宽度.py '''''' ''' 题目分析 1.要求:求每层中,左边第一个到右边第一个的宽度 2.理解: 3.类型: 4.确认输入输出及边界条件: 4.方法及方法分析: time complexity order: space complexity order: ''' ''' 思路:bfs + [node, index] 方法: deque record node and index (2* i...
[ "lidongdongbuaa@gmail.com" ]
lidongdongbuaa@gmail.com
9b28a494fb6b543207c34e1d6e2846be94ab030c
fea5ab6175de05ede2808e26b72cb6de6ae52aba
/poker/validators/royal_flush_validator.py
f8f72202575e6b874cbe185d50f5c12738c1a85e
[]
no_license
phamin2001/Texas-Hold-em-Poker
7fc71d285307a96b1e1577889c3c996b503d81e2
2299a25c2725b430c43e59879e903a656c8fca19
refs/heads/master
2022-11-12T14:02:42.491005
2020-07-07T06:18:04
2020-07-07T06:18:04
271,067,496
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
from poker.validators import StraightFlushValidator class RoyalFlushValidator(StraightFlushValidator): def __init__(self, cards): self.cards = cards self.name = "Royal Flush" def is_valid(self): straight_flush_validator = StraightFlushValidator(cards=self.cards) if straight_fl...
[ "amin.pahlavani@gmail.com" ]
amin.pahlavani@gmail.com
5ef60668d91237a987d9c330447fbc97da91786a
65f1cccaa0df91fff1bd8786a0a5f305c145a21a
/even.py
4af272baffb3dd775c5b3df6ca41b368d9312468
[]
no_license
sandeepny441/tom_git
16239bd71851f248104e5785acb0a84b3b9ed0cc
56e4327676b08de0d9880ff5a392080792bdcbeb
refs/heads/master
2023-05-31T14:59:53.260479
2021-06-27T20:44:24
2021-06-27T20:44:24
348,614,790
0
0
null
2021-06-27T20:44:24
2021-03-17T07:17:28
HTML
UTF-8
Python
false
false
112
py
def is_even(given_num): if given_num % 2 == 0: return 'even' return 'Odd' print(is_even(100))
[ "sandeepny441@gmail.com" ]
sandeepny441@gmail.com
55a5c60123c11c03dbae53d05a091e926626cf67
4807c5ce0bcbb7f3c678f21a0e02f586ef1862e2
/grainburn/grainburn.py
913730da3de86f1db42d47328385357b2e9aa961
[]
no_license
JacobRoth/JacobRothSketchbook
91ecb74ac993304b2959448f71da61920c0b1d60
c36c130dfc64a946adbdf88a2cb0b687de359e53
refs/heads/master
2021-03-12T23:15:17.217630
2014-04-01T20:24:56
2014-04-01T20:24:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,785
py
import matplotlib.pyplot as plt import matplotlib.image as mpimg import numpy as np import random import math def convertDown(image): rows,columns,_ = image.shape bufferedImage=np.eye(rows,columns) for row in range(0,rows-1): for column in range(0,columns-1): if image[row][column].all()...
[ "rothj1459@gmail.com" ]
rothj1459@gmail.com
8ed992846cecdd828e575dfa6c66da38336b9797
acf7457d3a799cb9bff12686d2d616688bcd4b5b
/packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_family.py
630d0965793bea6d3cb6b80383b246586092f423
[ "MIT" ]
permissive
plotly/plotly.py
f4f61639f08160f16195efc95b5901dc5a937346
975a704074f01c078e0fdfa32bdf17130bf89e69
refs/heads/master
2023-09-06T06:15:08.340035
2023-08-24T12:28:14
2023-08-24T12:28:14
14,579,099
14,751
2,989
MIT
2023-09-08T19:55:32
2013-11-21T05:53:08
Python
UTF-8
Python
false
false
554
py
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="family", parent_name="scatter.legendgrouptitle.font", **kwargs, ): super(FamilyValidator, self).__init__( plotly_name=pl...
[ "nicolas@plot.ly" ]
nicolas@plot.ly
4cf602dd90dff5469578d17432152af4c4ed5a52
b5758fdb0b0f757b045ae091e85007366a2b78ab
/opcua2mqtt.py
5d66c60a3718e2e716e428e61bbe5ad012aff823
[ "Apache-2.0" ]
permissive
tyrbonit/opcua2cloud
f5903e984ba325268fdf4ecd277b5f3677474818
32e1e745e4939f8d4fd51892d9a51230ffdfc198
refs/heads/master
2021-01-02T20:48:58.109135
2019-01-10T23:36:41
2019-01-10T23:36:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,930
py
import sys #sys.path.insert(0, "..") import time from opcua import Client #import context # Ensures paho is in PYTHONPATH import paho.mqtt.publish as publish import awsiot import redis MQTT_MODE = 'simple' # simple,simplewithpass,awsiot AWSIOT_AK = 'test' AWSIOT_SK = 'test' HOST = '127.0.0.1' SAVE_TO_REDIS_EN = Fals...
[ "aixi.wang@hotmail.com" ]
aixi.wang@hotmail.com
12c48d5ff16675e2a8f6a2d902504de1ea724719
3540272eb4522c637fb293a924a6ad8d7b365718
/tribune/news/models.py
33b78f25b5e2b10758918424db9589c053a886ce
[]
no_license
nevooronni/tribune
b0e80a4613758690702fa88eb99f44f4e8e66a30
7218d3514277ce408128b4e8c66da5639cf7dec4
refs/heads/master
2021-08-14T16:55:46.280863
2017-11-16T08:41:18
2017-11-16T08:41:18
110,561,868
0
1
null
null
null
null
UTF-8
Python
false
false
2,167
py
from django.db import models#import models class configured to allow us to communicate with the db import datetime as dt class Editor(models.Model):#created editor class inherits from model class first_name = models.CharField(max_length = 30)#charfield is the sql equivalent to varchar a string field for small to l...
[ "nevooronni@gmail.com" ]
nevooronni@gmail.com
5299ea0fe7a31a54d5deabcb2c8a6f8591fb6325
09c9600eccc223db658cf3ae4f5292333f22e3e7
/orange_manage/apps.py
22b81363b9618573a1a15de6cad9de58f8099247
[]
no_license
sy159/order_background_management
d19bfd209475731dce24b6a26f824fe0ab43fb37
0f419376ed90aca85ef1f517927c7a2b1fc8e2b6
refs/heads/master
2022-03-08T17:48:10.000382
2019-11-27T12:16:57
2019-11-27T12:16:57
149,939,020
1
0
null
null
null
null
UTF-8
Python
false
false
99
py
from django.apps import AppConfig class OrangeMangeConfig(AppConfig): name = 'orange_manage'
[ "snow@cqgynet.com" ]
snow@cqgynet.com
2c0897784bb77d41c6320fddcb72b830ce8528cb
53d23ecc25f53323e3cc2a22d2dc5fe6d9ffae57
/electrum/plugins/gpg_integration/__init__.py
258671bccf6d879b16f55cc1a1bc85ab1592361a
[ "MIT" ]
permissive
asfin/electrum
b10df9f7a51d9515d6a0ec03f7a4d2fdd7331f37
9abf5cda9b2906a0575b3629bccc4b1ceed8df49
refs/heads/master
2021-01-13T06:54:03.918146
2018-04-24T10:14:20
2018-09-07T14:57:00
34,674,696
2
2
null
2017-02-14T08:03:09
2015-04-27T15:27:36
Python
UTF-8
Python
false
false
250
py
from electrum.i18n import _ fullname = _('GPG integration') description = ''.join([ _('Allows to use your bitcoin private keys as familiar GPG keys'), '<br>', _('Open plugin window from main menu Tools->GPG tools') ]) available_for = ['qt']
[ "asfins@gmail.com" ]
asfins@gmail.com
902d047c818eadc130281316b90cfde772634bd0
6b1aaded6a6d7ad8133eb93f5570d087b9ecefc0
/57.py
a778a4be509d89c1f7027528296bead44d2f43f7
[]
no_license
huangyingw/Leetcode-Python
53a772e1ecf298c829c0f058faa54c420420b002
9513e215d40145a5f2f40095b459693c79c4b560
refs/heads/master
2021-07-16T10:10:02.457765
2020-07-01T05:35:21
2020-07-01T05:35:21
192,150,219
1
0
null
null
null
null
UTF-8
Python
false
false
813
py
# Definition for an interval. # class Interval: # def __init__(self, s=0, e=0): # self.start = s # self.end = e class Solution: def insert(self, intervals, newInterval): """ :type intervals: List[Interval] :type newInterval: Interval :rtype: List[Interval] ...
[ "tiant@qualtrics.com" ]
tiant@qualtrics.com
5ff636a6548041d3e2e3d0bf15865a94696a1f08
99364458e4fe84fc006fd90b7924915e23d2406f
/risk_assess/uncertain_agent/test_python_cpp_interface.py
2636ca4ccddb59383a5ae78441da7716962fe570
[]
no_license
yangkaia123/risk_assess
27cf4991f0901960dc74983fe76d735054f6bcc1
8da6a2d7e4332ebc7ee8d73202c56688167daedb
refs/heads/master
2023-05-15T09:04:52.220295
2020-07-12T20:23:38
2020-07-12T20:23:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,702
py
import ctypes from ctypes import cdll class AMS(ctypes.Structure): _fields_ = [('E_x', ctypes.c_double), ('E_y', ctypes.c_double), ('E_xy', ctypes.c_double), ('E2_x', ctypes.c_double), ('E2_y', ctypes.c_double), ('E_xvs', ctypes.c_doub...
[ "allenw@mit.edu" ]
allenw@mit.edu
844e243a462d989d07a4e429980a714f3f1d65f9
22f3a291ea76f63905fe781b4d5c94c1791ddb4c
/workflow/deploy/tensorflow-serving/src/app/entrypoint.py
30549ff4564d901677cc0ebeb53277c300972cdb
[ "MIT" ]
permissive
bgulla/jetson
529920442ca4ecfc4c49045510ff8f37515ea248
e037a99c9ca29e6c9331babcacbc0d530c8ec762
refs/heads/master
2020-06-25T01:01:46.044669
2019-07-25T13:12:39
2019-07-25T13:12:39
199,147,932
1
1
MIT
2019-07-27T10:37:51
2019-07-27T10:04:15
Python
UTF-8
Python
false
false
1,716
py
import os import signal import subprocess # Making sure to use virtual environment libraries activate_this = "/home/ubuntu/tensorflow/bin/activate_this.py" exec(open(activate_this).read(), dict(__file__=activate_this)) # Change directory to app os.chdir("/app") tf_server = "" api_server = "" s try: tf_server = su...
[ "helmuthva@googlemail.com" ]
helmuthva@googlemail.com
bfe91353f94b7324769a5908cb44a049673dd6e2
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/287/85098/submittedfiles/testes.py
890ae53b050f276e8465ffbca31d1de6d83407c7
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
88
py
# -*- coding: utf-8 -*- from minha_bib import* print(multiplicacao(2,3))
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
67752a7742ec7157fc73cc678de0694074b589de
9567b87d380540ca9c92de5fda66981029b831d9
/Yaml Converter/MakeROSMap.py
241629d9bb44cef6f4ab2c9ca656b8b7279d43e9
[]
no_license
Dhaour9x/cSLAM
782d97fcc5b03aa878604f9dab9caced2fc1873e
78cf2a2847e02430f13cec924175a6d08c9aa32b
refs/heads/master
2022-10-29T14:59:24.337726
2020-06-13T19:03:27
2020-06-13T19:03:27
272,068,722
3
0
null
null
null
null
UTF-8
Python
false
false
4,189
py
import math import os.path import cv2 # # This is a start for the map program # import pywt.tests.data.generate_matlab_data #import pywt prompt = '> ' print("What is the name of your floor plan you want to convert to a ROS map:") #file_name = eval(input(prompt)) file_name = input(prompt) print("You will need to ch...
[ "riadh.dhaoui@rub.de" ]
riadh.dhaoui@rub.de
e7f5a53908b335955397208487dc62f8fbd7f14e
5ccd5739764468538a1b52cc43dfbc800e480a82
/Common_Word_Forms_1.py
cab16cb1a347b78118153858f693b6896ea3446a
[]
no_license
dhmo1900/Python-Base-Word-Form-Finder
5cad5913bcb54b488625e6a11f0f8c644dd103cb
8441b37472d3fdab495517af973785559d682626
refs/heads/master
2022-11-18T06:16:49.000407
2020-07-10T02:15:42
2020-07-10T02:15:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
from urllib import request from bs4 import BeautifulSoup import nltk import distance import pprint pp = pprint.PrettyPrinter(indent=2) def contiguous_string_matches(main_s, s_compare): if len(main_s) < len(s_compare): main_s, s_compare = s_compare, main_s for i in range(len(s_compare)): if s...
[ "thom.ives@gmail.com" ]
thom.ives@gmail.com
be90578add9db3c84ccf82cfd059d0f9b9a205d0
c697fa30fbcb3af706318be11dd0445c817c0b68
/ACM ICPC Team.py
f21a0fc3b918845a587892df9deb17682cb4a0f9
[]
no_license
VishalDeoPrasad/HackerRank-Python
59df8ccd128d602dd0b28a4abf017608b1496486
7090634e806a88b7934e16a628a1edd97ba85a28
refs/heads/master
2023-05-01T00:33:56.371330
2023-04-28T10:06:10
2023-04-28T10:06:10
160,024,108
3
0
null
null
null
null
UTF-8
Python
false
false
734
py
def normalize_string(topic): new_topic = [] for i in range(len(topic)): temp_lst = [] for j in range(len(topic[0])): if topic[i][j] == '1': temp_lst.append(j+1) new_topic.append(temp_lst) temp_lst = [] return new_topic def ac...
[ "vishaldeoprasad@yahoo.com" ]
vishaldeoprasad@yahoo.com
3f64960bfcafeb82116b2ca0f42b1115cc47d3b8
974e81ec41f32900f3bd633f251227ed352edd79
/examples/01-simple.py
18a9cd86210e21059edda91d9e801f77f44de2b6
[ "MIT" ]
permissive
defcon201/wikipedia_ql
a3321f8bc43308b92fadfe40c1913d7644e8c666
5bae4ed8d1fbf9ba9c818d02a4a0905a97f31cd9
refs/heads/main
2023-08-25T22:33:12.148362
2021-10-13T19:26:03
2021-10-13T19:26:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
386
py
# Simple fetching of just a few properties from one pages from pprint import pprint from wikipedia_ql import media_wiki wikipedia = media_wiki.Wikipedia(cache_folder='tmp/cache') pprint(wikipedia.query(r''' from "Pink Floyd" { section[heading="Discography"] >> li { a as "title"; t...
[ "zverok.offline@gmail.com" ]
zverok.offline@gmail.com
0b65a0a577f66a922a2ce3ea908ed06aa11bc88f
95a064d1cb2d9e7f4f4bbfa4eb0713e28b0a440f
/RPC/Rpc_Server.py
71251b18db5154acd823602a17f10f8397416125
[]
no_license
gopiprasanthpotipireddy/Python-RabbitMQ
89302dc6b6cdaf27a44b792fda967d87894d55b0
f2f3a9bb3c9d0cc0a5566a1fd94409fff3a6bbe6
refs/heads/master
2021-01-06T13:30:24.478384
2020-02-20T08:08:11
2020-02-20T08:08:11
241,343,309
1
0
null
null
null
null
UTF-8
Python
false
false
915
py
import pika connection = pika.BlockingConnection( pika.ConnectionParameters(host='localhost')) channel = connection.channel() channel.queue_declare(queue='rpc_queue') def fib(n): if n == 0: return 0 elif n == 1: return 1 else: return fib(n - 1) + fib(n - 2) def on_request(ch...
[ "gopiprasanthp@virtusa.com" ]
gopiprasanthp@virtusa.com
d2303e3bc513f042b2df38e56dd4badb36243be0
80d32b5911a1d9527c357d02690ba47cb362aca7
/app/routes.py
a3f5b1f4632c0330de02a3c0da70813d268b46c7
[]
no_license
Shikhar-SRJ/flaskapp_CI_CD
0a12a4f11b10cef6dc630714b279a88c2f065f42
225a399b2ec98848cc8ff5ac11d5d0e5e2fc7b37
refs/heads/main
2023-08-23T17:18:50.183350
2021-10-25T05:54:37
2021-10-25T05:54:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,137
py
from app import app, db from flask import render_template, flash, url_for, redirect, request from app.forms import LoginForm, RegistrationForm, EditProfileForm, EmptyForm, PostForm, ResetPasswordRequestForm, ResetPasswordForm from flask_login import login_user, current_user, logout_user, login_required from app.models ...
[ "ptksuraj@gmail.com" ]
ptksuraj@gmail.com
57b906c83a2d61619b54bb2afe90bb43616f21ce
4111ca5a73a22174f189361bef654c3f91c3b7ed
/Lintcode/Ladder_47_BigData/128. Hash Function.py
6d7607ff24020011e66b6d9c8c4b6774644f2261
[ "MIT" ]
permissive
ctc316/algorithm-python
58b541b654509ecf4e9eb8deebfcbdf785699cc4
ac4580d55e05e93e407c6156c9bb801808027d60
refs/heads/master
2020-03-16T06:09:50.130146
2019-08-02T02:50:49
2019-08-02T02:50:49
132,548,222
0
0
null
null
null
null
UTF-8
Python
false
false
283
py
class Solution: """ @param key: A string you should hash @param HASH_SIZE: An integer @return: An integer """ def hashCode(self, key, HASH_SIZE): code = 0 for ch in key: code = (code * 33 + ord(ch)) % HASH_SIZE return code
[ "mike.tc.chen101@gmail.com" ]
mike.tc.chen101@gmail.com
5732900ceff22c44e5544b54d08656cd21a9af39
a80e0ad5821b4d83164f16c0f04a0559cba4c3e8
/papadimitriou/papadimitriou.py
cf902885d165167418c2414ae66c2029031d3867
[]
no_license
vnck/2SATSolver
e5645e22f4cef5a1da058ef659e6cc2e333eda0f
a7a29e01f2adc050819bb141e4c13924baa7b4fb
refs/heads/master
2020-04-01T04:51:02.144623
2018-10-31T08:17:55
2018-10-31T08:17:55
152,879,312
0
0
null
null
null
null
UTF-8
Python
false
false
2,358
py
import random import os import fileinput import math import time clauses = [] variables = [] def papadimitriou(fileName): text = open(fileName).read() lines = text.split("\n") lines = [line.strip().split(" ") for line in lines] varSize = int(lines[2][3]) clauses = [[int(line[0]),int(line[1])] for ...
[ "noreply@github.com" ]
noreply@github.com
aaa856e1b4ceb5000f6ed483577d1b5f78a93e9b
0ddcf5569f3214583ceb8ce65734d087bfe6e26f
/main.py
3dcd6c61f282de0d01112405ddb4c6b2c9cc6a6e
[]
no_license
kubawirus/pythonCanteraTrial
ad8ebab2173e3761ee77afcef5864cc73d35b600
f9455a312c0deb52f6fa189532c6a497fc4fb2e5
refs/heads/master
2023-05-01T05:12:27.325423
2021-05-11T12:24:44
2021-05-11T12:24:44
364,248,420
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
import cantera as ct import numpy as np
[ "k.wieremiejczuk@gmail.com" ]
k.wieremiejczuk@gmail.com
bd788fa1d51cbbadecdea78fe391360278fae038
d420f185ad12f0c963b0863a3ecaabbf5331527a
/HW5/reciprocal.py
8f0529ed8228699bc12c8d3653d33a9aba73b557
[ "MIT" ]
permissive
amitpatra/ISYE-6669-Deterministic-Optimization
b8357272a87a39554fe28e4074ccd60274cfa99a
0d6eefaa34f3e8e909f4109504fc3e2212d8725f
refs/heads/main
2023-03-21T04:54:32.678888
2020-12-20T19:47:08
2020-12-20T19:47:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,486
py
# Implement the Linear Reciprocal Maximization problem import gurobipy as gp import numpy as np from gurobipy import * id = 903515184 # Invoke Gurobi to solve the SOCP def solve_socp(id, m=400, n=50): gm = gp.Model("reciprocal") A, b = get_data(id, m, n) # print(A.shape, b.shape) # (400, 50...
[ "noreply@github.com" ]
noreply@github.com
c826ef5b94146713cbfb40ea8d2456a72ea50850
11137bde91389c04a95df6f6fdaf64f7f49f5f80
/introduction_MIT/16_2图表会骗人.py
582608abe22748eee617a7fb4bb7c90df1af46fb
[]
no_license
starschen/learning
cf3c5a76c867567bce73e9cacb2cf0979ba053d9
34decb8f9990117a5f40b8db6dba076a7f115671
refs/heads/master
2020-04-06T07:02:56.444233
2016-08-24T08:11:49
2016-08-24T08:11:49
39,417,895
0
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
#encoding:utf8 #16_2图表会骗人.py #绘制房价 import pylab def plotHousing(impression): '''假设impression是一个字符串,必须是‘flat’, ‘volatile’或者是‘fair’ 生成房价随时间变化的图表''' f=open('midWestHousingPrices.txt','r') #文件的每一行是年季度价格 #数据来自美国中部区域 labels,prices=([],[]) for line in f: year,quarter,price=line.split(' '...
[ "stars_chenjiao@163.com" ]
stars_chenjiao@163.com
ea29d994f42ebba9d6dc03fdd1e97c8201db4622
5eacabadc016ff67b913d66b88a5002865ff71e4
/tests/archives/cvt_archive_test.py
db2b4925c8ccd9d5d0cde2a569dc41f08278a6a3
[ "MIT" ]
permissive
Nikitaskla/pyribs
8e3d0ac580130c5389826f7c518591842accaa15
ef289a930e7a8a51286cf657f7e4b29551277350
refs/heads/master
2023-07-03T16:59:55.656682
2021-08-01T09:39:51
2021-08-01T09:39:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,825
py
"""Tests for the CVTArhive.""" import unittest import numpy as np import pytest from ribs.archives import AddStatus, CVTArchive from .conftest import get_archive_data # pylint: disable = redefined-outer-name @pytest.fixture def data(use_kd_tree): """Data for CVT Archive tests.""" return (get_archive_data(...
[ "noreply@github.com" ]
noreply@github.com
50d9115c118e9ba2d5ebc6b7d58c98818ecd010c
bd4734d50501e145bc850426c8ed595d1be862fb
/7Kyu - Growth of a Populationdef nb_year-p0- percent- aug- p- count - 0 while-p0-p- p0 - p0 - p0-percent/7Kyu - Growth of a Population.py
1259b444757fdd602a08df17a598257ae2dcc7d2
[]
no_license
OrdinaryCoder00/CODE-WARS-PROBLEMS-SOLUTIONS
f61ff9e5268305519ffeed4964589289f4148cfd
5711114ddcc6a5f22f143d431b2b2e4e4e8ac9fb
refs/heads/master
2021-10-23T09:09:45.670850
2019-03-16T13:24:17
2019-03-16T13:24:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
154
py
def nb_year(p0, percent, aug, p): count = 0 while(p0<p): p0 = p0 + p0*(percent/100) + aug count = count + 1 return count
[ "noreply@github.com" ]
noreply@github.com
3f7c1ecec5f580016a5068bd48f1de2040b2bf6b
0a801544da5ad2f1969348512f7def8fa9176c7d
/backend/simplicite_23801/urls.py
25d91cd59bdf8a1ad01544b6a94abcbe42abf6ab
[]
no_license
crowdbotics-apps/simplicite-23801
75477b76531c2c53992f74183e9e2e80aefd22e4
e6a6f569c61449e50988201cf58cc5203d23e039
refs/heads/master
2023-02-11T12:27:04.807579
2021-01-13T03:01:57
2021-01-13T03:01:57
329,176,579
0
0
null
null
null
null
UTF-8
Python
false
false
2,668
py
"""simplicite_23801 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
df437ae369a37495789bc3dcddaf0479010d41ea
728416d6e4dba67a0a85276f76bd59d3e857a284
/project/urls.py
0786cd4530e24ae874365301c1e96fa0b4aa8a99
[]
no_license
samilani/avacado
c80a4c21480d86b1c6cde05245464ed077d90221
c08e41f851e6e575775ef52750089013f386cd1a
refs/heads/master
2020-06-06T16:26:11.183489
2013-11-12T12:35:16
2013-11-12T12:35:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
from django.conf.urls import patterns, url from project import views urlpatterns = patterns('', url(r'^$', views.index, name='index'))
[ "milani.ahmad@gmail.com" ]
milani.ahmad@gmail.com
4d909ba4892e6c9c564466ba0ea7fe903b3857ab
8bc7ba8eb10e30b38f2bcf00971bfe540c9d26b7
/paxes_cinder/k2aclient/v1/virtualswitch_manager.py
6d956eb5bdf9ebcdab6aba2f1378e4c6151dbbdc
[ "Apache-2.0" ]
permissive
windskyer/k_cinder
f8f003b2d1f9ca55c423ea0356f35a97b5294f69
000ee539ee4842a158071d26ee99d12c7c0a87da
refs/heads/master
2021-01-10T02:19:51.072078
2015-12-08T15:24:33
2015-12-08T15:24:33
47,629,931
0
0
null
null
null
null
UTF-8
Python
false
false
1,938
py
# # # ================================================================= # ================================================================= """VirtualSwitch interface.""" from paxes_cinder.k2aclient import base from paxes_cinder.k2aclient.v1 import k2uom class VirtualSwitchManager(base.ManagerWithFind): """Mana...
[ "leidong@localhost" ]
leidong@localhost
0bdd466da74a7ca034ecd75ac4369832698933fc
cf582a6c4a45db58666dc2de66cfb7cdc50151e4
/account/authentication.py
704682ce691f91ac4cdf86b326a676cce94b66c9
[]
no_license
NankuF/bookmarks
361def76d0d3ad42ff0103371a576f4cd4bddaaf
88cd24cc6909211b3bfc90960891965c2e4e5605
refs/heads/master
2023-08-20T06:57:01.098014
2021-10-24T10:55:08
2021-10-24T10:55:08
413,335,312
2
0
null
2021-10-08T06:01:39
2021-10-04T08:24:05
Python
UTF-8
Python
false
false
1,450
py
from django.contrib.auth.models import User class EmailAuthBackend(object): """Выполняет аутентификацию пользователя по email Идентификационные данные сначала будут проверены ModelBackend ( см. в settings.py). Если этот бэкэнд не вернет объект пользователя, Django попробует аутентифи- циро...
[ "71669154+NankuF@users.noreply.github.com" ]
71669154+NankuF@users.noreply.github.com
0aa438918ed4b7436f3f4cf20ae451e99c599526
676edefaffabb933fe9336cf6c23aa049b6962b4
/mysite/cats/models.py
b74bb144c9ec6ebc480b5adf2e2c672e4cc65abd
[]
no_license
danielbaraniak/zadania-rekrutacyjne
917b2785e0d8e867e66ebe610f4deb4f147f8984
fba379c4688275f0328012cffef525bfb1e93848
refs/heads/main
2023-08-25T14:37:02.430574
2021-10-25T00:50:34
2021-10-25T00:50:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,367
py
from django.contrib.auth.models import User from django.db import models class Cat(models.Model): user = models.ForeignKey(User, on_delete=models.SET_NULL, null=True) name = models.CharField(max_length=50) color = models.CharField(max_length=20) is_male = models.BooleanField() def get_prays_numbe...
[ "daniel@example.pl" ]
daniel@example.pl
0509f599fc55aff09422b32059466ba37f55ba10
4b7deb5769a689a333efe7b3a32a6a0ac69d67bc
/windows/samples/python/sample_open3d_pclviewer.py
bb7249a9ea684bcdb953b157657f6deb39961a14
[]
no_license
ZC1231/SDK
cadc4b884b2f05fbd0d4b72448ea60e76c00fbae
13bc36b5ce8a76a30ad4d469a00e8df75203abfb
refs/heads/master
2022-11-29T06:12:49.086402
2020-08-11T12:38:33
2020-08-11T12:38:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,071
py
import sys, os import numpy as np import time import open3d as o3d import dmcam # -- init the lib with default log file dmcam.init(None) # -- init with specified log file # dmcam.init("test.log") # -- set debug level dmcam.log_cfg(dmcam.LOG_LEVEL_INFO, dmcam.LOG_LEVEL_DEBUG, dmcam.LOG_LEVEL_NONE) # -...
[ "U1@ip-192-168-254-95.cn-northwest-1.compute.internal" ]
U1@ip-192-168-254-95.cn-northwest-1.compute.internal
fcb2435eb093fb368a090ef2efed05fd1120970b
2e83b09448d2756ac0c8f77568086763391a43c8
/trackback.py
6014ed7933bc4f0d5720fe1f24124721456b4d4e
[]
no_license
raghvendra98/Computer-vision-OpenCV
f298cee5600bff7abfdaf9cc69ae1793affeb923
084b8f4061b3871a2103680af73301629f18df32
refs/heads/master
2023-02-17T01:45:53.735727
2021-01-16T13:42:31
2021-01-16T13:42:31
320,251,637
0
0
null
null
null
null
UTF-8
Python
false
false
685
py
import numpy as np import cv2 as cv def nothing(x): print(x) # Create a black image, a window cv.namedWindow('image') cv.createTrackbar('CP', 'image', 10, 400, nothing) switch = 'color/gray' cv.createTrackbar(switch, 'image', 0, 1, nothing) while(1): img = cv.imread('trex.png') pos = cv.getTrackbarPos(...
[ "50679225+raghvendra98@users.noreply.github.com" ]
50679225+raghvendra98@users.noreply.github.com
a4e7a4cadea98270cebf7bd8ab170c2f030ac42c
f0ec40da9043db89265b2f90f7c77f896b9344aa
/instaclone/migrations/0004_auto_20170724_0943.py
8a0c180cc08c42cdb1e0a091134b137a40d1d4c7
[]
no_license
shivajaat/InstaClone
9c5547837ec639195a93f316dcd82703d2e0b621
c0cabe48abde151920c5a480738523acee819a84
refs/heads/master
2021-01-02T08:35:36.497159
2017-08-01T17:16:11
2017-08-01T17:16:11
99,025,465
0
0
null
null
null
null
UTF-8
Python
false
false
640
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-24 04:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('instaclone', '0003_auto_20170724_0940'), ] operations = [ migrations.AlterF...
[ "shivajaat21@gmail.com" ]
shivajaat21@gmail.com
e463337960661352eec76273356b1323176686ca
04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29
/170/Solution.py
1ece9965f93617191e3d6e484aeefd64c54f0c67
[]
no_license
zhangruochi/leetcode
6f739fde222c298bae1c68236d980bd29c33b1c6
cefa2f08667de4d2973274de3ff29a31a7d25eda
refs/heads/master
2022-07-16T23:40:20.458105
2022-06-02T18:25:35
2022-06-02T18:25:35
78,989,941
14
6
null
null
null
null
UTF-8
Python
false
false
2,272
py
""" Design and implement a TwoSum class. It should support the following operations: add and find. add - Add the number to an internal data structure. find - Find if there exists any pair of numbers which sum is equal to the value. Example 1: add(1); add(3); add(5); find(4) -> true find(7) -> false Example 2: add(3...
[ "zrc720@gmail.com" ]
zrc720@gmail.com
d4e630393d97b23b24b61c540310af9eced66716
4d4fcde3efaa334f7aa56beabd2aa26fbcc43650
/server/src/uds/core/managers/userservice/comms.py
e2b06381d46b8a78ab640c8bf0c609b7fff00dda
[]
no_license
xezpeleta/openuds
a8b11cb34eb0ef7bb2da80f67586a81b2de229ef
840a7a02bd7c9894e8863a8a50874cdfdbf30fcd
refs/heads/master
2023-08-21T17:55:48.914631
2021-10-06T10:39:06
2021-10-06T10:39:06
414,489,331
1
0
null
null
null
null
UTF-8
Python
false
false
7,264
py
# -*- coding: utf-8 -*- # # Copyright (c) 2019-2021 Virtual Cable S.L.U. # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright not...
[ "dkmaster@dkmon.com" ]
dkmaster@dkmon.com
1b2a6c3181548e466eacfa3b040cbc883242e73b
35f1a21affd266e0069bfc5a1c83218847f13802
/pastie-5073437.py
9cc5c027ce00562a66e8461c02cfa8768964c92c
[]
no_license
KarenWest/pythonClassProjects
ff1e1116788174a2affaa96bfcb0e97df3ee92da
5aa496a71d36ffb9892ee6e377bd9f5d0d8e03a0
refs/heads/master
2016-09-16T15:20:26.882688
2014-02-21T20:07:57
2014-02-21T20:07:57
17,055,355
1
1
null
null
null
null
UTF-8
Python
false
false
772
py
#balance = 5000 #annualInterestRate = 0.18 #monthlyPaymentRate = 0.02 months = range(1, 13) # 1, 2, ... , 11, 12 owe = balance # It made sense to me to call this total amount oweing totalPaid = 0 for month in months: minPay = owe * monthlyPaymentRate # calculate our minimum payment interest = (owe - minPay) *...
[ "KarenWest15@gmail.com" ]
KarenWest15@gmail.com
51bacc265849e99d5638fe2aa84fb25204c57781
a0dda8be5892a390836e19bf04ea1d098e92cf58
/叶常春视频例题/chap05/5-2-9-生词清单.py
6c9697103cde9015e7e96499929c29627c18643d
[]
no_license
wmm98/homework1
d9eb67c7491affd8c7e77458ceadaf0357ea5e6b
cd1f7f78e8dbd03ad72c7a0fdc4a8dc8404f5fe2
refs/heads/master
2020-04-14T19:22:21.733111
2019-01-08T14:09:58
2019-01-08T14:09:58
164,055,018
1
0
null
null
null
null
UTF-8
Python
false
false
307
py
# 例5-2-9 生词清单 new_words = [] for i in range(1, 101): word = input("输入生词:") if word == "*": break # break语句的作用是跳出循环,执行循环后面的语句。 if word not in new_words: new_words.append(word) print("生词清单:", new_words)
[ "792545884@qq.com" ]
792545884@qq.com
b6accd03937aff683e9c67bcc79daa3e0d5517c3
5f80ca7e63eef57c044d937d60a6e3d6e8f138cc
/b2week4.py
adebb2539d6fac6ce435a543badb661b745bb0e4
[]
no_license
sjerkovic/Bioinformatics-specialization
49125231650a2db1423f3f2ef49130e99b754bd6
1d599934675c8663a61fdedd8944aea0e2cd8ea6
refs/heads/main
2023-04-15T20:31:33.249693
2021-05-02T22:11:42
2021-05-02T22:11:42
363,510,584
0
0
null
null
null
null
UTF-8
Python
false
false
287
py
def spectral_convolution(spectrum): spectrum_int = sorted([int(v) for v in spectrum.split()]) convolution = [] for i in spectrum_int: for j in spectrum_int: a = i-j if a>0: convolution.append(a) return convolution
[ "noreply@github.com" ]
noreply@github.com
5f844ff0add74663d1b5f8196c9802f858ac8f5b
ea384acfec1ae21bc8583258ecaa187ded4b22d6
/data/base/prototypes/entity/miningDrills.py
9f855b6f52051c33e371df5debe3a40a633cb7d9
[ "MIT" ]
permissive
cmk1988/Jactorio
da03e97d0fa8bfbf9428e45aa2e4772c0ea9542b
4056b4c16614d566ec8d90b250621e03645bf4d2
refs/heads/master
2023-03-28T03:05:24.337666
2021-03-13T20:31:30
2021-03-13T20:31:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,510
py
import jactorioData as j def addSprite(spritePath): return (j.Sprite() .load(spritePath) .frames(8) .sets(8) ) def createDrill(name, icon, spriteN, spriteE, spriteS, spriteW): (j.MiningDrill(name) .rotatable(True) .pickupTime(0.1) ...
[ "jaihysc@gmail.com" ]
jaihysc@gmail.com
abb8d377bfc14fc3f720ebee1401edf33b988493
e0ea106f98cf3bff4a9473d4b225f56da60314d6
/percy/__init__.py
a1e13d8a562a1a9380d0e06e996b210fa34e65a9
[ "MIT" ]
permissive
getsentry/python-percy-client
e80dbf257a168cd08ed2af4cf0fbcc80f20ddaac
c3a80ed567ad40b2f1eaaea76f0886aa6f0367eb
refs/heads/master
2023-08-05T23:24:46.855782
2017-07-14T00:45:20
2017-07-14T00:45:20
97,176,225
1
2
MIT
2020-10-27T22:44:01
2017-07-14T00:32:31
Python
UTF-8
Python
false
false
285
py
# -*- coding: utf-8 -*- __author__ = 'Perceptual Inc.' __email__ = 'team@percy.io' __version__ = '1.0.1' from percy.client import * from percy.config import * from percy.environment import * from percy.resource import * from percy.resource_loader import * from percy.runner import *
[ "mike@fotinakis.com" ]
mike@fotinakis.com
927c002da1456a2be2e42271cff26c52213d5fc3
85c594b9f5af241d25a4957ba57c65cc1b473008
/pywrap/setup.py
43dced996b3fb659e394fca25776f618590906ed
[]
no_license
jeffli678/autoit
84dca4a78b892a0ab8a7b00c3682481c70d667d3
a0e57b382abe3d4caed9d2371672fd003bed4c61
refs/heads/master
2021-05-27T10:58:32.741270
2012-10-10T16:55:30
2012-10-10T16:55:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
from distutils.core import setup, Extension import platform osname = platform.system() if osname == "Windows": shared_libs = [] else: shared_libs = [] module = Extension('pyautoit', sources = ['pyautoit.cpp'], libraries = shared_libs, library_dirs = [], extra_objects = ["../build/lib/libautoit.a"], ) se...
[ "analyst004@gmail.com" ]
analyst004@gmail.com
d155707dd0625574b9dc3d610d97d6cc26fbfe3f
8c2d17c1dd5409d63bde7907cdee4adaf4e9443a
/day_3.py
81eac927ebee6866133652e83eeba8b84259704f
[]
no_license
kmb5/AdventOfCode2019
f4099686028f7ddd5895918c9c55a7080936cc8c
f10dce035d6134800b4c83e07e1aa2a40061f49e
refs/heads/master
2020-12-01T21:19:46.357511
2019-12-30T09:41:20
2019-12-30T09:41:20
230,774,194
0
0
null
null
null
null
UTF-8
Python
false
false
2,653
py
#import pygame #from pygame.locals import QUIT from PIL import Image, ImageDraw def main(): filename = 'inputs/day_3_input.txt' with open(filename) as f: puzzle_input = f.read().splitlines() solution_part_1 = part_1(puzzle_input) print(f'Part 1 solution: {solution_part_1}') ...
[ "noreply@github.com" ]
noreply@github.com
c886c20cf7de550debdfb0a88d9edcbafb45a992
0726db2d56b29f02a884885718deeddbf86df628
/lienp/visualize.py
af217e55f8ec1524e381eb022bcd47bbb2f01101
[]
no_license
makora9143/EquivCNP
515dfd95557d8d3a21d3fc0f295ce885a9deb913
a78dea12ab672e796c86427823c9f1b2fdd8df8d
refs/heads/master
2023-03-17T04:34:26.320055
2021-03-05T18:02:18
2021-03-05T18:02:18
254,292,834
5
0
null
null
null
null
UTF-8
Python
false
false
4,239
py
import io import PIL.Image import matplotlib.pyplot as plt import torch from torchvision.transforms import ToTensor, ToPILImage from torchvision.utils import make_grid def mnist_plot_function(target_x, target_y, context_x, context_y): img = torch.zeros((28, 28, 3)) img[:, :, 2] = torch.ones((28, 28)) i...
[ "makoto.kawano@gmail.com" ]
makoto.kawano@gmail.com
a1b2a9fb37f905611061cfcd13a857ef8d26ffe9
e068f64dfbcc00ae4c84db0432b9fbcc8d2df0c7
/orchestra/google/marketing_platform/utils/schema/erf/TargetUnion.py
6f7fed3d24853e27ba56bee71d7ecb070e656b11
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
trakken/orchestra
947d58bbe9a645c3554c295dd4512e86b67641a5
4803530a7df9c685893aca87250e3f736de23bc8
refs/heads/master
2022-12-09T04:05:50.871943
2020-03-02T16:09:49
2020-03-02T16:09:49
295,346,069
0
0
Apache-2.0
2020-09-14T08:01:09
2020-09-14T08:01:08
null
UTF-8
Python
false
false
1,201
py
########################################################################### # # Copyright 2017 Google Inc. # # 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 # # https://www.apache.org/...
[ "kingsleykelly@google.com" ]
kingsleykelly@google.com
8d44b23e3c33f8af0e8609deae0bf22a79867a27
20d87b9d0bac919a7fd9c07af940b5813784b1f6
/flask_sqlite_sqlalchemy/app.py
8d3f610ac364d8124add2dd5a33a4f9698ada2e7
[]
no_license
anacarolinacv/api-python-flask-example
679e26bc5a43e64aab2457b95ba1013bad951056
96438e369084af6e8f6bcd02f437e331b6b67abe
refs/heads/main
2023-06-20T00:01:56.811601
2021-07-15T01:15:49
2021-07-15T01:15:49
386,044,169
2
0
null
null
null
null
UTF-8
Python
false
false
331
py
from flask import jsonify from marshmallow import ValidationError from na import ma from db import db from server.instance import server api = server.api app = server.app @app.before_first_request def create_tables(): db.create_all() if __name__ == '__main__': db.init_app(app) ma.init_app(app) se...
[ "ana.vasconcelos@ccc.ufcg.edu.br" ]
ana.vasconcelos@ccc.ufcg.edu.br