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
7303cff5ec99102bf82cefbe7dbba1e098b81285
9088d49a7716bdfc9b5770e8e54ebf7be6958fcf
/Tests/Aula_20d.py
0b3ae15da823725ffb438bbc6b939143e05b6448
[ "MIT" ]
permissive
o-Ian/Practice-Python
579e8ff5a63a2e7efa7388bf2d866bb1b11bdfe2
1e4b2d0788e70006096a53a7cf038db3148ba4b7
refs/heads/main
2023-05-02T02:21:48.459725
2021-05-18T18:46:06
2021-05-18T18:46:06
360,925,568
4
0
null
null
null
null
UTF-8
Python
false
false
150
py
def count(*num): print(f'Recebi ao todos os números {num}. Há {len(num)} números.') count(12, 34, 2, 1, 4) count(4, 3, 1, 7, 10) count(1, 2)
[ "ianstigli@hotmail.com" ]
ianstigli@hotmail.com
f4386254b812a61719e4b1a2931b317d490bcc62
65f3ada144f45bd5dbaf3d37ca9366ff54796f0c
/month7/findLadders.py
a417abd90108d7af8b53f6a6496eb2eadb19d4eb
[]
no_license
BruceHi/leetcode
43977db045d9b78bef3062b16d04ae3999fe9ba7
0324d247a5567745cc1a48b215066d4aa796abd8
refs/heads/master
2022-09-22T14:18:41.022161
2022-09-11T23:45:21
2022-09-11T23:45:21
248,240,171
1
0
null
null
null
null
UTF-8
Python
false
false
5,477
py
# 单词接龙 from typing import List from collections import deque from collections import defaultdict from string import ascii_lowercase class Solution: # def findLadders(self, beginWord: str, endWord: str, wordList: List[str]) -> List[List[str]]: # word_set = set(wordList) # if endWord not in word_set...
[ "BruceHi@users.github.com" ]
BruceHi@users.github.com
df7913dd36c7238962153d6e680c9a6e7ad9d375
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r8/Gen/DecFiles/options/13164201.py
05dfc374b8b17fa012a7aa7f0a1397e0cc3ab6c7
[]
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
1,905
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/13164201.py generated: Fri, 27 Mar 2015 15:48:02 # # Event Type: 13164201 # # ASCII decay Descriptor: {[[B_s0]nos -> (D*(2007)~0 -> (D~0 -> K+ pi-) gamma ) (phi(1020) -> K+ K-) ]cc, [[B_s0]os -> (D*(2007)0 -> (D0 -> K- pi+) gamma ) (phi(1020) -> K- K+) ]c...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
32aae12aa67d9697a2cbea89e1ab6142f273cd3b
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/healthcareapis/azure-mgmt-healthcareapis/azure/mgmt/healthcareapis/models/__init__.py
cb27d5affb6e885dc7d62df53c2daa9ddf2efef1
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
2,970
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 ...
[ "zikalino@microsoft.com" ]
zikalino@microsoft.com
935577a52f81fd6a39af6a8ab69bbb45ab1ed8b6
4809471274d6e136ac66d1998de5acb185d1164e
/pypureclient/flasharray/FA_2_5/models/software_installation_step.py
4d482e18e00abb8dc317c2cd8d70662c91a5fdfc
[ "BSD-2-Clause" ]
permissive
astrojuanlu/py-pure-client
053fef697ad03b37ba7ae21a0bbb466abf978827
6fa605079950765c316eb21c3924e8329d5e3e8a
refs/heads/master
2023-06-05T20:23:36.946023
2021-06-28T23:44:24
2021-06-28T23:44:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,629
py
# coding: utf-8 """ FlashArray REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 2.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re import six import typing from ....
[ "hubert.chan@purestorage.com" ]
hubert.chan@purestorage.com
f31541e6d2ecf93b94e193eee325b50654e6e8d5
d2bc6792983724b22175c9d42a5b5a0fa174d576
/Trakttv.bundle/Contents/Code/pts/session_manager.py
d335e61d9ad5ddf1cfb39c79ce1629805df7ee6b
[]
no_license
frentrop/Plex-Trakt-Scrobbler
f8e70bc4d1cf82545f675447bd0237a6436f41f5
70a59f62eb3812f9dba36a45697a4123b8c89dd9
refs/heads/master
2021-01-17T22:13:52.603253
2015-02-18T11:12:16
2015-02-18T11:12:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,857
py
from core.helpers import total_seconds from core.logger import Logger from data.watch_session import WatchSession from pts.scrobbler import ScrobblerMethod from datetime import datetime from threading import Thread import traceback import time log = Logger('pts.session_manager') class SessionManager(Thread): de...
[ "gardiner91@gmail.com" ]
gardiner91@gmail.com
d07ea0e9e3e5000189867d9bf01d01e77c958188
efd471380d976614667e56c92f0aed671371fc63
/All Programs/Day 2 - Operators.py
7e26ea13a61812b56bc8a246512592504dfe4556
[]
no_license
anshumanairy/Hacker-Rank
39af46e76182d34637340d1755aff4afd7820083
6fef4c6a415422d9379232932358e4ee7430a6af
refs/heads/master
2021-07-04T07:41:37.769152
2020-10-12T05:49:24
2020-10-12T05:49:24
181,359,750
2
2
null
2020-10-12T05:49:25
2019-04-14T19:38:18
Python
UTF-8
Python
false
false
287
py
#!/usr/bin/env python # coding: utf-8 # In[7]: def func(): meal_cost = float(input()) tip_percent = int(input()) tax_percent = int(input()) total_cost=meal_cost+(meal_cost*tip_percent/100)+(meal_cost*tax_percent/100) print(round(total_cost)) func() # In[ ]:
[ "anshuman.airy04@gmail.com" ]
anshuman.airy04@gmail.com
e48f1cd2379953a3e76ed6637485ba7475088ac1
e90a772733e73e45b4cdbb5f240ef3b4a9e71de1
/251. Flatten 2D Vector.py
bda19790c5d3ad2a9bc44c05e8ad35702b52bffd
[]
no_license
jiewu-stanford/leetcode
102829fcbcace17909e4de49c01c3d705b6e6e3a
cbd47f713d3307f900daf55c8f27301c70542fc4
refs/heads/master
2022-05-28T18:25:00.885047
2022-05-18T05:16:22
2022-05-18T05:16:22
214,486,622
2
0
null
null
null
null
UTF-8
Python
false
false
787
py
''' Title : 251. Flatten 2D Vector ($$$) Problem : https://leetcode.com/problems/flatten-2d-vector/ : https://www.lintcode.com/problem/flatten-2d-vector/description ''' ''' Reference: https://www.cnblogs.com/lightwindy/p/8577871.html ''' class Vector2D(object): def __init__(self, vec2d): s...
[ "bayernscience@hotmail.com" ]
bayernscience@hotmail.com
b07be83a3998ff9cfe606edc6c01aa9efbd148ac
a904e99110721719d9ca493fdb91679d09577b8d
/month01/all_code/day05/homework/exercise05.py
0f12f974bdd279f020581ab649d02e68d2cbf968
[ "Apache-2.0" ]
permissive
chaofan-zheng/tedu-python-demo
7c7c64a355e5380d1f8b6464affeddfde0d27be7
abe983ddc52690f4726cf42cc6390cba815026d8
refs/heads/main
2023-03-12T05:17:34.596664
2021-02-27T08:33:31
2021-02-27T08:33:31
323,350,480
4
1
null
null
null
null
UTF-8
Python
false
false
628
py
""" 练习:根据下列文字,提取变量,使用字符串格式化打印信息 湖北确诊67802人,治愈63326人,治愈率0.99 70秒是01分零10秒 """ region = "湖北" confirmed = 67802 cure = 63326 cure_rate = 0.9912345 # print("%s确诊%d人,治愈%d人,治愈率%.2f" % # (region, confirmed, cure, cure_rate)) print(f"{region}确诊{confirmed}人,治愈{cure}人,治愈率{cure_rate:.2f}") total_second = 70 # pr...
[ "chaofan1@berkeley.edu" ]
chaofan1@berkeley.edu
08d43bcd8b9340063e0076a14ee544d6aa0c45fc
a29c6e83ae4f9010941d15c8fd4cfc67680bb054
/keras/keras43_boston_3_lstm.py
cfebcb0b1b796a4fd2b370ae022e7dd61d10d643
[]
no_license
ym0179/bit_seoul
f1ff5faf4ae20fbc8c0e2ed10a005f8bd4b2c2b8
14d1fb2752312790c39898fc53a45c1cf427a4d1
refs/heads/master
2023-02-27T19:52:23.577540
2021-02-08T00:30:16
2021-02-08T00:30:16
311,265,926
1
0
null
null
null
null
UTF-8
Python
false
false
2,874
py
#Day7 #2020-11-17 #보스턴 집값 예측: 1978년에 발표된 데이터로 미국 보스턴 지역의 주택 가격에 영향을 미치는 요소들을 정리 from sklearn.datasets import load_boston from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, LSTM, Dropout dataset = load_boston() x = dataset.data y = dataset.target # print(x) # print(x.shape, y.s...
[ "ym4766@gmail.com" ]
ym4766@gmail.com
db05fb0ae0a739328e4c844cf59e78fe6fca7fd6
0cd64f3f67c6a3b130a788906da84ffc3d15396a
/Library/lib/python3.9/site-packages/sympy/physics/quantum/qft.py
5d35d22e1f0985800bcb28b49c256ecca1930a4d
[ "MIT", "BSD-3-Clause", "0BSD", "LicenseRef-scancode-free-unknown", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-python-cwi", "Python-2.0" ]
permissive
Ryorama/codeapp
32ef44a3e8058da9858924df211bf82f5f5018f1
cf7f5753c6c4c3431d8209cbaacf5208c3c664fa
refs/heads/main
2023-06-26T09:24:13.724462
2021-07-27T17:54:25
2021-07-27T17:54:25
388,520,626
0
0
MIT
2021-07-22T16:01:32
2021-07-22T16:01:32
null
UTF-8
Python
false
false
6,199
py
"""An implementation of qubits and gates acting on them. Todo: * Update docstrings. * Update tests. * Implement apply using decompose. * Implement represent using decompose or something smarter. For this to work we first have to implement represent for SWAP. * Decide if we want upper index to be inclusive in the co...
[ "ken.chung@thebaselab.com" ]
ken.chung@thebaselab.com
fd289b356f9617c2ebaaa01d271f3e18fca8ee97
f2a2f41641eb56a17009294ff100dc9b39cb774b
/old_session/session_1/_144/_144_binary_tree_preorder_traversal.py
09b613446a5be0cf7e9539edd9c8b63a2327f9da
[]
no_license
YJL33/LeetCode
0e837a419d11d44239d1a692140a1468f6a7d9bf
b4da922c4e8406c486760639b71e3ec50283ca43
refs/heads/master
2022-08-13T01:46:14.976758
2022-07-24T03:59:52
2022-07-24T04:11:32
52,939,733
3
0
null
null
null
null
UTF-8
Python
false
false
903
py
""" 144. Binary Tree Preorder Traversal Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 \ 2 / 3 return [1,2,3]. """ # Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val =...
[ "yunjun.l33@gmail.com" ]
yunjun.l33@gmail.com
b843458b7624d7a008fa6052f1a9a98ce728076f
0396bc649c5b2ddb21a6b629e3daf1501dafd13f
/evalml/pipelines/components/ensemble/stacked_ensemble_base.py
025bc52dafc00ab673641bf89fa6d07c059915c1
[ "BSD-3-Clause" ]
permissive
Sandy4321/evalml
3324fe6501091c51b67b4a573214ad4c6103c5a5
32f9be24d9d8479cf1a4d7a261c17fde213c50d1
refs/heads/main
2023-02-09T04:38:53.077488
2021-01-01T03:59:18
2021-01-01T03:59:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,329
py
from evalml.exceptions import EnsembleMissingPipelinesError from evalml.model_family import ModelFamily from evalml.pipelines.components import Estimator from evalml.pipelines.components.utils import scikit_learn_wrapped_estimator from evalml.utils import classproperty _nonstackable_model_families = [ModelFamily.BASEL...
[ "noreply@github.com" ]
Sandy4321.noreply@github.com
435d64183cddf28cb10b05c638226a18cfe23383
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03042/s072464251.py
0667e7e766e9808fb1edf62e69f58f1a05ba3c1c
[]
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
327
py
s = input() def YYMM(s): p = int(s[2:]) if 1 <= p <= 12: return True return False def MMYY(s): p = int(s[:2]) if 1 <= p <= 12: return True return False if YYMM(s) and MMYY(s): print('AMBIGUOUS') elif YYMM(s): print('YYMM') elif MMYY(s): print('MMYY') else: prin...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7915777eddf122fb1204b725cd49b39bf2fa5c7b
45c0651d7785025f0e7a137d8abac0e66092a659
/roles/lib_zabbix/library/zbx_user.py
c916fa96a61d1acba94daf38922e1d8ef0f4ede5
[ "Apache-2.0" ]
permissive
pkdevbox/openshift-ansible
df3f0d75032b5dee4f962852e265437ba2656925
318ac6b9b65f42f032382114f35d3c9fa7f5610b
refs/heads/master
2021-01-21T01:39:10.120698
2015-09-04T20:29:58
2015-09-04T20:29:58
41,973,441
1
0
null
2015-09-05T19:45:46
2015-09-05T19:45:46
null
UTF-8
Python
false
false
6,779
py
#!/usr/bin/env python ''' ansible module for zabbix users ''' # vim: expandtab:tabstop=4:shiftwidth=4 # # Zabbix user ansible module # # # Copyright 2015 Red Hat Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You ma...
[ "kwoodson@redhat.com" ]
kwoodson@redhat.com
5d851d8cfe60de655c230608e5c5bb4c09078032
e5a044708032b853f1cdf8906da63502716fd410
/openapi_client/models/post_auth_transaction_all_of.py
3108af8ded3b97784e38a869b08eb2ce2181a632
[]
no_license
GBSEcom/Python
4b93bab80476051fc99f379f018ac9fa109a8a6a
5fa37dba8d0c3853686fdc726f863743376060c9
refs/heads/master
2021-12-04T12:55:29.605843
2021-11-19T22:01:03
2021-11-19T22:01:03
136,058,345
1
2
null
null
null
null
UTF-8
Python
false
false
6,222
py
# coding: utf-8 """ Payment Gateway API Specification. The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway. # noqa: E501 The ve...
[ "emargules@bluepay.com" ]
emargules@bluepay.com
002a0a8ed95336f133ab86237afdd69b34f56e73
1da61f69428c4318e6bb43b96b9a72e65d6b1a59
/arche_papergirl/models/tests/test_newsletter.py
5b8dc42452b1611b1eb3e6d89bd5e539e51fba31
[]
no_license
ArcheProject/arche_papergirl
ea16e453af248ca1ab571297559d8ebd8b6770b5
e69a4c3ddd0c7e0d27f45f354f4c96807509de1a
refs/heads/master
2020-04-10T01:44:21.189511
2018-07-13T12:33:42
2018-07-13T12:33:42
68,215,650
0
0
null
null
null
null
UTF-8
Python
false
false
1,813
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from unittest import TestCase from pyramid import testing from zope.interface.verify import verifyClass, verifyObject from arche_papergirl.exceptions import AlreadyInQueueError from arche_papergirl.interfaces import INewsletter class NewsletterTests(T...
[ "robin@betahaus.net" ]
robin@betahaus.net
1fd8eaaf0397d32379f65f494be6bf3ed513ef53
828115da62a687e1e9ea96bd5072f8b148e873a3
/Segmenter.py
a4368dcd77129a6ead937c22f4282ef74099b30a
[]
no_license
VitalyRomanov/scidoc
cafc86f0f83c1ebd7ce17c8420cb158ab0844b89
2029abfff4eee8b919cc9bca7251d2edc7fd005f
refs/heads/master
2021-02-16T11:44:02.495918
2020-03-05T07:33:08
2020-03-05T07:33:08
245,001,967
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
from LanguageTools.nltk_wrapper import NltkWrapper from nltk.classify.textcat import TextCat class Segmenter: def __init__(self): self.tc = TextCat() self.nlp_en = NltkWrapper("en") self.nlp_ru = NltkWrapper("ru") def __call__(self, full_text, segment_len=5, segment_overlap=2): ...
[ "mortiv16@gmail.com" ]
mortiv16@gmail.com
87d56f0c0931ae0db0ef2c5b9d39c0a2dd09901b
cb2e2d84d970894bb6d1b414e91551118fcfc209
/src/hal_configurator/ui/gen/testingflow.py
11071babd0b3f997183097c0394d1f6135f98d6c
[]
no_license
codechem/hal_automator
0cb54f1d086e831208533f9b934806045700e1e8
e9404f33ee34a9068293daff33434d2c80d23865
refs/heads/master
2021-01-13T13:58:58.552727
2016-06-21T17:26:34
2016-06-21T17:26:34
72,894,281
1
0
null
2016-11-05T00:01:32
2016-11-05T00:01:32
null
UTF-8
Python
false
false
679
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/Users/halicea/projects/hal_automator/utils/qtUi/testingflow.ui' # # Created: Sun Nov 1 19:09:21 2015 # by: pyside-uic 0.2.15 running on PySide 1.2.2 # # WARNING! All changes made in this file will be lost! from PySide import QtCore, ...
[ "costa@halicea.com" ]
costa@halicea.com
9d4663d936f5bd08c8a3aee4b917a9858f6eace8
170864b6ec66be48138f231fe8ac3381481b8c9d
/python/BOJ_2563.py
ece6f7af4088ada9440550e4b7600777dadef860
[]
no_license
hyesungoh/AA_Algorithm
5da3d8312d035d324dfaa31eef73f01a238231f3
d68f52eaa29cfc4656a8b5623359166779ded06e
refs/heads/master
2023-06-09T14:49:01.402456
2021-06-28T10:10:09
2021-06-28T10:10:09
272,701,231
1
0
null
null
null
null
UTF-8
Python
false
false
339
py
import sys input = sys.stdin.readline n = int(input()) paper = [[0 for _ in range(100)] for _ in range(100)] ans = 0 for _ in range(n): y, x = map(int, input().split()) for i in range(y, y+10): for j in range(x, x+10): if not paper[i][j]: paper[i][j] = 1 an...
[ "haesungoh414@gmail.com" ]
haesungoh414@gmail.com
03097fb708d399c95e2aaad8f59df7478613eea5
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_258/ch81_2019_06_05_12_38_09_879499.py
cab21705c88ed0161cb1240956590b1c9a7fc3c7
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
433
py
def interseccao_valores(dic1, dic2): lista_dic1 = [] lista_dic2 = [] for e in dic1.values(): lista_dic1.append(e) for k in dic2.values(): lista_dic2.append(k) lista_interseccao = [] for m in range(0, len(lista_dic1)): for n in range(0, len(lista_dic2)): if lis...
[ "you@example.com" ]
you@example.com
b84e96d2e5c7ab1fd2060b7a26ec821333dca8bc
767c3ca94095db80c7c23577a93f85cf27dd0579
/testcases/test_register.py
e83ce01d24f95e007513e92b9fb8c763ef8cdabe
[]
no_license
zhang0123456789/interface_test
2e95c532c0fc5662f8ecba6e74c905b8374c2034
d77b4e3c6deace6ae0a87893d62a5fa40cdca462
refs/heads/master
2022-12-12T13:45:24.194832
2019-01-05T01:31:29
2019-01-05T01:31:29
164,169,447
5
0
null
null
null
null
UTF-8
Python
false
false
2,767
py
#!/usr/bin/env python # -*- coding:utf-8-*- #@author:蜜蜜 #@file: test_register.py #@time: 2018/12/31 #@email:1402686685@qq.com import json import unittest from ddt import ddt, data from common import contants from common.do_execl import DoExecl from common.mysql_util import MysqlUtil from common.request import Reques...
[ "1402686685@qq.com" ]
1402686685@qq.com
eb06ee00f22ecf3f7526bbf89d4810daa1b97b13
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/delegatednetwork/get_delegated_subnet_service_details.py
1cea4ab12edb53966c5bbea1377cd526ee76b4bb
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
morrell/pulumi-azure-native
3916e978382366607f3df0a669f24cb16293ff5e
cd3ba4b9cb08c5e1df7674c1c71695b80e443f08
refs/heads/master
2023-06-20T19:37:05.414924
2021-07-19T20:57:53
2021-07-19T20:57:53
387,815,163
0
0
Apache-2.0
2021-07-20T14:18:29
2021-07-20T14:18:28
null
UTF-8
Python
false
false
6,281
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 from...
[ "noreply@github.com" ]
morrell.noreply@github.com
1d205dda89d185af991d054d0eca492e10d11142
5c94e032b2d43ac347f6383d0a8f0c03ec3a0485
/Alesis_V/__init__.py
a0c19a33939f7a8259468648ba791b0f6717a22d
[]
no_license
Elton47/Ableton-MRS-10.1.13
997f99a51157bd2a2bd1d2dc303e76b45b1eb93d
54bb64ba5e6be52dd6b9f87678ee3462cc224c8a
refs/heads/master
2022-07-04T01:35:27.447979
2020-05-14T19:02:09
2020-05-14T19:02:09
263,990,585
0
0
null
2020-05-14T18:12:04
2020-05-14T18:12:03
null
UTF-8
Python
false
false
966
py
# uncompyle6 version 3.6.7 # Python bytecode 2.7 (62211) # Decompiled from: Python 2.7.17 (default, Dec 23 2019, 21:25:33) # [GCC 4.2.1 Compatible Apple LLVM 11.0.0 (clang-1100.0.33.16)] # Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/Alesis_V/__...
[ "ahmed.emerah@icloud.com" ]
ahmed.emerah@icloud.com
d3e388b971965bb7667505ef54d6f50b4e5d98c5
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/ton_425/sdB_ton_425_coadd.py
f3713f8fcfe32e4dcaaa4e8452709e8086361d7c
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[142.527417,31.716667], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_ton_425/sdB_ton_425_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_ton_425...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
9b12d02cc2a2150cdd9759b246560d369ebebc9a
8fc999f5262b5a2dadc830f1cc345f51b6dde862
/samples/conceptual_samples/exceptional_handling/exceptional_handling.py
c0f88a8c6cdb9961b2c83bc310c86e153c0ed4de
[]
no_license
pandiyan07/python_2.x_tutorial_for_beginners_and_intermediate
5ca5cb5fcfe7ce08d109fb32cdf8138176ac357a
a4c14deaa518fea1f8e95c2cc98783c8ca3bd4ae
refs/heads/master
2022-04-09T20:33:28.527653
2020-03-27T06:35:50
2020-03-27T06:35:50
250,226,804
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
# this is a sample python script program which is created to demonstrate the exceptional handling concept in the python def get_number(): "the function returns a float number" number=float(input("enter a float number:\n")) return number exit(0) while True: try: print get_number() break except: ...
[ "becool.pandiyan@gmail.com" ]
becool.pandiyan@gmail.com
0dd328e28c261b6378ae5bb07c13860fccdbabd7
b6a84594f8c29d968014faaddd49abeb7537a5fc
/python/443.string-compression.py
3159cf2b852f7a4b099661f5428f9a01ceb3108e
[]
no_license
nickyfoto/lc
8a6af3df114e693e265d0ede03f4d4e1283e010e
3633b4df3e24968057c7d684689b931c5a8032d3
refs/heads/master
2020-09-16T19:23:07.765917
2020-06-07T17:18:06
2020-06-07T17:18:06
223,866,098
0
0
null
null
null
null
UTF-8
Python
false
false
2,737
py
# # @lc app=leetcode id=443 lang=python3 # # [443] String Compression # # https://leetcode.com/problems/string-compression/description/ # # algorithms # Easy (37.79%) # Total Accepted: 56.7K # Total Submissions: 149.2K # Testcase Example: '["a","a","b","b","c","c","c"]' # # Given an array of characters, compress it...
[ "nickyfoto@gmail.com" ]
nickyfoto@gmail.com
9aeca146b15c38122ca0078e969386954136da3f
2cb6294bc2a92b082edb34110937902bf5227303
/6/CalThreeKingdomV1.py
b218d853adc19d8edb2ecf544703849e77f8dbe7
[]
no_license
arnoqlk/icourse163-Python
f1e08a43a833f278c64fa79d57e0b6a261895b0b
2766e500151fc7990617a9e3f9df3af5e259f960
refs/heads/master
2020-04-15T22:45:38.695397
2019-01-11T03:13:28
2019-01-11T03:13:28
165,085,541
0
1
null
null
null
null
UTF-8
Python
false
false
950
py
# 三国演义人物出场统计排序 import jieba txt = open(r"D:\PyCode\6\threekingdoms.txt", "r", encoding="utf-8").read() # jieba库错误分析为人名的词语 excludes = {"将军","却说","荆州","二人","不可","不能","如此"} words = jieba.lcut(txt) counts = {} for word in words: if len(word) == 1: continue elif word == "诸葛亮" or word == "孔明曰": ...
[ "123@gmail.com" ]
123@gmail.com
bdd48947c531b535b04e28f94a17564d959c22fe
fa2ffc5487bef8240a1a5c7cfb893c234df21ee0
/modelformproject/modelformproject/settings.py
c9a0a0c311cb15f9ef257ce997acb17937e0fc42
[]
no_license
sandipdeshmukh77/django-practice-projects
cfd4d8f29aa74832ed3dc5501a651cba3f201251
78f9bd9f0fac4aaeecce4a94e88c6880e004b873
refs/heads/main
2023-02-11T05:59:28.029867
2020-12-29T22:12:52
2020-12-29T22:12:52
325,446,362
0
0
null
null
null
null
UTF-8
Python
false
false
3,252
py
""" Django settings for modelformproject project. Generated by 'django-admin startproject' using Django 3.1.3. 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/ """ fro...
[ "sandipdeshmukh77@gmail.com" ]
sandipdeshmukh77@gmail.com
b53c0419d05dd7cd3d70cc10ab5ff7381ba63d1d
2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8
/pardus/tags/2007/applications/network/wengophone/actions.py
ce51c4bbb7335818be785452d31ef95f3c286ab3
[]
no_license
aligulle1/kuller
bda0d59ce8400aa3c7ba9c7e19589f27313492f7
7f98de19be27d7a517fe19a37c814748f7e18ba6
refs/heads/master
2021-01-20T02:22:09.451356
2013-07-23T17:57:58
2013-07-23T17:57:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,013
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright © 2006 TUBITAK/UEKAE # Licensed under the GNU General Public License, version 2. # See the file http://www.gnu.org/copyleft/gpl.txt. from pisi.actionsapi import scons from pisi.actionsapi import get from pisi.actionsapi import pisitools from pisi.actionsapi impor...
[ "yusuf.aydemir@istanbul.com" ]
yusuf.aydemir@istanbul.com
d42b0dfc0e08ccb4a075e3b8c1c12a1368c26efc
b149a744da7b512d9ec2bfc3c0d855638d23d7fb
/docs/conf.py
d24946fe260123e404a39a2deb04ff9c0a4c97b0
[ "Apache-2.0" ]
permissive
codeprimate123/imaps
250c8f7c6b71fd1725c676a70b2f3b171a1e75e2
241bcd586013c43db8aa4dcb2d42058ac9d142f8
refs/heads/master
2020-09-01T13:58:44.124344
2019-12-09T16:48:05
2019-12-09T16:48:05
218,973,850
0
0
Apache-2.0
2019-11-01T11:36:12
2019-11-01T11:36:12
null
UTF-8
Python
false
false
1,890
py
import imp import os import shlex import sys import sphinx_rtd_theme base_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) # Get package metadata from 'imaps/__about__.py' file about = {} with open(os.path.join(base_dir, 'imaps', '__about__.py')) as f: exec(f.read(), about) # -- General conf...
[ "zmrzlikar.jure@gmail.com" ]
zmrzlikar.jure@gmail.com
a7f4b5315497455f122da51f24d9c8695537822c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02722/s256113021.py
df12675f2b68c6a34a4ddfe3d05d28fbbdf84c3c
[]
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
1,445
py
import sys, math from itertools import permutations, combinations from collections import defaultdict, Counter, deque from math import factorial#, gcd from bisect import bisect_left #bisect_left(list, value) sys.setrecursionlimit(10**7) enu = enumerate MOD = 10**9+7 def input(): return sys.stdin.readline()[:-1] def pri...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
d91558179efd30f1c3e5e855ef97de00d8721ad3
58cfad962e57b935e7782bb214a2008d689751d6
/xero_python/payrolluk/models/employee_leave_type_object.py
352b44d1e9d4189a25aaae9039a94a68a273e287
[ "MIT" ]
permissive
XeroAPI/xero-python
ce43c060c216a42efd5f47159987468deb0e4622
07efa3bfc87a3bd08ba217dd2b642f6a3515ddff
refs/heads/master
2023-07-21T04:01:27.461727
2023-07-11T02:35:44
2023-07-11T02:35:44
240,158,613
109
42
MIT
2023-07-11T02:35:45
2020-02-13T02:17:05
Python
UTF-8
Python
false
false
3,178
py
# coding: utf-8 """ Xero Payroll UK This is the Xero Payroll API for orgs in the UK region. # noqa: E501 Contact: api@xero.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 from xero_python.models import BaseModel class EmployeeLeaveTypeObject(BaseModel): """NOTE:...
[ "sid.maestre@gmail.com" ]
sid.maestre@gmail.com
0ccc0e47066590b574b24615b6b772781536b4e1
bfdde1d758e9b366f0eee27599e56322340e93e0
/version1/feature4StructuralVAr/f4StrucVarTesting/Bayesian_Classifier.py
3c1caaed13808eaf1002f0a67a910966d26125de
[]
no_license
A-Infinite/Sarcasm-Detection
cb22db5c38705a5d1c3ed10bbdbf1ba4d9a16227
fd42ece85a9412b0e6b377874c82fe9544a19701
refs/heads/master
2020-03-08T14:13:02.085085
2018-06-05T07:39:03
2018-06-05T07:39:03
128,179,003
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
import numpy as np import csv from sklearn.model_selection import train_test_split from sklearn.preprocessing import OneHotEncoder from sklearn.naive_bayes import GaussianNB x = [] y = [] with open('feature4StrucVar.csv') as csvfile: reader = csv.reader(csvfile, delimiter = ' ') for row in reader: x.append(row[0:...
[ "arushi131.bhatt@gmail.com" ]
arushi131.bhatt@gmail.com
9a10bb495cf4fc83b00c8d9c97248edd59a5dfc9
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/323/usersdata/284/89341/submittedfiles/mdc.py
d1667dac5fa29ea45712274a24489656ba05b237
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
# -*- coding: utf-8 -*- import math def divisor(x): x=int(input('digite o valor:')) for n in range(1,x+1,1): if(x%n==0): return(n)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
74d26786f508654108a2147365f55668187dad26
9044b440bed2b8407ed9e04f7fb9d3d2a7593136
/recommendation/knet/krecall/ops/openblas_top_k/test.py
942125ff70e3d537f3ca6765d04febc83c0cce72
[]
no_license
xuzhezhaozhao/ai
d4264f5d15cc5fa514e81adb06eb83731a0ca818
925cbd31ad79f8827e2c3c706f4b51910f9f85d1
refs/heads/master
2022-01-22T07:04:29.082590
2022-01-17T06:49:39
2022-01-17T06:49:39
136,691,051
5
4
null
null
null
null
UTF-8
Python
false
false
1,032
py
#! /usr/bin/env python # -*- coding=utf8 -*- import tensorflow as tf import numpy as np import struct openblas_top_k_ops = tf.load_op_library('openblas_top_k_ops.so') openblas_top_k = openblas_top_k_ops.openblas_top_k WEIGHTS_PATH = 'weights.bin' BIASES_PATH = 'biases.bin' weights = np.arange(100).reshape([20, 5])....
[ "zhezhaoxu@tencent.com" ]
zhezhaoxu@tencent.com
9a337d7549581b57b42242cdd52a155c5dcec46e
55cf061ccf7cff9e02190ea8dec10a3fc5e82729
/tutorials/3.CodeOrganization/Person.py
8b427a49315da90747d8f4f3b9f8e0a3baab66e0
[ "MIT" ]
permissive
Jess3Jane/pyforms
a9e491310590f510ece910beabb2ea291273cfa1
f34816db018f05c581ede42804771faa39e78824
refs/heads/master
2021-04-26T23:53:08.877082
2018-03-05T06:36:07
2018-03-05T06:36:07
123,875,438
0
0
MIT
2018-03-05T06:33:19
2018-03-05T06:33:19
null
UTF-8
Python
false
false
289
py
class Person(object): def __init__(self, firstName, middleName, lastName): self._firstName = firstName self._middleName = middleName self._lastName = lastName @property def fullName(self): return "{0} {1} {2}".format(self._firstName, self._middleName, self._lastName)
[ "ricardojvr@gmail.com" ]
ricardojvr@gmail.com
884c23b9dde9349f41a3614ef6a4675579014561
5b4c803f68e52849a1c1093aac503efc423ad132
/UnPyc/tests/tests/CFG/2/pass/pass_while+else_try+except+else+finally_.py
08b949ad1aa4d769c103db68c1a684ce80ac8cfa
[]
no_license
Prashant-Jonny/UnPyc
9ce5d63b1e0d2ec19c1faa48d932cc3f71f8599c
4b9d4ab96dfc53a0b4e06972443e1402e9dc034f
refs/heads/master
2021-01-17T12:03:17.314248
2013-02-22T07:22:35
2013-02-22T07:22:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
try: while 1: pass else: pass except: while 1: pass else: pass else: while 1: pass else: pass finally: while 1: pass else: pass
[ "d.v.kornev@gmail.com" ]
d.v.kornev@gmail.com
ebb1eba75e644fcc50606ed8fd173e72a66784ad
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2788/60617/264414.py
2b2b3b9b9de2320c65e7ff5f40cb8ce89ca0f4d8
[]
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
860
py
def dance(): n=int(input()) boys=list(map(int, input().split(" "))) m=int(input()) girls=list(map(int, input().split(" "))) pairs=0 boys.sort() girls.sort() if n<=m: for ele in boys: if ele-1 in girls: pairs+=1 girls.remove(ele-1) ...
[ "1069583789@qq.com" ]
1069583789@qq.com
d458f4e83c13f6a8060121c872a13308240f3fc4
2fe58e7f6bfc3efdb78ca56f72a4e2a75a24c270
/eric/eric6/Plugins/UiExtensionPlugins/Translator/ConfigurationPage/__init__.py
c589525eb78455712c21edf6336a189a21bfd13e
[]
no_license
testerclub/eric6-20.3
3053e0e6962060b213f5df329ee331a4893d18e6
bba0b9f13fa3eb84938422732d751219bc3e29e2
refs/heads/master
2023-03-18T08:24:03.472297
2020-03-14T06:44:14
2020-03-14T06:44:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
# -*- coding: utf-8 -*- # Copyright (c) 2014 - 2020 Detlev Offenbach <detlev@die-offenbachs.de> # """ Package implementing the Translator page of the configuration dialog. """
[ "skeptycal@gmail.com" ]
skeptycal@gmail.com
ac73581c07d933e9d8e3d52a3f3a553ed7d1a77b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03680/s252443262.py
3378adf8c331e679f71f21f1cc7f8e53ad921529
[]
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
502
py
import sys from sys import exit from collections import deque from bisect import bisect_left, bisect_right, insort_left, insort_right #func(リスト,値) from heapq import heapify, heappop, heappush sys.setrecursionlimit(10**6) INF = 10**20 def mint(): return map(int,input().split()) def lint(): return map(int,input...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
46fe99471204a18d79b8e197d11e569f943d6c86
07e2e27f20531452bb070597803a52f1e4f4e4a0
/average.py
b4d6974dfd0ee869169925f5589f308fc315d0d5
[]
no_license
ashantisease19/lab-08-loops
de413028d7ede6aee0cf98def3aa63b4bc3ba066
0117f23dd1371b01bc31fdb3f8aa952bf1a28516
refs/heads/master
2023-04-07T08:02:27.834787
2021-04-11T03:16:33
2021-04-11T03:16:33
354,944,478
0
0
null
null
null
null
UTF-8
Python
false
false
314
py
average = 0 sum = 0 for i in range (0,4,1): userinput = input("Just give me a number.") usernum = int(userinput, 10) sum = sum + usernum print("So you put the number " + str(usernum) + " and the current sum is " + str(sum)) average = sum / 4 print("Okay, bro, so the average is " + str(average))
[ "you@example.com" ]
you@example.com
eb1c2d999d1c52084a21a951371b6816ed211083
1d1c1dce863a4e8b6c9987e9c50fa46908aa0ff6
/pipeline/feature-extraction/seri/extraction_lbp_top_codebook_final.py
c8d81fa0b1fc3d0357cfff5d8307e440ad06ff20
[]
no_license
I2Cvb/lemaitre-2016-apr
4692f64b365c3e8095c96944431e8e03bc9ecc7e
266dc93026fa70c83a34790c1bd9ae14a23492ba
refs/heads/master
2021-01-18T19:30:26.845275
2016-03-19T21:11:11
2016-03-19T21:11:11
54,284,795
0
0
null
null
null
null
UTF-8
Python
false
false
4,067
py
#title :extraction_codebook.py #description :This will create a header for a python script. #author :Guillaume Lemaitre #date :2015/06/07 #version :0.1 #notes : #python_version :2.7.6 #============================================================================== ...
[ "glemaitre@visor.udg.edu" ]
glemaitre@visor.udg.edu
1d5ecb9898306e73daa11e2c834b4fa76e3d4b76
7826681647933249c8949c00238392a0128b4a18
/cosypose/utils/resources.py
0d0042740659a09b95b1032cea0c91c7fe8516b9
[ "MIT" ]
permissive
imankgoyal/cosypose
b35678a32a6491bb15d645bc867f4b2e49bee6d2
fa494447d72777f1d3bd5bd134d79e5db0526009
refs/heads/master
2022-12-09T11:18:23.188868
2020-08-31T15:34:02
2020-08-31T15:34:02
291,834,596
2
0
MIT
2020-08-31T22:06:12
2020-08-31T22:06:11
null
UTF-8
Python
false
false
517
py
import os import psutil from shutil import which def is_egl_available(): return is_gpu_available and 'EGL_VISIBLE_DEVICES' in os.environ def is_gpu_available(): return which('nvidia-smi') is not None def is_slurm_available(): return which('sinfo') is not None def get_total_memory(): current_proc...
[ "labbe.yann1994@gmail.com" ]
labbe.yann1994@gmail.com
4985a0fa1bd9664fb90cd7db6fe4ebf87eb5bf80
7ef39106ff091002c3a22781628fe3076a0941b0
/bindings/python/pyiree/rt/vm_test.py
ed7e66f7b3ab0b3c19c8bde23f8fab9ccec738e7
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
YashRajSingh-4799/iree
798c01b44696f1360014075f4eca275c7a4dc87f
ace19e886efe3702bfe7b17185a5daaa20808e82
refs/heads/master
2022-04-20T23:52:58.303107
2020-04-23T01:39:08
2020-04-23T02:47:41
258,150,320
2
0
Apache-2.0
2020-04-23T09:09:26
2020-04-23T09:09:26
null
UTF-8
Python
false
false
5,127
py
# Lint as: python3 # Copyright 2019 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
98fd540f8660d0e5851214ffcfc28a448989e90e
06a863150a7a3a7bfc0c341b9c3f267727606464
/lib/gii/core/AssetUtils.py
260e5649c1ed35c15c0ad503ee6b87826f8902a3
[ "MIT" ]
permissive
brucelevis/gii
c843dc738a958b4a2ffe42178cff0dd04da44071
03624a57cf74a07e38bfdc7f53c50bd926b7b5a7
refs/heads/master
2020-10-02T00:41:02.723597
2016-04-08T07:44:45
2016-04-08T07:44:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
import os import os.path import subprocess import platform import ctypes ##TOOL Functions def openFileInOS(path): sysName=platform.system() if sysName=='Darwin': subprocess.call(["open", path]) elif sysName == 'Windows': os.startfile( os.path.normpath(path) ) #TODO:linux? def showFileInBrowser(path): sys...
[ "tommo.zhou@gmail.com" ]
tommo.zhou@gmail.com
5d29772916a157b070f30c565edce75aee066945
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/120/120.triangle.249953022.Runtime-Error.leetcode.py
bb813fc6a70d765796b9ff45665c1b95a1f683dc
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
271
py
class Solution(object): def minimumTotal(self, triangle): for row in triangle[::-1]: for col in range(len(triangle[row])): triangle[row][col] += min(triangle[row + 1][col], triangle[row + 1][col + 1]) return triangle[0][0]
[ "huangyingw@gmail.com" ]
huangyingw@gmail.com
3282e7d18794deb4d673a620e223b8ab2c976279
3d90d6753cbb48c74dc8e72f4a886635a706ee16
/day20-django之数据库外键多表,ajax/application/application/settings.py
07dcebd87c9f8e60a649fde1b389c928c01bb465
[]
no_license
shun-zi/python
01354dfc23e470c67ae6adc323b7b23c446faf95
9b9851a608cfa18392464b7d887659ced8eb58a6
refs/heads/master
2021-09-12T23:15:35.586858
2018-04-22T12:32:41
2018-04-22T12:32:41
113,460,188
0
0
null
null
null
null
UTF-8
Python
false
false
3,322
py
""" Django settings for application project. Generated by 'django-admin startproject' using Django 2.0.3. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import o...
[ "mac@macdeMacBook-Pro.local" ]
mac@macdeMacBook-Pro.local
b7bf9d90e7b82119aa39546ac07392e2794321d0
d916d9f15b039abe4f824d58714e0c3277939711
/Encapsulation/Encapsulation-Lab/01_person.py
2924a2a7ca413bcab6ea528fd27ca351de366977
[]
no_license
jesalshah14/SoftUni-Python-OOP-February-2021
a641e31e7144785cd05b0b6324348570ff90d7d7
45a584316951bca4d1bcfe35861f140d9fedf62a
refs/heads/main
2023-04-09T20:15:32.764633
2021-04-18T15:29:57
2021-04-18T15:29:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
class Person: def __init__(self, name, age): self.__name = name self.__age = age def get_name(self): return self.__name def get_age(self): return self.__age # class Person: # def __init__(self, name, age): # self.__name = name # self.__age = age # # ...
[ "eng.antonov@gmail.com" ]
eng.antonov@gmail.com
bc6f06c449429d99388dfabc101bd41903a224ec
3479fca8dd50fb0f27a981cca2e4d1cd9a34d36b
/post/permissions.py
f61e1d34af829fedff5583d7f68a9fae3a0e4672
[]
no_license
Harshvartak/blogproj
bdea67e935789ba2bacd29ec91d070b0650f73da
4fd23d3664218bfb0c0f6817995b9595c7aa08f2
refs/heads/master
2020-11-25T23:24:47.459955
2019-12-23T20:27:13
2019-12-23T20:27:13
228,888,052
0
0
null
2019-12-18T19:01:54
2019-12-18T17:16:57
Python
UTF-8
Python
false
false
465
py
from rest_framework import permissions ''' class BasePermission(object): def has_permission(self, request, view): return True def has_object_permission(self, request, view, obj): return True ''' class IsAuthorOrReadOnly(permissions.BasePermission): def has_object_permission(self, request...
[ "vartak.harsh@gmail.com" ]
vartak.harsh@gmail.com
fe10ec94891a3d476f0c90796f87d44a9790613f
a0127e596323a7016b1662d57cedea7bae3f3588
/calendly/common/logger.py
8c1c938878c5238c4ba3c5ce9761f3901ccab360
[]
no_license
cpj2195/calendly
042710b959b3c4e390b9044927e92bbe7a384908
157907ddaf0c4330a03c8acf407239955b056d70
refs/heads/master
2022-06-13T16:17:43.936713
2020-04-06T12:52:07
2020-04-06T12:52:07
252,102,917
1
0
null
2022-05-25T03:25:24
2020-04-01T07:27:03
Python
UTF-8
Python
false
false
371
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import traceback def log_to_cloudwatch(log_marker, message): ''' This functions is used to print the log messages so that they can be logged to cloudwatch. PARAMETERS ---------- message : str message to be logged ''' traceback.pr...
[ "you@example.com" ]
you@example.com
03d30a5a7bb912b677db9b56561c7e7e5fb31035
18dc0f38e3d43a4b457c626c20fa16da715d1773
/qa/Test_dm_sip_idb.py
19f3a61475ee919eec91948be065d7a53c3791e2
[ "MIT" ]
permissive
KDahlgren/orik
424f6495effe0113ca56db3954453e708aa857a5
4e66107cf2dc2cd1a30ba4bfbe15c1ad1c176c0f
refs/heads/master
2021-01-01T15:38:24.385363
2018-06-23T01:24:55
2018-06-23T01:24:55
97,662,025
2
2
MIT
2018-09-24T20:57:27
2017-07-19T02:04:15
Python
UTF-8
Python
false
false
7,064
py
#!/usr/bin/env python ''' Test_dm_sip_idb.py ''' ############# # IMPORTS # ############# # standard python packages import inspect, logging, os, re, string, sqlite3, sys, unittest # ------------------------------------------------------ # # import sibling packages HERE!!! if not os.path.abspath( __file__ + "/.....
[ "kdahlgren15@gmail.com" ]
kdahlgren15@gmail.com
eea9054193fcde002fa2322da0daf6e6b6bbd769
d561fab22864cec1301393d38d627726671db0b2
/python/helpers/typeshed/third_party/3.6/click/decorators.pyi
a3dcdddeb065b9be1908801b10384ecdca051c3b
[ "Apache-2.0", "MIT" ]
permissive
Vedenin/intellij-community
724dcd8b3e7c026936eed895cf964bb80574689a
74a89fa7083dedc6455a16e10cf779d191d79633
refs/heads/master
2021-01-25T00:47:43.514138
2017-03-27T15:48:36
2017-03-27T15:54:02
86,361,176
1
1
null
2017-03-27T16:54:23
2017-03-27T16:54:23
null
UTF-8
Python
false
false
5,494
pyi
from typing import Any, Callable, Dict, List, TypeVar, Union from click.core import Command, Group, Argument, Option, Parameter, Context from click.types import ParamType T = TypeVar('T') Decorator = Callable[[T], T] def pass_context(T) -> T: ... def pass_obj(T) -> T: ... def make_pass_decorator( ob...
[ "andrey.vlasovskikh@gmail.com" ]
andrey.vlasovskikh@gmail.com
f17014c2e1af3c37315c054d5633d98ac328b1c3
9784a90cac667e8e0aaba0ca599b4255b215ec67
/gluon/datasets/librispeech_asr_dataset.py
9726c17ef5fa85b5af7e5f85752be4319238b0ff
[ "MIT" ]
permissive
osmr/imgclsmob
d2f48f01ca541b20119871393eca383001a96019
f2993d3ce73a2f7ddba05da3891defb08547d504
refs/heads/master
2022-07-09T14:24:37.591824
2021-12-14T10:15:31
2021-12-14T10:15:31
140,285,687
3,017
624
MIT
2022-07-04T15:18:37
2018-07-09T12:57:46
Python
UTF-8
Python
false
false
5,226
py
""" LibriSpeech ASR dataset. """ __all__ = ['LibriSpeech', 'LibriSpeechMetaInfo'] import os import numpy as np from .dataset_metainfo import DatasetMetaInfo from .asr_dataset import AsrDataset, asr_test_transform class LibriSpeech(AsrDataset): """ LibriSpeech dataset for Automatic Speech Recognition (AS...
[ "osemery@gmail.com" ]
osemery@gmail.com
cf20a934ec81a718afd3d4f520e7a181de4d4ea6
479117fe710b1cadf9252f08769d8fd1476934e4
/flask_ipywidgets/__init__.py
ead135d9ab9e51af7a15b2604dd43d767070b29b
[ "BSD-3-Clause" ]
permissive
jf---/flask-ipywidgets
3f1b310c81015c3b4fbc66ee24d356987998613e
3c0d7356c7185cb59e9dfa0f13e702273bbd7696
refs/heads/master
2020-03-15T12:32:05.166269
2018-07-30T10:06:15
2018-07-30T10:06:15
132,146,254
0
0
null
2018-05-04T13:51:06
2018-05-04T13:51:06
null
UTF-8
Python
false
false
3,088
py
from .kernel import * from flask_sockets import Sockets _kernel_spec = { "display_name": "flask_kernel", "language": "python", "argv": ["python", "doesnotworkthisway"], "env": { }, "display_name": "Flask kernel", "language": "python", "interrupt_mode": "signal", "metadata": {}, } ...
[ "maartenbreddels@gmail.com" ]
maartenbreddels@gmail.com
c0639249f7c07c28cd08a1583e8193dcd657342f
e23881d9b059f3fbe3f75a7c8c53737ed0f53545
/Django_two_factor_auth/manage.py
842f7f604e05ff01e4c5825614bc8edaf8790bb5
[]
no_license
GK-SVG/Django_Boy
b1fbf9c2b3d35e38bcd2da54956476aad0f2310d
27121c1dc70b44065cd2c5fe854335cd5d1214c5
refs/heads/master
2023-05-07T22:47:02.414738
2021-06-03T17:03:43
2021-06-03T17:03:43
308,200,818
2
0
null
null
null
null
UTF-8
Python
false
false
678
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Django_two_factor_auth.settings') try: from django.core.management import execute_from_command_line ...
[ "gk32239@gmail.com" ]
gk32239@gmail.com
85052a32ac62faefb4696f65719c5b84466465aa
facf7941a8ef5b1f3eceac59b390ef78ea18c6b8
/EmoEstimator/utils/evaluate.py
f9134555f6cb0e1a9f4e8b46ce9fae19ab3e90b7
[]
no_license
augustdemi/demi
efd29caa3fcccbd92b3ac4e9ba39ed910c3a75ef
059a1bc93f9597b4db98e2c8e8c6f60d180d4fc3
refs/heads/master
2020-03-18T17:05:25.398744
2019-03-13T18:55:28
2019-03-13T18:55:28
135,005,645
0
0
null
null
null
null
UTF-8
Python
false
false
5,475
py
import numpy as np import pandas as pd pd.set_option('display.float_format', lambda x: '%.2f' % x) def _process(y_hat, y_lab, fun): ''' - split y_true and y_pred in lists - removes frames where labels are unknown (-1) - returns list of predictions ''' y1 = [x for x in y_hat.T] y2 = [x for x...
[ "augustdemi@gmail.com" ]
augustdemi@gmail.com
4f285ca0d361ca2986f77184b1364e48262952d5
6bb99b53ae72f03e4ebce2c80c3be1c13871e46f
/pyweb/web_11_framework_v3/test_case/test_bid.py
09aadaa2667f5e987cb84621e5717cf50f64b8d1
[]
no_license
change1q2/Learn
b9ac7085ae476f92fbf04043bda74605b723abf0
28e93c56c0a3aaf72006614a565fb7fff267b893
refs/heads/master
2021-03-15T16:31:51.641845
2020-04-10T14:19:23
2020-04-10T14:19:23
246,864,938
0
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
#!/usr/bin/env python3 #-*- coding:utf-8 -*- # email: wagyu2016@163.com # wechat: shoubian01 # author: 王雨泽 import time import unittest from selenium import webdriver from data.login_data import login_data_success from pages.index_page import IndexPage from pages.login_page import LoginPage class TestBid(unittest.Te...
[ "274882401@qq.com" ]
274882401@qq.com
4db4270f3fe0a646bfc6601b1a0ca5d44b124cad
0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a
/python3/13_OOP/f_Advanced/02_abc_classes.py
698048fec9be8984002dbb3ddec5ae264a1514ff
[]
no_license
udhayprakash/PythonMaterial
3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156
e72f44e147141ebc9bf9ec126b70a5fcdbfbd076
refs/heads/develop
2023-07-08T21:07:33.154577
2023-07-03T10:53:25
2023-07-03T10:53:25
73,196,374
8
5
null
2023-05-26T09:59:17
2016-11-08T14:55:51
Jupyter Notebook
UTF-8
Python
false
false
952
py
#!/usr/bin/python """ Purpose: Abstract Base classes """ from abc import ABC, abstractmethod, abstractproperty class BasicCar(ABC): modal_name: str = NotImplemented @abstractmethod def get_chasis_number(self): pass def get_car_model(self): pass # Solution class RolsRoys(BasicCar):...
[ "uday3prakash@gmail.com" ]
uday3prakash@gmail.com
5e2198bbbaad10200ebe8913df6a6cce46ac2e95
ddda55fcfc84ac5cd78cfc5c336a3df0b9096157
/scripts/linux-menuconfig/menuconfig.py
d3b29c6414cf8265292e0e7ae04ab48eb6d085c9
[ "Apache-2.0" ]
permissive
liu-delong/lu_xing_xiang_one_os
701b74fceb82dbb2806518bfb07eb85415fab43a
0c659cb811792f2e190d5a004a531bab4a9427ad
refs/heads/master
2023-06-17T03:02:13.426431
2021-06-28T08:12:41
2021-06-28T08:12:41
379,661,507
2
2
Apache-2.0
2021-06-28T10:08:10
2021-06-23T16:11:54
C
UTF-8
Python
false
false
1,160
py
# -*- coding:utf-8 -*- # # File : menuconfig.py # This file is part of OneOS RTOS # import os import sys import argparse import platform import cmd_menuconfig __version__ = 'OneOS packages v1.1.0' def main(): bsp_root = os.getcwd() os_root = os.path.join(bsp_root, "../..") script_root = os.path.s...
[ "cmcc_oneos@cmiot.chinamobile.com" ]
cmcc_oneos@cmiot.chinamobile.com
79b15adf19e99c7c49e5040691a05f0842aedc20
09ac5476e94122bf8ccdb0b404175dff0820c8a7
/283 移动零.py
de5fd9bb96328ff663044152764e0112c737d6ec
[]
no_license
wxke/LeetCode-python
df27c456ad0c7042e3bfcf2a697e3958d3b85f1f
37a66e426e9c7e279928d2f6fcdecb9641f4121c
refs/heads/master
2020-04-29T14:03:22.554357
2020-03-10T12:38:24
2020-03-10T12:38:24
176,185,448
2
0
null
null
null
null
UTF-8
Python
false
false
370
py
移动零 class Solution: def moveZeroes(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ n=nums.count(0) for i in range(n): nums.remove(0) for i in range(n): nums.append...
[ "noreply@github.com" ]
wxke.noreply@github.com
0556703511c977fa66d8a51c13ed395a5a309986
0da6e1000e071d97822ffe5d84efa7f998d72ae8
/2021-03-08-Introduction-to-Python/examples/14-matmul.py
6b0863741e3b60985b2abf63859843e460fa769c
[ "BSD-3-Clause" ]
permissive
s3rvac/talks
1c3dfec03d1f798125a50438b26aa8daf1f86b65
5e76250ee98424c090fdfbf3c1a2a92f36ccaca6
refs/heads/master
2023-05-12T01:13:03.365621
2023-05-05T17:32:27
2023-05-05T17:32:27
84,107,862
3
2
null
null
null
null
UTF-8
Python
false
false
247
py
# @ is an operator for matrix multiplication since Python 3.5 (__matmul__). # # Requires numpy (http://www.numpy.org/). import numpy as np A = np.matrix('4 1; 9 3') B = np.matrix('5 1; 3 8') # Prints # # [[23 12] # [54 33]] # print(A @ B)
[ "s3rvac@gmail.com" ]
s3rvac@gmail.com
7fa6c925a941e1607fa873947b412cbf1688cefe
f8f8651ab604acc4937f8725caadaca1fb97a5e8
/src/lightning_app/cli/commands/app_commands.py
0b08538e76ba6d2c9bab478aa86190a00f8b3954
[ "Apache-2.0" ]
permissive
neptune-ai/pytorch-lightning
ac59e746a486e07e21abae426b28e5d72812ac98
702014418e2ec0437e67d8bf97809edef686a02c
refs/heads/master
2022-09-28T09:34:07.653729
2022-09-12T11:13:48
2022-09-12T11:13:48
229,063,811
1
1
Apache-2.0
2022-09-26T03:29:49
2019-12-19T13:48:16
Python
UTF-8
Python
false
false
3,430
py
import os import sys from typing import Dict, Optional import requests from lightning_app.cli.commands.connection import _resolve_command_path from lightning_app.utilities.cli_helpers import _retrieve_application_url_and_available_commands from lightning_app.utilities.commands.base import _download_command from light...
[ "noreply@github.com" ]
neptune-ai.noreply@github.com
9c08d98c2e1c10b1d3156cdc716e1f61bdac4ecd
b0549c720ffc7222c1b159db601d083f4422232f
/aib/init/tables/dir_companies.py
5b540cdf12644b9121d40b33a113ed766f872a24
[ "MIT" ]
permissive
FrankMillman/AccInABox
e7f6fd84caca27e3c4871b23b104cfd9de2150b3
3f2fc881cc9ee3e9e27022d90c90a7141fc59588
refs/heads/develop
2023-06-26T08:32:48.319840
2023-06-18T07:14:10
2023-06-18T07:14:10
23,425,845
3
1
NOASSERTION
2020-01-03T07:12:47
2014-08-28T11:43:13
Python
UTF-8
Python
false
false
3,758
py
# table definition table = { 'table_name' : 'dir_companies', 'module_id' : 'dir', 'short_descr' : 'Companies', 'long_descr' : 'Directory of companies', 'sub_types' : None, 'sub_trans' : None, 'sequence' : None, 'tree_params' : None, 'roll_params' : None, ...
[ "frank@chagford.com" ]
frank@chagford.com
18cedc9c8cb002b7f8892e0fcdfd09d244337590
ee974d693ca4c4156121f8cb385328b52eaac07c
/env/share/doc/networkx-2.3/examples/drawing/plot_house_with_colors.py
68cb5d35963bc4da741f8e85b2e81230e2bb2533
[ "BSD-3-Clause" ]
permissive
ngonhi/Attendance_Check_System_with_Face_Recognition
f4531cc4dee565d0e45c02217f73f3eda412b414
92ff88cbc0c740ad48e149033efd38137c9be88d
refs/heads/main
2023-03-12T07:03:25.302649
2021-02-26T15:37:33
2021-02-26T15:37:33
341,493,686
1
0
null
null
null
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:1063c25d17b4cbafe673c0f1acef5d9c1c6b29ef79501dfe0f10cec8d2767104 size 649
[ "Nqk180998!" ]
Nqk180998!
461b635b955e33ca50eb9eb4f5cd167f0ab81b3a
368be25e37bafa8cc795f7c9f34e4585e017091f
/.history/app_fav_books/views_20201115192231.py
f4f483905ce72aa6aed71af7ca372af90704fdb2
[]
no_license
steven-halla/fav_books_proj
ebcfbfda0e7f3cdc49d592c86c633b1d331da513
512005deb84ac906c9f24d4ab0939bd0db096716
refs/heads/master
2023-03-30T09:37:38.016063
2021-04-02T20:27:22
2021-04-02T20:27:22
354,125,658
0
0
null
null
null
null
UTF-8
Python
false
false
6,180
py
from django.shortcuts import render, redirect from .models import * from django.contrib import messages # contains user signup + login form def view_index(request): # bonus, if user is already logged in, lets not show them login/registration page, # and instead redirect them to /books, which is already where ...
[ "69405488+steven-halla@users.noreply.github.com" ]
69405488+steven-halla@users.noreply.github.com
2afb20a8d6138518efc06a6055d56149e339e7ab
7d44745a63b5f470e718be3b02b08a2e4c90ff45
/205IsomorphicStrings.py
d249d951cd37eef228fdd2d9612887bd285c7a92
[]
no_license
SixingYan/algorithm
20895471baca1b77d3dbe4a3310cc3789dc10c78
25b20d03b5613b731ac07baad1073daa3955113b
refs/heads/master
2020-03-25T01:00:42.908903
2019-12-14T02:04:51
2019-12-14T02:04:51
143,217,676
0
0
null
null
null
null
UTF-8
Python
false
false
1,716
py
""" Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the characters in s can be replaced to get t. All occurrences of a character must be replaced with another character while preserving the order of characters. No two characters may map to the same character but a character ...
[ "plutoyem@outlook.com" ]
plutoyem@outlook.com
03c2543b84cafbe50d743af624d68e6d7e91f476
33421188df7d7dcf2ee9be0771b0f2fe1ffad4f5
/2012/gul-uc3m/bbdd-clave-valor/ejemplos/hash.py
1dc822a5ca1e0c28e50659742f6cf7f6b5e48b81
[ "CC-BY-4.0" ]
permissive
Gustavo17/ponencias
c0482fc7a72d7d4d829a54b94775e77c81ca5d97
effb002b0300fe57d26776654b61a2396010da40
refs/heads/master
2021-01-13T09:18:13.837313
2014-11-21T04:58:11
2014-11-21T04:58:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
713
py
from kyotocabinet import * import time import random db = DB() db.open("db.kch", DB.OCREATE|DB.OWRITER) pre_time = time.time() # 1 Million loop for x in range(1,1000000): db.add(x,x+x) post_time = time.time() print "Escribir 1M de registros: %.4f segundos" % (post_time-pre_time) keys = [random.randint(1, 100000...
[ "jesus.espino@kaleidos.net" ]
jesus.espino@kaleidos.net
0d0af063bede796cb727ece6c2cdda4f9bf71a6a
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_conforming.py
7156a408292dbb1e044fcef4ea5ca44b272f2a6a
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
#calss header class _CONFORMING(): def __init__(self,): self.name = "CONFORMING" self.definitions = conform self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['conform']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
d52d63f378c671167dc83b8eb693e2317905e11a
16ba38ef11b82e93d3b581bbff2c21e099e014c4
/haohaninfo/Python_Stock_Sample/Python股票技巧範例/實單範例/92.py
50bbeb402fdbf215e5b4078a807ba1937d5bdafb
[]
no_license
penguinwang96825/Auto-Trading
cb7a5addfec71f611bdd82534b90e5219d0602dd
a031a921dbc036681c5054f2c035f94499b95d2e
refs/heads/master
2022-12-24T21:25:34.835436
2020-09-22T09:59:56
2020-09-22T09:59:56
292,052,986
2
5
null
null
null
null
UTF-8
Python
false
false
977
py
# -*- coding: UTF-8 -*- # 載入相關套件 import datetime,function,indicator import talib,numpy import sys # 取得當天日期 Date=datetime.datetime.now().strftime("%Y%m%d") # 測試股票下單 Sid=sys.argv[1] # 趨勢判斷 Trend=0 TrendEndTime=datetime.datetime.strptime(Date+'09:30:00','%Y%m%d%H:%M:%S') BSPower2= indicator.BSPower2() for...
[ "penguinwang@smail.nchu.edu.tw" ]
penguinwang@smail.nchu.edu.tw
6d88d996e37554efc91b4639f8e20013073ea73d
c55996cce55db9e15f679f2358f6782754cd7013
/Chips/Or4Way.py
f5668ccfe102eb722df4a89c2402a0ce45333d49
[ "MIT" ]
permissive
AdilRas/Nand2TetrisCaseGenerator
efc1e0d7900593f6ba47d99a43dfa1647bbc35ec
db82e6988d03d64884e4ac0cf02cecb78e275bc5
refs/heads/master
2021-01-15T02:58:23.552602
2020-02-26T19:14:39
2020-02-26T19:14:39
242,856,705
6
2
null
null
null
null
UTF-8
Python
false
false
404
py
from src.TestCaseGenerator import * input_variables = [Var("a", 4, "B"), Var("b", 4, "B")] output_variables = [Var("out", 1, "B")] # args = [in, sel] def or4way_logic(args): a = args[0] out = [] if a > 0: out.append(1) else: out.append(0) return out generate(name="Or4Way", numC...
[ "=" ]
=
937bcf121e3fd1140f67af8b53050b8cfd8c62b3
6f8113e7a06699e8448dcbeb7c329be11c5926a5
/apps/facebook/tests/urls.py
d86907b4cb8b7bf2049a0dc4ec2fde70619b8531
[ "MIT", "BSD-3-Clause" ]
permissive
groovecoder/affiliates
b906a565f3f035da09e22b15e9843b1aed7b313d
7d22304ada7ffdb893fe8305630ec11eb84cfab5
refs/heads/master
2020-04-06T04:36:09.980997
2014-01-10T15:07:16
2014-01-10T15:07:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
import os from django.conf.urls.defaults import include, patterns, url from django.http import HttpResponse from django.template import RequestContext from funfactory.manage import ROOT from jingo import env def base_template_view(request): template = env.from_string(""" {% extends 'facebook/base.html' ...
[ "mkelly@mozilla.com" ]
mkelly@mozilla.com
4ca89110e5367a6b1a354bffa4531ba99188ae58
1866d40b66fe6b0291f96a3c5eec1fbd9e1aee88
/tests/_testsite/apps/forum_conversation/migrations/0011_topic_dummy.py
0461c28d62f0db1a5b5769bb4f9088406f135caa
[ "BSD-3-Clause" ]
permissive
ellmetha/django-machina
f612ea0d1191001f8188fe868ddec69ec530b4d7
6586d2608bbffc31911ea6f9a15c570580116238
refs/heads/main
2023-07-31T18:11:28.819165
2023-05-28T01:19:33
2023-05-28T01:19:33
14,761,593
640
174
BSD-3-Clause
2023-07-25T23:20:46
2013-11-27T23:12:41
Python
UTF-8
Python
false
false
468
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('forum_conversation', '0010_auto_20170120_0224'), ] operations = [ migrations.AddField( model_name='topic', ...
[ "morgan.aubert@zoho.com" ]
morgan.aubert@zoho.com
28c1ab842c0df1278993d803b17abeb1dccb5a46
c7295c1ffd8ad82c273524eab1a42d3a22741ba9
/figures/third/trajectories.py
f4fa229790815bcdc4bc3dab6420f4162a41887e
[]
no_license
FedeClaudi/EscapePathSelection
629d3ea6f5c14af144bdda16a899b3fb86340169
1bbdd95384e1c343495fcf33fc0c46b21110fe91
refs/heads/master
2023-04-18T18:16:27.153848
2022-04-25T12:20:40
2022-04-25T12:20:40
247,850,434
1
1
null
null
null
null
UTF-8
Python
false
false
6,430
py
# %% import pandas as pd import matplotlib.pyplot as plt import numpy as np from loguru import logger import matplotlib as mpl from mpl_toolkits.axes_grid1 import make_axes_locatable from fcutils.plot.figure import clean_axes from fcutils.plot.elements import plot_mean_and_error from fcutils.maths import rolling_mea...
[ "federicoclaudi@protonmail.com" ]
federicoclaudi@protonmail.com
8ed056e6cedb9357097a5fd5b51a47b4610ce6ae
8f6cc0e8bd15067f1d9161a4b178383e62377bc7
/kaggle_song_git/code_box/VALIDATION_fake_feature_insert_V1001/report/0.687954one_train_V1003.py
5e8ec3aab8083acb97a86c9b41a530c4981ac756
[]
no_license
humorbeing/python_github
9c4dfc61a3cefbb266fefff335f6b28d05797e5e
e4b4b49bee7e7e3843c6874717779ce8d619bd02
refs/heads/master
2023-01-22T21:51:20.193131
2020-01-26T21:47:23
2020-01-26T21:47:23
163,707,778
0
0
null
2022-12-27T15:37:48
2019-01-01T01:58:18
Python
UTF-8
Python
false
false
8,077
py
import numpy as np import pandas as pd import lightgbm as lgb import datetime import math import gc import time import pickle from sklearn.model_selection import train_test_split since = time.time() data_dir = '../data/' save_dir = '../saves/' load_name = 'train_set' dt = pickle.load(open(save_dir+load_name+'_dict.sa...
[ "geemguang@gmail.com" ]
geemguang@gmail.com
1bb914908b9a0071556fbc47a8343135d70438a3
da7d1008d925872317bcbe8b5f1e4f00a79d0936
/cloudywatch/manage.py
d1e93db31df166038f0669f71b3b47f7bbf152c7
[]
no_license
gregdingle/cloudywatch
b08b32ca50bb958bc30796c4d1482755c46978b2
009651f6302f7bb12b5cd46bcb7161b278d7dfbb
refs/heads/master
2021-01-01T15:35:53.760805
2013-11-20T12:28:21
2013-11-20T12:28:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
[ "ppr.vitaly@gmail.com" ]
ppr.vitaly@gmail.com
f291c903c72585e9ca8089e497ba10907c373013
67af9dc77608a6cd83fdf219b3b76000634c0634
/pixelcnn/layers.py
dab5d229536d0e0e042a5d70968fb13802ee7c03
[ "Apache-2.0" ]
permissive
kngwyu/pytorch-pixelcnn
7b4d0bb0e8662ce976b5faede41249b94d81e03c
e59585d5d533de77c7b51a8e822da0264f2b56e5
refs/heads/master
2020-06-01T00:23:54.716580
2019-08-12T05:44:29
2019-08-12T05:44:29
190,556,770
1
0
null
null
null
null
UTF-8
Python
false
false
3,522
py
import torch from torch import nn, Tensor from torch.nn import functional as F from torch.nn.utils import weight_norm from typing import Callable, Optional, Tuple from .utils import down_cut, right_cut class ConcatELU(nn.Module): __constants__ = ['alpha'] def __init__(self, alpha: float = 1.) -> None: ...
[ "yuji.kngw.80s.revive@gmail.com" ]
yuji.kngw.80s.revive@gmail.com
329a20b4c7110842b2129cc25616775c00bf8168
d22a2fbb9adb82644c5665242661bad172550552
/venv/ex44.py
b5c74a3b546e9fe734219d94756137000ecbe908
[]
no_license
felipemanfrin/Python-Zero-ao-Zeno
e98ba3e4b974e88801b8bc947f461b125bc665b8
d6d08aa17071f77170bbd105452b0d05586131c8
refs/heads/master
2022-07-29T19:38:41.729178
2020-05-25T01:02:18
2020-05-25T01:02:18
265,356,280
1
0
null
null
null
null
UTF-8
Python
false
false
627
py
preco = float(input('Insira o valor do produto a ser pago : ')) print('''Escolha o metodo de pagamento: [1] A vista ou cheque [2] a vista cartão [3] 2x no cartao [4] 3x ou mais no cartão''') opcao = int(input('Digite a opção : ')) if opcao == 1 : final = preco*0.90 print('O valor a se pagar nesses metodo...
[ "felipemanfrin@gmail.com" ]
felipemanfrin@gmail.com
b1ef8a76cff5ccdd0bd13d20890f8c2df9f25e16
92578e316b0d1b760db85c449898c1560433a4bb
/backend/notes/urls.py
66f4181f4a81f45ec0f6d6b4f4f1882089f05ed7
[]
no_license
turamant/dj_plus_vue
461dc6b7165ab7ecdf8eb3206ca9047b6db6c920
2d7b5ef897b418e5269b7b01c1fd6207ec5be4b8
refs/heads/main
2023-03-29T15:43:49.311175
2021-04-12T11:43:36
2021-04-12T11:43:36
357,166,316
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
from rest_framework import routers from .views import NoteViewSet # Создаем router и регистрируем наш ViewSet router = routers.DefaultRouter() router.register('notes', NoteViewSet) # URLs настраиваются автоматически роутером urlpatterns = router.urls
[ "tur1amant@gmail.com" ]
tur1amant@gmail.com
95bc2c171d57e18811811934b2b5b0cc902e8cc5
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_137/544.py
d93a3ffd436e017136abd200f2f8988eb7da45e9
[]
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
545
py
import cPickle as pickle def main(): d = pickle.load(open('c.pickle', 'rb')) num_of_tests = int(raw_input()) for test_i in range(num_of_tests): n, m, k = map(int, raw_input().split()) ans = d['%s-%s-%s' % (n, m, k)] if k == n * m - 1: ans = 'c' + '*' * (m - 1) + '\n' ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
61ef2940a1d29bb6e311bce2f96ea1678f79606b
f11ecb59dab63af605c6e5f256ee59e00447ecc1
/763-partition-labels.py
f873de4ea39b18121ba64673b1decc40b496d1ef
[]
no_license
floydchenchen/leetcode
626d55f72ec914764385ce82b0f3c57f5a7e9de8
9d9e0c08992ef7dbd9ac517821faa9de17f49b0e
refs/heads/master
2022-10-07T20:33:55.728141
2020-06-08T16:09:17
2020-06-08T16:09:17
269,525,880
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
# 763. Partition Labels # A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one part, # and return a list of integers representing the size of these parts. # Example 1: # Input: S = "ababcbacadefegdehijhklij" # Output: [9,...
[ "chen2918@umn.edu" ]
chen2918@umn.edu
207c5d7f1c7e8039b7aad55a5d63284589af7e80
8ee5dfd87ce637a46c496853f55d32f226b238f8
/backend/Experiments/Data/PosControl/Plotter.py
06270322e2630227c68dd802b20334c0aec05b2d
[]
no_license
cholazzzb/react-parrotar2-swarm
71eb6be8682e00015103af3df69a6cc01f7a919f
dccdfa841184af6ec62910f50c3335b812cd0201
refs/heads/main
2023-06-16T01:24:57.169242
2021-07-08T03:54:08
2021-07-08T03:54:08
354,490,913
0
0
null
2021-07-08T03:54:08
2021-04-04T08:15:37
JavaScript
UTF-8
Python
false
false
1,245
py
import matplotlib.pyplot as plt # from tum_PSO import tum_PSO # from custom_PSO import custom_PSO from custom_PSO_z import custom_PSO_z from custom_PSO_z_lama import custom_PSO_z_lama from fine_tuning import fine_tuning from fine_tuning_disturbance import fine_tuning_disturbance time = fine_tuning_disturbance["time"] ...
[ "nicsphehehe@gmail.com" ]
nicsphehehe@gmail.com
3257ffae5f57a16cff15a802d965f1ae58e0f0e7
c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce
/flask/flaskenv/Lib/site-packages/tensorflow/contrib/graph_editor/subgraph.py
caf690f68dcdece5c40a3526673d99e70d7d5a26
[]
no_license
AhsonAslam/webapi
54cf7466aac4685da1105f9fb84c686e38f92121
1b2bfa4614e7afdc57c9210b0674506ea70b20b5
refs/heads/master
2020-07-27T06:05:36.057953
2019-09-17T06:35:33
2019-09-17T06:35:33
208,895,450
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:a739031b57fa33ef7882c98b7eefeea5d588318fc9ef255db3f17b609ce8653c size 25666
[ "github@cuba12345" ]
github@cuba12345
e04235d8de2b8dbad77d7369cee71f1946da3910
eabc8c12802053683ab0b42d95135c0b777945a1
/rooms/room-h/main.py
09fffc0f9de7cd8371014ddd2af950e79eb386fa
[]
no_license
Hacker0x01/44con-ctf-2019
e569fb3722520411f9928c9b0d5d21d91c2ee8ca
4a86c14d488dd1515615d702942172fa5e7c5fc2
refs/heads/master
2023-08-08T19:34:11.081687
2019-09-13T22:22:30
2019-09-13T22:22:30
208,354,485
18
7
null
2023-07-22T16:09:35
2019-09-13T22:12:05
Python
UTF-8
Python
false
false
1,960
py
from flask import Flask, request import hashlib, json, os, sys from socket import * import sqlite3 def query(sql, commit=False): c = conn.cursor() c.execute(sql.replace('%', '%%')) if commit: conn.commit() else: return c.fetchall() def setup(): global conn conn = sqlite3.connect(':memory:') def sha1(data)...
[ "cody.brocious@gmail.com" ]
cody.brocious@gmail.com
ac5e879ff023cf1256f3cf20aecf9aed14119993
3df1bdc21727f40ef0ee296bf137bf3190ad00ec
/astrodynamics/Rocket_Seminar_Series/projectile_newtonian_gravity.py
5b9b13fb403c9a761d3080689f4c4aae63aefae2
[]
no_license
tin97-bb/Python
c2b30829fd4e14c50963dc4074e87ef06869cebe
3cedc7d5bef2af46b6618026cd7a41e61700ce62
refs/heads/master
2023-07-29T07:06:15.116923
2021-09-13T17:04:48
2021-09-13T17:04:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,204
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat Sep 4 21:56:24 2021 @author: carlos """ ####Import all the modules we need import numpy as np ###numeric python import matplotlib.pyplot as plt ###matlab style plotting import scipy.integrate as sci ##integration toolbox plt.close("all") ##DEFINE SO...
[ "cmontalvo@southalabama.edu" ]
cmontalvo@southalabama.edu
22b4ec30dc144453b9f66f4de4f090bee518ffaf
ecf89d17601ee16ef176a9fc0ce497e4e685cc21
/python/112.py
f74559351f115ee03b2fd2f5a3f7192f843447a5
[]
no_license
kartikeya-shandilya/project-euler
daa984cda1a476a6f29b80d4b86ca03f9292d910
6265db7c5a8fedc3ded627829ce6040e8c8542d4
refs/heads/master
2021-01-21T04:27:36.649729
2020-10-13T00:25:52
2020-10-13T00:25:52
26,404,032
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
#!/usr/bin/python cnt=0 for i in range(1,2500000): j=str(i) tag1="incr" for k in range(0,len(j)-1): if j[k]>j[k+1]: tag1="bouncy" break tag2="decr" for k in range(0,len(j)-1): if j[k]<j[k+1]: tag2="bouncy" break if tag1=="bouncy" and tag2=="bouncy": cnt+=1 # print i,tag1,tag2 if cnt/(1.0*i)>0....
[ "kartikeya.shandilya@gmail.com" ]
kartikeya.shandilya@gmail.com
4d9725de9f5d6415c6a02d66311fb489c305c554
a81a1efe1a93d5af0ef3f6403862a1544befd6cf
/HashTable/387_FirstUniqueCharacterInAString.py
b2a92fa927e8f971aa0b15b6b3070f9234e20fc0
[]
no_license
fishleongxhh/LeetCode
89da4ae3ca1715b1909c350437c0ba79eb2a8349
d0352fecc61396fc460e1350572189b175a13f61
refs/heads/master
2020-04-05T17:14:27.976946
2018-12-16T14:10:54
2018-12-16T14:10:54
157,050,997
1
0
null
null
null
null
UTF-8
Python
false
false
526
py
# -*- coding: utf-8 -*- # Author: Xu Hanhui # 此程序用来求解LeetCode387: First Unique Character in a String问题 def firstUniqChar(s): dic = {} uniq_str = set() for loc, item in enumerate(s): if item in dic: uniq_str.discard(item) else: dic[item] = loc uniq_str.add...
[ "xhh1120132805@163.com" ]
xhh1120132805@163.com
148ee2aa423bec48565132b2a7ea8db0853d712d
be6b8e5f65ab1e86e72d4a70a6bcfe0891458df1
/sigfig.py
3bdf3596edba9f1336625991197baeb64b8616c7
[]
no_license
annayqho/papers
c406185485ef447b4aebf0d37011e79ef4f872fb
527bab334f118e77eeb028ed1a787be3b887724c
refs/heads/master
2021-07-10T05:18:47.134685
2017-10-12T02:38:32
2017-10-12T02:38:32
100,283,607
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
import numpy as np from math import log10, floor def round_sig(x, sig=2): if x == 0: return 0 elif x < 0: return -round(-x, sig-int(floor(log10(-x)))-1) return round(x, sig-int(floor(log10(x)))-1) def ndec(num): dec = str(num).split('.')[-1] return len(dec) def format_val(val, s...
[ "annayqho@gmail.com" ]
annayqho@gmail.com
96a9a0075629c44cfce0d3f9471369f36b35ffd9
238e46a903cf7fac4f83fa8681094bf3c417d22d
/VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/twisted/pair/_version.py
6203753e169cead8711dc820254d774becccc3be
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
baojunli/FastCAE
da1277f90e584084d461590a3699b941d8c4030b
a3f99f6402da564df87fcef30674ce5f44379962
refs/heads/master
2023-02-25T20:25:31.815729
2021-02-01T03:17:33
2021-02-01T03:17:33
268,390,180
1
0
BSD-3-Clause
2020-06-01T00:39:31
2020-06-01T00:39:31
null
UTF-8
Python
false
false
271
py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. # This is an auto-generated file. Do not edit it. """ Provides Twisted version information. """ from twisted.python import versions version = versions.Version('twisted.pair', 14, 0, 0)
[ "l”ibaojunqd@foxmail.com“" ]
l”ibaojunqd@foxmail.com“
232499e5789d32aef85d5d3d8bef8407bdaa9cb7
ae672becf06e084728388e2ca1fb72ca786336d2
/chapter_08/exercise_8_4.py
5c3ca3fe1e715841932ad35f802661267a72ad24
[]
no_license
kexiaojiu/python_based_programming
d9631ba3aa0636d9b01020a7711834ba15d4843c
bd497479037856de6ef5852902e3352afb5c7cc9
refs/heads/master
2018-10-04T22:37:11.908957
2018-08-07T13:54:44
2018-08-07T13:54:44
116,146,067
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
#!/usr/bin/env python3 def make_shirt(size, text='I love Python'): print("The size of the shirt is " + str(size) + " ,and it's text is " + text + "." ) make_shirt('big') make_shirt('middle') make_shirt('small', 'I love China')
[ "kexiaojiu@163.com" ]
kexiaojiu@163.com
7cf38f77e6652d444241e8aa1a1c3c5a15945497
1872b89ba17a08db60d58551f073a6b4e0d31a50
/instrument_server/commands/command_parser.py
ea64dcc7971e724d84b863439d90b5abc4ba6f33
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Terrabits/instrument-server
f6e4c40d8e9835ada150dc0a8245024505d0a7d7
a4950099410ac81b37516aeefcc6072d9865ba4e
refs/heads/master
2022-05-28T01:27:25.051729
2022-04-29T22:53:39
2022-04-29T22:53:39
189,175,077
2
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
from .mixins import RaiseErrorMixin import re class CommandParser(RaiseErrorMixin): def __init__(self, command, args={}): RaiseErrorMixin.__init__(self) self.command = command self.args = args def is_match(self, command_bytes): regex = f'^{self.command}\\s*'.replace('?', ...
[ "nick.lalic@gmail.com" ]
nick.lalic@gmail.com
9d06c4edefa4ba7412c5c85dd29d8babd72b8034
d3750f32f8bc8a961de778f313a547e8636621e3
/docs/conf.py
02524b2634ac9ea5185b817381ebece9804fe68f
[ "BSD-3-Clause" ]
permissive
diamond0411/ndexncipidloader
506e26b9ea8c716fb08dcaf72b138e557ce5b227
cf1519bd7e9ada30e00df56011180a9069e4e967
refs/heads/master
2020-06-13T19:09:19.466283
2019-07-16T16:30:23
2019-07-16T16:30:23
194,761,167
1
1
NOASSERTION
2019-07-02T00:40:05
2019-07-02T00:40:05
null
UTF-8
Python
false
false
4,970
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # ndexncipidloader documentation build configuration file, created by # sphinx-quickstart on Fri Jun 9 13:47:02 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in t...
[ "churas.camera@gmail.com" ]
churas.camera@gmail.com
f12bc2202d1d785c55b97d61b4bdb753af43f43f
1e84a9fec36deaf9a55a2734749ea035f72ac869
/KAKAO BLIND RECRUITMENT/2018/1차/오픈채팅방/다시풀기.py
d45e1623d4e94692ba8b281ad8cadaaccec56d79
[]
no_license
mgh3326/programmers_algorithm
aa3afc91231550e1fec2d72d90e85b140f79d677
b62f08ccccbdcac71e484d508985a5a9ce5f2434
refs/heads/master
2022-08-31T04:19:15.728666
2022-07-31T14:02:26
2022-07-31T14:02:26
201,747,526
0
0
null
2022-07-23T10:19:13
2019-08-11T10:02:15
Python
UTF-8
Python
false
false
965
py
def solution(record): answer = [] user_name_dict = {} saved_list = [] for record_value in record: split = record_value.split() if split[0] == "Enter": user_name_dict[split[1]] = split[2] saved_list.append([split[1], split[0]]) elif split[0] == "Leave": ...
[ "mgh3326@naver.com" ]
mgh3326@naver.com
4985819f4fdae6c3a772431253a034ccb65fd50d
e7be538e812d499fd41e483313c486581ac8995c
/scripts/curate_cerebra_labels.py
2674e048eeed30c7b6f930f5f872efb99271aefc
[ "LicenseRef-scancode-other-permissive" ]
permissive
templateflow/tpl-MNI152NLin2009cSym
7f11bbd4cdc365c7fc1e6158a6df9c3ee4d52b1e
69a5e68d2b276b1e46f701892ac630397f56a741
refs/heads/master
2022-01-24T16:36:35.462848
2022-01-04T19:34:59
2022-01-04T19:34:59
253,858,504
0
1
null
null
null
null
UTF-8
Python
false
false
1,025
py
import pandas as pd data = pd.read_csv('CerebrA_LabelDetails.csv') right = data.copy() left = data.copy() # Add hemisphere column right['hemi'] = 'R' left['hemi'] = 'L' # Reassign headers, drop opposite hemi column right = right.rename(columns={'Mindboggle ID': 'name', 'Label Name': 'label', 'RH Label': 'drop', 'LH Lab...
[ "code@oscaresteban.es" ]
code@oscaresteban.es
aada5ffab5800dd2c9361210ed80a88ae3ae8493
85e08aa6dcc83ecd33512ba453634b4eb8909638
/tools/new-file.py
f75d2681fdf30bd02aa32477c92e635046159e55
[ "MIT" ]
permissive
full-stack-hero/snippet
f6f3f1c6e0a95398a4cfe088821b186512d5940e
9600c856c171d1296a151b4d654af0808980f939
refs/heads/master
2020-04-25T15:39:57.786782
2019-03-05T14:19:01
2019-03-05T14:19:01
172,886,006
0
0
null
null
null
null
UTF-8
Python
false
false
379
py
import os import datetime title = input('Title: ') filename = datetime.datetime.now().strftime("%Y%m%d%H%M-") + title + '.py' url = f'https://github.com/full-stack-hero/snippet/blob/master/snippet/snippets/{filename}' print('Create new file', filename) with open(f'snippets/{filename}', 'w') as f: f.write(f'# :aut...
[ "axel.juraske@short-report.de" ]
axel.juraske@short-report.de
7baad3a25f85335f80301e2a2cf89fbb9dbe4349
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayEcoCityserviceCityserviceEnergySendModel.py
f8a6a8917786fd6a4f675b9c04236c7cbd3cb520
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
2,425
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.EnergyExtRequest import EnergyExtRequest class AlipayEcoCityserviceCityserviceEnergySendModel(object): def __init__(self): self._ext_info = None self._outer_n...
[ "jiandong.jd@antfin.com" ]
jiandong.jd@antfin.com
b2dba4a290d39607a7b51c5620c166530d270fad
22b348a0d10519cb1f1da5e886fdf2d3c167cf5a
/myweb/test/coroutine_/client.py
ce807f0eede3f72de22276beaab46a1d5b077f7d
[]
no_license
liuluyang/openstack_mogan_study
dab0a8f918ffd17e0a747715998e81304672b75b
8624f765da7f5aa0c210f0fa945fc50cf8a67b9e
refs/heads/master
2021-01-19T17:03:15.370323
2018-04-12T09:50:38
2018-04-12T09:50:38
101,040,396
1
1
null
2017-11-01T02:17:31
2017-08-22T08:30:22
Python
UTF-8
Python
false
false
336
py
# -*- coding:utf-8 -*- from socket import * ADDR, PORT = 'localhost', 8001 client = socket(AF_INET,SOCK_STREAM) client.connect((ADDR, PORT)) while 1: cmd = raw_input('>>:').strip() if len(cmd) == 0: continue client.send(cmd) data = client.recv(1024) print data #print('Received', repr(data)) ...
[ "1120773382@qq.com" ]
1120773382@qq.com
dc42d8e89404cf9af6ce1eb141a5c7628715b53b
8195f2c3a3b46a3b01571bcbc33960290fce3f32
/biz/errors.py
6511688a69bf2bd05d4f59a6e320e8e807cc7c69
[]
no_license
adoggie/camel
e391e5544a1602ab43257b255dd6558bcc0ee3b1
24b4e9b397ca68b8d4d21be7c372b8163a6ca678
refs/heads/master
2021-01-18T20:27:55.172148
2017-05-22T14:19:57
2017-05-22T14:19:57
86,969,529
1
0
null
null
null
null
UTF-8
Python
false
false
7,050
py
#coding:utf-8 from camel.fundamental.errors import hash_object,ErrorEntry class ErrorDefs: __ver__ =u'1.0' __BASE__ = 0 SUCC = ErrorEntry(0, u'成功') class ErrorDefsDispatcher: __ver__ = u'1.0' __BASE__ = 10000 OK = ErrorEntry(1000, u'success成功') DB_ERROR = Err...
[ "24509826@qq.com" ]
24509826@qq.com
4b63255fa149486950f043c7f04558b67ca41f7f
0c53c0a5dcd5b4a6e237fb034a9e9f544fdc7d20
/pdkb/planner.py
e1b0c18f8f7b96f634343efd4bab04a60aa3ffcc
[ "MIT" ]
permissive
javiermtorres/pdkb-planning
4b379776ba42ac907c246d21a93e186c54926005
61a96c006b606aa051b2c7c9b5bfc9b6473d2a4d
refs/heads/master
2022-11-08T12:14:06.781734
2020-06-23T01:40:27
2020-06-23T01:40:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,599
py
import os, sys, time, pickle from .actions import * from .problems import * def cleanup(): os.system('rm -f pdkb-domain.pddl') os.system('rm -f pdkb-problem.pddl') os.system('rm -f pdkb-plan.txt') os.system('rm -f pdkb-plan.out') os.system('rm -f pdkb-plan.out.err') os.system('rm -f executio...
[ "christian.muise@gmail.com" ]
christian.muise@gmail.com
bf0ab1c5d71cbb173fe840a0b6c59b8c19cfc5e2
ad0e853db635edc578d58891b90f8e45a72a724f
/doc/source/data/doc_code/batch_formats.py
2099f70e9bb80050091134df790645f849ed25d4
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
ericl/ray
8c93fc713af3b753215d4fe6221278700936e2db
e9a1c6d814fb1a81033809f56695030d651388f5
refs/heads/master
2023-08-31T11:53:23.584855
2023-06-07T21:04:28
2023-06-07T21:04:28
91,077,004
2
4
Apache-2.0
2023-01-11T17:19:10
2017-05-12T09:51:04
Python
UTF-8
Python
false
false
2,059
py
# flake8: noqa # isort: skip_file # fmt: off # __simple_map_function_start__ import ray ds = ray.data.read_csv("example://iris.csv") def map_function(data): return data[data["sepal.length"] < 5] batch = ds.take_batch(10, batch_format="pandas") mapped_batch = map_function(batch) transformed = ds.map_batches(map...
[ "noreply@github.com" ]
ericl.noreply@github.com