blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fe5a15533c33ffc5a7c712c95bd101c436d9abeb | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_211/ch11_2020_03_05_22_17_54_209757.py | 0a1e69d816050755f964c115c59f668d1f8cb2ac | [] | 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 | 146 | py | import math
def distancia_euclidiana(x1,y1,x2,y2):
dx=x2-x1
dy=y2-y1
dist= mat.sqrt(dx**2+dy**2)
return dist_
| [
"you@example.com"
] | you@example.com |
cfbbb16014049c04dd2b6265a388c8013940b803 | 6d8ebfaf95299fa7fa892db4565f3597a72f5219 | /rest_mongo/fileutils.py | 58273a1ebc278d89e96d80a745f932d772670277 | [] | no_license | videntity/georegistry | 30aecec862f10d364cb72ce391656dc8d2a0d794 | 44fcda20d669650d1efbfee4907986654fd6d931 | refs/heads/master | 2021-01-23T20:13:20.899937 | 2011-06-11T13:15:36 | 2011-06-11T13:15:36 | 1,880,133 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,346 | py | #!/usr/bin/env python
from django.conf import settings
import sys, os
from boto.s3.connection import S3Connection
from boto.s3.key import Key
import mimetypes
from datetime import datetime, timedelta
"""
simpleS3.py
"""
#
# simpleS3.py
#
# By: Alan Viars
# Copyright Videntity Systems, Inc. 2009
# All rights Reseved... | [
"aviars@videntity.com"
] | aviars@videntity.com |
16a07c4a5130861ee929c4c6aa071b6b522282fa | ce29884aa23fbb74a779145046d3441c619b6a3c | /hot/101.py | 59780c0d19d68e9723dd52964b189a62795bf5f8 | [] | no_license | gebijiaxiaowang/leetcode | 6a4f1e3f5f25cc78a5880af52d62373f39a546e7 | 38eec6f07fdc16658372490cd8c68dcb3d88a77f | refs/heads/master | 2023-04-21T06:16:37.353787 | 2021-05-11T12:41:21 | 2021-05-11T12:41:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | #!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Time : 2020/11/18 21:40
# @Author : dly
# @File : 101.py
# @Desc :
# 对称二叉树
class Solution(object):
def isSymmetric(self, root):
"""
:type root: TreeNode
:rtype: bool
"""
if not root:
return True
d... | [
"1083404373@qq.com"
] | 1083404373@qq.com |
1f778357bc0ffe65c05214c2bc7f0432cea408f5 | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /tests/providers/amazon/aws/hooks/test_step_function.py | 54f9556b7016ac20701ad68f26a857dad7136944 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 2,550 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | cfei18.noreply@github.com |
67258a6994da1d273531135b1b83de48c41edf94 | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/mingw64/mingw64_libcsv.py | fdb7c482927ad1b4dc16ce316999985addbca2f6 | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from .base import Mingw64BaseRecipe
class Mingw64LibCsvRecipe(Mingw64BaseRecipe):
def __init__(self, *args, **kwargs):
super(Mingw64LibCsvRecipe, self).__init__(*args, **kwargs)
self.sha256 = 'd9c0431cb803ceb9896ce74f683e6e5a' \
'0954e96ae1d9e4028d6e0f967bebd7e4'
sel... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
09a753257b8c194d653adc57fa8fc15b1ef05a9a | a5fdc429f54a0deccfe8efd4b9f17dd44e4427b5 | /0x08-python-more_classes/4-rectangle.py | f4dd8584a36172af297d6445e87fa837e70d95f0 | [] | no_license | Jilroge7/holbertonschool-higher_level_programming | 19b7fcb4c69793a2714ad241e0cc4fc975d94694 | 743a352e42d447cd8e1b62d2533408c25003b078 | refs/heads/master | 2022-12-20T20:41:33.375351 | 2020-09-25T02:02:28 | 2020-09-25T02:02:28 | 259,471,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | #!/usr/bin/python3
"""Module for evolved rectangle"""
class Rectangle:
"""class Rectangle with priv inst attrib width and height"""
def __init__(self, width=0, height=0):
self.__width = width
self.__height = height
@property
def width(self):
"""Method to get value of width"""
... | [
"1672@holbertonschool.com"
] | 1672@holbertonschool.com |
01c294996900995b8b6e38364a71528e9204bfe2 | 2b3e9b32a38f4992c529de56b4baa51e1a674c4e | /ccui/testexecution/templatetags/execution.py | 4e6b442e37794b16a9f4d7be4b72a9985bd786e8 | [] | no_license | camd/caseconductor-ui | 2c4f63fd6c20ee421012d8770b3b873c1b4f4232 | deb6b22ed417740bf947e86938710bd5fa2ee2e7 | refs/heads/master | 2021-01-18T05:36:22.647236 | 2011-10-10T14:48:29 | 2011-10-10T14:48:29 | 2,447,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | from django import template
from django.template.loader import render_to_string
from classytags.core import Tag, Options
from classytags.arguments import Argument
from ..models import TestCaseAssignmentList
register = template.Library()
class RunCase(Tag):
name = "run_case"
options = Options(
Argu... | [
"carl@oddbird.net"
] | carl@oddbird.net |
0fe941019348268ae95cac69f0823b8ce404d416 | 987ead1eb0877b9bdea16f3ee50bf19d5fe204bd | /DL/face_feature/faceFeature.py | a22d34eba15d893f8ddbe019281b82568ce7d04a | [] | no_license | ZHX1996/project | da62151e32254848a02292a2f9bdb1db17850d67 | 5a57be55cf173dde7e5a135a9cf1cfbc9a63a158 | refs/heads/master | 2021-07-15T11:36:02.412231 | 2020-05-15T08:51:34 | 2020-05-15T08:51:34 | 94,512,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | from itertools import islice
import numpy as np
import io
def train_data():
dtrain, label, buff = [], [], []
i = 0
train_file = io.open('training.csv', 'r', encoding='utf-8')
for s in islice(train_file, 1, 3):
p = s.split(',')
for i in range(len(p)-1):
buff.append(float(p[i... | [
"1365370292@qq.com"
] | 1365370292@qq.com |
f66d19147add74c58d7348ca20d812a10a1f7bf4 | d19bfba1c92a59a9d5d888e87db32a2cd1e7bd00 | /example.py | e405d017f7947ad196b0a5d5b3ecc3639cb05de9 | [] | no_license | codesharedot/Plot-no-111 | 25a3c6a2b7895efc9f327a1b0695749361e2d858 | e046244c102253f5e538edc892f3ac106b8eec61 | refs/heads/master | 2021-03-15T03:39:44.802296 | 2020-03-12T11:51:42 | 2020-03-12T11:51:42 | 246,821,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | import numpy as np
import matplotlib.pyplot as plt
labels = ['G1', 'G2', 'G3', 'G4', 'G5']
m_means = [8,1,6,9,10]
m_std = [2, 3, 4, 1, 2]
width = 0.35 # the width of the bars
fig, ax = plt.subplots()
ax.bar(labels, m_means, width, yerr=m_std, label='Data')
ax.set_ylabel('Scores')
ax.set_title('Visual')
ax.lege... | [
"codeto@sent.com"
] | codeto@sent.com |
618f3a962bee7c18f831cf4dd618b01831a5b133 | 112bcac00e68ffeceeffec335a87411f141ad17f | /codes/ch4/gethostbyaddr-paranoid.py | 55dde1e691537b3e573ceba19a6590a3b79bc697 | [] | no_license | wwq0327/PyNP | a5a214fde76ef0701a8205a3509e762f47f8fc2c | 684d13533d7296116aa7a099347365ca69a72004 | refs/heads/master | 2021-01-15T17:45:23.434786 | 2011-09-23T16:41:18 | 2011-09-23T16:41:18 | 2,421,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
gethostbyaddr-paranoid.py
~~~~~~~~~~~~~~~~~~~~
:date: 2011-09-22
:from: Python Network Programming
"""
import sys, socket
def getipaddrs(hostname):
'''根据域名获得IP地址列表'''
result = socket.getaddrinfo(hostname, None, 0, socket.SOCK_STREAM)... | [
"wwq0327@gmail.com"
] | wwq0327@gmail.com |
c0fb6fdd9e20b83a6bea88c1db214ee925b3d934 | 27a2864de9876b53db02bcfd1df2342af193933a | /users/views.py | d49c14148e211a0e9975e507da46a9d553808334 | [] | no_license | VinneyJ/learning_tracker | 40d04c19800cfa62ed4789753441208bf5d92cf6 | 63b0b00e9d153d193c7f12f6af57f1b756d95c5d | refs/heads/master | 2022-08-28T07:50:47.700443 | 2020-05-29T07:22:08 | 2020-05-29T07:22:08 | 266,212,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | from django.shortcuts import render, redirect
from django.contrib.auth import login
from django.contrib.auth.forms import UserCreationForm
# Create your views here.
def register(request):
if request.method != 'POST':
form = UserCreationForm()
else:
form = UserCreationForm(data=request.POST)
... | [
"vincentjayden49@gmail.com"
] | vincentjayden49@gmail.com |
87dc8f8a1fa3afbc82df866419a33d3ed8c8f399 | d190750d6cb34e9d86ae96724cf4b56a2f57a74a | /tests/r/test_biopsy.py | dd6a45a631739b758f371642bb938df3da77b5b4 | [
"Apache-2.0"
] | permissive | ROAD2018/observations | a119f61a48213d791de0620804adb8d21c2ad9fb | 2c8b1ac31025938cb17762e540f2f592e302d5de | refs/heads/master | 2021-09-24T04:28:02.725245 | 2018-09-16T23:06:30 | 2018-09-16T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import shutil
import sys
import tempfile
from observations.r.biopsy import biopsy
def test_biopsy():
"""Test module biopsy.py by downloading
biopsy.csv and testing shape of
extracted data has 699 row... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
33daf595f2ce39ec83394a7b12ab536c060a963d | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/_exercises/_templates/PyQt5 Quick Start PyQt5 Database Operation/7 5. Paging Query 3. Paging Query Implementation.py | 1666eaaa01177d4de2dc0c3b30a26ae8e9ec6872 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 4,714 | py | # ______ ___
# ____ ?.?S.. ______ ?SD.., ?SQ.., ?STM.., QSqlQueryModel
# ____ ?.?C.. ______ *
# ____ ?.?W.. ______ *
# ______ re
#
# c_ DataGrid(?W..):
# ___ - parent_None):
# s__(DataGrid, self). - (parent)
# # Declare Database Connections
# db _ N..
# # Layout Manager
# ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
ddc1653e2d5e0653376da3e54a9f3d2962cead2d | a5698f82064aade6af0f1da21f504a9ef8c9ac6e | /huaweicloud-sdk-kms/huaweicloudsdkkms/v1/model/create_datakey_without_plaintext_request.py | 2f468730dd17b485d1b5a2c0f176dd90c739fe61 | [
"Apache-2.0"
] | permissive | qizhidong/huaweicloud-sdk-python-v3 | 82a2046fbb7d62810984399abb2ca72b3b47fac6 | 6cdcf1da8b098427e58fc3335a387c14df7776d0 | refs/heads/master | 2023-04-06T02:58:15.175373 | 2021-03-30T10:47:29 | 2021-03-30T10:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,539 | py | # coding: utf-8
import pprint
import re
import six
class CreateDatakeyWithoutPlaintextRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
7e1e14422e5c20ca970f9ac3f337d8f70a1365ef | 99985209fb8fa250886db43ee8c4bd3de9ec4ae6 | /Iris_flower_predict/iris.py | 6b6d64458aedccec48cfa916357bf540cc5498f8 | [] | no_license | Arpankarar/mini-data_science-projects | c7f986eacfb0901187981cbe29b978b38a3dddac | 1721226f505a6e41d3588ecc9cf57c1171c7f776 | refs/heads/master | 2023-06-24T02:01:28.406361 | 2021-07-31T08:58:48 | 2021-07-31T08:58:48 | 390,634,538 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | import streamlit as st
import pandas as pd
from sklearn import datasets
from sklearn.ensemble import RandomForestClassifier
st.write("""
# Simple Iris Flower Prediction App
This app predicts the **Iris flower** type!
""")
st.sidebar.header('User Input Parameters')
def user_input_features():
sepal_length = st.sid... | [
"you@example.com"
] | you@example.com |
01e44159ebc667da0d152037de82f1570e56a198 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02796/s829176641.py | db5435558a236408a2920925ea8b5565137ac7e4 | [] | 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 | 335 | py | _, *_XL = open(0).read().split()
XL = list(zip(*[map(int, iter(_XL))]*2))
ans = 0
t = -10**10 # 数直線のマイナス方向からスタートする
arms = [(X-L, X+L) for X, L in XL]
arms_sorted = sorted(arms, key=lambda k:k[1])
ans = 0
for s, e in arms_sorted:
if t <= s:
t = e
ans += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f605fca32647d4acd9406b4bfc685b273229d17d | 640729166526060d5761458745a74a02b6fa4213 | /notebooks/solutions/day4-01-02.py | a893dd5268ede5252fcd6ca9cc82e21c705788dc | [] | no_license | AI-BlackBelt/yellow | 9dbb8b973a39d29ee071fb46fa164127836e0dbb | 560dba2268fa8dd4e4fc327bfe009b79784022ab | refs/heads/master | 2020-04-21T12:25:49.082139 | 2020-03-23T15:47:56 | 2020-03-23T15:47:56 | 169,561,717 | 8 | 3 | null | 2019-05-27T15:53:20 | 2019-02-07T11:32:49 | Jupyter Notebook | UTF-8 | Python | false | false | 150 | py | knn = KNeighborsClassifier(n_neighbors=best_n_neighbors)
knn.fit(X_train, y_train)
print("test-set score: {:.3f}".format(knn.score(X_test, y_test)))
| [
"g.louppe@gmail.com"
] | g.louppe@gmail.com |
36a49e6a2e38193458fb28a4d0df0bb692bf122d | dd5b7241ae3deed66254466d6e089cbb15ff0623 | /build/driver/depth_camera/iai_kinect2-master/kinect2_bridge/catkin_generated/pkg.installspace.context.pc.py | da100c56a86553c3e2284bf0a413954d9dea2c01 | [
"BSD-2-Clause"
] | permissive | lty1994/ros_project | 189dde5842a5bcb9392a70383a37822ccafb7de2 | d55ce07c592d545f9a43330fa6bf96af6651575f | refs/heads/master | 2020-04-14T16:14:22.878838 | 2019-01-04T05:31:46 | 2019-01-04T05:31:46 | 163,946,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/autolabor/catkin_ws/install/include".split(';') if "/home/autolabor/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "kinect2_registration".replace(';', ' ')
PKG_CONFIG_LIBRARIES... | [
"lty2008@vip.qq.com"
] | lty2008@vip.qq.com |
92ef1e32731390c9733ad4e327465dc20028c848 | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Python/Core/Lib/encodings/utf_32.py | ba16204eb2a42eb85e80a813dddfdc8cb0d0d369 | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,658 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: utf_32.py
"""
Python 'utf-32' Codec
"""
import codecs
import sys
encode = codecs.utf_32_encode
def decode(input, errors='strict'):
return codecs... | [
"kyeremalprime@gmail.com"
] | kyeremalprime@gmail.com |
8a8938f84a7c687b66e0d1b18d01c112f7864e2f | 32fb5fbaf49cf767f276fc6cee0c31d2f63de159 | /node_modules/secp256k1/build/config.gypi | 3a1a2f612a9e9bb9a943190cc0e0235962abe708 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | laddukavala/ladduBabu | 9d7b771516e78a3091da44ff89b01a2aaeb50eb6 | a47238f8db435fc2561bd4b994caaa2e5e36c555 | refs/heads/master | 2022-12-14T20:11:30.634919 | 2019-06-01T06:29:45 | 2019-06-01T06:29:45 | 189,697,323 | 0 | 0 | null | 2022-12-09T04:46:01 | 2019-06-01T06:11:05 | JavaScript | UTF-8 | Python | false | false | 4,933 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"coverage": "false",
"debug_devtools": "node",
"debug_http2"... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
6b9226b90a7de587d71b30cad44ecff48e5b36f2 | 69096ca0d67b3d6809a2fe05af51341df62ebc60 | /tibiapy/errors.py | 7d46deea3b3e3d421b16d9b41493ecba7f3cf1fd | [
"Apache-2.0"
] | permissive | Galarzaa90/tibia.py | 6f648aff8b6fbac7be4886435711f7ff08420402 | f8c145dd597c558398bac50e035711e34863b571 | refs/heads/main | 2023-08-17T15:50:31.354488 | 2023-08-17T14:00:07 | 2023-08-17T14:00:07 | 143,892,750 | 30 | 12 | Apache-2.0 | 2023-08-24T17:24:19 | 2018-08-07T15:25:23 | Python | UTF-8 | Python | false | false | 2,521 | py | """Exceptions thrown by tibia.py."""
from enum import Enum
from typing import Type, Any
class TibiapyException(Exception):
"""Base exception for the tibiapy module.
All exceptions thrown by the module are inherited from this.
"""
pass
class InvalidContent(TibiapyException):
"""Exception thrown... | [
"allan.galarza@gmail.com"
] | allan.galarza@gmail.com |
6311dfd903716c2ca23ce2202aa867bc5a567a78 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_116/1755.py | 8c9f6f86daffb3dad052205a0bf1c9fee9d771c6 | [] | 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 | 6,502 | py | import sys
inFile = open(sys.argv[1], 'r')
outFile = open(sys.argv[1][:-2]+"out", "w")
number_of_input = int(inFile.readline().rstrip("\n"))
#print number_of_input
count = 0
while(count != number_of_input):
matrix = []
for line in range(0,4):
attrib = inFile.readline().rstrip("\n")
attrib = ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3405e2abb735e5a7131c3bcfa7208aef3d54ecfc | 5a56592fb347f650cd3c7ada273bf58902c8c925 | /05_proteins_to_graph.py | c61886adf64c7a28c39d8467c3f76d6333e2bdc4 | [] | no_license | chelseaju/ProteinGraph | 05a1541719442966a76a9f8e11bc2552f41ada75 | 75a96a4eab4a7b59b18be4db209c855f2912ab1a | refs/heads/master | 2016-09-08T10:26:50.338110 | 2016-01-27T00:58:36 | 2016-01-27T00:58:36 | 30,887,654 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,874 | py | """
Retrieve proteins from a given family
Convert these proteins into graph format
"""
import argparse, re, os, time, random
from pdb import *
from graph import *
from echo import *
POSITIVE = []
def build_pfam_reference(pfam_ref, pfam_id):
fh = open(pfam_ref, 'r')
for line in fh:
... | [
"chelseaju@ucla.edu"
] | chelseaju@ucla.edu |
3746a660384a515254a4dccf0078e0b6055607fc | 48e294e8cec03960710b10fe6774b8e7145f4d50 | /documentation/environment_canada/ec_density.py | 09567cbf9b16c4a11ab57d39bc738bcf1d7d6a66 | [
"Unlicense"
] | permissive | NOAA-ORR-ERD/OilLibrary | 891744dc9877c40fe55a0f38712d9cc4d3fd12fc | a09a51721e43b040d19549531c0370efc956ebd0 | refs/heads/master | 2021-12-23T16:00:49.425884 | 2021-12-01T22:33:11 | 2021-12-01T22:33:11 | 57,332,172 | 11 | 15 | NOASSERTION | 2021-09-16T08:51:49 | 2016-04-28T20:37:11 | Python | UTF-8 | Python | false | false | 4,510 | py |
from oil_library.models import Density
from ec_xl_parse import (get_oil_properties_by_name,
get_oil_properties_by_category)
from ec_oil_props import get_oil_weathering
def get_oil_densities(oil_columns, field_indexes):
'''
Getting densities out of this datasheet is more tricky t... | [
"james.makela@noaa.gov"
] | james.makela@noaa.gov |
3dd1b171406bc7721b63a12c64a6e50545f3769d | 7c11455f583c73b4c7c57e61a78229231a3798f8 | /reinforcement_learning/models/base_model.py | 1cbd8f29f1bb922c7c1ce17ae3bcc78a6b4b9c25 | [] | no_license | twobackfromtheend/quRL | d75215f24fbe3c4bccfce5f627c20655e0329951 | 8b40017793ca591e8d8cba469bdd71c32b0a1d5a | refs/heads/master | 2020-04-03T17:45:54.975865 | 2019-01-19T12:24:42 | 2019-01-19T12:25:08 | 155,458,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 634 | py | import numpy as np
class BaseModel:
def __init__(self, inputs: int, outputs: int):
self.inputs = inputs
self.outputs = outputs
def build_model(self):
raise NotImplementedError
def save_model(self, filename: str):
raise NotImplementedError
def create_copy(self):
... | [
"harry1996@gmail.com"
] | harry1996@gmail.com |
62bb90eaf5656edc3f0d26b8615d22a301750586 | 528976ba81dfab381e2273d9784c7e21d5c90c34 | /snake/main.py | d3523a15e019c4c8e174d2170158039e1a98978f | [
"MIT"
] | permissive | uaiuaief/Machine-Learning-for-Snake-Game | d65478d08b8d2bf4c06e0668dfdb41b1b6d0514c | 1a36ef4468eea9f80f44fb1b8d115790262320c5 | refs/heads/master | 2020-09-14T20:24:55.545625 | 2019-11-28T21:15:46 | 2019-11-28T21:15:46 | 223,244,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | import random
from tkinter import mainloop, CENTER, NW
class SnakeAPP:
config = {
"TICK": 100,
"SNAKE_BODY_COLOR": 'green',
"SNAKE_HEAD_COLOR": 'lime green',
"BACKGROUND_COLOR": 'black',
"FOOD_COLOR": 'red',
"GRID_WIDTH_IN_SQMS": 20,
"GRI... | [
"="
] | = |
380ab18c6dccc5590c8334095f89d932b866f7ae | b6721322ada8cc2820df67c5d28c568edb28cde9 | /DectoRoman_2019_2020.py | ab3070bf36643dc4704e30c6110caf9d4845908c | [] | no_license | Ticonderoga/CoursInfoL2 | 0d68914b2cc94e8df42b296524a16e4b88d6b44d | 8d65b2f269ca1bd0e923082f9506194600969f0c | refs/heads/master | 2021-04-11T03:38:09.547703 | 2020-05-15T14:32:10 | 2020-05-15T14:32:10 | 248,989,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 24 17:04:01 2020
@author: phil
"""
def DectoRoman(deci) :
"""
Fonction permettant de transformer un nombre en chiffre romain
Parameters
----------
deci : Integer
Nombre à convertir en chiffres romains.
Returns
... | [
"travis@travis-ci.org"
] | travis@travis-ci.org |
65cad5d0de4d5aa9756f02fbc08038d47c0d8101 | 381dc64b93f0bd8cb25553f2415a4add64eb1d39 | /arrange_good_one.py | 8d0b0d53c4648f03dacb07dabf4d00c856a60821 | [] | no_license | EmuxEvans/py_learn | ce1abd29e5ba8533b4208101ad52aebd057c2038 | 69476ec5b482eb4b4ddce2aff4ed6e934e08b7f1 | refs/heads/master | 2021-01-21T02:55:59.716050 | 2015-03-19T13:17:29 | 2015-03-19T13:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | import copy
def arrange(n):
if n <= 0:
return
result = [[]]
for i in range(n):
temp = []
for each in result:
for j in range(i + 1):
t = copy.copy(each)
t.insert(j, i)
temp.append(t)
result = copy.deep... | [
"metathinkerk@gmail.com"
] | metathinkerk@gmail.com |
b1fb8191d74cba456913da37765a7243bad750a6 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/pybites/beginner/038_using_elementtree_to_parse_xml/save4_nopass.py | 610acd10a85062c21c2e9a451793e4d85cb06c73 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,493 | py | import xml.etree.ElementTree as ET
# from OMDB
xmlstring = '''<?xml version="1.0" encoding="UTF-8"?>
<root response="True">
<movie title="The Prestige" year="2006" rated="PG-13" released="20 Oct 2006" runtime="130 min" genre="Drama, Mystery, Sci-Fi" director="Christopher Nolan" />
<movie title="The Dark Knight" ye... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
e11f5b8a6bce94fb2fb1eed0c75f6808a52e33b9 | 1aa6e732645f4603c05a1c9262f6fbb1af76b056 | /patchinfo/Google_Apps/gapps-task650.py | 0d9fc26ced139d01b3e77087393f74a2da5240a8 | [] | no_license | nauddin257/DualBootPatcher | f2831bdc72d8f94787a1d3ad94d0d85103316dd5 | 024af7ecb38ba6b4e3f1ae16ab81e32cd213864f | refs/heads/master | 2020-12-11T07:26:46.916515 | 2013-11-14T03:54:41 | 2013-11-14T03:54:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from fileinfo import FileInfo
import re
file_info = FileInfo()
filename_regex = r"^gapps-jb\([0-9\.]+\)-[0-9\.]+\.zip$"
file_info.patch = 'Google_Apps/gapps-task650.dualboot.patch'
file_info.has_boot_image = False
def matches(filename):
if re.search(filename_regex, filename):
return True
e... | [
"chenxiaolong@cxl.epac.to"
] | chenxiaolong@cxl.epac.to |
5e6661b7a1ff8065f2e5e82f2a5ce4f5f69c88b9 | 8b25a7984bd18fc356232083da0bb2f829a1dbd4 | /ineco_point_reward/__init__.py | 446998d61d4fb32feff1de8c38b9b0e55af31f0f | [] | no_license | anndream/new_mixprint_addons | f94067a1248cf3d30ce4e937d5fb3c96bc9cb482 | 1b4b04388e723dc7137dd8d2a29fdef3f59f4861 | refs/heads/master | 2020-04-09T19:17:36.882746 | 2015-09-10T04:41:13 | 2015-09-10T04:41:13 | 42,242,457 | 0 | 2 | null | 2015-09-10T12:13:56 | 2015-09-10T12:13:56 | null | UTF-8 | Python | false | false | 1,106 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"thitithup@gmail.com"
] | thitithup@gmail.com |
e9025879b824e2a02721409d1fe7e3c7fa642b83 | 147519505f3c47e5f10d9679e07d3719931b9fd0 | /ecommerce/product/views.py | d03412aa093af7ddfd44127d9b19f824f955fc21 | [] | no_license | grbalmeida/hello-django | 85ed28d8d47a9a2e072f3eecd13d22fb2e977a31 | 9ef261ba5faeac3de8d36eeb7efa8974e5d1e661 | refs/heads/master | 2020-08-12T10:10:48.554349 | 2019-12-20T01:18:33 | 2019-12-20T01:18:33 | 214,748,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,585 | py | from django.shortcuts import render, redirect, reverse, get_object_or_404
from django.views.generic import ListView
from django.views.generic.detail import DetailView
from django.views import View
from django.http import HttpResponse
from django.contrib import messages
from . import models
from user_profile.models impo... | [
"g.r.almeida@live.com"
] | g.r.almeida@live.com |
11115846bcf63ce3f18a74a99918a5763ab07da3 | 8da91c26d423bacbeee1163ac7e969904c7e4338 | /pyvisdk/enums/net_ip_config_info_ip_address_status.py | 72780ca843b9d782573c01057d893237fb90437c | [] | no_license | pexip/os-python-infi-pyvisdk | 5d8f3a3858cdd61fb76485574e74ae525cdc7e25 | 1aadea0afbc306d09f6ecb9af0e683dbbf961d20 | refs/heads/master | 2023-08-28T02:40:28.789786 | 2020-07-16T04:00:53 | 2020-07-16T04:00:53 | 10,032,240 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 323 | py |
########################################
# Automatically generated, do not edit.
########################################
from pyvisdk.thirdparty import Enum
NetIpConfigInfoIpAddressStatus = Enum(
'deprecated',
'duplicate',
'inaccessible',
'invalid',
'preferred',
'tentative',
'unknown',
... | [
"jmb@pexip.com"
] | jmb@pexip.com |
69b8440a1cf5de7d0991dc2472928b20cde2bdb3 | 43cdd7cb26fe44b1ed7de6a46f8b5e680c9b1372 | /tests/components/mqtt/test_subscription.py | 5ee784b8ab76967c31edb266f4a6e916a62b2fc7 | [
"Apache-2.0"
] | permissive | OpenPeerPower/Open-Peer-Power | 02ec5c133564b47c6f72f669e844a666643cacd6 | 940a04a88e8f78e2d010dc912ad6905ae363503c | refs/heads/master | 2022-08-16T09:38:49.994009 | 2021-05-29T03:54:13 | 2021-05-29T03:54:13 | 183,174,237 | 1 | 0 | Apache-2.0 | 2022-07-15T18:43:02 | 2019-04-24T07:35:47 | Python | UTF-8 | Python | false | false | 5,209 | py | """The tests for the MQTT subscription component."""
from unittest import mock
from openpeerpower.components.mqtt.subscription import (
async_subscribe_topics,
async_unsubscribe_topics,
)
from openpeerpower.core import callback
from tests.common import async_fire_mqtt_message, async_mock_mqtt_component
asyn... | [
"pcaston@arach.net.au"
] | pcaston@arach.net.au |
251e27541c26ade09017922536afaa65c6e7a613 | a816de2c05290e9a1dcfe1e3e50b96e36792898a | /TESSLCclass.py | 30552e94e69fbe6cad0cd43162dfb7f19ae0be04 | [] | no_license | r-cloutier/mdwarfparams | 2998defb6ed62b6ec8fe1d6a868a9541ea350c15 | e62f10473f91405e2f9cf4998e6ba85a5fd73243 | refs/heads/master | 2021-06-17T14:27:25.835864 | 2019-08-26T18:04:08 | 2019-08-26T18:04:08 | 145,714,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | from imports import *
from truncate_cmap import *
def loadpickle(fname):
fObj = open(fname, 'rb')
self = pickle.load(fObj)
fObj.close()
return self
class TESSLC:
def __init__(self, TICid, index):
try:
os.mkdir('PipelineResults')
except OSError:
pass
self.TICid = TICid
self.folder_... | [
"cloutier@astro.utoronto.ca"
] | cloutier@astro.utoronto.ca |
4a0119a6b16b4ec5de4f7084e981c22e29875eae | b049ec2f36bb63537ca5b73717635f2dc0126cda | /399_Evaluate_Division/399_2.py | 4a28c1a4a9e5a35f0b88010918c5a7d6d2df7b9b | [] | no_license | massquantity/LeetCode | 01d29fe8922b7545140015efbda0f71b04043124 | e298cdab86a4de81bf5a44579c54b5bc7bcb1618 | refs/heads/master | 2021-07-20T07:18:38.109707 | 2021-07-03T04:11:15 | 2021-07-03T04:11:15 | 135,297,184 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,392 | py | class Solution:
def calcEquation(self, equations: List[List[str]], values: List[float], queries: List[List[str]]) -> List[float]:
graph = collections.defaultdict(set)
weights = dict()
visited = set()
def bfs(start, end):
if (start, end) in weights:
return... | [
"wdmjjxg@163.com"
] | wdmjjxg@163.com |
afeaee0d2e5f5995448744d53b52869fc13fa776 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/perm_20200622013715.py | 9bb5e958673f171c3512fadc89c47141dea344c0 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | def sequence(n,k):
newArr = []
for i in range(1,n+1):
newArr.append(i)
# index == k/n-1!
answer = " "
i = 1
factor = 1
while i <= n-1:
factor *=i
i +=1
print(factor)
index = k/factor
sequence(3,3) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
06052e5198f1bd847230dc07432e93da469d8b0e | 3cca537e780ba900087b187d1494713f0c81a24d | /lenstools/tests/test_limber.py | 00cf52cad33fc6b031b5476bb4e990699ccf8f7a | [
"MIT"
] | permissive | apetri/LensTools | 4119c1b5c0570fb6e4078fa67fb3acd5b443c0a5 | 9151988bfe6fbd6809353a33cfb556d44b6806ed | refs/heads/master | 2023-07-19T02:03:26.708366 | 2021-01-21T14:26:47 | 2021-01-21T14:26:47 | 27,881,137 | 32 | 33 | null | 2023-07-12T10:53:00 | 2014-12-11T16:43:33 | Python | UTF-8 | Python | false | false | 680 | py | import os
from ..simulations.limber import LimberIntegrator
from ..utils.defaults import load_power_default
from .. import dataExtern
import numpy as np
import matplotlib.pyplot as plt
from astropy.cosmology import WMAP9
def test_convergence_power():
l = np.logspace(0.0,5.0,100)
integrator = LimberIntegrator(... | [
"apetri@phys.columbia.edu"
] | apetri@phys.columbia.edu |
bcc5aaa88ec03798f57cbf2092d41e69f6d8be0c | e4806fe953cbb76a6baf1f27ae40562561014f36 | /labravel/MIS_SYS/MAIN.py | ab1d0b37968eeddf9ae34f447d78387237cb0f3c | [] | no_license | LaBravel/Tedu-code | 701daa5f49ab42129db0a4684c8e7b3cbcbe1d65 | 9c93e9d88e940e627c7a3d1e8c2519035b462086 | refs/heads/master | 2020-04-27T16:33:55.535261 | 2019-03-08T07:27:29 | 2019-03-08T07:27:29 | 174,486,026 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | from MENU import *
from STUDENT import *
def main():
DATE = []
while 1 :
show_menu()
choice = input('要进行什么操作?')
if choice == '1' :
input_student(DATE)
elif choice == '2' :
output_student(DATE)
elif choice == '3' :
delete_student(DATE)
... | [
"463662798@qq.com"
] | 463662798@qq.com |
2967eddce5d6006864ec854b7c7f9d7c3e829f9e | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/flowprofile.py | ea7288f4d656a7167aabf2db92581bc9dd90f409 | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 4,008 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
2d04d274781ae60c5385e020cc01d8fc1c3b99bc | 9f7c9201b86128d2459e463d3bb1c60b7e434a78 | /examples/tree_benchmark.py | ea39ec0d7c7b9965ca1cf840687150bca077ec9e | [] | no_license | jackd/deep-cloud | b4a171a290c22a113b8a6dd3a49c875afae84b93 | 9adb25bfcdfd1f2faf3820378cc27a952aa90f9d | refs/heads/master | 2020-07-05T19:32:38.824051 | 2019-10-25T04:04:43 | 2019-10-25T04:04:43 | 202,748,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,511 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from time import time
from tqdm import tqdm
import tensorflow_datasets as tfds
from deep_cloud.problems.partnet import PartnetProblem
from deep_cloud.ops.np_utils.tree_utils import pykd
pro... | [
"thedomjack@gmail.com"
] | thedomjack@gmail.com |
b273b59111c729a742b4aba94c9189dbef82690c | b16bc512603cbe3bdc5a56586cfc9147fe5fb3f6 | /venv/bin/rst2latex.py | 944a30a66b8d95f943a166fadb0372224d4a4a08 | [] | no_license | hoang-ho/TechTogether | caa565b14165c7b0889bd4232098e16a0137ba67 | fa4ca8375ab00d1791d2fce02384503eff5df7e0 | refs/heads/master | 2020-05-01T08:24:22.561868 | 2019-05-13T06:55:46 | 2019-05-13T06:55:46 | 177,377,979 | 2 | 2 | null | 2019-05-13T06:55:47 | 2019-03-24T06:15:31 | Python | UTF-8 | Python | false | false | 829 | py | #!/Users/hoangho/TechTogether/TTB_Backup/venv/bin/python
# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $
# Author: David Goodger <goodger@python.org>
# Copyright: This module has been placed in the public domain.
"""
A minimal front end to the Docutils Publisher, producing LaTeX.
"""
try:
import locale
... | [
"hoangho@Hoangs-MacBook-Pro.local"
] | hoangho@Hoangs-MacBook-Pro.local |
1defbd42fd03ec6153cd47a3c7858fd4ba026f91 | 360ff148d658caf1736ae159954c928d2ce545f7 | /alembic/env.py | 019c1b1fff7cee38417508e2ad8a39313905a451 | [
"MIT"
] | permissive | beanjo55/KerbalStuff | 3305401122186a692a345a6a0a5fad63f8eb864c | 18e8c517b6f79c2839236a9507464ab0987f103e | refs/heads/master | 2021-01-18T11:11:04.293762 | 2016-02-17T12:10:21 | 2016-02-17T12:10:21 | 51,928,777 | 1 | 0 | null | 2016-02-17T14:34:06 | 2016-02-17T14:34:06 | null | UTF-8 | Python | false | false | 2,076 | py | from __future__ import with_statement
import os, sys
sys.path.append(os.getcwd())
from alembic import context
from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.co... | [
"sir@cmpwn.com"
] | sir@cmpwn.com |
3800a32637fe1d6fdc6c62820da488f167181ae2 | 8f48d12b88048e424ebb0d72ca6dfab5cf12ae0f | /0001_0599/349.py | fd262223f7f0e12f87b1a1d0b8c093a9eedd4ba2 | [] | no_license | renjieliu/leetcode | e1caf13c18a8107ed9252588b339fb76bcb1b246 | 4668b64fcb9320b6c316d8608fc61911ce43b6c7 | refs/heads/master | 2023-03-18T18:16:06.187741 | 2023-03-14T20:31:59 | 2023-03-14T20:31:59 | 128,823,819 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | def intersection(nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: List[int]
"""
map = {}
output = []
for i in nums1:
map[i] = "a"
for j in nums2:
if map.get(j, "None")!="None":
map[j] = "b"
for k, v in map.items():
if ... | [
"anlrj@qq.com"
] | anlrj@qq.com |
728e2b1d2f05db0e391e7186e865451f25c2215e | ca0ffc5606da190274569e3d6ced2543af187fa9 | /get_workday.py | 06f8c01b9e6d486f740ea889b72de0ec804429bc | [] | no_license | littlelienpeanut/TBrain_ETF_prediction | f3a3db045e5274bfca56e28e373e98fa31c1ce67 | c9f2d19e2f97a67cd923928c4b87ffc53c274704 | refs/heads/master | 2020-03-18T01:42:25.374235 | 2018-06-27T16:17:06 | 2018-06-27T16:17:06 | 134,155,671 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | import pandas as pd
import datetime
import csv
def main():
df = pd.read_csv('../TBrain_Round2_DataSet_20180518/tetfp.csv', encoding = 'utf8')
fname = ['50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '6201', '6203', '6204', '6208', '690', '692', '701', '713']
date_title = []
data_v1 ... | [
"noreply@github.com"
] | littlelienpeanut.noreply@github.com |
d211ed69c45c9616969fa79f815d55d5f3412cca | 9ea80adb9252c0e67e5e20c3ff9d6a08cf4a172d | /mxonline/apps/courses/migrations/0007_auto_20190517_1615.py | 574173276b261a61cc8699af045aca93332ac58e | [] | no_license | hfxjd9527/djangoweb | 11830fbbaab0d4986b7494c61ac23d7f19266b67 | 1d83c423755b357eb178cc4f384829082623d2e0 | refs/heads/master | 2022-12-10T02:20:43.569239 | 2019-06-04T14:31:18 | 2019-06-04T14:39:11 | 185,593,356 | 0 | 0 | null | 2022-12-08T00:46:58 | 2019-05-08T11:34:07 | HTML | UTF-8 | Python | false | false | 678 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-05-17 16:15
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0006_video_url'),
]
operations = [
migrations.AddField(
... | [
"1725824530@qq.com"
] | 1725824530@qq.com |
350ed4b6348456ac8bf7a9bdab5919e1a7dec755 | 6e5ab77fee1fb4a0310213dd8c6dd8601828b1b9 | /Algorithm/문제/수업/D-13t/AD/[TST] 책꽂이.py | 4c6bb04f51b13f2fef4ab0a48e707a342aa6520b | [] | no_license | hongyong3/TIL | 36d031c0da9e3e6db3eebb977bd3e12df00a849f | 7f1492128e957a78fc95b255f4f7f2978161e471 | refs/heads/master | 2023-08-19T09:16:03.231757 | 2023-08-18T09:38:47 | 2023-08-18T09:38:47 | 162,100,258 | 1 | 0 | null | 2023-02-11T00:52:32 | 2018-12-17T08:42:42 | Jupyter Notebook | UTF-8 | Python | false | false | 711 | py | import sys
sys.stdin = open("[TST] 책꽂이_input.txt", "r")
<<<<<<< HEAD
def bookshelf(idx, sums):
global minn
if sums - B >= minn:
return
if idx == N:
if 0 <= sums - B <= minn - 1:
minn = sums - B
return
bookshelf(idx + 1, sums)
bookshelf(idx + 1, sums + data[idx]... | [
"chy66822495@gmail.com"
] | chy66822495@gmail.com |
f393255f7aea9000b5a00c844b41886415fd2e91 | 20e3ee6642d20578e48756963798acfe307ac6b5 | /Practice/hackerrank/Certifications/Python (Basics)/01AverageFunction.py | e85fad181b9c07a0a2736dbbd750cea5f4a290e4 | [] | no_license | sirinenisaikiran/Python | 538f64276767435de3233b720f547aac0bf4d511 | bdfef0d1c04c7f3b9fc91a164b5fd1789828176c | refs/heads/master | 2023-01-31T00:53:01.650916 | 2021-06-06T10:39:20 | 2021-06-06T10:39:20 | 237,744,104 | 0 | 0 | null | 2023-01-26T03:38:47 | 2020-02-02T08:58:49 | Python | UTF-8 | Python | false | false | 179 | py | def avg(List):
sum = 0
for i in List:
sum += int(i)
return (sum/len(List))
nums = input()
List = nums.split(' ')
Res = avg(List)
print("{:0.2f}".format(Res)) | [
"saikiran.sirneni@gmail.com"
] | saikiran.sirneni@gmail.com |
efe190f572281fda60f87458816984aefd501e95 | 29783ede1402f93bee06cbc899c41a48911e1285 | /portrait/import/NameAlignImport2Neo.py | 0632ec363abc75e5d619cc814b7cfe7660d9a381 | [
"BSD-2-Clause"
] | permissive | Allen517/alignment | 389f3dd4ff4b2bd6785ecee009f46e589f3b07f5 | a0bfe29b229182634d85b8b383767e7eda8fc2af | refs/heads/master | 2021-01-15T17:59:26.106980 | 2019-01-28T08:18:04 | 2019-01-28T08:18:04 | 99,768,785 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,002 | py | # -*- coding:utf8 -*-
import sys
sys.path.append("../../")
from portrait.DB.GraphdbClient import GraphdbClient
from portrait.DB.MongodbClient import MongodbClient
from portrait.utils.GetConfig import GetConfig
from portrait.utils.utilFunction import unicode2utf8
import json
from portrait.utils.LogHandler import Log... | [
"wangyongqing.casia@gmail.com"
] | wangyongqing.casia@gmail.com |
d609ad3178c98a7b86540b44afa002b47acc664a | 409270c19919496c4083c2c620c52207b1d29ca3 | /Day 41/Solution 1.py | b4e32e45632235670e91c02991f446f68fe42798 | [] | no_license | rayandasoriya/100DaysOfCode | ec275b90c33efd6e354c712b10cf9b5ae3ef3382 | 3158b69f6bf1a13604e36662817ab80c582df557 | refs/heads/master | 2020-03-31T09:20:45.329067 | 2019-01-31T16:16:04 | 2019-01-31T16:16:04 | 152,092,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | class Solution(object):
def subsets(self, nums):
nums.sort()
result = [[]]
for num in nums:
result += [i + [num] for i in result]
return result
| [
"dasoriyarayan@gmail.com"
] | dasoriyarayan@gmail.com |
ca8241aedb354d8af933ca4f71388f2d3f4e7420 | 27cb9cc771ffa02c4f7e12dcd4688e311c63aace | /fairseq/modules/sinusoidal_positional_embedding.py | 81324965f7c7d3088d215e3e147ece7b845e74d0 | [
"MIT"
] | permissive | periclesmiranda/TSPNet | 78aee61a4e4497ae82b1bb6731a6edd6230720cd | 8f71315486c78b540382ef6420eab5441333bcda | refs/heads/main | 2023-07-19T16:06:48.169045 | 2021-09-10T15:08:36 | 2021-09-10T15:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,985 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import math
from typing import Any, Optional
import torch
import torch.onnx.operators
from fairseq import utils
from torch import ... | [
"chenchen.xu@anu.edu.au"
] | chenchen.xu@anu.edu.au |
48405bbbb1645e364d550e79258965c7757dafd6 | e7290064b5df4731167bab10606f451b446a21f7 | /rllib/execution/buffers/mixin_replay_buffer.py | bf23abdf6c108b7dd0b79e05dc5cd1dbf09d6844 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | sven1977/ray | dce9f6fa114741837341f14aef0a8c64c442aba6 | b73a496af19bce627a611e7af2cb02a3c5d99684 | refs/heads/master | 2023-09-02T00:57:47.167794 | 2023-08-17T09:33:04 | 2023-08-17T09:33:04 | 229,269,728 | 2 | 5 | Apache-2.0 | 2023-07-29T07:08:41 | 2019-12-20T13:27:01 | Python | UTF-8 | Python | false | false | 7,564 | py | import collections
import platform
import random
from typing import Optional
from ray.util.timer import _Timer
from ray.rllib.execution.replay_ops import SimpleReplayBuffer
from ray.rllib.policy.sample_batch import DEFAULT_POLICY_ID, concat_samples
from ray.rllib.utils.deprecation import Deprecated
from ray.rllib.util... | [
"noreply@github.com"
] | sven1977.noreply@github.com |
281437822c00a3b68c1c21b7d258fc68af90bd8c | 99f222d31e66da026cd284c390ef487d6e8a0270 | /core/experiments/plot_results_split_and_fit.py | 3dad50caee5489c2a8d9a8fe227e425812bff7bd | [] | no_license | dallascard/textile | 0e831b56978654f820de47f5145b7aabab48154e | 814ae148a0d7ca2ab47dd07c51ca42835717b9f2 | refs/heads/master | 2021-01-23T02:39:41.827570 | 2018-03-28T04:55:45 | 2018-03-28T04:55:45 | 86,009,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,197 | py | import os
import re
from optparse import OptionParser
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from ..util import file_handling as fh
def main():
usage = "%prog csv_results_files"
parser = OptionParser(usage=usage)
parser.add_option('... | [
"dcard@andrew.cmu.edu"
] | dcard@andrew.cmu.edu |
79c2f4eaae72715bc279a2eeed0138317f74f449 | 69bbe2729b178de19938d2be17fff29f99d67f6d | /question-type-find-hum-classifier-builder.py | 4711b71070d861ac64c061c854991d4bd813319d | [] | no_license | imclab/QuestionTypeClassifier | 0b6b51e2e9a85fdb0f61e0f814bca63147fe8bd7 | 20c25dda8ba0b38c3f74aa2914484380f4dd9394 | refs/heads/master | 2021-01-22T05:10:02.025554 | 2014-01-11T19:50:18 | 2014-01-11T19:50:18 | 17,212,625 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,311 | py | #!/usr/bin/env python
"""
done in 2539.012s
Best score: 0.936
Best parameters set:
clf__alpha: 0.0001
clf__n_iter: 80
clf__penalty: 'elasticnet'
tfidf__norm: 'l2'
tfidf__use_idf: False
vect__max_df: 0.75
vect__max_features: None
vect__ngram_range: (1, 2)
vect__stop_words: None
"""
__... | [
"gavinhackeling@gmail.com"
] | gavinhackeling@gmail.com |
beaf48337d505ec8a471b710b101c24259801287 | 14f4d045750f7cf45252838d625b2a761d5dee38 | /argo/test/test_io_k8s_api_core_v1_endpoint_port.py | ee2bad7e450dd854eee83b22b6081f6c99cc0309 | [] | no_license | nfillot/argo_client | cf8d7413d728edb4623de403e03d119fe3699ee9 | c8cf80842f9eebbf4569f3d67b9d8eff4ba405fa | refs/heads/master | 2020-07-11T13:06:35.518331 | 2019-08-26T20:54:07 | 2019-08-26T20:54:07 | 204,546,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.14.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import un... | [
"nfillot@weborama.com"
] | nfillot@weborama.com |
5495e799345a5df9d390f7c1e4773d9ae425c11b | ea713f1ea60829898e457ef39693f1ea8d14047a | /workbase/ws_sc/ws_sc/spiders/bqg_spider.py | 67e574f4977ac9f206bb47bdee7532c091ed5757 | [] | no_license | freeflyfish/bqhr | 2ea7220569780c033536587591a40fb6fb82d394 | d6cc82697b843a83826ed278aede4117822a818d | refs/heads/master | 2020-04-30T15:03:55.205319 | 2018-03-12T06:58:59 | 2018-03-12T06:58:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 992 | py | # -*- coding:utf-8 -*-
import time
import scrapy
from scrapy.http import Request
from selenium import webdriver
class DLDLSpider(scrapy.Spider):
name = 'bqg'
allowed_domains = ["biquge.com"]
start_urls = ["http://www.biquge.info/10_10218/5001527.html"]
# username = '18688983498'
# password = 'pm9... | [
"380784649@qq.com"
] | 380784649@qq.com |
d64db6766ff616af587c803676cd543d66ea5af3 | 9c50d2310d026583fc32720b2cf59f8a8679a3f1 | /base/checkconfig.py | 40d97e4741acaf64c4a85628067987f3206ca275 | [] | no_license | songhongbao/Ran | 6d69bfc93433bdcdfe01f9b542dd626bb188a00d | 942b767e2492283d0c3ade259261de17d2dee7ff | refs/heads/master | 2020-06-15T06:29:35.927142 | 2015-11-19T10:57:19 | 2015-11-19T10:57:19 | 33,342,851 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,604 | py | # -*- coding: utf-8 -*-
import re
import os
import sys
class Conf():
_config = dict()
_error_msg = ''
_task_propertys = ['progress', 'thread']
_task_list = []
#deal ran config
#ran config only support strict pattern: key=value
def _deal(self, line, num):
line = line.strip()
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
84f87302873f18b014bc11be8a870f868e346cd5 | bd36269a7d7780e526c6e700f396baf7fffcb224 | /ctech403/module_1/fillin-function.py | 6090f315bbbac4e8f1f02a84c217ba6ec8982fea | [] | no_license | ecornelldev/ctech400s | 7bb26d901bb9daae5c2d0f4f2eb8dabd9fdfe10e | 8e394620dc2f2597161cc3ac94b1b97424f13d1a | refs/heads/master | 2021-06-23T21:23:16.198084 | 2020-12-22T19:06:42 | 2020-12-22T19:06:42 | 161,530,338 | 0 | 0 | null | 2020-12-30T04:10:33 | 2018-12-12T18:43:17 | HTML | UTF-8 | Python | false | false | 1,113 | py | import random
# Story template
story = 'Yesterday, I ___VERB___ to the store to buy a ___NOUN___. But on my way, I ran into a ___ADJ___ ___NOUN___. I was very ___ADJ___. Then I remembered that I had a ___NOUN___ in my pocket. I ___VERB___ behind a ___ADJ___ ___NOUN___.'
# Placeholders
NOUN_PLACEHOLDER = '___NOUN___'
... | [
"james.grimmelmann@cornell.edu"
] | james.grimmelmann@cornell.edu |
ce9e6a7de16b5cdfa571a0dee0fd2036c6646815 | b3a90c38c61579a3de26ca398cc354a2fedbd367 | /python_crash_course/chapter_11/test_name_function.py | 56ef5ee3f7bc39c57f6974724ef7e1a833e4d6a3 | [] | no_license | JennifferLockwood/python_learning | a815e05e124aab02de694e48ee405958bbed8aac | fa054bb84778f278247128266095e061e65126b0 | refs/heads/master | 2016-08-12T20:29:36.221498 | 2016-03-13T18:10:04 | 2016-03-13T18:10:04 | 49,471,663 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | import unittest
from name_function import get_formatted_name
class NamesTestCase(unittest.TestCase):
"""Tests for 'name_function.py'."""
def test_first_last_name(self):
"""Do names like 'Janis Joplin' work?"""
formatted_name = get_formatted_name('janis', 'joplin')
self.assertEqual(for... | [
"jennifferlockwood@gmail.com"
] | jennifferlockwood@gmail.com |
5d2a5440ef001e2e281ac33bb7504dd9e176c1c6 | e463e169c6dcd5222dbba9c4c699f70b5eda3591 | /Chapter_8/private-critter.py | c28cb62c9baf64a7da396de3807110884329e945 | [] | no_license | mrwillbarnz/Python_FAB_Reimplementation | 1e00e3ecdcb6c9e3d671aae9dddf8aa475c01e8e | 5f02c6d3f392612fe17d97e648302ea2e3edf01c | refs/heads/master | 2022-04-12T05:47:11.577985 | 2020-03-01T17:37:40 | 2020-03-01T17:37:40 | 239,611,675 | 0 | 0 | null | 2020-02-16T19:28:19 | 2020-02-10T20:57:21 | Python | UTF-8 | Python | false | false | 705 | py | # Private Critter
# Demonstrates private variables and methods
class Critter(object):
"""A virtual pet."""
def __init__(self, name, mood):
print("A new critter has been born!")
self.name = name # public attribute
self.__mood = mood # private attribute
def talk(self):
print(... | [
"willbarnard687@pm.me"
] | willbarnard687@pm.me |
725f3663fa177e21fa5168b1c0c8db6c8e9596a5 | b023dc288ead04ce930fc16034bf47752c0a86a4 | /projecteuler2.py | b6910e07d34234fb29796fe88b6d8b1d7d369e16 | [] | no_license | leezichanga/Project-euler-toyproblems | b98c747b9d2c61cde76e5ad223e66e559ca63a33 | 438a5b48cb42e357def68360598b8d1850128734 | refs/heads/master | 2020-03-11T19:45:33.145514 | 2018-04-19T13:03:48 | 2018-04-19T13:03:48 | 130,217,051 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | #Solution 1
numbers = [1, 2]
total = 0
for i in range(4000000):
if i == numbers[-1] + numbers[-2]:
numbers.append(i)
for n in numbers:
if n % 2 == 0:
total += n
print(total)
#Solution 2
#!/bin/python3
import sys
t = int(input().strip())
for a0 in range(t):
fib_start =[1,2] #create the... | [
"elizabbethichanga@yahoo.com"
] | elizabbethichanga@yahoo.com |
554c61067cbadc2773055a2c4062c1801556b3e4 | d652c5cd50abc59163288f67aabf511edf2ffc16 | /{{cookiecutter.package_name}}/{{cookiecutter.app_name}}/serializers/blog.py | 7a2777cb74b488f9a6b15e871cad3fd62c639f55 | [
"MIT"
] | permissive | sveetch/cookiecutter-sveetch-djangoapp | 2f883958a665a84423f9dcc0bbd794a67d91fb0e | 6770a00e5ed67702f61543c0495bc55dcebdc76a | refs/heads/master | 2023-04-03T18:05:59.380348 | 2023-03-17T16:26:15 | 2023-03-17T16:26:15 | 297,186,173 | 3 | 1 | null | 2020-10-12T00:52:41 | 2020-09-21T00:04:59 | null | UTF-8 | Python | false | false | 1,525 | py | from rest_framework import serializers
from ..models import Blog
class BlogIdField(serializers.PrimaryKeyRelatedField):
def get_queryset(self):
return Blog.objects.all()
class BlogSerializer(serializers.HyperlinkedModelSerializer):
"""
Complete representation for detail and writing usage.
"... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
9beb46105e59a68e3a054d35e6ff5164999cabc5 | 0f24c1e2df268a7c98314d5b3c6f8b5738f88ba9 | /test/test_addresses_api.py | 2b9cf39f54f0bd4d84f46319473ed53db7dbb64e | [
"MIT"
] | permissive | arberx/graphsense-python | b07be2854d4f6e763aacdad4045ae72c338bd4e2 | c0dafc97a04bc3dbf0caf08a981bb591bd1e430a | refs/heads/master | 2023-08-11T14:15:42.576434 | 2021-06-17T08:01:04 | 2021-06-17T08:01:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,079 | py | """
GraphSense API
GraphSense API # noqa: E501
The version of the OpenAPI document: 0.4.5
Generated by: https://openapi-generator.tech
"""
import unittest
import graphsense
from graphsense.api.addresses_api import AddressesApi # noqa: E501
class TestAddressesApi(unittest.TestCase):
"""Addre... | [
"git@myrho.net"
] | git@myrho.net |
c3a959e4e06b55273a496c095e694aa6c1c774ca | 72f6f274a9e4937f99e61eebe14f9b2f301a83f5 | /utils/tokenizer.py | bf4279be1e7e24a5503d16496dfcd27c2bff72f0 | [] | no_license | studio-ousia/textent | e466f8ef4f6910a0f4270014fa29c18aa5f329e0 | 2a73ef2f6a0d29d4d1c1085a75fa0b7592bdd376 | refs/heads/master | 2021-03-22T04:45:57.582737 | 2018-06-03T07:18:28 | 2018-06-03T07:18:28 | 93,811,887 | 20 | 4 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | # -*- coding: utf-8 -*-
import re
class Token(object):
__slots__ = ('_text', '_span')
def __init__(self, text, span):
self._text = text
self._span = span
@property
def text(self):
return self._text
@property
def span(self):
return self._span
def __repr_... | [
"ikuya@ikuya.net"
] | ikuya@ikuya.net |
c42d55490407bfcfd3a591030db63cd5be9b2b58 | ad4c2aa0398406ccb7e70562560e75fa283ffa1a | /find-and-replace-in-string/find-and-replace-in-string.py | d3ee3f2ce5afaf66d400552e4e375febc9762f26 | [
"Apache-2.0"
] | permissive | kmgowda/kmg-leetcode-python | 427d58f1750735618dfd51936d33240df5ba9ace | 4d32e110ac33563a8bde3fd3200d5804db354d95 | refs/heads/main | 2023-08-22T06:59:43.141131 | 2021-10-16T14:04:32 | 2021-10-16T14:04:32 | 417,841,590 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | // https://leetcode.com/problems/find-and-replace-in-string
class Solution(object):
def findReplaceString(self, S, indexes, sources, targets):
"""
:type S: str
:type indexes: List[int]
:type sources: List[str]
:type targets: List[str]
:rtype: str
"""
... | [
"keshava.gowda@gmail.com"
] | keshava.gowda@gmail.com |
44f2dfba86e5e004678f934e9bfd00a8545929f3 | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/domain/KoubeiMarketingCampaignBenefitQueryModel.py | d167d12a86faf113518b209e604ee0b9b496a368 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 937 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiMarketingCampaignBenefitQueryModel(object):
def __init__(self):
self._benefit_id = None
@property
def benefit_id(self):
return self._benefit_id
@benefit_id.set... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
1d360fbb5e6d6248351227c7dbb7361fc5d36f9b | c71d332dd845036c21c9fd8f4f571f9209bf2672 | /Binary Tree Zingzag Level Order Traversal.py | 5573d8950e53f17add11faff31d2f61793ba6f3e | [] | no_license | diksha12p/DSA_Practice_Problems | 2884fd9e77094d9662cb8747744dd2ef563e25e4 | d56e3d07620d51871199f61ae82cff2bd75b4744 | refs/heads/master | 2023-01-20T15:31:37.824918 | 2020-11-29T21:37:12 | 2020-11-29T21:37:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | """
LC 103. Binary Tree Zigzag Level Order Traversal
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary tree [3,9,20,null,null,15,7],
3
/ \
9 20
/ \
15 7... | [
"noreply@github.com"
] | diksha12p.noreply@github.com |
551d529e69d4ddcf6ee18ff69888a85c3916d14c | 7e96ba20c25c6fb56af6ccd36b3b6d68df6a081c | /Kyle_Marienthal/DJANGO/TRAVEL_BUDDY_REDO/apps/travels_app/views.py | 39b2f550fcb8e27dacd385ab3fc16e1471ac4812 | [] | no_license | CodingDojoDallas/python_september_2017 | 9d8cd74131a809bc6b13b7f465594cf8b1e2fd75 | f9f2f7b39bf9c4fceda3df5dc7424164aa5d5df5 | refs/heads/master | 2021-01-23T08:52:22.899994 | 2017-10-30T17:00:55 | 2017-10-30T17:00:55 | 102,558,291 | 2 | 14 | null | 2018-01-13T05:28:34 | 2017-09-06T03:28:38 | Python | UTF-8 | Python | false | false | 1,573 | py | from django.shortcuts import render, redirect, reverse
from django.contrib import messages
from .models import Trip, User
# Create your views here.
# if request.method == "POST":
# context = {
# 'current_user' : current_user(request)
# }
def flash_errors(errors, request):
print '*****youre in the flash_errors metho... | [
"kylemarienthal@gmail.com"
] | kylemarienthal@gmail.com |
cd5f6d120bc92d0c0c9c0e040a3e4b7b80b53691 | 14f4d045750f7cf45252838d625b2a761d5dee38 | /argo/test/test_io_k8s_api_core_v1_service_account_token_projection.py | 05a59298e73201e88e387277ff653382026d9a8f | [] | no_license | nfillot/argo_client | cf8d7413d728edb4623de403e03d119fe3699ee9 | c8cf80842f9eebbf4569f3d67b9d8eff4ba405fa | refs/heads/master | 2020-07-11T13:06:35.518331 | 2019-08-26T20:54:07 | 2019-08-26T20:54:07 | 204,546,868 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.14.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import un... | [
"nfillot@weborama.com"
] | nfillot@weborama.com |
922489df49a0e7b815588906680161ed4b166cc8 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/perel/bs.py | f2dc670dffa12519d8b54937cfa2bb0693987963 | [] | 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 | 1,003 | py | import time
##import sys
##sys.setrecursionlimit(10002)
from collections import deque
def flip(s):
return tuple(reversed([not i for i in s]))
def solve(s):
s=tuple([i=='+' for i in s])
return str(solve11(s))
def solve11(s):
for i in range(len(s)-1,-1,-1):
if not s[i]:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
f67d673e20f5b4ea25b5e71532405d816a977b47 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2580/8318/319102.py | 3935e927bbc2f82b8da2de889d54f179ef80f578 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | m = int(input())
n = int(input())
ops = int(input())
list = [[]]
x = m
y = n
for i in range(ops):
a,b = input().split(",")
a1=int(a)
b1=int(b)
if x>a1 :
x=a1
if y>b1:
y=b1
print(x*y) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f8ef5490192913bf8811b092910983b29985832f | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc094/A/4025845.py | 9522ebc713f410e45b2cfec4a62d282a3b36443e | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import array
from bisect import *
from collections import *
import fractions
import heapq
from itertools import *
import math
import random
import re
import string
import sys
nums = list(map(int, input().split()))
nums.sort()
ans = 0
while nums[0] ... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
533149ed9a8326403f4b55c07064105b91edd0f3 | 11b503cd75f546465eb7d7e436f88587a0fa8596 | /calculating_area.py | 618867a889ea6bfff8a28d94fcf0c46859bf78f1 | [] | no_license | ibnahmadCoded/how_to_think_like_a_computer_scientist_Chapter_11 | d36074d71f5df92dfab864e827ba0968ee10d07e | e3fa08a5b64b62700a9590e2fff3c5c2d762a6f8 | refs/heads/master | 2022-04-17T01:30:57.788470 | 2020-04-15T20:08:11 | 2020-04-15T20:08:11 | 256,024,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 836 | py | from study import *
class Rectangle:
""" A class to manufacture rectangle objects """
def __init__(self, posn, w, h):
""" Initialize rectangle at posn, with width w, height h """
self.corner = posn
self.width = w
self.height = h
def __str__(self):
return "({0}, {1}... | [
"alegeaa@yahoo.com"
] | alegeaa@yahoo.com |
5c330645e90f346492de9fffdb54c9a30ee92529 | e73f0bd1e15de5b8cb70f1d603ceedc18c42b39b | /Project Euler/018 - triangle path sum.py | e1bc49732e1df9a18b08e09522015fe6b956ba5e | [] | no_license | thran/the_code | cbfa3b8be86c3b31f76f6fbd1deb2013d3326a4a | ba73317ddc42e10791a829cc6e1a3460cc601c44 | refs/heads/master | 2023-01-05T14:39:16.708461 | 2022-12-25T08:37:39 | 2022-12-25T08:37:39 | 160,978,160 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | triangle = """75
95 64
17 47 82
18 35 87 10
20 04 82 47 65
19 01 23 75 03 34
88 02 77 73 07 63 67
99 65 04 28 06 16 70 92
41 41 26 56 83 40 80 70 33
41 48 72 33 47 32 37 16 94 29
53 71 44 65 25 43 91 52 97 51 14
70 11 33 28 77 73 17 78 39 68 17 57
91 71 52 38 17 14 91 43 58 50 27 29 48
63 66 04 68 89 53 67 30 73 16 69 ... | [
"thran@centrum.cz"
] | thran@centrum.cz |
dad79b226929c9b8fefe77d75b0102dbdc30556c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_197/ch37_2020_03_23_20_05_44_218037.py | 90428a35c7cf9ff017b68e78d1f501efd0391b52 | [] | 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 | 134 | py | senha="desisto"
Palavra=input("Qual é a senha?")
while Palavra!=senha:
print (Palavra)
else:
print ("Você acertou a senha!") | [
"you@example.com"
] | you@example.com |
178b791256772b51daf76b2092c025e4e218ef8b | 09aff11fe5ccac7548d49db3a92803675117eaf3 | /BackEnd/Semana3/Dia4/02-condicionales.py | 92c0a9f066e137b627daaad228c770f8130984cb | [] | no_license | jorgegarba/CodiGo8 | 4defe235a790ebc248f9278f18ca050fde6c195f | f22b2b405ad999e5b960ce5f52936cd4e472af35 | refs/heads/master | 2023-01-09T02:14:27.134870 | 2020-03-18T03:15:52 | 2020-03-18T03:15:52 | 211,871,983 | 4 | 1 | null | 2023-01-07T22:11:22 | 2019-09-30T13:54:52 | JavaScript | UTF-8 | Python | false | false | 1,638 | py | # condiciona if else elif
a = 3
b = 4
# print(a > b)
# if (a > b):
# print("a es mayor que b")
# else:
# print("b es mayor que a")
# elif -> verifica esta otra condicion a ver si
# es correcta, tiene que ir antes de el else
num = 8
# if(num>0):
# print("Es un numero positivo")
# elif (num==0):
# print("... | [
"ederiveroman@gmail.com"
] | ederiveroman@gmail.com |
e6e492a0ce1247655b69757dedda44645ef50458 | 0fba29dd8bb4e8e6a5d12b54d8f09d5b5c835576 | /23_personal/test.py | 143a4fd013f75e1d07534c24c9c78ee0f8d1ff23 | [] | no_license | buxuele/100-days-of-code | 4d37ab955d0cd463a1dd40ca298dac710c84237d | 58c326aca1425911a6979b1a9e305e0a3ed1b0d4 | refs/heads/master | 2020-04-25T23:10:22.816754 | 2019-05-11T01:00:21 | 2019-05-11T01:00:21 | 173,136,028 | 0 | 0 | null | 2019-04-11T20:42:42 | 2019-02-28T15:22:08 | HTML | UTF-8 | Python | false | false | 367 | py | #!/usr/bin/python3
# Time: 2019/04/24 10:19 PM
# \u7f8a\u7531\u5927\u4e95\592b\u5927\u4eba\u738b\u4e2d\u5de5
import codecs
gg = '\346\203\263\347\234\213\346\255\243\351\235\242\357\274\237\351\202\243\345\260\261\350\246\201\347\234\213\344\273\224\347\273\206\344\272\206\357\274\201'.encode("utf-8")
print(type(gg... | [
"baogebuxuele@163.com"
] | baogebuxuele@163.com |
d80766c27a44af916ff6ef4330c81821db07f418 | b9fdfa1ad9315f54f198ab7d918f59e2c45b95ed | /additional_pipelines_used_in_LIFE/preprocessing_ica_aroma/build/keepalive/keepalive/__init__.py | 65dd57b5cad491357173661182777a54bb457052 | [] | no_license | fBeyer89/LIFE_rs_ICA_preprocessing | 4829e8282b06918aa4e610b26e9e0f0c5545b8b5 | 4868bf2d734d0dab89fc21f876aca400e1de1a5f | refs/heads/master | 2021-01-10T12:09:04.050976 | 2019-04-18T13:05:47 | 2019-04-18T13:05:47 | 44,090,982 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # -*- coding: utf-8 -*-
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distribu... | [
"fbeyer@cbs.mpg.de"
] | fbeyer@cbs.mpg.de |
0e5e071104c431a893ca44a126aeda1409c77336 | a045055cb41f7d53e1b103c3655a17dc4cd18d40 | /python-master/kubernetes/test/test_v1_role_list.py | ce35aa97b1362b07e046028323570ffbd4a54b7c | [] | no_license | 18271693176/copy | 22f863b180e65c049e902de0327f1af491736e5a | ff2511441a2df03817627ba8abc6b0e213878023 | refs/heads/master | 2020-04-01T20:20:28.048995 | 2018-11-05T02:21:53 | 2018-11-05T02:21:53 | 153,599,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | 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 __future__ import absolute_import
import os
import sys
i... | [
"906317366@qq.com"
] | 906317366@qq.com |
4bf1b976b01d1825146b5147af5e3ab534fd4d6c | 2dd26e031162e75f37ecb1f7dd7f675eeb634c63 | /nemo/collections/nlp/data/token_classification/token_classification_utils.py | 94acd69d3b11374984fa4e13ef269755039d8c70 | [
"Apache-2.0"
] | permissive | NVIDIA/NeMo | 1b001fa2ae5d14defbfd02f3fe750c5a09e89dd1 | c20a16ea8aa2a9d8e31a98eb22178ddb9d5935e7 | refs/heads/main | 2023-08-21T15:28:04.447838 | 2023-08-21T00:49:36 | 2023-08-21T00:49:36 | 200,722,670 | 7,957 | 1,986 | Apache-2.0 | 2023-09-14T18:49:54 | 2019-08-05T20:16:42 | Python | UTF-8 | Python | false | false | 7,468 | py | # Copyright (c) 2020, NVIDIA CORPORATION. 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"
] | NVIDIA.noreply@github.com |
ce764895f86745e70087150b9abf4c75d5737670 | 5fe72bb13baf3649058ebe11aa86ad4fc56c69ed | /hard-gists/6194556/snippet.py | b70124de919065b567273fb101936d8671b21e0e | [
"Apache-2.0"
] | permissive | dockerizeme/dockerizeme | 8825fed45ff0ce8fb1dbe34959237e8048900a29 | 408f3fa3d36542d8fc1236ba1cac804de6f14b0c | refs/heads/master | 2022-12-10T09:30:51.029846 | 2020-09-02T13:34:49 | 2020-09-02T13:34:49 | 144,501,661 | 24 | 20 | Apache-2.0 | 2022-11-21T12:34:29 | 2018-08-12T21:21:04 | Python | UTF-8 | Python | false | false | 1,312 | py | '''
SimpleHTTPServerSSL.py - simple HTTP server supporting SSL/TLS. I.e. HTTPS. For python 3.3
- replace CERT and KEY with the location of your .pem server file.
- the default port is 443.
usage: python SimpleHTTPServerSSL.py
based on http://code.activestate.com/recipes/442473-simple-http-server-supporting-ssl-secur... | [
"42325807+dockerizeme@users.noreply.github.com"
] | 42325807+dockerizeme@users.noreply.github.com |
0e2625b5eeb8fad171f69a84170920695873a752 | 3c8701e04900389adb40a46daedb5205d479016c | /oldboy-python18/day18-model/day18/cms/cms/app01/models.py | 10494d9551d007fb7aaff17983302a15f712c02e | [] | no_license | huboa/xuexi | 681300653b834eaf506f49987dcca83df48e8db7 | 91287721f188b5e24fbb4ccd63b60a80ed7b9426 | refs/heads/master | 2020-07-29T16:39:12.770272 | 2018-09-02T05:39:45 | 2018-09-02T05:39:45 | 73,660,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | from django.db import models
# Create your models here.
class Book(models.Model):
id=models.AutoField(primary_key=True)
title=models.CharField(max_length=32)
pubDate=models.DateField()
price=models.DecimalField(max_digits=6,decimal_places=2)
publish=models.CharField(max_length=32)
| [
"wxcr11@gmail.com"
] | wxcr11@gmail.com |
ed6332db56631c9ab5f726d3b84ed62bdbee475a | b12adda0b77dba851f1a09b92c4553da6333ffaf | /tools/ttn/ttn_constants.py | a98a422d1e567b66e82d1b1ed6ab5664371204a1 | [] | no_license | Vignesh2208/Titan | c9a86e236e150b1de80d5054b48b9bc482d2785b | 3366200b47c6f81fc8cafb449307325f7cf45da0 | refs/heads/master | 2021-06-22T01:58:10.836590 | 2021-04-14T22:31:33 | 2021-04-14T22:31:33 | 213,460,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | """Some constants used by ttn application."""
import os
TTN_FOLDER_NAME = '.ttn'
TTN_CONFIG_DIR = f'{os.path.expanduser("~")}/{TTN_FOLDER_NAME}'
PROJECT_NAME_KEY = 'PROJECT_NAME'
PROJECT_SRC_DIR_KEY = 'PROJECT_SRC_DIR'
PROJECT_CLANG_INIT_PARAMS_KEY = 'PROJECT_CLANG_INIT_PARAMS'
PROJECT_CLANG_LOCK_KEY = 'PROJECT_CLANG... | [
"vig2208@gmail.com"
] | vig2208@gmail.com |
d06972574b5df6446365a0de414d5d4a6a78d0d2 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/securitydevops/azure-mgmt-securitydevops/generated_samples/azure_dev_ops_org_get.py | 40d2f4d019e8bc017523654781724c90fb9e4c69 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,649 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
dbd811dd5df7010727684b4f4b84e20d4e19aec4 | 18430833920b3193d2f26ed526ca8f6d7e3df4c8 | /src/audit_trail/factories.py | 1c5f929866090df1f20621c64c05d9739653dd4a | [
"MIT"
] | permissive | providenz/phase | ed8b48ea51d4b359f8012e603b328adf13d5e535 | b0c46a5468eda6d4eae7b2b959c6210c8d1bbc60 | refs/heads/master | 2021-01-17T06:56:07.842719 | 2016-06-28T11:17:53 | 2016-06-28T11:17:53 | 47,676,508 | 0 | 0 | null | 2015-12-09T07:45:19 | 2015-12-09T07:45:18 | null | UTF-8 | Python | false | false | 379 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import factory
from factory import fuzzy
from accounts.factories import UserFactory
from .models import Activity
class ActivityFactory(factory.DjangoModelFactory):
class Meta:
model = Activity
actor = factory.SubFactory(UserFactory)
... | [
"lp@providenz.fr"
] | lp@providenz.fr |
2d7a63594e9b6b12e395a0d8dcef370df874978a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03739/s362994379.py | 1519886d81b2b0628ca8e5ba81794a786daf66d9 | [] | 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 | 265 | py | n = int(input())
s = list(map(int, input().split()))
def cost(t):
res = 0
sum = 0
for y in s:
sum += y
if sum * t <= 0:
res += abs(sum - t)
sum = t
t *= -1
return res
print(min(cost(1), cost(-1)))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
aca2d0c08f81edea01fb482800cfba161df2fc57 | 1a42c5a6e806deabb721c77619c9bc45bd01c78f | /lifegame.py | e271e25afc804ab32f5046372138895359d72099 | [] | no_license | nsakki55/smartinfo | 74f7ee2337518baef76812468b3f50785bcf4541 | 2777262a2c933d39bc35d1f9b674c8e374da63b7 | refs/heads/master | 2020-06-02T12:07:57.434869 | 2019-06-10T10:50:30 | 2019-06-10T10:50:30 | 191,149,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,751 | py | #!/usr/bin/env python
#coding:utf-8
import pygame
from pygame.locals import *
import random
import sys
import datetime
SCR_RECT = Rect(0, 0, 1440, 1080) # スクリーンサイズ
CS = 10 # セルのサイズ
NUM_ROW = int(SCR_RECT.height / CS) # フィールドの行数
NUM_COL = int(SCR_RECT.width / CS) # フィールドの列数
DEAD, ALIVE = 0, 1 # セルの生死定数
RAND_LIFE... | [
"n.sakki55@gmail.com"
] | n.sakki55@gmail.com |
804f8e56bedc2fc98d221bf2b9d493cdf526df9b | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /tweens/__init__.py | 084009a757dab8cd2babe574c3a960dc078fa601 | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 1,512 | py | import unrealsdk # type: ignore
from Mods.ModMenu import Game, ModTypes, SDKMod
from .easing import (
back_in,
back_in_out,
back_out,
bounce_in,
bounce_in_out,
bounce_out,
circ_in,
circ_in_out,
circ_out,
cubic_in,
cubic_in_out,
cubic_out,
ease,
elastic_in,
... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
c18ae8bfe41026f2887bd16ea6477d010ae39f20 | e50ba4cc303d4165bef9e2917103c084cfbe0e07 | /virtual/bin/easy_install | 6b1f07b5d2a57699078d7cec02fd7d693960f2b8 | [
"MIT"
] | permissive | Antony-me/Ratemyapp | 09049fce54d3a3ed2b256970e7840d20942e8c84 | e547fea82439a3e4f83aa78bf16f93b1ea9ab00b | refs/heads/main | 2023-01-28T16:52:58.635646 | 2020-12-01T16:49:07 | 2020-12-01T16:49:07 | 316,425,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | #!/home/moringa/Documents/Moringa-Projects/CORE-PYTHON/Django/Ratemyapp/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"antonymunyasia993@gmail.com"
] | antonymunyasia993@gmail.com | |
eff42d766d3d17fe406f91087dcce5791135b309 | 2bf43e862b432d44ba545beea4e67e3e086c1a1c | /nemo_text_processing/inverse_text_normalization/de/verbalizers/decimal.py | ff3839533d7252c14f76c14c774dd3d78e9027a7 | [
"Apache-2.0"
] | permissive | ericharper/NeMo | 719e933f6ffce1b27358bc21efe87cdf144db875 | f1825bc4b724b78c2d6ca392b616e8dc9a8cde04 | refs/heads/master | 2022-10-06T01:45:21.887856 | 2022-09-14T19:09:42 | 2022-09-14T19:09:42 | 259,380,135 | 1 | 0 | Apache-2.0 | 2022-09-20T18:01:57 | 2020-04-27T15:54:20 | Python | UTF-8 | Python | false | false | 1,977 | py | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. 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 requ... | [
"noreply@github.com"
] | ericharper.noreply@github.com |
11ba466d6dd826bfe33dce530a4def238f1d18da | e3ddee78a8f5fdc0260d6a5d8f3cbf459dd1aaa8 | /server/apps/places/serializers/ingredients.py | bb43262b935316b8fdb24505cd1d464f33fea434 | [] | no_license | AlAstroMoody/summer_practice | 91b6110f95436f2b91334a4d1626bf2f0a505a50 | 79629bcdcf230a395a53fad0b52e75ebd7385538 | refs/heads/master | 2023-01-15T19:32:22.814893 | 2020-11-23T10:17:46 | 2020-11-23T10:17:46 | 289,492,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from rest_framework.serializers import ModelSerializer
from apps.places.models import Ingredient
class IngredientSerializer(ModelSerializer):
class Meta:
model = Ingredient
fields = ('id', 'name', 'calories')
| [
"aastrotenko@mail.ru"
] | aastrotenko@mail.ru |
176e6e7d4985abd3fc24bc06efd3afa99b86fb8c | 318a2283e9fd8386e1e9b8b33393ec21892ff053 | /tests/formatters/setupapi.py | c64b826daffd96f218ace0517a038c9f956f7480 | [
"Apache-2.0"
] | permissive | ddm1004/plaso | 3a4590f9c7fb5d624938dd1caea703dc92118646 | 88d44561754c5f981d4ab96d53186d1fc5f97f98 | refs/heads/master | 2021-05-19T10:16:24.111136 | 2020-02-27T04:40:48 | 2020-02-27T04:40:48 | 251,647,179 | 0 | 0 | Apache-2.0 | 2020-03-31T15:31:29 | 2020-03-31T15:31:29 | null | UTF-8 | Python | false | false | 918 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Tests for the Windows Setupapi log event formatter."""
from __future__ import unicode_literals
import unittest
from plaso.formatters import setupapi
from tests.formatters import test_lib
class SetupapiLogFormatterTest(test_lib.EventFormatterTestCase):
"""Tests f... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
d0df6dfa88db30e7f5491a7bae3c0a50bff9e42b | dd223d7f6c015c3484e795934bcce62be07e48e4 | /xkyy/apps/starry/migrations/0006_auto_20190524_2005.py | 1f06dadcbb386c125e90a590b9b97e6fa00801c3 | [] | no_license | hfxjd9527/xkyy | 84e696ba8c716dc7c0fb25bf71bb82f21ba314a6 | 61df8774dc63ec1b70cc6daad52da5aa51569076 | refs/heads/master | 2022-12-17T02:35:33.597919 | 2019-06-17T00:11:50 | 2019-06-17T00:11:50 | 190,134,676 | 0 | 0 | null | 2022-12-08T01:46:24 | 2019-06-04T05:22:34 | CSS | UTF-8 | Python | false | false | 985 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2019-05-24 20:05
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('starry', '0005_auto_20190524_1915'),
]
operations = [
migrations.AlterMode... | [
"1725824530@qq.com"
] | 1725824530@qq.com |
c3fb12ce35d80f56662ff090d5961a5ed02cef2e | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/gstoption.py | f9d47d30fe88753af428273e2f8939186162e8b2 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | # encoding: utf-8
# module gstoption
# from /usr/lib64/python2.6/site-packages/gstoption.so
# by generator 1.136
# no doc
# no imports
# functions
def get_group(*args, **kwargs): # real signature unknown
pass
# no classes
| [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
e94835f09834dfba2a9778514efae815cf3f3c5f | a7d2135ca94722932a0a0edbaf1935055f5fe901 | /unsorted/governance-at-scale-account-factory/account-creation-shared/v4/src/handler.py | b297a00b7606e156a89ac6ee0088d6d0ef0068ed | [
"MIT-0"
] | permissive | awslabs/aws-service-catalog-products | b0a1c9d125758a87dd3913a00dfe029dffbb97ac | 69b295f887582b880f9af50318765f7540f34852 | refs/heads/main | 2023-08-18T06:22:11.366203 | 2022-05-12T20:34:14 | 2022-05-12T20:34:14 | 187,069,705 | 166 | 40 | MIT-0 | 2022-03-07T15:26:26 | 2019-05-16T17:07:08 | Python | UTF-8 | Python | false | false | 4,750 | py | # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import json, logging, time
from urllib.request import Request, urlopen
from betterboto import client as betterboto_client
import os
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def handler(e... | [
"noreply@github.com"
] | awslabs.noreply@github.com |
2dfdd58a22011e454872aacc7370f3e470afa40b | 7cec0bc03100c85ae0dc4f636b92ada46de06802 | /cdad/cdadmap/migrations/0032_auto_20150805_1132.py | 7df38e612401a9aaf367bbd84e02dd4c7db2eef7 | [
"MIT"
] | permissive | NiJeLorg/CDADMap | 200040b45510f7965fd1d772f7e9627561311e70 | 1f03dccf57951748155a0094a5aec3253183c412 | refs/heads/master | 2021-01-17T10:22:06.865934 | 2018-11-01T17:12:22 | 2018-11-01T17:12:22 | 27,398,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('cdadmap', '0031_auto_20150805_1124'),
]
operations = [
migrations.AddField(
model_name='surveypanel',
... | [
"jd@nijel.org"
] | jd@nijel.org |
3fa45a0670a11d05a42e95d7cd0148e7b33ffd41 | 53c1eb6604f9e060bd6c9ce84395ab1a38d58f6f | /exercise/sorting.py | 94c49a421eddb34bd370dbeccbe9dbaebaa9a100 | [] | no_license | turo62/exercise | 543c684ef3dfe138a5f0d6976b7ff0d9c19553f0 | 3d8d8d8a12bb3885b3015eff0032cd977c02957e | refs/heads/master | 2020-04-14T18:10:31.224244 | 2019-01-03T18:10:55 | 2019-01-03T18:10:55 | 164,008,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | # Sorting list of numbers entered by the user.
def get_input():
numbers = [int(x) for x in input("Type in series of numbers with whitespaces. Push enter when complete!:").split()]
N = len(numbers)
return N, numbers
def sort_nums(N, numbers):
for i in range(N):
j = 0
while j <= N - 2... | [
"turo62@gmail.com"
] | turo62@gmail.com |
37fe63054bc3e044a4ad349a1a55e8000c0e3c3c | 6a25d7f672c6276543d6d979b61337934557e702 | /test/imports.py | eda2d3118620601da931bf59b44aa1c63c7b5606 | [] | no_license | vsraptor/bi | bfc0bc436fb15d43dc303b948d376980085075b9 | 03b8ec4789592381c370a3c98114e4ba6f3d3fb6 | refs/heads/master | 2020-03-16T17:00:44.720209 | 2018-05-25T01:19:12 | 2018-05-25T01:19:12 | 132,814,076 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | import sys, os
def import_lib() :
basedir = os.path.abspath(os.path.dirname(__file__))
for d in ['../lib/encoders', '../lib/cups', '../lib'] :
libdir = os.path.abspath(os.path.join(basedir, d));
sys.path.insert(0,libdir)
| [
"me@me.com"
] | me@me.com |
bbfd907f660bd78d2ae1a976c71f4132b01dc7b3 | 6d0b28f193bec15d979781740200d237fb13d3c1 | /apps/alertdb/migrations/0003_parameter.py | abd04a5853609f707f596f904a15937100cbf190 | [] | no_license | kelvinn/alerted-us-web | f612198c2cb59e79c2ab8386c4aa7c23861d203a | 8d0111b4ca4990cea94f6c96e88db2b1bb44a313 | refs/heads/master | 2021-09-27T00:45:49.630146 | 2020-11-19T19:46:17 | 2020-11-19T22:13:01 | 23,564,957 | 6 | 2 | null | 2021-09-22T17:38:37 | 2014-09-02T04:25:56 | Python | UTF-8 | Python | false | false | 836 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('alertdb', '0002_area'),
]
operations = [
migrations.CreateModel(
name='Parameter',
fields=[
... | [
"kelvin@kelvinism.com"
] | kelvin@kelvinism.com |
eec4eb6256b94dce846461034d55fa43389f032b | 905e7882e7bb870c7de056687578d91789f26b4d | /pre-benchmarks/mike/performance/bm_fannkuch.py | 64d83e661d5d63a8940ba0444191ee299856bd1e | [] | no_license | glennneiger/retic_performance | 091d1749c07496c57e64a6b0ba4fd58b0e52bc45 | 025732be3a426e9188781d0f182918b2ba946dea | refs/heads/master | 2020-04-20T08:33:18.440975 | 2017-03-20T00:12:51 | 2017-03-20T00:12:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,624 | py | # The Computer Language Benchmarks Game
# http://shootout.alioth.debian.org/
#
# contributed by Sokolov Yura
# modified by Tupteq
import optparse
import time
import util
from compat import xrange
def fannkuch(n):
count = list(range(1, n+1))
max_flips = 0
m = n-1
r = n
check = 0
perm1 = list(... | [
"migeed.z@outlook.com"
] | migeed.z@outlook.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.