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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aa0f59f38a582475a55c56c36a78be79bab75599 | fe203d5c28e2010cdc78a4b29755e148d58045db | /p02/q07_miles_to_kilometres.py | 1e02355748970bfbdec15c9a409bb1cc807d34ef | [] | no_license | sp0002/cp2019 | d2a9aa5bfe7c82de3ed3f96f281c39be8704d3bd | 6c48528f948dad01f4d6571e3bb22dbf253c423c | refs/heads/master | 2020-04-24T23:24:21.324069 | 2019-04-13T11:13:01 | 2019-04-13T11:13:01 | 171,574,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | print("Miles Kilometers Kilometres Miles")
for i in range(10):
print(str(i+1) + (" "*(6-len(str(i+1)))) + "{:.3f}".format(round(((i+1)*1.60934), 3)) +
(" "*(11-len(str(round(((i+1)*1.60934), 3))))) + str(i*5+20) +
(" "*(11-len(str(i*5+20))) + "{:.3f}".format(round((i*5+20)/1.60934, 3)))) | [
"k"
] | k |
ca592bb99a1866b3bd5f87d00cf9884fb0e2e036 | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /nncf/torch/dynamic_graph/operation_address.py | f9fe1e55d976d86a8bab71816c910f10257af01d | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 1,715 | py | """
Copyright (c) 2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"noreply@github.com"
] | dupeljan.noreply@github.com |
cdad51f5c22f7a1acdf954745aa1ca7cd922befa | ba3231b25c60b73ca504cd788efa40d92cf9c037 | /nitro-python-13.0.36/nssrc/com/citrix/netscaler/nitro/resource/config/network/ptp.py | 27fa36e319f1e78d559dded8881328498c85d2f6 | [
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | zhuweigh/vpx13 | f6d559ae85341e56472e3592cbc67062dac34b93 | b36caa3729d3ca5515fa725f2d91aeaabdb2daa9 | refs/heads/master | 2020-07-04T22:15:16.595728 | 2019-09-20T00:19:56 | 2019-09-20T00:19:56 | 202,435,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,505 | py | #
# Copyright (c) 2008-2019 Citrix Systems, 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 l... | [
"zhuwei@xsky.com"
] | zhuwei@xsky.com |
71de8ab94c91d087323136dda99bddbbcd9ec73f | 73c01a3f052f8ef63890ec3c2e28403ad41e9a71 | /service/migrations/0007_ticket_photo.py | 806039291d087ae7c08ce662cfe1a5f5ce6385fb | [] | no_license | Jokey90/aho | 4c007c65c819efb726a732a8f36067c5a0226100 | 8bcd41e9ef7d40f07499429f385d4fec590636f6 | refs/heads/master | 2020-03-21T22:28:36.395996 | 2018-06-29T09:25:05 | 2018-06-29T09:25:05 | 139,128,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-08-16 12:57
from __future__ import unicode_literals
from django.db import migrations, models
import service.models.ticket
class Migration(migrations.Migration):
dependencies = [
('service', '0006_auto_20170804_1420'),
]
operations = [... | [
"Kishkurno_AS@dsdf.cds.ru"
] | Kishkurno_AS@dsdf.cds.ru |
fb24842332a1d4553a27ced6b2f8e60c9554ad3d | c50fb310d8c52284be2c636f951de796eededae9 | /47.py | f181b2c679dcf18046f30a11c88ec47c1b317684 | [] | no_license | Deepakdk7/Playerset3 | 6f46f638f22d894b9cc93d81b27c221f9dcdaad3 | 636e1feed0f97bbc9e9495a5dbb81a512ed980c5 | refs/heads/master | 2020-06-03T07:35:23.203780 | 2019-08-06T08:56:16 | 2019-08-06T08:56:16 | 191,497,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | ax=list(map(int,input().split()))
if ax[0]+ax[1]+ax[2]==180 and ax[0]!=0 and ax[1]!=0 and ax[2]!=0:
print('yes')
else:
print('no')
| [
"noreply@github.com"
] | Deepakdk7.noreply@github.com |
3c6d1df4a078962da98463d4f64e2fde79dabb3f | 0e0bd9d0082bf71918db9f6c92c2cefd32fd23bd | /guild/plugins/summary_util.py | 212871690080b5a3fec85b0eb605897c66cddc10 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | christabella/guildai | b911d9758296503c431b571dc4696a3690f44b3d | 10d34eb9aa02aa4a374c340e75b5d44d9f3d8a25 | refs/heads/master | 2022-12-17T18:34:45.766299 | 2020-08-31T12:42:25 | 2020-08-31T12:42:25 | 294,189,964 | 0 | 0 | Apache-2.0 | 2020-09-09T18:02:13 | 2020-09-09T18:02:12 | null | UTF-8 | Python | false | false | 8,533 | py | # Copyright 2017-2020 TensorHub, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"g@rre.tt"
] | g@rre.tt |
4ad331771c2d6a9e184381b0059bd839356bffe9 | 89b45e528f3d495f1dd6f5bcdd1a38ff96870e25 | /PythonCrashCourse/chapter_04/exercise4_07.py | d80abad384bb92b361dcbd5dacbb69f125bfe00a | [] | no_license | imatyukin/python | 2ec6e712d4d988335fc815c7f8da049968cc1161 | 58e72e43c835fa96fb2e8e800fe1a370c7328a39 | refs/heads/master | 2023-07-21T13:00:31.433336 | 2022-08-24T13:34:32 | 2022-08-24T13:34:32 | 98,356,174 | 2 | 0 | null | 2023-07-16T02:31:48 | 2017-07-25T22:45:29 | Python | UTF-8 | Python | false | false | 75 | py | #!/usr/bin/env python3
numbers = [i for i in range(3,31,3)]
print(numbers) | [
"i.matukin@gmail.com"
] | i.matukin@gmail.com |
a7c65bdf2c3d76a9d0bef4bc19e8fa9001e6129b | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/dialogflow/__init__.py | 53f4af3ef55ac638fe4d82d7edb0b86755a4101d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 1,194 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
27d1a3c411b12208e8d4fb289eb2af4bf85cb440 | ca75f7099b93d8083d5b2e9c6db2e8821e63f83b | /z2/part3/updated_part2_batch/jm/parser_errors_2/239061968.py | 6824dca6f32823cb12a5f3a0a45879a6c8761224 | [
"MIT"
] | permissive | kozakusek/ipp-2020-testy | 210ed201eaea3c86933266bd57ee284c9fbc1b96 | 09aa008fa53d159672cc7cbf969a6b237e15a7b8 | refs/heads/master | 2022-10-04T18:55:37.875713 | 2020-06-09T21:15:37 | 2020-06-09T21:15:37 | 262,290,632 | 0 | 0 | MIT | 2020-06-09T21:15:38 | 2020-05-08T10:10:47 | C | UTF-8 | Python | false | false | 1,180 | py | from part1 import (
gamma_board,
gamma_busy_fields,
gamma_delete,
gamma_free_fields,
gamma_golden_move,
gamma_golden_possible,
gamma_move,
gamma_new,
)
"""
scenario: test_random_actions
uuid: 239061968
"""
"""
random actions, total chaos
"""
board = gamma_new(2, 3, 2, 4)
assert board is... | [
"noreply@github.com"
] | kozakusek.noreply@github.com |
325ce60a54f9b633e41e0764919b0fe431c94705 | 4fd5860beb1e6809eee297509bcc776dfca40aca | /phase_coh_1871_2016/codes/figs.py | 2ab4b1d42585720a11853ce5c3f3f57bcec0ac8f | [] | no_license | manmeet3591/fingerprint-volcano-enso-im | 40a41eca517abdd09079feb7ae58cc866343d6a8 | 21f39125ece4d03c5ee2961e4aae3768ee61cdb8 | refs/heads/master | 2021-07-05T09:49:28.858614 | 2021-04-19T02:55:45 | 2021-04-19T02:55:45 | 229,057,834 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,588 | py | #! /usr/local/opt/python/libexec/bin/python
"""
Functions used to plot the output figures
=========================================
"""
# Created: Thu Nov 16, 2017 02:05PM
# Last modified: Fri Nov 17, 2017 09:02AM
# Copyright: Bedartha Goswami <goswami@pik-potsdam.de>
import numpy as np
import datetime as dt
from... | [
"manmeet20singh11@gmail.com"
] | manmeet20singh11@gmail.com |
7a877964c195ba8b4611fc1c614aab2598a7d346 | b2301365d220ff0295b8beddbed38b0581f9610d | /Django/landscapes/landscapes/urls.py | 6bb380064f3a5011c960add9367daf6a83339d72 | [] | no_license | JoA-MoS/Python | db246a5ff2201c6ef1dfb9d9b0fd8a37e1d7c46d | 4547c2667f3eaf0a001532bb2b103aab3c344fbe | refs/heads/master | 2021-08-16T11:18:20.420868 | 2017-07-21T05:52:18 | 2017-07-21T05:52:18 | 96,125,892 | 0 | 0 | null | 2021-06-10T18:40:09 | 2017-07-03T15:34:52 | Python | UTF-8 | Python | false | false | 786 | py | """landscapes URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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... | [
"justin.r.dietz@gmail.com"
] | justin.r.dietz@gmail.com |
ecd93e403f59177af30c79be215d4ebf01bfa725 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_068/ch27_2020_03_11_11_55_56_463054.py | 48928ddb084204cf2ffd0f1ab7892e1dc62e802c | [] | 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 | 129 | py | a = input("Você tem dúvidas? ")
while a != "não":
print("Pratique mais")
if a == "não":
print("Até a próxima")
| [
"you@example.com"
] | you@example.com |
cddfc9177257df40d436d50cbb8e5b8c6df0014d | 0b86600e0288c0fefc081a0f428277a68b14882e | /code/test-tex.py | 88494d5f2d9c294df67876d5ebb5c013470ef015 | [] | no_license | Byliguel/python1-exo7 | 9ede37a8d2b8f384d1ebe3d612e8c25bbe47a350 | fbf6b08f4c1e94dd9f170875eee871a84849399e | refs/heads/master | 2020-09-22T10:16:34.044141 | 2019-12-01T11:52:51 | 2019-12-01T11:52:51 | 225,152,986 | 1 | 0 | null | 2019-12-01T11:51:37 | 2019-12-01T11:51:36 | null | UTF-8 | Python | false | false | 128 | py | # Ceci est un test de code Python
# Accents a verifier à é ù
def fonc(x):
"""Fait ceci à é ù"""
return x ** 2 + 1 | [
"arnaud.bodin@math.univ-lille1.fr"
] | arnaud.bodin@math.univ-lille1.fr |
06610cfadfa7b7f1355f379fc9b4d330bce025b0 | a1e7457b5d1ef03ea9d891a6886718b3029c2ba4 | /zoe_scheduler/state/blobs/__init__.py | 35e47533ccc22fcd06c1ecf2657d097af0742752 | [
"Apache-2.0"
] | permissive | ddcy/zoe | 06bd104b0d3b632ed18ff8a8cc5b580b1f140b1f | bd1ac8cdefeda3ebd1ccc941243b781cb7c0beb2 | refs/heads/master | 2020-12-26T21:46:17.128925 | 2016-02-26T17:52:20 | 2016-02-26T17:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # Copyright (c) 2016, Daniele Venzano
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"venza@brownhat.org"
] | venza@brownhat.org |
d71f2466df1c9554cae2cf12998556a240bc251a | 711756b796d68035dc6a39060515200d1d37a274 | /output_exocyst/optimized_46960.py | 25862edd43771c3123d24cf36d218bdacaf22006 | [] | 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 | 13,505 | 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 |
47ca697e284e6664d1e966bda357bb112aa56356 | d3b80b8de39d4bb4bab02b0e8b5092c2e32aff24 | /login-getmileage.py | d3256d39233544095f5551a9f87de3fbfbd22e09 | [] | no_license | brightparagon/learn-python-crawl-scrape | 658a058fee4ecdb31c92be54b5cb684f5d4d4658 | f28769fd469f69a485e560dc42d20aa08c51dc77 | refs/heads/master | 2021-05-02T05:23:13.512441 | 2018-07-02T14:58:54 | 2018-07-02T14:58:54 | 120,919,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | import requests
from bs4 import BeautifulSoup
from urllib.parse import urljoin
USER = "<TEST>"
PASS = "<TEST>"
# start a session
session = requests.session()
# login
login_info = {
"m_id": USER,
"m_passwd": PASS
}
url_login = "http://www.hanbit.co.kr/member/login_proc.php"
res = session.post(url_login, data=logi... | [
"kyeongmo2@gmail.com"
] | kyeongmo2@gmail.com |
1367272170c6c2fe4e9fdfa587a3138dc85931cb | 8ec02d2d8537b83420f5a0bdbb28b9d3f4fd64ef | /rotkehlchen/tests/utils/history.py | 5a8272b8490e3fadbad03dca13de372191d00ceb | [
"BSD-3-Clause"
] | permissive | sponnet/rotki | c571f5cc7586592711aa2af3107f83528ef8ae47 | 7991d254f60ee6db2764db7b12296a5b5a732e18 | refs/heads/master | 2020-12-14T04:37:05.447563 | 2020-01-04T09:12:54 | 2020-01-04T09:28:38 | 234,641,916 | 0 | 0 | BSD-3-Clause | 2020-01-17T21:45:13 | 2020-01-17T21:45:12 | null | UTF-8 | Python | false | false | 25,577 | py | from typing import Any, Dict, List, Union
from unittest.mock import patch
from rotkehlchen.constants.assets import A_BTC, A_ETH
from rotkehlchen.exchanges.data_structures import AssetMovement, MarginPosition, Trade
from rotkehlchen.fval import FVal
from rotkehlchen.rotkehlchen import Rotkehlchen
from rotkehlchen.tests... | [
"lefteris@refu.co"
] | lefteris@refu.co |
5c94e0ecd48a3e1e6b1341ab6049f1b1c6cc7455 | e0e55462707e8257559736f212ad086fbb5f9af5 | /util/path_config.py | 47d0bb3fd2df3e4777e54233ca5de1acb9a0a277 | [] | no_license | jtpils/SSRNet | 45e5c97f82e21c4f672d3c7e61de0c6036b7a95c | 05d70706f4ecdecd502890a799b0d316db15ebd3 | refs/heads/master | 2022-11-26T11:46:24.597002 | 2020-07-28T02:56:33 | 2020-07-28T02:56:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | import sys
open3d_path = '/mnt/A/jokery/projects/Open3D_test3/src/build/lib/'
tc_path = '/mnt/A/jokery/projects/08_2/'
sys.path.append(open3d_path)
from py3d import *
def get_tc_path():
return tc_path
| [
"noreply@github.com"
] | jtpils.noreply@github.com |
0a895f1f4937acd75b9c99d191c3306bff7ea81a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02951/s718036718.py | 3cccf0c6bef0cc9a94bcd2b254316aabdb7fd13e | [] | 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 | 78 | py | a, b, c = map(int, input().split())
a = min(b + c, a)
c = b + c - a
print(c) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b306dcb0889d1ec282242b257ade90f599f43fea | 227b02ca30168c31accd1b7d38c3436b737a2f8e | /lenstronomy/Data/image_noise.py | 3ab46bd7ca164bfecd4003235a32c6a0ead736ba | [
"MIT"
] | permissive | Thomas-01/lenstronomy | b7d802c6213f0b7780acb7946b9bb150081b5d34 | 36db4c7f43ba28d6bdecdab1f15c537043f4a286 | refs/heads/master | 2020-06-03T04:22:06.123622 | 2020-03-31T18:33:47 | 2020-03-31T18:33:47 | 191,435,987 | 0 | 0 | MIT | 2019-07-11T03:22:29 | 2019-06-11T19:21:27 | Python | UTF-8 | Python | false | false | 4,711 | py | import numpy as np
class ImageNoise(object):
"""
class that deals with noise properties of imaging data
"""
def __init__(self, image_data, exposure_time=None, background_rms=None, noise_map=None, verbose=True):
"""
:param image_data: numpy array, pixel data values
:param expo... | [
"sibirrer@gmail.com"
] | sibirrer@gmail.com |
ec3e99c49cd07250adacf2d417ff14a17a27c5f3 | eea704186322a0441124bae2eaefc185c75a69f1 | /setup.py | 581f4773531a0ab6f4988a45d2bc94e64bcfe9dd | [
"BSD-3-Clause"
] | permissive | ScottTaing/taolib | ff5c78c8e6ba0522f5d932975fdc8805c0564b4e | fbd4138d1be9a3ef032284a52662213833921efc | refs/heads/master | 2021-01-17T23:27:14.511401 | 2011-05-06T05:04:55 | 2011-05-06T05:04:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,423 | py | #!/usr/bin/env python
import os
import sys
from distutils.core import setup, Extension
def main():
if not float(sys.version[:3])>=2.4:
sys.stderr.write("CRITICAL: Python version must be greater than or equal to 2.4! python 2.6.2 is recommended!\n")
sys.exit(1)
setup(name="taolib",
ve... | [
"vladimir.liu@gmail.com"
] | vladimir.liu@gmail.com |
7bcb803514e2cca016a206f9f03f15936cec735d | 66a9c25cf0c53e2c3029b423018b856103d709d4 | /sleekxmpp/features/feature_starttls/starttls.py | eb5eee1d5f5b8798c4f721522214b325b276dc94 | [
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | fritzy/SleekXMPP | 1b02d3e2b22efeb6bf3f8f487e6c0343b9b85baf | cc1d470397de768ffcc41d2ed5ac3118d19f09f5 | refs/heads/develop | 2020-05-22T04:14:58.568822 | 2020-02-18T22:54:57 | 2020-02-18T22:54:57 | 463,405 | 658 | 254 | NOASSERTION | 2023-06-27T20:05:54 | 2010-01-08T05:54:45 | Python | UTF-8 | Python | false | false | 2,100 | py | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2011 Nathanael C. Fritz
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import logging
from sleekxmpp.stanza import StreamFeatures
from sleekxmpp.xmlstream import RestartStream, register_stanza_plugin
from sleekxmpp... | [
"lancestout@gmail.com"
] | lancestout@gmail.com |
73ccc88785e3b447db6019e216b1ee9fca44786e | 1b87d5f7cba7e068f7b2ea902bba494599d20a78 | /tools/upload/googlecode_upload.py | 7d179f3a0d96db814dd7cef9a9724e7b4579bd08 | [
"BSD-3-Clause"
] | permissive | jpaalasm/pyglet | 906d03fe53160885665beaed20314b5909903cc9 | bf1d1f209ca3e702fd4b6611377257f0e2767282 | refs/heads/master | 2021-01-25T03:27:08.941964 | 2014-01-25T17:50:57 | 2014-01-25T17:50:57 | 16,236,090 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,896 | py | #!/usr/bin/env python
#
# Copyright 2006 Google Inc. All Rights Reserved.
# Author: danderson@google.com (David Anderson)
#
# Script for uploading files to a Google Code project.
#
# This is intended to be both a useful script for people who want to
# streamline project uploads and a reference implementation for
# uplo... | [
"joonas.paalasmaa@gmail.com"
] | joonas.paalasmaa@gmail.com |
038857cb63e1a53e8498e0e7db5a344f570b070f | b501a5eae1018c1c26caa96793c6ee17865ebb2d | /Networking/socket/socket_echo_client_dgram.py | 9a94a43d153d9f68fb0d97cdb5884623b3572b54 | [] | no_license | jincurry/standard_Library_Learn | 12b02f9e86d31ca574bb6863aefc95d63cc558fc | 6c7197f12747456e0f1f3efd09667682a2d1a567 | refs/heads/master | 2022-10-26T07:28:36.545847 | 2018-05-04T12:54:50 | 2018-05-04T12:54:50 | 125,447,397 | 0 | 1 | null | 2022-10-02T17:21:50 | 2018-03-16T01:32:50 | Python | UTF-8 | Python | false | false | 439 | py | import socket
import sys
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = ('localhost', 10000)
message = b'This is the message, it will be repeated'
try:
print('Sending {!r}'.format(message))
sent = sock.sendto(message, server_address)
print('Waiting for receive')
data, serve... | [
"jintao422516@gmail.com"
] | jintao422516@gmail.com |
052a2fec1e7d06a2ba0f6997bf07d9d453dcf143 | f31fda8014ecadf6af7d4e3392fb917c49e0352a | /HeavyIonsAnalysis/JetAnalysis/python/jets/akFilter2CaloJetSequence_pp_mc_cff.py | be232d658ab95be08e158cc0de98688f77436bd0 | [] | no_license | jniedzie/lightbylight | acea5051f053c49824a49a0b78bac3a2247ee75f | f5a4661fcf3fd3c0e9ccd8893a46a238e30c2aa8 | refs/heads/master | 2020-03-18T12:24:31.970468 | 2018-02-09T15:50:00 | 2018-02-09T15:50:00 | 134,724,759 | 0 | 1 | null | 2018-05-24T14:11:12 | 2018-05-24T14:11:12 | null | UTF-8 | Python | false | false | 14,936 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"rchudasa@cern.ch"
] | rchudasa@cern.ch |
f72480accb059522869217f8cf37e191dde1a7b4 | 201f07e3ddfd4f1b24c24fc794aa980a255fb2ab | /barriers/views/assessments/overview.py | e1bd181b2078e37846d386e93ed49544758a1f6b | [
"MIT"
] | permissive | uktrade/market-access-python-frontend | 7dab68eed0b35205f4c78758ab88c815f65631c2 | 9510c31f7264c4092f76fce336d05b6709802b1c | refs/heads/master | 2023-09-05T09:38:42.473232 | 2023-08-31T08:42:49 | 2023-08-31T08:42:49 | 225,406,107 | 7 | 3 | MIT | 2023-09-13T09:41:55 | 2019-12-02T15:20:46 | Python | UTF-8 | Python | false | false | 586 | py | from django.conf import settings
from django.views.generic import TemplateView
from ..mixins import BarrierMixin
class AssessmentOverview(BarrierMixin, TemplateView):
template_name = "barriers/assessments/overview.html"
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwarg... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
29ded85963427005447945c2553a28c700c64f2c | 50ee2f4f1a7d2e5ff7ac35118c5ac45f9b923865 | /0x04-python-more_data_structures/11-mutiply_list_map.py | e358dac1321fc511f9324487fbc1dcfae81e9a3d | [] | no_license | spencerhcheng/holbertonschool-higher_level_programming | b489fbe8eba6109ef1eaa0d9363f3477e7eb16c4 | f8e1dbc24fcf8fb40ca135d2700872eb773e481e | refs/heads/master | 2021-01-20T06:54:35.044899 | 2018-05-20T05:09:59 | 2018-05-20T05:09:59 | 89,943,332 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | #!/usr/bin/python3
def mutiply_list_map(my_list=[], number=0):
return(list(map(lambda x: x*number, my_list)))
| [
"spencerhcheng@gmail.com"
] | spencerhcheng@gmail.com |
71522388895aa9b96e91d33115a18a44030a8f11 | dc182e5b4597bdd104d6695c03744a12ebfe2533 | /Hackerrank Solutions/array.py | 548b0132cc10c538e8612616e21c82103c603c13 | [] | no_license | srinaveendesu/Programs | 06fb4a4b452445e4260f9691fe632c732078d54d | f6dbd8db444678b7ae7658126b59b381b3ab0bab | refs/heads/master | 2023-01-27T14:42:40.989127 | 2023-01-18T22:36:14 | 2023-01-18T22:36:14 | 129,948,488 | 1 | 0 | null | 2022-09-13T23:06:04 | 2018-04-17T18:30:13 | Python | UTF-8 | Python | false | false | 4,002 | py | #QQ# #https://www.hackerrank.com/challenges/array-left-rotation/problem
#!/bin/python3
import math
import os
import random
import re
import sys
if __name__ == '__main__':
nd = input().split()
n = int(nd[0])
d = int(nd[1])
a = list(map(int, input().rstrip().split()))
l = (a[::][d:]+ a[:d])
... | [
"srinaveen.desu@gmail.com"
] | srinaveen.desu@gmail.com |
26d0cb12f5092278fa8ddcee18b2141fd5dd5574 | 9382a3acd3637a1c242045bff8109dee844d869a | /src/webhook_server_for_evaluation.py | 10a64c5634e81ba458af050880bc5ec18bf38dba | [
"MIT"
] | permissive | byeongkyu/dialogflow_dialog | 4cf19133f73d8ea82b8fb98e33a661804217a5db | c7ae5ce65f8fb6fa830817ab186a9851a26473e0 | refs/heads/master | 2020-03-17T20:07:05.222328 | 2018-08-23T23:42:39 | 2018-08-23T23:42:39 | 133,893,838 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,691 | py | #!/usr/bin/env python
#-*- encoding: utf8 -*-
import os
import time
import rospy
import threading
import logging
import json
import requests
import random
from std_msgs.msg import String, Int16, Empty
from flask import Flask, Response, request, make_response, jsonify
WEATHER_TEXT = [
"The weather in {city} now i... | [
"byeongkyu@gmail.com"
] | byeongkyu@gmail.com |
3455029efbae033f2c0da3c1c4522c8c9b33cb33 | e6a90d21e9a983476adda3cccc832a828875cea9 | /Lib/site-packages/ffc/jitobject.py | 19a9d2db3872418e1f60e0ccf70f4753e65356c4 | [] | no_license | maciekswat/dolfin_python_deps | e28c27780d535c961e4b3129bb17628a4ff7167a | 7af15cd0ab522436ca285f8422faa42675345f55 | refs/heads/master | 2021-01-25T12:14:55.779591 | 2014-04-23T22:51:19 | 2014-04-23T22:51:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,931 | py | # Copyright (C) 2008-2013 Anders Logg
#
# This file is part of FFC.
#
# FFC is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ... | [
"maciekswat@gmail.com"
] | maciekswat@gmail.com |
e47ec77483d8ea21ac2c7f17ceca3591cb18192a | df858cb8172f73aad1af25496ac86e637a203bf4 | /Introdução a Programação com Python - exercícios baixados do site oficial/Listagens/07.45 - Jogo da forca.py | bf6002fa6bef2b078f9bd73b91e7c106e5860d59 | [] | no_license | emersonleite/python | 33cd48788e4f641da244ba9fd0460b9a5b1ef0bc | 8157fcd5c7ee7f942a4503ad386e7d2054d5acfc | refs/heads/master | 2020-03-08T04:09:57.857429 | 2019-03-27T14:56:46 | 2019-03-27T14:56:46 | 127,913,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,790 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2014
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Primeira reimpressão - Outubro/2011
# Segunda reimpressão - ... | [
"emerson.bl@gmail.com"
] | emerson.bl@gmail.com |
7287bd809c049bf9525538a634f1b9f8bb262e56 | 866a3a0b02ad10ba7e0f4db18efd38a213b0e3c5 | /18_0.py | b4b60322a0693c11ff34a160f7ce3c5641122b56 | [] | no_license | SleepwalkerCh/Leetcode- | 6da7f5859184ae86c6f16d10e3570f837f2508d6 | 9472b9dd388a8774339ecf9d8ff6cb61b7ea821f | refs/heads/master | 2021-03-07T10:58:25.086406 | 2020-03-19T07:50:32 | 2020-03-19T07:50:32 | 246,260,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #18. 4Sum18
# 很简陋的做法,大概率会超时,在O(n^4)基础上做了一些小优化,但是结果未进行查重
# WRONG ANSWER
class Solution:
def fourSum(self, nums: List[int], target: int) -> List[List[int]]:
nums.sort()
result=[]
print(nums)
for i in range(len(nums)-3):
for j in range(i+1,len(nums)-2):
for k... | [
"1024089291@qq.com"
] | 1024089291@qq.com |
c73ae77ac18bd3d3bd5970245667f5e8fd8b2471 | 6b6f68f507746e3e39b0e8789af5d044e27d6b0a | /Math/0204_CountPrimes_E.py | e266761a3e920a2ddefc2e292ae002021428d1b4 | [] | no_license | PFZ86/LeetcodePractice | bb0012d8b3120451dda1745875836278d3362e45 | 6db9db1934bc0a8142124d8b56bf6c07bdf43d79 | refs/heads/master | 2021-08-28T08:43:27.343395 | 2021-08-17T20:38:32 | 2021-08-17T20:38:32 | 230,925,656 | 1 | 1 | null | 2021-08-17T20:38:32 | 2019-12-30T14:01:27 | Python | UTF-8 | Python | false | false | 1,430 | py | # https://leetcode.com/problems/count-primes/
# Solution 1: the naive method, time complexity O(n^{1.5})
class Solution(object):
def isPrime(self, num):
if num <= 1:
return False
i = 2
# Use i*i <= num as the ending condition;
# do not use the expensive functi... | [
"pengfeizang@pengfeis-iMac.fios-router.home"
] | pengfeizang@pengfeis-iMac.fios-router.home |
478995ae08d50e8625c61409890afdaa49990940 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/layout/polar/angularaxis/_tickcolor.py | c767e805316121395caad30ece9326f5d675e0b8 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 458 | py | import _plotly_utils.basevalidators
class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self,
plotly_name='tickcolor',
parent_name='layout.polar.angularaxis',
**kwargs
):
super(TickcolorValidator, self).__init__(
plotly_name... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
f5048e620a1d249b16bfa06ee8a33bc414722ba4 | 9d831207b43422b40e54cf6258a29b2f92b66290 | /src/boot_navigation/reports.py | 9348679320e16ccddb3aafca90894e6209798d01 | [] | no_license | AndreaCensi/yc1304 | 714e70e972e9ee31ac011bdb94a57a8ab568f853 | 0bc2b759423db7da73fac47572719a37a80fee0e | refs/heads/master | 2020-06-04T12:52:10.902082 | 2013-07-19T07:00:49 | 2013-07-19T07:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,822 | py | from .navigation_map import NavigationMap
from .plots import plot_arrow_SE2, plot_arrow_se2
from contracts import contract
from geometry import se2_from_linear_angular
from reprep import Report, rgb_zoom, scale
import numpy as np
import warnings
__all__ = ['display_nmap']
@contract(report=Report, nmap=NavigationMap)... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
5ac6bb0b7e9b88f4f929ade58c1f69f32bbdda68 | 61a3cba75de7f6da049bcf34343b9839291bda75 | /mrjob/conf.py | 1536217cf2186e0724b02dce429b8aad1effa0da | [
"Apache-2.0"
] | permissive | joshuamckenty/mrjob | b309ed094945b24a471fa8214bb10d35e364a65a | f24991ffae9e7a2dad9fd3403d5e96635ededa4a | refs/heads/master | 2020-12-24T15:22:45.869655 | 2010-10-28T18:07:00 | 2010-10-28T18:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,079 | py | # Copyright 2009-2010 Yelp
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... | [
"dave@yelp.com"
] | dave@yelp.com |
d364a514127247742d43f012ec5b553a968c4bf0 | f4dd8aa4e5476ffde24e27273dd47913c7f9177a | /Dlv2_safe2/tests/parser/range.3.test.py | 5291d84363c7b37476ea8dd1fa8f8da8958c4baa | [
"Apache-2.0"
] | permissive | dave90/Dlv_safe2 | e56071ec1b07c45defda571cb721852e2391abfb | f127f413e3f35d599554e64aaa918bc1629985bc | refs/heads/master | 2020-05-30T10:44:13.473537 | 2015-07-12T12:35:22 | 2015-07-12T12:35:22 | 38,256,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | input = """
%#maxint=10.
f(a).
% intuitively, one could expect: g(4). g(3). g(2). here
% but this does not produce any g():
%g(4..2).
%h(1..3).
f(b).
intersect(X) :- g(X), h(X).
"""
output = """
%#maxint=10.
f(a).
% intuitively, one could expect: g(4). g(3). g(2). here
% but this does not produce any g():
%g(4..2... | [
"davide@davide-All-Series"
] | davide@davide-All-Series |
7220d2c71f026f768b003347430670f8bafceab5 | 9321d3460ffbbb6cd7917b2bac77ce8321e04737 | /contributions/Legacy/MOO/optimization/master/master_to_slave.py | d57ff0e707a482d8afa58f4b3774b4524cec5be3 | [
"MIT"
] | permissive | muehleisen/CEAforArcGIS | b820d837cd5373b95851b4e5dda609d69f054b97 | b6aeca5a9d70835381625a9162d5695714e1a02b | refs/heads/master | 2021-01-11T21:24:18.482264 | 2017-01-06T05:28:48 | 2017-01-06T05:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,673 | py | """Data required for Slave from Master"""
"""
This File sets all variables for the slave optimization, that have to be set by the Master
"""
#import os
#Energy_Models_path ="/Users/Tim/Desktop/ETH/Masterarbeit/Github_Files/urben/Masterarbeit/EnergySystem_Models"
#Network_Raw_Data_Path = "/Users/Tim/Desktop/ETH/Mastera... | [
"fonseca@arch.ethz.ch"
] | fonseca@arch.ethz.ch |
c15199f76236b5e1a4aa7c00237e9015dab2015a | 9c9512d92f4693a40e80e2dc8df9a74ef34a9b02 | /archive/fibcoll_cmass_pm.py | 0bf73edf6ea47071ec8819e7d74dcb28dacd6166 | [] | no_license | changhoonhahn/FiberCollisions | 9184600bbd596f861755425c46b311b2ab342af5 | ee0bfab26cc0167982822d8bc5c5654eaccbe2ef | refs/heads/master | 2021-01-18T21:19:12.457250 | 2017-01-31T20:33:29 | 2017-01-31T20:33:29 | 34,329,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | import numpy as np
import pylab as py
from scipy.integrate import simps
from scipy.optimize import curve_fit
from matplotlib import rc
rc('text', usetex=True)
rc('font', family='serif')
prismdir = '/global/data/scr/chh327/powercode/data/'
disp_los = np.loadtxt(prismdir+'cmass-dr11v2-N-Anderson-disp_los_pm.dat')
disp_... | [
"chh327@nyu.edu"
] | chh327@nyu.edu |
02256d1be416fd37e092a3e263c29dcedad1ef63 | 78a15793be1ba71ea7eecee33abef4ecbe11d8f2 | /apps/users/migrations/0016_auto_20151102_1457.py | 5a3e982e5c71bdaae3706ce02e4d2db9cbd42842 | [] | no_license | teresaylin/my2009 | f5df9c62492d4c88931f6aa45af31ee88dbe3a1a | 2486750ad73df313d596497b0eb7f4c47518e6a6 | refs/heads/master | 2021-03-21T23:53:55.581074 | 2016-06-01T18:13:44 | 2016-06-01T18:13:44 | 23,392,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0001_initial'),
('users', '0015_auto_20151102_1456'),
]
operations = [
migrations.AddField(
... | [
"jam.hann@gmail.com"
] | jam.hann@gmail.com |
b68b7e14f09c7cdcf1d4e14991aaea2461b218bd | e986ebbf73a6dff7ccc58feb886e54afa57e49d9 | /sdk/python/pulumi_awsx/_utilities.py | 83985732e9f67955c5ab392bc27761660f9323b9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-awsx | 5a5bdd77afaa674e9a5dd9f26540ddea5a1cde1c | 45136c540f29eb3dc6efa5b4f51cfe05ee75c7d8 | refs/heads/master | 2023-09-01T21:47:40.877155 | 2023-08-24T04:14:12 | 2023-08-24T04:14:12 | 132,053,036 | 186 | 107 | Apache-2.0 | 2023-09-13T07:28:54 | 2018-05-03T21:46:28 | TypeScript | UTF-8 | Python | false | false | 8,056 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumi-gen-awsx. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import importlib.util
import inspect
import json
import os
import pkg_resources
import sys
import typing
import pulumi
import pulumi.runtime
from semver impo... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
c4674a7fdc765d2349e6a916e2744d418ebef5eb | 97f2852420d6fdc98e5a4a0321c35920ff070d41 | /examples/scripts/csc/cbpdn_ams_clr.py | 9b7714d8854ec1722a6998cd4d1d3d001830f1ee | [
"BSD-3-Clause"
] | permissive | eglxiang/sporco | 93595f3afb6acda758425f7332513eeb892fa51f | e4a716b32b675d6e23ba0bfc3b2d7c6f9bc5d7a3 | refs/heads/master | 2021-05-04T23:03:57.430340 | 2018-01-19T19:03:01 | 2018-01-19T19:03:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,460 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# This file is part of the SPORCO package. Details of the copyright
# and user license can be found in the 'LICENSE.txt' file distributed
# with the package.
"""
CSC with a Spatial Mask
=======================
This example demonstrates the use of :class:`.cbpdn.AddMaskSim... | [
"brendt@ieee.org"
] | brendt@ieee.org |
951f433acec27ae7970c718810065a209f4c17b4 | c2602ec4c504914c0831ab061b6cee779be344a2 | /python/aead/kms_envelope_aead.py | ba9b8f25dc2ed14a763e30b393d4095f7add5406 | [
"Apache-2.0"
] | permissive | shigakio/tink | 85f8da6033139154528bf00bdadd8f3f800f6223 | a61aaeeb5da223357b5ec3513231bc8e493a4ac1 | refs/heads/master | 2021-02-06T14:41:38.074226 | 2020-02-20T06:18:02 | 2020-02-20T06:18:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,463 | py | # Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
5cc22cbff16ea64707ce2511eef96003aec9056c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_173/ch161_2020_06_15_19_32_40_555261.py | a28363ec0ee02b8ca4432c1e1eb5d32ebf08b4a3 | [] | 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 | 286 | py | def PiWallis(elementos):
numerador,denominador = 2,1
i = 0
mul = 1
while i < elementos:
mul*= numerador/denominador
if i%2 == 0:
denominador += 2
else:
numerador +=2
i+=1
oi=mul*2
return oi | [
"you@example.com"
] | you@example.com |
0042cd7ad97726820014cb8b6a3f087d560913d2 | b41da6f351f27bf0d45a4e4d0e1be8f3a86f4b64 | /itsybitsy/leetcode/sliding_window.py | 2ddaef9a489cf95fe6af1b0a16bd1c8ef0f3cf44 | [] | no_license | santoshr1016/WeekendMasala | a5adbabe0b78cde567667376d7ddf05bb505a0ff | e099f9ac9677f7acb8faf620af94a06d76cae044 | refs/heads/master | 2020-03-26T00:26:32.649429 | 2019-08-30T07:32:24 | 2019-08-30T07:32:24 | 144,320,624 | 0 | 0 | null | 2019-06-03T23:08:00 | 2018-08-10T18:36:38 | Python | UTF-8 | Python | false | false | 278 | py | def sliding_window(nums, k):
size = len(nums) - (k-1)
op_list = []
for i in range(size):
op_list.append(max(nums[i: i+k]))
print(op_list)
return op_list
nums = [1, 3, -1, -3, 5, 3, 6, 7, 7, 8, 1, 34, -9]
k = 3
rv = sliding_window(nums, k)
print(rv)
| [
"santosh.ratnala@acquia.com"
] | santosh.ratnala@acquia.com |
28092363189055508902a6a5c0f2d91bdbd1ce62 | c065ff2a6a377aea2303b7b8482558049958a7ec | /shoe/1562059380/tactile.tac | cd120fe362dfa9c3097804be7f1c3def6e34d680 | [] | no_license | waedbara/vision2tactile | 7bc9861eecb4247fd254ea58dc508ed18a03b1af | edbc9dfee61b4a4b1f0caebb2f16faef090dff32 | refs/heads/master | 2022-04-02T20:43:16.621687 | 2019-12-11T08:07:39 | 2019-12-11T08:07:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | tac | ,3632,3750,3712,3742,3519,3722,3759,3345,3575,3584,3489,3674,3255,3344,3162,3038,3148,2864,2829,2696,3728,3718,3659,3515,1999,2024,1896,2125,2652,3265,3474,3326,3423,3297,3090,3153,3077,2165,2254,3127,3435,3151,3294,3310,3224,3297,3235,2820,2675,3464,3467,3457,3360,2046,2061,2965,2037,2463 | [
"brayan.inf@gmail.com"
] | brayan.inf@gmail.com |
3dd7edb585e13d632ba412a0b12b8b9348c2948a | 578db86c51d44ebddd0dc7b1738985b3dc69eb74 | /corehq/apps/hqadmin/migrations/0015_rename_sqlhqdeploy.py | 0b35e450b0a336e0722dad15f4ee9786d7198ab2 | [
"BSD-3-Clause"
] | permissive | dimagi/commcare-hq | a43c7dd32b5f89c89fd5aa1b1359ab7301f4ff6b | e7391ddae1af1dbf118211ecb52c83fc508aa656 | refs/heads/master | 2023-08-16T22:38:27.853437 | 2023-08-16T19:07:19 | 2023-08-16T19:07:19 | 247,278 | 499 | 203 | BSD-3-Clause | 2023-09-14T19:03:24 | 2009-07-09T17:00:07 | Python | UTF-8 | Python | false | false | 512 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-01-31 20:24
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hqadmin', '0014_remove_sqlhqdeploy_couch_id'),
]
operations = [
migrations.RenameM... | [
"orange.jenny@gmail.com"
] | orange.jenny@gmail.com |
41003197a8029e2bdd2fb2389695572510a70bda | 76e9afdf16eabcc9e1a3facd308e56362112efc4 | /plot/lossplot3.py | 22ff012e1ffa7ab7c93816de25e1713f6ecdc95c | [] | no_license | rerejii/pwb_work_2021 | c65c5e787ad98b7d847cb63ebadc24a02f001e90 | 8ecfb2a98d9d396ed505ecc939e384cf6400412d | refs/heads/main | 2023-03-30T10:43:18.115386 | 2021-03-24T05:38:41 | 2021-03-24T05:38:41 | 350,954,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | import os
import glob
import csv
import sys
import numpy as np
import pandas as pd
from natsort import natsorted
import matplotlib.pyplot as plt
# import matplotlib
markset = ['A', 'B', 'C', 'D', 'E', 'F']
for mark in markset:
csv_path = 'Z:/hayakawa/binary/20210227/unet_use-bias_beta/unet_use-bias_beta-'+mark+'/C... | [
"hayakawa.shinya.kochi@gmail.com"
] | hayakawa.shinya.kochi@gmail.com |
4255372facaf9a7101262b53db5d91bb11fa70e9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/103/usersdata/222/50669/submittedfiles/av1_3.py | a078720d7ccf91267555d632f67ab1c0ab99e466 | [] | 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 | 188 | py | # -*- coding: utf-8 -*-
import math
a=int(input('a:'))
b=int(input('b:'))
r=1
resto=1
cont=0
while r>0:
r=a%b
a=b
b=r
cont=cont+1
resto=resto+1
print(resto)
print(cont) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
700c496a84a90d5c782ada2ec88467c3c5ab4266 | a913309bda87feee7f0637cb73901b4bcdca44bd | /0x0C-python-input_output/2-read_lines.py | a37333dfcb5deb5dd181b3116277abe6647cebde | [] | no_license | KamalTaleb/holbertonschool-python | e77b4f88a7ae60db158c0defa6c3f7737ad96562 | 29ffbccf1d02c7cf76a5df04d9386105dc149a81 | refs/heads/master | 2023-01-20T20:24:32.388729 | 2020-11-26T12:22:57 | 2020-11-26T12:22:57 | 292,331,337 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | #!/usr/bin/python3
"""read lines"""
def read_lines(filename="", nb_lines=0):
"""
read_lines
"""
line_number = 0
with open(filename, 'r', encoding='utf-8') as f:
for line in f:
line_number += 1
if line_number <= nb_lines and nb_lines > 0:
print(line, ... | [
"kamal.talebb@gmail.com"
] | kamal.talebb@gmail.com |
0e365224111f952db09c0c48889ec831a0dc1b5c | d7b4e2e391e1f15fd7cb4fbf4d9aee598131b007 | /models/BiLSTM1d.py | 38efbe949140c842932c9d98b0a6c2aa0f9616d9 | [
"MIT"
] | permissive | wuyou33/DL-based-Intelligent-Diagnosis-Benchmark | eba2ce6f948b5abe68069e749f64501a32e1d7ca | e534f925cf454d07352f7ef82d75a8d6dac5355c | refs/heads/master | 2021-01-02T15:06:29.041349 | 2019-12-28T21:47:21 | 2019-12-28T21:47:21 | 239,673,952 | 1 | 0 | MIT | 2020-02-11T04:15:21 | 2020-02-11T04:15:20 | null | UTF-8 | Python | false | false | 1,692 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
class BiLSTM(nn.Module):
def __init__(self, in_channel=1, out_channel=10):
super(BiLSTM, self).__init__()
self.hidden_dim = 64
self.kernel_num = 16
self.num_layers = 2
... | [
"646032073@qq.com"
] | 646032073@qq.com |
e54a254830aa0ee6382ff75d8b3544e326d9c316 | 3b7d82cc23bb9a760e897e881a2cbfb1d4cb954f | /labcoat/attributes.py | 720be9a8f39e048d6a4c02aa7c26741a4478da53 | [] | no_license | gulopine/labcoat | af972a17e7f165d49e9333c7d1a779d6f616d608 | 4a6bfe05f97ad5f63d6c4d097553ae659bad2312 | refs/heads/master | 2021-01-17T06:25:21.033563 | 2011-03-13T15:30:34 | 2011-03-13T15:30:34 | 1,448,589 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,523 | py | class AttributeTester(object):
def __init__(self, specimen):
self.__dict__['specimen'] = specimen
self.__dict__['instance'] = specimen.instance
self.__dict__['results'] = specimen.results
def __getattr__(self, name):
self.__dict__['name'] = name
result = self.tes... | [
"marty@martyalchin.com"
] | marty@martyalchin.com |
1885e133317728b591d8e215221e805903af13f0 | 867b5d6efc6761e97412613c19d41c4fbe927238 | /demos/callLineEdit.py | b58032c82c1b8cca29274ff8e02ab12d8525c398 | [] | no_license | LouisLu78/pyqt5 | 516bdcd35a6678b1add300a4a14854ef61165a08 | 10e0ab9b186c88131180dba19ded483431c6966f | refs/heads/master | 2020-09-26T13:55:54.350566 | 2020-04-23T14:33:49 | 2020-04-23T14:33:49 | 226,268,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
# author: Guangqiang Lu time:2019/12/2
#The codes below are copied from textbook.
import sys
from PyQt5.QtWidgets import QDialog, QApplication
from demos.demoLineEdit import *
class MyForm(QDialog):
def __init__(self):
super().__init__()
self.ui = Ui_Dialog()
self.... | [
"lewgq@yahoo.com"
] | lewgq@yahoo.com |
1be1c7204f14485d21ef5d7127501591e9648bad | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/cisco/aci/plugins/modules/aci_epg_to_contract.py | 45be2dd127a031e62cb74fd7e45089bff716e049 | [
"MIT",
"GPL-3.0-only"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 9,989 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['preview'],
... | [
"sifang@cisco.com"
] | sifang@cisco.com |
8e6086f8659c6e50223d4ade9b087dd525b2aabc | 6294e1613c812612d4463da83cfc24d8c213d3f6 | /arjuna/interact/gui/dispatcher/driver/driver_commands.py | 449247a61e551959f2f3511cbf38eef4b541f5b8 | [
"Apache-2.0"
] | permissive | prabhudatta22/arjuna | 52747bc2d9600f1cd04457b29c919221464a7b88 | 37a9afe3f8f2b2e82da854c3e497a67a77c6749f | refs/heads/master | 2022-12-06T04:10:21.346896 | 2020-08-31T06:03:13 | 2020-08-31T06:03:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,897 | py | # This file is a part of Arjuna
# Copyright 2015-2020 Rahul Verma
# Website: www.RahulVerma.net
# 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... | [
"rahulverma81@gmail.com"
] | rahulverma81@gmail.com |
9b48c9385f3523743bd3f869ee21796c098b6f19 | 728871b962f2a5ec8d8ec7d5b607def074fb8864 | /W261/HW13-Questions/PageRank.py | e2a57722c38f075390050316f7fe32acfb01088f | [] | no_license | leiyang-mids/MIDS | 0191ffbaf9f7f6ec0e77522241c3e76d012850f1 | 918b0d8afc395840626eb31c451ad6c4b2f3bc39 | refs/heads/master | 2020-05-25T15:46:56.480467 | 2019-03-28T16:16:17 | 2019-03-28T16:16:17 | 35,463,263 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from time import time
from datetime import datetime
def initialize(line):
# parse line
nid, adj = line.strip().split('\t', 1)
exec 'adj = %s' %adj
# initialize node struct
node = {'a':adj.keys(), 'p':0}
rankMass = 1.0/len(adj)
# emit pageRank mass and node
return [(m, rankMass) for m in... | [
"ynglei@gmail.com"
] | ynglei@gmail.com |
9bc3b610843612d19d76e61bd47db7d4bfb9af9d | 08b74293c409086681eda77310f61831552478f1 | /instafilter/model.py | 8861ab8fc61abd65f2855c66af97c9cde85038f8 | [] | no_license | jiaxinwang/instafilter | d895928a3c311edf8ce14f49e716334842a51acf | cdc84b1b1055fd3d8b5ba81db69f9abeef5346e7 | refs/heads/master | 2023-07-21T19:57:38.976494 | 2021-09-06T14:17:42 | 2021-09-06T14:17:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | import torch
from torch import nn
class ColorNet(nn.Module):
def __init__(self):
super().__init__()
self.fc1 = nn.Linear(5, 25)
self.fc2 = nn.Linear(25, 25)
self.fc3 = nn.Linear(25, 25)
self.fc4 = nn.Linear(25, 5)
def forward(self, x):
x = torch.tanh(self.fc1(... | [
"travis.hoppe@gmail.com"
] | travis.hoppe@gmail.com |
dcf71ee1082f20b11c686ad9ed9d87c549416a0d | adbbeeae023ffd1f4932210efd9bd0e1e326e501 | /flair/datasets.py | 178937afd07955c6b1bf78cc94045bea054311fa | [
"MIT"
] | permissive | sidney1994/CLNER | 504747882587d030532e03c1d15bffae8552c84b | 7340566c3f10d8b532f357d1d3fcfad6348b02fa | refs/heads/main | 2023-06-28T20:30:09.914547 | 2021-08-03T09:40:22 | 2021-08-03T09:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185,662 | py | import os, csv
import json
from abc import abstractmethod
from torch.utils.data import Dataset, random_split
from typing import List, Dict, Union
import re
import logging
from pathlib import Path
import torch.utils.data.dataloader
from torch.utils.data.dataset import Subset, ConcatDataset
import flair
from flair.data... | [
"wangxy1@shanghaitech.edu.cn"
] | wangxy1@shanghaitech.edu.cn |
a48cc5f99932ad1cb65d9cf20b449ded9b64ec57 | 12972f4d9e7de2c38e79ae911f2e7b125965cac9 | /virtual/lib/python3.6/site-packages/setuptools/_vendor/six.py | f8340b1e3743bbbdaf6b43684502ae46bda8f54b | [
"MIT"
] | permissive | Michellemukami/pitch | b33d0de81cc2a0dfe70ddc1e91affc88af63ff2b | aebb7736d18766343a5a295de0782aa175245c35 | refs/heads/master | 2022-10-22T03:55:33.364628 | 2019-08-07T10:15:10 | 2019-08-07T10:15:10 | 200,673,234 | 0 | 0 | null | 2022-09-16T18:07:53 | 2019-08-05T14:38:26 | Python | UTF-8 | Python | false | false | 30,094 | py | """Utilities for writing code that runs on Python 2 and 3"""
# Copyright (c) 2010-2015 Benjamin Peterson
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including with... | [
"you@example.com"
] | you@example.com |
4f872c0b06702838fd0288d6dcc363e5aa3b0c8a | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/4c735f24ea954a5ced87bd0bd1573fa3eb914c18-<save_inference_model>-fix.py | f762eaaca815726528bd1b1c9533f60f924fc3cf | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py |
def save_inference_model(self, executor, dirname, feeded_var_names, target_vars, main_program=None, export_for_deployment=True):
'\n Prune the given `main_program` to build a new program especially for inference,\n and then save it and all related parameters to given `dirname` by the `executor`.\n ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
d360f406e4e83ad61f765f38b25b91b19ee2015a | c1631329d605c04269357db500610468bb5a03e1 | /net2.py | 9323dd0aef0a9afe49fd3f24cc4bb695e3eafa0f | [] | no_license | andygom/bestInd | e164f77d68c5988c8636a377fd3f1cecf443f8c3 | 9fada18de0533b81390850f5d76526d8e3e0f2c4 | refs/heads/main | 2023-03-21T23:11:21.761657 | 2021-03-19T03:46:57 | 2021-03-19T03:46:57 | 349,291,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,813 | py | import numpy as np
from numpy import random
import time
from adafruit_servokit import ServoKit
kit = ServoKit channels=16
# INDIVIDUO CON experimento p100 g800 m0.5 / 5 ----- F I T N E S S D E 41.59513354301453
# weightsIH = np.random.random 14, 14 * 2 - 1
weightsIH = [-1.54777539e-01, 3.97567849e-02,... | [
"you@example.com"
] | you@example.com |
80b3def3345e608e8f51501194c5d23249ed50dc | 634fb5fe10e8f944da44ab31896acc8471ec5f18 | /hq_env/bin/sphinx-autogen | 42f0972c1ff3e67f0b39e10ebd4c8b542116b016 | [] | no_license | dimagi/commcarehq-venv | 277d0b6fada24f2edd54f74850267201153412a7 | 2c52e3fb0f974cae5c5feaea1d5de851fe530c80 | refs/heads/master | 2021-01-18T14:05:47.931306 | 2015-07-20T10:10:41 | 2015-07-20T10:10:41 | 11,513,855 | 1 | 1 | null | 2015-07-20T10:10:41 | 2013-07-18T21:09:22 | Python | UTF-8 | Python | false | false | 331 | #!/home/travis/virtualenv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'Sphinx==1.2b1','console_scripts','sphinx-autogen'
__requires__ = 'Sphinx==1.2b1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('Sphinx==1.2b1', 'console_scripts', 'sphinx-autogen... | [
"droberts@dimagi.com"
] | droberts@dimagi.com | |
276413737c57b3c74b11ccee0d0df56f0c65692a | d802a0793a4a4af0336912932c35499edac16845 | /Python/Python/Regex and Parsing/regex_substitution.py | c7a8c4e9aca66eb624f877498c6606e23f9b07fa | [] | no_license | butterflylady/hackerrank | fb1ca6801855b3956bbfb72a2f7a95db4513aca4 | c42e2c80c41a95eb10d9a061eb8e7132e52a71ac | refs/heads/master | 2021-08-27T21:02:50.512292 | 2021-08-05T08:40:37 | 2021-08-05T08:40:37 | 167,610,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | import re
def change_symb(match):
symb = match.group(0)
if symb == "&&":
return "and"
elif symb == "||":
return "or"
n = int(input())
for i in range(n):
line = input()
pattern = '(?<= )(&&|\|\|)(?= )' # Ex. s="A && && && && && && B"
print(re.sub(pattern, change_symb, line)... | [
"mpaluyanava@gmail.com"
] | mpaluyanava@gmail.com |
3df929b6a508a9d626634464b85f4d50299530ae | e88c152d699cef4af64fa5aa4b9c61631c03c8b6 | /Solutions/0949.Largest-Time-for-Given-Digits.py | 816118cebc673cecb74253fdf254dfeec22a97db | [] | no_license | arnabs542/Leetcode-3 | 062af047b1f828b9def2a6e2a4d906e77090b569 | 7e10ff62981db88053b511c3ef8bd284d728d2fc | refs/heads/master | 2023-02-26T19:21:05.037170 | 2021-01-20T07:04:48 | 2021-01-20T07:04:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,939 | py | """
949. Largest Time for Given Digits
Given an array arr of 4 digits, find the latest 24-hour time that can be made using each digit exactly once.
24-hour times are formatted as "HH:MM", where HH is between 00 and 23, and MM is between 00 and 59.
The earliest 24-hour time is 00:00, and the latest is 23:59.
Return ... | [
"noreply@github.com"
] | arnabs542.noreply@github.com |
70e3ea01aca468d440c1dbfa13b939fad9364327 | 67bdebd561b19af9bf759b6ed5de8556b93ea91f | /lower_priority.py | ba5a00b47b30c1d9e0248d2c3e339ba751417911 | [] | no_license | rlowrance/re-avm | 91371ec79f6b6f48e17643da4dfb7a4894d0a0ca | d4cfa62e9f65d325e8ac98caa61d3fb666b8a6a2 | refs/heads/master | 2021-01-17T07:34:16.876133 | 2017-02-06T21:04:59 | 2017-02-06T21:04:59 | 42,865,972 | 31 | 10 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | 'lower priority of current process'
import os
import pdb
def lower_priority():
# ref: http://stackoverflow.com/questions/1023038/change-process-priority-in-python-cross-platform
assert os.name in ('nt', 'posix'), os.name
if os.name == 'nt':
import win32api
import win32process
impor... | [
"roy.lowrance@gmail.com"
] | roy.lowrance@gmail.com |
55340e6faac1c5014b387c237c09e8efb4f223ca | 41a20700b5bb351d20562ac23ec4db06bc96f0d7 | /src/plum/plumr.py | 184a7d811a8acaa3a4afc138963e0ce6e0c62ab0 | [] | no_license | kedz/noiseylg | ee0c54634767e8d3789b4ffb93727988c29c6979 | 17266e1a41e33aecb95dc1c3aca68f6bccee86d5 | refs/heads/master | 2020-07-30T11:22:08.351759 | 2019-10-30T21:33:11 | 2019-10-30T21:33:11 | 210,212,253 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,551 | py | import argparse
from pathlib import Path
import os
import random
from pprint import pprint
import json
from collections import OrderedDict
def handle_debug_opts(args, plum_pointers, checkpoints):
if args.pprint_ds_sample is not None:
pprint_sample_datasource(args.pprint_ds_sample,
... | [
"kedzie@cs.columbia.edu"
] | kedzie@cs.columbia.edu |
d839256a8d0dfd778bd501e3df9f2c3f253c6d65 | e23512edf95ea66640eab85adb8ca0c24ae6e3f7 | /tensorflow/contrib/cluster_resolver/python/training/tpu_cluster_resolver.py | 2e75ac226ea74e879edda5e03dff3d53c8a76569 | [
"Apache-2.0"
] | permissive | snuspl/tensorflow | 755ac46c3163adb119de0755ed706b1c960991fb | 212d4e9e5f4093ecb90e5b7837d4e02da7506228 | refs/heads/r1.6 | 2021-06-25T18:03:17.625202 | 2018-12-30T09:35:50 | 2018-12-30T09:35:50 | 134,066,972 | 1 | 3 | Apache-2.0 | 2020-06-10T06:12:19 | 2018-05-19T14:02:25 | C++ | UTF-8 | Python | false | false | 5,508 | py | # Copyright 2017 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 applicable ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
860f1791698bd78cf19dfd6b510dded8bfc3d7e6 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-dds/aliyunsdkdds/request/v20151201/ModifyDBInstanceSSLRequest.py | fa202b9965c36683da32f4164ac33488935281df | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | 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... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
6fba3e2f19852a48949e376eb639e1e68a6b4b9b | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_02_01/aio/operations/_route_tables_operations.py | 49df42e16d5c87c760e0e1d5c64e87e8bdf8319f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 29,731 | 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"
] | catchsrinivas.noreply@github.com |
07fb742a3154e4c2d48b95cdd0de4b5caa6e4ef6 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp221_6000.py | c3d96f9d609326fe4bc4a6ffcbb094569ea52cb6 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,781 | py | ITEM: TIMESTEP
6000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.7251793543927784e+02 2.1971793543932216e+02
-1.7251793543927784e+02 2.1971793543932216e+02
-1.7251793543927784e+02 2.1971793543932216e+02
ITEM: ATOMS id type xs ys zs
1781 1 0.166858 0.0483895 0.47982
2019 1 0.667454 0.0408147 0.327508
1402 1 0... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
23d627ec0997959cf1212df3ad37627b2530ced6 | c8abf01fb77b526a0a6af1f7ed5b740d8aec65ba | /user_profile/migrations/0001_initial.py | 486a7471308c7ad448471795d084c1ecd6dd824b | [] | no_license | bitapardaz/diabet | f1cc6e039792c91bfb67754f5c7e18141f2573cc | 8a9b38d81c512148be43ea9cf4d09acbd07c3af0 | refs/heads/master | 2021-07-16T17:08:24.502219 | 2017-10-23T21:56:27 | 2017-10-23T21:56:27 | 108,029,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserProfile',
fields=[
('id', models.AutoField(... | [
"pourranjbar.ar@gmail.com"
] | pourranjbar.ar@gmail.com |
49de933b088b5782f28cb1a4cf8951cf0b947a90 | b59bc650ae07b18757b455e1b5cb7cfde91714a4 | /.env/local/lib/python3.5/site-packages/pip/_vendor/urllib3/util/response.py | 4dc7a11092cdd6afe3b1da5a4c197e42dfea15ff | [] | no_license | jhashubham28/BE_Project_SpeakerRecognition | d07c584359a5ebc6b524b3b4617b072c58724d17 | ede8fd53e79973e4116030e5a36f9deaa61dcc63 | refs/heads/master | 2020-05-29T20:42:15.055659 | 2019-05-30T20:17:30 | 2019-05-30T20:17:30 | 189,354,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | /home/pi/Downloads/BE_Project-SpeakerRecognition-master/.env/lib/python3.5/site-packages/pip/_vendor/urllib3/util/response.py | [
"jhashubham28@gmail.com"
] | jhashubham28@gmail.com |
f876294b823cd42948d89f02caf02bbee39ddf80 | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /tests/torch/test_load_model_state.py | 5eda1ed71238d33770b716b7cb5786bd3945a565 | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 27,407 | py | """
Copyright (c) 2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writin... | [
"noreply@github.com"
] | dupeljan.noreply@github.com |
b4825e7c09ac027db28bf8dd543d8e729e4955c0 | f34d3948b707e461151ee33296a61fb23a6d3f44 | /month01/day05/exercise04.py | 594a4d052bb6f40071f72eab8c844809892fe23a | [] | no_license | xiao-a-jian/python-study | f9c4e3ee7a2f9ae83bec6afa7c7b5434e8243ed8 | c8e8071277bcea8463bf6f2e8cd9e30ae0f1ddf3 | refs/heads/master | 2022-06-09T17:44:41.804228 | 2020-05-05T07:48:07 | 2020-05-05T07:48:07 | 256,927,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | """
在终端中录入10个疫情省份的确诊人数
最后打印人数最多的、最少的、平均人数.(使用内置函数实现)
"""
list_confirmed = []
for item in range(10):
number = int(input("请输入第%d个省份的疫情人数:" % (item + 1)))
list_confirmed.append(number)
print(max(list_confirmed))
print(min(list_confirmed))
print(sum(list_confirmed) / len(list_confirmed))
| [
"1261247299@qq.com"
] | 1261247299@qq.com |
a6824d7e85b0264d31b1561314abad8654470d27 | 401fc99cefe615f8ebefb6dd9c2b043c506f5bd0 | /tests/conftest.py | 640a86e0d9e1741295eded78699d2d9877f23fe9 | [
"MIT"
] | permissive | atviriduomenys/spinta | 0f85496860ebbcecfccd8dde2bf219564ee66baa | 1fac5b6b75ec65188d815078fd135bc05d49b31c | refs/heads/master | 2023-09-02T13:22:58.411937 | 2023-08-18T12:59:17 | 2023-08-18T12:59:17 | 168,724,854 | 12 | 4 | MIT | 2023-09-14T13:29:39 | 2019-02-01T16:16:11 | Python | UTF-8 | Python | false | false | 4,119 | py | import builtins
import inspect
import os
import re
import sys
import time as time_module
from itertools import chain
from itertools import islice
from traceback import format_stack
from typing import Any
from typing import Dict
from typing import Iterator
from typing import TextIO
from typing import Type
import objpri... | [
"sirexas@gmail.com"
] | sirexas@gmail.com |
c9ce4a22aa785427947d43da377376900804d900 | cedc66fcd0c8e347a2e363a832819cfee3598c8a | /iprPy/record/point_defect/__init__.py | 6fec3f441d280d0a2e752c187abfbbb6c176e1ca | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-public-domain"
] | permissive | Aditya-912/iprPy | 1b201c3a62b691249a76dd07d507b2d94813b6b8 | 260bf203baf43a33a1bb3a079d7d5343c131dcd5 | refs/heads/master | 2023-03-11T21:35:17.963425 | 2021-03-05T16:31:27 | 2021-03-05T16:31:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | # iprPy imports
from .PointDefect import PointDefect
__all__ = ['PointDefect'] | [
"lucas.hale@nist.gov"
] | lucas.hale@nist.gov |
02a8274f0e85d0ac8c9b03e1f1d001771b15a3b3 | 0a1c2118c631c5b22dbb0906ceef263461377cb7 | /dev/python/proto/sensor_msgs_pb2.py | 9fbfd485cf761db6478399838056dcef1a21c5e4 | [
"MIT"
] | permissive | gecko-robotics/gecko-protobuf | dc9b583babe822aa1965b4b4a0aade9e24355a90 | 70bb1407a25d27588da6c58e4a6bc25dc7975234 | refs/heads/master | 2021-07-17T22:34:03.926951 | 2020-06-14T22:22:13 | 2020-06-14T22:22:13 | 181,314,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 33,355 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: proto/sensor_msgs.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.pr... | [
"walchko@users.noreply.github.com"
] | walchko@users.noreply.github.com |
1ced5c6e0a04b057cee4c476830695a129dc95c5 | 6dd400fec6f302bd0dcf309e2deec5de906d205c | /django_test6maria/myguest/urls.py | 9f02e4a7aca1f6b490e241f6a970eacb04b2142f | [] | no_license | Leo-hw/psou | aa938b7cfaa373a0980649125270c48d816202b0 | 70379156a623257d412bcccbac72986a61226bd4 | refs/heads/master | 2023-02-21T19:00:02.902510 | 2021-01-25T07:03:26 | 2021-01-25T07:03:26 | 332,616,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | from django.contrib import admin
from django.urls import path
from myguest import views
urlpatterns = [
path('', views.ListFunc),
path('insert/', views.InsertFunc),
path('insertok/', views.InsertFuncOk),
]
| [
"Bonghwan@DESKTOP-60LSTNL"
] | Bonghwan@DESKTOP-60LSTNL |
b540bb335ba07eb23f656de01bc48f3e0888a51e | 7fc678c2b1a0ef8849364e9c3e272b4509003796 | /py/merge-us-tracts-sql-code-gen.py | 482fce872848f536f179fddb32fdcccd07dcc606 | [] | no_license | nygeog/postgis_reference | ee7a599c2b60d713b5ae67039b5e5f4cfef9d7e8 | d3da41fa91dcd6e667d62cb3cc2439aed99f90a9 | refs/heads/master | 2020-04-05T23:28:14.942786 | 2017-08-12T16:51:29 | 2017-08-12T16:51:29 | 42,251,833 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | mergeTableName = 'tracts_2010_us'
attrList = ['geoid10', 'aland10', 'awater10', 'intptlat10', 'intptlon10', 'shape_leng', 'shape_area', 'geom']
attrListString = ", ".join(attrList)
statesList = ["01","02","04","05","06","08","09","10","11","12","13","15","16","17","18","19","20","21","22","23","24","25","26","27... | [
"daniel.martin.sheehan@gmail.com"
] | daniel.martin.sheehan@gmail.com |
dd0492a4e1c8d9c5c1695bf08f02984c8d021074 | b71a6e7050b0a4368007350d91ee078288a7318c | /examples/issues/issue189_img.py | cb2817ea11871f73a6164e09d73305c788330037 | [
"Apache-2.0"
] | permissive | jarvisteach/appJar | 2dfd0da6cb85ea3535379ed000efd97fb42fe4f8 | 0b59ce041da2197dcff3410e20f298676f1f7266 | refs/heads/appJar | 2023-08-29T09:42:01.812005 | 2019-09-28T18:34:06 | 2019-09-28T18:34:06 | 39,996,518 | 696 | 103 | NOASSERTION | 2023-02-20T01:01:16 | 2015-07-31T08:59:20 | Python | UTF-8 | Python | false | false | 252 | py | import sys
sys.path.append("../../")
from appJar import gui
with gui(useTtk=False) as app:
# app.addImageButton("button2", None, "Capture 2.PNG", align=None) # Uncomment this
app.addIconButton("button", None, "md-play", align="none") # Or this
| [
"jarvisteach@gmail.com"
] | jarvisteach@gmail.com |
a541b63a4a516afe5d07e6e2cb94b6f9ecfbfbca | 897a660b24d0ccc1a25132550dc4c735644efbfb | /048_self_powers.py | 0b745c15bbdfe4cbee42e2c6029e4f76bd87c684 | [
"MIT"
] | permissive | gradam/project-euler | 409b99a542c661cbc3e002bb9b89f5d03ea40cd5 | d939ad54d057fd8ed2db06948b6ccc7833d68ab6 | refs/heads/master | 2021-01-24T17:35:50.870830 | 2017-12-31T09:58:35 | 2017-12-31T09:58:35 | 30,153,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | suma = 0
for x in range(1, 1000):
suma += x**x
print(str(suma)[-10:])
print(str(28433*(2**7830457) + 1)[-10:]) | [
"kuba.semik@gmail.com"
] | kuba.semik@gmail.com |
de6921dce3a160ae4dad9ee43b7a29ee9f4d8404 | 95a2568c20993bd423791f6796ecff36d6a71d26 | /utils.py | 46c959bcd0ae74ab2155a51327b036899514e5fe | [
"MIT"
] | permissive | kugooer/nazurin-1 | 15dff321436eaf9ca75c79f3be9e41cc958063a2 | 092da0b77e50e3f81cc99ae7d86523efbf691baf | refs/heads/master | 2023-01-19T08:32:11.973482 | 2020-12-01T15:24:23 | 2020-12-01T15:24:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,979 | py | from requests.adapters import HTTPAdapter
from mimetypes import guess_type
from shutil import copyfileobj
from functools import wraps
from pathlib import Path
from html import escape
from time import sleep
import requests
import logging
import re
import os
from config import DOWNLOAD_DIR, UA, RETRIES
from telegram impo... | [
"yyoung2001@gmail.com"
] | yyoung2001@gmail.com |
c0b1823a5549769b3efe0b1033816e1186aca332 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A2/python/task/BD_174_261_754_XxLnqgI.py | e6c151bc96e99f32096cdee7f9cd74743a158637 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 2,960 | py | from __future__ import print_function
import re
import sys
from operator import add
from pyspark.sql import SparkSession
def computeContribs(urls, rank):
"""Calculates URL contributions to the rank of other URLs."""
num_urls = len(urls)
for url in urls:
yield (url, rank / num_urls)
def parseNe... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
0d9d45d96dd79d9e1c3bc2408a3f391808380dce | e874e3b4312b2beebaa42fa1489b50c618055190 | /Aula 2 Semana - Turtle - Preenchendo as formas.py | 2c20ce02817224506dde0a83bf5b80e026b47a64 | [] | no_license | CarlosDinart/PUC-SP | 611a9acb6a82b7db2174d2d439b5666db48a530e | 5f5f1ea4b9c55c7d20b2dcd92c461b3d8ebbb664 | refs/heads/master | 2023-01-23T06:46:42.492764 | 2020-12-09T19:41:01 | 2020-12-09T19:41:01 | 320,058,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 852 | py | from turtle import *
fillcolor('purple') # fillcolor() - esta funcao retorna ou defina a cor de preenchimento;
pensize(10) #pensize()- esta funcao defina a espessura da linha para a largura ou retorne-a.
# Se resizemode for definido como “auto” e a forma de tartaruga for um polígono,
#... | [
"cdinart@hotmail.com"
] | cdinart@hotmail.com |
9bd0e691b2cf9e835167a6fa49536ee50961c4f6 | fcf4b584795dbdbb24bfa5e68028f4c9ac070b69 | /useraccount/models.py | 5dc7dd17acbc76bebc82627ebb3fb0ecb9fbeae0 | [] | no_license | vineethjpalatty/testproject | 3e86ae3f030349f4c633a6ac5ef17814bb373ff6 | 1087ca2ecbd5e2fe72a4a5c628e674eeaa4d2b2f | refs/heads/master | 2022-12-01T14:33:30.155041 | 2020-08-13T17:48:27 | 2020-08-13T17:48:27 | 287,338,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | from django.contrib.auth.models import AbstractUser
from django.db import models
import pytz
# Create your models here.
class DateBaseModel(models.Model):
created = models.DateTimeField(auto_now_add=True)
modified = models.DateTimeField(auto_now=True)
class Meta:
abstract = True
class UserDetai... | [
"you@example.com"
] | you@example.com |
5e3f9f87ef9fec750e839eda115dfd7bb06d500a | 5ee5e19a42417fdfb5248c070d41b61b86465eaf | /abc_243/b.py | 8de66992b8f504c12ab2caefd7c905d55910e476 | [] | no_license | w40141/atcoder | 2e98cfe9fcb33aca8ac4567afecf603084964897 | 3ad74ca71ab77b929a097730047f4cf59ac38604 | refs/heads/master | 2023-08-08T21:37:42.744860 | 2023-08-07T00:50:34 | 2023-08-07T00:50:34 | 179,308,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | n = int(input())
a_li = list(map(int, input().split()))
b_li = list(map(int, input().split()))
same_num = 0
for a, b in zip(a_li, b_li):
if a == b:
same_num += 1
a_s = set(a_li)
b_s = set(b_li)
c = a_s & b_s
print(same_num)
print(len(c) - same_num)
| [
"w.40141@gmail.com"
] | w.40141@gmail.com |
cf5fddbf61aeb35918e576d1a1ac9e69f4b6b4c1 | ea5762e8754d6b039963b0125822afb261844cc8 | /src/compas_rhino/geometry/__init__.py | 443b7cf51d3a306b59d12a71d80dd9480b9c6d76 | [
"MIT"
] | permissive | gonzalocasas/compas | 787977a4712fbfb9e230c4f433b6e2be509e4855 | 2fabc7e5c966a02d823fa453564151e1a1e7e3c6 | refs/heads/master | 2020-03-23T20:17:55.126856 | 2018-07-24T22:30:08 | 2018-07-24T22:30:08 | 142,033,431 | 0 | 0 | MIT | 2018-07-31T14:54:52 | 2018-07-23T15:27:19 | Python | UTF-8 | Python | false | false | 597 | py | """
.. _compas_rhino.geometry:
********************************************************************************
geometry
********************************************************************************
.. module:: compas_rhino.geometry
Object-oriented wrappers for native Rhino geometry.
.. autosummary::
:toct... | [
"vanmelet@ethz.ch"
] | vanmelet@ethz.ch |
f02f0c07768583e5d8cf8ec015a786ade7c11d29 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /LQgpGFMK9t9MELvph_9.py | 6cae0722546debd006fb3cb38f4989346c5cb5e9 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | """
Given a square list ( _n_ * _n_ size) implement a function that returns a new
list containing two lists equal to the two diagonals, in the following order:
diagonal 1 = from upper-left to lower-right corner
diagonal 2 = from upper-right to lower-left corner
### Examples
get_diagonals([ [1, 2], [3,... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
abd5014fe7f609414f56f0c5502e2ffe8eb72e7b | bc441bb06b8948288f110af63feda4e798f30225 | /user_service_sdk/model/metadata_center/stream_metric_states_pb2.pyi | 9e2b0174cd0abac74c50c620d020df01b5ca5d95 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from google.protobuf.descriptor import (
Descriptor as google___protobuf___descriptor___Descriptor,
)
from google.protobuf.internal.containers import (
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedC... | [
"service@easyops.cn"
] | service@easyops.cn |
8ba61262c059e952b15e3587e40bdf3fe82a14b6 | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/BCRX.py | 33bc27bd3c2d590575f2a523774f25c8f3d0e061 | [] | no_license | andisc/StockWebScraping | b10453295b4b16f065064db6a1e3bbcba0d62bad | 41db75e941cfccaa7043a53b0e23ba6e5daa958a | refs/heads/main | 2023-08-08T01:33:33.495541 | 2023-07-22T21:41:08 | 2023-07-22T21:41:08 | 355,332,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,070 | py | import requests
from lxml import html
from bs4 import BeautifulSoup
import os
from datetime import date, datetime
from ValidationTools import validateday
from Database_Connections import InsertData, Insert_Logging
def main(id_control):
try:
url = 'https://ir.biocryst.com/press-releases'
heade... | [
"andisc_3@hotmail.com"
] | andisc_3@hotmail.com |
b2038b79165d9711f194bb613dda99871eb2eb4d | d3b77550a40b860970450e702b6bcd28d5f9b3e4 | /LeetCode/1464_maximum_prod_of_two_elements_in_array.py | 0a66f0faf3a2108ddb4d63c69809049704a12e67 | [] | no_license | CateGitau/Python_programming | 47bc9277544814ad853b44a88f129713f1a40697 | 6ae42b3190134c4588ad785d62e08b0763cf6b3a | refs/heads/master | 2023-07-08T03:08:46.236063 | 2021-08-12T09:38:03 | 2021-08-12T09:38:03 | 228,712,021 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | """
Given the array of integers nums, you will choose two different indices i and j of that array.
Return the maximum value of (nums[i]-1)*(nums[j]-1)
"""
nums = [10,2,5,2]
def maxProduct(nums):
maxim = 0
for i in range(len(nums)):
for j in range(len(nums)):
if i != j:
... | [
"catherinegitau94@gmail.com"
] | catherinegitau94@gmail.com |
595f1092a393032fbfe3530084a64011e38ba1be | bbd69601912a3361d788efd03a47f9d4e3bac09e | /demo/agw/HyperLinkCtrl.py | 61df943f9642ce956aea9500436b0dd59655b898 | [] | no_license | wxWidgets/Phoenix | 56929484460a0399a8f1d9582bc77c20aa14748d | a1184286703cf24c4b88e5bc14cf2979c1b1ea00 | refs/heads/master | 2023-09-01T07:10:17.437093 | 2023-08-31T05:38:01 | 2023-08-31T05:38:01 | 5,078,061 | 2,268 | 677 | null | 2023-09-09T17:06:59 | 2012-07-17T06:22:25 | Python | UTF-8 | Python | false | false | 4,894 | py | #!/usr/bin/env python
import wx
import os
import sys
try:
dirName = os.path.dirname(os.path.abspath(__file__))
except:
dirName = os.path.dirname(os.path.abspath(sys.argv[0]))
sys.path.append(os.path.split(dirName)[0])
try:
from agw import hyperlink as hl
except ImportError: # if it's not there locally,... | [
"robin@alldunn.com"
] | robin@alldunn.com |
4f54d925f1dd8a37f173fcd6da68ed5f39fd2e46 | 909762751929e2fed02311953e15f8a6316efbd0 | /tests/test_oskar/plot_antpos.py | 6987aa1365419f0706b0b734bae1ec105e2b156a | [] | no_license | telegraphic/interfits | a166258459deaeb831d49787952a3e08d2aaaf40 | 0ee46e94b84d405c8381772be05b42e0b9c41158 | refs/heads/master | 2021-01-19T01:57:32.397157 | 2016-07-02T01:38:06 | 2016-07-02T01:38:06 | 10,858,699 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | import numpy as np
import matplotlib
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from test_main import *
def plot3d(x,y,z, xl='X', yl='Y', zl='Z', c='#cc0000'):
ax.scatter(x, y, z, c=c)
ax.set_xlabel(xl)
ax.set_ylabel(yl)
ax.set_zlabel(zl)
l = LedaFits('vis_00.uvfits')
xyz... | [
"dan@thetelegraphic.com"
] | dan@thetelegraphic.com |
b7e438493cf19af3ecdba1a85a98ab4eb17912fd | 8dbe574f3b20308d79ef37643570d7dec15e67d9 | /cn.zero/py.ori.fmt/c1110.bin.py | d76d22acac5506f6e347f103aed173e368a82f42 | [] | no_license | xaeingking/ZeroAoVoiceScripts | 62526d004bd02e645970930ecd4b6053809092ab | 512c1fd544954a38c92fc097f5b0c006031ee87d | refs/heads/master | 2020-05-20T17:04:55.028776 | 2019-01-29T10:40:44 | 2019-01-29T10:40:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247,235 | py | from ZeroScenarioHelper import *
def main():
CreateScenaFile(
"c1110.bin", # FileName
"c1110", # MapName
"c1110", # Location
0x0017, # MapIndex
"ed7100",
0x00002000, # Flags
... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
0a0481107bc945c99cf9933d981d631dccb91e5d | 3fc01457951a956d62f5e8cc0a8067f6796ee200 | /misago/threads/api/postingendpoint/subscribe.py | c158eccbf462feee7a1f7aa449d37b93a4b7ce7f | [] | no_license | kinsney/education | 8bfa00d699a7e84701a8d49af06db22c384e0e8d | 48f832f17c2df7b64647b3db288abccf65868fe6 | refs/heads/master | 2021-05-04T01:15:03.078130 | 2016-12-04T03:18:20 | 2016-12-04T03:18:20 | 71,164,542 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,599 | py | from misago.users.models import (
AUTO_SUBSCRIBE_NONE, AUTO_SUBSCRIBE_NOTIFY, AUTO_SUBSCRIBE_NOTIFY_AND_EMAIL)
from ...models import Subscription
from . import PostingEndpoint, PostingMiddleware
class SubscribeMiddleware(PostingMiddleware):
def use_this_middleware(self):
return self.mode != PostingEn... | [
"kinsney@bupt.edu.cn"
] | kinsney@bupt.edu.cn |
e7880e161d34d1259ef590b01aac6ce92b5c121b | ff0b9fad40af0f7a792033884db728756ea83756 | /forge/apps/OptiML/src/NeuralNetwork/examples/mnist/visualize.py | f98383826111dc0c413d51ed09d67edf53958b49 | [] | no_license | das-projects/Grothendieck | 721d7ca60c4838385c43bdc17894cb154507c302 | 4effc374f8050655db4820db3a7deaf63effb2a4 | refs/heads/master | 2020-04-02T06:16:56.494997 | 2016-08-12T10:05:55 | 2016-08-12T10:05:55 | 65,486,230 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | import numpy
import scipy.misc
import sys
# Get the image number to display
if len(sys.argv) < 2:
print 'Specify the training image number to show as an input argument'
print 'Requires that train_data.txt be generated.'
print 'Example: >>> python visualize.py 100'
sys.exit(0)
img_num = int(sys.argv[1])
# Read th... | [
"jonathansick@mac.com"
] | jonathansick@mac.com |
3068a726127a93c4aa99d3ed3646918aec29708e | 4389d3bfa4ded480caf5083f410bdd2253fae767 | /20_Project/01_simple_linear_model/test2.py | 74871ccda42383f1a4616b8ad17191981aa2a1ef | [] | no_license | Freshield/LEARN_TENSORFLOW | 4fb7fec0bc7929697549ee52e453b137a24c3383 | 87be0362d24b748c841e5c9e185d2061ffae9272 | refs/heads/master | 2021-01-17T08:06:14.186041 | 2018-06-03T12:42:46 | 2018-06-03T12:42:46 | 83,846,167 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | import numpy as np
import tensorflow as tf
import pandas as pd
sess = tf.InteractiveSession()
a = np.arange(10)
print a
np.random.shuffle(a)
print a
ta = tf.range(0, 10)
tb = tf.random_shuffle(ta)
print ta.eval()
print tb.eval()
dataset = pd.read_csv('ciena_test.csv', header=None)
print dataset.shape
| [
"zxdsw199182@gmail.com"
] | zxdsw199182@gmail.com |
400886929db0a77432f8a35f412a27327f231b80 | 3784495ba55d26e22302a803861c4ba197fd82c7 | /venv/lib/python3.6/site-packages/tensorflow_core/python/keras/api/_v2/keras/applications/__init__.py | dad149e01c0fae0a0684161a8a1002e405429ccc | [
"MIT"
] | permissive | databill86/HyperFoods | cf7c31f5a6eb5c0d0ddb250fd045ca68eb5e0789 | 9267937c8c70fd84017c0f153c241d2686a356dd | refs/heads/master | 2021-01-06T17:08:48.736498 | 2020-02-11T05:02:18 | 2020-02-11T05:02:18 | 241,407,659 | 3 | 0 | MIT | 2020-02-18T16:15:48 | 2020-02-18T16:15:47 | null | UTF-8 | Python | false | false | 1,872 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Keras Applications are canned architectures with pre-trained weights.
"""
from __future__ import print_function as _print_function
import sys as _sys
from . import densenet
from . impo... | [
"luis20dr@gmail.com"
] | luis20dr@gmail.com |
42e0505d50651f07009cd94e32945d6b14075fcd | 3354e6bdd4aeb2ddec84e6a8036c90cd24b6577a | /(구)자료구조와 알고리즘/(구)Quizes/backjoon/back_5397.py | 86476955d445acfe52b6e2d808c0b39f9700d356 | [] | no_license | hchayan/Data-Structure-and-Algorithms | 1125d7073b099d8c6aae4b14fbdb5e557dcb9412 | be060447e42235e94f93a0b2f94f84d2fd560ffe | refs/heads/master | 2023-01-05T10:15:02.862700 | 2020-11-04T08:16:56 | 2020-11-04T08:16:56 | 209,513,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import sys
'''
for n in range(int(sys.stdin.readline().rstrip())):
word=[]
cursor = 0
for i in sys.stdin.readline().rstrip():
if i == "<":
if cursor != 0:
cursor-=1
elif i == ">":
if cursor != len(word):
cursor+=1
elif i =="-" a... | [
"k852012@naver.com"
] | k852012@naver.com |
9cfcc62db3f7835c694bd3946670e5016afa364f | c1080a13ad19d70429fb3f640989117315ef90bf | /layers/box_utils.py | 22e7dbca5a7e4208d44198c8fc666332ee2ae7a4 | [
"MIT"
] | permissive | PoisonBOx/Active_Learning_Object_Detection | ddc573d289216bee96307c7c68097fb884e37688 | 3d9ad367aa872cbf3e9d71c566042c78fe2d0e76 | refs/heads/master | 2022-04-14T18:35:30.331799 | 2020-03-25T12:48:22 | 2020-03-25T12:48:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,005 | py | # -*- coding: utf-8 -*-
import torch
def point_form(boxes):
""" Convert prior_boxes to (xmin, ymin, xmax, ymax)
representation for comparison to point form ground truth data.
Args:
boxes: (tensor) center-size default boxes from priorbox layers.
Return:
boxes: (tensor) Converted xmin, y... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.