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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
beeae335107a71f96f11514b15a8f33fd29ec58d | f0cf7b53e15695a4855c745a841714fec431f70a | /services/jhub/template/jupyterhub_config.py | 391a6f55d672b9604581e47c2f9f4f7bdbb619fc | [] | no_license | mondkaefer/jhub_backend | a57a1f4323234c31cd66bd64b7cb21c747ae233c | 0f0d2c9b247d27acb3dbf5468e804587e2323d22 | refs/heads/master | 2021-08-22T20:13:22.425155 | 2017-12-01T04:45:06 | 2017-12-01T04:45:06 | 112,695,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,460 | py | c.JupyterHub.authenticator_class = 'remote_user.remote_user_auth.RemoteUserAuthenticator'
c.JupyterHub.spawner_class = 'rancher.seg_spawner.RancherSpawner'
c.JupyterHub.log_level = 'DEBUG'
c.JupyterHub.debug_proxy = False
c.JupyterHub.hub_ip = '__HUB_IP__'
c.JupyterHub.port = __HUB_UI_PORT__
c.JupyterHub.hub_port = __H... | [
"m.feller@auckland.ac.nz"
] | m.feller@auckland.ac.nz |
7a16e457935fb30d9cdc2094a42b1b702e145b57 | ede60b82541978d7df9c5c16d969cee623321854 | /tree/Binary Tree Postorder Traversal/Stack.py | 011fbefd67219b1427e6f60ac539febf85ea0e48 | [] | no_license | Jzmo/leetcodeTag | 2d7836bc1e5f4b9da6afc612088376cbfd99384e | 3c4ec4a8fb93daf117c581680d0641c4cdb15660 | refs/heads/master | 2020-04-12T17:01:30.061601 | 2019-01-06T00:53:41 | 2019-01-06T00:53:41 | 162,632,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def postorderTraversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
if not root:
... | [
"jz.momo@outlook.com"
] | jz.momo@outlook.com |
c87446ec9e14ef27b8911dbbf04d186a904676f1 | b0b2a974e50c95004574bc5855e736a4f8db8237 | /google-python-exercises/babynames/regexTest.py | 5065cd30f2f8d843b8576b55c69d22980f265b12 | [
"Apache-2.0"
] | permissive | woodwardB/PythonClassProjects | a707d2245506395df2f6584ac21186149727415a | fb0f44de6ff0547f0eb2ba52c80e69bd4e831420 | refs/heads/master | 2021-01-22T20:25:50.422736 | 2014-02-25T04:18:48 | 2014-02-25T04:18:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | #!/usr/bin/python
# URL that generated this code:
# http://txt2re.com/index-python.php3?s=%3Ctr%20align=%22right%22%3E%3Ctd%3E1%3C/td%3E%3Ctd%3EMichael%3C/td%3E%3Ctd%3EJessica%3C/td%3E&35&4&3
import re
txt='<tr align="right"><td>1</td><td>Michael</td><td>Jessica</td>'
re1='.*?' # Non-greedy match on filler
re2='(\\d... | [
"brandon@brandonwoodward.info"
] | brandon@brandonwoodward.info |
8a73ed73df99cfaa28920f158ae86bd17b3931a9 | 854a7abae6ac9611ee206e2fe8853b49bc556040 | /manage.py | 4f2f6156f0a150a56fc18926285ed3cd30f56216 | [] | no_license | crowdbotics-apps/vivek-2505 | 5e97f3f5333ed87969be90623be63f94ae3a54f3 | 668389589c44885ca9a3b2d0a60ff31389bc8b64 | refs/heads/master | 2020-05-15T21:33:27.596420 | 2019-04-21T07:20:39 | 2019-04-21T07:20:39 | 182,502,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "vivek_2505.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that t... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c85bdca3b29adc5a741ffeb164d9d72838c0bdc6 | 320e0a7a0fbfb7f43ff92a0e18bc66229c000a81 | /11_env/bin/pylint | 4c5f686372c7e5981a47924111bd6853e7b2081c | [] | no_license | kotbegemot1/dj_training_project_learning_log | 1da5c709c0aacc6c1115b53636893a10ee69f72d | 400aeba9dd9e2d82e34dc991345dd30ad538db05 | refs/heads/master | 2021-07-03T15:00:21.681537 | 2020-02-10T21:28:21 | 2020-02-10T21:28:21 | 239,611,312 | 0 | 0 | null | 2020-02-10T20:56:10 | 2020-02-10T20:55:09 | Python | UTF-8 | Python | false | false | 274 | #!/home/kotbegemot/Документы/learning_log_CC/11_env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"kk1slorod@gmail.com"
] | kk1slorod@gmail.com | |
6424ee09a331dc3c0a53c632f777c4b267e7bdf3 | 264e3f354869ab665df1b9e95cd2df9f2db6974b | /mlp_test.py | f44c06cdc9be57a8efe9366c3245c7c5aebdc78a | [
"Apache-2.0"
] | permissive | whuang022ai/AI-Tutorial-Multilayer-Perceptron-Numpy-Batch-Version | 78cca42d757fa423bdd19d27f2133bc22f39f95c | dd74088f21a0d2ff29f1893f9c14b5000a5e1ba0 | refs/heads/master | 2020-08-31T06:13:43.553073 | 2019-11-07T15:47:02 | 2019-11-07T15:47:02 | 218,619,604 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | # -*- coding: utf-8 -*-
#
# Testing Xor pre-trained model.
# @auth whuang022ai
#
import mlp
if __name__ == "__main__":
mlp = mlp.MLP(0, 0, 0, 0)
mlp.load_model('xor')
mlp.test_forward()
| [
"whuang022.ai@gmail.com"
] | whuang022.ai@gmail.com |
daa134298e67a74b3522e6ac42e8a0aa97a98502 | 519ac20ac436d193044dbcdb5dcc7e7476cd4fe3 | /multi_sensor/models/tae_fusion.py | e2c19a8667c558ca6730e5a40c27e76838b64c43 | [] | no_license | rym-oualha/CropTypeMapping | 4466cdece9271f2b2d4f417b636a5576c4fef284 | b3f3996bb76e28340d77a1db4ac5a90edacf97cc | refs/heads/main | 2023-08-30T00:25:55.233343 | 2021-10-12T13:32:45 | 2021-10-12T13:32:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,158 | py | #
#TESTING FOR TSA ENCODING - final
#TSA BLOCK
"""
Temporal Attention Encoder module
Credits:
The module is heavily inspired by the works of Vaswani et al. on self-attention and their pytorch implementation of
the Transformer served as code base for the present script.
paper: https://arxiv.org/abs/1706.03762
code: ... | [
"ellaampy@gmail.com"
] | ellaampy@gmail.com |
94fdaa48e8dfc5aefebe7593cdb638d8faf18a9c | 490ff6c32acc3fc76939f70090ed7f871a377d68 | /python/mysite/polls/views.py | bcb80937178861a117def79c8dc702d6d60bd334 | [] | no_license | amorypeng/python | 712176c7654cb528b0acc4bf4f16a424ff3ae511 | 8c67424bef6dc9492f0ae88c0dc1bdb9e384c4d2 | refs/heads/master | 2021-01-01T05:49:17.625268 | 2015-04-21T17:44:34 | 2015-04-21T17:44:34 | 33,431,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from django.shortcuts import get_object_or_404, render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.views import generic
from .models import Choice, Question
class IndexView(generic.ListView):
template_name = 'polls/index.html'
context_object_name = 'latest_q... | [
"dumplingbagel@gmail.com"
] | dumplingbagel@gmail.com |
f91752886d25bceb01c8e561c832d9bc026a09be | a8ab776b0358e2c6c22a5b65dc43c6c4041d7a36 | /Sample_Programs_GoPiGo3/easy_Light_Sensor.py | a701811eefdd9886c207abfd0d2b5104539e274b | [] | no_license | Shoban94/GoPiGo_Python_Examples | 0211700b48d59461a78726dca4e69fcb2bd28461 | ef92c0363fb828fbdadc6dae96f77a6aee8e53d5 | refs/heads/master | 2021-01-20T01:45:42.888357 | 2017-04-25T08:39:51 | 2017-04-25T08:39:51 | 89,325,379 | 0 | 0 | null | 2017-04-25T06:27:57 | 2017-04-25T06:27:57 | null | UTF-8 | Python | false | false | 1,285 | py | #!/usr/bin/env python
#
# https://www.dexterindustries.com/GoPiGo/
# https://github.com/DexterInd/GoPiGo3
#
# Copyright (c) 2017 Dexter Industries
# Released under the MIT license
# (http://choosealicense.com/licenses/mit/).
#
# For more information see
# https://github.com/DexterInd/GoPiGo3/blob/master/LICENSE.md
#
# ... | [
"shobannarayan@gmail.com"
] | shobannarayan@gmail.com |
4b1ff92b5f8365972e09335f1ec735af5ffd5124 | 32acf91c2828b50ea08ac5c880b3c3634e7d82e5 | /chapter1.py | aa31575dd65a587d785c552bb5458122249b0000 | [] | no_license | xybercommander/open_cv_tutorial | 9c582734e507ec781488e160453bbb5c4eb5bd8e | f8d757a93e71e852763f1abeb5483ad393d5f30e | refs/heads/master | 2023-08-04T01:45:52.984444 | 2021-09-27T05:24:56 | 2021-09-27T05:24:56 | 408,886,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | import cv2
print("Package Imported")
# '''--------- Image Reading -----------'''
# img = cv2.imread("resources/xyber.jpg")
# img_small = cv2.resize(img, (370, 480))
#
# cv2.imshow("Output", img_small)
#
# # 0 means infinite and other values mean that many milliseconds
# # waitkey helps to delay the script
# cv2.waitK... | [
"samratmukherjee.sps@gmail.com"
] | samratmukherjee.sps@gmail.com |
c4cfe496b337c27e71ffd0402883065b103081ae | bff226ef884f0e879aa562bd04ee515e580978d9 | /cse1284/age.py | 5871962c5cf2f72cdc3bb9dbc0a10e787394f358 | [] | no_license | connergriffin/personal | 257ccfa87e2928ab800f31b9f7cc49d60c07bcde | f6e7a2858746713f512fd11af15fa30e75173a9c | refs/heads/master | 2023-01-12T15:01:02.140627 | 2023-01-01T21:33:38 | 2023-01-01T21:33:38 | 121,166,754 | 0 | 0 | null | 2018-02-11T21:11:07 | 2018-02-11T21:01:02 | null | UTF-8 | Python | false | false | 344 | py | #calculates the users age the year before
age = int( input('how old are you? ') ) #takes user's input and converts it to int type
age = age - 1 #takes input and subtracts one which would be their age on the same day the year before
print('last year you were', age) #disp... | [
"noreply@github.com"
] | noreply@github.com |
13723c5524195243fa7f14e0628c4b8db6c28c1f | f56227b77c1b1a482a02002d3501c92e932f3111 | /ex061.py | e1932e3ea8567415f5d9deada0fc3b7d6a6b31d8 | [] | no_license | hectormanfredi/PythonExercicios | 5d579ee2c53156c07b6c11b5bb460c6d3ca73f79 | bb756f153c8a5d4c391b3060186e3bc79de06dec | refs/heads/master | 2020-07-24T06:04:29.464232 | 2019-09-11T13:45:41 | 2019-09-11T13:45:41 | 207,822,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # Refaça o DESAFIO 051, lendo o PRIMEIRO TERMO e a RAZÃO de uma PA, mostrando os 10 PRIMEIROS TERMOS da progressão
# usando a estrutura WHILE.
primeiro = int(input('Primeiro termo: '))
razao = int(input('Razão: '))
"""
n = 0
while n != 10:
n = n + 1
dez = primeiro + (n - 1) * razao
print('{} -> '... | [
"noreply@github.com"
] | noreply@github.com |
49e26b6bdfbc99139af7102c61306112bedc7a12 | 743d50c875b86593335d048aec95f3afa11204b9 | /catalyst/metrics/__init__.py | 94bd17d190b40de0b06b41a13b39eca17697fb81 | [
"Apache-2.0"
] | permissive | Ran485/catalyst | 87a166af630eb62958915fae55c5a7402021facf | 84bc7576c981278f389279d87dda85dd66a758b6 | refs/heads/master | 2023-08-18T05:26:08.865884 | 2021-09-24T15:35:36 | 2021-09-24T15:35:36 | 410,499,016 | 2 | 0 | Apache-2.0 | 2021-09-26T08:48:35 | 2021-09-26T08:48:35 | null | UTF-8 | Python | false | false | 1,192 | py | # flake8: noqa
# import order:
# functional
# core metrics
# metrics
from catalyst.metrics.functional import *
from catalyst.metrics._metric import (
ICallbackBatchMetric,
ICallbackLoaderMetric,
IMetric,
)
from catalyst.metrics._accumulative import AccumulativeMetric
from catalyst.metrics._additive import... | [
"noreply@github.com"
] | noreply@github.com |
5ae57a50894ee06d799ee88acb9132651d570cb8 | 78f54f911d47019da0deeeb6579c7e9e65bb8d21 | /src/scheduler/models/dao/common/Log.py | 1171ab5340bfce2bfeec5a4abb90b01fc98e85fa | [
"MIT"
] | permissive | jedicontributors/pythondataintegrator | 02f8ae1a50cf5ddd85341da738c24aa6a320c442 | 3e877b367ab9b20185476128ec053db41087879f | refs/heads/main | 2023-06-15T07:37:13.313988 | 2021-07-03T15:46:43 | 2021-07-03T15:46:43 | 354,021,102 | 0 | 0 | MIT | 2021-07-03T15:46:44 | 2021-04-02T13:03:12 | Python | UTF-8 | Python | false | false | 913 | py | from sqlalchemy import Column, String, Integer, DateTime
from IocManager import IocManager
from models.dao.Entity import Entity
class Log(Entity, IocManager.Base):
__tablename__ = "Log"
__table_args__ = {"schema": "Common"}
TypeId = Column(Integer, index=True, unique=False, nullable=False)
Content = C... | [
"ahmetcagriakca@gmail.com"
] | ahmetcagriakca@gmail.com |
8cdd6cf80bbae7c0aff2d6cd806083a71a2d256e | 64a9dbe57c39c464b4bab2ca782cdd8f430f3e4a | /main_Mia_version1.1.py | 6c50e8b2bab1b07c681a13da1d3559f71bbabdf8 | [] | no_license | mimiandboo/TAMUhack2019Project | b20f4a473bf3afc10ba025854d62703580a53f6a | c008e1225e0fc67eaa050a9b3a6589eeff473a45 | refs/heads/master | 2020-04-21T00:37:05.415816 | 2019-01-27T17:27:13 | 2019-01-27T17:27:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,739 | py | #! /usr/bin/python
# To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
#
# solves all equations with one instance of x^n
import math
from tkinter import *
# SMALL BUG:: to continue the project... | [
"noreply@github.com"
] | noreply@github.com |
b14a9cf9712a7365982cbfe75e9a5734d6e461cd | 272ea7b037de702710ef3462e14ad1b4965eb0cb | /pkg/3d.py | 796ea14edc32a1871b90a588a7f750b27c481e48 | [] | no_license | fijila/PythonExperiments | a1d36100ab67465e4661f9a2f0a0ab321a16e7a8 | d9ff5c404e625aa21c21631ff2d1e453dab0e5bf | refs/heads/master | 2020-05-07T15:43:52.664984 | 2019-04-10T19:28:55 | 2019-04-10T19:29:07 | 180,650,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | class Point:
def __init__ (self,x,y,z):
self.x=x
self.y=y
self.z=z
def __str__(self,x,y,z):
self.x=x
self.y=y
self.z=z
p1=Point(4,2,9)
p2=Point('x','y','z')
print(p1.x,p1.y,p1.z)
print(p2.x,p2.y,p2.z) | [
"fazeem.mohd@gmail.com"
] | fazeem.mohd@gmail.com |
c93f769c2b684cb0a0edc263f1afaad5043c7da5 | 9c11218f4290e18555a2417e2ccc1b93a4cf4139 | /fetchEventData.py | abc6e51064b24edd3f9e8328a6609cba430daf92 | [] | no_license | balessio/seismology | 7ac49669d1d00e4523e746372ce8181a4c49ab30 | a46ffbfa70fb3b2ce7010d529714bb22a8a138c3 | refs/heads/main | 2023-06-04T05:03:43.141992 | 2021-06-22T21:33:55 | 2021-06-22T21:33:55 | 379,402,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py | """
Before running the program, enter your specifications into
SETUP_fetchEventData.txt
"""
######################################################################
import obspy
from obspy.clients.fdsn.client import Client
from obspy.core import UTCDateTime
from obspy.core.event import Event
from obspy.core.event import ... | [
"noreply@github.com"
] | noreply@github.com |
c2d82f13a397d88acca295f116a817860485f6d8 | 01800b33fe25f82670037489e0abdc23ccd54773 | /otone_data/AnP_protocol.py | 1f06493f4b30fc5e124dfee0afec40050d7d5d05 | [] | no_license | annie-mao/OT.One | 368789cf1912979132ddfb89ba7a0e514ce5eea6 | 0190295076a12768610a101317888263c301739f | refs/heads/master | 2020-04-12T06:25:07.166221 | 2017-03-09T22:00:51 | 2017-03-09T22:00:51 | 63,980,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,016 | py | # Generates a JSON protocol for Accuracy/Precision volume transfer
# calibration on the OT.One
from baseProtocol import BaseProtocol, InvalidEntry, Prompt
import pprint
pp = pprint.PrettyPrinter(indent=2)
p = BaseProtocol("AnP","Test AnP of OT.One using p10 and p200 pipettes","1/23/17")
p.set_container_library("conta... | [
"annie.m.mao@gmail.com"
] | annie.m.mao@gmail.com |
be9f7d9a2fd66f2b56a23aa9abebafb6693868cc | 7f5486c34ea812eb34ce7e7ee43afb1429c0d553 | /ucsc/test/test_db.py | fc1f079582ca0cdb78a9896d68294f920b17f535 | [
"BSD-2-Clause"
] | permissive | jcastib/pyucsc | d6eb62553ab82b36609c8f5ad1d6d7a6eaf2d5af | e4991c9fcd3b6ce60a6c8530754e3d1e29407933 | refs/heads/master | 2021-05-27T04:33:37.285297 | 2012-06-18T13:12:07 | 2012-06-18T13:12:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | from ucsc import create_session, tables
from ucsc.model import *
def test_table_query():
print tables.__dict__
c = tables.knownGene.count().execute().scalar()
print c
assert c == 77614L | [
"james.casbon@popgentech.com"
] | james.casbon@popgentech.com |
2f5bbf0e115b4289ff48d2820beca1a959c8728c | a1c8f30fff88cfac929a6d2e0833ad5e721dfcb9 | /Django_App_Engine-master/home/models.py | 0fc07c3a46aa709bfd59cdba8edfe6472e37ebe0 | [] | no_license | Vishnuworld/gcp | dd372c07999f092cdbbb07a9da8297a057e3376c | 85405bc6e172fbd8186d4f6135851ab8b600eb45 | refs/heads/master | 2023-08-15T02:36:00.884984 | 2020-04-29T17:38:05 | 2020-04-29T17:38:05 | 259,826,426 | 0 | 0 | null | 2021-09-22T18:56:36 | 2020-04-29T04:45:56 | Python | UTF-8 | Python | false | false | 243 | py | from django.db import models
# Create your models here.
class Process(models.Model):
pid = models.CharField(max_length=50)
remark = models.CharField(max_length=255)
def __str__(self):
return self.pid + " - " + self.remark | [
"vbhandari9561@gmail.com"
] | vbhandari9561@gmail.com |
4ddfa8b1daefbb7c76885806723d3ed3fdc6b5f4 | ab53dba39824574e2bf5151d2774d1710c243ba0 | /src/notifications/migrations/0001_initial.py | dd6e8aa1c1b1e82c12ed1ffca9b2254557e15642 | [
"MIT"
] | permissive | DelivceNdegwa/notification-server | 5f2c93b77e01319fd5f295014afb1a70c050bb6f | 7f9d0a84831bee8b14dfccfef0496f0209eec5ab | refs/heads/master | 2023-08-18T05:04:46.583143 | 2020-06-16T09:59:52 | 2020-06-16T09:59:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | # Generated by Django 3.0.7 on 2020-06-15 12:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Notification',
fields=[
('id', models.AutoF... | [
"vibhu4agarwal@gmail.com"
] | vibhu4agarwal@gmail.com |
98fb628b2d8d36871ac1c2d34d2c5503d66ca7ea | ba8646ac4d444f2c75a340728300d9e7f629b437 | /test/model_tests/test_relationship_condition_querying.py | 10513f49953076ea481d4786cbfd4bf21c998283 | [
"MIT"
] | permissive | Jexan/OxygenRM | 5d8768332c1147b686632a6c624a20a77cdf5ca0 | c34b101a1a0ba4c529a92bca06fe05928dbed8f5 | refs/heads/master | 2022-11-23T13:55:05.695110 | 2020-07-25T23:34:58 | 2020-07-25T23:34:58 | 282,541,717 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,867 | py | from . import *
from .test_basic_model_relations import User, Post, OnePostUser, BaseClass
from .test_model_many_to_many import T1, T2, ts_cols, middle_cols
class TestSimpleRelations(BaseClass):
def setUp(self):
super().setUp()
db.drop_table('t1s')
db.drop_table('t2s')
db.drop_tabl... | [
"Jexan13@gmail.com"
] | Jexan13@gmail.com |
7de0394f52efca61b0b3f8ca0f72f0d0904d969d | 07af13a1df1f9ffc39b36ca44c6564fa8a27cbcc | /Mapping.py | 6f5b902c27ede4588b958f20e92274e36b6a650f | [] | no_license | lichiheng1998/Matrix | 084ca39790c4005f5ceeb1e9b89a866cb66c1cf3 | 53f03042b1ea2b586b86a08e8d08941b8879ff65 | refs/heads/master | 2021-05-09T06:30:10.047608 | 2018-02-01T18:23:37 | 2018-02-01T18:23:37 | 119,332,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,068 | py |
def map_2d(func, row, col, *args, construct=None,
iter_key=None, assign_key=None):
def assign_func(container, r, c, value):
container[(r, c)] = value
if assign_key is None:
assign_key = assign_func
if construct is None:
construct = {}
return _my_map2_rec(func, row, ... | [
"lichiheng1998@gmail.com"
] | lichiheng1998@gmail.com |
3a824e1ec074ba1a243a07f8e5876bf81065d115 | 2813ec210271006649274ab57f7302ce88a92457 | /novajoin/novajoin/tests/integration/test_ipa.py | ef6eb3fd411913d36f8d849bb685a7048d0fe1c3 | [
"Apache-2.0"
] | permissive | mail2nsrajesh/novajoin | c575e71ef448902a42f84e07fa1ef1fd40f87f6b | e75f3bd34310e21db1553d563ee999ac103aa84c | refs/heads/master | 2023-08-29T03:18:30.256764 | 2017-05-30T21:04:13 | 2017-05-30T21:04:13 | 96,141,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,660 | py | # Copyright 2016 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | [
"rcritten@redhat.com"
] | rcritten@redhat.com |
74df909a3eadb0de7ee6075b1ba1e97fbaab5606 | 0e726928cc61cc4b140bb81e4187f7588cba1622 | /manage.py | 0cb7605ed6afbf33322846dd0c1d656b02edac5a | [] | no_license | LeoKnox/djangoadv1 | 7a76652b4f59174b31f36f2b2f65662cdf17f05e | 82f5eb82728ec539a725a1460e387cd195af872e | refs/heads/main | 2022-12-28T23:26:55.682230 | 2020-10-17T22:22:52 | 2020-10-17T22:22:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_adv.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import... | [
"noreply@github.com"
] | noreply@github.com |
643eb7f477425f02153c3d2c8d108744da4cae8e | 52cb25dca22292fce4d3907cc370098d7a57fcc2 | /BAEKJOON/1차원배열/10818_최소, 최대.py | 86667a7ec7f8aea5cf57f1648b87a1660e4cd302 | [] | no_license | shjang1013/Algorithm | c4fc4c52cbbd3b7ecf063c716f600d1dbfc40d1a | 33f2caa6339afc6fc53ea872691145effbce0309 | refs/heads/master | 2022-09-16T12:02:53.146884 | 2022-08-31T16:29:04 | 2022-08-31T16:29:04 | 227,843,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | num = int(input())
test_case = list(map(int, input().split()))
print('{0} {1}'.format(min(test_case), max(test_case)))
| [
"shjang113@gmail.com"
] | shjang113@gmail.com |
8990290a8e27d70721b5a2f60efb5aa37dfa6771 | a5389c219c12ae43b1ecbf3e09db2ea3e0ef926a | /tweets/urls.py | 7ac49f61475135a395c053956c12ba9bc8f02cbc | [] | no_license | divineunited/tweetme2 | d568f04d9599405ec1c1feaa117a4f1eaa3c39f4 | dc77ce418216377c33be675709261f9126408eba | refs/heads/master | 2022-12-07T22:58:47.460404 | 2020-09-01T06:02:32 | 2020-09-01T06:02:32 | 286,193,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.contrib import admin
from django.urls import path
from . import views
'''
CLIENT BASE ENDPOINT: /api/tweets
'''
urlpatterns = [
path('', views.tweet_list_view),
path('action/', views.tweet_action_view),
path('create/', views.tweet_create_view),
path('<int:tweet_id>/', views.tweet_detail_vi... | [
"danieldukevu@outlook.com"
] | danieldukevu@outlook.com |
f6995bc94494f59f10fbfa79e6dec59938a25f86 | 92d3ff442a92738c6edcd0ef73f4d9e7d8bf5982 | /fase/flights/08_12_16/MOD812_BudgetModule.py | 37b1115d5719f3b6eb0b2383d0b46ccde642860d | [] | no_license | Jimmy-Layne/fase | 8bc76dc17622091371ee14f8cf3b1ac15dcfb360 | 5a9dcad25d1370eb3d9c49588f58a28169904d6b | refs/heads/master | 2022-12-02T01:44:03.842128 | 2020-08-19T23:35:38 | 2020-08-19T23:35:38 | 288,640,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,525 | py |
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 19 13:55:21 2016
@author: Thijs
"""
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import math
from scipy.interpolate import griddata
import pdb
def distance_on_earth(lat1, long1, lat2, long2):
# Convert lat... | [
"ea@arda.local"
] | ea@arda.local |
084706420a235cb05902a3d6090d79a5ce7dd498 | 3ce592352627591346ea33ea0c2665ad879414e2 | /References/opengl/computer.graphics.through.opengl/02_basic_drawing/moveSphere.py | eda2a48c42e3589ed85713e89d5a27c85fe955ba | [
"MIT"
] | permissive | royqh1979/python_libs_usage | 113df732ef106f4a5faae1343493756fd703c8c0 | 57546d5648d8a6b7aca7d7ff9481aa7cd4d8f511 | refs/heads/master | 2021-04-16T18:14:43.835482 | 2021-01-11T03:55:25 | 2021-01-11T03:55:25 | 249,374,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | """
// moveSphere.py
//
// This program allows the user to move a sphere to demonstrate
// distortion at the edges of the viewing frustum.
//
// Interaction:
// Press the arrow keys to move the sphere.
// Press the space bar to rotate the sphere..
// Press r to reset.
//
"""
from PyQt5 import QtWidgets, QtCore, QtGui,... | [
"royqh1979@gmail.com"
] | royqh1979@gmail.com |
6881ed8455819b69bb011bb4b5d0d41b3adc0067 | e02a563840b2c3f78456e44f5fa36d3e4a91860d | /backend/src/database/models.py | 0164fff004f473d042c17437895dc9aba1e5a84a | [] | no_license | im-ayush/CoffeeShop | 001443198ee61ff88d90a8f9dbf6b3b9c89b3544 | f7872094e97ac76dd8f204563bc3af46822e7c4e | refs/heads/master | 2023-05-31T19:11:49.553726 | 2021-06-20T02:27:05 | 2021-06-20T02:27:05 | 378,541,735 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,574 | py | import os
from sqlalchemy import Column, String, Integer
from flask_sqlalchemy import SQLAlchemy
import json
database_filename = "database.db"
project_dir = os.path.dirname(os.path.abspath(__file__))
database_path = "sqlite:///{}".format(os.path.join(project_dir, database_filename))
db = SQLAlchemy()
'''
setup_db(ap... | [
"ayushmishra6768@gmail.com"
] | ayushmishra6768@gmail.com |
da7cb602a55635eb162cd43b1b3c1706f8b423c4 | fe6d7d31aa9b487f71922dd656741162c532731e | /blog/urls.py | 3a89b53a2f216d56ec66eca4e53b5c4df76e1653 | [] | no_license | shalymovaigerim/my-first-blog | adadcc7687238e90a541e398ae72f332f05d7ae5 | e7103180ee153cd6cba9e6b94c9c714c780638f8 | refs/heads/master | 2023-01-11T17:37:52.086231 | 2020-11-11T17:20:37 | 2020-11-11T17:20:37 | 310,077,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from django.urls import path
from . import views
urlpatterns = [
path('',views.post_list,name='post_list'),
path('post/<int:pk>/', views.post_detail, name='post_detail'),
path('post/new/',views.post_new, name='post_new'),
path('post/<int:pk>/edit/', views.post_edit, name='post_edit'),
path('post/<p... | [
"shalymova_aigerim@mail.ru"
] | shalymova_aigerim@mail.ru |
e0287539bd801f859c461d1ae1d70b8055288938 | 5759c0ed3219c06437ce5b39ef9ad92b5e191fed | /py/0428_serialize_and_deserialize_n_ary_tree.py | 1df779c0ca32628d1c3067e97cc5b065abbbda52 | [] | no_license | mengnan1994/Surrender-to-Reality | ba69df7c36112ad19f19157a9f368eae6340630f | 66232728ce49149188f863271ec2c57e426abb43 | refs/heads/master | 2022-02-25T01:34:49.526517 | 2019-09-22T17:21:28 | 2019-09-22T17:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,773 | py | """
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer,
or transmitted across a network connection link to be reconstructed later in the same or another computer environment.
Design an algorithm to serialize and deseria... | [
"hurricane.cui@gmail.com"
] | hurricane.cui@gmail.com |
c3575c0cb974aad3825df4263f73ca0dcb694d5e | aec274689e2c22acd57936a6eda180376f4c1076 | /pkg/embeddings/testdata/testgen.py | d7ce33b1b8fb14a1aa90fe48301250d2a4ec27d7 | [
"Apache-2.0"
] | permissive | fredrikluo/mlserving | 5de356083d248671d4a1893391ff804e81da6f5e | b5d1c59b6f714abbfddd47d9ddcb116b52656a1f | refs/heads/master | 2023-07-10T21:27:16.204034 | 2023-06-30T12:54:55 | 2023-06-30T12:54:55 | 173,492,671 | 6 | 2 | null | 2023-06-30T12:54:56 | 2019-03-02T19:56:17 | C++ | UTF-8 | Python | false | false | 730 | py | import json
from annoy import AnnoyIndex
filename = 'test.ann'
index2idfilename = 'index2id.json'
def main():
# build the ann index file
t = AnnoyIndex(2, 'dot') # Length of item vector that will be indexed
id2index = {}
index2id = {}
embeddings = [[0.4472135954999579, 0.8944271909999159],
... | [
"fredrikl@kahoot.com"
] | fredrikl@kahoot.com |
9e88048d8e2c37bc5dda5fcac47089e76ea4ad02 | af4c724c2ae9b5560a0aebd4f5b9c0ccad62956d | /Ocularis_PY_Platform/comp_sci.py | 49c67952271eda1404ca1482183be90f6c368755 | [
"MIT"
] | permissive | gaurav-karna/Ocularis | 51aeefc34041d6af7d410b2f055314af78000ea1 | 0d45a9e2a44383aed3fbad3499c2ad2af4c92ccc | refs/heads/master | 2022-12-10T19:58:36.941291 | 2019-10-04T14:18:36 | 2019-10-04T14:18:36 | 158,031,702 | 7 | 2 | MIT | 2022-12-08T04:51:25 | 2018-11-17T22:53:42 | Python | UTF-8 | Python | false | false | 3,121 | py | import time
import requests
from xml.etree import ElementTree
import os
import playsound
import datetime
import multiprocessing
import keyboard
def playerasync(uid):
playsound.playsound(os.path.join(os.getcwd(), 'majortempaud', uid + '.wav'),False)
def checker():
while 1:
if keyboa... | [
"noreply@github.com"
] | noreply@github.com |
223ed45880966c83744fd57bf04af6d78138d270 | f945a1f805bfd0c7690c886511e2bcc2926e2a3c | /House_Renting_Solver/blog/migrations/0001_initial.py | 2c5f99d34536d0dc74bfefe37db11767494c0b00 | [
"MIT"
] | permissive | habib-wahid/WebTech | 0ae96708615548a84309c0187ad8f0afcc9faeae | 11358bd7b1640866a28832d52e24ea1e1f3e49b4 | refs/heads/main | 2023-08-13T21:35:08.848497 | 2021-09-20T15:35:04 | 2021-09-20T15:35:04 | 408,499,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Generated by Django 3.1.4 on 2021-01-04 06:29
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"habib11wahid@gmail.com"
] | habib11wahid@gmail.com |
0a6fea085a008cb91966ffa3f361a4e17d3b89c6 | ad2e47b28bd03714c962b460bc05a545a9c02b42 | /ebisim/xs.py | 56b47b39c9f8c44fa0bbba9209055d2e411de245 | [] | no_license | Ioniels/EBISSimulation | 9fb7abd5cb409a030599a057b1aa360ece00f9b6 | 73627437cb600f1d4a3179647c256b719262222d | refs/heads/master | 2020-04-28T16:46:56.696159 | 2019-03-06T15:20:04 | 2019-03-06T15:20:04 | 175,423,820 | 1 | 0 | null | 2019-03-13T13:13:05 | 2019-03-13T13:13:05 | null | UTF-8 | Python | false | false | 15,977 | py | """
Module containing the classes providing access to the relevant cross section for ionisation and
recombination
"""
from functools import lru_cache
import math
import numpy as np
import pandas as pd
import numba
from . import utils
from . import elements
from .physconst import RY_EV, ALPHA, PI, COMPT_E_RED
XS_CACH... | [
"32222819+HPLegion@users.noreply.github.com"
] | 32222819+HPLegion@users.noreply.github.com |
f9ceda4cd3cf9dfcc7ea65a3ed3425b5e6910499 | 4dd1636464260f96827ddefd8693d5c38e5fa2c3 | /InstantPythonGames/IPG Space Runner.py | 1e28bf91a3caccdbebb5b9065954e76cdab309fe | [] | no_license | JoeKHong/Space-Runner | 810de5acd5a0e4e8278e1656232df6c55c059fcf | 89ecafead386814ed18f7c38ee867edb754545e9 | refs/heads/master | 2020-05-18T07:37:42.591977 | 2019-05-01T13:57:49 | 2019-05-01T13:57:49 | 184,270,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,311 | py | from gamelib import *
game = Game(1000, 800, "Space Runner")
bk = Image("Space REAL.png", game)
game.setBackground(bk)
runner = Image("Space Runner man.png", game)
enemy = Image("Space Runner Enemy 2.png", game)
coin = Image("Space Runner Coin.jpg", game)
ammo = Image("Space Runner Ammo.jpg", game)
asteroid =... | [
"noreply@github.com"
] | noreply@github.com |
a6e3a3f1b09f4829def56b1bf77591e79844afac | a351496d390f8d56278de5c69c442cc3db846bc7 | /UserInterfaces/OrderedSet.py | 0c4d04930e1ad882d750f794781bc3ef177cc23c | [] | no_license | Willowlark/KML-Optimizer-Pathfinder | f62044ca4e8eb729498bee145a12ab423819b5cc | 203f02f69e948314647eb649e27b6e0e4a6c676c | refs/heads/master | 2021-01-20T10:13:06.970003 | 2017-05-15T21:55:57 | 2017-05-15T21:55:57 | 51,036,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | class OrderedSet(object):
"""
this class is our implementation of an ordered set in python
It wraps a list, allowing the the admission of elements only if the are NOT already contained in the list
"""
lst = [] # internal component, collection of elements
def __init__(self, iterable=None):... | [
"lapost48@gmail.com"
] | lapost48@gmail.com |
655ca34106da480d21ec9bb6da7b33271375ad14 | a56a74b362b9263289aad96098bd0f7d798570a2 | /venv/lib/python3.8/site-packages/tornado/curl_httpclient.py | b81316c01b086b4136ec914a0494b394529a1c69 | [
"MIT"
] | permissive | yoonkt200/ml-theory-python | 5812d06841d30e1068f6592b5730a40e87801313 | 7643136230fd4f291b6e3dbf9fa562c3737901a2 | refs/heads/master | 2022-12-21T14:53:21.624453 | 2021-02-02T09:33:07 | 2021-02-02T09:33:07 | 132,319,537 | 13 | 14 | MIT | 2022-12-19T17:23:57 | 2018-05-06T08:17:45 | Python | UTF-8 | Python | false | false | 24,693 | py | #
# Copyright 2009 Facebook
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"kitae.yoon@deliveryhero.co.kr"
] | kitae.yoon@deliveryhero.co.kr |
d1f15eb6ae771a03927ca615e404b3acf2a13970 | 7c25cd7f24fd9f0f04108eadbc3c41397319c63b | /tradingbot/constants.py | b6f45b54778adbe3bb98006462e5ebf6a3a2046e | [] | no_license | loponly/tradingbot | bef36fcf8bf15cf617be678120bd351468408415 | c5ad074194d91df20d2743c1aa87a7cf35fca636 | refs/heads/master | 2023-01-14T05:34:47.381472 | 2020-11-28T16:36:58 | 2020-11-28T16:36:58 | 283,103,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,764 | py | # pragma pylint: disable=too-few-public-methods
"""
bot constants
"""
from typing import List, Tuple
DEFAULT_CONFIG = 'config.json'
DEFAULT_EXCHANGE = 'binance'
PROCESS_THROTTLE_SECS = 5 # sec
HYPEROPT_EPOCH = 100 # epoch
RETRY_TIMEOUT = 30 # sec
DEFAULT_DB_PROD_URL = 'sqlite:///tradesv3.sqlite'
DEFAULT_DB_DRYRUN_... | [
"macbookpro@MacBooks-MacBook-Pro.local"
] | macbookpro@MacBooks-MacBook-Pro.local |
ed2b58b2eac75fc198b26d5e62452595da90df0d | 3d5c57007b7792328b89eaa55ba27f852997f579 | /pysemantic/tests/test_project.py | 77103f1683b85a04ded533290d3744becd10be41 | [
"BSD-3-Clause"
] | permissive | abhishekarora12/pysemantic | 7b39bed7fe2911c996bd2caf8609f23f3ac58086 | 5e4a08401c6dee62e6e298312e9401e03e952d4b | refs/heads/master | 2020-12-28T22:34:24.415014 | 2015-09-02T07:34:29 | 2015-09-02T07:34:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,742 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2015 jaidev <jaidev@newton>
#
# Distributed under terms of the BSD 3-clause license.
"""Tests for the project class."""
import os.path as op
import os
import tempfile
import shutil
import warnings
import unittest
from ConfigParser import ... | [
"deshpande.jaidev@gmail.com"
] | deshpande.jaidev@gmail.com |
1c9d0e560bc9fb3015940c803fb3da028d29d9ae | 878bd15535cafde2b49208e1bfc2224e027e4be9 | /1010.PY | b35cf40f3ecf6bd7bbc58f069816dac41f1892f3 | [] | no_license | Alvzz/URI-PROBLEMS | 650fefc8113b4040866dc09678f9b72060702ea1 | d7a990b60cb746bba927926f629b69ccb8d6ae13 | refs/heads/main | 2022-12-21T15:49:49.754099 | 2020-10-01T17:30:58 | 2020-10-01T17:30:58 | 300,364,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | linha1 = input().split(" ")
linha2 = input().split(" ")
a1, b1, c1 = linha1
a2, b2, c2 = linha2
total = (int(b1) * float(c1)) + (int(b2) * float(c2))
print("VALOR A PAGAR: R$ {:.2f}".format(total))
| [
"noreply@github.com"
] | noreply@github.com |
4fe8f803fc6d158e74f65ba3dc7fd9be8423ec64 | 6d423396ff89637cdfff830157bf8256b0dc6005 | /task8_check_stikers.py | 1b8a208743052d2ea5c0e10b2259c291651b9928 | [
"Apache-2.0"
] | permissive | kukushdi3981/sel-1_test-project | 46251b9814ac1d37808ffb4536fcec72925bedd0 | 81066e1501a62f642b5b76745801170ca62ad237 | refs/heads/master | 2020-01-24T20:54:04.478988 | 2017-07-09T17:00:50 | 2017-07-09T17:00:50 | 73,853,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | import pytest
from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
import time
@pytest.fixture
def driver(request):
wd = webdriver.Chrome() # Optional argument, if not s... | [
"kukushdi@mail.ru"
] | kukushdi@mail.ru |
d204380828811832f28d3f1ec891a93c74613bd6 | a3a47674e4ad7359a3571825a5beb4359f8f4667 | /linklist/SingleLinkList.py | 5cac6a3457c2351990ebb1ddf3bc17b21bf89ca7 | [] | no_license | 13iqin/leetcode_exercise | 6ca65d85d4cd4bba9c55cf936ed5eeb7527ee4bb | 3106b61de9014b1136cecc920531cb40624dfb74 | refs/heads/master | 2020-05-26T20:17:13.345693 | 2019-07-11T03:42:20 | 2019-07-11T03:42:20 | 188,360,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,520 | py | # 单链表的实现
class Node(object):
def __init__(self, val):
self.val = val
self.next = None
class SingleLinkList(object):
def __init__(self):
self.head = None
self.tail = None
self.current = None
# 可迭代条件
def __iter__(self):
return self
# ... | [
"miranda@seeapp.com"
] | miranda@seeapp.com |
25f15535f48b56735659001c93807f5a90b6113b | a02661e543a27528769abc175b61384062f1756c | /PycharmProjects/python/pythonProject/pythonProject/Ultralite/mysite/pages/urls.py | 90ac1151e8e3001d472452bd07463c7fad28750d | [] | no_license | radhikaarajput/Snapyard-Consultancy-Services | 33a1ba329180869e8fc77b13b7c3309499831b1e | 9365612ce01ce2ad08ea63227e8753e15010f1b9 | refs/heads/main | 2023-07-01T01:16:38.107980 | 2021-08-03T15:54:33 | 2021-08-03T15:54:33 | 392,369,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('about/', views.about, name='about'),
path('contact/', views.contact, name='contact'),
] | [
"rajputradhika20177@gmail.com"
] | rajputradhika20177@gmail.com |
66e4da1f9d9312ba7022d667ab27446bb2579f35 | f32b885903e6e5106581c27abd7e71003d458ea0 | /examples/11.instance_motion_blur.py | e58e90e1f59222e2d9d8f8f8aa70400699ffbc74 | [
"Apache-2.0"
] | permissive | jonathangranskog/ViSII | 7c51abfe12036628a0fb2ddd09fefa5b3596bfc3 | 84467b7cd14d87035bad7ff46fa87c0a0bef1ce3 | refs/heads/master | 2022-11-17T18:50:46.807105 | 2020-07-21T04:01:09 | 2020-07-21T04:01:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,705 | py | import visii
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--spp',
default=100,
type=int,
help = "number of sample per pixel, higher the more costly")
parser.add_argument('--width',
default=1280,
... | [
"natemorrical@gmail.com"
] | natemorrical@gmail.com |
d81a46a3217764a21d1ded1023b1641931b1597e | d919e6ed530f5bea1e2333f79e669c2c5f5f23f7 | /colinstu/bostonneighborhoods.py | a8db79a399aa5f9ed004f0cc22682f9fe85ddd78 | [] | no_license | dwang1995/course-2018-spr-proj | 78eca416b2354f3e834e2e57cc63cc2bda1256d7 | b5ccaad97f6e35f9580e645ca764f36eb3406f43 | refs/heads/master | 2021-05-02T07:28:13.199233 | 2018-05-04T04:17:34 | 2018-05-04T04:17:34 | 120,830,065 | 1 | 1 | null | 2018-02-08T23:19:13 | 2018-02-08T23:19:13 | null | UTF-8 | Python | false | false | 3,640 | py | import urllib.request
import json
import dml
import prov.model
import datetime
import uuid
class bostonneighborhoods(dml.Algorithm):
contributor = 'colinstu'
reads = []
writes = ['colinstu.neighborhood']
@staticmethod
def execute(trial=False):
'''Retrieve some data sets (not using the API... | [
"colinstu@bu.edu"
] | colinstu@bu.edu |
18f43854543ea9c9c8c46129f56e665c7042d7d6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/468/usersdata/304/111685/submittedfiles/Av2_Parte3.py | 8f2fd9356f208463f08f81498b9a718876b02d30 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
m = int(input('Quantas listas: '))
n = int(input('Qntd elemento listas: '))
for i in range (0,m,1):
lista=[]
for j in range (0,n,1):
lista.append(int(input('Elemento: ')))
media = sum(lista)/len(lista)
soma = 0
for i in range (0,(n-1),1):
soma += ((i - media))
dp... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
65914441fd5b2fff518e40dce9430baf93e9f0a9 | 09790593dd44a1ad31b387bbe4adea927697d3ef | /python/figury.py | f471df894e7725d6db3eec42a859e729c3f61c87 | [] | no_license | kuba332211/gitrepo | 0baa6179725fee3f200c619f0b436e89906a76a1 | b80b1931337b886bd6cff343b0feae4ce3055dbb | refs/heads/master | 2020-03-28T01:02:56.559496 | 2019-10-11T06:36:16 | 2019-10-11T06:36:16 | 147,471,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# figury.py
def prostokat1(a, b, znak):
for i in range(a):
for j in range(b):
print(znak, end='')
print()
pass
def prostokat2(a, b, znak, znak2):
for i in range(a):
for j in range(b):
if j == 0 or j =... | [
"kuba1122339@gmail.com"
] | kuba1122339@gmail.com |
28521a9496b6f5935ee132f946e0fc9b52269d45 | 459719d3624276a9498c6841ca31bf18775a35b6 | /python_activities/3_loops/2_word_guess_game_for.py | e389ccd626b5de30c028b36f284e95ee22f61fbd | [] | no_license | mathstronauts/IGNITE_TechExplore_2021_2022 | 2b9a82d142c9f0aebb892357cd91b179df2e29f7 | 6b0ecef68536090dd44faf19f7f8fc3218f2a0ee | refs/heads/main | 2023-09-02T11:26:33.816530 | 2021-11-02T21:19:14 | 2021-11-02T21:19:14 | 407,662,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | """
* Copyright (C) Mathstronauts. All rights reserved.
* This information is confidential and proprietary to Mathstronauts and may not be used, modified, copied or distributed.
"""
# Word guessing game - For Loop
import mathstropy
random_word = mathstropy.randomword() # random word generator function
cha... | [
"noreply@github.com"
] | noreply@github.com |
ac9515ff9b631cb889b688b5d9e6dcfb443c2a38 | b02106d46580c2436d26da899afedf004b9083e7 | /scripts/featureToComposite.py | dcbf9c828fde80853e2dd34b76a3eb30d4245756 | [] | no_license | Jeltje/TCGA-GAF-source | 2925a3940483da6902a6a4d4b5957e06cf369fd7 | 03c6214cbb9b93d57169f61ff8cf614575831e99 | refs/heads/master | 2020-12-25T12:47:24.754190 | 2013-10-11T00:15:53 | 2013-10-11T00:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | #!/usr/bin/env python
import argparse
import Gaf
import sys
parser = argparse.ArgumentParser()
parser.add_argument('featureGaf', type=str,
help="GAF containing features mapped against the genome")
parser.add_argument('compositeGaf', type=str,
help="GAF containing composi... | [
"cline@soe.ucsc.edu"
] | cline@soe.ucsc.edu |
45d3fdb6e971195c85cdc547f3ea2212460c8a22 | 0e7c7d86bd190507eced04baa2deb5237be738fd | /orm.py | 9dbe45ca8437a436985a5e59e04acd31f0e3ca0c | [] | no_license | bililioo/ilweibo | d3bf08dd7c457c4feea224aded3c7d3ada9e6a1f | 985589031991e01e521ab9cb670b1150d9c666e4 | refs/heads/master | 2020-03-17T09:31:30.742235 | 2018-09-01T03:25:09 | 2018-09-01T03:25:09 | 133,476,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,065 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Ben'
import asyncio, logging
import aiomysql
def log(sql, args=()):
logging.info('SQL: %s' % sql)
async def create_pool(loop, **kw):
logging.info('create database connection pool...')
global __pool
__pool = await aiomysql.create_pool(
... | [
"schumacher23@qq.com"
] | schumacher23@qq.com |
ec1c326b68ba3fac7295fe614e1dd372d683d0cb | d598801ba5f843d9d974980198ef161d1aa47c8e | /somatic_component_extraction/VAE_tensorflow1.py | a23e97d1758a89766131defb0bfdf69c313bd179 | [
"MIT"
] | permissive | lehner-lab/RDGVassociation | 5cbe98406e5b11f9c692cdbecf0827afdcc67470 | 23f0a6054bc5798d9d81a7eaab026fe8acae86ae | refs/heads/main | 2023-04-17T06:06:09.397546 | 2022-05-15T12:01:02 | 2022-05-15T12:01:02 | 413,348,149 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,475 | py | '''
Mischan Vali Pour
Variational Autoencoder
adapted/modified from https://github.com/greenelab/tybalt/blob/master/tybalt_vae.ipynb
adapted/inspired from "Hand-On Maschine Learning with Scikit-Learn, Keras & Tensorflow" by Aurélien Géron December 2020
Outputs different performance parameters
Runs with tensorflow 1.15... | [
"mischan.vali@gmail.com"
] | mischan.vali@gmail.com |
3330ac47b8e263dc784e8adc5c51fdaaa3d8f3ed | 140929bb7a81dd76688d5acc923f28aa0ff539d8 | /env/lib/python3.6/site-packages/pyglet/gl/gl.py | 124e049934b4d7e17508d83139153ba74ef16da6 | [
"Apache-2.0"
] | permissive | boodahDEV/Soni-IA | bd4436895c6c61c191e8968a964667af174121cd | c452c0b3df3a3ced4b5027c2abb4f3c22fd0f948 | refs/heads/master | 2020-05-05T01:27:04.810504 | 2019-05-27T06:48:08 | 2019-05-27T06:48:08 | 179,603,282 | 2 | 1 | Apache-2.0 | 2019-05-27T06:38:43 | 2019-04-05T01:39:46 | Python | UTF-8 | Python | false | false | 134,082 | py | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
"boodah21@protonmail.com"
] | boodah21@protonmail.com |
ee9f6788f3a5a73d0a3198614229a3db9893fe6c | dfe3306458094735f96f53bc20b09b4ff85f3261 | /get_monthly_insolvency.py | bfbec191b291ec8702e7756378fa394ed145bc8b | [] | no_license | xavierlopeze/Librebor-insolvencias | 4d6a4d050a706a27850f28d41cb53e673dde5941 | b0481363980ff482d5ddd46cec480718190243b7 | refs/heads/main | 2023-05-10T10:01:39.632482 | 2021-06-10T12:03:57 | 2021-06-10T12:03:57 | 367,947,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,778 | py | import pandas as pd
import ast
import altair as alt
from vega_datasets import data
filename = "data/insolvencias_2021.04.20"
export_file = "img/insolvencias_monthly_2021.04.20"
print("Reading " + filename + ".csv")
#Read the file
df = pd.read_csv(filename + '.csv', low_memory = False)
#Get the date and sort
df["day"... | [
"xavier.lopeze@gmail.com"
] | xavier.lopeze@gmail.com |
79c149f223cd05060eb7a857a08cd8585185c92f | 4149b4bd449d54a9796d83df629766d30c00a216 | /sort/sort.py | 9aca33bff972357ad55f90b5ee36758d975e1e72 | [] | no_license | Mogbeyi/typescript-playground | b90f1c61de093a8c1e6f7fd719eec72f4ab6d9bb | 4f062e561fac81dd4efc4f8e1eb86abeb397bf96 | refs/heads/master | 2023-03-29T16:26:34.814340 | 2021-03-31T22:42:38 | 2021-03-31T22:42:38 | 346,344,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from operator import itemgetter
L=[[9, 1, 9], [0, 2, 10], [4, 4, 100]]
new_value = sorted(L, key=itemgetter(0))
print(new_value)
| [
"mogbeyiwenyinmi@gmail.com"
] | mogbeyiwenyinmi@gmail.com |
c802f4d37891bf3049d8f9eed61d4fd153d56d9d | 83d28603f7980c2c5895521cff73fb1fb30f0c64 | /pages/admin_invoices_page.py | c4b49191433f88edd542d95f9fec7ca677984afa | [] | no_license | hypno-spira/vkrb_tests_probnik | d81b2b0c8acb78a2ee94a1bb2b9b244d17166e86 | fc34292611cdc436ea4fca8e7ac825bbd5ea71d3 | refs/heads/master | 2023-05-06T07:14:04.526483 | 2021-05-29T09:19:10 | 2021-05-29T09:19:10 | 362,542,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | from .base_page import BasePage
from .locators import AuthorizationPageLocators
from .locators import OnlineOrderPageLocators
from .locators import AdminCabinetAuthLocators
from .locators import AdminInvoicesPageLocators
import time
import re
class AdminInvoicesPage(BasePage):
def sign_in(self, email, password):
... | [
"64416493+hypno-spira@users.noreply.github.com"
] | 64416493+hypno-spira@users.noreply.github.com |
3cbc7be5a3f682a1d50ff5bbb5cdae725212271a | 3a74eff48e94e2ef67a9508b4e9ee3a8d8efe0f4 | /venv/bin/wheel | b6be00acbfc62378e7bffee70f22f9e4338349a9 | [] | no_license | ibnShawari/SevenElec | 58b4c76eb80e47c95ed0b6d4a95ca7983ba81f78 | 27abbb1b612266f3ad5639ab80fd45c1288b6030 | refs/heads/master | 2020-06-24T22:12:51.208302 | 2019-07-27T02:49:35 | 2019-07-27T02:49:35 | 199,106,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/Users/jinxin/PycharmProjects/SevenElec/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"1263755669@qq.com"
] | 1263755669@qq.com | |
6ce2e5527681d74d95f3836d7b83db44985c073f | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/resolve/AugmentedAfterAugmented.py | af870d6359d0bd6f1ecb6491cd6243ee652c1cc7 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 53 | py | foo = 1
foo += 1
while True:
foo += 2
# <ref>
| [
"andrey.vlasovskikh@jetbrains.com"
] | andrey.vlasovskikh@jetbrains.com |
3b3c12b9712ffc1b82183390eaf9cf738beaea01 | eb5da2d5f328f2126019a01222f268fba5dc93e6 | /app/models.py | 4a1abe33978582a35a8d95da328b77d05ef22905 | [] | no_license | GJhunter/fight-flask | 08c66d1ef7b3f565cb175883b032ca61d4cf6f3f | 253c159bb8faaafe1b6fe47fe59ac1e2798e6e1a | refs/heads/master | 2020-12-31T06:55:19.984285 | 2016-05-05T06:46:27 | 2016-05-05T06:46:27 | 56,834,903 | 0 | 0 | null | 2016-04-25T04:43:50 | 2016-04-22T07:20:15 | HTML | UTF-8 | Python | false | false | 13,195 | py | #coding=utf-8
from werkzeug.security import generate_password_hash,check_password_hash
from app import create_app,db
from . import db,login_manager
from flask.ext.login import UserMixin,AnonymousUserMixin
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app,request
from d... | [
"GJ000@outlook.com"
] | GJ000@outlook.com |
ed197626ee4fe647250bb45b57b7e06f427c7bcd | c8f752d74dfdf8451031cb30e1ccadd96f14cbf8 | /orar/migrations/0007_auto_20170522_2059.py | f6618b68f6328ea08d2046ec3c630f5b378886f5 | [] | no_license | cjorji/orar-fmi | 02cd25f90c7b6b02ee1b3af4642f11cd47227251 | d5c8e0a8a0d6e72d5307c39a989f0f6b3d939688 | refs/heads/master | 2021-01-22T10:46:46.349346 | 2017-05-30T05:15:16 | 2017-05-30T05:15:16 | 92,656,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-05-22 20:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('orar', '0006_auto_20170522_2045'),
]
operations = ... | [
"alexandru_coban32w@yahoo.com"
] | alexandru_coban32w@yahoo.com |
cc8fad7291a1179609390eca196635079213c903 | dce588147b099c97c20b97f856ca7c2db82a1282 | /demo/oauth2_test.py | afe90bb364e77bc139516c752f3a5cc688095f9f | [] | no_license | DieuMerciKIMPOLO/implementation | 91fa4216c5b03c19a88b6447b7b1b62e7067db27 | 42ed2b6ced86c038a02b141a983fa7e4644ee37a | refs/heads/master | 2021-05-09T05:56:40.606926 | 2018-02-04T15:46:49 | 2018-02-04T15:46:49 | 119,322,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,947 | py | #https://github.com/RichardKnop/django-oauth2-server
#01 password
#https://github.com/evonove/django-oauth-toolkit/blob/master/docs/rest-framework/getting_started.rst
client_id='pzpZDp6pqXZJiXMvqQpcBSnoNTXvisnAg9pC3Ws0'
client_secret='QzuWkLkH4Kef8rXtpwnNLvniLPFsC22LtJ5RXMJRBExcImT5mDGu2vfNylYBHR9lLeWPzbufg6SnYuwuTdKxl... | [
"dieumerci.k.nkokolo@aims-senegal.org"
] | dieumerci.k.nkokolo@aims-senegal.org |
7dd1a68a7c4cdac7d0296a2f5d1f42f43aefe4d6 | 204b8feadd3796fbe35aba28dc56756c5f4081df | /avatar/bintools/gdb/mi_parser.py | 22952fec1df98b99e3bce28081f9b61308e62e40 | [
"BSD-2-Clause",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | cojocar/avatar-python | b7a475c32f8c5e9b0dbbbd0245d70a7b30abfc8b | f2e0b8d739c3b7478c66feebbaf97e36a507dc7f | refs/heads/master | 2020-12-02T16:29:43.903990 | 2014-01-06T15:44:52 | 2014-01-06T15:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,668 | py | from re import compile, search
from bintools.gdb.parse_stream import ParseStream, ParseError
ESCAPE_CHARS = {'n':'\n', '\\':'\\', '"':'"', 't':'\t'}
def parse_cstring(s):
"""
const ==>
c-string
"""
s.expect_char('"')
sb = []
while s.check_limit():
c = s.char()
if c == '... | [
"lucab@debian.org"
] | lucab@debian.org |
1f81e707108d9d7cf615ad5fa62a8951c0ec8c95 | d53d223836d96d3e00880b133835d72be7d2023b | /Bioinspirada/MiniProjeto1/bin/AGF8QueensII.py | 1a3ed92849d02da848d799a1ac49d2ba6f308a06 | [] | no_license | ess2/AlgoritmosBioinspirados | e319460927b66e80aed81d9c292a008128036192 | 58527bc60e73aabb462213f19f99c5e64f7a9674 | refs/heads/master | 2020-07-26T13:22:04.746556 | 2019-09-18T04:06:40 | 2019-09-18T04:06:40 | 208,657,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,991 | py | import numpy
import numpy.random as npr
import random
import time
max_fitness = 28
qt_exec = 13
qt_population = 70
def main():
for f in range(qt_exec):
inicio = time.time()
population = list()
qtFitness = 0
#Gera a população
for i in range(qt_population):
a = r... | [
"ess2@cin.ufpe.br"
] | ess2@cin.ufpe.br |
8675568d830081739ba25916b161722f78eb6df8 | f7de7c4daed4fa52256c03590dceb5f5e1d09f2a | /dlnn/util/__init__.py | 37f39fef790c00c670ec5729e2acf024a75a5d91 | [] | no_license | Daneswara/sume | 918b3469dc941492e88c1014a2afbbeb8bdd68a6 | 1900ab97fd857b0dcab0ab9846f33b32d6be629c | refs/heads/master | 2022-12-09T14:24:12.701951 | 2019-01-14T13:16:45 | 2019-01-14T13:16:45 | 138,486,380 | 0 | 1 | null | 2022-11-21T21:20:50 | 2018-06-24T13:58:45 | CSS | UTF-8 | Python | false | false | 130 | py | import keras
def to_categorical(y, num_classes=None):
return keras.utils.to_categorical(y, num_classes=num_classes) * 2 - 1
| [
"id.muhammad.syafiq@gmail.com"
] | id.muhammad.syafiq@gmail.com |
0f3ba8c3c6a07fd4c4db2ae8b254a3b740c6e027 | e86a12cee54eec53655af8e9e889f47b665c18ea | /danntest/main.py | aa893f7f224ab30c5193745dfc4940e07c0cd3c9 | [] | no_license | wwnew/dann-tf.keras-test | 8854f092aee662aae94ae6df98fe296d765e4328 | 77f1aa1a554f82dea7a6a70ac9d03ba52365435a | refs/heads/main | 2023-03-14T12:27:05.056747 | 2021-03-03T13:09:39 | 2021-03-03T13:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,446 | py |
import tensorflow as tf
# tf.compat.v1.enable_eager_execution()
print(tf.__version__)
from tensorflow.keras.layers import Input, Dense, Dropout, Activation, Flatten, \
Conv1D, BatchNormalization, MaxPooling1D, UpSampling1D, LSTM,Add
from tensorflow.python.keras.layers import Cropping1D
from tensorflow.keras... | [
"noreply@github.com"
] | noreply@github.com |
92eef247a84e2406ff9284878f2967488e510127 | b27b0bcd22973d029688ea3f10c9abfe651800a4 | /ci2017/ci_2017_2.py | 932b23c51d72ab3b26dc3f9cfc002a50e9359dd5 | [] | no_license | KouheiFurukawa/atcoder-back-number | 8f6b7c6704bc6fb32bb8ca9ccc9971650c0fdf8f | 2fe11830614bf2ce64ee7947734043fe47800277 | refs/heads/master | 2020-06-03T13:45:54.531015 | 2020-05-17T05:53:39 | 2020-05-17T05:53:39 | 191,591,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from sys import stdin
data = stdin.readline().rstrip().split()
processed_data = []
row = []
for d in data:
if ',' in d:
row.append(int(d[:d.index(',')]))
processed_data.append(row)
row = [int(d[d.index(',') + 1:])]
elif '.' in d:
row.append(int(d.replace('.', '')))
proc... | [
"furukawabashi42@gmail.com"
] | furukawabashi42@gmail.com |
dc00c4f9226a317598fd9fd719ec433468ad23bd | a9337331f15c63eefdfeb22a8a3b61a42af800c5 | /askreduce/settings.py | dc6cd311325f98ae41b570864a243f16b1c610bb | [] | no_license | ajschumacher/askreduce | 0983bfa03190d48ff7c599bfc86eb4500b829637 | c97e9589700c30269b1f3b242e4b15150042751b | refs/heads/master | 2020-05-07T13:23:21.386988 | 2015-02-14T05:53:16 | 2015-02-14T05:53:16 | 30,126,298 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,738 | py | """
Django settings for askreduce project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
... | [
"ajschumacher@gmail.com"
] | ajschumacher@gmail.com |
2eca7b5eb0e8791ae710c58fa9f5a24f768438e8 | 8a714d065482b1f32e3938b0c6659196b339276c | /average.py | b94358a2d143dd9b1b3191af865cfcbd5beecc61 | [] | no_license | Jzgao04/Year9DesignCS-PythonPM | 8376f1315bbdbf295d5456136153b904dea78db7 | ba009c8be9a78cb54437d63f3a0c126efff453bc | refs/heads/master | 2021-06-27T15:43:04.135978 | 2019-06-11T02:44:38 | 2019-06-11T02:44:38 | 148,352,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | intTotal = 0
for i in range(0,10):
x = int(input())
intTotal = intTotal + x
print("Average", (intTotal/10))
intNum = int(input())
intFact = 0
for i in range(1, intNum + 1):
if intNum % i == 0:
intFact = intFact + 1
print(intFact) | [
"jason.gao@OO-What-Are-Those.local"
] | jason.gao@OO-What-Are-Those.local |
8e858adedb2bd3195fa4dfb7bb2b4c6af2189603 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03910/s110121278.py | 4c9ecfd6bfbe6621fcbe2a07ea7568326440d590 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | N = int(input())
s = 0
j = 1
for i in range(1, N+1):
s += i
if s >= N:
j = i
break
k = s - N
for i in range(1, j+1):
if i == k: continue
print(i) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a8476f006784afdcd64298dbe5195fd3da3546b3 | 9043d0fd824ed075963c8ca6b5ad8c9c3050c1d1 | /Databricks/StreamProcessing/Mobile Event Stream ETL.py | 43cf860cd644bc161024b9d881dc90b0e3d2b8ee | [
"MIT"
] | permissive | erisky/learning-msai | 99514784f571c20cddfa0f3bcac248cb6b2cf891 | fe8e61098d4ee665c199d7c74c2c0cb3615ac464 | refs/heads/master | 2020-04-01T12:18:17.516413 | 2018-09-14T04:19:46 | 2018-09-14T04:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,249 | py | # Databricks notebook source
# MAGIC %md
# MAGIC #Streaming Mobile Game Events
# MAGIC
# MAGIC This demo will simulate an end-to-end ETL pipeline for mobile game events
# MAGIC
# MAGIC #####Steps
# MAGIC - Event Generator that sends events to Azure Event Hubs
# MAGIC - Perform necessary transformations to extract rea... | [
"ericsk@gmail.com"
] | ericsk@gmail.com |
7dfd00b9ce9c9d7394c445879e5b2cfdfa82b837 | 4f3faf6584cee298153f3ad2de2eaf3ae0143bd3 | /tests/mc/obj2json.py | 525f6c5efccc244d59fc0613f827849386299409 | [
"Apache-2.0"
] | permissive | PeterZhouSZ/MiyukiRenderer | 09c6ced20440ed13ec97a37f79dda4f6c99acccb | 9e651e30a04460dc9fd0f0bcb132f84d75d1c2d0 | refs/heads/master | 2020-07-21T13:54:17.597346 | 2019-09-06T17:24:22 | 2019-09-06T17:24:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,059 | py | import sys
import json
from typing import List, Dict, Tuple
from math import *
import os
def parse_ns(s: str) -> float:
s = s[len('Ns '):]
Ns = float(s)
return sqrt(2 / (2 + Ns))
def parse_basic_float(s: str, head: str) -> float:
s = s[len(head):]
return float(s)
def parse_basic_float3(s: str,... | [
"38184032+xt271828@users.noreply.github.com"
] | 38184032+xt271828@users.noreply.github.com |
c285469a0fac2c6a51dac43ba7fb363a8c97eb25 | a9152bcd40b6c0a062db32650e8a45a9a19c9c46 | /main.py | 0ff91a03dabcbfa8b5194579673ef7ddf58a5a6e | [] | no_license | TIMESTICKING/sensors_serial | 8817b5cf82f30ba2ed6ea99d4d404287b69dc1f4 | b0966b8636d6df1efa31511404a2a664fc2a92a3 | refs/heads/master | 2023-09-03T07:44:19.663306 | 2021-11-22T11:15:10 | 2021-11-22T11:15:10 | 422,821,459 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | # -*- coding: utf-8 -*-
# @Time : 2021/10/30 22:37
# @Author : Jiabao Li
# @FileName: main.py
# @Software: PyCharm
from drivers.Laser import *
from drivers.Sonic import *
from drivers.Radar import *
from drivers.Serial import *
if __name__ == '__main__':
'''
毫米波雷达
读取距离
'''
finder = find_port_r... | [
"731908970@qq.com"
] | 731908970@qq.com |
7b082e9916627c42d239d447f94165bca3b7a262 | d471bbf3a74ec56914669a1383443e5d3a66e570 | /test_fixture.py | e27dbdbd0857032a267de29049226dc786c058b9 | [] | no_license | SudipSinghKhati/testing | e8d8f96ac29184f7d69e1d5292bb7942c51aa0bc | ad2da1775bf0c8e955547d41ba14c8358181f159 | refs/heads/master | 2023-08-14T20:37:32.726520 | 2021-09-28T02:32:09 | 2021-09-28T02:32:09 | 411,111,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import pytest
'''
test using fixtures
Fixtures are functions, which will run before each test function to which it is applied.
Fixtures are used to feed some data to the tests such as database connections,
URLs to test and some sort of input data. Therefore, instead of running the same code
for every test, we can... | [
"sudipkhati2043@gmail.com"
] | sudipkhati2043@gmail.com |
877c2c1ffca4cf685c39619bd5877709a434348d | 0d0ee226b655e7e665d3e7fef2aeec701f74d581 | /tests/integration/test_s3.py | 87e0d8ed54ceb00d306a916b40b333916b6578b8 | [
"MIT"
] | permissive | spcs/botocore | 435c180e93aa670ccf924a14ae776dd075d09fde | fc6b7454e5e17cfd6428b1abdffa38856d77bd25 | refs/heads/master | 2021-01-17T06:42:31.356668 | 2013-10-02T19:12:49 | 2013-10-02T19:12:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,424 | py | # Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights ... | [
"js@jamesls.com"
] | js@jamesls.com |
46c330be5429ab7a3b0347efc44ffb9f02a3931f | b1ac2a94392263457165abb53a5b207e569d784d | /flaskr/auth.py | 94aa3bd9bbb506d2139d8aec95f8524e6b09d1bc | [] | no_license | osboamb/flask-pallets-projects | ce5a75efe124b8658c374a15328d51b449b9a724 | e3c98ae4ded79cba8e2d48b4bc750dc6f70cd99f | refs/heads/master | 2023-02-22T00:56:21.501691 | 2021-01-27T17:57:33 | 2021-01-27T17:57:33 | 333,511,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py | import functools
from flask import (
Blueprint, flash, g, redirect, render_template, request, session, url_for
)
from werkzeug.security import check_password_hash, generate_password_hash
from .db import get_db
bp = Blueprint('auth', __name__, url_prefix='/auth')
#Registration for first time users
@bp.route('/re... | [
"OsborneAP@cardiff.ac.uk"
] | OsborneAP@cardiff.ac.uk |
6adc117fbecb878e659be7ef8fe69003caf90078 | 9ac91b5fca46997a484fe0dd9a9d23e01dae5c7c | /OOP/OOP3.py | 1d6abae38d36497d7429d8e9b897e612cd43503d | [] | no_license | HomeNerd/OrneklerPython7 | b03e649a3f1c9c23730a3eeb723b0df4890273f7 | 711e26917244d89cdf492df0489d02b630732215 | refs/heads/master | 2020-06-08T15:26:37.974583 | 2019-08-08T12:58:24 | 2019-08-08T12:58:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | class KatHarita:
en_sayi = 10
boy_sayi = 10
magazametre = 50
yolmetre = 50
print(dir(KatHarita))
| [
"ibrahim.ediz@gazi.edu.tr"
] | ibrahim.ediz@gazi.edu.tr |
90deb32ff2d651f50511bc9a8d67302c36fdd7b7 | 485990043d0bc3883195d43b7a4c02502483b726 | /6310545566_Phawit_ex4/pinwheel.py | 35e0128cd0b184c176cdcff710bbc795aac899d9 | [
"MIT"
] | permissive | HelloYeew/helloyeew-computer-programming-i | 0bc6d88fd41091109ae089769a7afc0a47bf2a3c | cf8315bdc4b8e20ba410e0745778595805f51afb | refs/heads/main | 2023-02-23T00:12:40.913505 | 2021-01-26T04:09:48 | 2021-01-26T04:09:48 | 314,625,973 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | import turtle
import random
turtle.speed(25)
turtle.setheading(0)
def pinwheel(num_branch, size, backup):
turtle.pendown()
for i in range (num_branch):
turtle.forward(size)
turtle.backward(backup)
turtle.right(360/num_branch)
turtle.penup()
turtle.penup()
for i in range (10):
... | [
"gameforphawit@outlook.com"
] | gameforphawit@outlook.com |
1f677f7a187ea16719fbed4cded7333283491d2c | 0e28cf67181063cce45a7cf25821928d6ecef52d | /ctgpayroll/Lib/site-packages/urllib3/util/connection.py | dbca9ab7dbec927e10ec69b22ebabf82fa0ea520 | [] | no_license | wanggs4/ctgpayroll | 09a2b2e15c3d3e54a06c11bedb0804981b0900bb | c9865371a495b63d025f1940e468525dfd50ffd9 | refs/heads/master | 2023-07-17T15:49:14.994938 | 2021-08-27T03:46:04 | 2021-08-27T03:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,642 | py | from __future__ import absolute_import
import socket
from .wait import NoWayToWaitForSocketError, wait_for_read
from ..contrib import _appengine_environ
def is_connection_dropped(conn): # Platform-specific
"""
Returns True if the connection is dropped and should be closed.
:param conn:
:class:`h... | [
"1404429103@qq.com"
] | 1404429103@qq.com |
5804587789dcdd33d89a4e3c670a7e7a4d9ddcf3 | a892ab25e2847af5d17617942e59f183045371bb | /main.py | 34dacad2463e8adb463d5a7f92ea2e3f29092790 | [] | no_license | AlexCuencaM/Python-tkinter | 4ccb38078e548df9cfc8656aad7cec7dc2a5a788 | 70d78eb4bf3d6236edba0e209ebe307651b5c343 | refs/heads/main | 2023-01-03T08:02:48.323747 | 2020-10-30T15:43:07 | 2020-10-30T15:43:07 | 306,468,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | #!./myvenv/bin/python
from tkinter import *
from Tema import Tema
from Table import *
from Window import Window
if __name__ == "__main__":
root = Tk()
tema = Tema()
root.wm_title("App de Coliflor")
root.geometry("500x500")
app = Window(tema,root)
root.mainloop() | [
"maxpowerxd8y9@gmail.com"
] | maxpowerxd8y9@gmail.com |
b9f3f531e9f85887c2aef2a65ac31e93ef3f673c | d2864f910097bcdd82d772f20b7061304a5cde9e | /Hello_World/Hello_World/products/forms.py | b88c43f6c0b56c173def41fc91bd2264ec77d044 | [] | no_license | Priyankawu/PythonProjects | 117e6125f25708bb78c337c14aac25c3bb13e094 | 3cf834378a8a22cdc0904a4526842eee8ebba5db | refs/heads/main | 2023-03-02T23:28:15.389776 | 2021-02-09T04:12:55 | 2021-02-09T04:12:55 | 335,443,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.forms import ModelForm
from .models import Product
class ProductForm(ModelForm):
class Meta:
model = Product
fields = '__all__' # grab all field from Product class
| [
"priyankawu@yahoo.com"
] | priyankawu@yahoo.com |
5524a89c414ebfad24d77eccac341804cc8900a8 | 537e37a98b7a64476f06ddf64d40645a7d1e7510 | /src/models/table.py | 4519fad71be4181f3066789353f5480330321a57 | [
"MIT"
] | permissive | danielvcm/to-do-api | 5fb24513209eabb9c419f66a0058b2e0b286a5ba | ca560dec3672222c98cd287961ebcd41f2792a7b | refs/heads/master | 2022-12-16T21:21:17.807561 | 2020-09-21T03:15:43 | 2020-09-21T03:15:43 | 296,492,651 | 0 | 0 | MIT | 2020-09-21T03:15:44 | 2020-09-18T02:27:25 | Python | UTF-8 | Python | false | false | 1,141 | py | from ..databases.to_do_database import ToDoDatabase
class Table:
def __init__(self,id=None):
self.id = id
self.schema = 'to_do'
self.database = ToDoDatabase()
def execute(self, statement, values = None, operation = 'read'):
cursor = self.database.get_cursor(operation)
... | [
"danielvcmiranda@gmail.com"
] | danielvcmiranda@gmail.com |
fa1fa3378a017fe7890883215c6f4ed40f43828a | a2b696ba8edd5e6b8aa1a4c4aea19cc56e6beb66 | /api/serializers.py | d4db895abe2ac6146ca319be0a8d40433d07655a | [] | no_license | kyrios213/drf-django | 7163eeaba2f32cd0f1cfa5871718c1892a7dc83a | d61438bbb919e7ab845da14bf04cfd85d108de73 | refs/heads/main | 2023-06-05T03:19:33.440410 | 2021-06-21T03:23:46 | 2021-06-21T03:23:46 | 378,791,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from rest_framework import serializers, viewsets
from django.contrib.auth import get_user_model
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = get_user_model()
fields = ['id', 'email', 'password']
extra_kwargs = {'password': {'write_only': True, 'min_length': 8}}
... | [
"kyrios213@gmail.com"
] | kyrios213@gmail.com |
eb19ac1ed773d07f6ae887971be020434e1107ad | 649f44e3a00e167b7a2b95d0c10fc9574c4c2dc5 | /cx_setup.py | b0df83ca146b9b0e604b5fe2b743441a61670e5c | [] | no_license | RedFalsh/EPD_Config | b1a786d1a7f77ee4cfc2eb9b66f3466fca69f8c5 | 0418a9b4ed7069572b87638b60774d4913b44629 | refs/heads/master | 2021-06-10T09:34:35.145375 | 2016-11-28T03:26:42 | 2016-11-28T03:26:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | # -*- coding: utf-8 -*-
# A simple setup script to create an executable using matplotlib.
#
# matplotlib_eg.py is a very simple matplotlib application that demonstrates
# its use.
#
# Run the build process by running the command 'python setup.py build'
#
# If everything works well you should find a subdirecto... | [
"noreply@github.com"
] | noreply@github.com |
ce79f524b42af305869c5b3ad5155917f405c457 | e0f5dc369aac142060ee9c05a7657fa98bd94a4d | /stock/migrations/0008_auto_20201027_1742.py | 94caae37bf30ead4e08753502aaf47d6a011f7bf | [] | no_license | ajaykumar1110/MobileCart | 9615a65cdcc1b2fdef0b49fb251991a2af3cd362 | ff17e5d5cf9a395e41cc2d7ebc3313ea31c54067 | refs/heads/main | 2023-01-07T02:59:47.062604 | 2020-10-28T13:59:49 | 2020-10-28T13:59:49 | 308,032,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # Generated by Django 3.1.1 on 2020-10-27 12:12
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('stock', '0007_auto_20201027_1615'),
]
operations = [
migrations.AddField(
model_name='stock',
... | [
"36915199+ajaykumar1110@users.noreply.github.com"
] | 36915199+ajaykumar1110@users.noreply.github.com |
9132e1ad54fca3fe47ba425f3bbb3e1377737f65 | 6b6bf72694e5aa6425f11c956e4a5371b2c73e09 | /populate/main.py | bcccf70630692e0c3d23db7eb0615a5c25787907 | [] | no_license | danielspeixoto/elasticsearch-workshop | 5d9dccebb80bf58b786f167ff8eb6de8a0282a8c | 9872831361ea349453b8e202eb02880c43cbc238 | refs/heads/master | 2020-04-02T01:18:28.858625 | 2018-10-25T22:24:28 | 2018-10-25T22:24:28 | 153,848,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from helpers.Index import Index, connect
from helpers.XMLRepository import XMLRepository
connection = connect("localhost", "9200")
index = Index(connection, "meu-index")
dados = XMLRepository("./datasets/bitcoin/")
index.bulk_insert(dados.data())
| [
"danielspeixoto@outlook.com"
] | danielspeixoto@outlook.com |
56dbc1981e7b52b4fe83a8d7b986c99a7103708d | b099dc04b909271cbb6c30c11dcea2db1bbef96e | /wwtp_app/wwtp/jeu/model.py | 5a94f6d471821acd33abcc1dc0d80a511e1452c8 | [] | no_license | JacqueminC/WWTP | 32500a09802e1f06f9e1783c26ccd67a739a3805 | 5766fd6c73b9d99fab9eab6ef97ebba420a79e31 | refs/heads/master | 2023-07-17T15:39:01.289160 | 2021-08-28T10:07:01 | 2021-08-28T10:07:01 | 356,796,525 | 0 | 0 | null | 2021-08-28T10:07:02 | 2021-04-11T07:20:36 | Python | UTF-8 | Python | false | false | 106 | py | class Jeu:
def __init__(self, nom, version):
self.nom = nom
self.version = version
| [
"cedjacq@outlook.com"
] | cedjacq@outlook.com |
303a4c7e7f7416f80289995082a893f85bbe7bfe | 0ae5b860ba261b588fe69b4ab27510871c9c88ac | /mysite3/mysite/settings.py | 7dec742ed809fe5a7cc8241510c53e116ebbe907 | [] | no_license | youzhibicheng/ThinkingDjango | cddd4292cff2d6256a372bae667cbb866b5645e9 | f2f4232f72266a4eecae1c5d2fe24dbc9dd9e0ac | refs/heads/master | 2021-01-10T01:10:20.929726 | 2016-03-09T01:21:50 | 2016-03-09T01:21:50 | 53,291,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# ... | [
"youzhibicheng@163.com"
] | youzhibicheng@163.com |
8efb07840955947ddd5e8dfce489dab5d87067ac | 98723f78c016889d9151ff5e2889a35bba8108cd | /contacts/forms/Contact.py | cbd2b6324011f09adb4a9cae77c71e000715cebe | [] | no_license | sethuraman-k-r/django-contacts-app | c04d2062a0f3241a90a9423ac31f918a09c42ba5 | 9eb02a96dc95ef29d7c43150e0648ba37b6b3266 | refs/heads/master | 2020-09-11T21:23:21.446298 | 2019-12-15T08:19:49 | 2019-12-15T08:19:49 | 222,194,835 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | from django import forms
from ..models import MobileInfo, Relationship, DateInfo
class UserInfo(forms.Form):
firstname = forms.CharField(label="firstname", max_length=50, required=True)
lastname = forms.CharField(label="lastname", max_length=50, required=True)
surname = forms.CharField(label="surname", ma... | [
"ramansethu605@gmail.com"
] | ramansethu605@gmail.com |
ccf2bb436946bea30ec9aa47f3d1a051dd25658c | 307faa13334aaaf6b4a90b01094bc0996dce9685 | /mysite/pdfmerge/apps.py | 02f60f5cf629f1a95bbe5ee41f24c5b0209d7e53 | [] | no_license | xiaobojiang/pdf-merger | 808b0987525affd2d068588b2016913a32b73db0 | 35efc71f7c43771a534f8b9336caeef87cf07e58 | refs/heads/master | 2023-07-08T20:02:41.321279 | 2021-08-04T07:42:07 | 2021-08-04T07:42:07 | 210,569,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class PdfmergeConfig(AppConfig):
name = 'pdfmerge'
| [
"xiaobo.j.jiang@signify.com"
] | xiaobo.j.jiang@signify.com |
15aa14bd147b72e801f55c46ff70efe32d7ef80e | d6074aac6e9e5f2fa5355c3c9ddaebe892c4151d | /setup.py | 8813b411347ea2ca52a5f6274befae3a458b8877 | [
"BSD-2-Clause"
] | permissive | pombredanne/pydeps | f5aae8b825cf86db8308adad808b4bbf8cee52a2 | 95833f42f86f9c5c23ef14b675828d0ddc4df73e | refs/heads/master | 2021-01-18T07:52:41.522028 | 2016-05-19T13:53:14 | 2016-05-19T13:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py |
import setuptools
from distutils.core import setup
setup(
name='pydeps',
version='1.2.7',
packages=['pydeps'],
install_requires=[
'enum34'
],
long_description=open('README.rst').read(),
entry_points={
'console_scripts': [
'pydeps = pydeps.pydeps:pydeps',
... | [
"bp@datakortet.no"
] | bp@datakortet.no |
cdd36f191ae11e5e6c4ba6292d8ecb7528e6fbdf | ccd807634e0fa1ba137d663ab4f1ba1736701dbc | /models.py | 9a18c1aeef6bcb8477ce6e614dacb350055aeccb | [] | no_license | bboatright013/RickandMortyAdlibs | fff1256057118e7314723a06a189d0638e17c976 | 3caaae0621aac0a96651d9565f43fdf0a0a1cd83 | refs/heads/master | 2022-12-02T22:22:13.461706 | 2020-08-19T17:18:13 | 2020-08-19T17:18:13 | 288,062,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | """SQLAlchemy models for Rick and Morty."""
from datetime import datetime
from flask_bcrypt import Bcrypt
from flask_sqlalchemy import SQLAlchemy
bcrypt = Bcrypt()
db = SQLAlchemy()
class User(db.Model):
"""User in the system."""
__tablename__ = 'users'
id = db.Column(db.Integer,primary_key=True)
e... | [
"bboatright013@gmail.com"
] | bboatright013@gmail.com |
e31f390c685de55d179575ab7033649ae3118048 | c8fb99bc9f6b7244f6aa08eb0db4655595bb5018 | /admin.py | d4de70b1091e4e7fb2e9c2eb5b9884ea6eb1e2eb | [] | no_license | eisebs/PJD | 1d940af910b8682494d2566d3ed112db2739ab40 | 375dadcb0f9e7db93e9c1aae7da1eebbd8762b89 | refs/heads/master | 2016-08-07T08:20:43.031213 | 2010-08-12T16:30:53 | 2010-08-12T16:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,825 | py | import pickle
import socket
import socketserver
import time
import hashlib
import struct
from jobqueue import *
from systemborg import *
class AdminResponse:
def __init__(self, msg, number):
self.msg = msg
self.number = number
class AdminDownlink:
_ip = "";
_port = 0;
... | [
"eisebs@gmx.de"
] | eisebs@gmx.de |
456a262bfd7565082ddcf11a76ff48664de185bb | 25a269bd9842e80877a5ec482e7d26422e2555d2 | /DataGoCrawler_Tourism.py | 8ab5f0a5fe56e83ca7f1a125d10337ff3712125b | [] | no_license | IMRYOUNG/Crawl_Data.go.kr | b5eb0ec63bdbb8e42de7cad8db54bb55e1bb0227 | 715cfcce89200473bd60a833cb2aa1910b1ffad6 | refs/heads/master | 2021-01-07T21:25:02.103843 | 2020-02-20T07:51:48 | 2020-02-20T07:51:48 | 241,823,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | import os
import sys
import urllib.request
import datetime
import time
import json
import matplotlib.pyplot as plt
import matplotlib
from matplotlib import font_manager, rc
def get_request_url(url) :
req = urllib.request.Request(url)
try:
response = urllib.request.urlopen(req)
i... | [
"noreply@github.com"
] | noreply@github.com |
afb40df1d8865d67ceff7b980f2d0e72f8353f59 | f6faf6e8b95a174afdaf748915d1ec3c5ab589a1 | /paper/paper/urls.py | 33a57dc8c72f15f2ac14bddfc73e6712c5810d65 | [] | no_license | manhcuongdoan/newspaper | 39c1f6c66cfe644ddafa88b8fa68208c87118b5b | 6f76640ad3b4f6355feed8b97fcb12d230f6fdf9 | refs/heads/master | 2020-09-20T17:58:42.662331 | 2019-11-28T03:40:22 | 2019-11-28T03:40:22 | 224,553,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | """paper 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 v... | [
"doanmanhcuong1234567@gmail.com"
] | doanmanhcuong1234567@gmail.com |
c90605a922692464ae62ce2ac71320e0566d62bf | 90990e4aaecc235845795e94bfcd238b7c3b753d | /cache/.mako.tmp/page.tmpl.py | bdfd427222b82874a4464867f587f6c012038f06 | [] | no_license | QXCai/Nikola_Blog | ddb7969b86408758f233e716e1fa2f2fb69143f4 | 2b17dbd0616bcdd7d26df31aeb95416ae1e6f2c8 | refs/heads/master | 2021-09-01T13:53:34.024146 | 2017-12-27T09:27:06 | 2017-12-27T09:27:06 | 115,492,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # -*- coding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1514366537.8449442
_enable_loop = True
_template_filename = 'c:/anaconda3/envs/cai_env_nikola/lib/... | [
"caiqx@mail.bnu.edu.cn"
] | caiqx@mail.bnu.edu.cn |
7a0a0fb5b5ae23984c122bb0d86223869eec7a64 | 80de4d754a3b74e171def6fa26371592e61c81f8 | /moneygrabber/wsgi.py | 0cd0005e29e48adbcf0ff714d1c70208e8d2e59e | [] | no_license | sergioe21/moneygrabber | 00df44383fd4e9d7f58726ed31a7b7835ee8ff7a | a207bc71adabd43b41f1d15550673a32b869a815 | refs/heads/master | 2021-01-10T04:56:20.732236 | 2016-02-03T03:37:03 | 2016-02-03T03:37:03 | 50,970,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for moneygrabber project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"sergioesteban.21@gmail.com"
] | sergioesteban.21@gmail.com |
1ded2999966d01cb7228a2a4f5bc86303d668757 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /aYTLW5jmRoXhnnzwj_3.py | 9f67e5f61283ae4dd389aefbe398689d6bd08e13 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py |
query = " select name from employees where salary > 45000"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
38bbf0422041425be9f4f1aac557fcfbfe23a739 | 694d57c3e512ce916269411b51adef23532420cd | /leetcode_review2/74search_a_2D_matrix.py | 866fe5944bf1f8a5a7c20dee6738ef99ba24a70b | [] | 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 | 421 | py | class Solution(object):
def searchMatrix(self, matrix, target):
m, n = len(matrix), len(matrix[0]) if len(matrix) > 0 else 0
cur_i, cur_j = 0, n-1
while cur_i < m and cur_j >= 0:
if target == matrix[cur_i][cur_j]:
return True
if target < matrix[cur_i][... | [
"seasoul410@gmail.com"
] | seasoul410@gmail.com |
34cda67bc47e4e236923495d21b3410260bc6065 | 7760be277bb65211b716c1cb9155921ae660b61e | /BasicPythonPractice/SumTwo.py | 50dfeda0f04c9ffa091a59e53150f44efae32fb7 | [] | no_license | sanjanabalakrishna/Python-Scripts | 5d66f19b2ff0fbbd13f282a62ab87d4bb7a814ce | 0a9b94758af248372b1438dff6470391a324e6e7 | refs/heads/master | 2020-07-22T08:42:22.384472 | 2019-10-20T17:11:08 | 2019-10-20T17:11:08 | 207,136,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #Given an array of integers, return indices of the two numbers such that they add up to a specific target.
#You may assume that each input would have exactly one solution, and you may not use the same element twice.
class Solution:
def SumTwo(self, nums, target):
di = {n:i for i,n in enumerate(nums)} #Crea... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.