blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b0de702648187305cb55de4c208e37e3f49e804d | abd7a71f62eb1f85dd8725e2c5ed5f2ff9f43fbf | /tuples_comparing.py | 7a45e1b83fd00b5cffdd9c9883bc405af5b5b1c2 | [] | no_license | danielrhunt/python | 3f97df39f01ac9ef58d0c8d8aaf47a2c6abaeec8 | 6a5e5057b18dc55e317ca3027440765b409b1a43 | refs/heads/master | 2020-04-21T02:51:04.719043 | 2019-03-12T20:22:46 | 2019-03-12T20:22:46 | 169,267,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,748 | py | '''COMPARING TUPLES'''
'''comparison operators work on tuples, just like other sequences
Python starts by comparing the first element in each sequence
if they are equal, it goes on to the next element, and then on again, and again, until it finds elements that differ
subsequent elements are not considered (even if the... | [
"noreply@github.com"
] | danielrhunt.noreply@github.com |
6ddcba986a72f513f2c34d92c5c53b6cd277e169 | b309e6a809cb722f0ee9c42f6fcfacbd9495ad43 | /KMP.py | 96fb793e047549f5d87c349b2d7d49be285f16c9 | [] | no_license | leesen934/leetcode_practices | 0bee0bef00e7459bd4ecbb5a2f98436c270889ad | c93f15bee2ee2eea2e6f276c4907280d110c0467 | refs/heads/master | 2020-03-28T14:24:31.362300 | 2018-09-13T08:19:47 | 2018-09-13T08:19:47 | 148,484,508 | 0 | 0 | null | 2018-09-12T13:26:23 | 2018-09-12T13:26:22 | null | UTF-8 | Python | false | false | 1,029 | py | def getNext(p):
j = 0
k = -1 # next[j]的值(也就是k)表示,当P[j] != T[i]时,j指针的下一步移动位置。
next_p = [-1] * len(p)
while j < len(p) - 1:
print("p[k]: " + p[k] + ", p[j]: " + p[j])
if k == -1 or p[k] == p[j]:
j += 1
k += 1
if p[j] == p[k]: # 当两个字符相等时要跳过
... | [
"lichunchn0516@gmail.com"
] | lichunchn0516@gmail.com |
fa3510c04357a2e5a1420c7e718ab0f2cde76df7 | f9aecf1d54f9919f48b523ce7e68397a13de4db6 | /cgi-bin/XmlToJson.py | 4757bbb9790b7b26fb990dd842f120c092ae8217 | [] | no_license | zestroly/www | 2ae2dc2aa3de5f47cf03e310e071049ff7790f04 | a7e15dac6e0494dcdf298edda8e1e3e2c81ae3c8 | refs/heads/master | 2021-01-18T03:53:05.678155 | 2017-06-12T01:04:14 | 2017-06-12T01:04:14 | 85,780,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,933 | py | #!/usr/bin/python3.6
from xml.dom.minidom import parse
import xml.dom.minidom
import os
import sys,json
json_str=sys.argv[1]
#print(json_str)
#print(type(json_str))
json_dict=json.loads(json_str)
xmlstr = ""
for key in json_dict:
if(key == 'data'):
break;
xmlstr +="<Param ErrorCode=\"0\">"
xml... | [
"zestroly@126.com"
] | zestroly@126.com |
84bc2ed6db473e44610fce5decafd84089166c40 | 6e3396980eeee1d8d55e4afbc6148711e9e9a342 | /SPOJ/py/INTEST.py | 63e9b4121738ad4488c4a37461310bf941213675 | [] | no_license | arunpatala/scala-learn | c20ca717899d1752ddb20dfbe4f6839217ad3ac8 | b9e52aec74d360a18af99e841c6b598f2b0165b6 | refs/heads/master | 2021-01-22T23:43:26.608433 | 2015-07-31T17:30:54 | 2015-07-31T17:30:54 | 38,426,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | a = str.split(raw_input())
N = int(a[0])
K = int(a[1])
ret = 0;
for i in range(0,N):
if(int(raw_input())%K==0):
ret = ret + 1
print ret
| [
"arunpatala@gmail.com"
] | arunpatala@gmail.com |
21571df9c1f56860a1f9f82333fa6ad56924aaa8 | 51c255de526c7f0b6a0f8b232a184ba69128e7af | /02_QUICKVIEW_hand_made_quick_view_classification/02_1_classification_basic_perceptron.py | 6283dbafd55f24ccb14981fdf16675031075f88f | [] | no_license | jerrychen44/python_machine_learning_sr | eea7e2b873763c15b8582af05dfcd9b20c589123 | bcf5fc0188d4aa956af46496c4498a2bb42bdc3d | refs/heads/master | 2021-01-11T04:16:58.669737 | 2016-11-05T07:46:55 | 2016-11-05T07:46:55 | 71,191,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,400 | py | import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
filepath=os.path.dirname(os.path.realpath(__file__))#root, where the apk_integration_test.py file is.
source_folder='source'
print(filepath)
data_csv_path=filepath+'/'+source_folder+'/iris.csv'
################################
#impleme... | [
"jerrychen040@gmail.com"
] | jerrychen040@gmail.com |
b024aad18dfb436560ff9893287a0262f4a1f76d | d36546287721db2e97e0a4323e143163a14ce0b1 | /2016/19/an_elephant_named_joseph.py | 11737177b14154baaf7b8b0d01877cfaf5f14c2c | [
"Unlicense"
] | permissive | GeoffRiley/AdventOfCode | ca258edee05ad7a4b6e6db2e59b83e8879b48af0 | 567df9cb5645bc6cf4c22063a84a621039069311 | refs/heads/master | 2023-01-12T03:42:11.099541 | 2022-12-25T17:16:20 | 2022-12-25T17:16:20 | 225,139,440 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | from collections import deque
def an_elephant_named_joseph(inp, part1=True):
elves = deque(range(1, inp + 1))
elves2 = deque()
if part1:
while len(elves) > 1:
elves.rotate(-1)
elves.popleft()
else:
elf_c = inp
while len(elves) > len(elves2):
... | [
"geoffr@adaso.com"
] | geoffr@adaso.com |
6f3c7087617984089152d4cc6b9c5fafc46b3f17 | 9d0195aa83cc594a8c61f334b90375961e62d4fe | /JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano200.py | 73b13cf0c88c6b8338ab73ca1e913d4a70757784 | [] | no_license | rsk146/CMS | 4e49592fc64f6438051544c5de18598db36ed985 | 5f8dab8c59ae556598b9747b52b88205fffc4dbe | refs/heads/master | 2022-12-01T03:57:12.126113 | 2020-08-04T03:29:27 | 2020-08-04T03:29:27 | 284,863,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,292 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era... | [
"rsk146@scarletmail.rutgers.edu"
] | rsk146@scarletmail.rutgers.edu |
1d13b98d948da4230d205362cbabd0696af80cf6 | 2c0e1786044c2818be20062a1c8f75990c61ae26 | /argparse/5_conflicting_options.py | 55541fc040e8ba860bdcc2e766342e231fbcbf87 | [] | no_license | jukim-greenventory/python-practice | 51802bf354c36049f41f539778f576d7e9560305 | 4a1bb17c08204edf6954196c29f6e40a88274ef6 | refs/heads/master | 2023-05-31T21:15:37.770161 | 2021-06-10T12:38:57 | 2021-06-10T12:38:57 | 375,691,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | """
Let’s introduce a third one, add_mutually_exclusive_group().
It allows for us to specify options that conflict with each other.
Let’s also change the rest of the program so that the new functionality makes more sense:
we’ll introduce the --quiet option, which will be the opposite of the --verbose one:
"""
import ... | [
"junseok.kim@greenventory.de"
] | junseok.kim@greenventory.de |
f3df497c0894663eb52e0d21dc7c21eb0ae41a48 | 63f61f5a8fab6dd89b557666317b3cdc2a27e5af | /partyDataDownload.py | 40340068dabadd97f8ed0a347cbf6ee125baf78d | [] | no_license | Shan-Herald-Agency-for-News/MMElection2020_Scripting | 55d048235d903fafd69355528dc6df419ec27f39 | ea079f64803a49d08599eac2db6d3924f76746c3 | refs/heads/main | 2023-01-23T02:54:19.052822 | 2020-11-23T10:55:54 | 2020-11-23T10:55:54 | 306,220,889 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,866 | py | import json
import requests
import os
import shutil
partyInfoFile = "shanRegionParties.json"
def flag_imageDownload():
image_url = ""
filename = ""
filepath = ""
with open(partyInfoFile) as jFile:
data = json.load(jFile)
for d in data['data']:
attr = d['attributes']
... | [
"noernova666@gmail.com"
] | noernova666@gmail.com |
08028b087d65af74817e4362ee88f3cb8f285acb | ece03546e09b3880222598a6b3955281341283ae | /Scrapy/DouyuPicture/DouyuPicture/settings.py | df93d3fce09547f77e38fb6afd1e5729ab471bba | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | haochen95/python_tutorial | e24bdf603183793680233499adcc94c10d7e90da | ec02114a40b6c42fc54a5504b79d56f4ed1abef8 | refs/heads/master | 2020-04-18T03:26:19.331623 | 2019-02-26T04:47:14 | 2019-02-26T04:47:14 | 167,198,727 | 0 | 3 | Apache-2.0 | 2019-01-28T07:20:59 | 2019-01-23T14:42:05 | Jupyter Notebook | UTF-8 | Python | false | false | 3,337 | py | # -*- coding: utf-8 -*-
# Scrapy settings for DouyuPicture project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://doc.scrapy.org/en/latest/topics/settings.html
# https://doc.scrapy.org/en/latest/... | [
"haochen273@gmail.com"
] | haochen273@gmail.com |
1f0050636b553377350ef958e53062abe0a0aec4 | 2db7597686f33a0d700f7082e15fa41f830a45f0 | /Python/String/266. 回文排列.py | 2dba117a4cfd0caece5666e521229f85abe7fe4f | [] | no_license | Leahxuliu/Data-Structure-And-Algorithm | 04e0fc80cd3bb742348fd521a62bc2126879a70e | 56047a5058c6a20b356ab20e52eacb425ad45762 | refs/heads/master | 2021-07-12T23:54:17.785533 | 2021-05-17T02:04:41 | 2021-05-17T02:04:41 | 246,514,421 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | '''
奇数个的char最多只能有一个
'''
from collections import defaultdict
class Solution:
def canPermutePalindrome(self, s: str) -> bool:
if s == '':
return True
info = defaultdict(int)
for i in s:
info[i] += 1
count = 0
for v in info.values():
... | [
"leahxuliu@gmail.com"
] | leahxuliu@gmail.com |
9bee68782c0e527d2e9b4643372f1a7d9de2807e | 8844cf13ea4a61aea6fafc285883f173aa3c46f4 | /venv/Scripts/django-admin.py | 03e0e6e44f5412c5a1efc294cefd8e6e4a9bac0e | [] | no_license | ImOkay-Ms/bookmark | bf9c0ba3b0d5192abcee65c3b04601d9eed1b67b | 1e2512cd9be85067bf20c17a5661dbaadf3c01b8 | refs/heads/main | 2023-04-19T22:44:53.748534 | 2021-05-07T08:27:32 | 2021-05-07T08:27:32 | 365,162,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | #!c:\users\wallm\pycharmprojects\04_bookmark\venv\scripts\python.exe
# When the django-admin.py deprecation ends, remove this script.
import warnings
from django.core import management
try:
from django.utils.deprecation import RemovedInDjango40Warning
except ImportError:
raise ImportError(
'django-adm... | [
"56255367+ImOkay-Ms@users.noreply.github.com"
] | 56255367+ImOkay-Ms@users.noreply.github.com |
3614b892b438862adb7730b5927fba103d610fdd | 2fdb9f2b2f3ffc13a04de7a13e3f177d88e85798 | /likes/templatetags/likes_tags.py | e4631e6e8eda65d969f91b1b3a7714083e2f1232 | [] | no_license | dyr201500800475/web_novels | 4d0eca0dbe7b1eba75bfc203361caa324d43eaad | df5daafd4661ede64554f19a074bd0581113f4b9 | refs/heads/master | 2020-05-09T15:59:55.266787 | 2019-04-16T01:58:34 | 2019-04-16T01:58:34 | 181,253,766 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | from django import template
from django.contrib.contenttypes.models import ContentType
from ..models import LikeCount, LikeRecord
register = template.Library()
# 获取点赞数
@register.simple_tag
def get_like_count(obj):
content_type = ContentType.objects.get_for_model(obj)
like_count, created = LikeCount.objects.get_or... | [
"870850834@qq.com"
] | 870850834@qq.com |
21cf2eb653fc11c07a6ebf96569ea5090c294c25 | a42d240a05ddb7e77f9cd517451fde2c82d5156b | /Problem-089.py | f624636ca0bd14d29e71b74d507211f619c0500b | [] | no_license | spirosrap/Project-Euler | 3d7edc05c677a5edfa084308380839e2c018157e | 83c2a2467b15426216483bfa34aeeb7a21728a16 | refs/heads/master | 2016-09-06T08:07:18.383648 | 2013-11-08T13:19:15 | 2013-11-08T13:19:15 | 3,463,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,053 | py | import math
import re
#Define exceptions
class RomanError(Exception): pass
class OutOfRangeError(RomanError): pass
class NotIntegerError(RomanError): pass
class InvalidRomanNumeralError(RomanError): pass
#Define digit mapping
romanNumeralMap = (('M', 1000),
('CM', 900),
('D', 5... | [
"spirosrap@gmail.com"
] | spirosrap@gmail.com |
9f8aaad6b22ea7ecc6945c8288570a353c7d7b8f | caaf1b0754db1e676c37a6f1e58f19183754e654 | /sdk/formrecognizer/azure-ai-formrecognizer/samples/v3.2/async_samples/sample_classify_document_from_url_async.py | 9e4775d42c58ae924f0d55dc072fb01011589d59 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | rdomenzain/azure-sdk-for-python | 45dfb39121a0abda048c22e7309733a56259f525 | 58984255aeb904346b6958c5ba742749a2cc7d1b | refs/heads/master | 2023-07-07T06:53:12.967120 | 2023-07-04T16:27:37 | 2023-07-04T16:27:37 | 258,050,134 | 0 | 0 | MIT | 2020-04-23T00:12:14 | 2020-04-23T00:12:13 | null | UTF-8 | Python | false | false | 5,413 | 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.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | rdomenzain.noreply@github.com |
161c51566a4e0d910527636a2197e923a1518102 | 84239d0809dca1c88a33d42e1cda225ae5512f0f | /models/models_3_2.py | dbb8dd0b87933e755fa9ddfed094e529d0f03ca4 | [] | no_license | siebeniris/Understanding-NN | 92e2e9662d9d56e2946dec151d9d8f13bb3ae776 | a6d1553aea8e137827a7b909461664c87f1db238 | refs/heads/master | 2021-05-10T22:43:29.609052 | 2018-01-20T06:05:20 | 2018-01-20T06:05:20 | 118,264,703 | 1 | 0 | null | 2018-01-20T17:25:00 | 2018-01-20T17:25:00 | null | UTF-8 | Python | false | false | 7,861 | py | from tensorflow.python.ops import nn_ops, gen_nn_ops
import tensorflow as tf
class MNIST_CNN:
def __init__(self, name):
self.name = name
def __call__(self, X, reuse=False):
with tf.variable_scope(self.name) as scope:
if reuse:
scope.reuse_variables()
... | [
"1202kbs@gmail.com"
] | 1202kbs@gmail.com |
b51914fd7b3e6ca960cf28e6f04ff6f317fe58a5 | 66865b7ed119f42c8490bf3f8821602e1201eb0b | /tests/performance/time_mean.py | f6149a4c0aef131f24928bd33fcd8962974edd8b | [
"MIT"
] | permissive | chanedwin/pandas-profiling | 1a8a35f6d985a93f02a25af6e1c650b24e11218a | d9ee4a8a589e075cfced9fc71ca500a20e2a3e73 | refs/heads/develop_spark_profiling | 2023-08-01T19:53:31.340751 | 2021-01-07T15:59:22 | 2021-01-07T15:59:22 | 288,504,610 | 1 | 3 | MIT | 2021-04-26T14:09:43 | 2020-08-18T16:14:57 | Jupyter Notebook | UTF-8 | Python | false | false | 726 | py | import timeit
testcode = """
import numpy as np
import pandas as pd
np.random.seed(12)
vals = np.random.random(1000)
series = pd.Series(vals)
series[series < 0.2] = pd.NA
def f1(series):
arr = series.values
arr_without_nan = arr[~np.isnan(arr)]
return np.mean(arr_without_nan)
def f2(series):
... | [
"sfbbrugman@gmail.com"
] | sfbbrugman@gmail.com |
9bf54e5c86c4b04d3adf8d7b9ae99b50fe0cb1dd | 7b6b64795d3aa8c1e72c7a87cfb9d3efd59da39a | /fosfile/decrypt.py | aa290d576869ea9ea0da50d796cfc70f8017d1ea | [
"MIT"
] | permissive | CleyFaye/FOS_View | 9277ebc6a667740ac96982a99bc8f8cb04b64b19 | 9314a3a6aec24eec2211e3a5ddc532c1f4befd20 | refs/heads/master | 2021-01-10T17:39:19.174845 | 2015-10-20T18:48:31 | 2015-10-20T18:48:31 | 44,626,005 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | from Crypto.Protocol.KDF import PBKDF2
from Crypto.Cipher import AES
from base64 import b64encode, b64decode
# Informations taken from FOSDecrypt.cs
# (original author: superkhung@vnsecurity.net)
class cryptoInfo(object):
initVector = 'tu89geji340t89u2'
passPhrase = 'UGxheWVy'
keySize = 256
def decrypt(sr... | [
"github@cleyfaye.net"
] | github@cleyfaye.net |
e432f4e76d689a36074aaa8adfdda869d6809a85 | 491c298283c3af8ca5188e7191758512b758fdc7 | /examples/ex_pyside.py | 4f9f43350bb17fa137396aac3a0d85c186502fe3 | [
"BSD-3-Clause"
] | permissive | merydwin/idascrtipt | 0bda6f2253dd94698a82cb09a7a1855cbced6221 | 431e04847e55adbb1d263aa2aadc2d489d068f50 | refs/heads/master | 2021-01-22T04:48:40.353877 | 2015-03-02T15:54:20 | 2015-03-02T15:54:20 | 38,051,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | from idaapi import PluginForm
from PySide import QtGui, QtCore
class MyPluginFormClass(PluginForm):
def OnCreate(self, form):
"""
Called when the plugin form is created
"""
# Get parent widget
self.parent = self.FormToPySideWidget(form)
self.PopulateForm(... | [
"elias.bachaalany@fccdda4b-c33c-0410-84de-61e1e3e5f415"
] | elias.bachaalany@fccdda4b-c33c-0410-84de-61e1e3e5f415 |
6947929c742bc0792eea07204e55f54a00bbcc60 | 32df7046ccf6ef2dd9b3148c390149f7557101f6 | /Porthole_Detection/Data_to_Image.py | 92b33630fe62b40cc422c8cfec351cef1c485aa5 | [] | no_license | MLJejuCamp2017/Pothole_Detection_using_CNN | 06f849bf9b78b11acf0ef1ec7a75bd9db559e6f5 | 33a6b58837fc36a2d4e04a14d28376a3a456a790 | refs/heads/master | 2021-01-01T18:36:04.602634 | 2017-07-25T06:23:44 | 2017-07-25T06:23:44 | 98,374,940 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,028 | py | # 파일 하나만 바꿔줌
'''
import numpy as np
from scipy.misc import toimage
x = np.loadtxt("/Users/User/PycharmProjects/network/ML_Camp/Porthole_Detection/all.csv", delimiter=',')
# toimage(x).show()
toimage(x).save('all(grayscale).jpg')
'''
'''
# 디렉토리 내의 파일들을 한번에 일괄 변환 와 개쩐다 난 노가다했는데 ㅅㅂ 진작에 할걸
import os
import numpy as np
f... | [
"chzhqk1994@gmail.com"
] | chzhqk1994@gmail.com |
6ede21e09928afe06f7ca4e59017bb4b664f3da2 | afaef7fda04c6b9a72b9567dcb991037710ebab3 | /dopy/action.py | da7f33b153fd6c3de1aec25846ceb24f1069d922 | [] | no_license | B-Rich/DOPY | 8ecce140dbc8ee1781bbfec1f48835087d7c2b47 | c8a02b3ffefa7164515c4dc35ba0ed3bd2ff0c85 | refs/heads/master | 2016-09-06T09:22:08.123432 | 2014-08-02T00:26:31 | 2014-08-02T00:26:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | class Action(object):
def __init__(self, data):
self.id = data["id"]
self.status = data["status"]
self.type = data["type"]
self.started_at = data["started_at"]
self.completed_at = data["completed_at"]
self.resource_id = data["resource_id"]
self.resource_type... | [
"trvrmay@yahoo.com"
] | trvrmay@yahoo.com |
e5d1427da5952429304f092fff6d772d00a430d1 | 2865d34e84abea09836c9a84e1aa02ba262b8f6d | /Distances/superior.py | f02f8ccc65fe2fee530e93820de28977d1106921 | [] | no_license | magabydelgado/numpy-formulas | f52119ef1387f078e1527c80343ca0de2336bc9f | 093657d4a23dfe82685595254aae50e0c6e46afb | refs/heads/main | 2023-05-08T14:06:48.142258 | 2021-05-25T06:16:41 | 2021-05-25T06:16:41 | 379,125,857 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | import numpy as np
'''
In mathematics, Chebyshev distance (or Tchebychev distance), maximum metric,
or L∞ metric is a metric defined on a vector space where
the distance between two vectors is the greatest of their differences
along any coordinate dimension.[2] It is named after Pafnuty Chebyshev.
... | [
"mangelladen@gmail.com"
] | mangelladen@gmail.com |
8a8eb30d68328005ec249519efc1016a86616c7f | 45bfeba3abab88eeb08b54946a8729d0152a22cc | /src/python/codechef/JAN19B/DPAIRS.py | 0e5f5b1b7ae76609189e196aac939bfee444999f | [
"MIT"
] | permissive | duke79/compro | c32ee2aca9b5adf2d62e18fa8822736821148b0b | a5577e043888df513a78a94a93ed5d08bc6ad2cd | refs/heads/master | 2022-06-13T22:09:52.451149 | 2022-06-12T05:15:28 | 2022-06-12T05:21:44 | 165,487,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | N, M = input().split(" ")
N = int(N)
M = int(M)
A = input().split(" ")
A = [int(elem) for elem in A]
B = input().split(" ")
B = [int(elem) for elem in B]
A_sorted = [i[0] for i in sorted(enumerate(A), key=lambda x: x[1])]
B_sorted = [i[0] for i in sorted(enumerate(B), key=lambda x: x[1])]
A_i = 0
B_i = 0
As_turn = Tr... | [
"pulkitsingh01@gmail.com"
] | pulkitsingh01@gmail.com |
fafedd086eb52ca3a26667cd17b01a87c8ca5b04 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/791.py | f4c857964fa46a84265cc71f3b483d20abda438d | [] | 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 | 538 | py | __author__ = 'rrampage'
t = int(input())
def input_format():
s = input().split()[1]
return [int(i) for i in s]
def ovation(aud):
extras = 0
tot_standing = 0
for i, a in enumerate(aud):
if a == 0:
continue
if tot_standing >= i:
tot_standing += a
el... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
a4d637f4f3bdbf6475cb8ac0d01ca134d5e91a3e | fd2920a8ca609ea9f08c655104ac0a5e88f61fbf | /Struct/action.py | 8a7200ef5c4bc0b7109ec1dc5ae406be6650fae2 | [] | no_license | gtello79/Alg_Ford_Fulkerson | 5a6dde5f921f83bc3d5204a7cd43973f6c3d43a2 | 0ada5311b4e1ce549363f5aeff350cb11b43a507 | refs/heads/main | 2023-01-30T14:31:45.023007 | 2020-12-13T19:54:48 | 2020-12-13T19:54:48 | 320,720,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | import copy as cp
class action:
def __init__(self, newPoint, value):
self.actual = newPoint
self.distance = value
def getState(self, state):
newState = cp.deepcopy(state)
newState.node.append(self.actual)
newState.eval += self.distance
return newState
... | [
"gonzalotello79@gmail.com"
] | gonzalotello79@gmail.com |
a6ef29eb5bb901813eb35f2c5eb018aaaf451497 | ce0a9815b0b265b3d75336f5128d44cc1a7944a0 | /HW3/gosho_tests.py | ba7ce2e89d6e6886ec9ef8755f6d029c38bee8b9 | [] | no_license | borisaltanov/Python-FMI | a81bc9ffab8b181664924996723e056cbeeb967a | 43ca1864556b02f94ec962ce7fa294d984e3aa09 | refs/heads/master | 2021-01-12T12:44:34.096534 | 2016-09-30T13:05:58 | 2016-09-30T13:05:58 | 69,667,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,442 | py | import unittest
import datetime
import math
from time import sleep
import sol2 as s
class TestUser(unittest.TestCase):
def setUp(self):
self.user = s.User("Lord Bendtner")
def test_name(self):
self.assertIsNotNone(getattr(self.user, 'full_name'))
self.assertEqual(self.user.full_name... | [
"borisaltanov@gmail.com"
] | borisaltanov@gmail.com |
a4b07117ea536c0e1ad360a226b7b83d8cdc76f4 | bd8fd0c735daeb93ae10dbdd58a224204790e05d | /stock_picking_invoicing_journal_type/wizard/stock_invoice_onshipping.py | 9ba6e273d3bb7f5ce21671210be26bb76009a758 | [] | no_license | Liyben/vertical-instaladores | 87f3906240d2802c90b24e4402d48f33f468311b | 623a4ee3745c84cff383fa52f65edf7e8806435e | refs/heads/master | 2023-08-30T14:55:39.681612 | 2021-05-28T18:39:43 | 2021-05-28T18:39:43 | 235,099,352 | 0 | 0 | null | 2021-05-28T18:39:45 | 2020-01-20T12:44:53 | Python | UTF-8 | Python | false | false | 5,396 | py | # © 2020 Liyben
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import models, fields, api, _
from odoo.exceptions import UserError
class StockInvoiceOnshipping(models.TransientModel):
_inherit = 'stock.invoice.onshipping'
@api.model
def _default_default_debit_account_id(self):... | [
"soporte@liyben.com"
] | soporte@liyben.com |
69bed29a7ff68e4bc1e38f20eff1032b0709cdc7 | ce9593eb4ec109b86f3f75ac161a372e6d99f067 | /Problems/Beautify both output and code/main.py | cd06ffb22a2bed0cad2a1cdff2cf0c609f3bb1b4 | [] | no_license | wangpengda1210/Rock-Paper-Scissors | 0b2e5ef9b946dd209a85fa7440a7e40acfd83923 | 05c558ddfdf69eb4170185a158ded8a3a063359c | refs/heads/main | 2023-02-20T08:35:09.379752 | 2021-01-23T06:31:48 | 2021-01-23T06:31:48 | 332,143,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | print("http://example.com/{}/desirable/{}/profile".format(input(), input()))
| [
"515484505@qq.com"
] | 515484505@qq.com |
7f88fd1dedc0c43a5b4fb5c5c46af45d748f9898 | 16746b76421c9ebe834547dedb9e558f1f981c0a | /Yahoo_fianance_api_package/yahoo_finance_master/test/test_yahoo.py | 1a05159abee1aa22f32b7fe7f4112d35e50ed106 | [] | no_license | clementcole/Project_Pythia | 39f49330d241538d5175772262b2edd3afd67cc6 | 23fef0a9f0368855f4b90c086e7b3571c81a8333 | refs/heads/master | 2021-03-27T13:47:28.039331 | 2017-03-05T19:10:17 | 2017-03-05T19:10:17 | 68,121,457 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,491 | py | import datetime
import sys
if sys.version_info < (2, 7):
from unittest2 import main as test_main, SkipTest, TestCase
else:
from unittest import main as test_main, SkipTest, TestCase
from yahoo_finance import Currency, Share, edt_to_utc, get_date_range
class TestShare(TestCase):
def setUp(self):
... | [
"cmr0263@unt.edu"
] | cmr0263@unt.edu |
2bdbc779fc636376e7fdf31a9eb638963d99f2c7 | ea023a0478c89e8f566d967321e2d0d645499f86 | /hw05_01_persons.py | 5988098836efc39ca1773a1a338e6cb6d9f13664 | [] | no_license | NVMarchuk/go_QA | 8ee8f75e9f7b37f0343393eba24b4d28e61fa122 | 4e14501ac6bb931a1a6b5703bf8f4b2f9695847b | refs/heads/master | 2020-04-09T04:45:55.134388 | 2018-12-02T12:42:26 | 2018-12-02T12:42:26 | 160,035,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,808 | py | import datetime
class Person:
"""
CLASS Person (два свойства:
1) full_name пусть будет свойством, а не функцией, а свойств name и surname нет
(одно поле, тип строка и состоит из двух слов «имя фамилия»),
2) год рождения).
"""
def __init__(self, full_name=None, birth_year=None):
""... | [
"qamarchuk@gmail.com"
] | qamarchuk@gmail.com |
0a94b3a8f252d9c3cf1e6285b13b2ee7925ddcd3 | 6be41ba7ade71d84fd116d6eb132e6b30c34634a | /day25/day25.py | c28b774689f595a4021cff90a15b8aeabe039d71 | [] | no_license | brianjp93/aoc2019 | efaa8fc46430c3f8d94f8e28999c8c5a4548ab9d | 63baebae9ce3c9c7fc2dfaff61f0f2f4e30f77c6 | refs/heads/master | 2021-07-15T00:19:42.692789 | 2021-06-25T00:42:18 | 2021-06-25T00:42:18 | 225,127,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | """day25.py
"""
from computer import Computer
from itertools import combinations
CHECKPOINT_ITEMS = ['asterisk','antenna','easter egg','space heater','jam','tambourine','festive hat','fixed point']
class Droid(Computer):
def __init__(self, *args, **kwargs):
self.sent = 0
super().__init__(*args, **... | [
"perrettbrian@gmail.com"
] | perrettbrian@gmail.com |
cacd7937cdc425dcc72f8b26713976bf92e3d667 | 6e33f9472a6369a2c5219ef358e98f72ce9fe463 | /load_data.py | 18ffc9b777eed7e3a213a1e92165d17b5174d047 | [] | no_license | harshkn/NeuralNetworkWithLasagne | 599369f43e44a9463b5d53193f24b1983825106e | 4a5c1770cca69029b3b0cc8b704a80396c3181af | refs/heads/master | 2021-01-21T16:15:10.146334 | 2016-08-16T11:10:51 | 2016-08-16T11:10:51 | 65,447,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | import sys
import os
import numpy as np
def load_dataset():
# We first define a download function, supporting both Python 2 and 3.
if sys.version_info[0] == 2:
from urllib import urlretrieve
else:
from urllib.request import urlretrieve
def download(filename, source='http://yann.lecun.... | [
"harshkn@gmail.com"
] | harshkn@gmail.com |
06d3e36130944e9c7a4d9343a486d6b700770ca1 | c0a4879a91d0175af6ecd76a45a20a0e6643df6b | /app/models/ScannerThread.py | 6d1ceb19f54bcdf2e55f3a0711c6e9fde0f2a20f | [] | no_license | Hugo291/Flask-OCR | e4c0e6e65fbd84c920ed08788e044b71e518615f | 2d4872136715febd461a1008d318cb235bc8f090 | refs/heads/master | 2023-05-24T08:28:56.954393 | 2023-02-05T11:06:45 | 2023-02-05T11:06:45 | 129,457,196 | 7 | 3 | null | 2023-05-01T20:56:59 | 2018-04-13T21:53:21 | Python | UTF-8 | Python | false | false | 5,608 | py | import os
import time
from threading import Thread
from app.config import UPLOAD_DIR_PDF, UPLOAD_DIR_JPG
from app.models.OCR import OCR
from app.models.Pdf import convert_to_jpg, page_number
class ScannerThread(Thread):
"""
Construct
"""
def __init__(self):
super().__init__()
print("... | [
"33847075+Hugo291@users.noreply.github.com"
] | 33847075+Hugo291@users.noreply.github.com |
330cf22f710de37c4a2a14f3b365073cf76b16d8 | 336af6b9a3df1917bdf35ccb3ea0ed2a841ebc07 | /src/lib/inputparser.py | 95240236ba96361c17a1b8455987924863d388cf | [] | no_license | redsoxfantom/sprinkler_designer | 3c9791a5e818341b08a6cafc5ad1fbaa3884e6e2 | 89d2fdbee66b5371a5fb28244f9f0964a1bde44d | refs/heads/master | 2020-03-08T03:03:18.312543 | 2018-04-08T23:11:21 | 2018-04-08T23:11:21 | 127,879,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import json
from src.lib.sprinklers.factory import createsprinkler
from src.lib.field import Field
from src.lib.scorers.scorekeeper import ScoreKeeper
from src.lib.strategies.manager import StrategyManager
class InputParser:
def __init__(self, filename):
loadedfile = json.load(open(filename))
sel... | [
"redsoxfantom@gmail.com"
] | redsoxfantom@gmail.com |
92dd37214e9ff42428ae4975726aa638fdb81f0b | da0dc454f7c81856eedec17663d5893ce1d83bd5 | /4.d.9.py | 4719dd322f50b6ec0b12e6bd5941987c46bf0fb8 | [] | no_license | KritikRawal/Lab_Exercise-all | cf199f7f8d518a17464e67b6fdc16427aec11997 | f377eedc558195d4c2de07913e0ff0c0733c842a | refs/heads/master | 2021-01-26T14:05:13.288735 | 2020-02-27T14:27:59 | 2020-02-27T14:27:59 | 243,447,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | """Write a Python program to iterate over dictionaries using for loops."""
d = {'x': 10, 'y': 20, 'z': 30}
for dict_key, dict_value in d.items():
print(dict_key,'->',dict_value) | [
"noreply@github.com"
] | KritikRawal.noreply@github.com |
eababec9f6471e53a80fca79134347940be8d290 | fe91ffa11707887e4cdddde8f386a8c8e724aa58 | /components/schema_org/generate_schema_org_code_unittest.py | efe4f2b9872edd705ddf08553a7364cb1d9eefc1 | [
"BSD-3-Clause"
] | permissive | akshaymarch7/chromium | 78baac2b45526031846ccbaeca96c639d1d60ace | d273c844a313b1e527dec0d59ce70c95fd2bd458 | refs/heads/master | 2023-02-26T23:48:03.686055 | 2020-04-15T01:20:07 | 2020-04-15T01:20:07 | 255,778,651 | 2 | 1 | BSD-3-Clause | 2020-04-15T02:04:56 | 2020-04-15T02:04:55 | null | UTF-8 | Python | false | false | 5,946 | py | # Copyright 2020 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Tests for generate_schema_org_code."""
import sys
import unittest
import generate_schema_org_code
from generate_schema_org_code import schema_org_id
impor... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
12437e1f025519cb508d5e60a98bb09581bceda3 | e7f87113f8118b4e7879ee3b9c6e1fe2ebc8dfe6 | /syntax_service/web_service.py | ac8c9dfb153d47754e7d6405aae6dcfdc1144094 | [] | no_license | tarasen/question_generator | 779d5d9a19d4c189a1184d6f70b4365fbcd04691 | e46b01a5a3c022a17dc7f88ef29f9d117916e4ea | refs/heads/master | 2021-06-17T16:40:58.009005 | 2017-06-15T16:49:07 | 2017-06-15T16:49:07 | 94,459,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | import subprocess
from logging import getLogger, ERROR
from time import sleep
import rapidjson
from cytoolz import take
from flask import Flask, request
from werkzeug.serving import WSGIRequestHandler
from syntax_service.syntax_analyzer import SyntaxAnalyzer
log = getLogger('werkzeug')
log.setLevel(ERROR)
app = Fla... | [
"cepxuopamoc@ya.ru"
] | cepxuopamoc@ya.ru |
c3412d496ec2458f35e2d607ca43e01d35c7d686 | 385a3c8cdd62a237bfa69e1a77359f81ce43542d | /variable_scope.py | 860f9dc273fda258dccdf413a977c8cbf1db0950 | [
"Apache-2.0"
] | permissive | tangentspire/Python_Practice | 8528a6314a4dd02fe9c43b9cce43a38e9b38d43d | e7f22303230a2ffa4e3f5ae57854bac9c4c3bc34 | refs/heads/master | 2021-06-18T17:01:08.023455 | 2020-03-27T05:25:22 | 2020-03-27T05:25:22 | 138,232,355 | 0 | 0 | Apache-2.0 | 2021-06-10T20:30:43 | 2018-06-21T23:34:13 | Python | UTF-8 | Python | false | false | 1,327 | py | # a exercise messing around with local, enclosed, and global variable scoping.
# https://www.smallsurething.com/how-variable-scope-works-in-python/
x = "I am a global variable, x."
# looks for x locally in the function, doesn't find it, so it looks globally and finds it at line 1
def global_print():
#global x
print(... | [
"seanvenard@gmail.com"
] | seanvenard@gmail.com |
e5e3cbe5abeb2f0e0244f41aa88a0dc8c886e935 | a77b1fd3128787a5479371d4fae357ffca4d17e4 | /python/class.py | 9af3c8c89d8a36200a9f58cb9ae3ae946b5d7c3d | [] | no_license | kaidee/kaidee | 709fcd1218cc426d00735fea8bd39a5294ad71db | 0ff11afe9222235328937bf68760829ba1fb00d0 | refs/heads/master | 2020-05-20T01:19:30.490372 | 2017-11-01T11:38:06 | 2017-11-01T11:38:06 | 8,902,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | class FirstClass:
"""docstring for FirstClass"""
def __init__(self, arg):
# super(FirstClass, self).__init__()
self.arg = arg
def setdata(self, value):
self.data = value
def display(self):
print self.arg
z = 100
x = FirstClass("ling")
x.display()
y = 'hello'
# print locals()
for k, v in locals().items():... | [
"lkaidee@gmail.com"
] | lkaidee@gmail.com |
c439e8bc4823a5c6fc7da35db3637314de577c9c | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /say_big_person_of_fact/hand_and_case/try_able_company_up_week.py | dfd64790159e034f5c52cd28b6e4a81e19f11920 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py |
#! /usr/bin/env python
def different_place(str_arg):
way(str_arg)
print('thing')
def way(str_arg):
print(str_arg)
if __name__ == '__main__':
different_place('know_right_world_over_year')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
02f6df5ae4820400c31f0a44ab0af1722aff4957 | a63d907ad63ba6705420a6fb2788196d1bd3763c | /src/api/datahub/databus/shippers/mysql/shipper.py | 47bb186ba428a43fa955ca786b37cc8b70ff1a25 | [
"MIT"
] | permissive | Tencent/bk-base | a38461072811667dc2880a13a5232004fe771a4b | 6d483b4df67739b26cc8ecaa56c1d76ab46bd7a2 | refs/heads/master | 2022-07-30T04:24:53.370661 | 2022-04-02T10:30:55 | 2022-04-02T10:30:55 | 381,257,882 | 101 | 51 | NOASSERTION | 2022-04-02T10:30:56 | 2021-06-29T06:10:01 | Python | UTF-8 | Python | false | false | 3,040 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making BK-BASE 蓝鲸基础平台 available.
Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
BK-BASE 蓝鲸基础平台 is licensed under the MIT License.
License for BK-BASE 蓝鲸基础平台:
------------------------------------------... | [
"terrencehan@tencent.com"
] | terrencehan@tencent.com |
d4c8bd1b9a8bce6b448f64fc215674c63f47f37e | ca77e9e45d666771c7b0897e7e3093b3d3c12f65 | /graphs/graphs.py | 918a04980fe52256e43ef0951a6fea0dfcaf64e8 | [] | no_license | 2gDigitalPost/custom | 46175d3a3fc4c3be21dc20203ff0a48fb93b5639 | 6a3a804ef4ef6178044b70ad1e4bc5c56ab42d8d | refs/heads/master | 2020-04-04T07:40:17.962611 | 2016-12-28T18:35:28 | 2016-12-28T18:35:28 | 39,648,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,650 | py | ll__ = ["GraphHoursWdg"]
import tacticenv, os
from datetime import date, timedelta as td
from pyasm.biz import *
from pyasm.web import Table, DivWdg, HtmlElement
from pyasm.common import jsonloads, jsondumps, Environment
from tactic.ui.common import BaseTableElementWdg
from tactic.ui.common import BaseRefreshWdg
from t... | [
"topher.hughes@2gdigital.com"
] | topher.hughes@2gdigital.com |
d8327625f3951b94827154fcd1efc3bb31fd7e6a | a4e59c4f47873daf440374367a4fb0383194d2ce | /Python/987.py | 071ba61e1dee050a891b2d02116afb3a3671fc25 | [] | no_license | maxjing/LeetCode | e37cbe3d276e15775ae028f99cf246150cb5d898 | 48cb625f5e68307390d0ec17b1054b10cc87d498 | refs/heads/master | 2021-05-23T17:50:18.613438 | 2021-04-02T17:14:55 | 2021-04-02T17:14:55 | 253,406,966 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def verticalTraversal(self, root: TreeNode) -> List[List[int]]:
if not root:
return []
... | [
"tvandcc@gmail.com"
] | tvandcc@gmail.com |
10a476e13c38323dbe8b0c4072c8570fa256f26c | 40fc1d38f2d4b643bc99df347c4ff3a763ba65e3 | /examples/menus/basic1/data/states/menu2.py | 6adb8054f7339f609ba0c3ea440473cc73fedab8 | [] | no_license | alecordev/pygaming | 0be4b7a1c9e7922c63ce4cc369cd893bfef7b03c | 35e479b703acf038f47c2151b3759ad852781e4c | refs/heads/master | 2023-05-14T05:03:28.484678 | 2021-06-03T10:11:08 | 2021-06-03T10:11:08 | 372,768,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | import pygame as pg
from .. import tools
import random
class Menu(tools.States):
def __init__(self, screen_rect):
tools.States.__init__(self)
self.screen_rect = screen_rect
self.title, self.title_rect = self.make_text(
"Menu2 State", (75, 75, 75), (self.screen_rect.centerx, 75)... | [
"alecor.dev@gmail.com"
] | alecor.dev@gmail.com |
d6e2ffc6e5a6866b95ee3fa8a2af8eb20885ea4c | b24e584c29f3ad68404f2345828ad3ed8fdd04de | /file_loader.py | 52c79312cf872763fc101186c9613ced17f853ba | [] | no_license | urube/DE321_Assessment2 | b17ca23159f78bf14d567d3bd6820e0807c5dac5 | 61bf4ea9dad3718ac8bdcf3156e3bb2c46ec13e7 | refs/heads/master | 2021-05-16T19:45:49.926933 | 2020-04-02T11:25:30 | 2020-04-02T11:25:30 | 250,444,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | import os
class Controller:
def load_file():
images = []
for filename in oslistdir()
| [
"andaz.rai002@gmail.com"
] | andaz.rai002@gmail.com |
b902452d883e17b367874e8a5573c31469d0319a | bbbcd2ac7088ab1e0111798107e9719382b965b9 | /German Traffic Signs Classification/german_traffic_signs.py | b5e74033a28853dfb1732636cbf3a4ab2c7e8d9c | [] | no_license | negatively/DS-ML-Project | 5dccda0015389ae70e111f1d1b9a805cb83396da | da89b9bad4e167cd4fff632c72b64e0349bf0771 | refs/heads/main | 2023-09-03T06:13:25.211544 | 2021-11-02T15:48:25 | 2021-11-02T15:48:25 | 409,063,054 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,243 | py | # -*- coding: utf-8 -*-
"""German Traffic Signs.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/11oG_rJKdiuWQkcPL9tDivDONJYnFymeV
## Load Library and Dataset
"""
# Commented out IPython magic to ensure Python compatibility.
import pandas as pd
i... | [
"mileniandi39@gmail.com"
] | mileniandi39@gmail.com |
f7f68b716a23f4dd64e3bf0e0319026f1f8abd0e | 899a8953c1d00034c1674ac16fa27de28d49ef35 | /iTest/report/lint.py | 22c64830a763d0dc2cd2821af460871e2dcbd3af | [] | no_license | monadyn/itest_cts | b6d7a5dafd2a3e217d9c89dfc82893e1ba98347a | f74b9e5b5db351595b6a49265c729fe997345dc6 | refs/heads/master | 2021-01-01T17:32:36.415617 | 2013-10-28T08:00:18 | 2013-10-28T08:00:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,857 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2007 Jeffrey Kyllo <jkyllo-eatlint@echospiral.com>
#
# Based on code from the Bitten project:
# Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de>
# Copyright (C) 2007 Edgewall Software
# All rights reserved.
#
# This software is licensed as described in the file COPYING,... | [
"monad@126.com"
] | monad@126.com |
fdcf94259376e6d3fa06d6a182d45cd8682133e8 | 9de495e040db39468a795a7a4072aa8f44e0eae1 | /pyrasl/util/imageio.py | 8db21f8de884763d371c5fe6cde8d85748d34776 | [] | no_license | ejd2163/Barnhart-Lab-2020 | 7fdcafaa24f2e02d75d54b3e660d3c851eaf342d | d410c015cc057bc8e663019158a5a920eb65a3d2 | refs/heads/master | 2020-12-14T04:51:27.700188 | 2020-09-09T18:01:12 | 2020-09-09T18:01:12 | 234,646,253 | 0 | 0 | null | 2020-02-19T16:00:45 | 2020-01-17T22:16:34 | null | UTF-8 | Python | false | false | 4,915 | py | # __BEGIN_LICENSE__
#
# Copyright (C) 2010-2012 Stanford University.
# All rights reserved.
#
# __END_LICENSE__
import numpy as np
import os
def load_image(filename, dtype = None, normalize = False):
"""
Load the image supplied by the user using OpenCV, and then
immediately convert it to a numpy array. The... | [
"33631472+zhengyuanlu@users.noreply.github.com"
] | 33631472+zhengyuanlu@users.noreply.github.com |
380a73b7ffd584930d557f8d65de872cfdc9fbc7 | a0cc2d898690a33db84124aae128a014f05c1748 | /PE5/PE5_1.py | 78699fa1d857a31568c764111d00a9e4d689e91e | [] | no_license | Hilgon2/prog | 2bf9adb6315de3e6c95bb4cc944ec1e2842ae64f | b594dd523e2efa51250d3be43cf74cf2ca6229e9 | refs/heads/master | 2020-03-29T09:40:33.924573 | 2019-01-29T13:39:48 | 2019-01-29T13:39:48 | 149,769,217 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | def som(getal1, getal2, getal3):
return getal1 + getal2 + getal3
print(som(1, 5, 8)) | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
23b9f1d7d1bf70506e95ca0232b7de7c109195e2 | 567eb1054bd0c166dac12e46db09d0e39a70500b | /todos/migrations/0001_initial.py | 547f19cf01983a9e3e9cda3f6e387a0405f719c0 | [] | no_license | xudifsd/hook2do | 2b8896c59579a7656676550f2ce7a56fe22dea61 | f6c2bea9207a661da22e3c42d0a18decd1ba0135 | refs/heads/master | 2021-01-18T20:26:30.976320 | 2014-11-15T05:48:22 | 2014-11-15T05:48:22 | 26,671,337 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.Create... | [
"xudifsd@gmail.com"
] | xudifsd@gmail.com |
fd761c88737e3622a0466b6b6356c2175bc9c74e | 18eba2edf1fe3dcb31d646269f1a41747500db9f | /karaoke.py | e0e4d40e2b47bc5409bb65286939778e57efb7f0 | [
"Apache-2.0"
] | permissive | ziyua/ptavi-p3 | 32bc8428b2d9e26d4106c3b2580fe717fb770c69 | d54e888bf74c773a9ec5668ec3616cc58e3c093d | refs/heads/master | 2020-04-07T09:21:02.511566 | 2014-10-13T17:18:07 | 2014-10-13T17:18:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
from xml.sax import make_parser
import smallsmilhandler as ssh
import sys
import os
class KaraokeLocal():
def __init__(self, filename):
parser = make_parser()
SSMILH = ssh.SmallSMILHandler()
parser.setContentHandler(SSMILH)
... | [
"z.y.ma@qq.com"
] | z.y.ma@qq.com |
2142b629fe750797192ebc632de853f0a3fff0db | d743b92e19cf85e4593d621a0b388ce6d7de3446 | /PA3/TestCases/S3/output/q5-array-test3.tac | 4437c083f84f8ffb6e21f8edbb242020076db638 | [] | no_license | weiyx15/Decaf_2018 | 73db29f0da21efa8ecce8b9122a8e23fd76c3989 | 832af027483530bddf13a7b6a01a25e4ed82d720 | refs/heads/master | 2020-04-16T13:13:17.238653 | 2019-01-14T08:18:03 | 2019-01-14T08:18:03 | 165,616,599 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,905 | tac | VTABLE(_Father) {
<empty>
Father
_Father.foo;
}
VTABLE(_Child) {
_Father
Child
_Father.foo;
}
VTABLE(_Main) {
<empty>
Main
}
FUNCTION(_Father_New) {
memo ''
_Father_New:
_T1 = 8
parm _T1
_T2 = call _Alloc
_T3 = 0
*(_T2 + 4) = _T3
_T4 = VTBL <_Father>
*(_T2... | [
"weiyx_1@126.com"
] | weiyx_1@126.com |
9b9be96e30df9c686070c80c225e104e3d02d81f | b13d6dfc382b65b07587d0cc3d5fb2478081ab6a | /main/forms.py | 4ab89e187e10f6ecc082e2571e616bfe858a3988 | [] | no_license | ashabdan/firstdjangoproject | 2198ae10fda461a286c193f3d2cf363ee550793b | e00806f95c56ebf528f988291c4ea3eb098364c9 | refs/heads/master | 2023-05-22T09:08:37.741597 | 2021-06-11T12:16:18 | 2021-06-11T12:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | from ckeditor.widgets import CKEditorWidget
from django import forms
from .models import Post
class CreatePostForm(forms.ModelForm):
text = forms.CharField(widget=CKEditorWidget())
class Meta:
model = Post
fields = ['title', 'text', 'image', 'category', 'tags']
def __init__(self, *args, ... | [
"akimbaeva.a23@gmail.com"
] | akimbaeva.a23@gmail.com |
e90d3f3264f8703b34328d969f8d6039d11892bf | ed8b8b363abba3e32bc07c3586ba9004c57470c3 | /business_object/pokemon/supporter_pokemon.py | 666a38ff5a94ac4f03ae21d6b62345c49f984290 | [] | no_license | adrienensai/tp2_2021 | 1a1f0ce578c13ee43e81c823fd05ec2977652016 | d61ea39c19d24e494fbbbe9972de423e942f1391 | refs/heads/master | 2023-08-14T14:14:25.596972 | 2021-09-23T15:29:18 | 2021-09-23T15:29:18 | 409,634,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | from business_object.attack.special_attack import SpecialFormulaAttack
from business_object.pokemon.abstract_pokemon import AbstractPokemon
class SupporterPokemon(AbstractPokemon):
def __init__(self
, stat_max=None
, stat_current=None
, level=None
... | [
"amontbroussous@DOMENSAI.ECOLE"
] | amontbroussous@DOMENSAI.ECOLE |
6b69a290b1249d0942acb209ad39c8384eba9c62 | 1a2ee534d5f7f9c03ab6747e1a33db32bd19144a | /2019/Day6/day6.py | b90cb2237887ee6c575c1b713d6f2a99a1d36cca | [] | no_license | samsohn28/advent_of_code | 09b28ecef3c8845d3402e25bdccc6ddcb2fd3a39 | b7a21f77ce5997beb4a69ba9e60fe9d465166f90 | refs/heads/main | 2023-01-11T11:58:47.949240 | 2022-12-26T06:32:08 | 2022-12-26T06:32:08 | 180,074,012 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | # Day 6: Universal Orbit Map
def get_hash_set(_file):
orbits = {}
objects = set()
for line in _file:
primary, satellite = line.rstrip().split(")")
orbits[satellite] = primary
objects.add(satellite)
objects.add(primary)
return orbits, objects
def get_orbits(orbits,... | [
"sam.sohn28@gmail.com"
] | sam.sohn28@gmail.com |
96096b7eead71a44e4658a819f4b303bb7152054 | a88b029981e1ff89afc5e951d7346c91d3e0ecf5 | /test.py | 354e7da8a47d99484fe056d23271d59503820e81 | [] | no_license | jncraton/calculator | a75ae340673c67bd41c07cd3ecdb0ac6adae1955 | 91e8732df0b0fb82f47e82de62871146dd7415f5 | refs/heads/master | 2020-08-14T00:23:02.494264 | 2019-11-04T15:35:06 | 2019-11-04T15:35:06 | 215,063,057 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 648 | py | from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import os
options = Options()
options.headless = True
with webdriver.Firefox(options=options) as browser:
browser.get(f'file://{os.getcwd()}/dist/index.html')
assert('Calculator' in browser.page_source)
expression = br... | [
"jncraton@gmail.com"
] | jncraton@gmail.com |
95b7fcc4be922b3b722eaca5d68a73ca8391b640 | 5c4beaa51bf73fef1c82d280561f012068a6333c | /extractFeatureTest.py | 9665cfb72c4fa01f54a5a311fad07e6c6d3e98a7 | [] | no_license | archimekai/autoAnswer | 1a74f577db9ada7ca8db76b75c6c98e948113d92 | d141bcf09a274b52e4fd8cf513fe58e9dc71ee9c | refs/heads/master | 2021-01-12T15:41:36.379055 | 2016-12-07T12:32:09 | 2016-12-07T12:32:09 | 71,855,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # coding=utf-8
# author: WEN Kai, wenkai123111 AT 126.com
# Nov/16/2016 11:27 PM
from extractFeature import *
import unittest
class testExtarctFeature(unittest.TestCase):
def test_getCausality(self):
para = "因为哈密瓜生长在北方,所以哈密瓜很甜。因为太阳很大,所以太阳很热。"
getCausality(para)
| [
"wenkai123111@126.com"
] | wenkai123111@126.com |
205c6d3bde45a4ee336ccec55817c107a7296001 | 8c6339a0a3e62b1c79c6af6747d98dc86dd00e1f | /chat/chat_client.py | fc3bcb4247b198fd30b6fa685533bf21343c7de0 | [] | no_license | tchammer/uw_python | 1ed5b64630239194d65260888bbc014972a32264 | 7f0055031a41d5b5a624918a3b19f58267d72c5d | refs/heads/master | 2021-01-21T23:04:05.927956 | 2012-03-12T03:27:50 | 2012-03-12T03:27:50 | 3,099,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | """
echo client, usage:
python echo_client.py <host> <port>
Both host and port are optional, defaults: localhost 50001
host must be present if you want to provide port
"""
import socket
import sys
host = 'localhost'
port = 50003
size = 1024
nargs = len(sys.argv)
if nargs > 1:
host = sys.argv[1]
if nargs > ... | [
"timothyechen@yahoo.com"
] | timothyechen@yahoo.com |
4d5b3298f7487306a98f6d98f50f817daeb8ceec | e10a008d351e93ab3be400d8a40860e8b6a64fa6 | /day8_dataframe練習.py | f379c5089234e54c7977907d25e2d5df3fc95606 | [] | no_license | atolinaga/Machine-Learn-Review | e4c365efca48b744729abbbd8dd9ccbdf467c111 | 7858fb41f01c1945376145e64de6bf7dcb611139 | refs/heads/master | 2021-02-09T18:06:52.830230 | 2020-03-02T08:00:30 | 2020-03-02T08:00:30 | 244,311,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,251 | py | import os #建立文件/目錄路徑
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#data path
dir_data = 'C:\python data\Part01' #必須使用os.path.join方式寫路徑部分,不然會亂碼
f_app = os.path.join(dir_data ,'application_train.csv')
print("Path of read in data:"+f_app)
app_train = pd.read_csv(f_app)
#對資料集進行切分
cut_rule = [-1... | [
"48988394+atolinaga@users.noreply.github.com"
] | 48988394+atolinaga@users.noreply.github.com |
36a7393b21a2682ca5683e48c739bc8a39c968ea | c6ed09339ff21fa70f154f34328e869f0dd8e394 | /python/mysql-replication/binlog_rows_dump.py | 255f603361ff6f90e670bf2990edb1f0b99845fd | [] | no_license | fits/try_samples | f9b15b309a67f7274b505669db4486b17bd1678b | 0986e22d78f35d57fe1dd94673b68a4723cb3177 | refs/heads/master | 2023-08-22T14:35:40.838419 | 2023-08-07T12:25:07 | 2023-08-07T12:25:07 | 642,078 | 30 | 19 | null | 2022-12-28T06:31:24 | 2010-05-02T02:23:55 | Java | UTF-8 | Python | false | false | 3,022 | py |
import configparser
from datetime import date, datetime
import json
import os
import sys
import signal
from pymysqlreplication import BinLogStreamReader
from pymysqlreplication.row_event import (WriteRowsEvent, UpdateRowsEvent, DeleteRowsEvent)
class BinlogConfig:
def __init__(self, conf_file):
self.conf... | [
"wadays_wozx@nifty.com"
] | wadays_wozx@nifty.com |
368a24d77c6e9d9d3abb58bcdf8294f375cdac94 | e7e77d8eecb1786369b8aefd71199e6dd03e3c67 | /capai/settings.py | 3ad4c6454d53c35c7c52e5b57d24014e7c05a436 | [
"MIT"
] | permissive | kalimuthu123/CapAI | e11d654c19556f3c743f6527d693d566289cfc36 | 552b32661644543608a808b876d5d141f3b04ea2 | refs/heads/master | 2022-11-17T11:27:23.640270 | 2020-07-15T07:01:44 | 2020-07-15T07:01:44 | 274,123,394 | 0 | 1 | MIT | 2020-06-22T13:15:12 | 2020-06-22T11:52:21 | Python | UTF-8 | Python | false | false | 13 | py | DEBUG=False
| [
"1995kalimuthu@gmail.com"
] | 1995kalimuthu@gmail.com |
d0e84eec6f027cb78cab561b724e5b11284793e9 | 089dcf959898d6cc80dcd26afd50c9603bafed25 | /PosLikelihood.py | bf202d5e528762c07806557a8d699ad3958f2737 | [] | no_license | seokhohong/missing-word | 5817a952ca3f6378ca28cadbf0eedfefe9b665ec | 7a2e9613a91f5b33a950cf54d41ad89b1e3f4012 | refs/heads/master | 2021-01-16T21:05:25.999504 | 2016-06-09T03:37:05 | 2016-06-09T03:37:05 | 60,747,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,531 | py | __author__ = 'SEOKHO'
import pickle
from collections import Counter
import generateTagWindows
from textblob import TextBlob
from textblob_aptagger import PerceptronTagger
import math
from WindowProb import WindowProb
import statistics
import numpy
import lexicalizedTagWindows
WIN_SIZE = 5
WIN_OFFSET = int((WIN_SIZE -... | [
"seokho_hong@yahoo.com"
] | seokho_hong@yahoo.com |
c03ac23ef226a1bbeab88e5ed757a872072ad21a | a7caaf953a0849f6081e44382da74a600a86b3da | /opencv-2.4.9/samples/python2/hist.py | 09fc8f90d80e51999221a360503e5c40aaea3fa0 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | watinha/collector | 22d22116fc1dbdfeec3bddb05aa42d05efe5b5b4 | fc4758f87aad99084ce4235de3e929d80c56a072 | refs/heads/master | 2021-12-28T11:12:50.548082 | 2021-08-19T20:05:20 | 2021-08-19T20:05:20 | 136,666,875 | 2 | 1 | Apache-2.0 | 2021-04-26T16:55:02 | 2018-06-08T21:17:16 | C++ | UTF-8 | Python | false | false | 3,475 | py | #!/usr/bin/env python
''' This is a sample for histogram plotting for RGB images and grayscale images for better understanding of colour distribution
Benefit : Learn how to draw histogram of images
Get familier with cv2.calcHist, cv2.equalizeHist,cv2.normalize and some drawing functions
Level : Beginner or... | [
"watinha@gmail.com"
] | watinha@gmail.com |
708561cc76ec21acd213e116819f0f0e2cf6b1ee | ff23003693ca137305ed540da8d723f595a97295 | /Portal/helpers/loop_requester.py | 9d8c3e654a9c439dac0f7738a57df0d0b66322f9 | [] | no_license | cash2one/Zinc | 28f422823e83ca2b145f052b6124dd96aab0984d | 6571e304ac141e259b89dd42d7ef853440953a48 | refs/heads/master | 2020-09-07T14:26:48.093529 | 2015-03-03T13:46:17 | 2015-03-03T13:46:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,518 | py | import urllib
import re
from urllib import request
from urllib.error import HTTPError
from collections import deque
# Create your models here.
class LoopSpider:
def __init__(self, start_page):
if not start_page.startswith('http'):
start_page = 'http://' + start_page
host = self.get... | [
"yzj1995@vip.qq.com"
] | yzj1995@vip.qq.com |
0e5a807f6314052a69a65a273249c0fe19633a79 | 130307ff7873fd7e2df61229f99c36ce78313135 | /EATest/test/locustfile.py | 3634f369aee00a30b3cf5b981893ef57a1119422 | [] | no_license | rJunx/EATest | 1744cda411ef18187a0b06c0f3b9a621e9fc191d | 1323f5d34b898732565c992cb4d0eb96ee3f3560 | refs/heads/master | 2020-04-20T18:52:40.848117 | 2019-02-06T23:05:35 | 2019-02-06T23:05:35 | 169,033,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | from locust import HttpLocust, TaskSet, task
class UserBehavior(TaskSet):
def on_start(self):
""" on_start is called when a Locust start before any task is scheduled """
pass
def on_stop(self):
""" on_stop is called when the TaskSet is stopping """
pass
@task(1)
def in... | [
"rongjun.xie@hotmail.com"
] | rongjun.xie@hotmail.com |
d4b88ec999d9cbdb79ca587da70db301e111e9f5 | c0bc3fdf72e97dadd8fcdaef171aab02c6a72498 | /sepsis/train_model.py | 62cb6f27487cd3e5127ebe39e16143431ba646fe | [
"MIT"
] | permissive | pj0616/sepsis_transfer_learning_public | 7fb2576abb3dc31c5996e5626a86e4a5f5deefee | e41b3d1f43f0e59726e04215ea0da9c9919c0f68 | refs/heads/main | 2023-03-02T14:23:52.364331 | 2021-02-06T16:19:13 | 2021-02-06T16:19:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,860 | py | import pandas as pd
import os
import joblib
import configargparse as argparse
import copy
import torch
import numpy as np
from prediction_utils.pytorch_utils.models import FixedWidthModel
from prediction_utils.pytorch_utils.datasets import (
ArrayLoaderGenerator_Alt,
ParquetLoaderGenerator,
)
from prediction_ut... | [
"spfohl@stanford.edu"
] | spfohl@stanford.edu |
234e9a0558e87611eac1c7f734771939133adbb9 | afe289f69e0624b048f6fc7ef5934a51bb7f0106 | /My Practice/week 4/add N number.py | d87ccdc4dccfef1f6883f328f7711951e02eb406 | [] | no_license | ansarifirdosh/Semister-2 | ef5e0c616f198d34abc8bc7184a5a8527bee5e8a | 9d1223d9c324e15eafb104d5d7870474b7138f6e | refs/heads/main | 2023-09-05T09:35:13.942839 | 2021-11-21T17:11:01 | 2021-11-21T17:11:01 | 384,615,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | '''1.Write a program that takes a number N as input and prints the sum of all the
numbers'''
num=int(input("Enter the range of number: "))
sum=0 #initializing the value
for i in range(1,num+1):
sum=sum+i
print("the total sum is: ",sum)
#while loop
num=int(input("Enter the range of number: "))
s... | [
"noreply@github.com"
] | ansarifirdosh.noreply@github.com |
3711a3e5de45097d8c0b02e93a423423d6390137 | cd530c1dff863758a754f4fa6fd19293fac3bbda | /python/app/convert.py | eac29132c8ae85cacfe2e42e02c0297056076245 | [] | no_license | maxime-bc/why-notes | af2e19f54870fe083b9feecdd4f5d71ac9fd8ab9 | f876c5b3e342e053cef7f7f82319d41f7979646c | refs/heads/main | 2023-01-28T09:29:33.849200 | 2020-12-02T20:55:24 | 2020-12-02T20:55:24 | 312,588,481 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | from datetime import datetime
from typing import Dict, Any
from app import Note
class NoteConverter(object):
@staticmethod
def _decode_dict(dict_to_decode: Dict[Any, Any]) -> Dict[Any, Any]:
decoded_dict = dict()
for k, v in dict_to_decode.items():
if not isinstance(k, int):
... | [
"maximeblanchon91490@gmail.com"
] | maximeblanchon91490@gmail.com |
cd966a58e69dc06f2d0a257a5dfbfcd40725bc3e | dec9ede4b28b8a5ac79ab5c89754f6ff5d65d8e1 | /source/main/settings.py | a97452f77ebe21ed189fdfb51743c0d75bacf140 | [] | no_license | Beknasar/python_group_6_homework_57_Ulanbek_uulu_Beknasar | 036f1eb2f84626344581bb7d864e63e40c3d2e4f | 3bf5e4eaa7133955b1bbb0131ebf9f4732965b1f | refs/heads/master | 2022-12-09T02:10:11.232216 | 2020-09-02T15:44:49 | 2020-09-02T15:44:49 | 292,327,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,240 | py | """
Django settings for main project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Buil... | [
"680633@gmail.com"
] | 680633@gmail.com |
17946f8b7f9e4100fd4af6b2fe791fea7d6260a9 | 6e98cd7d30d935887833f4d349cd6d82156a1ec9 | /myEnvironments/djangoenv/bin/python-config | 4beac09b8e2bec19d26c611ba04f0b1db430973f | [] | no_license | JonStults/python | 05da0625010a2e3e3882086aa69413846d7ff62d | 66c246cf4dbfcab5588ba4baaef46c8c7d879fa3 | refs/heads/master | 2020-07-06T00:45:22.240070 | 2016-11-17T00:39:00 | 2016-11-17T00:39:00 | 73,974,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,380 | #!/Users/jon/Desktop/Coding_Dojo/Python/myEnvironments/djangoenv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.appen... | [
"jdstults1@gmail.com"
] | jdstults1@gmail.com | |
e247ee8cdc59cb6e464b9aa9317d277beb69043b | 3c8f2d7596655b38ab1c776738c4901358003d86 | /channel_apk.py | 325fa74acb7bdff0aba8dfe472d730ec98487549 | [] | no_license | zhy0313/yeyuPythonChannels | 78b37e25a1a82995ea78fd9436991aad3b4e5ae0 | 5ac22b3a4cd1ff14a9c87b08476c15244e0aafaa | refs/heads/master | 2021-05-01T08:22:05.597260 | 2017-01-22T07:29:08 | 2017-01-22T07:47:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,116 | py | import re
import os
def getprofileinfo(profile_path):
#签名信息
keystore_path = None
storepassword = None
alias = None
with open(profile_path, 'r') as f:
lines = f.readlines()
for line in lines:
pattern = re.compile('^#')
if re.match(pattern, line) is None:
... | [
"136911168@qq.com"
] | 136911168@qq.com |
99dd2ad93382d05efd81223bfd055ed492ed1616 | 103e45cb0d6b25d0c90e533439cd7e525f25b1a8 | /tensorflow_estimator/python/estimator/canned/v1/linear_testing_utils_v1.py | f73ac2d1a91f5a501e93c6d1a2da04f2a930a4fe | [
"Apache-2.0"
] | permissive | rushabh-v/estimator | ae9ff7c485e4b5beafe2ba6be452eeb099cd63d9 | 6915557cef8bfc86f29f87e4467d601e4553b957 | refs/heads/master | 2021-01-06T18:14:19.948301 | 2020-02-13T02:28:23 | 2020-02-13T02:28:59 | 241,434,870 | 2 | 0 | Apache-2.0 | 2020-02-18T18:20:37 | 2020-02-18T18:20:36 | null | UTF-8 | Python | false | false | 91,108 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
37c1d087494730331ebe6127f9be25970cf36954 | 7e0ea0944effb5b1773f7a46823f4eedf1b325c4 | /Python/html/python2/main.py | 2e377249c116211d4fc38a24ecd00acbc41838f6 | [] | no_license | aldamatrack/testing | 85256e60063a97e61a6cd55e495085796a8e843e | b697fb206007780e6feafad685bc3d81b85c1c24 | refs/heads/main | 2023-04-23T13:45:39.552513 | 2021-05-09T04:42:23 | 2021-05-09T04:42:23 | 363,562,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import requests as r
from bs4 import BeautifulSoup
with open("prove.txt", "a+") as test:
html_request = r.get(" http://www.vanityfair.com/society/2014/06/monica-lewinsky-humiliation-culture").text
soup = BeautifulSoup(html_request, "lxml")
maintext = soup.find_all("p", class_="paywall")
#working
for i... | [
"amaltesc@cisco.com"
] | amaltesc@cisco.com |
97c1b07702ca9f20a4725e088c59060e2482cf62 | f410a724c0b1226fe9e90eb2814a498686b7e609 | /compiler.py | a40cd6e5a688a19227b8ca69992fbd0bdde2185a | [
"Unlicense"
] | permissive | Alissonfelipe1234/turing_machine | bb26d51dcffe1354df1e2dfb7e0bc840ebec05ef | 8f72ce7ac74b96ac20ec33319b2a69ef5214418d | refs/heads/master | 2020-05-15T19:34:16.826096 | 2019-04-22T22:02:17 | 2019-04-22T22:02:17 | 182,459,225 | 0 | 0 | Unlicense | 2019-04-22T02:47:20 | 2019-04-20T22:13:33 | Python | UTF-8 | Python | false | false | 568 | py | from State import State
archiveIn = open("input.in","r")
input = archiveIn.readlines()
archiveIn.close()
cells = []
reader = 0
states = []
end_states = []
for read in input:
cells = cells + list(read)
archive = open("code.turing","r")
code = [i.replace('\n', ',\n').replace(' ', '').split(',') for i in archive.re... | [
"alissonfelipe1234@outlook.com"
] | alissonfelipe1234@outlook.com |
a4e2cd025347721566a4b4b6d33b1669cba139cf | 93a720d9242c73c919ec30f6018d126a391f473f | /ShowUserNonOwnerDriveACLs.py | 4611a76f24cca4f71c23283af816a2f0ad50292c | [] | no_license | scottreleehw/GAM-Scripts3 | c8fa4abddb64e47d8a3d30dd7e19e29634c9e965 | 7eab4f86214bfeb00ee4dd6131828a55f1f42c56 | refs/heads/master | 2023-01-09T06:08:08.093789 | 2020-11-05T19:36:14 | 2020-11-05T19:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,286 | py | #!/usr/bin/env python3
"""
# Purpose: For a Google Drive User, get all drive file ACLs for files except those indicating the user as owner
# Note: This script can use Basic or Advanced GAM:
# https://github.com/jay0lee/GAM
# https://github.com/taers232c/GAMADV-XTD3
# 1: Use print filelist to get selected ACLs
# Basi... | [
"ross.scroggs@gmail.com"
] | ross.scroggs@gmail.com |
fb2461241cba302a7f77584d7019333b92354f49 | bab097b60cc93bba63451cfb4dde1e608582da31 | /python/139.py | c3ca080701645d5950a41381dc48583f5a1612a0 | [] | no_license | isabella0428/Leetcode | c4807301d4676914d7239d1e38e9a85bcb0b557f | f8b74681b5c6e642a8cbac71ca1b5490509ac5e7 | refs/heads/master | 2020-08-25T00:58:33.779280 | 2020-02-07T09:21:13 | 2020-02-07T09:21:13 | 165,828,038 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,915 | py | class Solution1:
def wordBreak(self, s, wordDict):
"""
:type s: str
:type wordDict: List[str]
:rtype: bool
"""
# include every possible combinations
# time exceeded
def generateWord(size, tmp, wordDict):
nonlocal possible
length... | [
"isabella_aus_china@163.com"
] | isabella_aus_china@163.com |
f6734836fe27cc0ec4a259ae42827caba0ca0fd5 | e6b2655a69bfeb90d3a707fa59bcb6ece6bba790 | /capture.py | 8070c4a648c5b6efacd5d35e8f44309abe69abe4 | [] | no_license | IdrisPit/face_motion_time_detector | fd67ec995f1aa973ab4df3408e1481bd8bbf54e7 | e283bbe1a98b2636f1f5a7c587fba5c8e0f87414 | refs/heads/master | 2020-06-01T19:08:01.259743 | 2019-06-09T15:51:30 | 2019-06-09T15:51:30 | 190,894,999 | 0 | 1 | null | 2019-06-10T15:04:10 | 2019-06-08T14:07:08 | Python | UTF-8 | Python | false | false | 360 | py | import cv2
video=cv2.VideoCapture(0)
a=0
while True:
a=a+1
check, frame = video.read()
print(check)
print(frame)
#gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY)
#time.sleep(3)
cv2.imshow("Capturing", frame)
key=cv2.waitKey(2000)
if key == ord('q'):
break
print(a)
v... | [
"idrispitt@gmail.com"
] | idrispitt@gmail.com |
351061615153182fe976eb1400dffb87162bff40 | 31601597bb866bda0de4a81f2baee8ac22e43c86 | /fruitday/settings.py | 28cb9ae210bb1c8d76afc46ab405ad0706efb599 | [] | no_license | dragon7577/Fruitday | f9260af001836d3036557bc75742a8650a05cf93 | 0c4e2c948bd6cc0c29ff06dd33cfaf2f69d69a33 | refs/heads/master | 2020-04-23T22:30:23.784248 | 2019-02-19T15:57:43 | 2019-02-19T15:57:43 | 171,504,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | """
Django settings for fruitday project.
Generated by 'django-admin startproject' using Django 1.11.8.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"sz_huangdong@163.com"
] | sz_huangdong@163.com |
f49c1c1254199ca9968375441f0872d83cc0047d | 87c7e05ba9eebec9ab07090e61ac743b61a88750 | /product/migrations/0002_product_featured.py | c004dc4f2aa83732ec97e92347c072e676dd918b | [] | no_license | ristiriantoadi/belajar-django | faad7ed25505b9a72a0c560e560f0edc66f3f062 | 7141d96a395b370fd72fa0eaa6760b440c375ab7 | refs/heads/master | 2023-03-12T18:05:29.280333 | 2021-02-28T10:40:43 | 2021-02-28T10:40:43 | 343,033,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 3.1.7 on 2021-02-28 08:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('product', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='product',
name='featured',
... | [
"ristiriantoadi@gmail.com"
] | ristiriantoadi@gmail.com |
36a952613ea7e0c2c3c7e896fce875fb1f52b1c8 | 8310787600c77126c2a03b784d4c3e3972237dee | /blogpost/__init__.py | 8e0858339994980fe1d8c6aad3a061ec99f332be | [] | no_license | HarsimranSingh6321/flask-blogpost | ccad1d38106164a683b9fb651b17aa1fffecc6b7 | 6bcf69431611b0450f77bd3600ce95086fad16d6 | refs/heads/master | 2022-11-17T08:09:59.886507 | 2020-07-09T14:29:17 | 2020-07-09T14:29:17 | 278,145,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_mail import Mail , Message
from flask import Flask , Blueprint
from flask_bootstrap import Bootstrap
from flask_login import LoginManager
from blogpost.config import Config
# app=Flask(__name__)
db=SQLAlchemy()
Bootstrap()
login_ma... | [
"noreply@github.com"
] | HarsimranSingh6321.noreply@github.com |
863a76211c553751f9f92f4eb80856715308cc1f | 3e61e59502a924b3321ea812db3cbe31c508a436 | /apply_model.py | 2c564ab9c47ffeb01ce7cb7272c411146197bb64 | [
"MIT"
] | permissive | kayzhou/Guba_emotion | 2c9d9e22c53c328001a250bae1b9f07b13bf0016 | 286f1824500c77d8b90c3dc1bb0e120d732a546d | refs/heads/master | 2020-03-24T00:34:17.707725 | 2019-03-06T20:31:24 | 2019-03-06T20:31:24 | 142,297,205 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,806 | py | from sklearn.externals import joblib
from thulac import thulac
import os
import json
import numpy as np
from tqdm import tqdm
thu = thulac(seg_only=True)
clf = joblib.load('emo-LR-v1.model')
in_dir = 'data/tweet'
out_dir = 'data/tweet_emo_v1-20180711'
def load_word_vec():
"""
加载ACL2018词向量
"""
word_ve... | [
"zkzhou_91@163.com"
] | zkzhou_91@163.com |
a27b0f66484ea5d83df62c7c951493441daa1baf | 97e223521f6d280aef43d3e7ecf032fbfc5a8288 | /Lesson_8/Task_4.py | d0b35a77b42395aeb7ed6430a94a2fb21ee8d7cc | [] | no_license | kiribon4ik/Basics_python | dc2bba98457adaf4ae29fbe8a46e75951ecc4a99 | 64a31864e3d95b9e32fcb57264580deba18d577f | refs/heads/master | 2021-05-17T09:22:10.212427 | 2020-06-26T14:59:07 | 2020-06-26T14:59:07 | 250,724,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | class Warehouse:
def __init__(self):
self.equip_list = []
self.num_places = 50
class OfficeEquipment:
def __init__(self, name, quantity, brand_new=False):
self.name = name
self.quantity = quantity
self.brand_new = brand_new
class Printer(OfficeEquipment):
def __in... | [
"kiribon4ik@gmail.com"
] | kiribon4ik@gmail.com |
345780a54096078a2aaac59516c0760d2d764db5 | 80f3b1be54b106ea7158a7bc2506d4b9fad891f0 | /core/run_ctest/run_test_utils.py | 12dfa13cfc0a641cbae1dc5be33080c617d9932c | [
"MIT"
] | permissive | maleehamasood/openctest | e33121eb2ece613257ae344d4376564df361a008 | bbb88902d3f901fc88dd1a40adcbc046184a4a44 | refs/heads/main | 2023-06-05T12:36:00.561462 | 2021-06-30T12:52:18 | 2021-06-30T12:52:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,798 | py | import re, sys
sys.path.append("..")
from ctest_const import *
from program_input import p_input
maven_args = p_input["maven_args"]
use_surefire = p_input["use_surefire"]
ansi_escape = re.compile(r'(\x9B|\x1B\[)[0-?]*[ -\/]*[@-~]')
class TestResult:
def __init__(self, ran_tests_and_time=set(), failed_tests=set(... | [
"samcheng@ucdavis.edu"
] | samcheng@ucdavis.edu |
a79a1d7d246e5258d095ac26e0818219406db420 | 08e49773756bd299864d1b278fcf1e859efb6430 | /first2/src/using_list.py | 858ae9ff2163caea049c7ca1deb7642728b393bc | [] | no_license | Chrlol/Chrlol | f481ea489a4447edc372d1c8a33912b48c1f605d | db2727eb60b5d3ab6ff12410305729d0a5c22868 | refs/heads/master | 2016-08-06T22:54:38.098242 | 2013-09-14T16:14:31 | 2013-09-14T16:14:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # This is my shopping list #
shoplist = ['apple', 'mango', 'carrot', 'banana']
print('I have', len(shoplist), 'items to purchase.')
print('These items are:', end=' ')
for item in shoplist:
print(item, end=' ')
print('\nI also have to buy rice.')
shoplist.append('rice')
print('My shopping list is now',... | [
"Chrfeilberg@gmail.com"
] | Chrfeilberg@gmail.com |
9960074f78a8ff9d0d36b41eb50fb4ad3968e291 | f0adf5afb93b7f0a67802e876a02e898cd92a172 | /Tencent/GNN/metapath2vec/Generate_metapaths.py | 18ff11473dcf9de3cb3004299cde11057d87f76b | [
"Apache-2.0"
] | permissive | orange-eng/internship | 9a2f746b3d50673038481392100d375f6eec82d3 | c8c566df453d3a4bdf692338f74916ae15792fa1 | refs/heads/main | 2023-07-18T11:46:36.659858 | 2021-08-31T09:39:10 | 2021-08-31T09:39:10 | 358,230,295 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,719 | py | import networkx as nx
import pandas as pd
import numpy as np
import torch
import torch.nn as nn
from dgl.nn.pytorch import GraphConv #内置的GCNlayer
import dgl
import matplotlib.pyplot as plt
import random
import time
import tqdm
import sys
import os
def construct_graph():
file_user = './data/user_features.csv'
... | [
"972353371@qq.com"
] | 972353371@qq.com |
410778eda359ba00d8f98afb5deb6ac84ae624c1 | 86319aad3690906f614ac1af28b8843529e9e0da | /thwackbin/__init__.py | ab95f9cc0ab6c8b46a7c0f643cb504f8c070fdcc | [] | no_license | sohgoh/thwackbin | b5828783a6179e96784bed0bdb894b179e3bea07 | ba9fedc4bcec598f367aa6d4f2567d1840c65c51 | refs/heads/master | 2021-01-21T03:14:08.261732 | 2014-04-16T03:53:51 | 2014-04-16T04:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | """
thwackbin
~~~~~~~~~
Thwackbin is an HTTP request/response test service which exposes the AppThwack REST API.
This service should be used to test/validate clients which wish to consume the actual API endpoint.
"""
__name__ = 'thwackbin'
__version__ = '0.0.1'
__author__ = 'Andrew Hawker <andrew@appth... | [
"andrew.r.hawker@gmail.com"
] | andrew.r.hawker@gmail.com |
26fdec633ba574b89f3c526073c6dc9fb663e998 | 53721753e309adca83234da805ab735bfe32fa36 | /web3/hw/app.py | 84cdf2bf93b1ba0237da597e5b0e1e47140a29f4 | [] | no_license | NguyenNamDan/nguyennamdan-webmodule-c4e23 | eaea3fe71ca9401985fd80a803e9c58b36a15fb9 | 32cf2a454c341a1757b976888a102dac02b5d4ca | refs/heads/master | 2020-04-07T04:22:29.238100 | 2018-12-17T14:59:18 | 2018-12-17T14:59:18 | 158,052,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | from flask import Flask, render_template, request
import mlab
from addbike import AddBike
mlab.connect()
app = Flask(__name__)
@app.route("/new_bike", methods= ["GET", "POST"])
def new_bike():
if request.method == "GET":
return render_template("ex1_addBike.html")
elif request.method == "POST":
... | [
"admin@Silver.local"
] | admin@Silver.local |
c0680485e5008a6554b28a45fbd927848f84b0a4 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/B/bwscrape/basic_twitter_scrapersefton_12.py | 60ef63d50469e74904a0718aad24bf8abe06d460 | [] | 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 | 2,490 | py | ###################################################################################
# Twitter scraper - designed to be forked and used for more interesting things
###################################################################################
import scraperwiki
import simplejson
import urllib2
# Change QUERY to y... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
c2786c1ec09a518cd998b9512ec4a0142ff1e4ce | f735a0265dbad9eaf3c5ce791273c567ad2907a2 | /example/ui/dw_widgets_pyside_ui.py | cc46c19375c7ad94236f94848a9e737cbc94e205 | [
"CC-BY-4.0",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-3.0"
] | permissive | RicBent/QDarkStyleSheet | cd10d57bf7bbbc22bf3f1dde5f736df26993143a | a085ecbc79d4502afc0c68ffb3bfc702dcf4e65b | refs/heads/master | 2020-04-04T16:19:17.442084 | 2018-11-01T19:34:29 | 2018-11-01T19:34:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,616 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'dw_widgets.ui'
#
# Created: Thu Nov 1 16:06:05 2018
# by: pyside-uic 0.2.15 running on PySide 1.2.2
#
# WARNING! All changes made in this file will be lost!
from PySide import QtCore, QtGui
class Ui_DockWidget(object):
def setupU... | [
"daniel.pizetta@usp.br"
] | daniel.pizetta@usp.br |
b822c11f9e238482be6770487f8eca406f7a35c5 | c409d21254bc31ce11f1e3df94b4e8c58aae587a | /compilr/views.py | efb751c7e24ee7dff741c301119eb7f1f07cebb9 | [] | no_license | shivamx/codebaker | 4715b63b0fc59e672eabcb55b68bfd63b4f973c6 | 4f74d56424f1932d6efa6ee5666aee0ffb31f39a | refs/heads/master | 2021-01-10T03:45:38.966050 | 2015-11-22T08:56:20 | 2015-11-22T08:56:20 | 45,942,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | from django.shortcuts import render
from django.http import HttpResponse
from .forms import NameForm
import json
import requests
def index(request):
if request.method == 'POST':
lang = request.POST['lang']
source = request.POST['source']
iinput = request.POST['iinput']
RUN_URL = u'https://api.hackerearth... | [
"shivam@skillwiz.com"
] | shivam@skillwiz.com |
9d005b3da3b868f15c26ab7366dadbbf3cccbac1 | db6a9dcb2340ce7b54d064ff6ecba2dc9de0de1d | /2/10.py | 1e5261ddbb84c33d7be5675edafc82270438a79e | [] | no_license | tatuu/nlp100 | 330dfa577074ef54afa7044770d2ed914207a782 | 477fdc3a48be4f234efdab1e8b4b5b028d3ecfab | refs/heads/master | 2021-04-15T04:26:39.437169 | 2018-05-13T03:47:07 | 2018-05-13T03:47:07 | 126,504,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | import os
name = os.path.dirname(os.path.abspath(__name__))
joined_path = os.path.join(name, './nlp100/2/hightemp.txt')
path = os.path.normpath(joined_path)
txt = open(path, encoding="utf-8_sig")
lines = txt.readlines()
txt.close()
print("num:" + str(len(lines)))
| [
"tatuutatuu0906@gmail.com"
] | tatuutatuu0906@gmail.com |
a779eb627d5d8dc22e9abc378292ab3974ecda66 | 92e0cc321f673675942efdbf14cb7ff91ede56f0 | /app/__init__.py | 266280b449e708353a4a8963b431ef4e477c9593 | [] | no_license | msilva1610/curso-flask01 | 150d5162c8d2e449c8607b2252a8f8d2eb0715f3 | 909edae028170e4e433829234f7b11997a651798 | refs/heads/master | 2021-06-29T22:25:30.412676 | 2019-11-30T06:00:54 | 2019-11-30T06:00:54 | 224,936,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # coding: utf-8
from flask import Flask, request, Response
from flask_sqlalchemy import SQLAlchemy
from config import config
db = SQLAlchemy()
# import routes
def create_app(config_name):
# from .routes import load
app = Flask(__name__)
app.config.from_object(config[config_name])
db.init_app(app)
... | [
"Mau@MacBook-Air-de-Maurilio.local"
] | Mau@MacBook-Air-de-Maurilio.local |
f559fe69be6abd14b6d770d3782855f366b409b1 | 24573c3fea0f81bea125e51835c5e8e14fd4bf6f | /4/both.py | 5485928088556c2eef52c6bde0d1ba3290e9b914 | [] | no_license | vaderkvarn/aoc19 | 09252b494addf4e073051070b8f647f21e5eb47f | b9c5dca388115a007335f812fa4ed519f201975d | refs/heads/master | 2020-09-23T04:34:15.339611 | 2019-12-29T15:48:22 | 2019-12-29T15:48:22 | 225,403,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py |
min_n = 245318
max_n = 765747
def c1(s):
for i in range(1, len(s)):
if s[i] == s[i - 1]:
return True
return False
def c2(s):
for i in range(1, len(s)):
if s[i] < s[i - 1]:
return False
return True
def c3(s):
for i in range(2, len(s) + 1):
c = s[i-1... | [
"hjalmar@wopii.com"
] | hjalmar@wopii.com |
e31a7060d75486ec7fd9ef972bacfc4b74111180 | b4f66ebb5084efa6839771b62a1034a82094df6e | /setup.py | d1770422892a97a4591b7399521fb5a79403887d | [] | no_license | mhfowler/howdoispeak | 06f49dab64f62dea727a429557887742d1509265 | 110287dba64ae308943f431f628e528d7c941748 | refs/heads/master | 2016-09-05T14:04:48.605245 | 2015-01-17T23:27:15 | 2015-01-17T23:27:15 | 18,955,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | """
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
from setuptools import setup
APP = ['munging/iphone_backup_upload.py']
DATA_FILES = ["munging/secrets.json"]
OPTIONS = {
'argv_emulation': True,
'iconfile':'green_circles.icns',
}
setup(
app=APP,
data_files=DA... | [
"max_fowler@brown.edu"
] | max_fowler@brown.edu |
218203466c2363759af164801c8ec1b799146725 | 20c7261a2f47afdc6d3684bba6785805f327829b | /paciente.py | 594d0ed711c627aef23b6105832edcf45442e1c1 | [] | no_license | danielalopezr/proyecto-final | 60f75e202e93acfa2b26a060d623599c9944b8d2 | f01a5b7d58c02c36d9d51a88132788a73d3947f8 | refs/heads/master | 2022-11-25T08:12:51.497495 | 2020-07-31T03:39:00 | 2020-07-31T03:39:00 | 283,931,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | class Paciente(object):
nombre = ""
apellido = ""
fiebre = 0
resp = 0
tos = 0
dolor = 0
estado = 0
def __init__(self, nombre, apellido, fiebre, resp, tos, dolor, estado):
self.nombre = nombre
self.apellido = apellido
self.fiebre = fiebre
self.resp = resp
... | [
"noreply@github.com"
] | danielalopezr.noreply@github.com |
0a50720d2bd2363f7df7bbead08912e451d0fc2f | 2eb63fb61cb36f5999f9279c12289e40efd80e86 | /Perceptron/Perceptron_Functional.py | 9f2b03066c58a405f4d3af14b1192e197e8e9cec | [] | no_license | RiverTamDance/Machine-Learning | 8a59fef0b231cbb79062e5165ac9c0b3bf102d6b | 7bbc67cf28d8d4b7da82c4ad2b9ae9843d6b1c72 | refs/heads/master | 2023-07-26T07:57:51.536427 | 2021-09-02T18:23:56 | 2021-09-02T18:23:56 | 402,519,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | from operator import mul
from functools import partial
from itertools import accumulate, cycle, islice
data = [([1,1],0), ([4,4],1), ([5,5],1), ([2,2],0), ([2,6],0), ([3,5],0)]
#prepends 1 to each variable-list, which is a dummy value to allow the threshold calculations to work.
def data_prepend_one(data):
p... | [
"Taylordrichards@outlook.com"
] | Taylordrichards@outlook.com |
eedb775b51f7e71d1fd05e539cbedb60b1d6917c | 061fd0a6956b409d63bdca7655f6a8e5fef51b18 | /problem_75.py | a67aa2a0aed649b0bee38c37add22fb6b2604a20 | [] | no_license | bhathaway/projecteuler | bcfdaeb10dfbd13e95cbd3239d7d61851b9c42f9 | 49e704a9affb95197f640fbfcf2fd85788f258f3 | refs/heads/master | 2021-08-18T12:46:10.924743 | 2018-10-24T15:52:07 | 2018-10-24T15:52:07 | 24,650,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,714 | py | # Finding all pythagorean triples such that the sum of the sides equals a
# specific integer can be done by using Euclid's general formula.
# Given a^2 + b^2 = c^2, a = k * (m^2 - n^2), b = k * (2 * m * n), c = k * (m^2 + n^2)
# Some basic algebra shows that letting s = a + b + c leads to
# s/2k = m * (m + n).
# So it... | [
"bryce@earthmine.com"
] | bryce@earthmine.com |
57b6a2b3115560ab7402abc10bc2adc57b9103be | 61bf5b4f24c55f2a7114cebd347426ec7de2ec16 | /models/LDF.py | fbebc7f6096e8885d6015c983e7ce67b089258a0 | [] | no_license | rainofmine/Fine_Grained_ZSL | 6f3b411e36f97f6e42ba9bac3ee5dee0016ee3ef | 8312006d4c5572c9058d4f293ddfbc9738bee191 | refs/heads/master | 2020-04-05T21:41:19.030134 | 2018-11-13T03:26:24 | 2018-11-13T03:26:24 | 157,229,358 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # -*- coding: utf-8 -*-
# Tianchi competition:zero-shot learning competition
# Team: AILAB-ZJU
# Code function:LDF baseline model
# Author: Yinda XU
import torch
from torch import Tensor
from torch import nn
from .resnet_mod import resnet_mod56
class LDF_baseline(nn.Module):
def __init__(self, arr_Cla... | [
"1139196922@qq.com"
] | 1139196922@qq.com |
41ddd091df6ea055f01a6a9169e98ab77a7ceedd | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/app_loader/decorators.py | 49d57664e5a33eceff808d2385710e8a082e19e6 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,256 | py | # 2015.11.10 21:25:12 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/app_loader/decorators.py
from gui.app_loader.loader import g_appLoader
from gui.app_loader.settings import APP_NAME_SPACE as _SPACE
class app_getter(property):
def __init__(self, fget = None, doc = None, space = None):
... | [
"info@webium.sk"
] | info@webium.sk |
0066ce0cf6dec499c4e799bd080971fd91fc4211 | 27885302b6f63a7d253399683b5b8e800558b893 | /setup.py | 166eff9f55ab83687f0839cdb650e25653183146 | [
"MIT"
] | permissive | Manuel83/cbpi-eventbus | ce4abaf2f96546c4a3654d1245beec6c04eada40 | 6b4a302bf744b2a8022e0048d45871a353953691 | refs/heads/master | 2020-04-14T20:40:39.099942 | 2019-01-04T13:48:11 | 2019-01-04T13:48:11 | 164,102,868 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | from setuptools import setup, find_packages
setup(name='cbpi-eventbus',
version='0.0.3',
description='CraftBeerPi EventBus',
author='Manuel Fritsch',
author_email='manuel@craftbeerpi.com',
url='https://github.com/Manuel83/cbpi-eventbus',
packages=['cbpi_eventbus'],
) | [
"cUrrent2015"
] | cUrrent2015 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.