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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3761f78794812b198b0c941d3b519e3150947df5 | 88dde3533d8283452b780fd120d8da94a2231876 | /lab1/encoders.py | e670db5d8e2da9dfbcba5f7d55128dd8dacf95cf | [] | no_license | jando16407/ControlofMobileRobots | 035e654cd556138321eb8c442a8c8f535edbcfdb | 10806892b812296bb5fc83124094a802596760b4 | refs/heads/master | 2020-03-28T17:45:50.229926 | 2018-09-16T01:49:10 | 2018-09-16T01:49:10 | 148,688,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,469 | py | import time
import RPi.GPIO as GPIO
import signal
import sys
import tty
import termios
# Pins that the encoders are connected to
LENCODER = 17
RENCODER = 18
left = 0
right = 0
# declare tuple
#counts = ("Left count : ", str(left), ", RIght count : ", str(right));
# The det_ch method will determine which key has been... | [
"jando16407c@gmail.com"
] | jando16407c@gmail.com |
b10a7d8f06eea9e1ba7d3bd0fad062389e44d262 | 096ecb1ae95b3bcfd002480415a04c5191e01419 | /ttbc.py | 3973b4f37e4719b025aea65d6b2b2d4d96188280 | [
"Apache-2.0"
] | permissive | iamaris/pystock | 7f3c955977c662e384f23f3113c0c5ac8fc3f4ff | 864f8beba0cf50a7a4f52bf7c67e83fdfd774a9c | refs/heads/master | 2021-01-25T07:08:14.604437 | 2015-09-07T17:17:48 | 2015-09-07T17:17:48 | 16,152,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | import urllib
import pandas as pd
import pandas.io.data as web
#from datetime import datetime
import matplotlib.pyplot as plt
import pickle as pk
from pandas.tseries.offsets import BDay
# pd.datetime is an alias for datetime.datetime
#today = pd.datetime.today()
import time
#time.sleep(5) # delays for 5 seconds
#today... | [
"aris@cmu.edu"
] | aris@cmu.edu |
39ce07857213f8a281675528cad52ce7943c5bf1 | 2bcf18252fa9144ece3e824834ac0e117ad0bdf3 | /zpt/trunk/site-packages/zpt/_pytz/zoneinfo/US/Indiana_minus_Starke.py | f06a4f85e29494d5c49f070ed6153788987fe72d | [
"MIT",
"ZPL-2.1"
] | permissive | chadwhitacre/public | 32f65ba8e35d38c69ed4d0edd333283a239c5e1d | 0c67fd7ec8bce1d8c56c7ff3506f31a99362b502 | refs/heads/master | 2021-05-10T14:32:03.016683 | 2010-05-13T18:24:20 | 2010-05-13T18:24:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,743 | py | '''tzinfo timezone information for US/Indiana_minus_Starke.'''
from zpt._pytz.tzinfo import DstTzInfo
from zpt._pytz.tzinfo import memorized_datetime as d
from zpt._pytz.tzinfo import memorized_ttinfo as i
class Indiana_minus_Starke(DstTzInfo):
'''US/Indiana_minus_Starke timezone definition. See datetime.tzinfo fo... | [
"chad@zetaweb.com"
] | chad@zetaweb.com |
5916126d6b2b7816ef167915954b5ddf8cb45d8f | 54b238d50baee4f483c0690d77d106ebc30a4c0a | /tests/test_space_time/test_type_helpers.py | cb9dab6c31fed82502d58d190cd6d40c0ba43739 | [
"MIT"
] | permissive | David-Durst/aetherling | 4a5d663a98428769834e8ebbf7e9b63cb7788319 | 91bcf0579608ccbf7d42a7bddf90ccd4257d6571 | refs/heads/master | 2021-08-16T01:48:20.476097 | 2020-06-19T19:25:46 | 2020-06-19T19:25:46 | 114,405,958 | 10 | 1 | MIT | 2021-03-29T17:44:39 | 2017-12-15T19:46:51 | Python | UTF-8 | Python | false | false | 2,731 | py | from aetherling.space_time.space_time_types import *
from aetherling.space_time.type_helpers import *
def test_same_type():
x = ST_TSeq(3, 0, ST_Int())
y = ST_TSeq(3, 0, ST_Int())
shared_diff = get_shared_and_diff_subtypes(x,y)
assert shared_diff.diff_input == ST_Tombstone()
assert shared_diff.diff... | [
"davidbdurst@gmail.com"
] | davidbdurst@gmail.com |
a95c8e9ee9b4167c2ef845c2453d3b7c424026ec | 4df63456e42591b5858c29986089b84ecac01fea | /tracker-visual/read_cluster.py | 3739ddc9ef84e61e5178f922a6728920b78a1a44 | [
"MIT"
] | permissive | will-fawcett/trackerSW | 6f71a8ab9e2013e439e1e24326c1cc59f7be1e7f | fc097b97539d0b40a15e1d6e112f4048cb4122b4 | refs/heads/master | 2021-04-25T21:39:17.321302 | 2018-06-14T13:31:13 | 2018-06-14T13:31:13 | 109,404,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | """
Quick script to dump FCCSW tracker validation data to plaintext spacepoints.
Requires podio, fcc-edm in pythonpath and ld-library-path.
"""
from EventStore import EventStore
import numpy as np
import sys
filename = sys.argv[1]
basefilename = filename.replace(".root", "")
events = EventStore([filename])
print 'nu... | [
"william.fawcett@cern.ch"
] | william.fawcett@cern.ch |
d4efd4910a49742035a254ce235200d20ebfb4ca | e77027cb5ffa4754a5ac1cf8d1cd1e2035710cfe | /VectorComplexLibrary.py | 75f3378e79e5fcb97984b6c1edbeea7dd22f7ffb | [] | no_license | wilmer-rodriguez-r/LibraryComplexVectors | 36e5fc8bb19219cee3db327ace7c2406c61aead3 | 9fa83a829aaeb1e869376e4000389cf9b2ca941f | refs/heads/master | 2023-03-02T17:04:03.423077 | 2021-02-09T15:07:34 | 2021-02-09T15:07:34 | 336,027,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,704 | py | # Librería de funciones para vectores y matrices complejos
import numpy as np
def auxiliar(matriz_vector):
# función que corrobora si es una matriz o un arreglo devolviendo la cantidad de columnas de este
try:
column = len(matriz_vector[0])
return column
except TypeError:
column = 1
... | [
"wilmer.rodriguez-r@mail.escuelaing.edu.co"
] | wilmer.rodriguez-r@mail.escuelaing.edu.co |
79f4e2ff02c9db62970001cd7f0a7386496d11e2 | e8ea8326756378702052f5a785fab02e92abb21f | /Bluebook/Data/preprocess.py | 9f07a132942a8c356a14b0de37f030f0fc828ee7 | [] | no_license | zyx061212/Kaggle | a6111464b3acf9e276a98844f65cd27852619f44 | 6051051882d41ea1bcb6930a9d1a9d0525fc869a | refs/heads/master | 2020-03-26T15:48:59.545030 | 2015-02-23T22:23:35 | 2015-02-23T22:23:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | #!/usr/bin/env python
import util
from collections import defaultdict
import numpy as np
import pandas as pd
import csv_io
import math
def get_date_dataframe(date_column):
return pd.DataFrame({
"SaleYear": [d.year for d in date_column],
"SaleMonth": [d.month for d in date_column],
"SaleDay": [d.d... | [
"mb16@hood.edu"
] | mb16@hood.edu |
ee27313bde085575df70e1d42550c376748fe931 | 08a9dc04e6defa9dc9378bfbfbe0b6185af6a86a | /manager/views.py | 78b92fee93ead9c43d6d958d58f90642c7277c7f | [] | no_license | Felicity-jt/50.008-Project-1 | 8ecc63d2302b2eaa4060f4c900d7fed2e958927c | 960b5e57a39bfda1c31653798c23ddc051a2ff19 | refs/heads/master | 2021-08-24T00:40:27.886634 | 2017-12-07T09:14:12 | 2017-12-07T09:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,191 | py | from json import loads
from django.http import Http404
from django.shortcuts import render
from django.core.exceptions import PermissionDenied
from django.views.decorators.http import require_POST
from common.db import sql, page
from common.utils import pagination
from common.messages import NOT_STAFF
from common.dec... | [
"kwokshungit@gmail.com"
] | kwokshungit@gmail.com |
2db64ec71071efedc4af263b7ea7732384d88f4b | 25795fef5bc22080645b8e549da924cb7025526f | /app/forms.py | 4d2f3b6ae9d04ec86f7da110268f4c6cf9b3152d | [] | no_license | ryanermita/best-route | a0a68c4c9572ce73161109f198e301aaa307aab1 | 3480fd356e20d27cdd85397fea5960f4e69b4c44 | refs/heads/master | 2021-01-18T14:59:01.940788 | 2013-12-21T03:43:59 | 2013-12-21T03:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 760 | py | from flask_wtf import Form
from wtforms import TextField, TextAreaField
from wtforms.validators import DataRequired
class SearchForm(Form):
departure_place = TextField('departure_place', validators = [DataRequired()])
destination_place = TextField('destination_place', validators = [DataRequired()])
class SignUpForm... | [
"ryanermita@gmail.com"
] | ryanermita@gmail.com |
1247de660c728a5f32d9fabdfa9b10b2947e596d | 3a9cee71d23cfa7176e29beb9a9e509674c0bfd9 | /6.2.0_201312041840_apitraderapi_linux64/test3/test4/scanConf.py | ecb31285adb61571a54465ea5e8bb06730d53a71 | [] | no_license | fuckfuckfuckfuck/download | 4041fba8de20a267aa001e363a005098bb93fb0e | e67c22dab648f9bc1ebca444785401f63f0cc2dc | refs/heads/master | 2021-01-10T11:11:10.708805 | 2015-12-05T13:18:52 | 2015-12-05T13:18:52 | 47,456,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | import sys
import re
#~ config = {
#~ 'user' : 'botel',
#~ 'password': '12345678',
#~ 'database' : 'mktinfo',
#~ 'host' : 'rdsryfjb2vqrni2.mysql.rds.aliyuncs.com',
#~ 'charset' : 'utf8',
#~ 'raise_on_warnings' : True
#~ }
Handler = {
'user' : str,
'password' : str,
'database' : st... | [
"wchongyang@foxmail.com"
] | wchongyang@foxmail.com |
dc5c45a0d9c44cc2b7f3bb35d23198d69dbd715b | e73430ff79c2d9325037bd07d0dbdf9cc7c93d84 | /main.py | 96f07d51325003fb5c336ddcad218beaa913f938 | [] | no_license | GianBkk/python_les3_syntra | 8232b6773f6d82ff819c1a6a9823d21cd471a5b0 | 1abb1c57c862fbc29d1a1b7245ede151e24b15f2 | refs/heads/master | 2023-07-10T23:32:59.059183 | 2021-08-20T22:38:45 | 2021-08-20T22:38:45 | 398,345,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | # Hello Word
print('Hello World7') | [
"gian200308@gmail.com"
] | gian200308@gmail.com |
bfa4051b7daa99e35be4c69d94d185b37ba84f1b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_035/ch37_2020_03_25_14_04_04_120072.py | a165e2f3c23563f7b30d6684819d8aca366bc2cd | [] | 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 | 174 | py | Senha = True
resposta = input("Qual é a senha")
while Senha:
if resposta=="desisto":
Senha = False
else:
Senha = True
return resposta
print("Você acertou a senha!") | [
"you@example.com"
] | you@example.com |
dc2cf902fa9faa242b7a3024eb996183b816db91 | e48bc8299aa342a74edf09945fac10f812130604 | /www/transwarp/web.py | 4e20b8e6d16fb71c05e55ca8baeab9c140d4ab96 | [] | no_license | zhongsihang/blog-python-app | af4be1221baccf501e91e3dc7e39e3a0abdb2b21 | bc5eb1bef4298ff4ceff7d3aafc4d235651a27ab | refs/heads/master | 2021-01-21T01:34:58.196036 | 2015-09-18T06:22:36 | 2015-09-18T06:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,867 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
这是一个简单的, 轻量级的, WSGI兼容(Web Server Gateway Interface)的web 框架
WSGI概要:
工作方式: WSGI server -----> WSGI 处理函数
作用:将HTTP原始的请求、解析、响应 这些交给WSGI server 完成,
让我们专心用Python编写Web业务,也就是 WSGI 处理函数
所以WSGI 是HTTP的一种高级封装。
例子:
def application(environ, sta... | [
"719118794@qq.com"
] | 719118794@qq.com |
e20f6bd63d39fd455755dbb515cb9dc5635e3808 | a552f40c687d7e11e4c90350339286bd636f14ec | /mpproj/mpproj/wsgi.py | 8c796e81e3d6e6bfa02bc2d7a6fabf4f39a2df7f | [
"Apache-2.0"
] | permissive | rankrh/MountainProject | 26e851bf266ba488f98f798c8f6d0030f439cac1 | 0e89e64ea15b09cbd3845ad9579fe8434a1f02c0 | refs/heads/master | 2021-06-24T19:58:51.511835 | 2020-11-20T01:30:51 | 2020-11-20T01:30:51 | 162,328,722 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for mpproj 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"rankrh@gmail.com"
] | rankrh@gmail.com |
d2989e04adcb61408d61d1acff049248324876bf | 7892e5cad76cb0de81dd4d2962b865d749111f2d | /pyFTS/sfts.py | 656514329a9843578d4d13744a872a2ee9252951 | [] | no_license | cseveriano/solarenergyforecasting | 5c70932d5168c12242efe41c85d183a41be71abf | b61fe76a4f7fc5863448b35881e01e1ccdb2dedd | refs/heads/master | 2021-01-11T20:31:45.533149 | 2017-02-02T13:13:06 | 2017-02-02T13:13:06 | 79,134,373 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | import numpy as np
from pyFTS.common import FuzzySet,FLR
import fts
class SeasonalFLRG(fts.FTS):
def __init__(self, seasonality):
self.LHS = seasonality
self.RHS = []
def append(self, c):
self.RHS.append(c)
def __str__(self):
tmp = str(self.LHS) + " -> "
tmp2 = ""... | [
"carlossjr@gmail.com"
] | carlossjr@gmail.com |
a37479b83e3e6ebdfa280a2339adbc632b8a3439 | 2611d6ab0963ba5da8cec69559a6ad4b7efb92d9 | /emojisss.py | f95a3d4789d4e416f67fe803c0f0d48a4f73054b | [] | no_license | myke-oliveira/curso-em-video-python3 | f4108eebc8dc5fde1574dc2a8ab0f6eff7650e5d | 97dc244ff50720190a134a1eb2fef9f8b43cdae3 | refs/heads/master | 2021-05-12T11:34:28.036631 | 2018-01-16T19:28:44 | 2018-01-16T19:28:44 | 117,392,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | import emoji
print(emoji.emojize(':thumbs_up_sign:')) | [
"mykeapo@gmail.com"
] | mykeapo@gmail.com |
b6a99fdefc842c281a110c3f4728fbd2907c0806 | eb011bbc2e7f572d10b29c78f417645fc9eef247 | /deepchem/models/torch_models/pagtn.py | 340ac011ec73de75afa60a169fa6ce822d899dd0 | [
"MIT"
] | permissive | tianqin91/deepchem | 1cc81310101e5ac4e9886db6ad97820a54bba61f | 9c36987f735af3ebf602247ddf06c575ede85d44 | refs/heads/master | 2021-08-02T07:55:41.828374 | 2021-07-29T19:02:47 | 2021-07-29T19:02:47 | 191,236,748 | 0 | 0 | MIT | 2019-06-10T19:57:40 | 2019-06-10T19:57:40 | null | UTF-8 | Python | false | false | 10,834 | py | """
DGL-based PAGTN for graph property prediction.
"""
import torch.nn as nn
import torch.nn.functional as F
from deepchem.models.losses import Loss, L2Loss, SparseSoftmaxCrossEntropy
from deepchem.models.torch_models.torch_model import TorchModel
class Pagtn(nn.Module):
"""Model for Graph Property Prediction
T... | [
"mvenkataraman@ph.iitr.ac.in"
] | mvenkataraman@ph.iitr.ac.in |
64facd39145200dcd135636db0dd618f2d8a637a | b62dfe6d3049ea7fc7488d5dddce5a7fc968cc73 | /venv/bin/pip | 768260327e139dbb09ab6fd61c27320a344ee4ce | [] | no_license | jiwenyu0531/MyAI | 9764299498abbe742e3b7112acdb6fc6d4802adf | 15808c3bcce8e861690039e0a2bc7819c12c6743 | refs/heads/master | 2020-03-28T19:44:27.717510 | 2018-09-16T14:46:10 | 2018-09-16T14:46:10 | 149,005,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | #!/Users/jiwenyu/PycharmProjects/MyAI/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.ex... | [
"jiwenyu0531@qq.com"
] | jiwenyu0531@qq.com | |
cc43cf0ec8d3d75f01f17a65aa8ee501efb3738b | 6d08b4d926519dbb47b45addc53cd92f5f75e569 | /app.py | 799df4c64b398e9bacee9edcd9e21d237bd2a496 | [] | no_license | elieu17/bellybuttonhmwk | f09daf2f381c9a23ce3b686e89d9d639d8a459ca | 4a8439667aff6ec36a83e50af278c5546b797d77 | refs/heads/master | 2020-04-29T08:57:08.234124 | 2019-04-17T22:57:35 | 2019-04-17T22:57:35 | 176,005,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,886 | py | import os
import pandas as pd
import numpy as np
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine
from flask import Flask, jsonify, render_template
from flask_sqlalchemy import SQLAlchemy
app = Flask(__name__)
################... | [
"noreply@github.com"
] | noreply@github.com |
99f477ff8ee5eee19b30adddfcaa704802c97c42 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/Floobits-flootty/allPythonContent.py | 233f4eda6ac3b66566c18b3214288161442dcb88 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,459 | py | __FILENAME__ = api
import sys
import base64
import json
try:
from urllib.request import Request, urlopen
assert Request and urlopen
except ImportError:
from urllib2 import Request, urlopen
try:
from . import shared as G, utils
assert G and utils
except (ImportError, ValueError):
... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
75470a97bd504c9d4dc72ff45e08c475eb574228 | 921e109a719351ac053f33fccacb55e9b54bbee1 | /courses/admin.py | 5002e52cdf17036a60919ea3e27033b02d16451d | [
"MIT"
] | permissive | deboraazevedo/udemy-free-courses | a49db24b89ca7a10444fbd8551d2800347ee4c25 | 6365321de0ed1c8521e1db96a63d17a06e056e4b | refs/heads/master | 2021-06-25T23:04:45.749555 | 2018-02-27T23:48:26 | 2018-02-27T23:48:26 | 123,203,654 | 1 | 2 | MIT | 2020-10-04T09:44:06 | 2018-02-27T23:58:27 | Python | UTF-8 | Python | false | false | 90 | py | from django.contrib import admin
from .models import Course
admin.site.register(Course)
| [
"contato.hudsonbrendon@gmail.com"
] | contato.hudsonbrendon@gmail.com |
9269612b5c1989fb509e058f4f2198d446452df2 | 63f783b298c90d8c71d49be208172bd201e4cbca | /manage.py | fb2c235c6d28e1a55533132eed856d3ae6bffdb3 | [
"MIT"
] | permissive | dbobbgit/recipebox | 58c41b1d89befc60cf4d5b7834b59d02d2dcf227 | 8e4e5c6f609e2524726954c9382ca37e844721f9 | refs/heads/main | 2023-05-26T00:56:38.292455 | 2021-06-09T14:11:46 | 2021-06-09T14:11:46 | 375,378,400 | 0 | 0 | MIT | 2021-06-09T14:11:47 | 2021-06-09T14:10:06 | Python | UTF-8 | Python | false | false | 665 | 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', 'recipebox.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"danielle@oakandivymedia.com"
] | danielle@oakandivymedia.com |
511fe8b79650e5129209a33e6c7d768af423c6e6 | 2a1f4c4900693c093b2fcf4f84efa60650ef1424 | /py/dome/backend/apps.py | fc8e9e1db58cfc9dbc955eb7df36461f862fe2b5 | [
"BSD-3-Clause"
] | permissive | bridder/factory | b925f494303728fa95017d1ba3ff40ac5cf6a2fd | a1b0fccd68987d8cd9c89710adc3c04b868347ec | refs/heads/master | 2023-08-10T18:51:08.988858 | 2021-09-21T03:25:28 | 2021-09-21T03:25:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import unicode_literals
from django.apps import AppConfig
class BackendConfig(AppConfig):
name = 'backend'
| [
"chrome-bot@chromium.org"
] | chrome-bot@chromium.org |
cb5e4cf9e89b4161efe98de831afd47a6290f0db | 1c8a05b18d1e895a99e92c9d9d48f30296342a76 | /2. socket通信.py | 98e28c13d8edce629a2e35f4eaa157199c53bdfa | [] | no_license | codingtruman/socket-UDP | 1190bbd1a5055bf6461d6cb2b499a81e234760f0 | 6b4e9839b14571f6472f6fc7b37514c31f353789 | refs/heads/master | 2023-01-04T18:38:37.356220 | 2020-11-04T01:20:21 | 2020-11-04T01:20:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | from socket import *
# 创建TCP socket
tcpSocket = socket(AF_INET, SOCK_STREAM)
print('TCP socket created')
# 设置地址,端口和要发送的数据
sendAddr = ('192.168.0.19', 3306)
# 如果此处没写b,下面使用sendData时要变成sendData.encode('utf-8')
sendData = b'ok, tcp'
# 连接服务器和发送
# tcpSocket.connect(sendAddr)
# tcpSocket.send(sendData)
# 关闭socket
tcpSocket.c... | [
"maplewong04@gmail.com"
] | maplewong04@gmail.com |
9d0d9428ad332411b938df93cd900f02fefc493a | f921b215086d6556885da0c50b68e4de861216ac | /src/helpers/operations.py | b533530fbdc6a9316593c2f4f7a1a166640e31d8 | [] | no_license | tonaflcastelan/prueba-ing-backend | afee173d31d78139306a38a55d4e98f219281068 | 7c114be5e4c59c0e2b0fd3775ba237ac94e6f4a4 | refs/heads/master | 2022-12-03T23:58:36.924155 | 2020-08-04T00:17:54 | 2020-08-04T00:17:54 | 284,596,408 | 0 | 0 | null | 2020-08-03T03:42:34 | 2020-08-03T03:42:33 | null | UTF-8 | Python | false | false | 241 | py | def get_average(value1, value2) -> float:
"""
Get average
"""
return (value1 + value2) / 2
def get_percent(dividend, divider) -> float:
"""
Get percent
"""
return round((float(dividend / divider)), 2) * 100
| [
"tona.castelan16@gmail.com"
] | tona.castelan16@gmail.com |
091a0e98da2ac80625b44ff0b4fd86db82597c27 | 0e50b69d115d90eccec55b7049e5d8f5ee438ba3 | /brabbl/accounts/migrations/0013_user_image.py | 6b2bb515e6d0afc8c80631c7a3cc8641dcf7ed27 | [] | no_license | strader07/brabbl-backend-django | bd7a5d3e328e3ff975e450e9fd8de933b2a3992c | 795113ee7e1c3d7ed3b093f8c9435777a29bfd10 | refs/heads/master | 2023-05-15T05:31:51.422840 | 2021-06-04T16:12:23 | 2021-06-04T16:12:23 | 373,679,407 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0012_auto_20160308_1500'),
]
operations = [
migrations.AddField(
model_name='user',
name... | [
"v7sion@topdogtek.com"
] | v7sion@topdogtek.com |
c55382d209d32058d1850a42aceb160d7068f6a1 | 9a65cdc78a860ecc176985860f2d02a841b72ef2 | /editors/vinegar.py | bef3383bb94eb863957f44686bc9bb7a51fb3207 | [] | no_license | akanevs/dsp | 4da0354c78b8c0b33bce94af471d3d65ef3e7c0c | 7e97f2fbfdfd0a6647affcd74303ee8e4a30bde6 | refs/heads/master | 2021-01-22T18:15:30.340275 | 2017-09-18T02:26:01 | 2017-09-18T02:26:01 | 100,755,288 | 0 | 0 | null | 2017-08-18T22:42:07 | 2017-08-18T22:42:07 | null | UTF-8 | Python | false | false | 123 | py | print('This is not my first or even second file created using vim')
print('This was was created by Alex in Millburn, NJ!')
| [
"noreply@github.com"
] | noreply@github.com |
719fe210dc977586a94742653b7a84094eb6aa0d | 68ff38f2dd0188909737b395ac227ec0e205d024 | /Project-2/src/UtilsModule.py | d2d03210a398be119b8953bc2db5d6cfbc88b347 | [] | no_license | kushagraThapar/Data-Mining | 7c3992c5efe820185e5197c8098168ae92e68cf9 | 658f3fdc8c4ea91d717cb36d5504d5e1fb803960 | refs/heads/master | 2021-01-18T15:40:23.412283 | 2017-01-29T08:49:04 | 2017-01-29T08:49:04 | 68,418,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | import sys
def write_file(filename, text):
try:
f = open(filename, "w")
f.write(text)
f.close()
except IOError:
print("IOError occurred in file [" + filename + "]")
exit_program()
return
def read_file(filename):
try:
f = open(filename, "rU")
te... | [
"kthapa2@uic.edu"
] | kthapa2@uic.edu |
52b11a09076f3904dc2f45e1e998edf62a885d87 | aae0432eede626a0ac39ff6d81234e82f8d678c2 | /leetcode/algorithm/4.median-of-two-sorted-arrays.py | 63670a63bf49ee10613895df33ff3b9ae3388fc8 | [] | no_license | KIDJourney/algorithm | 81c00186a6dfdc278df513d25fad75c78eb1bf68 | e1cf8e12050b9f1419a734ff93f9c626fc10bfe0 | refs/heads/master | 2022-11-24T09:30:16.692316 | 2022-11-06T09:33:51 | 2022-11-06T09:33:51 | 40,428,125 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | #
# @lc app=leetcode id=4 lang=python3
#
# [4] Median of Two Sorted Arrays
#
# @lc code=start
class Solution:
def findMedianSortedArrays(self, nums1, nums2) -> float:
return self.easy(nums1, nums2)
def easy(self, nums1, nums2):
result = []
idx1, idx2 = 0, 0
while True:
... | [
"kingdeadfish@qq.com"
] | kingdeadfish@qq.com |
9532029f8f9affb83b76eb28c4c4b4ce1d9c037f | bf3d802cf7b75ab84fc0bfae125d9b0cc1aed1e4 | /API/manager/salt.py | c39acfedaf0ef0d82652fed0385c66ddd4be0276 | [] | no_license | AlesKas/BAK | cf93c6b2a7475139bbfc8833e811264efcf0d8ff | 56f4ac00a523c4ac02da0b7e33590d0b3dd2b190 | refs/heads/master | 2023-04-21T10:46:44.359788 | 2021-05-12T14:17:40 | 2021-05-12T14:17:40 | 197,364,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | import json
from utils.logger import initLogging
from .base import GetRequest, BaseException
from utils.db.model import NtwSalt
from peewee import DoesNotExist
LOGGER = initLogging()
class Salt(GetRequest):
@classmethod
def handle_get(cls, **kwargs):
salt = NtwSalt.get().salt
response = ... | [
"akaspare@redhat.com"
] | akaspare@redhat.com |
82f5cd9bfe71e1f9c34be4f1d8c1789d269f969b | 61267e7bb146e67d7ce5b81ef8c6fb32cdb1088e | /apps/forums/migrations/0002_auto_20190408_2007.py | b928de461230382f7b0e27ca992d15780a476ae9 | [] | no_license | xiaoyaochen/ACshare | 8f7e294724d90925f9fb80799c9fbd3680c01057 | 482985231e0e6d8632c8504a30f994ba246a060a | refs/heads/master | 2020-05-07T11:57:43.663344 | 2019-04-20T14:55:55 | 2019-04-20T14:55:55 | 180,483,088 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | # Generated by Django 2.0 on 2019-04-08 20:07
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('forums', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='forumscomment',
old_name='reviewer',
... | [
"1595029296@qq.com"
] | 1595029296@qq.com |
e56f0bd33da3d74267fd6ab2971ead15aa9263b8 | 1c488f486d14c19e19af1a46474af224498be193 | /experimental/serengeti/blankIBCC.py | 649a35a733279dc7605d90eb8296b4e245101794 | [
"Apache-2.0"
] | permissive | JiaminXuan/aggregation | fc2117494372428adeed85a9a413e2ff47244664 | 9a7ecbc2d4b143a73e48b1826b3727b6976fa770 | refs/heads/master | 2020-12-11T01:49:42.977664 | 2015-05-22T16:21:15 | 2015-05-22T16:21:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,087 | py | #!/usr/bin/env python
__author__ = 'greghines'
import numpy as np
import matplotlib.pyplot as plt
import csv
import sys
import os
import pymongo
import matplotlib.cbook as cbook
sys.path.append("/home/greg/github/pyIBCC/python")
import ibcc
client = pymongo.MongoClient()
db = client['serengeti_2014-07-28']
collecti... | [
"greg@zooniverse.org"
] | greg@zooniverse.org |
b217f0ad3fe6dbfaa9f4171e6b8a876290441a13 | b80ab06996845b63d78158e9713e4f1ad7229ee7 | /main.py | e14d58e06f9e5dcfadc2df6bf0025c32e3c3c5c5 | [] | no_license | Pepega123/tracker | 1bd96244a1d65f06292e20a3a81e07c86d70ba65 | ad639d19cd1657d06e04afb32e91979603afd88f | refs/heads/master | 2022-09-10T22:16:36.226686 | 2020-06-05T12:04:30 | 2020-06-05T12:04:30 | 269,622,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,171 | py | import datetime
import hashlib
import logging
import os
import psutil
import psycopg2
import time
import atexit
from db import *
logger = logging.getLogger('tracker')
logger.setLevel(logging.DEBUG)
TOTAL_MINUTES = 0
NEW_DAY = False
START_TIME = 0
CURRENT_DATE = datetime.date.today()
CONN = psycopg2.... | [
"noreply@github.com"
] | noreply@github.com |
2baf8dc9a7b2bfb654cb56694bc8420624a2c939 | 7cb5a8a08d21f2e4ae2b5b0de3cd53b1074f772c | /aws_django/webproj/homepage/views.py | 67a0fd3691812ad271e7c1d06af89b09fdcee0ac | [] | no_license | KDT-Hot6/Coogle | 29d8778f8510dd14cc10dd7de8f11aab9cfe1e46 | 9dd742a022f209215df650f016f06bb2cbb0d3b9 | refs/heads/main | 2023-05-04T23:51:09.554583 | 2021-05-30T07:15:03 | 2021-05-30T07:15:03 | 353,909,037 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,005 | py | from django.shortcuts import render
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from elasticsearch import Elasticsearch
from sentence_transformers import SentenceTransformer, util
import numpy as np
import json
import re
# Cr... | [
"kbh122369@gmail.com"
] | kbh122369@gmail.com |
b68ab3cba51f473017a3cad5f4f2bf14b108ee1f | 0aa0f63e54368583f0aa9d5df6def2a2abffc029 | /13-Intro-to-Trees-master/pitchscrape/reviews/settings.py | f209def26a7ae16bd9761691042759fd13303b87 | [] | no_license | abendm/Pandas-Stuff | d9c13e3cd2ff5f0a210aed83fed3cc0531b590b9 | f623d42100e53602ece47f079cb6b80288fbef55 | refs/heads/master | 2020-03-24T04:32:05.350498 | 2018-09-21T17:25:07 | 2018-09-21T17:25:07 | 142,456,361 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | # -*- coding: utf-8 -*-
# Scrapy settings for reviews project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/topic... | [
"abendm@gmail.com"
] | abendm@gmail.com |
de68899e48dd15c7bcd79c0be0f42079daac4b5c | 05b9797a76bf0ee17f3d6ef812e5dd2a186a17fa | /jogo/models/conta.py | ab32d99b26083355e15848f3edf07d53d93b7565 | [] | no_license | renatoaloi/desafio-jogo | e9b99d39ad46bfeca006297d492615782e008179 | c2bb464f17132df2ece18e99d5bb35a767dfaa53 | refs/heads/main | 2023-03-06T20:57:29.912528 | 2021-02-22T15:34:53 | 2021-02-22T15:34:53 | 341,075,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 593 | py | from sqlalchemy import Column, Integer, String, Float, ForeignKey
from jogo.dao.database import Base
class Conta(Base):
__tablename__ = 'conta'
id = Column(Integer, primary_key=True)
jogo_id = Column(Integer, ForeignKey('jogo.id'), nullable=False)
jogador_id = Column(Integer, ForeignKey('jogador.id'),... | [
"renato.aloi@gmail.com"
] | renato.aloi@gmail.com |
395c2604b50278ae902f02181ae78d04c84bb3d9 | 23acc2a4c8ad278d998cde78eb2340bc138844de | /alibaba_scrawl/listen.py | ec93c236eb4a877cbf9570a6e3b9a5f763bef6ed | [] | no_license | jorliang/pthion_basic_learning | f915b137abd9116819cd0692d5d859285d68616c | 425e01b322324947c93cfc9c345cfc2bafb492fe | refs/heads/master | 2022-12-12T18:29:13.250193 | 2022-12-03T01:42:51 | 2022-12-03T01:42:51 | 175,117,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | import winsound
import win32com.client
import time
import speech
# speak_out = win32com.client.Dispatch('SAPI.SPVOICE')
# speak_out = win32com.client.Dispatch('Word.Application')
# def speak(str):
# print(str)
# speak_out.Speak(str)
# winsound.PlaySound(str,winsound.SND_ASYNC)
#
#
# ak='簡単'
# time.sleep(... | [
"liangjiao@imagingdynamics.com"
] | liangjiao@imagingdynamics.com |
cd2694476723a2181a5d941f4cd30cf0eec0d1b6 | 035df9fcfd3737dbb18c804c7c396b5f94bed435 | /WatershedFermeture/watershed/Watershed - femeture.py | 1ae445772cdcc995e3d744876151f5ea11d20d4b | [] | no_license | ASTAugustin/IMA_P1_Projet | 01d93759eaa8c180ec809de7e6359b9e3249061d | d48bc5b3d3f12acde0a1f2cee0ff6b1dcb4f197c | refs/heads/master | 2020-07-30T09:11:55.913404 | 2019-11-05T10:08:38 | 2019-11-05T10:08:38 | 210,168,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,475 | py | import numpy as np
from collections import deque
import cv2
# Implementation of:
# Pierre Soille, Luc M. Vincent, "Determining watersheds in digital pictures via
# flooding simulations", Proc. SPIE 1360, Visual Communications and Image Processing
# '90: Fifth in a Series, (1 September 1990); doi: 10.1117/12.24211;
... | [
"celestine_jinyi@163.com"
] | celestine_jinyi@163.com |
dd86851e1b6b44d25f0a1e670ee136136ddee155 | 71f894d99a5e3118bc1d53953b22eb1f3097a679 | /LkCRM/LkCRM/wsgi.py | 31588500062e9ed1070e86b2092bad28ab2f7a5d | [] | no_license | kevinliu007/CRM | 081db5c942a97952b82598e7046747d820abe12f | 84ce7d41dddac428cc41367f4888ada6bc972d55 | refs/heads/master | 2020-09-14T07:35:01.883726 | 2019-07-11T15:06:46 | 2019-07-11T15:06:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for LkCRM 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/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"caixiaobai@caixiaobai.com"
] | caixiaobai@caixiaobai.com |
4f21bdabf36e65773d6c9289dad471ce6aa16e31 | 178ae62be7de20a50f96361e80bdcff5a5493ae2 | /koica/templatetags/koica.py | 36b3a706fcb6f684e4f9896f13b5cc8b25353d75 | [
"MIT"
] | permissive | synw/django-koica | a043800c15fad69f2024557e62fcf0ac4808ffae | d8b1c9fa70c428f0aa0db0c523524e9d2ef27377 | refs/heads/master | 2021-01-10T03:15:24.570691 | 2015-12-09T14:55:29 | 2015-12-09T14:55:29 | 46,188,691 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from django import template
from koica.utils import sanitize_html
register = template.Library()
@register.filter(is_safe=True)
def remove_pre(value):
return sanitize_html(value, remove_pre=True) | [
"synwe@yahoo.fr"
] | synwe@yahoo.fr |
9202483cde896d82ddfe2dbd4a5a205224bd657e | 8c8eaf2a82d74d9652fbe23e23b0f5856a947e7e | /tokens/models.py | 6fc0c00181648dcf65eb4b1f0060c3ce5fc4f7a9 | [] | no_license | CallistoNetwork/Galileo-Backend | 2cb0c1dbe20f43a56cab566ee77338cc68f8fda8 | beec34cc9e480b49b6efbe0bd1cd19ddcfcb8340 | refs/heads/master | 2020-04-03T02:29:00.910607 | 2019-01-27T21:12:07 | 2019-01-27T21:12:07 | 151,890,661 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | from django.db import models
from explorer.models import TimeStampModel
class Token(TimeStampModel):
"""
* name -> Name of token | String | optional
* symbol -> Trading symbol | String | optional
* total_supply -> The total supply if the token | Decimal | optional
* decimals -> Number of decimal ... | [
"gollum23@gmail.com"
] | gollum23@gmail.com |
15e3cb84a94201fa536f06f31f13a17e5a8b6dfb | 5f809898a9f153d8645205aa601b2b3083beafa1 | /krrThomas/searchStat/plot_structs_near_best.py | e0263c56ba0312ee7915e88edc7e6a07acbb6a67 | [] | no_license | MaltheBisbo/learningForces | ea1b258e115327e1e0876a60345366f349afb1ac | 7a726a5931454534585563dd607faf75c5d706c6 | refs/heads/master | 2021-01-23T22:31:02.654738 | 2018-12-25T21:48:54 | 2018-12-25T21:48:54 | 102,938,949 | 0 | 0 | null | 2018-12-25T21:48:55 | 2017-09-09T08:22:29 | HTML | UTF-8 | Python | false | false | 2,410 | py | import numpy as np
from scipy.spatial.distance import euclidean
from scipy.spatial.distance import cdist
import matplotlib.pyplot as plt
from ase.io import read, write
from ase.visualize import view
from gaussComparator import gaussComparator
from featureCalculators_multi.angular_fingerprintFeature_cy import Angular... | [
"mkb@s81n11.grendel.cscaa.dk"
] | mkb@s81n11.grendel.cscaa.dk |
3fd8971af0057cfe6f9120d8654640df8c971099 | 99e76e9e4c8031418c4c50217b48adf1d880cf2f | /setup.py | 6974fdc5b21fd1b544eac798d4363569ad4198d7 | [
"MIT"
] | permissive | grow/grow-ext-responsive-styles | d75a5abb070613641e3da9f3f4cf7dc07e88c51f | bb3d8f68edc1f3e1bdf508bb5df8d5b296574e9b | refs/heads/master | 2021-01-03T14:04:15.882718 | 2020-05-20T20:38:09 | 2020-05-20T20:38:09 | 240,096,948 | 0 | 0 | MIT | 2020-05-20T20:34:58 | 2020-02-12T19:27:42 | HTML | UTF-8 | Python | false | false | 349 | py | from setuptools import setup
setup(
name='grow-ext-responsive-styles',
version='1.0.0',
zip_safe=False,
license='MIT',
author='Grow Authors',
author_email='hello@grow.io',
include_package_data=True,
packages=[
'responsive_styles',
],
package_data={
'responsive_s... | [
"jeremydw@gmail.com"
] | jeremydw@gmail.com |
f0350d9b871c404aac008aac028f9754e35939df | cdf14be1c33ad4dad24dfc4823443caf629e8787 | /reversi.py | fc9053bf0d31a6c6d2fd296fabaac28f20d53bb8 | [] | no_license | fhalambek/reversi | 541f63048d57e44bdf6510ca65184c889f3fcea4 | 47dad459b8bcd8fec62614865196a11a7e2d7e00 | refs/heads/master | 2021-09-07T15:06:00.695585 | 2018-02-24T15:49:01 | 2018-02-24T15:49:01 | 114,654,912 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35,116 | py | from tkinter import *
from time import sleep
from threading import Thread
from bot import easy, greedy, weighted
from os import replace, name
from _tkinter import TclError
pilImported = False
try:
from PIL import Image, ImageTk
pilImported = True
except ImportError:
try:
try:
... | [
"noreply@github.com"
] | noreply@github.com |
b3b85534011c46c43575a3576f1acb0d4bd933bd | dc939ac0e50b9a03ba1b24215415e628279fd17f | /mysite/congratulation/migrations/0003_auto_20150724_1413.py | 5abe0836e4055ba37f9680a5f827444fc4d0b156 | [] | no_license | RamiliaR/django | d3b3e084bb3a860a0d67e1e10cb5a844472b533b | 6fe2e0455578ea3c53365239d74c4274be0ee859 | refs/heads/master | 2021-01-10T18:50:07.143708 | 2015-08-20T18:00:58 | 2015-08-20T18:00:58 | 41,083,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 751 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('congratulation', '0002_auto_20150714_1310'),
]
operations = [
migrations.AddField(
model_name='customer',
... | [
"RamiliaNigmatullina@gmail.com"
] | RamiliaNigmatullina@gmail.com |
5a46605486c336baa1b97ab5f88da4b51e4a3852 | 4425cd9025e430735ad81cc09d126d0ce9929e07 | /order/api/serializers.py | 135e26fec2699d1787648ba38587774330d16a14 | [] | no_license | omkarrane/ecommerce-api | e7c611776977be0c753157fe9d2819f08bf86f78 | f1d11277571df9cadbba7c8f1d2892cf8895b43c | refs/heads/master | 2020-03-19T21:11:11.065801 | 2018-06-11T13:44:09 | 2018-06-11T13:44:09 | 136,931,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,058 | py | from django.contrib.contenttypes.models import ContentType
from django.contrib.auth import get_user_model
from django.db.models import Q
from django.contrib.sites.shortcuts import get_current_site
from django.utils.encoding import force_bytes, force_text
from django.utils.http import urlsafe_base64_encode, urlsafe_bas... | [
"omkarrane10@gmail.com"
] | omkarrane10@gmail.com |
f7675475bf4180ae4b05a6af1aebe4521077a136 | e131e752d826ae698e12e7bc0583362741f9d942 | /AWS.py | c886890f56cf208b48066e6c151d54611fc0b574 | [] | no_license | abalberchak/TouchFace | ba30565be91b848126524aa47377789253370e04 | d093ece8890b68c72e0855a024d908105df99b94 | refs/heads/master | 2021-01-11T01:43:35.067808 | 2016-09-29T03:41:13 | 2016-09-29T03:41:13 | 69,530,129 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | #----------------------------------------- Intent Schema Below:------------------------------
{
"intents": [
{
"intent": "AMAZON.ResumeIntent"
},
{
"intent": "AMAZON.PauseIntent"
},
{
"intent": "DojoInfoIntent"
},
{
... | [
"minhpn.org.ec@gmail.com"
] | minhpn.org.ec@gmail.com |
8e86bc7463a15ee8ba540cebbdc6dbebe01e0474 | 461d7bf019b9c7a90d15b3de05891291539933c9 | /bip_utils/bip39/bip39_entropy_generator.py | 47c75cf8f3c76ff3b2cb1f678605ec4780e1d6e9 | [
"MIT"
] | permissive | renauddahou/bip_utils | 5c21503c82644b57ddf56735841a21b6306a95fc | b04f9ef493a5b57983412c0ce460a9ca05ee1f50 | refs/heads/master | 2023-07-16T05:08:45.042084 | 2021-08-19T09:33:03 | 2021-08-19T09:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,419 | py | # Copyright (c) 2021 Emanuele Bellocchia
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | [
"54482000+ebellocchia@users.noreply.github.com"
] | 54482000+ebellocchia@users.noreply.github.com |
0389e54314c5db68c26748f6b8dc17cb73d58775 | fc2eb6f42183d7ca0142a039400548194130ff47 | /items.py | 23c16a8d8a825dcbafff96eb5e47f06777634b2e | [] | no_license | vinaygulani1/RealEstatePricePrediction | 5e3cf7ab5659f1f28a3cf81853fca2a42e4044ac | 8cb30eea4c10147b4dba69058620e092b06617a1 | refs/heads/master | 2021-01-10T01:27:21.865451 | 2015-11-20T08:15:18 | 2015-11-20T08:15:18 | 46,197,917 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class Property(scrapy.Item):
data_code = scrapy.Field()
latitude = scrapy.Field()
longtitude = scrapy.Field()
property_type = scrapy.Field()
address... | [
"vinay.gulani@relishly.com"
] | vinay.gulani@relishly.com |
3b9a743d044c3344202f2e666d176447cdb0156d | d8fa64b4176c8c434e8812faed51bc246e6794d7 | /pythoncode/homework_api/test_tag_manage.py | a36ea37af271617e587d652c840657a68702532f | [] | no_license | tanya931117/TestDev | 0103ff216af48d80811e81ac91756fdc878ef43d | 3eba391c1405238e6a7ccc267b1f3722364a0a5c | refs/heads/master | 2022-12-09T18:42:29.940915 | 2020-09-10T11:38:07 | 2020-09-10T11:38:07 | 270,223,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/8/8 13:27
# @Author : tanya
# @File : test_tag_manage.py
# @Software: PyCharm
import pytest
import yaml
from pythoncode.PO.contact_tag_api import ContactTagApi
from pythoncode.PO.we_work_api import WeWorkApi
@pytest.mark.usefixtures("start_case")
cl... | [
"tanya_li_931117@163.com"
] | tanya_li_931117@163.com |
19c119d0ed1fe30a4bd6eede46042eb475aa7159 | eb58d60b139300e99b4c5b0018e49a1b951d9b49 | /hw1/temp.py | 2c31d2677edfd1c2763e5a35b4ea2c2604b60b0f | [] | no_license | Vamanan/inf553 | 114e6186f5349da996fc18c00773fc1ecb799edd | b2b826d3d0e2939eeba12b4b8df3f6bbd2b673da | refs/heads/master | 2021-01-19T05:01:14.230363 | 2015-11-06T02:17:05 | 2015-11-06T02:17:05 | 42,913,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | import MapReduce
import sys
import re
"""
tf df Example in the Simple Python MapReduce Framework
"""
mr = MapReduce.MapReduce()
# =============================
# Do not modify above this line
def mapper(record):
# key: document identifier
# value: document contents
dname = record[0]
content = record... | [
"passmaster10@bitbucket.org"
] | passmaster10@bitbucket.org |
17ebad59e8fb8cac9e54303768189e0f854b5502 | e8fa6b783794bbd636d4ba815fd90390aabb4d73 | /integration/combination/test_state_machine_with_api.py | 20deaad43f516f96a4e5f315b5d52d5a729aa9ee | [
"MIT",
"Apache-2.0"
] | permissive | Skarlso/serverless-application-model | eb74d7dee11bf0a911e1e0dbb70bd03d4cbbbad7 | 172c832c053b3b5405dd4e85853386cc5a98841e | refs/heads/develop | 2023-08-21T09:24:32.577637 | 2022-10-28T23:14:59 | 2022-10-28T23:14:59 | 325,041,387 | 1 | 1 | Apache-2.0 | 2022-10-31T17:41:47 | 2020-12-28T15:01:05 | Python | UTF-8 | Python | false | false | 4,250 | py | from unittest.case import skipIf
from integration.helpers.base_test import BaseTest
from integration.helpers.common_api import get_policy_statements
from integration.helpers.resource import current_region_does_not_support
from integration.config.service_names import STATE_MACHINE_WITH_APIS
@skipIf(
current_regi... | [
"noreply@github.com"
] | noreply@github.com |
36a0dfc565c95c26b1822a0d3b66a4c426abe740 | f07a5976c336c738d00984945e62aec7054f6870 | /kore4.py | e71b96a4a91ccfccf82c9a18a7a8ec259a4088b4 | [] | no_license | snorey/lexical-tools | 8bca81e8b0231619ba9750c91f425b03ae652a01 | 3ab390885cb1b309a2727fdffe98efa3923e0db5 | refs/heads/master | 2021-01-24T00:44:20.052004 | 2018-02-24T22:22:20 | 2018-02-24T22:22:20 | 122,780,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,989 | py | import datetime
import os
import re
import time
import urllib
import urllib2
dirr="C:\\Code\\Naver"
def naverextract(text):
title=text.split("<title>")[1].split(":")[0].strip()
if "'" in title:
title=title.split("'")[1].split("'")[0].strip()
pieces=text.split('<SPAN class="EQUIV">')[1:]
pieces=[... | [
"noreply@github.com"
] | noreply@github.com |
c74987a27b063d67e8ce049ee6e834b52db5fe03 | c09b899e42e867e20993488e5f4e3d79c4eb779f | /movies/views.py | 1aa3c1ecd81aa00297a088047aaa610c2979330b | [] | no_license | JaycobDuffel/Vidly | 33913b50096ac8b1cd54bcc62c503287d1b11c47 | b0aa76e6e9634a7ab64b50652db941577567932a | refs/heads/master | 2022-12-23T14:26:34.360432 | 2020-10-07T02:37:18 | 2020-10-07T02:37:18 | 300,044,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from django.http import HttpResponse, Http404
from django.shortcuts import render, get_object_or_404
from .models import Movie
# Create your views here.
def index(request):
movies = Movie.objects.all()
return render(request, "movies/index.html", {"movies": movies})
def detail(request, movie_id):
movie = ... | [
"jbdcoding@gmail.com"
] | jbdcoding@gmail.com |
ed949aaf72486dd9f746cc86f1ee975b0529cb89 | 3bc7c8a96be2cf2b60f8c1757e71a980140bd43b | /bus_plotter.py | 91c2983b5b0cd903810a8fe00e57eba7302aea54 | [] | no_license | chrisjkuch/busdata | 98bff373efaacdd4cb6d1e618165d3de63296d69 | f68ba523191dbcb50d6ffaeb20c73e7fc6225c0e | refs/heads/master | 2020-12-31T06:56:27.346245 | 2017-05-17T03:15:27 | 2017-05-17T03:15:27 | 80,571,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,629 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 9 17:28:01 2016
@author: chris
"""
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.dates as md
import numpy as np
import datetime as dt
def dayTimeToDateTime(fltime):
hours = int(fltime * 24)
minutes = int(fltime * 24 * 60 - hours * 60)
... | [
"noreply@github.com"
] | noreply@github.com |
928fcb4241acb702ec2df763ded6e985a2e6fec8 | 8ff979eb571966fcd3a8a4ac359110945b21a471 | /ud120/ex01/ClassifyNB.py | cc4faeceb6d24854ce4a127805292bcd20862bcb | [] | no_license | ziriuz/udacity_learn | 4a1ad2f4f6ed3670321b431a6a8d35027b1cede3 | acdf479936368e0f5803fb0c1f004ee8a85fdbe1 | refs/heads/master | 2021-08-28T23:16:26.303069 | 2017-12-13T08:11:45 | 2017-12-13T08:11:45 | 113,209,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # import the sklearn module for GaussianNB
from sklearn.naive_bayes import GaussianNB
def classify(features_train, labels_train):
# create classifier
gnb = GaussianNB()
# fit the classifier on the training features and labels
cls = gnb.fit(features_train, labels_train)
# return the fit cl... | [
"noreply@github.com"
] | noreply@github.com |
394178ecf0b8ba5aa5f8ffac26bfc54459935fb5 | 812f7c3982f2525bc7c3013938f70ffdda4abe1e | /vehicles/admin.py | 875e37a21f750efb0d84da238affc5a7c39c522c | [] | no_license | roditashakya/ebooking | 7393aa651d2ddc979016000d62d6f44a3caddf57 | 3cdfe3a9b911835b4fcc32ae63e1e28983a4d6d9 | refs/heads/master | 2020-05-01T09:42:29.961770 | 2019-03-24T19:54:56 | 2019-03-24T19:54:56 | 177,406,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | from django.contrib import admin
# Register your models here.
from .models import SeatTemplate, TravelDetail, Vehicle, Booking, BookingUser, Seat, Schedule, Search
admin.site.register(SeatTemplate)
admin.site.register(TravelDetail)
admin.site.register(Vehicle)
admin.site.register(Booking)
admin.site.register(BookingU... | [
"rodishakya@gmail.com"
] | rodishakya@gmail.com |
af935ba661ffbdb6c3921e41c3c65c2ba9235ccd | 843d9f17acea5cfdcc5882cf8b46da82160c251c | /adafruit_stepper.py | 8e9319c17ea13b32312acbe50d018791ab2ea40a | [] | no_license | gunny26/raspberry | 7c1da63785c86412af9fa467ea231b19a97f4384 | e4eb0d2f537b319d41b6c50b59e69fb297c62d25 | refs/heads/master | 2016-09-06T14:02:30.122102 | 2014-01-29T16:31:08 | 2014-01-29T16:31:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,335 | py | import RPi.GPIO as GPIO
import time
GPIO.cleanup()
GPIO.setmode(GPIO.BCM)
enable_pin = 18
coil_A_1_pin = 4
coil_A_2_pin = 17
coil_B_1_pin = 23
coil_B_2_pin = 24
GPIO.setup(enable_pin, GPIO.OUT)
GPIO.setup(coil_A_1_pin, GPIO.OUT)
GPIO.setup(coil_A_2_pin, GPIO.OUT)
GPIO.setup(coil_B_1_pin, GPIO.OUT)
GPIO.setup(coil_B_... | [
"arthur.messner@gmail.com"
] | arthur.messner@gmail.com |
6e8d64feec1287a4b57e616953041d7efd2c6bc7 | 245a9680c18bb08b338b024e8cb61da899097cec | /gamestore/store/urls.py | 391ff5e89cf9119bd07a47ae7fdfcfa0e21e395f | [] | no_license | arnold1000/onlinestore | c5f2c003076d248cc18a3e2698c0e09cb4c0a18c | fe8a393a270dfb6cd32c0628385a0777d815f8e9 | refs/heads/master | 2021-09-22T23:19:15.736468 | 2020-02-20T10:04:50 | 2020-02-20T10:04:50 | 240,704,666 | 0 | 0 | null | 2020-02-15T12:58:46 | 2020-02-15T12:17:51 | JavaScript | UTF-8 | Python | false | false | 955 | py | from django.urls import include, path
from . import views
urlpatterns = [
path('', views.games, name='store-home'),
path(r'^activate/(?P<uidb64>[0-9A-Za-z_\-]+)/(?P<token>[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20})/$',
views.activate, name='activate'),
path('games/', views.games, name='games'),
path(... | [
"arttu.e.koponen@aalto.fi"
] | arttu.e.koponen@aalto.fi |
f0ebbd9f94e46663f17baf0ce5d22f3445f7b76f | b1a584df32c2d11a0648dec27e2f9cacd540a7f2 | /realtors/migrations/0001_initial.py | 22c019188655b19dcb1f7eae14c3d94742f64f7b | [] | no_license | sree61/Django_project_realestate | b822f65dff1ea03e3739208c66b8a5f559bce1c0 | 8da46343a0275f8cd13bd71ed74eee6e4efb003a | refs/heads/master | 2020-04-26T04:02:40.594223 | 2019-03-12T18:01:51 | 2019-03-12T18:01:51 | 173,288,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | # Generated by Django 2.1.7 on 2019-02-27 03:20
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Realtor',
fields=[
('id', m... | [
"sreeamaravila@gmmail.com"
] | sreeamaravila@gmmail.com |
f6f2eef9a2b17f09fa5e8751ab81ae99d47ae64e | e85a47a94e59f4c2feaec8aa635aa9d42e0edc00 | /django_project/urls.py | f03e6a43c2f71e2fc1f25d65ab2be1a55421f207 | [] | no_license | afAditya/Django_Blog | 1bf0e2949db03a6813db380c49cdca324cd7173b | 7662d4765a03b25814481edc5a189b97d6899b41 | refs/heads/master | 2023-02-17T03:58:49.091498 | 2021-01-20T18:18:51 | 2021-01-20T18:18:51 | 330,613,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,393 | py | """django_project 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')
Clas... | [
"adityasinghrajput971@gmail.com"
] | adityasinghrajput971@gmail.com |
630cda4283ce85c051de8920c72c86b1b92d2ca7 | a305456a1b6509437883bb3de8d0c3f2968694a1 | /apis/connect/auth.py | 55e8b22c76ffb214dbba1f656da60e331a09384f | [] | no_license | yoshow/tornado-quick-start | 6ebeeb87e09b5a9c357cdc2332c7d80fdaa96d06 | 6e00dd3a873e624c1a39cc5f94d47ddc1a366a00 | refs/heads/master | 2021-01-18T15:27:31.410263 | 2018-06-19T16:21:59 | 2018-06-19T16:21:59 | 86,654,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,223 | py | # -*- coding: utf-8 -*-
"""
OAuth 2.0
"""
import uuid
import json
from sqlalchemy import select, text
import x.data.orm
from x.web.apis import WebApiResponse
from models.membership import AccountInfo, MemberInfo
from models.connect import ConnectAuthorizationCodeInfo, ConnectAccessTokenInfo
class Auth(object):
... | [
"ruanyu@live.com"
] | ruanyu@live.com |
70b411ba66521bde662ff464e6ab782442fa0581 | 1508f7da93705839660e4fdfb87df7a9664bf087 | /a10API/a10API/flask/bin/migrate | bff34539b04e8d820b8b866d8ef3ee3bbc9995fb | [] | no_license | Younglu125/A10_Networks | 1a1ecebb28dd225f6a1f901a7c28350300df356d | 78a177ae4c8638d58dc873e4b1c589a1d5aaa717 | refs/heads/master | 2020-06-17T00:35:30.325740 | 2016-03-21T18:17:30 | 2016-03-21T18:17:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | #!/home/echou/a10API/flask/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'sqlalchemy-migrate==0.7.2','console_scripts','migrate'
__requires__ = 'sqlalchemy-migrate==0.7.2'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('sqlalchemy-migrate==0.7.2', 'con... | [
"info@pythonicneteng.com"
] | info@pythonicneteng.com | |
bee4f557d4eaf73b50b39fe6da8aff6cd3065efd | fc8ef4d310eaf76384cd1f29a45e65ffd1849a6b | /back-end/api/migrations/0004_article_source_name.py | 371ef4c62f6d991ee5521f8b6c4f6db3a7a673c5 | [] | no_license | mykola829/webl_lab_3_4 | 70c6c52e23962741971efc65a5a15aed5822059f | c47f09a03157e71687294b7a61863d775c6e95e2 | refs/heads/master | 2022-09-13T02:27:17.381772 | 2020-06-04T11:57:55 | 2020-06-04T11:57:55 | 268,151,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Generated by Django 3.0.6 on 2020-06-03 08:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0003_auto_20200603_1059'),
]
operations = [
migrations.AddField(
model_name='article',
name='source_name',
... | [
"mykola829@gmail.com"
] | mykola829@gmail.com |
5c578a84b20bd789b433432dfab0e9c7bdd67379 | b08a6adc56016a706d84752bcfb6d5bdf014f9fd | /easyocr/DBNet/assets/ops/dcn/functions/deform_pool.py | b4c9943cbc10212f1db23910dcafbd2a2d1b7435 | [
"Apache-2.0"
] | permissive | JaidedAI/EasyOCR | c83903d2f0ac2adfda89b35274e71a410f7d12e8 | f947eaa36a55adb306feac58966378e01cc67f85 | refs/heads/master | 2023-08-08T08:34:28.434530 | 2023-07-04T12:44:09 | 2023-07-04T12:44:09 | 247,266,215 | 20,057 | 2,937 | Apache-2.0 | 2023-09-12T22:16:00 | 2020-03-14T11:46:39 | Python | UTF-8 | Python | false | false | 5,953 | py | '''
Modified by Jaided AI
Released Date: 31/08/2022
Description:
- Add support for Deformable convolution operator on CPU for forward propagation.
- Change to Just-in-Time loading approach
'''
import os
import warnings
import torch
from torch.autograd import Function
from torch.utils import cpp_extension
# TODO - Jaid... | [
"rkcosmos@gmail.com"
] | rkcosmos@gmail.com |
3ad99e3d7e9841da8f65b2003210f661dc96df4a | 0296bc69a0d9608ed826ad7a719395f019df098f | /Tools/Compare_images.py | f4ba586d2dfa3fcae52e277676f2b4a82ffdf59a | [] | no_license | jcn16/Blender_HDRmap_render | c0486a77e04c5b41a6f75f123dbdb3d10c682367 | 50e6cdb79fef83081de9830e7105dd425a235a9e | refs/heads/main | 2023-07-19T22:22:53.622052 | 2021-08-20T06:29:10 | 2021-08-20T06:29:10 | 377,757,283 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | import cv2
import numpy as np
def tianchong(img):
m = img.shape[0]
n = img.shape[1]
append = int(np.ceil(abs(m - n) / 2))
if m > n:
constant = cv2.copyMakeBorder(img, 0, 0, append, append, cv2.BORDER_CONSTANT, value=(0, 0, 0))
else:
constant = cv2.copyMakeBorder(img, append, append... | [
"591599635@qq.com"
] | 591599635@qq.com |
db365ccaef28c337a5d9c69e8c10f082020063ee | c940bcb25e1ed315263b25cbdac49cc4bf92cac1 | /env/vkviewer/python/georef/georeferenceutils.py | 92de981594a95d6365cfb3fdb3f7e7f015ad83b1 | [] | no_license | kwaltr/vkviewer | 281a3f1b5b08a18a89f232ecd096cea44faca58b | 01d64df0a9266c65e0c3fb223e073ef384281bdc | refs/heads/master | 2021-01-16T22:09:41.821531 | 2014-02-07T17:19:04 | 2014-02-07T17:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,844 | py | '''
Created on Oct 15, 2013
@author: mendt
'''
import subprocess
""" function: parseYSize
@param - imageFile {String} - path to a image file
@return - {Integer} - value which represents the y size of the file
This function parse the x,y size of a given image file """
def parseXYSize(imageFile):
... | [
"jacobmendt@googlemail.com"
] | jacobmendt@googlemail.com |
a7072cf5db1b5527272336c6191bab4e1770b928 | c840f190b3540bf212de2c70563e57da278fa9cb | /hyacinth.py | 055e735da50162825883a5c29dfd69fcd0f7242d | [] | no_license | edelooff/hyacinth | b768a871d476dd120f7d2d1acb039a6a9ebf2e19 | 0a6dd15fa1b1357afa566f924ad27b744582464b | refs/heads/master | 2022-04-16T13:24:18.986246 | 2020-04-01T08:15:36 | 2020-04-01T08:15:36 | 251,756,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,538 | py | from collections import (
Counter,
defaultdict)
import random
import re
import sys
DESIGN = re.compile(r'''
(?P<design>[A-Z])
(?P<size>[SL])
(?P<flowers>(:?\d+[a-z])*) # The specification is fuzzy on 1+ or 0+
(?P<total>\d+)''', re.VERBOSE)
DESIGN_FLOWER = re.compile(r'''
(?P<count>\d+)
... | [
"elmer.delooff@gmail.com"
] | elmer.delooff@gmail.com |
9f3846001c1c354cfeae9bb360ec909db95dbc28 | 3105edcc2326ed9d49c408833268453a942ba474 | /web/modules/api/__init__.py | a164dbb5f0124fc34c059789ae5b31e2ac14489d | [] | no_license | cgle/sumopromo | 641e56a14654fbd9368f1653a0d5282726d3d533 | 1e395eaeeb44acaa23f2ffb63ad68b7ded0799cf | refs/heads/master | 2019-08-01T02:54:44.736669 | 2017-03-31T00:32:26 | 2017-03-31T00:32:26 | 75,031,942 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | from flask import Blueprint
bp = Blueprint('api', __name__)
from web.modules.api.views import *
| [
"cglehh@gmail.com"
] | cglehh@gmail.com |
70c1632fe562644b920d482abf735a3bc08211cc | 673d7a7b8c43523c459c661c2e360d4398a53b28 | /pip_upgrade-runner.py | c2d4d9070ba92561c8da342417040194fe860ecc | [
"MIT"
] | permissive | addisonElliott/pip_upgrade_outdated | 19e3c16c5f8910cb20c142842dc2a992fd8801b7 | 2cf809ff9be2ab4070b75f5959ebcf21d9d34d82 | refs/heads/master | 2020-04-09T19:03:26.602029 | 2019-01-15T16:29:57 | 2019-01-15T16:29:57 | 160,532,458 | 0 | 0 | MIT | 2018-12-05T14:43:44 | 2018-12-05T14:43:43 | null | UTF-8 | Python | false | false | 229 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Convenience wrapper for running pushover directly from source tree."""
from pip_upgrade_outdated.upgrade_pip_packages import main
if __name__ == '__main__':
main()
| [
"a.h.jaffe@gmail.com"
] | a.h.jaffe@gmail.com |
94d24bbab5fe5d3c8c83cd1748d41d53ea82f907 | 1f40d003bdba15086e0c2e7828398e3e8e6041e3 | /robotics/fileread.py | a9bd74f6e7dc443010797d5ad2675de000633796 | [] | no_license | qwertpas/pythontests | 0bb4982479f998625c0fd9d852df1ef66e3ada71 | 37fc2b253bf24d210364bacaf53f27347e9d29c1 | refs/heads/master | 2023-08-09T03:20:35.853236 | 2023-08-05T16:43:44 | 2023-08-05T16:43:44 | 177,456,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import collections as mc
import re
def extract_nums(text):
# text.replace('[', ' ')
# text.replace(']', ' ')
p = re.compile(r'\d+\.\d+') # Compile a pattern to capture float values
floats = [float(i) for i in p.findall(text)] # C... | [
"cyx3@illinois.edu"
] | cyx3@illinois.edu |
97c5e4d3a1702140c12048536f8ec60595290914 | b2be86ae60e9698a3daf78fdedacac631dd60cab | /django/user/tests/test_models.py | b0d94ce44fa3f235d6c64af4738666ba937c104d | [] | no_license | TigenTigen/do_you_know | 351326388bb1ae9caffed246b8fcdcb8ba7af594 | 0c6a5b001243fafa1b8382f89ec8bf7aef640f2e | refs/heads/master | 2020-06-13T13:26:29.402100 | 2019-08-07T06:27:37 | 2019-08-07T06:27:37 | 194,670,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,716 | py | from django.test import TestCase
from user.factories import AdvUserFactory
from user.models import AdvUser, signer, dt_engine, mail
from django.urls import reverse
class TestAdvUserModel(TestCase):
def test_str_for_user_created_by_factory(self):
user = AdvUserFactory(username='some_user')
self.asse... | [
"Eleriya-25@yandex.ru"
] | Eleriya-25@yandex.ru |
1ea1be419f42ba190fe16b9772f1ad7bd9ddae47 | afcb1837c0c50fd823964594780111d530a73f8e | /qtjsonschema/__main__.py | d267aee40ac8028b7f4edc49b45fb37004ea312c | [] | no_license | ArtemioGiovanni/pyqtschema | 332a60462db5ac2e113256c940b557d77e16c0cf | 7d84d8754d039504a5905289a33574abe5318e89 | refs/heads/master | 2020-05-04T20:38:22.850664 | 2014-08-15T22:07:40 | 2014-08-15T22:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,848 | py | #!/usr/bin/env python
"""
pyqtschema - Python Qt JSON Schema Tool
Generate a dynamic Qt form representing a JSON Schema.
Filling the form will generate JSON.
"""
from PyQt4 import QtCore, QtGui
from qtjsonschema.widgets import create_widget
class MainWindow(QtGui.QWidget):
def __init__(self, parent=None):
... | [
"klange@yelp.com"
] | klange@yelp.com |
9b577e0397ab602bffa52d7290910ae2afb30a2d | 19872c0f261100d3a7a3c770aa16ef719b7f397b | /PythonProjects/crawl_work/crawl_190605_51jop/nationwide_make_urls.py | b5e328efff01c1510da69677c7ba2fb1cb81e680 | [] | no_license | enjoqy/PythonProjects | b7951bd13c32ec40842e8c7f7a4b2a32929d3d8b | ae1a4b1a55a7906bb4dd78e8bd43d19decec48ba | refs/heads/master | 2020-06-20T03:50:32.814009 | 2019-07-15T09:17:50 | 2019-07-15T09:17:50 | 184,964,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time: 2019/5/16 001612:11
# @Author: junhi
# java
# url = 'https://search.51job.com/list/010000,000000,0000,00,9,99,java,2,1.html?lang=c&stype=&postchannel=0000&workyear=99&cotype=99°reefrom=99&jobterm=99&companysize=99&providesalary=99&lonlat=0%2C0&radius=-1&ord_fie... | [
"gdlzhh321@163.com"
] | gdlzhh321@163.com |
3b42efb7734e3bf5050c3c3470912a7e738e57a2 | 456e964284c5e25bff5dd7df7361dd6e20b3ea96 | /house_prices_competition.py | d3ec623731ca86a9398cbe1a73111ac24984088c | [] | no_license | huangshizhi/kaggle | 069d310909f1e45bd420791ab00405fe2e49a621 | d754fd0c152461bf96e8553a8e1fd58b65b82cd6 | refs/heads/master | 2021-01-16T17:16:36.212132 | 2017-08-11T07:39:17 | 2017-08-11T07:39:17 | 100,005,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,569 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 9 09:54:45 2017
@author: huangshizhi
https://www.dataquest.io/blog/kaggle-getting-started/
"""
import pandas as pd
import numpy as np
#1.加载数据
train = pd.read_csv(r'D:\kaggle\house_prices\data\train.csv')
test = pd.read_csv(r'D:\kaggle\house_prices\data\test.csv')
imp... | [
"noreply@github.com"
] | noreply@github.com |
969e32c9641599d2ac6f429333a9a104f34dff93 | 6a33819de8b7aae1388f94dd0142819693da5cdf | /src/kitchen/auth_backend.py | 73d1663bd8fa0f64f9a2fe2bf8ad9e972e0a97eb | [] | no_license | goudete/clustr | 9ffa7deb9cec4492a7f65c888287976bdbd267f9 | 0a6904c7f29a3341fef55933cf7d73c8326fdb33 | refs/heads/master | 2023-04-06T06:39:52.048484 | 2020-09-19T14:26:27 | 2020-09-19T14:26:27 | 289,341,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | from django.contrib.auth.backends import ModelBackend
from .models import Kitchen
from django.contrib.auth.models import User
from restaurant_admin.models import Restaurant
class PasswordlessAuthBackend(ModelBackend):
"""Log in to Django without providing a password, just a cashier code/login number
"""
d... | [
"rfitch@oxy.edu"
] | rfitch@oxy.edu |
0a8927cc6f6bdd664bb45f44bde260086ecb6f86 | 14dd1fd527bb7e30abd2e4ee64ffb34fe84f1e06 | /jzc/postgresInsert.py | ff33ab9255a1b1887bfe3ed360a277bce6e8efcf | [] | no_license | wdwoodee/luozt | 7a78e7e66f9bc51159f6f03ca4702f4db17dc580 | 6a4bc86969f6f2db24d9d7d1446e4a4f97846165 | refs/heads/master | 2021-05-04T04:46:30.812814 | 2016-10-14T08:30:19 | 2016-10-14T08:30:19 | 70,889,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,093 | py | #_DEBUG = True
import psycopg2
import pdb
try:
conn = psycopg2.connect(database="workspace2", user="postgres", password="postgres", host="127.0.0.1", port="54321")
except Exception:
print('Get a exception: Connect failed')
print("successfully")
cur = conn.cursor()
try:
errLine = 0
w... | [
"18511246771@163.com"
] | 18511246771@163.com |
6fa3e92bc057c995f58b43c06e0f64afa615f900 | 9a5c5ead8471c7bb71fe90429651b9d863ee2474 | /bots/dayandtime.py | 4d69b928ec7f213382d296b3b691500461877e14 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mwaiton/TwitterBots | 12af71e19895a53791d12b7a788a508752b0f1d9 | 3c641690c5047a1bbbbf3c47bb90256b7cf4f271 | refs/heads/master | 2023-02-08T09:12:44.300477 | 2020-12-30T02:56:04 | 2020-12-30T02:56:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import calendar
from datetime import datetime
"""Python program to find day of the week for a given date.
Also finds current date, which can be used to find the day.
"""
# To find a day of the week.
def find_day(date):
day = datetime.strptime(date, '%Y-%m-%d').weekday()
return calendar.day_name[day]
# To fi... | [
"bexxmodd@seas.upenn.edu"
] | bexxmodd@seas.upenn.edu |
e6797d47ad8c18d5fc26593670c8cb8c8f0cdbd6 | 21ba6d42f7f26779322a149d0af25f3acbb07682 | /Repository/Labelling/Automatically Labelled News/generate_auto_label.py | dbaca55e363df0a7a2b3423c3038b8663244f622 | [] | no_license | Bolanle/G54MIP | 6f1fa37b1a9da0477c3b22c9f957cbaf2249b764 | 02913adc86088bbbdab23c6d508a7c91bcb0d110 | refs/heads/master | 2021-01-18T16:41:17.783175 | 2015-05-07T10:31:19 | 2015-05-07T10:31:19 | 24,644,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,177 | py | from collections import defaultdict
from segmentation import SegmentCreator
from segmentation import DataPoint
import os, datetime, calendar
from xml.etree import ElementTree
from scipy.stats import pearsonr
import pandas
import matplotlib.pyplot as plot
import matplotlib.ticker as ticker
import numpy as np
def _get... | [
"onifade.esther@gmail.com"
] | onifade.esther@gmail.com |
034f01e6a2963900bc368fa59500b9e91af70e91 | 5504066c264a31a301b347858f0e6dd8db0fdccc | /docs/jliu118/reg_s3617_50um.py | b5eb98dec3120d2d09d8b29a13a3604dff2502da | [] | no_license | neurodata-cobalt/cobalt | 30fb656c851b56144b1d131e2028b5537bac8da0 | f966200d09d03a75ff9f56ab5c08b03b7bc3aadb | refs/heads/master | 2021-03-22T04:37:04.196672 | 2018-06-15T14:10:42 | 2018-06-15T14:10:42 | 102,608,162 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,956 | py | from ndreg import *
import matplotlib
#import ndio.remote.neurodata as neurodata
from intern.remote.boss import BossRemote
from intern.resource.boss.resource import *
from NeuroDataResource import NeuroDataResource
import pickle
import numpy as np
from requests import HTTPError
import time
import configparser
startT... | [
"jonathan.jy.liu@gmail.com"
] | jonathan.jy.liu@gmail.com |
f1b834746b4997f601868f58ed815391ad9e6bf7 | 730b85b3c23337fddca9f4a80d82f8ed2f2eb2a4 | /BotBlocker.py | 6f1b566e739ae14e718fb48d898640ff6245218d | [
"MIT"
] | permissive | sigmaister/Anonymous-Telegram-Bot | 29db924b6a3b33fdae3aba045b68e3c0fb60992b | dee234dd9f931b438a9939310e6d54c0fea4999f | refs/heads/master | 2023-05-25T01:08:30.300715 | 2020-04-12T10:55:33 | 2020-04-12T11:30:03 | 269,410,655 | 0 | 0 | MIT | 2023-05-22T23:29:49 | 2020-06-04T16:32:07 | Python | UTF-8 | Python | false | false | 1,842 | py | """
This software has been developed by github user fndh (http://github.com/fndh)
You are free to use, modify and redistribute this software as you please, as
long as you follow the conditions listed in the LICENSE file of the github
repository indicated. I want to thank you for reading this small paragraph,
and pleas... | [
"xavi_cat36@hotmail.com"
] | xavi_cat36@hotmail.com |
3d62fe89850d8886db18d58cd2b87b3b04745a1b | 60ffc2a1264a7ac6e743b0c1da380d0daf9c849b | /src/core.py | d274ce41dd9a3d9ff816e8f776bf1ece3b235894 | [] | no_license | pedromxavier/760D | d3622fb4487ece13c633a527e68526b1677d9da7 | 458ebbeb1aa8975628bd2caebdd919933ecf264a | refs/heads/master | 2021-02-28T16:40:30.769008 | 2020-06-05T18:46:01 | 2020-06-05T18:46:01 | 245,713,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,725 | py | import telebot as tb
import re
import html
import urllib.request as req
def STATUS_PONTE():
try:
URL_PONTE = "https://www.ecoponte.com.br/condicoes-da-via"
PATTERN = r'<tr class=.*?-row><td>.*?<td>(.*?)<td><span class=.*?>\s*(\S*?)\s*</span>'
answer = req.urlopen(URL_PONTE)
answ... | [
"pedromxavier@poli.ufrj.br"
] | pedromxavier@poli.ufrj.br |
f0b7898e2cc53710b09420d379c41c3e2ac4a97a | cbf70750d6c265e4043fd9d1d3bd835662cd680f | /customer/apps.py | 845451d50116021235e04c440ee3b6c448bca321 | [
"Apache-2.0"
] | permissive | xxcfun/DJANGO_CRM | c54e249a9a3da9edaeb5d9b49e852d351c7e359a | 1f8d2d7a025f9dc54b5bf498e7a577469f74c612 | refs/heads/master | 2023-01-14T05:21:54.995601 | 2020-11-27T03:23:40 | 2020-11-27T03:23:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | from django.apps import AppConfig
class CustomerConfig(AppConfig):
name = 'customer'
verbose_name = '客户管理'
| [
"55070348+hhdMrLion@users.noreply.github.com"
] | 55070348+hhdMrLion@users.noreply.github.com |
49831033a0db7eb9b44e22f82a18daf733b0ede5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03698/s076680456.py | f88b228e0ad2e567dcb9e176f989690214f846c7 | [] | 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 | 100 | py | S=input()
for c in S:
if S.count(c)>1:
print("no")
break
else:
print("yes")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9ed4cd0dc3795cc7629b973fd8603b0b0e896b3a | e4343fb98e9d50f67bc47374aa8f83ae0bf15fd8 | /Lab9/main.py | 7df71b77ec5f5f17bffb2720f3d8ba111b857b53 | [] | no_license | VVladislaVLL/geometry-labs | 7caaf1cb4466957330416660caf78ee4bbc44557 | df07f774f120bde2c8c7405e9eb6a3f870758778 | refs/heads/master | 2023-05-08T23:05:46.542715 | 2021-06-04T07:24:46 | 2021-06-04T07:24:46 | 343,880,645 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,406 | py | #!/usr/bin/python
import random
from time import sleep
from matplotlib import pyplot as plt
from classes.Point import Point
from classes.Vector2d import Vector2d, pi
from divideAndRule2 import divide_and_rule, divide_and_rule
from utils.binary import binary_test
from utils.graph import draw_polygon
def reflect(p, v... | [
"vlad2002kochurko@gmail.com"
] | vlad2002kochurko@gmail.com |
ba33ce6940599e88acb5a239c6d0893a19068b6e | 1b652b030a2742d8579474e155dcfdb65b34ac28 | /print/name3.py | f3aa9cf3fac9d2fcf3ccdc2070123a4ca8d011b7 | [] | no_license | RobinHou0516/Homework | 065dc076a0d5b508433bf97c73a0f1f603447e34 | dcb687da489f7c3a87476c07e5902f124edc5856 | refs/heads/master | 2020-04-09T23:57:08.793511 | 2018-12-06T12:28:51 | 2018-12-06T12:28:51 | 160,671,520 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | name='Robin Kawensanna Smartest Unrivalled'
age='14'
grade='9th'
grade.title
school='JXFLS'
print('My name is '+name+'. I am a '+age+' year old '+grade+' grader at '+school+'.')
| [
"Robinhou0516@gamil.com"
] | Robinhou0516@gamil.com |
bebb9c6ed06be5117b813c8c9ee9f2303de321f2 | 6ba09665a90059f326e594f4d1edb74fd55e2a1c | /utils/seg_metrics.py | 7a0b9bac7d24bfdee7381f2d2d3880960abf9bf1 | [
"MIT"
] | permissive | NguyenNhan999/Joint-Motion-Estimation-and-Segmentation | f9ef73da51eaf37418ff2906c469b6f0b42ac0c5 | 1c36d97ef41bee48d377c2cf98ad1d7b86ee37b4 | refs/heads/master | 2022-12-03T10:02:36.489257 | 2020-08-21T12:32:14 | 2020-08-21T12:32:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,224 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 22 17:53:58 2018
@author: cq615
"""
import numpy as np, cv2
def np_categorical_dice(pred, truth, k):
# Dice overlap metric for label value k
A = (pred == k).astype(np.float32)
B = (truth == k).astype(np.float32)
return 2 * np.sum(A * B) / (np.sum(A) + n... | [
"c.qin15@imperial.ac.uk"
] | c.qin15@imperial.ac.uk |
397bb1db215c047a38a6dd15583af7806156363f | 202e70bbfee2c70049ea8ac43711ec008baa47a3 | /main.py | 6e72104a97d2f709d97279c8e5c1bb314b74519f | [] | no_license | wqq1136883696/UbuntuPython | 714b74c3559f2bf9e57d00fbe95f001646532611 | c3d965ee749a15efdbded4169c576cd38dc44db3 | refs/heads/master | 2022-12-18T22:48:33.258697 | 2020-09-11T06:41:35 | 2020-09-11T06:41:35 | 294,617,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press ... | [
"1136883696@qq.com"
] | 1136883696@qq.com |
94a992f736f385b74839c456c1539fa5deb7f28c | cdfa17ab8b6524a4611dbadd69fabe6a38c8fe0b | /pysot/models/sa/__init__.py | 7799e4ee9021564c4e5d4e09e4fe9800056bf345 | [
"Apache-2.0"
] | permissive | bourahla-omar/pysot | 7e61e24fe0d6375770569a47dc1051b89199bd56 | c0fd8a0b3a307da0d50bc07208417d69244dc00f | refs/heads/master | 2020-07-24T13:59:33.410511 | 2019-10-22T05:55:46 | 2019-10-22T05:55:46 | 207,949,969 | 0 | 0 | Apache-2.0 | 2019-09-12T02:43:31 | 2019-09-12T02:43:30 | null | UTF-8 | Python | false | false | 366 | py | # Copyright (c) SenseTime. All Rights Reserved.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from pysot.models.sa.sa import sablock
SABLOCKS = {
'sablock': sablock,
}
def get_sa(name, *... | [
"csxuandongzhao@gmail.com"
] | csxuandongzhao@gmail.com |
f6bdba59b03588b2fe0c583e830fa12b83a347cb | 0c8594ca33e334589e9c28c525ca86f75536fc74 | /Python/evenodd.py | af98dd5f07bbfdf80a8e33e0aa0bcba0fe03c2c4 | [] | no_license | shubham1592/force | 84112c74cdca0d7dd930eaf89c7d9aa62dbb007d | 254b4729bb5332ecceb6b395cd7082023710b381 | refs/heads/master | 2021-07-17T10:44:14.096408 | 2019-10-23T19:04:12 | 2019-10-23T19:04:12 | 216,235,074 | 0 | 3 | null | 2020-10-02T07:33:39 | 2019-10-19T16:19:43 | C++ | UTF-8 | Python | false | false | 42 | py | for x in range(1,51):
print(2*x)
| [
"pi.shubham1592@gmail.com"
] | pi.shubham1592@gmail.com |
d35f840aebca9e72f9b224612463cc501f5f7dda | 827dcdf40e7a4998b03b8d8f07f28ede09e47fd9 | /corpus_scripts/surp_dict.py | 720aaa496b2bf53b36180ebc441d6667f7830695 | [] | no_license | LauraGwilliams/arab_pred | 9d1dfb1285c769888905f09d30d0a14b5468fad0 | f006a42a9979e7ca6c19634c5b90e51b8f8ba3f0 | refs/heads/master | 2016-09-08T05:04:18.583702 | 2015-11-02T16:30:41 | 2015-11-02T16:30:41 | 18,057,133 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,548 | py | import sys
import math
from collections import Counter
from collections import defaultdict
#NOTE -- 'CV' -- corresponds to the element of interest, and
# -- 'C' -- corresponds to the element of interest -1
#sets up the script arguments#
phoneme_of_interest = sys.argv[1]
#create empty dict that we'll fill after#
M... | [
"root@Lauras-MacBook-Pro.local"
] | root@Lauras-MacBook-Pro.local |
5c36ae6fce8ec9601832a3503e9a4f0e716f1f1d | a35dadcdca748197bc400cebc180b58fe8f0735a | /constants.py | 06f781bd894b739f694e6c9e5ed6447e66a2aa70 | [] | no_license | RGologorsky/CS-182-final-project | ec232bb40bca4ffab935be536ca8540972be57e6 | 117b3159b879d07c1195204718dadf2e696469f7 | refs/heads/master | 2022-09-23T03:33:08.991790 | 2020-06-04T22:13:36 | 2020-06-04T22:13:36 | 112,677,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,337 | py | MULTIVAR = set(["AM21B","MATH21B", "MATH23B","MATH25A", "MATH55A"])
LINALG = set(["AM21A","MATH21A", "MATH23A","MATH25B", "MATH55B"])
STAT110 = "STAT110"
CS050 = "CS050"
CS051 = "CS051"
CS061 = "CS061"
CS020 = "CS020"
CS121 = "CS121"
CS124 = "CS124"
CS181 = "CS181"
CS182 = "CS182"
MATH23A = "MATH23A"
MATH25B = "MATH25... | [
"rgologorsky@college.harvard.edu"
] | rgologorsky@college.harvard.edu |
783fdd25c10199746426d1f7b3e87e009964b1e1 | d4a5462b2cd2eff99da6ad5147b5423c819ae731 | /1072.py | 7cde2b4cbdcb7fcb593e7f072f7089b72b0530d7 | [] | no_license | Rafesz/URI_solutions_py | 3a61e6b0b571a03857f1c4efb54546edb2a0fb6a | 62a9f8227523e409afa9d506df66516ef9b48079 | refs/heads/main | 2023-08-11T20:55:04.267913 | 2021-09-21T22:25:50 | 2021-09-21T22:25:50 | 402,085,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | # Leia um valor inteiro N. Este valor será a quantidade de valores inteiros X que serão lidos em seguida.
# Mostre quantos destes valores X estão dentro do intervalo [10,20] e quantos estão fora do intervalo, mostrando essas informações.
# Entrada
# A primeira linha da entrada contém um valor inteiro N (N < 10000)... | [
"noreply@github.com"
] | noreply@github.com |
7535a94b63e52647dad6aafa93a3c78cf10f5ec2 | 4833d5ebc9c84acd95059eb83524923dd9aebc83 | /asyncio_helpers.py | d1cf4ebc364da783fd56b5ca077a0af4b7695b57 | [] | no_license | bdutro/chromium-proxy | 24738f5f7b088c8bae55ba398c71ac82b928b09f | 334fb3bd006a3f26b553d354d2830ba3b0328b0b | refs/heads/main | 2023-02-20T03:07:22.911243 | 2021-01-08T18:45:50 | 2021-01-08T18:45:50 | 327,177,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import asyncio
import sys
if sys.version_info < (3, 7):
def asyncio_run(p):
loop = asyncio.get_event_loop()
return loop.run_until_complete(p)
else:
def asyncio_run(p):
return asyncio.run(p)
| [
"brett.dutro@gmail.com"
] | brett.dutro@gmail.com |
eb268714e1d62798cbe61cec0f6af724ee53d4f6 | a163c2cec4d942212bd5bcd25a8759a7da570b7f | /ChatBot/main.py | f54e258b6b94e4253d6b6b77a9eb96e43cdb92e0 | [] | no_license | cainanalves/computational_intelligence | 1daa4c3f153563e11b0d8410d6429648b48b57f1 | 503dfeb9db3dc18725d30587f968ed86ece53d7d | refs/heads/master | 2021-08-23T10:47:22.650121 | 2017-12-04T15:42:48 | 2017-12-04T15:42:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | #!/usr/bin/python3.5
# encoding: utf-8
from chatterbot.trainers import ListTrainer
from chatterbot import ChatBot
import os
#Read_only=True --> Dizer ao bot que eu já o treinei e não precisa treinar novamente.
bot = ChatBot("Teste")#read_only=True)
bot.set_trainer(ListTrainer)
for arq in os.listdir("arqs"):
chat... | [
"cainan.teixeira10@hotmail.com"
] | cainan.teixeira10@hotmail.com |
417047a76d6ad25de43fc2acde8e4c37efc3ab2e | 62187abac35eec54f56d956ced4aae18be5c667d | /pilta.py | e9eff95395e2224f94d442902c52ef9d71ff2a61 | [] | no_license | Gary345/Ivan_Arratia_1559 | 5aea66e102bcc49549f680413d5da00275079c72 | fafcaa3c3c8e11f4264672dccee13a477a138bc0 | refs/heads/main | 2023-01-06T14:34:30.906982 | 2020-11-11T06:31:28 | 2020-11-11T06:31:28 | 300,461,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | pila =[3,4,5] # pila de inicio con un arreglo
print (pila) #impresion de la pila
#345
pila.append(7)
pila.append(8)
print (pila)
#34578
print("saco este elemento",pila.pop())
#8
print("Se quedo asi la pila: ", pila)
#3457
| [
"ivanarratia314@aragon.unam.mx"
] | ivanarratia314@aragon.unam.mx |
cc97266146a0e0a5a82b27d70bd9882600547a30 | 606afd1394624127e37bf82328e1d21f00f8a2ca | /Layer.py | 0c21cbb41afc36e4c72c6f5a25825d5ff2ed8f09 | [] | no_license | JoelGooch/Tensorflow-Final-Year-Project | b4d437a778f19e5cf7adc16afd82b5a0c7a93788 | b72aeeed5ac9df13257c56fff5e71855709cb73c | refs/heads/master | 2021-01-20T03:16:47.980594 | 2017-05-21T20:13:55 | 2017-05-21T20:13:55 | 83,829,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,299 | py |
# base Layer class that others will inherit from
class Layer:
def __init__(self, layer_name):
self.layer_name = layer_name
# contains all the parameters that a convolution layer will have
class ConvLayer(Layer):
def __init__(self, layer_name, kernel_size, stride, act_function, num_output_filters, weight_init, wei... | [
"j_gooch808@hotmail.com"
] | j_gooch808@hotmail.com |
a077a0210a9ead65fa1545bd027f14dc8f564d61 | 20eac8f94ef0a59ef65670545e2f1b8fb719425f | /eventos/migrations/0002_auto_20210522_0314.py | 78766c13cfa331ea9b1aefb40689a4801f28a1f3 | [] | no_license | edgardo28081/gomez | fcc1c3fd9d9ce76a8a892d16c78d162556f067dc | b51f3af15d413789298488736365011acd77ee43 | refs/heads/main | 2023-05-31T17:39:06.234220 | 2021-06-10T19:54:46 | 2021-06-10T19:54:46 | 375,813,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # Generated by Django 3.2 on 2021-05-22 07:14
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('eventos', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='recuerdos',
name='foto4',
),
m... | [
"edgardomarcano04@gmail.com"
] | edgardomarcano04@gmail.com |
f8bc14a1c8b118e1a3d390327c9c1d7f9a1cbbd5 | 7a68632e1788079f40894501e8394d89ebf784df | /mysite/settings.py | d540fa83124150c965b10568958646da1b003d75 | [] | no_license | Audywb/pythonanywhere | 4f790dad374758f5419b59f4c59d9b22b4099881 | 4ec7494ad0e3fe478b9e6e6e56ed3ef8b1f29201 | refs/heads/master | 2023-01-02T14:56:31.593485 | 2020-10-25T13:38:30 | 2020-10-25T13:38:30 | 285,757,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,637 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
imp... | [
"thesombats@gmail.com"
] | thesombats@gmail.com |
57c8c4f7a53557e403719802170a2e4a7bd660c6 | 9ecd7568b6e4f0f55af7fc865451ac40038be3c4 | /tianlikai/hubei/enshi_zhongbiao.py | aa1eb42ebd5cbeb6d019ac1072c18bf552fa29cc | [] | no_license | jasonTLK/scrapy | f5ac6e575e902c077a07dc0eb9d228506f1a173f | 2de8245fbc8731cfd868bbd91168e26271045300 | refs/heads/master | 2021-01-20T04:22:23.080864 | 2017-04-28T07:46:29 | 2017-04-28T07:46:29 | 89,681,374 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,967 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapy import Request
from scrapy.selector import Selector
try:
from scrapy.spiders import Spider
except:
from scrapy.spiders import BaseSpider as Spider
import datetime
from items.biding import biding_gov
from utils.toDB import *
# 湖北恩施招投标网站
# 中标信息
class hz_gov_Spi... | [
"18723163167@163.com"
] | 18723163167@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.