blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
5
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
41
license_type
stringclasses
2 values
repo_name
stringlengths
7
96
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
58 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
12.7k
662M
star_events_count
int64
0
35.5k
fork_events_count
int64
0
20.6k
gha_license_id
stringclasses
11 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
43 values
src_encoding
stringclasses
9 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
7
5.88M
extension
stringclasses
30 values
content
stringlengths
7
5.88M
authors
listlengths
1
1
author
stringlengths
0
73
cb5806652dd6da026afc979dedd514931ea72e0d
4dda601cb02b404bc0ae25f984825641ddb135fe
/scuole/campuses/migrations/0018_auto_20230324_1538.py
dfd660bed1b58acca9e972a52309b108928de740
[ "MIT" ]
permissive
texastribune/scuole
d89e49d6bf42d6476a8b2e5a4ebe6380c28e9f60
155444e313313ba484d98d73d94d34e9b8f57fbe
refs/heads/master
2023-06-28T02:52:40.037200
2023-05-22T21:51:15
2023-05-22T21:51:15
35,112,798
1
0
MIT
2023-06-12T20:04:49
2015-05-05T17:03:23
Python
UTF-8
Python
false
false
6,271
py
# Generated by Django 3.1.12 on 2023-03-24 15:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('campuses', '0017_auto_20230324_1520'), ] operations = [ migrations.AlterField( model_name='campusstats', name='acco...
[ "carla.a.astudillo@gmail.com" ]
carla.a.astudillo@gmail.com
7b0ff48f0a0173f17521f7f8579ec29be80ff5ba
2e92e5e73422c381cde2926f77cc2ce73e2edffa
/s3_file_check.py
ddd0b8e7f7ca0d01365488356535f0e59ddcecce
[]
no_license
teng1/python-s3-check
4492b9e9e7298c635831423e778012729c7a66aa
c6b297986274df29eb4e7e5af5360e4acb7b6576
refs/heads/master
2020-05-30T17:56:13.686560
2019-06-02T19:28:04
2019-06-02T19:28:04
189,886,354
0
0
null
null
null
null
UTF-8
Python
false
false
1,624
py
import boto3 import re import datetime from operator import itemgetter s3 = boto3.client('s3') client = boto3.client('s3') s3_bucket = 'mybucket' s3_prefix = 'myprefix' def s3_list_objects(bucket, prefix): """Gets a python list of dictionaries of all S3 object properties matching the bucket and prefix.""" pa...
[ "noreply@github.com" ]
noreply@github.com
a5328528846152c1bd69b79fa4f5920c31fd2652
3bcad3ca2f3f3b3a93041a844cdfc60598181c91
/Part3/utilities/losses.py
4166bc7f5e40e20543145d00cefa1ba13fc20ed1
[]
no_license
DMarshallDeveloper/Machine-Learning
474e6337afde2a27bcf88142685c5597351474a8
6ded473d7f391f5098d2d3ea75be58b74b617663
refs/heads/main
2023-04-30T18:20:11.397336
2021-05-23T08:59:47
2021-05-23T08:59:47
370,002,650
0
0
null
null
null
null
UTF-8
Python
false
false
858
py
# -*- coding: utf-8 -*- """ A function used to compute for the loss """ import numpy as np def compute_loss(y, x, theta, metric_type): """ Compute the loss of given data with respect to the ground truth y ground truth x input data (feature matrix) theta mode...
[ "53842370+DMarshallDeveloper@users.noreply.github.com" ]
53842370+DMarshallDeveloper@users.noreply.github.com
b0df4eace34d430063c111b44bb84d0c2cacf364
e6ee1044aff06f5f1826543a03da811bb007c1d1
/qa/rpc-tests/test_framework/util.py
6bb66b61fe0a6eb693c78caa35f89c2b761eddca
[ "MIT" ]
permissive
ssghost/litecoinz
b7ca54aba47bb1f6f6980ab3f831c97b19aca3b6
eef13e8349dc83528dda4a00d0013e240a1f53db
refs/heads/master
2020-05-25T02:15:51.902536
2019-04-13T14:09:23
2019-04-13T14:09:23
187,572,391
1
0
null
2019-05-20T05:20:16
2019-05-20T05:20:16
null
UTF-8
Python
false
false
15,931
py
# Copyright (c) 2014 The Bitcoin Core developers # Copyright (c) 2017-2018 The LitecoinZ developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # # Helpful routines for regression testing # # Add python-bitcoinrpc to module ...
[ "team@litecoinz.info" ]
team@litecoinz.info
a1ce721648437c692be680703e759af641f629a4
370eb3d601cba2d791a7c690896d3504b3204c48
/car_speech_rec/CarAudio/settings.py
b2f19fe0df1b292619a84d3c306dbc7d86ec3033
[]
no_license
marchboy/python_machine_learning
ba558efa2bc016964251c0daa0276d6115e39bc2
7d2cae69930f381fe2029f58e977b55affb5e88b
refs/heads/master
2021-07-15T09:05:02.252006
2020-01-17T09:35:49
2020-01-17T09:35:49
132,924,711
1
2
null
null
null
null
UTF-8
Python
false
false
2,504
py
#!/usr/bin/env python #-*- coding: utf-8 -*- import os import time import logging MYSQL_INFO = { 'host':'localhost', 'user':'root', 'passwd':'mariadb', 'db':'test', 'charset':'utf8' } # MYSQL_INFO = { # 'host':'localhost', # 'user':'testuser', # 'passwd':'testpwd258*', # 'db':'t...
[ "jjgdut@163.com" ]
jjgdut@163.com
c16ff949874ec6e391680cf0a2e5becac995f1e8
ef853c148a2bfc0def7587f316da1f84d93b1785
/myproject/app/models.py
db390fa5e856bcaa841960fa403fd35fd65b365f
[]
no_license
gitget2322/goal_web
fd7391621d689e83075b55d715e8923b636d1f8d
0544c9c6da29da387f92195b183c87456303a171
refs/heads/master
2021-01-20T07:28:05.059072
2017-08-27T15:37:26
2017-08-27T15:37:26
101,540,619
0
0
null
null
null
null
UTF-8
Python
false
false
6,527
py
#coding=utf-8 from werkzeug.security import generate_password_hash,check_password_hash from __init__ import db from itsdangerous import TimedJSONWebSignatureSerializer as Serializer from flask import current_app from flask_login import UserMixin,AnonymousUserMixin import hashlib from flask import request #权限常量 class P...
[ "hcc96@outlook.com" ]
hcc96@outlook.com
38f5936465861ffb9a9e1b63f3e2f4926c1f27f6
89fd384acfd1b90d398fb41a1c515b42b5a43ccf
/snakes/Caliban.py
a0d456cb092d3de5370a02055ca74a8c135c7198
[]
no_license
slippedandmissed/CodeSnake
2fb4cbe091e20af9184db1ea41329db7e8c0ba84
b771aa8bd240b4d1c9cefaf85acb738ac95f97c5
refs/heads/master
2022-03-21T05:38:52.710428
2019-09-10T18:05:30
2019-09-10T18:05:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,642
py
from operator import add import random name = "Caliban" myHistory = [] myLength = 1 oldPelletPos = [-1, -1] def getDist(arg0, arg1): vector = [arg1[i]-arg0[i] for i in range(len(arg0))] distance = sum([abs(i) for i in vector]) return [vector, distance] def isTurningBack(myPos, direction): global myL...
[ "noreply@github.com" ]
noreply@github.com
b149655165dbfc3253e689f968488cd68f3e18c6
3e660e22783e62f19e9b41d28e843158df5bd6ef
/script.me.syncsmashingfromgithub/smashingfavourites/scripts/oldscripts/smashingtvextended.py
23aa7191d67b111064220b6ce41ecbc4caa91859
[]
no_license
monthou66/repository.smashingfavourites
a9603906236000d2424d2283b50130c7a6103966
f712e2e4715a286ff6bff304ca30bf3ddfaa112f
refs/heads/master
2020-04-09T12:14:34.470077
2018-12-04T10:56:45
2018-12-04T10:56:45
160,341,386
0
0
null
null
null
null
UTF-8
Python
false
false
5,059
py
# -*- coding: utf-8 -*- # opens tv channel or guide groups via smashingfavourites and / or keymap. import os import os.path import xbmc import sys # make sure dvbviewer is running - enable and wait if necessary def enable(): if not xbmc.getCondVisibility('System.HasAddon(pvr.dvbviewer)'): xbmc.executeJSON...
[ "davemullane@gmail.com" ]
davemullane@gmail.com
434bebc7cbd0dff66c53188da6ab39dc4e50735f
7ca7eb242d5c2211bead3039ef8d2271a473bf00
/ce86.py
345e2164b3e2be729d3feb48a3c597ec651290ec
[]
no_license
raman934/python-2019
613214da5f4215f1db507321d94ac9d29784c126
ba5cf4e2204349e3bc716d8a7ef68a863d74b547
refs/heads/master
2020-06-25T04:12:56.717409
2019-10-02T07:33:56
2019-10-02T07:33:56
199,197,390
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
# RG # 7.3 # todo learn def is_palindrome(s): n = len(s) if n == 1: return True elif s[0] == s[n - 1] and is_palindrome(s[1:n - 1]): return True return False print(is_palindrome('level'))
[ "noreply@github.com" ]
noreply@github.com
edc5c3eb6a2016b78d59f991f388998fe03d5bae
8b3f06622b801801db3587e74e2c8ccf7227c25b
/models.py
96a74f922609920396615303689b8aeb73f207b8
[]
no_license
mayuri-shah/warbler
2197b491f6f40f02e75471b5b7bed6dc75bef7e0
3ab262a86609e56efafbb1d2486fa8afcf20bb52
refs/heads/main
2023-04-28T19:37:39.626844
2021-05-26T14:28:48
2021-05-26T14:28:48
371,063,688
0
0
null
null
null
null
UTF-8
Python
false
false
4,578
py
"""SQLAlchemy models for Warbler.""" from datetime import datetime from flask_bcrypt import Bcrypt from flask_sqlalchemy import SQLAlchemy bcrypt = Bcrypt() db = SQLAlchemy() class Follows(db.Model): """Connection of a follower <-> followed_user.""" __tablename__ = 'follows' user_being_followed_id = ...
[ "mayurishah0408@gmail.com" ]
mayurishah0408@gmail.com
e87d75c1630684e37d72f6c38d6cea9b33695223
2471c87c3338eec3121499b34cb5684fd2eb9390
/blackjack/blackjack.py
d7820d1aa6d6285eaaccd23eb28d61d413ecb206
[]
no_license
nums11/OpenAIGym
0c893c9a086ea4ea6590bca7aa79e24103fada60
5df988497426645dc229cccce1ca35fe7d880377
refs/heads/main
2023-04-16T07:54:27.282401
2021-04-12T21:55:43
2021-04-12T21:55:43
346,795,159
0
0
null
null
null
null
UTF-8
Python
false
false
4,927
py
import gym import numpy as np from tqdm import tqdm import random from agents.simple_q_learning_agent import SimpleQLearningAgent from agents.advanced_q_learning_agent import AdvancedQLearningjackAgent from agents.simple_monte_carlo_agent import SimpleMonteCarloAgent from agents.advanced_monte_carlo_agent import Advanc...
[ "numsmt2@gmail.com" ]
numsmt2@gmail.com
906e3e03a8bec34146c12f47b27c47b30a868b4b
91a5afd451c999092838d6cf8c3b8478783750ad
/ch03_Neural_Network/ex03_MNIST_example_and_batch.py
846049a0c6c2018337daf51e7c1e3345b7ef4610
[]
no_license
DeokO/Deeplearning-from-scratch
eda7c66b53cdcaf43368bd26753bd5463f0c1e08
a1c902871d243f6c510231d09e9c65decb75361d
refs/heads/master
2021-06-24T14:58:08.168127
2017-09-13T06:03:24
2017-09-13T06:03:24
103,262,108
1
0
null
null
null
null
UTF-8
Python
false
false
3,545
py
# coding: utf-8 #MNIST : 28*28의 회색조 이미지이며, 각 픽셀은 0부터 255의 값을 가짐. 숫자 label이 붙어있음. 학습데이터 60,000장, 시험 데이터 10,000장 import sys, os sys.path.append(os.pardir) #부모 디렉터리의 파일을 가져오기 위해 path를 지정해둔다. from dataset.mnist import load_mnist #처음 한번은 몇 분 정도 걸림 (x_train, t_train), (x_test, t_test) = load_mnist(flatten=True, nor...
[ "noreply@github.com" ]
noreply@github.com
5d30285999bbb36f4f2e1fd387a252661c7caafe
988c1009561153d0d7682c833b03babe4c2ce12d
/Qust/q3.py
cc2a39cc738dd387d0b426b38fc32855670f53b0
[]
no_license
shibushimeiyoumingzile/week1
f61c9da316b35db07236853de42e5aaf8c50561a
6bd63c287f1a8e26141324e00668b65b997d702d
refs/heads/master
2020-04-24T09:44:15.210920
2019-02-21T12:56:11
2019-02-21T12:56:11
171,871,615
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
import random list = [] for i in range(1,21): a = random.randint(1,10) list.append(a) print(list) li = sorted(list[::2],reverse=True) print(li)
[ "304803570@qq.com" ]
304803570@qq.com
9e72b47e9121173ec1189fe4f3ee46d3f7ef2635
4062ffcc0fdd4308aa75e4883a02b190a802759b
/backend/core/urls.py
d2de78f5f85479db5ae4933609eaee1a373314c6
[]
no_license
5000eliteprw/RestaurantReview
89be210a6268855c9add0e47276b84e71b5df384
547e648eaaa11ee79b0a46b82f6203543d48920f
refs/heads/master
2023-06-16T15:18:01.277155
2021-07-10T08:06:14
2021-07-10T08:06:14
384,647,110
0
0
null
null
null
null
UTF-8
Python
false
false
966
py
"""core 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...
[ "karl00814@outlook.com" ]
karl00814@outlook.com
b4648d3ef6b9bf7f0f856176fd2bb007ac18a41b
181b482a7089bb891c8d2af63fd6ff366be6f703
/passtable/table.py
092c099c72d20447ef6575a05756ba85baa80a26
[]
no_license
mferland/experiments
9f30bed1fcdba07cba58e52f3577c76f52df22d6
e760519f0e702371504fc683b873ad85b75d5595
refs/heads/master
2020-07-02T11:58:06.272116
2016-04-02T00:10:44
2016-04-02T00:10:44
52,111,544
0
0
null
null
null
null
UTF-8
Python
false
false
2,972
py
#!/usr/bin/python def split_list(alist, chunks=1): length = len(alist) return [ alist[i*length // chunks: (i+1)*length // chunks] for i in range(chunks) ] def distribute(string, chunks): if chunks == len(string): # i.e.: 'abc' in 3 chunks ==> 'a', 'b', 'c' return list(string)...
[ "marc.ferland@gmail.com" ]
marc.ferland@gmail.com
019224f7f5c9f1c5399ec71d8eeed014832fc4f8
4f56670a3c4c8c2d3c269c0ee8ff47a4db31a43a
/craps_classes.py
c05cc83852655cf0754bf95ee35e6c3e8729e77b
[]
no_license
mejongetje/Craps
a663e1751f36a90f02c68d9478c55e767c42b5f2
9869b290b3ae197e3181208d7c6c96a859c86d70
refs/heads/main
2023-07-02T04:08:57.482165
2021-08-08T12:29:47
2021-08-08T12:29:47
393,954,025
0
0
null
null
null
null
UTF-8
Python
false
false
620
py
import random class Die: def __init__(self, eyes=6): self.eyes = eyes def throw_die(self): result = random.randint(1,self.eyes) return result class Player: players = [] def __init__(self, name, position=0, balance=50): self.name = name self.balance = balance self.position = position __class...
[ "noreply@github.com" ]
noreply@github.com
dd814c9e5a365e583776871999a9fa14e4d4e014
0e33389f026a7b249e46825dd0d7c192cee91666
/db.py
13d5717dabe0f8099aadc9472ac570b16aa993e5
[]
no_license
sachinprajapati/paym
59b17fc97dfaa279ddbc236c49822ef257fa7195
f5f87525e2618e327930957d2209ced549db4b89
refs/heads/master
2023-02-16T06:48:48.513720
2021-01-18T12:09:04
2021-01-18T12:09:04
328,702,317
0
0
null
null
null
null
UTF-8
Python
false
false
2,146
py
from settings import * class DB(): db_name = dir_path+'/demo.db' conn = None curr = None table = None schema = """CREATE TABLE Cards ( id integer PRIMARY KEY AUTOINCREMENT, card_num int NOT NULL UNIQUE, date text NOT NULL, cvv int NOT NULL, pin int NOT NULL ); CREATE TABLE Trans...
[ "tavarsachin@gmail.com" ]
tavarsachin@gmail.com
bae738bc7e7a8bb92e7ac2548c71d0c31bd31a99
6197379b99f2de08bc01c495cee1666feec732eb
/rexster_rest/client.py
79b6e132354103b339ae2ff8f7b4601f08ada24d
[]
no_license
windj007/python-rexster-rest
8160e149c8afd465ac59697dacf6bccaa1f75831
cd8119961315e890680ec965b6cb0be2b604da22
refs/heads/master
2020-03-28T18:52:30.104520
2015-09-01T22:25:02
2015-09-01T22:25:02
41,481,666
1
0
null
null
null
null
UTF-8
Python
false
false
11,496
py
import os, glob from pyarc import ClientBase from rexster_rest.query import Q, format_typed_value __ALL__ = ['RexsterClient', 'Dir', 'Q'] class Urls: GRAPHS = '/graphs' GRAPH = GRAPHS + '/{graph}' VERTICES = GRAPH + '/vertices' VERTEX = VERTICES + '/{vertex_id}' INCIDENT = VERTEX + '/{direction}...
[ "windj007@gmail.com" ]
windj007@gmail.com
6d3a4a146ddc89f0e0c9dd1362b0945b5dffba41
1d2b1e1d2573f15ec964235fed2b76b3436735f1
/agents/simple_agent.py
bf55f079a456dee0c413eb243fb2731d5c19713f
[]
no_license
hellovertex/hanabi
8e7eeefd27b8237f0b393eb9690920b64755dcaa
e8aefac46a5814296a5499b99d1c07bf5a6e9964
refs/heads/master
2023-01-07T04:40:38.671048
2020-09-24T11:37:22
2020-09-24T11:37:22
184,106,764
2
1
null
2022-11-21T21:54:50
2019-04-29T16:33:17
Python
UTF-8
Python
false
false
2,783
py
# Copyright 2018 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
[ "sascha.lange@campus.tu-berlin.de" ]
sascha.lange@campus.tu-berlin.de
1e96507dae057ddf6c7da82b6d321afb5554140d
e2b1008be564227f4c87e23c66d7981dfcd61024
/src/modules/pipe09_Hierarchical_Cluster.py
d1f1476f15546bdcf468da294127442864734c7f
[]
no_license
codeaudit/mia
39092664f66d10d017ce41f17a67d115109297af
2b82f9708f828faa2d5bf3a218b06a1db66599cc
refs/heads/master
2021-01-22T23:10:35.574187
2015-12-11T18:22:32
2015-12-11T18:22:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,115
py
#-*- coding: utf-8 -*- ''' Created 08/08/2012 Updated 01/09/2014 Updated 11/10/2015 - get_params() @author: Damian Kao @url: http://blog.nextgenetics.net/?e=44 ''' import FileDialog from scipy.cluster.hierarchy import linkage from scipy.cluster.hierarchy import dendrogram import classes.BarGraphic as graphPac import...
[ "flalix@gmail.com" ]
flalix@gmail.com
18bf65b91ede81fc160c195e1d93f35b3c373aeb
2a8707d969bd5966a3249b5bfccc433ad9a229bb
/myblog/migrations/0005_goods_category.py
b3210bd1bb0b72fe26acf6c8017cafee77c6f3e8
[]
no_license
alexsef/django_second
9520d889b9cb83cd0f73aa5d38a338b0f7dac021
32972892d6d6c6b349ec84418d781de695619586
refs/heads/master
2021-01-01T03:45:53.394005
2016-05-14T09:12:26
2016-05-14T09:12:26
58,160,930
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('myblog', '0004_auto_20160505_2207'), ] operations = [ migrations.AddField( model_name='goods', name=...
[ "parisfloor@gmail.com" ]
parisfloor@gmail.com
dc4a83fcf617cf0e46d2d03846c23c224b9fb4b9
01d98b95044dd4a2c900d603e1809f20437e996c
/P1-6.py
37bb1c7ea9520d443b5c2068d1f09a419dd069de
[]
no_license
Muhfa12/PROTEK-5
4bdf906cb5e2ccc681c1b3946ac1824a8998fe94
38f120e3cb95009c880152a6b7364ec6cff5bfb1
refs/heads/main
2023-01-06T23:09:17.469865
2020-11-02T05:19:00
2020-11-02T05:19:00
309,265,258
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
a = 8 b = 3 if (a > 0) and (b > 0): print("Keduanya positif") else: print("Keduanya tidak positif") #DAN a = 8 b = 3 if (a > 0): if (b > 0): print("Keduanya positif") else: print("Keduanya tidak positif") else: print("Keduanya tidak positif")
[ "noreply@github.com" ]
noreply@github.com
f8653a4732b84e5e401655ad1ec9bc50eee9b21a
dc1bb0c8359361344665b02a28d72236324cb7f2
/bin/gen_fake.py
c91431238e67478015c9fae152883e94eb482656
[]
no_license
shayanzare007/ZippySLS
c7afaf0ed1474327bef6dd3173c9c92cb3297a93
505aebf27e65dc0b3755fa52b18ef546d06628bd
refs/heads/master
2021-05-31T06:23:16.278471
2015-09-09T16:29:27
2015-09-09T16:29:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
import random for l in open('score.txt').readlines(): sum = 0 for i in range(0,9): sum = sum + float(l.split()[0][i]) # sum = 1- sum/10 # sum = sum/100 + 0.9; print l.split()[0] + ' ' + str(sum) #print l.split()[0] + ' ' + str(random.randint(0,9)) #print '1' + l.strip('\n') #for l in open('score.txt').readlin...
[ "Youssef@Youssefs-MacBook-Pro.local" ]
Youssef@Youssefs-MacBook-Pro.local
d6f22f480566e94dadadeba81e2d06eaf3c14708
5d97136e559b6f2f68726d1a77dc5a8408850a65
/trydjango/settings.py
62daf7b10e2ef5c5f83854af8b9ea44381119b38
[]
no_license
msarar/django
cda9271a368621d9024cf20925590b5c67ee29c5
547cd00ee49ddbcb210c3dfb1460dd4d4dd1ab52
refs/heads/master
2023-05-23T05:20:57.263561
2020-05-06T01:55:46
2020-05-06T01:55:46
259,022,025
0
0
null
null
null
null
UTF-8
Python
false
false
3,176
py
""" Django settings for trydjango project. Generated by 'django-admin startproject' using Django 2.0.7. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os ...
[ "galaxyraad@gmail.com" ]
galaxyraad@gmail.com
28f97ce5395cfba08ac1efa1858fd84709e57c68
fe226faa1854e33bf06cd43fcfe409c5cb7c46e0
/Notes/Basic Return.py
35fcd30a207460b9a61e7c3ed1543b1b91432e09
[]
no_license
Tom-Szendrey/Highschool-basic-notes
385a73f6b0567e6c8a35df814314d02560971459
fd3a5efda24486e8c6ce68941bf8c52ec266769e
refs/heads/master
2021-01-20T01:27:57.200778
2017-04-24T20:01:34
2017-04-24T20:01:34
89,281,704
0
0
null
null
null
null
UTF-8
Python
false
false
265
py
def square(n): """Returns the square of a number.""" squared = n**2 print "%s squared is %s." % (n, squared) return squared # Call the square function on line 9! Make sure to # include the number 10 between the parentheses. square(10)
[ "noreply@github.com" ]
noreply@github.com
cc69c17eb918fd897c9f5b7af3a2c749094d41a7
0dbfea9dcbbdf7a329c9d0f61831973b3168e560
/camera.py
a9b8a4f8902973ba7b1242f9bbea89e50609084c
[]
no_license
SmartPracticeschool/SPS-4035-Intelligent-Best-Safety-Max-Safety-Rating-Generator-for-Restaurant
6e6be915bf0208c5a9ca1368f99d754051fd9fee
47ba68197c24623fee757788e03cbb41e5fca921
refs/heads/master
2022-12-11T09:28:01.007804
2020-09-11T10:20:54
2020-09-11T10:20:54
292,284,479
0
0
null
null
null
null
UTF-8
Python
false
false
2,508
py
import cv2 import boto3 import datetime import requests face_cascade=cv2.CascadeClassifier("haarcascade_frontalface_alt2.xml") ds_factor=0.6 count=0 class VideoCamera(object): def __init__(self): self.video = cv2.VideoCapture(0) def __del__(self): self.video.release() def get...
[ "noreply@github.com" ]
noreply@github.com
0706d765576d572b9e51ca80a194e7ef9a3a0ae5
3270a22bdb2b3789639e2e67e8e784ffe08987c2
/MiniProject1.py
0cde198840b984b526cef982e033355055887760
[]
no_license
ericli21/ec601-tweet-pulls
06cda558ce8b117ac1c62260cfcc83cea94d9ac2
b398087db67f5708b912ea7af8fbda8a0ef64ad4
refs/heads/master
2020-04-09T01:48:29.289507
2018-12-01T06:56:26
2018-12-01T06:56:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,125
py
#Eric Li #EC601: Mini-Project 1 #main script import os import twitterpull import convertvid import analyzeim #Insert consumer and access information #Twitter API credentials consumer_key = "Insert consumer key" consumer_secret = "Insert consumer secret" access_key = "Insert access key" access_secret = "Insert access ...
[ "ericli21@bu.edu" ]
ericli21@bu.edu
a9e0478108e5abb89730a9ef9663fb774c017015
6a43a12f82d51dd87c15ed097c99bbdcc5da44b8
/custom_reg_form/old_forms.py
c6813094377e506e77ad1eafa4ea812fd123598f
[]
no_license
eol-virtuallabx/eol_custom_reg_form
7c5d834460183fc08f6eb8aca2e4598eadea903e
bcc9233281392e916c789a6e244c933b928bf42b
refs/heads/main
2023-08-01T14:21:24.654672
2021-08-31T20:07:24
2021-08-31T20:07:24
393,120,555
0
0
null
2021-08-10T16:38:37
2021-08-05T17:14:52
Python
UTF-8
Python
false
false
3,271
py
# -*- coding:utf-8 -*- from .models import ExtraInfo from django.forms import ModelForm class ExtraInfoForm(ModelForm): """ The fields on this form are derived from the ExtraInfo model in models.py. """ def __init__(self, *args, **kwargs): super(ExtraInfoForm, self).__init__(*args, **kwa...
[ "cons.altamirano@gmail.com" ]
cons.altamirano@gmail.com
f85a05335cbae03eecb345fa58a4e227ed7aeed9
aa3e4c5a6e6dbc7af8a22af24906a1832a1651c7
/train.py
fde4083e839b90dc785ed0bf4a26abbef73b34bf
[]
no_license
Chaudhary-Furqan/starGANv1-Pytorch
3f02668f014e6413f4bdeda0c2780fa10b9bb95e
7d0fd4074fd6fa92395bd4068b0166856b858a4d
refs/heads/main
2023-01-09T16:34:41.853973
2020-11-09T10:33:00
2020-11-09T10:33:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,527
py
import torch import torchvision import numpy as np import matplotlib.pyplot as plt from PIL import Image from torch.utils.data import Dataset import torch.nn as nn import tqdm import os import time from torch.nn import init from arch import generator from arch import discriminator import utils import data...
[ "noreply@github.com" ]
noreply@github.com
e25a6759957ae1539cb7b8b7a14e01fb8a89ffc5
016a7d2dca5dd90987733b1303c61f8e7c4a943d
/launchpad_node1.py
7786f419b9f4ad57af6df1c8baca28cb77c1099d
[]
no_license
huyrua291996/ros_serial_stm32
eb4272e69e8d7777c728772da33d7d5e50d3e670
31e5e8ca96a9f6dd3d7fb5823dfca04ac22090e4
refs/heads/master
2020-04-19T15:18:57.473736
2019-05-01T16:53:21
2019-05-01T16:53:21
168,270,061
1
0
null
null
null
null
UTF-8
Python
false
false
11,572
py
#!/usr/bin/env python ''' launchpad_node.py - Receive sensor values from Launchpad board and publish as topics Created September 2014 Copyright(c) 2014 Lentin Joseph Some portion borrowed from Rainer Hessmer blog http://www.hessmer.org/blog/ ''' # Python client library for ROS import rospy import sys import time ...
[ "huyrua291996@gmail.com" ]
huyrua291996@gmail.com
fa26e61098686a4c42aded2420c936db123a2682
2f4bfb038e99f4bf0d8394c27ace357f82e1c82f
/focal_loss_ae/trainer.py
63160c14d8967dfe13086521a67d395ef4e8063f
[]
no_license
NoListen/DeepWhat
b7b67c54669b8cdb10fafb9131cb0eb6d5f70a3d
11697841dd1cf7b26ad4da24cdeb97b5a849213e
refs/heads/master
2023-03-12T19:12:19.093738
2021-03-03T14:46:48
2021-03-03T14:46:48
102,484,638
0
0
null
null
null
null
UTF-8
Python
false
false
2,073
py
import torch from torch import nn from collections import namedtuple from enum import IntEnum from utils import focal_loss opt_params = namedtuple("opt_params", ["lr"]) class TrainerPhase(IntEnum): train = 0 test = 1 class VAELoss(nn.Module): def __init__(self, kl_loss_threshold=0, use_focal_loss=False...
[ "listenonepiece@gmail.com" ]
listenonepiece@gmail.com
e0d78fa37ce6d5e30c4f900d0b3f441cc7154c52
0647dc7794126ef03e0a78b31c1ed64cc74e7c50
/script2.py
d4cc094833fe27a8dce25a39d0338ac67fb62968
[]
no_license
panserbjorn/ControllerV-REP
71a8fc9f7abd807852f869fc9d2e030fa3db09c3
d3c1f8adfcbb3fa06279f9e8642126a95b58f7ff
refs/heads/master
2021-09-11T19:58:02.216214
2018-04-11T20:03:50
2018-04-11T20:03:50
109,732,983
1
0
null
null
null
null
UTF-8
Python
false
false
10,565
py
#Python code for de controller of my thesis #Author Joaquín Silveira import vrep import time import math import numpy as np import matplotlib.pyplot as plt import secuenceGenerator as sg #Funciones auxiliares: def recoverRobotParts(clientID): #Recover the handles for the motors LUMRetCode, LUM = vrep.simxGetObject...
[ "joaco.silveira@gmail.com" ]
joaco.silveira@gmail.com
b9f4c1ee05705264d5c2b945f6b48035a79bbcbf
1f0e94ab15f00dc02f94420e374a8328723f95bb
/Sorting/mergesort.py
4166122c89fa0b5c6eb011241c94d80bb26101b3
[]
no_license
fdelaros/Lab2_202010
5bdf5a7a75ddad5de384be43779c7b8ff12b5909
7a4ba7edd52f61ec98b405d33f63fbb38a1c2947
refs/heads/master
2022-11-23T17:15:06.525186
2020-07-28T19:12:32
2020-07-28T19:12:32
280,005,240
0
0
null
2020-07-15T23:35:41
2020-07-15T23:35:40
null
UTF-8
Python
false
false
2,350
py
import config as cf from ADT import list as lt from DataStructures import listnode as node def mergeSort (lst, lessfunction): lstaux = lt.subList (lst, 1, lt.size(lst)) #crear una lista auxiliar del mismo tamaNo y con el mismo contenido sort(lst, lstaux, lessfunction, 1, lt.size(lst)) def sort (lst, auxls...
[ "fde@uniandes.edu.co" ]
fde@uniandes.edu.co
dd9e1a964765428a5202a1ba8da704daab76d517
6fc5050ee0f983edeed08e7ec6a3949c5425194a
/problem_003/problem_003.py
72cd273036f43e45318bcebf030bf8db70ff378c
[]
no_license
HKervadec/Project-Euler
474d8d840475b19e7955a8324fbe90138143a02a
a2a537904596599459e2cbc265834045b9182067
refs/heads/master
2020-12-25T18:31:59.100141
2017-08-25T11:35:36
2017-08-25T11:35:36
9,522,644
0
0
null
null
null
null
UTF-8
Python
false
false
964
py
#!/usr/bin/env python3 # https://projecteuler.net/ # The prime factors of 13195 are 5, 7, 13 and 29. # What is the largest prime factor of the number 600851475143 ? from time import time from tools.utils import measure_func from tools.prime import prime def solve_2(): number = 600851475143 i = 3 maxPr...
[ "hoel.kervadec@insa-rennes.fr" ]
hoel.kervadec@insa-rennes.fr
165c12e14da405727a906d3e419de0a1d7201897
37279a0ac59daab785f1d1583851eb3f5dad30e1
/workflow/oer_analysis/oer_scaling/oer_scaling.py
4e2df538b6004a0966af53cec1e2bb3ef03c7538
[ "MIT" ]
permissive
flash-jaehyun/PROJ_IrOx_OER
50269e34f428e4c54b34afe3e07aae77e6ff82fc
e0b3ef8e69deeb41d62059a92f466477238efbed
refs/heads/master
2023-02-09T05:45:11.969160
2020-12-30T23:18:54
2020-12-30T23:18:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,594
py
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.4.2 # kernelspec: # display_name: Python [conda env:PROJ_irox_oer] * # language: python # ...
[ "raulf2012@gmail.com" ]
raulf2012@gmail.com
0c766cc55b91d47cac770418a24cf7240e8dc7e0
b61994fee5c28b1e2d0c25c61e90af1f8bbbfd85
/mymodules/myclass/augmentations/mydataAugmentation_difSpe.py
4a779b281c7aae0aed9236c9d3d4b1947615054e
[]
no_license
ZhaoJinyu96/DNN_RGBStokes
f083bde8559303b3112dfc1b62c35575031018df
31c1d7cd963632a9b1aacd14dd46bb360b02c75f
refs/heads/master
2020-07-17T07:11:05.493759
2019-09-06T00:42:05
2019-09-06T00:42:05
205,968,325
0
0
null
null
null
null
UTF-8
Python
false
false
10,499
py
# -*- coding: utf-8 -*- """ Created on Thu Mar 7 15:38:09 2019 @author: 0000145046 """ # add path import sys import pathlib current_dir = pathlib.Path(__file__).resolve().parent sys.path.append(str(current_dir.joinpath("../../"))) import cv2 import numpy as np import mymodules.myclass.augmentations.d...
[ "noreply@github.com" ]
noreply@github.com
0231a213452a73d2fdd8c4b936d9e3e39bf3e38a
b31939b7a0f0ecd5beedf9923a7801d320d59006
/flathon/fbs_base.py
858948e5cb92f98b91e3603a80bac1004fc85e6e
[ "MIT" ]
permissive
fish-ken/flathon
a0816e3dbd0ef72b3b9fac53aa563ce5b00e9a4a
ba4b580f9777fca977746c530988c3053392ce21
refs/heads/main
2023-07-31T16:13:54.503553
2021-09-30T09:38:08
2021-09-30T09:38:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
108
py
import abc class FbsBase(metaclass=abc.ABCMeta): @abc.abstractmethod def make(self): pass
[ "sangyun3631@gmail.com" ]
sangyun3631@gmail.com
5f2f23462b6afd7196c6acdafcd0d84f0fddcde9
78113982a16e56537cd11c64cd3034abc9d595d5
/polindromeornot.py
3b5f3fbfc5ed64fa3ceee625d18ff970800a18a5
[]
no_license
rarnjithkumar/pro2
ff623039c606abec47b37c6b8ef4691888b8d6f3
59f1e4b344218ac1e061fcd8d32cede1e4e76bf2
refs/heads/master
2022-02-06T07:23:28.957031
2019-08-01T09:38:22
2019-08-01T09:38:22
197,951,450
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
n=int(input()) sum=n f=0 while(n>0): iyps=n%10 f=f*10+iyps n=n//10 if(sum==f): print('yes') else: print('no')
[ "noreply@github.com" ]
noreply@github.com
e7cbf7f5f296c665afe04f9b2bdb65a83f0e22d5
217493eca509bd7ae2280e1aaa1ac0fa9e0fc491
/project/project/urls.py
64a272d6daca90086d366ac3624e0dbf3a3f416b
[]
no_license
sonnynomnom/myrepo
6792702a91547fed11edbacb502d249751c84336
ea09c52e18a198307972d188078c40eb301d528e
refs/heads/master
2021-01-21T08:24:47.648353
2017-05-17T22:48:15
2017-05-17T22:48:15
91,626,668
0
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
"""project URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
[ "sonnynomnom@gmail.com" ]
sonnynomnom@gmail.com
790b490a8f37ce4083ad561170267da2bb515c8c
decc8806df35aa8519166b04abc8cb44f046da05
/Round 1/9.GlobalsAndBooleans/startscript.py
c1066034ad751d5d366d52937e28b9612da4d74e
[ "Unlicense" ]
permissive
beetlesoup/udemy-python-scripting-a-car
2b24925769c918141bba03430c8768d2c2439ffc
ae41491161821a8f4e63fc86c368a71bb3d6cc15
refs/heads/main
2023-01-19T10:37:36.727543
2020-11-28T10:57:22
2020-11-28T10:57:22
316,712,751
0
0
null
null
null
null
UTF-8
Python
false
false
1,224
py
from browser import document, window, alert, aio print("hello world!") env = window.env env.step(0) async def sleep(): await aio.sleep(0.2) def isRoadAheadAvailable(): lidarState = env.getState().lidar lidarState.reverse() carFrontLidarLine = lidarState[2] # Radar line rigth in front o...
[ "sairafi.b@gmail.com" ]
sairafi.b@gmail.com
37c1014dc5c50ae71f64d41027a663cb77c4d721
7be8fcccbc566df92f49253964d2889ce1d4768c
/clients/face_detect_client.py
a8f4464997d5e174b9f6ea875e5e21a7a5989377
[ "MIT" ]
permissive
miwaliu/face-services
69ff97e8fc03668346f46847277de602fe409b5c
1db24e0da2ce984a7c7f4bb6aa8917b31265198a
refs/heads/master
2020-04-25T15:26:17.069879
2019-02-26T03:37:04
2019-02-26T03:37:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,754
py
import grpc import sys import argparse from getpass import getpass import services.grpc.face_detect_pb2 import services.grpc.face_detect_pb2_grpc from services.grpc.face_common_pb2 import ImageRGB from snet_sdk import Snet def make_request(filenamem, request_cls=None): if request_cls is None: request_cls...
[ "joel@joelpitt.com" ]
joel@joelpitt.com
6904be9b78af333bc697a4294e9e16882663dcdb
c4a752b1291b0ac9c45928f5ebe6c46c9cbd0d5a
/django_policies/exceptions.py
61c8ad3e083c2a8adad562894befad70dc477595
[ "MIT" ]
permissive
fedenko/django-policies
f3947afa848450e52bf04c9581a566c1c5521ef1
97a2ed378af20d4c9cf2638893d3f319003e173a
refs/heads/main
2023-04-13T14:33:35.992518
2021-04-25T16:03:57
2021-04-25T16:03:57
361,409,966
0
0
null
null
null
null
UTF-8
Python
false
false
99
py
class PolicyAlreadyRegistered(Exception): pass class PolicyNotRegistered(KeyError): pass
[ "cfedenko@gmail.com" ]
cfedenko@gmail.com
91201306752bc20bb7b45c0efd9d597c69cd071d
2c8c41953db9b515cea9378a2c2117e47758c80f
/env/bin/wheel
bed604f5c711ce0ac26c53882804f15b154e1759
[]
no_license
gaozhuolu/Python-Flask-AngularJS-Demo
4625936409111033db4b259e83f7dc60bbb196a1
1738e7c3494d13cfddeddea204815ce9484ef751
refs/heads/master
2021-01-15T22:34:45.610871
2017-08-14T18:27:41
2017-08-14T18:27:41
99,902,892
0
0
null
null
null
null
UTF-8
Python
false
false
244
#!/opt/Python-Flask-AngularJS-Demo/env/bin/python # -*- coding: utf-8 -*- import re import sys from wheel.tool import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "lugaozhuo110@gmail.com" ]
lugaozhuo110@gmail.com
0860d276052bc12fd05143c2aadb63ae15dca322
c83e0cb3cccd664e2596ce608534c848f5e1aa6c
/TestGeo.py
af6cffdb8006526ff787136e0a282027de1d9fb2
[]
no_license
MirsadHTX/Temp
6509fbbf9931d6230d02c044b0acf04b093a4abb
9190916c7689365f791eaaa5c999d03d44c006d8
refs/heads/master
2020-04-11T14:24:57.504751
2019-01-13T15:38:47
2019-01-13T15:38:47
161,854,193
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
import geopandas df = geopandas.read_file(geopandas.datasets.get_path('nybb')) ax = df.plot(figsize=(10, 10), alpha=0.5, edgecolor='k')
[ "mka@aarhustech.dk" ]
mka@aarhustech.dk
aa0f46a7562108f2618e94a48fd65c03e0153c46
6ea1c11d8546bb5ac531a56120d0e29e9da25e3a
/examinator/scratch/test_joblib.py
d70f360cfff4a1365d84464e5ce5197d6ed74f14
[ "MIT" ]
permissive
brl0/examinator
2bd6ad62187a0283eaa7e4213c3a0c1ec4226148
52706108eea65b854f056fd53e17fef5c8dccbe8
refs/heads/master
2023-01-13T03:43:55.292714
2019-09-29T17:03:36
2019-09-29T17:03:36
211,695,739
0
0
MIT
2022-12-26T20:48:00
2019-09-29T16:56:59
Jupyter Notebook
UTF-8
Python
false
false
1,352
py
import sys import os import time from pathlib import Path from examinator import * from multiprocessing import Queue from joblib import Parallel, delayed import asyncio WORKERS = 8 LOGURU_ENQ = True LOG_ON = True LOG_LEVEL = "DEBUG" basepaths = ['..'] basepaths = map(Path, basepaths) file_q = Queue() def joblib_pro...
[ "B_R_L@hotmail.com" ]
B_R_L@hotmail.com
899b81818d8f74f3bee4c7e2334d4d9090a0628c
96eaab9d51545ca68441da29979779339b939233
/tree/cart.py
8aced3f42850c42394d74f636d536f01e8def698
[]
no_license
wangkainlp/MachineLearning
c85ad605f21656313deaa20394152109534a2700
efeaf4b15ab3e32ff4df8567679b8f55258d36cd
refs/heads/master
2021-04-15T03:08:18.478331
2019-11-25T11:04:26
2019-11-25T11:04:26
126,273,787
0
0
null
null
null
null
UTF-8
Python
false
false
3,782
py
#coding:utf-8 import sys import numpy as np # from tree_node import TreeNode from tree_node import * from ccp import * def variance(numList): if len(numList) <= 1: return 0. avg = 1.0 * sum(numList) / len(numList) varSum = sum(map(lambda i : (i - avg) ** 2, numList)) return varSum def dataVa...
[ "wangkainlp@gmail.com" ]
wangkainlp@gmail.com
15f29ca53b049d9f402631c910ef1bf5da7b06bd
a2b4021104477a791e6e813fecfae76b739b9e0e
/firstapp/forms.py
4df704f2bdccd49c97f9f283495340c94b278b9e
[]
no_license
mainuddinrussel73/Flea_Mart
5ada456c536376d084f6937099ae821f76a736f8
47382715a4ca4228fba87073bd9c5fe22e0e3bae
refs/heads/master
2021-05-12T03:41:33.893609
2019-04-30T03:42:09
2019-04-30T03:42:09
117,624,397
1
0
null
null
null
null
UTF-8
Python
false
false
519
py
from django.contrib.auth.models import User from django import forms from firstapp.models import UserProfileInfo from django.views.generic.edit import UpdateView class UserForm(forms.ModelForm): password = forms.CharField(widget=forms.PasswordInput()) class Meta(): model = User fields = ('...
[ "mainuddinrusselbuet73@yahoo.com" ]
mainuddinrusselbuet73@yahoo.com
6d47fc113aa0e87777b1fe5c74c0a6126631db97
218cdd10062f7c1c859c9a2e51c048884d5b1c4f
/4/item.py
767f84af4d3e7b3a4d2505c4570356412da806ff
[]
no_license
Jecosine/python-couse
b13c32fe86e29d6cba5af771a6e2d16ebb7388c8
4ddabc3b47df8c8cc01c56da87682259545553b3
refs/heads/master
2020-07-25T05:43:35.840681
2019-12-10T05:12:25
2019-12-10T05:12:25
208,184,613
0
0
null
null
null
null
UTF-8
Python
false
false
658
py
s = [10, 12, 15, 11, 14] w = [210, 240, 270, 230, 300] items = {} for i, j in zip(s, w): v = j / i items[v] = i sorted_value = sorted(items.keys(), key = lambda k:k, reverse = True) method = {} for i in sorted_value: method[i] = [0, int(i*items[i])] # print(sorted_value) # print(items) result = 0 total = 48...
[ "mj_ol@outlook.com" ]
mj_ol@outlook.com
46401c4b722d15dc36268249a4d8ee52d0eed3aa
a94c7b5e47d0880858b422d5d6dd3ed32f6c4ca7
/Temp_UI/cpu_ui.py
a8306df705219088341bee454aeaf41c85df7af6
[]
no_license
YuriyGoryachkin/prototype
22a540d56cfad43c65f5b110e49875795fc4f319
e65e4caa5c67c2d0e5c75cfd540fd6f3bacab377
refs/heads/master
2020-04-23T08:11:50.577624
2019-02-17T16:00:42
2019-02-17T16:00:42
170,882,761
0
0
null
null
null
null
UTF-8
Python
false
false
99
py
import cpuinfo import psutil print(cpuinfo.get_cpu_info()['hz_actual']) print(psutil.cpu_freq())
[ "monguste@gmail.com" ]
monguste@gmail.com
a93d3736a5ccc63da05905c27982a9691a5a88c9
251b9ca6e4bab3e55146aad9376dbdac878b0bfd
/solr/app.py
1bf018290933fffb6fe9a201d6446dd0c83bc1f9
[ "MIT" ]
permissive
romanchyla/solr-service
1637bea95b3bdb3976de33c8d583a5bb77d37e41
5df2f8a0afcc191b94ee1917053a5b3155df181c
refs/heads/master
2021-01-18T00:57:32.681050
2015-01-26T14:39:19
2015-01-26T14:39:19
29,889,261
0
0
null
2015-01-27T00:23:25
2015-01-27T00:23:25
null
UTF-8
Python
false
false
914
py
import os from flask import Blueprint from flask import Flask, g from views import StatusView, Resources, Tvrh, Search, Qtree from flask.ext.restful import Api def _create_blueprint_(): return Blueprint( 'solr', __name__, static_folder=None, ) def create_app(blueprint_only=False): app = Flask(__name...
[ "vsudilovsky@gmail.com" ]
vsudilovsky@gmail.com
dbb97f0cbc36f2bfd81ed8cc7c03df74b429d7e7
dfe2a52a1c36a28a8bf85af7efd42380d980b773
/virtual/lib/python3.6/site-packages/social/tests/backends/test_skyrock.py
6c9bc03d42c8bfa986caebbc4d6173b6d3d79df5
[ "MIT" ]
permissive
virginiah894/Instagram-clone
2c2a15d89fcdb25b22bd60428cf84a01f3bd553c
4d8abe7bafefae06a0e462e6a47631c2f8a1d361
refs/heads/master
2022-12-10T06:56:21.105357
2020-01-07T14:14:50
2020-01-07T14:14:50
229,394,540
3
0
MIT
2022-12-08T03:23:40
2019-12-21T07:41:19
Python
UTF-8
Python
false
false
1,343
py
import json from social.p3 import urlencode from social.tests.backends.oauth import OAuth1Test class SkyrockOAuth1Test(OAuth1Test): backend_path = 'social.backends.skyrock.SkyrockOAuth' user_data_url = 'https://api.skyrock.com/v2/user/get.json' expected_username = 'foobar' access_token_body = json.du...
[ "virgyperry@gmail.com" ]
virgyperry@gmail.com
78345d7f47403a964273439346fc6f8a74a0103e
8e42bbd69a3ce337b09bb9691e8f10889c2568a4
/fimpute2geno.py
97c6bb4615affc75c646efee8ee086f3ffb24f75
[]
no_license
haraldgrove/snptranslate
c348ebdee9744767574ad486d5dc43d9f91bd984
79323a846ce0007ebd8a71f654a96caa97169b07
refs/heads/master
2020-04-06T06:56:26.603323
2016-09-05T00:39:24
2016-09-05T00:39:24
20,091,416
1
1
null
2016-07-14T00:55:49
2014-05-23T07:56:02
Python
UTF-8
Python
false
false
3,509
py
#!/usr/bin/env python # Version 1.0 # from __future__ import division, print_function import sys import argparse def readMarkers(markerfile): """ Columns options: name,position,allele1,allele2 [,chromosome] (BEAGLE) chromosome,name,gendist,position (PLINK) name """ def trans(s): ...
[ "harald.grove@nmbu.no" ]
harald.grove@nmbu.no
af30bd9609124f4e5b5d8875b39026c3d7f66fae
b0691f14d2c03435beec9ac7f9d045eceac01f93
/ML-Research/Archives/download_lung_data.py
414ede9c75f82b3fd5a2f841f643300cda8d7738
[ "Apache-2.0" ]
permissive
haichandar/MachineLearning
148b04014897aa6c556ada071ae1ca8efcdb40a5
658e65ea0a4bc5bd98fd1db5f8b513d9e2e84e2b
refs/heads/master
2022-01-07T17:38:00.262584
2019-05-18T16:46:05
2019-05-18T16:46:05
166,527,765
0
0
null
null
null
null
UTF-8
Python
false
false
578
py
from urllib.request import urlopen import os urls = {'pneumothorax_test':'https://www.dropbox.com/s/x74ykyivipwnozs/pneumothorax_test.h5?dl=1', 'pneumothorax_train':'https://www.dropbox.com/s/pnwf67qzztd1slc/pneumothorax_train.h5?dl=1'} data_dir = '.\Lung_Data\\' for (name,url) in urls.items(): if not os...
[ "Chandar_S@ad.infosys.com" ]
Chandar_S@ad.infosys.com
54c4dc43a68b2bd716177955582c0550c3a14108
a9cb9599d6114186ce8b07c234e9fe561f47d933
/start_docker_agent.py
2cf5597c36c1eacdaade46b01f07e7e553585ed0
[]
no_license
mstefferson/prefect-demo
9a91a65b40225fd67259571d17182109713c957f
d10cfbdf5ad03c09486e6b7235964ee5bdc30060
refs/heads/master
2023-07-19T07:10:34.121458
2021-08-30T00:26:44
2021-08-30T00:26:44
400,655,266
0
0
null
null
null
null
UTF-8
Python
false
false
184
py
import os from prefect.agent.docker import DockerAgent volumes = [] # volumes = [f"{os.getcwd()}:/mnt"] DockerAgent(labels=["docker"], volumes=volumes, show_flow_logs=True).start()
[ "mstefferson@gmail.com" ]
mstefferson@gmail.com
0739b43c2a2b79b8090050a8acbd7aadc5e93df2
341e9638416d6687344ed2ef2ebb70cf107ea429
/python/recommendation/mmoe.py
56821d878dc5464ae4cc6589ca676d1cc5c8e314
[]
no_license
xiaoSUM/PyTorch-On-Angel
2825d9afb750d710e4b63afa69eca0a8c83857f9
cbb7f09deb4e3ee390afc1f04321eae6dc1a1022
refs/heads/master
2023-07-27T17:07:47.598975
2021-09-11T06:59:22
2021-09-11T06:59:22
385,549,679
0
0
null
2021-07-13T09:31:20
2021-07-13T09:31:19
null
UTF-8
Python
false
false
6,142
py
from __future__ import print_function import argparse from torch import Tensor from typing import List import torch import torch.nn.functional as F class MMOE(torch.nn.Module): def __init__(self, input_dim, experts_num, experts_out, experts_hidden, towers_hidden, tasks): super(MMOE, self).__init__() ...
[ "862054822@qq.com" ]
862054822@qq.com
c296bcf5d763803370519dbc7b0cfa134d9b4fc7
fd3f0fdc6af4d0b0205a70b7706caccab2c46dc0
/0x08-python-more_classes/1-rectangle.py
89807a014a51f03ba7255d4d66673efba41e72ac
[]
no_license
Maynot2/holbertonschool-higher_level_programming
b41c0454a1d27fe34596fe4aacadf6fc8612cd23
230c3df96413cd22771d1c1b4c344961b4886a61
refs/heads/main
2023-05-04T05:43:19.457819
2021-05-12T14:51:56
2021-05-12T14:51:56
319,291,958
0
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
#!/usr/bin/python3 """This module contains geometric shape classe(s)""" class Rectangle: """Simulates a real world rectangle""" def __init__(self, width=0, height=0): """Initialises a rectangle of a given width and height""" self.width = width self.height = height @property de...
[ "paulmanot@gmail.com" ]
paulmanot@gmail.com
c692de65698326ab9e089d44a441e077f6fc5116
358d21d74a5a58c68e06b08226d293e155cc0d7b
/pyless/pyless/settings.py
2e79eaa8bcebc44eea762656db93c6188e417b3c
[]
no_license
nymoral/pyless
bfd8a5b3c77e67759c13cb606d082d119bf26f1a
8abbb0bb80ae59d66cadf5ac5f6b9e31ecb62856
refs/heads/master
2021-01-17T17:20:15.940478
2016-06-16T18:37:18
2016-06-16T18:37:18
60,605,406
0
0
null
null
null
null
UTF-8
Python
false
false
2,357
py
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) SECRET_KEY = 't5vd^#!f30ihkqd3a#uu^*a+9n^v+)ud67iebkg$#u*!kh8c4a' DEBUG = True ALLOWED_HOSTS = ['localhost'] INSTALLED_APPS = [ 'football.apps.FootballConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.con...
[ "aivaras.saulius@gmail.com" ]
aivaras.saulius@gmail.com
5023d19ebac999654492258beacf94e2dad6ccac
53ae08f886b3b803471b8a8d27148b542844134a
/indicator_heuristic_strategy/indicator_analysis/indicatorManager.py
be9f155b72d3eb6f17b0a2bfd7c9db492c518aa2
[]
no_license
suku-h/quant
ead6fc819baee69c6d6828332c4c0bf1df314742
8e478c34a22edaa60776cf7d35e5d38d7cfd1600
refs/heads/master
2021-01-20T09:49:23.442304
2017-11-17T01:23:26
2017-11-17T01:23:26
90,290,004
1
0
null
null
null
null
UTF-8
Python
false
false
6,871
py
import pickle import talib import pandas as pd import numpy as np import csv # Check the answer https://stackoverflow.com/a/20627316/5512020 # to prevent the warning: A value is trying to be set on a copy of a slice from a DataFrame. pd.options.mode.chained_assignment = None # default='warn' total_res = np.zeros(13)...
[ "sukumar.honkote@gmail.com" ]
sukumar.honkote@gmail.com
5c6620edec199d9f5d5a8418a074133844d17c7c
e34d69f33d9bf3d9de99343ba24ad78bc5197a93
/scripts/cmp_lj_sync
f25d123129b22ec54a527691be2a502d7f0f1e29
[]
no_license
cms-ttH/ttH-TauRoast
8e8728a49d02d9e8d7dc119376a4aefb6e8fd77d
3fe6529d7270dc091db00f95997ca6add8b95ac9
refs/heads/master
2021-01-24T06:13:06.485445
2017-10-11T14:04:05
2017-10-11T14:04:05
10,819,593
2
5
null
2016-09-15T07:19:20
2013-06-20T12:46:59
Python
UTF-8
Python
false
false
656
#!/usr/bin/env python import sys def read(fn): evts = {} with open(fn) as f: for line in f: if not line.startswith('1'): continue run, lumi, event, stub = line.split(',', 3) evts[(run, lumi, event)] = stub return evts me = read(sys.argv[1]) kit ...
[ "matthias@sushinara.net" ]
matthias@sushinara.net
3118897c4d67a9ea8aec95354c48a5a19f5ba665
08244f684b9be8c8d0f05f5100f273c78467b748
/currency.py
b487ed3d525b986b1057c55a5fdd73c3d1df9c4b
[]
no_license
Adroso/Python-Utility-App
54b3d04dda09f3d5f1a0e038f91a0fb2ed5a619b
0e8ded5d87c10c8a16a52d9411ba8988469ab958
refs/heads/master
2021-03-30T17:03:27.018427
2015-11-06T01:18:42
2015-11-06T01:18:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,791
py
__author__ = 'Adroso' import web_utility def convert(amount, home_currency_code, location_currency_code): """ This function takes in an amount, generates a url to use Goggles currency conversion service and extracts the converted value """ amount_as_string = str(amount) # Convert to string here because...
[ "adrian.lapico@my.jcu.edu.au" ]
adrian.lapico@my.jcu.edu.au
59b265a6b37a1d3ca27525a1826488ed52ce1794
2915e5a34da17dab218ad615dc30cebaf80ccaf5
/model/CNN_BN.py
d31d8d1e660e059525d4f75800b6de3525133aee
[]
no_license
NanoporeAna/EEGBaseDL
cef074a410bf679c681547141a012b578daa2602
c663e70cbefe1f82695d3978cb5213ba95b6b07f
refs/heads/master
2023-02-09T01:46:56.665085
2019-07-10T02:33:43
2019-07-10T02:33:43
195,966,600
0
0
null
null
null
null
UTF-8
Python
false
false
16,020
py
import os import tensorflow as tf import numpy as np from tensorflow.python.ops import control_flow_ops from tensorflow.python.training import moving_averages from data.Tailor_Test_Data import tailor_test_batch from data.Tailor_Train_Data import tailor_train_batch from data.test_data import test_batch from data.train_...
[ "17888808985@163.com" ]
17888808985@163.com
9f9b0420444650d8f9ce67002d4ec0cb16000ab6
c1ccf743b07e21ef86a1d7d2f68e63cdd2af0dce
/uboone/UBFlashFinder/mac/unit/check_ophits_to_flashes.py
9102576cb84a11e31bcb5f29e1ed74b0cd65fb8f
[]
no_license
MicroBooNE/uboonecode
383425806d3ae0a89f3930e20b87016deda1d478
b575e518da1098a274cb1f4cef57e9f76c11c279
refs/heads/master
2021-01-12T03:19:44.325785
2017-01-30T19:25:50
2017-01-30T19:25:50
78,196,104
2
0
null
null
null
null
UTF-8
Python
false
false
2,946
py
import numpy as np import matplotlib.pyplot as plt import matplotlib.pyplot as plt import matplotlib.colors as mpc import matplotlib.dates as dts import matplotlib.patches as patches import numpy as np import ROOT as rt from larlite import larlite as fmwk event_ophit = rt.larlite.event_ophit() channel = int(np.f...
[ "marco.deltutto@physics.ox.ac.uk" ]
marco.deltutto@physics.ox.ac.uk
d2c9feb3215b5259ef876c741186d832dd828a33
b4da11e5acb90a3d698f05870643c37674a32eaf
/Alibaba/Alibaba/urls.py
1bd21809679a1792707591d7f0a15e546c66b471
[]
no_license
joae/fiuba-robots
d4446e157f61621565d7c3c2227c3e7e0b830378
6b4bf93dc505bf5d3bd54cdd3e6ef093a3d5ea94
refs/heads/master
2020-05-18T11:23:24.453136
2015-07-05T13:35:47
2015-07-05T13:35:47
35,906,107
0
0
null
2015-07-05T13:35:48
2015-05-19T20:15:36
Python
UTF-8
Python
false
false
757
py
"""Alibaba 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') Class-bas...
[ "giopromolla@gmail.com" ]
giopromolla@gmail.com
0ee4d64d9b1e4ffc0fcbe7cb06b71dad025f7e6b
95f0d18cfabeb3806d6a54f80a47aa3b7f996dfb
/forum/migrations/0075_comraderybetainvitation.py
f60750797ee261e012e6d049a12d98c66f488daf
[ "MIT" ]
permissive
thedeadwoods/Comradery-API
14eade52bc41b4b5e2fdbf5746bff468c62c75d0
0d30df376f5542d01a04b96c5fdf9363d3103679
refs/heads/master
2023-03-23T07:52:27.476182
2021-03-06T20:01:36
2021-03-06T20:01:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
# Generated by Django 2.2.7 on 2020-03-29 07:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('forum', '0074_auto_20200329_0435'), ] operations = [ migrations.CreateModel( name='ComraderyBetaInvitation', fields=...
[ "rishabhegde@Rishabs-MacBook-Pro.local" ]
rishabhegde@Rishabs-MacBook-Pro.local
14ad83e0917beb59f8fe567d25182b21bb54ff30
f4adff7fb331154be8b897c6f011008f7ac1de99
/submit/urls.py
58384fcaf687a90a4ad46602c35f95c788d511c3
[]
no_license
Benjji/liahen
39f218627269d94670c43593ad8d3f8610faf0c6
4e93f35c8acad027ae7ceb736c11233776083da4
refs/heads/master
2020-05-29T11:52:49.129440
2015-09-26T14:57:43
2015-09-26T14:57:43
43,208,761
0
0
null
2015-09-26T14:39:31
2015-09-26T14:39:29
null
UTF-8
Python
false
false
1,247
py
from django.conf.urls import patterns, url from submit import views urlpatterns = patterns ('', #submits/protocol/2/ (detaily submitu) url(r'^protocol/(?P<pk>\d+)/$', views.protocol_view, name = 'protocol'), #submits/update url(r'^update/$', views.update_submit), #submits/ (vsetky moje) ...
[ "maru@ksp.sk" ]
maru@ksp.sk
6d4fde5671e5072285e7d7257570788ad7fdcaa1
724e1cb403ff723130ba8746df657e21da05349c
/scripts/f_logger.py
751d79cf22337fe121b7c529e62f904e1817e82d
[ "MIT" ]
permissive
bereketkibru/Pharmaceutical-Sales-Prediction
3f670634647bedcb89beac3224a762bd7ccdf8e1
056a832a46cc6a74bd9314d69f25f071a54e9cd5
refs/heads/main
2023-07-13T13:28:28.334620
2021-08-25T17:48:44
2021-08-25T17:48:44
389,676,518
0
1
null
null
null
null
UTF-8
Python
false
false
592
py
import logging class F_Logger: def __init__(self, file_name: str, basic_level=logging.INFO): # Gets or creates a logger logger = logging.getLogger(__name__) # set log level logger.setLevel(basic_level) # define file handler and set formatter file_handler = logging.FileHandler(file_name)...
[ "bekakibru2@gmail.com" ]
bekakibru2@gmail.com
7b09b1728c37bc3fb8d427b17b52b9f0d610bfaa
cff5b894daf7595a23f05df2984ce01e8b0fbfbc
/challenge2and3/get_instance_metadata.py
2b3ac642618ac03662a026453ba51993a1ee3abd
[]
no_license
basant1988/tech-challenge
0da063cdb3434656bb2534ebd341643a38636cfc
6589cf1c8b926254a1a9b44b05103c5a6abbab14
refs/heads/master
2023-06-10T16:38:28.681754
2021-07-01T08:20:01
2021-07-01T08:20:01
381,766,439
0
0
null
null
null
null
UTF-8
Python
false
false
1,480
py
#!/usr/bin/env python import requests import json import sys def get_instance_metadata(key): baseurl = 'http://169.254.169.254/latest/meta-data/' metadata = {} traverse_data(baseurl, metadata, key) return metadata def traverse_data(baseurl, metadata, key): req = requests.get(baseurl) if req....
[ "basant1988@gmail.com" ]
basant1988@gmail.com
02b6251c2bd8c8129cb29b2bdc91c06ec9f699d9
7d586f404967e98a498f6cb8654fb00abcab12a0
/blog/views.py
f046b44b45c8ee4f0137d46ae3f27ca4b76c5e49
[]
no_license
shoaibshrafi/Python-Django-Blog-App
ba6ef57f473b0b0cb28b7cce0f2d11bbee7a3f6a
54fb2b10abd952b581bb52f12f240bbe13cb1352
refs/heads/master
2020-03-28T17:32:16.397668
2018-09-14T14:28:12
2018-09-14T14:28:12
148,799,110
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
from django.shortcuts import render def home(request): posts = [ { 'author' : 'Shoaib', 'date_posted' : 'September 14, 2018', 'title' : 'Blog Title 1', 'content' : 'First blog post' }, { 'author' : 'Najib', ...
[ "shoaibashrafi@yahoo.com" ]
shoaibashrafi@yahoo.com
60cb82c1e51bb3a3fdb94a776df5958da5755132
fe7153e1738c2c09f76aa270ae6417f432ab70c5
/taxes/models/tax.py
4dcc3e7527b7164c4ead46e90cf287e8bd3ee794
[]
no_license
mdzakir/mysuru
9e83e12d02e13bb0e9abaf859c9b25bf420eb795
d6121a79f42d5fd57172f4b39f482927f5fedd62
refs/heads/master
2021-01-13T16:37:41.396037
2017-07-18T15:59:58
2017-07-18T15:59:58
79,259,805
1
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
import datetime from collections import defaultdict from collections import namedtuple import json from django.conf import settings from mongoengine import * class RatePlanTaxDetails(EmbeddedDocument): tax_type = FloatField() tax_value = FloatField() rate_id = StringField() def get_tax_type(self): ...
[ "ghanshyam.pathak@axisrooms.com" ]
ghanshyam.pathak@axisrooms.com
6ff2b89d3fcdd2f0c997fad4706a19b7a18525b0
3068d24ee80e0f5719306476f7495c8fede02592
/google_test/bunny_escape/bunnyEscape.py
2fb40cfe7a818ebb945810ad3de9c1b68da2d07c
[ "Artistic-2.0" ]
permissive
perlygatekeeper/glowing-robot
1926a8143168fee58e83ae78c72674a7bd1c10ed
1c15dbc4f4f7a160c226734f5b258b8e17acfc7f
refs/heads/master
2023-08-21T19:57:41.861644
2023-08-12T01:21:13
2023-08-12T01:21:13
27,408,610
3
0
null
null
null
null
UTF-8
Python
false
false
4,686
py
def pathFinder(x, y, map, steps, lastX, lastY, wall): # count possible moves options = [] if x-1 >= 0: # East options.append([-1, 0]) if x+1 <= lastX: # West options.append([ 1, 0]) if y-1 >= 0: # North options.append([ 0,-1]) if y+1 <= lastY: # South op...
[ "perlygatekeeper@gmail.com" ]
perlygatekeeper@gmail.com
22d8d701e93efaddc5bfc903051441ed4376ae45
719b657774faec0d8e353d49bc44e6f4cd7ba5c2
/Treap(Random Binary Search Tree) implementation.py
b0427349da5e700b2148a09081b1bda7d851a517
[]
no_license
ayesha607/Treap-Random-Binary-Search-Tree-
378c322d8fddce0aa09341be574de5be1d750b6c
6c23c3b47e559ab77f6ed2c73038f09909b0a30f
refs/heads/main
2023-02-28T03:48:06.678257
2021-02-05T20:18:35
2021-02-05T20:18:35
336,376,656
0
0
null
null
null
null
UTF-8
Python
false
false
3,263
py
#!/usr/bin/env python # coding: utf-8 # In[36]: import random class Node: def __init__(self, key, value): self.key = key self.p = random.random() self.value = value self.left = None self.right = None def leftrotate(self): x = self y = x.right ...
[ "noreply@github.com" ]
noreply@github.com
0ab2eb81e04a15ed1db8d179bf11f3e13a7dd7d0
defc76148d2fb22162e61ab34657f169c52be666
/journalism_workflow/v1/adjust_photos.py
82b4cb3af3e25cd00f3216b5df0cd8b9d95c58df
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
skamille/orchestra
e29b4b2e6319476c145f5d305c347cd62ced0a29
c9a58bf76c4521b41ce38b23db2ba93180ee9000
refs/heads/master
2021-01-16T21:12:57.205991
2016-02-01T19:08:24
2016-02-01T19:08:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,652
py
import os import tempfile from django.conf import settings from PIL import Image from orchestra.google_apps.convenience import create_folder_with_permissions from orchestra.google_apps.convenience import download_file from orchestra.google_apps.convenience import upload_file from orchestra.google_apps.permissions imp...
[ "dhaas@eecs.berkeley.edu" ]
dhaas@eecs.berkeley.edu
37104a18852afc5a21815369e7dd0b0f5adc9217
1f5659544eebcf5ed67c8b2a52d2803cb01588f2
/rule_induction_classifier/rule_induction_classifier/__init__.py
224d4dcb8000b3cdd4345e9d3df4250bc604dffc
[]
no_license
Apokrbk/rule_classifier
3e8077dff643512ba1d6eb3e4ae4577d80aae5ed
13db09418abb8875390a1f8e9d31274539e9eda1
refs/heads/master
2020-03-20T22:24:36.883422
2019-01-26T18:38:32
2019-01-26T18:38:32
137,796,976
0
0
null
null
null
null
UTF-8
Python
false
false
32
py
name="rule_induction_classifier"
[ "damian.portasinski@gmail.com" ]
damian.portasinski@gmail.com
d7e3d08b747976c322d9047ebd236257f13e0442
e0370bd9d08a5307678f08110b0919e4f9c60750
/dao/user_mapper.py
e95d82d6070a60354b3d7066cb85f3e97630e149
[]
no_license
wangyingsm/flasksql
cadc1f3d014f2218c04990bc55db2991919cf665
914bd50720adbb7b439c6cf0d44e5b3040713ad2
refs/heads/master
2021-04-15T13:07:57.652078
2018-03-24T20:46:28
2018-03-24T20:46:28
126,487,784
1
0
null
null
null
null
UTF-8
Python
false
false
1,216
py
# -*- coding: utf8 -*- from app import db from model.User import User from sqlalchemy.exc import DatabaseError from sqlalchemy import text from traceback import print_exc def findAllUsers(): return db.session.query(User).all() def findUserById(id): return db.session.query(User).filter(User.id == id).one_or_n...
[ "wangying" ]
wangying
57483cde5bfd742605f867681de8e02461cca452
38098dfc4da17b8c65575cfec033ad3ecc9ebb9b
/Intermediate Python /exceptions/try_with_finally.py
92e03b0fbef01c09e14e8aacb778d00905d93d19
[]
no_license
milena-marcinik/review_SDA
3db1a348e8d606586ac63a5d233d611fa0bf1b02
d5017fd694ec7f25861bdeb89d57c93680c8d748
refs/heads/main
2023-01-28T05:03:30.444484
2020-12-03T21:42:28
2020-12-03T21:42:28
312,909,277
0
0
null
null
null
null
UTF-8
Python
false
false
320
py
# The try block will raise an error when trying to write to a read-only file try: file = open("temp.txt") file.write("I saw a lion") except FileNotFoundError: print("An error occurred while processing the file!") finally: file.close() # The program can continue, without leaving the file object open
[ "milena.marcinik@gmail.com" ]
milena.marcinik@gmail.com
6cc1398e6926a640d43d204cf2e3cac3e631e85f
b5bbf6f6ea96fc3de9230d90f02e23c5da873c22
/tango_with_django_project/urls.py
2bf93c81cc5a80c33e43c7a2ff4b2b2f75d9faf5
[]
no_license
harshgupta16/Tango-with-Django
b6e2bcf01febd05285076bee6b94fea979f98dae
cbd592f8a238d02021eccfede33837587a397437
refs/heads/master
2020-07-07T10:22:47.993977
2015-02-14T14:21:31
2015-02-14T14:21:31
30,798,278
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
from django.conf.urls import patterns, include, url from django.contrib import admin urlpatterns = patterns('', # Examples: # url(r'^$', 'tango_with_django_project.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^rango/', include('rango.urls')), url(r'^admin/', include(admi...
[ "harshgupta.ggmu@gmail.com" ]
harshgupta.ggmu@gmail.com
2b0dff7ddd5721512ac228512d41790c5aedf75a
be0ec4f1621aca800d1cf90deccf262f55251911
/GUI_PKSS_v3/GUI_PKSS/Python_projekty/entry_box.py
d9d49860c87dc9b9b537b9fbf2cf20eca1cd0c7b
[]
no_license
dorotawejdman/Heating-System--model-GUI-
9e12076fa17834915343df389199de6b6fe11b6e
e69bfad4fbfdc49494783a5438a09f316bb0afc5
refs/heads/master
2022-11-15T04:52:25.016976
2020-07-13T19:41:08
2020-07-13T19:41:08
279,396,128
0
0
null
null
null
null
UTF-8
Python
false
false
3,168
py
# -*- coding: utf-8 -*- """ Created on Sat Dec 7 16:18:21 2019 @author: dorot """ from tkinter import * import sys, os, csv, time #Um #P_Um=0.1 #I_Um=0.005 #D_Um=0.05 # ##Ub1 #P_Ub1=0.1 #I_Ub1=0.005 #D_Ub1=0.05 # ##Ub2 #P_Ub2=0.1 #I_Ub2=0.005 #D_Ub2=0.05 nastawy=[[0.1,0.005,0.05], [0.1,0.005,0.05], [0.1,0.005,0.05]...
[ "dorota.wejdman@gmail.com" ]
dorota.wejdman@gmail.com
80287b28c93d6db5eda425b2514c0bcdac242368
7224f601a074d62d1ca27bc3dcee454163532202
/miscellaneous/Raspberry-Pi/Cloud server/mqttt/mqttt client.py
b1d589bb433a997a5b4493b5c0d17e08b5e67a89
[]
no_license
abuzneid/IoT-Lab---Spring-2019
ac37b264e10969b8ba98c6184d417174834de5b4
aef0fc8097e4650a36a1fda9d59cb3cd5cb387b1
refs/heads/master
2020-04-23T18:20:19.321428
2019-07-01T20:45:44
2019-07-01T20:45:44
171,363,593
0
1
null
null
null
null
UTF-8
Python
false
false
1,272
py
import paho.mqtt.client as mqtt import encodings # The callback for when the client receives a CONNACK response from the server. def on_connect(client, userdata, flags, rc): print("Connected with result code "+str(rc)) # Subscribing in on_connect() - if we lose the connection and # reconnect then subscrip...
[ "abuzneid@bridgeport.edu" ]
abuzneid@bridgeport.edu
d0be707b6b95674e7a55339a7774568045b2a525
6a7058009587e78b5c758ff783410325ad7c2a4b
/educative/slidingWindow/non_repeat_substring.py
2883b8e112151f20e144a97d63367dc9680d312d
[ "Apache-2.0" ]
permissive
stacykutyepov/python-cp-cheatsheet
8b96b76403c501f5579befd07b3c4a4c69fe914e
a00a57e1b36433648d1cace331e15ff276cef189
refs/heads/master
2023-07-16T13:26:35.130763
2021-08-30T11:23:39
2021-08-30T11:23:39
401,442,535
2
0
null
null
null
null
UTF-8
Python
false
false
537
py
""" time: 13 min errors: none! """ def non_repeat_substring(str): maxLen, i = 0, 0 ht = {} for i, c in enumerate(str): if c in ht: maxLen = max(maxLen, len(ht)) ht.clear() ht[c] = True maxLen = max(len(ht), maxLen) return maxLen def main(): print("Length of the longest substring...
[ "peterrlamar@gmail.com" ]
peterrlamar@gmail.com
94b4c2e35a301f411b1555575ce77c4ce920d0e0
1a48b9b03463eb1b34628e1cc76239dba875e32f
/Parallel computing/使用ProcessPoolExecutor并发执行任务.py
dab13e723dc33e2b4ed8d8280d7ed3407b254187
[]
no_license
songyachun/Python-Workbook
e25dd021dd669e234356c859aa0f416b259e2ae6
ad13c35030fc0754bbe01557bc86eb29c83d0179
refs/heads/master
2021-05-20T02:00:05.654599
2020-06-16T12:32:33
2020-06-16T12:32:33
252,138,216
0
0
null
null
null
null
UTF-8
Python
false
false
1,077
py
""" # @Author : SYACHUN # @Date : 2020-06-16 19:45:15 # @LastEditTime: 2020-06-16 19:53:51 # @LastEditors: SYACHUN # @Description : 求解最大公约数 # @FilePath : \weikeban\使用ProcessPoolExecutor并发执行任务.py """ import time import concurrent.futures as cf def gcd(pair): a, b = pair low = min(a, ...
[ "noreply@github.com" ]
noreply@github.com
bbbf2ff35e64f1f9cf83d0315339612b100e6464
ae43b412092c4a417bd46573942ff261d00ecb26
/ML/appleorange.py
560d8e9ab5aab733566b92562844b4466edcef3c
[]
no_license
hydrophyl/Python-1.0
1bb191456b4a53b8c420593392236a262cc969aa
b1f3ff5a5e06ed5d589fc12b29f3a1672b257749
refs/heads/master
2020-05-02T10:10:21.394958
2019-09-24T20:25:52
2019-09-24T20:25:52
177,890,139
0
0
null
null
null
null
UTF-8
Python
false
false
282
py
#Scikit-learn from sklearn import tree #1 is 'smooth' 0 is 'bumpy' features = [[140,1], [130, 1], [150,0], [170,0]] #0 is 'apple, 1 is orange labels = [0, 0, 1, 1] #Train classifier clf = tree.DecisionTreeClassifier() clf = clf.fit(features,labels) print(clf.predict([[155,0]]))
[ "forever_mind@live.com" ]
forever_mind@live.com
bcc7c1b0c6a0c863489a0d79114e5dac8fc93df1
4ca5211d80d5c4c8c068b3384307b809388b30c1
/pegSolitaireUtils.py
37bf544cddce5d6d69ac671f6f7889999d33e0d9
[]
no_license
atanu1991/Peg-Solitaire
6f82183ac12c74083cb89dac69213f6d18101085
64ee81642f0e0c75d3f1b71aef414657b1a8465b
refs/heads/master
2016-08-12T03:23:23.664380
2016-01-24T03:05:04
2016-01-24T03:05:04
50,269,554
0
0
null
null
null
null
UTF-8
Python
false
false
6,842
py
import readGame class game: def __init__(self, filePath): self.gameState = readGame.readGameState(filePath) self.nodesExpanded = 0 self.trace = [] def get_gameState(self): return self.gameState def manhattan_distance_heuristic(self): """This heuristic calculates the sum of ...
[ "atanu1991@gmail.com" ]
atanu1991@gmail.com
6f2fb33ac581df43102825b6f3735508999d4a00
144f2c0f977d5c1537bfaca8c6f108af783dc06e
/tests/test_qtile_tools.py
16e2a40c936c8804d4080338c7deb79b854db5ab
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
frostidaho/python-qtile-tools
b3abf70de692e59f57a9fc6ca0347ad68e4b48c7
d36e8f4dd2afbb52f5d719bfbac8040979806df7
refs/heads/master
2021-01-19T01:15:34.399209
2017-04-05T01:07:04
2017-04-05T01:07:04
87,235,732
0
0
null
null
null
null
UTF-8
Python
false
false
66
py
from qtile_tools.cli import main def test_main(): main([])
[ "frostidaho@gmail.com" ]
frostidaho@gmail.com
474a96f640ec999c7442bc9e0186af716ac3bf80
b6ae8ec90432020e0f1fb249a2ba69dd4bbcfe99
/Day2/list/tuple.py
89fc32c507b5f1c3e125906ac040e508f3dd8445
[]
no_license
hf-hf/Python3-Study
6d634e9ef04c2c4654b292e3e263337b779e4d40
9c3d8b843bb4356bd4e5ef4d7ef59c61f8f37889
refs/heads/master
2022-12-16T14:57:33.067373
2020-09-29T08:17:54
2020-09-29T08:17:54
291,682,774
0
0
null
null
null
null
UTF-8
Python
false
false
1,906
py
# 不可变有序列表 - 元组 tuple ( )# if __name__ == '__main__': # tuple 和 list 非常类似,但是 tuple 一旦初始化就不能修改,比如同样是列出同学的名字: classmates = ('Michael', 'Bob', 'Tracy') # 现在,classmates 这个 tuple 不能变了,它也没有 append(),insert() 这样的方法。 # 其他获取元素的方法和list是一样的,你可以正常地使用classmates[0],classmates[-1], # 但不能赋值成另外的元素。 # 不可变的 tuple 有...
[ "553527481@qq.com" ]
553527481@qq.com
da06c4db439c1b85c8eec435a58a63d8d792b9b4
b2b55f2aea101c050852de97e06b230e1f918014
/number40.py
011ffcd027840e8fc929133548a8c1a7916823b2
[]
no_license
hansol4412/algorithm
d505e202969417fdb0da10421989ef84aa937dbe
a6194b55b1a8f2cf21c91b1f02d92abb3bd10cd2
refs/heads/master
2023-03-22T11:45:01.257350
2021-03-21T11:19:42
2021-03-21T11:19:42
268,396,247
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
# 40. 교집합 (투포인트 알고리즘) # 두 집합 A, B가 주어지면 두 집합의 교집합을 출력하는 프로그램을 작성하세요. # 교집합은 오름차순으로 정렬하시오. # 교집합 구한 후 정렬하시오. a=[] b=[] c=[] n=int(input("첫번째 배열의 크기를 입력하세요.:")) for i in range(0,n): a.append(int(input())) m=int(input("두번째 배열의 크기를 입력하세요.:")) for i in range(0,m): b.append(int(input())) for i in range(0,n): f...
[ "hansol4412@naver.com" ]
hansol4412@naver.com
a5ca186385d589d484d9ce43724d8471804013cc
949999ba1f6afb82f652b2287c8de3ddd37f79aa
/templates/ikev1_pcapReader.py
e7ae26be9986d0d0a3c98d0222a5dd7dba99fe1c
[]
no_license
OnurOzcan35/ikev1-psk-aggressive-mode-dict-attack
5eba3b6c025cfa42fbb5e72da78e0022e666c8b6
b593300e05d7f3c7bb064ce5dfdd9def16c23fca
refs/heads/main
2023-02-27T01:23:46.451956
2021-02-04T12:54:04
2021-02-04T12:54:04
335,952,525
1
0
null
null
null
null
UTF-8
Python
false
false
710
py
from scapy.all import * def openPCAPFile(path: str) -> scapy.plist.PacketList: #TODO Read a pcap or pcapng file and return a packet list try: return rdpcap(path) except: raise Exception("File is not found") raise NotImplementedError('Reading packets not implemented.') def getISAKMPPacke...
[ "noreply@github.com" ]
noreply@github.com
0431fea0e0dcf9db6c90a0cf03b79cb49f3e17e8
b1cb67067656271be22c293f51c1373293a28795
/tests/test_planner.py
e7f5ab4629d2368ea3ac3811344b1185f16c697d
[ "BSD-2-Clause" ]
permissive
NPRA/EmissionCalculatorLib
b4b5445984ead114236715c3f8ed895c360a2bc5
750e7137c8115d26b2eec354ab3f5a65f76a8e21
refs/heads/master
2022-07-11T06:01:47.857745
2021-02-09T10:43:41
2021-02-09T10:43:41
99,795,865
10
5
BSD-2-Clause
2022-06-21T21:11:31
2017-08-09T10:24:36
Python
UTF-8
Python
false
false
480
py
from emission import Planner from emission import PollutantTypes from emission import vehicles class TestPlanner: def test_construct(self): start = [271809.847394, 7039133.17755] stop = [265385.432115, 7031118.13344] vehicle = vehicles.Car(vehicles.FuelTypes.PETROL) planner = Plan...
[ "asbjorn@fellinghaug.com" ]
asbjorn@fellinghaug.com
9610d71e683b7cf6ba117adf541c9de69f52aee6
7b5828edda7751700ca7002b40a214e39e5f48a8
/EA/core/sims4/gsi/command_buffer.py
e1301ea4581704ced936304f7533eab0b6fbd36f
[]
no_license
daniela-venuta/Sims-4-Python-Script-Workspace
54c33dac02f84daed66f46b7307f222fede0fa62
f408b28fb34626b2e3b2953152343d591a328d66
refs/heads/main
2023-03-29T18:08:39.202803
2021-03-30T19:00:42
2021-03-30T19:00:42
353,111,243
1
0
null
null
null
null
UTF-8
Python
false
false
2,504
py
import collections try: import threading _threading_enabled = True except ImportError: import dummy_threading as threading _threading_enabled = False import sims4.commands import sims4.log import sims4.service_manager logger = sims4.log.Logger('GSI') _Command = collections.namedtuple('_Command', ('...
[ "44103490+daniela-venuta@users.noreply.github.com" ]
44103490+daniela-venuta@users.noreply.github.com
9652dc3c1561ddace6104626a615a020f3d8d906
21b5ab9a8e7c1534c4a92cb97a30b0e30a424777
/djblogapp/articles/admin.py
09fd4f4ddbd87b05dc271bc1644dd675addd6c97
[]
no_license
Gazalkhan/BloggingApp
afa7190abf75b3eb854becebf3a43feda71a9dc0
c9d6e813c3c0f39d455568ebc20a2c6e4b534d0e
refs/heads/master
2020-03-19T09:50:09.901586
2018-06-06T11:26:47
2018-06-06T11:26:47
136,320,795
0
0
null
null
null
null
UTF-8
Python
false
false
185
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Article # Register your models here. admin.site.register(Article)
[ "khangazal.gk@gmail.com" ]
khangazal.gk@gmail.com
a7a8a4fc6a4d8860a7cbcf0990e903217b21bb30
fd40d6375ddae5c8613004a411341f0c984e80d5
/src/visions/core/implementations/types/visions_datetime.py
f8a11f0c6b5bf06f1ed01080801bdba0c704c5d0
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
ieaves/tenzing
93c3353e62621c90adefc5a174a2dcde9aacbc46
92d39c1c3a5633d8074e0ffe8c2687c465aebbc8
refs/heads/master
2020-04-25T07:14:31.388737
2020-01-07T02:51:13
2020-01-07T02:51:13
172,608,080
0
0
null
null
null
null
UTF-8
Python
false
false
1,360
py
import pandas.api.types as pdt import pandas as pd from typing import Sequence from visions.core.model.relations import ( IdentityRelation, InferenceRelation, TypeRelation, ) from visions.core.model.type import VisionsBaseType from visions.core.implementations.types import visions_string from visions.utils...
[ "ian.k.eaves@gmail.com" ]
ian.k.eaves@gmail.com
9eb21a225d99d72d993744068321b270fe85c8e0
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-iotda/huaweicloudsdkiotda/v5/model/mysql_forwarding.py
1bd1a82ee4f076d2f13ebb0d6b9e7b5b2c2a94ed
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
8,910
py
# coding: utf-8 import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class MysqlForwarding: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute na...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
6fb3a746e9ba0290370ef755c66cb55f09785135
7cda87756f0b0621e2aae1a5bd627b8ec386dff6
/flaskLogin/app.py
79038bbf9c55ee97127ad9e9a5c4ee069a973733
[]
no_license
angshukdutta92/python-projects
9bf9d191a5a85efd18f2293fa41ed08ff79ec130
4eb108d3d66f5106fc64e45ca190b41cb0742ff7
refs/heads/master
2021-05-20T00:21:39.702393
2016-05-03T16:12:24
2016-05-03T16:12:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,728
py
# import the Flask class from the flask module from flask import Flask, render_template, redirect, url_for, request, session, flash from functools import wraps # create the application object app = Flask(__name__) # config app.secret_key = 'my precious' # login required decorator def login_required(f): ...
[ "studyonlyonline@gmail.com" ]
studyonlyonline@gmail.com
118d8bcfddca20813b19f8d6d4567735c4ac5899
10c1760dd158ce9b9450b45c8d79335596d68035
/web1/migrations/0011_customer_profile_picture.py
55efd49ff82e9b3b2fab58e3cc1d6894cb3f1701
[]
no_license
dalemesser/Mycode
239508ce3feac579d65537480bd3f5d5e810f190
d83d10278d02f50eb2fcc970079c9e710fca6e14
refs/heads/main
2023-03-01T10:16:14.099413
2021-02-09T10:44:36
2021-02-09T10:44:36
330,345,745
1
0
null
null
null
null
UTF-8
Python
false
false
410
py
# Generated by Django 3.1.4 on 2021-01-20 15:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web1', '0010_customer_user'), ] operations = [ migrations.AddField( model_name='customer', name='profile_picture', ...
[ "sachithra@gmail.com" ]
sachithra@gmail.com
309cd04173b4d096eb7b590ed67fc399ef2c0877
cf668ede675f5b5a49912e8ca2170b5d5dba85c3
/FullDesign/LsRand_OnlyTau_4.py
3d9e3b41a25a22b071485ba0d01de3c81c709d52
[]
no_license
amemil/MasterThesisRaw
b6c97a671e740871be541539384192684f5f1966
bb357481cc47ef3a2b241f4b1df85fd0a4ff1de0
refs/heads/main
2023-06-09T22:49:06.082380
2021-06-25T09:38:20
2021-06-25T09:38:20
327,104,381
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed May 12 19:29:28 2021 @author: emilam """ import sys, os import numpy as np sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__)))) import UtilitiesMaster as ut s1init1 = np.load('s1init_16.npy') s2init1 = np.load('s2init_16.npy')...
[ "emilalvar.myhre@gmail.com" ]
emilalvar.myhre@gmail.com
9cfda2d3b33fe057ffac602c8a45eb41a9ec05e5
adea9fc9697f5201f4cb215571025b0493e96b25
/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/interfaces/interface/levels/level/afi_safi/af/segment_routing/prefix_sids/prefix_sid/config/__init__.py
2c88a90da723c84456e7fd1bc37de0086e2d37c7
[ "Apache-2.0" ]
permissive
andyjsharp/napalm-yang
d8a8b51896ef7c6490f011fe265db46f63f54248
ef80ebbfb50e188f09486380c88b058db673c896
refs/heads/develop
2021-09-09T02:09:36.151629
2018-03-08T22:44:04
2018-03-08T22:44:04
114,273,455
0
0
null
2018-03-08T22:44:05
2017-12-14T16:33:35
Python
UTF-8
Python
false
false
34,558
py
from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.y...
[ "dbarrosop@dravetech.com" ]
dbarrosop@dravetech.com
463f2f0409cff14924c1315fe6bb57f0ec627eab
e8c256cc56b72a35eae6676fa12fd1e89ecd9eb4
/main.py
ce2c5cc175db1a25d309d96fa373f9e8336504c8
[]
no_license
abdulfataiaka/spider-task-python
6b26e404c0fa5ca173bd9a8d2f677b5537630b58
52ddc3f4e4fa67b12b908df20529b3774e5c61c9
refs/heads/main
2022-12-22T13:42:39.363274
2020-09-23T21:33:31
2020-09-23T21:35:18
298,099,847
0
0
null
null
null
null
UTF-8
Python
false
false
67
py
# Show examples of how you would use ALL your implementations here
[ "abdulfataiaka@gmail.com" ]
abdulfataiaka@gmail.com
654f45649174dbb73f30e8600f1607e86a067184
160b41b070344658c1f8e1cca3ec2eb8fc0ad253
/commander.py
b48d0e4890be20701d2d9b92c8ed0bb25038e1f6
[]
no_license
lemin2601/easyTools
c1e6fec40703d1e016659ece64746d7a451a172d
c16e16300dcb0cb939376bef899ccf4390186e0b
refs/heads/master
2020-04-09T02:15:11.132072
2018-12-17T15:41:03
2018-12-17T15:41:03
159,934,045
0
0
null
null
null
null
UTF-8
Python
false
false
2,440
py
from logger import L from parse import Parser from utils import parse_args import config import json import sys import gen import os import gv import utils import update_manifest import info import http_server import network import android_build def execute_func(key, args): key = key.strip().lower() if key in...
[ "lemin2601@gmail.com" ]
lemin2601@gmail.com
633b89e36668336997acfca2e4957d233f54f0c5
fb0b9a1137b5aaaff9842e9aeeb1dee98a8dafa6
/step-8/app.py
1d414ceff6610126066b82efe8f2226fe1451466
[]
no_license
davinirjr/treinamento-python
86f90b10352a602be95f3bb09417dcb0224b0c1f
9176452726d801e56ace8783a83baf1647913467
refs/heads/master
2021-01-18T19:09:40.824159
2013-10-09T20:55:18
2013-10-09T20:55:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
#!/usr/bin/env python # coding: utf-8 from time import strftime from bottle import route, run def fat(number): if number in [0, 1]: return 1 return number * fat(number - 1) @route('/') @route('/<name>') def index(name='Esquecidinho'): return 'Hello world, %s. São %s.' % (name, strftime('%H:%M:...
[ "deniscostadsc@gmail.com" ]
deniscostadsc@gmail.com
055cbaf2ea541c498797309600cdf56c93d6dad9
d81d06298965eaf773d16b31fd3ee63bf726a82b
/nexus_test/utils/other.py
1c2d896e6b581e7263efc2b6c2f444271011a1ec
[]
no_license
MakhmoodSodikov/nexus-test
081ddcd7181beef2be2dc6ffff977b3e44b3df27
c15530269ef237fb6fb3144a97dea1ea4cad7609
refs/heads/master
2023-06-18T00:09:27.806493
2021-07-04T15:49:35
2021-07-04T15:49:35
382,351,811
0
0
null
null
null
null
UTF-8
Python
false
false
811
py
import os from logging import getLogger logger = getLogger('main logger') def write_lines_to_file(text: list, filepath: str) -> int: """ :param text: Text to be written to the file :param filepath: Path to the file :return: 1 if Done correctly, -1 otherwise """ try: with open(filepath...
[ "sodikov.mmo@phystech.edu" ]
sodikov.mmo@phystech.edu
29ae359c329e7ea32fa6df4622e13b1757dc1c55
caa13ef90cff357108cb55286faf8e7f5b69e13d
/11-ejercicios/ejercicio4.py
c785dee035add7d32003a48feaf01df16709dacc
[]
no_license
Terminal-Redux/master-python
f075bc11408e5d8234763182244e2bc92bb4fc6c
bd4dee2b3d6e2a3e5669f0f412fb12812228cd74
refs/heads/master
2022-11-20T01:39:08.722004
2020-07-21T00:57:25
2020-07-21T00:57:25
281,259,245
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
""" Ejercicio 4. Crear un script que tenga 4 variables, una lista, un string, un etnero y un booleano y que imprima un mensaje segun el tipo de dato de cada variable """ def traducirTipo(tipo): result = "" if tipo == list: result = "LISTA" elif tipo == str: result = "CADENA DE TEXTO" e...
[ "joseamilcargonzalezmiranda@iMac-de-Juan.local" ]
joseamilcargonzalezmiranda@iMac-de-Juan.local