blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c605b9dc5167844975b9187ae3acebe8834279c4 | 0ec0fa7a6dc0659cc26113e3ac734434b2b771f2 | /4.refactored/log/2016-10-05@17:04/minibatch.py | 886ce8f9f587e873a21c60e3789b11ffa3ac5c45 | [] | no_license | goldleaf3i/3dlayout | b8c1ab3a21da9129829e70ae8a95eddccbf77e2f | 1afd3a94a6cb972d5d92fe373960bd84f258ccfe | refs/heads/master | 2021-01-23T07:37:54.396115 | 2017-03-28T10:41:06 | 2017-03-28T10:41:06 | 86,431,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,170 | py | from __future__ import division
import datetime as dt
import numpy as np
import util.layout as lay
import util.GrafoTopologico as gtop
import util.transitional_kernels as tk
import util.MappaSemantica as sema
from object import Segmento as sg
from util import pickle_util as pk
from util import accuracy as ac
from util ... | [
"matteo.luperto@polimi.it"
] | matteo.luperto@polimi.it |
23846ce4bec5d5384d38a3c2953d879d89b4d23d | 8e81c6c053f0a886675f47c84185ee2c749d7144 | /quiz/Problem 5-1.py | 69e13e5800c0e5a891f1bf88b5a2fd8502cf15e3 | [] | no_license | Silver-Iron/EDX-MITx--6.00.2x | 81acf404cda7fe34e0e3c0a9532faafb29048fe6 | 47740ea97d9f54ef5396fe3186e6485cbfeeba0f | refs/heads/master | 2021-01-22T22:34:16.283793 | 2017-03-20T09:34:31 | 2017-03-20T09:34:31 | 85,552,811 | 0 | 0 | null | 2017-03-20T08:33:25 | 2017-03-20T08:33:25 | null | UTF-8 | Python | false | false | 1,162 | py | """
You are taking a class that plans to assign final grades based on two midterm quizzes and a final exam. The final grade will be based on 25% for each midterm, and 50% for the final. You are told that the grades on the exams were each uniformly distributed integers:
Midterm 1: 50 <= grade <= 80
Midterm 2: ... | [
"dr.tallin@gmail.com"
] | dr.tallin@gmail.com |
1939dc7db68354a767eb23fbeb3da366e3043063 | 20176bf4fbd8aec139c7b5a27f2c2e155e173e6e | /data/all-pratic/preety_10022/Day2/Guess_Word_Game.py | 54df69da926c00a645e99a803a03b03a155f693c | [] | no_license | githubjyotiranjan/pytraining | 4ac4a1f83cc4270e2939d9d32c705019c5bc61c5 | 8b50c4ab7848bd4cbfdfbc06489768d577289c66 | refs/heads/master | 2020-03-19T06:22:20.793296 | 2018-06-15T20:08:11 | 2018-06-15T20:08:11 | 136,013,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | word_input="Apple"
word_length=len(word_input)
word_input=word_input.lower()
letter_guess = ''
count = 0
limit = 10
livesleft=limit
correct_words=0
while livesleft >= 1:
letter_guess = input('Guess a letter: ')
letter_guess=letter_guess.lower()
if letter_guess in word_input:
print(' It is correct... | [
"jsatapathy007@gmail.com"
] | jsatapathy007@gmail.com |
d0570e0c7100f66c352d8a6765156f68a49587d1 | ffc4f38fcb8fd341132152fad008d10ff5b3f4e7 | /menu-duplicatefirst.py | 467265b5b8cd581f940580f34412a8b3a9af1e87 | [] | no_license | imclab/AddLocator | 840a88371bf11b4f44818bd88e803f4bdf3c1b13 | 67b6f47a8eade3601a233dccfdeee2d6918ee20d | refs/heads/master | 2021-01-21T02:20:18.746329 | 2013-08-13T20:36:29 | 2013-08-13T20:36:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,492 | py | from maya.cmds import *
import maya.mel as mel
#1. make an array of all selected objects
target = ls(sl=True)
#2. if only one selection, just make a new duplicate at the same coordinates...
if(len(target)==1):
#call through mel because python has no rc option!
mel.eval("duplicate -un -ic -rc")
else:
try:... | [
"nick@fox-gieg.com"
] | nick@fox-gieg.com |
3943ff161decd9e1262e58fabc959079a0dbd52b | 07aa9b5a07df2a80b7d899da1da63c84b1060fec | /src/iegen/codegen/visitor/_visitor.py | 573f2e54a91763a9bcdc2516091ce08d8217736e | [] | no_license | lamielle/iegen | f26da812a01557daca086e0a1c76a62af8fe7cd4 | 0f48edad8d14ae18c907d705751552cf6eb53c8e | refs/heads/master | 2016-09-05T12:48:23.698779 | 2010-12-14T19:17:13 | 2010-12-14T19:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,741 | py | # _visitor.py
#
# Visitor class for traversing an AST of a program
# Alan LaMielle 10/20/2008
from iegen import IEGenObject
#---------- Depth First Visitor ----------
class DFVisitor(IEGenObject):
def __init__(self):
#---------- State members ----------
#Will be True if we are within a function, False otherwis... | [
"lamielle@cs.colostate.edu"
] | lamielle@cs.colostate.edu |
1270547d683a15d46dcba368745d6f9d8a4a63fd | c646ad2dfab80f7183076dde82a82e6e1a6222d2 | /athenatools/migrations/0021_auto_20190310_1802.py | 80ac23bf864276666e7f2ae06dfa0036f6cc49eb | [
"MIT"
] | permissive | taojy123/AthenaTools | b7f5a799dca60237fb69f312f5a913964ae00097 | 612b113c5c9aeb0e6612242540fa05b7f0ac02c5 | refs/heads/master | 2023-07-21T06:32:15.638271 | 2023-07-19T09:42:01 | 2023-07-19T09:42:01 | 141,523,525 | 9 | 2 | MIT | 2023-06-30T22:19:13 | 2018-07-19T04:14:20 | Python | UTF-8 | Python | false | false | 2,397 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2019-03-10 10:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('athenatools', '0020_auto_20190310_1740'),
]
operations = [
migrations.Alte... | [
"taojy123@163.com"
] | taojy123@163.com |
ce991260a7e6c3aa07a348aed0fc5b6a06f621dd | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/T/tlevine/do_floats_break_the_datatable.py | ca732952aa668563159bca0a2b24b53642ebc4ac | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | from scraperwiki.sqlite import save
save([],{"chainsaw":float(334.00023)})from scraperwiki.sqlite import save
save([],{"chainsaw":float(334.00023)}) | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
0e1f8fb4c87029d81455a43272cd900f200b5f9e | 51575eeda79a6e12c8839046721168e5cc5b6774 | /gns/inference/optimization/tune.py | b369718420e2fe4eae814ede4bb9deea5eb6b764 | [] | no_license | rfeinman/GNS-Modeling | 59ad26efea4045c7dae98e98263d1193d53052b8 | 2c6b3400bfbb30f8f117042722fbcca2a8e9cb98 | refs/heads/master | 2023-06-08T21:22:27.914054 | 2021-07-08T14:17:56 | 2021-07-08T14:17:56 | 274,778,209 | 22 | 7 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | import numpy as np
import torch
def get_param_grid(pblur, peps, nbins_blur, nbins_eps):
blur_grid = np.linspace(-50, pblur, nbins_blur)
eps_grid = np.linspace(-2, 1, nbins_eps-1)
eps_grid = np.append(eps_grid, peps)
param_grid = np.meshgrid(blur_grid, eps_grid)
param_grid = np.stack(param_grid, a... | [
"rfeinman16@gmail.com"
] | rfeinman16@gmail.com |
12a50275d49eb47f247e28b62b8b6aec74918723 | ba3231b25c60b73ca504cd788efa40d92cf9c037 | /nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/appqoe/appqoepolicy_lbvserver_binding.py | 8ee87e1e11a7806b4dc6076f7173a54e13258719 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhuweigh/vpx13 | f6d559ae85341e56472e3592cbc67062dac34b93 | b36caa3729d3ca5515fa725f2d91aeaabdb2daa9 | refs/heads/master | 2020-07-04T22:15:16.595728 | 2019-09-20T00:19:56 | 2019-09-20T00:19:56 | 202,435,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,627 | py | #
# Copyright (c) 2008-2019 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"zhuwei@xsky.com"
] | zhuwei@xsky.com |
f45a639996035bde27c7378c7867c3a692a5132f | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/cv/classification/Googlenet_ID0447_for_PyTorch/torchvision/datasets/utils.py | 83d0a4d8ce3a6a44c81762c82af400b537e7f70b | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 10,219 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
0777d5132fd348e362404fcaf64c9b94d87dde03 | 07c0500edd527522036760a8cadd4e62e5eb1dcb | /python/union.py | eddcceb5df8731716bf71ff7d29e74468f32ad9c | [] | no_license | amarsyelane/pythonprograms | 261323dc453b42d3ba21ae8496d55bfded130dbd | fffc1a0edfd25577beb84e64059ff3d38bc91c35 | refs/heads/master | 2020-06-24T23:37:09.630903 | 2019-07-27T16:47:00 | 2019-07-27T16:47:00 | 199,127,095 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 165 | py |
def union_list(list1,list2):
list3 = list(set(list1) | set(list2))
return list3
list1 = [1,2,3,4,5,6]
list2 = [7,1,8,2,9,3]
print(union_list(list1,list2)) | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
9db6d4b5e220c435d6b8050e7284d665f189d8ca | b7054c7dc39eeb79aa4aecb77a8de222400b19a7 | /flask_project/d116/s9day116/s4.py | f36a629ef052544a1412614a0f0fd9f2f349f15c | [] | no_license | csuxh/python_fullstack | 89027133c7f9585931455a6a85a24faf41792379 | f78571976b3bef104309e95304892fdb89739d9e | refs/heads/master | 2023-05-11T09:36:40.482788 | 2019-06-12T14:21:26 | 2019-06-12T14:21:26 | 145,090,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | from flask import Flask,url_for
app = Flask(__name__)
# 步骤一:定制类
from werkzeug.routing import BaseConverter
class RegexConverter(BaseConverter):
"""
自定义URL匹配正则表达式
"""
def __init__(self, map, regex):
super(RegexConverter, self).__init__(map)
self.regex = regex
def to_python(self, v... | [
"csuxh@foxmail.com"
] | csuxh@foxmail.com |
bd813f0538b2818cab9dd99ab5829695630238aa | 51a065360b8b2f4a8cde43842a357b729ce6931a | /computer/RoadLaneDetection/lanes_manager.py | badbede857f973f4e3e348ce76a0dbb0a87a2a4d | [] | no_license | muratory/perception | 8fd95c1a865c5f2317c61110906856fd1eaa9f2d | 23b03a3d33d526318e85748d978c48782298fd4f | refs/heads/master | 2021-05-15T22:39:28.659715 | 2018-06-17T16:43:44 | 2018-06-17T16:43:44 | 106,734,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,598 | py | import sys
import numpy as np
from matplotlib import pyplot as plt
class LaneProba():
"""
Stores the foreground, background and width probabilities for a Lane
"""
def __init__(self, proba=0.1):
self.set_proba(proba)
def decrease(self, ratio=0.8):
self.foreground_position_proba *= r... | [
"pierre.muratory@gmail.com"
] | pierre.muratory@gmail.com |
026f639e2ed9a7f66dd6b76d9b08614d82558dcf | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_capabilities.py | b55c60ffb16290122194860366c1e164cb963345 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py |
from xai.brain.wordbase.nouns._capability import _CAPABILITY
#calss header
class _CAPABILITIES(_CAPABILITY, ):
def __init__(self,):
_CAPABILITY.__init__(self)
self.name = "CAPABILITIES"
self.specie = 'nouns'
self.basic = "capability"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
7bb1a27b99e94f1e6998524a589ab4c12d7a6f47 | 7142c3941481e661075154d714a29d5e283a3074 | /AddingItemsToTheSet1.py | afcece78482c26ddc68528e02fb846b611a5ffc8 | [] | no_license | nirajan5/Demo | 5642a9669fedcca47b0304ac423c0b3e6333b8e2 | 2451875bf5698cd38af69baa117c14099951bc9f | refs/heads/master | 2023-07-27T17:04:03.689673 | 2021-09-15T11:14:25 | 2021-09-15T11:14:25 | 406,732,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | Months = set(["January","February", "March", "April", "May", "June"])
print("\nprinting the original set ... ")
print(Months)
print("\nAdding other months to the set...");
Months.add("July");
Months.add ("August");
print("\nPrinting the modified set...");
print(Months)
print("\nlooping through the set elements ... ")
f... | [
"jhanirajan5@gmail.com"
] | jhanirajan5@gmail.com |
d9265b72e4b21399cff19be1d8ba9b2a8d85c546 | 94bd78e63de94859eb076e52683f73f6ea91eae3 | /726.py | 66ae50ab0507c371d78444f0c6784ac873ce6cc8 | [] | no_license | MadSkittles/leetcode | 70598c1c861a8ff5d2f7c921a311307d55770acc | 817bbb73dfe095b9c9358dc459ba6605a2a9a256 | refs/heads/master | 2021-11-30T04:56:02.432749 | 2021-11-12T03:28:47 | 2021-11-12T03:28:47 | 123,558,601 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | class Solution:
def countOfAtoms(self, formula):
res = ''
c = self.f(formula)
for element in sorted(c.keys()):
res += element + (str(c[element]) if c[element] > 1 else '')
return res
def f(self, formula: str):
from collections import Counter
if not fo... | [
"noreply@github.com"
] | MadSkittles.noreply@github.com |
b20577618c5c7056d9ef2c7eb75c7e3783a2ada2 | b453635bb1a1b767179250ddf5200dd5982752e3 | /apps/home/urls.py | c0bb3f878ae81bbf037a8a83efc38440cbcde5c5 | [
"Unlicense"
] | permissive | orhan1616/django-russian-ecommerce | 21e5c52f13fea5e7bb2f4fac2e4b9657729b33a5 | 9e64a0500ae529fc81e6ed2fb335b33d0ae5354a | refs/heads/main | 2023-06-17T22:06:39.199411 | 2021-07-07T11:54:21 | 2021-07-07T11:54:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | # apps/home/urls.py
# Django modules
from django.urls import path
# Django locals
from apps.home import views
urlpatterns = [
path('', views.homepage, name='homepage'),
path('aboutus/', views.aboutuspage, name='aboutuspage'),
path('contactus/', views.contactuspage, name='contactuspage'),
]
| [
"ingafter60@outlook.com"
] | ingafter60@outlook.com |
13173968ed6a9c4b62bcd9f9f66a07bacb5f1b35 | e1b8fb9a5500516f28d3d7e9a5f259c49ef35f14 | /top/api/rest/SkusCustomGetRequest.py | 70aeced78d8d92d2a43572c618d79dcdc9b6eee7 | [] | no_license | htom78/taobao_comet_py | 9224dbca1a413a54bcc5569873e4c7a9fc9ba059 | ad8b2e983a14d3ab7665244449f79dd72f390815 | refs/heads/master | 2020-05-17T10:47:28.369191 | 2013-08-27T08:50:59 | 2013-08-27T08:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | '''
Created by auto_sdk on 2013-06-16 16:36:02
'''
from top.api.base import RestApi
class SkusCustomGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.fields = None
self.outer_id = None
def getapiname(self):
return 'taobao.skus.cust... | [
"tomhu@ekupeng.com"
] | tomhu@ekupeng.com |
9953ddae4f7a966b2c28335395b9fe7a270804e1 | 653a3d9d66f3d359083cb588fc7c9ece8bb48417 | /test/runtime/frontend_test/onnx_test/defs_test/math_test/sqrt_test.py | 9374a12650ad590ad76c5896649b7ba2359b530a | [
"Zlib",
"MIT"
] | permissive | leonskim/webdnn | fec510254b15f3dec00f5bed8f498737b372e470 | f97c798c9a659fe953f9dc8c8537b8917e4be7a2 | refs/heads/master | 2020-04-15T18:42:43.632244 | 2019-01-10T10:07:18 | 2019-01-10T10:07:18 | 164,921,764 | 0 | 0 | NOASSERTION | 2019-01-09T19:07:35 | 2019-01-09T19:07:30 | Python | UTF-8 | Python | false | false | 820 | py | import numpy as np
from test.runtime.frontend_test.onnx_test.util import make_node, make_tensor_value_info, make_model
from test.util import wrap_template, generate_kernel_test_case
from webdnn.frontend.onnx import ONNXConverter
@wrap_template
def template(x_shape, description: str = ""):
vx = np.random.rand(*x_... | [
"y.kikura@gmail.com"
] | y.kikura@gmail.com |
b9d91097495c60f324c7dcc2ec855d4b5c1f5550 | 9acfe8ea905a7613b232cf9e512311289d4e5e27 | /CodeForce/Round4_2/task3.py | 8513d85beef58c02028922218a82b9bb0ca9bdec | [] | no_license | antofik/Python | e790ecb61babb23fad198ba996f24b31fdff9f39 | bb6ab6cd87d7bfb1d6efca6623b4b00c387313a8 | refs/heads/master | 2020-12-24T14:27:39.341992 | 2014-03-09T07:32:07 | 2014-03-09T07:32:07 | 17,551,107 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,426 | py | # coding=utf-8
"""
C. Система регистрации
ограничение по времени на тест:5 seconds
ограничение по памяти на тест:64 megabytes
ввод:standard input
вывод:standard output
В скором времени в Берляндии откроется новая почтовая служба "Берляндеск". Администрация сайта хочет запустить свой проект как можно быстрее, поэтому о... | [
"antofik@gmail.com"
] | antofik@gmail.com |
1f7cfd2a60fe8870c521f054e9f836e585569a76 | 498493d07412e793fa9051d32e43330cb838b284 | /ogc_plugins_charm/api.py | 7c24123ee413cedd7448a04a05cba1f8be5ed1f4 | [] | no_license | adam-stokes/ogc-plugins-charmstore | 632ce632a40fd989d18c2acf886f65a482deba7a | 83bf4b147afce6c29529a3cf378d2501aff35bfd | refs/heads/master | 2022-02-17T13:33:25.095373 | 2019-08-07T19:37:33 | 2019-08-07T19:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,980 | py | import os
from glob import glob
from pathlib import Path
from pprint import pformat
import click
import sh
import yaml
import time
import uuid
from ogc.state import app
from ogc.spec import SpecProcessException
class CharmEnv:
""" Charm environment
"""
def __init__(self):
try:
self.bu... | [
"battlemidget@users.noreply.github.com"
] | battlemidget@users.noreply.github.com |
28968f4cf0904ba68959fcbeb4aeeacea48d661f | c20534744b07252421aef4e157101eeb2f8a7090 | /django/project4/books/models.py | d9420ddcc23642a44a7fe1fb1bfa357abbd5ae0d | [] | no_license | lee-seul/development_practice | eb34a9be21ba2b8f20646420e903f07343f55f95 | b56fcdded15bf437e365c7d8ffe6981127adb5d4 | refs/heads/master | 2020-12-25T23:10:16.112757 | 2018-04-02T07:36:14 | 2018-04-02T07:36:14 | 44,519,248 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | from django.db import models
class Author(models.Model):
saluation = models.CharField(max_length=100)
name = models.CharField(max_length=50)
email = models.EmailField()
def __unicode__(self):
return self.name
class Publisher(models.Model):
name = models.CharField(max_length=50)
addres... | [
"blacksangi14@naver.com"
] | blacksangi14@naver.com |
57a4fe2637adc67bba7851515835266f28b2069c | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/u8w.py | 1d67eb49dc2795c5460036e614e52831772ab646 | [] | 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 |
b377681d860d1c9cfb40f5ae30246ba53a8f0ef7 | 2225034e851e936b813005ce3948d76a2c0f85aa | /accounts/migrations/0003_alter_user_user_type.py | 065708962d7354caf2b9947eac6e7ae9b7753fb4 | [] | no_license | khaled-hamada/doctor-online-app-task | 83a6f6864467552f4b08f0832a441ddcaaa8a3e7 | a6d5c8284cc21f21bb5227281ff27b3c3a1ad8d6 | refs/heads/main | 2023-07-12T06:52:11.425656 | 2021-08-24T13:17:18 | 2021-08-24T13:17:18 | 399,429,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # Generated by Django 3.2.6 on 2021-08-23 11:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_alter_user_user_type'),
]
operations = [
migrations.AlterField(
model_name='user',
name='user_type'... | [
"khaledosman737@gmail.com"
] | khaledosman737@gmail.com |
27f44b74cc5fedd3f218a356d0844f7d2ffac7e5 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/96/usersdata/184/53936/submittedfiles/estatistica.py | 54102a6b3c85cedfd1bbea3a41e1c235f0059378 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | # -*- coding: utf-8 -*-
def media(lista):
soma = 0
for i in range(0,len(lista),1):
soma = soma + lista[i]
resultado = soma/len(lista)
return resultado
def variância(lista):
media=media(lista)
soma=0
variância=0
for i in range(0,len(lista),1):
soma=((lista[i]-media)**2)
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
aaab255b00165926549abcb1a4d30251526fa7fa | 7e8c72c099b231078a763ea7da6bba4bd6bac77b | /python/webpy_and_orm/lib/portal/model/pm.py | 6a44fed39978eadd9456d7535c982c9c1bbdbc2d | [] | no_license | github188/demodemo | fd910a340d5c5fbf4c8755580db8ab871759290b | 96ed049eb398c4c188a688e9c1bc2fe8cd2dc80b | refs/heads/master | 2021-01-12T17:16:36.199708 | 2012-08-15T14:20:51 | 2012-08-15T14:20:51 | 71,537,068 | 1 | 2 | null | 2016-10-21T06:38:22 | 2016-10-21T06:38:22 | null | UTF-8 | Python | false | false | 18,965 | py | """
A persistent manager, the concept is learning JPA.
To use webpy.db module as persistent engine implement O/R mapping.
"""
from __future__ import with_statement
import web
import logging
#logging.basicConfig(level=logging.DEBUG)
class PersistentManager(object):
#only for debug...
_global_class... | [
"DeonWu@b18a5524-d64a-0410-9f42-ad3cd61580fb"
] | DeonWu@b18a5524-d64a-0410-9f42-ad3cd61580fb |
a6df2cb4a8a4471534fc5fe9ba7d6996c2dff035 | cc44edfa1edbedea3ad044805be7548e0ccba70d | /0x0F-python-object_relational_mapping/13-model_state_delete_a.py | c044b9f72162be0367f0edae4457370fc78e42b1 | [] | no_license | set808/holbertonschool-higher_level_programming | 421f0da1f91cd56eb2daa4e07a51b4a505d53edc | eb276a4e68e5cc43498459eec78fc05f72e2cd48 | refs/heads/master | 2020-03-09T13:07:43.824914 | 2018-09-08T00:26:46 | 2018-09-08T00:26:46 | 128,802,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/python3
"""List objects that contain the letter a """
from sys import argv
from model_state import Base, State
from sqlalchemy import (create_engine)
from sqlalchemy import update
from sqlalchemy.orm import sessionmaker
def main(argv):
engine = create_engine(
'mysql+mysqldb://{}:{}@localhost:3... | [
"spencertaylor808@gmail.com"
] | spencertaylor808@gmail.com |
ed42e215d09f16cabbe9caef947294944b5956c2 | c80ec1805a7e6cb1bd3f4b3e383ef4f4cf164765 | /gen/datehandler/__init__.py | b3a56bafa582242949c6717acefc05dda78990b6 | [] | no_license | balrok/gramps_addon | 57c8e976c47ea3c1d1298d3fd4406c13909ac933 | 0c79561bed7ff42c88714edbc85197fa9235e188 | refs/heads/master | 2020-04-16T03:58:27.818732 | 2015-02-01T14:17:44 | 2015-02-01T14:17:44 | 30,111,898 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,166 | py | #
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2004-2007 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at you... | [
"carl.schoenbach@gmail.com"
] | carl.schoenbach@gmail.com |
228724cb4ba363074d939a34c441ba86ebe9c6c2 | 25cb0013b8e635dd5a7cc189819d43191f571fe2 | /tests/parser/test_wikipedia.py | 09d7a2f3bcca27a44bfcb1147cb6ef82d0cd2e7c | [
"MIT"
] | permissive | openmicroanalysis/pyxray | e40a1c575b8f5002f162c611c4ffcf00ff028907 | b06478f6c251d92e878713d18d5c7bc063bac0fb | refs/heads/master | 2023-03-18T11:41:28.806694 | 2023-03-10T09:35:58 | 2023-03-10T09:35:58 | 57,978,665 | 4 | 2 | MIT | 2023-03-10T09:35:59 | 2016-05-03T15:10:14 | Python | UTF-8 | Python | false | false | 299 | py | #!/usr/bin/env python
""" """
# Standard library modules.
# Third party modules.
# Local modules.
from pyxray.parser.wikipedia import WikipediaElementNameParser
# Globals and constants variables.
def test_wikipedia():
parser = WikipediaElementNameParser()
assert len(list(parser)) > 0
| [
"philippe.pinard@gmail.com"
] | philippe.pinard@gmail.com |
3f786d9369922895b5661bc3d6051ba8a9589b3a | 3a891a79be468621aae43defd9a5516f9763f36e | /desktop/core/ext-py/nose-1.3.7/examples/plugin/setup.py | 4dd5dad316fc51c1078d9f21e31d231609ef1249 | [
"Apache-2.0",
"LGPL-2.1-only"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | false | 523 | py | """
An example of how to create a simple nose plugin.
"""
try:
import ez_setup
ez_setup.use_setuptools()
except ImportError:
pass
from setuptools import setup
setup(
name='Example plugin',
version='0.1',
author='Jason Pellerin',
author_email = 'jpellerin+nose@gmail.com',
description =... | [
"ranade@cloudera.com"
] | ranade@cloudera.com |
85100f9a205b487eaaf3372ea12fccd23da2983d | 9316e155538af98001c6d7551e721b6160c99bd7 | /run_ants.py | 716f1e81bac243ddd8c7e9ef3e5e5a461ccb5298 | [
"Apache-2.0"
] | permissive | binarybottle/mindboggle_sidelined | 2c7c6591d199a5b715cb028d3374c1a426fb4341 | 1431d4877f4ceae384486fb66798bc22e6471af7 | refs/heads/master | 2016-09-06T17:24:32.646682 | 2015-02-16T04:45:44 | 2015-02-16T04:45:44 | 30,854,143 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | py | """
Run antsCorticalThickness.sh on Mindboggle-101 brains
"""
import os
run_all = True
if run_all:
names = ['OASIS-TRT-20', 'MMRR-21', 'NKI-RS-22', 'NKI-TRT-20',
'Afterthought', 'Colin27', 'Twins-2', 'MMRR-3T7T-2', 'HLN-12']
numbers = [20,21,22,20,1,1,2,2,12]
i1 = 0
names = [names[i1]]
... | [
"arno@binarybottle.com"
] | arno@binarybottle.com |
bdbbde89fa8e66deaf81f53dee472784536d88c9 | 61747f324eaa757f3365fd7bf5ddd53ea0db47d1 | /casepro/cases/migrations/0017_outgoing_text.py | f5a2e63d2c2bc3469b928f6e54c6172ceabe1ef8 | [
"BSD-3-Clause"
] | permissive | BlueRidgeLabs/casepro | f8b0eefa8f961dd2fdb5da26a48b619ebc1f8c12 | 8ef509326f3dfa80bb44beae00b60cc6c4ac7a24 | refs/heads/master | 2022-01-24T09:01:18.881548 | 2017-12-05T18:46:05 | 2017-12-05T18:49:42 | 113,502,588 | 0 | 0 | null | 2017-12-07T21:57:37 | 2017-12-07T21:57:37 | null | UTF-8 | Python | false | false | 404 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cases', '0016_case_contact'),
]
operations = [
migrations.AddField(
model_name='outgoing',
name='tex... | [
"rowanseymour@gmail.com"
] | rowanseymour@gmail.com |
a1c71cac28e8106d69520a88204e6eebf415bd96 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_omniscient.py | d973e99c473ac2a6a285eb5b5832fff3a0311952 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py |
#calss header
class _OMNISCIENT():
def __init__(self,):
self.name = "OMNISCIENT"
self.definitions = [u'having or seeming to have unlimited knowledge: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjectives'
def run(self, obj1, obj2):
self.jsonda... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
033ff5a1c621db3638e1544b4a2d3c6f3741a08d | 0130c8b14927097663157846adc4b146d67d2fda | /tests/st/ops/gpu/test_fused_relu_grad_bn_reduce_grad.py | 4e5f6afbc529a5aefef225ba6b5e26b43a8557f6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-3-Clause",
"NCSA",
"LLVM-exception",
"Zlib",
"BSD-2-Clause",
"MIT"
] | permissive | Shigangli/akg | e8be3e0ee1eafe3e42b4cc4d424c28f08ef4c0bc | 3766c54e0b109541932d147a6b5643a334b82403 | refs/heads/master | 2023-09-06T05:13:40.571583 | 2021-11-23T03:44:54 | 2021-11-23T03:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,586 | py | # Copyright 2020-2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agre... | [
"1027252281@qq.com"
] | 1027252281@qq.com |
a74d54cf192a18fe0dd00295cc02d80e22709ea2 | da85a249f6ffc68c71bc27b1246a77704d15770e | /tests/debug-tests/utils.py | 4003318523fa789c9a341c578a8c9671aae29397 | [
"BSD-3-Clause"
] | permissive | efajardo-nv/ucx-py | d8d268fc094afd28512c843dfa49f6afcb55d4bb | 90e7ae0214ea23588040d00f9c9497aba0f09b65 | refs/heads/master | 2022-05-22T10:32:24.411103 | 2020-03-31T18:10:46 | 2020-03-31T18:10:46 | 257,774,594 | 0 | 0 | BSD-3-Clause | 2020-04-22T02:52:27 | 2020-04-22T02:52:26 | null | UTF-8 | Python | false | false | 2,379 | py | import argparse
from distributed.comm.utils import from_frames
from distributed.utils import nbytes, parse_bytes
import numpy as np
import ucp
ITERATIONS = 50
def cuda_array(size):
# import cupy
# return cupy.empty(size, dtype=cupy.uint8)
# return rmm.device_array(size, dtype=np.uint8)
import numba... | [
"quasiben@gmail.com"
] | quasiben@gmail.com |
4f47113183c2cf8e5d890bfebbab7cf2f9c5bc3a | 2cc44ba2a9b9b752fd1b1ebfd1a3681fe87c8617 | /models/datamodel.py | a3054c3669606379b4b05d100a9265744241b4ac | [] | no_license | jorgec/iNav-Python-SDK | 47c6a2b5e9a4eb246b9ee997b67a9726e2f9db30 | 57260980f8e2f5130f1abc21fd6dab7404ea05ac | refs/heads/master | 2020-08-29T23:46:45.733005 | 2019-10-29T04:47:55 | 2019-10-29T04:47:55 | 218,206,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | import json
class DataModel:
class Meta:
fields = {}
def as_dict(self):
return {key: str(getattr(self, value)) for key, value in self.Meta.fields.items()}
def serialize(self):
return json.dumps(self.as_dict())
| [
"jorge.cosgayon@gmail.com"
] | jorge.cosgayon@gmail.com |
c476de20becad6e2a53cd18d6249c626d55d01c1 | e8199f1d424592affe19b50fd96a02815067d1b1 | /Apple/329. Longest Increasing Path in a Matrix.py | 4b7821d007aef9791d6d78446d5a4277649b4273 | [] | no_license | srajsonu/LeetCode-Solutions-Python | 39a809e4c6d555a3a3055ce03d59cfa40b93a287 | 8ec31c8df2885f3da533424ba13060b7d3e3af78 | refs/heads/master | 2023-03-19T10:05:42.578615 | 2021-03-13T17:21:36 | 2021-03-13T17:21:36 | 280,716,200 | 0 | 1 | null | 2020-10-06T09:54:02 | 2020-07-18T18:32:04 | Python | UTF-8 | Python | false | false | 1,003 | py | from collections import deque
class Solution:
def isValid(self, A, i, j):
if i < 0 or i >= len(A) or j < 0 or j >= len(A[0]):
return False
return True
def dfs(self, A, i, j, dp):
ans = 0
row = [1, 0, -1, 0]
col = [0, 1, 0, -1]
if dp[i][j]:
... | [
"srajsonu02@gmail.com"
] | srajsonu02@gmail.com |
b0778fa352eb1a191c385864773583a269064c75 | 2713e8a47e68d82907a4cedc6434ef1cd72d85e7 | /fluo/middleware/locale.py | 5ced4754e4f221eba613a13a5729fba9f5901d25 | [
"MIT"
] | permissive | rsalmaso/django-fluo | a283b8f75769ac6e57fa321c607819899e0c31c8 | 24b9f36e85b247ea209b9c40b17599e7731f5ded | refs/heads/main | 2023-01-12T01:37:06.975318 | 2022-12-30T22:08:40 | 2022-12-30T22:08:40 | 48,948,936 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,060 | py | # Copyright (C) 2007-2022, Raffaele Salmaso <raffaele@salmaso.org>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, cop... | [
"raffaele@salmaso.org"
] | raffaele@salmaso.org |
37ba7f3e9c1e421d8f3ae6e4fce5cdd0f88f331e | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_157/923.py | 9d23b8f1fd1c482d24b4c5e1908d21f090e72531 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | import copy
d = {('i','j'): 'k',
('j','i'): '-k',
('j','k'): 'i',
('k','j'): '-i',
('k','i'): 'j',
('i','k'): '-j'}
def mul_q(q1, q2):
sign = 1
if q1[0] == '-':
sign *= -1
q1 = q1[1:]
if q2[0] == '-':
sign *= -1
q2 = q2[1:]
if q1 == '1':
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9e492dad1c020c8a6a1788e5051a0307eb217d82 | 804c1fcaa0f35383b7753f0c7e211220dee1009a | /handroll/tests/test_composers.py | a2b9b241604de4534b8325dd5deccdfc1d1bd8b3 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | handroll/handroll | e97e45b47eea14c6363c0fa8ae7c141254ced5ec | 7768a4d94ef9170a68098eed2a71456d88bc193d | refs/heads/master | 2020-12-13T13:09:17.916767 | 2018-06-18T02:40:25 | 2018-06-18T02:40:25 | 19,365,290 | 18 | 3 | null | 2017-05-08T01:00:47 | 2014-05-02T03:48:29 | Python | UTF-8 | Python | false | false | 20,070 | py | # Copyright (c) 2017, Matt Layman
import inspect
import os
import stat
import tempfile
import mock
from handroll.composers import Composer
from handroll.composers import Composers
from handroll.composers import CopyComposer
from handroll.composers.mixins import FrontmatterComposerMixin
from handroll.composers.atom i... | [
"matthewlayman@gmail.com"
] | matthewlayman@gmail.com |
1720eccbd3a5a5d87381eb2743badc0aabfe950c | 2bd385ec885cc67617524d4cc251a33a7fac95a1 | /models/eagleedu_syllabus.py | 300b71f24090838271ffc1127bcdd072d0714bcf | [] | no_license | development-team-work/eagleedu_core | 47eed702c95a4c8ba6625bd516946c56133b98a9 | 59cbdef95b6092a93ac12ab11bea237da345b3e7 | refs/heads/master | 2021-01-02T03:13:00.957763 | 2020-02-10T10:30:11 | 2020-02-10T10:30:11 | 239,466,974 | 0 | 0 | null | 2020-02-10T08:55:19 | 2020-02-10T08:55:18 | null | UTF-8 | Python | false | false | 752 | py | # -*- coding: utf-8 -*-
from eagle.exceptions import ValidationError
from eagle import fields, models, api, _
class EagleeduSyllabus(models.Model):
_name = 'eagleedu.syllabus'
_description = "Syllabus "
_rec_name='syllabus_display'
name = fields.Char(string='Name', help="Enter the Name of the Syllab... | [
"rapidgrps@princegroup-bd.com"
] | rapidgrps@princegroup-bd.com |
3d30699e50d84cb0530efc016de11719e7b37e03 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch096/woColorJ/Sob_k25_s001_EroM/pyr_Tcrop255_p20_j15/pyr_1s/L4/step09_1side_L4.py | 82aff74ef2922ec79600254bd74c9122ba6bd036 | [] | 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 | 5,656 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
43506dfa09f5bd26109c821562d504b8dc7d7c6d | 6e357be547cbeb153c4778e3552716f40a21b007 | /문제풀이/최빈수 구하기/최빈수 구하기.py | 4cbf3d1271b85b37526f4112add6f9b8fb5b88c7 | [] | no_license | hyunsang-ahn/algorithm | db6a8fdf77806f06652a3f4c2e3234b50c1bb717 | c3a3c93c452e4b35202529e3209a26fbdc0c2ad7 | refs/heads/master | 2021-10-22T04:44:09.808795 | 2019-03-08T06:50:30 | 2019-03-08T06:50:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | import sys
sys.stdin = open('input.txt', 'r')
T = int(input())
for tc in range(1,T+1):
n = int(input())
arr = list(map(int, input().split()))
num_dic = {}
for i in arr:
num_dic[i] = arr.count(i)
res = max(list(num_dic.values()))
print("#", end="")
print(tc, end=" ")
res_list =... | [
"happylovetkd@naver.com"
] | happylovetkd@naver.com |
b4ea18da6321d5abc400a5a0d5cc3b4564cb4c65 | eff5cd25fa442b70491262bada0584eaaf8add46 | /tfx/components/base/executor_spec.py | 71518533a6ad04f0c3753e2968b7c9a2eb32c332 | [
"Apache-2.0"
] | permissive | fsx950223/tfx | c58e58a85e6de6e9abcb8790acbf36424b5b2029 | 527fe2bab6e4f62febfe1a2029358fabe55f418c | refs/heads/master | 2021-01-04T12:12:51.010090 | 2020-01-26T04:43:14 | 2020-01-26T04:43:14 | 240,543,231 | 1 | 0 | Apache-2.0 | 2020-02-14T15:48:12 | 2020-02-14T15:48:11 | null | UTF-8 | Python | false | false | 2,989 | py | # Lint as: python2, python3
# Copyright 2019 Google LLC. 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 req... | [
"tensorflow-extended-team@google.com"
] | tensorflow-extended-team@google.com |
bdbdec718b149a290f3085cd6eb64c14f9d426c8 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_014/ch58_2020_04_21_19_49_08_495191.py | 1d881d5e8a3270339654288032b617d7b21bba59 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | def conta_a (s):
i = 0
contador = 0
while i < len(s):
if s[i] == 'a':
contador = contador + 1
i += 1
return contador | [
"you@example.com"
] | you@example.com |
e6b2f84f0083b67ae2d203f72298316f4eff734e | 44b389338c12b0dc2018d8022031b58090c58a63 | /ProjectEuler/Problem034.py | 410d4e54f8c5ce48b11c1c93332c1f0b88526652 | [] | no_license | llcawthorne/old-python-learning-play | cbe71b414d6fafacec7bad681b91976648b230d3 | 5241613a5536cd5c086ec56acbc9d825935ab292 | refs/heads/master | 2016-09-05T17:47:47.985814 | 2015-07-13T01:25:44 | 2015-07-13T01:25:44 | 38,983,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | #!/usr/bin/env python3
"""Project Euler Problem 034
145 is a curious number, as 1! + 4! + 5! = 1 + 24 + 120 = 145.
Find the sum of all numbers which are equal to the sum of the factorial of their digits.
Note: as 1! = 1 and 2! = 2 are not sums they are not included.
"""
import math
# 9! * 8 is only a 7 digit number... | [
"LLC@acm.org"
] | LLC@acm.org |
77216f0de3ae8de629843bafb7defbf5cc5f8d29 | 200ec10b652f9c504728890f6ed7d20d07fbacae | /forms.py | 0becace3be7e76cd20e14cf95376646cfe47f020 | [] | no_license | Ks-Ksenia/flask_shop | f4edc17669c29ae02a89e836c3c48230147ae84f | 9eb44fd22bf99913c9824ea35e3922cb14ef2451 | refs/heads/master | 2023-03-01T13:55:20.749127 | 2021-02-14T09:29:04 | 2021-02-14T09:29:04 | 338,767,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,349 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, \
SubmitField, SelectField, TextAreaField, FormField, FieldList
from wtforms.validators import Email, DataRequired, Length, EqualTo, required
from wtforms.fields.html5 import TelField, EmailField
from wtforms.widgets impo... | [
"demag74@mail.ru"
] | demag74@mail.ru |
218afc519d26734b9d64d19e0eb875fa0f64f7b5 | 432b97b99fc95679053620458652d462eb6e03d1 | /ikasl/core/gsom.py | 07d4229d8e1e6ea1272d41f916e1bc4623302c5a | [
"Apache-2.0"
] | permissive | AathmanT/self-learning-algorithm | b07db0fe96a1e80ef0eb98e6863dd8a132e65db5 | 64637a1b801d18b7648c575c84dad67bb3113e46 | refs/heads/master | 2020-12-19T04:17:45.534149 | 2020-02-29T14:06:26 | 2020-02-29T14:06:26 | 235,618,332 | 1 | 2 | Apache-2.0 | 2020-02-28T14:18:32 | 2020-01-22T16:45:23 | Jupyter Notebook | UTF-8 | Python | false | false | 9,113 | py | import math
import random
import functools
import numpy as np
from core import growth_handler as Growth_Handler
from core import elements as Elements
from util import utilities as Utils
import time
class GSOM:
def __init__(self, params, input_vectors, dimensions, aggregate_node=None):
self.parameters = ... | [
"razmik89@gmail.com"
] | razmik89@gmail.com |
9f07b90ac5d6626a6da98f349aa934ab9f7f771f | e2e1732b6eb1a7a6dfeba76762851ad06eb8e482 | /wangban/wangban/spiders/redisspider.py | eabd738eb7841186dc293026c518f1ae4a617c48 | [] | no_license | nightqiuhua/bigCrawlers | 551e80d55df492c89ae0e0e0bd70c0e5f873068d | 19b86130c8af057d06014865d150e3d2ed6cc319 | refs/heads/main | 2023-03-23T01:13:26.021850 | 2021-03-03T15:09:28 | 2021-03-03T15:09:28 | 344,165,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,206 | py | from scrapy import signals
from scrapy.exceptions import DontCloseSpider
from wangban_utils.redis_util import get_redis_conn
from scrapy.spiders import Spider
from items import HangzhouItem
import socket
from datetime import datetime
import os
from urllib.parse import urljoin
import json
import time
from wangban_utils.... | [
"1320551630@qq.com"
] | 1320551630@qq.com |
8e0110d97e1eef72cc626068e9dc37da471245a5 | 3b2940c38412e5216527e35093396470060cca2f | /top/api/rest/TmallTraderateFeedsGetRequest.py | 5b6fa08b6e0e7bdd1d538ab76409fcdd3e1390ad | [] | no_license | akingthink/goods | 842eb09daddc2611868b01ebd6e330e5dd7d50be | ffdb5868a8df5c2935fc6142edcdf4c661c84dca | refs/heads/master | 2021-01-10T14:22:54.061570 | 2016-03-04T09:48:24 | 2016-03-04T09:48:24 | 45,093,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | '''
Created by auto_sdk on 2015-01-20 12:44:31
'''
from top.api.base import RestApi
class TmallTraderateFeedsGetRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.child_trade_id = None
def getapiname(self):
return 'tmall.traderate.feeds.g... | [
"yangwenjin@T4F-MBP-17.local"
] | yangwenjin@T4F-MBP-17.local |
b65a444228c179437b655748fdf4aa97e4c9f16b | 86f8bf3933208329eb73bfcba5e1318dbb2ddafa | /hello_world/django/benckmark/settings.py | 59dcfe2806efd190dafb6247412c676e1aacfc40 | [] | no_license | TakesxiSximada/benchmarks | 42ce5466c813e45db78f87ca391806fbb845a16c | 9cd2fc732ed006fd3554e01b1fc71bfcb3ada312 | refs/heads/master | 2021-01-15T23:02:14.063157 | 2015-05-30T18:52:08 | 2015-05-30T18:52:08 | 36,551,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | """
Django settings for benckmark project.
Generated by 'django-admin startproject' using Django 1.8.dev20141227141312.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/... | [
"takesxi.sximada@gmail.com"
] | takesxi.sximada@gmail.com |
eeee37bc3e3fdfee9d00d5b5551c681844a5fc81 | 65c539e235155b15946cbc7f8838bf69f56086c0 | /learn_torch/mini_cnn.py | 31436782fa363b25b8c0d230125bba80acf52950 | [] | no_license | xkcomeon/any-whim | 08a070a8ae8d795cb76e77f0f0f61edea7e5d60e | ce7160686d3689fbd4350420d1f130d7cce5c2c4 | refs/heads/master | 2023-03-20T08:16:43.446082 | 2021-03-14T14:48:02 | 2021-03-14T14:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,614 | py | # 写一个中文的单字识别的cnn
# 尽可能的搞定旋转缩放之类的分类问题
import os
import cv2
import numpy as np
# 读取单字图片文件
def read_imginfos(file):
# 目前读取的数据是单字识别,这里读取的格式为,图片文件的第一个汉字代表了其类别
class_types = set()
imginfos = []
for i in os.listdir(file):
if i.endswith('.jpg') or i.endswith('.png'):
class_types... | [
"opaquism@hotmail.com"
] | opaquism@hotmail.com |
844498d5a39b662dec59c8f2370751615f418417 | 3365e4d4fc67bbefe4e8c755af289c535437c6f4 | /.history/src/core/dialogs/waterfall_dialog_20170814144141.py | dbaa69a0f387bec839f238e48d9d55b0e64da868 | [] | no_license | kiranhegde/OncoPlotter | f3ab9cdf193e87c7be78b16501ad295ac8f7d2f1 | b79ac6aa9c6c2ca8173bc8992ba3230aa3880636 | refs/heads/master | 2021-05-21T16:23:45.087035 | 2017-09-07T01:13:16 | 2017-09-07T01:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,426 | py | '''
Refs:
Embedding plot: https://sukhbinder.wordpress.com/2013/12/16/simple-pyqt-and-matplotlib-example-with-zoompan/
'''
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar
import matplotlib.pyplot a... | [
"ngoyal95@terpmail.umd.edu"
] | ngoyal95@terpmail.umd.edu |
d46d75034818cde56a867d61ae3ff507e3d0284c | caf8cbcafd448a301997770165b323438d119f5e | /.history/chapter01/python_01_20201119170541.py | 98301dd8d3519273d4add0a7cd4f5762ebe09064 | [
"MIT"
] | permissive | KustomApe/nerdape | 03e0691f675f13ce2aefa46ee230111247e90c72 | aef6fb2d1f8c364b26d91bf8570b4487a24de69a | refs/heads/main | 2023-01-23T10:13:26.584386 | 2020-11-28T22:29:49 | 2020-11-28T22:29:49 | 309,897,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | """
[今日やること・学ぶこと]
""" | [
"kustomape@gmail.com"
] | kustomape@gmail.com |
49ede39dee06aaa502ae7e4507c81c91e49f634c | dbbdf35bff726681ae34ad08eeda5f30929e2ae9 | /supervised_learning/0x00-binary_classification/8-neural_network.py | 6f3dce07188aef74a022e7625d340e1657f4161c | [] | no_license | jorgezafra94/holbertonschool-machine_learning | 0b7f61c954e5d64b1f91ec14c261527712243e98 | 8ad4c2594ff78b345dbd92e9d54d2a143ac4071a | refs/heads/master | 2023-02-03T20:19:36.544390 | 2020-12-21T21:49:10 | 2020-12-21T21:49:10 | 255,323,504 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | #!/usr/bin/env python3
"""
neural network with one hidden layer performing binary classification:
"""
import numpy as np
class NeuralNetwork():
"""
Here is my first Holberton NeuralNetwork Class
here we are going to use One hidden layer
the main things to keep in mind about a neuron is
the ecuat... | [
"947@holbertonschool.com"
] | 947@holbertonschool.com |
78d93dc4ea64e77ecc661aa7c3d513d1758e2027 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_109/ch27_2019_08_14_18_40_36_940230.py | 4266c60b91cf6eb8413093db272fd574351c5621 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | def n(a, c):
tempo = ((a*365)*c)*10
tempo = (tempo/3600)
return tempo
a = int(input('Insira há quantos anos você fuma: '))
c = int(input('Insira quantos cigarros você usa por dia: '))
print(n(a, c)) | [
"you@example.com"
] | you@example.com |
22483da0f47eecf1240954f46e0762ee7f16d6d1 | 97cb12cc1243ffa1e29c98ed013a03b377d0e9cd | /setup.py | 1e3612c418f41668b0949274eda9949bd59dac26 | [
"MIT"
] | permissive | brettatoms/flask-appconfig | 675097323f06b7dcd40f6e8225991e24a349d4a3 | 3e023569f156166abe3992bb3abe0fdad1c38630 | refs/heads/master | 2021-01-18T04:47:44.432958 | 2015-07-17T23:02:04 | 2015-07-17T23:02:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 918 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name='flask-appconfig',
version='0.11.0.dev1',
description=('Configures Flask applications in a canonical w... | [
"git@marcbrinkmann.de"
] | git@marcbrinkmann.de |
a897a4faf3b4f6073bc4505c1ef6077f10815dac | b4cfb1f9813df98a791c0dfeab5183996f900f13 | /core/forms.py | 34183f3bf2d149ad1d532f1b606456e800d6fc30 | [] | no_license | KiwiState/TestDjango | 6fedf22603950bd4345dc6dc93ed7ab67c811769 | c09ef5f02cf4297d97393cd3a495475478e023ef | refs/heads/master | 2023-06-09T20:26:16.070432 | 2021-07-08T13:49:05 | 2021-07-08T13:49:05 | 377,001,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | from django import forms
from django.forms import ModelForm
from .models import Pintura,Contacto,Usuarios
class PinturaForm(ModelForm):
class Meta:
model = Pintura
fields = ['titulo','descripcion','categoria','imagen','id_pintura','id']
class ContactoForm(ModelForm):
class Meta:
model ... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
f9c00636facae578d804121b09edd4a003c90297 | cbfb679bd068a1153ed855f0db1a8b9e0d4bfd98 | /leet/amazon/strings_and_arrays/454_4Sum_II.py | 39caa53fc72f97bde6109f3bfd501894873bb480 | [] | no_license | arsamigullin/problem_solving_python | 47715858a394ba9298e04c11f2fe7f5ec0ee443a | 59f70dc4466e15df591ba285317e4a1fe808ed60 | refs/heads/master | 2023-03-04T01:13:51.280001 | 2023-02-27T18:20:56 | 2023-02-27T18:20:56 | 212,953,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,724 | py | import collections
from typing import List
class Solution:
def fourSumCount(self, A: List[int], B: List[int], C: List[int], D: List[int]) -> int:
dp = collections.defaultdict(int)
for a in A:
for b in B:
dp[a+b]+=1
cnt = 0
for c in C:
for d ... | [
"ar.smglln@gmail.com"
] | ar.smglln@gmail.com |
98ae7611ae59d9ad96d11df5d4be3d5ffffa1b93 | 798960eb97cd1d46a2837f81fb69d123c05f1164 | /symphony/cli/pyinventory/graphql/enum/user_role.py | 053133dc005e0a4f2ac8fe4e406670c5ecde4190 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | kyaaqba/magma | 36d5fa00ce4f827e6ca5ebd82d97a3d36e5f5b5b | fdb7be22a2076f9a9b158c9670a9af6cad68b85f | refs/heads/master | 2023-01-27T12:04:52.393286 | 2020-08-20T20:23:50 | 2020-08-20T20:23:50 | 289,102,268 | 0 | 0 | NOASSERTION | 2020-08-20T20:18:42 | 2020-08-20T20:18:41 | null | UTF-8 | Python | false | false | 300 | py | #!/usr/bin/env python3
# @generated AUTOGENERATED file. Do not Change!
from enum import Enum
class UserRole(Enum):
USER = "USER"
ADMIN = "ADMIN"
OWNER = "OWNER"
MISSING_ENUM = ""
@classmethod
def _missing_(cls, value: object) -> "UserRole":
return cls.MISSING_ENUM
| [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e5986fafc4c92267351701bf782014ee5e3e3e90 | 11757061e3f4d4b6535c311ed5005b620c98d1b5 | /lang/test/python/test_scope.py | f2a8fe1b5c8f0a8e2c252d5dee22b1b06f9bb5f3 | [
"MIT"
] | permissive | nijeshu/taichi | 580176d65cae80c87ab508a7db3f71f4815cbcdc | bd02798208b2d363e605434d10d739fe03e9c07f | refs/heads/master | 2020-08-06T15:41:47.510747 | 2019-10-05T19:12:08 | 2019-10-05T19:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | import taichi as ti
ti.runtime.print_preprocessed = True
def test_scope():
# In the future the following code should throw an exception at the python front end
# instead of crashing the compiler
return
for arch in [ti.x86_64, ti.cuda]:
# ti.reset()
ti.cfg.arch = arch
x = ti.var(ti.f32)
N = 1
... | [
"yuanmhu@gmail.com"
] | yuanmhu@gmail.com |
dcd595986262113e80ae7f4168553bdf37ea6ab5 | 03f1a5380641564750daa9c4de90e85e8e1c9c35 | /notifier/signal.py | 51d23490edad463787e514f13def9a6ded7100a9 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | stockec/siis | f4e4a792a1f6623030a3299f0978b681d7c85d52 | 82f54415b4ed82ff12d17a252dd6da32bc31a586 | refs/heads/master | 2020-07-18T11:28:26.411702 | 2019-09-01T22:01:59 | 2019-09-01T22:01:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,781 | py | # @date 2018-08-07
# @author Frederic SCHERMA
# @license Copyright (c) 2018 Dream Overflow
# service worker
class Signal(object):
SIGNAL_UNDEFINED = 0
SIGNAL_SOCIAL_ENTER = 10 # broker copy position entry signal
SIGNAL_SOCIAL_EXIT = 11 # broker copy position exit signal
SIGNAL_SOCIAL_UPDATED... | [
"frederic.scherma@gmail.com"
] | frederic.scherma@gmail.com |
91b5d980d481c438768b83a4d5b7df79eea6bc96 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractRemnancetlCom.py | 2f4d11c779dbeaec9f911463a4b61cbe7a01a777 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 541 | py |
def extractRemnancetlCom(item):
'''
Parser for 'remnancetl.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('Loiterous', 'Loiterous... | [
"something@fake-url.com"
] | something@fake-url.com |
16f944de1e71ab6bfb26e39281def4a786a69efa | 7a704e838d89f942a1099fec141f1fbe9828e528 | /v2_plugin/example/maskrcnn-service/engine.py | 030d0989e1e8c9dbb2e97a53f39056e2bf88d710 | [
"Apache-2.0"
] | permissive | cap-ntu/Video-to-Retail-Platform | 3ee00d22b7fd94925adac08c5ea733ee647f4574 | 757c68d9de0778e3da8bbfa678d89251a6955573 | refs/heads/hysia_v2 | 2023-02-14T05:22:16.792928 | 2021-01-10T02:31:43 | 2021-01-10T02:31:43 | 212,741,650 | 63 | 20 | Apache-2.0 | 2021-01-10T02:32:00 | 2019-10-04T05:22:08 | Python | UTF-8 | Python | false | false | 2,754 | py | import ssl
from pathlib import Path
from typing import Dict
import numpy as np
import torch
from maskrcnn_benchmark.config import cfg
from maskrcnn_benchmark.structures.bounding_box import BoxList
from common.engine import BaseEngine
from .mask_rcnn_predictor import COCODemo
# cancel ssl certificate verify
ssl._crea... | [
"YLI056@e.ntu.edu.sg"
] | YLI056@e.ntu.edu.sg |
cf4e7fec26789b171a8ebaa8eabc49d62d29ff3c | ecbc02f304557c6069637f2871d4d4c9c3e04e98 | /tests/core/test_source_map.py | 56189b92496db80f7f6c3b9c500dbff0e3840aca | [
"MIT"
] | permissive | charles-cooper/vyper-debug | 6b6e12ccc1ca9217caff7f21bc176b69d1bc8fc5 | 2678de107615c705a3e55edf811b23259990d1c4 | refs/heads/master | 2020-05-21T01:05:39.122973 | 2019-05-09T17:59:46 | 2019-05-09T17:59:46 | 185,847,661 | 1 | 0 | MIT | 2019-05-09T17:57:59 | 2019-05-09T17:57:59 | null | UTF-8 | Python | false | false | 881 | py | from vdb.source_map import produce_source_map
def test_source_map_output():
code = """
a_map: map(bytes32, bytes32)
@public
def func1(a: int128) -> int128:
b: int128 = 2
c: int128 = 3
g: bytes[10]
return a + b + c + 1
@public
def func2(a: int128):
x: uint256
"""
sm = produce_source_... | [
"jacques@dilectum.co.za"
] | jacques@dilectum.co.za |
14fd9210aab05327a7304470c21824934a141426 | b4b140bb107baebc50b310f1d79fdbe2a0382708 | /proj/lib/python3.7/site-packages/flask_cors/core.py | 4dcfe44631be4e9f8d06ae12396796d7d1d9e5df | [
"MIT"
] | permissive | shahedex/horizon_backend_flask | f642b99bf019050ff72896e455a85bd3f483cf39 | 7dce74fce0afdfa1cb6481e1d765e01a8ad3c5c4 | refs/heads/master | 2022-10-08T17:27:10.299450 | 2019-10-06T16:57:42 | 2019-10-06T16:57:42 | 207,140,462 | 0 | 1 | MIT | 2022-09-16T18:09:06 | 2019-09-08T16:26:35 | Python | UTF-8 | Python | false | false | 13,771 | py | # -*- coding: utf-8 -*-
"""
core
~~~~
Core functionality shared between the extension and the decorator.
:copyright: (c) 2016 by Cory Dolphin.
:license: MIT, see LICENSE for more details.
"""
import re
import logging
import collections
from datetime import timedelta
from six import string_types
fro... | [
"shahed739@gmail.com"
] | shahed739@gmail.com |
ea8866cc497b0eb9b862a1e59a2461097b8b4615 | 2469fc10932f11bb273fc6194b0c67779b6337f3 | /1. 상수형 자료형/jump_to_Python_숫자형_5월_18일.py | e74a3289fb8d5209ea04451bb4c95eb2ccd8e4b7 | [] | no_license | iopasd753951/Learn_Python | 925d20bbcaa871ebdc427a4e0d31ee8e81c51f72 | 5488d0a8e4ebd8140a488f93d31bf7a13459daaf | refs/heads/master | 2020-03-25T01:01:48.908415 | 2018-11-05T14:38:43 | 2018-11-05T14:38:43 | 143,218,566 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py |
# coding: utf-8
# In[5]:
a = int(input())
b = int(input())
c = int(input())
total = (a + b + c) // 3
print("점수 평균 :", total)
# In[6]:
a = 17 // 3
print(a)
# In[7]:
a = 17 % 3
print(a)
# In[ ]:
a = int(input())
if a % 2 == 0 :
print("짝수")
elif a % 2 == 1 :
print("홀수")
else :
print("몰라")
| [
"iopasd753951@gmail.com"
] | iopasd753951@gmail.com |
dbe515b084f3cf998bb1cdf2e0a248687292e570 | 3428950daafacec9539a83809cf9752000508f63 | /코딩테스트책/7-6.py | 75ee8b86c6f39502de4fa3772176543822e986e7 | [] | no_license | HyunAm0225/Python_Algorithm | 759b91743abf2605dfd996ecf7791267b0b5979a | 99fb79001d4ee584a9c2d70f45644e9101317764 | refs/heads/master | 2023-05-24T05:29:12.838390 | 2021-06-15T16:36:33 | 2021-06-15T16:36:33 | 274,587,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | # 이진 탐색
# 떡 자르기 문제
n, m = map(int,input().split())
array = list(map(int,input().split()))
# 이진 탐색을 위한 시작점과 끝점 설정
start = 0
end = max(array)
# 이진 탐색 수행(반복적)
result = 0
while(start <=end):
total = 0
mid = (start+end)//2
for x in array:
# 잘랐을 때 떡의 양 계산
if x > mid:
total += x - ... | [
"tlfgjawlq@naver.com"
] | tlfgjawlq@naver.com |
24ff3174bfa172b59160d3c30a8b202d43863cd5 | 1b87d5f7cba7e068f7b2ea902bba494599d20a78 | /experimental/modeswitch/x11vmode.py | 65e6243a8af467c60e50248a8f876db8546c600e | [
"BSD-3-Clause"
] | permissive | jpaalasm/pyglet | 906d03fe53160885665beaed20314b5909903cc9 | bf1d1f209ca3e702fd4b6611377257f0e2767282 | refs/heads/master | 2021-01-25T03:27:08.941964 | 2014-01-25T17:50:57 | 2014-01-25T17:50:57 | 16,236,090 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,453 | py | #!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
import ctypes
import os
import fcntl
import mutex
import time
import select
import struct
import signal
import sys
import threading
from pyglet.window.xlib import xlib
import lib_xf86vmode as xf86vmode
class ModeList(object):
... | [
"joonas.paalasmaa@gmail.com"
] | joonas.paalasmaa@gmail.com |
157bf7e582510d1c353c498ec1b026dbd39bdb35 | 714cfd73f40383d6a8cde7144f56c8777fafe8e3 | /src/misc/features/create_tsfresh.py | 17491a3e84e3976649b1f9a54c33d16a0fea2547 | [
"BSD-2-Clause"
] | permissive | Ynakatsuka/g2net-gravitational-wave-detection | bed60d39534b4aced1469964369b0fec17c7b7c7 | 482914a64e0140f27e0058202af1fdea06f7b258 | refs/heads/main | 2023-09-06T00:35:07.096235 | 2021-10-29T07:44:34 | 2021-10-29T07:44:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,834 | py | import multiprocessing
import os
import warnings
import hydra
import pandas as pd
import tsfresh
from base import BaseG2NetFeatureEngineeringDataset, G2NetFeatureEngineering
from omegaconf import DictConfig
class TsFreshFeatures(BaseG2NetFeatureEngineeringDataset):
def _engineer_features(self, signals):
... | [
"nk.tsssa@gmail.com"
] | nk.tsssa@gmail.com |
c8f9ad715eef34b8164134cbcfba734dc4d275cf | 161eee91b961e3387526772233c9c63239b4af8d | /travelproject/travelapp/views.py | 36c603dfff29f9e9dfc316fad551faceb00f6a5f | [] | no_license | sreekripa/travell | 5ead55c80068796e297c4bf126e89e7542bbfdfc | b8085d8aaca4bfb4c09c67adea14094c777724c8 | refs/heads/master | 2023-05-02T23:18:28.387407 | 2021-05-17T08:49:54 | 2021-05-17T08:49:54 | 368,113,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | from django.http import HttpResponse
from django.shortcuts import render
from.models import place
from.models import blog
# Create your views here.
def fun(request):
obj=place.objects.all()
ob=blog.objects.all()
return render(request,"index.html",{'results':obj,'res':ob})
def add(request):
num1=int(r... | [
"kripas1990@gmail.com"
] | kripas1990@gmail.com |
b86bf576a9d70bbd47358ef2d067a45f7762f3fa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03109/s888863725.py | 52f2c8fd86c765cb30b3b9ef1e5ef6b6ff53d94f | [] | 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 | 56 | py | s=input()
print('Heisei' if int(s[5:7]) <= 4 else 'TBD') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
291bb25a970d0003b7a222bb9bb6f02332348965 | 38876c993ec622a6a0081232018d0222a4b67ea5 | /tencentcloud/emr/v20190103/models.py | 661f784a68929d9080a548acbe5d0ff9a7918bf5 | [
"Apache-2.0"
] | permissive | zepc007/tencentcloud-sdk-python | f218c482e5c63b9f4381ca76757c429e286d5ad2 | b9722fcb20f3cc8d89654863d86e781810c47330 | refs/heads/master | 2020-04-22T03:06:29.548902 | 2019-04-13T05:49:59 | 2019-04-13T05:49:59 | 170,073,705 | 1 | 0 | null | 2019-02-11T05:35:51 | 2019-02-11T05:35:50 | null | UTF-8 | Python | false | false | 9,438 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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... | [
"tencentcloudapi@tencent.com"
] | tencentcloudapi@tencent.com |
6414416c57b15df463a316ab5eb47dfd60c206ad | ac1e944eb288c8b13a0bef0ee7de85ee6d30b4c0 | /django/portfolio/portfolio/settings.py | 76fb42fa653d4ce899544cb20f47fd381ab5663a | [] | no_license | Jayson7/random-projects | 05dd175d00e9bd62cb39973c3439846f641675c8 | cdbebb896a0ecea0de543f16ecf4661e519ec0bb | refs/heads/master | 2023-06-19T01:54:08.339954 | 2021-07-19T01:40:09 | 2021-07-19T01:40:09 | 383,971,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,783 | py |
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key ... | [
"lexxiijoo70@gmail.com"
] | lexxiijoo70@gmail.com |
e210432980b1cb9606281d024f148ab4962d8f97 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_211/266.py | 73a2efd2c2aea6e7baf64b46d9dff97a79692c99 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,588 | py | import sys
import time
### I/O wrapper ###
class FileParser:
"""Read numbers/strings from file (or stdin by default), one line by one.
"""
def __init__(self, filepath=None, type=None):
if filepath is None:
self.fd = sys.stdin
else:
self.fd = open(filepath, type)
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
07fc07bcebb263a435c469b86d08d4dc46022037 | 60cb975f3e0251c73c457271bce8a7b2036e422b | /studysrc/day01/testIf.py | cd4b701787955e49548fb8081304b49a80d6e252 | [] | no_license | 49257620/reboot | 0a2341f23bc1a6f3ae47b59f772919228c623544 | 86b348228d1a25d78c45b0e9022d7c773544373b | refs/heads/master | 2018-11-17T19:19:58.969710 | 2018-09-25T03:15:57 | 2018-09-25T03:15:57 | 125,727,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # encoding utf-8
promote = input('看到西瓜了吗?(看到输入\'Y\'或者\'y\'):')
money = 100.0
priceBaozi = 11.5
priceXigua = 23.8
print('>>>买了一斤包子,花费'+str(priceBaozi)+'元')
money = money - priceBaozi
if promote == 'Y' or promote == 'y':
print('>>>买了一个西瓜,花费'+str(priceXigua)+'元')
money = money - priceXigua
print('剩余:' + str(mon... | [
"49257620@qq.com"
] | 49257620@qq.com |
7f5fad0d8b83d94bd6cdc61d8149280442be7b1a | 71460b3fa81c386b99a260ccf59c109bcde3b953 | /realtime_data_processor.py | 2826b5f671b03c4c43341dc13008b15195657c8a | [
"MIT"
] | permissive | ec500-software-engineering/exercise-1-modularity-ZhibinHuang | 831f07f31bfaa2a5c3b043e9fb66942208ca6020 | ab36bf593fa61fe183c57af15a011d4353581d6d | refs/heads/master | 2020-04-21T21:49:56.137069 | 2019-02-14T23:40:19 | 2019-02-14T23:40:19 | 169,891,502 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | import time
import random
import threading
from common_types import SensorDataType
from common_types import Message, MessageUrgency
class RealTimeDataProcessor(threading.Thread):
def __init__(self, in_queue, notification_man):
super().__init__()
self._in_queue = in_queue
self._notification... | [
"noreply@github.com"
] | ec500-software-engineering.noreply@github.com |
568a052bbe4f8f62f7f7f617b5b3f6e9d966ea8a | a80e9eb7ade3d43ce042071d796c00dd10b93225 | /ch_6/stars_data_dict2.py | 8633d4020bddd3caec1f4b9297bb5e9acdc1657d | [] | no_license | ksjpswaroop/python_primer | 69addfdb07471eea13dccfad1f16c212626dee0a | 99c21d80953be3c9dc95f3a316c04b0c5613e830 | refs/heads/master | 2020-07-14T17:37:45.923796 | 2014-06-06T22:30:48 | 2014-06-06T22:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,415 | py | # Exercise 6.13
infile = open('stars.dat', 'r')
data = {}
for line in infile.readlines()[1:]:
words = line.split()
name = ' '.join(words[:-3])
if words[-3] == '-':
distance = '-'
apparent_brightness = '-'
else:
distance = float(words[-3])
apparent_brightness = float(words... | [
"noahwaterfieldprice@gmail.com"
] | noahwaterfieldprice@gmail.com |
8a2be07e1e5c38ef9e5fb4cc1ec1310b15899623 | 202be9ce15e7e41bad55e6bbe4d0c941ecbb6781 | /1037 在霍格沃茨找零钱.py | e054872072ec15b2a83bb4a99f9fb821c4ae05fb | [] | no_license | junyechen/Basic-level | ae55ab4e13fd38595772786af25fcc91c055f28c | a6e15bc3829dfe05cefc248454f0433f8070cdfb | refs/heads/master | 2020-04-29T08:01:21.936408 | 2019-07-06T04:16:14 | 2019-07-06T04:16:14 | 175,972,034 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | '''
如果你是哈利·波特迷,你会知道魔法世界有它自己的货币系统 —— 就如海格告诉哈利的:“十七个银西可(Sickle)兑一个加隆(Galleon),二十九个纳特(Knut)兑一个西可,很容易。”现在,给定哈利应付的价钱 P 和他实付的钱 A,你的任务是写一个程序来计算他应该被找的零钱。
输入格式:
输入在 1 行中分别给出 P 和 A,格式为 Galleon.Sickle.Knut,其间用 1 个空格分隔。这里 Galleon 是 [0, 107] 区间内的整数,Sickle 是 [0, 17) 区间内的整数,Knut 是 [0, 29) 区间内的整数。
输出格式:
在一行中用与输入同样的格式输出哈利应该被找的零钱。如... | [
"chenjunyeword@outlook.com"
] | chenjunyeword@outlook.com |
f208947393151e0fea908eb59eb830d80620d0fe | b4916436d437d98f79ae2af4e56fa1acd5f84e7f | /pycozmo/robot.py | 33d37092a81e8891be669da54fffd7932716207c | [
"MIT",
"Apache-2.0"
] | permissive | VictorTagayun/pycozmo | b875f3e0008efeae39f3cea80418aee66af8511e | dd971aad2d32419deae00b1294922b416ba2e2b9 | refs/heads/master | 2020-07-30T07:22:21.715324 | 2019-09-13T09:32:51 | 2019-09-13T09:32:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,602 | py |
import math
from . import util
from . import protocol_encoder
MIN_HEAD_ANGLE = util.Angle(degrees=-25)
MAX_HEAD_ANGLE = util.Angle(degrees=44.5)
MIN_LIFT_HEIGHT = util.Distance(mm=32.0)
MAX_LIFT_HEIGHT = util.Distance(mm=92.0)
LIFT_ARM_LENGTH = util.Distance(mm=66.0)
LIFT_PIVOT_HEIGHT = util.Distance(mm=45.0)
MA... | [
"zayfod@gmail.com"
] | zayfod@gmail.com |
2f3bad0b23444dbe7cdadc422637b213f444f4f0 | 7f21abecb951371885ca007bd24eebbb61e8d0a0 | /lesson_012/python_snippets/04_queues.py | 81fbb8e8c8b542f08790a434e6a058aaf9c808bf | [] | no_license | zaboevai/python_base | a076b0d8798f103347dddcf0be0d09fb02815609 | c689568c926db5ff4f9cdb4f5c335fac7a434130 | refs/heads/develop | 2022-11-25T11:04:21.678107 | 2021-06-09T19:48:52 | 2021-06-09T19:48:52 | 191,818,125 | 23 | 18 | null | 2022-11-22T07:57:23 | 2019-06-13T19:01:48 | Python | UTF-8 | Python | false | false | 4,284 | py | # -*- coding: utf-8 -*-
# Кроме блокировок и примитивов синхронизации существует еще один способ обмена данными между потоками.
# Это очереди - Queue - https://docs.python.org/3.6/library/queue.html
# В очередь можно положить элемент и взять его. Queue гарантирует что потоки не помешают друг другу
# - операции очереди... | [
"you@example.com"
] | you@example.com |
0e4a1d59e13199cb3b7d2caf6557074911679da9 | da9cbae7c2b9789951874f4b2dd9eba990753bbd | /run2018/crab_V0cumu_HIMB2018_Ks_SBPos_Mid_sysMCBias_v1.py | cdc96fb1d89a9fba410816b27db346a1d6940c11 | [] | no_license | BetterWang/QWCumuDiff | d0be53a87dd345153b603a16617f572d5adc288c | cccb286bb9ee4b9cb3aa78cc839ae993c66624f1 | refs/heads/master | 2021-09-13T01:30:37.988189 | 2021-08-25T13:36:57 | 2021-08-25T13:36:57 | 81,896,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,008 | py | from CRABAPI.RawCommand import crabCommand
from CRABClient.UserUtilities import config
from CRABClient.ClientExceptions import ClientException
from httplib import HTTPException
config = config()
config.General.requestName = 'HIMB0_V0Cumu_Ks_SBPos_Mid_sysMCBias_v2'
config.General.workArea = 'CrabArea'
config.General.t... | [
"BetterWang@gmail.com"
] | BetterWang@gmail.com |
841dc8000e963e39aa4a57d8541acaba350bf449 | 2b8c88dfee5c5a784357515eafe8cd5f997c8774 | /leetcode/54.spiral-matrix.py | a4bbfff15df9fe1594001407e0139df5d8c37fd6 | [] | no_license | archenRen/learnpy | e060f3aa2f77c35fc1b12345720af6c8b528da57 | 934ef76b97297f746a722a48c76672c7bc744cd9 | refs/heads/master | 2022-04-28T20:25:59.114036 | 2020-05-03T02:16:03 | 2020-05-03T02:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | #
# @lc app=leetcode id=54 lang=python3
#
# [54] Spiral Matrix
#
# https://leetcode.com/problems/spiral-matrix/description/
#
# algorithms
# Medium (31.36%)
# Likes: 1345
# Dislikes: 450
# Total Accepted: 264.2K
# Total Submissions: 842.4K
# Testcase Example: '[[1,2,3],[4,5,6],[7,8,9]]'
#
# Given a matrix of m x... | [
"wangdi03@ppdai.com"
] | wangdi03@ppdai.com |
7bd4527bda1c4953bf8f336080c3691c2b70fad9 | 0f30dbffc77960edf69fa18c78c6d1a1658bb3dc | /tests/test_cu_linear_operator.py | 3ad17786ed37a887b11b56d0139e1ac2267065ec | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ameli/imate | 859c5ed35540cc44058cd908ce44485487acd041 | de867f131a4cda7d60a68bf0558e896fae89d776 | refs/heads/main | 2023-08-29T07:03:53.512434 | 2023-08-15T23:39:30 | 2023-08-15T23:39:30 | 308,965,310 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | #! /usr/bin/env python
# SPDX-FileCopyrightText: Copyright 2021, Siavash Ameli <sameli@berkeley.edu>
# SPDX-License-Identifier: BSD-3-Clause
# SPDX-FileType: SOURCE
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the license found in the LICENSE.txt file in the root
# d... | [
"sia.sunrise@gmail.com"
] | sia.sunrise@gmail.com |
90d354864b26a4f570839f712ebefc85b853342b | 00e80ba9ad9fa58ab18114e0303d9a6af21820f3 | /wanderlust/urls.py | 779adda3dad8bd1a6f8cc39d1fff493483bb2b87 | [] | no_license | Raghavareddy21/wanderlust | cc3a4dcafc5e5aba9c2236750c12768420dbeb6c | 7e972668586ec377ccec53dbcba5ce6496f58faa | refs/heads/master | 2023-01-25T00:44:05.928064 | 2020-11-25T16:42:42 | 2020-11-25T16:42:42 | 302,010,615 | 0 | 1 | null | 2020-10-11T10:39:39 | 2020-10-07T11:09:44 | JavaScript | UTF-8 | Python | false | false | 826 | py | """wanderlust URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"challavenkataraghavareddy21@gmail.com"
] | challavenkataraghavareddy21@gmail.com |
b5c178156f40eedcd15619cedc40e1807107e05c | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/GL/ARB/texture_buffer_range.py | 7d62ab26b7cb24e42b8cd5f95489e5d880249a37 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | '''OpenGL extension ARB.texture_buffer_range
This module customises the behaviour of the
OpenGL.raw.GL.ARB.texture_buffer_range to provide a more
Python-friendly API
Overview (from the spec)
ARB_texture_buffer_object (which was promoted to core in OpenGL 3.1)
introduced the ability to attach the data store of a... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
58f2641de9afc33cf7980ff3ad484fd18b82cdfe | 3f566babc0230a9d1d2a8ab6a4f0fee9bf2f497b | /tools/mayaCore/cmds/pSets.py | e162540227c1b10025df837e4030443add8ac9ad | [] | no_license | snaress/studio_dev | 3118e6d7b5ab7e9f7f318cf0c2c4145ad61d5f7f | a58608922abe1d47bf3d807c5db11e265aad85a2 | refs/heads/master | 2021-01-21T13:17:58.396068 | 2016-04-25T00:42:27 | 2016-04-25T00:42:27 | 51,249,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | try:
import maya.cmds as mc
except:
pass
def getAllSets(suffixes=None):
"""
Get all sets ending with given suffixes
:param suffixes: Set suffixes
:type suffixes: list
:return: Sets list
:rtype: list
"""
setList = []
for s in mc.ls(type='objectSet') or []:
for ext i... | [
"jln.buisseret@gmail.com"
] | jln.buisseret@gmail.com |
572594fbea40e8ffdd3e9a85fce23c0041774610 | ca4e57a6861f1e24d1521bf5b775aee3b6db7725 | /lex1.py | 1d60b17dd7ce6380a7e868149f8d16909811c278 | [] | no_license | mathi98/madhu | e296a477f3684a596c74a228c9ce867f1f60c3f8 | cae2adb19ccf7c7f12212d694cd0d09614cd5d81 | refs/heads/master | 2020-05-23T01:06:54.830389 | 2019-06-28T14:13:07 | 2019-06-28T14:13:07 | 186,582,298 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | k=int(input())
l=list(map(str,input().split()))
a=sorted(l,key=len)
for i in range(len(a)-1):
if len(a[i])==len(a[i+1]) and a[i]>a[i+1]:
a[i],a[i+1]=a[i+1],a[i]
print(*a)
| [
"noreply@github.com"
] | mathi98.noreply@github.com |
90af24bb6ece2824041e3e25a9bab47b6f3f620d | ad14c9b6454c3e8e657e994914bdfe97c2188c22 | /oostepbystep/person.py | ed964445701ac3ae80004664d035181f4263c8b3 | [] | no_license | woodyyan/twa-python-bootcamp | 1e6ecdac10a7fb3366ce7180eae93678afe1d9a8 | 3ef20a88e6954662e227ccf804b76ebc5fb6d74d | refs/heads/master | 2020-09-12T13:23:02.585373 | 2019-12-25T12:24:33 | 2019-12-25T12:24:33 | 222,439,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | class Person:
def __init__(self, name, age):
self.name = name
self.age = age
def introduce(self):
return 'My name is %s. I am %s years old.' % (self.name, self.age)
| [
"colorguitar@hotmail.com"
] | colorguitar@hotmail.com |
2b5f99242912f7e6a226598779f4b87dc13a02f9 | 762c28b8cda476574d71453701d90caf56973556 | /network/loss_lib.py | 8b9b49cbad66a3cc2ee3da483ed518f89e61978b | [] | no_license | RuiLiFeng/code | cf480e6f4ad598512b8147374687c6a379a9dc43 | 6bc288bd7d9e3dfc7f6847aaaa12bcf21f4950de | refs/heads/master | 2020-07-11T19:52:45.847382 | 2019-09-02T13:57:35 | 2019-09-02T13:57:35 | 204,631,332 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,058 | py | # coding=utf-8
# Copyright 2018 Google LLC & Hwalsuk Lee.
#
# 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 ... | [
"frl1996@mail.ustc.edu.cn"
] | frl1996@mail.ustc.edu.cn |
7b59590b96288ab93d3835dd03615e1183066465 | ab00b17a719d02ef7eea2189b052787b5dc3f3e1 | /jsk_arc2017_common/scripts/install_data.py | a29ba3942b2439d13ed1730325a124d43ba226ed | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | 708yamaguchi/jsk_apc | aa826cd991dbde43327887d03f686d278e37b8f1 | b5d0c08f9a8628237b2c7fcf1d4fb60a632d99cb | refs/heads/master | 2021-01-17T21:15:56.575294 | 2017-06-30T04:24:47 | 2017-06-30T05:41:40 | 84,169,587 | 0 | 0 | null | 2017-07-23T07:38:15 | 2017-03-07T07:39:52 | Common Lisp | UTF-8 | Python | false | false | 1,190 | py | #!/usr/bin/env python
import multiprocessing
import jsk_data
PKG = 'jsk_arc2017_common'
def download_data(path, url, md5):
p = multiprocessing.Process(
target=jsk_data.download_data,
kwargs=dict(
pkg_name=PKG,
path=path,
url=url,
md5=md5,
... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
135757553766e681c1df21a38f881fc5b66bca3b | 0ec0fa7a6dc0659cc26113e3ac734434b2b771f2 | /4.refactored/log/2016-11-22@11:30/parameters.py | 454e4db41ce2579cc4d73cfb4ec5cf3a76c10cc8 | [] | no_license | goldleaf3i/3dlayout | b8c1ab3a21da9129829e70ae8a95eddccbf77e2f | 1afd3a94a6cb972d5d92fe373960bd84f258ccfe | refs/heads/master | 2021-01-23T07:37:54.396115 | 2017-03-28T10:41:06 | 2017-03-28T10:41:06 | 86,431,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,770 | py | import numpy as np
import xml.etree.cElementTree as ET
from xml.etree import ElementTree
#-------------------------------
#AZIONE = 'batch'
AZIONE = 'mappa_singola'
#-------------------------------
DISEGNA = True
#DISEGNA = False
#-------------------------------
#metodo di classificazione per le celle
#TRUE = Metodo ... | [
"matteo.luperto@polimi.it"
] | matteo.luperto@polimi.it |
1d03ec3a4d774df3d2140acab5720877acba9a93 | 1287ad54942fd2020a217ab12004a541abb62558 | /pythonexercicios/venv/Scripts/easy_install-3.7-script.py | 85cff29658e254aba0ab93beceea719744a8fa95 | [] | no_license | LuPessoa/exerciciospy- | 637f24581722e547a62380973ca645b55ff65d90 | b5faad818f978bb13a65922edceb17888b73a407 | refs/heads/master | 2023-05-12T04:16:39.847184 | 2021-06-04T03:02:24 | 2021-06-04T03:02:24 | 374,410,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | #!C:\Users\User\phytonexercicios\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)... | [
"lulenemacedo29@gmail.com"
] | lulenemacedo29@gmail.com |
85d948583795cd31b49710278b255196b01efc9a | 73330107dd79b9973e7fbcd9aeda8039690139c6 | /Word Break.py | 46e17ae0c2f22f0f9bdf0737cf3597433dfd68e4 | [] | no_license | nithinveer/leetcode-solutions | 2f908cd204c130034def8934d41ef6869029a403 | 196e58cd38db846653fb074cfd0363997121a7cf | refs/heads/master | 2021-06-25T22:28:50.391671 | 2021-04-20T07:04:19 | 2021-04-20T07:04:19 | 219,891,708 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | class Solution(object):
def __init__(self):
self.found = False
self.memo = {}
def dfs(self, tmp, idx):
# print(tmp,idx)
#base case
if tmp in self.wordDict and idx == len(self.s)-1:
print(tmp, idx)
self.found = True
return True
... | [
"nithinveer@iitj.ac.in"
] | nithinveer@iitj.ac.in |
76c2bec4f5e99360815ec228c4951542e0b41029 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ/16_0_1_AndriyM_problem_a.py | 4457b1d99d97d7ebbca30cc6d77b89935bc71794 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 689 | py |
def digits(n):
return set(map(int, str(n)))
def last_seen(n):
max_mult = 1000
digs = digits(n)
current_mult = 1
while current_mult < max_mult and len(digs) < 10:
current_mult += 1
digs = digs | digits(n*current_mult)
if len(digs) == 10:
return str(current_mult*n)
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
511a86f6ac8020ec418a0b6a7242cf42893a18d8 | fe2ac50a9b03ae6b43ee12676799a3ae51495310 | /venv_coupe/Scripts/pip-script.py | 73b270447d1f10e8b0533c078a061ac573264c91 | [] | no_license | rvfedorin/CoupeCounter | 482faaaaa005b64b26b7939d1b98810f19cb1b6b | 86caeaa34dbfe71c7f8b76b8db9ee92e5dd0532e | refs/heads/master | 2020-03-30T01:53:16.502119 | 2018-10-05T09:40:10 | 2018-10-05T09:40:10 | 150,600,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | #!C:\Users\Wolf\PycharmProjects\coupe_count\venv_coupe\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.3','console_scripts','pip'
__requires__ = 'pip==9.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"35657347+rvfedorin@users.noreply.github.com"
] | 35657347+rvfedorin@users.noreply.github.com |
a167c98b6d931efedb00c817e8c755d196939060 | 7087a5dd1772c9456f098bc024a894dcaeef5432 | /backup/build/new-calkube/kubernetes-6.0.0_snapshot-py2.7.egg/kubernetes/client/models/v1beta1_mutating_webhook_configuration.py | 27c1aca77257c666ab13d4af8626047f70c14a6a | [] | no_license | santhoshchami/kubecctl-python | 5be7a5a17cc6f08ec717b3eb1c11719ef7653aba | cd45af465e25b0799d65c573e841e2acb983ee68 | refs/heads/master | 2021-06-23T11:00:43.615062 | 2019-07-10T16:57:06 | 2019-07-10T16:57:06 | 145,669,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,939 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.10.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re... | [
"root@kube-node02.local"
] | root@kube-node02.local |
c5d18fc4ec58ba588b22d10547e718a9c6c64f06 | 9644567f9cd3415e6c8b1470fde72ab178bb8eb0 | /flask/lib/python2.7/site-packages/flask_ponywhoosh/views.py | 45f5a9aeb475a8bb6957dc593b119433011ad8a6 | [
"Apache-2.0"
] | permissive | Ahmad31/Web_Flask_Cassandra | 01d44ee03fcb457ea3a01629f6fd29870663b8ff | 76acb074fce521e904f3b2a41e6ab69571f4369e | refs/heads/master | 2021-06-10T02:42:53.494515 | 2019-11-27T16:22:48 | 2019-11-27T16:22:48 | 88,625,344 | 3 | 1 | Apache-2.0 | 2021-03-19T22:23:05 | 2017-04-18T12:59:21 | Python | UTF-8 | Python | false | false | 3,007 | py | '''
flask_ponywhoosh.views module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Perform full-text searches over your database with Pony ORM and PonyWhoosh,
for flask applications.
:copyright: (c) 2015-2017 by Jonathan Prieto-Cubides & Felipe Rodriguez.
:license: MIT (see LICENSE.md)
'''
import re
from pprint imp... | [
"aku.anwar.aan@gmail.com"
] | aku.anwar.aan@gmail.com |
4d75e4757f1aec208f56653737558c8d8f20f81c | 9a50339b63586a405d16acf732f877d17742f45b | /phase/migrations/0003_phasesubcategory_category.py | 488d0763a9d715cb7a1161ce37f23b6542996d66 | [] | no_license | ahsanhabib98/PPPsPerformance | 777798caa1e41fbcf9d084b8166cae2e9628b3ef | 1a9af5eb447cac81f9dc929a74e3fddf21d87588 | refs/heads/master | 2020-04-22T23:35:52.842941 | 2019-02-14T19:51:03 | 2019-02-14T19:51:03 | 170,747,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | # Generated by Django 2.0.5 on 2019-01-29 15:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('phase', '0002_auto_20190129_2108'),
]
operations = [
migrations.AddField(
model_name='phasesubc... | [
"ahredoan@gmail.com"
] | ahredoan@gmail.com |
75a1839ac3f3ee5ea8197ccce4cc2e3fc8b2821b | 1462c42bef31c022040b4cae73a96d852e857b51 | /loaner/web_app/backend/api/shelf_api.py | de3b892d75dd8ee46ea078402abd727c6ff6615c | [
"Apache-2.0"
] | permissive | Getechsupport/getechgraband-go | f5e54754a2f300bfd2c8be54edd386841c5fae6c | 6d2a040ef9617fabd8c691ec1c787cf5ec9edb73 | refs/heads/master | 2022-08-17T12:11:06.299622 | 2020-03-10T16:22:34 | 2020-03-10T16:22:34 | 243,598,161 | 0 | 0 | Apache-2.0 | 2022-07-07T17:22:55 | 2020-02-27T19:21:54 | Python | UTF-8 | Python | false | false | 8,087 | py | # Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"email"
] | email |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.