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
f8d1fea9546441f77be588dc74e9b5e244b85d87
612d763da9594102993a61cb9337f5f5fd8da15e
/Simple/SimpleNeuroNet_Binary.py
beea5b3545e25e9b9fa94c0ceff35d4680559f23
[]
no_license
sathayas/DeepLearningTestground
484abd623256045a7b5dc5e435acabe8b87415b9
2ad496c73a3be883119702522ffcb217c2b5eb55
refs/heads/master
2020-03-17T12:08:19.293404
2020-01-19T04:09:18
2020-01-19T04:09:18
133,575,858
0
0
null
null
null
null
UTF-8
Python
false
false
2,040
py
import autograd.numpy as np import autograd.numpy.random as npr from autograd import grad import sklearn.metrics import pylab # Generate Dataset examples = 1000 features = 100 X = npr.randn(examples, features) # scalar features Y = (npr.randn(examples)>0).astype(int) # binary labels D = (X, Y) # Specify the networ...
[ "hayasaka@utexas.edu" ]
hayasaka@utexas.edu
90ca2e895d9d77031144a857d40d49e108401fa4
37c243e2f0aab70cbf38013d1d91bfc3a83f7972
/pp7TeV/HeavyIonsAnalysis/JetAnalysis/python/jets/akPu6PFJetSequence_pp_jec_cff.py
d3ab48c908bd41a4600658e58932bbd4da9d71df
[]
no_license
maoyx/CMSWork
82f37256833cbe4c60cb8df0b4eb68ceb12b65e7
501456f3f3e0f11e2f628b40e4d91e29668766d5
refs/heads/master
2021-01-01T18:47:55.157534
2015-03-12T03:47:15
2015-03-12T03:47:15
10,951,799
0
0
null
null
null
null
UTF-8
Python
false
false
4,497
py
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import * from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * akPu6PFmatch = patJetGenJetMatch.clone( src = cms.InputTag("akPu6PFJets"), matched = cms.InputTag("ak6HiGenJets") ) akPu6PFparton = p...
[ "yaxian.mao@cern.ch" ]
yaxian.mao@cern.ch
95fc4ecbd21d1eb95f4455306dc5dbf5f3b81498
fb5c5d50d87a6861393d31911b9fae39bdc3cc62
/Scripts/sims4communitylib/dialogs/custom_dialogs/picker_dialogs/common_ui_object_category_picker.py
406e9c564ab5c122dee6554869bee97de57477a2
[ "CC-BY-4.0" ]
permissive
ColonolNutty/Sims4CommunityLibrary
ee26126375f2f59e5567b72f6eb4fe9737a61df3
58e7beb30b9c818b294d35abd2436a0192cd3e82
refs/heads/master
2023-08-31T06:04:09.223005
2023-08-22T19:57:42
2023-08-22T19:57:42
205,197,959
183
38
null
2023-05-28T16:17:53
2019-08-29T15:48:35
Python
UTF-8
Python
false
false
2,435
py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from distributor.rollback import ProtocolBufferRollback fro...
[ "ColonolNutty@hotmail.com" ]
ColonolNutty@hotmail.com
942a63ed2268cec19d5f3a0790d7570a508c5463
1bdb0da31d14102ca03ee2df44f0ec522b0701a4
/EmiliaRomagna/EmiliAmbiente/5-LabelsPublishing.py
9ecbca232ba7c06cfe066148d873a8d4ffcce2a6
[]
no_license
figuriamoci/Acqua
dc073d90c3c5e5899b22005685847916de1dfd95
aef22fcd0c80c92441e0e3df2468d7a2f23a848a
refs/heads/master
2020-12-15T04:00:26.855139
2020-06-08T21:17:55
2020-06-08T21:17:55
234,986,179
1
0
null
null
null
null
UTF-8
Python
false
false
303
py
import acqua.labelCollection as lc import logging import acqua.aqueduct as aq gestore = "EmiliAmbiente" aq.setEnv('EmiliaRomagna//'+gestore) geoJsonFile = gestore+'.geojson' ll = lc.removeEtichette(gestore) ll = lc.to_mongoDBInsertMany(geoJsonFile) logging.info("Safe %s record(s) to MongoDB.",len(ll))
[ "an.fantini@gmail.com" ]
an.fantini@gmail.com
67e82f1a3eced602d9fbdf7d700faba6612cfb3e
76799ea50d7b0b9cf8dc38f52e2516b0684fa010
/py2win/testdata/sampleproject/setup.py
679189dc9682ffd2832e8b5b456177fd6a753b5e
[ "MIT" ]
permissive
trollfred/py2win
67fc6cc78e5453c46258aff6ca28b1b91b5bd8ea
82158e7f5530b65adfc7b3d434b037c592a5913f
refs/heads/master
2020-07-01T17:32:49.746098
2019-11-03T16:17:00
2019-11-03T16:17:00
201,240,871
0
0
MIT
2019-08-08T11:06:14
2019-08-08T11:06:13
null
UTF-8
Python
false
false
1,606
py
"""A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sampleproject """ from setuptools import setup, find_packages from codecs import open from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README f...
[ "philippe.pinard@gmail.com" ]
philippe.pinard@gmail.com
4dedca42a28c6d0fdbb66223664cf42233f210a5
9099ed0407521ac40b88f3b92872307f66c57bf9
/codes/contest/topcoder/SRM 734/TheSquareCityDiv2.py
f71d4afa51b229fa8ca462816c4f94ee8fd89523
[]
no_license
jiluhu/dirtysalt.github.io
0cea3f52d2c4adf2bbf5c23b74f4cb1070025816
c026f2969c784827fac702b34b07a9268b70b62a
refs/heads/master
2020-08-31T09:32:05.273168
2019-10-29T01:53:45
2019-10-29T01:53:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,217
py
# -*- coding: utf-8 -*- import collections class TheSquareCityDiv2: def find(self, r, t): n = int(round(len(t) ** 0.5)) moves = [] for i in range(n): for j in range(n): t0 = t[i * n + j] move = None warmest = -(1 << 30) ...
[ "dirtysalt1987@gmail.com" ]
dirtysalt1987@gmail.com
05496927557001dd893bc06afe133f220458c9de
661d3fb1f4880ff6efb7638bf066f63397c26ef0
/Final Implementation/client.py
8bc748c34af443547c201831f4ace27e17d1538e
[]
no_license
jamesfallon99/CA314
6048020bccf8f119b9eb847a8b610aef090130b0
fb78429fe206ae2fd6cd413e4b119e84e1bae1ea
refs/heads/main
2023-07-05T11:03:13.470699
2021-08-24T21:31:42
2021-08-24T21:31:42
399,609,567
0
0
null
null
null
null
UTF-8
Python
false
false
6,126
py
from game import Board, Tile from player import Player import threading import socket, pickle import copy import json from json import JSONEncoder # NOTE: in our presentation we can mention that the changes we have made i.e: adding threading was necessary in order to making it run locally for the demo. # NOTE: because...
[ "noreply@github.com" ]
jamesfallon99.noreply@github.com
3432242cb6953a1399e20569611c0388973804c9
268b22da698310c1fd0471f94d61e02782cbaf37
/Week6/week6work/test/users.py
0107e56820ae81040fc0462445cadda5f71ba73f
[]
no_license
jayquake/DI-Excersises
0c1147863753fb29a6f688bd73bdd9acc047c180
02cb0ee9baed7fd7736273e8fc68317ba4356e39
refs/heads/master
2020-12-10T11:38:12.225341
2020-05-06T08:34:35
2020-05-06T08:34:35
233,582,928
0
0
null
null
null
null
UTF-8
Python
false
false
749
py
import json def create_database(dst_file='my_file.json'): data = [ { 'username': 'Jason', 'password': 'horse', 'status': True }, { 'username': 'Mac', 'password': 'candy' , 'status': False }, { ...
[ "jayquake@gmail.com" ]
jayquake@gmail.com
5427ff9cd2a1e264c5d688fda77bdd78a405547b
711756b796d68035dc6a39060515200d1d37a274
/output_cog/optimized_16488.py
c2ba652af47fd94690bf6a2c85b6db77daeba442
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
10,832
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
[ "batxes@gmail.com" ]
batxes@gmail.com
db5193711d8806da6294980ffafb537e5461f000
fec622bc34957dd4d99f1ef0f23608eeb40ed609
/internal/notes/builtin-SAVE/packages/xcompmgr/package.py
dc8aa398b1d218fc22d5bea149cd1d6e2eec658c
[]
no_license
scottkwarren/hpctest
4d5ff18d00c5eb9b7da481c9aa0824aa7082062f
a8bb99b5f601a5d088ae56ab9886ab8079c081ba
refs/heads/master
2022-09-07T19:36:18.544795
2022-08-18T20:26:42
2022-08-18T20:26:42
100,518,800
2
2
null
null
null
null
UTF-8
Python
false
false
1,908
py
############################################################################## # Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
[ "scott@rice.edu" ]
scott@rice.edu
36e40d84e3ec98b642358afd8af1a9a989c1fbdf
565409a77f506cf834abe5ed2bdd83d221ab0c2d
/web_soluciones/migrations/0009_itemsolucionimagen.py
9c13069e4d939910896769095ec06d1ab933fc01
[]
no_license
odecsarrollo/04_odeco_web
9f3c840fb03afb9bf25792a78829b611e1d67d2a
c87593e24be23bb6ef759a0eafac95e5a0649fe4
refs/heads/master
2023-01-22T23:46:17.209001
2022-04-13T03:40:38
2022-04-13T03:40:38
189,261,683
0
0
null
2022-12-27T16:44:24
2019-05-29T16:29:29
JavaScript
UTF-8
Python
false
false
1,114
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-26 16:55 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import imagekit.models.fields import web_soluciones.models class Migration(migrations.Migration): dependencies = [ ('...
[ "fabio.garcia.sanchez@gmail.com" ]
fabio.garcia.sanchez@gmail.com
6c5ceced731c19353e60b513d1631f8c919e755a
40074020ae89350cbb012212fa1f66549167fb13
/ch1_image_encryption_image.py
a276c338bfe85fef09d9d7755c2589da8edfdf5b
[]
no_license
jasonbrackman/classic_computer_science_problems
8009acb8111118eb88b4affc3de153853ed0f81d
fee4e1f9796d9029a2cfd2253cfad863d7beb290
refs/heads/master
2020-05-25T14:46:26.711564
2019-05-27T02:27:53
2019-05-27T02:27:53
187,853,790
0
0
null
null
null
null
UTF-8
Python
false
false
1,444
py
import base64 from PIL import Image from ch1_encryption import encrypt, decrypt def introspection(obj): for attribute in dir(obj): if attribute.startswith("_") is False: s = getattr(obj, attribute) t = type(s) print(attribute, t, s) def load_image_as_string(path): ...
[ "brackman@gmail.com" ]
brackman@gmail.com
a4ac2a1811dd7146877d5c706339874779260aa5
dc3b25768cdc6c0c31a294a40796b51b185bc5ee
/BIP/Bayes/lhs.py
8f40be560db3e2383c50a99048f012314340920d
[]
no_license
fccoelho/bayesian-inference
5fa32936422aea8afca8d89272928e7f1aa0f74b
c274f398ea5dad760b7783f3eb1d343dacc6e591
refs/heads/master
2021-01-23T19:41:30.112936
2020-07-26T19:19:59
2020-07-26T19:19:59
32,230,235
6
3
null
2015-07-07T12:50:09
2015-03-14T20:19:26
HTML
UTF-8
Python
false
false
6,475
py
# !/usr/bin/python # -*- coding:utf-8 -*- # ----------------------------------------------------------------------------- # Name: lhs.py # Project: Bayesian-Inference # Purpose: # # Author: Flávio Codeço Coelho<fccoelho@gmail.com> # # Created: 2008-11-26 # Copyright: (c) 2008 by the Author # Lic...
[ "fccoelho@gmail.com" ]
fccoelho@gmail.com
bb932d4a65358821de6831577fc352f0bf812986
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/316/78467/submittedfiles/testes.py
5fe8a3fc8753623af659b42b84c7c6f583922ff6
[]
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
88
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO a=int(input("qual a sua altura em metros?"))
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
dfea2d32f870bfc8e2edd99da132c2ff2f27ed08
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
/pkgs/pyopenssl-0.15.1-py27_2/lib/python2.7/site-packages/OpenSSL/rand.py
3adf69369a4a58b01926fe58b7e3bf322ddaedb9
[ "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
4,528
py
""" PRNG management routines, thin wrappers. See the file RATIONALE for a short explanation of why this module was written. """ from functools import partial from six import integer_types as _integer_types from OpenSSL._util import ( ffi as _ffi, lib as _lib, exception_from_error_queue as _exception_fro...
[ "wgyumg@mgail.com" ]
wgyumg@mgail.com
b17cfdd4845f8a9f7a97c78226a985f349aa6873
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_118/ch40_2020_04_06_20_39_17_175977.py
7aa703ae260935ad312f4b2d6475a51ee8d6f2d0
[]
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
103
py
def soma_valores(lista): lista=[] for i in lista: lista.append(i) return lista
[ "you@example.com" ]
you@example.com
6034e2a2decc71a88d32f71f2ab803e15de3f3c5
62e5a238f0b4c22bbeecb59f3ad2c96b92da2ae8
/strings/stripping_names.py
493c9cd1d9cfd8b18317ab6d415f2021ab8b9fe9
[]
no_license
MrBrunotte/python-crash-course-notes
f57bd87a8f891e46565a10c45a82ddb4a99f1dcf
c7957d059fa1cbc5f3d9852bd6137311e6c1c14a
refs/heads/master
2022-11-29T11:24:51.786457
2020-08-03T21:11:33
2020-08-03T21:11:33
281,511,877
0
0
null
null
null
null
UTF-8
Python
false
false
102
py
name = ' stefan ' print(name) print(name.lstrip()) print(name) print(name.strip()) print(name)
[ "mrbrunotte@gmail.com" ]
mrbrunotte@gmail.com
c15621eb6087d07b6fdc7af9d27ff60cd29a03e5
a8289cb7273245e7ec1e6079c7f266db4d38c03f
/Django_Attendance_mongo/mongos/migrations/0004_listentry.py
5047c29886d29cadce0fc9b56b4c4e47af18ea51
[]
no_license
palmarytech/Python_Snippet
6acbd572d939bc9d5d765800f35a0204bc044708
41b4ebe15509d166c82edd23b713a1f3bf0458c5
refs/heads/master
2022-10-06T22:51:00.469383
2020-03-13T08:32:11
2020-03-13T08:32:11
272,350,189
1
0
null
2020-06-15T05:30:44
2020-06-15T05:30:44
null
UTF-8
Python
false
false
600
py
# Generated by Django 2.1.3 on 2018-12-10 07:13 from django.db import migrations, models import djongo.models.fields class Migration(migrations.Migration): dependencies = [ ('mongos', '0003_contact'), ] operations = [ migrations.CreateModel( name='ListEntry', fie...
[ "leamon.lee13@gmail.com" ]
leamon.lee13@gmail.com
481e1c44102267c893fdaa4e3adb75a0817ecad1
43f3b7e4a5b7a1210ffa72c5a855d7542d68290d
/Results/Python/Series/20.py
06a2816df4f06bbe10f7f611c865493301a6582a
[]
no_license
bar2104y/Abramyan_1000_tasks
38e86e119245db4bac0483583cc16d8793d5689c
e0bf9f5e73d90b8eca3fe5ba7913ed12f18d989a
refs/heads/master
2021-06-05T18:05:09.788453
2020-06-30T19:52:31
2020-06-30T19:52:31
150,898,700
5
2
null
2018-10-02T17:16:28
2018-09-29T20:01:33
Python
UTF-8
Python
false
false
206
py
n = int(input("N: ")) a = int(input()) k = 0 m = [] for i in range(1, n): tmp = int(input()) if a < tmp: m.append(a) k += 1 a = tmp print("K:", k) for tmp in m: print(tmp)
[ "bar2104y@yandex.ru" ]
bar2104y@yandex.ru
74d3e5746f18ab0ddc2199e6b991a399e16ae4e0
6bce631b869a8717eed29eae186688a7fdb7f5c8
/venv/Lib/site-packages/test/test_municipality_financial.py
c547f63265265c80b1143a8fdf6dbd8c2d205aa5
[]
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
1,374
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
2c86d8433b2281fa239c52a7f91f0908b32756d8
759f52976ad2cd9236da561ca254e11e08003487
/part7/ex45/v2-replace-config/replacement_matcher.py
ff35c60a384c597782c1732e5777c6ea8757cb0e
[]
no_license
mbaeumer/fiftyseven
57b571c3e09640a2ab0ed41e5d06643c12b48001
d79b603d5b37bf1f4127d9253f8526ea3897dc08
refs/heads/master
2020-06-10T20:52:25.311992
2017-11-15T18:28:38
2017-11-15T18:28:38
75,877,462
0
0
null
null
null
null
UTF-8
Python
false
false
195
py
#!/usr/bin/python class Replacement: def __init__(self, to_replace, replaced_by, occurence): self.to_replace = to_replace self.replaced_by = replaced_by self.occurence = occurence
[ "martin.baeumer@gmail.com" ]
martin.baeumer@gmail.com
3bc809c70b62cdfeff7724102903e37193402733
2d923980f8c3a5d450cd2435dcb96fff27e407bf
/unittests/test_search.py
62c0e1d5efb91437da88b333d1dbbd806866b579
[]
no_license
SHAKOTN/songs_service
2f0cc9bfdee5138042ea82477ec0fa40e8a4c2f7
be0a5875ee6106b35966daef4337d56ec6cf2f10
refs/heads/master
2021-06-24T00:27:58.876953
2017-08-26T13:45:25
2017-08-26T13:45:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,878
py
import json from unittest import TestCase from app import app, mongo from bson import ObjectId class TestSearch(TestCase): def setUp(self): self.app = app.test_client() with app.app_context(): self.songs = mongo.db.songs self.song_id = None def test_search(self): ...
[ "jadecoresky@gmail.com" ]
jadecoresky@gmail.com
521615db251668aff2124d314c0e6e40af1e94cb
04e5b6df2ee3bcfb7005d8ec91aab8e380333ac4
/Lib/objc/_WebCore.py
152496dd1dfac3e08030c3233439e39cab19406a
[ "MIT" ]
permissive
ColdGrub1384/Pyto
64e2a593957fd640907f0e4698d430ea7754a73e
7557485a733dd7e17ba0366b92794931bdb39975
refs/heads/main
2023-08-01T03:48:35.694832
2022-07-20T14:38:45
2022-07-20T14:38:45
148,944,721
884
157
MIT
2023-02-26T21:34:04
2018-09-15T22:29:07
C
UTF-8
Python
false
false
6,080
py
""" Classes from the 'WebCore' framework. """ try: from rubicon.objc import ObjCClass except ValueError: def ObjCClass(name): return None def _Class(name): try: return ObjCClass(name) except NameError: return None WebVideoFullscreenController = _Class("WebVideoFullscreenCon...
[ "adrilabbelol@gmail.com" ]
adrilabbelol@gmail.com
dd42d3085377f8cc1ae75a67ff9d0dd9b8e968a9
5b711d9d1c71eb8a7c253a17b2a7f319163d2fdc
/tests/providers/amazon/aws/operators/test_emr_containers.py
3a7dd400d8fef5fa90ab2fa896a6fb1d7ba56364
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
waleedsamy/airflow
8289465af0ef8199bf82e0696115bb5f83f9b667
b19ccf8ead027d9eaf53b33305be5873f2711699
refs/heads/main
2023-03-17T06:29:20.695168
2022-08-29T16:59:13
2022-08-29T16:59:13
251,581,666
0
0
Apache-2.0
2020-03-31T11:21:23
2020-03-31T11:21:22
null
UTF-8
Python
false
false
7,407
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "noreply@github.com" ]
waleedsamy.noreply@github.com
288a820b0ef15cd603354387b1bf9118f4bbac0c
7a6fd34ad06e73a8ef4c1f77df344b79fc3125a8
/zeus/datasets/common/cityscapes.py
d15c14a688e58244905b9fbed1b117da01c8f46d
[ "MIT" ]
permissive
lulilulilalala/vega
3e105b499f921f07176f0230afdbd6a45209c242
977054e12dd3bc1c96bbe35f18d5db4bc82d0522
refs/heads/master
2023-05-14T12:59:35.125859
2021-06-07T12:27:16
2021-06-07T12:27:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,609
py
# -*- coding: utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the...
[ "zhangjiajin@huawei.com" ]
zhangjiajin@huawei.com
940ebcb6548fcf7493b3b0290cbd312e45cf65fd
ac6f3ab88c67b09e187c92652e29fabd5bf5ffd5
/code/15_solution.py
0d5e9f19093d8753b86315eb89915727f382747f
[]
no_license
YanjiaSun/leetcode-3
f3c87ef6961220c39d48094ef65db921f34d070f
59d323161dba8d250d6dd7f31c40731845356f21
refs/heads/master
2022-12-05T17:15:55.601506
2020-08-03T11:38:39
2020-08-03T11:38:39
284,863,415
1
0
null
2020-08-04T03:05:05
2020-08-04T03:05:04
null
UTF-8
Python
false
false
920
py
class Solution: def threeSum(self, nums: List[int]) -> List[List[int]]: if not nums or len(nums) < 3: return [] n = len(nums) nums.sort() # O(NlogN) triplets = [] def find_two_sum(j, k, target): while j < k: b, c = nums[j], nums[k] ...
[ "ryanzjlib@gmail.com" ]
ryanzjlib@gmail.com
6c9f386ce93fb1dc4fc4c65979aa9eb7fa14a8e5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03251/s200090667.py
58f7f34828a49a6e5e378cbfc2fff95c05950530
[]
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
139
py
n,m,X,Y=map(int,input().split()) x=max(X,max(map(int,input().split()))) y=min(Y,min(map(int,input().split()))) print(["War","No War"][x<y])
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4f589e682dfc192a5f76f0736435484407adf7b0
6081557aa021c9e3080e2010b4396154c6a15fd9
/app/cli.py
cd3c06b2d883d3c1352ded88f49b6b7e0bf3e304
[]
no_license
boberstarosta/flask-tutorial
7dfe700db143bb003a3a0c934751c78cf623815b
10dcacc4c0dcbf6a1607dc0ae96ecb5cbb45423f
refs/heads/master
2022-12-11T09:24:43.123961
2018-11-25T11:23:12
2018-11-25T11:23:12
158,431,045
0
0
null
2022-12-08T01:18:40
2018-11-20T18:01:42
Python
UTF-8
Python
false
false
1,177
py
import os import click def register(app): @app.cli.group() def translate(): """Translation and localization commands.""" pass @translate.command() def update(): """Update all languages.""" if os.system('pybabel extract -F babel.cfg -k _l -o messages.pot .'): ...
[ "boberstarosta@gmail.com" ]
boberstarosta@gmail.com
89ac6f3943f40a5c1a885e3e939a3a50779f3310
566ac3f150d5cec30e0926f4c369296f54b93503
/src/contaminate.py
640f9403909b876426a4ee6f7a22690699b56646
[ "MIT" ]
permissive
mehdirezaie/SYSNet
1e325bbedbe3e69b315028afd22a351bd2ee6d01
8da75f54177e460e6e446bfc2207dd82a76ac4cc
refs/heads/master
2021-11-30T04:48:51.118259
2021-11-18T16:44:56
2021-11-18T16:44:56
171,679,858
6
1
MIT
2019-08-16T20:56:31
2019-02-20T13:38:55
Jupyter Notebook
UTF-8
Python
false
false
3,388
py
import fitsio as ft import numpy as np import healpy as hp import os import sys class mock(object): def __init__(self, featsfile, paramsfile, func='lin', sf=1207432.7901): # read inputs feats = ft.read(featsfile) params = np.load(paramsfile).item() # attrs self...
[ "medirz90@icloud.com" ]
medirz90@icloud.com
16e67ef722cc276cdfc9de755d0783c8fa00e985
881a30f13880944d903fb304af0e4bdebb9bd9fb
/RL/algorithms/safe_sac.py
66667ae9133c6e465c4146271e7379122abef6d2
[]
no_license
bhatiaabhinav/RL
5d32b4502e1f15a9d6b8b1ba5627b7c0dd1b8202
2bbfa05d5b56b1ea65b65f27b80c243d0888e6d8
refs/heads/master
2022-12-11T04:45:18.832027
2021-10-13T00:22:15
2021-10-13T00:22:15
152,107,235
1
0
null
2022-12-08T06:59:28
2018-10-08T15:55:28
Python
UTF-8
Python
false
false
6,000
py
import gym import safety_gym # noqa import RL import RL.envs from RL.agents import BasicStatsRecordingAgent from RL.agents import (EnvRenderingAgent, ExperienceBufferAgent, # noqa ForceExploitControlAgent, MatplotlibPlotAgent, ModelLoaderSaverAgent, ParamsCopyAgent, Pygl...
[ "bhatiaabhinav93@gmail.com" ]
bhatiaabhinav93@gmail.com
1e977918ab91ec15b37a6d3250f6f39b55d3b970
d3cb2f94c30a21d766feb408d626f20d7b574762
/proxy/proxy.py
da4111a674af7891a1ab2b56d0b1e85e6d562fd8
[]
no_license
sonlia/rqspider
3942404f7336ad24b0858f58a9b52c1e2d3648ab
e5ae5f1ff5bfa0cf51d7d3c90bcf81fda399945d
refs/heads/master
2022-12-30T19:41:24.225104
2020-10-22T04:03:19
2020-10-22T04:03:19
302,540,374
0
0
null
null
null
null
UTF-8
Python
false
false
5,431
py
#-*- coding:utf-8 -*- #!/usr/bin/python from __future__ import absolute_import import sys from getproxy import GetProxy import datetime ,requests import time import uuid import hashlib import random ,numpy import random from tinydb import TinyDB, Query from utils.log import log as _log log = _log(__name__) class grab_p...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
2de32e8e7c167a0f3bd6c91965e31cfc2d4d382a
19af2e1dfe389afc71e26bebaadf7008251e04e2
/android_test/tensorflow-master/tensorflow/python/keras/layers/recurrent_v2.py
903de3d1a0916b6fcb0df43e09de0b58d66845c1
[ "Apache-2.0" ]
permissive
simi48/Ef-If_Jassen
6c4975216bb4ae4514fe94a8395a5da5c8e8fb2d
6076839492bff591cf9b457e949999e9167903e6
refs/heads/master
2022-10-15T15:36:35.023506
2020-12-02T10:38:13
2020-12-02T10:38:13
173,759,247
4
0
Apache-2.0
2022-10-04T23:51:35
2019-03-04T14:22:28
PureBasic
UTF-8
Python
false
false
50,842
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...
[ "TheSiebi@users.noreply.github.com" ]
TheSiebi@users.noreply.github.com
51140ea0cc978e5ed4e0f1464b9a9073bf1dce48
7789f4c84a250ce45accdecbf73630519bfc4aa1
/devel/lib/python2.7/dist-packages/rail_manipulation_msgs/msg/_GripperActionResult.py
1a365d9f54227a9deb6cbfccf4f3ecdbd87f872a
[]
no_license
JerryHu1994/NRI-authoring-Backend
33610913692c3ba8ac2e7fd47b735d193771526c
d130201224deb8696ae4b2dbc451c251693040d3
refs/heads/master
2021-09-15T23:15:01.061392
2018-06-12T15:56:40
2018-06-12T15:56:40
113,100,927
0
2
null
2018-06-12T15:56:41
2017-12-04T22:11:56
HTML
UTF-8
Python
false
false
12,554
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from rail_manipulation_msgs/GripperActionResult.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import rail_manipulation_msgs.msg import genpy import actionlib_msgs.msg im...
[ "hjr01211@gmail.com" ]
hjr01211@gmail.com
532d9ca34f1c0b575e1c9c921622da06dc7220ff
3c40c7ca9ab7e59b8bf34a91acffa5850b9b797c
/dotfiles/bash/setup.py
c6a9474c4f1de1fcae51fd3b7befbe054d0b7ca9
[]
no_license
dkudrow/dotfiles
df0737c0ad31c1db5fd380e3241548b07ff324db
89285b9a65e0ea52a9cc20254a7a635500eb643a
refs/heads/master
2021-01-10T20:26:30.225595
2018-04-09T22:40:56
2018-04-09T22:40:56
20,342,657
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
# dotfiles/bash/setup.py from dotfiles.common import * import os def setup(params, cfgdir): for f in ['.bashrc', '.bash_aliases']: src = os.path.join(cfgdir, f) dst = os.path.join(HOME, f) ln(src, dst, params) touch(os.path.join(HOME, '.bashrc.local'), params)
[ "you@example.com" ]
you@example.com
6c95a7bd09b068813b9c0a5829973bb8d0395ab0
623f977c05e559451b5131c225388d99737fca5b
/clustering.py
4cb4f7826d1068fc6301b83fdbf6be644b973325
[]
no_license
kmgr10/clustering
e874066ef9fc6204b1080bf9c1d6d31018d9567c
8bf2a588dc2c210f280f5deecdee0920bc41c70a
refs/heads/master
2022-11-29T14:32:04.342212
2020-08-16T16:48:30
2020-08-16T16:48:30
284,081,447
1
0
null
null
null
null
UTF-8
Python
false
false
507
py
from sklearn.cluster import KMeans from sklearn import preprocessing from sklearn.cluster import AgglomerativeClustering import numpy as np def generate_cluster_labels(data, clus_method, clus_n): Scaling = preprocessing.MinMaxScaler().fit(data) X_scaled = Scaling.transform(data) if clus_method == 'K-means': clu...
[ "me@me.com" ]
me@me.com
8771ba438ade98f28b96a9fb88b3121bc0f9cbac
c09e5bb87702a0828b0ec1c2eb221566529f2432
/chap14_exe.py
deff1d79024b0f13c756c294c70cedf8042f2d7b
[]
no_license
anubhav-shukla/Learnpyhton
396a1c8748c6cf640726e3609f7399b161c00858
7b53b30a0a6829d480f1d3c7d5a914de1c57fa73
refs/heads/master
2023-07-05T03:04:22.117259
2021-09-01T12:46:01
2021-09-01T12:46:01
346,263,181
0
0
null
2021-09-01T12:46:02
2021-03-10T07:02:27
Python
UTF-8
Python
false
false
575
py
# exercise from functools import wraps import time def calculate_time(func): @wraps(func) def wrap(*args,**kwargs): print(f'Executing ......{func.__name__}') t1=time.time() func(*args , **kwargs) returned=func(*args,**kwargs) t2=time.time() total=t2-t1 print (f'T...
[ "noreply@github.com" ]
anubhav-shukla.noreply@github.com
b4e8562b690e03fd42d7b8893605994cdf54a829
95d9f80d130e9ce030f24f4a2d5a5dc8f3b9140d
/sp/migrations/0004_auto_20200401_1328.py
4cdb3298ee86441b8d28ba51f9717900e8b0a548
[ "BSD-3-Clause" ]
permissive
mnasiri/django-saml-sp
b75cb225cdc0db11571d312d9ab54e10560118d8
8e112faecc7a5866a44a95b16c6f694fce5cecd1
refs/heads/master
2022-04-12T15:37:13.631042
2020-04-01T13:33:40
2020-04-01T13:33:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
# Generated by Django 3.0.4 on 2020-04-01 13:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("sp", "0003_auto_20200331_1934"), ] operations = [ migrations.AlterField( model_name="idp", name="authenticate_method", field=mod...
[ "dcwatson@gmail.com" ]
dcwatson@gmail.com
5e04be56a5ddda1b05ae34fe3d07ad9b5e3e211f
a2006f6aae3c36b1b9fe40b7b47941b515b49d5c
/llin/urls.py
d8829c7c0660cb42b81f327e88f7734d8e210d42
[]
no_license
hakimkal/llin
f32832e599752edc1e7ff4f23d10f94bc11e47f3
56b5f449375153b6ec786994d564a721339a2b26
refs/heads/master
2016-09-09T21:06:58.224071
2014-12-15T10:19:39
2014-12-15T10:19:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
from django.conf.urls import patterns, include, url from django.contrib import admin from states import views as state_view from django.contrib.auth.views import login,logout admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'llin.views.home', name='home'), # url(r'^blog/', include(...
[ "hakimkal@gmail.com" ]
hakimkal@gmail.com
760e1b121ec13bc07ed91ee24f10171fa98d51f6
946a9dcf4e644f0d3f806f016a23ae8d96095082
/LeetCode/Two Pointers/763_PartitionLabels.py
e9a910bd636450f8af37e9418ab39efb51dc76ad
[]
no_license
HzCeee/Algorithms
3dea898f071f4103ca3eb038f63b01ba4ba95383
e05f29071d0badd081535e773f43ebc303aa12c4
refs/heads/master
2018-10-20T21:54:37.154631
2018-10-11T20:46:34
2018-10-11T20:46:34
116,142,856
0
0
null
null
null
null
UTF-8
Python
false
false
557
py
def partitionLabels(self, S): """ :type S: str :rtype: List[int] """ # leftPtr and righrPtr denotes the start and end of the current partition # curPtr denotes the current checked index lastOccurence = {char: curPtr for curPtr, char in enumerate(S)} rightPtr = leftPtr = 0 ...
[ "huangzixihzx@gmail.com" ]
huangzixihzx@gmail.com
8d32d9b895aea36e66f915ee29f009e5d94b6c93
8f90e2899978bb81d283fe76a5b287c0e42bd7ea
/oscrypto/_win/_advapi32_ctypes.py
36690d1f8657a198f929cf66a1d26bb08d88d91a
[ "MIT" ]
permissive
haowanxing/oscrypto
24c98f9858f11feb55540e66224239c099abb756
14b5bd07dfc0e3fe7eee1048f56d5f1af53aee51
refs/heads/master
2021-01-17T19:45:53.095897
2016-08-29T17:03:17
2016-08-29T17:06:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,466
py
# coding: utf-8 from __future__ import unicode_literals, division, absolute_import, print_function import ctypes from ctypes import windll, wintypes, POINTER, Structure, c_void_p, c_char_p, c_uint from ctypes.wintypes import BOOL, DWORD from .._ffi import FFIEngineError, LibraryNotFoundError from .._types import str_...
[ "will@wbond.net" ]
will@wbond.net
90126f6e51fa927ffe22c0d1c6e12a7c5d277fe5
0993569fced8fcdc9222f15563cca145e48fe297
/appengine/swarming/ts_mon_metrics.py
718ebaef49d91660f27d4789251e8997aa3655cb
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
DalavanCloud/luci-py
0cc112f4a5acb4f2aea115b1859c90623848ae4c
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
refs/heads/master
2020-03-25T16:03:52.327328
2018-06-01T23:29:36
2018-06-01T23:42:56
143,913,142
0
1
null
2018-08-07T18:38:16
2018-08-07T18:38:15
null
UTF-8
Python
false
false
17,913
py
# Copyright 2016 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Timeseries metrics.""" from collections import defaultdict import datetime import json import logging from google.appengine.datastore.datasto...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
b80f05965f60e88b838d72c5eef3000d3ee55c51
1925c535d439d2d47e27ace779f08be0b2a75750
/leetcode/minimum_time_to_collect_all_apples_in_a_tree.py
9a06ab10892810967e0fae8964db764325709cde
[]
no_license
arthurDz/algorithm-studies
ee77d716041671c4b8bb757d8d96f3d10b6589f7
1e4d23dd0c40df34f58d71c7ca3e6491be732075
refs/heads/master
2023-04-27T12:17:06.209278
2021-04-30T20:16:18
2021-04-30T20:16:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,944
py
# Given an undirected tree consisting of n vertices numbered from 0 to n-1, which has some apples in their vertices. You spend 1 second to walk over one edge of the tree. Return the minimum time in seconds you have to spend in order to collect all apples in the tree starting at vertex 0 and coming back to this vertex. ...
[ "yunfan.yang@minerva.kgi.edu" ]
yunfan.yang@minerva.kgi.edu
9a6f34d658bd34bb557f9e550a143540abcf2add
f77d97840915ff2318c8f3841096019337c58689
/_admin/migrations/env.py
b7f89639043932bb7f95a869797ac2f2fc201484
[]
no_license
rrader/events-service
f35d7e237e0ef5e3598b90878713539960153895
5933a6ba83aacb63832dd6efa806409bb37812aa
refs/heads/master
2021-01-10T04:25:45.875103
2015-11-20T16:21:32
2015-11-20T16:21:32
44,528,882
4
1
null
2015-11-01T19:28:47
2015-10-19T11:02:48
Python
UTF-8
Python
false
false
2,541
py
from alembic import context from sqlalchemy import engine_from_config, pool from logging.config import fileConfig # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config # Interpret the config file for Python logging. # This line sets up loggers ...
[ "roman.rader@gmail.com" ]
roman.rader@gmail.com
39bcecf7096e30317938833bbcbad285c393e708
134ff3c0719d4c0022eb0fb7c859bdbff5ca34b2
/desktop/libs/hadoop/setup.py
45c29110199a12209f2f58f95c8a774324b992a0
[ "Apache-2.0" ]
permissive
civascu/hue
22637f13a4cfc557716557661523131b6ac16da4
82f2de44789ff5a981ed725175bae7944832d1e9
refs/heads/master
2020-03-31T01:50:39.449966
2010-07-21T01:05:50
2010-07-21T01:07:15
788,284
0
0
Apache-2.0
2019-02-04T07:03:12
2010-07-21T07:34:27
Python
UTF-8
Python
false
false
1,344
py
# Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file ex...
[ "bcwalrus@cloudera.com" ]
bcwalrus@cloudera.com
f0196b2a9c3e4a9ca2069fdb9c0d194f6fcb2024
80d8b35c2199817ca69f36d61f228110b5eacae2
/bravo/tests/test_packets.py
7d123fabcf7e67485c290ed2ec8721fb81b144eb
[]
no_license
Estevo-Aleixo/bravo
b1d309d1215250f63bba6fade3e81e2f248dd8f4
2c0b07dd4385114c870123643ddc57d3770b2e91
refs/heads/master
2021-01-16T21:35:06.195078
2011-02-02T09:08:59
2011-02-02T09:08:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,973
py
# vim: set fileencoding=utf8 : import unittest from construct import Container from construct import MappingError import bravo.packets class TestPacketDataStructures(unittest.TestCase): def test_named_packets_exist(self): for name, slot in bravo.packets.packets_by_name.iteritems(): self.ass...
[ "leif.theden@gmail.com" ]
leif.theden@gmail.com
106fce316f2b8daf10ebed6e56ebc77eae52f5fb
348a921b2ec58cf8d9e018af5d7e93f15def6263
/mimiron/models/scale_app.py
f3630ecac9490cac0a5aae5ae97bb70350b7d5cb
[]
no_license
tonicbupt/mimiron
9c6ed99f8838f9180d7593bfaf8e5766e01c2911
e51c8a59b7babbac44c0579797d5e255ede8a646
refs/heads/master
2016-09-06T01:55:37.508366
2015-07-28T08:52:59
2015-07-28T08:52:59
33,178,886
0
0
null
null
null
null
UTF-8
Python
false
false
2,583
py
# coding: utf-8 import sqlalchemy.exc from mimiron.ext import db from mimiron.models.base import Base from mimiron.models.record import Record class ScaleApp(Base): __tablename__ = 'scale_app' __table_args__ = db.UniqueConstraint('appname', 'version', 'entrypoint', 'env'), appname = db.Column(db.String...
[ "tonicbupt@gmail.com" ]
tonicbupt@gmail.com
69fed5544d7ca3480815312b408af42df3de3ffc
bb150497a05203a718fb3630941231be9e3b6a32
/tools/test/test-tools/tool-test-op-correctness/ttorch/test_linear.py
90783638ec2e59efa8de2f83f0c73913751df932
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
454
py
#!/bin/env python # -*- coding: utf-8 -*- # @author DDDivano # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python import torch import numpy as np def test_linear(): x = torch.from_numpy(np.ones(shape=[3, 5])) weight = torch.from_numpy(np.ones(shape=[3, 5])*3) bias = torch.from_numpy(np.ones(shape=[3])) ...
[ "noreply@github.com" ]
PaddlePaddle.noreply@github.com
4cc340abd79f9612f362da49ea27672eba51f166
acd41dc7e684eb2e58b6bef2b3e86950b8064945
/res/packages/scripts/scripts/client/messenger/formatters/service_channel.py
758f9e20a19a5f7c3455c8c3f3808f768ab4825b
[]
no_license
webiumsk/WoT-0.9.18.0
e07acd08b33bfe7c73c910f5cb2a054a58a9beea
89979c1ad547f1a1bbb2189f5ee3b10685e9a216
refs/heads/master
2021-01-20T09:37:10.323406
2017-05-04T13:51:43
2017-05-04T13:51:43
90,268,530
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
102,168
py
# 2017.05.04 15:26:55 Střední Evropa (letní čas) # Embedded file name: scripts/client/messenger/formatters/service_channel.py import time import types import operator from Queue import Queue import constants import account_helpers import ArenaType import BigWorld import potapov_quests from FortifiedRegionBase import FO...
[ "info@webium.sk" ]
info@webium.sk
fcce29999db00b57d91a222f54cb5539f9325827
0e15ccb1b0ac2b1b246f7f0dbc3874f2f5ed5d72
/190904/2048.py
cbc5f15246144019ff997ba5f0b5cb1090cd161f
[]
no_license
toohong5/algorithm
fa0eda1c3a28c7bb8c13ae10711a955eccc169ee
a54ae271738927592bd023e93d223a00dc368895
refs/heads/master
2020-07-22T16:35:02.021460
2019-11-15T08:56:31
2019-11-15T08:56:31
206,717,672
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
import sys sys.stdin = open('input5.txt', 'r') T = int(input()) for tc in range(1, T + 1): N, way = input().split() N = int(N) arr = [list(map(int, input().split())) for _ in range(N)] if way == "up":
[ "toohong5@gmail.com" ]
toohong5@gmail.com
83f9c8bad1d536eb9ed04197aca5de98c52cbfa7
4a0e3ffff54be178b377a4c18fe0ced2d44b7be6
/tests/test_simplification.py
ef4d8ef459a90652ce1d7f1345a8374f72c490e6
[]
no_license
WinVector/data_algebra
608371904c0fcc99ffab7e0fe57c49dc75fd6b21
1e96817919ae891ba108d8d7471b2200b2528271
refs/heads/main
2023-04-13T20:11:18.682084
2023-04-10T14:09:41
2023-04-10T14:09:41
203,080,133
113
5
null
null
null
null
UTF-8
Python
false
false
1,517
py
import data_algebra import data_algebra.test_util from data_algebra.data_ops import * import pytest def test_simplification_1(): ops = ( TableDescription(table_name="d", column_names=["col1", "col2", "col3"]) .extend({"sum23": "col2 + col3"}) .extend({"x": 1}) .extend({"x": 2}) ...
[ "jmount@win-vector.com" ]
jmount@win-vector.com
e06f3268b5fbbda6ff380b19dfcec992dfa4102a
32bbe94e77deced5e58de97eb19e7c6126b001df
/backend/src/conftest.py
6f9abb7eb37c760dac2ba89491f5762a265968c3
[]
no_license
3asyPe/astudy
16d8adacc3bee9f2667c0a5f1be8228868440c6a
0643a33a294c410523738f59f95c8d205dd63dc5
refs/heads/master
2023-06-25T11:23:39.500361
2021-07-28T13:33:48
2021-07-28T13:33:48
336,819,306
0
0
null
null
null
null
UTF-8
Python
false
false
2,074
py
import random import string import pytest from django.conf import settings from django.contrib.auth.models import AnonymousUser from mixer.backend.django import mixer as _mixer from app.test.api_client import DRFClient from billing.models import BillingProfile from carts.models import Wishlist User = settings.AUTH...
[ "alex.kvasha228@gmail.com" ]
alex.kvasha228@gmail.com
91482f3078c6a8ffb8b5a646e4292e26b7ee4b5d
c1366a8772664a1076be1f709ec8364ded2cc119
/Jump_to_python/자료형/문자열 자료형.py
83a4d4ba86ad49e1d9b20118b1b020238912bfee
[]
no_license
Daboni/Python
04eecda0ff57a385374f8cfd479a9db98cbf3d60
e6bd7887a46535b3d5737836c2f8bbb668ef89ec
refs/heads/main
2023-02-26T16:45:55.553629
2021-02-04T06:44:11
2021-02-04T06:44:11
322,223,972
0
0
null
null
null
null
UTF-8
Python
false
false
4,944
py
#문자열 "Life is too short, You need Python" "a" "123" # "" "Hello World" # '' 'Python is fun' # """ """ """Life is too short, You need Python""" # ''' ''' '''Life is too short, You need Python''' # ' 포함시키기 food = "Python's favorite food is perl" food #"Python's favorite food is perl" # "...
[ "noreply@github.com" ]
Daboni.noreply@github.com
af11495a69e315fbb854ceeb2216c0a6520f719b
1ebd997c78b5e31d55ab0d0678d4f20889c7fd01
/meiduo/apps/carts/views.py
1a7438919bfe668059fd6c4239b722de2ed3e827
[ "MIT" ]
permissive
libin-c/Meiduo
f99ba4b105783c55011ebc301ae7068cbf946598
58468fd619a8d9f022df442a10a56b1b12ed1dd8
refs/heads/master
2022-12-13T10:02:56.715687
2019-07-13T11:26:53
2019-07-13T11:26:53
188,040,862
0
0
MIT
2022-12-10T04:49:02
2019-05-22T13:07:59
HTML
UTF-8
Python
false
false
31,206
py
import base64 import json import pickle from decimal import Decimal from django.contrib.auth.mixins import LoginRequiredMixin from django.http import HttpResponseForbidden, JsonResponse from django.shortcuts import render from django_redis import get_redis_connection from apps.carts import constants from apps.contents...
[ "84045407@qq.com" ]
84045407@qq.com
7d48311b4c76492c3f5616ad0a990dbeef8271b4
29b1757434a8069fd65bf11303a4422a4a7b8d47
/grit/command/Remote.py
316c67fcc4abda133a942fcfcfbb78ab0f5cde86
[ "Artistic-2.0" ]
permissive
rec/grit
720310e33aee7b31d26b976e1936e6e390dba2f4
b5be6d50cb802db9c9510e68688908f3d4d6d162
refs/heads/master
2020-05-17T20:03:39.979504
2019-02-19T13:38:57
2019-02-19T13:38:57
21,712,161
2
1
null
2015-03-17T00:56:48
2014-07-10T22:14:25
Python
UTF-8
Python
false
false
1,583
py
from __future__ import absolute_import, division, print_function, unicode_literals import json import os import urllib2 from grit import Call from grit.Cache import cached from grit import Project from grit import Settings _REMOTE = """ git remote add {nickname} git@github.com:{user}/{project}.git """ SAFE = True ...
[ "tom@swirly.com" ]
tom@swirly.com
203327de968cec0206b4fe3aedf0a89d8e26ff80
0dc9bbce77d65a6991f7659c70bf4b81bb319a28
/artascope/src/model/user_config.py
65658857748e05322f7ca187a74384a026c9e800
[ "MIT" ]
permissive
magus0219/icloud-photo-downloader
cca1f3aa0ee93fd3fb195d68d5e02edacea19bc5
6334530d971cf61089d031de99a38f204c201837
refs/heads/master
2023-05-06T14:51:21.145193
2020-08-10T14:10:49
2020-08-10T14:10:49
259,565,469
11
0
MIT
2021-06-02T01:53:05
2020-04-28T07:37:03
Python
UTF-8
Python
false
false
2,212
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Created by magus0219[magus0219@gmail.com] on 2020/3/30 from artascope.src.model.mixin import JsonDataMixin class NotifyType: NONE = 0 SLACK = 1 EMAIL = 2 class TargetType: SFTP = 1 class SchedulerEnable: Disable = 0 Enable = 1 class Rein...
[ "magus0219@gmail.com" ]
magus0219@gmail.com
13f1d9708281dbfba9691ad955cf3dc31d7cedf6
e1cacf76f531494414c846f61d055b06801052d8
/sdk/python/kubeflow/katib/configuration.py
6afecca91b0a56b71205147a7189f5e67a9965e8
[ "Apache-2.0" ]
permissive
prem0912/katib
388d6637f2fed8c67aa7bd0ad4419dedccb75ad7
d19149ddcd5b59054d4c26fb23a141b8adbe9634
refs/heads/master
2020-06-17T16:10:55.954875
2020-06-03T09:19:53
2020-06-03T10:06:01
243,764,109
0
2
Apache-2.0
2020-02-28T13:04:57
2020-02-28T13:04:57
null
UTF-8
Python
false
false
7,643
py
# coding: utf-8 """ katib swagger description for katib # noqa: E501 OpenAPI spec version: v0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import copy import logging import multiprocessing import sys import urllib3 import six ...
[ "premnath.vel@gmail.com" ]
premnath.vel@gmail.com
8f437d715a4f2b8228b57dd1fbf993432c1036ab
2af94f8a7609d47fdcea28a2132c4f8bacb103e3
/lib/_idigi_data.py
793da64bda691d043bc092f2f50eb3cd4c3c53b3
[]
no_license
bernhara/DigiGateway4Raph
685527723f0b306f387233c78d27fe9d78717c38
f36ba29ef883d70f94b8609ff734b5dcde786c66
refs/heads/master
2020-07-05T19:56:27.027547
2019-08-19T06:10:46
2019-08-19T06:10:46
202,756,662
0
0
null
null
null
null
UTF-8
Python
false
false
7,503
py
"""idigi_data idigi_data provides an easy way for Digi device based python apps to push up data files to the Device Cloud server the device belongs to. See idigi_pc.py to run on a PC. """ import sys import os sys.path.append("WEB/python/idigi_data.zip") try: # Device Cloud is built into Digi devices. Y...
[ "ORBA6563@S-ORBA65630.rd.francetelecom.fr" ]
ORBA6563@S-ORBA65630.rd.francetelecom.fr
e8637c520683003b8fa83bcc0a7a54244c0cb2aa
ff0a81d12b17a45a214380f4bdbb2360e050ff40
/src/accounts/migrations/0001_initial.py
ee232af4db0f7eb2fcf0a2240e24198592e30880
[]
no_license
rcmiskin10/university-marketplace
45425275f6f7a73ab81441d613c26def2410a8e4
726e99153ad36d0aa38141822285f79feb910c06
refs/heads/master
2020-04-05T23:42:59.025790
2017-01-11T03:15:20
2017-01-11T03:15:20
68,738,382
0
0
null
null
null
null
UTF-8
Python
false
false
1,806
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.conf import settings class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='MyUser', field...
[ "rcmiskin@gmail.com" ]
rcmiskin@gmail.com
f4ae5179833a9c7f84ab735605567beee5973043
861a3f230b19bb5db1e34750e7c469a5989bf162
/11.HashTable/2.jewels-and-stones/3_counter.py
d56c1f27ba1e577815a47a43ef8032f167a7adbe
[]
no_license
jana-choi/PythonCodingTest
6ef3786c9a9c71dc749723a4db614a1833332791
294588392cf551a77a28d9153098c3d823f271f7
refs/heads/master
2022-12-24T10:49:36.712057
2020-09-25T01:59:58
2020-09-25T01:59:58
285,706,524
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
from collections import Counter def numJewelsInStones(J, S): freqs = Counter(S) count = 0 for char in J: count += freqs[char] return count if __name__ == "__main__": J = "aA" S = "aAAbbbb" print(numJewelsInStones(J, S))
[ "lovej0918@gmail.com" ]
lovej0918@gmail.com
d224412bcfacaefd9576997b2fd07907fabe1ad6
7889f7f0532db6a7f81e6f8630e399c90438b2b9
/3.7.2/_downloads/edc9e862d9e0d115b20877b32f705afc/pcolor_demo.py
2e17cd7db90b2f637939f4660fe465fbf44089c0
[]
no_license
matplotlib/matplotlib.github.com
ef5d23a5bf77cb5af675f1a8273d641e410b2560
2a60d39490941a524e5385670d488c86083a032c
refs/heads/main
2023-08-16T18:46:58.934777
2023-08-10T05:07:57
2023-08-10T05:08:30
1,385,150
25
59
null
2023-08-30T15:59:50
2011-02-19T03:27:35
null
UTF-8
Python
false
false
3,626
py
""" =========== Pcolor demo =========== Generating images with `~.axes.Axes.pcolor`. Pcolor allows you to generate 2D image-style plots. Below we will show how to do so in Matplotlib. """ import matplotlib.pyplot as plt import numpy as np from matplotlib.colors import LogNorm # Fixing random state for reproducibili...
[ "quantum.analyst@gmail.com" ]
quantum.analyst@gmail.com
a46bba20a44b6de65d085978136586ecbe0b0a15
971e0efcc68b8f7cfb1040c38008426f7bcf9d2e
/tests/periodicities/Hour/Cycle_Hour_50_H_60.py
3d8f5f121c5580733d8e90bcdcf73b41d655c38b
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
antoinecarme/pyaf
a105d172c2e7544f8d580d75f28b751351dd83b6
b12db77cb3fa9292e774b2b33db8ce732647c35e
refs/heads/master
2023-09-01T09:30:59.967219
2023-07-28T20:15:53
2023-07-28T20:15:53
70,790,978
457
77
BSD-3-Clause
2023-03-08T21:45:40
2016-10-13T09:30:30
Python
UTF-8
Python
false
false
81
py
import tests.periodicities.period_test as per per.buildModel((60 , 'H' , 50));
[ "antoine.carme@laposte.net" ]
antoine.carme@laposte.net
275dfa655f73d8d0dc3ad70f06d43f610209f283
2d5cc685fd861c16a44e6578dff659bc197d44f8
/ioflo/aio/serial/serialing.py
f614559f296086b6d703dba667e5b8f28b1620b4
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dreamerparadise/ioflo
b642e3325760d124c8c608cefd3fb23c408785ff
177ac656d7c4ff801aebb0d8b401db365a5248ce
refs/heads/master
2023-04-03T04:05:24.934544
2020-11-19T22:07:49
2020-11-19T22:07:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
15,662
py
""" Asynchronous (nonblocking) serial io """ from __future__ import absolute_import, division, print_function import sys import os import errno from collections import deque # Import ioflo libs from ...aid.sixing import * from ...aid.consoling import getConsole console = getConsole() class ConsoleNb(object): "...
[ "smith.samuel.m@gmail.com" ]
smith.samuel.m@gmail.com
3a9a7eb89471a88ba39f8be086383d95256bb9ae
8dcd3ee098b4f5b80879c37a62292f42f6b2ae17
/venv/Lib/site-packages/pandas/tests/indexing/test_floats.py
6adde65abed574cfb762758f4bab265e6ce2ace4
[]
no_license
GregVargas1999/InfinityAreaInfo
53fdfefc11c4af8f5d2b8f511f7461d11a3f7533
2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a
refs/heads/master
2022-12-01T20:26:05.388878
2020-08-11T18:37:05
2020-08-11T18:37:05
286,821,452
0
0
null
null
null
null
UTF-8
Python
false
false
30,009
py
import numpy as np import pandas._testing as tm import pytest from pandas import DataFrame, Float64Index, Index, Int64Index, RangeIndex, Series class TestFloatIndexers: def check(self, result, original, indexer, getitem): """ comparator for results we need to take care if we are indexing o...
[ "44142880+GregVargas1999@users.noreply.github.com" ]
44142880+GregVargas1999@users.noreply.github.com
78f2cb9e8e6566e1b063e3cf67098480f3c48b68
54049cdb26004a52689254c7b3fedff9e2c6d163
/bloom/commands/patch/remove_cmd.py
c5da59a8c1bd50ca790ca9fa0126e0f09437b43b
[ "BSD-3-Clause" ]
permissive
hershwg/bloom
d6692e8bc63a3e95e8165fb80a75b32271b7a526
9fbdd6f6de52cf4263b76a93e37a730725242e93
refs/heads/master
2021-01-15T20:19:23.232209
2012-10-25T07:00:34
2012-10-25T07:00:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,525
py
from __future__ import print_function import sys from argparse import ArgumentParser from bloom.util import add_global_arguments from bloom.util import execute_command from bloom.util import handle_global_arguments from bloom.logging import log_prefix from bloom.logging import error from bloom.logging import debug fr...
[ "wjwwood@gmail.com" ]
wjwwood@gmail.com
584b1b85b712de23c8b5e7dada6996900e1969ae
adea9fc9697f5201f4cb215571025b0493e96b25
/napalm_yang/models/openconfig/network_instances/network_instance/mpls/signaling_protocols/rsvp_te/neighbors/__init__.py
c65e45cc12c61069514b7e373ae41569e428f2c7
[ "Apache-2.0" ]
permissive
andyjsharp/napalm-yang
d8a8b51896ef7c6490f011fe265db46f63f54248
ef80ebbfb50e188f09486380c88b058db673c896
refs/heads/develop
2021-09-09T02:09:36.151629
2018-03-08T22:44:04
2018-03-08T22:44:04
114,273,455
0
0
null
2018-03-08T22:44:05
2017-12-14T16:33:35
Python
UTF-8
Python
false
false
10,766
py
from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.y...
[ "dbarrosop@dravetech.com" ]
dbarrosop@dravetech.com
323456b2a796bba44c887fe9bdc4cce4f6cb8c09
365c85a280596d88082c1f150436453f96e18c15
/Python/Daily/2029. stone_game_ix.py
f647f8a361d8cfb7d86d66e00b93c306cc7099bf
[]
no_license
Crisescode/leetcode
0177c1ebd47b0a63476706562bcf898f35f1c4f2
c3a60010e016995f06ad4145e174ae19668e15af
refs/heads/master
2023-06-01T06:29:41.992368
2023-05-16T12:32:10
2023-05-16T12:32:10
243,040,322
1
1
null
null
null
null
UTF-8
Python
false
false
2,553
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # https://leetcode-cn.com/problems/stone-game-ix/ # Alice and Bob continue their games with stones. There is a row of n stones, and each stone # has an associated value. You are given an integer array stones, where stones[i] is the value of the ith stone. # # Alice and Bo...
[ "zhaopanp2018@outlook.com" ]
zhaopanp2018@outlook.com
fcbc0c05426acee364789632ee62a20c419a7bbf
703441f9d50220a552b4c638d80a20d0e1e28950
/cmspubstyle/__init__.py
ca61476495b40e3fcaad0d9f42e6814995c1aa89
[ "MIT" ]
permissive
raggleton/cmspubstyle
29777241448f4fb6a88be97a3c209589527cc461
49a966375bd8e1378bf07b4e7476f3fceb5f43be
refs/heads/master
2023-01-02T17:54:18.170036
2020-10-12T14:04:02
2020-10-12T14:04:02
137,239,255
0
0
null
null
null
null
UTF-8
Python
false
false
73
py
"""Check CMS publications against PubComm rules""" __version__ = "0.1.0"
[ "robin.aggleton@cern.ch" ]
robin.aggleton@cern.ch
7c37858040a76a9843570a391d8938e7658c7749
d936bc1d23f3ccee2e87f7a911ad7eada9147d0f
/canvas_mouse_draw_shape.py
8ca2ae61d3758d5649e80e2bf4c5a5207376efeb
[]
no_license
mesebilisim/python-kod-bankasi
b83982fa962194b43bd3e1fbbbd5bf4ad56a6c11
8740cba66fd764ec8cf4174aa5e6cade49ae0af6
refs/heads/master
2020-07-27T21:41:35.882996
2015-10-13T22:55:23
2015-10-13T22:55:23
73,424,342
1
0
null
2016-11-10T22:00:23
2016-11-10T22:00:23
null
UTF-8
Python
false
false
1,427
py
from Tkinter import * trace = 0 class CanvasEventsDemo: def __init__(self, parent=None): canvas = Canvas(width=300, height=300, bg='beige') canvas.pack() canvas.bind('<ButtonPress-1>', self.onStart) canvas.bind('<B1-Motion>', self.onGrow) canvas.bind('<Double-1>',...
[ "electrocoder@gmail.com" ]
electrocoder@gmail.com
680f3dc411c72dd3386788bef61685df9c7fcb4f
3cedc7c1519d3b013aad9ec4e6a6ee7834da7589
/appium/没整理/lesson2/toutiao1.py
1ef5799e27844b16d15878ddd160fd41e56ce680
[]
no_license
hzrg/songqin_course
53437100669ee93d2ac5ecae5de938b1a4007d7f
05e422ce34a42fd6d3819722a19252f8005e79ed
refs/heads/master
2022-02-09T13:27:59.871400
2019-06-13T06:08:45
2019-06-13T06:08:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,148
py
# coding=utf8 from appium import webdriver import time,traceback desired_capabilities = {} desired_capabilities['platformName'] = 'Android' desired_capabilities['automationName'] = 'Appium' desired_capabilities['platformVersion'] = '5.1' desired_capabilities['deviceName'] = '192.168.56.104:5555' desired...
[ "1174497735@qq.com" ]
1174497735@qq.com
331c3fec668136c0d08a36f50d5718da3362a69b
d170dbc754cca63e712284294b6286065fec6df5
/fa/jquery/templates/admin/models.pt.py
a3278b8727dcae923aec797de8987774cd997501
[]
no_license
FormAlchemy/fa.jquery
3d2ba746a1631db32d2f83fba7c6ae9b75bb312f
8aa4686c66cf8612fd4a5c2e7fc34e29cb8b606f
refs/heads/master
2016-09-06T06:03:12.277972
2013-10-10T08:46:36
2013-10-10T08:46:36
1,256,529
9
12
null
2017-12-21T08:05:22
2011-01-15T00:55:19
Python
UTF-8
Python
false
false
5,037
py
registry = dict(version=0) def bind(): from cPickle import loads as _loads _lookup_attr = _loads('cchameleon.core.codegen\nlookup_attr\np1\n.') _attrs_4358996304 = _loads('(dp1\nVclass\np2\nVfa_model ui-widget-header ui-corner-all\np3\ns.') _init_scope = _loads('cchameleon.core.utils\necontext\np1\n.') ...
[ "gael@gawel.org" ]
gael@gawel.org
50953bdf36c326c7d5d2cae9869a92215db15261
a54d5a5ae5ba352963f1166a29e1bb6c867157ab
/python/test/test_good_name.py
30030f836c9780fecc2b6f39ca94cdcb806270bf
[]
no_license
alephist/edabit-coding-challenges
06f573e90ffbd13bc54ecbdaa8e6a225aa44f5d8
35f1fc84848fc44e184aae1ae231a36319c1c81e
refs/heads/main
2023-07-30T22:39:37.468756
2021-09-18T07:47:02
2021-09-18T07:47:02
341,467,751
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
import unittest from typing import Tuple from good_name import name_score test_values: Tuple[Tuple[str, str]] = ( ('MUBASHIR', "THE BEST"), ('MATT', "THE BEST"), ('PAKISTAN', "THE BEST"), ('AIRFORCE', "THE BEST"), ('GUV', 'NOT TOO GOOD'), ('PUBG', "NOT TOO GOOD"), ('ME', "PRETTY GOOD"), ...
[ "justin.necesito@gmail.com" ]
justin.necesito@gmail.com
1905fd29a2ad0d74d4ce302177cb049f49249cd9
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_19988.py
f78479142fcdf29382cc31b81425d60aff326ea2
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
# Trouble with aligning two y-axis ticks with matplotlib lim1 = ax1.get_ylim() lim2 = (lim1[0]*2, lim1[1] *2) ax2.set_ylim(lim2)
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
2e57d9700d3d664bc7705e1dbba720f6395b5865
c15db2bb1756ee63bab13e583ff70c18e765d575
/drf_generators/templates/apiview.py
3972099189a1aef1850173941c99580a581d08f9
[ "Python-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
tkliuxing/drf-generators
89857c6c0d3b301cd32611f90a9d4ef8fab92d77
899c3f4efb3c3fe10ee582f3950bb6e48fc03350
refs/heads/master
2020-12-29T22:14:13.732920
2020-08-10T07:00:51
2020-08-10T07:00:51
238,751,406
0
0
null
null
null
null
UTF-8
Python
false
false
2,324
py
__all__ = ['API_VIEW', 'API_URL'] API_URL = """from django.conf.urls import include, url from . import api urlpatterns = [ {% for model in models %} url(r'^{{ model|lower }}/(?P<id>[0-9]+)/$', api.{{ model }}APIView.as_view()), url(r'^{{ model|lower }}/$', api.{{ model }}APIListView.as_view()), {% endfor %} ] ...
[ "ouyanghongyu@gmail.com" ]
ouyanghongyu@gmail.com
c9adeac271c2119cfa73776e7e87d0a4969b0509
dd3f5a712dbab0d3c4f4526c64c08ba710f78b81
/Basic/dataStructure/structure/t06dequeue.py
e9d2f37337664d1f56c4b9a4fbfcb8b579fc4bc1
[]
no_license
nameusea/pyGreat
3988ebcce3f80a7e458a20f9b2e3ccba368efcf8
dde8b6a1348620ffd3b2d65db3d5b4331e5c78be
refs/heads/master
2023-04-25T09:02:32.831423
2021-05-17T11:31:22
2021-05-17T11:31:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
897
py
class Dequeue(object): def __init__(self): '''初始化一个空队列''' self.__list = [] def add_front(self, item): '''从队列首添加''' self.__list.insert(0, item) def add_rear(self, item): '''从队列尾添加''' self.__list.append(item) def pop_front(self): '''从队列首删除''' ...
[ "darcyzhang@DarcydeMacBook-Air.local" ]
darcyzhang@DarcydeMacBook-Air.local
af9153c190844bd9253289db42ce6a05a332e11f
55b89b8b18c97e71e052c7287b2424f0e8118555
/tests/testdata/gen_manifest/getbook.py
7e768be647e87b83342d51605e8a02354691910f
[ "Apache-2.0" ]
permissive
renovate-bot/sample-tester
a0e55bb376fefcff56a91c09454a242adfea6a8d
b3c18b333e8bd1dc2a25c58fc998845adbd6e3f0
refs/heads/master
2023-06-08T14:02:18.195945
2021-07-12T20:57:30
2021-07-12T20:57:30
198,908,002
0
0
Apache-2.0
2019-07-25T22:18:59
2019-07-25T22:18:59
null
UTF-8
Python
false
false
118
py
# This is a mock sample # [START getbook_sample] # The interesting part # [END getbook_sample] # More boilerplate
[ "noreply@github.com" ]
renovate-bot.noreply@github.com
cfb30854f4250f879b33cfc6726d4d9f5f349292
2dffc42f8eeb1a28e6fb9f27ffea730afd912e62
/conf.py
c1c344fc577705fb620342a8616f78139b58d456
[]
no_license
kylemcdonald/rippleTank
859a8889ac63741b19eda8f8d74e89aa54bb754c
d45ff5fad80dc87191b8819edda7d08105b42ec7
refs/heads/master
2020-09-07T17:21:23.148722
2017-07-21T20:35:38
2017-07-21T20:35:38
220,858,467
1
0
null
2019-11-10T22:15:18
2019-11-10T22:15:18
null
UTF-8
Python
false
false
4,813
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # rippletank documentation build configuration file, created by # sphinx-quickstart on Wed Jul 5 16:35:18 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 this #...
[ "js.barbosa10@uniandes.edu.co" ]
js.barbosa10@uniandes.edu.co
216a32e87fa6cda93c871bfcf130c1a61a7e4723
e38f7b5d46fd8a65c15e49488fc075e5c62943c9
/pychron/lasers/tasks/panes/co2.py
1745ef46b0037c5117b26def82274ef321ff93ef
[]
no_license
INGPAN/pychron
3e13f9d15667e62c347f5b40af366096ee41c051
8592f9fc722f037a61b0b783d587633e22f11f2f
refs/heads/master
2021-08-15T00:50:21.392117
2015-01-19T20:07:41
2015-01-19T20:07:41
111,054,121
0
0
null
null
null
null
UTF-8
Python
false
false
1,515
py
#=============================================================================== # Copyright 2013 Jake Ross # # 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/license...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
c618ca60468f267f06da2cbd256b606154cc1254
6a7e9e0e9c08132166f566bd88ae1c46ff8f9c0a
/azure-cognitiveservices-language-luis/azure/cognitiveservices/language/luis/runtime/models/luis_result.py
15b9ac3de342daddf2340f74c9e4f7d1970e7d5b
[ "MIT" ]
permissive
ashirey-msft/azure-sdk-for-python
d92381d11c48f194ec9f989f5f803db614fb73f2
e04778e13306dad2e8fb044970215bad6296afb6
refs/heads/master
2020-03-23T06:05:39.283442
2018-09-15T00:18:26
2018-09-15T00:18:26
141,188,192
0
1
MIT
2018-07-16T20:02:52
2018-07-16T20:02:52
null
UTF-8
Python
false
false
2,695
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
8978268857118174c16dc40b067aae092d316737
f59d9f7edacd17af7af2c8a4c900bde4fe18ba1a
/measure_extinction/utils/mock_spectra_data.py
4ddd463f2a6db111b9657372d0b077a560140350
[ "BSD-3-Clause" ]
permissive
karllark/measure_extinction
8a1fead4db8be8dda44b3c4e8687fd9fd3a4d537
464fc09a60e0d0ee226b590542404e972b62d2e9
refs/heads/master
2023-05-27T06:48:32.434042
2023-03-06T13:40:50
2023-03-06T13:40:50
116,707,319
1
4
null
2023-04-28T12:40:04
2018-01-08T17:31:44
Python
UTF-8
Python
false
false
6,858
py
import pkg_resources import argparse import numpy as np import matplotlib.pyplot as plt from astropy.table import QTable import astropy.units as u __all__ = ["mock_stis_data"] def mock_stis_single_grating(moddata, gname="G140L", applylsfs=True): """ Mock up a single grating STIS low resolution observation us...
[ "kgordon@stsci.edu" ]
kgordon@stsci.edu
5b9d2d32cc0987d491c966fd7fafda8d931a36aa
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p4VQE/R1/benchmark/startQiskit_QC76.py
7e339b6337cf42dff01c14d045fcf73a39befa91
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,545
py
# qubit number=3 # total number=9 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collection...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
07cb116d8b5a5a623a6fa3730a1a72aecaa55cdc
ba694353a3cb1cfd02a6773b40f693386d0dba39
/sdk/python/pulumi_google_native/cloudkms/v1/ekm_config_iam_binding.py
34794a1a7d1dd5e219686f38c800ef77ef350cbd
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-google-native
cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b
124d255e5b7f5440d1ef63c9a71e4cc1d661cd10
refs/heads/master
2023-08-25T00:18:00.300230
2023-07-20T04:25:48
2023-07-20T04:25:48
323,680,373
69
16
Apache-2.0
2023-09-13T00:28:04
2020-12-22T16:39:01
Python
UTF-8
Python
false
false
13,721
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 copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _u...
[ "noreply@github.com" ]
pulumi.noreply@github.com
9035e78db4008b3c0bde93ae8d77a2fcd26f4761
935b9efca392b124d571319568c08ba45446d2a0
/lino_book/projects/lydia/tests/dumps/18.8.0/courses_line.py
f6c815319873d98bc3450f6d0444c1bee99e56b1
[ "BSD-2-Clause" ]
permissive
wallento/book
6efba2baa1e42bb99514a937342000271dfe798b
8c5a68f30f9ab65479a988608bda66ea6209afd8
refs/heads/master
2020-04-06T10:58:01.629671
2018-11-07T09:41:54
2018-11-07T09:41:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
742
py
# -*- coding: UTF-8 -*- logger.info("Loading 3 objects to table courses_line...") # fields: id, ref, name, excerpt_title, company, contact_person, contact_role, course_area, topic, description, every_unit, every, event_type, fee, guest_role, options_cat, fees_cat, body_template loader.save(create_courses_line(1,None,['...
[ "luc.saffre@gmail.com" ]
luc.saffre@gmail.com
b0894045935a4bd7927b3d27d1bcbe9580c0d34e
683e5c676c02a746ba35ef6045c99983ad4b4b0c
/matomo_sdk_py/matomo_sdk_py.py
be960c84fb4b3446264311e9ee51c37069567f5a
[ "Apache-2.0" ]
permissive
autofitcloud/matomo-sdk-py
f14ec95b6f8c9b94f74dcfa3f81f90612188a0cb
802434b125da8c9da168a18d82e8f539716df501
refs/heads/master
2023-05-24T21:01:30.376179
2019-12-04T13:26:46
2019-12-04T13:26:46
217,569,529
0
0
Apache-2.0
2023-05-22T22:31:29
2019-10-25T16:03:40
Python
UTF-8
Python
false
false
1,773
py
import requests SKIP_PING=False def ping_matomo(action_name, action_base, idsite, uuid_val, matomo_url): """ Gather anonymous usage statistics action_name - same field in matomo action_base - website URL in matomo, e.g. https://example.com idsite - integer representing ID of website in matomo uuid_val - ma...
[ "shadiakiki1986@gmail.com" ]
shadiakiki1986@gmail.com
6717d03c5d2ec776966afa1f4b7a7c9ab42bf79e
af4f53500502faf8e0b3a97cf8f517fec80bdc5c
/tests/optimize/test_lie_algebra.py
4b988e782beee11261baf1e81017c7aecc128de8
[ "Apache-2.0" ]
permissive
quantshah/pennylane
c5590406674384bc6a26bd5dccc6619f9255242d
b904c966d124e66dbf82cc0b42f580db2d9a7cc1
refs/heads/master
2022-11-22T19:41:10.892782
2022-08-15T12:41:48
2022-08-15T12:41:48
355,849,206
0
0
Apache-2.0
2021-04-08T09:48:31
2021-04-08T09:48:31
null
UTF-8
Python
false
false
10,907
py
# Copyright 2018-2021 Xanadu Quantum Technologies 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...
[ "noreply@github.com" ]
quantshah.noreply@github.com
8f6323614670e2e31fd6089d6d719aba5fe21293
82b3bcc6467c93c8b84948e7df1ec32fe4c4b004
/WEEK 4/Day 4/python-lesson-day4/stuff.py
7a5f26446b1d590d01b86288ca383be2de42f360
[]
no_license
MrAch26/Developers_Institute
b7868fc94556bfced4cb53537278c3ec17991426
840c9710278af033ccdb5f5c3edd7a2a97476aba
refs/heads/master
2023-03-28T19:31:11.666544
2021-04-06T06:54:20
2021-04-06T06:54:20
298,250,894
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
def test(*args): print(type(args)) print(args[4]) print("printing Args") for item in args: print(item) # * packs items into a tuple, and unpacks into a list # ** packs items into a dict def kwtest(**kwargs): print(type(kwargs)) print("printing KWargs") for k,v in kwargs.items(): print(k,"-",v) def pa...
[ "MrAch26@users.noreply.github.com" ]
MrAch26@users.noreply.github.com
40605fa6ce7b50c0bece515198274ad164e27a67
9189089752d970ced51a1c50503fce399b93f589
/create-sw-file-tools/play_with_geonames-v2.py
c8ba486cc37a6e1a1d6455a22448a6bb495b3c04
[]
no_license
SwannedLakee/Feynman-knowledge-engine
464b0d187213b28d9e3995c5e27b41e216359046
9a09ff8041dda20dadc3368700b718266757cf24
refs/heads/master
2023-03-24T05:25:30.320650
2020-03-13T12:31:59
2020-03-13T12:31:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,121
py
#!/usr/bin/env python3 import sys from the_semantic_db_code import * from the_semantic_db_functions import * from the_semantic_db_processor import * #C = context_list("geonames AU") # is new_context() faster than context_list() ?? C = new_context("geonames US") # NB: may need to filter down to ASCII chars. #file = ...
[ "garry@semantic-db.org" ]
garry@semantic-db.org
be45c52e65245d926bc6bd8a07045f441de50ede
92137962a84e724df31b63367854349a875f1c43
/tapis_cli/clients/basic/main.py
24b0135901c881fa43e4e7cdef09ea4e8c6aea53
[ "BSD-3-Clause" ]
permissive
TACC-Cloud/tapis-cli
e3a26e79a20d1ada4cb2dc9ef204cae3e385bfe7
d34e8635d3dbacc8276cf52b6bae04caacd655de
refs/heads/main
2023-04-08T14:47:27.707885
2022-02-13T17:43:26
2022-02-13T17:43:26
203,083,094
11
3
BSD-3-Clause
2022-04-01T20:23:23
2019-08-19T02:21:28
Python
UTF-8
Python
false
false
1,122
py
from ..http import HTTPFormatOne, HTTPFormatMany __all__ = ['BasicHTTPFormatOne', 'BasicHTTPFormatMany'] def add_common_arguments(parser): parser.add_argument('--username', dest='username', type=str, help="Username") parser.add_argument(...
[ "vaughn@tacc.utexas.edu" ]
vaughn@tacc.utexas.edu
6d13e399ffbaad02f5508a957a4baeefe8099831
214ea06bc0967044e0d5cffcc3567decc5685d1e
/rbtools/clients/tests/test_svn.py
f17f6965acd616a1361604a21b72b1817802fb83
[ "MIT" ]
permissive
Oberon00/rbtools
e0ef888a964f57dea09082f3fcbbaea1d7ed3237
6272a27a43bf2e1e1af4c1a87238fccc037f8843
refs/heads/master
2020-05-03T23:23:13.565567
2019-03-21T23:36:38
2019-03-21T23:36:38
178,864,567
0
0
MIT
2019-04-01T13:02:35
2019-04-01T13:02:34
null
UTF-8
Python
false
false
31,351
py
"""Unit tests for SubversionClient.""" from __future__ import unicode_literals import json import os import sys from functools import wraps from hashlib import md5 from kgb import SpyAgency from nose import SkipTest from six.moves.urllib.request import urlopen from rbtools.api.client import RBClient from rbtools.ap...
[ "trowbrds@gmail.com" ]
trowbrds@gmail.com
f807bce27f1dd1c18871c787b6582c62f5b1e254
82b946da326148a3c1c1f687f96c0da165bb2c15
/sdk/python/pulumi_azure_native/web/v20210101/get_web_app_domain_ownership_identifier_slot.py
3b8508cf4c91fe3a7690d3c8355195664eae3ed8
[ "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
4,347
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 __...
[ "noreply@github.com" ]
morrell.noreply@github.com
8f2f52a14e7110870ebe759c5b112bb4055bfa0f
27327e2e0a6844a58a2c7019effabd10f35a652c
/pythonchallenge/crossin_mryk2.py
4f088c487c0071f4354e39d3957b533f4fca0b84
[]
no_license
jtr109/AdvancePython
996b975483502ebfb2c3f03ceb1d1d2b6bbf0b30
a72926c533d41495d9d1d60a8d020d3fe047d0e2
refs/heads/master
2021-01-20T10:59:49.282810
2016-08-25T10:09:20
2016-08-25T10:09:20
66,245,617
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
def sort_and_unique(l): new_l = list(set(l)) new_l.sort() return new_l if __name__ == '__main__': l = [4, 7, 3, 4, 1, 9, 8, 3, 7] print(sort_and_unique(l))
[ "lyp_login@outlook.com" ]
lyp_login@outlook.com
23017da9226d9dc9b4476b492e8cdfa7b4fb0f17
e3098a32e5825c88db0f20938ec4ca89054ec52c
/shaney.py
78ec8bd87bc43fce563e32825057b5ae9c7f92f4
[]
no_license
yuvipanda/frailgrey
9e807c25f3e5e08ee537f3c7ac46a534407f74da
472973aa7477bca7936fd44bc14b8fad62f4e647
refs/heads/master
2020-06-05T01:35:47.935109
2012-10-05T06:45:41
2012-10-05T06:45:41
259,656
0
1
null
null
null
null
UTF-8
Python
false
false
1,027
py
# shaney.py by Greg McFarlane # some editing by Joe Strout # # search for "Mark V. Shaney" on the WWW for more info! import sys import random import string def generate(text, count): words = text.split() end_sentence = [] dict = {} prev1 = '' prev2 ...
[ "yuvipanda@gmail.com" ]
yuvipanda@gmail.com
740b55aeecc180691958ce5d79ae04df440cc154
ee00ebe5e71c36b05fbff993b19e9723b963313f
/45_jump_game_2.py
4a4f2be0a2b148c4e181e07c60f39a8a23966d34
[]
no_license
26XINXIN/leetcode
f365560d93604a28abf399707b333f3c11f924ec
78ed11f34fd03e9a188c9c6cb352e883016d05d9
refs/heads/master
2021-06-28T16:31:45.103879
2020-09-19T20:33:55
2020-09-19T20:33:55
144,975,903
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
class Solution: def jump(self, nums): """ :type nums: List[int] :rtype: int """ n = len(nums) first, last = 0, 0 jump_times = 0 while last < n - 1: # print(first, last) farest = 0 for i in range(first, last + 1): ...
[ "yangxin.nlp@bytedance.com" ]
yangxin.nlp@bytedance.com
039fd47273a7f03c29529774896c1ad054dd0856
5bd8909ecedbc68b23e2bf6d4560a02b4eea3fa1
/blog/migrations/0008_auto_20201228_0115.py
8aa17a3ceebb7508b529e2be38c5e11866ee05ee
[]
no_license
HadiGhazali/zoomit
5c0ca881ed43a1f0baccb90d88309c35ac549e74
39a14394e84d86e434f506f270e80084710a4507
refs/heads/main
2023-02-19T11:31:18.949557
2021-01-20T18:14:55
2021-01-20T18:14:55
318,006,841
1
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
# Generated by Django 3.1.4 on 2020-12-28 01:15 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0007_auto_20201225_1529'), ] operations = [ migrations.RenameField( model_name='hitcoun...
[ "hadivardanjani1378@gmail.com" ]
hadivardanjani1378@gmail.com
a4a7daf902c1db9cb57fbf3b4c0b6878a28e5589
e21599d08d2df9dac2dee21643001c0f7c73b24f
/Others/Modules/xml/create_xml.py
943aeadcfe0f48fa947e92b0b54c945162ad1537
[]
no_license
herolibra/PyCodeComplete
c7bf2fb4ce395737f8c67749148de98a36a71035
4ef7d2c3aec6d28a53eed0e649cdeb74df3d783b
refs/heads/master
2022-07-17T05:39:03.554760
2020-05-03T07:00:14
2020-05-03T07:00:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,350
py
# coding=utf-8 import xml.dom.minidom # 在内存中创建一个空的文档 doc = xml.dom.minidom.Document() # 创建一个根节点Managers对象 root = doc.createElement('Managers') # 设置根节点的属性 root.setAttribute('company', 'xx科技') root.setAttribute('address', '科技软件园') # 将根节点添加到文档对象中 doc.appendChild(root) managerList = [{'name' : 'joy', 'age' : 27, 'sex' ...
[ "zengyuetian@cloutropy.com" ]
zengyuetian@cloutropy.com
dd31f3e5ecd70f29f6e610e0bb210939483e3274
bd4812ba7af196d2e866cbf2935b2e7308d95066
/python/leetcode/389_find_difference.py
7133e92ba94094b445c901ba3128895d677dbe32
[ "Apache-2.0" ]
permissive
yxun/notebook
f507201e15c4376f0655121724254c0d5275c3b1
00eb1953d872a9a93a13d7cf23d8e4ed641d1ce7
refs/heads/master
2023-09-01T03:50:48.142295
2023-08-17T12:11:25
2023-08-17T12:11:25
207,569,654
2
2
Apache-2.0
2023-08-17T12:11:26
2019-09-10T13:38:49
Java
UTF-8
Python
false
false
1,128
py
#%% """ - Find the Difference - https://leetcode.com/problems/find-the-difference/ - Easy Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at a random position. Find the letter that was added in t. Example: Input: s =...
[ "yuanlin.yxu@gmail.com" ]
yuanlin.yxu@gmail.com
3e03394d28989c705b6f829c76a9c7e4c36a2689
1012f61f46ff7aaf37cd3ce0ead64e035ec201dc
/coding-challange/codewars/6kyu/2020-01-19~2020-04-14/does-my-number-look-big-in-this/does-my-number-look-big-in-this.py
ef92ef56a4daa61186ead7f941fbab381a28b528
[]
no_license
polyglotm/coding-dojo
89efe22f5a34088e94c9e3a4e25cad510b04172a
43da9c75e3125f5cb1ac317d275475f1c0ea6727
refs/heads/develop
2023-08-17T11:59:30.945061
2023-08-16T14:13:45
2023-08-16T14:13:45
188,733,115
2
0
null
2023-03-04T05:49:21
2019-05-26T21:26:25
JavaScript
UTF-8
Python
false
false
597
py
# does-my-number-look-big-in-this # https://www.codewars.com/kata/5287e858c6b5a9678200083c from unittest import TestCase from functools import reduce def narcissistic(value): length = len(str(value)) return value == reduce(lambda a, b: a + b, [int(char) ** length for char in str(value)]) TestCase().assert...
[ "polyglot.m@gmail.com" ]
polyglot.m@gmail.com
a2575af33bb634af6f622eb1520fc75ac98f8c12
a4586ad2d7c8747c79a0a6fa25a367706f7b5638
/Chap3/project/api_weather_2.py
66a2159d6b7e4f82c5ff968372baeee39ff4281a
[]
no_license
AIHackerTest/Bruce-Qiao_Py101-004
e1ff0272d19b3ff734af2a96fd7fe9de2ef026e7
402026e0d2552578de017169ea9a8d17318a8471
refs/heads/master
2021-06-25T10:07:19.665410
2017-09-12T08:17:58
2017-09-12T08:17:58
103,240,197
0
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
""" 使用心知天气API """ import requests import json import re from const_value import API, KEY, UNIT, LANGUAGE from flask import Flask, render_template, request def fetchWeather(location): result = requests.get( API, params={ 'key': KEY, 'location': location, 'language': LANGUAGE, ...
[ "xiaowan5219@gmail.com" ]
xiaowan5219@gmail.com
eff68dae2504df1a5e60f809aa964bca0e998e02
06e34e2dface0b87fa785cab7e65422a5f20ba18
/Solutions/985-Sum-of-Even-Numbers-After-Queries/python.py
131d4b9326480a44fbd1879ea6c56af2850dc50c
[]
no_license
JerryHu1994/LeetCode-Practice
c9841b0ce70451c19c8a429a3898c05b6233e1d4
b0ce69985c51a9a794397cd98a996fca0e91d7d1
refs/heads/master
2022-02-10T04:42:28.033364
2022-01-02T04:44:22
2022-01-02T04:44:22
117,118,143
0
0
null
null
null
null
UTF-8
Python
false
false
469
py
class Solution(object): def sumEvenAfterQueries(self, A, queries): """ :type A: List[int] :type queries: List[List[int]] :rtype: List[int] """ ans = [] currsum = sum([i for i in A if i%2 == 0]) for val, ind in queries: if A[ind]%2 == 0: cu...
[ "hjr01211@gmail.com" ]
hjr01211@gmail.com
378a2de6fb2b861c7fca12322550f26bd2b5ec40
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part002299.py
75cd1f983de3a20c28837508a34522dc6bd7b2fc
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
3,998
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
b472f6f5cc57716d39c06e423808c87c7390c6b7
a34e3d435f48ef87477d3ae13ca8a43015e5052c
/tifffile_test.py
07af1815e1e30af537c4481aac2250714b5604aa
[]
no_license
haehn/sandbox
636069372fc7bb7fd72b5fde302f42b815e8e9b0
e49a0a30a1811adb73577ff697d81db16ca82808
refs/heads/master
2021-01-22T03:39:03.415863
2015-02-11T23:16:22
2015-02-11T23:16:22
26,128,048
1
0
null
null
null
null
UTF-8
Python
false
false
130
py
import tifffile as tif import time start_t = time.clock() i = tif.imread('test.tif') print time.clock() - start_t print i.shape
[ "haehn@seas.harvard.edu" ]
haehn@seas.harvard.edu