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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74b88d61b79bd5ebc7c8ea4b42c60bfc7ba59bc5 | 130a98632d2ab4c171503b79e455b7aa27a1dda4 | /models/official/utils/flags/_conventions.py | b6f248b443a689f82770c2a725791ec76dc46591 | [
"Apache-2.0",
"MIT"
] | permissive | aboerzel/German_License_Plate_Recognition | d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787 | 6fc53292b1d3ce3c0340ce724c2c11c77e663d27 | refs/heads/master | 2023-01-30T18:08:37.339542 | 2023-01-07T07:41:36 | 2023-01-07T07:41:36 | 245,586,430 | 34 | 12 | MIT | 2023-01-07T07:41:37 | 2020-03-07T07:16:51 | Python | UTF-8 | Python | false | false | 1,808 | py | # Copyright 2018 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... | [
"andreas.boerzel@gmx.de"
] | andreas.boerzel@gmx.de |
f01c7a44eccbf92d7cc1e3ecbafa94dc41b95918 | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/easy/8_15.py | 86dea0108cdf7dbb420de013fbc38390cad29623 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,388 | py | Python – Reading last N lines of a file
**Prerequisite:** Read a file line-by-line in Python
Given a text file _fname_ , a number _N_ , the task is to read the last N
lines of the file.
As we know, Python provides multiple in-built features and modules for
handling files. Let’s discuss different ways to... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
3f2ab7df5f4f7fc432c79ef2ed7a0604e20a3ceb | e3afad642b98f0c6cdda91b550c080f7cd6fdf4c | /epi/10-binary-trees-15-bst/BinaryTreeNode.py | dcca3a3d0241a37beb165c28593cec5c1728f1ca | [] | no_license | danielcodes/practice-problems | 50e7ceb71305f69eafcd50c1507f9aa8829a8a2c | b06dfaed6b71e5a86dc43940fb15bc2e7f07903f | refs/heads/master | 2020-04-12T06:19:25.552398 | 2016-11-30T02:13:06 | 2016-11-30T02:13:06 | 65,409,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py |
# module for binary trees
class Node:
def __init__(self, value, left=None, right=None):
self.value = value
self.left = left
self.right = right
self.parent = None
def printInOrder(root):
nodes = []
printInOrderUtil(root, nodes)
return nodes
def printInOrderUtil(root... | [
"daniel_1118@hotmail.com"
] | daniel_1118@hotmail.com |
7b48d917637fb4d2a301c58da1464aef2f61fbe6 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/tmpconsolecmds.py | 0c0a4a16136a52bf97658edd60418a96123dc691 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,405 | py | # 2015.11.18 11:51:09 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/TmpConsoleCmds.py
import BigWorld
from debug_utils import *
class LanServers:
def search(self):
BigWorld.serverDiscovery.searching = 1
def stop(self):
BigWorld.serverDiscovery.searching = 0
def show(sel... | [
"info@webium.sk"
] | info@webium.sk |
a08261dfb20e2f5f2b1ccac1c04c7469f46f54e4 | 25ebec4dd05334b63d62e238ccaa1700fdb7dcc4 | /Arase/PWE/DeleteDate.py | 54b02b15eff997334804e5fcbe1ec03e7b387862 | [
"MIT"
] | permissive | mattkjames7/Arase | 2513416f0211f82a75d6b963fc8d6ea081dbc4f0 | 996167be35a13bbb1fdddfbe75e3a06d124b1d25 | refs/heads/master | 2023-04-07T03:54:59.407811 | 2021-05-20T12:03:50 | 2021-05-20T12:03:50 | 187,637,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 613 | py | import numpy as np
from ..Tools.Downloading._DeleteDate import _DeleteDate
from .. import Globals
def DeleteDate(Date,subcomp,L,prod,Confirm=True):
'''
delete all of the files from a given date
'''
if subcomp == 'hfa' and L == 3:
idxfname = Globals.DataPath + 'PWE/Index-L{:01d}-{:s}.dat'.format(L,subcomp)
da... | [
"mattkjames7@gmail.com"
] | mattkjames7@gmail.com |
041645ad029ae1da78cd282c6980c9e489f5b47e | 59cdb8b3995ee5938dc4710e32f29ac273410265 | /_archive/nosepoke_code/_old/cuedtaste_abu3.py | ca2954d2612ada74593f061d92279ad1919ac11a | [] | no_license | abuzarmahmood/firing_space_plot | 15ff667fada8f4e985a6a6c6f31261b72b0f4b60 | 9fe925d9b443fda96d8e23d6d2d2d2aa60b08f15 | refs/heads/master | 2023-07-25T01:39:31.942434 | 2023-07-15T14:24:38 | 2023-07-15T14:24:38 | 139,602,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,345 | py | """
Code to ONLY CONTROL cue and RESPOND to nosepoke
No recording --> Leave that to Intan Board
"""
from threading import Thread, Lock
import time
import RPi.GPIO as GPIO
import datetime
import numpy as np
class nosepoke_task:
"""
- Class to run nosepoke task
- Stores main variables and performs appropri... | [
"abuzarmahmood@gmail.com"
] | abuzarmahmood@gmail.com |
f0e71dab23c9d10b9ed81e223aeb65c5444569bd | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02784/s847410997.py | fd50024c37c9f2ef3942f98bcea7d5ff189e9a6b | [] | 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 | 228 | py | import sys
from itertools import accumulate
H, N = map(int, next(sys.stdin.buffer).split())
A = map(int, next(sys.stdin.buffer).split())
ans = any(map(lambda v: v >= H, accumulate(A, initial=0)))
print('Yes' if ans else 'No') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
725ae5cb559adac73aa5ac94b2f193dbed895a91 | a2b7fba22a16f379ccca2e38d9d6291b9562abc3 | /Graph Theory/Connectivity/Biconnected_Components.py | 4967813f98137ae85ef4c6f0d35ab613b52ff0ee | [] | no_license | neelamy/Algorithm | 565c1cea72715745653e90a3dabbba1e9e283fd8 | 7c9f53ff27bcb840b9dbc20d520f003f4d76fe17 | refs/heads/master | 2020-06-10T15:53:12.967832 | 2017-07-18T07:59:32 | 2017-07-18T07:59:32 | 75,953,017 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,445 | py | # Python program to find biconnected components in a given
# undirected graph
#Complexity : O(V+E)
from collections import defaultdict
#This class represents an directed graph using adjacency list representation
class Graph:
def __init__(self,vertices):
self.V= vertices #No. of vertices
self.graph = defaul... | [
"neelamyadav.jss@gmail.com"
] | neelamyadav.jss@gmail.com |
0675fa79cb50d6f70ae4d1f4b9bfa46070797d0a | 67b0379a12a60e9f26232b81047de3470c4a9ff9 | /slideshow/admin.py | 365cd2affc5bde2acbcc881b16c1a4523658de1c | [] | no_license | vintkor/whitemandarin | 8ea9022b889fac718e0858873a07c586cf8da729 | 5afcfc5eef1bb1cc2febf519b04a4819a7b9648f | refs/heads/master | 2021-05-06T03:35:09.367375 | 2017-12-20T15:43:08 | 2017-12-20T15:43:08 | 114,904,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | from django.contrib import admin
from .models import *
from content.fields import AdminImageWidget
from django.db import models
class SlidAdmin(admin.ModelAdmin):
list_display = ('name', 'pic', 'published', 'ordering')
list_editable = ('published', 'ordering')
formfield_overrides = {
models.ImageF... | [
"alkv84@yandex.ru"
] | alkv84@yandex.ru |
82ae6081af92203e7de8a4eae701c34ca3048032 | fb0c02a5529f41384598dab941180152f39fa10e | /dopzad.py | d4825d0e0ef8fa4c07a4e4ec12b31c244ee1f015 | [] | no_license | Sezimm/Problem2 | 951200c92dcdbd43da3daefd32491c8850184745 | 0a3f392f025d22db4ef2ca8045c6d8a770b54f9f | refs/heads/main | 2023-02-22T02:03:25.424031 | 2021-01-26T15:49:45 | 2021-01-26T15:49:45 | 333,133,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py |
#2
'''
text = input()
l = text.split()
q=""
for i in sorted(l,key=lambda a: len(a)):
q = q + " " + i
print(q)
'''
p = input("vedite dannye cherez probel: \n")
s = int(input("vedite shag: "))
x = p.split()
for j in range(int(len(x))):
| [
"you@example.com"
] | you@example.com |
2e424e970f298b6e3f96fe5aaf6fdb58c9648820 | ee4265c3c6c99f189e2202e7f0d2b5a78475376d | /code_forces/Accommodation.py | 58c0a2f2021e7ef312b1bdda00f5506ed981caeb | [] | no_license | akashgkrishnan/HackerRank_Solutions | 96f762848a77b731748d3331d17314f5e343abae | 75eeb5bd0f6e81c62ecd2898eb7de9b540e98b46 | refs/heads/master | 2023-03-18T18:01:21.402781 | 2020-09-30T18:08:43 | 2020-09-30T18:08:43 | 271,615,533 | 1 | 0 | null | 2021-03-20T05:03:59 | 2020-06-11T18:09:23 | Python | UTF-8 | Python | false | false | 143 | py | count = 0
for _ in range(int(input())):
p, q = list(map(int, input().split()))
if q - p >= 2:
count += 1
print(count)
| [
"krishnanag1996@gmail.com"
] | krishnanag1996@gmail.com |
e71c26708fa1dac89ce425302946faba0f6cdd88 | e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6 | /venv/Lib/site-packages/pybrain/structure/modules/biasunit.py | a85d6212c196f190500ec537e31bc49c033bddc8 | [
"MIT"
] | permissive | ishatserka/MachineLearningAndDataAnalysisCoursera | cdf0f23a58617e17d6b938e3a9df17daae8585e4 | e82e772df2f4aec162cb34ac6127df10d14a625a | refs/heads/master | 2021-09-11T01:39:26.228392 | 2018-04-05T14:33:39 | 2018-04-05T14:33:39 | 117,153,454 | 0 | 0 | MIT | 2018-03-27T05:20:37 | 2018-01-11T21:05:33 | Python | UTF-8 | Python | false | false | 387 | py | __author__ = 'Tom Schaul, tom@idsia.ch'
from neuronlayer import NeuronLayer
from module import Module
class BiasUnit(NeuronLayer):
"""A simple bias unit with a single constant output."""
dim = 1
def __init__(self, name=None):
Module.__init__(self, 0, 1, name = name)
def _fo... | [
"shatserka@gmail.com"
] | shatserka@gmail.com |
a472871209ba36dddc71717632c40210ffcdb40d | ad0d092d26b126ebf9c5f79a0254e79320a4d732 | /avgtest_pico.py | 8801fc479c10cafaf34933348fe63907e7b0caf7 | [
"MIT"
] | permissive | peterhinch/micropython-filters | be9bcbc3ace92987a1ef23fca5faa90af2391d35 | 4e0b737574073bab36ec1c776e8dfb80b8fe5f9f | refs/heads/master | 2022-02-07T23:01:52.492287 | 2022-01-26T18:29:34 | 2022-01-26T18:29:34 | 30,693,766 | 59 | 13 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # Demo program for moving average filter
# Author: Peter Hinch
# Released under the MIT License (MIT). See LICENSE.
# Copyright (c) 2021 Peter Hinch
# 16th Dec 2021
import array
from time import ticks_us, ticks_diff
from avg_pico import avg
data = array.array('i', (0 for _ in range(19))) # Average over 16 samples
dat... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
65f9e5229c6c9a6a1e020096dd3b187b66fcee09 | e86fa6b618822fc800bdc699b95efd404065509e | /python/practice/matrixMultiplication.py | 475810eb7ae26f8568fb5ce2c80ae20e1d8d212e | [] | no_license | KimYeong-su/programmers | 97b0ba53833176690bf5f87243d4e98402526f86 | caf3bcb824c4199832ca94b073340b8c49ada31d | refs/heads/master | 2021-08-29T07:06:12.936109 | 2021-08-06T12:40:02 | 2021-08-06T12:40:02 | 251,619,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | '''
# zip(a) 표현과 zip(*a) unpacking 표현을 잘 기억하자..
def solution(arr1, arr2):
return [[sum(a*b for a, b in zip(A_row,B_col)) for B_col in zip(*arr2)] for A_row in arr1]
'''
def solution(arr1, arr2):
answer = [[0 for _ in range(len(arr2[0]))]for _ in range(len(arr1))]
for i in range(len(arr1)):
for j in... | [
"suwon0521@naver.com"
] | suwon0521@naver.com |
cde830d7a4274d28fb3f1d7f4f807e7245e65ec0 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_omens.py | 6723d6d1487e28f10d04f20ab87de03a0fc7e444 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _OMENS():
def __init__(self,):
self.name = "OMENS"
self.definitions = omen
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['omen']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4067df6deabc0c09665985515f58a01b388540cf | 0fb9e72ca0e41a06b08dd03c49f340a5c3af583d | /main.py | e579bc240cf9a2dc0834118f9a3bd25c531290f8 | [] | no_license | osmlab/routerelationranger | 74146da70cad1f989f0bff764859e4b43112b998 | 1fcd00493ca6e612fcc0ce6b2878a0749fb6e869 | refs/heads/master | 2020-06-14T06:35:33.626186 | 2016-12-13T18:53:05 | 2016-12-13T18:53:05 | 75,222,534 | 8 | 1 | null | 2016-12-13T19:22:04 | 2016-11-30T20:05:44 | HTML | UTF-8 | Python | false | false | 3,206 | py | from flask import Flask, render_template, jsonify, request
import requests
import json
import pycountry
import us
app = Flask(__name__)
route_type = ''
@app.route("/")
def index():
return render_template('index.html')
@app.route('/countries')
def get_countries():
return json.dumps([[c.alpha_2, c.name] for c ... | [
"m@rtijn.org"
] | m@rtijn.org |
01fb37b7d5d16a167a3f98e0b2b0c9ed7a36cd06 | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part005250.py | a115bdd05a7d58de6b87e28027cd20e59675b0ad | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,998 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"franz.bonazzi@gmail.com"
] | franz.bonazzi@gmail.com |
d5c9b86ee0c37f13f1cbb6d03e3008cd35a1b9bb | 1bdb0da31d14102ca03ee2df44f0ec522b0701a4 | /Lombardia/MM/ReteAcquedotti/AggiornamentoReteAcquedotti.py | c746357b05945e6e29e8a6e020d668da83aa3a93 | [] | no_license | figuriamoci/Acqua | dc073d90c3c5e5899b22005685847916de1dfd95 | aef22fcd0c80c92441e0e3df2468d7a2f23a848a | refs/heads/master | 2020-12-15T04:00:26.855139 | 2020-06-08T21:17:55 | 2020-06-08T21:17:55 | 234,986,179 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | import os, geojson, logging, acqua.labelCollection as lc
def create_water_supply_network(geoJsonfile, regione):
#logging.info( "reading %s from %s...", geoJsonfile, regione )
with open( geoJsonfile ) as f:
geo = geojson.load( f )
fc = []
for f in geo['features']:
logging.info(f)
... | [
"an.fantini@gmail.com"
] | an.fantini@gmail.com |
1b4e0dba6cccc7a01d2f1f2473da5593ccf3a7ee | 6a68b230964540bc3f7eb19a9a5adc9b218370c7 | /MiddlewareScan/F-MiddlewareScan.py | c00c9bde26d9c4c15f126b1dc017a4972d1497ec | [] | no_license | chuxuantinh/hack-tools | 7705e485959d1612fee1786a80d98a3fe5500e20 | c2203e8fa5c42b26e23b9c3db5e88ec7d11ea120 | refs/heads/master | 2023-01-09T03:13:40.074380 | 2020-10-31T19:17:37 | 2020-10-31T19:17:37 | 308,955,506 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,741 | py | #coding:utf-8
#author:wolf@future-sec
import getopt
import sys
import Queue
import threading
import socket
import urllib2
import time
import ssl
import os
queue = Queue.Queue()
sys.path.append("plugins")
mutex = threading.Lock()
timeout = 10
try:
_create_unverified_https_context = ssl._create_unverified_context
e... | [
"50776038+chuxuantinh@users.noreply.github.com"
] | 50776038+chuxuantinh@users.noreply.github.com |
7fe5bc22dac1909ed556d1c7bb7127e52a4d4dae | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_189/ch20_2019_04_02_12_58_25_892579.py | fe0235bbac5d83917113e11d70f62f63d46439b1 | [] | 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 | 147 | py | nome=str(input('digite seu nome: ')
if nome='chris':
return ('todo mundo odeia o chris')
else:
return ('olá, {0}'.format (nome)) | [
"you@example.com"
] | you@example.com |
c3c8c62c75b3a96cd5d71067e6269516d0c95ee0 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/4baf47439edb0ab2a6d043f8872032cbd5c6dee035b265d6f6b2b9443945c60a/pyexpat/errors.py | ead44496b49caa3d6d90ff34ba43efbfbac4b2f6 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,532 | py | # encoding: utf-8
# module pyexpat.errors
# from C:\Users\Doly\Anaconda3\lib\site-packages\skimage\io\_plugins\_colormixer.cp37-win_amd64.pyd
# by generator 1.147
""" Constants used to describe error conditions. """
# no imports
# Variables with simple values
XML_ERROR_ABORTED = 'parsing aborted'
XML_ERROR_ASYNC_ENT... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
1cc9928d529ad5736e478cc4ac402889c072e6f5 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /waf_write_f/xss-match-set_create.py | c7702ffe2384dfbda2f82dad83e597d3abc55b61 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
34c447b2702d0a89243b9206af1af98f49ae8b5b | 5832f65747e6142d1b8de9d46aa507092782aafc | /Codeforces/1304/d/d1.py | 1153970f359f16501943bc2d0f927e46b15fc1ac | [] | no_license | subhashreddykallam/Competitive-Programming | 64cc42c5b23c03536187a1bb54e2b2ed82ee7844 | 973b66b4eb81352b98409ca52fa3aa75c28d8b6f | refs/heads/master | 2022-05-28T21:07:43.012922 | 2020-05-05T20:34:20 | 2020-05-05T20:34:20 | 226,814,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | from itertools import permutations
def CeilIndex(A, l, r, key):
while (r - l > 1):
m = l + (r - l)//2
if (A[m] >= key):
r = m
else:
l = m
return r
def LongestIncreasingSubsequenceLength(A, size):
tailTable = [0 for i in range(size + 1)]
len = 0
tai... | [
"42376739+Storm1seven@users.noreply.github.com"
] | 42376739+Storm1seven@users.noreply.github.com |
b3463b6fc44f470bc1c49964be9a1293d2c14279 | 38d93c5fd72fee380ec431b2ca60a069eef8579d | /Baekjoon,SWEA, etc/프로그래머스/소수 찾기.py | d4f4170daebf494386f6c0311a6f986a270b6131 | [] | no_license | whgusdn321/Competitive-programming | 5d1b681f5bee90de5678219d91cd0fa764476ddd | 3ff8e6b1d2facd31a8210eddeef851ffd0dce02a | refs/heads/master | 2023-01-01T01:34:22.936373 | 2020-10-24T11:05:08 | 2020-10-24T11:05:08 | 299,181,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,080 | py | import itertools
# permutations = []
#
#
# def make_permutations(nn, n, permutation, visited):
# '''
# if n == 4, create [[0,1,2,3],[0,1,3,2],[0,2,3,4] . . .]
# '''
# if len(permutation) == nn:
# permutations.append(permutation)
# return
# for i in range(n):
# if not visited... | [
"blackgoldace@naver.com"
] | blackgoldace@naver.com |
b0ddb85d5d6654d0bbf42e807f0356fc1e877ba3 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AntfortuneContentCommunityContentEventSaveResponse.py | 460049c5dc88e8c5dfdbefc078a9cfe3196f03ef | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 491 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AntfortuneContentCommunityContentEventSaveResponse(AlipayResponse):
def __init__(self):
super(AntfortuneContentCommunityContentEventSaveResponse, self).__init__()
def p... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
56bc7e285a243b20416b0354cc8bd2200989d3a0 | ac6e4102dfb49a4e49de0e2766feb6e80ab0b5c2 | /test/test_networking_project_netgw_attach.py | 74a8534b8692359526d9c3f667bbf6100f6e6b64 | [
"MIT"
] | permissive | hyperonecom/h1-client-python | df01f05ad295121e3dd391a3274c41e2f5b88e53 | 4ce355852ba3120ec1b8f509ab5894a5c08da730 | refs/heads/master | 2023-04-05T01:51:31.637002 | 2021-03-29T00:05:41 | 2021-03-29T00:05:41 | 319,309,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | """
HyperOne
HyperOne API # noqa: E501
The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import h1
from h1.model.netgw_private import NetgwPrivate
globals()['NetgwPrivate'] = NetgwPrivate
from h1.model.networking_project_netgw_at... | [
"action@github.com"
] | action@github.com |
2e3c7259450c57b1ae6db5382c7f7aa424a5a2c9 | a5b6dfd04e49b86a4ec3ba1ca1fc941233fd1906 | /leetCode/46Permutations.py | 5ac95b13a5ac47b2245845689b668f8e2a71e15e | [] | no_license | JuDa-hku/ACM | c57423c4c619991ab5b8df170ace6c68fbe6bb48 | 3add05a6b07ec60ae148290f7f25d122336de47d | refs/heads/master | 2021-06-25T09:33:05.396914 | 2016-10-29T03:27:03 | 2016-10-29T03:27:03 | 21,881,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | class Solution:
# @param {integer[]} nums
# @return {integer[][]}
def permute(self, nums):
res, C = [], []
self.permuteHelp(nums, res, C)
return C
def permuteHelp(self, nums,res, C):
if len(nums) == 0:
C.append(res)
return
for num... | [
"juda@ubuntu.ubuntu-domain"
] | juda@ubuntu.ubuntu-domain |
47fe148cfd3970866527a76d900bd6a16e5902c0 | fb4fc6ca3b6ea208a2377325fd1d41e6fe068734 | /tests/test_speed.py | 40c06c1d58652a5c103c60146cc0bb2ed869b958 | [] | no_license | nadia-el/ontology-semsim-py | d15977cebe5d750c256a4ce3ff3fdb6c6c7098a1 | 216ee2a7b83b951b3bce7865e1dd7c94acc17211 | refs/heads/master | 2022-04-16T21:08:53.126204 | 2020-04-03T23:12:47 | 2020-04-03T23:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | from ontology_semsim.util import time_all_ancestors, time_all_jaccard
from ontology_semsim.fast_semsim import FastSemSimEngine
from pytest import approx
from typing import Optional, Set, List, Union, Dict, Any
from rdflib import URIRef, BNode, Literal, Graph, RDFS, OWL, Namespace
from ontology_semsim.semsim_rdflib impo... | [
"cjm@berkeleybop.org"
] | cjm@berkeleybop.org |
6d60e2ec9b7cae3397a6fc0edadaa40037633b41 | 275c25b4a8f8009799dc0e7aebab21df1e43f542 | /FruitStore/main.py | e2bc96dcd13b8dfc1b3f07acd8704117a6564c5a | [] | no_license | aranooke/Python-Data-Structure | 9a81cdf39a7d9a865a43b73b4e7db1f4f8a1e570 | 3e4ad8488385823b0c36f453159b463831a19335 | refs/heads/master | 2023-06-05T06:34:55.095557 | 2021-06-29T09:46:51 | 2021-06-29T09:46:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,708 | py | from FStore import FStore
from FStore import Cart
import time
import getpass
import logging
import json
def getAvilableStock():
stockInfo = open(r"FruitStore\stock.json", "r")
return json.load(stockInfo)
openStore = FStore(getAvilableStock())
cartInstance = Cart()
def getUserInput(fromWhichMenu):
inputM... | [
"sanjay.siddha3@gmail.com"
] | sanjay.siddha3@gmail.com |
0a239158da7a4e929daf2fab7fc0257797715246 | 3fcb1d6e8566f1d31237c934a75ffbfa4b5742e0 | /app_case/migrations/0001_initial.py | 9d41d9298f47319eed946430f88a15e6ecd4fdd2 | [] | no_license | xuxushenlan/itest_platform | 42714bd9ee5dc776aefecb80fdeff3bfa654785e | 56ced10fc9fe5ba05f6b699c98b882b93e9982e3 | refs/heads/master | 2021-02-23T08:02:16.418178 | 2019-12-21T10:11:49 | 2019-12-21T10:11:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | # Generated by Django 2.2.6 on 2019-11-30 14:46
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('app_manage', '0002_module'),
]
operations = [
migrations.CreateModel(
name=... | [
"fnngj@126.com"
] | fnngj@126.com |
8f9f2b4084e6feae2c4e3634ec6c31e48e4bc526 | b64c45e75aa215ddcf7249fb92e047f3e7731187 | /projectdir/utils.py | a0dfa25016c6994023a415d114a185558e6928ca | [] | no_license | johngaitho05/CohMat | 6731b4dfb94475c75f1cd1d2ec55cc810729f939 | ff5b8e5eb877f68a0477f4f19b78c6e7c407af2c | refs/heads/master | 2022-12-12T15:55:53.363782 | 2021-04-04T13:17:05 | 2021-04-04T13:17:05 | 239,868,710 | 1 | 0 | null | 2022-11-04T19:31:50 | 2020-02-11T21:31:47 | Python | UTF-8 | Python | false | false | 2,081 | py | import random
from datetime import datetime, date, timedelta
from django.template.defaultfilters import timesince, register
from django.utils import timezone
import pytz
from django.utils import timezone
class AgoTime:
def __init__(self, date_time):
ago = get_ago_time(date_time)
if type(ago) != s... | [
"johngaitho05@gmail.com"
] | johngaitho05@gmail.com |
a1d57be50b7c6b7de643f9c7e0d3ee889b0adefe | cf7118bcfbde5d2bfae51f74bffb44a5f39b3961 | /examples/discoro_client3.py | ee9165856b1f16aa58adac8fc11d8cec2376b2f3 | [
"MIT"
] | permissive | tierralibre/asyncoro | b6aba8654a6c974898590f7814190c805704da1f | d0b7b4bb4f4e569235ee74ccc52810d74fe8af12 | refs/heads/master | 2021-01-17T07:56:01.467307 | 2016-08-06T19:24:56 | 2016-08-06T19:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,981 | py | # Run 'discoronode.py' program to start processes to execute
# computations sent by this client, along with this program.
# Example where this client sends computation to remote discoro process to run
# as remote coroutines. Computations are scheduled with custom scheduler
# (without using RemoteCoroScheduler). Remote... | [
"pgiri@yahoo.com"
] | pgiri@yahoo.com |
a1812f7f2ebf3080a7e2a9e6e77a45f739bd7ac5 | e65a428ca7ee11d2f62d702842d4afbd493f08a4 | /dictionaries/odd_occurrences.py | 94e312ac04aa7a670ac1baa72e8af5f96bccd5f7 | [] | no_license | NikiDimov/SoftUni-Python-Fundamentals | d8ba24a06c4366e76bdc69f1c5225dca29fe955e | 5bb1bf5928e40f2bac867d33566c8b9dac13f566 | refs/heads/main | 2023-07-15T05:57:57.085880 | 2021-08-19T10:27:45 | 2021-08-19T10:27:45 | 323,631,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | words = input().split()
words = [el.lower() for el in words]
dictionary = {}
final_list = []
value = 1
for index in range(len(words)):
key = words[index]
if key in dictionary:
dictionary[key] += 1
continue
dictionary[key] = value
for key, value in dictionary.items():
if dictionary[key] %... | [
"niki.dimov86@gmail.com"
] | niki.dimov86@gmail.com |
63f0b3714d9174e540a1a9c7a40db8b81ca459e1 | 21b0b4c27193898207751c91b8b2ed168a1b1638 | /py/py_0074_digit_factorial_chains.py | 576fc3629b2ebe4479494eab79c28b6178f4a805 | [
"MIT"
] | permissive | lcsm29/project-euler | 67560a4e66968f1671a3d7ecf2dda6c956893dca | fab794ece5aa7a11fc7c2177f26250f40a5b1447 | refs/heads/main | 2023-07-04T11:45:24.374841 | 2021-08-07T08:20:41 | 2021-08-07T08:20:41 | 371,808,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | # Solution of;
# Project Euler Problem 74: Digit factorial chains
# https://projecteuler.net/problem=74
#
# The number 145 is well known for the property that the sum of the factorial
# of its digits is equal to 145:1! + 4! + 5! = 1 + 24 + 120 = 145Perhaps less
# well known is 169, in that it produces the longest ch... | [
"lcsm29@outlook.com"
] | lcsm29@outlook.com |
801a2b62b4da99a4dcc49110be6c373608da7381 | 7b1a2930931191444c76d0ee4863912dc811ff4f | /advertising/templatetags/image.py | 0d586ae2cdf441bfb2b19177898112acb045fa95 | [
"BSD-3-Clause"
] | permissive | django-ve/django-advertising | 97a68e49dc2102bfc2dc50eac4fbd443b44f3af8 | d369de379c224161e1c8d5eecde14bfb2b7423c3 | refs/heads/master | 2022-11-21T20:31:53.675161 | 2020-07-23T16:27:11 | 2020-07-23T16:27:11 | 281,835,835 | 0 | 0 | null | 2020-07-23T02:59:43 | 2020-07-23T02:59:42 | null | UTF-8 | Python | false | false | 2,527 | py | import sys
from django import template
from django.conf import settings
from django.shortcuts import get_object_or_404
from django.utils.safestring import mark_safe
from ..models import Advertising
register = template.Library()
@register.simple_tag
def get_images_advertising(height=100, campaign="", *args, **kwarg... | [
"martinpeveri@gmail.com"
] | martinpeveri@gmail.com |
482f5d49eaccc3c22ece3c7ac66ee332cc9347d4 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework02/maoyanspiders/maoyanspiders/spiders/movies_20200627215602.py | ad264859fade5fe3cd565586e3a4f0428ad647bf | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 1,183 | py | # -*- coding: utf-8 -*-
import scrapy
from maoyanspiders.items import MaoyanspidersItem
# import xlml.etree
from bs4 import BeautifulSoup as bs
class MoviesSpider(scrapy.Spider):
name = 'movies'
allowed_domains = ['maoyan.com']
start_urls = ['http://maoyan.com/board/4']
# def parse(self, response):
... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
374696dce42ea18decb6f012afe4ef136ea501a1 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /1/1.two-sum.333959566.Runtime-Error.leetcode.python3.py | 8a44ca6d16b23521fd72653ab990f48e7fc81b5b | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | class Solution:
def firstBadVersion(self, n):
MAX = n
MIN = 1
while MAX >= MIN:
MID = (MAX + MIN) // 2
if isBadVersion(MID):
MAX = MID - 1
else:
MIN = MID + 1
return MAX + 1
| [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
93aa196eba09a4b348af0294abef4a924b0caa0e | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /Django/进阶部分/day68orm/day68orm/app01/migrations/0007_auto_20180510_1228.py | bb626764f5aef8969f86f26f887e6cae0ca42e17 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 494 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-05-10 04:28
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app01', '0006_auto_20180510_1227'),
]
operations = [
migrations.AlterModelTable(
... | [
"13269469526@163.com"
] | 13269469526@163.com |
15113c318997014e892984c93d19e78847c9149d | bc183f7357cda3ad064f8c2ff34a176c406446d3 | /pastepwn/analyzers/tests/alwaystrueanalyzer_test.py | 0973040b894968d1844e79f9968191617269cd59 | [
"MIT"
] | permissive | luton1507/pastepwn | b8a790168ce08f10c62574eeb0a68f0dedd5425d | 9b2fee22857e54a5312fdb3d388b472a7d271c50 | refs/heads/master | 2022-11-10T20:18:40.102277 | 2020-06-19T23:34:14 | 2020-06-19T23:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | # -*- coding: utf-8 -*-
import unittest
from unittest import mock
from pastepwn.actions.basicaction import BasicAction
from pastepwn.analyzers.alwaystrueanalyzer import AlwaysTrueAnalyzer
class TestAlwaysTrueAnalyzer(unittest.TestCase):
def setUp(self):
self.analyzer = AlwaysTrueAnalyzer(None)
se... | [
"d-Rickyy-b@users.noreply.github.com"
] | d-Rickyy-b@users.noreply.github.com |
df97e2cec6be03f872168b844e9078036280d682 | 0cfb5831a748ebd46e438e3ad7e7a09c1d196499 | /com/chapter_08/section_03/task_8.3.4_functionWhile.py | f303ebafb04927959b06504d64048c0a65946b9e | [] | no_license | StevenGeGe/pythonFromIntroductionToPractice01 | 7cfe8cdb4bc5c0ddbe25b44976231d72d9e10108 | 9d2ba499056b30ded14180e6c4719ee48edd9772 | refs/heads/master | 2023-02-15T04:08:59.878711 | 2020-12-28T13:27:55 | 2020-12-28T13:27:55 | 310,980,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2020/11/20 21:26
# @Author : Yong
# @Email : Yong_GJ@163.com
# @File : task_8.3.4_functionWhile.py
# @Software: PyCharm
def get_formatted_name(first_name, last_name):
"""返回整洁的姓名"""
full_name = first_name + ' ' + last_name
return full_name.titl... | [
"Yong_GJ@163.com"
] | Yong_GJ@163.com |
a4bfce16b09eb37e9cdb42148c47e285c832cacc | 98a834b6cd7f5cb5f596b3818eb84fca0855d62e | /data_gen.py | fa368b0ec07470c9a71b08e50965d5f818b8be3b | [] | no_license | lmb633/transformer | 2e6fe2200942a6e8eb9f24ebfd47eb15478004e8 | e60c743da2078430b764aa68e224e0046b91384e | refs/heads/master | 2020-09-06T11:05:33.875047 | 2019-11-12T03:47:07 | 2019-11-12T03:47:07 | 220,407,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,631 | py | import pickle
import time
import numpy as np
from torch.utils.data import Dataset
from torch.utils.data.dataloader import default_collate
data_file = 'data.pkl'
vocab_file = 'vocab.pkl'
IGNORE_ID = 0
pad_id = 0
print('loading samples...')
start = time.time()
with open(data_file, 'rb') as file:
data ... | [
"limingbo@focusmedia.cn"
] | limingbo@focusmedia.cn |
a8f7de53cd21c1dc7f0beac6dcb19aab8614a3b6 | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/croix_rouge_francaise_fr.py | d9186b484a1d64d25affb1fa82f39a5e9c319099 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 2,581 | py | from scrapy import Spider
from scrapy.http import JsonRequest
from locations.dict_parser import DictParser
from locations.hours import DAYS_FR, OpeningHours, sanitise_day
class CroixRougeFrancaiseFRSpider(Spider):
name = "croix_rouge_francaise_fr"
item_attributes = {"brand": "Croix-Rouge française", "brand_w... | [
"noreply@github.com"
] | alltheplaces.noreply@github.com |
311fac66bd5619c74f93b0a3b033e01376dc2ce5 | 5b3caf64b77161748d0929d244798a8fb914d9c5 | /Python Excel Examples/CellsApiDemo/row/setRowStyle.py | b7416ef885f311a5d401678b9b4094cb9616b63c | [] | no_license | EiceblueCloud/Spire.Cloud.Excel | 0d56864991eaf8d44c38f21af70db614b1d804b7 | d9845d5cefd15a3ab408b2c9f80828a4767e2b82 | refs/heads/master | 2021-07-20T23:44:39.068568 | 2021-07-15T03:04:49 | 2021-07-15T03:04:49 | 230,225,396 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,264 | py | import spirecloudexcel
from spirecloudexcel.configuration import Configuration as ExcelConfiguration
from spirecloudexcel.api.cells_api import CellsApi
appId = "your id"
appKey = "your key"
baseUrl = "https://api.e-iceblue.cn"
configuration = ExcelConfiguration(appId, appKey,baseUrl)
api = spirecloudexcel.api.... | [
"noreply@github.com"
] | EiceblueCloud.noreply@github.com |
c4ab0b017776466c61193e88cafc3391fe2ec6a6 | ae7ba9c83692cfcb39e95483d84610715930fe9e | /yubinbai/pcuva-problems/UVa 11349 symmetric matrix/main.py | 5b0dbb58cb2e77b0c306a72f8344e573ab95df48 | [] | no_license | xenron/sandbox-github-clone | 364721769ea0784fb82827b07196eaa32190126b | 5eccdd8631f8bad78eb88bb89144972dbabc109c | refs/heads/master | 2022-05-01T21:18:43.101664 | 2016-09-12T12:38:32 | 2016-09-12T12:38:32 | 65,951,766 | 5 | 7 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import math
import sys
def symM(matrix, n):
flag = True
for x in range(n & 1 + n >> 1):
for y in range(n):
flag &= (matrix[x][y] == matrix[n - 1 - x][n - 1 - y])
if not flag:
break
if not flag:
break
return flag
sys.stdin = open('input.... | [
"xenron@outlook.com"
] | xenron@outlook.com |
93ef50c85ce3b6ab9f8d2d735078a7f3d4f8fa8f | 35dbd536a17d7127a1dd1c70a2903ea0a94a84c2 | /tests/sentry/integrations/jira_server/test_utils.py | cd17caeb9eacffca5d0e6932a2c9fe1ac566c6bf | [
"Apache-2.0",
"BUSL-1.1"
] | permissive | nagyist/sentry | efb3ef642bd0431990ca08c8296217dabf86a3bf | d9dd4f382f96b5c4576b64cbf015db651556c18b | refs/heads/master | 2023-09-04T02:55:37.223029 | 2023-01-09T15:09:44 | 2023-01-09T15:09:44 | 48,165,782 | 0 | 0 | BSD-3-Clause | 2022-12-16T19:13:54 | 2015-12-17T09:42:42 | Python | UTF-8 | Python | false | false | 525 | py | from fixtures.integrations.mock_service import StubService
from sentry.integrations.jira_server.utils import build_user_choice
from sentry.testutils import TestCase
from sentry.testutils.silo import control_silo_test
@control_silo_test
class BuildUserChoiceTest(TestCase):
def test_jira_server(self):
user_... | [
"noreply@github.com"
] | nagyist.noreply@github.com |
d1230b257269e14de6d6a92780f184655cea298a | 38ba13df9ea6e53c7b924cad1f3bea2de59c7a6a | /nibbler/trading/collectors/testfiles/XMRpusher.py | 259b074e21ed320eb51482ce968fe4705c991153 | [] | no_license | JizzFactoryEmployee/nibblerppman | 0fbc1ce662cf8b4868b41a97291250fae29dc41d | 160e557578a3e8a614450354f6ade233d32b052f | refs/heads/master | 2022-11-14T01:10:31.743000 | 2020-07-04T01:21:52 | 2020-07-04T01:21:52 | 273,835,770 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import time
import subprocess
import inotify.adapters
def XMRrunner():
while 1 <2:
i = inotify.adapters.Inotify()
i.add_watch(r'/home/nibbler/nibblerppman/nibbler/trading/collectors/coins/XMR/1m')
events = i.event_gen(yield_nones=False, timeout_s=1)
a = list(events)
if a ==... | [
"52958901+JizzFactoryEmployee@users.noreply.github.com"
] | 52958901+JizzFactoryEmployee@users.noreply.github.com |
f4c7922a4d689c89746373c980775b0a21ce13b7 | 500047f47a6b372fa7ff1e96b11315ee26acf5ef | /Chapter-05/badExample.py | c4cad1b499e3b50f0b20cd4f19c9a7030f4bff3b | [] | no_license | ra2003/Tkinter-In-Action | 9f3a80bb2cab8dccf78621915f234f80cf79c58d | 2a35ae029c2cfabb53adee8dae5fd0a7c6db817f | refs/heads/master | 2022-03-02T16:25:26.146299 | 2019-10-07T06:36:41 | 2019-10-07T06:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,524 | py | #!/usr/bin/python3
import tkinter as tk
class RefactorExample(tk.Frame):
def __init__(self,parent ):
super().__init__()
self.parent = parent
panel = tk.Frame(self.parent, bg="white")
prevButton = tk.Button(panel, text="<< PREV", command=self.OnPrev).place(x=50, y=0)
... | [
"noreply@github.com"
] | ra2003.noreply@github.com |
b8addbaf31dce94cbf9e67adfeee954a02ca3942 | b3237e2600cfd2e84dbba3760a020c8434033e72 | /Assignments/Exam Preparation/Python Advanced Retake Exam - 08 April 2020/03. Find the Eggs.py | 893dfadef18cfd65e739782e2b18fa2140091f16 | [
"MIT"
] | permissive | KaloyankerR/python-advanced-repository | 94a22a5015bb66afa6c61b3fb8ad150dc7028d6a | 711672d0f033a5adffc3ca689d02d2a7a9a26bfb | refs/heads/master | 2023-04-11T18:48:40.538000 | 2021-04-21T10:55:30 | 2021-04-21T10:55:30 | 298,027,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | def find_strongest_eggs(elements: list, sub_list):
sub_listed_elements = [[] for x in range(sub_list)]
ind = 0
while elements:
if ind == sub_list:
ind = 0
element = elements.pop(0)
sub_listed_elements[ind].append(element)
ind += 1
valid = []
for sub_lis... | [
"kaloyankulov2003kk@gmail.com"
] | kaloyankulov2003kk@gmail.com |
69114fbbf1b5dd496c9af5359ad301b2f1eeb8b4 | 26ca1e0906feece27896bd267a1f58882fcb0513 | /archive/Basics/multi_func.py | 9820caf039d6f0b84af655361ed8812fdcd57056 | [] | no_license | icecore2/python-training2019 | 092984c6dec1b05e70f9f899ee213d126c45ff63 | ee39f93adabab506c9eef68c5e686ddb59953de9 | refs/heads/master | 2020-09-02T21:19:27.959213 | 2020-04-23T20:06:08 | 2020-04-23T20:06:08 | 219,306,742 | 0 | 2 | null | 2020-01-17T15:07:06 | 2019-11-03T13:40:56 | Python | UTF-8 | Python | false | false | 385 | py | import sys
import os
# from hints.time_gists import timeFormat
firstNumber = 2
secondNumber = 3
# secondNumber.date = 22
def multiFunc(firstNumber, secondNumber):
multiResult = firstNumber * secondNumber
# time = timeFormat('%d-%m-%Y / %H:%M:%S')
# print(time)
return multiResult
pass
print("The... | [
"admin@example.com"
] | admin@example.com |
234e88f3b0a9d275b613902e63d48a31b12c0038 | 0a3bd0fc84263bd65559cf95b19a6752743f7f64 | /src/guis/make_svg_camm | ce5acafd13805ae35b9ba00de0042e3ae860ed81 | [] | no_license | shohei/fabmodules_jp | b38487e5e64599fe8f3de2c404c1f730e81c616c | 67dc16709bb9eff12b63532e83a13aa410f76311 | refs/heads/master | 2016-09-06T16:25:46.636267 | 2014-08-21T06:49:37 | 2014-08-21T06:49:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#
# make_svg_camm
# .svg to .camm GUI wrapper
#
# Neil Gershenfeld
# CBA MIT 7/13/11
#
# (c) Massachusetts Institute of Technology 2011
# Permission granted for experimental and personal use;
# license for commercial sale available from MIT.
#
# imports
#
import wx,sys
fro... | [
"shoaok@gmail.com"
] | shoaok@gmail.com | |
42847c974fe12ff0e8c68e79c9bf6085ad3133f3 | 1915a3f90059f4a125b81675d16a427c85428626 | /post.py | 6ab84f631b32119601408481bcca0279c07a68e8 | [] | no_license | AntLouiz/location_photo_bot | b09fd9939513d21b755c6204199c29c31284240c | 0fcf85553efb26f4eec238aa4b0b8f2b57d9f276 | refs/heads/master | 2020-03-31T15:30:04.605136 | 2018-10-20T01:44:38 | 2018-10-20T01:44:38 | 152,339,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | import json
import datetime
class Post(object):
def __init__(self):
self.location = None
self.photo = None
self.date = None
def clean(self):
self.location = None
self.photo = None
self.date = None
def save(self):
data = {
'location': {... | [
"luizrodrigo46@hotmail.com"
] | luizrodrigo46@hotmail.com |
ca9afadd672ce387fd79fc8c543b9111e07090f5 | 0460b645ac0697433e4526ea9215ac25c97a64bb | /venv/bin/pyhtmlizer | 9c15bcee75f63931c24a55fe21eaa476ebb0d585 | [] | no_license | veujs/weibo | 0e20645d07196193537f523a677892d3da1abf88 | b33d0c41fc82608fd828e2790a2dcc2c9a246f36 | refs/heads/master | 2020-05-30T12:03:22.631450 | 2019-06-01T10:18:36 | 2019-06-01T10:18:36 | 189,718,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | #!/home/wangzhipeng/myproject/myspider/weibo/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==19.2.0','console_scripts','pyhtmlizer'
__requires__ = 'Twisted==19.2.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',... | [
"624040034@qq.com"
] | 624040034@qq.com | |
1b3017e4d9efb6b748173059fdf1e8e745873df8 | cda215558ad8448ed8e2cbb89719de312c382a95 | /enteletaor_lib/libs/hooks/__init__.py | 56572dc3372dc7674f8e8348206a7e4528940f44 | [
"BSD-3-Clause"
] | permissive | cr0hn/enteletaor | 63fc6a9f832ea7b6b08f3f786445a8235b9a4618 | a975b5cb06bc5f819b32e65d0cd2258a37370661 | refs/heads/master | 2023-05-11T13:38:25.213779 | 2023-05-08T08:41:31 | 2023-05-08T08:41:31 | 52,361,896 | 166 | 31 | NOASSERTION | 2023-05-08T08:41:36 | 2016-02-23T13:44:22 | Python | UTF-8 | Python | false | false | 4,021 | py | # -*- coding: utf-8 -*-
#
# Enteletaor - https://github.com/cr0hn/enteletaor
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
# following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of con... | [
"cr0hn@cr0hn.com"
] | cr0hn@cr0hn.com |
de7091480f2f208de4c42fa97e6a868185619552 | 8746f4e3da5e230ec0ca4b924bb06a9951dd03da | /setup.py | 9082c72d9f540e3e1d1fc8b9b0e4754df699af35 | [
"MIT"
] | permissive | Apeopl/django-dj-plugin | 845a508dd9088ceb9d9e03de56f5c11d5d1d07a4 | 2711c1af0185eea0fe5d1aed2eca5cd0422b387d | refs/heads/master | 2021-04-19T06:04:23.658893 | 2020-03-26T06:59:50 | 2020-03-26T06:59:50 | 249,585,770 | 0 | 0 | MIT | 2020-03-26T01:49:01 | 2020-03-24T01:42:04 | Python | UTF-8 | Python | false | false | 2,239 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import re
import sys
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
def get_version(*file_paths):
"""Retrieves the version from django_dj_plugin/__init__.py"""
filename = os.path.join(os.path.dirname(__fil... | [
"daijian1@qq.com"
] | daijian1@qq.com |
4e88beb03ff92ac889515bdb3172e288f961c20b | c5d87c7f25e3fe9b17c1e88993b0ed6831e52acb | /Django_HelpWord/mysite3/upload/templates/__init__.py | 7c35217eb0fb5679a9ba58649325514db58ce182 | [] | no_license | GIS90/python_base_use | e55d55f9df505dac45ddd332fb65dcd08e8e531f | 7166ca85975bb7c56a5fbb6b723fd8300c4dd5d1 | refs/heads/master | 2020-04-02T08:33:49.461307 | 2018-10-23T03:33:41 | 2018-10-23T03:33:41 | 154,249,857 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | # -*- coding: utf-8 -*-
"""
------------------------------------------------
describe:
------------------------------------------------
"""
__version__ = "v.10"
__author__ = "PyGo"
__time__ = "2017/3/30"
if __name__ == '__main__':
pass
| [
"mingliang.gao@qunar.com"
] | mingliang.gao@qunar.com |
3937e4a4be12d7fa734792ababc9590adee4697e | aeb40bfa5a685bb739e818e7ea906a748795ba59 | /data/management/commands/insert_dynamic_data.py | c6bd4bddbe9e2c54d30ac01bfb78a64a3ab95d03 | [] | no_license | jaebradley/nba_persistence | d1be548967266b4af09625fc140ce9fb4cd88a25 | 177129ad195c07dc0ff93a6c2c8f7b34770da116 | refs/heads/master | 2021-01-18T23:56:52.512661 | 2017-02-16T21:17:05 | 2017-02-16T21:17:05 | 48,635,050 | 10 | 2 | null | 2016-09-23T02:44:36 | 2015-12-27T06:14:25 | JavaScript | UTF-8 | Python | false | false | 474 | py | from django.core.management.base import BaseCommand
from data.inserters.dynamic import insert_players, insert_games, insert_box_scores
class Command(BaseCommand):
def __init__(self, stdout=None, stderr=None, no_color=False):
super(Command, self).__init__(stdout, stderr, no_color)
def handle(self, *a... | [
"jae.b.bradley@gmail.com"
] | jae.b.bradley@gmail.com |
7d0ac5540cd33b68e73c38be260d8192538f2a02 | 2f2e9cd97d65751757ae0a92e8bb882f3cbc5b5b | /1550.存在连续三个奇数的数组.py | 4b37608348efa8136e2a1c0fa66108f9a3ea9483 | [] | no_license | mqinbin/python_leetcode | 77f0a75eb29f8d2f9a789958e0120a7df4d0d0d3 | 73e0c81867f38fdf4051d8f58d0d3dc245be081e | refs/heads/main | 2023-03-10T18:27:36.421262 | 2021-02-25T07:24:10 | 2021-02-25T07:24:10 | 314,410,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #
# @lc app=leetcode.cn id=1550 lang=python3
#
# [1550] 存在连续三个奇数的数组
#
# @lc code=start
class Solution:
def threeConsecutiveOdds(self, arr: List[int]) -> bool:
odd_count = 0
for e in arr:
if e%2:
odd_count +=1
if odd_count ==3:
return T... | [
"mqinbin@gmail.com"
] | mqinbin@gmail.com |
287e89cd4c348d4ddc8853c3630fe6bc44339f34 | 719e7b35f2b1c3196ff8084b5c5c46cbd2a22f5f | /setup.py | c11bcae02e8fed764919d18313cdb3ad23794389 | [
"MIT"
] | permissive | noobermin/pynoob3a | 72817b87dd7f96652487d139f42373adac820dca | fa8b6650ac286b52803b98b6b596f3cdc9db87cb | refs/heads/master | 2021-02-09T14:07:35.912782 | 2020-03-02T05:48:52 | 2020-03-02T05:48:52 | 244,291,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from setuptools import setup
setup(name='pynoob3a',
version='0.0.1',
description='dumb binary format',
author='noobermin',
author_email='ngirmang@protonmail.com',
license='MIT',
packages=['noob3a'],
zip_safe=False);
| [
"ngirmang.1@osu.edu"
] | ngirmang.1@osu.edu |
be85893dfa6895326d2afa7685f39f168fc17af4 | d596796c1488ea6dc67fb2030e2fd1fbf45e54cb | /free/index.py | 7bccfb1fd092f52382826ca46e34b1e4c277d164 | [] | no_license | zerc/draft | 83aad5b08fc1d7569295aa595821f117cb29decd | a972f1c341c711530c0894b5340a6639b206ec41 | refs/heads/master | 2021-01-15T23:02:10.509905 | 2010-06-22T16:15:56 | 2010-06-22T16:15:56 | 730,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
# zerc.ru
from os import popen
def get_free():
s = tuple(popen('free -m').readlines()[1].split()[1:4])
return s
def index():
html = """
<html>
<head><title>web free</title></head>
<body>
<style type="text/css">
body {margin:0;padding:0;background:#aeaeae;color:#ffffff;}
.... | [
"zero13cool@yandex.ru"
] | zero13cool@yandex.ru |
2be97047e2001fdc961703b5402a777176f20e26 | 9e4e7b9d3ad410ea84310d1a93122f6817f59b5e | /bin/edsig | d7d9c4fe903836407868143f4c31d604a3624a26 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] | permissive | Sigterm-no/python-ed25519 | 42105735c53eba865c5b0430eee2487f40b73fea | 15237f3536b12022c30553a857524768a2d904c7 | refs/heads/master | 2021-01-11T05:08:06.617637 | 2014-03-19T23:21:30 | 2014-03-19T23:21:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | #! /usr/bin/python
import os, sys
import ed25519
from hashlib import sha256
def help():
print """\
Usage: (ed25519 version %s)
edsig generate [STEM]
creates keypair, writes to 'STEM.signing.key' and 'STEM.verifying.key'
default is to 'signing.key' and 'verifying.key'
edsig sign (signing.key|keyfile) mes... | [
"warner@lothar.com"
] | warner@lothar.com | |
cade8d6acd2d53c2ab00934deb72f9baef388b31 | 7f760365660de815db319d20bb05e1fbd5fc8df4 | /server/app/outputs/dmx.py | 150ff08a6742385ae301ebc0a725eae9f721682f | [
"MIT"
] | permissive | BasementCat/audio-reactive-led-strip | db5ac94eb3c43dfdb6a79501d6d8711579d41c51 | a98bac8e04c0fae3022de9f5086914dc1f1192d8 | refs/heads/master | 2022-07-21T12:39:06.257207 | 2022-07-14T01:12:08 | 2022-07-14T01:12:08 | 216,214,804 | 2 | 0 | MIT | 2019-10-19T13:58:07 | 2019-10-19T13:58:07 | null | UTF-8 | Python | false | false | 4,487 | py | import os
import glob
import logging
import threading
import time
import subprocess
import re
from dmxpy.DmxPy import DmxPy
from app import Task
from app.lib.misc import FPSCounter
logger = logging.getLogger(__name__)
hexint = lambda v: int(v, 16)
def find_device_file__linux(vendor, product):
if not os.path.e... | [
"alec.elton@gmail.com"
] | alec.elton@gmail.com |
32e99b6d1e481856877756ea2cb6756722d16906 | 61ef327bd1d5ff6db7595221db6823c947dab42b | /FlatData/EquipmentStatExcelTable.py | e079ec5a2805f744c293cc9dd2edff8c4f954a6f | [] | no_license | Aikenfell/Blue-Archive---Asset-Downloader | 88e419686a80b20b57a10a3033c23c80f86d6bf9 | 92f93ffbdb81a47cef58c61ec82092234eae8eec | refs/heads/main | 2023-09-06T03:56:50.998141 | 2021-11-19T12:41:58 | 2021-11-19T12:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FlatData
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class EquipmentStatExcelTable(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffer... | [
"rkolbe96@gmail.com"
] | rkolbe96@gmail.com |
30d2d8bf4d1bd7d1f4a8095bfd4336d191319e46 | bbe5b336150c38f480a4c3a3a15e1d65a7dfc7d1 | /tests/app/api/business/validators/application_validator/test_validate_documents.py | 319034a3aff6b2c513ba2c418c2b4794d506282a | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | AusDTO/dto-digitalmarketplace-api | 9135785c205fe04bbb07782c561c5c5f8cf8417d | af1f0c8979406f80223ab7a68266563abd80b2f4 | refs/heads/master | 2022-07-31T04:12:36.364555 | 2022-07-07T04:31:41 | 2022-07-07T04:31:41 | 62,025,672 | 6 | 7 | MIT | 2022-05-23T23:32:37 | 2016-06-27T04:34:37 | Python | UTF-8 | Python | false | false | 1,755 | py | from app.api.business.validators import ApplicationValidator
from app.models import Application
def test_can_get_error_when_no_documents():
application = Application(
data={}
)
errors = ApplicationValidator(application).validate_documents()
assert len(errors) == 1
def test_can_get_error_for... | [
"noreply@github.com"
] | AusDTO.noreply@github.com |
e24f4a4008a9f2edade00871369f275ca42462dd | 5b9bce9fdfc13848b6bacc73741f6e8fc5a4ae99 | /client/client.py | eb5be712516765751211389e5083d166429114f2 | [] | no_license | ContinuumBridge/bridge_admin | 4a5a036f4e0cb4e96366a85524aef0c33e82a7ff | efd4148a55221f74cb8a11139a8416d1af453408 | refs/heads/master | 2022-03-20T15:00:01.422221 | 2020-01-04T11:08:17 | 2020-01-04T11:08:17 | 17,435,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,006 | py |
import httplib
import json
import requests
import websocket
import time
import signal
from twisted.internet import threads
from twisted.internet import defer
from twisted.internet import reactor
#CID 64 on Production. Key: 6b8b20b7r2oPxGmlwjoFuJD/iLKCPTkBOW/ZR9F2vnyxGd1pHLVVime+srwxoOTP
#CB_ADDRESS = "porta... | [
"peter.claydon@continuumbridge.com"
] | peter.claydon@continuumbridge.com |
41faa5af6577c42cbb30f57da6441bb4991e463c | e6f62843d8e7f580a8f2993988cde930a2f5daf2 | /final_project/work_classifiers.py | b665de4b121586dd97b0848c3555e197199060cd | [] | no_license | diegoami/ud120-projects | 614002d317425139948a254293c46a335c1b1e22 | 2a573ea095ac456843c203592d7175800d49c938 | refs/heads/master | 2021-01-20T00:27:48.939087 | 2017-06-15T19:07:59 | 2017-06-15T19:07:59 | 89,133,359 | 0 | 0 | null | 2017-04-23T10:17:18 | 2017-04-23T10:17:18 | null | UTF-8 | Python | false | false | 854 | py |
import numpy as np
def gaussian_classificator(features_train, labels_train):
from sklearn.naive_bayes import GaussianNB
clf = GaussianNB()
clf.fit(features_train, np.ravel(labels_train))
return clf
def tree_classificator(features_train, labels_train, **kwargs):
from sklearn import tree
clf =... | [
"diego.amicabile@gmail.com"
] | diego.amicabile@gmail.com |
0d03f4997dff14b4117c84cbf186adcb19848f23 | 75ed4fe365819c9cb64522bd2bcb1590295dd4a8 | /login/jwt_practice.py | 5a325c3daf7ee8c0583f4b3065523263105acef1 | [] | no_license | thals7/web | 2aaa36fecf44851d65031dd0c9f9062748bfb3f5 | f2c9aca7b3cf0116985fe17190a1274264bdd2c1 | refs/heads/master | 2023-02-26T08:30:49.663381 | 2021-01-29T00:48:50 | 2021-01-29T00:48:50 | 298,844,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # https://pyjwt.readthedocs.io/en/latest/usage.html#encoding-decoding-tokens-with-rs256-rsa
import jwt
key = "thisissecret"
encoded = jwt.encode({"some": "payload","like":"user_id"}, key, algorithm="HS256")
print(encoded)
decoded = jwt.decode(encoded, key, algorithms="HS256")
print(decoded) | [
"thals_7@naver.com"
] | thals_7@naver.com |
cabda38c0a0fe289c78c7072a6bd20d7cfacf53c | 968aedcc9e58d718bb3895f89de5292d8caabe52 | /leetcode/Hash-Table/valid-sudoku.py | 0a49bd177048dcb0d60662a3ac173ff7e1202e64 | [] | no_license | iCodeIN/competitive-programming-5 | 0729c9f09f12543455121fc633b051eb68529152 | 30bfafb6a7727c9305b22933b63d9d645182c633 | refs/heads/master | 2022-04-14T08:50:19.568207 | 2019-09-26T14:49:56 | 2019-09-26T14:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,208 | py | class Solution:
def isValidSudoku(self, board):
"""
https://leetcode.com/problems/valid-sudoku/description/
:type board: List[List[str]]
:rtype: bool
"""
num = {"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,".":0}
for i in board:
num = {"1"... | [
"10962267+arora-aditya@users.noreply.github.com"
] | 10962267+arora-aditya@users.noreply.github.com |
a7d2a235ea6e49e5cb3cfec57704cd6952825467 | 84c9a6fb5e18741f14a55d0d737e2a556383770d | /venv/Lib/site-packages/w3af/core/data/misc/response_cache_key.py | 14d57dbdfc5945b3463fb0df2398082606620c5c | [] | no_license | AravindChan96/Vulcan | 638a1db2f84df08bc50dd76c7f142014d529fbec | 5548a6f36f04108ac1a6ed8e707930f9821f0bd9 | refs/heads/master | 2022-11-05T15:05:54.224578 | 2020-06-19T20:44:14 | 2020-06-19T20:44:14 | 273,396,348 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,841 | py | """
response_cache_key.py
Copyright 2019 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the ho... | [
"aravindchan.96@gmail.com"
] | aravindchan.96@gmail.com |
1e1ef944556644234b01de801bc01eac0e0e4c2e | 48637665afeacae58d99e5203524ed8f2313d649 | /drawBot/context/gifContext.py | 2beff8238f2b3c31daaab1128958396ab581b1af | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | bitforks/drawbot | 35853a63d2d685cda7789d2dc3ca812bad0cc6d0 | e66f12cf1a4fdd412d27d3b9f36092112b6cbd4f | refs/heads/master | 2021-01-20T16:44:45.084558 | 2015-09-17T14:40:19 | 2015-09-17T14:40:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | import AppKit
import Quartz
import os
import tempfile
import subprocess
from imageContext import ImageContext
gifsiclePath = os.path.join(os.path.dirname(__file__), "tools", "gifsicle")
if not os.path.exists(gifsiclePath):
gifsiclePath = os.path.join(os.getcwd(), "tools", "gifsicle")
class GifContext(ImageCont... | [
"frederik@typemytype.com"
] | frederik@typemytype.com |
bda72a45c56ce6b1c4ea927d9a8567f2951fdb18 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_sobers.py | 86f6f5f194a353070e1f9fe678676c2bc8cd808f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#calss header
class _SOBERS():
def __init__(self,):
self.name = "SOBERS"
self.definitions = sober
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['sober']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
e8e3d8de20abef556139aa2fe44ad71d69297b8a | ba3231b25c60b73ca504cd788efa40d92cf9c037 | /nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_dospolicy_binding.py | c16c8f0e9fb625627902597e36abce766c98e1f5 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhuweigh/vpx13 | f6d559ae85341e56472e3592cbc67062dac34b93 | b36caa3729d3ca5515fa725f2d91aeaabdb2daa9 | refs/heads/master | 2020-07-04T22:15:16.595728 | 2019-09-20T00:19:56 | 2019-09-20T00:19:56 | 202,435,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,292 | py | #
# Copyright (c) 2008-2019 Citrix Systems, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | [
"zhuwei@xsky.com"
] | zhuwei@xsky.com |
e4eb072d8f1eeaaa4cdf7f001effd5d4efd96d64 | 3f84f51751c4191bb81c9df7094578461fb12a2d | /AtcoderProblems/ABC/ABC063/C.py | a0d1edc24569a3ff1337dee5f6488331c804eeb4 | [] | no_license | rikukawamura/atcoder | 7ff49f1bd8534b99d87fe81ef950e1ba77eee8b8 | 09c0cfe3ce25be56d338614a29e996f4106117cd | refs/heads/master | 2023-08-13T21:21:19.058219 | 2021-09-28T10:02:42 | 2021-09-28T10:02:42 | 329,206,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | import pdb
import itertools
N = int(input())
S = sorted([int(input()) for _ in range(N)], reverse=False)
non_ten = []
ten = []
for s in S:
if s % 10 == 0:
ten.append(s)
else:
non_ten.append(s)
ten = sorted(ten)
non_ten = sorted(non_ten)
total = sum(ten)+sum(non_ten)
'''
1. 総合点が10の倍数且つ,10の倍... | [
"49993650+rikukawamura@users.noreply.github.com"
] | 49993650+rikukawamura@users.noreply.github.com |
50899501d48aefbf8069736a20d4adf832d5c014 | 195f19578f3eea3f8c3e3a780655ce2f8dd009d0 | /caixa_racional/views.py | 11f834c7fb9fdce95b8fa501e59832eee8e6a44b | [] | no_license | osmarsalesjr/TheBeeFreshTeam | 5b68c26d413940badc0814fb5c4cfc953b4fb695 | 9ca839083d903236054a813b265b0d09f34cb288 | refs/heads/master | 2022-12-17T11:22:30.482340 | 2019-07-14T00:11:50 | 2019-07-14T00:11:50 | 194,682,998 | 0 | 0 | null | 2022-12-08T01:47:50 | 2019-07-01T13:57:06 | Python | UTF-8 | Python | false | false | 1,240 | py | from rest_framework.response import Response
from rest_framework.reverse import reverse
from rest_framework import generics
from caixa_racional.models import Temperatura, BaseDeDados
from caixa_racional.serializers import TemperaturaSerializer, BaseDeDadosSerializer
class TemperaturaList(generics.ListCreateAPIView):... | [
"osmarsalesjr@gmail.com"
] | osmarsalesjr@gmail.com |
c44e31915ea2575dc522eb49e10a41f4cfbe1772 | 308d75172c81bddb45c82429e4ddb3e09a3d220e | /01-OpencvPythonTutorial/ch22/06-hist-normalized.py | 2040ee82d34de1984caff9ba18df6ac7a162de4c | [] | no_license | Damon0626/OpenCV3ForBeigner | 956f2163249b5a3d1426089e3650695467a0427f | b3e8c5c201b6adabe067c9f2d1f614d93dcef447 | refs/heads/master | 2020-04-04T16:49:32.806739 | 2019-02-21T13:54:12 | 2019-02-21T13:54:12 | 156,095,139 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # -*-coding:utf-8-*-
# @Author: Damon0626
# @Time : 18-12-16 下午11:25
# @Email : wwymsn@163.com
# @Software: PyCharm
import cv2
import numpy as np
import matplotlib.pyplot as plt
image = cv2.imread('contrast75.png')
hist, bins = np.histogram(image.flatten(), 256, [0, 256])
cdf = hist.cumsum() # 累积分布
cdf_mormalized... | [
"2404448093@qq.com"
] | 2404448093@qq.com |
85e05e3c33ca86dc0280e5c8edbaa2ac143212c9 | 6930e9d3372e83cf43a47ae8ad165f83a218aee2 | /capture/noworkflow/now/utils/bytecode/f_trace.py | 93e8b89a211b8519aa8d55ca65e360e7e73c8d43 | [
"MIT"
] | permissive | hugobowne/noworkflow | 02ab47a8b3377ee56f1e7c4552a8dbcb3d15e5f0 | 333cbe274348428f1a9514fe81406f8416036845 | refs/heads/master | 2021-01-17T20:27:16.524245 | 2015-11-18T23:53:28 | 2015-11-18T23:53:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | # Copyright (c) 2015 Universidade Federal Fluminense (UFF)
# Copyright (c) 2015 Polytechnic Institute of New York University.
# This file is part of noWorkflow.
# Please, consult the license terms in the LICENSE file.
""" Define f_trace related interpreters and functions """
# pylint: disable=R0902
from __future__ impo... | [
"joaofelipenp@gmail.com"
] | joaofelipenp@gmail.com |
84272d0c64a8128d488da1959bb8af7afbd979c7 | b580fd482147e54b1ca4f58b647fab016efa3855 | /host_im/mount/malware-classification-master/samples/not/sample_good807.py | 55e1c22bfa14474792c197d5bc8d4af90bf8e645 | [] | no_license | Barnsa/Dissertation | 1079c8d8d2c660253543452d4c32799b6081cfc5 | b7df70abb3f38dfd446795a0a40cf5426e27130e | refs/heads/master | 2022-05-28T12:35:28.406674 | 2020-05-05T08:37:16 | 2020-05-05T08:37:16 | 138,386,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import stringprep
import difflib
import math
import array
import textwrap
import datetime
import readline
import random
nterms = 618
n1, n2 = 0, 1
if nterms <= 0:
print("Please provide a positive integer.")
elif nterms == 1:
print("Fibonacci sequence upto", nterms, ":")
print(n1)
else:
print("Fibonacci sequence:")
... | [
"barnsa@uni.coventry.ac.uk"
] | barnsa@uni.coventry.ac.uk |
7012967cb00baae4f581bb049013311b240da290 | 61bc53ec90d92aece91753ec5ec9d25e0879a1e2 | /content/pythia/pythia/tasks/vqa/textvqa/dataset.py | c4bc2ee38892409d39789dc107a8a061951eb380 | [
"BSD-3-Clause"
] | permissive | aluka1994/textvqa | 08a16c9b21ea9c5eca05f5d4d1763c190d2d7275 | 694cb2be08def519ba73be78e34664afa2c607b5 | refs/heads/master | 2021-05-26T23:44:21.973827 | 2020-04-08T22:05:58 | 2020-04-08T22:05:58 | 254,190,630 | 0 | 0 | MIT | 2020-04-08T20:14:11 | 2020-04-08T20:14:10 | null | UTF-8 | Python | false | false | 1,047 | py | # Copyright (c) Facebook, Inc. and its affiliates.
from pythia.tasks.vqa.vizwiz import VizWizDataset
from pythia.utils.text_utils import word_tokenize
class TextVQADataset(VizWizDataset):
def __init__(self, dataset_type, imdb_file_index, config, *args, **kwargs):
super().__init__(dataset_type, imdb_file_i... | [
"anandkumar@instance-1.us-central1-a.c.andromanit.internal"
] | anandkumar@instance-1.us-central1-a.c.andromanit.internal |
a355eeec111864ef7af555c51e8460f11f29c365 | 0581988cad7e0ea62a638d551548e409af1e5dc1 | /20200529/UI_PPT2PDF/myUI_ppt2pdf.py | cc3732bbc0196e33f92063a50d906881b836f73f | [] | no_license | Aimee888/python-20200513 | 7c1dff7d7f0fdea08e12735efeb2e889fedeee10 | 578c388be5582dc7f1556f95168adf0399b7ea1f | refs/heads/master | 2023-01-06T10:21:35.014780 | 2020-11-03T01:07:04 | 2020-11-03T01:07:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | #!/usr/bin/env python
# _*_ coding: UTF-8 _*_
"""=================================================
@Project -> File : six-dialog_design -> myUI_ppt2pdf.py
@IDE : PyCharm
@Author : Aimee
@Date : 2020/5/29 17:11
@Desc :
================================================="""
import sys
from PyQt5.QtWidgets imp... | [
"961745931@qq.com"
] | 961745931@qq.com |
673df8917fcffa493359510bf3037a32df3e67b3 | 70bc77336e4544031ad7d7d29a2e964ef2626076 | /ui/RepositoryTreeObject.py | 981473acc6c301a58ddafa660cc03bbf33b220b2 | [] | no_license | DronMDF/vanadis | 9af7a8c9281bf0eb17df593f5c9fc9345e474612 | de692207bbd127c5a9952e3144653492a0ba969f | refs/heads/master | 2020-04-17T08:11:18.411429 | 2016-12-21T20:50:05 | 2016-12-21T20:50:05 | 66,539,179 | 1 | 0 | null | 2016-12-21T20:50:06 | 2016-08-25T08:20:03 | Python | UTF-8 | Python | false | false | 532 | py | from pathlib import Path
from ui import RepositoryId
class RepositoryTreeObject:
''' This is a tree object (blob or tree) '''
def __init__(self, entry, prefix, repo=None):
self.entry = entry
self.prefix = prefix
self.repo = repo
def id(self):
return RepositoryId(self.entry.id)
def path(self):
return s... | [
"dron.valyaev@gmail.com"
] | dron.valyaev@gmail.com |
8be2f70f024036be4e4f7cc27126fd302cb87bd6 | a4fd9f5d765351fb771455db18290e48affc3747 | /password_generator/migrations/0001_initial.py | 6cba7dcf9ebd26fb59d017987760ec2b182b24db | [
"MIT"
] | permissive | rwgeaston/django-password-generator | a7aa9627c721b8a0f5ba66149d681c333f79da59 | 62607905bafc111802c61223a1c3c34aa927c9fc | refs/heads/master | 2020-03-28T18:50:35.512795 | 2018-09-15T22:03:23 | 2018-09-15T22:03:23 | 148,917,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | # Generated by Django 2.0.6 on 2018-09-15 15:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Word',
fields=[
... | [
"rwgeaston@gmail.com"
] | rwgeaston@gmail.com |
0a87c613070041cd6ca47ab39268421df5ed335a | f06680ed95c01f50f0b484ffa81a5baea022282d | /data/parse_wiki.py | 80f18cd87ef5eb7edc85c99419d97b5428901daf | [
"MIT"
] | permissive | mohit1997/DeepZip | d3980935517b311b06d39a429546de9f024a73e5 | 8c35502397a1488c89fa282ed033cc9d5fd4b4dc | refs/heads/master | 2022-03-16T02:17:55.479656 | 2022-03-04T22:09:48 | 2022-03-04T22:09:48 | 141,168,415 | 126 | 28 | null | 2019-04-23T23:42:20 | 2018-07-16T17:03:11 | Python | UTF-8 | Python | false | false | 1,190 | py | import io
import sys
import numpy as np
import json
import argparse
parser = argparse.ArgumentParser(description='Input')
parser.add_argument('-param_file', action='store', dest='param_file',
help='param file file', default='params.json')
parser.add_argument('-input', action='store', dest='input_fi... | [
"goyal.mohit999@gmail.com"
] | goyal.mohit999@gmail.com |
bd88a28726322d9e402e7e14401d7b7c2c0e8786 | 109ac2891c5af60cc0a5c9e988048315314014b3 | /Data Structure ZJU/printN2.py | 719f3203bd1e631382a9a080b659424415e69ebe | [] | no_license | francislinking/PTA-codes | 485c6019a458fa1705dde6f84a69b33c0bd7de81 | fea40800c6813300fe56f8b14f159d971b745a6b | refs/heads/master | 2021-07-10T14:50:16.643802 | 2021-05-02T02:16:35 | 2021-05-02T02:16:35 | 244,085,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 21 18:48:24 2020
@author: Deng Jie
"""
def printN( N ):
if N == 1:
print(1)
else:
printN( N-1 )
print(N)
n = eval(input())
printN(n) | [
"francis.linking@gmail.com"
] | francis.linking@gmail.com |
fd3e9d3a74cc896ead349afb4520114128eef17e | fa81f1c5039da7554277a87d334cbee675e91995 | /yelp/migrations/0002_userreview.py | 7f9ee9895e7e1142e55b6537075c7be7a23e96e6 | [] | no_license | hldai/labelel | b5eaaac5cef73ccf6941ffed474e8b544c76a944 | 87c36972d1d7f4c1b146c185bcdee5207c030b8d | refs/heads/master | 2020-12-30T13:39:45.673434 | 2017-07-09T06:20:32 | 2017-07-09T06:20:32 | 91,239,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.7 on 2017-05-17 08:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('yelp', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"hldai@outlook.com"
] | hldai@outlook.com |
d26db268212730243e31afef9dac80f44edda814 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/store/views_20211010181824.py | 5404e2083299cd5fa19e695dd5bbf5bc15364268 | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from django.shortcuts import get_object_or_404, render
from store.models import Product
from cate import member
# Create your views here.
def store(request, category_slug=None):
categories = get_object_or_404(Category, slug=category_slug)
products = Product.objects.all().filter(is_available=True)
products... | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
a7e1a5f16a4ea6519e2f6f5df35e23b32f5345ba | 9a486a87e028303a551fbd0d1e1b6b650387ea14 | /parse_tlog/guide_flow.py | 2cebc5bd734a8a21dc044b2fbc02dd903521f052 | [] | no_license | shanlihou/pythonFunc | 7b8e7064fddd4522e492c915c086cc6c5abc6eec | 646920256551ccd8335446dd4fe11aa4b9916f64 | refs/heads/master | 2022-08-24T20:33:12.287464 | 2022-07-21T12:00:10 | 2022-07-21T12:00:10 | 24,311,639 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,067 | py | # coding:utf-8
import utils
import const
import LogOne
import csv_output
def guide_flow():
fname = utils.filter_from_origin('GuideFlow')
id_dic = {}
avatar_count = utils.get_avatar_count()
with utils.utf8_open(fname) as fr:
for line in fr:
lo = LogOne.get_log_from_line(line)
... | [
"shanlihou@gmail.com"
] | shanlihou@gmail.com |
4d2f1b947c37bea509fec0603fec028f2816c5f7 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/level_head/aws_company_right_program.py | a269a3cf60adfad0ae305533decf4c19f884f035 | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | import srt_translate as st #must use python 3
#import os
#subdirec = 'home/ben/test'
#os.chdir(test)
# Replace the subscriptionKey string value with your valid subscription key.
subscriptionKey = 'a3487bf0249992cc26cd5aaf14d5f0b0'
# Language codes and names:
# English: en
# Greek: el
# More: http://www.emreakkas.com... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
1ff640fe7e36b1fa053268a8444e4d290cd90c50 | f514f2746c69726ac38f8e8679eb2b646d11ec91 | /dota2_stats/views/matches.py | 857690b007094ca61e06f0758e261b316c1b1ecb | [] | no_license | bobbyrward/dota2_stats | 871b99ca6550496acc95ff44947a23566708861f | b3d2e7fbe4712dcb08f75e3a15b358a8388711a3 | refs/heads/master | 2021-01-19T03:23:54.158490 | 2013-02-15T22:56:08 | 2013-02-15T22:56:08 | 8,169,782 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from pyramid.view import view_config
from dota2_stats.models import DBSession
from dota2_stats.models import Match
from dota2_stats.models import PlayerMatch
from dota2_stats.models import Player
from dota2_stats.models import Hero
from dota2_stats.views.common import template_params
@view_config(route_name='recent_... | [
"bobbyrward@gmail.com"
] | bobbyrward@gmail.com |
93f9ff7f0c20a17eac24bdb842d09cdd06d72f77 | 94bfb1346a9ce4cf6ca8bfeeb5194b7a467731a6 | /aclark/db/migrations/0031_siteconfiguration_company.py | d98d10bc777b9bace6f33643961cd5d7281078eb | [
"MIT"
] | permissive | aclark4life/aclarknet-best-pro | 4006cad37c2eec166a98a73e988b9b490a10e5cb | e256bfdd63ad4445bf0a75ef0b91f6e1fd2479ea | refs/heads/master | 2023-03-01T09:10:04.041913 | 2020-12-01T18:40:07 | 2020-12-01T18:40:07 | 140,634,961 | 0 | 0 | MIT | 2021-02-10T01:57:38 | 2018-07-11T22:49:33 | CSS | UTF-8 | Python | false | false | 598 | py | # Generated by Django 2.2.3 on 2019-07-30 18:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [("db", "0030_company")]
operations = [
migrations.AddField(
model_name="siteconfiguration",
name="... | [
"aclark@aclark.net"
] | aclark@aclark.net |
87ef5d8ed682d518f47eb6e1e03850066d251895 | ff268c31f10cbd3e1c44261ca65a45c88ed3dae5 | /Transfer Learning/Code/classify.py | 2670af12d79b9e3e4f9dd6f648aa8ad8c6399325 | [
"MIT"
] | permissive | gyani91/Machine-Learning | 6642c65359ed48b212a0f4296f5ce908ed6e95e3 | 2fabaa6386d3be24e56aaa9a19d58cd19d225198 | refs/heads/master | 2023-05-27T10:25:55.222053 | 2023-05-15T18:12:45 | 2023-05-15T18:12:45 | 114,811,646 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | import tensorflow as tf
from resize import *
from convert import *
#IMAGE_PATH = "Classify/panda.jpg"
TRAINED_GRAPH = "sets_graph.pb"
LABELS = "label.txt"
FINAL_TENSOR_NAME = "final_tensor"
def classify(IMAGE_PATH):
# Convert the image to JPEG
converted_image = convert(IMAGE_PATH)
# Resize the image
... | [
"noreply@github.com"
] | gyani91.noreply@github.com |
61d21cd5046836892b809cc0fc7f1a977605c227 | 5c2824ff58eb8a57d71b3c24873c4695c7c3a2ba | /Fundamentals_Final_Exam/03.Problem_Three.py | 1e7d798f28b43c1d3e3e8e862cdef755df0fecb0 | [] | no_license | svetoslavastoyanova/Python_Fundamentals_Mid_and_Final_Exams | e7ff6677bc762b24262019a0ebb0ed6a5952c50d | 781e03fd5f540d55b41fbe6ef1d722d39ed62176 | refs/heads/main | 2023-04-17T17:35:38.894988 | 2021-05-02T12:28:26 | 2021-05-02T12:28:26 | 349,411,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | line = input()
minutes = int(input())
seconds = int(input())
total_time = 0
text = ""
while line != "Finish":
total_time = minutes*60 + seconds
if total_time < 55:
text = "Gold"
elif 55 <= total_time <= 85:
text = "Silver"
elif 85 < total_time <= 120:
text = "Bronze"
line =... | [
"svetoslava_stoyanova92@abv.bg"
] | svetoslava_stoyanova92@abv.bg |
16a3a8560d14738c480e32368a3b4c2b7f240037 | fd474c0c0df7de6c09f802586068a2069222aadd | /reviewboard/reviews/evolutions/file_attachment_comment_extra_data.py | 86e3d2fc9eb496b260de4b12d19e98ab74fb6221 | [
"MIT"
] | permissive | pombredanne/reviewboard | a2970fa18cfff4b15adfe65fd0098287d73c650e | 15f1d7236ec7a5cb4778ebfeb8b45d13a46ac71d | refs/heads/master | 2022-03-09T22:24:19.951964 | 2022-02-09T07:12:23 | 2022-02-09T07:12:23 | 2,324,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from django_evolution.mutations import AddField
from djblets.db.fields import JSONField
MUTATIONS = [
AddField('FileAttachmentComment', 'extra_data', JSONField, null=True)
]
| [
"chipx86@chipx86.com"
] | chipx86@chipx86.com |
ec8da544cd59eff81c89e4f327ad9a081c8125d6 | b45d33675b38fd3bd15fb2f73a29851a3cc4037d | /0x01-python-if_else_loops_functions/1-last_digit.py | 6fd126b08396c288541339756d823b1a022c70f4 | [] | no_license | angelah1994/holbertonschool-higher_level_programming-1 | 38b8ca1859af2ec08aa50a862ecf37cabf993b46 | 61ab83696ed45686456317c485f7adb7220654ff | refs/heads/master | 2023-03-16T04:08:44.868909 | 2020-05-15T15:40:50 | 2020-05-15T15:40:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | #!/usr/bin/python3
import random
number = random.randint(-10000, 10000)
last = abs(number) % 10
if number < 10:
last = last * -1
if last > 5:
print('Last digit of {} is {} and is greater than 5'. format(number, last))
elif last < 6 and last != 0:
str = 'Last digit of {} is {} and is less than 6 and not 0'
... | [
"amendez72@misena.edu.co"
] | amendez72@misena.edu.co |
e5ec7d80a9bd8ec0d31e8695546aa7bfb197c39d | 209a7a4023a9a79693ec1f6e8045646496d1ea71 | /COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/arrays/boolean/test_reduction.py | 7ac6c13a933d640f3b303c790f7220a60ada525b | [
"MIT"
] | permissive | anzhao920/MicrosoftProject15_Invictus | 5e2347015411bbffbdf0ceb059df854661fb240c | 15f44eebb09561acbbe7b6730dfadf141e4c166d | refs/heads/main | 2023-04-16T13:24:39.332492 | 2021-04-27T00:47:13 | 2021-04-27T00:47:13 | 361,913,170 | 0 | 0 | MIT | 2021-04-26T22:41:56 | 2021-04-26T22:41:55 | null | UTF-8 | Python | false | false | 2,077 | py | import numpy as np
import pytest
import pandas as pd
@pytest.fixture
def data():
return pd.array(
[True, False] * 4 + [np.nan] + [True, False] * 44 + [np.nan] + [True, False],
dtype="boolean",
)
@pytest.mark.parametrize(
"values, exp_any, exp_all, exp_any_noskip, exp_all_... | [
"ana.kapros@yahoo.ro"
] | ana.kapros@yahoo.ro |
1029307e17ff37e33f2b89833d70f7879f9f5e45 | 60dbecafad0eb3baf67265ebda5c6230dfc99088 | /old_plotter_files/CLUSTER_PLOT_NEW.py | d4f5332e0882a5300eb2ffad687c5550409349dd | [] | no_license | shanto268/NaSch_CA_Traffic_Flow_Analysis_Software | fbddadd70a70458b96a9a12c5a1c731d29266e34 | d9065df9b8288790aa688bf5bf4c30750ba2889c | refs/heads/master | 2020-09-20T01:47:41.301182 | 2020-05-17T03:28:20 | 2020-05-17T03:28:20 | 224,346,779 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,044 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Sep 4 15:13:35 2019
@author: Owner
"""
import matplotlib.pyplot as plt
import csv
def plot1(fname):
fn = fname
nn = fn.split('.')
fr = 'processed_' + str(fname) + '.txt'
#dnewdata = "0.0, 0.0, 0.0, 0.0, 0, 0.0, 0.0, 0.0... | [
"sadman-ahmed.shanto@ttu.edu"
] | sadman-ahmed.shanto@ttu.edu |
1f36a514482352b15f26407d72ee9ba6027dac94 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/anagram/09ab13ac53e54a21819b45d33c272459.py | 30c00dfe1a41d1c24e13263850e15a2fbd439762 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 394 | py | def detect_anagrams(src, words):
ret = []
t1 = sort_string(src)
for wd in words:
t2 = sort_string(wd)
if t1 == t2 and src.lower() != wd.lower():
ret.append(wd)
return ret
def sort_string(st):
ls = []
ret = ''
for c in range(len(st)):
ls.append((st[c]).... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
92b8cb7b47b9ee887f6ae8c34067590019668fc1 | 77ec9edf40b34b48477a627d149b6c2054b98a93 | /abc_188_d.py | 07fb56df0536dddc7d23de1cb381a788cdc223e9 | [] | no_license | junkhp/atcorder | fa4eeb204e3a4ac713001ab89c205039703abc88 | 028ddf7a39534d5907232c4576a03af79feb6073 | refs/heads/main | 2023-04-11T02:15:10.088883 | 2021-04-22T07:06:06 | 2021-04-22T07:06:06 | 313,284,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | # -*- coding: utf-8 -*-
def main():
n, C = map(int, input().split())
abc_list = [list(map(int, input().split())) for i in range(n)]
keikaku_dict = {}
day_set = set()
for i, abc in enumerate(abc_list):
a = abc[0]
b = abc[1] + 1
if a in day_set:
keikaku_dict[a].appe... | [
"oshiba@m.cs.osakafu-u.ac.jp"
] | oshiba@m.cs.osakafu-u.ac.jp |
0827574c78dbf6f8411927ec8c2f368c165aded5 | 135254b8c00935efd0efd33c708ce69470e23741 | /Hard/335. Self Crossing.py | 84c1eaf99e013d78a368297707b298a1dacf7618 | [] | no_license | MinecraftDawn/LeetCode | 4974e6f96612f01e4774ecd5c30bc42dfff79467 | 0404bcce27ff363430e6ab71dbc27a69055fd261 | refs/heads/master | 2021-06-19T05:50:08.000396 | 2021-06-14T05:57:09 | 2021-06-14T05:57:09 | 188,446,485 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # Reference: https://leetcode.com/problems/self-crossing/discuss/386087/Python-simple-case-easy-to-read
class Solution:
def isSelfCrossing(self, edge: list) -> bool:
if len(edge) < 4:
return False
for i in range(3, len(edge)):
if edge[i-1] <= edge[i-3] and edge[i] >=... | [
"eric4902077@gmail.com"
] | eric4902077@gmail.com |
10f7e3c347eb30004151f1556f490b053246fe90 | d42b771f64bc2185a8c0dca0f5bcfa5a2e13c5ed | /users/migrations/0004_auto_20210401_1122.py | c6031beb0bb860b42025e95c43890b7f126098f1 | [] | no_license | bgy1060/Daily_Project | 4b38de59c09f5e3f82211a9860e1f32a8ef46b37 | bcc955bddd9941f2bc54f7577c26c1ddc6b36a48 | refs/heads/main | 2023-05-15T17:26:56.858438 | 2021-06-17T05:59:10 | 2021-06-17T05:59:10 | 353,864,798 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | # Generated by Django 3.1.7 on 2021-04-01 02:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0003_customuser_username'),
]
operations = [
migrations.RemoveField(
model_name='customuser',
name='is_staff',
... | [
"40761315+bgy1060@users.noreply.github.com"
] | 40761315+bgy1060@users.noreply.github.com |
6b0e78d50451bb8ccc11aab0a05214bf732c8bdb | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2479/60586/261474.py | a9f57d33b28f100b2c88c064fd239af6152dd305 | [] | 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 | 369 | py | def exam4():
t=int(input())
res=[]
for i in range(t):
a=list(input())
b=list(input())
for item in a:
if b.count(item)==0:
res.append(item)
for item in b:
if a.count(item)==0:
res.append(item)
res.sort()
res=list(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
210c32bffdfcbe2fea8b31746088ce7e6896645f | 2a39fe8bd203531c9bcdb470d19b80beac665eae | /read_best.py | 380979ab3e9af8575ef0e733e5486bb67e30d4e4 | [] | no_license | davidharvey1986/lenstoolTools | 7bf11af1a38700503a731c6fe7e83fdc92bf58c1 | 85bcf729603d34341f5f41c57c4e233b08055baa | refs/heads/master | 2021-09-08T14:29:52.695461 | 2018-03-10T13:54:50 | 2018-03-10T13:54:50 | 124,657,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,896 | py | from lensing.lenstool import potentiels
from write_par import *
import csv as csv
import ipdb as pdb
def read_best( filename='best.par',
pot_type='AUTO',
verbose=False,
return_limits=False,
return_image=False):
'''
Read the input into lenstool, the .p... | [
"davidharvey1986@googlemail.com"
] | davidharvey1986@googlemail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.