blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
962d3aac4478494866be2adb37058437ec68edc0 | 7922540e2993b3f0ee27649becc6881991f26f8c | /cryptosite/urls.py | eabd33a490445bd108023a6544aaa120d5743498 | [] | no_license | anirban-21/Cryptosite | 044cbf5f0a0a23362b1fe561bfd9cd312120fb6b | 86ec45bdd0e9a2c20f03196c3efe01badedd9238 | refs/heads/master | 2022-12-25T05:32:29.508577 | 2020-10-08T09:29:36 | 2020-10-08T09:29:36 | 302,286,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 799 | py | """cryptosite URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"anirbanraha08@gmail.com"
] | anirbanraha08@gmail.com |
b68437cefbc5ec307c1eb1133f394abe68e27b9f | b2dbc5643ed240f462090aaa796e528a39175de6 | /FCN_8s_modified_code/read_MITSceneParsingData.py | cf47c498dd8f91c5d5393b68ca9dcdb392aeb543 | [] | no_license | wonikjang/Projects_Python | 20c889c315d625d855ab55358958ceff590ebea8 | d5bd73f03f224ac00f845bf16dac86e56be5b3be | refs/heads/master | 2021-09-20T17:22:55.483973 | 2018-08-13T09:03:51 | 2018-08-13T09:03:51 | 89,209,677 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,335 | py | __author__ = 'charlie'
import numpy as np
import os
import random
from six.moves import cPickle as pickle
from tensorflow.python.platform import gfile
import glob
import TensorflowUtils as utils
# DATA_URL = 'http://sceneparsing.csail.mit.edu/data/ADEChallengeData2016.zip'
DATA_URL = 'http://data.csail.mit.edu/places... | [
"noreply@github.com"
] | wonikjang.noreply@github.com |
5a22824ddb5f687f87dce78032033bddc8a463e1 | 79c0b1ed8aff76df7ea783e0f290576e48f52a29 | /itertools/repeat.py | 26886dd51523e340ca16da10cad58ebce09b24b3 | [] | no_license | meghnavarma0/DSA-Python | 8e57f145c4bba1e786457b0a1f68009a4750d42f | 6b584ffc3c6d8cf4a66e373d723506647b81cc9b | refs/heads/master | 2021-05-22T14:51:51.102164 | 2020-08-21T03:27:09 | 2020-08-21T03:27:09 | 252,970,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | from itertools import repeat
a = list(repeat(15, 7))
print(a) | [
"meghnavarma0@gmail.com"
] | meghnavarma0@gmail.com |
46a6be98cd37c203fd6efd53b180795a67a6b079 | ecff7ab1d962ff895b3e9a0b4239329dd03ce966 | /webpage_text/__init__.py | b20daaa188f87b44418af0b010d45a46826360d1 | [
"MIT"
] | permissive | MSLNZ/pr-webpage-text | ea91e138b3e476688a07210e2b0625cb23538ff8 | 7790e8bbeb5cfbb9c0d7ac508903acd7414ff9d5 | refs/heads/main | 2022-09-15T12:26:29.947169 | 2022-08-05T21:21:26 | 2022-08-05T21:21:26 | 227,973,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,399 | py | import os
import re
import sys
import argparse
import configparser
from gevent import monkey
monkey.patch_all()
import gevent
from gevent import pywsgi
import requests
from flask import (
Flask,
Markup,
render_template,
request,
send_from_directory,
)
gevent.get_hub().NOT_ERROR += (KeyboardInterr... | [
"joe.borbely@gmail.com"
] | joe.borbely@gmail.com |
79a2bc716579e8f0dc9a8c32e78c97fd20ea8542 | a81c14aa16d358c3508abe71aa72506b10bb0d06 | /models/stock_loader.py | 7cc370f4cbaf90933b280820a506ce3416a73474 | [] | no_license | willwallis/StockNotify | d046d5b0a108f008f89982afc5f93b83128522a1 | 38cfffbeec52079e06d54d1b35db63be0378bf03 | refs/heads/master | 2020-05-18T13:35:36.373138 | 2015-07-28T22:03:40 | 2015-07-28T22:03:40 | 39,859,842 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,481 | py | #!/usr/bin/env python
# Importing some of Google's AppEngine modules:
from google.appengine.ext import webapp
import os
import csv
# Import modules used by this controller
from models import *
# CLASS TO LOAD LIST OF US STOCKS
class LoadStocks(webapp.RequestHandler):
def get(self):
inputid = self.request.get('a... | [
"will@knewto.com"
] | will@knewto.com |
20f48de587f36ac22f7b751403edee7311221783 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/python/ops/linalg/linalg.py | 22c87ea697b7d702dec0fb5fe037ea1157fdaf58 | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,785 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
42ced21b32a7c64522b3bdfd8516de69b7762605 | 0688175e67a23facf6ca86b51fd776bcdd6a78d9 | /getIssue.py | d0b5f2e48e192b7fe39e37b69a1b762a56ebd037 | [] | no_license | MG1333051/IssueSummary | e10d1ecc15bb64e0f004e9a71009229243160c30 | d068763dd240399045011d4cfa744977c59dc9c6 | refs/heads/master | 2021-01-12T21:45:15.184634 | 2015-11-17T01:55:55 | 2015-11-17T01:55:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,792 | py | '''
@author: Lenovo
'''
import github
import csv
import urllib
import re
gh = github.GitHub()
#print(gh.users('michaelliao').get())
headers = ['number', 'id', 'reporter', 'created_at', 'updated_at', 'closed_at', 'state',
'locked', 'assignee', 'milestone', 'comments', 'label_name', 'title', 'pull_request',... | [
"xiaobena@live.cn"
] | xiaobena@live.cn |
53da9f21a7f87160ef47e40054bd952e2946138f | cf33f981a53f899d8e43b0580a22a8a5b708e304 | /src/case.py | bb90bdfa7b019a96673dbb52b3aca6d161161038 | [] | no_license | YKherzaneColbert59/Sudoku | 9e359fc2ea88af49ec77ae27710fcaa988e41848 | 290691943fc6aede2c790944f4e45974c11f3cb1 | refs/heads/main | 2023-08-30T14:54:52.235387 | 2021-11-20T08:47:24 | 2021-11-20T08:47:24 | 428,565,654 | 0 | 2 | null | 2021-11-16T10:14:14 | 2021-11-16T07:55:09 | null | UTF-8 | Python | false | false | 1,334 | py | class Case:
def __init__(self, pos, value = None):
"""
Constructeur par défaut
Arguments :
- pos : position de la case (0--80)
- value : valeur de la case (1--9)
Tests :
>>> Case(0).position, Case(80).position, Case(25).p... | [
"kherzaneyani@gmail.com"
] | kherzaneyani@gmail.com |
cd5ab0ff640c9c8555b6af3aad71c70091b91ec4 | 2760effda15d884af413ca2a35809d03fabea377 | /lc-1222.py | fb44d86b4ecfc652aaac148671173ef0b40bbe00 | [] | no_license | UtsavRaychaudhuri/leetcode | 31943b98ad89d96d72ee4b6b1d1c8d70429d1e1f | 77a13580fd6231830558b1cf8c84f8b3b62b99d0 | refs/heads/master | 2020-11-27T18:02:23.712639 | 2020-09-29T19:39:49 | 2020-09-29T19:39:49 | 229,552,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,248 | py | class Solution(object):
def __init__(self):
self.outarray=[]
def queensAttacktheKing(self, queens, king):
"""
:type queens: List[List[int]]
:type king: List[int]
:rtype: List[List[int]]
"""
self.checkleft(king,queens)
self.checkup(king,queens)
... | [
"utsav@pdx.edu"
] | utsav@pdx.edu |
39b00d8dc0c6e5dbaab58ed8f4cb471672f8834e | 8d9af8b801aecdba9c1387ccae4b69b52ed8ccad | /read_reddit.py | 1887b3c89da5301a2348aa3b4a4ec372f83a47de | [] | no_license | beaugaines/mongo_for_devs | f4ab616f2b908c100fc130f9290bab6363a5f773 | 08c154700098538e6084a55c17fcee9e2b67abd5 | refs/heads/master | 2018-12-27T22:45:13.577163 | 2013-05-12T20:39:48 | 2013-05-12T20:39:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import json
import urllib2
import pymongo
from pymongo import MongoClient
# connect to db
connection = MongoClient('localhost', 27017)
# connect to reddit db - which does not exist, so - POOF! - it will be created
db = connection.reddit
stories = db.stories
# get the phlegm clot of information that is the Reddit h... | [
"beaugaines@gmail.com"
] | beaugaines@gmail.com |
227b6a056fb6d25eccae7d16b9b3363a3999867e | 929f43b02defa8b0f37ee734ad97fad8a68712e5 | /mundo1/ex029.py | 8b579974216c18a04aca1204d1bebace02cd6632 | [
"MIT"
] | permissive | Igor3550/Exercicios-de-python | c9395c3d75a20daf83d67716ffda94c624ebf3de | e0f6e043df4f0770ac15968485fbb19698b4ac6b | refs/heads/master | 2022-11-10T07:52:51.334570 | 2020-06-25T21:41:44 | 2020-06-25T21:41:44 | 275,020,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | #escreva um programa que leia a velocidade de um carro
# Se ele ultrapassar 80km/h, mostre uma mensagem dizendo que ele foi multado
# A multa vai custar R$7,00 por cada km acima da velocidade
veloc = int(input('Digite a velocidade em km/h: '))
if veloc <= 80:
print('Você esta no limite de velocidade\nO limite é de ... | [
"igormeloigormelo@gmail.com"
] | igormeloigormelo@gmail.com |
1a53e8becfa201f64650948dfd44782938e5f479 | a4a28e2289fe2b41e3c89f57a3c160bb79520f90 | /TLSW_pred/pythonhttp.py | b633584baf90f87c0b264fdcf061cc4002ed9ca1 | [
"Apache-2.0"
] | permissive | allinpaybusiness/ACS | 69d1e3aca5b1e81f5fa41209c44746cb06a1819a | b9c8fa2a8e316ade366f261b0b7dc54a61fa11ba | refs/heads/master | 2021-01-19T21:28:58.539487 | 2017-06-07T02:51:10 | 2017-06-07T02:51:10 | 82,506,792 | 0 | 14 | null | 2017-06-07T07:39:35 | 2017-02-20T02:10:16 | Python | UTF-8 | Python | false | false | 850 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 26 14:34:07 2017
@author: s
"""
import socket
import re
HOST, PORT = '', 8888
listen_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
listen_socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
listen_socket.bind((HOST, PORT))
listen_socket.listen... | [
"fengyz@allinpay.com"
] | fengyz@allinpay.com |
2a07c90c6668c494a7b8505df7af945936e34846 | eb137779fddf4a6be05bdf4b569ac359f6ce39d0 | /src/utils/forecast_type.py | e17da491ee322a8bc8edfd169a18931e60bffde2 | [
"MIT"
] | permissive | cmu-delphi/flu-contest | 4ad767f151776eccb7f5dfe6b47261b6c8cf6e50 | 23e1b41313f8863a7732b5861df7c70edd1ee3ad | refs/heads/main | 2022-12-06T23:05:59.795151 | 2020-09-05T19:20:13 | 2020-09-05T19:20:13 | 75,351,258 | 0 | 3 | MIT | 2020-09-05T19:20:15 | 2016-12-02T02:09:19 | Python | UTF-8 | Python | false | false | 47 | py |
class ForecastType:
WILI = 1
HOSP = 2
| [
"jiaxians@andrew.cmu.edu"
] | jiaxians@andrew.cmu.edu |
ce7a32bc88de6857019ede124e9f27c3f04d7544 | 490f7e5712b2f297adce60ff6c448243076b092b | /third_party/onnx/onnx/backend/test/case/node/pow.py | 8eb61089119a1f48348fb6d45846d85f7cd77273 | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"MIT"
] | permissive | olibd/pytorchDocker | 8725993df15fa28b528ef42f98f2014e4206de0d | 5ae4c37d4f081128dc1e6d24b158adebd23a3c10 | refs/heads/v0.4.0DockerBuild | 2022-12-25T06:11:37.436842 | 2019-12-09T19:13:48 | 2019-12-09T19:23:43 | 226,938,896 | 0 | 1 | NOASSERTION | 2022-12-13T23:17:18 | 2019-12-09T18:23:06 | C++ | UTF-8 | Python | false | false | 1,794 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np # type: ignore
import onnx
from ..base import Base
from . import expect
class Pow(Base):
@staticmethod
def export():
node = onnx.h... | [
"olibd@hotmail.com"
] | olibd@hotmail.com |
09267857397c18219dcb468ef2b121a2fea8f574 | c83e356d265a1d294733885c373d0a4c258c2d5e | /mayan/apps/locales/managers.py | b80a4b8368ef07497f74fee837058582ac4e31a0 | [
"Apache-2.0"
] | permissive | TrellixVulnTeam/fall-2021-hw2-451-unavailable-for-legal-reasons_6YX3 | 4160809d2c96707a196b8c94ea9e4df1a119d96a | 0e4e919fd2e1ded6711354a0330135283e87f8c7 | refs/heads/master | 2023-08-21T23:36:41.230179 | 2021-10-02T03:51:12 | 2021-10-02T03:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 424 | py | from django.contrib.auth import get_user_model
from django.db import models
class UserLocaleProfileManager(models.Manager):
def get_by_natural_key(self, user_natural_key):
User = get_user_model()
try:
user = User.objects.get_by_natural_key(user_natural_key)
except User... | [
"79801878+Meng87@users.noreply.github.com"
] | 79801878+Meng87@users.noreply.github.com |
a161394d8fa001e2248fd31803456fde533a463f | 3ca80a9a55652e21a7c69008842e86ac72f744d3 | /real_python_courses/Class_str_repr.py | cd0b1a98ca16820e38536896cb95a5832737b7bc | [] | no_license | pshapard/New_projects | 29ef9f7793e137124d33ca461e3dd686023789c5 | 8cf0e244cde07dd0f750de6a064deba970c0cf7a | refs/heads/master | 2022-02-11T06:13:35.278903 | 2022-01-25T19:21:14 | 2022-01-25T19:21:14 | 253,964,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | class Car:
def __init__(self, color, mileage):
self.color = color
self.mileage = mileage
def __repr__(self):
my_car = Car('red', 37281)
print(my_car)
#__str__ ==> easy to read, for human consuption
#__repr__ ==> unambiguous, more for developers to read
import datetime
today = datetime... | [
"pshapard@outlook.com"
] | pshapard@outlook.com |
498488d0e02adf53cce7096cd9c7afa81a6a5814 | 64267b1f7ca193b0fab949089b86bc7a60e5b859 | /slehome/account/migrations/0046_auto_20150130_0600.py | 4d7e8d0246f4262cdd73c9abdd7338982e3d2674 | [] | no_license | hongdangodori/slehome | 6a9f2b4526c2783932627b982df0540762570bff | 3e558c78c3943dadf0ec485738a0cc98dea64353 | refs/heads/master | 2021-01-17T12:00:34.221088 | 2015-02-06T13:44:00 | 2015-02-06T13:44:00 | 28,847,585 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 531 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0045_auto_20150130_0558'),
]
operations = [
migrations.AlterField(
model_name='basicmemberinformation... | [
"chungdangogo@gmail.com"
] | chungdangogo@gmail.com |
521c07cd2ff7dc5d7204594a7e6315b8882b463b | 4bd969bb18178e15b750fcaa8b791cc100260e62 | /mongoCRUD.py | 90c486765a76e7922f411e76bb922f4f2a2bc641 | [
"MIT"
] | permissive | codefusser/UserManagerDocker | 587f73ee29f23aa34b3df8306d6b432134c0392d | 8ba4e3aaaff0419ccdf3ab885fe1fcc0332c32be | refs/heads/master | 2021-08-30T04:22:54.084203 | 2017-12-16T10:23:39 | 2017-12-16T10:23:39 | 114,374,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | #Using Python to interact with the mongodb server with pymongo
from pymongo import MongoClient
#pprint module will help to improve readability
from pprint import pprint
DB_connectionString = "mongodb://127.0.0.1:27017"
client = MongoClient(DB_connectionString)
#use userManager
dbase = client.userManager
#creating ... | [
"softorque@outlook.com"
] | softorque@outlook.com |
2686e9a70975ed195e375cd6f2821ad404bd6b2b | c6db96a3ee9035862e7951bb944f7448335bc313 | /smc/elements/profiles.py | 741537250e60591eb88cb41b2a7fb0b3f3b451c4 | [
"Apache-2.0"
] | permissive | azgaviperr/fp-NGFW-SMC-python | 6e8c1b4e7013eadbfacff490eff6dda78db5f014 | f8eb3cf725730c7bc7be89c05034ac1eb74163ac | refs/heads/master | 2023-08-18T13:51:20.350868 | 2021-10-14T17:41:09 | 2021-10-14T17:41:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,206 | py | """
Profiles are templates used in other parts of the system to provide default
functionality for specific feature sets. For example, to enable DNS Relay on
an engine you must specify a DNSRelayProfile to use which defines the common
settings (or sub-settings) for that feature.
A DNS Relay Profile allows multiple DNS ... | [
"lmartinson@forcepoint.com"
] | lmartinson@forcepoint.com |
7e198ce9b23e20291e65927d4cb4929ce449664b | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/create_reassignment_task_response.py | 9d3d17bcac4d36154a7f4e3ba477519e68ca9043 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,225 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CreateReassignmentTaskResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
81e244eb03a8e7a0240cc64534523a67fb6e8b2b | ca3d8da633cb2b71ff876338c3f2f170298282fd | /compositionality_over_time/coha_preprocessing/feature_extracter_dense_embeddings.py | 7830cb5f0ab2b3dc1f205aa8c5f81d12a877eda6 | [
"Apache-2.0"
] | permissive | prajitdhar/Compounding | 92e4c34d95a7ff8a3ed2daea044f868d64731f22 | 7b54d2cc84d0d68cc4b847f714dce3e1a7a42dd2 | refs/heads/master | 2023-08-07T17:32:01.048741 | 2023-07-30T22:08:30 | 2023-07-30T22:08:30 | 139,637,197 | 2 | 3 | Apache-2.0 | 2023-09-06T09:45:26 | 2018-07-03T21:08:28 | Jupyter Notebook | UTF-8 | Python | false | false | 15,323 | py | import pandas as pd
import numpy as np
from sklearn.decomposition import PCA,TruncatedSVD
from sklearn.preprocessing import Normalizer
import argparse
import time
import pickle
import re
from functools import reduce
import pickle as pkl
def year_binner(year,val=10):
if val==0:
return 0
else:
re... | [
"janis.pagel@ims.uni-stuttgart.de"
] | janis.pagel@ims.uni-stuttgart.de |
f8c4c166b16e951159465c40816bd0caddb19816 | 95e6314483e6f238628299150317cf2255437924 | /bin/process3_calcFCPV.py | d5ffdc95537af0fde0969398936db27841058420 | [
"MIT"
] | permissive | AWHKU/CombiPIPE | 53d526cd13690ec56cd8417b129ab3e1cd0ef488 | 87c8aa0bf0747ee159b66db3211fb2acf81787b1 | refs/heads/master | 2023-08-15T16:27:32.360598 | 2021-10-21T13:38:51 | 2021-10-21T13:38:51 | 258,078,043 | 0 | 1 | MIT | 2021-10-21T13:38:52 | 2020-04-23T02:53:19 | Python | UTF-8 | Python | false | false | 2,235 | py | import sys, os, math
from scipy import stats
import numpy as np
dir,sampleInfo,nwise=sys.argv[1],sys.argv[2],int(sys.argv[3])
def grabInfo(sampleInfo):
file=open(sampleInfo,"r")
refd={}
for ln in file:
ln=ln.strip("\r\n").split(",")
if ln[-1] != "":
if ln[-1] not in refd:
refd[ln[-1]]=[ln[-2]]
else:
... | [
"noreply@github.com"
] | AWHKU.noreply@github.com |
abdba80e2f5adc1b736189b208ad548770d4a1a7 | e4d51669c68bd36448f97b044aa835576db7c708 | /instagram/converters.py | ec72631919e3a6997041bfdb49299e4a9acfd4ed | [] | no_license | BigbrotherShin/django_practice-instadjango | 92f156db5e2db4b963288628b46ab4acec9c8bd8 | c3b6f5f5db88156f9092ac12cdf9159f484eb865 | refs/heads/master | 2022-11-13T21:44:29.691936 | 2020-07-06T09:00:04 | 2020-07-06T09:00:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | class YearConverter:
regex = r"20\d{2}"
def to_python(self, value):
return int(value)
def to_url(self, value):
return str(value)
class MonthConverter(YearConverter):
regex = r"\d{1,2}"
class DayConverter(YearConverter):
regex = r"[0123]\d"
| [
"shinjhhp5@gmail.com"
] | shinjhhp5@gmail.com |
de90c6a29c7f48707d371e882267c257f4f629e0 | 90e6a3fc2d98be7cc33edac04985c31cce1bac92 | /app/config.py | f10dfba9264a887006d6aea96e50a4362f516dc3 | [] | no_license | skarj/devops-examples | f2db47aef175048b437cf5bf98bb8a6410a2c65f | 94d88defee4d2372930210c5598bc7a873b6be96 | refs/heads/master | 2023-05-24T23:23:09.136297 | 2022-05-07T15:18:47 | 2022-05-07T15:18:47 | 157,450,150 | 2 | 0 | null | 2023-05-01T21:13:57 | 2018-11-13T21:35:03 | Python | UTF-8 | Python | false | false | 669 | py | import os
class Config(object):
DEBUG = False
PORT = 5000
HOST = '0.0.0.0'
AWS_ACCESS_KEY = os.environ.get('AWS_ACCESS_KEY')
AWS_SECRET_KEY = os.environ.get('AWS_SECRET_KEY')
AWS_REGION = os.environ.get('AWS_REGION')
S3_BUCKET = os.environ.get('S3_BUCKET')
S3_ENDPOINT = 'http://{}.s3.am... | [
"skaarj.sergey@gmail.com"
] | skaarj.sergey@gmail.com |
69ed92de644fca515a276845a1ab3c88f930d96c | ecf6fe6aa87b2c3f041acc30fab11b0cafe3dd46 | /architecture_py/archi_v3_4.py | c44736bffc6e0190265c5c5a8ec71479998ec8b7 | [] | no_license | antgratia/Memoire_code | 73c7806c4576c2e73e00d9a84b1063a2c8f6b559 | 2cdc1339ea24896a6628238f6467edff80f98166 | refs/heads/main | 2023-06-20T16:19:07.041464 | 2021-07-13T11:53:48 | 2021-07-13T11:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,719 | py |
import numpy as np
import os
from keras import backend as K
from tensorflow import keras
from tensorflow.keras.callbacks import EarlyStopping
from tensorflow.keras.models import Sequential, Model,load_model
from tensorflow.keras.layers import Input, Add, Dense, Activation, ZeroPadding2D, BatchNormalization, Flatten, C... | [
"antoine.gratia@student.unamur.be"
] | antoine.gratia@student.unamur.be |
d318bf8277ce10614e8bd8d84441f8df63363604 | 22448c6ca28029b0782409a2e4503317efd1f4df | /Programmes tests/Accès soap/clientTest.py | 9666b128301f1819fffac942f826af7024e35a83 | [] | no_license | Assia-Megueni/bankNTR | 396aef84dc542a943a6cbce97f984f3103dee2b5 | c46b3c291573b14eea1d7d8a91c97b494fde9890 | refs/heads/main | 2023-04-19T02:04:06.598433 | 2021-04-30T12:10:29 | 2021-04-30T12:10:29 | 362,913,305 | 0 | 0 | null | 2021-04-29T18:37:35 | 2021-04-29T18:37:34 | null | UTF-8 | Python | false | false | 3,412 | py | from suds.client import Client
nomprojet = "servicesoap"
port = "8090"
urlCommandes = "http://localhost:"+port+"/"+nomprojet+"/services/Commandes?wsdl"
urlArticles = "http://localhost:"+port+"/"+nomprojet+"/services/Articles?wsdl"
urlFinances = "http://localhost:"+port+"/"+nomprojet+"/services/Finances?wsdl"
urlComptes... | [
"55113456+bverhul@users.noreply.github.com"
] | 55113456+bverhul@users.noreply.github.com |
4a0714091ddd90df0ea8c7a0b01751aad0843151 | 398089ec2210e1b6a12aecf8ed91cdeced6b36fc | /employer/views.py | 37965cec7645b608559570279fbd8da925ea939d | [
"Apache-2.0"
] | permissive | WilliamQLiu/job-waffle | 7ca8cb6357884e99a9c054bbd25d10222816dde7 | 59e4bc550dc1c2131fa427f188fbc2bb287aa938 | refs/heads/master | 2022-05-04T12:18:53.018609 | 2015-04-10T03:18:34 | 2015-04-10T03:18:34 | 27,843,538 | 1 | 1 | Apache-2.0 | 2021-06-10T17:29:08 | 2014-12-10T22:48:48 | JavaScript | UTF-8 | Python | false | false | 7,702 | py | """
A view takes a web request and returns a web response
The response can be a web page, a redirect, a 404 error, etc
GET is used for requests that do not affect the state of the system
POST is used for making changes in the database
Under the hood, Django just converts HTTP POST and GET objects ... | [
"William.Q.Liu@gmail.com"
] | William.Q.Liu@gmail.com |
14d5c5fbf7781549cf6e357efcc0716b5f1896ae | 72e8e6829ab51ef041f9388f09e303a0cb07ff58 | /CNN/ProgressBar.py | cdee2977e2c7ffbc081afd704f699487ac023d66 | [] | no_license | jgslunde/Projects | 4c3eefdcf4984e52ed7725a5606ff08f10ff528e | ca927120e8524f24ea194edcf5ab476290ae8e72 | refs/heads/master | 2021-09-23T23:39:00.053312 | 2018-09-29T09:47:35 | 2018-09-29T09:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,527 | py | import time
import sys
import subprocess
class ProgressBar:
def __init__(self, total, update_freq):
self.total = total
self.update_freq = update_freq
rows, colomns = subprocess.check_output(['stty', 'size']).split() # terminal size.
self.rows = int(rows.decode("utf-8"))
sel... | [
"jonas.s.lunde@outlook.com"
] | jonas.s.lunde@outlook.com |
279eca7baaea7d7e78b5f31eab14828579fa7ef7 | af79d5ad4c47c1d9db2cf6cdcc7c7c52658723c9 | /pressTv/apps.py | a059e7ce5a0aa1da21d9203cdc591d921c15aff3 | [
"MIT"
] | permissive | jafarzadeh-1998/Coronavirus-News-Crawler | 8104b4a730bf08e59903ea0c9c8f035ec4e09fb0 | aae34075b0f39b4490b6b562a18a195addc8b554 | refs/heads/main | 2023-01-07T21:41:02.673658 | 2020-11-03T14:24:50 | 2020-11-03T14:24:50 | 308,889,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class PresstvConfig(AppConfig):
name = 'pressTv'
| [
"a.jafarzadeh1998@gmail.com"
] | a.jafarzadeh1998@gmail.com |
5682f517f5c1795e283d9fbc3d17cb77b2c67060 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Wyx_w_M_w_Sob_to_Wz_focus/IN_Sob_k15_EroM/Sob_k15_s001_EroM/pyr_Tcrop255_p60_j15/pyr_5s/L3/step10_a.py | 0112794823a31b19968d9437b4bb2fa90a4fd65b | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,850 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
00da0d7ae1145d2e6bc178fca1111e2d7c21d7ad | 01ee722200235e47d5d08d83a44ab72bec421aaf | /LocalServer/Inventory/views/home.py | 255a74b77c13a8ba0caba119a252c51584804a5d | [] | no_license | CG3002-Design-Project/CG3002 | 47d1466dbb0e2e3d53147468406d41ac73fb6247 | 70b92161689d9ae6515bd0a992682183f5aafde6 | refs/heads/master | 2018-12-28T17:35:15.774807 | 2013-12-08T11:51:45 | 2013-12-08T11:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.template import Context, loader, RequestContext
from Inventory.models import Inventory, RequestDetails
from Inventory.models import Product
from Inventory.models import Transaction
from datetime import date
from decimal import *
from d... | [
"poo.dav@gmail.com"
] | poo.dav@gmail.com |
54f1cbd6a9ca5855b001c659cc3cfe4b7a0aae71 | 8452e5d4864ffd69cf528ac1a6504b59c44dfb96 | /deam.py | 64a9dcfea7f3871a7f7d67462f145f5a0eb505c9 | [] | no_license | zhang-python/ssh_lianxi | 707c7d112eae3c3e42237e24d9fe5c556ad79f53 | ee6822020b8d1513c3bc6a386faa1e89a9db1eb0 | refs/heads/master | 2020-09-08T02:07:00.622670 | 2019-11-11T12:24:34 | 2019-11-11T12:24:34 | 220,980,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | print('one')
print('two')
print('three')
print('four')
print('five')
print('six')
print('seven')
print('eight')
print('nine')
| [
"784913775@qq.com"
] | 784913775@qq.com |
100b195881073cab936847756bee9bbca6c61300 | c9f26cefc6325503e94e14d7bcc06c26f59ae701 | /Shell/Kechocat.py | 88eaf85b3538cce5a5c4b93dae5354382bfe70e5 | [] | no_license | nivbhaskhar/Tools | 92743788fee80f2f339efd1fc0b5e01996f0e774 | d6ec4ed338578830b3da3fa8af692319127aebf0 | refs/heads/master | 2022-12-06T11:34:30.590121 | 2020-09-04T04:52:00 | 2020-09-04T04:52:00 | 268,422,303 | 0 | 0 | null | 2020-06-02T14:08:49 | 2020-06-01T04:08:33 | Jupyter Notebook | UTF-8 | Python | false | false | 103 | py | import sys
print(' '.join(sys.argv[1:]))
try:
while True:
print(input())
except EOFError:
pass
| [
"nivbhaskhar@gmail.com"
] | nivbhaskhar@gmail.com |
b3e740a0b9efebccd943477359ab43b75987d7c2 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/sw5.py | 6ff3c55a6f3707c4e80f76687713728c3404fcd7 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
1cea74f4cade6ca228fd43ae326070c0be4b24c4 | f85df4b1eedbabeef82f9ec8d54e10a7a9544e6e | /gameplay/field.py | 09f0f7a813526b3aa0d116da972af16c5c10ee5e | [
"MIT"
] | permissive | hristy93/FallingRocks | ce387930ea7eb8173a7244999141556b6736cf4b | 42e3dd282e43717cec001578a17ffd3e00a8b410 | refs/heads/master | 2020-04-04T17:47:36.220197 | 2016-02-17T16:45:28 | 2016-02-17T16:45:28 | 35,620,170 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | from player import Player
from rock import Rock
from powerup import Powerup, PowerupType
from bullet import Bullet
class Field:
def __init__(self, width, height):
self.width, self.height = width, height
self.rocks = []
self.powerups = []
self.bullets = []
self.__player = Pl... | [
"hristi@gbg.bg"
] | hristi@gbg.bg |
717318d0c198f61b25d44184c633b78a922e0488 | ef390f231b4d8e11e87f3cbe6066ebe2337ce099 | /MyRMS/urls.py | 99f166469233f42d271bb3a76adb21f720466711 | [] | no_license | ShantanuBadmore/MyRMS | b46943047705e1fd132cae4bb29acb2ba59fc2b4 | f47011fc2c04f6534c9a61e36608697ecb4acde9 | refs/heads/main | 2023-02-02T05:41:35.670591 | 2020-12-16T13:11:09 | 2020-12-16T13:11:09 | 317,527,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | """MyRMS URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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... | [
"shantanubad21@gmail.com"
] | shantanubad21@gmail.com |
1a182f8146133ca9bc2464aae199c57b3fe6bab9 | fc6e807c122e77a02bf9fa34fc57e90ebf939b12 | /src/read_mat.py | cd8a54936b4e58a27459d9a549dcd6180844193e | [] | no_license | kittenish/Frame-Transformer-Network | e924a522fc833df54446a82414df827f83e93348 | 2dda0209ad7dca8f014b9f94d6175f297a825646 | refs/heads/master | 2021-01-20T03:34:50.296022 | 2017-06-17T02:48:13 | 2017-06-17T02:48:13 | 89,558,047 | 17 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import scipy.io as sio
import h5py
def read_mat(url):
data = sio.loadmat(url)
return data
def read_mat_v(url,name):
with h5py.File(url, 'r') as f:
data = f[name][()]
return data
| [
"jrgao0614@gmail.com"
] | jrgao0614@gmail.com |
fcc7c1431834b67b33c402bba7abe6602a5fdf0b | 972e97bbf213ccd29592618638caac1985fc8ffc | /models/VGG.py | dccb86e182d38b33b92ecca64e609a6a1971f467 | [] | no_license | LouisChenki/CNNs-Pytorch | 72222297a91b02af73e2ee9edcba0f3094a7ff97 | 8dfe86c339a1e6ce0d4d4678caa555df7bffbd82 | refs/heads/master | 2020-08-06T13:24:41.359640 | 2019-10-08T02:07:22 | 2019-10-08T02:07:22 | 212,990,894 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,365 | py | import torch.nn as nn
def Conv3x3(in_f, out_f):
return nn.Conv2d(in_channels=in_f, out_channels=out_f, kernel_size=3, stride=1, padding=1)
def Conv1x1(in_f, out_f):
return nn.Conv2d(in_channels=in_f, out_channels=out_f, kernel_size=1, stride=1)
def MaxPool():
return nn.MaxPool2d(kernel_s... | [
"noreply@github.com"
] | LouisChenki.noreply@github.com |
73b652f3a24c54f91a9bbff23c0ecf91a474ae00 | 76e59b924b91cea92f86bb2563a16d77ed9d4121 | /blog/migrations/0001_initial.py | 4c7bb15def04552395c315e3566f4a31405d8c3a | [] | no_license | rwalt04/my-first-blog | 8325964605ee6fefe5cdc2de9939e9c88e576f62 | ee406c259c417c58859278e8e0cb4f31ac636cdd | refs/heads/master | 2020-06-16T23:28:16.477740 | 2017-01-10T21:20:50 | 2017-01-10T21:20:50 | 75,058,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-09 04:38
from __future__ import unicode_literals
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
depe... | [
"rwalt04@gmail.com"
] | rwalt04@gmail.com |
6432cf6c0bb2012d7369a431a646f38b43800201 | 29a4e8ffa77a09c418712bb243e1b4d24336e0c1 | /nbgrader/formgrader/base.py | 326ee4c2852b3763977915e7b9e277acf09f721b | [
"BSD-3-Clause"
] | permissive | silky/nbgrader | f52634438d79df80de077569e94562f08f123f0b | 30f461ee06a03a1e2ed1789016bb49e9f59e61eb | refs/heads/master | 2021-01-18T00:23:18.300627 | 2016-01-08T22:06:45 | 2016-01-08T22:06:45 | 50,624,512 | 1 | 0 | null | 2016-01-29T00:21:36 | 2016-01-29T00:21:36 | null | UTF-8 | Python | false | false | 2,554 | py | import json
import functools
from tornado import web
def authenticated(f):
@functools.wraps(f)
def wrapper(self, *args, **kwargs):
result = self.auth.authenticate(self.request)
if result is True:
return f(self, *args, **kwargs) # Success
elif result is False:
ra... | [
"jhamrick@berkeley.edu"
] | jhamrick@berkeley.edu |
932ed77b62071e2341a521257a94cd2988c67347 | 1680de86a673db3370327cdedc891b6c4f6a698c | /examples/flask/app/models.py | f5f2962cf79f66bdebdd2087e8067ebaa52c9d12 | [
"Apache-2.0"
] | permissive | broadsheet/facebook-sdk | cf477f84de339d6ca9a362fb1a0a283b801f9d79 | 5d4d4723904ca41a944d2c537a4073a43d0066cf | refs/heads/master | 2020-05-29T20:39:02.938799 | 2019-07-18T01:56:27 | 2019-07-18T01:56:27 | 189,357,850 | 0 | 0 | Apache-2.0 | 2019-05-30T06:24:39 | 2019-05-30T06:24:38 | null | UTF-8 | Python | false | false | 532 | py | from datetime import datetime
from app import db
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.String, nullable=False, primary_key=True)
created = db.Column(db.DateTime, default=datetime.utcnow, nullable=False)
updated = db.Column(db.DateTime, default=datetime.utcnow, nullable=Fals... | [
"personal.mitchellstewart@gmail.com"
] | personal.mitchellstewart@gmail.com |
c315f03c95140d141e56d7df055e3cacaea8396e | b89ce8c23c4b8a62e98e5ee26fe00563dccd9a57 | /ex23.py | 5f4b193c45fc74d4368e166349c96dab01bffecf | [] | no_license | LemonGuai/python_study | 5cf1fd526059902f82f367dab2ec27ce1b08c584 | 00b37575610d5a53f6391c6736ffde6ae59691d6 | refs/heads/master | 2021-06-14T03:37:14.412638 | 2021-05-21T14:07:19 | 2021-05-21T14:07:19 | 181,149,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | import sys
script, encoding, error = sys.argv
def main(language_file, encoding, errors):
line = language_file.readline()
if line:
print_line(line, encoding, errors)
return main(language_file, encoding, errors)
def print_line(line, encoding, errors):
next_lang = line.strip()
raw_bytes... | [
"csf2412297817@163.com"
] | csf2412297817@163.com |
722d79cb29211d56a0e6316bfa66ae6081ac3f71 | f928722af30cf9b029ec3713d0f430d725281a1f | /Dataset/JigsawImageLoader.py | d34689c542d41f77eaf6bce8cf0f82681e0a78a5 | [] | no_license | pneha2612/JigsawPuzzlePytorch | 3cbf0efd24698654396b3c574256af8f5cd6ba7c | 44ff69656101abd5fe5671fb03d70df4e018f8b8 | refs/heads/master | 2021-05-04T04:37:43.229224 | 2018-02-01T15:29:59 | 2018-02-01T15:29:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,773 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Aug 18 11:58:07 2017
@author: Biagio Brattoli
"""
import os, numpy as np
from time import time
import torch.utils.data as data
import torchvision.transforms as transforms
import torch
from PIL import Image
class DataLoader(data.Dataset):
def __init__(self,data_path,txt_... | [
"biagio.brattoli@iwr.uni-heidelberg.de"
] | biagio.brattoli@iwr.uni-heidelberg.de |
35b45b2be379d6f6d530bbdbd64ba03d01e366ed | 3967da624f40f5d865dfdd0a788cbadd3e4a5361 | /python/searching/__init__.py | 96fff532442fb73a147ab67521c186297489aff8 | [] | no_license | hero24/Algorithms | 42f459a5c8b98074afb9e453e0e5774bf25964d1 | 8bdaed13581825bdafa0db835fa5faf00ecc3e10 | refs/heads/master | 2023-04-16T23:50:02.839615 | 2023-03-27T16:54:32 | 2023-03-27T16:54:32 | 76,741,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from .sequential_search import sequential_search
"""
Tell me and I forget. Teach me and I remember. Involve me and I learn.
-Benjamin Franklin
"""
__all__ = [
"sequential_search"
] | [
"hero24@interia.pl"
] | hero24@interia.pl |
11ef771bc27ddb7e52d28fc879db132d23f2b521 | 7ba87be3b62ebd3647762984d7190d4c0abc4aa1 | /patternnum5.py | b350698aede947d327dc28bd0f2394ee37f3fe91 | [] | no_license | pradeepdevloper1/Learn_Python_CN | 7ca0d70e2cb5050bff2e090ec08cf97e4c38da2e | cf2978f52c68511cb93c03922aecae570ae9b009 | refs/heads/main | 2023-02-03T23:39:17.738748 | 2020-12-22T18:29:58 | 2020-12-22T18:29:58 | 323,703,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | ## Read input as specified in the question
## Print the required output in given format
n=int(input())
if 0<=n<=50:
i=1
while i<=n:
j=1
while j<=i:
print(j,end='')
j+=1
print()
i+=1 | [
"pradeep.kumar@worldfashionexchange.com"
] | pradeep.kumar@worldfashionexchange.com |
a2766e32c26c9292bc462dff5135525659e4db57 | 4b126dcb6009fd1e26c1290fa35c931ba5727aea | /blog/views.py | fe837e5f0de0c59e80a16e671f86abf5b172d2ce | [] | no_license | LetitiaWood/django3-personal-portfolio | 4438855759a8203d0d841d66e2b090d456d94565 | a8ebf2427c8e307702961a3ea8df698a71fcb80d | refs/heads/main | 2023-04-11T06:40:43.490232 | 2021-04-24T02:50:38 | 2021-04-24T02:50:38 | 361,054,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from django.shortcuts import render, get_object_or_404
from .models import Blog
# Create your views here.
def all_blogs(request):
blog_count = Blog.objects.count()
blogs = Blog.objects.order_by('-date')[:3] #the most current three blogs will pop up;
return render(request, 'blog/all_blogs.html', {'blogs':b... | [
"Letitia_wood@icloud.com"
] | Letitia_wood@icloud.com |
16a022ce2a690a35a8a10124359ea68c2b3f76b7 | 327e84ccc0d6cb4974186bf18cd513dfcb8b06da | /veiculos/migrations/0002_veiculo_valor.py | 884522474b77fdcc2095e9f60a267eebd3eea2ab | [] | no_license | JoaoLucasMB/programacao_comercial | cc8b57a286dd03018c124ce2ab2e6a4baf206dd4 | d7f2f50365ac085a4029b29fb1ddf5c39064bb12 | refs/heads/main | 2023-01-31T21:51:22.466716 | 2020-12-14T23:33:54 | 2020-12-14T23:33:54 | 313,310,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 3.1.2 on 2020-11-23 23:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('veiculos', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='veiculo',
name='valor',
fi... | [
"jaum998@gmail.com"
] | jaum998@gmail.com |
d81ccc034bd7fcfa57f92932c57ec419606bb49a | 0f3138e1c353b1bdc9a6252b6f06c8266767681f | /sparvbot/utils.py | ba19a7bfef0ce71a4250a71acd7a228829d6c87c | [] | no_license | Sparvnastet/sparvbot | 46ade580082a49c185278ecfd644a2d9d6a24cdb | 9b17ed7ab110d44f5ecf874017d5da063dc94aa8 | refs/heads/master | 2021-01-01T16:25:31.908508 | 2014-02-27T21:19:37 | 2014-02-27T21:19:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | import sys
if 'gevent' in sys.modules:
import zmq.green as zmq
else:
import zmq
zmq_ctx = zmq.Context()
| [
"adis@blad.is"
] | adis@blad.is |
68c6872a92d545946338db2bc054259b20769654 | d584b46ae0b5d6ac340ac3730e87d0ec1050ba00 | /tools/adafruit_mlx90640.py | c1cd5a4bf197d9b0df57abe4234bf38764244584 | [] | no_license | aaron-c-zhao/PeopleCounter | 74d0dfb301273fb8c97fd0df5a8e4de60ccc58d0 | b4c15fc5dc082c9198d01005e49a56691c2c0440 | refs/heads/master | 2022-11-26T17:32:59.183497 | 2020-08-09T08:36:23 | 2020-08-09T08:36:23 | 279,967,633 | 3 | 0 | null | 2020-07-22T18:41:29 | 2020-07-15T20:11:34 | C | UTF-8 | Python | false | false | 26,928 | py | # The MIT License (MIT)
#
# Copyright (c) 2019 ladyada for Adafruit Industries
#
# 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
#... | [
"aaron.zhaocr@gmail.com"
] | aaron.zhaocr@gmail.com |
e62a14fe12df472397d2a04fcbe08d76194ed0ed | c117487299300174881a1fcc33d8214b40a70a05 | /_LaunchpadDJ/launchpadchannelstripcomponent.py | 7d409c7c8aed4f1dc07dd997188821366fa82923 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | alandrees/RemoteScripts | 2e3f2bf72e57249f7bc6b3c47931bde9d02dfeea | 468a98c6652e38dc7887bd7e99338ee4f0cfc8b3 | refs/heads/master | 2020-12-24T16:15:04.714352 | 2013-06-11T16:27:29 | 2013-06-11T16:27:29 | 10,479,183 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,706 | py | import Live
from _Framework.ControlSurfaceComponent import ControlSurfaceComponent
from _Framework.ChannelStripComponent import ChannelStripComponent
from _Framework.ButtonElement import *
class LaunchpadChannelStripComponent(ChannelStripComponent):
def __init__(self):
ChannelStripComponent.... | [
"alandrees@theselves.com"
] | alandrees@theselves.com |
dfb43f4fff46cd2c3b565232d90d955ef89a1bb6 | bf6cf5e55349e414ccca0fc674f721f589e06e8f | /src/main/migrations/0016_auto_20170625_1315.py | 272f2a8814502db51d4b651ce79756fab5b0ccb4 | [
"MIT"
] | permissive | shashankmohabia/gymkhana-master | cc7e3db4847edc2f91fc752da2fc35ad055f237d | a0d399d781797a2f63fb81a1ae287714213d068b | refs/heads/master | 2021-05-03T10:29:29.596959 | 2018-02-06T23:27:16 | 2018-02-06T23:27:16 | 120,535,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-25 07:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('photologue', '0011_auto_20170625_1315'),
('main', '... | [
"shashankmohabia27@gmail.com"
] | shashankmohabia27@gmail.com |
adc1969c730cf5e6bf2379a42761dc2318e0ada4 | da738cb496c189c880e09c812874db9a48574df1 | /back/app/bets/admin.py | ef2428743df97730bd3831acbc33ccb7759237d0 | [] | no_license | SNVC1/mipt-fullstack2019 | 2972ed20e146394005fa41a29a25fc85674b2271 | 5dd6d5e61a8312917d68d863f6dca5876fad352a | refs/heads/master | 2023-01-08T10:40:58.535068 | 2020-11-10T17:59:19 | 2020-11-10T17:59:19 | 208,422,125 | 0 | 0 | null | 2022-12-12T18:12:35 | 2019-09-14T10:06:21 | TypeScript | UTF-8 | Python | false | false | 84 | py | from django.contrib import admin
from . models import Bet
admin.site.register(Bet)
| [
"iggy99@mail.ru"
] | iggy99@mail.ru |
c271cd860b5edf80188b50c7092ffd39060d9bd0 | 43dd3690516cb86641899d86599c0a1f79a8c97e | /src/lex_learn.py | 5138c9fd245cf46f1ae6021ca5edebdd637283d0 | [] | no_license | AlexTaran/automorphology | 506e1a8b7791aec2b9f172be071bf568513daf4e | 744943f41acdd8c1e869f3e8df1a43d712d13afe | refs/heads/master | 2021-01-01T19:50:29.369560 | 2015-04-25T22:33:37 | 2015-04-25T22:33:37 | 34,588,669 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,230 | py | #!/usr/local/bin/python
# -*- coding: utf-8 -*-
# Learn on Russian and apply to Croatian VS. Learn on Croatian and apply to Croatian
# Also build automorphology
import argparse
import codecs
import random
import cPickle
import datetime
import build_features
from collections import defaultdict
import spanish
impor... | [
"alex.y.taran@gmail.com"
] | alex.y.taran@gmail.com |
e27635633e6f0adc9349ef2572eaf2bf445bbf9f | 035853d5a569123412058061e4edea9bafe67021 | /R-Python-scripts/Jumpcount.py | 4d46b2be7e455193f75f50fa66cfcf2b2a2f6d2c | [] | no_license | XuetingQiu/FluDiffusionUS | 0d7c48814815ac704b16eff93edb57e8e5ba5566 | 2cce52707152bdb91feeb32ff245ae2ca172cd92 | refs/heads/master | 2020-04-19T20:08:56.136810 | 2019-11-01T18:26:28 | 2019-11-01T18:26:28 | 168,407,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | #JumpExtractor.py: Extracts Markov jump counts from a full jump history log file.
#for other use, this script needs to update the source of discrete trait state, the input of the log file, and the count of steps in the log file. Here it is 6880.
def main():
source = ['AF','EAP','ECA','LAC','MENA','NA','SAS','USA']... | [
"noreply@github.com"
] | XuetingQiu.noreply@github.com |
4e73ef6743cfa15be491eaee70edc8f3aa23a9d4 | 1f6e3f64cdb087b2c294b3e4c0406c3674b43e7a | /notification_request_queue.py | dd75d7a503f7c9a78f291bbf8534c0c15e5062d1 | [] | no_license | rajithakalapatapu/chatclient-offlinemessage-storagedelivery | cfd6c1102144b3d1fcd8675593f1c6006a6c8c34 | ab06c8b0e06d39c4f8c5a6eb7824125fc7f213d6 | refs/heads/master | 2021-05-17T15:42:35.798607 | 2019-04-25T03:01:51 | 2019-04-25T03:01:51 | 250,850,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,823 | py | """
Name: Venkata Adilakshmi Rajitha Kalapatapu
Student ID: 1001682465
Login ID: vxk2465
"""
import queue
class NotificationRequestQueue:
def __init__(self):
# Start a queue
self.request_queue = queue.Queue()
def add_request(self, student, course, approval_decision):
try:
... | [
"rajithakalapatapu9@gmail.com"
] | rajithakalapatapu9@gmail.com |
f61b69e59a5f3df86af281eb1cb0ccc016d7d18e | 63d28241de5d5f8f6ea998865124106761eba317 | /beaker/__init__.py | 2d669b3124144289cba77e9e8b1cf96bb56f896c | [
"LicenseRef-scancode-warranty-disclaimer",
"BSD-2-Clause"
] | permissive | isabella232/beaker-1 | e2aba9947d176c4683921b862a6168af68d7e7f6 | 3d5b74a61eaadd28d6917ab039fb9292cbc533ef | refs/heads/master | 2022-01-05T20:44:55.956425 | 2019-06-17T17:07:58 | 2019-06-17T17:07:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | __version__ = '1.9.0+dd.26'
| [
"noreply@github.com"
] | isabella232.noreply@github.com |
1a90a7a11a31b6d2bd8d513513d6dff28f93aca6 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/Phys/StrippingArchive/python/StrippingArchive/Stripping23/StrippingRD/StrippingD23MuLines.py | f22c2b8963448ca27883ac74c5c22c1eb3680061 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,651 | py | """
Module for construction of D+ -> mu l+ l- lines
Performance
Full.dst:
#########
StrippingReport INFO Event 500000, Good event 500000
| *Decision name*|*Rate,%*|*Accepted*| *Mult*|*ms/evt*|
|!StrippingD23MuD23MuLine ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
0dba7b476911bf14bd295c3c9931ec58a7c48b12 | 31779cb000b2f33a1af94fc5919bca40a6a80485 | /Snake_pygame.py | ae0413a59f580984c923c9378979b3eac72d2314 | [
"MIT"
] | permissive | lfanning8281/Per3_Charlie_pygame | bf10b94f61e97bbbcb5b72c2db292d805ee9c071 | 8d479c3a31c788cee913280a03b7b019b2523a52 | refs/heads/master | 2020-03-13T23:00:16.720767 | 2018-06-07T20:35:38 | 2018-06-07T20:35:38 | 131,327,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,918 | py | import pygame, random, sys
from pygame.locals import *
import snake_game
def collide(x1, x2, y1, y2, w1, w2, h1, h2):
if x1+w1>x2 and x1<x2+w2 and y1+h1>y2 and y1<y2+h2:return True
else:return False
def die(screen, score):
f=pygame.font.SysFont('Arial', 30);
t=f.render('Your score was: '+str(score), True, (0, 0, 0)... | [
"LFanning8281@student.pps.net"
] | LFanning8281@student.pps.net |
61da67eb396105306a86db070d5dde3620b80f21 | 71f8ecf0ff44ae70d506d6dc68e933a7f5b2f984 | /main/gameModule/events.py | 2bdb5c5fe7dadcf33fdb298c918d10dbc36c9024 | [] | no_license | CitationNerded/PythonGameFromJad | 801b700b0273e25414b36b87ae2c8c157c5cb4ec | 937bc754a708ca46ddbd7f652557a0e85fb2221e | refs/heads/master | 2022-12-21T12:30:33.793025 | 2017-08-16T21:51:10 | 2017-08-16T21:51:10 | 85,260,221 | 0 | 3 | null | 2022-12-20T02:55:17 | 2017-03-17T02:03:04 | Python | UTF-8 | Python | false | false | 7,543 | py | """events - contains events and game classes."""
DIRECTION_UP = 0
DIRECTION_DOWN = 1
DIRECTION_LEFT = 2
DIRECTION_RIGHT = 3
class Event:
"""Event - superclass defines events that any objects that maybe called by the event manager."""
def __init__(self):
"""Initialise Event Class."""
self.nam... | [
"jad.pamment@assurity.co.nz"
] | jad.pamment@assurity.co.nz |
6685eda1a70bab345ddc6f996c018feac6a6c741 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03371/s173081591.py | e631cebeb539f9cb5923fd6e498f3a402e717958 | [] | 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 | 386 | py | import sys
read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7
def main():
A, B, C, X, Y = map(int, readline().split())
ans = A*X+B*Y
if X>=Y:
ans = min(ans, C*Y*2+A*(X-Y), C*X*2)
else:
ans = min(ans, C*X*2+B*(Y... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
0567fe4ebe88254f30e3acdf850eb08984dcd1e3 | 8a1f1d72d2672bedc81bc452090110ac3b442852 | /dashboard/venv/lib/python3.6/_collections_abc.py | e54681d9f004aad0fe6cfcae94799ca27f04d4cb | [] | no_license | lilyli333/HH-Intervention-Dashboard | 2386b97d6ebb705da0d6f6b7c4b4538db27339d7 | e55f3751e0780c700fc6b486100d87f0141e891f | refs/heads/master | 2020-03-21T04:29:43.159523 | 2018-06-21T02:47:21 | 2018-06-21T02:47:21 | 138,111,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | /Users/lilili/miniconda3/lib/python3.6/_collections_abc.py | [
"lily.jiayu@gmail.com"
] | lily.jiayu@gmail.com |
21d259e2bd0230f61d9018f3536a28303133178b | e8d4fe2361d71aef6519f666152f14137156159c | /impacket-0.9.11/build/lib.linux-i686-2.6/impacket/dcerpc/dcerpc_v4.py | 5099c5aaaf72e06ee8a13bc334ed7399833f905f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Apache-1.1",
"BSD-2-Clause"
] | permissive | kenzshi/DDoSProject | 11d7e676a150964a9f78f1b7e1df4468dd9d973f | 9587a2be7f4773d19a96a35d1128f5041f0472da | refs/heads/master | 2021-01-10T19:48:21.355849 | 2015-03-16T09:52:22 | 2015-03-16T09:52:22 | 30,205,639 | 42 | 32 | null | null | null | null | UTF-8 | Python | false | false | 8,951 | py | # Copyright (c) 2003-2012 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# $Id: dcerpc_v4.py 529 2012-04-29 21:39:46Z bethus@gmail.com $
#
# Description:
# Handle basic DCE/R... | [
"la236am@users.isi.deterlab.net"
] | la236am@users.isi.deterlab.net |
4713ab6f5aae7a77619093867729676a2e15c423 | 5aefcc44dd516815cd98ccef27a2de4acefba4d9 | /otp.py | c80885e00825b8367b8d36f31d0498dffd7b5cc8 | [] | no_license | hanshanglin/polyu-comp3334-project | f9bc962316b7179a82ff65d99f77ce71e6a09868 | a70103079ba05b16b8a0afdc0bb238f855cac645 | refs/heads/master | 2022-07-03T18:56:32.632449 | 2020-05-19T04:00:17 | 2020-05-19T04:00:17 | 261,059,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,534 | py | import time
import random
import math
import os
import modapk_win
__PLATFORM__="WINDOWS"
class OTP:
TickIntervalSeconds=30
PasscodeLength=6
_rng=random.SystemRandom()
def __init__(self, tick_interval, passcode_len):
self.TickIntervalSeconds=int(abs(tick_interval))
self.... | [
"noreply@github.com"
] | hanshanglin.noreply@github.com |
8f26465aaa04312133e55a3be07fa3ebfdaba5af | 3196460db64eded2daa77457643c8dd1ed1ba99e | /codechef/steve/COINS-wrong2.py | b8ec3851c8d755ef25b8402d188b8199eba086e0 | [] | no_license | prototypemagic/proto-mastery | 94c649958792f00ea2a057b63ed0f7717b5ab05d | 45f7ef2e998fa7dbc071f5c42217a83fd9340f51 | refs/heads/master | 2020-05-28T08:55:45.769199 | 2012-09-10T22:12:00 | 2012-09-10T22:12:00 | 3,097,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python
# Steve Phillips / elimisteve
# 2012.01.04
# The following is wrong, to say the least, because input == 13 should
# produce output == 13, not 14. As the problem states, you cannot
# exchange Bytelandian coins for other Bytelandian coins.
def naive_max(num):
# Given in problem description
... | [
"elimisteve@gmail.com"
] | elimisteve@gmail.com |
1b48913b917116ee78220345bf0711faabb87c05 | 4d595d16ff3479b2acea959f43ce7e5be46d74ce | /kNN.py | 7bcc3f7eea3daa643073fb7024b134970d37fc9e | [] | no_license | WnFg/Machine-Learning | 0f120fae457bed3c33f092d97bf40051a0005ba3 | 17090779998988c98c5d36e2c59fe28038b72630 | refs/heads/master | 2020-05-17T21:58:20.860201 | 2015-08-13T01:53:12 | 2015-08-13T01:53:12 | 40,249,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | from numpy import *
import operator
def createDataSet():
group = array([[1.0,1.1],[1.0,1.0],[0,0],[0,0.1]])
labels = ['A','A','B','B']
return group, labels
def classify0(inX, dataSet, labels, k):
dataSetSize = dataSet.shape[0]
diffMat = tile(inX, (dataSetSize,1)) - dataSet
sqDiffMat = diffMat**2
sqDistances = ... | [
"496100630@qq.com"
] | 496100630@qq.com |
13bd0e18fa8d78f69cd492c552c543a620fc6260 | 72a77764946ed570d96ae673103f39c35ebf0e00 | /test_unittest_1.py | 5fb24715d824b6ce1ba8b39cd7fe386de52eab37 | [] | no_license | WasAlexHere/AutomationTest | 029094b41c467540fe92a70400300bdacd57f99a | b8d3f37e1d53815dbb2f1005907559c9bbb86376 | refs/heads/master | 2023-05-13T17:28:52.550554 | 2020-08-02T14:41:17 | 2020-08-02T14:41:17 | 280,935,249 | 0 | 0 | null | 2021-06-02T02:43:47 | 2020-07-19T19:25:20 | Python | UTF-8 | Python | false | false | 2,814 | py | import unittest
from selenium import webdriver
class TestLogin(unittest.TestCase):
browser = webdriver.Chrome()
def test_login1(self):
link = "http://suninjuly.github.io/registration1.html"
self.browser.get(link)
# Ваш код, который заполняет обязательные поля
input1 = self.br... | [
"sethtorston@mail.ru"
] | sethtorston@mail.ru |
e239b9fc54ed81cbc21409cf99891fe420dbbda3 | 939fbd0184a77bef1e406227320e6bacedc8acfc | /linkerd/datadog_checks/linkerd/__about__.py | 3a3af84f9a651aa4f9d19deb558c73f71935b8a2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | netsil/integrations-core | d08b8df76c4ff7fea293c66404ac7f63153d2e51 | ca1502937ed4febc6e426950b209ffd6263197fb | refs/heads/epoch/5.23.0 | 2023-06-08T01:22:29.394361 | 2022-10-12T11:32:29 | 2022-10-12T11:32:29 | 112,673,395 | 4 | 6 | BSD-3-Clause | 2022-10-12T11:32:30 | 2017-11-30T23:48:59 | Python | UTF-8 | Python | false | false | 129 | py | # (C) Datadog, Inc. 2018
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
__version__ = "1.0.0"
| [
"noreply@github.com"
] | netsil.noreply@github.com |
a3bfb2d0297ea76d5536aa7f89ed478033f0da6a | 25d65018ce75445949711fb7d9d761cdefeed640 | /Q-Learning-for-Trading/envs.py | 7de54089df16b44c1513b67a49149d5d3d62ef2d | [] | no_license | kimcaprio/Trading_Stock_Market | a69998198431e8754603b5e018be7120ca4ea8a1 | 864e54681abdc26500b9cc9dacee4ac732076272 | refs/heads/master | 2023-01-24T18:17:56.033233 | 2020-11-25T01:47:54 | 2020-11-25T01:47:54 | 275,816,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,728 | py | import gym
from gym import spaces
from gym.utils import seeding
import numpy as np
import itertools
class TradingEnv(gym.Env):
"""
A 3-stock (MSFT, IBM, QCOM) trading environment.
State: [# of stock owned, current stock prices, cash in hand]
- array of length n_stock * 2 + 1
- price is discretized (to ... | [
"kimcaprio1@naver.com"
] | kimcaprio1@naver.com |
a8bc57c698c594a2bbcddc5d8812f0eacc6865c7 | efbee30a83911a7dda989fb4536dd7132278aca1 | /whileLoop.py | b00e004c2c74fa1542762f526fe1ba58b51cc155 | [] | no_license | sarvani-chitturi/binary-search | 71c9cbb3bf057cddadbdeadd3a5292c687b46d49 | 6d4b4a41e7a91a2aad5369f47c8060af42fb4f75 | refs/heads/master | 2023-01-02T12:27:34.542572 | 2020-10-09T14:25:56 | 2020-10-09T14:25:56 | 302,661,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Aug 25 10:21:36 2020
@author: Amarnadh
"""
i=1
while i<=5:
print(i)
i+=1
print("List using while")
x=[10,20,30,40,50]
i=0
while i < len(x):
print(x[i],end=' ')
i+=1
| [
"121910301041@gitam.in"
] | 121910301041@gitam.in |
2ccb58c676f371f045e4777a7fdb56173c709531 | 86f5f27668717a2a5bb6a9ee31eece98859e672e | /HANDSHAKEEE/server.py | c49fe9d14778513dd1d1d84550696ce03326905f | [] | no_license | GustavoGB/Physical-Layer | 7e18f4de33b90507f89f21406024a26bbfc21658 | 645e91fc341301c58d55eb4c9746edacb2ab4eea | refs/heads/master | 2021-01-24T09:04:09.037995 | 2018-06-17T23:53:08 | 2018-06-17T23:53:08 | 123,000,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,997 | py |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#####################################################
# Camada Física da Computação
#Carareto
#17/02/2018
# Aplicação
####################################################
from enlace import *
import time
# Serial Com Port
# para saber a sua porta, execute no terminal... | [
"gustavo.gobetti98@gmail.com"
] | gustavo.gobetti98@gmail.com |
1e905c442fe41f352798eab774b333e0624ba426 | 4292e22ea0014183186ffbb692eb252552359f86 | /infrastructure/tools/get_inventory.py | fb010b4bcea083d4ca4e7f434266765b80d6b5b7 | [
"MIT"
] | permissive | nhsx/covid-chest-imaging-database | 28127c41b0aa0e2e424594d17cd2f1d3fdebb5e3 | 9946684521130761e6f39b01d1651e61fc79080f | refs/heads/master | 2023-08-24T12:00:13.589048 | 2023-08-14T14:59:29 | 2023-08-14T14:59:29 | 252,395,273 | 63 | 13 | MIT | 2023-09-11T05:01:02 | 2020-04-02T08:15:51 | Python | UTF-8 | Python | false | false | 1,839 | py | #!/usr/bin/env python
import argparse
import logging
from pathlib import Path
import boto3
logging.basicConfig(level=logging.INFO)
def download_inventory(main_bucket, output_folder):
"""Downloading the relevant inventory files
Parameters
----------
main_bucket : str
The main warehouse buck... | [
"gergely.imreh@faculty.ai"
] | gergely.imreh@faculty.ai |
143fe68d7f6815fea8d18f1fb028024f23bd7c51 | bd02997a44218468b155eda45dd9dd592bb3d124 | /leetcode_course-schedule2.py | ca4b99612fab4cd4749f3814a1054bbfb691055d | [] | no_license | rheehot/ProblemSolving_Python | 88b1eb303ab97624ae6c97e05393352695038d14 | 4d6dc6aea628f0e6e96530646c66216bf489427f | refs/heads/master | 2023-02-13T03:30:07.039231 | 2021-01-04T06:04:11 | 2021-01-04T06:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | '''
Problem Solving leetcode course-schedule2
Author: Injun Son
Date: October 25, 2020
'''
import sys
import collections
import heapq
import functools
import itertools
import re
import math
import bisect
from typing import *
def canFinish(numCourses: int, prerequisites: List[List[int]]) -> bool:
graph = collectio... | [
"ison@sfu.ca"
] | ison@sfu.ca |
449b4ad21c79a9864610111fbf3661076f001bc8 | 9ae6ce54bf9a2a86201961fdbd5e7b0ec913ff56 | /google/ads/googleads/v10/services/services/customer_asset_service/client.py | eb20ce17a4036bc57b106277613558af2955bb19 | [
"Apache-2.0"
] | permissive | GerhardusM/google-ads-python | 73b275a06e5401e6b951a6cd99af98c247e34aa3 | 676ac5fcb5bec0d9b5897f4c950049dac5647555 | refs/heads/master | 2022-07-06T19:05:50.932553 | 2022-06-17T20:41:17 | 2022-06-17T20:41:17 | 207,535,443 | 0 | 0 | Apache-2.0 | 2019-09-10T10:58:55 | 2019-09-10T10:58:55 | null | UTF-8 | Python | false | false | 21,026 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | GerhardusM.noreply@github.com |
4e8b509ecc099975f3e38d997799d301173a5bf0 | 59db4cd30b6677ba4f45d9b488d05c20a9f311b2 | /temperature_v_time.py | d8b720c559c25e03a3020f1e9c2c4208881c210d | [] | no_license | krmnino/XrayDiffraction-DataReduction | 1f11b5759d9efd9edcdb2a1185ab18c641972fee | eeec84220a70eb99a3bac1a624ff79fc797dbe7f | refs/heads/master | 2020-11-24T11:17:44.694356 | 2019-12-15T03:27:44 | 2019-12-15T03:27:44 | 228,122,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,857 | py | ####################################
# temperature_v_time.py
# Python 3.x
# Kurt Manrique-Nino
####################################
import os
import numpy as np
import matplotlib.pyplot as plt
import sys
from datetime import datetime
def get_delta_time(time1, time2):
delta_t = time2 - time1
return ... | [
"kurt.manrique.n@gmail.com"
] | kurt.manrique.n@gmail.com |
f3e4a522d9167b441f81517f2bfe17f834b0dd6b | 553ac874ff9eeffffb9ee0567791a101cc68444c | /Mission_to_Mars/scrape_mars.py | 480b94d27830f63b65c4830870ef8b269d70488a | [] | no_license | carlmack01/web-scraping-challenge | e770950b094937984a7b1f99aa616296088ae401 | 3aab6f47e785e8dff4dd8c24bb4dcaf4f792f041 | refs/heads/master | 2022-11-28T23:33:33.245288 | 2020-08-13T18:56:21 | 2020-08-13T18:56:21 | 287,357,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,449 | py | from bs4 import BeautifulSoup as bs
from splinter import Browser
import pandas as pd
import datetime as dt
import time
import re
def scrape():
scrapedict = {}
executable_path = {'executable_path': '/usr/local/bin/chromedriver'}
browser = Browser('chrome', **executable_path, headless=False)
url = "https://mars.n... | [
"carlhmackensen@CARLs-MacBook-Pro.local"
] | carlhmackensen@CARLs-MacBook-Pro.local |
2e1ed6f855389c38f9ab0d89770b3963a29c5ff3 | fef3a61df017422bc2f867538ece7f496fa91416 | /icecreamratings/config/urls.py | 842634c0b8bca94faa2a14dcb441499d306fe714 | [] | no_license | qianzhaicun/my-first-blog | 1f7f2cc27c3c75d3c456ecdacb3286a4f4d1a484 | a3e03b389423ffb9e85c9fa9464bfb38efdbbde9 | refs/heads/master | 2020-12-03T09:22:04.555591 | 2017-06-28T01:23:26 | 2017-06-28T01:23:26 | 95,615,681 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='page... | [
"admin@DESKTOP-JCH074F"
] | admin@DESKTOP-JCH074F |
898fca67981db8c25af682928af05f412c567dc6 | c9f8532ea47337269e3f87cb3d75cccd8146536e | /data_pre.py | 9bf2fa09ac73513eac52b6c6267907b9b20e868d | [] | no_license | lianrenbao/huawei_remote-sensing | 6d174becb13981339c289f04775d872fe004eaa9 | 84f54eb5dd50c3eb5c9d2aaed6bdb475b4d5b924 | refs/heads/master | 2020-06-12T20:10:59.319499 | 2019-06-28T11:57:46 | 2019-06-28T11:57:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | import numpy as np
from functools import partial
import pandas as pd
import os
from tqdm import tqdm_notebook, tnrange, tqdm
import sys
from torch.autograd import Variable
from torch.utils.data import Dataset, DataLoader
from collections import OrderedDict
from torchvision import transforms as T
from imgaug import augm... | [
"noreply@github.com"
] | lianrenbao.noreply@github.com |
032e56abd8b0c04a05f86672375efe48bbc0e751 | ca37c80b43e342dd8013deffbb35b481fab21f5f | /convert.py | c601988bafd133488f7998dda9696b106b146bf6 | [
"MIT"
] | permissive | GraphSAINT/GraphSAINT | c95aeeab91acdd4210767e398839b2344ed8a42c | c9b1e340d7b951465ac4a9251eef93832e68b003 | refs/heads/master | 2022-09-01T02:16:30.441922 | 2022-08-12T06:08:09 | 2022-08-12T06:08:09 | 169,026,799 | 444 | 92 | MIT | 2022-08-12T06:08:10 | 2019-02-04T04:25:44 | Python | UTF-8 | Python | false | false | 1,409 | py | import scipy.sparse as sp
import numpy as np
import networkx as nx
import sys
import json
import os
from networkx.readwrite import json_graph
dataset_str=sys.argv[1]
baseline_str='data.ignore/'+dataset_str+'/'
dataset_str='data/'+dataset_str+'/'
if not os.path.exists(baseline_str[:-1]):
os.mkdir(baseli... | [
"GraphSAINTKDD19@gmail.com"
] | GraphSAINTKDD19@gmail.com |
7b297c2b84f94916505935159fe4c8239cfa6d6c | 170a991bc2cd5e5c2810c5466341f849c1fbfe24 | /googlesheets.py | 3edb11b85165c4c008a5dcf634ec859079fd44e2 | [] | no_license | derekYankie/my_googlesheets | d04ac08e3257177ff4fb57e02752aaf1f121a170 | ac3c0a82250e756a93d67f3401796474b85ab1ed | refs/heads/master | 2020-03-16T09:06:48.557562 | 2018-05-09T01:05:39 | 2018-05-09T01:05:39 | 132,608,896 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | import gspread
from oauth2client.service_account import ServiceAccountCredentials
#my
#permit cleint credentails to intercact with Google Drive Api and Google sheets api
scope = ['https://spreadsheets.google.com/feeds', 'https://www.googleapis.com/auth/drive']
#store credentails
my_creds = ServiceAccountCredentials.fr... | [
"derek.afriyie@gmail.com"
] | derek.afriyie@gmail.com |
cbaecb462463a2a78f6aa6396f7b0b1f959eabfb | 57cbbe35b1b5a7aa40b732aa6a9be3f7bfd5291f | /RunAlgorithm.py | 70756cbd03ea95b39dccef0b3aad1e7377797017 | [] | no_license | JoeyChaps/regularization | 18d1fb1233231ebd08496ff9a4b8db57d84e2055 | 235f6c58b28025ef9086e76aa5f7565c98753e97 | refs/heads/master | 2020-04-15T15:17:33.461376 | 2014-12-31T05:31:44 | 2014-12-31T05:31:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,633 | py | #!/usr/bin/python
#######
# File: RunAlgorithm.py
# Project: Regularization
# Author: Joe Chapman
# Date: 9-8-14
# Url: https://github.com/JoeyChaps/regularization
#######
import Regularizer
import DataRandomizer
from time import gmtime, strftime
import os
import math
import shutil
import sys
import getopt
def isnumb... | [
"jchapmantx@hotmail.com"
] | jchapmantx@hotmail.com |
066e81a0fbe03a8fbc53b78c094138284f850ede | 6c80119e02bb29761fc7854c5a2f2a144451ca5a | /tests/fakeIDP.py | 971281cd5d87940746d418b565f9b43de490a12b | [
"BSD-2-Clause"
] | permissive | josjevv/pysaml2 | c412a21db7a52334bf67feeabc38f877a121f973 | f806786f6dad8fc2b03daa0e1d55682daead3ec8 | refs/heads/master | 2020-12-25T12:17:41.628279 | 2013-04-22T11:45:25 | 2013-04-22T11:45:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,520 | py | from urlparse import parse_qs
from saml2.saml import AUTHN_PASSWORD
from saml2.samlp import attribute_query_from_string, logout_request_from_string
from saml2 import BINDING_HTTP_REDIRECT, pack
from saml2 import BINDING_HTTP_POST
from saml2 import BINDING_SOAP
from saml2.server import Server
from saml2.soap import pars... | [
"roland.hedberg@adm.umu.se"
] | roland.hedberg@adm.umu.se |
cd3cc071876da1756cf23e55593a8321a820dca2 | 7f7d31cc7728ebff806e5ab49321572d08198764 | /Chess-Engine/6. EnPassant and Pawn Promotion in Advanced Algo/ChessMain.py | ed4ec4b840b195624701ab281baf414f69cb2d9d | [] | no_license | Aneiongit/Bootcamp | 02dff9cda47f109e97faa6732e2b610f3a275452 | cf562ec12afd63a47ad5e48e4d1496e98afe4624 | refs/heads/main | 2023-07-17T14:55:41.699169 | 2021-09-03T09:40:16 | 2021-09-03T09:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,634 | py | """
This is our main driver file. It will be responsible for
- handling user input
- displaying current GameState object
"""
import pygame as p
import ChessEngineAd as ChessEngine
# import ChessEngine
p.init()
WIDTH = HEIGHT = 480
DIMENTION = 8 # 8*8 CHESS BOARD
SQ_SIZE = HEIGHT // DIMENTION
MAX_FPS = 15
IMAGES =... | [
"Goh15@wp.pl"
] | Goh15@wp.pl |
d125fd84b86e729ddc089d31810ce1cd547079c7 | 8a4405ff28d61133d451f187a443f7db9758655c | /pstipspider/pipelines.py | 75808af3eba1b95df171e6ee75dd2700f991d38f | [] | no_license | co89757/pstipspider | 2dc5ca50528b039972b06023531841abe6bb2618 | 1b7bf719e8be8589dffa9cbdc49606a3b7d1bdce | refs/heads/master | 2021-01-25T00:57:21.251609 | 2017-06-18T19:47:15 | 2017-06-18T19:47:15 | 94,708,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | # -*- coding: utf-8 -*-
import pstipspider.settings as proj_settings
from scrapy.exceptions import DropItem
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class PstipspiderPipeline(object):
def... | [
"colin.brat@gmail.com"
] | colin.brat@gmail.com |
319a3a97837ddfcfbffea4e1f6c5bc6acd3ee2c8 | a9ee2f04b70542b2f399dc7ebb803164348aef0e | /mutations.py | c614d08dc3472aa20173fe38ab13d2cd6618ece8 | [] | no_license | murilosisnando2003/Hacker_Rank | 6617e55f362bf82e8ad73189a3e9075199d31ef9 | 5ab80e7da2846880bddfb15815afaf3351269a42 | refs/heads/master | 2021-01-04T15:50:47.381339 | 2020-03-06T22:50:26 | 2020-03-06T22:50:26 | 240,621,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | def mutate_string(string, position, character):
string = string[:position] + character + string[(position+1):]
return string
if __name__ == '__main__':
s = input()
i, c = input().split()
s_new = mutate_string(s, int(i), c)
print(s_new) | [
"Murilo Rodrigues@DESKTOP-ONT7ENB.EDGE-BR.LOCAL"
] | Murilo Rodrigues@DESKTOP-ONT7ENB.EDGE-BR.LOCAL |
d6571dd4ac18fe2c876e33b21c8d6e8e9ba84414 | 4773a4adc5a50e948d34b8b2efe8e67baf4a887b | /FileEmulator/FileEmulator.py | 526a727545f90cf9cf74d0040e749c0485f7360a | [
"MIT"
] | permissive | abaker2010/FileSimulator | bb33c943b95db869dfdaff12bf64ba1bbe50ecee | 2c3c5fb95be6e54c97c2a82d856d52157bda9f64 | refs/heads/master | 2020-06-10T05:40:31.919123 | 2019-06-25T03:12:02 | 2019-06-25T03:12:02 | 193,599,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | #!/usr/bin/python
# Wrote by: Aaron Baker
from classes.RepeatedTimer import RepeatedTimer
from classes.HttpRequestHandler import HttpRequestHandler
from http.server import BaseHTTPRequestHandler, HTTPServer
import time
import threading
import urllib.request
import colorama # pip install
from colorama import Fore, Bac... | [
"crosby.baker2010@gmail.com"
] | crosby.baker2010@gmail.com |
a839419dd4c4c0aff907413b92ba0217fb42f65a | 640b2096a3ff25ac6dbd65fa38a246218cfeac1e | /add_two_numbers_ii.py | 3b601220ae2ce72f69d9b805fefd11d213da43d3 | [] | no_license | benjiaming/leetcode | 53d00082289dd847bb81df674ef68832a89220c7 | 6e09d1bfe9eb7476125eb31d95616a115f2e6f7f | refs/heads/master | 2021-06-12T22:46:06.279667 | 2019-05-25T18:37:23 | 2019-05-25T18:37:23 | 183,532,697 | 0 | 0 | null | 2021-04-20T18:07:59 | 2019-04-26T01:10:02 | Python | UTF-8 | Python | false | false | 1,690 | py | """
Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2.
Note:
Your returned answers (both ... | [
"ben@blazke.cz"
] | ben@blazke.cz |
35479810c6d35ab75199ee140a8a576f6ebf45b2 | e7ccb3896e7750cc66921d5a79c1a211e2d55be9 | /main.py | aeb26b2db91441d32bb272f44103d22f6e66539d | [
"MIT"
] | permissive | salimsuprayogi/program_library_siswa | 2becff48e05e0f7f0d1f55b0d94bc843da7876b9 | 3b75e149876e08fe7b7e08a72478200947abcaa6 | refs/heads/master | 2021-01-14T23:22:15.666338 | 2020-02-26T16:40:27 | 2020-02-26T16:40:27 | 242,793,179 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,685 | py | # Mentor = Muhammad Nasrullah
# Author = Salim Suprayogi
# - [ ] Implementasi kode
# - [ Setup Library ] Kebutuhan libarary & instalasi
# - [ Implementasi ] Menghubungkan database dg kode
# - [ Implementasi ] Membuat fungsi crud pada kode
# pip3 install pymysql
# pip install MySQL-python
# ref : https://dev.mysql.com... | [
"khan.razes@gmail.com"
] | khan.razes@gmail.com |
5ba84151402c306929ff08ad121723a5b154fdab | a2d13dcf9bd687c6b288f0cd00520ad3e7e360f2 | /rl/algos/mirror_ppo.py | f21d52d38ca46bbd9e1e0534039d04e6e3a0d5f0 | [
"MIT"
] | permissive | RohanPankaj/apex | f3f7286b5c420cf0040dd7243351f7618d634b6c | 74e96386bf9446d1179106d6d65ea0368c1b5b27 | refs/heads/master | 2020-07-11T13:10:46.329222 | 2019-08-26T22:30:09 | 2019-08-26T22:30:09 | 204,548,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,541 | py | import time
from copy import deepcopy
import torch
import torch.optim as optim
from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler
from torch.distributions import kl_divergence
import numpy as np
from rl.algos import PPO
# TODO:
# env.mirror() vs env.matrix?
# TODO: use magic to make this reuse mo... | [
"yesh.godse@gmail.com"
] | yesh.godse@gmail.com |
94cd40578f30825025b17f2297e50eb9b0f8a635 | c1960138a37d9b87bbc6ebd225ec54e09ede4a33 | /adafruit-circuitpython-bundle-py-20210402/lib/adafruit_epd/ssd1680.py | 66392a74f69fe9a3ecffe574e03a380758bc1e95 | [] | no_license | apalileo/ACCD_PHCR_SP21 | 76d0e27c4203a2e90270cb2d84a75169f5db5240 | 37923f70f4c5536b18f0353470bedab200c67bad | refs/heads/main | 2023-04-07T00:01:35.922061 | 2021-04-15T18:02:22 | 2021-04-15T18:02:22 | 332,101,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,592 | py | # SPDX-FileCopyrightText: 2018 Dean Miller for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_epd.ssd1680` - Adafruit SSD1680 - ePaper display driver
====================================================================================
CircuitPython driver for Adafruit SSD1680 display breakouts
* Au... | [
"55570902+apalileo@users.noreply.github.com"
] | 55570902+apalileo@users.noreply.github.com |
35c9b3e3c688b13470f1b516a72df95ffd4b9d46 | 020d00c279b04daa7dd0a8ec95347884ce8f7f74 | /unittest/test_case/test_pczh/test_loginapi.py | 8760e3c5c680906bf52f8a58103b462a5f33a2a8 | [] | no_license | JasonTang7/inspiration | ce6efb328b2b4a17e4ffed335a266e4477707faf | 567836fc9aebcc67acb2816364ba89ffa8d356db | refs/heads/master | 2022-06-05T02:25:01.610248 | 2022-05-18T03:25:38 | 2022-05-18T03:25:38 | 221,389,569 | 0 | 0 | null | 2020-11-19T09:35:22 | 2019-11-13T06:35:20 | Groovy | UTF-8 | Python | false | false | 1,610 | py | import time
import unittest
from time import sleep
from selenium import webdriver
from selenium.webdriver.common.by import By
from functions import pczhpage,common,pczhpageElements
import config
import requests
import json
@unittest.skip("调试用,正式测试不执行此测试类")
class TestLogIn(unittest.TestCase):
"""测试登录接口"""
# @cl... | [
"jason.tang@yamibuy.com"
] | jason.tang@yamibuy.com |
ce367ad483dab43120cf161648780ed59c2f69a6 | 4b54b2b1037d5dea88117840b4f58a82fac2d3ea | /1006.py | b9a2fa2b47ce7f2966860b6c8b611aaae86bedec | [] | no_license | cinereous1/UriJudge | 20879ca2067b2eb374e5dc7471a77366dee1a68a | 96eab7846e349347d0300d9fc2ac6aa470a2651c | refs/heads/master | 2021-08-24T15:32:02.594187 | 2017-12-10T07:43:01 | 2017-12-10T07:43:01 | 113,373,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | #!/usr/bin/python3
nota0 = float(input().strip())
nota1 = float(input().strip())
nota2 = float(input().strip())
media = ((nota0 * 2) + (nota1 * 3) + (nota2 * 5)) / 10
print("MEDIA = {:.1f}".format(media))
| [
"linktovoid@gmail.com"
] | linktovoid@gmail.com |
2c577726ddb93acc298d9aa48b796d856a11327a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02818/s867983819.py | 672fccfd638abcdbc2e8bfd4c826f7fa452e2450 | [] | 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 | 204 | py | A, B, K = map(int, input().split())
count = 0
if K == 0:
print('%d %d' % (A, B))
elif K <= A:
print('%d %d' % (A-K, B))
elif A < K <= B+A:
print('%d %d' % (0, B-(K-A)))
else:
print('0 0')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
55847be3e5c35a5f6af9a51b4cfebaad77105fa8 | 8ae383214b802cca919f9b646455a03ded014fac | /Cara_gui.py | f801a7a0f6fd9c611be6f10fe848a9b09bebd9c6 | [] | no_license | abhidya/PreTTy | 3c1a1ebc0ca8d670ebe79cdf440f9d177ac1041f | 70e032fb1caa8c57b28270994612b4ccac783b5f | refs/heads/master | 2020-04-09T15:11:53.592270 | 2018-11-28T17:58:14 | 2018-11-28T17:58:14 | 160,419,014 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | import tkinter as tk
import PIL
from PIL import Image, ImageTk
# --- functions ---
#<<<<<<< HEAD
def on_click(event=None):
# `command=` calls function without argument
# `bind` calls function with one argument
print("image clicked")
# --- main ---
root = tk.Tk()
# load image and resize it
basewidth = ... | [
"cscott57@vols.utk.edu"
] | cscott57@vols.utk.edu |
649284409ed743419ddc62681ca42392e631d7aa | 837827fe283704a9de1f9a244a295b4f2e72cbdd | /tunnelTest/main.py | 6c9b0895722a852e79a66f180625bc7c867e8cfd | [] | no_license | josephclaymiller/audiotron | c228c98981b60422906e97f0e14dde0a314bb425 | 668362fb7868ef3a11d0636ce9559cbf18fd3812 | refs/heads/master | 2016-09-06T14:54:40.847965 | 2008-12-03T11:21:01 | 2008-12-03T11:21:01 | 32,127,850 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,417 | py | import direct.directbase.DirectStart
from pandac.PandaModules import Fog
from direct.showbase.DirectObject import DirectObject
from direct.interval.MetaInterval import Sequence #needed to continuously move the tunnel
from pandac.PandaModules import VBase3, VBase4
from direct.interval.LerpInterval import LerpPosHp... | [
"BrianStewartMcDonald@df45ab90-1348-0410-a7a9-55bda8f8a9ff"
] | BrianStewartMcDonald@df45ab90-1348-0410-a7a9-55bda8f8a9ff |
5a77ff53b47783a74d0756216f1c09c0dcf2c10e | 8796273a71427c8d9869431926341fbcac54095f | /imdemo/utils/singleton.py | efdc68aae590b919e315b4fbb42972ee95d1400c | [] | no_license | fatelei/im-demo | e2c377a4fc9c7ce5ab31210ed76f1532d537a790 | 032bac4e0cfe7365e389c64a1ce3a5aec7dd9208 | refs/heads/master | 2021-01-09T21:46:21.401059 | 2016-01-17T08:14:55 | 2016-01-17T08:14:55 | 45,176,036 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # -*- coding: utf8 -*-
"""
imdemo.utils.singleton
~~~~~~~~~~~~~~~~~~~~~~
Singleton mode.
"""
def singleton_class(obj):
instances = {}
def wrapper(*args, **kwargs):
name = obj.__name__
if name not in instances:
instance = obj(*args, **kwargs)
instances[name... | [
"fatelei@gmail.com"
] | fatelei@gmail.com |
53786cfd3a118db63e76437c20de607fc13212ac | d6ed572ee7efc0dc821f92df0f6b7c2fb0931f7c | /USB/hook_button.py | 90c88ad6ba2bea87542d00c408d41bf27ea79cfd | [] | no_license | nfredrik/pyjunk | 92df3693230d0537d23f03ddee7796c4f9dbedd9 | 94eb532611743d1fed0da972c34ff1e509b61acb | refs/heads/master | 2022-05-28T10:24:53.700587 | 2017-10-10T20:56:38 | 2017-10-10T20:56:38 | 260,439,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,236 | py | #
"""
Simple example on how to handle usage control events
"""
from time import sleep
from msvcrt import kbhit
import pywinusb.hid as hid
def test_telephony_hook():
"""Browse for non system HID class devices, if a telephony page
hook usage control is available monitor value change events"""
# ... | [
"nfredrik@localhost"
] | nfredrik@localhost |
5a9945e71b3b8a15401b395d1287eb71026ce281 | d610a70b24d071c00b7b665324305bae84057cec | /frontend.py | d73f7faea1afc88567cf8f21d7e0b6c04da21659 | [] | no_license | akshat1198/bookSearch | 60d39d27c2ce23a3656f521e6a3987cbb607eaad | f3a4c59a974cb3cf83f450c75e2c43adae3a749c | refs/heads/master | 2020-09-27T04:32:38.764044 | 2019-12-30T04:34:33 | 2019-12-30T04:34:33 | 226,430,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | from tkinter import *
from backend import Database
database=Database("books.db")
class Window(object):
def __init__(self,window):
self.window = window
self.window.wm_title("BookStore")
l1=Label(window,text="Title")
l1.grid(row=0,column=0)
l2=Label(window,text="Author"... | [
"akshat1198@gmail.com"
] | akshat1198@gmail.com |
7fdb8d3b069cc269c6095853e94a07255525f040 | 4424f20569fbc450ea4900af542577fc0e73763d | /Lesson10/Peaks.py | 5f0be85c963cd389d4db33466891b5b5e9054f6a | [] | no_license | AustinKuo/Codility_Python | 040f5ed9eba6886aca5ef307e6921ced3e97ae58 | 3754a643a96434a23936d81deb0add7fa0af1689 | refs/heads/master | 2021-04-05T23:48:35.135036 | 2019-03-19T08:23:00 | 2019-03-19T08:23:00 | 124,468,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | # you can write to stdout for debugging purposes, e.g.
# print("this is a debug message")
def solution(A):
# write your code in Python 3.6
N = len(A)
dis = []
count = 1
# Get next peak distance
for i in range(1, N-1):
if A[i] > A[i-1] and A[i] > A[i+1]:
dis.append(count)
... | [
"noreply@github.com"
] | AustinKuo.noreply@github.com |
310f0bae44d7f3f1fadeff6ea38b7dca8369a771 | 635e06886d27732cb35d73fddb14907c9e2f1bda | /bin/NER/Model.py | 4ea56f9f4fc4d47ce44befa218f893afc59e04c6 | [] | no_license | hoangbao123/chainer-rnn-ner | 034c0238fac268155d1273d4e09e1517040ef3c5 | 829fb640cd627e5d28fb0d162eb2068615d92156 | refs/heads/master | 2020-04-28T03:02:54.899189 | 2017-01-27T15:36:26 | 2017-01-27T15:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,724 | py | # -*- coding: utf-8 -*-
import numpy as np
import chainer
import chainer.links as L
import chainer.functions as F
from chainer.links import NStepLSTM
"""
Model with cross entropy as the loss function.
"""
class TaggerBase(chainer.Chain):
def __init__(self):
pass
# I want to use this for NERTagger, B... | [
"kiyono@ecei.tohoku.ac.jp"
] | kiyono@ecei.tohoku.ac.jp |
da601365143788ddbeeff357a89115a32b9b44a6 | de770a1a7238cdcec2c321f673a517ed21772731 | /backend/cache_model.py | f1e1a3cc1cb810abd7370a93063c76bc7a84c52b | [
"MIT"
] | permissive | tlkh/serverless-transformers | b4a873e351016d6ac39c05ecafab505664a566be | 98cc9968a3ac1c7d9e779c6193f1e083c19ee7b3 | refs/heads/main | 2023-01-20T09:33:57.566895 | 2020-11-18T09:37:52 | 2020-11-18T09:37:52 | 313,572,143 | 2 | 3 | MIT | 2020-11-28T18:40:38 | 2020-11-17T09:40:43 | Python | UTF-8 | Python | false | false | 293 | py | import os
os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
os.environ["CUDA_VISIBLE_DEVICES"] = ""
import torch
from transformers import *
MODEL_NAME = "allenai/unifiedqa-t5-base"
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
model = AutoModelForSeq2SeqLM.from_pretrained(MODEL_NAME)
| [
"tlkh.xms@gmail.com"
] | tlkh.xms@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.