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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b2dde37cc4977b789da90a1f8ae064a6df17b31a | a616222ab88766f7b74e3224f3584feec558c39e | /debugging.py | e393d7fa493438d4f1a7d17678aadb96dc5a4e54 | [] | no_license | sundeepkakarla/python2 | fdf736968961f44a6e83124d0e8636ec8432ea99 | c8987fe1c86b91bdd58b6455e682d1c1fccffed8 | refs/heads/master | 2021-01-19T20:33:43.831511 | 2016-11-20T05:03:11 | 2016-11-20T05:03:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | import pdb
print "program started"
def fun():
print "hello world"
a=10
b=20
c=a+b
return c
a1=100
b1=200
c1=a1+b1
pdb.set_trace()
fun()
for i in [100,200,300]:
print i
print "program ended" | [
"sambapython@gmail.com"
] | sambapython@gmail.com |
473f6268b0d33f40822a1b546214d1eed2e035da | a3f45a3189fc0f26fd03803bc7b8f5bac17fdeee | /GUI/Generic/LayoutUtils.py | ea492297a9833d7b6e4e60f9e875a935c988ef93 | [
"MIT"
] | permissive | coldmax88/PyGUI | 128ee1259830ae1d7ab7eeabbff21bc9c5b14863 | 58c6c38ccb8e66acdf98dea6b24bef1d9a03147c | refs/heads/master | 2023-03-16T00:37:52.220603 | 2018-05-17T07:11:38 | 2018-05-17T07:11:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #---------------------------------------------------------------------------
#
# PyGUI - Utilities for use by layout components - Generic
#
#---------------------------------------------------------------------------
def equalize_components(items, flags):
if items:
if 'w' in flags:
width = max([item.width for ... | [
"greg.ewing@canterbury.ac.nz"
] | greg.ewing@canterbury.ac.nz |
ec1ef91f179269fdc772457da2e9b8369f77d66e | 05ba1957e63510fd8f4f9a3430ec6875d9ecb1cd | /.history/fh/c_20200817054707.py | 2fdfb4ccf632190b3df79d2569020061d0b7d083 | [] | no_license | cod-lab/try | 906b55dd76e77dbb052603f0a1c03ab433e2d4d1 | 3bc7e4ca482459a65b37dda12f24c0e3c71e88b6 | refs/heads/master | 2021-11-02T15:18:24.058888 | 2020-10-07T07:21:15 | 2020-10-07T07:21:15 | 245,672,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | import fileinput as fi
import requests as r
import pprint as p
import sys as s
def read_file(file,current_list):
with open(file,'r') as f:
for i, line in enumerate(f):
if 37<i<43:
current_list[i] = line
def get_repos_list(new_list):
payload = {'sort': 'created'}
respo... | [
"arihant806@gmail.com"
] | arihant806@gmail.com |
e83d5b21b0db3caa9b16bf572132c9b8a6215489 | 0fb7014e10f3e4bf771d1ec47f6f8d66cd6bb28e | /lamda fun.py | 14ed41414de959897b81f13febbcdc7fd51d617c | [] | no_license | mukund7296/Python-basic-to-advanced | 6fe0d348f8ae6996a128ba15339af61f0322a705 | dc25748c6b38b8e281fb4ddfd6eac73ce2021e2a | refs/heads/master | 2020-08-03T01:45:24.891767 | 2019-09-29T02:09:57 | 2019-09-29T02:09:57 | 211,587,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | def pow(x):
return x**3
print("Power of Number is :-",pow(5))
m=lambda a:a**3
print("Power of Number is :-",m(5))
v=lambda i:i**3
for i in range(1,10):
print(v(i),end=",")
print("\n#########\n")
odd_even=lambda x:"YES" if x%2==0 else "NO"
print(odd_even(5))
print(odd_even(4))
print(odd_even... | [
"noreply@github.com"
] | mukund7296.noreply@github.com |
5488330a528308e75f93286fbdd6db84295c622f | 50b16d68bd349f8512295dbcc7773362c2b8524e | /genetic_programming/single_process_version/TryOnePeriod.py | d3de643c2a8b8e653de538d3092a9030783de570 | [] | no_license | huning2009/AlphaFactorsMining | 1e98fc2e8879c8d332d2367b684d1581dcb6387b | ef5afb92feca18c072f7e7c5aa3630093a589d34 | refs/heads/main | 2023-05-30T20:02:42.838641 | 2021-06-08T10:34:21 | 2021-06-08T10:34:21 | 465,217,416 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,231 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 4 14:03:16 2020
@author: Evan Hu (Yi Fan Hu)
"""
import random
from inspect import getmembers, isfunction
#%% initialize global vars
import numpy as np
from deap import base,creator,gp,tools
from Tool import globalVars
from Tool.GeneralData import GeneralData
from G... | [
"eiahb3838ya@gmail.com"
] | eiahb3838ya@gmail.com |
1a208c63524ef6ef4a91b0ef8e4961caecfd4c0a | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /0701-0800/0741-Cherry Pickup/0741-Cherry Pickup.py | 9b82aa0fb885e2374a49e0ee190342ef185ad2e1 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 881 | py | class Solution:
def cherryPickup(self, grid: List[List[int]]) -> int:
N = len(grid)
dp = [[0] * N for _ in range(N)]
dp[0][0] = grid[0][0]
for k in range(1, 2 * N - 1):
for i in range(N - 1, -1, -1):
for p in range(N - 1, -1, -1):
j = k... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
e021f17882b94e8028fbdc662caa3fe13a0f6a64 | d8014cb521ea3920fba101e6a1843e55d7b5f580 | /Control Flow/Iterator Functions in PythonSet 1.py | c005cd467883573a7526f652b45a60d01cd7e978 | [] | no_license | rishavhack/Data-Structure-in-Python | a31dc9efb9f1e6c9cd67c34d09c7578c5061d72d | 056cac7076eafa631539d354d6b56160cc1fa8a1 | refs/heads/master | 2021-05-04T12:59:11.463330 | 2019-12-25T00:47:00 | 2020-02-02T13:32:04 | 120,304,299 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import itertools
import operator
li1=[1,4,5,7]
li2=[1,6,5,9]
li3=[8,10,5,4]
print "The sum after each iteration is :"
print list(itertools.accumulate(li1))
print "\n"
print "Multiplication :"
print list(itertools.accumulate(li1,operator.mul))
print "Mentioned chain"
print list(itertools.chain(li1,li2,li3)) | [
"rishav.jnit@gmail.com"
] | rishav.jnit@gmail.com |
b177ccd596be77cdf100c46fdd63298f91d466d6 | 29cd2d0ad1abde230cb7ac5f3cb84420bbd6d6bb | /filter_vis.py | f4f78d6c16383825440b9f67616a78cfd33882d5 | [] | no_license | annashcherbina/cs231n_project | c6d7225bebea1ddb7aafe1b958643b0e5c893896 | 9be71a45481694f8a55836c11d72cc996a7b619c | refs/heads/master | 2016-08-12T04:40:57.966719 | 2016-03-14T03:10:08 | 2016-03-14T03:10:08 | 52,067,056 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | from Params import *
import h5py
from vis_utils import *
import numpy as np
import pylab as pl
weights=h5py.File('assignment3_weights_learnslow.hdf5','r')
conv1=np.asarray(weights['layer_1']['param_0'])
print str(conv1.shape)
grid=visualize_grid(conv1.transpose(0,2,3,1))
#print str(grid.shape)
pl.imshow(grid.a... | [
"annashcherbina@gmail.com"
] | annashcherbina@gmail.com |
9c67f651a24c535a279dbdb2036ead6da18fafec | cde52d8aa4d91ea537b301c97c9e10fd6803a069 | /top/api/rest/AliexpressAppraiseRedefiningQuerysellerevaluationorderlistRequest.py | 3a5d106080305e44221f2dab15c3b37a80ddfc8a | [] | no_license | dontsovcmc/aliexpress_sdk | badbd323ab7ba6ce71e371016e0b6b895e51e668 | 7772593f1b0af10421ed35c1c2bc25fb245bc23f | refs/heads/master | 2022-12-14T22:31:55.103056 | 2020-09-20T21:05:30 | 2020-09-20T21:05:30 | 297,162,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | '''
Created by auto_sdk on 2018.12.18
'''
from top.api.base import RestApi
class AliexpressAppraiseRedefiningQuerysellerevaluationorderlistRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.query_d_t_o = None
def getapiname(self):
return ... | [
"don-and-home@mail.ru"
] | don-and-home@mail.ru |
6153ae0ed2bbc5d4e409cb700d55eaec88b5ad9a | 6eb56f2e3f14f2373be07fe95b1c6fedf1e2d49f | /month01/文件和异常/day02 异常、迭代/exercise04-面向对象迭代器.py | dce48e2e1214c38cbe0e964418d61c6063897294 | [
"Apache-2.0"
] | permissive | chaofan-zheng/python_leanring_code | fe22b0370cadebf7456477269aff4a35cef0eb41 | 0af44ff39b9ded2c1d2cc96c6d356d21170ac04d | refs/heads/main | 2023-02-28T07:56:46.457552 | 2021-02-10T15:08:33 | 2021-02-10T15:08:33 | 323,584,115 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | """
创建自定义类MyRange类,实现下列效果
for number in MyRange(5):
print(number)
"""
class MyRange:
def __init__(self, begin_num=0, end_num=0, step=1):
self.begin_num = begin_num
self.end_num = end_num
self.step = step
self.my_range = (self.begin_num, self.end_num, self.step)
def __iter_... | [
"417355570@qq.com"
] | 417355570@qq.com |
73e47b2b6b4b6b4738bbaeb571f3a434b84c1a71 | 5a51cb424182e427c4e689757c91afc4579d6426 | /util/pencari_mention_hp.py | ddcb01e33e4ee23fe261a57bffec9789fb016b95 | [
"MIT"
] | permissive | greysian777/instagram-profilecrawl | e70d93aef1de2e290c3096dc8c1da5ced2ed2b47 | fca510d7b1cbf43a9eb027cf505abfa60c223d37 | refs/heads/master | 2022-04-03T12:03:46.069292 | 2020-02-13T09:33:00 | 2020-02-13T09:33:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | from typing import List, Dict
import re
def cek_hp(caption):
hasil = re.findall(
r'\(?(?:\+62|62|0)(?:\d{2,3})?\)?[ .-]?\d{2,4}[ .-]?\d{2,4}[ .-]?\d{2,4}', caption)
if len(hasil) > 0:
return ' '.join(hasil)
else:
return None
def cek_email(caption):
hasil = re.findall(r'[\w\.-... | [
"svmihar@gmail.com"
] | svmihar@gmail.com |
3c71ec8d077eba05bd551fe0d6a6e173205bfe4c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_207/295.py | 7daa38f091207f44d60b3dfaa1271d6e664e0ff0 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,265 | py | if __name__ == "__main__":
with open("B-small-attempt0 (1).in", "r") as R, open("b.out", "w") as w:
t = int(R.readline().strip())
for _ in range(t):
w.write("Case #%d: " % (_ + 1))
n, r, o, y, g, b, v = map(int, R.readline().strip().split())
if o != 0 or g != 0 or... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
8ecb463e51ceaff0214d9712cb781ff910de3132 | 5caee0aea844d1024dadb1a3a551ed347c4ce534 | /Amazon_interview/amazon practice/anagram minimum manipulation.py | cdcaee66c0399ab752acc30fcf4c3a8e3b0f18b9 | [] | no_license | Shikhar0907/Algo-and-data-structure-questions | 840c004acb93d7f97615d87fc8c69d73434b380d | 27d24cd18a9878cb59a81ef8b39aa4e31d8b8a7a | refs/heads/master | 2020-03-27T18:28:52.707843 | 2018-11-02T05:08:19 | 2018-11-02T05:08:19 | 146,924,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | def anagram(string1,string2):
count = 0
temp = set()
for item in string2:
if item in string1:
if item not in temp:
count += 1
print(count)
def main():
string1 = "ddcf"
string2 = "cedk"
anagram(string1,string2)
main()
| [
"shikharsuman59@gmail.com"
] | shikharsuman59@gmail.com |
3adb48a70194a5ffd6900f640e6d1a1164e83931 | 1b78ca7f3250ebed418717c6ea28b5a77367f1b8 | /114.flatten-binary-tree-to-linked-list/flatten-binary-tree-to-linked-list.py | 4d1f86a4242048c7096c1d4b3912d7d0b6b32f7c | [] | no_license | JaniceLC/lc-all-solutions | ced854f31b94f44c0b03a0677988805e3b9ee718 | 3f2a4ee8c09a8890423c6a22c73f470eccf979a2 | refs/heads/master | 2020-04-05T19:53:31.307528 | 2018-11-12T04:18:45 | 2018-11-12T04:18:45 | 157,155,285 | 0 | 2 | null | 2018-11-12T04:13:22 | 2018-11-12T04:13:22 | null | UTF-8 | Python | false | false | 1,026 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def flatten(self, root):
"""
:type root: TreeNode
:rtype: void Do not return anything,... | [
"jedihy@yis-macbook-pro.local"
] | jedihy@yis-macbook-pro.local |
03700825b868b9d26d7e7a1ff5352df760ecc50c | 4a34901260159a93a72cef58172d03f3ae9264fd | /muller/inheritance/genotype_ancestry.py | a5e93b73ea5755ff2312346eee024214e03edbf1 | [
"MIT"
] | permissive | cdeitrick/Lolipop | a6280bd788142a2d7de3660f0061cadac1974280 | 5b87b00a2c7ccbeeb3876bddb32e54aedf6bdf6d | refs/heads/master | 2021-06-24T12:32:58.653441 | 2020-10-13T03:38:29 | 2020-10-13T03:38:29 | 140,747,158 | 13 | 3 | MIT | 2020-10-13T03:38:31 | 2018-07-12T17:53:27 | Python | UTF-8 | Python | false | false | 5,511 | py | import math
from typing import Dict, List, Mapping, Optional, Tuple, Union
import pandas
class Ancestry:
""" Holds the possible ancestry candidates as well as the confidance score for each.
Parameters
----------
initial_background: pandas.Series
The genotype which reached the maximum relative frequency wit... | [
"cld100@pitt.edu"
] | cld100@pitt.edu |
680dfa6e346f9a0a454f60fb10560abf9c6a36f5 | fa7e75212e9f536eed7a78237a5fa9a4021a206b | /OLD_ROOT/Backend/EventContentDescriptor/recounting.py | fcccb26abca354b240a2882335e64a0fddbf5b8b | [] | no_license | kod3r/SMQTK | 3d40730c956220a3d9bb02aef65edc8493bbf527 | c128e8ca38c679ee37901551f4cc021cc43d00e6 | refs/heads/master | 2020-12-03T09:12:41.163643 | 2015-10-19T14:56:55 | 2015-10-19T14:56:55 | 44,916,678 | 1 | 0 | null | 2015-10-25T15:47:35 | 2015-10-25T15:47:35 | null | UTF-8 | Python | false | false | 7,537 | py | """
LICENCE
-------
Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to
KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
"""
import numpy
# ABSTRACT class for MER
def recount_abstract(info, func_MER, identifier, pa... | [
"paul.tunison@kitware.com"
] | paul.tunison@kitware.com |
c53e3a1ff392c3354421cd2719000903f4a291f4 | 70fa6468c768d4ec9b4b14fc94fa785da557f1b5 | /lib/surface/compute/networks/peerings/update.py | ff7b83f563299b937a4a9fb7460dab6fdb620fea | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | kylewuolle/google-cloud-sdk | d43286ef646aec053ecd7eb58566ab2075e04e76 | 75f09ebe779e99fdc3fd13b48621fe12bfaa11aa | refs/heads/master | 2020-04-20T22:10:41.774132 | 2019-01-26T09:29:26 | 2019-01-26T09:29:26 | 169,131,028 | 0 | 0 | NOASSERTION | 2019-02-04T19:04:40 | 2019-02-04T18:58:36 | Python | UTF-8 | Python | false | false | 2,661 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
bf6e53d1f88725a81c17a555544270c66895972c | 64992f86616e7906a3076aefb9f0d6fdf9b7d90c | /password_generator2/settings.py | 90de5b95439f169630be41459c1fa895b5150fab | [] | no_license | ianmanalo1026/Password-Randomizer | 0acd2a1fd3c728e0ea8ddf2d373af72cecf4df75 | 441e37362cda554d9fc2c61b09c596d1983fcb07 | refs/heads/master | 2023-02-15T05:36:37.192200 | 2020-12-31T15:32:53 | 2020-12-31T15:32:53 | 325,587,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,412 | py | """
Django settings for password_generator2 project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
... | [
"ian.manalo1026@gmail.com"
] | ian.manalo1026@gmail.com |
f8defec8cc474401076aabe9969f6559289a0c4d | e8bf00dba3e81081adb37f53a0192bb0ea2ca309 | /domains/fetch/problems/auto_AIJ/problem1033_CR.py | b7d678232956a50acfb09aecfdd99e1d96033a7b | [
"BSD-3-Clause"
] | permissive | patras91/rae_release | 1e6585ee34fe7dbb117b084df982ca8a8aed6795 | 0e5faffb7eb732fdb8e3bbf2c6d2f2cbd520aa30 | refs/heads/master | 2023-07-13T20:09:41.762982 | 2021-08-11T17:02:58 | 2021-08-11T17:02:58 | 394,797,515 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | # uncompyle6 version 3.3.1
# Python bytecode 3.6 (3379)
# Decompiled from: Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06)
# [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
# Embedded file name: ../../shared/problems/CR/problem1033_CR.py
# Compiled at: 2019-03-12 17:52:21
# Size of source mod 2**32: 1118 bytes
__a... | [
"patras@umd.edu"
] | patras@umd.edu |
729266674ee95d78948a92d8b4d1b95c9f3aa817 | 53d63ae0f922b2a5016ca942fbb8fec5041342f5 | /codes/models/tacotron2/stft.py | fd7d14f53f27832a5ad8e7868616d47100c76667 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | WN1695173791/DL-Art-School | 4a517f7d33f22e27bc0b4c9f3c7a1b8f61e1413f | 928e7026c2d884000b6e2981293efed062ed2a1f | refs/heads/master | 2023-08-21T04:59:28.632364 | 2021-10-29T04:34:12 | 2021-10-29T04:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,908 | py | """
BSD 3-Clause License
Copyright (c) 2017, Prem Seetharaman
All rights reserved.
* Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of... | [
"jbetker@gmail.com"
] | jbetker@gmail.com |
044354f955fe959dbc5bf825c8bd838af328f229 | f194d91fa57379a4e56038375c6c09715b8565ab | /Interpret.py | 7afd660742a0d8182389f80721fe52ace34f9870 | [] | no_license | migeed-z/small_step_interpreter | 3ae9f4ceb52918fa8428c707dca4ea3d0f7a7822 | 4d121ad5b81e4443df14afc1989ff08362f80546 | refs/heads/master | 2020-04-06T06:53:20.349144 | 2016-09-08T19:41:12 | 2016-09-08T19:41:12 | 64,857,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | """
Interpret.py
ast.AST -> Value
A Value is one of:
- ast.expr where value field is a python boolean
- ast.expr where value field is a python number
- ast.expr where value field is a Closure
Receives a file name from and produces a python AST.
"""
from ast import Num, NameConstant, Lambda
from Scope import Scope
... | [
"migeed.z@outlook.com"
] | migeed.z@outlook.com |
a81b89706fac188e918f08bf9f21ac0bf7e0d558 | b0885fde23fff880927c3a6248c7b5a33df670f1 | /models/neural_editor/paraphrase_gen.py | 9d955eb2aec336be9544a26c38d351f0daeead47 | [] | no_license | mrsalehi/paraphrase-generation | ceb68200e9016c5f26036af565fafa2d736dc96b | 3e8bd36bd9416999b93ed8e8529bfdf83cf4dcdd | refs/heads/master | 2020-07-22T03:50:40.343595 | 2019-08-26T11:29:08 | 2019-08-26T11:29:08 | 207,065,580 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,589 | py | import itertools
import pickle
from tqdm import tqdm
from models.common import vocab, util
from models.common.util import read_tsv
from models.neural_editor import convert_to_bytes, parse_instance, input_fn_from_gen_multi
from models.neural_editor.edit_noiser import EditNoiser
def read_plan(src_path):
rows = re... | [
"ub.maka@gmail.com"
] | ub.maka@gmail.com |
73b11ae1d2b85e51dc817937f2022dc721cc65eb | deec07f78bcca329003ccab462fc3038e699deff | /155/155.min-stack.python3.py | 910018cabfb6f4321bdf13ed1b3f5fa14994cfbf | [] | no_license | Zihua-Liu/LeetCode | 98d417ebf799d9610bbca97c8e3f5a37625b654b | a4b945d2732746b3c76a212993ed6a4d612e0614 | refs/heads/master | 2021-01-18T16:50:04.838751 | 2019-02-19T01:08:49 | 2019-02-19T01:08:49 | 72,458,445 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,067 | py | #
# [155] Min Stack
#
# https://leetcode.com/problems/min-stack/description/
#
# algorithms
# Easy (32.06%)
# Total Accepted: 209.6K
# Total Submissions: 642.2K
# Testcase Example: '["MinStack","push","push","push","getMin","pop","top","getMin"]\n[[],[-2],[0],[-3],[],[],[],[]]'
#
#
# Design a stack that supports p... | [
"liuzihua0911@gmail.com"
] | liuzihua0911@gmail.com |
032c51e081ae658ebc1b836df4d3fa1a0d1096a1 | efe051be04bfcea88435bcee9198039b71f474f2 | /make-keras-model.py | 2fdc91a89d60fd6fc1d499714d9a38562a10f68a | [] | no_license | dguest/lwtnn-tutorial-for-btaggers | 334dd1af6865bb52992ec2654c51dd6f3a329956 | 257be66354ae3d24db84e853b07ce7dec851de8e | refs/heads/master | 2021-01-21T20:49:35.439885 | 2017-05-24T18:49:19 | 2017-05-24T18:49:19 | 92,284,797 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | #!/usr/bin/env python3
import keras
from keras import layers
from keras.models import Model
import numpy as np
import os
# setup inputs
tracks = layers.Input(shape=(None, 4), name='tracks')
vertex = layers.Input(shape=(8,), name='vertices')
# add GRU to process tracks
gru = layers.GRU(5)(tracks)
# merge with the ve... | [
"dguest@cern.ch"
] | dguest@cern.ch |
0997950f143d9369327417abeef20a41aee5c92a | 24951cd6ec32eddd398395c70360ec78922a0cbc | /src/platforms/binance.py | 850eb1ec2c209c4464cccb049ae1ff552a872970 | [] | no_license | Seubill/Market | fe53cd3b3f3c3a31d3745b0bc8d9414ae27a6ec5 | 548f763ce99d318172ea9234463e48b58c486cf9 | refs/heads/master | 2020-06-18T14:40:59.501583 | 2019-07-13T01:03:33 | 2019-07-13T01:03:33 | 196,335,336 | 1 | 0 | null | 2019-07-11T06:43:43 | 2019-07-11T06:43:43 | null | UTF-8 | Python | false | false | 4,623 | py | # -*— coding:utf-8 -*-
"""
Binance 行情数据
https://github.com/binance-exchange/binance-official-api-docs/blob/master/web-socket-streams.md
Author: HuangTao
Date: 2018/07/04
"""
from quant import const
from quant.utils import tools
from quant.utils import logger
from quant.utils.websocket import Websocket
from quant.o... | [
"huangtao@ifclover.com"
] | huangtao@ifclover.com |
132516fdb720e196b2f2a01fbb9b70aec8f989dc | d2df82be0a37c9fde9a1ecee34fbf311fd8b2840 | /awesome_gans/biggan/biggan_train.py | e17e3470d0034f23efcedc7ba84291d83518daec | [
"MIT"
] | permissive | qqyouhappy/Awesome-GANs | a13ded69a043bc257966fcd3e71dc7a87b3f524f | 0f01852abbac0497baa8cc309a580ba720c0478f | refs/heads/master | 2022-12-22T14:42:56.765953 | 2020-10-05T14:53:01 | 2020-10-05T14:53:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,897 | py | import os
import time
import numpy as np
import tensorflow as tf
import awesome_gans.biggan.biggan_model as biggan
import awesome_gans.image_utils as iu
from awesome_gans.config import parse_args
from awesome_gans.datasets import CelebADataSet as DataSet
from awesome_gans.datasets import DataIterator
cfg = parse_arg... | [
"kozistr@gmail.com"
] | kozistr@gmail.com |
818de0a52d21f2e2c1442393b3863cddbd793a3a | 990b92264109dc01dbfddeb6f5e75675037fd829 | /app/queue_manager/rabbitmq/rabbitmq_reader.py | 75bdea433d451387bd7ca5acfabbc20d90d83daa | [
"Apache-2.0"
] | permissive | CitoEngine/cito_engine | 20efa189abab1b684b60b260c1ea9ed16f6ea0f2 | 95852dd109d86a344726d7b11ed1132d4e48426b | refs/heads/master | 2020-05-21T15:04:24.011603 | 2019-02-08T04:51:42 | 2019-02-08T04:51:42 | 17,123,947 | 9 | 13 | Apache-2.0 | 2019-02-08T04:51:43 | 2014-02-24T03:17:04 | Python | UTF-8 | Python | false | false | 4,335 | py | """Copyright 2014 Cyrus Dasadia
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distr... | [
"cyrus@extremeunix.com"
] | cyrus@extremeunix.com |
d69ff8dfbf7d3fff347826d120f615f829c27ac3 | 054c0bdf2ed7db0975828355562b7b0a7bad7e5c | /myapp/contact/migrations/0001_initial.py | 960a2df20592916095fdd73eaf28f94d04780daa | [] | no_license | fbbenod/Touristy-Information-System | d8024a5d9df0712d336d18cf1a2ac5b235b3b58e | 8122a8b9f343fd952a052d2c435f914d0b82079c | refs/heads/master | 2020-07-14T19:39:20.759408 | 2019-08-31T12:16:04 | 2019-08-31T12:16:04 | 205,385,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,041 | py | # Generated by Django 2.2.1 on 2019-06-17 07:47
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Contact',
fields=[
('id', models.AutoField(... | [
"b3nodbanjara@gmail.com"
] | b3nodbanjara@gmail.com |
1c867380fdb44196d8fa90a962f60134d048032d | 9f7c9201b86128d2459e463d3bb1c60b7e434a78 | /deep_cloud/models/pointnet.py | b86bee5e4cf0d65c211722789ede37656d848103 | [] | no_license | jackd/deep-cloud | b4a171a290c22a113b8a6dd3a49c875afae84b93 | 9adb25bfcdfd1f2faf3820378cc27a952aa90f9d | refs/heads/master | 2020-07-05T19:32:38.824051 | 2019-10-25T04:04:43 | 2019-10-25T04:04:43 | 202,748,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,787 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import tensorflow as tf
import functools
import gin
from more_keras import callbacks as cb
from more_keras.layers import VariableMomentumBatchNormalization
from more_keras.schedules import ex... | [
"thedomjack@gmail.com"
] | thedomjack@gmail.com |
ff02a6fe7ec71a20c6ea26d1d001e08808419e67 | f9a8ee37334771f37edda863db08a7dcccc9522f | /AtCoder/Practice/茶緑埋め/ABC171D.py | e9ea1455ac242954072b4d5b114daa09e19c5b01 | [] | no_license | shimmee/competitive-programming | 25b008ee225858b7b208c3f3ca7681e33f6c0190 | 894f0b7d557d6997789af3fcf91fe65a33619080 | refs/heads/master | 2023-06-07T13:07:17.850769 | 2021-07-05T17:20:47 | 2021-07-05T17:20:47 | 331,076,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | # ABC171D - Replacing
# URL: https://atcoder.jp/contests/abc171/tasks/abc171_d
# Date: 2021/02/01
# ---------- Ideas ----------
# 各数字のカウンターを管理: 10**5
# 最初から和=totalを持っておいて管理
# bの個数分,totalからbが減って,cが増える
# カウンターのbは0になって,cがb個分増える
# ------------------- Solution --------------------
# bが個数分減って,cが個数分増える
# ------------------... | [
"shinmeikeita@gmail.com"
] | shinmeikeita@gmail.com |
b020551588eab88d930ce9f2a9d7a97f8c283c96 | 391e2290e6c0a41858d653ca20d21f70594c9f3e | /aula_1/banco.py | 339c300b624c33760e54c68ca57e2204ef5d842d | [] | no_license | AlexCecconi/Aulas_py | a10e9bb6c77a95f5b1a8c680864b667b8abef15e | 7479848d85b2bf6e0c75907f2ee2a272b474f530 | refs/heads/master | 2022-01-07T15:37:44.871635 | 2019-05-07T01:00:43 | 2019-05-07T01:00:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | lista_de_usuarios = [
{
"nome": "qMHHOwoAaYECgB",
"idade": 49,
"email": "yMEpqGsegWXw@4linux.com",
"sexo": "?",
"endereco": "Rua NIbCtFYJpZtRJg"
},
{
"nome": "GJBxVjGYtVEqmRasx",
"idade": 23,
"email": "mBZWAcaUDCVioOQEdIu@4linux.com",
"sexo": "?",
"endereco": "Rua VFJGPBuNR... | [
"leonardo.mendes@4linux.com.br"
] | leonardo.mendes@4linux.com.br |
fb1c59470029cb607a4d66d6f5eae938f79b856b | df7f13ec34591fe1ce2d9aeebd5fd183e012711a | /hata/ext/plugin_loader/utils/load_all_plugin_.py | 0338838db25296a920afed7119ff2333fd7ad0d0 | [
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | HuyaneMatsu/hata | 63e2f6a2d7a7539fd8f18498852d9d3fe5c41d2e | 53f24fdb38459dc5a4fd04f11bdbfee8295b76a4 | refs/heads/master | 2023-08-20T15:58:09.343044 | 2023-08-20T13:09:03 | 2023-08-20T13:09:03 | 163,677,173 | 3 | 3 | Apache-2.0 | 2019-12-18T03:46:12 | 2018-12-31T14:59:47 | Python | UTF-8 | Python | false | false | 236 | py | __all__ = ('load_all_plugin',)
from scarletio import copy_docs
from ..plugin_loader import PLUGIN_LOADER
@copy_docs(PLUGIN_LOADER.load)
def load_all_plugin(*, blocking = True):
return PLUGIN_LOADER.load_all(blocking = blocking)
| [
"re.ism.tm@gmail.com"
] | re.ism.tm@gmail.com |
202c168a8b5d574e04319f390e7a6b6de704565d | bbb36e65c62fa824807b2f85a20e491140338f72 | /src/adapters/scheduling/event_listeners/capture_error_listener.py | 7b134953e64d3f1e389ca52773d6c628185277c6 | [] | no_license | TermanEmil/CameraController | 0d4338a3365431efb0b28dfb409b6a72c0d256c6 | c996868be9cfb6e6e44ae90d77346e7f700d177c | refs/heads/master | 2023-02-18T07:59:21.876482 | 2022-12-29T14:37:01 | 2022-12-29T14:37:01 | 195,222,744 | 3 | 0 | null | 2023-02-15T20:21:28 | 2019-07-04T10:41:15 | Python | UTF-8 | Python | false | false | 1,364 | py | import logging
from adapters.app_logging.persistent_logger import PersistentLogger
from adapters.emailing.email_service import EmailService
from adapters.scheduling.notifications_settings import NotificationsSettings
from business.app_logging.log_manager import LogManager
from enterprise.app_logging.log_message import... | [
"terman.emil@gmail.com"
] | terman.emil@gmail.com |
d34fa551c9001d299d7cf7be0308e027f41d854d | 39f879ced0dbcbb92e7a12d8b09f4fa0aea4f925 | /pajbot/modules/emotecombo.py | 8057561b6ab6d3dc21324d9658e82def9e680684 | [
"MIT"
] | permissive | coral/pajbot | f205b750d77cf06c75229aee93a5879abe4a10de | 682580f2a43a19a907cba231290b6d59157e123c | refs/heads/master | 2021-01-14T08:30:17.534620 | 2016-03-24T22:15:24 | 2016-03-24T22:15:24 | 54,676,838 | 0 | 0 | null | 2016-03-24T21:58:09 | 2016-03-24T21:58:08 | null | UTF-8 | Python | false | false | 2,594 | py | import logging
from pajbot.models.handler import HandlerManager
from pajbot.modules import BaseModule
log = logging.getLogger(__name__)
class EmoteComboModule(BaseModule):
ID = __name__.split('.')[-1]
NAME = 'Emote Combo (web interface)'
DESCRIPTION = 'Shows emote combos in the web interface CLR thing'... | [
"pajlada@bithack.se"
] | pajlada@bithack.se |
dcc5f8f5c537579a8be3e44eb485d9ee844b4c50 | a7a1c6d64825974be95e1c207750682d12fa9e7f | /kristen/__log__.py | ae5ed7bc5e33c698c760023aecd9b3beb0d0c357 | [] | no_license | kwarwp/betty | 49adb8f1daed85f200edaa657af01a92b78a921b | 20ba52a9fd482a2cfe67c3b2926466a91f19a925 | refs/heads/master | 2022-11-05T01:59:56.716919 | 2022-10-18T16:46:11 | 2022-10-18T16:46:11 | 129,902,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,982 | py |
{'date': 'Tue Nov 19 2019 10:33:01.454 GMt-0300 (Horário Padrão de Brasília) -X- SuPyGirls -X-',
'error': '''Traceback (most recent call last):
module _core.main line 160
dialog.action(lambda *_: self.start()
module _core.supygirls_factory line 135
self.act(self, lambda *_: self.hide() or extra()) if self.... | [
"38007182+kwarwp@users.noreply.github.com"
] | 38007182+kwarwp@users.noreply.github.com |
077e44af1e60c7fbc95a9588e8ff87450dc69a30 | 577053056cf78376d6f22c4fff7232b673caa4b7 | /template_model/40na/arquitetura.py | ed4560ec6cb2b4a81df4e35a414f9d9fd76b7826 | [] | no_license | abevieiramota/masters | 2e81d5698510ee4935aa1a38a3574e58d039c677 | 682c0669fe3fedc97c434d404d03eb8645210174 | refs/heads/master | 2020-06-18T11:55:54.458504 | 2020-05-25T00:03:26 | 2020-05-25T00:03:26 | 196,295,778 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,096 | py | # -*- coding: utf-8 -*-
from itertools import product
class OverPipeline:
def __init__(self, initial_module, scorer):
self.initial_module = initial_module
self.scorer = scorer
def run(self, i):
outputs, decisions = self.initial_module.generate([i])
scores = self.scorer(out... | [
"abevieiramota@gmail.com"
] | abevieiramota@gmail.com |
639993dd487d18133218d77d497a743cc5e6966c | 0e5a353bf5eba99a4cf7f2c1754a90218d9e972d | /maya_tools/sg/python/sg/Tool_blendShapeConnector/__init__.py | fe33c1de2505053b0852be9a76b562685810f954 | [] | no_license | kimsung9k/public | bdb0619d5ac649a6b62bbab8c1a38aa8c364171d | 4b319038dc7adf87acdcdb66bd2979d6d9dd61a2 | refs/heads/master | 2021-01-11T19:55:09.142263 | 2017-05-14T08:49:44 | 2017-05-14T08:49:44 | 79,425,401 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,260 | py | import maya.cmds as cmds
import maya.OpenMayaUI
from PySide import QtGui, QtCore
import shiboken
import os, sys
import sg.file
import json
from functools import partial
class Window_global:
mayaWin = shiboken.wrapInstance( long( maya.OpenMayaUI.MQtUtil.mainWindow() ), QtGui.QWidget )
objectName = "sg_T... | [
"kimsung9k@naver.com"
] | kimsung9k@naver.com |
48f0c97e4d3cfaa08ecbbd8c6e3e3388b9ef0740 | 0c9aee6d733ec7a7c56f6bae2c87df9769b2138d | /src/api/bkuser_core/config/common/platform.py | ee19060771ddb15b1bfb6fdbcacd19d90644e093 | [
"MIT"
] | permissive | sdgdsffdsfff/bk-user | 40213171a6d570f4312befac16b9bbd82414edb2 | 64863b55f7aff45f0af7c917e0f929e229a69d0f | refs/heads/master | 2023-07-05T08:38:19.066666 | 2021-08-17T04:40:53 | 2021-08-17T04:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,868 | py | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic... | [
"bluesedenyu@gmail.com"
] | bluesedenyu@gmail.com |
8b30cb3fedf447019741ad1b1a4c74c842442441 | b3c4edfb5c526768fbe4b46b9ea9805d084c7735 | /PyQt514/checkbox.py | d6953ba92ad5951199c75cbf3c8b5cd792307649 | [] | no_license | mach8686devops/pyqt5-demo | c7ed79310372c38e232c94694670f7b9b33ed7f8 | 44072d6ffc8919715bc2da3cf35c6ce88b2e7208 | refs/heads/main | 2023-04-16T16:50:32.962316 | 2021-04-29T17:06:47 | 2021-04-29T17:06:47 | 362,890,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,883 | py | #coding=utf-8
'''
这是关于复选框的小例子!
文章链接:http://www.xdbcb8.com/archives/359.html
'''
import sys
from PyQt5.QtWidgets import QWidget, QCheckBox, QApplication, QPushButton, QMessageBox
from PyQt5.QtCore import Qt
class Example(QWidget):
def __init__(self):
'''
一些初始设置
'''
... | [
"zhangjohn202@gmail.com"
] | zhangjohn202@gmail.com |
df57e817e056980745449bf1c4b830e9a883a7f7 | 419c1eeebc631ec86ade562cc86480968a105bc3 | /core/loader/loader.py | 09767d3941df94d8910e079d7ffd3c583fef5d1a | [] | no_license | straga/uiot_control_source | a8251eb2f8aee0a7cbe62cd0a854ab3c1d62afe2 | fa59be4aceb103af42de7cbc6f89b16a5b9354c7 | refs/heads/master | 2021-01-07T21:50:46.486899 | 2020-04-06T07:56:17 | 2020-04-06T07:56:17 | 241,829,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,842 | py |
import logging
import gc
log = logging.getLogger("LOADER")
log.setLevel(logging.DEBUG)
import sys
from core.asyn.asyn import launch
try:
import uasyncio as asyncio
except Exception:
import asyncio as asyncio
class uLoad:
def __init__(self, env, core, depend):
self.core = core
self.mbu... | [
"vostraga@gmail.com"
] | vostraga@gmail.com |
ba36c3ad51e2460f8536465d4e4678bcf077bbd9 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/textanalytics/azure-ai-textanalytics/samples/sample_detect_language.py | b812b6414cc70407eb19bc8b6cbddde8d8647959 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 3,128 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
"""
FILE:... | [
"noreply@github.com"
] | Azure.noreply@github.com |
706da4767eafc4be11304d235fef6d8b9716492a | 50084bf941b61791ac4def5b8cff950e7ddfdd15 | /_Exercises/src/Basic/ex7-4.py | 2db0c08dd114d1dc394c3689c5b84df41452f5e1 | [] | no_license | gjq91459/mycourse | 6904ad191dc6128fb853eb8bdb1b200a46b2059f | 211d7707e41f50495375b4a1dfc32b62b76b317b | refs/heads/master | 2021-01-21T10:34:44.841349 | 2017-03-01T11:17:52 | 2017-03-01T11:17:52 | 83,456,979 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | """
Try the previous example with other test files that may contain
non integral data. Use exception handling to filter out lines
that don't contain integers.
"""
inFile = None
total = 0
try:
inFile = open("../data/TestData2.txt", "r")
for line in inFile:
try:
total += in... | [
"gjq91459@diamtr341.diamond.ac.uk"
] | gjq91459@diamtr341.diamond.ac.uk |
329a817e009027a5089491f0acb97c9bb55542af | 314b8203518d54029bc084f67bed9123a339acdd | /game.py | 810a65ff66c0f71daebff03f72301ac3eecfb24c | [] | no_license | drcjar/quantumTTT | f1a02ead866a9586c91c65eddf2278a826f47bba | 79f353ff269ac0bce62351b36627179d4b1ae23d | refs/heads/master | 2021-01-18T10:59:56.747049 | 2012-07-12T20:27:12 | 2012-07-12T20:27:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py | import board
import state
def turn(board):
return board
def play():
b = board.init()
for round in range(1,9):
b = turn(b)
board.draw(b)
c = state.find_cycle(b)
if c:
pass
if state.won(b):
break
| [
"florian.rathgeber@gmail.com"
] | florian.rathgeber@gmail.com |
fb1e0f997b68f421d15d349f945b5a6e7ee7e8a7 | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/201-300/week 221/1704. Determine if String Halves Are Alike/Determine if String Halves Are Alike.py | 5c44032cb8f622e7966d18c4cdf2e03e15da1e62 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: Wayne
@contact: wangye.hope@gmail.com
@software: PyCharm
@file: Determine if String Halves Are Alike
@time: 2020/12/27 12:03
"""
class Solution:
def halvesAreAlike(self, s: str) -> bool:
n1 = n2 = 0
for i in range(len(s)):
if i < le... | [
"905317742@qq.com"
] | 905317742@qq.com |
87c1dbed9f33a479194cde274473763ddee49c34 | 81d2e3b6fe042e70cc2abb7f549f60ba44928fdf | /nowcoder/test/0821-腾讯/02.py | 130c49f1fa627a45a80b5d928f451caf1b026741 | [] | no_license | weizhixiaoyi/leetcode | a506faed3904342ed65234864df52071977d544d | 6114ebacc939f48a39a56d366646b0f28b4f6c1a | refs/heads/master | 2022-12-22T03:52:07.936800 | 2020-09-29T07:49:52 | 2020-09-29T07:49:52 | 202,662,720 | 5 | 2 | null | 2019-08-17T09:24:49 | 2019-08-16T05:16:08 | C++ | UTF-8 | Python | false | false | 505 | py | # -*- coding:utf-8 -*-
def solve(nums, nums_len):
nums = sorted(nums, reverse=True)
nums1, nums2 = [], []
idx = 0
for num in nums:
if idx % 2 == 0:
nums1.append(num)
else:
nums2.append(num)
idx += 1
return sum(nums1) - sum(nums2)
if __name__ == '__m... | [
"zhenhai.gl@gmail.com"
] | zhenhai.gl@gmail.com |
004ebd4f927fc13952d049b97aba0cf7d8961786 | 9055b8f8b1ca2e357473179a5ff551f69541bd34 | /grammar/regular_expressions/Python_re.py | df26c5af2525a0843474640a71fa4fab8fd1898a | [] | no_license | YanlinWang128/PyhonStudy | 879c72cbdc1f467a7b4721561692e2deb6a665e9 | 6b9de9afcfa7ba0b4c55025ddcf87664b170c6e7 | refs/heads/master | 2020-03-30T18:42:11.520471 | 2018-11-09T08:38:29 | 2018-11-09T08:38:29 | 151,511,393 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # @Time : 2018/10/4 16:13
# @Author : Yanlin Wang
# @Email : wangyl_a@163.com
# @File : Python_re.py
import re
match = re.match('hello[ \t]*(.*)world', 'hello Pyhton-->world')
print(match.group(1)) # Pyhton--> group(0)是全匹配,group(1)是第1个括号匹配
result = re.match('/(.*)/(.*)/(.*)', '/usr/home/frank')
print(... | [
"wangyl_a@163.com"
] | wangyl_a@163.com |
c0db83c8c996d00351bf6974b812de4b317a0d5e | 981d1742be4f3bd58f12a1294bba55fbc779d425 | /chicago_codes_bootcamp/chicago_codes_python/python_stack/django/django_intro/first_django_project/first_django_project/urls.py | 015da9167ecdf9d468b48ce2cc612318e27cda21 | [] | no_license | chuymedina96/coding_dojo | b0da91db792a51168b7b2a790216cb8e29da901c | 1ac25b3a6e912851f1475015c9b8703e0d113df2 | refs/heads/master | 2020-07-05T19:18:39.906329 | 2019-12-31T02:51:39 | 2019-12-31T02:51:39 | 202,744,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py | """first_django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='ho... | [
"chuymedina96@gmail.com"
] | chuymedina96@gmail.com |
e68ea0e766fec2f5b7b788c90f479f26619a6ac7 | 444a9480bce2035565332d4d4654244c0b5cd47b | /official/cv/VGG/vgg16/postprocess.py | 5906e14f9cbbab38e9e2c6f117fba64d58abe2c1 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 2,077 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
9866a7feea70dac5b001a058fc3b9c5b74a85b45 | 0103046cd77e9f86ccde477736de36bba766ceb6 | /src/sentry/integrations/vsts/notify_action.py | 8cee3b72379e00156247fe4d64d46b7c1f0772e0 | [
"BUSL-1.1",
"Apache-2.0"
] | permissive | kaozdl/sentry | ad41ada649a20300e9f2fe69050200cfbf738a63 | 63d698f5294f64a8c206b4c741e2a11be1f9a9be | refs/heads/master | 2021-06-21T18:24:21.713064 | 2021-03-04T19:45:20 | 2021-03-04T19:45:20 | 198,681,569 | 0 | 0 | BSD-3-Clause | 2019-07-24T17:32:29 | 2019-07-24T17:32:28 | null | UTF-8 | Python | false | false | 880 | py | import logging
from sentry.rules.actions.base import TicketEventAction
from sentry.utils.http import absolute_uri
from sentry.web.decorators import transaction_start
logger = logging.getLogger("sentry.rules")
class AzureDevopsCreateTicketAction(TicketEventAction):
label = "Create an Azure DevOps work item in {... | [
"noreply@github.com"
] | kaozdl.noreply@github.com |
a1b939df5a978853e4c6175d9cd51bfccaa9ddc4 | b87f66b13293782321e20c39aebc05defd8d4b48 | /maps/build/EnthoughtBase/enthought/util/nan_ops_for_numpy.py | 234015de04a04ffaa04c7e911a00e24d879dabff | [] | no_license | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | ### Note, these are placeholder solutions
# Since this module is meant to offer safety wrappers around some numpy
# functions, if we can't import numpy, then gracefully handle the import error
# and define stubs.
try:
from numpy import amin, amax, mean, median, reshape, asarray, isnan, \
com... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
4f2caad8d37d161c2637c0cf24ac2df64784e1f3 | 8ea15bb41fa672a8abd5cbc6e4c3413a910e5fb4 | /core/cache.py | 66de0c4350e2c07c676875ba2a987fb85d0e91e1 | [] | no_license | bluedazzle/smart_screen | 172bb1672bd9995e27889700a7320c0d9e207abe | f4d40807e7c6684ae35d8c1c7f386ae2ff8d8925 | refs/heads/master | 2021-07-04T07:30:50.807052 | 2019-01-23T06:47:56 | 2019-01-23T06:47:56 | 111,908,525 | 1 | 0 | null | 2019-05-16T03:30:51 | 2017-11-24T10:56:46 | Python | UTF-8 | Python | false | false | 203 | py | # coding: utf-8
from __future__ import unicode_literals
import redis
client_redis_zhz = None
def config_client_redis_zhz():
global client_redis_zhz
client_redis_zhz = redis.StrictRedis(db=2)
| [
"zhangjianqi@bytedance.com"
] | zhangjianqi@bytedance.com |
03178c63c2e3c426d5ab8610905cc1ea5a1eddc2 | 3cda2dc11e1b7b96641f61a77b3afde4b93ac43f | /test/ut/experiment/assets/trial_sklearn.py | c6e00f1a61bca94db082c9892527c7308c5d27c8 | [
"MIT"
] | permissive | Eurus-Holmes/nni | 6da51c352e721f0241c7fd26fa70a8d7c99ef537 | b84d25bec15ece54bf1703b1acb15d9f8919f656 | refs/heads/master | 2023-08-23T10:45:54.879054 | 2023-08-07T02:39:54 | 2023-08-07T02:39:54 | 163,079,164 | 3 | 2 | MIT | 2023-08-07T12:35:54 | 2018-12-25T12:04:16 | Python | UTF-8 | Python | false | false | 453 | py | import nni
from sklearn import datasets
from sklearn.svm import SVC
from sklearn.metrics import accuracy_score
from sklearn.model_selection import train_test_split
iris = datasets.load_iris()
X_train, X_test, y_train, y_test = train_test_split(iris.data, iris.target, test_size=0.33)
params = nni.get_next_parameter(... | [
"noreply@github.com"
] | Eurus-Holmes.noreply@github.com |
64f5006d6ad23a0149ab227a289182635796295b | 0911846a1bd88a3ac631d79213cea6af94d66252 | /pywikibot/families/outreach_family.py | f53b8b00d2e16021ffe747e896d6fa35a121c240 | [] | no_license | lnls-fac/tools | 9617e100926f99cfdde1c7db411800c9fa52b329 | e611185c0bcbff803481ee09d986370a67e37636 | refs/heads/master | 2019-01-19T06:40:25.390756 | 2018-05-24T20:51:18 | 2018-05-24T20:51:18 | 33,892,414 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | # -*- coding: utf-8 -*-
__version__ = '$Id: 3e112843d1fa41d4b3e943820625a2e043340ea9 $'
from pywikibot import family
# Outreach wiki custom family
class Family(family.WikimediaFamily):
def __init__(self):
super(Family, self).__init__()
self.name = u'outreach'
self.langs = {
... | [
"xresende@gmail.com"
] | xresende@gmail.com |
960ad5622e786c4d59056d52b53c6ce6431811c2 | 046247e4b1ef35d0d24423278678dcef2ee926ba | /code/taisformula.py | d1ae08fdc74f133a456c45a536b06615ee900e8a | [] | no_license | jinci94/Kattis | 54bf5edb2123754d5bafd9cd0398bdd0bc3d043f | b66dc6b1bf9b86f00f1c03a2e3c690afa8c960e6 | refs/heads/main | 2023-05-12T14:46:29.620310 | 2021-06-03T23:59:47 | 2021-06-03T23:59:47 | 370,685,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | N = int(input())
matrix = [[float(x) for x in input().split()] for i in range(N)]
A = 0
for i in range(N-1):
A += (matrix[i][1]+matrix[i+1][1])/2 * (matrix[i+1][0] - matrix[i][0])
print(A/1000)
| [
"noreply@github.com"
] | jinci94.noreply@github.com |
b459c3ee3ecb80a09e2009841a118cfc7a53b216 | 122401d4f839f4437c8413d4e08d5863d9fe10c8 | /blog_post/migrations/0002_post_author.py | ee91dcf2bce212487b79d2d21d361868da4f3ca5 | [] | no_license | rcoffie/blogbroject | 32add700c78b2c5c5bd86c811028e197e84270a1 | 03ec9e6e7811d7ac31ed95e0da7b1c77a9a62166 | refs/heads/master | 2023-07-16T01:53:55.163061 | 2021-09-02T12:13:20 | 2021-09-02T12:13:20 | 398,532,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | # Generated by Django 3.2.5 on 2021-08-03 10:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('blog_post', '0001_initia... | [
"rcoffie22@yahoo.com"
] | rcoffie22@yahoo.com |
815785b071d45a5b0dea5573f9ee3458958fceff | 02f73ffa51cc859ebb0f0bf3d68b9e013f7f6b2a | /word_count.py | bc635ba741672750c576d382ea4c6d9bd786b55b | [] | no_license | lucasant10/Twitter | 41ef24f39865d43d09123cdd0963c2d874249b11 | f853b5ebb4ec266c3ab87ecc31c1702e2a6071dd | refs/heads/master | 2020-12-15T10:28:36.513083 | 2020-04-22T02:53:34 | 2020-04-22T02:53:34 | 55,746,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | from text_processor import TextProcessor
import json
from read_twitter import ReadTwitter
from collections import Counter
import itertools
import numpy as np
import os
import matplotlib.pyplot as plt
def days2time(days):
#1380844800000 = 04/10/2013, 86400000 = 1 day
return 1380844800000+(days*86400000)
... | [
"lucasant@gmail.com"
] | lucasant@gmail.com |
066d67b0efc52a5cf0ace640353890c35b0a7ab8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03161/s561628298.py | 5f871fa0e24ae9f966bfe97c44f80ae2ac9e3d53 | [] | 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 | 288 | py | N,K = map(int,input().split())
h = list(map(int,input().split()))
ans = [0]*N
ans[1] = abs(h[1] - h[0])
for i in range(N - 2):
j = i + 2
step = min(K , j)
height = h[j]
p = [ans[j - s - 1] + abs(h[j-s-1] - height)
for s in range(step)]
ans[j] = min(p)
print(ans[N - 1]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
300f39c3060d6b9edf187afe4a69a12fcc13f0fc | 5c883c87f337be7ffd52f49f0a4e6c72bbd58932 | /apps/seguimiento/migrations/0004_auto_20160918_1738.py | bec9e951d181b370194c8db6ecc2bbde2dd31e90 | [] | no_license | DARKDEYMON/Tesis-2-Vidaurre-J.C. | f1b0d8e8a593a9d4a585bdd14b21d4809d55ce9f | 4299cea2e990ee798b02724849d747bfd558b97d | refs/heads/master | 2021-06-20T09:25:53.273225 | 2017-05-25T22:20:31 | 2017-05-25T22:20:31 | 65,408,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-18 21:38
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('seguimiento', '0003_auto_20160918_1624'),
]
operations = [
migrations.RenameField(
... | [
"darkdeymon04@gmail.com"
] | darkdeymon04@gmail.com |
4c6ee41465ce4ec80ce074a6a62c64edae0c5b32 | eb1ff758c7b24d72c40ceb86bdf373912ceb2595 | /neodroidvision/utilities/visualisation/plot_kernel.py | 1ee51b54844ba53785f1b8f0861f124be6581084 | [
"Apache-2.0"
] | permissive | cnheider/vision | cec5ee2c73a77be03b2fb60a1747821765bd26ae | a4e66251ead99f15f4697bfe2abd00e2f388e743 | refs/heads/master | 2022-11-29T06:00:03.340402 | 2020-11-17T16:51:39 | 2020-11-17T16:51:39 | 212,509,098 | 0 | 0 | Apache-2.0 | 2022-11-22T06:53:58 | 2019-10-03T06:14:39 | Python | UTF-8 | Python | false | false | 913 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 29/07/2020
"""
__all__ = ["plot_kernels"]
from matplotlib import pyplot
def plot_kernels(tensor, number_cols=5, m_interpolation="bilinear"):
"""
Function to visualize the kern... | [
"mrnaah@gmail.com"
] | mrnaah@gmail.com |
dde607016a00fb78d45bdcecb632f6acc88503a0 | 4f2104a155cb14f901dd6558bafd69b5ff9b4af1 | /carl/distributions/normal.py | 2ee7d5cd9134a07c06409f8676f1e609007da95f | [
"BSD-3-Clause"
] | permissive | cranmer/carl | b1edab7b28839651c12a5885e884cbd4eb6330c5 | 4964a4222e2c4ee3fc26097f24a2b1438f2e89ba | refs/heads/master | 2021-01-21T05:53:34.440739 | 2016-03-18T00:49:37 | 2016-03-18T00:49:37 | 53,140,078 | 1 | 1 | null | 2016-03-15T17:27:48 | 2016-03-04T14:17:03 | Python | UTF-8 | Python | false | false | 2,735 | py | # -*- coding: utf-8 -*-
#
# Carl is free software; you can redistribute it and/or modify it
# under the terms of the Revised BSD License; see LICENSE file for
# more details.
import numpy as np
import theano
import theano.tensor as T
import theano.sandbox.linalg as linalg
from sklearn.utils import check_random_state
... | [
"g.louppe@gmail.com"
] | g.louppe@gmail.com |
86a7a1c98768e223d9ac81aac540e903cdaac1d9 | 2b89bc94e52146be93be723e4539dc8e73ccab63 | /project/project/urls.py | 91bccee34b20b2e293e81757b69a749811f1ec8c | [] | no_license | nhrnhr0/DjangoGruntTemplate | 27ae1933a3c8feb9581404ad86605fdcd54af021 | 429136354465bf1ab50f658d59e6cc3acc591d83 | refs/heads/master | 2023-04-18T12:08:12.921109 | 2021-05-02T08:20:00 | 2021-05-02T08:20:00 | 363,475,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"ronionsegal@gmail.com"
] | ronionsegal@gmail.com |
5be200a2fd156d707265c6d34c244c2beea1f777 | 079e7d58380f15a64ba4f9efc37bac952351912d | /meet.py | 04f63ec1bbf0649e9092d995d1de6832dbf1403b | [
"MIT"
] | permissive | khukri/mypy | b9692d962613d5bff445288ecaed411fb8cc6c39 | 5ada405bfba157fb30368e9d2b62869439b6aafd | refs/heads/master | 2020-12-30T18:38:51.225884 | 2012-12-25T22:47:32 | 2012-12-25T22:47:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,840 | py | import checker
from join import is_similar_callables, combine_similar_callables
from mtypes import (
Typ, Any, TypeVisitor, UnboundType, Void, ErrorType, NoneTyp, TypeVar,
Instance, Callable, TupleType, ErasedType
)
from sametypes import is_same_type
from subtypes import is_subtype
Typ meet_types(Typ s, Typ t... | [
"jukka.lehtosalo@iki.fi"
] | jukka.lehtosalo@iki.fi |
51062d86801caf9648caf3e2154ee69b276a8059 | 2b4badbedab24ed4376ab65818d0e59af6539144 | /codewar/numbers of zeros.py | c0c928a87990997c0c91dfaefc535a1bd30acd82 | [] | no_license | matthewangbin/Python | 878d8180d12d235f8d238574414bb41edad5ceee | c9a94b4203380a06364da1f7466aafc4b141d951 | refs/heads/master | 2021-10-11T01:45:22.890144 | 2019-01-21T02:44:25 | 2019-01-21T02:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | def zeros(n):
res=0
if n==4:return 0
if n<5:
return 0
else:
while n>4:
n=n/5
res=res+n
return res
print zeros(6)
#edition2.7 | [
"wb2847@163.com"
] | wb2847@163.com |
7c0dc548bb17eb501300ecb9c222c8654074df7a | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_6404600001200128_0/Python/ProtonH/A.py | cae88522826f1ea22af5272ef729a1a5c4b40993 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | import sys
args = sys.argv
if len(args) == 2:
f = open(args[1],'r')
of = open('output.txt','w')
breakFlag = False
num = 0
numCalculated = False
i = -1
while not breakFlag:
l = f.readline()
if not numCalculated:
num = int(l.strip())
num... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
df2d40b105ef95c45b381c7b13748934a921c0b7 | 80c91228d89010c87117452fdd998f9bea0b1980 | /lib/rotation/rt_train.py | 4ec5e6db7761e380f6c6a7153624600513c4e079 | [
"MIT",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | zhenxingsh/RRPN | edbb2bc3d3e1bcdd3c70cd4597448b695b95f960 | a21492c865e1fbe92396a10e3877b74dfd4e649f | refs/heads/master | 2020-04-02T13:15:25.332405 | 2018-10-25T05:18:01 | 2018-10-25T05:18:01 | 154,473,717 | 0 | 0 | NOASSERTION | 2018-10-24T09:23:20 | 2018-10-24T09:23:20 | null | UTF-8 | Python | false | false | 6,148 | py | # --------------------------------------------------------
# Fast R-CNN
# Copyright (c) 2015 Microsoft
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick
# --------------------------------------------------------
"""Train a Fast R-CNN network."""
import caffe
from fast_rcnn.config i... | [
"mjq11302010044@gmail.com"
] | mjq11302010044@gmail.com |
2a3972a64b66f5319c38cbd0e8d95367c3db265c | ce7680ac0960fbd889edd7175a15a2ed2eecb484 | /supervised_learning/0x05-regularization/5-main.py | 4e0d3991a535f1c3f0b9699983f59d92cba229b6 | [] | no_license | macoyulloa/holbertonschool-machine_learning | d27075c37ddfc026a984f849a333458b9200f8d8 | 1d86c9606371697854878b833b810d73c9af7ee7 | refs/heads/master | 2020-12-22T10:11:42.232484 | 2020-11-05T04:08:15 | 2020-11-05T04:08:15 | 236,747,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | #!/usr/bin/env python3
import numpy as np
dropout_forward_prop = __import__('4-dropout_forward_prop').dropout_forward_prop
dropout_gradient_descent = __import__('5-dropout_gradient_descent').dropout_gradient_descent
def one_hot(Y, classes):
"""convert an array to a one-hot matrix"""
m = Y.shape[0]
one_ho... | [
"malejacoy@hotmail.com"
] | malejacoy@hotmail.com |
0d0d6ef26836e0f5bbc7ee21c0c58d8d58975208 | 6dedbcff0af848aa979574426ad9fa3936be5c4a | /cengal/user_interface/gui/tkinter/components/tool_tip/versions/v_0/tool_tip.py | 47723a8e1d3bfd9ec22f29cfee9e23e23a47ea71 | [
"Apache-2.0"
] | permissive | FI-Mihej/Cengal | 558d13541865e22006431bd1a1410ad57261484a | d36c05f4c90dfdac7296e87cf682df2f4d367e4b | refs/heads/master | 2023-06-08T00:39:39.414352 | 2023-06-05T21:35:50 | 2023-06-05T21:35:50 | 68,829,562 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | #!/usr/bin/env python
# coding=utf-8
# Copyright © 2012-2023 ButenkoMS. All rights reserved. Contacts: <gtalk@butenkoms.space>
#
# 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:... | [
"gtalk@butenkoms.space"
] | gtalk@butenkoms.space |
ed5c23d5fdf0e899b43763211decaf028c6752b5 | 05b1f1ad41cf63fb28a611a28871323f151fa6f8 | /code/hmm.indicator.species.v2.py | 204d9c451ed6262a85aee0ae519543507c060663 | [] | no_license | anhnguyendepocen/likelihood-methods-course-2019 | c8204b6d4ef2a00e142c7a047082ee752777c8f8 | ad3366ba163556f495be1a777fef34dbf4e8f21d | refs/heads/master | 2022-01-24T05:05:21.397917 | 2019-05-01T00:00:35 | 2019-05-01T00:00:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,086 | py | # v2 : estimate habitat transition rate
from math import exp,log
from scipy import optimize
def calc_t_rate(r_rates):
def scipy_ln_like0(x):
llx,fprbs,rprbs=foward_backward(observations,states,start_probability,x)
return -llx
bounds = [ (0.001,0.999) ]
best, val, d = optimize.fmin_l_bfgs_b(scipy_ln_like0, r_... | [
"mtholder@gmail.com"
] | mtholder@gmail.com |
74a9b6666616f2e7f37e3e2fd009680fccde2844 | 28e99f0cb2be8d510f4bf53bdf7aaffd87537078 | /blacklist/admin.py | d6074bdfb851f5892b0e367f3482f60db3a369eb | [] | no_license | OpsWorld/db_platform | d8e7da9abae12ac03777fb1f07a694e400290348 | 940af805c48f8d28329da912836c14973cedd55c | refs/heads/master | 2021-01-19T17:28:14.695162 | 2017-08-22T12:37:52 | 2017-08-22T12:37:52 | 101,061,146 | 1 | 3 | null | 2017-08-22T12:36:56 | 2017-08-22T12:36:56 | null | UTF-8 | Python | false | false | 139 | py | from django.contrib import admin
from blacklist.models import Tb_blacklist
# Register your models here.
admin.site.register(Tb_blacklist)
| [
"changjingxiu1@163.com"
] | changjingxiu1@163.com |
faec179a64768e5693ff87623516923213aeea5e | f90ee7c0734712099ccbc5cb7f6f792a74c8edd1 | /newenv/bin/easy_install | 2fc7ec850ae686c877b52c6386e9b90e5c701a54 | [] | no_license | jadielmwangi/Neighbourhood | 5491957ca094da2bc675437d52a2815fb4e9c7ad | 64ea1dda7ddb08841337ed8189c81fe396fc4687 | refs/heads/master | 2022-09-28T22:12:13.601915 | 2019-12-02T12:51:22 | 2019-12-02T12:51:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | #!/home/brian/Documents/Core/Python/Django/Neighbourhood/newenv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"b.odhiambo.bo@gmail.com"
] | b.odhiambo.bo@gmail.com | |
e8cee301580509c64b840566aa2f9d100157b826 | de64b143a346585f51590bd674e8d13bbc672386 | /algorithm/2022/0329_1054_Distant_Barcodes/hyunji.py | 548c41aa89703a06323cf3a5d0a061d5b0a9a10d | [] | no_license | ai-kmu/etc | 304ec20f59e4026025abdcbcae21863c80630dcb | 9c29941e19b7dd2a2037b110dd6e16690e9a0cc2 | refs/heads/master | 2023-08-21T16:30:31.149956 | 2023-08-21T16:26:19 | 2023-08-21T16:26:19 | 199,843,899 | 3 | 24 | null | 2023-05-31T09:56:59 | 2019-07-31T11:36:16 | Jupyter Notebook | UTF-8 | Python | false | false | 1,393 | py | '''
1. 각 barcode 별로 개수를 세어준 뒤, 이를 k(barcode), v(barcode 개수) 로 딕셔너리화 해준다
2. 그리고 딕셔너리를 v(barcode 개수) 로 내림차순 정렬해준다.
3. 그리고 v 크기만큼 loop를 돌면서 가장 큰 v 를 가진 k 부터 차례로 res 배열의 짝수 index를 채워준다.
ex. [1, 0, 1, 0, 1, 0, 1, 0]
4. 이런 식으로 정답 배열을 채워 나가다가, i >= n 이 되는 경우, i = 1 로 지정해주고
5. 정답 배열의 홀수 index를 채워나가면 된다.
ex. [1, 2, 1, ... | [
"noreply@github.com"
] | ai-kmu.noreply@github.com |
761bf3b912261d008b1bf714d55b58f43262d6de | a9a5fff448fdff30cd172f622820a6ec128fc65c | /build_network.py | 03d915889b79517b5bd9e10946f00a1eb564365d | [
"MIT"
] | permissive | johnbachman/indra_pertbio | 6a9bdb06db8f257604fe150c3fad315f60fa1c1a | 5dbfa28f7d3c90f500effe11a893bc6e1011cb15 | refs/heads/master | 2021-01-19T14:34:03.526044 | 2017-06-13T21:41:29 | 2017-06-13T21:41:29 | 88,171,397 | 1 | 0 | null | 2017-04-13T14:05:32 | 2017-04-13T14:05:31 | null | UTF-8 | Python | false | false | 3,348 | py | from __future__ import absolute_import, print_function, unicode_literals
from builtins import dict, str
import sys
from os.path import join as pjoin
import pandas as pd
from indra.tools import assemble_corpus as ac
from process_abs import get_valid_genes
from indra.tools.gene_network import GeneNetwork
from indra impor... | [
"bachmanjohn@gmail.com"
] | bachmanjohn@gmail.com |
a1293498c1a046c54bbeaaf518580e25159968af | 1508b3e3f56e750e38db4334343beedcbb2f9c95 | /43/myIter.py | 258860d0e1e0e8dfbd7a8aea94dfe4792b9b64a5 | [] | no_license | kellyseeme/pythonexample | 3bb325e31c677160c1abd6c3f314f7ef3af55daa | 3eab43cdfa5c59a0f4553de84c9de21e5ded44bb | refs/heads/master | 2021-01-21T13:52:43.076697 | 2016-05-30T06:32:37 | 2016-05-30T06:32:37 | 51,348,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | #!/usr/bin/env python
"""
this is for a example of set the iterable and iterator
"""
#this is define a class of Data,this is a iterable
class Data(object):
#this is the __init__ function,get the values of the more arguments,then pass it to get a tuple
def __init__(self,*args):
self.data = tuple(args)
#this ... | [
"root@python.(none)"
] | root@python.(none) |
e784538dff8999e60516966dbf8c25c667465b63 | 59c319e5c1ec456b55e2ea37812e3303ae1a2583 | /vkviewer/python/views/admin/AdminEvaluationPage.py | 9e96ee5204c8a5877c5222d5aaa12122921feede | [] | no_license | JSchwzr/vkviewer | 368c889883b845c15bcb79a6c2288ae43ada3f55 | 62e06d3e177e349cf681e0e87dd07646b463aeda | refs/heads/master | 2021-01-12T22:33:56.692407 | 2014-09-10T14:51:59 | 2014-09-10T14:51:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,543 | py | # -*- coding: utf-8 -*-
import ast, json
from pyramid.view import view_config
# database imports
from vkviewer import log
from vkviewer.python.utils.parser import convertUnicodeDictToUtf
# query for getting all georeference processes from a special user
georeference_evaluation_query = 'SELECT georef.id as georef_id, ... | [
"jacobmendt@googlemail.com"
] | jacobmendt@googlemail.com |
dece027553aa3554bcc10ef5096925c1d7598e7c | c115eb6841d310cea6abe6d845634b4e7ed8f631 | /housing_estate/migrations/0001_initial.py | 0d9d6ebfe68cc73fdcb92df9e122a75a7baf0125 | [] | no_license | pngimbwa/real_estate | 08cde8bf8fb9f43def541a92099ca884a87cdabf | bd273be5c7297cc5ed512e72743c0508037aac31 | refs/heads/master | 2021-01-20T00:00:49.288615 | 2017-04-22T15:15:01 | 2017-04-22T15:15:01 | 89,067,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,600 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-03-30 11:02
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import geoposition.fields
import housing_estate.models
class Migration(migrations.Migration):
initial = True
dependencies =... | [
"pngimbwa6@gmail.com"
] | pngimbwa6@gmail.com |
abac8d92fe696f83488b83b5d4b1b8eee8d6c703 | 8fb28f932fc05b4c96bd29c4616003c8aa582fca | /torque_pendulum/ocp_config.py | c6a8cb5bbeb11726f737510c97d332215770ad29 | [] | no_license | ghorn/dp_yolo | 031e624c90ac4e9236371ac8c59917a23e273092 | cf42b61c56c472cc1b2c338e7ee85674c7a4d5bd | refs/heads/master | 2021-01-24T01:29:32.627506 | 2018-02-26T19:19:14 | 2018-02-26T19:19:14 | 122,811,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | #!/usr/bin/env ipython3
import numpy as np
import sys
def _wrap_angle(q):
return np.remainder(q + np.pi, 2*np.pi) - np.pi
def _ghetto_wrap_angle(q):
while q > np.pi:
q -= 2*np.pi
while q < -np.pi:
q += 2*np.pi
return q
def _cost_function(x, u):
return 1 + 1e-2*(_wrap_angle(x[0])... | [
"gregmainland@gmail.com"
] | gregmainland@gmail.com |
dd1e4f059c849aaccdd3553600f5f4c559d29b5b | 7a84c0e8bc128e4e5aa824d4f9ddcf667280f777 | /script/adb_install.py | 05d3978efd9c0ca8d8c013aac1faabf88e6b4930 | [] | no_license | fcua/x8623 | bea592a608b451d9eb4f33b2efa34f676410d643 | d7f0c8347629879cbff14dec8b080b1cccf31668 | refs/heads/master | 2020-03-21T08:10:35.749426 | 2017-10-12T03:16:39 | 2017-10-12T03:16:39 | 138,325,785 | 0 | 5 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | #!/usr/bin/python
# coding: utf-8
import sys
import os
import shutil
if __name__ == '__main__':
os.system('adb install -r ../frameworks/runtime-src/proj.android/bin/majiang-release.apk')
| [
"yyolq0410@163.com"
] | yyolq0410@163.com |
f1ea16cefab6ed239a34a7b735ff3942ca652184 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Quantization/trend_Lag1Trend/cycle_12/ar_/test_artificial_32_Quantization_Lag1Trend_12__100.py | aacfc3f5455efc50598997d397d8eaacbfb5ea58 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 273 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "Quantization", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
f020ff5b2935c2f55633bb8f35d9cdd68e8a84bd | 00dcd089d7afe33c38823d968482245641d76aab | /Cuisine-retrieval/evaluate_gpu.py | aae1b84022715f6d00659c9506b18e9c1a5520c6 | [
"MIT"
] | permissive | WallZFE/A_reID | 347e6c6deacbb3aca136f10701e7f1994456be51 | efe055d41b4924ed8265d24121bcc7760d398a03 | refs/heads/master | 2023-06-07T11:50:51.152250 | 2021-06-23T13:06:34 | 2021-06-23T13:06:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,720 | py | import scipy.io
import torch
import numpy as np
#import time
import os
#######################################################################
# Evaluate
def evaluate(qf,ql,gf,gl):
query = qf.view(-1,1)
# print(query.shape)
score = torch.mm(gf,query)
score = score.squeeze(1).cpu()
score = score.num... | [
"zdzheng12@gmail.com"
] | zdzheng12@gmail.com |
c05dbe7ae9f70c553af3f1f7e59867a87b15115d | 1e284378ed31537a59d6ccba0e610692f72aa47e | /l1_localization/q3_phit_pmiss.py | 7e31459455da4e86c3773b0844b669c745686448 | [] | no_license | RocketFlash/AI_for_robotics_Udacity | 5912829fdbce99f326b26a497f9f36c30939cab7 | 932d81011ed9a3cacb52704b8c68d6b2b570c22a | refs/heads/master | 2020-03-08T06:12:58.617874 | 2019-02-02T15:09:47 | 2019-02-02T15:09:47 | 127,965,794 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Write code that outputs p after multiplying each entry
# by pHit or pMiss at the appropriate places. Remember that
# the red cells 1 and 2 are hits and the other green cells
# are misses.
p = [0.2, 0.2, 0.2, 0.2, 0.2]
pHit = 0.6
pMiss = 0.2
# Enter code here
hit_miss = [0, 1, 1, 0, 0]
p = [p[i]*pHit if hit_miss[i]... | [
"goodraff@gmail.com"
] | goodraff@gmail.com |
af828bd980d356f5b34d30d7f599b9deac6b203d | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /plugins/module_utils/facts/system/apparmor.py | e5c05c4ace4e1dd8292bd4616a0888982e0507bd | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | # Collect facts related to apparmor
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# An... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
d9d5ec563a98b1e2e54c42c49f1f274bdc91a99d | d46c6c68cc3629049cf1b5c693543ca4a63ea52b | /test/test_glove.py | 7de0c5f36ea45af3faaa93ca26c34fe2f75e874d | [
"Apache-2.0",
"CC-BY-SA-4.0"
] | permissive | mathaix/cs224u | a4118992d6fee07ba4f0831d53125ba3efa71503 | bb8534dbbd147b049e21ac9cb2a6ef6d27f8cb9d | refs/heads/master | 2023-03-03T03:30:12.077376 | 2021-02-14T19:42:31 | 2021-02-14T19:42:31 | 331,805,488 | 0 | 0 | Apache-2.0 | 2021-02-14T19:42:32 | 2021-01-22T01:44:09 | null | UTF-8 | Python | false | false | 2,881 | py | import numpy as np
import pandas as pd
import pytest
import tempfile
import torch.nn as nn
import utils
from test_torch_model_base import PARAMS_WITH_TEST_VALUES as BASE_PARAMS
from torch_glove import TorchGloVe, simple_example
from np_glove import GloVe
__author__ = "Christopher Potts"
__version__ = "CS224u, Stanfor... | [
"cgpotts@gmail.com"
] | cgpotts@gmail.com |
42df8055da338df98e35bbabe2cf46b7e4300e41 | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /tests/components/totalconnect/test_binary_sensor.py | 966daeb5a63ed00e9ea06a73a79b572b9ad74c15 | [
"Apache-2.0"
] | permissive | konnected-io/home-assistant | 037f12c87bb79e19220192eb918e49db1b1a8b3e | 2e65b77b2b5c17919939481f327963abdfdc53f0 | refs/heads/dev | 2023-05-11T08:57:41.891518 | 2023-05-07T20:03:37 | 2023-05-07T20:03:37 | 109,931,626 | 24 | 10 | Apache-2.0 | 2023-02-22T06:24:01 | 2017-11-08T05:27:21 | Python | UTF-8 | Python | false | false | 3,559 | py | """Tests for the TotalConnect binary sensor."""
from unittest.mock import patch
from homeassistant.components.binary_sensor import (
DOMAIN as BINARY_SENSOR,
BinarySensorDeviceClass,
)
from homeassistant.const import ATTR_FRIENDLY_NAME, STATE_OFF, STATE_ON
from homeassistant.core import HomeAssistant
from home... | [
"noreply@github.com"
] | konnected-io.noreply@github.com |
999653a68b08c289ce8961d4da01aed51fccc9bb | e241ecb79dfd7d8a3c3389ad37a7c3afed2256bd | /code/学号已绑定.py | 9ce820da4aeb8ed32a84d0e74f182fd25e2e1790 | [
"MIT"
] | permissive | wayneZQ/13water | 7effded270acb5afffdeb746ae457106050ae08c | 6916ad3f10a66d2610b5ddc52962939b75926914 | refs/heads/master | 2020-08-31T00:10:18.711121 | 2019-10-30T12:44:52 | 2019-10-30T12:44:52 | 218,530,527 | 1 | 0 | MIT | 2019-10-30T13:11:30 | 2019-10-30T13:11:30 | null | UTF-8 | Python | false | false | 1,585 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '学号已绑定.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_stunum_used(object):
def setupUi(self, stunum_used):
stunum... | [
"you@example.com"
] | you@example.com |
fcfc50e79aae70e78eaf8d6b04bf5f12f049271b | 28ed30d85c7998c05534f3b7be247896a58c7ebd | /scripts/cfe_pure_api.py | 0bec25ec571dc36a890171738e9868a4987ef13a | [] | no_license | rahulsayon/PureDjangoAPI | 571803220d6ac4709580803ac8ec8695f69ce815 | 07dc15f9b6a258b5473d1425e79cfb8a271db7c6 | refs/heads/master | 2022-12-11T18:36:31.267068 | 2020-09-14T21:14:15 | 2020-09-14T21:14:15 | 295,540,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | import json
import requests
BASE_URL = "http://127.0.0.1:8000/"
ENDPOINT = "api/update/"
def get_list():
r = requests.get(BASE_URL + ENDPOINT)
print(r.status_code)
status_code = r.status_code
if status_code != 200:
print("probably not good sign?")
data = r.json()
for obj in data:
... | [
"rahulsayon95@gmail.com"
] | rahulsayon95@gmail.com |
7117840d2e7b805d4dafb423d683ae96b5954170 | 41586d36dd07c06860b9808c760e2b0212ed846b | /programming/misc/libunique1/actions.py | a824c22628c68f82fe8d844f747572d184baaf8f | [] | no_license | SulinOS/SulinRepository | 4d5551861f57bc1f4bec6879dfe28ce68c7c125d | 9686811a1e06080f63199233561a922fe1f78d67 | refs/heads/master | 2021-06-15T21:34:25.039979 | 2021-06-05T13:43:34 | 2021-06-05T13:43:34 | 207,672,864 | 6 | 3 | null | 2019-12-06T08:11:22 | 2019-09-10T22:16:17 | Python | UTF-8 | Python | false | false | 714 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import get
shellt... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
44393dd55eab63214717704b52328435ec71e9eb | c5ed6703c90f17fde66a493b4805ffaa9a1d4ffa | /pythonchallange/Challange 1/1.py | 78ea9755ea6841fb9857de7d063f3f5ac478b2ae | [] | no_license | garetroy/oldcode | 4a9f8d732c2024111fb959e53c5e5a1417de83cb | 2c2bdd08d0d9734053a255b5c16378472aca5f0b | refs/heads/master | 2021-05-09T21:11:47.171083 | 2018-01-24T07:10:20 | 2018-01-24T07:10:20 | 118,723,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | import sys
#alpha = 'abcdefghijklmnopqrstuvwxyz'
#def translate(phrase1):
# phrase =[]
# for i in phrase1:
#phrase.append(i)
# for idx, i in enumerate(phrase):
# if i in alpha and alpha.index(i) <= 23:
# phrase[idx] = alpha[alpha.index(i) + 2]
# elif i in alpha:
# phrase[idx] = alpha[(alpha.index(i) + 2) - 26... | [
"mygarett@gmail.com"
] | mygarett@gmail.com |
91f718ccfc72be5be3d0043532c59141504e3875 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_203/155.py | 46ba9eb97579dc1f361192d01b258d7562491f48 | [] | 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 | 1,607 | py | '''
Developer : Eashan Adhikarla
Problem : Alphabet Cake
Time : Sat Apr 15 7:22am
'''
import re
if __name__ == "__main__":
with open("A-large.in.txt", "r") as r, open("a.out", "w") as w:
t = int(r.readline().strip())
for _ in range(t):
n, m = map(int, r.readline().strip().split())
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5bbfd02140928caec5d98ad75ac461ca6e16d960 | c6fc5b16824ca6d28975e0cc7eae7a1fc6dbbe38 | /gypz/card/migrations/0003_card_solicitation_date.py | 51dde164763d5223cb0265a0d17656a531237244 | [] | no_license | RamiroAlvaro/gypzlab | 476cf613d0352a94112680a14966c721e09ac4a4 | dd4b2ba359e348bc539f7a53c032c8701bf07712 | refs/heads/main | 2023-01-29T19:36:02.682113 | 2020-12-11T00:28:37 | 2020-12-11T00:28:37 | 318,597,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | # Generated by Django 3.1.4 on 2020-12-07 23:00
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('card', '0002_card_user'),
]
operations = [
migrations.AddField(
model_name='card',
name... | [
"ramiroalvaro@hotmail.com"
] | ramiroalvaro@hotmail.com |
48af95923ae78e37b88c4163cc35fbd94249aad6 | 0db19410e9751790af8ce4a0a9332293e379c02f | /mmpose/evaluation/__init__.py | f70dc226d30f7b8e4ee5a44ca163ad1ae04eabf5 | [
"Apache-2.0"
] | permissive | open-mmlab/mmpose | 2c9986521d35eee35d822fb255e8e68486026d94 | 537bd8e543ab463fb55120d5caaa1ae22d6aaf06 | refs/heads/main | 2023-08-30T19:44:21.349410 | 2023-07-04T13:18:22 | 2023-07-04T13:18:22 | 278,003,645 | 4,037 | 1,171 | Apache-2.0 | 2023-09-14T09:44:55 | 2020-07-08T06:02:55 | Python | UTF-8 | Python | false | false | 135 | py | # Copyright (c) OpenMMLab. All rights reserved.
from .functional import * # noqa: F401,F403
from .metrics import * # noqa: F401,F403
| [
"noreply@github.com"
] | open-mmlab.noreply@github.com |
982106a77fcac1688f2c94bc4b686d2b2423fd2e | 801510e45d9aebe5c5b8b09a3ce4453a3a11a3ca | /flask/flask_fundamentals/counter/server_counter.py | 9bc66e58477039ef3ea332deb109ab224daeab96 | [] | no_license | michelleshan/coding_dojo_python_course | 5581ebca0a645ba7231a2da2d2d64d6c3735bfc4 | e20e8195950004ef0aa09e6b0f84e7f05bd355e8 | refs/heads/master | 2022-11-21T01:34:54.309175 | 2020-07-16T03:29:45 | 2020-07-16T03:29:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from flask import Flask, render_template, request, session, redirect
app = Flask(__name__)
app.secret_key = 'whoAteAllTheFigBars'
@app.route('/')
def root():
if 'count' in session:
print('count exists!')
session['count'] +=1
else:
print('count does NOT exist')
session['count'] ... | [
"michellehan@Michelles-Air.attlocal.net"
] | michellehan@Michelles-Air.attlocal.net |
17f40fc950539db8c6a411da4cded4aaa53b5e65 | b5cba8f16603489666934c637b94ab0786923e3f | /dsn_stock_picking_export/__openerp__.py | 58be2e26375b05497fd855bb5f21f9fa7570e9d7 | [] | no_license | vicktormartin/odoo | 0235c15f8e347d837eb71498e4401c8ea1ebd877 | bd182e34795aed615497e83d41efe701f1b1d7d3 | refs/heads/8.0 | 2021-01-20T10:23:59.291233 | 2017-08-28T11:01:54 | 2017-08-28T11:01:54 | 101,632,871 | 0 | 0 | null | 2017-08-28T10:41:55 | 2017-08-28T10:41:55 | null | UTF-8 | Python | false | false | 1,598 | py | # -*- encoding: utf-8 -*-
##########################################################################
# Copyright (C) 2014 Victor Martin #
# #
# This program is free software: you can redistribute it and/or modif... | [
"sistemas@disna.com"
] | sistemas@disna.com |
5a4b40b19a5e423f63b2bde188c8677c1fd284ff | 90914b7d84d69a86652e69d1ad72888af363367b | /marketing_automation/routes.py | ad008d072ff2dc3421869224aca18eb3035dd7e8 | [] | no_license | emperadorxp1/TrytonModules | 754a3ca92c0ac7b2db9165208b1bc5fda5fe4a73 | 33ef61752e1c5f490e7ed4ee8a3f0cff63a8fc89 | refs/heads/master | 2020-12-19T18:41:05.260174 | 2020-01-23T15:32:57 | 2020-01-23T15:32:57 | 235,815,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,295 | py | # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from werkzeug.wrappers import Response
from werkzeug.utils import redirect
from trytond.transaction import Transaction
from trytond.tools import file_open
from trytond.protoco... | [
"joxua.1995@gmail.com"
] | joxua.1995@gmail.com |
5d8befe9b6f3dabc9bc2d731e9499193ab357d25 | e94784b8fbf8e20cf49c927a637859a823e0fc2f | /rewards/urls.py | 5395b793cccc13f7597911bab2f3013bb8b11434 | [] | no_license | andreas-dautovic/carrotwars | c8c42ca2de32f0238a4c3891c3ae6ddaf7d440fd | 46967917219a4ea12cb45bdf5b63ffae24e273e8 | refs/heads/master | 2021-01-18T08:04:11.053519 | 2012-12-11T07:05:59 | 2012-12-11T07:05:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | from django.conf.urls import patterns, url
from rewards.models import Reward
from rewards.views import RewardListView, RewardDetailView, RewardCreateView, RewardDeleteView, RewardUpdateView
urlpatterns = patterns('',
# ex: /rewards/
url(r'^$',
RewardListView.as_view(),
name='list'),
# ex: /... | [
"eraldo@eraldo.org"
] | eraldo@eraldo.org |
5af931c985be9f6327c60a956fd1deb5a7af67d2 | bc2a96e8b529b0c750f6bc1d0424300af9743904 | /acapy_client/models/connection_module_response.py | 5b58cb61632cd7cd2f8a4eb52d1282cb97e0513b | [
"Apache-2.0"
] | permissive | TimoGlastra/acapy-client | d091fd67c97a57f2b3462353459780281de51281 | d92ef607ba2ff1152ec15429f2edb20976991424 | refs/heads/main | 2023-06-29T22:45:07.541728 | 2021-08-03T15:54:48 | 2021-08-03T15:54:48 | 396,015,854 | 1 | 0 | Apache-2.0 | 2021-08-14T13:22:28 | 2021-08-14T13:22:27 | null | UTF-8 | Python | false | false | 1,216 | py | from typing import Any, Dict, List, Type, TypeVar
import attr
T = TypeVar("T", bound="ConnectionModuleResponse")
@attr.s(auto_attribs=True)
class ConnectionModuleResponse:
""" """
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
def to_dict(self) -> Dict[str, Any]:
fi... | [
"dbluhm@pm.me"
] | dbluhm@pm.me |
ddef721a1c9c057fd580df7835e85cad70c7bd2d | c7a6f8ed434c86b4cdae9c6144b9dd557e594f78 | /ECE364/.PyCharm40/system/python_stubs/348993582/gnome/ui/FontPickerMode.py | 8b6db368e7db57871dc15c182529f27de3aae775 | [] | no_license | ArbalestV/Purdue-Coursework | 75d979bbe72106975812b1d46b7d854e16e8e15e | ee7f86145edb41c17aefcd442fa42353a9e1b5d1 | refs/heads/master | 2020-08-29T05:27:52.342264 | 2018-04-03T17:59:01 | 2018-04-03T17:59:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | # encoding: utf-8
# module gnome.ui
# from /usr/lib64/python2.6/site-packages/gtk-2.0/gnome/ui.so
# by generator 1.136
# no doc
# imports
import gnome.canvas as __gnome_canvas
import gobject as __gobject
import gobject._gobject as __gobject__gobject
import gtk as __gtk
class FontPickerMode(__gobject.GEnum):
# no... | [
"pkalita@princeton.edu"
] | pkalita@princeton.edu |
bc30abb69ac43d4f63d3f09a5fec5bf624dee947 | c97fc7658c39feb51c0ed42c04783797c8675b8a | /2018/pcy1/day5_import_lib/sys_moudel/sys_2修改文件.py | cf5c21fa8fa1ae2087c64245d1cc9892a7b2c709 | [] | no_license | githubvit/study | 8bff13b18bea4954e8ed1b4619a091b134b8ff97 | 845e19d1225f1aa51c828b15effac30be42fdc1b | refs/heads/master | 2023-02-20T15:59:19.635611 | 2021-12-15T08:30:54 | 2021-12-15T08:30:54 | 241,928,274 | 1 | 1 | null | 2023-02-02T06:18:48 | 2020-02-20T16:08:06 | Python | UTF-8 | Python | false | false | 1,057 | py | #-*- coding:utf8 -*-
'''
输入要修改的文件名 想修改的内容 新的内容
就会在文件的同级目录下 产生修改后的以源文件名+'.bak'结尾的新的文件。
'''
import sys
print sys.argv #sys.argv 读取程序运行参数列表,打印一下参数列表,以便确定参数的下标是否正确
filename=sys.argv[1]
f1=open(filename,'r')
f2=open(filename+'.bak','w') #这里尤其要注意,要用+'.bak',才能创建filename.bak文件。
a=sys.argv[2]#.decode('gbk').encode('utf8')... | [
"sgq523@163.com"
] | sgq523@163.com |
9c01940423bbb43f4a4cc5c1e7ad8aa5581b310f | dd95ffd46e93fac179985bc5cba2160fe87360e8 | /backend/meeting/migrations/0001_initial.py | dc8deb6a84c12baa1ddc4e0202cdaab506f86304 | [] | no_license | BenjaminSchubert/HEIG_VD_2016_PDG | e819e9aba9a0bbbdeca32fa39330a6237ffeba9c | 38f0b29e6fc737756ae21a8c193a110876bc221c | refs/heads/master | 2021-06-11T02:09:06.137117 | 2017-01-11T10:44:00 | 2017-01-11T10:44:00 | 68,803,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-10 22:51
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import popo_attribute_tracker.attribute_tracker
class Migration(migrations.Migration):
initial = True
dependencies = [
... | [
"ben.c.schubert@gmail.com"
] | ben.c.schubert@gmail.com |
8020228564b709d802d3281c8891336bebbd23e3 | 58cf4e5a576b2baf7755ae19d410bf8afc2f3709 | /contest-solutions/March2021/missing_number.py | 13ba38f9fe9169900b37a24b81000f61504771f4 | [] | no_license | srihariprasad-r/leet-code | 78284beac34a4d84dde9f8cd36503496b618fdf7 | fc4f1455bafd1496eb5469a509be8638b75155c1 | refs/heads/master | 2023-08-16T20:24:09.474931 | 2023-08-07T14:23:36 | 2023-08-07T14:23:36 | 231,920,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | class Solution(object):
def missingNumber(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
ln = len(nums)
tot_sum = 0
for i in range(ln+1) :
tot_sum += i
missing_num = tot_sum - sum(nums)
return miss... | [
"59530606+srihariprasad-r@users.noreply.github.com"
] | 59530606+srihariprasad-r@users.noreply.github.com |
42b3930a84f39f2800d57ac58cbdd2e67747a823 | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project/.history/main_20211116163123.py | 5d28f1600a3f215a5629fd99a539976177877919 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 2,644 | py | import product as p
def choose():
action = 0
while action >= 0:
if action == 1:
p.AddProduct()
print("--------------------------------")
elif action == 2:
p.DeleteProduct()
elif action == 3:
p.UpdateProduct()
elif action == 4:
... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.