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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ff3ac84380d9524f43f0f9b687333c8fccedb74 | 6ecea4f9715954e0b6ec7f66e6ae842054af0ecb | /Heimdall/bipolar/views/index.py | 318b090a80ccd6334b5847e985fd0e9c59401853 | [] | no_license | aitalshashank2/Heimdall-Master | 6d3f59537f086b683ac1f80b60c78d8e3e054553 | 1ad1db0aadcda42b047cbb81a8109f11b8a4a200 | refs/heads/master | 2023-01-11T20:03:51.900320 | 2020-11-17T16:43:07 | 2020-11-17T16:43:07 | 304,911,551 | 1 | 0 | null | 2020-10-26T07:41:17 | 2020-10-17T15:43:18 | Python | UTF-8 | Python | false | false | 215 | py | from django.http import HttpResponse
# Index view
def index(request):
return HttpResponse("You have reached Bipolar. Sorry, but Bipolar only transports The Gods of Asgard and information. You are neither...")
| [
"aitalshashank2@gmail.com"
] | aitalshashank2@gmail.com |
616d1d5b95e91b0480f91e9a3a8e8f2433a203f1 | 3e937567100910fc00d8adafaef0fbdb80c96aca | /AiQs/DAI.py | eabc2d3de8afaf09f2c6d3421a5e563ea9ad3a77 | [] | no_license | chi320/AiQs_uHand | bcbb1278a4bcd3a80795e7d137a2564c9f3db439 | 0e69f79b1e65487e9b96c0f06b1bee8b82e1a6b0 | refs/heads/master | 2022-11-15T00:40:55.607517 | 2020-07-08T09:49:49 | 2020-07-08T09:49:49 | 278,045,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,869 | py | import time
import socket
import threading
import math as m
from datetime import datetime
import DAN
#ServerURL = 'https://DomainName' #with SSL connection
Reg_addr = 'A-Glove' #if None, Reg_addr = MAC address
DAN.profile['dm_name']='A-Glove'
DAN.profile['df_list']=['Thumb-I', 'Index-I', 'Middle-I', 'Ring-I', 'Pink... | [
"chi320"
] | chi320 |
34767bd0c8b2f5feb057dcc43c1748422c9ddea3 | 368c66467b78adf62da04cb0b8cedd2ef37bb127 | /BOJ/Python/10828_스택.py | b380cf362f317d58d32f74c7a857ea8da85d9885 | [] | no_license | DJHyun/Algorithm | c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5 | fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a | refs/heads/master | 2020-07-30T16:32:49.344329 | 2020-02-25T07:59:34 | 2020-02-25T07:59:34 | 210,289,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | # baekjoon source = "https://www.acmicpc.net/problem/10828"
import sys
T = int(sys.stdin.readline())
stack = [0]*T
tmp = -1
for test_case in range(T):
N = sys.stdin.readline().split()
if len(N) > 1:
cmd = N[0]
number = N[1]
else:
cmd = N[0]
if cmd == 'push':
... | [
"djestiny4444@naver.com"
] | djestiny4444@naver.com |
426371e9cde73821fd75888b4c351aa46f6f6a4a | 8f1fa28f565e0d3c18e7536e41fdd390e2e2a80e | /session_prot_utility.py | 45454e7f9d750075d3200c89532cdb6ff46aad24 | [] | no_license | Sdude225/PR_LAB2 | 831d31ce9d56dc3169237bfe1b47722b1b9ed3ae | 374358e374cb70e4eb32ba8c45a91f9d82158431 | refs/heads/master | 2023-01-22T01:38:47.601804 | 2020-12-02T13:31:54 | 2020-12-02T13:31:54 | 315,033,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import random
import math
def is_prime(num):
if num % 2 == 0:
return False
elif any(num % i == 0 for i in range(3, int(math.sqrt(num)) + 1, 2)):
return False
else:
return True
def generate_prime():
prime_list = [x for x in range(1000, 5000) if is_prime(x)]
return random.c... | [
"pavlov.alexandru@gmail.com"
] | pavlov.alexandru@gmail.com |
03d4dc30e025720b6e6240e0e43e9d93e51dbaf7 | e66fa131cff76fa3fe70e7b6649fa1332159c781 | /ch09/generatorExp.py | f604819768741ec3d1548141beb0ef6c31cfaead | [] | no_license | chc1129/python_tutorial | c6d97c6671a7952d8a7b838ccb8aa3c352fa6881 | 2f8b389731bafbda73c766c095d1eaadb0f99a1c | refs/heads/main | 2023-08-24T07:00:43.424652 | 2021-10-28T16:07:57 | 2021-10-28T16:07:57 | 341,532,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | print( sum(i*i for i in range(10)) )
xvec = [10, 20, 30]
yvec = [7, 5, 3]
print( sum(x*y, for x,y in zip(xvec, yvec))
unipue_words = set(word for line in page for word in line.split())
valedictorian = max((student.gpa, student.name) for student in graduates)
data = 'golf'
list(data[i] for i in range(len(data)-1, -1... | [
"chc1129@gmail.com"
] | chc1129@gmail.com |
26f4c28997c09f1365d77c29f33a3238a807c709 | 7b7bd9d16723147ecfcfcd17392e7a09355d2dbf | /calcGRAPH.py | 2dcbd3fd59951dc70bf03139f3af0291f077d876 | [] | no_license | alexern14/maze-project | 038663c452a30201cbcd3457785c84b109bff4f7 | 2496580760470f8cdf9e1ca090bf390bfa8c8f97 | refs/heads/master | 2022-11-29T11:39:31.687042 | 2020-08-17T20:08:48 | 2020-08-17T20:08:48 | 288,276,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | import calcTargets
def calcGRAPH(graph, coordinates, adjMatrixReg, adjMatrixDiag):
GRAPH = {}
for cell in coordinates:
reg = True
targetsVisited = []
targets = []
node = int(graph[cell[0], cell[1]])
if node < 0:
node = node * -1
adjList = calcTargets.... | [
"aernst@mymail.mines.edu"
] | aernst@mymail.mines.edu |
e91bc932fdd46fc551c4dde40b6c032d21b7ba8e | 9a9088713c917ac47c0b8713d6969b2cfcdbadac | /leetcode_python/549.Binary_Tree_Longest_Consecutive_Sequence_II.py | d73a5a900ef7632ab534ea974479d43f89361fdf | [] | no_license | zihuaweng/leetcode-solutions | 615fdcb9178b19764b4d30bcfe65a9f785e77270 | e431ff831ddd5f26891e6ee4506a20d7972b4f02 | refs/heads/master | 2023-02-06T03:58:26.413711 | 2020-12-26T05:23:03 | 2020-12-26T05:23:03 | 311,418,790 | 4 | 7 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | #!/usr/bin/env python3
# coding: utf-8
# Time complexity: O()
# Space complexity: O()
# https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii
def longestConsecutive(self, root: TreeNode) -> int:
def longest_path(root):
if not root:
return 0, 0
inc, dec = 1, 1
... | [
"zihuaw2@uci.edu"
] | zihuaw2@uci.edu |
c08aed31ba2639b58a40e30e827a07c4a0f9456c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02836/s704418504.py | 3bddb063b93136d0f9c5b66900e0c03c589e9032 | [] | 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 | 107 | py | s = input()
n = int(len(s)/2)
x = 0
for i in range(n):
if s[i] != s[-1-i]:
x += 1
print(int(x)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8ee7aa9c10997179950e96049964f36857f2bbc8 | c398034ae1295c454c601b1e28ab3217183d0a27 | /bluelog/__init__.py | 6332442a240c9ebd6d072dc09abc7948fe47b8e5 | [
"MIT"
] | permissive | JohnParken/bluelog | 135dea0da759c01986ca6054a431e6570115b2bc | de18fc62cec23039f974093454007c0b92a4777a | refs/heads/master | 2023-05-11T15:43:43.357531 | 2021-05-30T16:19:13 | 2021-05-30T16:19:13 | 226,918,320 | 0 | 0 | MIT | 2023-05-01T21:19:39 | 2019-12-09T16:37:09 | JavaScript | UTF-8 | Python | false | false | 7,566 | py | # -*- coding: utf-8 -*-
"""
:author: Grey Li (李辉)
:url: http://greyli.com
:copyright: © 2018 Grey Li <withlihui@gmail.com>
:license: MIT, see LICENSE for more details.
"""
import logging
import os
from logging.handlers import SMTPHandler, RotatingFileHandler
import click
from flask import Flask, render... | [
"yangfengbulaoen@outlook.com"
] | yangfengbulaoen@outlook.com |
00a337383094fe23dc5bc1ac2ad3844394c34f23 | 2ea45eb47a3e37f5494088356cb97d9695f2bd3f | /www/admin/views_cash_record.py | 3c6fef152455479b7b1c91ac8a7585f3919c9fd6 | [] | no_license | lantianlz/orange | a44117dcfa6f9448e69217946f8472a110c22b07 | a0ca902d0a7c1b716ea1a395fdcf0a2297efc15a | refs/heads/master | 2021-10-11T11:06:49.936336 | 2021-09-30T07:17:19 | 2021-09-30T07:17:19 | 36,724,803 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,876 | py | # -*- coding: utf-8 -*-
import json, datetime
from django.http import HttpResponse, HttpResponseRedirect
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.conf import settings
from www.misc.decorators import staff_required, common_ajax_response, verify_permission, ... | [
"286394973@qq.com"
] | 286394973@qq.com |
28b8a1956f8d6527ad26c04e4900a30df97fb3cf | 2083b32b56082f9d88e4c67054d407df1d4c9895 | /src/func/dtree/SplitEvaluator.py | e85d65c7f00f4cab6e2f6f1cdf58b7741a69c1fc | [] | no_license | onaclovtech/ABAGAIL | 63a6060ea92f6779c57b459f1f58a588fa67ebf7 | e12473820bf687b55b9e86b0c8982e28a52eda27 | refs/heads/master | 2020-12-06T19:12:06.979226 | 2017-03-08T03:00:17 | 2017-03-08T03:00:17 | 43,615,053 | 5 | 0 | null | 2015-10-03T21:08:05 | 2015-10-03T21:08:05 | null | UTF-8 | Python | false | false | 381 | py |
#/**
#* A criteria for splitting in a decision tree
#* @author Andrew Guillory gtg008g@mail.gatech.edu
#* @version 1.0
#*/
abstract class SplitEvaluator {
#/**
#* Get the value of splitting a set of instances
#* along the given attribute
#* @param stats the statistics for splitting
#* @return the value
#*/
abst... | [
"onaclov2000+github@gmail.com"
] | onaclov2000+github@gmail.com |
0ad0b1d19245dcb00ddbdd1e5014e0f31279bd16 | 4765c25d03ab588d47f4d94b39812d59af3881bc | /elastalert/alerter/pager_duty_alerter.py | 57e8fe7b3c0fbe0c39dc214735018ff8bc2c5929 | [
"Apache-2.0"
] | permissive | JasperJuergensen/elastalert | 02bffa9737d834adb84909d2d17164d4209fbb3e | 8033361083b5edad1845ad9b307b8280ef278da7 | refs/heads/master | 2021-05-20T04:17:47.839873 | 2020-06-19T15:39:13 | 2020-06-19T15:39:13 | 252,181,411 | 2 | 0 | Apache-2.0 | 2020-06-16T16:07:25 | 2020-04-01T13:21:38 | Python | UTF-8 | Python | false | false | 7,372 | py | import json
import logging
import requests
from elastalert.alerter import Alerter
from elastalert.exceptions import EAException
from elastalert.utils.time import DateTimeEncoder
from elastalert.utils.util import lookup_es_key
from requests import RequestException
log = logging.getLogger(__name__)
class PagerDutyAle... | [
"jasper.juergensen@protonmail.com"
] | jasper.juergensen@protonmail.com |
e5a553440119a2fa7166bb3aa74b291527441e2c | d7001da097d4a846d3614b14d87b8c56eb762f18 | /eventex/subscriptions/forms.py | da154bc66cbe0a2de8a928e67702d40051bdefde | [] | no_license | mfagundes/wttd2020-mf | 2db2d20f61411e1271cb664f8672744c87c11af8 | 4394f7ccc778f5679ba3c758438061c1d157b136 | refs/heads/main | 2023-03-01T22:17:24.930726 | 2021-02-03T18:25:52 | 2021-02-03T18:25:52 | 307,040,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | from django import forms
from django.core.exceptions import ValidationError
from eventex.subscriptions.models import Subscription
from eventex.subscriptions.validators import validate_cpf
class SubscriptionFormOld(forms.Form):
name = forms.CharField(label='Nome')
cpf = forms.CharField(label='CPF', validators... | [
"mauricio.fagundes@gmail.com"
] | mauricio.fagundes@gmail.com |
b8bac1b47ae54bf54eaed99b48864d9dfd4cb4ae | 647e866fc5d0bca4061970b0e65bc57dbb68030a | /src/config/grey_mars_config.py | 4b45ab30dca2408f24fa189376566429cd1bf937 | [] | no_license | Lancasterg/benchmark_isca | 5def1be9cd807faf5b8fc12c962ab15f9bb81fca | 339ae382d8ad87359abc089b4a8446cc4e3b2123 | refs/heads/master | 2022-12-09T01:01:15.414852 | 2019-09-08T11:22:47 | 2019-09-08T11:22:47 | 195,468,017 | 1 | 0 | null | 2022-06-21T22:54:58 | 2019-07-05T21:14:46 | Python | UTF-8 | Python | false | false | 6,708 | py | from isca import GreyCodeBase, DiagTable, Namelist, GFDL_BASE
def setup_grey_mars_diag():
# create a diagnostics output file for daily snapshots
diag = DiagTable()
diag.add_file('atmos_daily', 88440, 'seconds', time_units='days')
# Define diag tablentries
diag.add_field('dynamics', 'ps',... | [
"qv18258@bristol.ac.uk"
] | qv18258@bristol.ac.uk |
0b864b7e937a35173e12ea775f6658f6e056a46f | 322162d1e53c0178902a2fca1c63e07639f1b4f0 | /tests/server_test.py | 32bf5f50f218184b28ccad61d616945fbb774889 | [
"MIT"
] | permissive | syedwaseemjan/StatsCollector | fedbf3a55f76c221f910b4c14abe98333046842e | 5a729357aaea11db8d21c627a99449c2da74f09a | refs/heads/master | 2022-05-19T02:41:41.913834 | 2022-05-07T23:02:02 | 2022-05-07T23:02:02 | 83,130,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,563 | py | import os
import xml.etree.ElementTree as ET
from unittest.mock import patch
from app.main import Main
from app.models import Stats
from app.tasks import check_threshold, get_message_text, get_subject_text
from . import StatsCollectorAppTestCase
class ServerTestCase(StatsCollectorAppTestCase):
"""
ServerTes... | [
"waseem.jan@britecore.com"
] | waseem.jan@britecore.com |
b596e8250368af057a20ec19b85049a800aebf86 | b46e3f6472e2ea4605f4d088a211dbaff2493574 | /reviewboard/dependencies.py | ad815f50f2c2685d16d32fec614c8baabbda853d | [
"MIT"
] | permissive | fgallaire/reviewboard | 360501a9f39c5898c54a80801c790f53b0a74f39 | e6b1323aee5e361754b110e4604ea5fc098050fe | refs/heads/master | 2021-01-18T03:13:56.561458 | 2017-03-22T14:41:15 | 2017-03-22T14:41:15 | 85,837,942 | 0 | 0 | null | 2017-03-22T14:30:31 | 2017-03-22T14:30:31 | null | UTF-8 | Python | false | false | 2,138 | py | """Version information for Review Board dependencies.
This contains constants that other parts of Review Board (primarily packaging)
can use to look up information on major dependencies of Review Board.
The contents in this file might change substantially between releases. If
you're going to make use of data from thi... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
fb9e47dcacf66b14ad70549464f3120ec7fad0b7 | 186a3c03f04d269b7871ccafb5ec3c93b48bfd65 | /level_1/main_2_train.py | ff52360cba1c31d44a89604b8883785083b98fc9 | [] | no_license | achm6174/kaggle-benz | b08483ec2f8a0ee3b5bf7f82db42081ab4e043f8 | 5415fd1f241f1efcd3071ddafed98c46a4f9cffc | refs/heads/master | 2021-07-14T21:04:21.913628 | 2021-05-30T05:09:38 | 2021-05-30T05:09:38 | 93,234,565 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,027 | py | import pandas as pd
from mlxtend.feature_selection import SequentialFeatureSelector as SFS
from sklearn.linear_model import LinearRegression
from sklearn.pipeline import make_pipeline
from sklearn.feature_extraction import DictVectorizer
train_original = pd.read_csv('data/train.csv')
test_original = pd.read_csv('da... | [
"achm6174@gmail.com"
] | achm6174@gmail.com |
9bf66b790b08a256cbd6fdbb4763af34c2be43c7 | 248b77c64eb5c1ac1e6998c76213a9dae880ffed | /users/views.py | fa81ab408f9a4445aa7172b9e80a883c24d84a98 | [] | no_license | jy1987/airbnb-clone | 75a0a880eb35f8732fe754086474b111d9f9ba2f | 90ba45455bb5cca5559af1a37fb850cfbce5b40e | refs/heads/master | 2023-06-15T05:31:57.505322 | 2021-07-12T13:02:50 | 2021-07-12T13:02:50 | 365,220,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | from django.views.generic.edit import UpdateView
from users import models
from django.shortcuts import render, redirect, reverse
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from django.contrib.auth.views import PasswordChangeView
from django.cont... | [
"87jy1015@gmail.com"
] | 87jy1015@gmail.com |
b48eec1e282c850ae6db2fb13244eeac07ee287a | fd3d0ca9a2dc127bc51a9d857d7388700c774d83 | /9_02_20/5.py | 244fd572892686a580a840dc0f6e0e1b6239ded2 | [] | no_license | Gamer348/ing_python_sun_18 | a25aa16bd2d653a7d019c0df6f3da090ed8bb7b1 | 59dee802f60243784cb2d40d3512a16e1e5e4920 | refs/heads/master | 2021-03-21T18:40:29.531407 | 2020-03-14T18:10:13 | 2020-03-14T18:10:13 | 247,321,300 | 0 | 0 | null | 2020-03-14T17:23:23 | 2020-03-14T17:23:22 | null | UTF-8 | Python | false | false | 117 | py | number_dec = int(input())
while number_dec > 0:
remainder = number_dec % 5
number_dec //= 5
print(remainder)
| [
"kpriemko@gmail.com"
] | kpriemko@gmail.com |
a7b7144aee7e78d723595ba5bc5e22bd66793753 | 209c876b1e248fd67bd156a137d961a6610f93c7 | /paddle/fluid/eager/auto_code_generator/generator/eager_gen.py | 5ae57faa37bfeabc4df04467245f8a306a23ec43 | [
"Apache-2.0"
] | permissive | Qengineering/Paddle | 36e0dba37d29146ebef4fba869490ecedbf4294e | 591456c69b76ee96d04b7d15dca6bb8080301f21 | refs/heads/develop | 2023-01-24T12:40:04.551345 | 2022-10-06T10:30:56 | 2022-10-06T10:30:56 | 544,837,444 | 0 | 0 | Apache-2.0 | 2022-10-03T10:12:54 | 2022-10-03T10:12:54 | null | UTF-8 | Python | false | false | 94,326 | py | # Copyright (c) 2022 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | noreply@github.com |
ebfa4b5433fd5445fa52fa4128d08b66bb1c8acc | b64fcb9da80d12c52bd24a7a1b046ed9952b0026 | /client_sdk_python/providers/auto.py | e51b3ffbd7a372bb388c2dc63fe843458be132af | [
"MIT"
] | permissive | PlatONnetwork/client-sdk-python | e59f44a77690806c8763ed6db938ed8447d42417 | 94ad57bb34b5ee7bb314ac858071686382c55402 | refs/heads/master | 2022-07-09T08:49:07.312759 | 2021-12-24T08:15:46 | 2021-12-24T08:15:46 | 173,032,954 | 7 | 16 | MIT | 2022-08-31T02:19:42 | 2019-02-28T03:18:03 | Python | UTF-8 | Python | false | false | 2,788 | py | import os
from urllib.parse import (
urlparse,
)
from client_sdk_python.exceptions import (
CannotHandleRequest,
)
from client_sdk_python.providers import (
BaseProvider,
HTTPProvider,
IPCProvider,
WebsocketProvider,
)
HTTP_SCHEMES = {'http', 'https'}
WS_SCHEMES = {'ws', 'wss'}
def load_prov... | [
"hietel366435@163.com"
] | hietel366435@163.com |
e204a81b675d672491c334f77f7cc5c4f8328a00 | 146cd740649b87032cbbfb97cde6ae486f76230b | /venv/lib/python3.6/site-packages/matplotlib/tests/test_transforms.py | 06e95e1c8e9ba5befed1fa70548029b15d1f0917 | [] | no_license | shellyhuang18/plank-filter-master | 8b7024c46334062496f05d31eefc618ebae50b4e | 8993a5b00f45841c3385fe997857bfdd10b71a84 | refs/heads/master | 2020-03-30T18:14:45.017957 | 2018-12-27T20:51:25 | 2018-12-27T20:51:25 | 151,490,556 | 0 | 1 | null | 2018-12-19T22:42:26 | 2018-10-03T22:50:58 | Python | UTF-8 | Python | false | false | 25,344 | py | import unittest
import numpy as np
from numpy.testing import (assert_allclose, assert_almost_equal,
assert_array_equal, assert_array_almost_equal)
import pytest
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
import matplotlib.transforms as mtransforms
from m... | [
"shellyhuang81@gmail.com"
] | shellyhuang81@gmail.com |
3f24505ba0b0df5ce1e41a599054ca1234b21a5f | 303bac96502e5b1666c05afd6c2e85cf33f19d8c | /solutions/python3/245.py | 2a1a8626a9b652689053d04fde6cd9e553dc7683 | [
"MIT"
] | permissive | jxhangithub/leetcode | 5e82f4aeee1bf201e93e889e5c4ded2fcda90437 | 0de1af607557d95856f0e4c2a12a56c8c57d731d | refs/heads/master | 2022-05-22T12:57:54.251281 | 2022-03-09T22:36:20 | 2022-03-09T22:36:20 | 370,508,127 | 1 | 0 | MIT | 2022-03-09T22:36:20 | 2021-05-24T23:16:10 | null | UTF-8 | Python | false | false | 439 | py | class Solution:
def shortestWordDistance(self, words, word1, word2):
i1 = i2 = -1
res, same = float("inf"), word1 == word2
for i, w in enumerate(words):
if w == word1:
if same: i2 = i1
i1 = i
if i2 >= 0: res = min(res, i1 - i2)
... | [
"cenkay.arapsagolu@gmail.com"
] | cenkay.arapsagolu@gmail.com |
f91d411468aba18dd844b4bd362c56aa8218192b | be01d0d54723d1e876c9a15618921dffe2b2255a | /Python/123.best_time_to_buy_sell_stackIII.py | 408394965df626a09202ee7117c0b0d7b2fb3021 | [] | no_license | jxlxt/leetcode | 17e7f25bf94dd334ac0d6254ffcffa003ed04c10 | a6e6e5be3dd5f9501d0aa4caa6744621ab887f51 | refs/heads/master | 2023-05-26T22:10:03.997428 | 2023-05-24T02:36:05 | 2023-05-24T02:36:05 | 118,216,055 | 0 | 0 | null | 2018-01-20T06:31:57 | 2018-01-20T06:30:06 | null | UTF-8 | Python | false | false | 638 | py | class Solution:
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
n = len(prices)
if n <= 1: return 0
p1, p2 = [0] * n, [0] * n
minV, maxV = prices[0], prices[-1]
for i in range(1, n):
minV = min(pric... | [
"xli239@ucsc.edu"
] | xli239@ucsc.edu |
30887028400d4cf566a42cf29db90a9253e6cc93 | c7fa36ef98947b370d33d7b3fe1c933d89d0f214 | /find_graph_components.py | e18b6ed16e774f3f44af8f0bf0e131f166710e18 | [] | no_license | rcreagh/network_software_modelling | f7c280a446138ead9dfde5b42b17642716e397ce | e62d2ed39c63cf060f9e6635f697362fa7734043 | refs/heads/master | 2021-01-11T15:35:59.924195 | 2017-03-19T18:35:11 | 2017-03-19T18:35:11 | 81,648,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | #! /usr/bin/python
"""This script is for finding all the components in a graph genrated by the
networkx library using depth first search."""
import networkx
def find_components(graph):
"""Find all components of a graph.
Args:
graph: Graph made up of vertices and edges.
Yields:
Each component in the gra... | [
"rcreagh@rcreagh-macbookair.roam.corp.google.com"
] | rcreagh@rcreagh-macbookair.roam.corp.google.com |
7d3380af29765fbfaf7ce3d8e14b9186c3ffbee0 | 4a626b9da6cc5a87d54d4a8fe461e555d7f5a5ea | /profiles_api/models.py | 45d314c452fde61e738ad3df8b7ee6254b9df99c | [] | no_license | ganeshchitta/profile_api | e6ea0fb8ff0802285e5dde6b87a77a931a97efa2 | 38c5d92188400dc5d5ad2b16c4ab7c847e5ec674 | refs/heads/master | 2023-01-19T05:52:18.866904 | 2020-11-24T18:44:47 | 2020-11-24T18:44:47 | 314,002,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | from django.db import models
# default django user model imports
from django.contrib.auth.models import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
from django.contrib.auth.models import BaseUserManager
from django.conf import settings
# Create your models here.
class UserProfileManager(Ba... | [
"ganeshchitta90@gmail.com"
] | ganeshchitta90@gmail.com |
1382980e40b88bf984679d6e3293d6eb1b907870 | 319f05f3e3fdd8ceae20c87d912440ad5ba99e16 | /config/urls.py | ed5dd44d2c2ef18e7a0939d112a4b0202c67170e | [] | no_license | sb900430/insta_clone | 85f6423bd12d440f28374c4477a1d50c846af39f | d0dc51d59a681913991bdb2e520b1f89274dc68a | refs/heads/master | 2022-11-22T11:16:28.033628 | 2020-07-28T04:27:04 | 2020-07-28T04:27:04 | 279,328,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,214 | py | """config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based ... | [
"ksb900430@gmail.com"
] | ksb900430@gmail.com |
d72826271b3bd2f99dc786efae7454c29142b060 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_22284.py | 920cb5cd1458f3bda5ea7fed8c9f8ece04a5a324 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | # Are greenlets really useful by themselves?
print
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
28bdaef79259ed9b62d0d3da679f5004d7bb1f05 | c5ff8815842b5b9adc334407b15c2f55f399d4b6 | /servicios/serializers.py | 71e467896591189cb85014ea77c06f6fb5a4a78f | [] | no_license | excelmaster/spa | 2eccaf731e90199ab15f80c07221c3c3730668bc | 06f167e7bff4631497824170931c3a327aa7ad3c | refs/heads/master | 2022-12-26T04:44:14.308459 | 2020-10-12T02:08:50 | 2020-10-12T02:08:50 | 303,162,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from rest_framework import serializers
from servicios.models import Servicios
class ServiciosSerializer(serializers.ModelSerializer):
"""
docstring
"""
class Meta:
"""
docstring
"""
model=Servicios
fields=(
'idservicio',
'titulo',
... | [
"fimercadog@gmail.com"
] | fimercadog@gmail.com |
087ca4a1f5e3ecff1dd25cbdd19c4a8fd0e5cd4b | 5e7b0b6db5d96031eff9bd21c79b5a35afd0d133 | /inegi/apps/inicio/views.py | 8220a01f01484d77cf43dfddd19e041552c92d8b | [] | no_license | sk8ivan/inegi | 8230022f4c6d811f322f197f3872a2b7f004ce1d | 66b68c38452a6dc84f30d2d5cd49d3209580b16d | refs/heads/master | 2021-01-01T18:38:20.206964 | 2015-03-22T17:32:21 | 2015-03-22T17:32:21 | 32,469,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.views.generic import TemplateView, ListView,CreateView
from .forms import Update, Windows
# Create your views here.
class Inicio(TemplateView):
template_name = 'inicio.html'
model = Update
context_object_name = 'Update'
cl... | [
"sk8ivans@hotmail.com"
] | sk8ivans@hotmail.com |
01fea252d0bc413e0c294660c30f91b49b4654a9 | d5c0ae07d3638747d782bbfa33385ee1f8c88eff | /ADCIRC_SWAN/postprocess/ArcWaT/timestep.py | 8ccad8aafc45c56ec22e9d93c9701478906c9a98 | [] | no_license | aatwum/CoastalModels | 4cd4e33a429a21f16f8902ec477174f2c56b12eb | bc3cd64199c2e3b979252d2407af0cd8c069ebcc | refs/heads/master | 2023-06-07T04:19:36.836051 | 2021-06-22T16:50:07 | 2021-06-22T16:50:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,993 | py | ################################################################################################################
## Wave Transformation Tool / Pre-Processing of waves and water levels
################################################################################################################
## Author: F. Cassal... | [
"noreply@github.com"
] | noreply@github.com |
a5f314505de0ed1e7b5bf1d9df96134a1f8372ce | 766b340634449a83a698e1b95b8f0d74d91f087e | /gitsearchreplace/__init__.py | 2e82597ef994ac9f51429b40711bead6f36d01e6 | [] | no_license | Peaker/git-search-replace | f1c0923442d2c03a3960f306b8fc3f0123098f51 | 59ac8bf6579c0506193b5537bc4ffedc060c318d | refs/heads/master | 2021-01-18T01:10:37.719452 | 2014-07-28T11:19:28 | 2014-07-28T11:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,955 | py | """
Main git-search-replace module
"""
from optparse import OptionParser
import subprocess
import sys
import re
import tempfile
import os
import bisect
def run_subprocess(cmd):
pipe = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
output = pipe.communicate()[0]
return output
def err... | [
"alonid@gmail.com"
] | alonid@gmail.com |
3df34ef7bfa3a001553d5182dc0f14988d1a0127 | b51cf480cc390aef7b433a8d1a9aa583129a0d0e | /ParkingGarage.py | f0e1ebecf5eebda29992239cab0c4ec8eb963905 | [] | no_license | Rojasking700/ParkingGarage | 2b5bb5602f88c236e1af63bfd249d3f65da5f462 | a015ec5005036f9ca366ee716ca0e1a8f8607ebb | refs/heads/master | 2023-03-03T16:49:46.298403 | 2021-02-12T23:00:45 | 2021-02-12T23:00:45 | 338,411,573 | 0 | 2 | null | 2021-02-12T22:01:52 | 2021-02-12T19:20:38 | Jupyter Notebook | UTF-8 | Python | false | false | 2,567 | py | class lot():
cur = [1,2,3,4,5,6,7,8,9,10]
def __init__(self):
self.spaces = lot.cur
class tickets:
current_ticket = 1
#manage tickets for spaces in the lot
def __init__(self, driver, spot, paid=False):
self.driver = driver
self.spot = int(spot)
self.pa... | [
"grojaspiano@gmail.com"
] | grojaspiano@gmail.com |
2c8a22a8cc80312f3c5a73950fa5d5a693c26997 | cbd2eee46663fad5b5375b13c8c21b1b06eb4c6b | /ecloud/code/src/main/python/manor/streamlet/delete_node.py | 34611b5a6beb3e0fffee7b01a20ed11aa2690dd6 | [] | no_license | 1026237416/Python | ef474ee40d7efcd6dabb6fb0ecba81b4dcfc7e14 | ffa8f9ffb8bfec114b0ca46295db05c4213c4c30 | refs/heads/master | 2021-07-05T00:57:00.456886 | 2019-04-26T10:13:46 | 2019-04-26T10:13:46 | 114,510,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | import time
from tornado import gen
from manor.screwdriver import compute_util
from manor.streamlet import StreamletBase
def get_instance(params,node_id,serial):
return DeleteNode(params,serial,node_id)
class DeleteNode(StreamletBase):
def __init__(self,params,serial,node_id):
super(DeleteNode,sel... | [
"1026237416@qq.com"
] | 1026237416@qq.com |
76e8eba313f8b3e1df3b59f6a7f19ef2cec47afc | f76e11d4da15768bf8683380b1b1312f04060f9a | /fix_uppsala_mw.py | 37b2e1f5aebb99a509df6f9d9861fadc86fee9cf | [] | no_license | rasoolims/scripts | 0804a2e5f7f405846cb659f9f8199f6bd93c4af6 | fd8110558fff1bb5a7527ff854eeea87b0b3c597 | refs/heads/master | 2021-07-07T03:53:20.507765 | 2021-04-13T14:53:00 | 2021-04-13T14:53:00 | 24,770,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import os,sys,codecs
reader =codecs.open(os.path.abspath(sys.argv[1]),'r')
writer =codecs.open(os.path.abspath(sys.argv[2]),'w')
line =reader.readline()
while line:
spl = line.strip().split()
if len(spl)<7 or not '-' in spl[0]:
writer.write(line.strip()+'\n')
line =reader.readline()
writer.close() | [
"rasooli.ms@gmail.com"
] | rasooli.ms@gmail.com |
6a8ef102cdc41ab94cfc9514013be821e966326e | d20b976a8a3875ea2c1725bd73ac6c2c7444da57 | /system/operations_test.py | 75e2a8620ce4e3ef86ea548b16414e3b3d6aa917 | [] | no_license | julian-zucker/code-or-die | 2b3806c17d163e5762b65a3f8b5cddc240b50926 | 9fe363c616b4970362d557de1639fa767b82322c | refs/heads/master | 2021-04-26T22:22:59.332998 | 2018-05-24T10:48:23 | 2018-05-24T10:48:23 | 124,082,766 | 0 | 2 | null | 2018-05-24T10:48:24 | 2018-03-06T13:32:43 | Python | UTF-8 | Python | false | false | 3,066 | py | from test.fixtures import db
from system.operations import *
def test_system_info(db):
# Right permissions
assert system_info(db, "key1", 1) is not None
assert system_info(db, "key1", 2) is None
assert system_info(db, "key1", 3) is None
assert system_info(db, "key1", 4) is not None
def test_get_s... | [
"julian.zucker@gmail.com"
] | julian.zucker@gmail.com |
93ddb4600473ecaf95c0dde135311915ac25e654 | 66f6049e16bb8124be45d514a392b3b5f0adfdc3 | /test_ptree.py | 49d2d7a78ee085a3634e7d1e0df5b2fa115d7336 | [
"MIT"
] | permissive | lknix/proof_tree_python | cfbbf7b6e06fc7e92022013579eb2ebab9ad7e18 | 56e4946715667738880a9b01db22f0688ceccfd0 | refs/heads/master | 2022-02-21T10:37:41.712738 | 2022-02-02T11:47:31 | 2022-02-02T11:53:45 | 134,585,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,209 | py | import ptree
import unittest
TEST_DATA = {
"photo": "https://avatars.org/johnsmith.jpg",
"additionalName": "Smart",
"addressCountry": "US",
"addressLocality": "Mountain View",
"addressRegion": "CA",
"birthDate": "1981-19-05",
"birthPlace": "San Francisco",
"dateIssued": "2002-01-01",
"documentID": "2... | [
"luka.kacil@gmail.com"
] | luka.kacil@gmail.com |
591bcaf778f84d20b14f5d1d7496ac5e75afdd30 | 303a6c8e70d44e20a8fb6c5b67e98628319549e1 | /main.py | 0000e7d859560a11dce121631b1d5b176a537486 | [] | no_license | dearsalisa/KubCake | 7082a749e7ebb435e775cc21470d037e56a6930b | 195f041a4f2337caba46599aef1dccfc609257fd | refs/heads/master | 2021-01-25T10:44:27.403002 | 2014-12-03T06:17:34 | 2014-12-03T06:17:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,259 | py | import pygame
from pygame.locals import *
from gamelib import SimpleGame
from player import Player
from cake import Cake
from bomb import Bomb
from bonus import Bonus
from cakecollector import CakeCollector
class KubCakeGame(SimpleGame):
BLACK = pygame.Color('black')
def __init__(self):
super(KubCakeGame, self).... | [
"dearsalisa@gmail.com"
] | dearsalisa@gmail.com |
57988182447cff851e4aa9ad5668e5aaee76854d | f2c0c50856da40bf1ec462304663cae2c72d8d7b | /reverse_WHOIs_lookup.py | a8b65d5d7af5962e11cb2e464ce89afecb1035b1 | [] | no_license | YashKarthik/reverse_WHOIS_lookup | de42ec7e9720bedd761bc5cca98cc14cd8691671 | 2c4df801e38493733e5bf4bf8f78fe5d3bf4d191 | refs/heads/master | 2022-09-19T07:48:25.534434 | 2020-05-31T15:28:55 | 2020-05-31T15:28:55 | 268,306,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import urllib3
import mechanicalsoup
import webbrowser
import requests
import urllib.parse
from bs4 import BeautifulSoup
import pandas as pd
url=("https://viewdns.info/reversewhois/?")
headers = {
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0... | [
"noreply@github.com"
] | noreply@github.com |
3c70e4ab0c6206b8e37a2ce536ef9b228b0e7cf3 | bd3bfbdb208caba3247f2a930c5b333b310d258d | /EditarImagen/urls.py | b3fc0836022c76e0d8c4bc37d7eb8898ae4537b0 | [] | no_license | wwrandazzo/Tests | 9be568d0ccf20cb072b515094dc320bfd5b099bb | 27857ac1d3d2b95d964a80a26d9788c59651cc3a | refs/heads/main | 2022-12-19T16:59:45.605142 | 2020-10-17T11:31:42 | 2020-10-17T11:31:42 | 303,008,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """EditarImagen 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-... | [
"wwrandazzo@gmail.com"
] | wwrandazzo@gmail.com |
becc6f1f175812ba636a990e1266551a5b79ebd7 | 25ab31f3fac56fe11ff9d0dca54fa50c41f02898 | /chp7/7_4.py | 99c02877b1999e8cce5c0507c7ccf6ea0f60f5cc | [] | no_license | willamd/pythoncoreprogramming | 59aac280faa619d4b99c3e238d58e73c28a4ec54 | 27874ad24362c1b4cd25e4e060bf2056276ae8ca | refs/heads/master | 2021-01-16T22:06:47.049872 | 2017-05-15T06:20:27 | 2017-05-15T06:20:27 | 65,516,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | a=[1,2,3,4,5];
b=['abc','def','ghi','jkl','mno'];
length=len(a);
dic_t={};
if len(a)!=len(b):
print("Error!");
else:
for i in range(length):
dic_t[a[i]]=b[i];
print (dic_t);
dict_d=dict(zip(a,b));
print dict_d
| [
"dlianc@163.com"
] | dlianc@163.com |
facd3d8c87d6f4d597605f0a73d731a9fc292980 | 14d0dff96e499d854fcbb0fc261c0f6bc00bac23 | /psiclops.py | d2751ac886c0dda9b254ee2c304052cd3b645abf | [] | no_license | jamesboyd2008/psiclops-io | f9370cb9ba7784732a875bc028be112d6524efe9 | 0258dfa0ba36c91913066223639dc351a84db7db | refs/heads/master | 2021-01-17T21:53:51.399646 | 2016-04-03T02:39:04 | 2016-04-03T02:39:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
@app.route('/about')
def about():
return render_template('about.html')
if __name__ == '__main__':
app.run()
| [
"nicholasrusso@icloud.com"
] | nicholasrusso@icloud.com |
3f9a1883e10a54decf662111c636317df9a23110 | 3ebbd66e1e843afe935092fd72164d6c71f3f8cd | /venominator/__init__.py | 0412c3f6c9fcd73f28e4488575a3a46471cdaf2d | [
"MIT"
] | permissive | hobnobpirate/venominator | d356defcd266a129ab2ede34c6ee3c95e2496618 | 2779cf45c935e47dbb924948a02dd698c5b9965e | refs/heads/master | 2020-06-01T06:11:51.918097 | 2019-07-21T20:56:41 | 2019-07-21T20:56:41 | 190,672,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | # -*- coding: utf-8 -*-
"""Top-level package for Venomionator."""
__author__ = """Hobnobpirate"""
__email__ = "hobnobpirate@gmail.com"
__version__ = "0.1.0"
| [
"hobnobpirate@gmail.com"
] | hobnobpirate@gmail.com |
780026ed23ac3f1b2e3356f1f0e0c5d2cf689614 | eb9ce02ea8114b9ba26439126ecbae33a18560d1 | /models/sentence_encoder.py | 1881cefc9a6fec6110527bc34bf46d8aec1e6134 | [] | no_license | shota3506/image-caption-rerieval | 68d9990ee79154fff88077b65ad21f75d6c9f9aa | 654995bc02ba9a91584ea2b4032c34e48114e2b1 | refs/heads/master | 2020-06-14T12:48:24.364526 | 2019-07-17T08:27:53 | 2019-07-17T08:27:53 | 195,008,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from .gru import GRU
from .lstm import LSTM
from .transformer import TransformerEncoder
from .max_polling import MaxPooling
class SentenceEncoder(nn.Module):
def __init__(self, vocab, encoder_name, d_model, n_layers=None, n_head=None, d_k=None, d... | [
"s.shota.710.3506@gmail.com"
] | s.shota.710.3506@gmail.com |
53f94938a122ab672d4d897673340a88a29994b3 | 9ab2ec84d6eb67a4e7df1528dfb373443fc0ff65 | /src/pylytics/data_reports/DataReportProcessor.py | 039409382c72cb01a9c65c0c6e880b202166121d | [] | no_license | pedrolfernandez/pylytics | b15e04d2efda2692f76a89eb611d12f4402180cf | 11b901863c178f1a131bddfc58b8b0795885395e | refs/heads/master | 2021-01-20T13:04:40.063618 | 2017-09-26T08:18:15 | 2017-09-26T08:18:15 | 101,734,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | from pylytics.common.Global import logger
from pylytics.data_reports.DataReport import DataReport
from pandas import DataFrame
class DataReportProcessor:
def __init__(self, reportDef : DataReport):
self.reportDef = reportDef
def process(self, dataFrame : DataFrame) -> DataFrame:
logger.debug... | [
"pedrol.fernandez@gmail.com"
] | pedrol.fernandez@gmail.com |
41d6f83c5e266bcbb62fbb676ad036bfa7f94ca1 | 356fd2f67afc48b57b106710a563b99e97bc81cf | /ex12.py | a26a392c25eda1caa8a4fbc9dad0317ead8d883e | [] | no_license | JoeButy/learnPython_HardWAY | 06ed1f7d5bc82317309b3e09f57d532453ba56bc | 5f10ff7fe7e88f5699c4a3a34cd4215b03d8b9ee | refs/heads/master | 2021-01-10T16:39:23.072773 | 2018-04-03T20:27:56 | 2018-04-03T20:27:56 | 54,585,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py |
age = raw_input("How old are you? ")
height = raw_input("How tall are you? ")
weight = raw_input("How much do you weigh? ")
print "So, you're %r old, %r tall and %r heavy." % (age, height, weight) | [
"noreply@github.com"
] | noreply@github.com |
fac67846bf7f365ebe9cc4d1cb6dc5abff6274de | 186cad69724965fb1e8d3fc9fbcbd4954c899fb0 | /account/views.py | 27028d815a5b1f38b349f0b2579410246edf8a7c | [] | no_license | tuangit2017/django-blog | 830e7326361f533e0ead10960b8d794af7ffff80 | 6513c63893f99138a10f6692c2c73d2c30c0db7c | refs/heads/master | 2020-11-24T10:55:28.545102 | 2019-12-15T02:38:41 | 2019-12-15T02:38:41 | 228,117,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,467 | py | from django.http import HttpResponse
from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
from .forms import LoginForm, UserRegistrationForm, UserEditForm, ProfileEditForm
from django.contrib import messages
f... | [
"tuanallejo12@gmail.com"
] | tuanallejo12@gmail.com |
61211b633b92b237b9615abe206f7029f8f611ea | 09b453eb358fb38886fcc3c08587d5926b79384f | /apps/galleries/migrations/0005_auto__del_field_galleryimage_is_preview_image__del_field_galleryimage_.py | decbac4ee87a941df2660240121bfb2d47c5194e | [] | no_license | levithomason/sparrowbleu | 56188fa4f81cebe44fbfe88554b239dd95b9eb25 | d76c82a7dfc29b0562dcdc063e4e7ec0dcf6afdd | refs/heads/master | 2021-01-11T10:57:34.735531 | 2014-09-23T01:21:03 | 2014-09-23T01:21:03 | 13,165,915 | 4 | 1 | null | 2014-09-23T00:51:16 | 2013-09-28T02:47:34 | Python | UTF-8 | Python | false | false | 2,879 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting field 'GalleryImage.is_preview_image'
db.delete_column(u'galleries_galleryimage', 'is_preview_ima... | [
"me@levithomason.com"
] | me@levithomason.com |
202ffdc331d2955587acdf296d2f6cc782d26fe0 | 0754e2e7aa1ffb90b54d563ce5a9317e41cfebf9 | /keras/keras95_save_pd.py | 0fcb88a0887f2d9415ea9ce5bffeaf323de5902a | [] | no_license | ChaeMyungSeock/Study | 62dcf4b13696b1f483c816af576ea8883c57e531 | 6f726a6ecb43387e4a3b9d068a9c491b115c74c0 | refs/heads/master | 2023-01-24T20:59:52.053394 | 2020-12-07T14:54:34 | 2020-12-07T14:54:34 | 263,255,793 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | import numpy as np
import pandas as pd
datasets = pd.read_csv("./data/csv/iris.csv", index_col=None, header=0, sep=',') # sep => ,를 기준으로 데이터를 구분한다.
# pd => loc // ioc
print(datasets)
print(datasets.__class__)
print(datasets.head()) # 위에서부터 5개
print(datasets.tail()) # 뒤에서부터 5개... | [
"noreply@github.com"
] | noreply@github.com |
3de9c5550882e4c141ef6ea0d3e76c6f2979ad68 | c931a0bcd5d5b662f77425e8d8bca829ed78e5d5 | /settings.py | 48ecb9b4ba481b03f33134200c5280a688b84f0e | [] | no_license | mahendra/pyconcelery | bfa36316b87009095ee7d2fde86d3c95d48cdeac | bbf21299429b16a7b11c1ad18b0cef6164992cae | refs/heads/master | 2020-12-25T18:22:50.239818 | 2010-10-08T12:24:53 | 2010-10-08T12:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | # Django settings for pyconcelery project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@domain.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
... | [
"mahendra.m@gmail.com"
] | mahendra.m@gmail.com |
e1787e67a18a5c1d745e3ad1e23b16be843293a1 | f5a18c8b007bcc6830477c8f21a9cced9e42ef8e | /helloworld.py | d7d1a2810e2ee4cfecb6b95e18abea6d543b3094 | [] | no_license | todd-trowbridge/python101 | f29554a2997c3285215b12d932399b17c84457d7 | 32614a24319c9f7fa5af3377b0946c992219f4cc | refs/heads/main | 2023-05-07T18:42:16.523185 | 2021-06-04T01:50:56 | 2021-06-04T01:50:56 | 373,641,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # print strings with quotes
print("hello world")
print('hello world')
# print multiline strings with triple quotes
print('''hello world''')
print("""hello world""")
print('''
Hello
My name is Todd
''')
# escape character '\'
print('I\'m a human')
# concatenate
print('statement 1 ' + 'statement 2')
# convert other '... | [
"todd.trowbridge@icloud.com"
] | todd.trowbridge@icloud.com |
3b5e01f851fe5f4d0fb849598c50e30cab4e13d6 | ad13e1c4fb65b810cd6d7232ab618e29d864a3d9 | /ocode/divideonion.py | 2c4bcf9b6f2c97683defcbcced9e921cc1864dd8 | [] | no_license | shuaiyin/pystudy | 688994f728e6a8e678325e63b3d8caa446caae20 | fe017cb94582b5e3af68807915447ea99983b742 | refs/heads/master | 2021-01-13T10:27:53.808830 | 2017-05-07T08:17:03 | 2017-05-07T08:17:03 | 63,121,870 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # -*- coding: utf-8 -*-
import os
import time
import datetime
import sys
import MySQLdb
conn= MySQLdb.connect(
host='localhost',
port = 3306,
user='root',
passwd='111111',
db ='onion_resp',
)
cur = conn.cursor()
rowsEachFile = 40
fileCnt = 20
for i in range(0,... | [
"18230066837@163.com"
] | 18230066837@163.com |
7b9c4f1d9b9a5d8def43897213218e43fb976d97 | 722c828d60bc48cf76576c48e45ae70517dbf14a | /Sorting/Bubblesort.py | e1dae0047f0ed1ff605915f362056f3f72dd102f | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | AbdulAhadSiddiqui11/PyHub | 13fefedd337c18bdd1402487d862fe5de2fa3c2a | 26f9c106dd836d8b186e76a772d56d0212482f07 | refs/heads/master | 2022-12-21T00:54:53.273966 | 2020-10-01T06:57:02 | 2020-10-01T06:57:02 | 300,038,081 | 1 | 0 | MIT | 2020-09-30T20:01:25 | 2020-09-30T19:30:52 | Python | UTF-8 | Python | false | false | 275 | py | def bubbleSort(lst):
for i in range(len(lst)-1):
for j in range(len(lst)-i-1):
if lst[j] > lst[j+1]:
lst[j],lst[j+1] = lst[j+1],lst[j]
lst = list(map(int,input('Enter a number list to be sorted: ').split()))
bubbleSort(lst)
print(lst) | [
"tanvisutar888@gmail.com"
] | tanvisutar888@gmail.com |
38693f3a12567abac72bb3a29f1ebe123ac775a7 | 46548aac69803470361503b005d64bb2ec8cb24c | /Assignment/Section3/CapNuoc.py | bbedb574c0c9aa376138ea8bb68ea07efa2713c0 | [] | no_license | hoangnhancs/CS112.L11.KHTN | e425141203f2c09e7e45c0125b2241eb5c51598e | d1ac96ce5953d1a0b621b802a2bbe1c468ea07c1 | refs/heads/master | 2023-02-21T07:35:22.859211 | 2021-01-25T02:23:31 | 2021-01-25T02:23:31 | 294,288,315 | 4 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,904 | py | # chúng ta biết rằng sẽ có chắc chắn từ 1 - N đỉnh hoặc đơn giản hơn là 12 đỉnh từ a tới k
# mở file để thử cho dễ
# f = open('sample_input.txt')
# lines = f.readlines()
# n,m = map(int,lines[0].split(' '))
# lines =lines[1:]
# đọc từ stdin
n, m = map(int, input().split())
lines = []
for i in range(0, m):
lines... | [
"thaihoangnhantk17lqd@gmail.com"
] | thaihoangnhantk17lqd@gmail.com |
07e630d44a8989d5fc62c8144ed9b5a7ae256571 | 4d8163d14662df4e48b9cea97a6889c98b0d9fee | /src/outdoor_bot/srv/_NavTargets.py | 314b4e797e0005ef4a7864b1f2fc79dad408f8b5 | [
"BSD-2-Clause"
] | permissive | dan-git/outdoor_bot | b4e46db31ecc8fa810ddc6f4df812826b8cf1ae4 | 81bf75e26449f8e4b6a38f4049ca4d4cda7b8c04 | refs/heads/master | 2021-01-19T18:10:21.154726 | 2015-06-30T03:14:54 | 2015-06-30T03:14:54 | 34,421,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,500 | py | """autogenerated by genpy from outdoor_bot/NavTargetsRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class NavTargetsRequest(genpy.Message):
_md5sum = "012c3777a44f79790765a2df79c43c13"
_type = "outdoor_bot/NavTargetsRequest"
_has_heade... | [
"dan7296@yahoo.com"
] | dan7296@yahoo.com |
7ce7641da5e791639d86d1f99141db013420684f | e3f5f41b242650b4bef68aa191a5779aedd3e02e | /Chapter08/webapp/blog/__init__.py | 2466cfc37bebc0f03e32230a209719fa73d38481 | [
"MIT"
] | permissive | PacktPublishing/Mastering-Flask-Web-Development-Second-Edition | d4675c047bb51b0154958205f53c962ab4d32e4c | c3174127b40f8af1e2ab5e614994ffed7acbc11b | refs/heads/master | 2023-05-11T00:23:30.213655 | 2023-01-18T09:14:14 | 2023-01-18T09:14:14 | 154,667,293 | 168 | 131 | MIT | 2023-05-01T20:52:13 | 2018-10-25T12:30:58 | Python | UTF-8 | Python | false | false | 124 | py |
def create_module(app, **kwargs):
from .controllers import blog_blueprint
app.register_blueprint(blog_blueprint)
| [
"noreply@github.com"
] | noreply@github.com |
c28e730ec640401a04d6082566e005633a87106c | ac01b09550ccedb68a05756a7455c60766b60857 | /src/mcqexam/urls.py | eb22ad6e4bc7093c18a2bedd2176952a1c0afce6 | [] | no_license | cseai/OpenEduQA | ea669cffa7d3f2f3ded2221c8cb85876ac1438df | 8a90a843720a175c5da0af4fc51cc8e6542deb33 | refs/heads/master | 2023-06-10T23:17:40.502619 | 2021-07-05T12:43:44 | 2021-07-05T12:43:44 | 281,315,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from django.urls import path
from .views import (
mcqexam_list,
mcqexam_create,
mcqexam_detail,
mcqexam_update,
mcqexam_delete,
)
app_name = 'mcqexam'
urlpatterns = [
path('', mcqexam_list, name='list'),
path('create/', mcqexam_create, name='create'),
path('<id>/', mcqexam_detail, name... | [
"bh.pro.pust@gmail.com"
] | bh.pro.pust@gmail.com |
1f8b161a79fb876b6e2b5dfe9b48651da9a79711 | 98ea8bc6cd1e32908b90877172f6b2b7fad879f1 | /core/fileupload/urls.py | 6a4cc61c255dd7c11a3eb105993ff30606019e66 | [] | no_license | harishch2610/SpatialTest-1 | 09a21137b17402ca1de636ad2610851da132a51d | 57ec16e153701c102a282e7bc6abbe5da4990fa3 | refs/heads/master | 2022-11-03T08:33:14.728399 | 2020-06-10T16:01:50 | 2020-06-10T16:01:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.conf.urls import url
from django.urls import path
# from core.urls import *
# from . import views
# from .views import index
# from core.fileupload import views
from .views import index, success
app_name = "fileupload"
urlpatterns = [
# path('', views.index, name='index'), r'^aaa$
path('harish... | [
"66690995+harishch2610@users.noreply.github.com"
] | 66690995+harishch2610@users.noreply.github.com |
b1c4f74238e33cc857295609184a468cea859f5c | 816cab20d3f95a726c63ec6e24ea006c2c487dc2 | /Concepts.py | 7a70728875ef5a36d3e22e4189382b6f78bd7b76 | [] | no_license | chrisgeorge0911/AppleCodingTest | bedcb052725f5c32da62029ee2dc1e93ed247bdd | c4630a74a8a4fd9b4b4564481a5095ac45ccf34b | refs/heads/master | 2021-01-10T13:38:14.018183 | 2016-04-08T22:16:08 | 2016-04-08T22:16:08 | 55,534,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | from trie import Trie
class Concepts:
def __init__(self):
self.conceptData = Trie()
self.read_concepts()
def read_word_file(self):
text_file = open("word.dat", "r")
lines = text_file.read().split('\n')
text_file.close()
return lines
def read_concepts(sel... | [
"chris@chrisgeorge.org.uk"
] | chris@chrisgeorge.org.uk |
7865b4024ad1c4a72a3d720874cad1fad4cf0be0 | 063b3aa38c51a41fe031dbeb38c3102d518d67f4 | /cone-peeling_alg.py | 93800d1063d16d602d3ea338e6ce3b83986ad21c | [] | no_license | pusilvija/Cone-peeling-algorithm | b8b9380b26351a883e706e78045344c224593cd7 | f71c73905b057f9f1131b29eba1ae269b1e26847 | refs/heads/master | 2021-01-16T05:40:20.590941 | 2020-03-30T18:28:45 | 2020-03-30T18:28:45 | 242,995,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,369 | py | """
Cone-peeling algorithm for getting the essential pairwise distances.
"""
#Imports
import torch
import numpy as np
from sklearn.metrics import mean_squared_error
import math
import time
from sklearn.metrics import pairwise_distances
import multiprocessing
from Bio.PDB.PDBParser import PDBParser
from Bio.PDB.Polypept... | [
"noreply@github.com"
] | noreply@github.com |
cbff3a164ef21d483b638712b7037ce60b14a9bf | 50eea165890ca91a37e787b6f002f4cb927cfc35 | /pigem/12/12.py | 15b4bca8a9182ffc2c757b158a1131dd1fd7c8d1 | [] | no_license | vuagieucot/pythoncorner | 12cd55c1842e2c6ab222a3380371730693a36255 | 504f34ca410d395bf3f866087a38f00998a66808 | refs/heads/main | 2023-01-02T18:03:06.274939 | 2020-11-01T15:08:38 | 2020-11-01T15:08:38 | 309,115,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,231 | py | import pygame
import time
import random
pygame.init()
sound_crash = pygame.mixer.Sound("mus/Crash.wav")
pygame.mixer.music.load("mus/Wicked_Things.wav")
display_width = 800
display_height = 600 # easier to modify later
black = (0, 0, 0)
white = (255, 255, 255)
red = (200, 0, 0)
green = (0, 200, 0)
gray = (100, 100... | [
"mrtuan2001@gmail.com"
] | mrtuan2001@gmail.com |
21e5b289174d8a20e917608c2887b4caf094eb6b | 9e3752b82ae77d7e8f8312890abaf207a10cf322 | /music/admin.py | f2727037601b8d967c392b49e72651eaea772810 | [] | no_license | sanketpathak64/Music-app | 0118057b93964f156d57e171fa17e180edcb7fe6 | e3417881066893fd0ac8f716294e0e576d9bec04 | refs/heads/master | 2020-12-20T21:37:06.751121 | 2020-02-01T08:02:56 | 2020-02-01T08:02:56 | 236,215,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django.contrib import admin
# Register your models here.
from .models import Album,Song
admin.site.register(Album)
admin.site.register(Song) | [
"sanketpathak64@gmail.com"
] | sanketpathak64@gmail.com |
850e09600cdd38e57abc33b9302c7c5f830a5f8c | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_23737.py | f4d160c86ea326b6ca9a18cbdf1e3aa86cd0a403 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | # '(match_start1)...(match_start2)...(match_end)' find the shortest string match
re.findall('(?=(\D\d{2,5}?.+?CA.?[ -._]*(?:\d{5})?))','6785 56767at435 hjfioej st. CA. 94827ifojwnf 93842')
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
9b308580379af1d6b33e4599eda1edb75937cdaf | b6f2d5b89a648da2c6f716da5243a009845b22fe | /Data-Structure/data-Structure_python/RedBlackTree.py | e29a8dee7fa00d1ae6d1e95d9ac1fea83697b1af | [] | no_license | Lenir/TIL | 71c2b3ee5a1a1447334f3b712dc44e5e9c0bd419 | cf10757bca640b267b2b130a2b5c94896023c9c2 | refs/heads/master | 2023-08-11T21:41:01.092993 | 2023-07-18T01:05:18 | 2023-07-18T01:05:18 | 112,985,712 | 0 | 0 | null | 2023-07-18T01:05:19 | 2017-12-04T02:38:04 | Java | UTF-8 | Python | false | false | 8,887 | py |
class RedBlackTree:
def __init__(self):
self.root = None
def insertValue(self, value):
newNode = RBTNode(value)
self.insertNode(newNode)
def insertNode(self, node):
try:
terminalNode = self.getNearestNode(node.value)
terminalNode.insertChildNode(nod... | [
"1net1@naver.com"
] | 1net1@naver.com |
bf7764b3a95b12fc797f18f7c5ba27e31b309e07 | 3564bdef75a51174b5a8d63ebe9c509834fffb82 | /game.py | e277bc4ced33977fdc0c777d2b21aa1b40c9cb58 | [] | no_license | redcoatwright/PFGame | 52b98afdedf54cfd796be86b4ee7a22cc5803a09 | 4c9f7754a0c2344944c982c96c3aa7daed9d6ea1 | refs/heads/master | 2020-03-24T22:01:10.478708 | 2020-01-24T01:58:13 | 2020-01-24T01:58:13 | 143,062,487 | 1 | 1 | null | 2018-08-23T14:10:49 | 2018-07-31T20:15:04 | Python | UTF-8 | Python | false | false | 2,246 | py | import diceRolling
import playerChar
import parse
import world
def userInput(user_input):
return user_input.lower().split(" ")
def main():
openingText()
name = input("What is your name? If you don't answer, it'll be set to a default name which is pretty stupid so you may as well put something down... \n... | [
"randy.acheson3@gmail.com"
] | randy.acheson3@gmail.com |
144d3fd5e228e92bcd4f0529636f1f040b34b8bc | 58c768cc925d9ed878989191c2681aa50668d13a | /accounts/forms.py | 46614d8da9096d066c1b77fdad04440679aa7d8c | [] | no_license | ashusoni2211/Customer_Management_System | 4507c9fdd5ec515833a1c65ef448d1ee6ff84c9b | 1460c113a130a05e2f1b3745e18059974ca3a9ad | refs/heads/master | 2023-02-24T05:46:37.485484 | 2021-01-29T14:01:25 | 2021-01-29T14:01:25 | 287,910,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | from django.forms import ModelForm
from django.contrib.auth.forms import UserCreationForm
from django import forms
from django.contrib.auth.models import User
from .models import *
class CustomerForm(ModelForm):
class Meta:
model = Customer
fields = '__all__'
exclude = ['user']
class Orde... | [
"ashusoni2211@gmail.com"
] | ashusoni2211@gmail.com |
dbf4440fe65197fcde1ca3b5fa97b257966e36f2 | a10377a6d0c7576b9e47209f49dea398181f73fe | /test/node/milticasttest.py | c0ccd0fe7d2886bebf8866e8cd1ec423bc99e87f | [
"BSD-3-Clause"
] | permissive | zymITsky/ants | 14077dab214aff543bbc75a059240dd55f656916 | 52918d18c94a9a69c3b2495286e3384ba57ad6f8 | refs/heads/master | 2020-06-01T11:04:53.520288 | 2015-02-03T08:09:59 | 2015-02-03T08:09:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | '''
test multicast
'''
__author__ = 'wcong'
import unittest
from ants.cluster import cluster
from ants.node import multicast
class MulticastTest(unittest.TestCase):
def test(self):
cluster = cluster.ClusterInfo(name='test_cluster')
multicast_node = multicast.MulticastManager(cluster, self.print_r... | [
"cong.wang@tqmall.com"
] | cong.wang@tqmall.com |
87393171cd5827441374dc7368b3e3892761fee0 | cd89fbc8688e7d1dffd772853f10cbcfcf835741 | /server/test_data.py | abeeca3c6ec7f94bbb3b83c7d31554ef14d2c1c3 | [] | no_license | pickledish/eventrist | fd71c99d30441a0f1a6533a4dd7747325c97d40d | 27802aee2ac73950324def6632f66e5ebe4b3595 | refs/heads/master | 2022-12-15T03:44:29.447121 | 2021-11-19T16:44:25 | 2021-11-19T16:44:25 | 243,095,546 | 2 | 0 | null | 2022-12-05T10:22:53 | 2020-02-25T20:27:40 | Svelte | UTF-8 | Python | false | false | 838 | py | import random
import requests
import uuid
FIRST_DAY = 1568675774000
def create_event(day_ms):
"""
Makes a test event that, when done en masse, will look like something interesting
"""
return {
"name": "order_time_ms",
"time": int(day_ms + random.uniform(0, 86400000)),
"value": abs(float(random.gau... | [
"brandon@actioniq.com"
] | brandon@actioniq.com |
754042640b83763fa59501ebe13bd380ce186e27 | cacece9ddda519ad949c8a9d2f49b8e0cd482c86 | /Data_analysis/data_cleaning.py | 55c7601ca5fc1afae419f4cfdf62ac8031514106 | [] | no_license | antonVosc/publish | 9e33fe3db93cf818e3e51a8f06c42e91ea6b56e6 | 36fb112c143f21f012c91a53c471729df4d7c84d | refs/heads/master | 2022-12-14T23:02:11.999578 | 2021-12-19T17:07:02 | 2021-12-19T17:07:02 | 228,032,695 | 2 | 2 | null | 2022-11-22T05:01:57 | 2019-12-14T14:04:24 | Python | UTF-8 | Python | false | false | 1,479 | py | import csv
from datetime import datetime
import matplotlib.pyplot as plt
import pandas as pd
import matplotlib.dates as mdates
from pandas.plotting import register_matplotlib_converters
register_matplotlib_converters()
date = []
close_values = []
new_dates = []
with open('sample.csv') as csv_file:
reader = csv.r... | [
"anton.vosc@gmail.com"
] | anton.vosc@gmail.com |
cdcb2965eca923f85af470bd46b898fa150b358b | 846d0bbeae7bdd6faa2fa0ffedeec16853ae001f | /aws_layers/handler_utils/python/lib/python3.6/site-packages/dldt_tools/processing_layer.py | 22f1c2162e074911e48cf5ec53aeb51db41e17b9 | [] | no_license | Vicomtech/serverless-mlperf | 9a57bd7d50edd581a3b5470dd84b1c01f1f76464 | f0bdf02f29040328473f30a687359cc29166903a | refs/heads/master | 2022-12-25T18:50:06.982195 | 2020-10-08T14:32:25 | 2020-10-08T14:32:25 | 272,522,060 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,617 | py | """
This file contains the princial class to handle the different engine_and_format
and models workload, in Handler layers.
"""
import os
import boto3
import dldt_tools.supported_profiles as SP
import dldt_tools.json_tools as sjt
"""
This class is used in lambda_test_SUT to enable DNN inference depending on the selec... | [
"jgoenetxea@gmail.com"
] | jgoenetxea@gmail.com |
1a78ac7d413ae6a7a8a11d6d942c1141d44b7bb0 | 679743f5f20d863724b0389d734c8b1dd43ab31a | /app/event_queries/mongo_utils.py | c33aa1d987701a789c2f68db64a5e6f4d21e164a | [] | no_license | Fematich/article_browser | 3bc565da84a48e7603df7089ef92b16a4707e8dd | da4686630f4a56a0927daa16e6aa68e8d9ec542b | refs/heads/master | 2021-01-10T19:37:09.080828 | 2014-01-29T23:26:48 | 2014-01-29T23:26:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,141 | py | # -*- coding: utf8 -*-
"""
@author: Matthias Feys (matthiasfeys@gmail.com), IBCN (Ghent University)
@date: ...
"""
import logging, pymongo
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
logger=logging.getLogger("mongo-utils")
db = pymongo.MongoClient()
annotations=... | [
"matthiasfeys@gmail.com"
] | matthiasfeys@gmail.com |
eadece8617cdc25ac73efb28c19f2ad0379e8584 | bd3528cc321dc37f8c47ac63e57561fd6432c7cc | /transformer/tensor2tensor/models/xception_test.py | b57a757b9cbc4ec041840652bf6955e95e961d8c | [
"MIT",
"Apache-2.0"
] | permissive | oskopek/cil | 92bbf52f130a1ed89bbe93b74eef74027bb2b37e | 4c1fd464b5af52aff7a0509f56e21a2671fb8ce8 | refs/heads/master | 2023-04-15T10:23:57.056162 | 2021-01-31T14:51:51 | 2021-01-31T14:51:51 | 139,629,560 | 2 | 5 | MIT | 2023-03-24T22:34:39 | 2018-07-03T19:35:24 | Python | UTF-8 | Python | false | false | 2,136 | py | # coding=utf-8
# Copyright 2018 The Tensor2Tensor Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"lukas.jendele@gmail.com"
] | lukas.jendele@gmail.com |
6b304246b31593a7a853b64571e6ff354f075661 | 4a75abcc333cd04271771b3e6f5f7d69c89f6c84 | /node_modules/socket.io/node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build/config.gypi | dcdc8fc05a75cb1b9fc95344513b62409e44f7ea | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | deepakilango/Infy2015Hack | cd496e124c1f97bd0b13977c538fd4079838148a | ff8e189763e76d6aae2513798f2cc2e2c8a37ea2 | refs/heads/master | 2020-04-17T07:24:32.157878 | 2015-07-22T17:42:34 | 2015-07-22T17:42:34 | 32,045,962 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,091 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 48,
"host_arch": "x64",
"node_byteorder": "l... | [
"vigneshwaran1103@gmail.com"
] | vigneshwaran1103@gmail.com |
a8ec94a76dd7aab2438f330dc057fb4b5da94e5f | f35bb12066639698a94847cba4b4628aede1da70 | /contests/python/abc212/e.py | 0ce3c5a5eda3746793766fd7066c0063fb7036f3 | [] | no_license | fly1tkg/atcoder-python-note | 7e74382a8867b07bb7a926988ac854a3b84e020b | 6051b771c0a0399ce8caf1e24256a9909101b0e7 | refs/heads/main | 2023-08-26T23:52:14.766576 | 2021-10-30T11:58:38 | 2021-10-30T11:58:38 | 363,686,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | N, M, K = map(int, input().split())
| [
"fly1tkg@gmail.com"
] | fly1tkg@gmail.com |
06a5261491b298baae273a75b5c92a53342595dd | 8972884b5ddf913bd826d288620b511be4267c04 | /jump6.py | e044baf281dbfa1fb7b9976af6e2b654362ebf55 | [] | no_license | yinlei1982/xiaobai | 7af10f0c35879918ffce6ee12d47dca4592caf17 | 5815565f8fcfcf010fe59bb949aa594ce0899a4f | refs/heads/master | 2022-12-04T10:52:31.719321 | 2020-08-27T10:52:27 | 2020-08-27T10:52:27 | 289,837,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | a=0
for a in range(1,30):
if a%6==0 or a%10==6 or a//10==6 :
continue
else:
print(a)
| [
"shiyinlei@163.com"
] | shiyinlei@163.com |
7fe2e4386e11fee1060bfb90f6f3a38b260b6544 | fc514bc9f1fc339cfcd58da0ca3a3ffa891db68d | /Pila.py | 0141d8a3ff0be1d0388d6ef2188d35e77d072ca3 | [] | no_license | humbertoo12/EstructurasDatosLineales2019 | 08acaabd9501081d4e5fb8560b1c0768894464b2 | c97bb2148a86cdf44a99058635739c948e52ae23 | refs/heads/master | 2020-08-02T12:02:22.110971 | 2019-09-27T15:01:45 | 2019-09-27T15:01:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,688 | py | # Implementación de una pila estática
class Pila:
__tamPila = int(0)
__listaPila = []
__cima = 0
def __init__(self, tamPila):
self.__tamPila = tamPila - 1
self.__cima = -1
def PilaLlena(self):
if self.__cima == self.__tamPila:
return True
else:
... | [
"leonelgv@gmail.com"
] | leonelgv@gmail.com |
6ebe8ee7411a32d10a802ee01d53684cd0fe6e3a | 950a87f8e64636d2e1f6dd51f04ed51a41085429 | /tests/test_models_zoo.py | 08a62611dd76f8524770c811f13c96865b23aaf1 | [
"MIT"
] | permissive | Pandinosaurus/pytorch-toolbelt | 325e503a02495a9d7e203bd58e7ad444648688bf | 94d16a339cf9cb4b95bcaa539a462d81f4b82725 | refs/heads/develop | 2023-08-31T03:41:19.373645 | 2021-08-11T14:11:12 | 2021-08-11T14:11:12 | 207,519,450 | 0 | 0 | MIT | 2021-08-12T03:04:37 | 2019-09-10T09:35:17 | Python | UTF-8 | Python | false | false | 758 | py | import pytest
import torch
from pytorch_toolbelt.zoo import resnet34_unet32_s2, resnet34_unet64_s4, hrnet34_unet64
skip_if_no_cuda = pytest.mark.skipif(not torch.cuda.is_available(), reason="CUDA is not available")
@skip_if_no_cuda
@torch.no_grad()
@pytest.mark.parametrize("model_cls", [resnet34_unet32_s2, resnet34... | [
"ekhvedchenya@gmail.com"
] | ekhvedchenya@gmail.com |
d61be4bba55d8d1b4da2f03c42d7f341a5c261d5 | f42828088668a350e162dc3094fa869dac0cb2f6 | /Tests/test_home.py | 941b3fda42010e7372f2ccd3be16c3601256e281 | [] | no_license | chakrireddy1609/DemoBlaze | b81389a189e40a625732f8c28192613fe5d109ce | 89419e73d7a5db8f51e85eb8740bd584d1822f0c | refs/heads/master | 2022-12-26T14:45:27.310558 | 2020-10-05T18:41:12 | 2020-10-05T18:41:12 | 301,506,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | from Config.config import config_data
from Pages.HomePage import HomePage
from Pages.LoginPage import LoginPage
from Tests.BaseTest import Test_Base
class Test_home(Test_Base):
def test_laptop(self):
self.loginpage = LoginPage(self.driver)
self.loginpage.click_login(LoginPage.login_button)
... | [
"chakrireddy1609@gmail.com"
] | chakrireddy1609@gmail.com |
b732a07cae5cc6be0c03734d32a1e80121ae1b7b | 271e0a4a931aab11f6c824729a39138c620a1c50 | /OpenCV-Label/deprecated/Test_parameters.py | 7c31cab4c2ec7d4e5488242e91c34ffa5587cf1e | [] | no_license | nielkiway/Training_Data | bdd6c3adfdec7a4e55295d5b6d22a97cee5e1b88 | e38b925c2a24d59d45cb8e3271e33b3fae5e80db | refs/heads/master | 2020-11-25T02:57:10.941662 | 2020-01-26T21:45:00 | 2020-01-26T21:45:00 | 228,424,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | import cv2
import numpy as np
import os
from PIL import Image, ImageDraw
import matplotlib.pyplot as plt
import math
import argparse
import signal
from functools import wraps
import errno
import os
import copy
image_file = 'GridTest.tif'
image = cv2.imread(image_file)
output = image.copy()
gray = cv2.imread(image_fi... | [
"janklein.1995@freenet.de"
] | janklein.1995@freenet.de |
1499cca9a3f1e48b824d4f7e5090c374531a19bf | ae0d197ce03d351dff95e7746379fa5d0f6e1cd6 | /scan_match.py | 17c1e261c6747e04265b4c015206145e010fcffc | [] | no_license | sujalharkut/FastSLAM-2 | 821291739d425113c7208ad0a519569250e1fcd7 | 4f1c8d4fccf03bd7e1f6bc0f3925ca3764703438 | refs/heads/master | 2022-03-30T13:59:25.307434 | 2019-12-16T04:16:41 | 2019-12-16T04:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,726 | py | import numpy as np
from utility import ray_tracing
from utility import pi
def icp(xs,ps,robpos):
'''
perform iterative closest point scan-matching
on two corresponding point sets
xs being the points from actual sensor data - [[x,y]]
ps being the points should be sensed given constructed map and cu... | [
"chenziwe@grinnell.edu"
] | chenziwe@grinnell.edu |
4d8a190ef210d78c575fb8b7666f6f4efc6678d1 | c11fa24d5356ed5cc9ddfe16f4288647c7b6a097 | /venv/lib/python2.7/fnmatch.py | 6eb2ad8a7e36de03ffdd82c064f0ef7b62de6199 | [] | no_license | hputiprawan2/flask-aprt | 0fc6c2420d1f9f522d037ea0ef843c58cbad02e6 | 944ca12c724d5e97f0636bf5be2777a660c0b8fa | refs/heads/master | 2021-01-19T06:32:26.899830 | 2018-10-17T04:30:44 | 2018-10-17T04:30:44 | 64,087,016 | 0 | 1 | null | 2018-10-17T04:30:45 | 2016-07-24T21:44:43 | Python | UTF-8 | Python | false | false | 28 | py | /sw/lib/python2.7/fnmatch.py | [
"hputiprawan2@gmail.com"
] | hputiprawan2@gmail.com |
8b06098f4054685f7efce5dbc58e96a2965691de | b8da788e1e731a6320c93f2ec4b8d71579eafa51 | /pre-ingest-metrics/size.py | a1bf1b9ea585b7a5c46a3db926333f29c9fb40d3 | [
"MIT"
] | permissive | MuseumofModernArt/moma-utils | 8eb7cb33dc00ec53c23199cae9fae46383d53adb | db6ac5128654b75849e018825f98a60a7e27491e | refs/heads/master | 2021-06-08T16:20:31.889741 | 2016-12-14T19:25:13 | 2016-12-14T19:25:15 | 18,073,737 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,682 | py | #!/usr/bin/env python
import os
import datetime
import re
import sqlite3
from hurry.filesize import size
from sys import stdout
i = datetime.datetime.now()
now = i.isoformat()
def get_size(start_path = '.'):
total_size = 0
for dirpath, dirnames, filenames in os.walk(start_path):
for f in filenames:
... | [
"bfinoradin@gmail.com"
] | bfinoradin@gmail.com |
b12ce750e0af16b0fa92ec03c02c71ac7753dd29 | 0c7b9527db4d89d8b863abaa2069cce53aa67155 | /Hacker_rank_problems/taum_and_birthday.py | 531889fd1dc3305958bfa9b9b7d217c2545acc13 | [] | no_license | dsubhransu/pythonbeginner | 5fd0a1ca25c88c8193d0a460c7c182c0536312c3 | e49ae5ff61108c90d1217a30067d877c8220c763 | refs/heads/master | 2020-05-30T17:46:59.824639 | 2019-03-28T08:10:22 | 2019-03-28T08:10:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | def taum_and_birthday(black, white, black_cost, white_cost, z):
if ((black_cost + z) < white_cost):
cost = (black_cost * black + white * (black_cost + z))
elif ((white_cost + z) < (black_cost)):
cost = (white_cost * white + black * (white_cost + z))
else:
cost = black_cost * black + ... | [
"admin@Intern6-MacBook-Pro.local"
] | admin@Intern6-MacBook-Pro.local |
dfe01f8e1a2d8e036f190e6cd9b7c8e79761edfd | 91648b48db78c72cf182293dba847bde6f53aae9 | /tiantianshengxian/user/migrations/0001_initial.py | 03672e28a25ad45598653a4b926ac3aa7e1d1a56 | [] | no_license | zhengdaoshen/mimizhang | b5281c72d94e561f2e8763a5575ee2d29ed3647c | 43326dc8999f6f1eb7d7b15470ada955951c94dc | refs/heads/master | 2020-04-01T09:29:43.306132 | 2018-10-15T08:47:18 | 2018-10-15T08:47:18 | 153,077,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,260 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.contrib.auth.models
import django.utils.timezone
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
('auth', '0006_require_contenttypes_0002'),
]
... | [
"491500459@qq.com"
] | 491500459@qq.com |
bb5cf2bd9afbc637c54860db1dcfb80b4b6cdfcc | 6eb56f2e3f14f2373be07fe95b1c6fedf1e2d49f | /month04/Project/day03-demo/ddblog/ddblog/settings.py | 893e9f69c63fb46dbbd843cdeb0f5c78511d456d | [
"Apache-2.0"
] | permissive | chaofan-zheng/python_leanring_code | fe22b0370cadebf7456477269aff4a35cef0eb41 | 0af44ff39b9ded2c1d2cc96c6d356d21170ac04d | refs/heads/main | 2023-02-28T07:56:46.457552 | 2021-02-10T15:08:33 | 2021-02-10T15:08:33 | 323,584,115 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,843 | py | """
Django settings for ddblog project.
Generated by 'django-admin startproject' using Django 2.2.12.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"417355570@qq.com"
] | 417355570@qq.com |
584c28ab2a1652da5caf8d9c7627b05d92438f44 | 4201e1bce1f2e0cd1e8a95fdef8288a69ab11434 | /Halloween Candy.py | 86eb2d513bcf78ccf0f826c6f19ccc535a6058aa | [] | no_license | EnricoHuber/Rubbish | 3ee0b99fa24fbe5522d95ff3f57d20bdbfb34610 | 684663616581f6e71ee803f202e81267655c8827 | refs/heads/master | 2023-03-30T20:10:02.176577 | 2021-03-16T17:31:19 | 2021-03-16T17:31:19 | 268,452,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | def dollar_percentage(total):
return round((2/total)*100, 2)
def main():
n_houses = int(input("Insert the number of houses visited: "))
print(f"The chance to take a dollar bill is {dollar_percentage(n_houses)} %")
if __name__ == '__main__':
main()
| [
"noreply@github.com"
] | noreply@github.com |
986d71bb891e19818f08ea5c5665e97d35dadafa | 812d0a64bbbe2101fc844947b5db5af94dfe04f5 | /try.py | 3c4cb7a19305985249fe52a549648f7c8472284d | [] | no_license | leoluyi/line-notify | 6b351cb224c750bcde1f796adf54299508c76239 | 2308a0c702d6d802bb7ce025a13470f395b3e3a1 | refs/heads/master | 2022-12-15T12:50:14.971518 | 2021-03-19T07:04:40 | 2021-03-19T07:04:40 | 181,503,724 | 0 | 0 | null | 2022-12-08T07:43:23 | 2019-04-15T14:26:41 | Python | UTF-8 | Python | false | false | 2,032 | py | '''
測試 Line Notify
'''
from dotenv import load_dotenv
from io import BytesIO
import matplotlib as mpl
import os
from pathlib import Path
import requests
import validators
from datetime import datetime
mpl.use('TkAgg')
load_dotenv()
LINE_NOTIFY_API_TOKEN = os.environ['LINE_NOTIFY_API_TOKEN']
def line_notify(token, ms... | [
"leo0650@gmail.com"
] | leo0650@gmail.com |
bf3ca914c2a7a897655bf7952630b45661404d34 | 0552b975d7078423c26c69c435c90510c648a9b4 | /core/views - Copy.py | 38e65df4dc04753a5e58f5ff01806f143b0310eb | [] | no_license | esubbeig/csr_workdocs | 11fe1469f7d692d5994ce11e29ffeb7603cf9273 | 0693deace0add90d798578490d6b04316984b73f | refs/heads/master | 2023-01-24T20:55:53.238969 | 2020-11-24T06:41:57 | 2020-11-24T06:41:57 | 295,684,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173,513 | py | import json
import os
import ntpath
import logging
import math
import decimal
import traceback
from operator import itemgetter
from datetime import datetime, timedelta
from threading import Thread
from django.contrib.auth import login, logout, authenticate, update_session_auth_hash
from django.core.paginator import Pa... | [
"esubbeig786@gmail.com"
] | esubbeig786@gmail.com |
086a38ce3f9dbe7ef69e4aa82fed18b08e68d3b5 | 3a7427baf6c3af2c4ce2f658b1e0b9aec6067f03 | /scripts/pass_thru.py | fba4f4a670971c76ec214f9a75fb315d5fc00016 | [] | no_license | ethanrublee/ecto_pcl | 9a3efae5869c4fa78999410c03d4a5bdca46e9ce | 0d21b3fbe62692427e48d0090d661fdaa1f696ef | refs/heads/master | 2021-01-17T15:55:10.126609 | 2011-07-26T02:33:24 | 2011-07-26T02:33:24 | 1,560,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | #!/usr/bin/env python
"""
A PassThrough filter can filter a point cloud on a single field.
In this example we set the field to "z", and filter all points
with "z" > 2.0 (meters). One could also set a filter_limit_min.
"""
import ecto, ecto_pcl
plasm = ecto.Plasm()
grabber = ecto_pcl.KinectGrabber("Grabber")
passt... | [
"mferguson@willowgarage.com"
] | mferguson@willowgarage.com |
9ec6d198bb369bd0b2bed230d840f27a3b4cfc2f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03673/s125858327.py | 4c76558da4394c983252f90470a140ba3b1ccb40 | [] | 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 | 367 | py | from collections import deque
n = int(input())
A = deque(map(int, input().split()))
b = deque([])
if n%2==0:
for i in range(n):
if i%2 ==0:
b.append(A[i])
else:
b.appendleft(A[i])
else:
for i in range(n):
if i%2 ==0:
b.appendleft(A[i])
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cf680759bce0c3af24f7c36938699aca0ccbdf61 | 828d516b9a67445fd356ed8226c6e0cb095eea6d | /Chapter8/make_shirt.py | e802ffb30652fe464015b87bc14ba97fecce7e07 | [] | no_license | dmikii/pcc2e-work | bb6a8e3ce34d2de0a9aaeb59d6d52a2fc570497f | 1ecf17abbdf6deb79f41ab404839ec06b70ecdf8 | refs/heads/master | 2020-07-06T04:51:11.897368 | 2019-08-18T18:06:33 | 2019-08-18T18:06:33 | 202,897,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | def make_shirt(size='large', text='I love Python'):
print(f"Your shirt size is {size.title()}, and the message says: {text}")
# make_shirt('large', 'Gooba Geeba')
# make_shirt(text='Gooba Geeba', size='small')
make_shirt()
make_shirt(size='medium')
make_shirt(text='Gooba Geeba') | [
"kddiidmk@gmail.com"
] | kddiidmk@gmail.com |
e2fbd926b754897d851f2dd9451f7f0e994a1edf | 318392f410329994be61db5524f52a4adabf6c5a | /backend/settings/__init__.py | bb4a1a9b8125ca197e0f16e8d9040c651ca6fb48 | [] | no_license | AgentBoo/django-hyakunin-isshu | aae4a729b78349f8d22bed1bc0716e96dc0e02fd | 36c9b60e05c8009fd6c9c3990a0232e4a25708ca | refs/heads/master | 2023-01-21T20:52:55.480873 | 2019-04-26T20:02:35 | 2019-04-26T20:02:35 | 136,081,625 | 0 | 0 | null | 2023-01-03T18:01:21 | 2018-06-04T20:53:42 | HTML | UTF-8 | Python | false | false | 875 | py | """
Django settings for backend django-project.
Generated by 'django-admin startproject' using Django 2.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/#default-settings
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/set... | [
"zuzi.han@gmail.com"
] | zuzi.han@gmail.com |
97fd552d5e53a1da14d2b2ea28e455749c64797d | 8d9b39ebd65a0e67448a41b5a0d4c425f8115798 | /test/test_edit_contact.py | 6c076d2538245f6827ebc6dafaa44e1b5a2b4104 | [
"Apache-2.0"
] | permissive | Nasts/python_training | 75a17b1d33549deb7680042b1075546c51c93fff | 3a46b98e4130d26f9a8f32ea607b1a14b3ea13b8 | refs/heads/master | 2020-09-16T12:23:44.819991 | 2020-02-09T16:29:06 | 2020-02-09T16:29:06 | 223,768,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,535 | py | # -*- coding: utf-8 -*-
import random
import allure
from model.contact import Contact
def test_edit_contact(app, db, check_ui):
contact = Contact(first_name="edit_first_name_4", last_name="edit_last_name_4")
if len(db.get_contact_list()) == 0:
app.contact.create(contact)
with allure.step("Given ... | [
"apambukyan@mont.com"
] | apambukyan@mont.com |
571160342a0443a2502636873384c4d420bcadce | fd00e397bf9fcf5ccfc8b95b56585f88f88584ec | /SmalletSubArrayWithHigherSum.py | 964b088d56f90755c49465097e88ff0795dc35ac | [] | no_license | jtambe/Python | ca3db50bbb7242a96df0064a094a4ee851c82c90 | bf3e4064fc4edf56c027e6563686ed921f701fb8 | refs/heads/master | 2022-09-26T04:15:27.627609 | 2022-08-01T22:18:43 | 2022-08-01T22:18:43 | 73,330,192 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | #works in O(n^2)
def LengthOfSmallestSubarrayWithSumHigher(arr, x):
minLength = len(arr)+1
n = len(arr)
currentSum = 0
start, end = 0,0
while(end < len(arr)):
#keep adding sum of elements while it is less than given input
while(currentSum <= x and end < n):
currentSum... | [
"tambe_jayesh@hotmail.com"
] | tambe_jayesh@hotmail.com |
c7f88315aa4f18cca31774636ab38c16a755ada2 | 67fe0124bea6e775dacea7ee974eb73a19921760 | /run.py | e0c6d7ba3162972a9f655a15f4870e539a7c8cdb | [] | no_license | alvmillan/flasktaskr | f1a46732a2591cff4d9976a60bce66229b288317 | 9d9b260219e92c0a3f0f36978509e89a45315393 | refs/heads/master | 2021-01-12T17:45:10.352862 | 2016-10-31T17:35:02 | 2016-10-31T17:35:02 | 71,637,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | # project/run.py
import os
from project import app
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port) | [
"amillan@protonmail.com"
] | amillan@protonmail.com |
68473955cef6f2fd8743fc27cefcb97d77920672 | 42df266a108584117d32941e4f84eececb10001e | /redux_gen/generators/javascript.py | 6b33a98e91f7edb7cfbbe61d72ffca739d46c81a | [] | no_license | SeijiEmery/redux-gen | 6c79edfd537689982fa414c74352f52feeb83168 | e523c23bfda4a33c6393bf135c92a4647b046a0c | refs/heads/master | 2020-07-22T12:56:33.103783 | 2019-09-09T14:35:02 | 2019-09-09T14:35:02 | 207,208,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,497 | py | from generators.renderer_hooks import renderer, create_target
from generators.js_model import *
Javascript = create_target()
@renderer(Javascript, TypedParam)
def render_param(param, context):
return param.name
@renderer(Javascript, EnumKey)
def render_enum_value(key, context):
return "'%s'" % key.value
... | [
"seijiemery@gmail.com"
] | seijiemery@gmail.com |
2bb20d59f4d048a3bcc6335118fedb1789e407b0 | 9da21b7a114afd12ba4764ad98ebfac29a53fa5f | /python_sandbox_starter/py_json.py | d2e120a86dbc7474af7631fc515a729f151a29c5 | [] | no_license | jDiazPrieto/real_estate_website | 279e1fd99f105efb0afdfa974bae2cfde5bb8b54 | da60618fb5d1dbcadee5ad8b798cdf304580999b | refs/heads/master | 2021-10-15T23:46:12.327979 | 2019-02-07T00:34:51 | 2019-02-07T00:34:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # JSON is commonly used with data APIS. Here how we can parse JSON into a Python dictionary
import json
# sample json (usually from API)
userJSON = '{"first_name": "John", "last_name": "Doe", "age": 30}'
# parse to dict
user = json.loads(userJSON)
print(user)
print(user['first_name'])
car = {"make": 'Ford', 'mode... | [
"jdiaz@e1z2r3p1.42.us.org"
] | jdiaz@e1z2r3p1.42.us.org |
2055b681464a0784c8493cf43a32d3bad5df5931 | 21fc3622bb7a3a89a8ed9dec932919936fb1ce36 | /buildout-cache/eggs/plone.app.contenttypes-1.2.11-py2.7.egg/plone/app/contenttypes/tests/test_migration_topic.py | c5bbcf0e7ba23c11c237e4c573da42310890c870 | [] | no_license | erlantostes/plone | 4bc1ccba9e0ab77ce5370489f6b47b806c889c29 | 3a5fb7574cee269a99b148eef695256805ce1a45 | refs/heads/master | 2020-04-01T18:04:32.927641 | 2018-10-17T11:22:59 | 2018-10-17T11:22:59 | 153,469,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,750 | py | # -*- coding: utf-8 -*-
from DateTime import DateTime
from Products.CMFCore.utils import getToolByName
from plone.app.contenttypes.behaviors.collection import ICollection
from plone.app.contenttypes.migration.topics import migrate_topics
from plone.app.contenttypes.testing import \
PLONE_APP_CONTENTTYPES_MIGRATION_... | [
"root@REIT016437.ifb.local"
] | root@REIT016437.ifb.local |
db0d1712bbd15e2de3041f446bcbaae884845bdb | f75427499e742a2eca8e5e0ce5c4c492693f92a4 | /web/tests/test_views_toxresults.py | 59c506b3ab38765ede5ed637b44f947d59fd5881 | [
"MIT"
] | permissive | wimglenn/devpi | 7bee06cfc0e85ac5ce9aa4771b4a620b13ab1685 | 492695c42b7e59d061e8875d93bef7a4a22c1818 | refs/heads/master | 2022-07-16T05:09:24.353750 | 2019-12-03T23:25:25 | 2019-12-03T23:25:25 | 225,690,022 | 0 | 0 | null | 2019-12-03T18:35:50 | 2019-12-03T18:35:49 | null | UTF-8 | Python | false | false | 8,592 | py | import hashlib
import json
import pytest
import re
def compareable_text(text):
return re.sub(r'\s+', ' ', text.strip())
@pytest.mark.with_notifier
def test_testdata(mapp, testapp, tox_result_data):
api = mapp.create_and_use()
mapp.set_versiondata(
{"name": "pkg1", "version": "2.6", "description"... | [
"mail@florian-schulze.net"
] | mail@florian-schulze.net |
c79b2076bfa7ce63eafa92d9ff0a8b9ecb045895 | cc0c7b6af25ce5a1a5fe310628d8a43475f0c41f | /det3d/datasets/__init__.py | 51e3d8f492a19c33b85427acab6d0244fa166b19 | [
"Apache-2.0"
] | permissive | chisyliu/Det3D | 183bb6c8d23277cecf9903184553b4c5cee88612 | e437ca6eb2e9becf478ae0e5f6400f7c21bb7495 | refs/heads/master | 2023-03-03T09:00:29.790693 | 2021-01-21T10:44:34 | 2021-01-21T10:44:34 | 267,220,075 | 1 | 0 | Apache-2.0 | 2021-01-21T10:44:35 | 2020-05-27T04:25:22 | null | UTF-8 | Python | false | false | 748 | py | from .builder import build_dataset
# from .cityscapes import CityscapesDataset
from .kitti import KittiDataset
from .lyft import LyftDataset
from .nuscenes import NuScenesDataset
# from .custom import CustomDataset
from .dataset_wrappers import ConcatDataset, RepeatDataset
# from .extra_aug import ExtraAugmentation
... | [
"poodarchu@gmail.com"
] | poodarchu@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.