blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
97f4a6b8d5f5b27b834790d8aae3f6e3e017f377
65b8e025b81ff70660f9b2ea9396a2c839af290c
/tests/test_humidity_ratio.py
6c863db899fbab264c7ebb12a3a8d9877264dd3d
[ "MIT" ]
permissive
aeieng/python-measurement
190d7444a415ceaea662ed1e872d71d4dda34479
5a61711fbc728546489bd50bf18eb915eff231d3
refs/heads/master
2021-05-03T12:13:51.006737
2018-02-13T00:09:21
2018-02-13T00:09:21
120,496,630
0
0
null
2018-02-07T01:00:02
2018-02-06T17:29:49
Python
UTF-8
Python
false
false
374
py
from .base import MeasurementTestBase from measurement.measures import HumidityRatio class HumidityRatioTest(MeasurementTestBase): def test_humidity_ratio_kwarg(self): val1 = HumidityRatio(kg__kg=1.0) val2 = HumidityRatio(grain__lb=7000.0) self.assertEqual( round(val1.standa...
[ "jmcneill@aeieng.com" ]
jmcneill@aeieng.com
4d052fe88307855300ccd985d3126d99eccec8f2
54c7aee57c82b0d449e07bb28f595fea440c7e6e
/lacusClient_p2pTest/app_infrastructure/networkManagement/restClient.py
fe56d9fd9a4370b2bb3453ff0f64103faa24d6f8
[ "MIT" ]
permissive
tavog96/distribuidosProyecto
2a905fa9410221ad8fc316746080795738de4f90
8aee06ca580389412809353ac312c417aa1163fa
refs/heads/master
2020-07-30T11:49:09.353180
2019-11-12T21:32:09
2019-11-12T21:32:09
210,223,438
0
0
null
null
null
null
UTF-8
Python
false
false
1,295
py
from ...app_core.interfaces.restClientControllerInterface import restClientControllerInterface import requests import json class restClientController (restClientControllerInterface): defaultPort = 50505 remoteHostIP = '' def __init__(self, defaultPort, remoteHostIP): super().__init__() se...
[ "tavog96@gmail.com" ]
tavog96@gmail.com
890412cebe36b9b61ea39dc9f9193816c6d51130
7efa2a5179b6152e7e413657d90dc929956d5ecd
/fpre/tests/user_a.py
32b15859d479a55e928b91324693db1fe9daa2fb
[ "BSD-2-Clause" ]
permissive
fabian-hk/Secure-Two-Party-Computation
7b8cfc08c4b155ccc7e8fe31df7089f00696a482
f7e10a0a5c1b0361dd700391d81cdcc75612666d
refs/heads/master
2020-05-24T21:48:04.861586
2019-06-01T20:56:34
2019-06-01T20:56:34
187,481,351
8
0
null
null
null
null
UTF-8
Python
false
false
732
py
from fpre.fpre import Fpre import fpre.f_la_and as flaand from protobuf import FunctionDependentPreprocessing_pb2 from conf import conf certificate = "certificate-alice" partner = "bob.mpc" com = Fpre(conf.test_server_ip, conf.test_server_port, certificate, partner) com.init_fpre() auth_bits = flaand.get_authbits(co...
[ "hauckfabian@gmail.com" ]
hauckfabian@gmail.com
ec5441321e76af1f9586545d430293f3a4014a7d
e31bd208438af3d71e19a3be07dd9d4e7e10831b
/secretaria/migrations/0003_profissao.py
2f1a8984091cbb3d7b41d9cfec9a6673b41c83b9
[]
no_license
ismaely/SOFIL_RH
f9ef0cff349d54e2f61b0740c62eb37ab5bfde11
65e636a0d89ea415897ef08e8e7c9bd7425c5394
refs/heads/master
2022-12-09T14:13:27.215869
2020-04-16T18:49:07
2020-04-16T18:49:07
193,426,643
2
1
null
2022-12-07T23:54:14
2019-06-24T03:20:16
JavaScript
UTF-8
Python
false
false
1,132
py
# Generated by Django 2.2.1 on 2019-06-26 03:21 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('secretaria', '0002_estudante'), ] operations = [ migrations.CreateModel( name='Profissao', ...
[ "7ilipe@gmail.com" ]
7ilipe@gmail.com
1a41bd25d395783d808bbe7baa3ab53534669a7e
f5a82f7b2695ed08c9f7432013889590ed9cd1d0
/healthpoint/decorators.py
17bb337812dcdbf86156385ff894f6a57f2c31fe
[ "MIT" ]
permissive
lordoftheflies/django-healthpoint
bb717f3a4f9a96b9d81f10fbb45e6982c020e93b
aaf8c77150b2ae5bf7d3f9050841b885e8cda17a
refs/heads/master
2020-08-03T02:55:15.244656
2019-09-18T16:13:10
2019-09-18T16:13:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
from functools import wraps from healthpoint.registry import register_health_check def health_check(f): @wraps(f) def wrapper(*args, **kwargs): try: result = f(*args, **kwargs) if isinstance(result, bool): success, detail = result, 'OK' if result else 'ERROR' ...
[ "raymond.penners@intenct.nl" ]
raymond.penners@intenct.nl
30b9875c668ac718286b46df876fdd9aedeea679
6a24fbbc8f5a9ee7b08080e0c81cdbc85caca935
/bEncode.py
eaf1e7b86ba7447bd2a6a0d118d8ac23cb29e430
[]
no_license
Technochrome/pyTorrent
dcbbbd7d59af38d2d3b8ae63186afef3f0e0f991
fd79ed25fd1be32acbfd898d486cd315cb9a9d44
refs/heads/master
2020-06-01T16:06:59.822153
2013-11-13T23:26:16
2013-11-13T23:26:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,081
py
import sys import StringIO import string def peek(io): p = io.tell() c = io.read(1) io.seek(p) return c def bytesToHex(bytes): itoch = lambda i: "0123456789ABCDEF"[i] return string.join([itoch((c>>4)&0xf) + itoch(c&0xf) for c in bytes],'') def printBencode(d,tab='',listLen=10,byteLen=40): if isinstance(d,dict...
[ "flamenbird@gmail.com" ]
flamenbird@gmail.com
2c1fc8d25010246935865616a7f2d77dbf36a205
ff739149fb1091fcd090b5e68ab4b98d9fec9262
/tests/unit/test_sitemap.py
7f58445883b0626a64a1c800b55009991b5a7c33
[ "MIT" ]
permissive
zhuoranmusic/dash-docs
dcdab8a5543f6f3f10cb20d196148969bfe01943
3518869b195a7827fe661a90f9a2054c31680d44
refs/heads/master
2022-04-18T17:37:44.647847
2020-04-20T18:13:14
2020-04-20T18:13:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
import pytest import sys from generate_sitemap import create_sitemap @pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python3.6 or higher") def test_sitemap_is_updated(): with open('dash_docs/assets/sitemap.xml', 'r') as f: saved_sitemap = f.read() assert create_sitemap() == saved_sitem...
[ "chris@plot.ly" ]
chris@plot.ly
2fffbb85134f34d952aaae32c116c8a6990bef42
8809f5cb66207e225415bc87f371988adae797e8
/lxx/tmp.create-lemma.py
995c48d5a8051ab5522bdd82e60fcc6844aef82a
[]
no_license
ReneNyffenegger/Bible-Text-Sources
29de458d74817ad1134edcb0ff4eebbc22bb5163
8d1009cf380e68b926e6d96ffe0ddba6e873156c
refs/heads/master
2023-07-09T09:16:12.592415
2023-06-27T10:25:38
2023-06-27T10:25:38
44,729,428
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
#!/usr/bin/python import json import re lxx_f = open('../github.eliranwong/LXX-Rahlfs-1935/template/ossp_wordlist_lxx_only.csv') lemma_f = open('lemma', 'w') strongs_f = open('strongs', 'w') lxx_f.read(2) # skip BOM lxx_l = lxx_f.readline() while lxx_l: lxx_l = re.sub(',$', '', lxx_l) no, txt, json_tx...
[ "rene.nyffenegger@adp-gmbh.c" ]
rene.nyffenegger@adp-gmbh.c
ff755e8a281abc1e5afea579bbce884e577e92fb
873862a28fd31d2fe1807baaf18a0788b112dd57
/adsrefpipe/refparsers/ADSocr.py
88433da5e18a78761f5df84d5dfcab01a063e7d6
[ "MIT" ]
permissive
golnazads/ADSReferencePipeline
c92b90e3712dc08a5b2e44497bc96c8e07ec4eff
d41ed17b3b2fd7f5ae2deb48243f530cf7f494ee
refs/heads/master
2023-08-09T15:18:04.114158
2023-07-21T14:16:17
2023-07-21T14:16:17
242,004,478
1
0
MIT
2020-02-20T22:32:59
2020-02-20T22:32:59
null
UTF-8
Python
false
false
7,382
py
import sys, os import argparse import re from adsrefpipe.refparsers.toREFs import OCRtoREFs from adsrefpipe.refparsers.reference import unicode_handler from adsputils import setup_logging, load_config logger = setup_logging('refparsers') config = {} config.update(load_config()) class ADSocrToREFs(OCRtoREFs): ...
[ "28757512+golnazads@users.noreply.github.com" ]
28757512+golnazads@users.noreply.github.com
aa9facefd2669ed057397d86449409e25ed9d148
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/agrifood/azure-agrifood-farming/azure/agrifood/farming/_farm_beats_client.py
e987fc646fb78c5fa674aa650dfafae923c7d7bb
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
9,228
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
scbedd.noreply@github.com
27cf085e94189d07b34a451a64d689a0e82d923d
cb3b8f86dc9b2bf2b5dd614dda7bbedeea9105d9
/nyural/optimizers.py
0c294c54d068d78cc8718ee5d37a0cb2448a7421
[]
no_license
Sandy4321/nyural
34e85aa4ffe1264725834ef5261885ce9ddbbef9
acd423c17c7e68c773024f12a32b53efda634c42
refs/heads/master
2021-01-14T10:18:26.073554
2015-10-26T02:20:54
2015-10-26T02:20:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,010
py
from collections import defaultdict import numpy as np class Optimizer(object): # note: optimizers don't actually need to inherit from this class, this # just demonstrates the minimum structure that is expected def __init__(self): """Initialize the optimizer with whatever parameters are appropria...
[ "nyalta21@gmail.com" ]
nyalta21@gmail.com
98782bae440c055b4d0065c2eec59b80824ffaee
28483b16e58f04219b9e25640ffbc36360641a0a
/charissa_johnson/username_validation/main/urls.py
62fc3207054e96f776c5feefe1f08491db402884
[]
no_license
charissayj/python_july_2017
c69755a4d068440c2799b2b4a37ad15a4fb94a80
3939f823646b90b51f5c2d6f64699357728c3ab4
refs/heads/master
2020-12-02T06:18:14.106345
2017-07-27T20:20:47
2017-07-27T20:20:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
789
py
"""main URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-based...
[ "charissa.y.johnson@gmail.com" ]
charissa.y.johnson@gmail.com
4884f2033320248dfcdd6d2ebf5eecd26249c309
7a9995d177e63c20134705f1c123ac918b422c57
/actions.py
833284342cd8ce2396181b591a4d8d1315723aaf
[]
no_license
FirojNeosoft/VoiceIntegrationWithAlexa
6e053dc3cd8c82cf27a45361246ac97fcfc6e99b
440dda2c975b5f139ccabcfc2a5a854cacf1c572
refs/heads/master
2020-04-19T14:28:13.162142
2019-01-29T23:24:03
2019-01-29T23:24:03
168,245,532
0
0
null
null
null
null
UTF-8
Python
false
false
1,244
py
""" Actions For Skills Of Alexa """ import datetime, psycopg2 class Action(): """ Action class """ def __init__(self): # Database Connection self.conn = psycopg2.connect(database="AlexaDB", user="postgres",\ password="postgres", host="127.0.0.1", port="5432") ...
[ "firoj.nalband@neosofttech.com" ]
firoj.nalband@neosofttech.com
f987c95714b3b19c0d798755b64d27ae114cc266
6268a19db5d7806b3a91d6350ec2777b3e13cee6
/old_stuff/code/hpe-feb2019/qi2016/huawei/preprocess/load_data.py
76844a4293e4bbe7d395115563869a694f4be590
[]
no_license
aaronlws95/phd_2019
3ae48b4936f039f369be3a40404292182768cf3f
22ab0f5029b7d67d32421d06caaf3e8097a57772
refs/heads/master
2023-03-22T14:38:18.275184
2021-03-21T11:39:29
2021-03-21T11:39:29
186,387,381
0
0
null
null
null
null
UTF-8
Python
false
false
22,463
py
from __future__ import print_function from sklearn.utils import shuffle from PIL import Image import numpy import matplotlib.pyplot as plt from ..utils import xyz_uvd from skimage.transform import resize def get_filenames_labels(dataset_dir): xyz_jnt_gt=[] file_name = [] our_index = [0,1,6,7,8,2,9,10,11,...
[ "aaronlws95@gmail.com" ]
aaronlws95@gmail.com
c8bf965bce8cda9657261c0c2d513430c8ba4848
bda4b66c6b8ef0fb8cde7c2fab144970fe597d31
/asset_report/report/__init__.py
040892f9ddefb9f69bf7644fb607065a5293cd27
[]
no_license
drishti-developer/Afras
0d9798a1982c77c49c4658d2bd43803f3caaa0c2
69f187b11357e05ef34b0d81eed606c61c6ad2d7
refs/heads/master
2019-01-02T08:36:05.133261
2014-02-24T11:51:35
2014-02-24T11:51:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
23
py
import asset_report_wiz
[ "vipin.tripathi@drishtitech.com" ]
vipin.tripathi@drishtitech.com
0a5aa2fd854e65b4f7d5edabd1f8eb9ac9b50a6f
6d3279de4d94795fd015e3d5ebbb68eef5253720
/labs/python_basics/xls_to_csv.py
985083153c1c1d7dfd80f63fb06b5af3e6f55c74
[]
no_license
GerganaTancheva123/ML_Python
a3fedd4d47d2cb41be06fe5049f4b240785958a0
379419e1d27d1d33622e69363fcc69b9a8975311
refs/heads/master
2022-03-09T04:28:29.574624
2022-02-18T16:42:51
2022-02-18T16:42:51
249,216,462
0
1
null
2020-09-26T19:11:43
2020-03-22T15:47:30
Jupyter Notebook
UTF-8
Python
false
false
217
py
import pandas as pd df = pd.read_excel('../../project/datasets/ames_datapreprocessing_knime.xlsx', encoding='utf-8', index=False); df.to_csv('../../project/datasets/ames_datapreprocessing_knime.csv', encoding='utf-8')
[ "gerganatancheva1@gmail.com" ]
gerganatancheva1@gmail.com
f20d508b5a52f7b16b2bafc55271c61fa174d3e6
2694de88d78edf0bea981f8d23ec61d4d30d5882
/texture.py
ba5ec822e7b2b8b59dfc12e8a98558387d049c6c
[]
no_license
tabufellin/shader-hand-made
9da819a3d96f61d08ae61e6552370bb262ebec5d
8f1a70c9c0bebcec6bb672ea79ced8aeadff26ca
refs/heads/main
2023-01-22T21:38:46.015962
2020-11-28T02:22:33
2020-11-28T02:22:33
311,198,221
0
0
null
null
null
null
UTF-8
Python
false
false
1,285
py
import struct import os def color(r, g, b): return bytes([b, g, r]) class Texture(object): def __init__(self, path): self.path = path self.read() def read(self): image = open(self.path, "rb") image.seek(2 + 4 + 4) # skip BM, skip bmp size, skip zeros hea...
[ "noreply@github.com" ]
tabufellin.noreply@github.com
36d5daf08e54fc7a9f05e3301277467301632065
7b344848258ad46aeb30477f2767ecc804c8510e
/my_app/mysite/forms.py
d180f4c9c8344332d24d16540d6e31b07bcd0016
[]
no_license
smok2288/Bboard_Dronov
7a34c1a6dfe52260252fb6d976fb49a8aabeeb29
2601458239fdaa63b496ac41c9d2413c516e07ab
refs/heads/master
2023-07-12T01:18:46.956571
2021-08-15T19:20:53
2021-08-15T19:20:53
396,465,329
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
from django.forms import ModelForm from .models import Bd class BdForm(ModelForm): class Meta(): model=Bd fields = ('title', 'content', 'price', 'rubric')
[ "https://github.com/smok2288" ]
https://github.com/smok2288
f7f7eda4a188511ca65e1cb0a7660387d2ce5312
d042b8895dc8347356fa4d5984d07bff41eecc73
/obtainfo/views/views.py
33c81e13d9f89ceb67d0dc937a7b184612156a68
[ "Apache-2.0" ]
permissive
jzx1230/obtainfo
257b075c32c3448096391f258f42dd7f0c081350
883c29ab0a462d11682b60b9b52b2fc93031b816
refs/heads/master
2021-05-08T04:19:33.810848
2015-10-13T10:10:10
2015-10-13T10:10:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,997
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from django.db.models import Q from django.conf import settings from django.shortcuts import render from django.core import serializers from django.forms.models import model_to_dict from django.http import HttpResponse, Http404, HttpResponseRedirect from django.vi...
[ "pczhaoyun@gmail.com" ]
pczhaoyun@gmail.com
4f27b2f80d0c42c3f4b9d365e081ee521395bbfc
0cb1fedea7d2ab7c13c525cc17e83f4e8bc59173
/mutiencrypter/rsa.py
c27ec42c2632d1c36f8cbb6217d909b10aeeb8f3
[]
no_license
cyfaaa/Security-Tool-in-Python
be04dbcbff015d8e63a34cd88d35ee6c5e849c69
bbcb940390027181cb892490cf9abcb06f741dac
refs/heads/master
2020-07-04T02:05:37.181011
2019-08-13T10:23:01
2019-08-13T10:23:01
202,117,175
1
0
null
null
null
null
UTF-8
Python
false
false
3,835
py
import random def gcd(a, b): if (b == 0): return a else: return gcd(b, a % b) def xgcd(a, b): x, old_x = 0, 1 y, old_y = 1, 0 while (b != 0): quotient = a // b a, b = b, a - quotient * b old_x, x = x, old_x - quotient * x old_y, y = y, old_y - qu...
[ "cyf@cyf-macbookair.local" ]
cyf@cyf-macbookair.local
8eeb58371d87b121f5bb1772c07014e7b3a2f4bc
cc09fb4e4272177a4c10d3385c921cf45b61849d
/Gráficos2.py
5f821c246e0c553b6aaf435765829032fe0198b9
[]
no_license
felipelimapy/Graficos_com_Matplotlib
a7995fbddde66d9907d40995f1f3ac59ed9fec31
3ff3802cdef398ecd9d81e22ed95adf903228b7f
refs/heads/master
2020-07-04T07:52:13.894710
2019-08-14T19:08:32
2019-08-14T19:08:32
202,211,627
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
import matplotlib.pyplot as plt municipios=['Manaus', 'Tefé','Maués','Coari','PF', 'Iranduba'] media_pH=[7.5, 8, 5.6 , 6, 9.8, 1.2] plt.plot(municipios, media_pH, label='pontos', color="green", marker='o') plt.xticks(municipios) plt.ylabel("pH no solo") plt.xlabel("média do pH do solo") plt.title("pH n...
[ "noreply@github.com" ]
felipelimapy.noreply@github.com
0ae067c5eba7b1ffc6636c0e620c1c15be4f60e6
985d4aa1be92f7ef85148a6af258384f846fbc6c
/dataInput.py
2abaafce4c7a030f36b9d66074efbf8979f10994
[]
no_license
seororo358/Tensorflow_CNN_exp
a9bca4e3b4c7141ababeae3ab669df65d2d8f157
c9d1d69d25105f965bac98af68ff4709aa270e4a
refs/heads/master
2023-02-03T12:43:42.278378
2020-12-23T02:02:25
2020-12-23T02:02:25
323,776,645
0
0
null
null
null
null
UTF-8
Python
false
false
1,785
py
# -*- coding: utf-8 -*- """ Created on Wed May 30 10:38:00 2018 @author: minsooyeo119112 """ from matplotlib import pyplot as plt import numpy as np class dataInput: def __init__(self): self.trainData, self.testData = self.dataLoad() self.labelName = ['airplane', 'au...
[ "ssr3588@nate.com" ]
ssr3588@nate.com
2abc66004d8005e3de74c1faa0faa5d8838067b4
d2c29025d9a83b061ac515564290464b93b63a91
/main.py
8ea112c2789eec68d29b5119c37fc9ec0b469b27
[]
no_license
smrussel/blog-site-flask
d50c666324d0c02e3dd86eaab4e097f3a8081d1d
0a416aef88cf90ffd37f2161863a3dd89e13ea32
refs/heads/master
2023-07-14T21:13:59.523806
2021-08-19T12:57:03
2021-08-19T12:57:03
397,868,403
2
0
null
null
null
null
UTF-8
Python
false
false
8,468
py
from flask import Flask, render_template, redirect, url_for, flash, abort, request from flask_bootstrap import Bootstrap from flask_ckeditor import CKEditor from datetime import date from werkzeug.security import generate_password_hash, check_password_hash from flask_sqlalchemy import SQLAlchemy from sqlalchemy.orm imp...
[ "pythoncoderhub54@yahoo.com" ]
pythoncoderhub54@yahoo.com
5bdcae03801bc9263730f63678c10f2052be98f5
5c8139f1e57e06c7eaf603bd8fe74d9f22620513
/PartB/py全排列4.py
b1e46e018cad4170fe7d76313c34805ed586b0ef
[]
no_license
madeibao/PythonAlgorithm
c8a11d298617d1abb12a72461665583c6a44f9d2
b4c8a75e724a674812b8a38c0202485776445d89
refs/heads/master
2023-04-03T07:18:49.842063
2021-04-11T12:02:40
2021-04-11T12:02:40
325,269,130
0
0
null
null
null
null
UTF-8
Python
false
false
1,133
py
# 列表的全排列的实现。 # 全排列算法 class Solution(object): def permutations(self, nums): if nums is None: return [] res = [] def helper(start): if start == len(nums): res.append(nums[:]) for i in range(start, len(nums)): nums[i], nu...
[ "2901429479@qq.com" ]
2901429479@qq.com
a1c16962e511343f6654c076de283096891c70f9
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/hard/3_1.py
5e5a923d3f652d3bb692c335928a84af29e9c3c5
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
1,994
py
GUI to Shutdown, Restart and Logout from the PC using Python In this article, we are going to write a python script to shut down or Restart or Logout your system and bind it with GUI Application. The **OS module** in Python provides functions for interacting with the operating system. OS is an inbuilt libra...
[ "qmnguyenw@gmail.com" ]
qmnguyenw@gmail.com
3655ea9552cbabdc6684ddb498d2ad34a35c0af9
a62ed8ef64a4e97d008a66115aeee759e9f5de0a
/_5_token/scripts/attack.py
fc7c74c28c431cf6e7cfe618c0ce9a3f29522173
[]
no_license
replikeit/ethernaut_solutions
595ac5f27a547a1a45fba02f0a37ed7929ca1d93
6958228ba9be47272359a9b2837e6cf990b7f322
refs/heads/master
2023-07-21T05:45:16.806940
2021-08-29T15:54:06
2021-08-29T15:54:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
from brownie import * from .reports import * a0 = accounts[0] # target deployer a1 = accounts[1] # attacker account BIGNUMBER = (10**18) REPORT = Report() REPORT.add_account(a0, 'Target deployer') REPORT.add_account(a1, 'Attacker') def main(): target = prepare() attack(target) def prepare(): # deploy t...
[ "dan.ogurtsov@gmail.com" ]
dan.ogurtsov@gmail.com
08320cf0e22cd96627531f4a974ef96a4213a7f1
086220d056fe15e8a97ed4b2392c41a5e1582857
/codes/models/modules/thops.py
777d40ab500302ffc10fa4e0459c88f21585e010
[ "Apache-2.0" ]
permissive
jprost76/HCFlow
2048931acf7698cb2fff20000160dbc404bb7f2b
10deed6f8f719e72cf1c3cad486198b8a506c805
refs/heads/main
2023-08-07T12:18:37.681269
2021-09-29T10:33:05
2021-09-29T10:33:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,283
py
import torch def sum(tensor, dim=None, keepdim=False): if dim is None: # sum up all dim return torch.sum(tensor) else: if isinstance(dim, int): dim = [dim] dim = sorted(dim) for d in dim: tensor = tensor.sum(dim=d, keepdim=True) if not ke...
[ "noreply@github.com" ]
jprost76.noreply@github.com
73baf965eeb3006306eb297aabdd0451da7cb884
7dc9a092325f4ca03d2186944105214735de41ea
/craftaws/__init__.py
be560699661a0b5367c9c29de91c6490f841e5d8
[]
no_license
ThinkinGim/stepfunction-demo
9b0abde8f06938137d11a8695264acd7d4297826
f706faeb479d2b829c128a39c4a4cc5b4ac18cbb
refs/heads/main
2023-05-01T15:36:12.216764
2021-05-11T13:11:05
2021-05-11T21:47:43
366,378,841
0
0
null
null
null
null
UTF-8
Python
false
false
3,809
py
from aws_cdk import ( core, aws_ec2, aws_iam as iam, aws_lambda as lambda_, aws_stepfunctions as sfn, aws_stepfunctions_tasks as tasks, ) class network(core.Stack): def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: super().__init__(scope, id, **kwargs) ...
[ "noreply@github.com" ]
ThinkinGim.noreply@github.com
28fb7ba8851425b473d645e4ded39fd630653ec6
1797576f7ebc6eea049fea3ff91831cb140afa35
/Assignments/Assignment-2/string/format.py
af66f156a97503df9f587cacc99211eda27b24e3
[]
no_license
Ayushd70/OCF-Python
8dd44f9ec08509d9610a6d8310622354e88097c2
bea41d997056235051db9f54f66790f66d7d8a2a
refs/heads/master
2023-06-03T20:38:52.701002
2021-06-23T15:38:56
2021-06-23T15:39:46
367,636,185
1
0
null
null
null
null
UTF-8
Python
false
false
47
py
S='hello {name}' print(S.format(name="World"))
[ "ayushdubey70@gmail.com" ]
ayushdubey70@gmail.com
87b45d6a7a8aa7945dc7a4015923d2d0f1b3f823
d22c7dc57fe448c60e82b31725115c5d8c69f995
/celery_config.py
73fa01fd03478bbfd4571a59c93bd0fb502c6cf1
[ "MIT" ]
permissive
noanflaherty/self-replicating-repo
3b63be8f0849e7b88556a9dc40113f961f86735b
4977f24e0554cd160944f1449f3928e9f156606c
refs/heads/master
2023-01-24T15:18:23.729665
2018-11-19T16:23:59
2018-11-19T16:23:59
155,890,338
0
0
MIT
2023-01-13T22:54:17
2018-11-02T16:06:48
JavaScript
UTF-8
Python
false
false
394
py
import os from dotenv import load_dotenv load_dotenv() # From env vars if os.environ.get('LOCATION') == 'PROD': broker_url = os.environ.get('CLOUDAMQP_URL') else: broker_url = os.environ.get('CELERY_BROKER_URL') result_backend = os.environ.get('REDIS_URL') # Hard-coded task_serializer='json' accept_content=...
[ "noaflaherty@gmail.com" ]
noaflaherty@gmail.com
54cf93179518b8b172fbb7bd732db4e3b0d2fd34
5094728779e2ac3dcfc9748d759987e9bc91ed53
/t_06_exception.py
35a24391e4f6b4ca2cbd12b881196e9f0a7c470f
[]
no_license
cegraris/pythontutorial
cebe6f427d759fae2899f37dadaa38c6771a5455
0a7220537af6d3af93c105144ba4bdfe35013aa2
refs/heads/main
2023-05-12T11:55:38.867108
2021-06-02T17:16:02
2021-06-02T17:16:02
365,843,134
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
# try ================================== import logging try: ... except ZeroDivisionError as e: logging.exception(e) except ValueError as e: logging.exception(e) else: ... finally: ...
[ "wusthink@gmail.com" ]
wusthink@gmail.com
b3ae4dd8d3b6d3f3f5f2d0f12474ab0ea469bd94
7ad19e854135977ee5b789d7c9bdd39d67ec9ea4
/members/amit/clf/audio_processing.py
571343202183ddc05c2774531c7e5fd1d3a26acd
[ "MIT" ]
permissive
Leofltt/rg_sound_generation
1b4d522507bf06247247f3ef929c8d0b93015e61
8e79b4d9dce028def43284f80521a2ec61d0066c
refs/heads/main
2023-05-02T19:53:23.645982
2021-05-22T16:09:54
2021-05-22T16:09:54
369,842,561
0
0
MIT
2021-05-22T15:27:28
2021-05-22T15:27:27
null
UTF-8
Python
false
false
1,248
py
import librosa import numpy as np from typing import Dict def get_mel_spectrogram(audio: np.ndarray, params: Dict) -> np.ndarray: mel_spec = librosa.feature.melspectrogram( audio, sr=params.get("sample_rate"), n_fft=params.get("n_fft"), hop_length=params.get("hop_len"), n_...
[ "amit.yadav.iitr@gmail.com" ]
amit.yadav.iitr@gmail.com
2b8017d7766c5fd2ca521eb26c6729617083b685
a878325fd8fb8ef476cc894b1145d5cad9bebd3c
/prog04b.py
73cc0ca391c2106aabfb5eafe4a6039ae071131e
[]
no_license
RestlessMystic/TamingthePython
5ffd5ba84c30a1a202aba47cf264f9edb81232b8
8e05d88eb979b4948adac75fd793ee3822a9c65e
refs/heads/master
2016-09-05T20:33:35.926453
2013-08-25T09:49:06
2013-08-25T09:49:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
# # Taming the Python # Govind Maheswaran # Example Programs # Prog 04b # Program to demonstrate for loop for i in range(1,5): print i; for i in range(1,10,2): print i;
[ "govindmaheswaran@gmail.com" ]
govindmaheswaran@gmail.com
a0e61f5c74df9f18379f59f87bef20d5c12f7081
63271db556e4de0b2b8c3782ca6e083290e9c01d
/SHgold/SHgold/mian.py
64b3a857e77336cba39527fedfaf785720e05f51
[]
no_license
nuoyi-618/scrapy
09068b37b77a3528f229c8ba368d3c652f651401
e40f486a6fddbebd27ee1de97c7ff5a4c550f8ce
refs/heads/master
2020-05-03T14:59:32.492113
2019-03-31T13:49:32
2019-03-31T13:49:32
178,693,656
0
0
null
null
null
null
UTF-8
Python
false
false
83
py
from scrapy import cmdline cmdline.execute('scrapy crawl SHgold_spider'.split())
[ "noreply@github.com" ]
nuoyi-618.noreply@github.com
3f1bc7c247ce6f9db5bd435471a06ee8d3eda970
4bf6cd0269cde7827219bfad51d6ce65074bb7c1
/meta/hooks/pre-commit.py
32e3e23e4d1e7419b0e9500624cde92873f7a780
[ "CC-BY-4.0", "MIT" ]
permissive
RichysHub/Squimoji
b62e3314e2a0365395c7f0b203d72989f6a04ca6
73e231b147aebd4fbd63604ba212b87e726b54e8
refs/heads/master
2021-11-28T05:34:08.957689
2021-11-26T21:05:54
2021-11-26T21:05:54
168,065,136
3
0
null
null
null
null
UTF-8
Python
false
false
2,480
py
import json import re import subprocess import sys inkscape_executable = "C:/Program Files/Inkscape/inkscape.exe" print("Checking staged files for color compliance") try: # Get files in staging area: commit_text = subprocess.check_output(["git", "status", "--porcelain", "-uno"], ...
[ "richardjspencer93@gmail.com" ]
richardjspencer93@gmail.com
8fb1e8bf2d268cc774d14e8ccd13c2898c3813ea
6b5f840398183581bae04242453bd833b2e1409b
/ansys/mapdl/core/mapdl_corba.py
fa9604ef7191be0c68be773e08fccef61eb2c0b5
[ "MIT" ]
permissive
natter1/pyansys
1b109d889c516b9aa17d510f9671201bdaddf4e5
33392706e60688268c95001d5754e834957dcd01
refs/heads/master
2021-06-17T03:12:51.487326
2021-05-08T01:19:32
2021-05-08T01:19:32
202,570,893
0
1
NOASSERTION
2021-05-08T00:00:46
2019-08-15T15:57:11
Python
UTF-8
Python
false
false
11,568
py
"""CORBA implementation of the MAPDL interface""" import atexit import subprocess import time import re import os import weakref from ansys.mapdl.core.mapdl import _MapdlCore from ansys.mapdl.core.misc import threaded, random_string from ansys.mapdl.core.errors import MapdlRuntimeError, MapdlExitedError from ansys_co...
[ "noreply@github.com" ]
natter1.noreply@github.com
b4b694bd0706b269f741b4e7b90bca506b194cc9
885c89c56923565117b6244afa6c16664e25094f
/vspk/v5_0/nugateway.py
3158028e3193886ae359bc573db55e0e6968fa7a
[ "BSD-3-Clause" ]
permissive
ikbalcam/vspk-python
0017f5c7c4f9aaca604fb4da42884eddc497ee00
1c6d28c8f8f7bcadbd1722cdc3046b01dbf1d9e8
refs/heads/master
2021-10-01T16:14:00.380613
2017-11-02T21:43:41
2017-11-02T21:43:41
115,129,333
0
0
null
2017-12-22T15:52:11
2017-12-22T15:52:11
null
UTF-8
Python
false
false
19,056
py
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # no...
[ "corentin.henry@nokia.com" ]
corentin.henry@nokia.com
c8ce36e7f047b623defb9b3a946c5a7cb799aa02
be61a9f30274514857ea34297719157f1e5b8447
/fhir/resources/DSTU2/age.py
9975cdbeda716d349901880fad136791d72da6f6
[ "BSD-3-Clause" ]
permissive
jwygoda/fhir.resources
ceff3a620100d2e875136b86d3e82816c0e60a33
5053565570d1ca992d9971d20db813c53fd350b9
refs/heads/master
2021-02-05T02:59:17.436485
2019-07-18T10:57:33
2019-07-18T10:57:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
951
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 1.0.2.7202 (http://hl7.org/fhir/StructureDefinition/Age) on 2019-05-14. # 2019, SMART Health IT. from . import quantity class Age(quantity.Quantity): """ A duration (length of time) with a UCUM code. There SHALL be a code if there i...
[ "connect2nazrul@gmail.com" ]
connect2nazrul@gmail.com
f3c9e9f41e6da7340eaa39fa9d686a0b0fa3de25
012f882a6b354f58ce16d2a58f727eadcfe6e47e
/MainProgram.py
9b81f8da6ce8a0f96e5551bbdb7858a8ffd7792a
[]
no_license
MuhammadAhmedKhalid/Projects
93e0b1281067f6f6cee613479f9f5d22f8efa00a
dd355e67e3e774008fcd8f698d04c4ead62265b1
refs/heads/master
2021-02-09T01:34:32.634869
2020-03-01T21:09:23
2020-03-01T21:09:23
244,223,450
0
0
null
null
null
null
UTF-8
Python
false
false
8,802
py
import sqlite3 from sqlite3 import Error def login(): uname = 'admin123' pword = '123456' for i in range(0,3): input1 = input("Enter Username: ") input2 = input("Enter Password: ") if (input1 == uname) & (input2 == pword): selectOptions() break...
[ "noreply@github.com" ]
MuhammadAhmedKhalid.noreply@github.com
c467a8989e83b33c6f9211a8e00bb6257f7c8175
35876012de636c0bfa6107118e8177c4aa0ff880
/chaojiying.py
bc7baa587ab887c92911e85622f9b1e391f06cb4
[]
no_license
Qithird/spider-test
5dfe4fa715b31378955c219931e3063e0ab50c43
3cee1f93fe7743df732c20a11a87a3d0fb4b8163
refs/heads/master
2020-03-23T07:07:41.153896
2018-07-17T08:10:57
2018-07-17T08:10:57
141,250,127
0
0
null
null
null
null
UTF-8
Python
false
false
1,616
py
#!/usr/bin/env python # coding:utf-8 import requests from hashlib import md5 class Chaojiying_Client(object): def __init__(self, username, password, soft_id): self.username = username self.password = md5(password.encode('utf-8')).hexdigest() self.soft_id = soft_id self.base_param...
[ "920664709@163.com" ]
920664709@163.com
25752d54216e1107ab2fd434159883fd69ca251e
a9eb12ef11b671d9a3e3cb9562fd26928d3e1815
/stock_trade/GetLongData.py
fc1a45f0ae4e0b745ca4c72a4521eeab4ecf425f
[]
no_license
longfeiw07/stock
f7c92550805896b776254cd9be671428b455f749
5e1a55bd6f360054cb3d589935f106dffb74b929
refs/heads/master
2020-09-21T21:37:22.054449
2019-11-07T15:26:46
2019-11-07T15:26:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,922
py
import os from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains import time import re import pandas as pd from selenium.common.exceptions import WebDriverException def wheel_element(element, deltaY = 120, offsetX = 0, offsetY = 0): error = element._parent.execute_script("...
[ "38155482+herb711@users.noreply.github.com" ]
38155482+herb711@users.noreply.github.com
4a156d8ef09c4d69a6dde0bc892c43557e66c29b
0bcbdf19be4749d3babc9731f2c57172655c4285
/basic programs/find_last_digit_factorial_divides_factorial.py
c9e31574c947ee5e1656e9d74c70c55b1f098fa1
[]
no_license
pratikbarjatya/Python-OOPS
d0dec073a22790cca8a7883642ff38743822c3ea
2f03e21cb1352e462d92d381951d1b00bcd40109
refs/heads/master
2023-01-27T14:32:50.645555
2020-12-09T14:19:20
2020-12-09T14:19:20
254,899,273
0
1
null
null
null
null
UTF-8
Python
false
false
1,734
py
# Find the last digit when factorial of A divides factorial of B """We are given two numbers A and B such that B >= A. We need to compute the last digit of this resulting F such that F = B!/A! where 1 = A, B <= 10^18 (A and B are very large). Examples: Input : A = 2, B = 4 Output : 2 Explanation : A! = 2 and B! = 24....
[ "pratikbarjatya@gmail.com" ]
pratikbarjatya@gmail.com
1d00b242cf132072efcf3453842c9a8c54e066b8
a0367d26bf357725ab97c36c930ecb2ae3521355
/algorithm-problem-solving-strategies/brute_force/picnic.py
a7fb2516d80d6607c9b9f8c948aad4f33afcd824
[]
no_license
fidemin/algorithm-study
c511a59cb8f3bd227922d87465b2d8a529a1f7a8
41277da10c1ec966a20664b961f8e75434ac517f
refs/heads/main
2022-06-13T00:43:54.223348
2022-06-02T16:37:40
2022-06-02T16:37:40
163,795,704
0
0
null
null
null
null
UTF-8
Python
false
false
1,147
py
def make_is_friend(friends): is_friend = [[False]* 10 for _ in range(10)] is_friend[0][0] = True for i in range(0, len(friends), 2): is_friend[friends[i]][friends[i+1]] = True is_friend[friends[i+1]][friends[i]] = True return is_friend def count_pairings_recursive(n, is_friend, take...
[ "yhmin84@gmail.com" ]
yhmin84@gmail.com
ba922c5445274bb9aa6a8922f040363fbcc0e779
5ad4d4ff6060f67e262e42f0d6a24496efa87235
/10_9_silent_cats_and_dogs.py
74d432d17c5575b6e2dfbbe49c2d012c2325a024
[]
no_license
silasfelinus/PythonProjects
779bba4b508e2110510a1607e44c3edbf8a232ea
4474e03c9e21e35c100bfb524a86a35d1b59820d
refs/heads/master
2022-12-08T12:34:42.987932
2020-08-27T21:10:30
2020-08-27T21:10:30
290,848,514
0
0
null
null
null
null
UTF-8
Python
false
false
471
py
def file_error(filename): msg = "Sorry, the file " + filename + " can't be found." print(msg) cat_file = "cats.txt" dog_file = "dog.txt" try: with open(cat_file) as f_obj: cat_names = f_obj.read() cats = cat_names.split() print("Cat names are: ") print(cats) except FileNotFoundError: pass try: with ope...
[ "silasfelinus@gmail.com" ]
silasfelinus@gmail.com
13a4905ae7077bf34c1cfcef8d53ed482623a436
2ff4a38b86dfee4115c0a9280e95ff042d36f8bd
/programmers/lv2/emergency_boat_lv2.py
4e7c867c41c62802da3a4d88574770e17a8f9e71
[]
no_license
ohtaehyun/algo_study
5e0adc6d18a186d959f0ad191af0d916f5c99793
87ac40b89b5ddbba09e8b3dd86ed0a3defc0590b
refs/heads/master
2023-02-24T13:52:37.323111
2021-01-25T09:32:55
2021-01-25T09:32:55
284,712,413
0
0
null
null
null
null
UTF-8
Python
false
false
385
py
from collections import deque def solution(people, limit): answer = 0 people.sort() p =deque(list(people)) while p : weight = p.popleft() remain_weight = limit - weight while p : w = p.pop() if w <= remain_weight: break else : ...
[ "othdev95@gmail.com" ]
othdev95@gmail.com
cae919b0190786a36a947426686bd056b5d69560
c9af19f63f356dde5e6be34379b4741fcf3ca918
/setup.py
10318167a36ec96614515b40eec8c40a0a74ca8b
[ "MIT" ]
permissive
borgess28/coronagraph
469fe13e13caa55c266a17d3682d041741326c10
b321693512422343b08ada7e246413e1f4bae4cc
refs/heads/master
2023-05-30T08:00:17.501907
2020-05-07T05:32:23
2020-05-07T05:32:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,398
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division, print_function, absolute_import from setuptools import setup # Hackishly inject a constant into builtins to enable importing of the # module in "setup" mode. Stolen from `kplr` import sys if sys.version_info[0] < 3: import __builtin__ ...
[ "jlustigy@uw.edu" ]
jlustigy@uw.edu
c97d5c8534d89a3098f1408d6927557520a716a0
09e5cfe06e437989a2ccf2aeecb9c73eb998a36c
/modules/cctbx_project/xfel/command_line/xtc_dump.py
cf748f55c06c41577045989d90fdb4ed5880b085
[ "BSD-3-Clause-LBNL", "BSD-3-Clause" ]
permissive
jorgediazjr/dials-dev20191018
b81b19653624cee39207b7cefb8dfcb2e99b79eb
77d66c719b5746f37af51ad593e2941ed6fbba17
refs/heads/master
2020-08-21T02:48:54.719532
2020-01-25T01:41:37
2020-01-25T01:41:37
216,089,955
0
1
BSD-3-Clause
2020-01-25T01:41:39
2019-10-18T19:03:17
Python
UTF-8
Python
false
false
10,862
py
from __future__ import absolute_import, division, print_function from six.moves import range # -*- Mode: Python; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- # # LIBTBX_SET_DISPATCHER_NAME cctbx.xfel.xtc_dump # import psana from xfel.cftbx.detector import cspad_cbf_tbx from xfel.cxi.cspad_ana import cspad...
[ "jorge7soccer@gmail.com" ]
jorge7soccer@gmail.com
73caa9ce9f9121dc8f031a69d2a264d2f4fb475e
5bd58323e622f58a4de979d36fde04276477b8ea
/code/py/heap/lc_692_Top_K_Frequent_Words.py
89b6bedef5de15a060c07f00807c7ec9103d8c8e
[]
no_license
HJSang/leetcode
e3c98e239b693c742fa3fbec056dce0821cb725c
9399de82326f90c7f4805d649e15fa6a4ad86a16
refs/heads/master
2021-07-07T14:04:03.401727
2020-11-23T04:01:35
2020-11-23T04:01:35
205,892,155
0
0
null
null
null
null
UTF-8
Python
false
false
1,276
py
# 692. Top K Frequent Words # Medium # # Given a non-empty list of words, return the k most frequent elements. # # Your answer should be sorted by frequency from highest to lowest. If two words have the same frequency, then the word with the lower alphabetical order comes first. # # Example 1: # Input: ["i", "love...
[ "sanghj0923@gmail.com" ]
sanghj0923@gmail.com
dd1ed5bd20b5a60fd53bd43317230eb05bda02ff
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_267/ch80_2020_06_17_20_39_13_688401.py
d534bc9a3759e6fe0eb67eb6874f60c857066930
[]
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
203
py
def interseccao_chaves(dicio1, dicio2): lista_chaves = [] for i in dicio1.keys() and l in dicio2.keys(): if i == l: lista_chaves.append(i) return lista_chaves
[ "you@example.com" ]
you@example.com
79b5ef3bd637ff8bbc5bb560093fa19e02d11270
8e7f87f4c876b2ef8a1d2bba1a146dbad417d1ac
/webcars/webcars/settings.py
be04b6a18c0666570abf6182e38ac073e28c4069
[]
no_license
ATMAROZAK/carsau
48ff72ecd61d401bf3367e9d327eaa5cfb750dbd
d5d22d5829664c20e19769c31c3375336c8df895
refs/heads/master
2020-03-14T06:56:49.329360
2018-05-15T13:40:53
2018-05-15T13:40:53
131,493,644
0
0
null
null
null
null
UTF-8
Python
false
false
4,146
py
""" Django settings for webcars project. Generated by 'django-admin startproject' using Django 2.0.4. 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 os, d...
[ "ib_vadim@mail.ru" ]
ib_vadim@mail.ru
71270a82c8899f57b40f543da8d5a9da416ec63f
fb85e81180cfcc061055d475d3d90cbf6b471d8a
/venv/bin/easy_install-3.5
909969bf46a06793f56477c19b8691863c3929d4
[]
no_license
DarkKnight1317/python-pi-example
a309bcf3ef17a2114cfd1dc72a41dddb050ac87c
d74cf74984634b8389e25d8d806a5c4da5c2e8a7
refs/heads/master
2021-01-07T21:31:20.039143
2020-02-20T08:26:41
2020-02-20T08:26:41
241,825,521
0
0
null
null
null
null
UTF-8
Python
false
false
453
5
#!/home/65bijitrevathy71/PycharmProjects/pi/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.5' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.e...
[ "bishal1banerjee@gmail.com" ]
bishal1banerjee@gmail.com
db9c9ef77bf6aaf5f803cc25c7e9bd1b81ae8c15
0dcf78e319956f2cb2327c5cb47bd6d65e59a51b
/Python3/Array/FindTheTownJudge/Naive2_997.py
7f1a842199b42bd833b49f6df7d29d0c089ee772
[]
no_license
daviddwlee84/LeetCode
70edd09a64a6f61492aa06d927e1ec3ab6a8fbc6
da1774fd07b7326e66d9478b3d2619e0499ac2b7
refs/heads/master
2023-05-11T03:16:32.568625
2023-05-08T05:11:57
2023-05-09T05:11:57
134,676,851
14
4
null
2018-05-29T14:50:22
2018-05-24T07:18:31
Python
UTF-8
Python
false
false
495
py
from typing import List class Solution: def findJudge(self, n: int, trust: List[List[int]]) -> int: # find a node that in edge is n - 1 and out edge is 0 in_edges = [0] * n out_edges = [0] * n for ai, bi in trust: in_edges[bi - 1] += 1 out_edges[ai - 1] += 1...
[ "daweilee@microsoft.com" ]
daweilee@microsoft.com
df6570463bf345354f02796f9fdc4ae2c2dd95c9
7f70571bc34cdb93a3b973b458915bbc8b3a4e24
/pythoncode/search_rotated_list.py
6d4c78b548d7b15de39c7e5183004e033f7ca477
[]
no_license
Moxxi-ziFe/hogwarts
13682453b9bad9391cf7efe32ef1b85e207f175c
297bd0636d37344e0624ff99d8452bcc9d08f894
refs/heads/master
2023-03-12T08:06:00.290969
2021-02-24T10:08:53
2021-02-24T10:08:53
325,500,010
1
0
null
null
null
null
UTF-8
Python
false
false
1,397
py
class Solution: def rotate_list_search_minimum(self, nums: list): if len(nums) <= 1: return nums[0] left = 0 right = len(nums) - 1 while left + 1 < right: if nums[left] <= nums[right]: return nums[left] else: mid = (...
[ "dengfenghou@outlook.com" ]
dengfenghou@outlook.com
9b41d87dcf52cc0c7c937881ecb578353f1ec28d
a0ba425c9dc32b4e2face4228b7252d19b303f6f
/deploy-remote/localization/arucodetect-keeper.py
5328717c04d3cabaec664108d1fe4479e02fd6f5
[ "MIT" ]
permissive
pabsan-0/sub-t
a1f05c57cc39a9bd4fc92631027f161da927e6a3
7217fdbd3ba73a4d807939f3a2646ac9f4f00fe0
refs/heads/master
2023-08-14T20:37:22.654859
2021-10-05T15:44:22
2021-10-05T15:44:22
339,476,024
0
0
null
null
null
null
UTF-8
Python
false
false
5,744
py
import numpy as np import cv2 import cv2.aruco as aruco import math # import matplotlib.pyplot as plt import os import time import pprint ''' Use this script to receive live feed and find aruco patterns on it. Requires a callibrated camera matrix and distortion vector. DEPS: RedmiNote9Pro.nz: a file from which to loa...
[ "noreply@github.com" ]
pabsan-0.noreply@github.com
3c2aab3ecac9f232f388ff9061c30d4daeb22e65
c8b3882a09347076e78324dd106b40579b380f32
/medical_web/manage.py
d91730869c305c0dd87957564ee1888837fde57b
[]
no_license
medical-weetech-co/medical.github.io
ec63323937a61ca08b04ea04070ba7c180a2cab1
ed0324e104195a4b100aedc5da03d70a9982bac1
refs/heads/master
2021-07-05T12:51:37.400915
2017-01-25T08:54:06
2017-01-25T08:54:06
59,278,395
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "medical_web.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that ...
[ "peichieh@gmail.com" ]
peichieh@gmail.com
3eb8f4986634cf2ae84349c3e3527ede3532d582
6d0859eaf8fe458378e7f5688975edd993ce1e5a
/bwagtail/bootstrap_grayscale/migrations/0041_auto_20181215_2026.py
78eb576c55bf794bae628f66604866f5f1d09ee0
[]
no_license
mjlabe/bwagtail-cms
8e52c2a9627d4540bd30c3bca871f1f841451061
a214209a9bc61a5b7c6db3ff2f4741d1535ed3ac
refs/heads/master
2022-12-04T23:12:39.546791
2019-09-10T01:25:38
2019-09-10T01:25:38
207,430,003
1
1
null
2022-12-04T11:05:20
2019-09-10T00:29:15
Python
UTF-8
Python
false
false
9,580
py
# Generated by Django 2.1.4 on 2018-12-15 20:26 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields import wagtail.images.blocks class Migration(migrations.Migration): dependencies = [ ('bootstrap_grayscale', '0040_auto_20181215_2022'), ] operations = [ ...
[ "mjlabe@gmail.com" ]
mjlabe@gmail.com
1137de8b9a552f8d8213d9e2bfda19d48553a4ba
ea12a254d0da6f01c75e481fa2a450e2aa8216e5
/.history/client1_20211117162244.py
6b0a249d98eca32e5d072b7af5bb062cbab9a780
[]
no_license
RiteshK555/Python-socket-chat-server
6d1b6e51762a7e10f765af706b6093f1d601cfc4
a17f05656d041b5491160fc9f1a84e436ef02a86
refs/heads/master
2023-08-30T11:16:58.934067
2021-11-17T14:22:03
2021-11-17T14:22:03
429,032,715
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
import socket import threading HEADER=64 PORT=5051 SERVER=socket.gethostbyname(socket.gethostname()) client1=socket.socket(socket.AF_INET,socket.SOCK_STREAM) client1.connect((SERVER,PORT)) def msg_from_client1(msg): message=msg.encode('utf-8') msg_len=len(message) send_len=str(msg_len).encode('utf-8') ...
[ "" ]
34c6cc2a14f9ef2bbae48b217162a6f1bef60751
b96d3489ce0e160124dd2a0a9197c80b3c1d756f
/land_retail/land_retail/doctype/land_details/land_details.py
1a8a65279a050bef4cb4048a91812ca0c0456a68
[ "MIT" ]
permissive
Prosper-Apps/Land-Retail
ada6284d52d8b1979c702aaeb3445777c41f8c8a
1e6c3f751b162d091544e028ad3f70629c1c5233
refs/heads/master
2023-07-15T22:51:31.217489
2021-08-22T19:36:36
2021-08-22T19:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
267
py
# -*- coding: utf-8 -*- # Copyright (c) 2020, Bantoo Accounting and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class LandDetails(Document): pass
[ "duncannkhata@gmail.com" ]
duncannkhata@gmail.com
031082afed911262fc629700895e628f09e802ef
57e1cb070fed466e03cb3cda81a289f447ee13b0
/02_readline.py
cb6816aacc59543181538163460cd1c66d42c094
[]
no_license
diksha1012/Python_Programs
3af8423a56879e2fa5d6ec383982ae161d1298e2
2f82d740ae4f8891a7ae86c79eb174d9a3dbce4d
refs/heads/master
2023-06-18T16:00:10.773661
2021-07-12T19:10:10
2021-07-12T19:10:10
384,858,323
0
0
null
null
null
null
UTF-8
Python
false
false
188
py
f=open('sample.txt') #read first line data = f.readline() print(data) #read second line data = f.readline() print(data) #read third line data = f.readline() print(data) f.close()
[ "noreply@github.com" ]
diksha1012.noreply@github.com
2271f16f4242a4787a8a6a2d8da4b91c64bb82f4
5d344134f84f90df8443de9743e6d05b4d33ecca
/MachineLearning/homeworks/hw7/converter.py
21f91f418025feb081d42ade7f97cea6542bf0bb
[]
no_license
aulasau/BSU.Magistracy
e8deaba2c78e4ccb4f77f2956fc286c94573ae87
cb9c547987030d004e33048e7c38f057e393413c
refs/heads/master
2023-01-01T23:41:58.973005
2020-10-31T17:51:38
2020-10-31T17:51:38
308,931,069
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
import sys input_name = sys.argv[-2] output_name = sys.argv[-1] with open(input_name, "r") as inp, open(output_name, "w") as out: for i in inp: params = i.split(",") if int(params[-1]) > 0: out.write("-1 ") else: out.write("+1 ") out.write("0:0 ") ...
[ "barabasha999@mail.ru" ]
barabasha999@mail.ru
356499b6b6f83e5894d44ea76a5a24777bac2d13
5de63845a290d6f43ca195665e99c31f38cae43d
/Mundo2/003EstruturasDeRepeticao/057AceitarApenasMouF.py
95befcd06a8a805fad62118eaa1fecb0a0ae1269
[]
no_license
mucheniski/curso-em-video-python
4fef73a9aebe2d815b60eeab119f8af91e3929ce
242b4f719c1149273805762c9e40aa680464043b
refs/heads/master
2023-07-05T05:05:56.580283
2021-09-02T17:10:57
2021-09-02T17:10:57
342,046,890
0
0
null
null
null
null
UTF-8
Python
false
false
421
py
# Exercício Python 57: Faça um programa que leia o sexo de uma pessoa, mas só aceite os valores ‘M’ ou ‘F’. # Caso esteja errado, peça a digitação novamente até ter um valor correto. sexo = str(input('Informe o sexo M ou F ')).upper().strip() while sexo not in 'MF': sexo = str(input('Valor inválido, informe o s...
[ "mucheniski@gmail.com" ]
mucheniski@gmail.com
1873e8e86f97a1f555d5127cb16f2f1044ceb05e
121389e2f36d2e0672af767411cfb775352cee38
/python_stuff/dot-pythonstartup
870d3e0feb9682b3f2318e6dcdf75f3158dcfee7
[ "MIT" ]
permissive
kaushalmodi/dotfiles
4b03c870b52cc359c071c2c07119024fdcecbb9b
f43bfab16e8e32047d1d25c90705092bab0f30c3
refs/heads/master
2023-06-23T12:33:21.303780
2023-06-16T21:48:56
2023-06-16T21:48:56
19,359,447
47
19
null
null
null
null
UTF-8
Python
false
false
1,411
#!/usr/bin/env python3 """Custom functions for Ipython""" import math import convert # in $SCRIPTS/python def log10(num): "Return log10 of NUM." return math.log10(num) def b2d(binary_str): "Convert BINARY_STR from Binary to Decimal." return convert.b2d(binary_str) def h2d(hex_str): "Convert HEX_...
[ "kaushal.modi@gmail.com" ]
kaushal.modi@gmail.com
cc627c73d3145b43e230fd3f9cfd05c2f883fec3
3be7d27c8af88cb3e38d3abe6fb356d0aae0234e
/mattasks/views.py
8b92b7c9da676e81fdcd4e963e4a9fe3cfec1002
[]
no_license
peppuo/dg_gp
1e38809a0bb0ddb2f747e1b008cefff11e3ec7b6
4b17d3835e7de365efeb1bbb82442b8b618da36f
refs/heads/master
2023-04-26T09:06:39.716374
2020-01-22T00:36:09
2020-01-22T00:36:09
220,835,984
0
1
null
2023-04-21T20:40:37
2019-11-10T19:01:05
Python
UTF-8
Python
false
false
199
py
from django.shortcuts import render def render_mattasks(requests): return render(requests, 'mattasks.html') def render_add_task(requests): pass def render_edit_task(requests): pass
[ "peppujool@hotmail.com" ]
peppujool@hotmail.com
cbd1963eda88e7b0aac52ea0c5cc7e5a2c19a5f0
ea6a186bd1123090660495e3d9145cf72673ae07
/game_engine.py
56fb171cad3aa04064b96183cbdd549037cd17cd
[]
no_license
Spacerat/SapphireClone
538f99674b4856e6f76502ad46aaeee67fc4de45
6feaa855d76c957e86e1eb42146966f628cab688
refs/heads/master
2021-01-19T14:09:42.548833
2015-08-04T08:30:06
2015-08-04T08:30:06
40,172,768
0
0
null
null
null
null
UTF-8
Python
false
false
4,052
py
import pyglet import logging from collections import namedtuple logging.basicConfig(level=logging.DEBUG) class Pos(namedtuple('Pos', ['row', 'column'])): """ A position object encodes a row and a column """ @property def left(self): return Pos(self.row, self.column-1) @property def right(s...
[ "jat1g11@soton.ac.uk" ]
jat1g11@soton.ac.uk
0e910e7259b8f2d1972d01000a727267c17b26e3
36f58995cc656696c513480e98f1962c0947f519
/lib/pymat.py
ccef34ba43fb1a66d0a670cd57f462a84d58dba5
[]
no_license
rj42/dataviewer
d7d9a1b8046298f3c4ba8ac52d83650118bf2678
63068955e541df694d365a869aac45c0fe4ef742
refs/heads/master
2021-01-16T18:17:12.503294
2015-02-24T07:08:24
2015-02-24T23:49:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
import scipy.io def save(filename,dic): ''' saves dictionary to matlab binary format ''' scipy.io.savemat(filename, dic) def load(filename): ''' loads .mat file as a dictionary ''' d = scipy.io.loadmat(filename) del d['__globals__'] del d['__header__'] del d['__version__'] for i in d.keys(): d[i] = d[i][...
[ "is6645@PGE-C9RTM02-NE.austin.utexas.edu" ]
is6645@PGE-C9RTM02-NE.austin.utexas.edu
640cbd8b45b1907c93b397fbf8e94106dd7f97d1
6ee2254e0a0e5073927b9bcf8bd1f76cf78b87a1
/4字符串处理技巧训练/4-1如何拆分含有多种分隔符的字符串.py
eb15a68fdd2c6c49a052b9bb5a74977ef85bdb84
[]
no_license
skytotwo/Py3AdvancedTechnique
8093b9de7f78954497e80fa2531f55a3a1d69204
deac90787b32dea40d7b96b9f40202f93f20a654
refs/heads/master
2020-03-07T03:34:40.108462
2018-04-10T15:51:57
2018-04-10T15:51:57
125,972,090
0
0
null
null
null
null
UTF-8
Python
false
false
1,291
py
#案例引入 #我们要把某个字符串依据分隔符拆分不同的字段,该字段包含多种不同的分隔符,例如: # # s = 'ab;cd|efg|hi,jkl|mn\topq;rst,uvw\txyz' #其中<,>,<;>,<|>,<\t>都是分隔符号,如何处理? #解决方案 #方法一:连续使用str.split()方法,每次处理一种分隔符号 #方法二:使用正则表达式的re.split()方法,一次性拆分字符串 #解决方案一 s = "ab;cd|efg|hi,jkl|mn\topq;rst,uvw\txyz" s.split(';') res = s.split(';') print(res) #map(lambd...
[ "381944069@qq.com" ]
381944069@qq.com
2d7752b5248ca30de42447503f8cb51b06fd5d1f
21e64f9410323a11d4550b889fd0bb0d68543fab
/config/munin/mongodb_conn
93f39733e6ea84ca3aa106275b63a88e87de9375
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
quanganhdo/NewsBlur
a7eaa3c5bdb2e57998651d736db861f88fcd1e75
cef29f01658c845564a5044b48b4cf19efcaa4d6
refs/heads/master
2021-03-05T23:56:27.976498
2020-02-27T15:23:23
2020-02-27T15:23:23
246,164,347
1
0
MIT
2020-03-09T23:34:18
2020-03-09T23:34:17
null
UTF-8
Python
false
false
791
#!/srv/newsblur/venv/newsblur/bin/python # -*- coding: utf-8 -*- from vendor.munin.mongodb import MuninMongoDBPlugin class MongoDBConnectionsPlugin(MuninMongoDBPlugin): args = "-l 0 --base 1000" vlabel = "count" title = "MongoDB current connections" info = "Current connections" fields = ( ...
[ "samuel@ofbrooklyn.com" ]
samuel@ofbrooklyn.com
e1d364e8012b8e88a5aa8ea7ea24b49307bae086
5064d0a44fb1e1af0205ae0bfa711bdbf2a33cc6
/test/main_json.py
495de07bbef5c2a94bb17969b852bb609d084a3b
[]
no_license
lmxwade/DSCI_551
4e157ae87f370a5e0195ea64c1afb2cf385c2418
eecdc9222ae0e3441c167525609dfd54ed4134a8
refs/heads/master
2023-02-10T15:48:38.755414
2020-07-04T16:24:35
2020-07-04T16:24:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
# __author__ = 'Aaron Yang' __email__ = 'byang971@usc.edu' __date__ = '9/6/2019 3:45 PM' import json if __name__ == "__main__": data = {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5} print(type(data)) # <class 'list'> # json.dumps 用于将 Python 对象编码成 JSON 字符串 jsonStr = json.dumps(data) print(jsonStr) # <class 'str'> ...
[ "aaron19940628@gmail.com" ]
aaron19940628@gmail.com
4d0af196400f9ebc7e28981d5b4b342f0ea75310
5cf4c49043d66fd37a1e9a183cf126a915b19668
/src/topic_store/__init__.py
b232dfe3306892d5c42e43d6b8c973c37300b9a8
[ "MIT" ]
permissive
pet1330/topic_store
f14859e746839bec8fe197933ea23155936644af
3f3f7fbcc3289ef096b6e2e96fb5d80b869a11d4
refs/heads/master
2023-04-16T08:06:33.650998
2021-04-12T09:10:28
2021-04-12T09:10:28
264,911,292
0
0
MIT
2020-05-18T10:55:11
2020-05-18T10:55:11
null
UTF-8
Python
false
false
453
py
# Raymond Kirk (Tunstill) Copyright (c) 2020 # Email: ray.tunstill@gmail.com from .api import load from .data import TopicStore def get_package_root(use_rospkg=True): import pathlib if use_rospkg: try: import rospkg return pathlib.Path(rospkg.RosPack().get_path("topic_store"...
[ "ray.tunstill@live.co.uk" ]
ray.tunstill@live.co.uk
96cf6e15b3185e6b21c750ca7f0f29651668092c
c0075e8a666d2ec994846510e1caf593c9149319
/solver/adam.py
2d9e38493b83d2ca4fd84b8a654e45dac274d026
[]
no_license
omiderfanmanesh/Neural-Music-Classification
0d5b524af6998cf4e93094a64aaf39d5064587ed
6d3a01c164b1d9bef419a8c7d6e8abe66a9aecbb
refs/heads/main
2023-06-20T11:23:49.497916
2021-06-28T13:11:53
2021-07-13T09:46:34
362,450,587
2
0
null
null
null
null
UTF-8
Python
false
false
579
py
import torch.optim as optim class Adam: def __init__(self, cfg, model_params): self.cfg = cfg self.model_params = model_params def get_params(self): return { 'params': self.model_params, 'lr': self.cfg.OPT.ADAM.LR, 'betas': self.cfg.OPT.ADAM.BETAS, ...
[ "omiderfanmanesh.dev@gmail.com" ]
omiderfanmanesh.dev@gmail.com
ac6b247b14c0a2a6f1af882e5eb8a00c16731c1e
885b8e1c53903865d1fc314ef2dceca42db5b516
/vctools/__init__.py
4b2c99e86eb606453d6db8874d6d422ebe504464
[ "MIT" ]
permissive
mdechiaro/vctools
f1bc201ac3ff731f33efbea9ca4800f5a08f7991
02ab2763b788aa15d77b656fc9c059d14bfe1a64
refs/heads/master
2021-04-22T06:36:08.703111
2021-04-13T18:49:09
2021-04-13T18:49:09
23,294,967
4
2
MIT
2018-05-31T15:51:40
2014-08-24T22:39:54
Python
UTF-8
Python
false
false
619
py
#!/usr/bin/env python # vim: ts=4 sw=4 et """ Logging metaclass.""" import logging class Log(type): """ Metaclass that will load all plugins. """ def __init__(cls, name, args, kwargs): """ Args: name (str): Becomes __name__ attribute args (tuple): Becomes __bases__ attri...
[ "mdechiaro@users.noreply.github.com" ]
mdechiaro@users.noreply.github.com
32a028c6ecd88e1712dd5af1b5ceee421ca23a80
9ea9794919da44b4cf77cb4c92ad641d396f26a8
/rcnn_attention/wrn/feature_extractor/extract_features.py
912291fee44accbe69235ede99fb900391046a52
[]
no_license
AmirooR/Pairwise-Similarity-knowledge-Transfer-WSOL
3d8bbb4a342fb606cc972da9d157388050f87878
01985a4b24e839752df8b192dbda8c274923c4f8
refs/heads/master
2023-01-28T08:33:28.451844
2020-12-08T06:38:14
2020-12-08T06:38:14
280,340,805
7
4
null
null
null
null
UTF-8
Python
false
false
2,529
py
import functools import tensorflow as tf import numpy as np import os, sys from functools import partial from rcnn_attention.wrn.model.wide_resnet import wide_resnet_model from dl_papers.datasets.miniimagenet import load_miniimagenet_data trained_model_path = '../logs/mini_base/train/model.ckpt-200000' def extract(sp...
[ "amir.rahimi@anu.edu.au" ]
amir.rahimi@anu.edu.au
d8b2df2337b5e5e71fcd5b02fe1fc120aa5d240b
fa93e53a9eee6cb476b8998d62067fce2fbcea13
/devel/lib/python2.7/dist-packages/pal_device_msgs/msg/_DoTimedLedEffectGoal.py
73f6163b853c14a328a4f720228d430539ed29a0
[]
no_license
oyetripathi/ROS_conclusion_project
2947ee2f575ddf05480dabc69cf8af3c2df53f73
01e71350437d57d8112b6cec298f89fc8291fb5f
refs/heads/master
2023-06-30T00:38:29.711137
2021-08-05T09:17:54
2021-08-05T09:17:54
392,716,311
0
1
null
null
null
null
UTF-8
Python
false
false
135
py
/home/sandeepan/tiago_public_ws/devel/.private/pal_device_msgs/lib/python2.7/dist-packages/pal_device_msgs/msg/_DoTimedLedEffectGoal.py
[ "sandeepan.ghosh.ece20@itbhu.ac.in" ]
sandeepan.ghosh.ece20@itbhu.ac.in
84c8c45bf56852074cb397e2014c21d669452304
667c25f7f97fb7201fbec3c9a63d9dfb0dbf8f3a
/src/Principal.py
6420781e6c42a4a46e5f0b22ec634f456996eec8
[]
no_license
rickjmzmnz/JugarVsEngine
6ef358b38da4e38bba6db33eb061b996c651e031
c2cceb8323cdd552fe3691ceeb825cf066eccbaf
refs/heads/master
2021-08-19T04:48:06.152235
2017-11-24T20:54:28
2017-11-24T20:54:28
111,821,262
0
0
null
null
null
null
UTF-8
Python
false
false
7,641
py
# -*- coding: utf-8 -*- from Tkinter import * from PIL import ImageTk, Image from Jugadas import * import tkFileDialog import tkMessageBox import os import io import types class Interfaz(Frame): """ Constructor de la clase Se crea el canvas donde se pondra el tablero Se crean los botones y etiquetas...
[ "rickjmzmnz@ciencias.unam.mx" ]
rickjmzmnz@ciencias.unam.mx
a151e9843eb215cac92e2cf8ba46206c8de27cd0
db76cfd222d7208c4dd15ef9dd3a8331b384f44a
/Baike_Python/spider_main.py
3e953f70129515f2612e734ccaecbb4a0f2e2dc3
[]
no_license
DanielQ8843/Robot_0.1
c94624600b9a02c594ea7ffbaf39a0c40dcd49b9
8d23135c97f78ba7a0cdd6ee48569800afdcabc8
refs/heads/master
2016-08-13T01:17:24.053074
2016-01-12T07:47:41
2016-01-12T07:47:41
49,482,622
0
0
null
null
null
null
UTF-8
Python
false
false
4,238
py
# coding: utf8 # 名称:爬虫总调度程序 # 功能:会以入口 URL 作为餐参数,爬取所有的相关页面 # 首先:编写 main 函数 import url_manager, html_downloader, html_parser, html_outputer class Crawler(object): # S4 爬虫总调度程序,通过主函数的 自动补齐创建 —— 我们的总调度程序,会使用 URL 管理器、HTML 下载器、解析器、输出器,完成需要的功能 def __init__(self): # S6 构造函数,初始化各个对象 self.urls = url_manager.UrlMa...
[ "jsevencqu@gmail.com" ]
jsevencqu@gmail.com
df2687be95865187cd182c14c35da780e63fbbda
abc1a497c41ddd8669c8c41da18af65d08ca54e4
/AnalysisF/recon_wf/1ns/make_H1ns.py
106466fe5adefdd90b89f9c759c167aade3faeb5
[]
no_license
gerakolt/direxeno_privet
fcef5e3b654720e277c48935acc168472dfd8ecc
75e88fb1ed44fce32fce02677f64106121259f6d
refs/heads/master
2022-12-20T22:01:30.825891
2020-10-04T06:01:07
2020-10-04T06:01:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,645
py
import numpy as np import matplotlib.pyplot as plt import time import os import sys from scipy.optimize import minimize from scipy.stats import poisson, binom from scipy.special import erf as erf pmts=[0,1,4,7,8,14] path='/home/gerak/Desktop/DireXeno/190803/Cs137B/EventRecon/' rec=np.load(path+'recon1ns98999.npz')[...
[ "gerakolt@gmail.com" ]
gerakolt@gmail.com
a918d1be3e1fa9e5f4382813050f4da668f2077a
5a42636bb3f793304595600cdd1534c8433f3339
/ErrorAnalysis_Code/ErrorAnalysis.py
dac144c9007a26e20df1188e8a607ec8b72128b9
[ "MIT" ]
permissive
mmstoll/Ocean569_Code
21902a5be2cb9a17ab32755413dc8b708533ddce
228cb719f3e82f187f704f343d3b3590a38236d7
refs/heads/master
2022-11-16T14:43:04.579602
2020-07-15T21:03:55
2020-07-15T21:03:55
259,759,598
0
0
null
null
null
null
UTF-8
Python
false
false
3,718
py
# # estimate and plot a chi-squared distribution with error bounds # from scipy import stats import matplotlib.pyplot as plt import numpy as np # # file_out='/Users/riser/Desktop/ocean.569A/chi-sq.nu=10.confidence.limits.jpg' # # define the number of degrees of freedom # nu=10 # # define the arrays # nn=1000 xx=np.zer...
[ "64496465+mmstoll@users.noreply.github.com" ]
64496465+mmstoll@users.noreply.github.com
004329b3ddea39cfcdec79380491743f3b906eb9
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/leap/5b53afc49b5f418cb7d6bbf495c8fdd9.py
38933221b5f04fff5d26cc532c350159342a7cc9
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
239
py
'''This module will take in a year (positive integer) and return True if the year is a leap year, False if it is not. Lesson: Refactor. ''' def is_leap_year(year): return (year%400 == 0) or ((year%100 != 0) and (year%4 == 0))
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
778190838724b4739e06fe9fb67369b4a3b57141
4a506391d992d3f24401c242c271da8b4308eb8f
/001_Print_Arithmetic/10869.py
a5b350bb2f82c9066b18e4a32968de1441cab5c6
[]
no_license
shdev95lee/baekjoon
a7c036750642717792c0faec607c23608952d789
0ed04c46ee0d811c744689072fd4fe4fdca3c267
refs/heads/master
2023-06-08T01:11:14.160480
2021-06-25T14:48:39
2021-06-25T14:48:39
379,516,329
0
0
null
null
null
null
UTF-8
Python
false
false
132
py
a, b = input().split() print(int(a)+int(b)) print(int(a)-int(b)) print(int(a)*int(b)) print(int(int(a)/int(b))) print(int(a)%int(b))
[ "shdev95lee@gmail.com" ]
shdev95lee@gmail.com
f305274bc2629f4a0c09c256c3b77c6f285abb8a
8b8d1b6c325a0084805b26e0da63641928d76a08
/backend/corelib/hardwarelib/baInstr.py
15df44d948938890b58a003a3e900ed4053456a0
[]
no_license
superfk/digiWeb
ea1215df477dbd1d2044815028b9f5cddf0874f0
2386a4da4e362e3f0c7bbfc6195f566f7630d582
refs/heads/main
2023-01-04T06:04:58.636065
2020-10-20T01:31:05
2020-10-20T01:31:05
304,383,168
0
0
null
null
null
null
UTF-8
Python
false
false
5,344
py
import serial from PyCRC.CRCCCITT import CRCCCITT import re import time class BaInstr(object): def __init__(self): self.device = None self.debug = True self.wait_cmd = True self.duration = 0 self.connected = False def config(self, debug=False, wait_cmd = True): ...
[ "jungenhsiao@gmail.com" ]
jungenhsiao@gmail.com
a820c92be19bb6eb23ea6e9a14ad2babd43e4947
841192bf32a8b0f9ac53f130a732ddbaf4e0231c
/homework_4/code/q1.py
ff096c9c868025ba84c24da6673cb5d1145344f8
[]
no_license
nolanstr/CS6190_PML
21d6c247f7c8ffe5b733692acd2c63affe78e781
0ccf02a21560aab74b9f3a52c93831a195ba102a
refs/heads/master
2022-04-15T18:34:18.746203
2019-12-09T20:43:25
2019-12-09T20:43:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,384
py
import numpy as np import os, sys from matplotlib import pyplot as plt import matplotlib sys.path.append(os.getcwd()) sys.path.insert(0, 'data/example-code') from gmq_example import gass_hermite_quad #from data.example_code.gmq_example import gass_hermite_quad m = 10 c = 3 dpi = 200 fs = 20 lw = 1.75 matplotlib.rcP...
[ "abhinav3663@gmail.com" ]
abhinav3663@gmail.com
91459a8ac7fcc46ebcba799bda3ebe1f208692f6
a9443f14227a697dd92106e2dc6863944fa73fbf
/meng-TaggingTool/tkInter.py
84df25898213873b209dcfac4b5708253c678e18
[]
no_license
KevinYe1014/pyqtExamples
95f35efa46872370d2f71312a461c335ad44f0df
6fa14be14a0ee67c3cdbc9f25b7ce413c506a459
refs/heads/master
2020-06-23T22:53:44.401692
2019-07-25T07:10:12
2019-07-25T07:10:12
198,777,325
0
0
null
null
null
null
UTF-8
Python
false
false
12,395
py
# coding: utf-8 from tkinter import * from tkinter import ttk, font import os import sqlite3 as sql from io import BytesIO from PIL import Image, ImageTk import configparser import random conn = sql.connect('./hard_labels.db') cursor = conn.cursor() cex = cursor.execute cex('''PRAGMA TABLE_INFO (front)''') if cursor....
[ "2439745857@qq.com" ]
2439745857@qq.com
6f1bb4ff7967bfd1652c3e845f0f639580fcd308
a45b8075f3c3b247a3cac43cb12bf4d80103f608
/glamazer/urls.py
2df7d0d6d8a24ce521febc8454892b0cfa167c9e
[]
no_license
kahihia/glamfame
c890a8772aa92b8ed9e3c0bb664c5dae187d1c09
af91d4d16d0c8847c42eb97be839bf08015274b6
refs/heads/master
2021-01-21T09:59:52.700945
2016-02-15T17:16:13
2016-02-15T17:16:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,906
py
from django.conf import settings from django.conf.urls.static import static from django.conf.urls import patterns, include, url from django.views.generic import TemplateView from django.contrib import admin from django.contrib.staticfiles.urls import staticfiles_urlpatterns admin.autodiscover() urlpatterns = pattern...
[ "zhuhov@gmail.com" ]
zhuhov@gmail.com
e5187be6c2339cacd981c880a7bcc4f600452526
e1112bb6d54acb76e6e991fc4c3fc0d3a1f7b0d6
/02 - Sets and tuples/Exercise/02-Sets_of_elements.py
7bbb5ad6a390172f3d0bbbf55241d1a067f2744d
[]
no_license
MiroslavPK/Python-Advanced
0326209d98254d4578a63dcd4c32b49be183baf2
0c696a220aa587edb2505e8d986b041cc90a46f3
refs/heads/master
2023-01-12T10:46:06.590096
2020-11-18T19:08:55
2020-11-18T19:08:55
295,449,832
0
0
null
null
null
null
UTF-8
Python
false
false
224
py
n, m = map(int, input().split()) n_set = set() m_set = set() for i in range(n+m): if i < n: n_set.add(input()) else: m_set.add(input()) intersection = n_set & m_set print('\n'.join(intersection))
[ "miroslavkarakostov@gmail.com" ]
miroslavkarakostov@gmail.com
2fb3622d8520b0df9fdbf0783f3a2333622c2c5b
46ad22b772f0bb115e1192ca24c86b1593d51870
/eclipsed/src/cursor.py
f67a0516f50351fa94c3799522d029fba269422b
[ "CC0-1.0", "WTFPL", "CC-BY-4.0" ]
permissive
cosmologicon/unifac
fb533abfbba7ebb33561a330f7be5d22dbc2a373
e7668c6736cd4db66f8d56e945afb69ec03f2160
refs/heads/master
2022-06-15T10:46:28.448477
2022-05-30T20:26:55
2022-05-30T20:26:55
37,033,765
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
tobuild = None pointingto = None # These don't really need to go here since they're redundant with hud.mode # but this module was looking a little lonely so here they are. disable = False unbuild = False
[ "cosmologicon@gmail.com" ]
cosmologicon@gmail.com
d16b1d9e1c492143309416fd7527999d32681384
0bd8a230151dcc5708022c900575606b881563b2
/idea/blog/migrations/0008_auto_20180109_2344.py
44248a1f30de3421839d1be081c20e6eea184e8d
[ "MIT" ]
permissive
mcmaxwell/idea_digital_agency
1ad4f36b814acd81d1defc4813cf02a000cda81f
366e27e14e80b3fbb5980c64d3d38fdbcbc8f000
refs/heads/master
2018-10-17T03:41:04.432920
2018-09-24T07:55:55
2018-09-24T07:55:55
108,956,925
0
1
null
null
null
null
UTF-8
Python
false
false
766
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.10 on 2018-01-09 23:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0007_blog_subtitle_tag'), ] operations = [ migrations.AddField( ...
[ "alexrians@gmail.com" ]
alexrians@gmail.com
712d10d431739dab7979cbd50064908f8a699d66
3302b12ed21214ea0f2c4fc22c49caa359c675fd
/pages/basket_page.py
baff0b1286fd684c084cd2c9a7e9acd073726b24
[]
no_license
furbeast/stepik_selenium_total
bede338303113b8cc3bb6fa8687646145aee2f6d
2d0e86df0d64029c37ddf5b3f19a500b985ba071
refs/heads/master
2023-05-30T23:29:42.611293
2020-06-22T16:45:09
2020-06-22T16:45:09
273,192,112
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
from .base_page import BasePage from .locators import BasketPageLocators class BasketPage(BasePage): def basket_empty(self): assert self.is_not_element_present(*BasketPageLocators.BASKET_ITEMS), "Basket not empty" def basket_empty_text(self): assert self.browser.find_element(*BasketPageLocato...
[ "slonn91@mail.ru" ]
slonn91@mail.ru
d0d4dc3ccd41bd22334c993a04c194b2496ba982
42a833f190b3352eaa89604381d3db500c80f538
/pentestui/uiapp/views.py
918b2e56df39b60fe12bd295a639303bf2b49276
[ "Apache-2.0" ]
permissive
mustgundogdu/PentestUI
95c037022c5aad25cf2e1a4b7ad58eedd6df6ed8
92263ea73bd2eaa2081fb277c76aa229103a1d54
refs/heads/main
2023-08-29T23:12:28.027452
2021-11-18T17:53:03
2021-11-18T17:53:03
389,436,912
31
4
null
null
null
null
UTF-8
Python
false
false
2,281
py
from django.contrib.auth.decorators import login_required from django.shortcuts import render, get_object_or_404, redirect from django.template import loader from django.http import HttpResponse from django import template from pentestui.pentest_api.models import ProcessUI @login_required(login_url="/login/") def index...
[ "noreply@github.com" ]
mustgundogdu.noreply@github.com
4aa34652c3f1418ac0c14a95848b43c577266aee
86c097ac18dbbf46c27545bc1f429ddfd0b5d2be
/src/model/gan_multimodel.py
3c8824e03a580d78e0a759fa6a94472b563b3688
[ "MIT" ]
permissive
nipdep/STGAN
c46b056a7fae4a719d3c2ec05fedfd7bb876dab0
c72ba6cb9d23d33accc0cfa1958a2005db3ed490
refs/heads/main
2023-08-14T15:50:15.459763
2021-10-07T12:03:53
2021-10-07T12:03:53
375,255,784
1
0
null
null
null
null
UTF-8
Python
false
false
4,581
py
#%% import tensorflow as tf import tensorflow_probability as tfp import numpy as np import matplotlib.pyplot as plt import pandas as pd import os from tensorflow.keras import Sequential, Model from tensorflow.keras.layers import Dense, Flatten, Reshape, Concatenate, Conv2D, UpSampling2D, BatchNormalization tfd = tfp....
[ "46063855+nipdep@users.noreply.github.com" ]
46063855+nipdep@users.noreply.github.com
46c75cfc66b41a8d03c8a63219aa1d6fb596b2ba
c7c001c9011f559b8b1c85d1c3e0387a86a99628
/y2018/day18/lumber_collection.py
ec0c9f79bbc2fe5449c89bab26476d8ddca92c8e
[]
no_license
ericbgarnick/AOC
5ddfd18850b96f198e125f5d1f0978e852195ccf
a935faad3fcbbe3ac601e2583ed27b38bc60ef69
refs/heads/main
2023-04-12T18:50:09.926169
2023-04-09T12:47:35
2023-04-09T12:47:35
224,573,310
2
1
null
2021-12-15T14:25:33
2019-11-28T05:00:52
Python
UTF-8
Python
false
false
1,890
py
from typing import List from acre import Acre class LumberCollection: def __init__(self, area_map: List[str]): row_len = len(area_map[0]) num_rows = len(area_map) self.collection_area = [] # type: List[Acre] self.populate_area(area_map) self.link_acres(row_len, num_rows) ...
[ "eric.b.garnick@gmail.com" ]
eric.b.garnick@gmail.com
c57d23449c718bd2b649ef10212f9605ccca3218
487490ff85cfc959890a76410d12bd3e0fe1b789
/utils_QSO.py
62d5b265e12cd53c56ab0f23a48b49abaf33762f
[]
no_license
esavary/eBOSSLens
0810e80961c1828613592b3d34e740f43c551d2e
c2761c7c045f36a6eb72e8958dd0f06dd1ce0c1d
refs/heads/master
2021-01-23T04:40:12.129893
2017-03-17T15:33:40
2017-03-17T15:33:40
86,235,505
0
0
null
2017-03-26T13:42:21
2017-03-26T13:42:20
null
UTF-8
Python
false
false
17,932
py
import numpy as np import matplotlib as mpl from matplotlib import pyplot as plt from matplotlib import gridspec from matplotlib.font_manager import FontProperties from utils import * def DR12Q_extractor(path = './Superset_DR12Q.fits'): hdulist = pf.open(path) z_vi_DR12Q = hdulist[1].data.field('Z_VI') z_PCA_DR12Q ...
[ "romainalexis.meyer@epfl.ch" ]
romainalexis.meyer@epfl.ch
610395c1c0a55d4f8b7099bea152e4feb27dec23
5637cca6c5684c90586613d891506ea4c1d6cbfb
/Python/6kyu/one_plus_array.py
bf9f2effc254a665d5a02a9b921ccccd43d561b8
[]
no_license
Patryk9201/CodeWars
4a4e6a91dfcf8ec62c2fa553427b106769a68f8c
f86da56e071832af71145cc5033f4c3115726204
refs/heads/master
2023-05-22T17:17:51.061609
2021-06-14T11:10:08
2021-06-14T11:10:08
375,696,728
0
0
null
null
null
null
UTF-8
Python
false
false
693
py
""" Given an array of integers of any length, return an array that has 1 added to the value represented by the array. the array can't be empty only non-negative, single digit integers are allowed Return nil (or your language's equivalent) for invalid inputs. Examples For example the array [2, 3, 9] equals 239, addin...
[ "noreply@github.com" ]
Patryk9201.noreply@github.com
74d8d9d2cc5d152126537573a927ca64f8afb791
5a7abc4537039860c49e9a80219efa759aad1b6f
/tests/providers/aws/services/ec2/ec2_securitygroup_from_launch_wizard/ec2_securitygroup_from_launch_wizard_test.py
a3c14ce6680594654bebaca336460ebb88319e50
[ "Apache-2.0" ]
permissive
sec-js/prowler
d5a06c72f5d7e490bade1167966f83f7a5d7ed15
f72be9a1e492ad593c9ac267d3ca07f626263ccd
refs/heads/master
2023-08-31T22:48:33.983360
2022-12-22T16:02:28
2022-12-22T16:02:28
243,866,744
0
0
Apache-2.0
2022-12-23T12:23:20
2020-02-28T22:37:02
Python
UTF-8
Python
false
false
4,834
py
from re import search from unittest import mock from boto3 import client, resource from moto import mock_ec2 AWS_REGION = "us-east-1" EXAMPLE_AMI_ID = "ami-12c6146b" class Test_ec2_securitygroup_from_launch_wizard: @mock_ec2 def test_ec2_default_sgs(self): # Create EC2 Mocked Resources ec2_c...
[ "noreply@github.com" ]
sec-js.noreply@github.com
1c06d723254657701479f4b0179290148c45af44
0d76ba0da5446f20e500b7e31f53821b14cb49d8
/Codility/python/abs_distinct.py
a14e108198517a0a7f73819039d873dfe2b9a69b
[]
no_license
filwaitman/playground
948aa687be06d456c86b65ee3ab5fb9792149459
dfdfab9002bff3a04f37e0c161363a864cd30f3e
refs/heads/master
2021-01-12T12:59:49.057832
2020-01-26T18:51:02
2020-01-26T18:51:02
68,865,259
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
# -*- coding: utf-8 -*- # https://codility.com/programmers/task/abs_distinct # 100/100 def solution(A): positives = map(abs, A) return len(set(positives)) assert solution([-5, -3, -1, 0, 3, 6]) == 5 assert solution([42]) == 1 assert solution(range(-1000, 0) + range(1, 1001)) == 1000
[ "filwaitman@gmail.com" ]
filwaitman@gmail.com
78549acd2b3ba1702eb99871e727416adbdfd697
d8f469a2b9794d864e172dd70a324a05eb54a53e
/P3Python/section13/Lecture 146 - Placeholders and Parameter Substitution - Source code/checkdb.py
9ffde63fd37cccc87d02560efbe0d8959c9dfdd7
[]
no_license
abikg71/python37
78a7b7027ea6671b24c6d50cde0a30c0d0c21fd0
99d4ade9b21afc3588954025607c08dec6f8ecb6
refs/heads/master
2020-08-21T22:48:01.222424
2020-08-14T18:17:53
2020-08-14T18:17:53
216,265,189
0
1
null
null
null
null
UTF-8
Python
false
false
295
py
import sqlite3 conn = sqlite3.connect("contacts.sqlite") name = input("Please enter a name to search for ") # for row in conn.execute("SELECT * FROM contacts WHERE name = ?", (name,)): for row in conn.execute("SELECT * FROM contacts WHERE name LIKE ?", (name,)): print(row) conn.close()
[ "abinetkenore14@yahoo.com" ]
abinetkenore14@yahoo.com
a6e1c8952ffea6bc71e3c9a632fbce60a039c2e9
4549687c81b6e97c9b1b955354cffea93bb968d1
/Python/API/get-ap-json_2.py
e48453b4882954c31760c38e8ccce06e01663f68
[]
no_license
dkorzhevin/code
f1962d7beb448a2f38f304a9dcc6e3e6d7abcb13
42a37bad47187f33422bb72cc738fa350a0754e6
refs/heads/master
2020-09-11T05:15:57.369392
2020-03-10T10:48:54
2020-03-10T10:48:54
221,949,036
1
0
null
null
null
null
UTF-8
Python
false
false
453
py
from urllib.request import Request, urlopen import json req = Request('https://cmxlocationsandbox.cisco.com/api/config/v1/maps/info/DevNetCampus/DevNetBuilding/DevNetZone') req.add_header('Authorization', 'Basic bGVhcm5pbmc6bGVhcm5pbmc=') response = urlopen(req) response_string = response.read().decode('utf-8') #print(...
[ "dkorzhevin@gmail.com" ]
dkorzhevin@gmail.com
e80a8d81e6392f1d7934470081943b1bf032f8fd
d53479a3a5efab85a065b4a7c08cb38b6246f0eb
/python-division.py
66b9ee6a6492eb7b5fa6987137dcbe09a4d4af61
[]
no_license
Snehal6697/hackerrank
0242f927f630e652d6dcca901af8d8bd737b671f
c418fb24e08e5c57a1bd0d91f95ab2af32f01c64
refs/heads/master
2022-12-26T12:35:47.586007
2020-07-07T22:14:39
2020-07-07T22:14:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
#!/usr/bin/env python2.7 from __future__ import division def main(): a = int(raw_input()) b = int(raw_input()) print a // b print a / b if __name__ == '__main__': main()
[ "charles.wangkai@gmail.com" ]
charles.wangkai@gmail.com
70e7af3e0751be27c0879cdd30eb63c48c35d1d0
a38670ee08ea64af33477899a68ee22936f70ce7
/luffy/第三模块/第6章网络编程/第6章每小节/2 加上循环/04 模拟ssh远程执行命令/客户端.py
a62f5c2f2197ac5dd07315df58754ce788d23051
[]
no_license
foremostxiao/d
40ed37215f411e8b081a4cb92c8ecbd335cd9d76
fe80672adc6b2406365b05d5cedd02c6abf66c11
refs/heads/master
2020-03-29T13:51:19.589004
2018-09-23T09:29:56
2018-09-23T09:29:56
149,985,622
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
import socket phone = socket.socket(socket.AF_INET,socket.SOCK_STREAM) phone.connect(('127.0.0.1',8080)) while True: # 1 发命令 cmd = input('>>>').strip()# 输入mingl if not cmd:continue phone.send(cmd.encode('utf-8')) # send 发给操作系统了 # 2 拿命令的结果并打印 data = phone.recv(1024) # 1024是个坑,有可能收到的超过1024,后续解决 ...
[ "foremostxiao@163.com" ]
foremostxiao@163.com
e665a77be9efb83ad3be40619cdfaa76985e9508
d8c6c2433f32c35b0039e876a837ba3a64d8a14d
/euler/3/a.py
029ea73f8a2f0efa778cbe8faedb8df32836ee44
[]
no_license
jmerizia/programming-team-solutions
863158105b54ba1fd78be2b429f2bcfff92499b3
29f052f7f34a00a88fce0bcb701027b8d1477ee3
refs/heads/master
2021-11-29T07:57:43.291653
2021-11-13T07:42:59
2021-11-13T07:42:59
119,102,254
0
1
null
null
null
null
UTF-8
Python
false
false
527
py
import math n = 600851475143 m = math.ceil(math.sqrt(n)) + 10 is_prime = [True for _ in range(m)] is_prime[0] = False is_prime[1] = False k = 2 while k * k <= m: # O(m log m log log m) if is_prime[k]: for i in range(k*2, m, k): is_prime[i] = False k += 1 primes = [idx for idx, x in enumerat...
[ "jmerizia@vt.edu" ]
jmerizia@vt.edu
c0dfa6271b2327073a0a168b47640c937cbeee81
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/287/71629/submittedfiles/testes.py
967c3e410a7b976e11bd707dcfdc03122824963f
[]
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
220
py
# -*- coding: utf-8 -*- #COMECE AQUI a=int(input('Que horas são? [0-23]')) if a > 3 and a < 12: print('Bom diiiia!') elif a >= 12 and a < 18: print('Boa tarde') else: print('Boa noite, ate amanha!')
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br