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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
01a4792e02f8e7a6911af7ab76554e70e0471d8b | 694d57c3e512ce916269411b51adef23532420cd | /leetcode/215kth_largest_element.py | 58f31f67f601ead30791f3de73429cab51b47b5f | [] | no_license | clovery410/mycode | 5541c3a99962d7949832a0859f18819f118edfba | e12025e754547d18d5bb50a9dbe5e725fd03fd9c | refs/heads/master | 2021-05-16T02:46:47.996748 | 2017-05-10T23:43:50 | 2017-05-10T23:43:50 | 39,235,141 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | from random import randint
class Solution(object):
def partition(self, start, end, p, nums):
pivot = nums[p]
nums[p], nums[start] = nums[start], nums[p]
i = j = k = start
while j <= end:
if nums[j] == pivot:
nums[i], nums[j] = nums[j], nums[i]
... | [
"seasoul410@gmail.com"
] | seasoul410@gmail.com |
f6e2e1219bb19b1ec4f59e29fe4b3593536497ff | 804fcf4a3cfba431be701b214cc383a930e08ff3 | /pracCsv/solution.py | fd3a6ce93cc43238d9e366f48713febe8cd45a95 | [] | no_license | showkat2203/APIwithPython | ea7f70a885480ddae1880af5520425682fe283f1 | c2b6f6cf4a2e4d61a94bd11132daeafa7c86d1f7 | refs/heads/master | 2023-06-14T11:45:40.625423 | 2021-07-11T15:46:18 | 2021-07-11T15:46:18 | 106,168,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | import csv
import json
row_count = -1
result = ""
fileName = 'test.csv'
fields = ""
with open(fileName, 'r') as inputFile:
csvReader = csv.reader(inputFile)
fields = next(csvReader)
resList = []
for row in csvReader:
cnt = 0
resDict = {}
for i in row:
if fields[cn... | [
"showkat@alemcloud.com"
] | showkat@alemcloud.com |
733b3c00a643028efa8182beee51f32d547342d9 | 4363b7428a09543a9e6c2a3e1009e98be8a2ab43 | /models/__init__.py | 013c5a42bc95a280f8f21f6eafe38928848e8752 | [] | no_license | DelfimRocha/E-learning | 2284cf75da979af5c8d260599255870ff7fc021d | c05c48725850ecfa80bac6a5a2a2e93a8699629f | refs/heads/main | 2023-07-15T13:28:57.877641 | 2021-09-01T08:44:12 | 2021-09-01T08:44:12 | 401,990,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from . import courses
from . import program
from . import instructor
from . import student
from . import enrolment | [
"dalfimrocha@yahoo.com"
] | dalfimrocha@yahoo.com |
f83ded7bf3caf726e79346e44ecd420f736fa43e | 10465a8e4771b221fb1f4a92b804f8f2cf031edf | /server/app/service/job_runner.py | 82938c4f7cceab7a81d085557060f64e12a16aef | [
"MIT"
] | permissive | raspihats/EvePnP | fd51ba35ebef2838e87108b617b873254863adc3 | 2961d759554c38609f0f431c012ea8d38016f347 | refs/heads/master | 2023-01-24T21:17:42.789363 | 2019-06-18T11:46:57 | 2019-06-18T11:46:57 | 164,684,352 | 0 | 0 | MIT | 2023-01-14T00:16:23 | 2019-01-08T15:59:56 | Python | UTF-8 | Python | false | false | 9,741 | py | import gevent
from ..dao import axis_dao, head_dao, feeders_dao, packages_dao
from .controllers import controllers_service
from .actuators import actuators_service
class DictKeysToObjectProps(object):
def __init__(self, config):
self._config = dict(config)
def __getattr__(self, attribute):
re... | [
"florin.costa83@gmail.com"
] | florin.costa83@gmail.com |
e31378c2345f786daf6d340cfcfcacf070cdc24a | 5656b4c420b284d2c0443138e02246ecc0484c9c | /api/socialmedia/Posts/models/post_model.py | f7606be465f83ad2dcc837e5b62a1af63a722854 | [] | no_license | Pbasnal/flask-twitterclone | 94e3b52f74b9bf957cd0797034372687918d0d38 | 1d7d2da28448ab710848aa760e2899c3a65ee150 | refs/heads/master | 2023-04-30T15:35:42.768869 | 2021-05-25T14:33:01 | 2021-05-25T14:56:43 | 370,718,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from flask_mongoengine.wtf import model_form
from api.models.MongoEngine import dbcontext
from logging_setup.logger import ApiLogger
class Post(dbcontext.Document):
content = dbcontext.StringField(required=True)
sentiments = dbcontext.DictField()
created_by = dbcontext.StringField(max_length=50)
creat... | [
"pankajbasnal17@gmail.com"
] | pankajbasnal17@gmail.com |
29acead529edc72fe4dc197e2a785872c12c51e0 | 3cedc2e0867a53ed2f36e01624f369693d1a050d | /rnn/rnn88_females_original.py | f4f2cc56c161654c5daaec73a43be8329ccc3589 | [] | no_license | lkpiel/mastersthesis | a471d8c6a5881e13599b22965dd3f437c83fc967 | 71c723b435b347d2805e159b6e10828f89541e98 | refs/heads/master | 2023-02-20T11:57:45.266361 | 2018-05-06T11:17:43 | 2018-05-06T11:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,742 | py | #! /usr/bin/python3
import sys
print(sys.version)
import sys
import pandas
import numpy as np
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential, load_model
from keras.layers import Dense, Input, Dropout, Average, Merge, Layer, Conv2D, MaxPooling2D, GlobalAveragePooling2D, Glob... | [
"leo.piel@pipedrive.com"
] | leo.piel@pipedrive.com |
ad992d9f127c3b1b9a1220f553dd8f520df52a66 | 4dad1ae37b41ae6c96f3345dee1d9d1cbdf42b7b | /searchElementRotatedSorted/main.py | e99e851deefba668b9178d0eb38496366e6b3341 | [] | no_license | RoaRobinson97/python | 011f9dcdd4414d312780e9f11e1143404161d9e7 | 449ecccecb445a3d49bd3820a855dade1d759ddb | refs/heads/master | 2023-01-29T22:53:45.122752 | 2020-12-07T16:10:41 | 2020-12-07T16:10:41 | 295,473,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | # Python Program to search an element
# in a sorted and pivoted array
# Searches an element key in a pivoted
# sorted array arrp[] of size n
def pivotedBinarySearch(arr, n, key):
pivot = findPivot(arr, 0, n - 1);
# If we didn't find a pivot,
# then array is not rotated at all
if pivot == -1:
... | [
"roa.robinson97@gmail.com"
] | roa.robinson97@gmail.com |
2651fa548b6cced6e67fddac0af3a0c00d304481 | e3eb265f16c0cb41e2d7cbe17ea2523803812247 | /py-scoring/src/ai/h2o/sparkling/ml/__init__.py | 2b8785f3ffa0d4d0b155c8cc6bf2f109f14bc6cf | [
"Apache-2.0"
] | permissive | joscani/sparkling-water | 973cea0c96c8cab1505ed452c78ef2615d4efe2a | 71a0cdb763c3b2f8f4cd8cb9a4c3d1874df05089 | refs/heads/master | 2023-07-11T03:35:28.186554 | 2021-08-18T16:23:21 | 2021-08-18T16:23:21 | 257,917,903 | 0 | 0 | Apache-2.0 | 2020-04-22T13:59:54 | 2020-04-22T13:59:53 | null | UTF-8 | Python | false | false | 1,349 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"noreply@github.com"
] | noreply@github.com |
bdd26c536928ecc4169204488d28c7ea79fac6d1 | 6e0d8d91dd22e2275cd713822679d5cabbc9331a | /thespian/system/__init__.py | 2c69b0574347c752e0c9daedb76632e6daa45a22 | [
"MIT"
] | permissive | kquick/Thespian | 711712eb0a9ad3370f1013c8393cc461b9541dfe | dfc6d3e865c05f929328b85e98671a5c8fc3a54a | refs/heads/master | 2023-05-26T15:51:57.959690 | 2023-05-22T15:08:00 | 2023-05-22T15:08:00 | 78,292,621 | 203 | 32 | MIT | 2021-06-22T14:42:09 | 2017-01-07T17:18:27 | Python | UTF-8 | Python | false | false | 636 | py | # This module contains the various ActorSystemBase implementations
# upon which the ActorSystem operates.
from thespian.actors import ActorAddress, ActorSystemMessage, PoisonMessage
from thespian.system.addressManager import *
from thespian.system.messages.status import *
from thespian.system.messages.convention impor... | [
"kquick@godaddy.com"
] | kquick@godaddy.com |
531ffd783fb26e6eb32629fb492934c669fbac42 | 46e01962d3eef258562b4b5e0204368a80eb2101 | /resources/site-packages/dns/rdtypes/ANY/EUI48.py | aa260e205d08298646a600c4789522285c6fd6d8 | [
"WTFPL"
] | permissive | elgatito/script.elementum.burst | fb4fe3f10f722822373e2739a9308130482d1734 | e37adca9634f644890673dee236a9c215c6744c1 | refs/heads/master | 2023-08-26T20:30:59.300868 | 2023-07-27T11:23:44 | 2023-07-27T11:23:44 | 111,373,790 | 108 | 181 | WTFPL | 2023-08-28T11:57:32 | 2017-11-20T06:59:52 | Python | UTF-8 | Python | false | false | 1,124 | py | # Copyright (C) 2015 Red Hat, Inc.
# Author: Petr Spacek <pspacek@redhat.com>
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose with or without fee is hereby granted,
# provided that the above copyright notice and this permission notice
# appear in all copies.
#
#... | [
"denis.kuzmenok@gmail.com"
] | denis.kuzmenok@gmail.com |
411a798533ad2659caf537d88c31d8b5872d0645 | 8b61c079a068f7f888e9a2683b95ca81b403a681 | /program/pizaid/ioserver.py | 0069f77acbdfa9c4bc81e583104e06a8b4117a93 | [
"BSD-2-Clause"
] | permissive | Pizaid/Pizaid-LCDPanel | 69faef0fe401a3fd943301ca7202853152152179 | e66b6d33afb9da273a823bfeb2f3bbb9d3d3faab | refs/heads/master | 2016-09-05T11:20:22.764960 | 2014-08-09T12:30:37 | 2014-08-09T12:30:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set fileencoding=utf-8 :
#
# Author: Makoto Shimazu <makoto.shimaz@gmail.com>
# URL: https://github.com/Pizaid
# License: 2-Clause BSD License
# Created: 2014-07-30
#
import threading
from utils import getch, tprint
from lcdcontroller import get_lcdcontroll... | [
"makoto.shimaz@gmail.com"
] | makoto.shimaz@gmail.com |
9c1f3e860dc2261ed09a22aa123382a828211c1a | 490186e345bdc0e2db1a3cb9a53f5e3e784a0d35 | /tutorials/blitz/neural_networks.py | c5a889d3d723f19f486722be161ebe60260365cf | [] | no_license | zephan-spencer/learning-nas | 8bf2b6b50df14eb838fd2589fbef2ff7228febb2 | 1ca5fa6ee05542142b13599c4e9541c9aa0ede4e | refs/heads/main | 2023-04-19T04:44:19.261960 | 2021-05-01T22:52:06 | 2021-05-01T22:52:06 | 363,273,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,430 | py | # Taken from a pytorch.org tutorial
import torch
import torch.nn as nn
import torch.nn.functional as F
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
# 1 input image channel, 6 output channels, 5x5 square convolution
# kernel
self.conv1 = nn.Conv2d(1, 6, 5)
... | [
"number45zephan@gmail.com"
] | number45zephan@gmail.com |
b1bb1dfa462be18d9be81098971bfbdf1023cb30 | 7ce761781e7f5b57b2469adce459a71b4758694d | /env/lib/python2.7/site-packages/graphlab/toolkits/_internal/search/_search.py | 0870866d1721ce31a94ab4442179cea4425399d7 | [] | no_license | hophamtenquang/RecSys | c4fa18d1ba262670a284b2fba2ca97b882ef0f4c | 535472844a046cadd9230302da647a54afff95e8 | refs/heads/master | 2021-01-19T17:00:32.924064 | 2017-08-30T10:31:32 | 2017-08-30T10:31:32 | 101,031,687 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,660 | py | import sys as _sys
import graphlab as _gl
import graphlab.connect.main as glconnect
from graphlab.toolkits._internal_utils import _raise_error_if_not_sframe
from graphlab.toolkits._model import SDKModel as _SDKModel
from graphlab.toolkits._main import ToolkitError as _ToolkitError
from graphlab.toolkits._internal_util... | [
"hophamtenquang@gmail.com"
] | hophamtenquang@gmail.com |
98e494f9969bfbe0e38927f5f5a9e9da3f675862 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /tjMNAEgkNvM5eyEqJ_9.py | 009b0a6620c65bbe7a418ed56973cde1d60c4685 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | """
You are given two inputs:
1. An array of abbreviations.
2. An array of words.
Write a function that returns `True` if each abbreviation **uniquely
identifies** a word, and `False` otherwise.
### Examples
unique_abbrev(["ho", "h", "ha"], ["house", "hope", "happy"]) ➞ False
// "ho" and "h" are ambi... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
78bb3e33b198664933fcf0bc38618fc403aed04b | 2393a8fabee3d39bf1623e26c0313e3351caf814 | /python/study/IO/示例代码/nonblocking/nonblocking-client.py | bb4e00884ca6c2f8d4878a852bc366caf746f668 | [] | no_license | shidg/note | 5d3aaff9d1c6cf87b89513b7712638c9b808653c | d46aceaed64e3e2f854149f71f18fa92d650dc37 | refs/heads/master | 2023-05-26T16:14:51.715966 | 2023-05-19T02:08:36 | 2023-05-19T02:08:36 | 27,533,612 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/local/bin/python3
# -*- coding: utf-8 -*-#
'''
author: -- shidegang --
Created Time: 2019-08-28 10:43:17
'''
import socket
sk = socket.socket()
server_addr = ('127.0.0.1',9000)
sk.connect(server_addr)
while True:
sk.sendall('hello'.encode(encoding='utf8'))
data = sk.recv(1024)
print(data.decode(en... | [
"shidg@feezu.cn"
] | shidg@feezu.cn |
17712dbfabbed2c84ca874770c52e2749ece99e5 | 0b8503f8fe659284edaf58ed88e0d80b08995206 | /security/apache/TestPenetration_Home.py | d8ecf592421287a49865bc4e667808785d945ca2 | [] | no_license | ahopgood/Python | bfd2f12efadfde94f8f569ce0bbf9018c39bbc5d | 7cbfe64aa39b1cb969a09cac0040bd77b6980309 | refs/heads/master | 2021-01-18T21:24:48.831454 | 2016-05-23T20:28:04 | 2016-05-23T20:28:04 | 47,199,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,241 | py | __author__ = 'Alexander Hopgood'
from apache import checkStaticPage
class test_Penetration_Home():
#Scaffolding class for testing liveness of a domain with multiple sub domains
def domain(self, domain, subdomains):
resultDict = dict()
outputStr = "Checks for domain ["+domain+"]:"
for nam... | [
"alex.hopgood@gmail.com"
] | alex.hopgood@gmail.com |
7ff3f503b6109c982a1c88f57ebeb4903c7ad1a8 | 47c0c375f85d13802c52fac358a6434a9ec24387 | /pencil sketch/cv2.py | d3dbc3620edc17c2074460b870a8e0e29f144e62 | [] | no_license | hemant5668/computer-vision | d4f8211b35897fee8a7e8b41a7ae7176581e458e | 0afd4127e064fa955edee08bff8f73642baa3a00 | refs/heads/master | 2020-12-17T22:14:44.618814 | 2020-08-09T09:35:13 | 2020-08-09T09:35:13 | 235,297,212 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py |
# coding: utf-8
# In[1]:
import cv2
import numpy as np
# In[36]:
#sketch generating function
def sketch(img):
#converting to gray
gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
#remove noice
gray_blur=cv2.GaussianBlur(gray,(5,5),0)
#seperate edges
canny=cv2.Canny(gray_blur,-10,50)
... | [
"noreply@github.com"
] | noreply@github.com |
c48eddd65d99df02570dcee5cae5f93fb26f50e7 | 3552acf30ba11692df7f138d3ba6686fce07cddd | /assignment4/main_task2.py | 4db759bc8163c20837de092d78ac0d8e9820fd41 | [
"Apache-2.0"
] | permissive | gnayoaixgnaw/Big_Data_Analytics | 07ac247b204122d0c44a841947a231898f86b876 | 4866bbb3de203304edbf107b833539b28be9b35a | refs/heads/main | 2023-03-05T23:55:24.191846 | 2021-02-17T20:41:50 | 2021-02-17T20:41:50 | 325,404,711 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,686 | py | import sys
import re
import numpy as np
from operator import add
from numpy import dot
from numpy.linalg import norm
from pyspark import SparkContext
from pyspark.sql import functions as func
from sklearn.metrics import f1_score
from sklearn.metrics import confusion_matrix
def buildArray(listOfIndices):
returnVal... | [
"noreply@github.com"
] | noreply@github.com |
c4ae49b5ef3dff9cda6859483ab61b793df6c6e4 | 90e6860b5370b742f01c0664ac84f14dc1272155 | /src/ziggurat/config/StandardConfigurator.py | fdce59892f864b753760a8508b5a30a278cc7f28 | [] | no_license | sernst/Ziggurat | e63f876b8f2cb3f78c7a7a4dcf79af810a540722 | 4ae09bbd9c467b2ad740e117ed00354c04951e22 | refs/heads/master | 2021-01-17T07:20:17.138440 | 2016-05-27T14:27:43 | 2016-05-27T14:27:43 | 9,278,283 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,944 | py | # StandardConfigurator.py
# (C)2013
# Scott Ernst
from __future__ import print_function, absolute_import, unicode_literals, division
import re
from pyaid.string.StringUtils import StringUtils
from pyramid.config import Configurator
from pyaid.file.FileUtils import FileUtils
#________________________________________... | [
"swernst@gmail.com"
] | swernst@gmail.com |
312229298bb7c940f89122dd2cd79fc030c302c7 | 0ca3795da1d3d88ae7d77ea2ab44ce3c95bb49ed | /blog/apps/user/apps.py | 2cb53f03d9978c31a79f9c9a826368829b8184c4 | [] | no_license | DmitriyKhalturin/django-blog | e1a5c1c66a52a141cb034e0957e6001dc31f118c | e30368d75d4d675613a93f4e3e186a5e7811018d | refs/heads/develop | 2023-07-31T22:41:22.381474 | 2020-08-04T19:41:04 | 2020-08-04T19:55:43 | 281,173,512 | 0 | 0 | null | 2021-09-22T19:44:13 | 2020-07-20T16:46:24 | Python | UTF-8 | Python | false | false | 93 | py | from django.apps import AppConfig
class UserConfig(AppConfig):
name = 'blog.apps.user'
| [
"dmitry.halturin.86@gmail.com"
] | dmitry.halturin.86@gmail.com |
d2441a8e7cd1131ccb87e1debc5c49e33fc62f90 | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-SearchKit/setup.py | cfce0b4f572de3e7d3cb839fb83d76b5f34634ee | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | '''
Deprecated wrappers for the "SearchKit" framework on macOS.
Use the CoreServices package instead.
'''
from pyobjc_setup import setup
VERSION="5.1.1"
setup(
name='pyobjc-framework-SearchKit',
description = "Wrappers for the framework SearchKit on macOS",
min_os_level='10.5',
packages = [ "SearchKi... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
a47ce249f69c56724d0d6a2002329249502be5d7 | 1774936282e03a2e12c589314f2f865181a2de07 | /learning_templates/basic_app/templatetags/my_extras.py | 9dcc56005020c5da817fd1b1c2b7a692569d5c45 | [] | no_license | kimman8/django_deployment-example | 458ee1318d71d01a90842bdccd01ffb5aeb745b4 | 54b417d96c52de37670d31de4ca0fc1bd43e75d4 | refs/heads/master | 2022-12-23T15:26:49.989409 | 2020-10-01T22:30:55 | 2020-10-01T22:30:55 | 300,247,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | from django import template
register = template.Library()
@register.filter(name='cut')
def cut(value, arg):
"""
This cuts out all value of arg from the string
"""
return value.replace(arg,'')
# register.filter('cut',cut)
| [
"KIM@KIM-YUENs-iMac.local"
] | KIM@KIM-YUENs-iMac.local |
2c3045452e184a876d836e4523e0d1bc7d1c826e | b28753c509a011a13c9e4068cbf295808f4f158e | /app/firestore_services.py | a5d65186c94060cb5445934b15199d85a7b4ccd5 | [] | no_license | abecerra0521/flask | a62bf9520be44927412df141079f8c418fb65fd4 | 8e696c9ceb664c29a297df4745e81a9732a03907 | refs/heads/master | 2020-05-21T11:37:37.865189 | 2019-05-22T15:56:06 | 2019-05-22T15:56:06 | 186,030,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,383 | py | import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
credential_app = credentials.ApplicationDefault()
firebase_admin.initialize_app(credential_app, {
'projectId': 'todo-list-flask',
})
db = firestore.client()
def get_users():
return db.collection('users').get()
... | [
"abecerra.aabg@gmail.com"
] | abecerra.aabg@gmail.com |
9b857faea34313ff6868b7fa5be397c40a4184e6 | 89eeace71191fc929c2d93b7fe876ac7db441200 | /site_scons/site_tools/lib_rc/__init__.py | 7af9a109593330bb56823ceeecd2a948aa4c6847 | [] | no_license | janbraiins/lib-rc | 2b8e2092c23bbe03cfff2121fc22fb38cc715c85 | d5b6b909ca5f9f3d1fbf7404a48e3f3745ba2696 | refs/heads/master | 2022-12-26T18:43:17.007003 | 2017-08-19T09:27:32 | 2017-08-19T09:27:32 | 296,148,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | """Scons Tool for building external sources against lib-rc.
The tool assumes the build configuration is available through
construction environment variable 'CONFIG'. The following
configuration elements are required:
- LIB_RC_DIR - top level directory that contains the source
tree
Copyright (c) 20... | [
"jan.capek@braiins.cz"
] | jan.capek@braiins.cz |
43bd61d034275b4e72d5fd73ddf6e07f646548ed | 85f68b427bf9c4b8b5c3f8a70dccc217226e9706 | /gam_app/old_migrations/0012_auto_20180619_1641.py | 7de987d6f30f3cd7be49de7d4ff093f9f154c292 | [] | no_license | benrogboe/GAM | ffb87e76a87aa7eaf0d0d33d4df7ddc571399e49 | fbec7cb967252578d4669c5ff91a9b0b9cdfd9d5 | refs/heads/master | 2020-03-30T05:08:38.811097 | 2018-09-28T18:55:24 | 2018-09-28T18:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | # Generated by Django 2.0.1 on 2018-06-19 16:41
import ckeditor.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('gam_app', '0011_auto_20180619_1527'),
]
operations = [
migrations.AlterField(
... | [
"apjanco@gmail.com"
] | apjanco@gmail.com |
ddf3cb7cd88608065d779da0fa8b72337e5b9206 | 7e91bb1bb499139f00b2f1d3fc4769945f727260 | /math/triangle_quest.py | fdb24f4d8d38c299f05fce89b29474d191897c10 | [] | no_license | neeraj1909/python-hackerrank | 46867ee40d1fd647b049e78be02156c1b962b11b | 6004f5f14878f131bf9f3441af9f5f4ec7c3a2a5 | refs/heads/master | 2021-08-19T14:43:12.460929 | 2017-11-26T17:43:49 | 2017-11-26T17:43:49 | 108,431,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | for i in range(1,int(input())): #More than 2 lines will result in 0 score. Do not leave a blank line also
print(i*(pow(10, i) - 1)//9)
| [
"neeraj1909@gmail.com"
] | neeraj1909@gmail.com |
3e9fbcc82ac9735647bbbf58624023d9b3049086 | 7f368b275cd18a5b7b2eb22b822223252914c8ef | /tensorflow_gan/python/tpu/cross_replica_ops.py | 7ab35260b93b8be210c6cb4f9caf314cc746b313 | [
"Apache-2.0"
] | permissive | nivedwho/gan | 176c624800378d9dfa9f74211c362b62953cc7f1 | 723ce1e3627778b979f048d817f834f253611ff4 | refs/heads/master | 2023-08-01T08:07:34.299917 | 2021-09-14T04:10:38 | 2021-09-14T04:11:37 | 396,680,181 | 0 | 0 | Apache-2.0 | 2021-08-16T07:44:33 | 2021-08-16T07:44:33 | null | UTF-8 | Python | false | false | 3,128 | py | # coding=utf-8
# Copyright 2021 The TensorFlow GAN Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
c4b0fa6a10dd0233f06a512fb6746c6c4f0b86d7 | b17fda8e3a9f360cbab8e8ed0ecd66b03787250a | /.venv/lib/python2.7/site-packages/planemo/templates.py | caa25724a0252f54837ada1ffbff3f78b82341b4 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | maumauleon/galaxy-irri-dev | 7a4b824c90474da0a2f3a3b858777c5089b9d5cb | 063bf0dca5d465466aefa77edaf47df12c4ff932 | refs/heads/master | 2022-11-16T03:10:18.067196 | 2017-08-23T03:31:01 | 2017-08-23T03:31:01 | 98,497,124 | 1 | 2 | NOASSERTION | 2022-11-01T17:00:32 | 2017-07-27T05:25:40 | Python | UTF-8 | Python | false | false | 478 | py | try:
from jinja2 import Template
except ImportError:
Template = None
NO_JINJA2_MESSAGE = ("This functionality requires Jinja2 but this library is "
"unavailable. Install with `pip install jinja2`.")
def render(template_str, **kwds):
""" Use jinja2 to render a template
"""
if ... | [
"v.juanillas@irri.org"
] | v.juanillas@irri.org |
a697246864c5f020df2a2b5b60c9e4a429c0d160 | 7f53c41182a6d9c5da0c58a15716f01725ac0316 | /2019_2_19_public_test/test.py | e79247064e8a5dfa2e00c40dbbe822ef17f75f3b | [] | no_license | 1286211699/2019_1_23_pub_test | f6b7ee089e78ad673c56b3cd4ccee9b2154581f6 | 3aed7f4941353d48bf3407e9d30ac85c83b0ed7b | refs/heads/master | 2022-12-19T14:41:15.264627 | 2019-03-21T09:46:08 | 2019-03-21T09:46:08 | 167,125,649 | 1 | 0 | null | 2022-12-08T01:33:30 | 2019-01-23T05:54:52 | HTML | UTF-8 | Python | false | false | 666 | py | import _thread
import time
# 为线程定义一个函数
def print_time( threadName, delay):
count = 0
while count < 5:
time.sleep(delay)
count += 1
print ("%s: %s" % ( threadName, time.ctime(time.time()) ))
# 创建两个线程
#但是这个模块我们不推荐,因为底层封装的时候它的主线程不会等待子线程的结束!
#官方以及我们推荐再封装Threading,所以在这里大家了解下
try:
... | [
"1286211699@qq.com"
] | 1286211699@qq.com |
7e3af968048a42172de4897609638c92a4942170 | bb1fe15070832a508e4fbde929212414f4c10e78 | /felipe.py - Organizar/aula45.py | b30ab173614fd6f05f8b8b5121103ed4407e3874 | [] | no_license | structuredworldcapital/Lab-de-Estudos | 5cfd62414e4811b8170d8349563444f547811b3f | c97421549e8fe8196c321fd453b40ed3fab32cdf | refs/heads/master | 2022-07-25T16:50:56.956945 | 2020-05-04T17:23:09 | 2020-05-04T17:23:09 | 261,243,167 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 1,011 | py | from random import randint
itens = ('Pedra', 'Papel', 'Tesoura')
print('''Suas opcaoes:
[ 0 ] PEDRA
[ 1 ] PAPEL
[ 2 ] TESOURA''')
jogador = int(input('Qual é a sua jogada?'))
print('-=' * 11)
print('Computador jogou {}'.format(itens[jogador]))
print('Jogador jogou {}'.fomrat(itens[jogador]))
print('-=' * 11)... | [
"giancarlo.s.graziano@gmail.com"
] | giancarlo.s.graziano@gmail.com |
ddf8e310ace1ebb6773c14c882d812f973ffa1af | 4b4828d3c98d76d7bf38f90a015945acc408ddc5 | /PythonAI/Source/W2D3/src/bmi_web.py | 441f43d452b0cdebf5e3e9a87e8c79e84ae2551b | [] | no_license | Huh-jae-won/Study | cb5d32728e8dcded492e7edb054b500c91ec607c | e4dbc3fef69bb273b62b866fb5ef2a7250222f10 | refs/heads/main | 2023-06-20T13:06:26.691899 | 2021-07-11T07:43:41 | 2021-07-11T07:43:41 | 362,759,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | """
# URL : http://localhost:8080/cgi-bin/bmi_web.py
"""
# 모듈 로딩 ---------------------------------------------------
import cgi, sys, codecs, os
import joblib
# WEB 인코딩 설정 ---------------------------------------------
sys.stdout=codecs.getwriter('utf-8')(sys.stdout.detach())
# 함수 선언 ----------------------------------... | [
"dfr9034@naver.com"
] | dfr9034@naver.com |
311e9dd78efad9b732440d9f4fae507fa27b1498 | f810888add2af1d8c30cf9920ee6c9becd687c60 | /Beginner/repeat.py | fc6cec1d130fccbc18daa1548b2df28ad7f07ba4 | [] | no_license | deepa045/python-programming | 2a4cc7d42131cc302b3573fe9d866dc62ca480ea | 373aeccbc5e1509f093f78e273052263ee0317fe | refs/heads/master | 2021-09-13T13:29:33.862035 | 2018-04-30T17:56:36 | 2018-04-30T17:56:36 | 125,207,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | string,val=raw_input().split()
for num in range(int(val)):
print string
| [
"noreply@github.com"
] | noreply@github.com |
ce62fce4822d0977d18f15b3bae8d32747436bd3 | 57f6805e4fa5aeb781af2434f41bbafd35ad6023 | /SentinelTime/time_series.py | 51ab51746fd19e95c98cd35a4776956858c24335 | [
"MIT"
] | permissive | marlinmm/SentinelTime | 4c87b0b0c38f92769614ebd6b6e2f85128242864 | 5732f23d508582c6b33bce68967331abe8c5cf9c | refs/heads/master | 2023-04-14T03:40:09.464249 | 2021-03-20T11:42:59 | 2021-03-20T11:42:59 | 291,967,885 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,049 | py | from SentinelTime.data_preprocessing import *
from SentinelTime.mask_stack import *
import rasterio.mask
import matplotlib.pyplot as plt
import pandas as pd
def extract_dates(directory, allowed_orbits=None):
"""
Extracts dates from list of preprocessed S-1 GRD files (need to be in standard pyroSAR exported na... | [
"marlinmueller.mm@gmail.com"
] | marlinmueller.mm@gmail.com |
c6b2e8b66b536d2ec8d0b0b20ddef5ee4cfd6e91 | 51a57371bca60654001445f75d1c17007a1de04d | /part5.py | 8874a60440882e00226e2d4f8d322c87567c39ce | [] | no_license | rahuljain1310/State-Estimation | 674c263e6526092f5577174ed5ca8fb4e3718eca | 625709dd5d1ee659853ea93ee4c50def0d811a11 | refs/heads/main | 2023-03-26T03:06:50.529939 | 2021-03-24T10:32:43 | 2021-03-24T10:32:43 | 350,550,564 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# File : part5.py
# Author : Rahul Jain
# Email : rahuljain13101999@gmail.com
# Date : 23/03/2021
import json
import numpy as np
from math import sin, cos, pi
from filter import KalmanFilter
from model import AirPlaneModel
from config import A, B, C, R
from matplotl... | [
"ee1170476@iitd.ac.in"
] | ee1170476@iitd.ac.in |
cc212e89de838c5d797940d26049945d6c484869 | b21b1c9272a42c7c2a74ce871de90e0fe27798d0 | /rename.py | b252208f83c0697272e284511ba2742392aa8f8d | [] | no_license | rafiahmad16/object-detection-yolo-project | 387e47d3099f45ec6da56d9c95f79b0dd6c8f6dc | 8ea7e83377596ecb7bd1884cdf60414c4c3b5e9f | refs/heads/master | 2021-09-13T04:53:51.168185 | 2018-04-25T06:15:00 | 2018-04-25T06:15:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | import os
from shutil import copyfile
imdir = 'v_images'
if not os.path.isdir(imdir):
os.mkdir(imdir)
folders = [folder for folder in os.listdir('.') if 'video_images' in folder]
number = 2007
for imfile in os.scandir('video_images'):
filename = imfile.name
extention = filename.split('.')
if extention[1] == 'j... | [
"rafi01010010@Rafis-MacBook-Air.local"
] | rafi01010010@Rafis-MacBook-Air.local |
dd722e77341a10ff56977e18b26a3b12366106a6 | 7729ddbb2e4eb03469cd19f2ac6b5670b831923b | /src/seraing/urban/dataimport/__init__.py | 626639e80ca9ee026c47dbf2d06065f7a7893534 | [] | no_license | IMIO/seraing.urban.dataimport_22 | 5cd7bb6e09debeb72145af107b99997ba54f96a3 | db2f3c596572159692fa6cb11050111d1cb0fca5 | refs/heads/master | 2021-05-05T17:01:27.788747 | 2017-09-12T13:45:01 | 2017-09-12T13:45:01 | 103,239,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # -*- coding: utf-8 -*-
"""Init and utils."""
from zope.i18nmessageid import MessageFactory
_ = MessageFactory('seraing.urban.dataimport')
def initialize(context):
"""Initializer called when used as a Zope 2 product."""
| [
"julien.jaumotte@imio.be"
] | julien.jaumotte@imio.be |
3bd3772edc7f9f005f3716bbebdb9186090e3414 | 8fc36ac61daf5f24e4b3cec32996173eb1b554ec | /fuxi_kubernetes/handlers/retry.py | a5678923881ee0ed49db334321e31ec282723362 | [
"Apache-2.0"
] | permissive | vklonghml/fuxi-kubernetes | 8c1928658f1508efec1288193bed027c058950ff | 899fac8f9a885397b764cec988ee07e608569c81 | refs/heads/master | 2020-05-27T08:01:41.469905 | 2017-03-02T02:08:07 | 2017-03-02T02:08:07 | 82,534,295 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,289 | py | # Copyright (c) 2016 Mirantis, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"vklonghml@gmail.com"
] | vklonghml@gmail.com |
75a03e1852de81c664b2d63a255fcd114b89401d | c25b974f8c124c3eb3701684ab6d3546368ba99a | /biplane_kine/smoothing/kf_filtering_helpers.py | 63790043b47b8c5c2e7062b6347e3487a7466b32 | [
"MIT"
] | permissive | klevis-a/process-vicon-biplane | 9530ea47b93260a361b318f04dcb1a2dbc7b2492 | f140589b4705f0d6411b80b8e2699add68d08662 | refs/heads/master | 2023-07-05T13:08:10.879630 | 2021-08-03T23:55:46 | 2021-08-03T23:55:46 | 287,614,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,832 | py | import numpy as np
import itertools
import distutils.util
from operator import itemgetter
from typing import Tuple, Union, Dict, Any, Sequence
from scipy.signal import butter, sosfiltfilt
from biplane_kine.smoothing.kalman_filtering import (LinearKF1DSimdKalman, FilterStep, StateMeans, CovarianceVec,
... | [
"klevis.aliaj@utah.edu"
] | klevis.aliaj@utah.edu |
47d15cbb5b377278a0596f903530d487f4f3cc6c | 1b512092052c8fe7f6919ee870431ac7b3a65f66 | /pal/examples/MixedHalidesBE2/run_simple_misokg.py | 77cd6d71fbb4de358efaf37a34fd2962c948ae5b | [] | no_license | ClancyLab/PAL | d7b9dd1caeb62d363041b8e4c7f402d6edbf741e | cb0ef048de37014922b943ae6b5eaffd3d43da63 | refs/heads/master | 2022-02-25T05:31:20.590421 | 2019-10-14T19:47:10 | 2019-10-14T19:47:10 | 210,862,362 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,151 | py | from pal.opt import Optimizer
import pal.utils.strings as pal_strings
from pal.constants.solvents import solvents
from pal.kernels.matern import maternKernel52 as mk52
# from pal.objectives.binding_energy import get_binding_energy as BE
from pal.acquisition.misokg import getNextSample_misokg
from pal.stats.MLE import M... | [
"hherbol@gmail.com"
] | hherbol@gmail.com |
299c27d535669cc4de79dbbd0196b49da9b5ae69 | a428ca9108f899de7f69503126272a830102e06c | /app.py | 139faa37075b7cbcfa55b596c517bd906a5ca73b | [] | no_license | Hammadali1/detection-fyp | 5c4eefd503f52a22baaaec350fa51c1ee92e79d1 | 572948f3be70ef4082dab2964b0d86b128163adc | refs/heads/master | 2021-06-20T01:25:30.627043 | 2019-07-07T15:40:25 | 2019-07-07T15:40:25 | 193,284,974 | 0 | 0 | null | 2021-03-20T01:12:54 | 2019-06-22T22:35:36 | Python | UTF-8 | Python | false | false | 166 | py |
from flask import Flask
app = Flask(__name__)
@app.route("/")
def retrieve():
return "yahoo"
if __name__ == "__main__":
app.run()
| [
"noreply@github.com"
] | noreply@github.com |
00f569ae77237d2d80518fa93f5d1e27c4d3b867 | f9632d4a822f6525a007598a1f67757ac9891749 | /rakuten/playground/extract_category.py | 7b023d96f6665916c58bdc27b25ebb3531856c12 | [] | no_license | rpryzant/marketing | ab055a5ae02ed287cb5a763d3e937efa72d057df | 9f463da0a2e7c9c48951e793d95534963cd19721 | refs/heads/master | 2021-09-07T01:20:31.720381 | 2018-02-14T22:13:40 | 2018-02-14T22:13:40 | 116,716,301 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,074 | py | """
extracts a category from the data
"""
import map_reduce
from collections import defaultdict
# make parent dicts
genre_tsv = '/Volumes/datasets/rakuten_dump/merchandize_data/genres/genres_with_english.tsv'
id_to_pid = {}
for l in open(genre_tsv):
l = l.strip()
try:
[id, ja_name, pid, en_name] = l... | [
"rapigan@gmail.com"
] | rapigan@gmail.com |
d37c132d0eab9fae1f0a71da0763c2b6382dab48 | b86c1eee6a67adab6d5daf58ff1f6cd3fadda387 | /newBackend/backendapi/migrations/0009_auto_20210520_0222.py | df7a0918cde06011b2af03596de0fdd87667ffd9 | [] | no_license | patrick-simon045/FINAL-YEAR-PROJECT | d5d24e1224d978dabd88928226bfc6f5b188e21a | b5d01e8cfaf52595454cdab85c6b56d340210dfa | refs/heads/master | 2023-06-25T19:28:52.246179 | 2021-07-07T18:21:59 | 2021-07-07T18:21:59 | 383,879,042 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Generated by Django 3.0 on 2021-05-20 01:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('backendapi', '0008_auto_20210520_0220'),
]
operations = [
migrations.AlterUniqueTogether(
name='lecture_course',
unique_togeth... | [
"77192100+patrick-simon045@users.noreply.github.com"
] | 77192100+patrick-simon045@users.noreply.github.com |
79ceb1608e1615bbf1de6d05391d801f4773fff5 | c8693ab1ea11ed82d7a52b6582f2b6e8caa60417 | /Python/client.py | 65e80e2be46fb58e5c2fa07365b6efe467bffdb6 | [] | no_license | ValentinModan/AttackOnPython | 0b75b2a9d358fa7880b39458c2e0d99899dfec53 | ab029fb46077510913f9c9c50db464275809db8f | refs/heads/master | 2020-04-04T21:00:07.359565 | 2019-02-26T19:30:58 | 2019-02-26T19:30:58 | 156,268,799 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,163 | py |
from bluetooth import *
import sys
import json
import time
if sys.version < '3':
input = raw_input
addr = "A4:50:46:1F:BE:90"
if len(sys.argv) < 2:
print("no device specified. Searching all nearby bluetooth devices for")
print("the SampleServer service")
else:
addr = sys.argv[1]
print("Searchin... | [
"aiordache22@gmail.com"
] | aiordache22@gmail.com |
d903e132f3f76958023738b2b7dbc6b604ca5f7d | 47bd6a35f8d911d73b3b335ba9f82881b7507efb | /Automatic_download_bounce.py | 4a46d6deb77527cab25f1c40d1308e0f25b60745 | [] | no_license | nandini4189/Pthon-Scripts | 144f5ad670aac7b5aed5030c7eee9c94a405b50d | 8f55bfde98192ec6a042dda3badfa1ef2791c6b7 | refs/heads/main | 2023-08-22T01:43:50.225468 | 2021-10-13T05:45:32 | 2021-10-13T05:45:32 | 416,604,816 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | import requests
import json
import io
import codecs
import pandas as pd
# api-endpoint
URL = "https://api.sendgrid.com/api/bounces.get.json?api_user=graghavendra&api_key=Diversio3413&date=1"
# sending get request and saving the response as response object
r = requests.get(url = URL)
# extracting... | [
"noreply@github.com"
] | noreply@github.com |
b661a1cfef36f0ddc1bcdb83973c0be2589e1ab1 | 28b76b454aca0f46ec28d292c44cd58932d4f924 | /blogging/migrations/0007_auto_20180417_1727.py | 41a39954d34313eebebd708e84c05289f4f69952 | [] | no_license | U-Divya/Django-Mysite | 56a1906abf259c41e806f2e6291754c7cb6cfc1a | 740f87903169e997f16095486516f58305c97b22 | refs/heads/master | 2020-03-15T16:27:08.505545 | 2018-06-08T16:14:40 | 2018-06-08T16:14:40 | 132,234,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-04-17 11:57
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogging', '0006_auto_20180417_1724'),
]
operations = [
migra... | [
"noreply@github.com"
] | noreply@github.com |
30e71e9ab69110f4a8e98185c665f48bca3aaf81 | bdc294f477244b9fff34b8e1bff968057a600a45 | /app/Trading.py | 34dde6d3fbf2311e83e95e16a4092cefaaea954e | [
"MIT"
] | permissive | PaulGG-Code/BinanceBot | e3cd1157d96880a2217955e98e6608bb98b93e20 | 2c4e3a06f2957226086702a2eec47e29799a7d7e | refs/heads/main | 2023-02-25T00:36:13.405857 | 2021-02-01T22:00:11 | 2021-02-01T22:00:11 | 335,093,869 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21,412 | py | # -*- coding: UTF-8 -*-
# Define Python imports
import os
import sys
import time
import config
import threading
import math
import logging
import logging.handlers
# Define Custom imports
from Database import Database
from Orders import Orders
formater_str = '%(asctime)s,%(msecs)d %(levelname)s %(name)s: %(message)... | [
"noreply@github.com"
] | noreply@github.com |
d9befda86b06264640487d776569c49952aa341a | 7513ddce2c659687216d79f9790d05a44c8f47b5 | /pyportfolio/utils.py | 9b3a1104f21fadeca279316989e9950f9f54b852 | [
"MIT",
"Python-2.0"
] | permissive | 0xKD/pyportfolio | 02a7a23e593ae80ff0abc6f0df057f51e8d0cde5 | caa721431f2ca4c0bb25d570751ce9d6d99afcee | refs/heads/main | 2023-03-28T22:10:21.965727 | 2021-04-09T04:51:50 | 2021-04-09T04:51:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | import logging
logging.basicConfig()
logger = logging.getLogger('pyportfolio')
logger.setLevel(logging.INFO)
# Filter Utils
def and_filter(filters):
return lambda x: all(f(x) for f in filters)
def or_filter(filters):
return lambda x: any(f(x) for f in filters)
def filter_dict(mydict, keys):
return {key:... | [
"19279785+kaushiksk@users.noreply.github.com"
] | 19279785+kaushiksk@users.noreply.github.com |
1caac16e5225167efc86a074ade91bb7bb01268c | e051dbc70bbb656892946c3dadea75a859fb1af4 | /skin-generation/xacro-skin-generator-triangle-1.py | ae94c387251fd48860fcad34b10a67d95c0e516b | [] | no_license | matejhof/nao-mirror-self-recog | d5d2d83edd5d088d534e8ac05577f159e02e564c | cdd5433ed68f4c488373363c7d76668101c3a7ae | refs/heads/master | 2020-06-26T02:26:58.243911 | 2019-09-28T20:18:59 | 2019-09-28T20:18:59 | 199,496,349 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,114 | py | # This version creates sub-links connected to casing with fixed joints, with coordinate
# transformations applied to these sub-links
# Status: does not work, contact plugin does not register collisions in sub-links
import numpy as np
from placeSensors import *
VERTICES = [
"coordinates/torso.txt",
"coordinate... | [
"outravoj@fel.cvut.cz"
] | outravoj@fel.cvut.cz |
21a03c5b4c4fdf5f65f8f33de569e2d41869d67b | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/account/azext_account/vendored_sdks/subscription/operations/_subscription_operation_operations.py | ff4eaf571ec7c44d355033680ae253d44a157678 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 4,364 | 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 |
6f41487d395ae9b4cdd0b9f9e9a9e493d9089af4 | 83bd62b9ef3d8aa7cbc892b1546704afe5bc5ee8 | /film/migrations/0010_film_review.py | 05bd82d4279e7f5426034e2d230c792bc1768216 | [] | no_license | baraa65/movies-search | fca843a04af2398898313cb38f547d4b5b083c02 | bf43193ce2d3786fd449f085170f4f83f8482b8b | refs/heads/master | 2023-07-17T08:40:32.315088 | 2021-09-01T20:59:29 | 2021-09-01T20:59:29 | 383,206,405 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | # Generated by Django 3.2 on 2021-07-05 10:37
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('film', '0009_auto_20210705_1332'),
]
operations = ... | [
"baraash75@gmail.com"
] | baraash75@gmail.com |
609618bd1fe9be3d32aa26f4ec5cb69297691451 | a2d30e0320b9a15862d1a21659c511064750df02 | /MyBlg/migrations/0002_auto_20170703_1632.py | d65369cef80443c613d4421897d5601a8c141c89 | [] | no_license | wjanaszek/first_blog | 0bdda4ed7e0e08930ede96534181a67ac329b9fa | a1f2b5392e17dc256fac20a0193a21e5eae9891a | refs/heads/master | 2021-03-27T15:59:21.537108 | 2017-07-11T20:16:24 | 2017-07-11T20:16:24 | 96,134,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-03 16:32
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('MyBlg', '0001_initial'),
]
operations = [
migr... | [
"trash.wjanaszek@gmail.com"
] | trash.wjanaszek@gmail.com |
5f16893b288023099588adfdbd4c49d0bf59bceb | 33fff53a9b24e600848fc615769850b4590cecef | /pigprice/pigprice/middlewares.py | a55ae880c97b4f6611f8d54d19853307ca46cee7 | [
"MIT"
] | permissive | wshoo/scrapy-pj | 746b63697e6a4263df6afb15f67c33b929e187e0 | c1cb279e02fd13930b446f021b85ed4be313c5fe | refs/heads/master | 2022-11-25T16:26:32.319524 | 2019-12-25T05:44:13 | 2019-12-25T05:44:13 | 170,986,821 | 0 | 0 | MIT | 2022-11-22T03:26:03 | 2019-02-16T09:39:51 | Python | UTF-8 | Python | false | false | 3,601 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
class PigpriceSpiderMiddleware(object):
# Not all methods need to be defined. If a method is not defined,
# scrapy... | [
"wsh_oo@live.com"
] | wsh_oo@live.com |
19bbf36ff2037e3a684c244330eb212bbee1e7c9 | abf440dd253331e90e6b5bb3d1486eb240c98cde | /cgan/embeddings/glove_loader.py | c080a9c2d5df468fe56d7ad15c7d77e5fd2a082d | [] | no_license | MdeBoer95/Emoji-Generator | cd7638ebbab4833db2122cf4ebf4e48b0b9d0770 | 6960eb5764838d3971b1dfcf9c7d82995ef81577 | refs/heads/master | 2023-06-01T08:24:51.969005 | 2020-07-14T17:29:06 | 2020-07-14T17:29:06 | 268,293,400 | 1 | 0 | null | 2023-05-01T21:44:04 | 2020-05-31T14:09:34 | Python | UTF-8 | Python | false | false | 3,888 | py | import numpy as np
"""
def download_glove(data_dir_path, to_file_path):
if not os.path.exists(to_file_path):
if not os.path.exists(data_dir_path):
os.makedirs(data_dir_path)
glove_zip = data_dir_path + '/glove.6B.zip'
if not os.path.exists(glove_zip):
print('glove ... | [
"marceldeboer@web.de"
] | marceldeboer@web.de |
14aea44dfb3cac5b9c7cdb45d60535220558ea80 | 3f0beb3543f1fcad6b84b6194b0cd70612b1a109 | /app/schemas/credit.py | d507a76338d9639bfa6b5f84228456630c3fa9ac | [] | no_license | Keith-Njagi/ecommerce_app_credit_management | 3e1ec9300ca62d28e6113978ac295cc7012de5e1 | 176f63fb7e33235462391edbe122eb8ad27d782a | refs/heads/master | 2022-12-10T14:55:53.268186 | 2020-09-08T17:35:26 | 2020-09-08T17:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from . import ma
from models.credit import CreditModel
from models.salesman import SalesmanModel
class CreditSchema(ma.SQLAlchemyAutoSchema):
class Meta:
model =CreditModel
load_only = ('salesman',)
dump_only = ('id', 'created', 'updated',)
include_fk = True
_links = ma.Hyp... | [
"kitgiana.keith@gmail.com"
] | kitgiana.keith@gmail.com |
3906e639fd5010cbc85fb6417f0c25ecf4c4001b | 1370ae668a0b5ed55b23d0c52316685a0e481379 | /software/Train KBC Models/Bilinear Decomposed/bilinear - Kopie.py | 0716288203f9058c1592741af70646dc061e7999 | [] | no_license | kavchop/KGC-Thesis | 0fe90bcc823f53ce0bab003edcf48be42ed068dd | ed27b543e52881302a7bbdcb41af9afab9053a8e | refs/heads/master | 2021-01-11T18:26:11.011631 | 2017-01-20T09:29:15 | 2017-01-20T09:29:15 | 79,544,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,128 | py | '''
Author of this implementation: Kavita Chopra (2016, version 1.0)
RUN THE CODE:
TRAINING:
- "python bilinear.py" for training with non-diagonal Mr
- "python bilinear.py diagonal" to train the bilinear diagonal model
EVALUATION:
- "python bilinear.py evaluate" for evaluation with non-diagonal Mr
- "python bili... | [
"kavit.chopra@yahoo.com"
] | kavit.chopra@yahoo.com |
411674aed64bba22b2f24cc9fdb1d0237b8dad90 | 10f047c7631b3aad90c7410c567c588993bfa647 | /PythonDispersal/src/testingTheequations/startColsTest.py | 9ad2d596bce5622a28b77d6736df337f57bb8ada | [] | no_license | ruthubc/ruthubc | ee5bc4aa2b3509986e8471f049b320e1b93ce1d5 | efa8a29fcff863a2419319b3d156b293a398c3a9 | refs/heads/master | 2021-01-24T08:05:40.590243 | 2017-08-30T01:37:56 | 2017-08-30T01:37:56 | 34,295,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | '''
Created on Jun 29, 2015
@author: user
'''
from core.StartColsClass import StartCols
cols = StartCols(126, 1, ad_fd = 0.6)
cols.make_col_list()
col_list = cols.col_list
print "col_list", col_list | [
"Amber22Ruby"
] | Amber22Ruby |
efeee94769b83f842bac96bd9d32030c907b7472 | 14be69d424c8f30cab70231d5509df50ccaa2f04 | /tensorflow/python/training/basic_session_run_hooks.py | 99f057e8371aa6d1d5420e5622a79426783ded4b | [
"Apache-2.0"
] | permissive | siemanko/tensorflow | 739847a1b7d44e6d9291da63be0daf3ae8f2d17c | 66e0faf5f2391d8e1b3acf69afbfa0adf609596d | refs/heads/master | 2021-07-08T09:00:56.875610 | 2017-10-05T18:16:17 | 2017-10-05T18:16:17 | 105,937,165 | 0 | 1 | null | 2017-10-05T20:29:58 | 2017-10-05T20:29:58 | null | UTF-8 | Python | false | false | 28,652 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d914c63daf2fad0c1cedf4f0d70cdcc832c0e729 | f37d490338236d3cf779918efa28599f04ebdbe4 | /Inteligencia Artificial 1/Tarea 13/Programacion Genetica.py | 439d9264fc9262d72f9b262f8c814be5fb1fc4a8 | [] | no_license | sanemiliano/Artificial-Intelligence-Projects | a513a77bf1be53ea561ae931efd4b4fe7a95991c | b9fb0d3fa92d95514518f49bf96a81229b7b1595 | refs/heads/master | 2020-03-27T22:25:59.823400 | 2018-09-07T20:05:55 | 2018-09-07T20:05:55 | 147,230,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,560 | py | import numpy as np
import copy as cp
import random as rd
class Node:
def __init__(self):
self.fitness = 0
self.Yc = []
def calc_fitness(self, Y):
self.fitness = np.linalg.norm((self.Yc - Y))
def print(self):
pass
class Const(Node):
def __init__(self, x, y):
No... | [
"zeus@polispay.org"
] | zeus@polispay.org |
9c45927602a0c2e02348329e4ac8932ab91a4026 | da82e7bff86aeabcdf91cfd0ca3149e5752b780f | /v2mac.py | d846ca44346f16517dcf80e9021e9d8e52b60e08 | [] | no_license | tymancjo/video_process | 92f95b52c420753d5fe86080421eff584e22c9ce | 4775d4c5a420ef9b45127a35836b9187a7000480 | refs/heads/main | 2023-05-28T09:23:11.043293 | 2021-06-07T17:45:27 | 2021-06-07T17:45:27 | 371,156,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,067 | py | import cv2
import copy
import sys
import time
import csv
import numpy as np
import math
def play_videoFile(filePath, data, vid_sync, data_sync, sample_shift=0):
cap = cv2.VideoCapture(filePath)
if not cap.isOpened():
print(f"Can't open file {filePath}")
return
v_length = int(cap.get(cv2... | [
"tomasz.tomanek@gmail.com"
] | tomasz.tomanek@gmail.com |
417e4e7fceb9fbbc14196f5a7e374f689dcfecff | 8ebb6c7abc58d1eeb8c7eaa6d6e27b625fc04696 | /2020/python/day20-1.py | fa2e81a2c45364bcc81279d0b2bfb8f1a4341cc0 | [] | no_license | davidcbc/aoc | 3d26f24314e0072315e5047f17d78c4017950a24 | 58bc1b020317ff66e1d46ad6c3f89c2535684ca2 | refs/heads/master | 2023-02-05T18:56:10.527499 | 2020-12-23T20:25:06 | 2020-12-23T20:25:06 | 317,977,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,462 | py | import copy
import math
f = open(r"2020/python/day20-input.txt", "r")
input = f.read().split("\n")
BASE = 2
UP = 2
RIGHT = 3
DOWN = 4
LEFT = 5
def checkSeamonster(grid, x, y):
seamonster = [list(" # "),
list("# ## ## ###"),
list(" # # # # # # "... | [
"davidcbc@gmail.com"
] | davidcbc@gmail.com |
4d2056fec89cacb509ef5c0f41cce953a3b61ea2 | 6e2caad49f10db5ef560549618c884d2dd8f229c | /bili/osPro.py | 9934d02cb624c8d5db7b6b5b1196a5e7cef5475e | [] | no_license | iwen1992/python-learning | a6d9e022f8e7f7fadbc23390d13566881f6df689 | 8f306b86b8e733826a0d5d0e74f04a72891e922a | refs/heads/master | 2023-03-14T01:19:10.857037 | 2021-03-04T09:44:43 | 2021-03-04T09:44:43 | 330,402,840 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | import os
import time
#1、os.name系统的名字window-nt
#2、environ环境变量
#3、sep 分隔符 pathsep 路径分隔符 linesep 换行分割分
print(os.linesep)
#二、文件和目录操作
os.mkdir('stddemo')#当前目录下创建stddemo
os.rmdir('stddemo')#删除目录
print(os.getcwd())#打印当前目录
#三、path模块
#os.path.isabs(path)判断path是否为绝对路径
#os.path.getsize(file) 拿到文件的大小
file = os.getcwd()+'\osPro.py... | [
"3066420900@qq.com"
] | 3066420900@qq.com |
8c5e78c2e0950d63c09a8ccf701ea6c4e2067240 | b83ee9db2832b07faa2bd9afae043691922412c3 | /Knapsack/dynamic_knapsack.py | a2e0c1e3a3cc828fe3e8a5be4f04ff03bb24ca26 | [] | no_license | Prudkovskiy/Python | 68996953471292a1da3495adf16ff3b9eadec4b0 | adad850e3a5efa0e78f4329388c1de98fd8ee610 | refs/heads/master | 2021-05-13T18:40:55.942928 | 2018-05-18T07:42:30 | 2018-05-18T07:42:30 | 116,874,806 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | """
задача о ранце методом динамического программирования
"""
from sys import stdin
class knapsack:
def __init__(self, max_weight=0):
self.W = max_weight
self.weight = [0]
self.price = [0]
# массив со всеми предметами, которые в конечном итоге вошли в рюкзак
self.ans = []
... | [
"nickolay.prud@gmail.com"
] | nickolay.prud@gmail.com |
b9d54800be181bc7335ae1361aa6a0240c3e5a88 | 639d6fb7f3be808dddf226d2feb520960a8ee656 | /lstm_helper_kit/lstm_keras_model_class.py | 67a020af72bb480d6acbd632180ffe267c522be8 | [
"MIT"
] | permissive | Treesbark/lstm_helper_kit | 5d2173412c0035dda1772150f579b1b412553f38 | ff95585557985f0aeba27d93159c0cd11e44ad00 | refs/heads/master | 2023-01-07T23:53:55.501840 | 2019-09-28T10:50:46 | 2019-09-28T10:50:46 | 170,912,718 | 0 | 0 | MIT | 2022-12-26T20:47:06 | 2019-02-15T18:49:47 | Python | UTF-8 | Python | false | false | 11,464 | py | # -*- coding: utf-8 -*-
"""Main module."""
# Importing the libraries
import matplotlib.pyplot as plt
import os
import math
import numpy as np
import datetime as dt
from numpy import newaxis
from sklearn.preprocessing import MinMaxScaler
from keras.layers import Dense, Activation, Dropout, LSTM
from keras.models impo... | [
"shea.hartley@gmail.com"
] | shea.hartley@gmail.com |
b869872bf72cdc1084a31e866ffa6e18ef429fdc | 1fb82cf0b1fa219ec98ebd58ae53e2edc6dafb1a | /build/exercise2/catkin_generated/pkg.develspace.context.pc.py | 1e42272eda056104f01933099b4654afb9c1e315 | [] | no_license | roberttovornik/FRI-RINS_TurtleBot | ffb877369eb595e1a9f07571c786b729c3526d82 | f18ec20c00f390d20de5b01104ecd7bf83810d2c | refs/heads/master | 2021-01-19T22:49:05.279753 | 2017-05-02T16:03:22 | 2017-05-02T16:03:22 | 88,873,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "message_runtime".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "exercise2"
PROJECT_SPA... | [
"robert.tovornik@gmail.com"
] | robert.tovornik@gmail.com |
ce5e6f8927e97a6ea173f1e91c3d7ee62877e31a | d30785d3b36051dddfbf0a94c41b0f1cba33b146 | /first_django_app/manage.py | 8cdb6c32d05cd6c541ca5d7eef6e1899646701dd | [] | no_license | jcchouinard/Django-tutorial | f227f5de4b5eeceb4b5fc3f628913ec3a1615c41 | ae85e14c359a3babedf890625faff31249588ff1 | refs/heads/main | 2023-02-03T17:31:53.507380 | 2020-12-23T05:13:27 | 2020-12-23T05:13:27 | 323,791,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'first_django_app.settings')
try:
from django.core.management import execute_from_command_line
ex... | [
"jcchouinard.mkt@gmail.com"
] | jcchouinard.mkt@gmail.com |
4f991df0912048ead0e186019f6a15facdca9fcc | b490698632d8a92a9d89072c033458c4d8316fd8 | /mysite/urls.py | 4421deb0fc1c511eb3e56d4069302a5584cfa285 | [] | no_license | kuldeepbista/travelblogs | dec6b764400db88d6c1823969a911b5078ac91a4 | c972caa8d312ba454eb2577cae33f33660cf8ccb | refs/heads/master | 2020-05-20T19:23:14.716956 | 2019-05-09T07:09:57 | 2019-05-09T07:09:57 | 185,720,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | """mysite 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')
Class-based ... | [
"kuldeep@Kuldeeps-MacBook-Pro.local"
] | kuldeep@Kuldeeps-MacBook-Pro.local |
be4b3bc4b91e3948892eb0dfc5bd4d4bfbd7a81a | d3029a1d8a4892b04f21e7de6cfe578808b99efb | /test.py | 0944203c228a25fc75e8328304c941b6f2da02f5 | [] | no_license | johnpolakowski/File_Downloader | fae7c6240bbc9da26ef58ccd96885ec0b66b867c | a8a4b13bdbac7ccebfc5f4ef80aabb6bcc62657f | refs/heads/master | 2023-06-15T18:09:52.033795 | 2021-07-16T06:47:19 | 2021-07-16T06:47:19 | 386,534,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,465 | py | WebDriverWait(driver, 30).until(EC.presence_of_element_located((By.ID, "recaptcha-anchor")))
ele = driver.find_element(By.ID, "recaptcha-anchor")
#ActionChains(driver).move_to_element(ele).perform()
ele.click()
driver.switch_to.default_content()
WebDriverWait(driver, 30).until(EC.presence_of_... | [
"poppy_ski@hotmail.com"
] | poppy_ski@hotmail.com |
0b18446ffc3f619e218bbf4ee27d01ef5704d3cf | 93f650962489a895749be7e385d5a55429662148 | /manage.py | 7c4bc54db099fd70dc33472fd34daa9dcaa3c358 | [] | no_license | Jekrimo/django-user-dashboard | 02029df2825f271cae7114ccfd1d2cbb1772de5e | 0fcefad2b8ef81952270f2da5729e2db0cbd865c | refs/heads/master | 2020-02-26T14:49:15.270862 | 2016-08-19T18:51:56 | 2016-08-19T18:51:56 | 65,822,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thedashboard.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"jekrimo@gmail.com"
] | jekrimo@gmail.com |
9d9c54c167c1d1608999cca9cd3f8deb88c08f87 | f7a718425de1447836b547f831a120937f1fcf40 | /plumbum/util/datefmt.py | 86b8b0bd0033ccb5a4c68ba1d8edc9352eb63e63 | [
"BSD-3-Clause"
] | permissive | coyotevz/plumbum-old-1 | ad8ce697ffb4cbd0a6f238f66a1c546800e47024 | c0f769ca525298ab190592d0997575d917a4bed4 | refs/heads/master | 2021-01-20T10:50:32.516766 | 2016-11-18T04:20:32 | 2016-11-18T04:20:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | # -*- coding: utf-8 -*-
import os
import time
from datetime import datetime
# date/time utilities
if os.name == 'nt':
raise NotImplementedError("Not yet implemented for this platform")
else:
time_now, datetime_now = time.time, datetime.now
| [
"augusto@rioplomo.com.ar"
] | augusto@rioplomo.com.ar |
c900941111ee8983119ec1d8889a2c249f96f10e | 012451630e60bf17f7e9f2dfe317d88678eb2f48 | /simonsays.py | 5926769a4f3a8bc4f7e1476dd6b4b3e4ebb02542 | [] | no_license | arm15aig/Kattis_Python_Solutions | 452ed66a2720c969038dc1a212157b545054ee22 | 12c3e849f113cf8b23bda63b47b3300f604dc243 | refs/heads/master | 2022-12-07T06:08:16.432878 | 2020-08-25T21:51:15 | 2020-08-25T21:51:15 | 290,331,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | x = input()
for i in range(int(x)):
myInput = input()
command = myInput[11:]
if "Simon says" in myInput:
print(command)
| [
"arm15aig@gmail.com"
] | arm15aig@gmail.com |
c517eec9d829fff97df7e35c813ed564afea1bb4 | 64615f146aba943d7eeb434f7f0ce6ea4f0435a7 | /Img2json/estimator/opt.py | b63951f99789049e86a01e5a5a49f25cea0102a7 | [] | no_license | jie311/Human-Auto-annotation-Tool | 0eb3d6af35f0bea4d2ebcf0077acb4414dce79c9 | d9f8e23f4c6f2e53fb29286b70758ec5f21decb6 | refs/heads/master | 2023-06-01T10:15:21.197269 | 2021-06-25T08:40:20 | 2021-06-25T08:40:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,899 | py | import argparse
parser = argparse.ArgumentParser(description='PyTorch AlphaPose Training')
"----------------------------- General options -----------------------------"
parser.add_argument('--expID', default='default', type=str,
help='Experiment ID')
parser.add_argument('--dataset', default... | [
"carolchenyx@gmail.com"
] | carolchenyx@gmail.com |
23394ba5e3d077a01662573c4197b02160b39db2 | 820867acf1db9a60649b115fe1ba480495b9add1 | /Desafios/Desafio 108.py | 9508d83bf78604c41e5683fbdb825d442fbdac41 | [
"MIT"
] | permissive | blopah/python3-curso-em-video-gustavo-guanabara-exercicios | 8486cfd889c1175ffd0b8961095bd17634ac0757 | d86c613ea8bb335c4dd888a34bda456055e4d82e | refs/heads/master | 2022-11-10T04:17:22.992631 | 2020-06-15T23:33:45 | 2020-06-15T23:33:45 | 272,562,814 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | """
Problema: Adapte o código do desafio 107, criando uma função adicional chamada moeda()
que consiga mostrar os valores como um valor monetário formatado.
Resolução do problema:
"""
from ex108_modulo import moeda
valor = float(input('Informe um valor: R$'))
print(f'Aumento de 10%: {moeda.aumentar(valor, 10)}')
prin... | [
"pablodplucenahh@gmail.com"
] | pablodplucenahh@gmail.com |
567dc4756fdd77193ba0e7b938617bfbc0333d1a | 74c05c49de443e9c304549e017ddb7fc5b5dfafb | /customuser_project/wsgi.py | 58b0fa11b7edac62a12b544f8a8a36bca297497c | [
"MIT"
] | permissive | aliibsamohammed/customuser_project | 187ec4c85b49bcd807738dba63cddd8f174f0248 | f661f46447ac5144729fac5acf5406c3e87ccc46 | refs/heads/main | 2023-09-05T19:25:03.251279 | 2021-09-25T22:18:34 | 2021-09-25T22:18:34 | 409,338,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | """
WSGI config for customuser_project project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.conf import settings
from django.core.wsgi import get_wsgi_appli... | [
"ibsamohammed@gmail.com"
] | ibsamohammed@gmail.com |
6c3c88c52957533c2d9b96c060ad47523130e927 | 253a92017383ea38d0a4e00097575a5a5fd81cc1 | /pages/migrations/0002_page_order.py | 1e849eaeb98e95c96e1d048659854fb77498938a | [] | no_license | crltsmrtnz/mboHupaWeb | 755ed5042d9738e2725b7e8b2436874e0cb6ad24 | 94e358b6954ab97a2338a2ceff8e343ef062490d | refs/heads/master | 2020-05-16T13:33:08.836312 | 2019-06-20T23:39:20 | 2019-06-20T23:39:20 | 183,076,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.0.2 on 2019-04-25 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pages', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='page',
name='order',
field=mo... | [
"crltsmrtnz@gmail.com"
] | crltsmrtnz@gmail.com |
6830bf43355e90891aa72f7a8937eceacff7dd87 | ad14fb1e1d133668207da93fdedf17d5523dfae5 | /lib/ipmi_client.py | 85a734292322c92b78567340a464fff1a2be12b4 | [
"Apache-2.0"
] | permissive | timlee66/openbmc-test-automation | 8a95187e233d585c1a534adfb1623e88728e3c82 | 43caf70f136a69fe104caa43a2379cc7e0986598 | refs/heads/master | 2022-05-22T19:22:12.546763 | 2021-10-08T01:30:54 | 2021-10-08T01:32:25 | 229,914,924 | 0 | 0 | Apache-2.0 | 2019-12-24T09:43:14 | 2019-12-24T09:43:13 | null | UTF-8 | Python | false | false | 5,474 | py | #!/usr/bin/env python
r"""
A python companion file for ipmi_client.robot.
"""
import collections
import gen_print as gp
import gen_cmd as gc
from robot.libraries.BuiltIn import BuiltIn
# Set default values for required IPMI options.
ipmi_interface = 'lanplus'
ipmi_cipher_suite = BuiltIn().get_variable_value("${IPMI... | [
"gkeishin@in.ibm.com"
] | gkeishin@in.ibm.com |
8125f2b59f3c1c6cac4642a27e9d7f074dc09df9 | 0e31fd5b7fb3eb03bd8976f3f1741e0a8025c918 | /company_index/middlewares.py | 49ed499ae617bdb2a6770b41512c5a742f808d23 | [] | no_license | shivvu/End-to-End-Deployment | 9bfa107b2ac21dedc1fe73ba8af6e69cf89748fc | 6f931a74ece8f3be5cf1229f1f7f4310653c6683 | refs/heads/main | 2023-02-07T08:03:14.313160 | 2020-12-19T16:57:55 | 2020-12-19T16:57:55 | 322,823,051 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,658 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class IdxcrawlingSpiderMiddleware... | [
"noreply@github.com"
] | noreply@github.com |
fe49affdfe86b67c957fb54ead648638e5c4d54b | ff826a0767913591ef1462fc7b6ada3e96427f08 | /Pre_processing/csoText.py | b0564ea5bc565565378ca4a954216704e6242eed | [] | no_license | SoumyaBarikeri/ConferenceQuality | a99785f36d3c8b9738ea56e3f4be5909226cc7ac | 19af39bca2e7619e7dbeb7cb98fd49ab66b698c9 | refs/heads/master | 2022-12-08T23:28:03.721953 | 2020-09-13T13:32:38 | 2020-09-13T13:32:38 | 295,153,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,089 | py | """
This file fetches conference topics using Computer Science Ontology Classifier
"""
import classifier.classifier as CSO
import json
from nltk.stem import PorterStemmer
import pandas as pd
def stemwords(all_words):
"""
Function to get stem of all conference topics using Porter stemmer algorithm
Paramet... | [
"noreply@github.com"
] | noreply@github.com |
5895131f82ef26ab807bad6166ae4dfbed390bcd | ec8702ca17e1e73202b2ab19a351092bde619112 | /libs/models/mixins.py | 9d65e05db560e3f9257522e655913121e25126ab | [] | no_license | mygoda/new_ball | fff0846529a22253fcab06a6ec6d04206899b6ea | b2f05f5887758a0a30b50d5049b2736149e52e5c | refs/heads/master | 2021-01-09T19:03:56.411532 | 2016-07-11T00:03:44 | 2016-07-11T00:03:44 | 60,612,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # -*- coding: utf-8 -*-
# __author__ = xutao
from __future__ import division, unicode_literals, print_function
from django.db.models import Q
class QuerysetMixin(object):
@classmethod
def get_by_unique(cls, **kwargs):
try:
instance = cls.objects.get(**kwargs)
except Exception, err... | [
"taoxu@163.com"
] | taoxu@163.com |
883987a517479c143a4f47cd570555cb718d5ae8 | 4109e9a3ec14b9ff1670b65b686dbc10b485e1cf | /appi/migrations/0002_remove_skydevice_owner.py | 6443ee60b9e6eededef9b32ebf2f8d30a2427d7f | [] | no_license | bloomsky/bloomsky-widget-id-generator | afc6bdefea0a6f15b53a54054c43c06a64eaeae8 | 084d71b6afd192b4645aca513b36a6302acef1b8 | refs/heads/master | 2021-01-23T10:44:46.882267 | 2017-06-01T19:12:36 | 2017-06-01T19:12:36 | 93,090,838 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-05-26 18:37
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('appi', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_... | [
"weisun@wei79.local"
] | weisun@wei79.local |
cb0c7a44b43524123ce006d9b0d794b3060cda65 | e50a4781388ef7682a935986f2abae6fa85f879a | /MM2021/com-train/run_one.py | f4ebf3a94dd4b23d87a18b8e242c39768125e81f | [] | no_license | wojxhr/CG-trans-optimization | 2912156320db958e8aa6f797619acf59931be231 | 2b476b1291b972d22ec8e825eae21cbf4a597653 | refs/heads/master | 2023-08-24T23:05:31.526477 | 2021-10-22T03:01:29 | 2021-10-22T03:01:29 | 419,938,926 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,007 | py | """
This demo aims to help player running system quickly by using the pypi library simple-emualtor https://pypi.org/project/simple-emulator/.
"""
from simple_emulator import SimpleEmulator, create_emulator
# We provided some function of plotting to make you analyze result easily in utils.py
from simple_emulator impor... | [
"391777866@qq.com"
] | 391777866@qq.com |
2e9db7f19f244cd7fee24d13844d3b512eacad9a | 8700c32358fea46addac456927f37920845c8da6 | /ssir_iwae.py | db2bf8c5b2117c81d2936bb5acd7d147741647b3 | [] | no_license | satyam-cyc/SeqIWAE | c1c2bdb208b2ce03a54f35a7c218fccf93554d71 | 4c9fb10d1e87f0ed625f7d547cf5d78218752834 | refs/heads/master | 2020-07-05T01:26:21.774755 | 2017-11-24T19:56:42 | 2017-11-24T19:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,708 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Aug 20 19:13:03 2017
@author: Chin-Wei
Sequentialized Sampling Importance Resampling and IWAE training wrapper
"""
import numpy as np
from utils import log_sum_exp_np
def seq_iwae_update(train_func,eval_func,x,spls):
# use external stochasticity
"""
Se... | [
"cw.huang427@gmail.com"
] | cw.huang427@gmail.com |
add361736c36d51ddd27caa4b8b50f6f08de26c6 | bed10dcbc66c0332cc2748be179e3f992e45c124 | /model.py | 24b218f6f670a65386e782de10787d542c01e4e6 | [] | no_license | GZWQ/image-generation | fdbe9214965d41daa19bb8660ecf816fb37d1674 | 3e477ab67e97d608b502ef42f5100b7f33f9d0f8 | refs/heads/master | 2021-01-14T22:26:18.709388 | 2020-02-24T17:23:30 | 2020-02-24T17:23:30 | 242,780,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,609 | py | from keras.models import Model, Input, Sequential,model_from_json
from keras import layers
# from keras_contrib.layers.normalization import InstanceNormalization
from keras_contrib.layers.normalization.instancenormalization import InstanceNormalization
from keras.layers.advanced_activations import LeakyReLU
import kera... | [
"wqingdaniel@gmail.com"
] | wqingdaniel@gmail.com |
3ece49f91d19e555e7e128083e0047a507248f9e | fd45d0fb3dedac5948486fa928083d4f4f863ebc | /whatistheplan/models/__init__.py | 570015042da1184e500abb62c5004cc6d759cd0b | [
"MIT"
] | permissive | ccowmu/whatistheplan.com | b81d08124801bfa106c43d53db95601cfb3529ec | 97d4662c9248fc72d9b556b4fef222befcc2df30 | refs/heads/master | 2020-04-15T23:54:02.504073 | 2018-11-02T19:02:41 | 2018-11-02T19:02:41 | 33,387,069 | 5 | 7 | MIT | 2018-10-30T17:08:58 | 2015-04-03T23:12:49 | HTML | UTF-8 | Python | false | false | 199 | py | """Aggregate all database classes for easy importing"""
from whatistheplan.models.userprofile import UserProfile
from whatistheplan.models.game import Game
from whatistheplan.models.team import Team
| [
"dyladan@gmail.com"
] | dyladan@gmail.com |
908203b5cd69481a591c3a236d23ab58bfe761cd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_321/ch130_2020_04_01_16_55_20_162558.py | b1a491a59ae05eb3b4d84e3ac5803ce5f576c87e | [] | 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 | 199 | py | def monta_mala(l):
i = 0
mala = []
while sum(mala) <= 23:
if sum(mala) + l[0] > 23:
break
else:
mala.append(l[i])
i +=1
return mala | [
"you@example.com"
] | you@example.com |
f92210930c31e1edaf7d1513a0637aec82175039 | 4f3e02123d20044405638b1baa059c13fca9b1d7 | /python iris.py | 12410ba99fd00f3071596d49227b774c361835f0 | [] | no_license | drb1001/data-fiddles | e5eea14149bf30dcdd8f4296fe0b08feb1c729bc | 6d8b48e5b87bd5ff357bb555dd43c59fb3d4921f | refs/heads/master | 2016-08-11T09:53:07.405255 | 2016-03-21T15:34:25 | 2016-03-21T15:34:25 | 54,401,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | import pandas as pd
import numpy as np
#import matplotlib.pyplot as plt
#import pylab as pyl
from sklearn import cross_validation, datasets
from sklearn import linear_model, svm, neighbors
iris_dataset = datasets.load_iris()
# print iris_dataset.data.shape
# print iris_dataset.keys()
iris_data = iris_dataset.data
i... | [
"dbrown@podio.com"
] | dbrown@podio.com |
21384b6912ea4b4605f00abd84ad1759212b43ff | c8f6ddd6e4ced85db81d1f95a07c9057bd494eae | /ch04_thermalHydraulics/python/geom_build.py | f244841c53395bba5cb5005f621bd8bfe0489d96 | [
"LPPL-1.3c"
] | permissive | wcdawn/WilliamDawn-thesis | 21c63a16c677107699fd024aeb0022d2e930d6a8 | 2f002a5df1773ff477f0f7423a22f517957d9844 | refs/heads/master | 2022-05-02T20:14:20.080382 | 2022-04-13T00:07:42 | 2022-04-13T00:07:42 | 169,178,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,216 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib
LW = 2
FN = "Times New Roman"
FS = 16
plt.rc("lines", lw=LW)
plt.rc("mathtext", fontset="stix")
plt.rc("font", family=FN, size=FS)
# plot wedge --> chunk --> hex
f2f = 1
width = 0.25
height = 1.0
nHex = 3
plt.figure()
ax = plt.gca()
for i in ran... | [
"wcdawn@ncsu.edu"
] | wcdawn@ncsu.edu |
1b5cfbe1f3042ab381911ffa943576eb5a6a5208 | 32904d4841d104143ba0f41cc3aeb749e470f546 | /backend/django/apps/memos/migrations/0008_auto_20191025_2003.py | 3fdde9fa6cac56f3d36a37dc33c06ac8382c74cb | [] | no_license | aurthurm/dispatrace-api-vuejs | 20ec5deee015e69bce7a64dc2d89ccae8941b800 | 56d122318af27ff64755fc515345974631d3026f | refs/heads/master | 2023-01-23T23:03:15.438339 | 2020-10-20T22:09:29 | 2020-10-20T22:09:29 | 219,028,985 | 0 | 1 | null | 2022-12-22T18:31:38 | 2019-11-01T17:08:35 | Vue | UTF-8 | Python | false | false | 540 | py | # Generated by Django 2.2.6 on 2019-10-25 18:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('memos', '0007_memoattachment_memocomment'),
]
operations = [
migrations.AlterField(
... | [
"aurthurmusendame@gmail.com"
] | aurthurmusendame@gmail.com |
33e6fb56b398cd6635d41be61972d9290f4fa7f1 | cdd79cef15bdf6a0b9098e27028bbe38607bc288 | /数論/Combination/mcomb.py | 0f7e575c0fe0a8647ae6beff5f8fa66747094a11 | [] | no_license | nord2sudjp/atcoder | ee35a3eb35717485dc62627172de24c9dac102fb | 6b1cc5102a615492cc7ff8a33813bbb954641782 | refs/heads/master | 2023-08-25T11:27:14.205593 | 2021-09-27T05:43:04 | 2021-09-27T05:43:04 | 302,855,505 | 0 | 0 | null | null | null | null | SHIFT_JIS | Python | false | false | 654 | py | # https://atcoder.jp/contests/abc145/submissions/10775904
def comb(n,r,mod):
# nからr通りを選択する
# modは素数であること
if n<r:return 0
k=min(r,n-r)
C=1
for i in range(1,k+1):
C=(C*(n+1-i)*pow(i,mod-2,mod))%mod
return C
print(com(n+m,n,mod))
#
def comb_cal(n):
s=1
m=0
for i in rang... | [
"nord2sudjp@gmail.com"
] | nord2sudjp@gmail.com |
cb9c8805b2401a47ffd0ff9c924fa33c3ef2548c | efcd916d9733ac4d2f4a162ac06d5b1356ec42d0 | /model/octave_unet.py | b487709c95a6bbe1d0895c5fe80e3d434d268c48 | [] | no_license | seandatasci/unet | d4d1b6c3016a1f673023c77c9e4f8ae6d0843e0f | 3be1c69956abf9ddb3d6565436f85e92c6e4e486 | refs/heads/master | 2022-11-05T08:10:03.659948 | 2020-06-16T01:44:54 | 2020-06-16T01:44:54 | 272,579,214 | 0 | 0 | null | 2020-06-16T01:16:41 | 2020-06-16T01:16:40 | null | UTF-8 | Python | false | false | 7,411 | py | # model code all in this cell
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import math
import numpy as np
import tensorflow as tf
from sklearn.utils import class_weight
from tensorflow.keras import layers
from tensorflow.keras.preproc... | [
"noreply@github.com"
] | noreply@github.com |
1ea16f21550a63e6a23e2ef4a9f3e2cf5ea58db1 | 215dbe00272fbc53cc6239e972abce6f2b163003 | /Day5_Exercises/exercise1-2.py | 07a82c9a3d73661020c591f4f453df32fc92ff73 | [] | no_license | kkt8282/IOT_Raspberry | 29579f0793bbe56d9e85c9a6625e6caaba419d19 | 9a56a8974c0a6640d7616614e8a76417ced8931a | refs/heads/master | 2022-12-14T01:41:40.677777 | 2020-08-31T01:44:53 | 2020-08-31T01:44:53 | 291,587,488 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | import RPi.GPIO as GPIO
from time import sleep
LED_1 = 4
LED_2 = 5
LED_3 = 14
LED_4 = 15
LED = [LED_1, LED_2, LED_4, LED_3]
def main():
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(LED, GPIO.OUT, initial=False)
print("main() program running...")
try:
while True:
... | [
"63182249+kkt8282@users.noreply.github.com"
] | 63182249+kkt8282@users.noreply.github.com |
a822fbeeb592b742c4ddbe11b82b3ead6703f4e6 | 26e2c68f929ecc8bb5c20c6b8cd200b66d99def5 | /DjangoDopLEsson/products/migrations/0001_initial.py | 0ce5c7a66193f21ead1baaf75f96d6d86c10e249 | [] | no_license | kirigaikabuto/DjangoLessonsPart | ad19c1da0d1da27830c6fdf1b07353632bbc097d | 4442518ae1f0a8641e066c9a63ff4e55e04d5fe5 | refs/heads/master | 2022-11-28T10:29:54.428001 | 2020-08-03T09:26:42 | 2020-08-03T09:26:42 | 273,497,052 | 0 | 0 | null | 2020-08-03T09:26:43 | 2020-06-19T13:11:15 | Python | UTF-8 | Python | false | false | 590 | py | # Generated by Django 3.0.7 on 2020-06-24 05:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"ytleugazy@dar.kz"
] | ytleugazy@dar.kz |
4625b7562e6935395144e1da64a15c0b078f999e | 52b5773617a1b972a905de4d692540d26ff74926 | /triangle.py | aabaa8b43b28d0f6063839f8844acbb0a8568919 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # this function is meant to print a triangle
def triangle():
# outer loop is for the rows --> 4
for i in range(0,4):
# inner loop is for colums --> 4
for j in range(0, i+1):
print("*",end= " ")
print("\r")
triangle()
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
e8828d6e1b94af027e4b77ca8d909c5b44902ee8 | 50a087382c8da4db28461644f8e4c61db7a3c230 | /titanicapidata.py | adf49a50749f307cfcc432ed5266563698934369 | [] | no_license | deep2555/Titanic-dataset-project | 91b478df513447d2416dca7f2f947fe02cc9c890 | 25ba4824d6c246c79526ed456447df81168d6707 | refs/heads/main | 2023-05-31T05:11:02.503655 | 2021-06-16T15:53:34 | 2021-06-16T15:53:34 | 377,543,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | #import flask
from flask import Flask , request, json,jsonify
import requests
import pickle
import numpy as np
app = Flask(__name__)
loaded_model = pickle.load(open("titanic.sav", "rb"))
@app.route("/", methods = ["POST"])
def titanic_predict():
user_input = request.json
print(user_input)
inp... | [
"noreply@github.com"
] | noreply@github.com |
190ccccc1d21c2fef03056f73525f3e2d5d08a51 | 1d123feb5bee8cfcad2267bd2683cd5328a764d8 | /src/LivestockCV/core/transform/rescale.py | 10730d13260807f02474c184a4fea5f112a72265 | [
"MIT"
] | permissive | peschelgroup/LivestockCV | cd7803f74b5c37c04ede6cf1fc6f6da043821174 | e5746af75935d5000ba3ad26d09b6868fae76b76 | refs/heads/main | 2023-06-27T04:52:26.533031 | 2021-08-01T20:01:22 | 2021-08-01T20:01:22 | 379,750,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | # Rescale grayscale images to user defined range
import os
import numpy as np
from LivestockCV.core import fatal_error
from LivestockCV.core import print_image
from LivestockCV.core import plot_image
from LivestockCV.core import params
def rescale(gray_img, min_value=0, max_value=255):
"""Rescale image.
... | [
"noreply@github.com"
] | noreply@github.com |
1e23cc6f5ebb7e8346c498f65e57c1cb9222b3d2 | f7aa42f7f1677a5db519449c6ffc03f46398f485 | /homepage/migrations/0006_faculty_user.py | 0ac1c599acd7ccb77dbd7fd36a654a614cd5037b | [
"MIT"
] | permissive | abmishra1/IntelligentFacultyPortal | 7ee0c7397221f49f6007998d8c2fd24347b83fe1 | 4aae3a3024c10233acfa19f024fd723fb6ef1336 | refs/heads/master | 2020-07-15T13:29:54.978990 | 2018-05-18T18:51:43 | 2018-05-18T18:51:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-15 17:02
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depende... | [
"nitinkedia7@gmail.com"
] | nitinkedia7@gmail.com |
ece98bcf48efd5bae4412e46e743d79b5fdd7e83 | 33f56fd967f012edd86e5fed2d6992e2cc5c2a1f | /keras_97/keras-simple-model-0-97103-best-public-score.py | a5e71f2060cacfc2e34c67b15ae2263c6c05e228 | [] | no_license | CornellDataScience/IntSys-Seedling | 74571a69ef15dd79f0dd917161de027a11df14ef | b8296a8fca37167d333c263ea732ff9f850035bf | refs/heads/master | 2022-01-10T15:39:58.253066 | 2019-05-15T02:14:11 | 2019-05-15T02:14:11 | 169,326,358 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,756 | py | import pandas as pd
import numpy as np
import os
import imageio
import csv
from keras.utils import plot_model
from keras.models import Model
from keras.layers import Input
from keras.layers import Dense
from keras.layers import Flatten
from keras.layers import Activation
from keras.layers import Dropout
from keras.lay... | [
"bjk224@cornell.edu"
] | bjk224@cornell.edu |
9f944dbc67a1bb892749180712c64565d636b184 | 25bd603e5775558754bf32adbfbbc6c1d8d86db8 | /comments/migrations/0001_initial.py | 9f3652db9d54a856faabfcdf57101f469120b345 | [] | no_license | yeimermolina/django-blog-project | ee75fa05412c8d1194c57cac2b8e8909d4493892 | 3ca64d3f4b8f80f91a4a2527ed781e9cdceebb2d | refs/heads/master | 2021-01-19T09:20:31.212788 | 2017-04-10T00:44:11 | 2017-04-10T00:44:11 | 87,750,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2017-02-28 17:13
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('content... | [
"yeimer.molina@gmail.com"
] | yeimer.molina@gmail.com |
1f125389bc31c3efbfd5132b1e77e427614268ff | 0b5b70b5353e887fb168350bb32ceb6cc23249fa | /homework/week04/sparta/__init__.py | e2dbdc125587bf3013e9e42fa83e6b40d59f28e3 | [] | no_license | diligejy/sparta_d | 2d8604a59899bb21cd97e44e13e3dd91bc9e5e77 | 55a01b61ad420302e53bab327daee2e919b02e73 | refs/heads/main | 2023-05-14T21:01:13.677335 | 2021-05-22T06:05:13 | 2021-05-22T06:05:13 | 358,761,190 | 0 | 0 | null | 2021-05-22T06:07:04 | 2021-04-17T01:49:23 | HTML | UTF-8 | Python | false | false | 601 | py | from flask import Flask
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
import config
db = SQLAlchemy()
migrate = Migrate()
def create_app():
app = Flask(__name__)
app.config.from_object(config)
# ORM
db.init_app(app)
migrate.init_app(app, db)
from . import models
... | [
"sjy049@gmail.com"
] | sjy049@gmail.com |
4302c2a92d3fd0e16720b5d0bb2c81e469aa422d | 71e8bdddd84338bbb2d77934351d76251c2fd77d | /unique-paths.py | 39eeaaf353b483ccb782eeba05930f71fcbd9851 | [] | no_license | onestarshang/leetcode | 3da20fbec1b42d3565eb95a64ea3f30c29f1e1eb | 0a7aa09a2b95e4caca5b5123fb735ceb5c01e992 | refs/heads/master | 2021-01-09T06:00:06.018037 | 2016-12-17T16:17:49 | 2016-12-17T16:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 898 | py | #coding: utf-8
'''
http://oj.leetcode.com/problems/unique-paths/
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the ... | [
"irachex@gmail.com"
] | irachex@gmail.com |
25f34ab887b47fdda71884e0831b7bf6e036da15 | 5c2ead245750a317ef4bdbfa6d0e17fd21f7aa91 | /rango/tests.py | a6b3519ed7821ba749642478a189f769435dbe62 | [] | no_license | PiotrusWatson/rango | 90386bcbe2b51264dc4884a2a106c0e451717db5 | d8d7bb937e84f7fc225a8a0b1dceee78f2908dd9 | refs/heads/master | 2021-01-12T00:38:16.318824 | 2017-02-10T12:52:35 | 2017-02-10T12:52:35 | 78,750,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | from django.test import TestCase
from rango.models import Category
from django.core.urlresolvers import reverse
def add_cat(name, views, likes):
c = Category.objects.get_or_create(name=name)[0]
c.views = views
c.likes = likes
c.save()
return c
class IndexViewTests(TestCase):
def test_index_vie... | [
"piotruswatson@gmail.com"
] | piotruswatson@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.