blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
777 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
⌀
gha_language
stringclasses
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
65caa4c17174e419835d5ff3a13b779781b3cd80
a39d0d1f0e257d0fff5de58e3959906dafb45347
/Lutts/Gui/Tour/menu/menu_frm-multi.py
179da6f9cc5a12b307465cb11e3116db190a4c05
[]
no_license
Twishar/Python
998d7b304070b621ca7cdec548156ca7750ef38e
1d1afa79df1aae7b48ac690d9b930708767b6d41
refs/heads/master
2021-09-23T14:18:36.195494
2018-09-24T12:33:36
2018-09-24T12:33:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
from Lutts.Gui.Tour.menu.menu_frm import makemenu from tkinter import * root = Tk() for i in range(2): mnu = makemenu(root) mnu.config(bd = 2, relief = RAISED) Label(root, bg = 'black', height = 5, width = 25).pack(expand = YES, fill = BOTH) Button(root, text='Bye', command = root.quit).pack() root.mainlo...
[ "stognienkovv@gmail.com" ]
stognienkovv@gmail.com
b3f6861db0d20f25293768964cbbdeb364e67e14
56803feaa0cbcc484d23d96240fe50013013495d
/tests/test_expression_tree/test_variable.py
173c0dc86afa0254fbbc0b9dd4e061f53ece7096
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
whiteboxbatteries/PyBaMM
bd6b65f2d91430d95607a6cb62ebaa0c3a2d2367
144cb5de79f1c9903886975c6ec0c7d4025d163d
refs/heads/master
2020-04-28T02:18:08.503033
2019-03-07T13:02:37
2019-03-07T13:02:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,096
py
# # Tests for the Parameter class # from __future__ import absolute_import, division from __future__ import print_function, unicode_literals import pybamm import unittest class TestVariable(unittest.TestCase): def test_variable_init(self): a = pybamm.Variable("a") self.assertEqual(a.name, "a") ...
[ "valentinsulzer@hotmail.com" ]
valentinsulzer@hotmail.com
bf624ef5b5256ecebf5bef119c37ff6feccceedc
1bff22bcc681c9024818bc2a7e453c6fe0bc1e93
/scripts/lowercase_log_nids.py
f0ce7e9b130916e4c85329b17f144d426266adb8
[ "BSD-2-Clause", "BSD-3-Clause", "LGPL-2.0-or-later", "MIT", "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
hmoco/osf.io
b1f04ab02299375ca5f1a9a2684b8bca295849a2
a02869f9b5c198bafae7cea0c216674bbcba62f7
refs/heads/develop
2020-04-05T10:15:08.544806
2017-05-09T22:18:21
2017-05-09T22:18:21
36,302,791
1
0
Apache-2.0
2018-08-13T16:03:00
2015-05-26T14:49:58
Python
UTF-8
Python
false
false
1,565
py
import sys from framework.mongo import database as db from framework.transactions.context import TokuTransaction from website.app import init_app def lowercase_nids(): for log in db.nodelog.find({'$or': [ {'params.node': {'$regex': '[A-Z]'}}, {'params.project': {'$regex': '[A-Z]'}}, {'pa...
[ "sloria1@gmail.com" ]
sloria1@gmail.com
b8f34d5a7fa32dea3dce9e8e476d85397f72b49c
8e52c27f1b2823db67db4438b2b7e22c18254eca
/pytorch/pytorchcv/models/cbamresnet.py
87121b907601715a2129da8939b38b1eaa7ee8a8
[ "MIT" ]
permissive
earhian/imgclsmob
5582f5f2d4062b620eecc28d5c4c9245fea47291
c87c0942420876941868c016211073dec4392e4d
refs/heads/master
2020-04-12T02:13:55.258601
2018-12-17T20:38:19
2018-12-17T20:38:19
162,242,486
1
0
MIT
2018-12-18T06:40:42
2018-12-18T06:40:41
null
UTF-8
Python
false
false
12,921
py
""" CBAM-ResNet, implemented in PyTorch. Original paper: 'CBAM: Convolutional Block Attention Module,' https://arxiv.org/abs/1807.06521. """ __all__ = ['CbamResNet', 'cbam_resnet18', 'cbam_resnet34', 'cbam_resnet50', 'cbam_resnet101', 'cbam_resnet152'] import os import torch import torch.nn as nn import torch...
[ "osemery@gmail.com" ]
osemery@gmail.com
91f4c4fcc97ae782be03917ba23576b2291a254a
8a0564e84e7a79fffb87e3ddef03cbb2ed83e098
/Backup/Backup/Backup/Tomography_v1.py
cedac8c9182741f311a7782e78c303c167bb938f
[]
no_license
dimanzt/NetworkTomography
7c302616c2fca3d8c3f8f94261a4b182e08f55b0
96e13761a9d45df267dab43c983470c6d7ed9162
refs/heads/master
2021-09-15T10:26:45.359278
2018-05-30T14:19:08
2018-05-30T14:19:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
50,037
py
# Author: Diman Zad Tootaghaj import pydot # import pydot or you're not going to get anywhere my friend :D import networkx as nx import my_lib as my_lib_var import sys #import winsound import time import itertools from scipy import stats import numpy as np import copy from numpy.linalg import svd from my_lib import * f...
[ "dxz149@psu.edu" ]
dxz149@psu.edu
cd89830d092bbc9630a5089cd2c83d9f90da2458
d024ccbb4cc04af3866a4db1ac1d8c1d7395d909
/boj/1166.py
c4c0b0afcacd3bc31c445394149d0dc826f68fb0
[]
no_license
demetoir/ps-solved-code
ff0418dddd10f3b053c9b8d32af48027b10c8481
f4d4fd2183176b083f2287c9d89c6d5a1e983cc5
refs/heads/master
2022-10-14T20:11:34.581439
2020-06-12T11:24:11
2020-06-12T11:24:11
68,782,768
1
0
null
null
null
null
UTF-8
Python
false
false
326
py
from decimal import * n,l,w,h=map(int,raw_input().split()) getcontext().prec=30 l,w,h=Decimal(l),Decimal(w),Decimal(h) lo=Decimal(0.0) hi=Decimal(98765432100.0) ans=Decimal(0.0) for i in range(10000): mid=Decimal((lo+hi)/2) a=(l//mid)*(w//mid)*(h//mid) if n<=(l//mid)*(w//mid)*(h//mid): lo=mid else: hi=mid prin...
[ "wnsqlehlswk@gmail.com" ]
wnsqlehlswk@gmail.com
93bb782337d16cf6ba130d5e618582c9826a1d04
a9434881d2261339fb692de8a9553020ccbd0d8c
/examples/01_add_product.py
17472baee9df3f2cad0234fb7e8c303f32d4eb8e
[]
no_license
FanapSoft/pod-product-python-sdk
49ea59d76626fb1deef7bb9fb1ac27503a5cd8c8
10ebcfad79fbfe67b1f5834f9ef7c62d2f75fd93
refs/heads/master
2021-01-02T06:21:32.289868
2020-02-29T09:43:47
2020-02-29T09:43:47
239,527,171
0
0
null
null
null
null
UTF-8
Python
false
false
8,338
py
# coding=utf-8 from __future__ import unicode_literals from pod_base import APIException, PodException from examples.config import * from pod_product import PodProduct try: pod_product = PodProduct(api_token=API_TOKEN, server_type=SERVER_MODE) print(pod_product.add_product(name="محصول تستی", price=150.08, des...
[ "rz.zare@gmail.com" ]
rz.zare@gmail.com
e3358ce10d5a897c9d8637dedc4e43ed3f38b84f
10d98fecb882d4c84595364f715f4e8b8309a66f
/caltrain/calibration_metrics.py
8a3db83a552970718a333f8abe44738e602c5e82
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
afcarl/google-research
51c7b70d176c0d70a5ee31ea1d87590f3d6c6f42
320a49f768cea27200044c0d12f394aa6c795feb
refs/heads/master
2021-12-02T18:36:03.760434
2021-09-30T20:59:01
2021-09-30T21:07:02
156,725,548
1
0
Apache-2.0
2018-11-08T15:13:53
2018-11-08T15:13:52
null
UTF-8
Python
false
false
10,021
py
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # 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 applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
48aeffe1ae0e29fb63767d0f3061484f3d10eb70
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/11104124.py
44953699ab86d0ec9d165c9bbf766633fd160800
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/11104124.py generated: Fri, 27 Mar 2015 16:10:18 # # Event Type: 11104124 # # ASCII decay Descriptor: [B0 -> pi+ pi- (KS0 -> pi+ pi-)]cc # from Configurables import Generation Generation().EventType = 11104124 Generation().SampleGenerationTool = "SignalRe...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
9dd6e2646b8cb5cd168ed8a60296ac40d97cd3f8
09667d2c1f3a1b009241a0dca80dc19c76c02e8c
/Scikit-Learn/04_training_linear_models.py
a4581325f752f4e8d3b743b19371a7c536d767cd
[]
no_license
lwzswufe/enhancement
d80d38dec52f940f15f4a2d5e531f946470429f4
ce453e9842df8f9565961576c4919a0205842c8b
refs/heads/master
2022-06-15T22:37:43.685850
2022-05-18T15:28:28
2022-05-18T15:28:28
71,648,001
4
2
null
null
null
null
UTF-8
Python
false
false
23,156
py
# Common imports import numpy as np import numpy.random as rnd import os import matplotlib as mpl import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression from sklearn.linear_model import SGDRegressor from sklearn.preprocessing import PolynomialFeatures from sklearn.preprocessing import Standar...
[ "lwzswufe@foxmail.com" ]
lwzswufe@foxmail.com
325e5756dc1b2b5a4b1ee1ca65397967cd339a76
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-4/2cfb30fc910ad7f40df93d8f0b9f05cb3f11cf86-<get>-fix.py
ecff0c823100c28344b61ed545f628cbf452f666
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
def get(self, key): url = ('%s/%s?recursive=true' % (self.baseurl, key)) data = None value = { } try: r = open_url(url, validate_certs=self.validate_certs) data = r.read() except: return None try: item = json.loads(data) if (self.version == 'v...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
02ac87c0a39e4eb708ebf623c7de27d3e030805c
588b28e9be045543a22f0a8ca99ba527199dc429
/chapter03/demo_3_2_3_7.py
1357513079e5c496bce8b1b20ad15c53ce75ac5e
[ "MIT" ]
permissive
NetworkRanger/python-spider-project
7404d4e36ac6a2cd70584d78dd81fec65a320628
f501e331a59608d9a321a0d7254fcbcf81b50ec2
refs/heads/master
2020-04-15T06:05:53.374965
2019-01-28T13:35:14
2019-01-28T13:35:14
164,448,396
2
0
null
null
null
null
UTF-8
Python
false
false
189
py
#!/usr/bin/python2.7 # -*- coding:utf-8 -*- # Author: NetworkRanger # Date: 2019/1/10 上午1:33 """ Timeouts超时设置 """ import requests requests.get('http://github.com', timeout=2)
[ "17346503142@163.com" ]
17346503142@163.com
220135a5b328544a0fea760f94a2b114a64ab7de
fc1c1e88a191b47f745625688d33555901fd8e9a
/meraki_sdk/models/mapping_model.py
deceb1a47445ec4a4385c3ef00fa07154bb731f4
[ "MIT", "Python-2.0" ]
permissive
RaulCatalano/meraki-python-sdk
9161673cfd715d147e0a6ddb556d9c9913e06580
9894089eb013318243ae48869cc5130eb37f80c0
refs/heads/master
2022-04-02T08:36:03.907147
2020-02-03T19:24:04
2020-02-03T19:24:04
416,889,849
1
0
null
null
null
null
UTF-8
Python
false
false
2,088
py
# -*- coding: utf-8 -*- """ meraki_sdk This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ). """ class MappingModel(object): """Implementation of the 'Mapping' model. TODO: type model description here. Attributes: dscp (int): The Di...
[ "api-pm@meraki.com" ]
api-pm@meraki.com
224931fc98c9fe5cba750912c628c6074006c9be
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_201/589.py
1f20ce7aa176c39401ce1a94ea62d5abcd9fc59b
[]
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,260
py
from collections import defaultdict inf = open( 'C-large.in', 'rb' ) outf = open( 'output.txt', 'wb' ) def runCase( caseId ): n, k = inf.readline().split(' ') n = int( n ) k = int( k ) - 1 intervals = { n : 1 } total = 1 while ( total < k ): new_intervals = defaultdi...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
806b45fb9e9f8144a029d04d0269b1945558c060
d3bb10af7c7426116e3052e0d2dea44889f30ab9
/Programmers/12921.py
1b4e9ac133239f20f658feeae49ce4659d076da7
[]
no_license
limdongjin/ProblemSolving
d9c73a1481b6b225eccf26c0b3879261ed1d5c75
b3e72f270b8e47618fe546a413c33b754eedd227
refs/heads/master
2022-08-24T21:44:11.796317
2022-07-24T11:02:21
2022-07-24T11:02:21
131,372,343
1
0
null
null
null
null
UTF-8
Python
false
false
623
py
# # https://programmers.co.kr/learn/courses/30/lessons/12921 # 문제 제목: 소수 찾기 # def solution(n): if n == 2: return 1 primes = [0, 0, 1, 1] for i in range(4, n + 1): primes.append(-1) for i in range(4, n + 1, 2): primes[i] = 0 for i in range(6, n + 1, 3): primes[i] = 0...
[ "geniuslim27@gmail.com" ]
geniuslim27@gmail.com
2b2776ab09a16cb570adf6da5bd0ca2ad05b7fc4
93134d8429cc7c5251ea76e19bf1856466bd2b48
/tests/test_lstm_modules.py
a7ec7681735e5244ffbdd0fff250ca1571cd9118
[ "MIT" ]
permissive
vita-epfl/trajnetplusplusbaselines
0bd7ce75740f3ed39ba82d1bfaa5d3c279da474f
99a6e9d8675face1aeeb17227b73dd3d1267f463
refs/heads/master
2023-04-14T23:21:54.217111
2022-10-04T09:52:01
2022-10-04T09:52:01
218,013,163
221
83
MIT
2023-04-04T15:07:11
2019-10-28T09:42:36
Python
UTF-8
Python
false
false
577
py
import torch import trajnetbaselines def test_start_enc(): input_embedding = trajnetbaselines.lstm.modules.InputEmbedding(2, 4, 1.0) obs = torch.Tensor([[0.0, 0.0], [0.0, 0.0]]) # obs with two vel entries assert input_embedding.start_enc(obs).numpy().tolist() == [[0, 0, 1, 0], [0, 0, 1, 0]] def test_st...
[ "me@svenkreiss.com" ]
me@svenkreiss.com
89c1f0c0cd80f7506fc6f81ed9573fc9b930fd1c
feccf7588777becba68921c0bfade3e21f5210ce
/airflow/providers/google/ads/_vendor/googleads/v12/common/types/metrics.py
997607be06bbb51b9ef01b98d6ec96bfc45876f3
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
francescomucio/airflow
f17ed9abd8b41d8a2227deca052508edf12f1cbf
c199b1a10563a11cf24436e38cb167ae82c01601
refs/heads/master
2023-04-14T17:44:53.438246
2023-04-06T06:44:23
2023-04-06T06:44:23
217,327,641
0
0
Apache-2.0
2020-09-09T13:26:47
2019-10-24T15:06:52
Python
UTF-8
Python
false
false
66,064
py
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # 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...
[ "noreply@github.com" ]
francescomucio.noreply@github.com
058fe46e23a49a6dbe99ce448d5a87d2e6c619d9
696e35ccdf167c3f6b1a7f5458406d3bb81987c9
/services/tracing/DEPS
265033b684a9ce71d15493927e7121004c8a758e
[ "BSD-3-Clause" ]
permissive
mgh3326/iridium-browser
064e91a5e37f4e8501ea971483bd1c76297261c3
e7de6a434d2659f02e94917be364a904a442d2d0
refs/heads/master
2023-03-30T16:18:27.391772
2019-04-24T02:14:32
2019-04-24T02:14:32
183,128,065
0
0
BSD-3-Clause
2019-11-30T06:06:02
2019-04-24T02:04:51
null
UTF-8
Python
false
false
205
include_rules = [ "+services/service_manager/public", "+third_party/perfetto/include", "+third_party/perfetto/protos/perfetto", "+third_party/protobuf/src/google/protobuf/io/zero_copy_stream.h", ]
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
bfdd361405183e99938348e278cac306690ecf30
73715bc42b333cfec449ffb5e4325116e0233533
/codes/model/vae.py
30481a6056693f5aae28a3f233f9df759bd56bd0
[ "MIT" ]
permissive
johndpope/Singing-Voice-Conversion-with-conditional-VAW-GAN
1058be9255fea59c7240e2f0c6ba5dcbc6f76e63
53abb1c66d29a8622d1a85e221fdcae09077186f
refs/heads/master
2022-12-05T02:28:11.627442
2020-08-12T00:07:41
2020-08-12T00:07:41
286,873,980
12
1
MIT
2020-08-12T00:04:26
2020-08-12T00:04:26
null
UTF-8
Python
false
false
4,906
py
import tensorflow as tf from tensorflow.contrib import slim from util.image import nchw_to_nhwc from util.layers import (GaussianKLD, GaussianLogDensity, GaussianSampleLayer, Layernorm, conv2d_nchw_layernorm, lrelu) # from model.wgan import GradientPenaltyWGAN class ConvVAE(object): def __...
[ "noreply@github.com" ]
johndpope.noreply@github.com
b84ef2ad46eae019e06a8c53201162bf621c7431
097f624986f3368feb8d80e065e21d80892f2cbd
/tests/parser/grounding.backjump.16.test.py
b15eceafaf50a06abb31d260923a32e732fe6805
[ "Apache-2.0" ]
permissive
veltri/DLV2
553032f03fe8004fa41e44a8ae398741a9cd499a
944aaef803aa75e7ec51d7e0c2b0d964687fdd0e
refs/heads/master
2020-04-06T07:05:01.919642
2014-10-30T11:14:43
2014-10-30T11:14:43
17,247,012
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
input = """ a(Z,P):-p(X), p(Y), #count{S:w(X,S)} = P, #count{R:r(R,Y)} = Z, 0<#count{T:s(T,Y)}<Z. p(1). p(2). w(1,1). w(2,1). w(2,2). r(1,1). r(2,1). r(0,2). r(2,2). r(3,2). r(4,2). s(1,1). s(2,1). s(2,1). s(2,2). """ output = """ a(Z,P):-p(X), p(Y), #count{S:w(X,S)} = P, #count{R:r(R,Y)} = Z, 0<#coun...
[ "veltri@mat.unical.it" ]
veltri@mat.unical.it
26898befead6485c1613d7fbb3ac9b1ff8876ee1
e39baffbade6cab7d7167cc89c663dd931769b7f
/test_ext.py
60e7ba1ad7efdd81dd728e6d97a88ae076246c78
[ "MIT" ]
permissive
vaexio/vaex-arrow-ext
1bea5cf4d11c4de5549ac490353a11042b045dd2
1257b251318f334ff938dced14931e78f56f99f3
refs/heads/master
2022-11-13T11:08:53.910388
2020-07-02T19:01:54
2020-07-02T19:01:54
276,642,625
11
3
MIT
2020-07-02T13:09:22
2020-07-02T12:39:17
C++
UTF-8
Python
false
false
546
py
import pytest import pyarrow as pa import numpy as np from vaex_arrow_ext import ext def test_madd(): a = pa.array([1, 2, 3], type=pa.float64()) b = pa.array([0, 2, 4], type=pa.float64()) c = pa.array([1, 1, 5], type=pa.float64()) assert ext.madd(a, b, c).to_pylist() == [1, 4, 23] with pytest.r...
[ "maartenbreddels@gmail.com" ]
maartenbreddels@gmail.com
6710e77503344d1e19d1003b00ea8c486c23ee53
5ae4faed34e12607930cf7294f0a4a1b3fe484d7
/code/020 Valid Parentheses.py
3b43d2e77eabd35b94b90a689395d48d84fc3745
[ "MIT" ]
permissive
Hehwang/Leetcode-Python
9c09ee838699fea471bda9a694c0248073dfa3fb
1e53d6575143aac2ea8424f3f4830f1b1eb0aaee
refs/heads/master
2022-03-27T12:42:44.089866
2020-01-08T07:44:12
2020-01-08T07:44:12
105,106,700
0
1
null
null
null
null
UTF-8
Python
false
false
474
py
class Solution(object): def isValid(self, s): """ :type s: str :rtype: bool """ tmpDict={'(':')','{':'}','[':']'} stack=[] for i in range(len(s)): if len(stack)==0: stack.append(s[i]) continue if stack[...
[ "565182282@qq.com" ]
565182282@qq.com
0e1f6e19c74a856d032018db8aca54262aa36278
993c39d7ed1bab5e30f7541f3309f854f704be4a
/lists/migrations/0002_auto__add_unique_item_list_text.py
a9937dc7304e23182ba4b6157c92a9f047c21294
[]
no_license
ropable/tdd-python
5e879dff50aadceafd992cc4433138011734768c
d92962535eebc0d811fbe40c04b82c65cb89df0d
refs/heads/master
2021-01-20T19:21:33.432139
2014-02-15T13:05:38
2014-02-15T13:05:38
61,597,175
0
0
null
null
null
null
UTF-8
Python
false
false
1,140
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding unique constraint on 'Item', fields ['list', 'text'] db.create_u...
[ "ashley@ropable.com" ]
ashley@ropable.com
4c377af1ab7c274cd0563a642327de88310390bf
70c144dfba4b0a04aeb43dd4b87e734233d9e184
/webAPI.py
52a948419a923a3e2c33ca60770f30398bd72d4e
[]
no_license
webclinic017/Investor-portfolio
263e604abfd8d5218f5ed1a4782ed328193a1617
ef9afc7d8d9622a2f60f4c805d362a21de644bf0
refs/heads/master
2021-10-26T23:08:45.675974
2019-04-14T17:49:55
2019-04-14T17:49:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,582
py
import requests import json null = None url = 'https://app.studio.arria.com:443/alite_content_generation_webapp/text/v3g3XPEvkxw' payload = {"data":[{"id":"Primary","type":"json","jsonData":{"name":"Mel Gibson","shortname":"Gibson","gender":"male","birthyear":1956,"diedyear":null,"nationality":"American","birthplace"...
[ "noreply@github.com" ]
webclinic017.noreply@github.com
ede5759258b8ab161601adeaaafe329fe5c82895
5e6d8b9989247801718dd1f10009f0f7f54c1eb4
/sdk/python/pulumi_azure_native/recoveryservices/v20210801/replication_storage_classification_mapping.py
b5df49c73ef131229e9baade49dab5f06f666034
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
vivimouret29/pulumi-azure-native
d238a8f91688c9bf09d745a7280b9bf2dd6d44e0
1cbd988bcb2aa75a83e220cb5abeb805d6484fce
refs/heads/master
2023-08-26T05:50:40.560691
2021-10-21T09:25:07
2021-10-21T09:25:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,792
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
vivimouret29.noreply@github.com
b42125cd69a01e395b850d1d8a7d2311199d3100
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2021_03_01/aio/_container_service_client.py
8b81c448ece2697f682f1c9d59234bb3a9efebaa
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
6,653
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
test-repo-billy.noreply@github.com
f2c4bfcb59d704c2e51d6464e9747ce7b6426cd0
b646db8f8cd2bc2488caaf0aa164be2be4048a45
/kodla/apps/program/models.py
ab464ceba127ee798fa6aaf511a13ee318df3d4a
[]
no_license
alperbek/kodla-website
0b160b3d8ea9289d2f78439de41272bdc715bf73
0aef95c8d87e19883d194ae3582091d943d01405
refs/heads/master
2021-10-24T18:21:51.323042
2019-03-24T12:32:55
2019-03-24T12:35:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,935
py
# Django from django.db import models from django.utils.translation import ugettext_lazy as _ # Local Django from core.models import DateModel class Program(DateModel): date = models.DateField(verbose_name=_('Date')) description = models.CharField(verbose_name=_('Description'), max_length=256, blank=True) ...
[ "kenansubasiceng@gmail.com" ]
kenansubasiceng@gmail.com
327b9225cb3d0debb2f480b9f53a659c73f7e6fa
2da72c9f9bbb0b5db33710cddbdee28503e5a606
/pyAudio_wav_example.py
698bf46b907605d0f7ec4617ec9da99681951c90
[]
no_license
gddickinson/python_code
2e71fb22b929cb26c2a1456b11dc515af048c441
dbb20e171fb556e122350fb40e12cc76adbb9a66
refs/heads/master
2022-10-26T15:20:40.709820
2022-10-11T16:06:27
2022-10-11T16:06:27
44,060,963
0
0
null
null
null
null
UTF-8
Python
false
false
1,357
py
import pyaudio import wave #import sys # length of data to read. chunk = 1024 # validation. If a wave file hasn't been specified, exit. # if len(sys.argv) < 2: # print "Plays a wave file.\n\n" +\ # "Usage: %s filename.wav" % sys.argv[0] # sys.exit(-1) ''' *******************************************...
[ "george.dickinson@gmail.com" ]
george.dickinson@gmail.com
623e259411b6feca5ce3b0980d282461f4efaaa0
1e0fd0c9aa855d9249ccdcd7c81607c73743421b
/src/scripts/lsd_fitcontinum.py
33702650ea2e6fac051029a9b26bc44606b10d5e
[]
no_license
tribeiro/LSD
b0aaf5342ffe97d8dbc1bd1b8663712e5adce88d
62a1eae9084b9df8bbd9c3cb1505145e3dd87ec2
refs/heads/master
2021-01-01T17:57:30.025753
2015-06-05T15:56:24
2015-06-05T15:56:24
35,565,607
0
0
null
null
null
null
UTF-8
Python
false
false
3,000
py
#! /usr/bin/env python ''' An experimental script to fit spectra continum using PyMC ''' __author__ = 'tiago' import sys import numpy as np from astropy.table import Table import pymc from lsd.core.continum_factory import continumFactory import logging from astropysics import spec import pylab as py def main(argv)...
[ "tiago.astro@gmail.com" ]
tiago.astro@gmail.com
bc1daae865974287a1bf70026b97a0f0296f940b
dcc491dd2fa4ece68728255d236fa6e784eef92d
/modules/2.79/bpy/types/BlendDataMasks.py
7f53f7600af0f70371dd8501eec8c51e50bca680
[ "MIT" ]
permissive
cmbasnett/fake-bpy-module
a8e87d5a95d075e51133307dfb55418b94342f4f
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
refs/heads/master
2020-03-14T16:06:29.132956
2018-05-13T01:29:55
2018-05-13T01:29:55
131,691,143
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
def remove(mask, do_unlink=True): pass
[ "nutti.metro@gmail.com" ]
nutti.metro@gmail.com
29193d42c4c6b6a7207725398715ba2ea9edf8b7
09d3599c8e53b38104e96d479b2b40ac549d0bef
/Rakesh/Codility and HackerRank/non-divsors.py
00c1ae1a450b65bc8e99e495b80604097fc0ce7c
[]
no_license
rakeshsukla53/interview-preparation
54764c83c86a52c566899ec87d74dad84216764d
09355094c85496cc42f8cb3241da43e0ece1e45a
refs/heads/master
2016-09-06T02:08:50.436414
2016-02-01T00:31:52
2016-02-01T00:31:52
40,916,511
9
3
null
2015-12-31T05:00:55
2015-08-17T17:59:55
HTML
UTF-8
Python
false
false
718
py
import math import bisect def divisorGenerator(n): large_divisors = [] for i in xrange(1, int(math.sqrt(n) + 1)): if n % i is 0: yield i if i is not n / i: large_divisors.insert(0, n / i) for divisor in large_divisors: yield divisor def solution(A):...
[ "rakesh.sukla53@gmail.com" ]
rakesh.sukla53@gmail.com
dd9781b6cbceb482ef55fd717623bc12beea33c3
6af48bc7a6e5c5cbe902312bae612e32f59f765f
/market_maker/bitget_follow.py
419969166f2d078d3afc177304e0524f69d06f18
[]
no_license
mujinveil/blockchain_quant
cf54f329d2ef95bf5f379761e7a98428e78c72e3
4c5e20a8fbf6f1475769784110132ad508e11bd2
refs/heads/main
2023-08-21T06:38:49.014069
2021-11-02T07:30:27
2021-11-02T07:30:27
423,743,082
1
3
null
null
null
null
UTF-8
Python
false
false
9,958
py
# encoding=utf-8 # 循环按火币最新价挂单撤单 import json import random import time from threading import Thread from tools.handle import buy, sell, cancel from tools.Config import amountlimit from tools.databasePool import r1 from tools.get_market_info import get_currentprice0, get_currentprice1, get_bitget_orders def...
[ "noreply@github.com" ]
mujinveil.noreply@github.com
9316d71c5627eb3aef85d8449e56fbcb32e6a50a
b885eaf4df374d41c5a790e7635726a4a45413ca
/LeetCode/Session3/MaximumDepth.py
613e4cf5ce14214dd2147b2bfc03cd24bb242ee2
[ "MIT" ]
permissive
shobhitmishra/CodingProblems
2a5de0850478c3c2889ddac40c4ed73e652cf65f
0fc8c5037eef95b3ec9826b3a6e48885fc86659e
refs/heads/master
2021-01-17T23:22:42.442018
2020-04-17T18:25:24
2020-04-17T18:25:24
84,218,320
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
class TreeNode: def __init__(self, x): self.val = x self.left = None self.right = None class Solution: def maxDepth(self, root: TreeNode) -> int: if not root: return 0 return 1 + max([self.maxDepth(root.left), self.maxDepth(root.right)]) ob = Solution() root...
[ "shmishra@microsoft.com" ]
shmishra@microsoft.com
61ce3144a27395ba1db587df834a0dd1f21f3761
27e3d320585bc5ff993aab33703ada61518790ef
/account_debit_credit/account_extended.py
e2237860728770710b96ad8cae2d5293103d66ff
[]
no_license
odoopruebasmp/productions_stage_venv
54f7a49f129810d22a1628f088bf19cfb50f011c
81f4f0e5b3e434183f0f8fc1923adca4c8d753d5
refs/heads/master
2023-07-15T06:49:29.230924
2021-08-23T16:15:10
2021-08-23T16:15:10
389,649,884
0
0
null
2021-08-23T16:15:10
2021-07-26T13:52:17
Python
UTF-8
Python
false
false
1,556
py
# -*- coding: utf-8 -*- from datetime import datetime, timedelta, date from openerp.tools import DEFAULT_SERVER_DATE_FORMAT, DEFAULT_SERVER_DATETIME_FORMAT, DATETIME_FORMATS_MAP, float_compare from openerp import addons from openerp import SUPERUSER_ID import itertools from dateutil.relativedelta import relativedelta f...
[ "soporteerp@moreproducts.com" ]
soporteerp@moreproducts.com
6901ff55c7bf5b19687eca2a1ade9bbd6e9f8052
bcc199a7e71b97af6fbfd916d5a0e537369c04d9
/leetcode/solved/384_Shuffle_an_Array/solution.py
921017e73192e3ab9d97e6509a8351b9f450d0b5
[]
no_license
sungminoh/algorithms
9c647e82472905a2c4e505c810b622b734d9d20d
1389a009a02e90e8700a7a00e0b7f797c129cdf4
refs/heads/master
2023-05-01T23:12:53.372060
2023-04-24T06:34:12
2023-04-24T06:34:12
87,406,513
0
0
null
null
null
null
UTF-8
Python
false
false
3,976
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © 2020 sungminoh <smoh2044@gmail.com> # # Distributed under terms of the MIT license. """ Given an integer array nums, design an algorithm to randomly shuffle the array. All permutations of the array should be equally likely as a result of t...
[ "smoh2044@gmail.com" ]
smoh2044@gmail.com
7d3ccd6abab3793b38630ad0741ad8550e80db31
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/services/user_interest_service/transports/__init__.py
290a5854f92383e3ba04b037cdce81686342f451
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,049
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # 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...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
4bacc811a391de5e94d1772d4f2418fd6daa6a37
d8c50195fe04a09bd98e12f0b18a84dbe4a3dfe2
/zeus/factories/api_token.py
14365f0bb4b2bb6d81081da8aadb78cbb00ac709
[ "Apache-2.0" ]
permissive
keegancsmith/zeus
44eeac0e9c99635f21bfa7ec744c84be7b40525e
e7bfe3db564ad1bbf449d8197f7d663fe41dd60a
refs/heads/master
2021-09-04T04:34:47.747175
2018-01-12T17:24:11
2018-01-12T21:55:31
117,591,379
0
0
null
2018-01-15T20:19:57
2018-01-15T20:19:57
null
UTF-8
Python
false
false
445
py
import factory from datetime import datetime, timedelta, timezone from zeus import models from .base import ModelFactory from .types import GUIDFactory class ApiTokenFactory(ModelFactory): id = GUIDFactory() class Meta: model = models.ApiToken class Params: expired = factory.Trait( ...
[ "dcramer@gmail.com" ]
dcramer@gmail.com
3a5590c35ff850fb71d57df415ba049d93e3f3c6
747feb7805942f15e5027864b99a4b24c4a7d569
/catkin_ws/src/levy_cs69_a2/scripts/readService.py
7f7eb50939e701381e02a22001eae279a439a4e6
[]
no_license
oliverlevy110/CS69
94a6a1daddcda4ec20de3e11900af4fb098c9676
31e17db1f2bdd5fe9a8d3e72bb9de518de1e522e
refs/heads/master
2020-05-17T21:18:47.957672
2019-05-06T04:42:46
2019-05-06T04:42:46
183,967,942
0
0
null
null
null
null
UTF-8
Python
false
false
1,456
py
#!/usr/bin/python import time import rospy from levy_cs69_a2.msg import Signal from levy_cs69_a2.srv import FindSignalStrength """ Read the wifi signal from /turtle/signal_strength topic When receive a call from Robot(), average the signal strengths over 5 seconds and return the value """ class Read: def __init...
[ "you@example.com" ]
you@example.com
ddb84113ce4476341a61436f1712e60111dbff5a
6bce631b869a8717eed29eae186688a7fdb7f5c8
/venv/Lib/site-packages/test/test_crypto_api.py
a3e36186581401f6c70b4a32ccee30766d41ed51
[]
no_license
singhd3101/CS5100-Stock-Market-Prediction
6d43bd39633dd80bb1141dc550302874a5bc0939
2804a6270a05155e168d0f2518bcd97f1c9bcb3e
refs/heads/master
2020-11-26T03:56:02.613630
2019-12-19T02:22:13
2019-12-19T02:22:13
228,958,401
0
0
null
null
null
null
UTF-8
Python
false
false
2,461
py
# coding: utf-8 """ Intrinio API Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ...
[ "singh3101div@gmail.com" ]
singh3101div@gmail.com
c97a598981b364b574ec41c07eb8d573f93da004
9460a3d89f8d5acd525d9cde7229d56ee71d4261
/lib/engines/__init__.py
8e83f8b41f122d7438d52dd703f7c635313dcd0e
[]
no_license
opengi/Change-Clothes-ReID
4659d0717d0528b6ca03aff93dca8b201015e50d
acf4c7e36ae50117aabf8db9969c291284cffbab
refs/heads/main
2023-02-26T21:23:14.382761
2021-01-25T15:43:53
2021-01-25T15:43:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,334
py
import sys import os.path as osp from apex import amp import torch from torch import nn from lib.utils import save_checkpoint, visactmap from .trainer import Trainer from .evaluator import Evaluator from .evaluatorMarket import EvaluatorMarket from .evaluatorLTCC import EvaluatorLTCC class Engine(object): def __...
[ "jacenchen228@gmail.com" ]
jacenchen228@gmail.com
a2857c017effd563fba38ef60fbb306ca8a7afc8
bc6508a1dde1e61a8b2f61e70044c074aeeb4406
/whoiser/servers/PE.py
8e373a05563fe431f4773f93bd7fc7c1cee35fb9
[]
no_license
krikulis/whoiser
7eca72260dc061a91c7630901557264b80c5263e
27af46d6ffcf2bacc5e5b837883ab5fab7ac9b40
refs/heads/master
2021-01-10T19:10:53.915622
2012-06-24T23:50:28
2012-06-24T23:50:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
#TODO: write implementation from servers.generic import GenericWhoisQuery class WhoisQuery(GenericWhoisQuery): server = 'kero.yachay.pe' def parse_response(self, response): return response
[ "kristaps.kulis@gmail.com" ]
kristaps.kulis@gmail.com
fd5ad83924e295825baa3f441c5f3750ecbc7be2
ab07c82d082f5f46f33937dd9638272895ffd890
/sample-apps/contacts-app/src/auth.py
9b3e15ab4ace53fdba34ff79b49ebab1e72ae395
[]
no_license
atanasiuk-hubspot/hubspot-api-python
a42d7d418664790afff0b8b11364e832855a793c
57899aa2f6f6a5320a4ba7c9c87977e1cc8a8e22
refs/heads/master
2022-06-06T04:43:06.902240
2020-05-04T07:50:05
2020-05-04T07:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
import os from flask import redirect, url_for from functools import wraps from helpers.oauth import is_authenticated as is_oauth_authenticated def is_authenticated(): if is_oauth_authenticated(): return True api_key = os.environ.get('HUBSPOT_API_KEY') return api_key is not None def auth_required...
[ "atanasiuk@hubspot.com" ]
atanasiuk@hubspot.com
8643e180348884040dc6c94423737e283f5be813
1594574e2ff0f354e588c3037cf8de7d251dad58
/downstream/voxceleb2_ge2e/model.py
bf20abd25db1d97df8821177be362e3430b77bec
[ "MIT", "CC-BY-NC-4.0" ]
permissive
OlegJakushkin/s3prl
4e5607e9acefe933364cf9d031605b9e0db450d1
c0e41f07fa56f0f79b5bf3839b4d0a4cf7c421bf
refs/heads/master
2023-06-17T05:51:32.696783
2021-07-14T19:04:41
2021-07-14T19:04:41
376,370,641
0
0
MIT
2021-06-22T19:58:10
2021-06-12T19:36:38
Python
UTF-8
Python
false
false
7,718
py
# -*- coding: utf-8 -*- # """*********************************************************************************************""" # FileName [ model.py ] # Synopsis [ the linear model ] # Author [ S3PRL ] # Copyright [ Copyleft(c), Speech Lab, NTU, Taiwan ] """**************************************...
[ "aapp1420@gmail.com" ]
aapp1420@gmail.com
003042d0d6cbd0b361de94fbbbdf4abbcea8e8e0
cb4e07b2a5dd30804ce428ec84d9e9f77709fcd5
/programmers/정수삼각형.py
3dacbc6370c32a79868d79fca1f1e5d6c0d3e326
[]
no_license
jbsam2/algo_problem
141c17003e88a69afdeea93a723e7f27c4626fdc
18f2cab5a9af2dec57b7fd6f8218badd7de822e4
refs/heads/master
2023-05-18T10:03:00.408300
2021-06-02T10:36:50
2021-06-02T10:36:50
282,104,637
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
def solution(triangle): n=len(triangle) d=[[0]*i for i in range(1,n+1)] a=d[0][0]=triangle[0][0] for i in range(1,n): for j in range(i+1): d[i][j]+=triangle[i][j] if j==0:d[i][j]+=d[i-1][0] elif j==i:d[i][j]+=d[i-1][i-1] else:d[i][j]+=max(d[i-1][j-...
[ "kbsam2@gmail.com" ]
kbsam2@gmail.com
1676b95c35542ad5c8e08e4e0ba036feeebe6eea
78fec705899c779273d7237a09650178cb47fdd6
/main/admin.py
4f73af40298a8d9021d37220aa1cb0c639cdba93
[]
no_license
maks141/ceramic
decd57aea773782df16cceb02a6980edf12fc35b
c635e46c51889f9f2601f1f012b1508f71da501d
refs/heads/master
2023-07-12T20:07:52.211311
2021-08-19T06:32:51
2021-08-19T06:32:51
397,840,637
0
0
null
null
null
null
UTF-8
Python
false
false
120
py
from django.contrib import admin from django.db import models from .models import Sliders admin.site.register(Sliders)
[ "you@example.com" ]
you@example.com
ea03ae5d750c6f4ed385b0d0ef05128e8079435d
61673ab9a42f7151de7337608c442fa6247f13bb
/tkinter/thread-queue/main .py
948fcf9e8135c1420a8b6952fabff0f752de64a0
[ "MIT" ]
permissive
furas/python-examples
22d101670ecd667a29376d7c7d7d86f8ec71f6cf
95cb53b664f312e0830f010c0c96be94d4a4db90
refs/heads/master
2022-08-23T23:55:08.313936
2022-08-01T14:48:33
2022-08-01T14:48:33
45,575,296
176
91
MIT
2021-02-17T23:33:37
2015-11-04T23:54:32
Python
UTF-8
Python
false
false
1,042
py
import threading import tkinter as tk from tkinter import messagebox import time import queue def running(queue): for x in range(5): text = 'message ' + str(x) print('PUT:', text) queue.put(text) time.sleep(4) queue.put('last') def check_queue(): global t tex...
[ "furas@tlen.pl" ]
furas@tlen.pl
f51de7a4a5261e9f21ca069746ad1c1e4843f3ee
09cead98874a64d55b9e5c84b369d3523c890442
/py210110c_python1a/day15_210418/input_ex_leonj.py
d17197ca856c1155709ed5adecc2fd78ca3afd5d
[]
no_license
edu-athensoft/stem1401python_student
f12b404d749286036a090e941c0268381ce558f8
baad017d4cef2994855b008a756758d7b5e119ec
refs/heads/master
2021-08-29T15:01:45.875136
2021-08-24T23:03:51
2021-08-24T23:03:51
210,029,080
0
0
null
null
null
null
UTF-8
Python
false
false
285
py
""" Leonj """ print("=== Login Form ===") username = input('Please enter your username:') # input ('please enter your password') password = input('Please enter your password:') number = input('Please enter your number:') print("Welcome back, ", username, "!") print("=== Done, ===")
[ "lada314@gmail.com" ]
lada314@gmail.com
ae410138192e057c6e99539c766851b0d90c4ff5
113b962bd5e2eb770067bd374a15dfe8a1c2d09f
/py_scripts/pyplot/seq_length_boxplot3.py
b80bc5ee8068dfd7615c95715e72e9a3c47e3253
[]
no_license
aungthurhahein/biotech_script
ecce51950bcef69405843da12ece2f84ea5541d6
2fda699343e6c46543fa1df2412c8ca2f2622cda
refs/heads/master
2020-12-24T06:20:13.028141
2016-07-06T15:23:34
2016-07-06T15:23:34
25,574,741
5
0
null
null
null
null
UTF-8
Python
false
false
2,904
py
__author__ = 'Aung' import numpy as np import plotly.plotly as py from plotly.graph_objs import * il_pe_path = "/home/aung/server_downloads/all_lngth/" il_mira_path = "/home/aung/server_downloads/length_distribution/PV/SRA_Lvannamei/PE_MIRA/" trinity_1 = np.genfromtxt(il_pe_path+"1.txt") trinity_2 = np.genfromtxt(il_...
[ "aungthurhahein@gmail.com" ]
aungthurhahein@gmail.com
00140427f97958745d15ba963b5019300a2a0bbe
7fb87945b77d3adaedd8a155c981e97946734e41
/saharaclient/osc/v1/job_binaries.py
9751fdfe4c1fd1b81c49a09dbdbb7bfde7504605
[]
no_license
Tony910517/openstack
916b36368ea9f17958e4eb04bd1f9daf3aba9213
4c1380a03c37e7950dcf2bba794e75b7e4a8dfd0
refs/heads/master
2020-05-20T01:05:22.499224
2019-05-07T01:11:05
2019-05-07T01:11:05
185,292,662
0
0
null
null
null
null
UTF-8
Python
false
false
14,667
py
# Copyright (c) 2015 Mirantis 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 law or agreed to in writ...
[ "471123674@qq.com" ]
471123674@qq.com
9286e3f397757a04855417295a893f4f618c84ec
d6b0b087b9ddc636e51bae2c1b14631a29f1c72d
/Exercise22.py
01360564161c6ba6aec5f6739f05b68d8c378f05
[]
no_license
ErenBtrk/PythonRegularExpressionsExercises
5ac1dc18e17dc7c25c9c64bb02f32c335d2f8e8f
6c53da125ed6167b6eaac99c78e762b36f1b1f92
refs/heads/master
2023-05-15T10:15:02.015947
2021-06-06T16:33:19
2021-06-06T16:33:19
374,325,364
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
''' 22. Write a Python program to find the occurrence and position of the substrings within a string ''' import re str1 = "Hello World.This is yarasa reis calling.yarasa" result = re.finditer("yarasa",str1) for match in result: print(match.group(),match.span())
[ "=" ]
=
80d73f3f2458a2724b85706101384e8d10aad690
9d0195aa83cc594a8c61f334b90375961e62d4fe
/JTTest/SL7/CMSSW_10_2_15/src/dataRunA/nano324.py
bc48663238b5e2316770bb6fa10099f3216d23e5
[]
no_license
rsk146/CMS
4e49592fc64f6438051544c5de18598db36ed985
5f8dab8c59ae556598b9747b52b88205fffc4dbe
refs/heads/master
2022-12-01T03:57:12.126113
2020-08-04T03:29:27
2020-08-04T03:29:27
284,863,383
0
0
null
null
null
null
UTF-8
Python
false
false
4,292
py
# Auto generated configuration file # using: # Revision: 1.19 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v # with command line options: nanoAOD_jetToolbox_cff -s NANO --data --eventcontent NANOAOD --datatier NANOAOD --no_exec --conditions 102X_dataRun2_Sep2018Rereco_v1 --era...
[ "rsk146@scarletmail.rutgers.edu" ]
rsk146@scarletmail.rutgers.edu
4cb0cb4a8fbdad79facd28213642e7fa88a8abbb
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_199/3560.py
ffff0eeb115962dd186a46688afaf803c56a1b64
[]
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
695
py
#!usr/bin/python import re def negate(a): return "+" if a == "-" else "-" n = int(raw_input()) for line in range(n): flips = 0 cakes, size = str(raw_input()).split(" ") cakes = [str(i) for i in cakes] size = int(size) #print str(size) + " |", for char in range(len(cakes) - (size - 1)):...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
ff023597bc4a930532355edb371ff2e8af0f489a
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/2/flj.py
1a9a050cf2f526176156e9217e051195f5b3d462
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
31dfcbcfd2d3e863ccf514aaa530bde14b9313a1
ea22929e5bf39e685e08587cc71b1b3b76eea421
/db/add_department.py
480f7be2ee654cfcac50ff0ee4007d1a8cc7c808
[]
no_license
srikanthpragada/PYTHON_02_AUG_2018_DEMO
533d5e4aa67bb3d0405458bcb256398842e93f81
fa7f9be2d5b6ede07576a93f7ae78f69b5b6ac04
refs/heads/master
2020-03-25T06:50:02.606434
2018-09-04T12:32:32
2018-09-04T12:32:32
143,526,487
0
0
null
null
null
null
UTF-8
Python
false
false
453
py
import sqlite3 try: con = sqlite3.connect(r"e:\classroom\python\aug2\hr.db") cur = con.cursor() # take input from user name = input("Enter department name :") loc = input("Enter department location :") cur.execute("insert into departments(deptname,location) values(?,?)", (...
[ "srikanthpragada@gmail.com" ]
srikanthpragada@gmail.com
2808dc9b064b7fb0eb9aa91a916447a08d897d8c
7387b73d06e61e90d5acc07f8a9b7716f6c247a0
/HW4/fashion_template.py
eea026843691cce1f32d5cef5d192cf795fd2300
[]
no_license
aobo-y/uva-ml
fd69f5360224889bacfc3e430e0070c60fb00049
97fe90817c85751fc60a2c9a170b072617d8a614
refs/heads/master
2020-07-24T15:23:32.938099
2020-02-17T23:12:37
2020-02-17T23:12:37
207,968,136
0
1
null
null
null
null
UTF-8
Python
false
false
4,569
py
# Machine Learning Homework 4 - Image Classification __author__ = '**' # General imports import numpy as np import matplotlib.pyplot as plt from sklearn.utils import shuffle from sklearn.model_selection import GridSearchCV import os import sys import pandas as pd # Keras import keras from keras.models import Sequent...
[ "yangaobo@gmail.com" ]
yangaobo@gmail.com
135169d1a8a8d31ad98495d64acf459ecf1f4be1
c571c0ae641eb5b2e8b87a77be4c8180e21846f6
/libs/parso/python/errors.py
0ec77fd010a3f775d03f922b0fac94e2bf06864a
[]
no_license
RyannDaGreat/rp
e3f5feec809b3bee3fd9d514ac0d0debe02a582e
c269bbf02bec92ef109096c6cd83a9fd90f4250c
refs/heads/master
2023-08-09T13:27:23.370148
2023-08-05T08:36:32
2023-08-05T08:36:32
225,253,287
4
0
null
null
null
null
UTF-8
Python
false
false
37,638
py
# -*- coding: utf-8 -*- import codecs import warnings import re from contextlib import contextmanager from rp.libs.parso.normalizer import Normalizer, NormalizerConfig, Issue, Rule from rp.libs.parso.python.tree import search_ancestor _BLOCK_STMTS = ('if_stmt', 'while_stmt', 'for_stmt', 'try_stmt', 'with_stmt') _STAR...
[ "sqrtryan@gmail.com" ]
sqrtryan@gmail.com
689255d438ceaf1ba2e77f27b115a9438c4d0bc2
b63e42047081bc2be186d506bc08417cd13d547c
/rice/deps/prompt_toolkit/input/defaults.py
fb0ae01f0ac777f0f8fdb1c905e6489fb5884f43
[ "MIT" ]
permissive
Arrendi/rice
dbd999aa632b4dacae10c6edd18c3eb31fd3ffde
5bebd14556127613c9af4ac3fc1f95063110077d
refs/heads/master
2021-08-28T15:25:49.239846
2017-12-12T15:56:51
2017-12-12T15:56:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,009
py
from __future__ import unicode_literals from prompt_toolkit.utils import is_windows from prompt_toolkit.eventloop.context import TaskLocal, TaskLocalNotSetError from .base import Input import sys __all__ = ( 'create_input', 'get_default_input', 'set_default_input', ) def create_input(stdin=None): std...
[ "randy.cs.lai@gmail.com" ]
randy.cs.lai@gmail.com
aedd5b064848059b576e3778b9a5e65d82e59f29
9848a719ddfdd21b5fe1fa2f55da290c0f6952dc
/3sum-closest.py
8cd5c9b109d9ae0dc42e1bf56559faee30a3e5b6
[]
no_license
maomao905/algo
725f7fe27bb13e08049693765e4814b98fb0065a
84b35ec9a4e4319b29eb5f0f226543c9f3f47630
refs/heads/master
2023-03-13T12:38:55.401373
2021-03-25T01:55:48
2021-03-25T01:55:48
351,278,248
0
0
null
null
null
null
UTF-8
Python
false
false
1,246
py
""" 3sum -> sort O(NlogN) and two pointers O(N^2) -> N * hashset 2sum O(N) -> it cannot apply to this problem (closest) sort O(NlogN) and two pointers O(N^2) [-1,2,1,-4] -> sort [-4,-1,1,2] -4 fixed -1 + 2 = -3 < 1 left +1 1 + 2 = -1 > 1 right -1 left==right x -> best is -1 -1 fixed 1 +...
[ "maoya.sato@gmail.com" ]
maoya.sato@gmail.com
2e8e440bae9ecb36d9b160640e885a07bfc24466
e23a4f57ce5474d468258e5e63b9e23fb6011188
/140_gui/pyqt_pyside/_exercises/_templates/PyQt5/Chapter02_Event Handling - Signals and Slots/calldemoSpinner.pyw
0a53c16f757222c02303e761e32e6b9db94c4942
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
877
pyw
# _____ ___ # # ____ ?.?W.. _____ ?D.., ?A.. # # ____ demoSpinBox _____ _ # # c_ MyForm ?D.. # ___ - # s__. - # ui _ ? # ?.sU.. # ?.sBBQ__.eF__.c.. ?1 # ?.dSBSW__.eF__.c.. ?2 # s.. # # ___ result1 # __ le. ?.lEBP__.t.. !_0 # bookPrice_in. ?.lE...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
47edab51795807f5caf82730ca4660e96302d7f4
f87f51ec4d9353bc3836e22ac4a944951f9c45c0
/.history/HW04_20210712135951.py
181fa00086ba23d7ce2fb32684a252e914019a7e
[]
no_license
sanjayMamidipaka/cs1301
deaffee3847519eb85030d1bd82ae11e734bc1b7
9ddb66596497382d807673eba96853a17884d67b
refs/heads/main
2023-06-25T04:52:28.153535
2021-07-26T16:42:44
2021-07-26T16:42:44
389,703,530
0
0
null
null
null
null
UTF-8
Python
false
false
1,660
py
""" Georgia Institute of Technology - CS1301 HW04 - Lists and Tuples Collaboration Statement: """ ######################################### """ Function Name: roadTrip() Parameters: state (str), list of tuples (list) Returns: list of crops (list) """ ######################################### #####...
[ "sanjay.mamidipaka@gmail.com" ]
sanjay.mamidipaka@gmail.com
4e89a44d7e1274d78a73e0c470823bb2aeccc86d
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/Ablation4_ch016_ep003_7_10/Gather3_W_fix3blk_C_change/ep0_test/pyr_3s/L6/step10_a.py
f1afd141d930d324a02b80887e57c3a88eb3cbd5
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
63,168
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
b345b9d12dd1b84f498c2040ba8181948a0858e2
29dcd6c3475acde11bfc8dd7b6826ffddb40e1ab
/week3Python/Week3/RightFacingArrow.py
9f2e5dd54b4ba4b4b7d6e1a91b519b4b5c550e18
[]
no_license
quangdbui9999/CS-171
24ca7f7f27847c7b729d74b2c85abc0464cd8c1a
963b2e83e6939703ca2b7617941e5fc04d374570
refs/heads/master
2022-09-18T13:11:38.619101
2020-06-07T22:51:51
2020-06-07T22:51:51
270,453,427
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
base_char = input() head_char = input() row1 = ' ' + head_char row2 = base_char * 5 + head_char * 2 row3 = base_char * 5 + head_char * 3 row4 = base_char * 5 + head_char * 2 row5 = ' ' * 5 + head_char ''' Type your code here. ''' print(row1) print(row2) print(row3) print(row2) print(row1)
[ "noreply@github.com" ]
quangdbui9999.noreply@github.com
3b40a86a9ca030a453233b61a0121df7d77b1e71
c917004bdd665903338c3115bd6821fc7208242b
/python1/factorial.py
9466f56b102ba48d0105a779d96871f127df68ee
[]
no_license
paulrefalo/Python-2---4
408ad018ccc8161b801031f8d15df2154c5d25cb
049c654ed626e97d7fe2f8dc61d84c60f10d7558
refs/heads/master
2021-01-10T05:30:25.502795
2016-02-19T02:08:39
2016-02-19T02:08:39
52,054,382
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
#!/usr/local/bin/python3 """Print all factorials less than 1000.""" c = 1 f = 1 while (f < 1000): print(f) c += 1 f *= c
[ "paul.refalo@gmail.com" ]
paul.refalo@gmail.com
391945fa08d886f114674b3a77b7072759c5e4dc
250003a344e5cb974579d67daeeed7ea6b51f620
/day2/Day_02_Code_Challenge.py
b8de7199dfe11309dd333f06a41eb6680caec113
[]
no_license
lakshsharma07/training2019
540cace993859f06b4f402fc5a7849b26fb11ce8
d8ae0b0e1e567525e806834379713003a676ec06
refs/heads/master
2020-05-24T07:11:25.613107
2019-06-25T03:27:58
2019-06-25T03:27:58
187,154,851
1
2
null
null
null
null
UTF-8
Python
false
false
5,783
py
""" Hands On 1 """ # Create a list of number from 1 to 20 using range function. # Using the slicing concept print all the even and odd numbers from the list """ Hands On 2 """ # Make a function to find whether a year is a leap year or no, return True or False """ Hands On 3 """ # Make a function days_in_month to ...
[ "sharma1997lak@gmail.com" ]
sharma1997lak@gmail.com
0bbd5853b2eed8a9e4eeb7d7d90f2b6e4eee9b72
267bda1518e45e183cf54c8ef3b504e3caca8e8c
/scripts/run_multitask.py
286d6e2baacae267bdd0b0b355a516e946849a54
[ "MIT" ]
permissive
Catsvilles/musicautobot
be83dac85b68d2fe4cd4140f4d93e675a2ee0c83
8ad147115a57ffcdbe539ddef62854593e87d913
refs/heads/master
2020-12-31T08:20:48.316493
2020-02-07T05:57:41
2020-02-07T05:57:41
238,949,362
1
0
MIT
2020-02-07T14:50:59
2020-02-07T14:50:58
null
UTF-8
Python
false
false
4,403
py
import music21 import torch from fastai.distributed import * from fastai.callbacks import SaveModelCallback try: from apex.optimizers import FusedAdam except: from torch.optim import Adam as FusedAdam import numpy as np import sys sys.path.insert(0, '..') from musicautobot.music_transformer import * from musicautob...
[ "andrew.t.shaw@gmail.com" ]
andrew.t.shaw@gmail.com
c8d39d6056868c1e76cb113b3fed863a51dc53a3
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2527/60737/263807.py
b1df22d36c58e360e93c98ed822b34f785fe76cc
[]
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
366
py
rest = eval(input()) veg = int(input()) pri = int(input()) dis = int(input()) ret = [] ans = [] for i in rest: if i[2] == veg and i[3] <= pri and i[4] <= dis and veg == 1: ret.append(i) elif i[3] <= pri and i[4] <= dis and veg == 0: ret.append(i) ret.sort(key=lambda x:(x[1], x[0]),reverse=True) ...
[ "1069583789@qq.com" ]
1069583789@qq.com
b17b1b9ad72e6573f7c2ca570122daa61efd207e
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Trigger/TrigT1/TrigT1CaloByteStream/share/WriteLVL1CaloBSRun1_jobOptions.py
5e13fabe694b0f2c72679b26c4adc21c00883ebe
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
1,871
py
# TrigT1Calo object containers to bytestream conversion include.block("TrigT1CaloByteStream/WriteLVL1CaloBSRun1_jobOptions.py") # the following include is needed to load correctly the trigger towers on/off, TT/Cells maps include( "CaloConditions/CaloConditions_jobOptions.py" ) # To setup correctly the LArCablingServic...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
55893518006ce087010d6f18436f7f493225fe6e
08427cf6764cb646fdd37eb239dc6dde0be68ad7
/python/leetcode.233.py
0dc3a5b380e9cf1cdb231429324bf3c0280ab76a
[]
no_license
CalvinNeo/LeetCode
9d8fa71a1da8c926b5f39659a1befcfa06608945
02ebe56cd92b9f4baeee132c5077892590018650
refs/heads/master
2020-12-31T00:41:14.031066
2020-11-06T04:41:59
2020-11-06T04:41:59
80,634,710
3
1
null
null
null
null
UTF-8
Python
false
false
1,526
py
class Solution(object): def countDigitOne(self, n): """ :type n: int :rtype: int """ def make_num(x): ans = [] while x: ans.append(x % 10) x /= 10 if ans == []: ans = [0] return an...
[ "calvinneo1995@gmail.com" ]
calvinneo1995@gmail.com
beea87fce23d562232cc635e6b18869dbfc911ac
23e55ab51e322a3c0f967976a84f42f70f8ab701
/tensorflow/lite/testing/op_tests/space_to_batch_nd.py
bebd80ad150919fadf134cf7a2e86b845dcb3080
[ "Apache-2.0" ]
permissive
thangnvit/tensorflow
f58e7c2f95690f337361aa2973f2b84ac7e7f947
c83887196eb717af66a7b3f008e970b4a226ff8f
refs/heads/master
2021-02-21T17:51:56.030461
2020-03-06T07:55:33
2020-03-06T07:58:38
245,362,540
3
0
Apache-2.0
2020-03-06T08:05:41
2020-03-06T08:05:40
null
UTF-8
Python
false
false
3,919
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
983abeb901e15f22b18603a1952c11b9d873bced
3b1daac7c1f72b985da899770d98e5f0e8fb835c
/Configurations/ControlRegions/SS/Full2016_nAODv4/samples.py
adec7917e85a45983905f46eb6d622674e9f6b0e
[]
no_license
freejiebao/PlotsConfigurations
7e10aa45aa3bf742f30d1e21dc565d59d2a025d8
cdfd3aff38d1ece9599a699997753bc8ba01b9b1
refs/heads/master
2020-06-18T19:22:00.561542
2019-09-02T12:52:28
2019-09-02T12:52:28
186,931,874
0
0
null
2019-05-16T01:58:07
2019-05-16T01:58:07
null
UTF-8
Python
false
false
10,802
py
import os import subprocess import string from LatinoAnalysis.Tools.commonTools import * samples={} skim='' ############################################## ###### Tree Directory according to site ###### ############################################## SITE=os.uname()[1] xrootdPath='' if 'iihe' in SITE : xrootdPath...
[ "piergiulio.lenzi@cern.ch" ]
piergiulio.lenzi@cern.ch
0b942dccc076c68c6b13517ec136b887319927b8
43268854505070471e0911bc0e5b280cadec8601
/modeller9v8/modlib/modeller/id_table.py
2ead273542c2b178aa8aaad7ba85a884f2d1ef41
[]
no_license
realbigws/From_CA_to_FullAtom
08621bf350c77e29140051d1af850a51e5fe138f
a59d9fcbc6c1f2bfc5fc2d77da26318c63ac3052
refs/heads/master
2020-05-30T01:37:47.378404
2019-05-30T21:42:45
2019-05-30T21:42:45
189,481,583
2
0
null
null
null
null
UTF-8
Python
false
false
2,037
py
"""Functions to calculate percentage sequence identities""" import sys def id_table(aln, matrix_file): """Calculate percentage sequence identities""" coder, mat = get_seqid_matrix(aln) print """ Sequence identity comparison (ID_TABLE): Diagonal ... number of residues; Upper triangle ... numb...
[ "wangsheng@ttic.edu" ]
wangsheng@ttic.edu
569b0a605d5aaecd67ff12f62144242dd4dd14f4
3b8a9e3e3dc8e532b2f7cbe295a19d329da1408e
/test_masking.py
4b736353a64ede1da519e83c47e3886a9c2a6058
[]
no_license
pyspeckit/pyspeckit-tests
744d7801b7d3cfcb06f9f9dbf7b9f1d40109d41f
c11ed9b3747a7b5bc18a48340ca3c2f207cd8c85
refs/heads/master
2023-08-31T03:31:06.086228
2023-08-10T00:01:49
2023-08-10T00:01:49
9,843,761
0
5
null
2021-09-05T19:40:22
2013-05-03T20:13:45
Python
UTF-8
Python
false
false
1,756
py
import numpy as np from astropy import units as u import pyspeckit x = np.linspace(-50,50) y = np.exp(-x**2/(5.**2*2)) error = np.ones_like(x,dtype='float')/10. e = np.random.randn(x.size) * error def test_chi2_consistency_when_masking(): sp = pyspeckit.Spectrum(xarr=x*u.km/u.s, data=y+e, ...
[ "keflavich@gmail.com" ]
keflavich@gmail.com
87a2a9c88ef42abd45930f54d7500112c1a2cf2f
fd619f1b26fdc98a6a7cb8d2af0a65a7a8a3e1ec
/tensorpack/callbacks/monitor.py
680c5e5c314c8a2e3c593e93a56cf14e3f8817de
[ "Apache-2.0" ]
permissive
wzhen1/tensorpack
8058c6004955548489740a46ee860fcd703748b2
25ef445e3a3d446355946e4211ed53a6c0a62b31
refs/heads/master
2021-06-20T14:34:51.446266
2017-07-28T20:51:13
2017-07-28T20:51:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,274
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: monitor.py # Author: Yuxin Wu <ppwwyyxxc@gmail.com> import os import numpy as np import shutil import time import operator from collections import defaultdict import six import json import re import tensorflow as tf from ..utils import logger from ..tfutils.summar...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
8a70ffe33a68b9ec15cd9c2b38570cf927a1bb90
832f86e052d90916fb0c8156825c87dc13c0443e
/imported-from-gmail/2020-01-05-top-k-frequent-words.py
7c19cdbed0a6ca14a04d2d262b207b4481c02a62
[]
no_license
johncornflake/dailyinterview
292615849cea62cb945ecc7039c594b6966a81f3
91bb0edb9e25255e6222279109c15ae9d203970c
refs/heads/master
2022-12-09T21:02:12.204755
2021-06-07T13:09:34
2021-06-07T13:09:34
225,059,833
0
0
null
2022-12-08T11:27:38
2019-11-30T19:24:58
Python
UTF-8
Python
false
false
758
py
Hi, here's your problem today. This problem was recently asked by AirBNB: Given a non-empty list of words, return the k most frequent words. The output should be sorted from highest to lowest frequency, and if two words have the same frequency, the word with lower alphabetical order comes first. Input will contain ...
[ "chadeous@gmail.com" ]
chadeous@gmail.com
d6b68f7299d3ceb0e38148e2c4701c08fc3c51a4
7296bd842936b1980b2271cff84aec831fa7dceb
/PyQt5All/PyQt554、55、56/diggingold.py
71ac63b121210e6296b6d3c4ef9d47253346457c
[]
no_license
redmorningcn/PyQT5Example
dbb1400e754909092dd13c111b4b241245a70720
4d4c44365d5d0bf3d9fd94922a13d0b50f17a95c
refs/heads/master
2022-08-21T09:32:44.938410
2020-05-26T05:26:54
2020-05-26T05:26:54
266,952,766
1
0
null
null
null
null
UTF-8
Python
false
false
4,052
py
# -*- coding: utf-8 -*- """ 一个关于QTimer与QThread的综合应用举例的小例子! 文章链接:http://www.xdbcb8.com/archives/867.html 文章链接:http://www.xdbcb8.com/archives/870.html 文章链接:http://www.xdbcb8.com/archives/872.html """ from PyQt5.QtCore import pyqtSlot from PyQt5.QtWidgets import QWidget from PyQt5.QtCore import QTimer, QThread, pyqtSign...
[ "redmorningcn@qq.com" ]
redmorningcn@qq.com
85b44bc5fca6c30af6a3276fd3508f5e148cc066
67cbf8eba7d1303294d62d00bae69a2cd8c8d875
/day5/registerTest.py
e1ddfeda8928fefbce24def82d0572c9196973da
[]
no_license
changchengxc/selenium1208
c2bb5efe699c44db6b3a7abeac21d6456c5d4089
e52460ebc93bd7466725d3f96bd0e3d036f9a2fb
refs/heads/master
2020-04-13T01:20:43.429519
2018-12-23T07:46:35
2018-12-23T07:46:35
162,871,738
0
0
null
null
null
null
UTF-8
Python
false
false
2,147
py
import time import unittest from selenium import webdriver import ddt # 用来测试注册功能的所有异常情况 from day5.baseTestCase import BaseTestCase from day5.readCsvFile import read @ddt.ddt class RegisterTest(BaseTestCase): register_data = read("register_data.csv") @ddt.data(*register_data) def test_register(self, row)...
[ "51Testing" ]
51Testing
df646e0419e4c0c37e75917421602f1756457a75
b1018e272ed284ab70ffe6055b90726e879004b3
/MIDI Remote Scripts/KeyLab/DisplayElement.py
4e5e2be1ee2027ae8d129e2c00bd234105e7a1ef
[]
no_license
aumhaa/livepy_diff
8e593ffb30b1e7909225352f3a0084d4de2e51e6
266a7380c4d5a162c051c23f534f74cb7eace538
refs/heads/master
2020-04-12T03:17:56.545373
2017-04-24T02:02:07
2017-04-24T02:02:07
13,946,086
3
0
null
null
null
null
UTF-8
Python
false
false
1,362
py
from itertools import chain from _Framework.PhysicalDisplayElement import PhysicalDisplayElement class DisplayElement(PhysicalDisplayElement): _ascii_translations = {'\x00': 0, ' ': 32, '%': 37, '1': 49, '2': 50, '3': 51, '4': 52, '5': 53, '6': 54, '7': 55, '8': 5...
[ "aumhaa@gmail.com" ]
aumhaa@gmail.com
658d5167c08cb4cf4218c384682271f1f919ca80
36216b52f6d3c9b5d16e9d93c56540fe07bc5f5a
/submission/migrations/0020_auto_20180716_0920.py
a06c7392d8584ac4c6d15e99050145a2fb739303
[ "MIT" ]
permissive
zerolfx/eoj3
3984676d1e29ad5d04f06a41836ece3f1a452054
156060399d1c3e5f7bcdbf34eaffbe2be66e1b20
refs/heads/master
2020-08-10T19:55:36.278006
2019-10-11T10:26:20
2019-10-11T10:27:19
214,410,171
1
0
MIT
2019-10-11T10:39:12
2019-10-11T10:39:11
null
UTF-8
Python
false
false
1,180
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-07-16 09:20 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('submission', '0019_auto_20180713_1421'), ] operations = [ migrations.AlterFie...
[ "scottyugochang@hotmail.com" ]
scottyugochang@hotmail.com
07768e5c3b61710b15dae29b7a5f084328b7c680
9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d
/python/uline/uline/uline/handlers/app/distributor/transaction/exportMerchantTrade.py
b68d1d60e03c070c0f0b8eaf359ec1385d6bfd89
[]
no_license
apollowesley/Demo
f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8
471c4af95d3a7222d6933afc571a8e52e8fe4aee
refs/heads/master
2021-02-15T04:01:51.590697
2018-01-29T01:44:29
2018-01-29T01:44:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,117
py
# -*- coding: utf-8 -*- ''' BEGIN 获取商户进件信息 必选参数: 可选参数: 成功: {"code": 200, "msg": "成功"} 失败: {"code": 406, "msg": "失败"} END ''' from __future__ import division from tornado.web import authenticated, asynchronous from tornado import gen from tornado.concurrent import run_on_executor from c...
[ "36821277@qq.com" ]
36821277@qq.com
50df6ae943b67a224eb0143d28ab06992da0d820
de59ece5d773d8607ba7afe747088ff07062494c
/py-core/loop/loop.for.list-tuple.py
2141507607aabd48e6839de064bae4641bade939
[]
no_license
loggar/py
4094c6919b040dfc0bb5453dc752145b5f3b46ba
1116969fa6de00bbc30fe8dcf6445aa46190e506
refs/heads/master
2023-08-21T16:47:41.721298
2023-08-14T16:12:27
2023-08-14T16:12:27
114,955,782
0
0
null
2023-07-20T15:11:04
2017-12-21T03:01:54
Python
UTF-8
Python
false
false
82
py
i, j = (1, 2) print(i, j) for i, j in [(1, 2), (3, 4), (5, 6)]: print(i, j)
[ "webnl@DT-Charly.koi.local" ]
webnl@DT-Charly.koi.local
22e6bd0105869adb6fc66c40d7edccd6c2e34c69
66fda6586a902f8043b1f5e9532699babc7b591a
/lib_openshift/models/v1_policy_rule.py
13796ecdaa8e3e9b2e36e9ad9aaa36a8086f3d1d
[ "Apache-2.0" ]
permissive
chouseknecht/lib_openshift
86eff74b4659f05dfbab1f07d2d7f42b21e2252d
02b0e4348631e088e72a982a55c214b30a4ab9d9
refs/heads/master
2020-12-11T05:23:17.081794
2016-07-28T20:15:39
2016-07-28T20:15:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,290
py
# coding: utf-8 """ OpenAPI spec version: Generated by: https://github.com/swagger-api/swagger-codegen.git 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 ...
[ "jdetiber@redhat.com" ]
jdetiber@redhat.com
88f3c582e2c0da5bc3ded703e73e64d132b48901
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/lib/python2.7/site-packages/sqlalchemy/orm/query.py
335832d1db9c5d4d126ecf4092aebab0d09ecb81
[ "Python-2.0", "Apache-2.0", "BSD-3-Clause", "LicenseRef-scancode-unknown" ]
permissive
wangyum/Anaconda
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
refs/heads/master
2022-10-21T15:14:23.464126
2022-10-05T12:10:31
2022-10-05T12:10:31
76,526,728
11
10
Apache-2.0
2022-10-05T12:10:32
2016-12-15T05:26:12
Python
UTF-8
Python
false
false
147,616
py
# orm/query.py # Copyright (C) 2005-2016 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """The Query class and support. Defines the :class:`.Query` class, the central constru...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
f0ebca9b480e674ff5a1084e24e7215af60ac421
8f190e9ddf8f3dd6d9949d6a0ca7edf6c947494c
/6/6.py
e0aa8620275386574be2565db97122afb79ddcf0
[]
no_license
abuzarrizvi/100-Python-Programming-Questions
6ffbd0f28fc6c97c6b06e663399b19c10223449d
2ebbbd3f865c87721d727708dd6854bcc9bdbb10
refs/heads/master
2020-07-11T21:37:20.303771
2019-08-28T07:21:45
2019-08-28T07:21:45
204,649,008
0
0
null
null
null
null
UTF-8
Python
false
false
239
py
import math c=50 h=30 value = [] inpu = "100,150,180" #items=[x for x in input().split(',')] items=[x for x in inpu.split(',')] for d in items: value.append(str(int(round(math.sqrt(2*c*float(d)/h))))) print (','.join(value))
[ "noreply@github.com" ]
abuzarrizvi.noreply@github.com
426dbeed83cf5673987c897440c5d695cc30a490
0b64db8dc1c65c4fb4f2cd2250ce30ee8ab1a560
/Baekjoon/02. if문/1330.py
46eedf5f945c3a33faf3078ce8665becc9c517e1
[]
no_license
kho903/python_algorithms
f3f09f23cfa0d1a1a1d74905f129b70cfc07d1e6
54fb0dae7cf8480b3361a2900c0e60eeacd60cfd
refs/heads/master
2023-07-11T11:39:25.549774
2021-08-13T10:48:09
2021-08-13T10:48:09
339,713,241
0
0
null
null
null
null
UTF-8
Python
false
false
108
py
a, b = map(int, input().split()) if a < b: print("<") elif a == b: print("==") else: print(">")
[ "gmldnr2222@naver.com" ]
gmldnr2222@naver.com
e5e7d8b19ca656c7aa16e5d7faa1a2ccc8289b42
13f495f2c947dd7f096de81fde86ea4de0138caa
/aetherguild/socket_service/mq.py
7195d691391fd30e1e862f40a5b6b5419af1ba2e
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
katajakasa/aetherguild2
b5e568aa9c0e4d9b572acbca3ebc084af86ab43d
086b3f24ba1e85e5a5b57104dca25513afef1ead
refs/heads/master
2020-04-10T21:06:08.194876
2016-12-30T13:36:02
2016-12-30T13:36:02
60,123,426
1
0
null
2016-09-04T06:28:04
2016-05-31T21:06:16
Python
UTF-8
Python
false
false
5,339
py
# -*- coding: utf-8 -*- import logging import pika import ujson from aetherguild import config log = logging.getLogger(__name__) class MQConnection(object): def __init__(self, io_loop, msg_handler=None): self.connection = None self.channel = None self.consumer = None self.connect...
[ "katajakasa@gmail.com" ]
katajakasa@gmail.com
a63c98d56436ea7e9a005fa7637d3a457cdc06e4
fb083444b59b19d8953147b10ed4ca3a8cf49d50
/Attributes_Methods_Exercise/Document_Management/project/Gym/project/equipment.py
c413f95268c65641cdd78e3dbe2c16fdf9ac754a
[]
no_license
valeri1383/Python-OOP
64f02ded2676d44be5888d067b15c7665893cbc4
88278905cdf8d333f34ea593c3c1246cc2c044e3
refs/heads/main
2023-04-23T00:42:27.446411
2021-04-30T15:26:59
2021-04-30T15:26:59
337,067,450
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
class Equipment: auto_incremented_id = 1 def __init__(self, name: str): self.name = name self.id = Equipment.auto_incremented_id Equipment.auto_incremented_id += 1 @staticmethod def get_next_id(): return Equipment.auto_incremented_id def __repr__(self):...
[ "noreply@github.com" ]
valeri1383.noreply@github.com
53a9160386ad9b3e0ca2566166b5cb636b802544
a074f60de4d3334aad671de363a1a95df52a7f42
/model/tag_decoder.py
15e600d11980f38e8b820a654c9c87d6ed84b558
[ "MIT" ]
permissive
Hyperparticle/LemmaTag
488317e6ed06bea69220f99d4cb7986b3e51242b
c25f27e5acfc3be2d7010d022bc1b7c2dc245dce
refs/heads/master
2020-03-23T02:52:48.645915
2019-04-05T04:17:55
2019-04-05T04:17:55
140,996,701
33
4
null
null
null
null
UTF-8
Python
false
false
2,683
py
import tensorflow as tf def tag_decoder(gold_tags, sentence_rnn_outputs, sentence_weights, sentence_sum_weights, num_tags, tag_type, label_smoothing): """Applies a tagger decoder network over the sentence-level RNN. Returns tag predictions, loss and accuracy.""" predictions, loss_tag = [], 0 ...
[ "hyperparticle@gmail.com" ]
hyperparticle@gmail.com
d1b90a44af4956b51e3e4b90a62ed8e42510a867
b5698c259c80c9dc9b1cbca9dd82eb7f4d799f61
/nuitka/tree/ReformulationTryExceptStatements.py
21bc263d62aed35d63296d3e73009d34d802df3b
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
4O4/Nuitka
431998d4d424f520d2887e9195ad7d7c61691b40
e37d483b05c6b2ff081f3cedaee7aaff5c2ea397
refs/heads/master
2020-04-02T04:06:10.826960
2018-10-18T21:13:16
2018-10-18T21:13:16
154,000,090
0
0
Apache-2.0
2018-10-21T11:17:44
2018-10-21T11:17:44
null
UTF-8
Python
false
false
16,548
py
# Copyright 2018, Kay Hayen, mailto:kay.hayen@gmail.com # # Part of "Nuitka", an optimizing Python compiler that is compatible and # integrates with CPython, but also works on its own. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in complianc...
[ "kay.hayen@gmail.com" ]
kay.hayen@gmail.com
fdf7424d2e8a86f1c83fab9c680ec329b32d5e6f
05b049f6a2ff7bd84b0d897996f88fc1adb1f43e
/db.py
42a472d1425cbee2fc9d54c8f440eac87ac97847
[]
no_license
peitaosu/WeChat_Log
737bb0b740594b8596641f98a8a751e7e33d15b6
70a7279fc08f274dbdb45279bb979e710a08ffe0
refs/heads/master
2021-03-29T21:19:38.696137
2020-03-17T14:05:18
2020-03-17T14:05:18
247,985,822
0
0
null
null
null
null
UTF-8
Python
false
false
1,570
py
# -*- coding: utf-8 -*- import os, sys, sqlite3 from datetime import datetime def get_messages_from_table(db_file, table_name): conn = sqlite3.connect(db_file) conn.text_factory = str c = conn.cursor() c.execute("SELECT * FROM " + table_name + " ORDER BY CreateTime") date_list = [] messages = ...
[ "peitaosu@163.com" ]
peitaosu@163.com
10d4fad548b4eb5a7f91adbe49f7e6af31b2000d
87ef282ee560ee2de6194f578231866b930ee313
/keras_/kerascv/model_provider.py
de905a98b3ed5164167e11036044d226c57a4da9
[ "MIT" ]
permissive
cydiachen/imgclsmob
8820c2a958cf99385799ad1d319ea80dbcb33df2
42e04c4a2d27de25029be243df3e10e0b0d77a67
refs/heads/master
2020-06-07T16:01:52.596252
2019-06-21T05:30:05
2019-06-21T05:30:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,902
py
from .models.alexnet import * from .models.vgg import * from .models.resnet import * from .models.preresnet import * from .models.resnext import * from .models.seresnet import * from .models.sepreresnet import * from .models.seresnext import * from .models.senet import * from .models.densenet import * from .models.dark...
[ "osemery@gmail.com" ]
osemery@gmail.com
73cee7a2423b64bb863743ed7bb24fc35c00ba23
ebd90e0d54fee3a5013eb3881a307da2895284d8
/xnr/sina/userinfo.py
504cdf4547d924ab5835920c02d6d22ad38ca017
[]
no_license
NoahChanInvictus/xnr1
a9c54c5b6598fb2e3ba166d8e22f116da101fdf1
dc344ba8a455a83f43a81b7b2b23ad7f57440a0c
refs/heads/master
2020-12-02T22:08:41.688653
2017-08-28T07:15:19
2017-08-28T07:15:19
96,089,422
0
1
null
2017-07-03T08:41:12
2017-07-03T08:41:12
null
UTF-8
Python
false
false
4,250
py
# -*-coding: utf-8-*- import base64 import json import os.path import time import urllib import urllib2 import re from tools.Launcher import SinaLauncher class SinaOperateAPI: def getUserShow(self, uid=None, screen_name=None): """ 字段说明见userinfo.txt :return: """ ...
[ "1257819385@qq.com" ]
1257819385@qq.com
f37e3886798f0463cffb8bea25badc98682498f3
404977dece3a6c9f456dfc042164740f359679ff
/CaiNiao-DemandForecast-StoragePlaning-master/CaiNiao-DemandForecast-StoragePlaning-master/test/gbrt/gbrt_2/gbrt.py
6c68e5b813939a2b824ccab9ec84cc0d1ad9d7e1
[]
no_license
jiguang123/BigData-Competition-SolutionandCode
8116e9f1de3acb62716fd84123865cf8ca3c3657
6c0363517f2f28c79fe8ffe0153216eea1666a34
refs/heads/master
2021-08-31T12:52:48.955485
2017-12-21T10:48:27
2017-12-21T10:48:27
114,995,159
0
0
null
null
null
null
UTF-8
Python
false
false
1,556
py
#coding=utf-8 import pandas as pd import xgboost as xgb import numpy as np from sklearn.cross_validation import train_test_split from sklearn.ensemble import GradientBoostingRegressor import os,cPickle,random a_b = pd.read_csv('../../../data/config1.csv') data = pd.read_csv('../../../data/train_test.csv') hashmap =...
[ "1528840916@qq.com" ]
1528840916@qq.com
eda7376a4ab6f01b05fb9f04896f4feb3eda2f02
cb0e5f210f7727f5149058755f1e5e25f0da9ed5
/1-Machine-Learning/1-Generative-Models/1-GANs/TO DO/4-Archived/Code/Pytorch/main.py
3fb46ab31f80cbca4093726315c15efe75d7500d
[ "MIT" ]
permissive
yz1019117968/Artificial-Intelligence
ec42897e700c08c20f683c5585ecfab1f69dd73a
f983999c46f47f74cff548d0fc25b591ec7db441
refs/heads/master
2023-03-10T12:28:43.713743
2021-02-26T06:23:17
2021-02-26T06:23:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,576
py
import torch from torch import nn import torchvision.datasets as dset import torchvision.transforms as transforms noise_dim = 100 image_channel = 3 filters_num = 32 batch_size = 256 image_size = 64 dataroot = "D:/Data/Face/celeba" dataset = dset.ImageFolder(root=dataroot, transform=transfor...
[ "yang3781590@163.com" ]
yang3781590@163.com
272c012ca77f13520c32d45ae0e9c1ea5643d119
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-4/e6d9a45cd02f290feb8063baa60e8a5fbde079e0-<get_service_mgr_facts>-bug.py
82d2e0d2f422e93673e741e595a68d72705c1d24
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,634
py
def get_service_mgr_facts(self): proc_1 = get_file_content('/proc/1/comm') if (proc_1 is None): (rc, proc_1, err) = self.module.run_command('ps -p 1 -o comm|tail -n 1', use_unsafe_shell=True) else: proc_1 = os.path.basename(proc_1) if (proc_1 is not None): proc_1 = to_native(proc...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
259faab9a45f248104788855340f8bec4d40c414
f2f7b8e819ebbcc0d4a207a15a877878deb3a28b
/storage/memory.py
852c3aa10bc001f40b50ffea03153c6257b61b2b
[]
no_license
Activity00/narspy
a7ea99918ce1941603ecfeacc692cabe458bfa9f
2e5a82c806772527d6636d51aa3f6d4ee00d2714
refs/heads/master
2020-09-11T13:22:11.541413
2020-07-10T16:04:44
2020-07-10T16:04:44
222,078,227
0
0
null
2020-07-10T16:04:45
2019-11-16T09:48:27
null
UTF-8
Python
false
false
237
py
from control import general_inference from storage.bag import Bag class Memory: def __init__(self, concepts: Bag): self.concepts = concepts def cycle(self): general_inference.select_concept_for_inference(self)
[ "1032662429@qq.com" ]
1032662429@qq.com
5ac9afd90fa8075d703d56c254ecb8571acff9ce
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/dask_dask/dask-master/dask/dataframe/tests/test_format.py
0b11604bfa779620af750111d44e8bab3fbc49ce
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
12,438
py
# coding: utf-8 import pandas as pd import dask.dataframe as dd def test_repr(): df = pd.DataFrame({'x': list(range(100))}) ddf = dd.from_pandas(df, 3) for x in [ddf, ddf.index, ddf.x]: assert type(x).__name__ in repr(x) assert str(x.npartitions) in repr(x) def test_repr_meta_mutation(...
[ "659338505@qq.com" ]
659338505@qq.com
2a393c137371ab7647eb84d14917fc9e7da280af
d5f5d77bc6800368bd43e2737606b8b935a5e6f4
/python/graphs.py
704504dee29c8a032c8225596910f5bcf8a4b0d4
[]
no_license
nandukalidindi/algorithms
eaee422224c96d23c8134a2daf16315230ba9bda
651b76cfa9c84668df84aaac931b3f47d18cd603
refs/heads/master
2021-05-03T17:14:41.490894
2016-12-24T19:40:29
2016-12-24T19:40:29
69,610,541
0
0
null
2016-09-29T21:46:07
2016-09-29T21:46:05
HTML
UTF-8
Python
false
false
5,155
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This file contains Python implementations of graphs from Intro to Algorithms (Cormen et al.). The aim here is not efficient Python implementations but to duplicate the pseudo-code in the book as closely as possible. Also, since the goal is to help students to see how ...
[ "gcallah@mac.com" ]
gcallah@mac.com
91d5f1d1a8ba801b38c599510de0ac16c07eeff4
2c5b71ed0e28e683008026547e30defe8d1d0039
/ridership_by_weather_mapper.py
d5248852df36ee71ff6c1f5ea0aa9853c169e6a5
[]
no_license
KeithYJohnson/intro_to_data_science
977f7dd5f5f54b6bf506f2b5e0a05982831e1a1e
b4475708c69e1c05a8f7a6eb1d96500cf917857d
refs/heads/master
2021-01-21T09:03:12.139717
2016-10-24T23:56:43
2016-10-24T23:56:43
68,607,746
0
0
null
null
null
null
UTF-8
Python
false
false
3,000
py
from __future__ import division import sys import string import logging # from util import mapper_logfile # logging.basicConfig(filename=mapper_logfile, format='%(message)s', # level=logging.INFO, filemode='w') HEADER_STRING = ",UNIT,DATEn,TIMEn,Hour,DESCn,ENTRIESn_hourly,EXITSn_hourly,maxpressur...
[ "keithyjohnson@gmail.com" ]
keithyjohnson@gmail.com
d8f792d7abeb25c085729875cf728488a7f491a6
cb61ba31b27b232ebc8c802d7ca40c72bcdfe152
/Company-Based/comcast/prob_1.py
b2f9de3d862f3e53fdadae582fb2030f619c41f1
[ "Apache-2.0" ]
permissive
saisankargochhayat/algo_quest
c7c48187c76b5cd7c2ec3f0557432606e9096241
a24f9a22c019ab31d56bd5a7ca5ba790d54ce5dc
refs/heads/master
2021-07-04T15:21:33.606174
2021-02-07T23:42:43
2021-02-07T23:42:43
67,831,927
5
1
Apache-2.0
2019-10-28T03:51:03
2016-09-09T20:51:29
Python
UTF-8
Python
false
false
196
py
def minimumMovement(obstacleLanes): # Write your code here pass minimumMovement([2, 3, 2, 1, 3, 1]) # 2 minimumMovement([2, 1, 3, 3, 3, 1]) # 2 minimumMovement([3, 2, 2, 1, 2, 1]) # 1
[ "saisankargochhayat@gmail.com" ]
saisankargochhayat@gmail.com
0d8bbc6c2a7a4a3423d676835d7eaa9ca5be93c9
0ee88932af5b6ed088e471abcbd5f40fd9cbd688
/Work/SolisArt_script/csv_formatter_old.py
b19423e4334c55e9084b85f6c86a53f018c33d84
[]
no_license
BjaouiAya/Cours-Python
48c740966f9814e1045035ffb902d14783d36194
14b306447e227ddc5cb04b8819f388ca9f91a1d6
refs/heads/master
2021-06-10T22:17:38.731030
2016-11-11T16:45:05
2016-11-11T16:45:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,721
py
#! /usr/bin/env python # -*- coding:Utf8 -*- """ Clean and formate a Dymola output file for SolisGraph software. """ ######################################## #### Classes and Methods imported : #### ######################################## import datetime from functools import wraps # # dtype to load d...
[ "jeremybois@rocketmail.com" ]
jeremybois@rocketmail.com