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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
67cede69c42dd5ca7266d734b1daa22802113885 | 6b96a11195094a0023a059ba7d5df95ce58c56f1 | /1422B.py | ac94bcd433dbd7783a06843167b94e16b6a978bf | [] | no_license | ldfdev/CodeForces-Div2-Problems | d932b09ee14a430fd0054d5b295f6016553be2b7 | d18824a4330a4593099d249496ae22f3f69d5f44 | refs/heads/master | 2021-08-11T03:29:18.772870 | 2021-07-25T07:21:09 | 2021-07-29T20:09:43 | 72,371,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | def fetch_ops(*args):
args = sorted(*args)
ret, L = 0, len(args)
for i in range((L + 1) // 2):
ret += args[L - 1 - i] - args[i]
return ret
def solve():
n, m = [int(x) for x in input().strip().split()]
matrix = []
cost = 0
for r in range(n):
matrix.append([int(x) for x in... | [
"ldf.develop@gmail.com"
] | ldf.develop@gmail.com |
3030777364f05eed42a2cc1bf28fd2307d8287f3 | 4a230737626c0cadfc5326315d036bf8453ef953 | /paiza/paiza_06/paiza_06_012_001.py | 6bdadd937eb22f6ae6383b7e361b131b1f33be1a | [] | no_license | reinaaa05/python | 0037a40b588b6954ea5d5b0ff45df98c1522f865 | 2d9e2b7388c4a19a0389aa6cb532774271bd27b0 | refs/heads/master | 2023-04-21T23:39:20.450914 | 2021-05-12T07:27:47 | 2021-05-12T07:27:47 | 340,906,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | # 2次元リストで画像を表示する
# 画像用リスト
players_img = [
"https://paiza-webapp.s3.amazonaws.com/files/learning/rpg/Empty.png",
"https://paiza-webapp.s3.amazonaws.com/files/learning/rpg/Dragon.png",
"https://paiza-webapp.s3.amazonaws.com/files/learning/rpg/Crystal.png",
"https://paiza-webapp.s3.amazonaws.com/files/lea... | [
"Reinaaa0555@gmail.com"
] | Reinaaa0555@gmail.com |
d5aaf9f1c930d58670fbbec5d7d5ef099f5ef7be | 96a34a048c783a75736bf0ec775df22142f9ee53 | /services/director-v2/tests/unit/test_modules_dynamic_sidecar_docker_service_specs_sidecar.py | 89c1c40c4ba598d6e0266d1031bf53f92aac522a | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 2,041 | py | # pylint: disable=redefined-outer-name
# pylint: disable=unused-argument
# pylint: disable=unused-variable
from typing import Any
import pytest
from simcore_service_director_v2.core.settings import AppSettings
from simcore_service_director_v2.models.dynamic_services_scheduler import SchedulerData
from simcore_service... | [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
040d6e445d45f583c6dd6130f7337cc1d7b61554 | 4303f687cec02deee3328f9c2b271ac8c673bd2d | /repo_scraper/git.py | c93ee6a21679e131bd05fc1b023395b3e34cb559 | [
"MIT"
] | permissive | pombredanne/repo-scraper | d7f9938afd5f8b436810cbbdc21051634731166b | ad7f0f6a9dda43d3b7b8e40377ea7fd151ea1396 | refs/heads/master | 2020-12-11T01:58:06.552329 | 2015-11-20T22:23:27 | 2015-11-20T22:23:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | import subprocess
import re
def list_commits():
'''Returns a list with all commit hashes'''
p = subprocess.Popen(['git', 'log', '--pretty=format:%H'],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
out, err = p.communicate()
return out.replace('"', '').s... | [
"edu.blancas@gmail.com"
] | edu.blancas@gmail.com |
49096cd84467e7712c5bf08f75d2281b82526ec3 | 54b31b705d88e21bc0b23aabe1df15ca13a07de2 | /bayespy/inference/vmp/nodes/ml.py | fda0753545cdcf6df9a540d7303fd05a841f3c4f | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"AFL-3.0",
"GPL-1.0-or-later",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bayespy/bayespy | 307ef4c51d511e14d4693cce9929dda37124d11d | 5fe58f7160ebc3a9df7f9e96e50d2bd47837794a | refs/heads/develop | 2023-08-18T21:35:27.744022 | 2023-05-25T08:16:36 | 2023-05-25T08:16:36 | 5,568,322 | 655 | 164 | MIT | 2023-08-15T09:31:55 | 2012-08-27T08:10:20 | Python | UTF-8 | Python | false | false | 5,885 | py | ################################################################################
# Copyright (C) 2016 Jaakko Luttinen
#
# This file is licensed under the MIT License.
################################################################################
import numpy as np
from .node import Moments
from .deterministic impor... | [
"jaakko.luttinen@iki.fi"
] | jaakko.luttinen@iki.fi |
9b3b766b1b7761c837891a8250d5aee360a7098a | 52be02c1ddf1610356d4818a5fd06e8d9ee98a73 | /algorithms/gps/agent/ABB/agent_abb.py | 0a3e00477105811cfa8967d1fb5d860c69deb4fc | [] | no_license | DengYuelin/multiple_assembly_old | f32e34a2e6633c99639489fb02b2e28edb1db180 | 696c55de23bb217b4471324bf3c3246a1bfcd5d8 | refs/heads/master | 2020-12-22T07:12:06.749844 | 2020-02-03T18:27:39 | 2020-02-03T18:27:39 | 236,664,915 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,669 | py | # -*- coding: utf-8 -*-
"""
# @Time : 23/07/19 2:21 PM
# @Author : ZHIMIN HOU
# @FileName: agent_abb.py
# @Software: PyCharm
# @Github : https://github.com/hzm2016
"""
import copy
import time
import numpy as np
from baselines.deepq.assembly.Env_robot_control import env_search_control
from gps.agent.agent impor... | [
"2539722953@qq.com"
] | 2539722953@qq.com |
dcbb08939024799a32162b0f6d973f510b39c4dd | 55d560fe6678a3edc9232ef14de8fafd7b7ece12 | /tools/build/test/collect_debug_info.py | 3977140330263317c4f49265dc0a7efd23e5393c | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | stardog-union/boost | ec3abeeef1b45389228df031bf25b470d3d123c5 | caa4a540db892caa92e5346e0094c63dea51cbfb | refs/heads/stardog/develop | 2021-06-25T02:15:10.697006 | 2020-11-17T19:50:35 | 2020-11-17T19:50:35 | 148,681,713 | 0 | 0 | BSL-1.0 | 2020-11-17T19:50:36 | 2018-09-13T18:38:54 | C++ | UTF-8 | Python | false | false | 8,738 | py | #!/usr/bin/python
# Copyright 2012 Jurko Gospodnetic
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
# Temporarily enabled dummy test that always fails and is used to collect
# extra debugging information from Boos... | [
"james.pack@stardog.com"
] | james.pack@stardog.com |
e658d3177bbe85e04caa9a4ab2518904e014bc60 | bd300a8b8a0cd370e514580992c9480f64d076da | /django_schoolweb/manage.py | 054d2f5f22261b378c071fc9e3977049c44c960c | [] | no_license | 33Da/schoolweb | 546a19046e42da59d082e0f1f492a14a21a17078 | 9d92bab3b1590180231efb8e74a68c375149599e | refs/heads/main | 2023-02-08T12:48:35.250628 | 2021-01-05T06:58:55 | 2021-01-05T06:58:55 | 326,911,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_schoolweb.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rai... | [
"764720843@qq.com"
] | 764720843@qq.com |
e4480ff563dc0171e70fc1d2c12dc4e1adb96a6b | f6aac61a48a87743be9c40fecdc24344bae4d263 | /scripts/model/motherlode_ingest.py | b093b1befe14e052cb2fbcb3dd92239738c15b5c | [
"MIT"
] | permissive | akrherz/iem | 8714d99b371c8818f7cdde73dd24639e9fc7d42b | 178015584b7fb5b585f65be6013eaf16fb6db0c7 | refs/heads/main | 2023-08-19T02:58:24.507782 | 2023-08-18T12:08:31 | 2023-08-18T12:08:31 | 4,253,774 | 118 | 74 | MIT | 2023-09-14T18:28:41 | 2012-05-07T20:32:59 | Python | UTF-8 | Python | false | false | 5,632 | py | """
Mine grid point extracted values for our good and the good of the IEM
Use Unidata's motherlode server :)
"""
import datetime
import sys
from io import StringIO
import pandas as pd
import pytz
import requests
from pyiem.network import Table as NetworkTable
from pyiem.util import get_dbconn, logger
LOG = logger(... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
91378c01a224ec420d762e132a96cabf98d8b9be | dd3f5a712dbab0d3c4f4526c64c08ba710f78b81 | /tools/testframe/unittestut/t01test.py | df306922dd810adc19acdbda7dc0274bd8fd4803 | [] | no_license | nameusea/pyGreat | 3988ebcce3f80a7e458a20f9b2e3ccba368efcf8 | dde8b6a1348620ffd3b2d65db3d5b4331e5c78be | refs/heads/master | 2023-04-25T09:02:32.831423 | 2021-05-17T11:31:22 | 2021-05-17T11:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,057 | py | # #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2020/11/30 5:15 下午
# @Author : 百变金刚
# @Content : test frame unittest learn
import unittest
class TestStringMethods(unittest.TestCase):
def setUp(self) -> None:
print('Test begin')
def tearDown(self) -> None:
print('Test over')
... | [
"darcyzhang@DarcydeMacBook-Air.local"
] | darcyzhang@DarcydeMacBook-Air.local |
70e6b1c3425993c42c096a80b9fd07d842211e66 | 3367451615f082b21a9f65c0f3cf833b269082c0 | /Stripes/HadSST4/stripes_ensemble_longitude.py | a0be9b276587621bcabd689b55413039092f582c | [] | no_license | philip-brohan/Posters | dd20eb399f559b6c205c300f96d95d0f13c52808 | d030a926ea1163e7078b2c468dfca22866552f50 | refs/heads/master | 2022-10-16T01:08:39.589886 | 2022-09-25T16:41:08 | 2022-09-25T16:41:08 | 91,101,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | #!/usr/bin/env python
# Make a poster showing HadSST4 monthly temperatures.
# Inspired by the climate stripes popularised by Ed Hawkins.
import os
import iris
import numpy
import datetime
import matplotlib
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
from matplotlib.figure import Figur... | [
"philip@brohan.org"
] | philip@brohan.org |
eb56edd675e5785e638d198ac3dc0430caa87d0a | 99259216f11b15ec60446b4a141b3592a35560ce | /wex-python-api/ibmwex/models/collection_params_default_output.py | edd8b7c053c0b2f337779d2b6394393acbf9094d | [] | no_license | adam725417/Walsin | 296ba868f0837077abff93e4f236c6ee50917c06 | 7fbefb9bb5064dabccf4a7e2bf49d2a43e0f66e9 | refs/heads/master | 2020-04-12T14:14:07.607675 | 2019-03-05T01:54:03 | 2019-03-05T01:54:03 | 162,546,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,530 | py | # coding: utf-8
"""
WEX REST APIs
Authentication methods - Basic Auth - JSON Web Token - [POST /api/v1/usermgmt/login](#!/User/signinUser) - [POST /api/v1/usermgmt/logout](#!/User/doLogout) - Python client sample [Download](/docs/wex-python-api.zip)
OpenAPI spec version: 12.0.2.417
Generate... | [
"adamtp_chen@walsin.com"
] | adamtp_chen@walsin.com |
0805b20ec7eab85badab608c32e4db586b255782 | 71946cf7e285a74b087f316170fe1f3dbb8d0247 | /nscms/contrib/newsletter/views.py | 4b193f3bb7c3eed634764c1b21d02bdfcd95596e | [] | no_license | mauler/nscms | 8964e8113351676dc5ebf1d7ecb0622c5c434640 | 5795f568880c7b11f12291d7d9e2581f0d1cd46d | refs/heads/master | 2020-06-06T09:19:16.946139 | 2015-02-27T01:21:12 | 2015-02-27T01:21:12 | 2,143,897 | 7 | 1 | null | 2018-03-05T17:25:23 | 2011-08-02T17:20:10 | Python | UTF-8 | Python | false | false | 267 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
from django.http import HttpResponse
from .models import Subscription
def optin(request):
if 'email' in request.GET:
Subscription.objects.get_or_create(email=request.GET['email'])
return HttpResponse()
| [
"proberto.macedo@gmail.com"
] | proberto.macedo@gmail.com |
188462be01d6321219d9708d631c4db085dea10e | eaa833ebfafcdefb1f100a960c588e26efffcbe5 | /Dispatcher/api_gateway/express/handlers/apis/config.py | a9340d476f3aa511fd2e916ca7463b5fd753c16e | [
"MIT"
] | permissive | cash2one/Logistics | 61224f204af183f7ca5b806ef1d64f213ba53e5f | a7c9567975b5372b2edabddb0fec8d73bc01c3dc | refs/heads/master | 2021-01-21T10:33:52.088684 | 2017-01-12T08:07:42 | 2017-01-12T08:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # coding=utf-8
from tornado.httpclient import AsyncHTTPClient
async_cli = AsyncHTTPClient()
timeouts = {
"connect_timeout": 0.5,
"request_timeout": 3
}
xls_create_expr_timeouts = {
"connect_timeout": 3,
"request_timeout": 30
}
wxpay_timeouts = {
'connect_timeout': 5,
'request_timeout': 10
}... | [
"boisde1117@gmail.com"
] | boisde1117@gmail.com |
43abdd8ea14baa6c0d8b7907e22339873bfdd614 | 0d1c230795f0b8eeba06c7c3ea20f32e7e9badc3 | /cairis/mio/AssociationsContentHandler.py | 9aac93e05954576e2c3addcd476e054056ee35d5 | [
"Apache-2.0"
] | permissive | anukat2015/CAIRIS | e4029d8a4bdd191e00fb78b2cf549d7444b1d578 | b11f4eca824b84c8b0aa66b1767f61e5236e2483 | refs/heads/master | 2021-01-17T09:24:00.778093 | 2016-03-22T21:56:50 | 2016-03-22T21:56:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,463 | 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... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
5adec510588b408e819e6dd2d44ea7fe4749a3f1 | 50b5361049d08b6ea25e3b5a203b6cd9dd56e4ce | /AudicClaverieStatInterface.py | 61078d9a9c01d428b5a26233e8b56ffc23d7e0b1 | [] | no_license | albertwcheng/SplidarExpressionProcessingScript | bfbfaa83b36b374f645f3a6fc3d383a27d3e45a9 | 4ce9ec5200731bce155a61b3be9393ac76c39d51 | refs/heads/master | 2016-09-03T06:32:29.608655 | 2011-02-07T03:47:33 | 2011-02-07T03:47:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,814 | py | #!/usr/bin/python
'''
Copyright 2010 Wu Albert Cheng <albertwcheng@gmail.com>
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 without limitation the rights
to us... | [
"albertwcheng@gmail.com"
] | albertwcheng@gmail.com |
fc146c8c52c21c9f663bca433d5314029867ebd5 | 80332f606982a28b6d12c7c63d1d64e18ceb01e7 | /neodroid/environments/python_environment/__init__.py | d8f1151351f9f1cd46a75c28b5acab035a519167 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sintefneodroid/neo | 34bfe39ed90fbcf0a851c9c7951021b8b267cd24 | 5405769fdb5d657a2b5ad1c4c4e749d50b90dfa5 | refs/heads/master | 2022-09-21T00:36:32.875394 | 2022-06-30T16:00:44 | 2022-06-30T16:00:44 | 98,278,558 | 8 | 3 | Apache-2.0 | 2023-09-13T15:51:32 | 2017-07-25T07:38:35 | Python | UTF-8 | Python | false | false | 152 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 16/10/2019
"""
| [
"mrnaah@gmail.com"
] | mrnaah@gmail.com |
647d0e94aa7709b4558e5a4c5ae424e07d59e133 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_posts.py | 700af77447c8cd52cb2fc92ab62dc76b71c1ede5 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py |
#calss header
class _POSTS():
def __init__(self,):
self.name = "POSTS"
self.definitions = post
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['post']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f221ac4631eeabf730d92e207bfeb36b37b39484 | 73b71fcfc8cf13871b63ce64c3dd8fc7dd8f047a | /chap 9/neko_pzl.py | 85470172a46800f0d09dd8f5d460ca9f2803a779 | [] | no_license | kwr0113/Game_Python | 6a1858a36e6927f6731c5976ef350887eaa69fab | b1953783a59a0d62337d6438758dabe6727321ea | refs/heads/master | 2023-07-10T03:08:22.312913 | 2021-08-22T12:58:18 | 2021-08-22T12:58:18 | 397,598,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,133 | py | import tkinter
import random
index = 0
timer = 0
score = 0
hisc = 0
difficulty = 0
tsugi = 0
mouse_x = 0
mouse_y = 0
cursor_x = 0
cursor_y = 0
mouse_c = 0
def mouse_move(e):
global mouse_x, mouse_y
mouse_x = e.x
mouse_y = e.y
def mouse_press(e):
global mouse_c
mouse_c = 1
neko = []
check = [... | [
"kwr0113@gmail.com"
] | kwr0113@gmail.com |
d74ec5285bdea9629d6aa8aec1294563dd021997 | ec92e76a493df473084dc93af9d14bcfff1bb282 | /test/scaling/vcenter_vn_scaling.py | efae16cc5692994abc628209cd22b12eaabfb9da | [
"Apache-2.0"
] | permissive | tungstenfabric/tf-vcenter-plugin | a0e29f63a4dec77fb47f0f51689d2f3822410a1e | 9cd908ce1ac025cf0fd5dd26fe986892b268953c | refs/heads/master | 2022-12-15T22:11:31.273818 | 2022-09-29T17:06:48 | 2022-09-29T17:11:49 | 237,745,003 | 0 | 1 | Apache-2.0 | 2022-12-06T00:34:23 | 2020-02-02T09:06:40 | Java | UTF-8 | Python | false | false | 5,270 | py | # Script to create and delete multiple VNs in vcenter
# eg: python vcenter_vn_scaling.py create|delete
# adjust the cidr, mask and count iterator in the file to set number
# of VNs.
# create number of VNs in vcenter
from pyVim import connect
from pyVmomi import vim
from fabfile.testbeds import testbed
import sys, time... | [
"andrey-mp@yandex.ru"
] | andrey-mp@yandex.ru |
df0ba183783c7f6ff7ba997c53f955ad3c058c9b | c25f5592a9dbdc33f6e1920ec6f9a695bf597e2a | /cryptostore/util.py | c962463a937316de6009209a6546246379760a8a | [
"Python-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | fagan2888/cryptostore | e1ac3232aa890853e8db7e8af3097051a1a483d1 | 82ae1ff0c0d01149d070e526205fd24f5c1a6ea8 | refs/heads/master | 2021-04-22T23:44:40.951221 | 2020-03-17T23:52:30 | 2020-03-17T23:52:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | '''
Copyright (C) 2018-2020 Bryant Moscon - bmoscon@gmail.com
Please see the LICENSE file for the terms and conditions
associated with this software.
'''
from datetime import timedelta, datetime as dt
def get_time_interval(ts: float, interval: str, multiplier=1):
timestamp = dt.utcfromtimestamp(ts)
start_in... | [
"bmoscon@gmail.com"
] | bmoscon@gmail.com |
adb4b9d5dba4add8e9ddde23271f12ee8f2d2f7c | 04803c70bb97012b7d500a177ac0240fb2ddbe38 | /1heptane/pdep/network4072_1.py | 4df947f545fecf2fe000332f3c223772b43f2a62 | [] | no_license | shenghuiqin/chpd | 735e0415f6688d88579fc935459c1b0f53596d1d | 396ba54629036e3f2be0b3fabe09b78c90d56939 | refs/heads/master | 2023-03-01T23:29:02.118150 | 2019-10-05T04:02:23 | 2019-10-05T04:02:23 | 192,084,217 | 0 | 0 | null | 2019-06-18T18:33:13 | 2019-06-15T13:52:28 | HTML | UTF-8 | Python | false | false | 51,166 | py | species(
label = 'O=[C]CC1[CH]CC1(20114)',
structure = SMILES('O=[C]CC1[CH]CC1'),
E0 = (222.271,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([2750,2850,1437.5,1250,1305,750,350,2750,2830,2910,2990,3070,3150,900,940,980,1020,1060,1100,1855,455,950,300,800,800,800,800,800,800,800,1600,1600... | [
"qin.she@husky.neu.edu"
] | qin.she@husky.neu.edu |
a8633195b942e8ac57ed8316df58b0d355cd84b6 | 316a07bd7ab47d447606d341c5d221d8318f65b9 | /quantum/quantum/db/db_base_plugin_v2.py | ad9566702e4a32fc304307080f459d2ef77053eb | [] | no_license | kumarcv/openstack-nf | 791d16a4844df4666fb2b82a548add98f4832628 | ad2d8c5d49f510292b1fe373c7c10e53be52ba23 | refs/heads/master | 2020-05-20T03:10:54.495411 | 2013-06-16T23:44:11 | 2013-06-16T23:44:11 | 7,497,218 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,814 | py | # Copyright (c) 2012 OpenStack, 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 ... | [
"b37839@freescale.com"
] | b37839@freescale.com |
9cf4f6acdc74f36f656a9088d64128ac2a2100a3 | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/mpmath-0.19-py27_0/lib/python2.7/site-packages/mpmath/tests/test_matrices.py | c1bbfaf86c20c33e6a6e332c93d0e57c469c40ff | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 5,672 | py | from mpmath import *
def test_matrix_basic():
A1 = matrix(3)
for i in range(3):
A1[i,i] = 1
assert A1 == eye(3)
assert A1 == matrix(A1)
A2 = matrix(3, 2)
assert not A2._matrix__data
A3 = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
assert list(A3) == list(range(1, 10))
A3[1,1] ... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
572343b27fc144f9812694213249a3b522ff1f48 | 3ff9821b1984417a83a75c7d186da9228e13ead9 | /Array/Introduction/Find Numbers with Even Number of Digits/by_map_and_math.py | ca78da63fa5cdf5972e505c61dc1d9ce95b536ff | [
"MIT"
] | permissive | brianchiang-tw/leetcode | fd4df1917daef403c48cb5a3f5834579526ad0c2 | 6978acfb8cb767002cb953d02be68999845425f3 | refs/heads/master | 2023-06-11T00:44:01.423772 | 2023-06-01T03:52:00 | 2023-06-01T03:52:00 | 222,939,709 | 41 | 12 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | '''
Description:
Given an array nums of integers, return how many of them contain an even number of digits.
Example 1:
Input: nums = [12,345,2,6,7896]
Output: 2
Explanation:
12 contains 2 digits (even number of digits).
345 contains 3 digits (odd number of digits).
2 contains 1 digit (odd number of digits).
6... | [
"brianchiang1988@icloud.com"
] | brianchiang1988@icloud.com |
a2eed7c9259450814c6e08b4250edbda62456c45 | fa89836a6759151896a07650747462b8cda40610 | /mse/documents/views.py | cb1f394de7fae24edf33de94a898cab9ac895932 | [] | no_license | DigitalGizmo/mse21 | 334813bfebec9b78f0541744e54f218f9cc6936b | 89f1c0f9c05cefaaa8c703732ee4e4642aecd3c9 | refs/heads/master | 2023-07-09T13:29:13.903900 | 2018-03-26T19:26:09 | 2018-03-26T19:26:09 | 126,878,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,479 | py | from django.shortcuts import render, get_object_or_404
#from django.template import Context, loader
from django.views import generic
from django.conf import settings
from documents.models import Document
from core.views import MenuInfoMixin, CollectionSearchMixin, ItemDetailMixin
class DocumentListView(CollectionSearc... | [
"donpublic@digitalgizmo.com"
] | donpublic@digitalgizmo.com |
f94911553675cd706f2ba7fcd7bc21ef2b023364 | d3cd8c79674aeae4132e0ab5cd03dad5fa83c48f | /processthesis.py | 77344aa4412da0e3a0c3b68806157fbc46a74bf0 | [] | no_license | corneliuhoffman/Hurwitzspaces | 435eee8530b10ff9b5dff338c9ebe302f3b5dabf | 2aba9208de4330ef70277b0ea36bf0cfd2ac81e3 | refs/heads/master | 2020-09-09T10:35:11.435608 | 2017-06-16T15:45:12 | 2017-06-16T15:45:12 | 94,443,030 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | import csv
from ast import literal_eval as make_tuple
def clean(x):
y= x[1:-1].split(",")
z = [int(a.strip(' \t\n\r')[:-1]) for a in y]
return sorted(z)
with open('Peshawa.csv', 'rb') as csvfile:
spamreader = csv.reader(csvfile, delimiter=',', quotechar='"')
l= [row for row in spamreader]
from itertoo... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
d5b0939946ebdcdd70ff2ab9326d031ac7bea470 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/falcon/2019/8/test_example.py | cbcf63818444d106919131529ce3b8533f92748d | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 7,220 | py | import json
import logging
import uuid
from wsgiref import simple_server
import requests
import falcon
class StorageEngine:
def get_things(self, marker, limit):
return [{'id': str(uuid.uuid4()), 'color': 'green'}]
def add_thing(self, thing):
thing['id'] = str(uuid.uuid4())
return t... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
fd213b8c7e3f650d733923991fdf8ae562a43460 | c94f888541c0c430331110818ed7f3d6b27b788a | /cas/python/setup.py | 88cc18f1c35860c66f249325153b50bcbe7427e5 | [
"Apache-2.0",
"MIT"
] | permissive | alipay/antchain-openapi-prod-sdk | 48534eb78878bd708a0c05f2fe280ba9c41d09ad | 5269b1f55f1fc19cf0584dc3ceea821d3f8f8632 | refs/heads/master | 2023-09-03T07:12:04.166131 | 2023-09-01T08:56:15 | 2023-09-01T08:56:15 | 275,521,177 | 9 | 10 | MIT | 2021-03-25T02:35:20 | 2020-06-28T06:22:14 | PHP | UTF-8 | Python | false | false | 2,488 | py | # -*- coding: utf-8 -*-
"""
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
"Li... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
e9a035550a977013eff3346cff3754af62bce179 | a1c8b734ab868900163272bf56c07e8468567220 | /aprendizaje/models.py | b7a9dd366fa8ab47a947d9325c0934d8fb34b036 | [] | no_license | ErickMurillo/cursos_agua_cfca27 | 196ac884f33fd30300ed0069a2b11f0549b572f5 | 15dd87ea350fadab840d3efd6945734894b0c70d | refs/heads/master | 2021-01-16T09:05:54.001249 | 2020-03-02T17:19:57 | 2020-03-02T17:19:57 | 243,053,554 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,382 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.utils.encoding import python_2_unicode_compatible
from django.db import models
from .fields import OrderField
from django.template.defaultfilters import slugify
from django.contrib.auth.models import User
# Create your models here.
@python_2_... | [
"erickmurillo22@gmail.com"
] | erickmurillo22@gmail.com |
cad6e152f190f2f95359688ba8bf05b57abdf8db | 18ca2e0f98b98941ff9d9e098e0be89166c8b87c | /Abp/Cp11/c11_1_1_mapIt.py | 54f5793553d5ebff1f0064a30d610873fd536129 | [] | no_license | masa-k0101/Self-Study_python | f20526a9cd9914c9906059678554285bfda0c932 | 72b364ad4da8485a201ebdaaa430fd2e95681b0a | refs/heads/master | 2023-03-07T07:38:27.559606 | 2021-02-22T16:24:47 | 2021-02-22T16:24:47 | 263,381,292 | 1 | 0 | null | 2020-06-09T17:32:06 | 2020-05-12T15:47:48 | Python | UTF-8 | Python | false | false | 341 | py | # -*- coding: utf-8 -*-
#! python3
# mapIt.py - コマンドラインやクリップボードに指定した住所の地図を開く
import webbrowser, sys
if len(sys.argv) > 1:
# コマンドラインから住所を取得する
address = ' '.join(sys.argv[1:])
# TODO: クリップボードから住所を取得する
| [
"noreply@github.com"
] | masa-k0101.noreply@github.com |
33f305f7e55a69496a959dc5031f05697f2813bc | 8c0b47b471a890fd9ae81c967e3773ce1c4c0243 | /Python_projects/flask_projects/unicorn_project/resources/tests.py | 57ec630de6daa08c796c9def9e32cd499fe04180 | [] | no_license | sdtimothy8/Coding | edfcc717abeeea9f7da250adee68d5fae1a87422 | 7f801a569a396a27371d0831752595877c224a6b | refs/heads/master | 2022-09-03T01:57:53.721312 | 2022-07-22T02:39:45 | 2022-07-22T02:39:45 | 89,654,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | from django.test import TestCase
import json
import mock
# Create your tests here.
class ResourcesListTests(TestCase):
"""
test get resource info
"""
def test_get_ps(self):
"""
test get ps info
:return:
"""
response = self.client.get("/resources/ps/")
se... | [
"sdtimothy8@gmail.com"
] | sdtimothy8@gmail.com |
643297210fe979cd0b66c8b993701723d20fab2a | 1d405c9f539ba6ce2143668c1155ba03b32031b7 | /disturbance/migrations/0284_auto_20220622_0750.py | 4eab8891f1d53e8d725fabea6a1ff42971368c84 | [
"Apache-2.0"
] | permissive | dbca-wa/disturbance | c031081f8d96351c1b4835e4c4fa8ca199379d01 | ffb5ee131fc6b3262188be6b6b874761420441d1 | refs/heads/master | 2023-09-04T07:11:23.554541 | 2023-05-31T05:47:19 | 2023-05-31T05:47:19 | 237,150,092 | 0 | 10 | NOASSERTION | 2023-09-14T08:20:18 | 2020-01-30T06:05:26 | Python | UTF-8 | Python | false | false | 1,129 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2022-06-21 23:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('disturbance', '0283_auto_20220609_0927'),
]
operations = [
migrations.Alte... | [
"katsufumi.shibata@dbca.wa.gov.au"
] | katsufumi.shibata@dbca.wa.gov.au |
52bb7bc8d4d7407ddcf98b309c0bf937e0bee8b7 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/devtools/cloudtrace/v2/devtools-cloudtrace-v2-py/google/cloud/trace_v2/services/trace_service/client.py | 7c05ee2d909da72da2853806426b926b4adf6321 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,823 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
71e3aeecc1adfc49a05d19cfc103e722c3068ce1 | e5773eee210e2fa0f7f64e6f2640efb41d814ca4 | /pythonhow/7.py | 4307b7f00a1c40378859a7d40d16bd385995d425 | [] | no_license | djaychela/playground | 2513b8b5b32ff0e7351cd2ba469e9bd718decfd9 | 0a94ac251f150673b15a9e00d3664f9eff14369d | refs/heads/master | 2021-07-17T09:30:11.651857 | 2019-01-16T13:47:13 | 2019-01-16T13:47:13 | 112,640,280 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | text = 'Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. Etiam ul... | [
"djaychela@gmail.com"
] | djaychela@gmail.com |
d1a2980ef229bb023160ece6a3f00f8ee8a74f8e | 7eebbfaee45fdc57c4fc6ba32c87c35be1e62b14 | /airbyte-integrations/connectors/source-scaffold-source-http/setup.py | 635cfd0c8d7dd3274e1ac00c0d2cb7ee0052a3d2 | [
"MIT",
"Elastic-2.0"
] | permissive | Velocity-Engineering/airbyte | b6e1fcead5b9fd7c74d50b9f27118654604dc8e0 | 802a8184cdd11c1eb905a54ed07c8732b0c0b807 | refs/heads/master | 2023-07-31T15:16:27.644737 | 2021-09-28T08:43:51 | 2021-09-28T08:43:51 | 370,730,633 | 0 | 1 | MIT | 2021-06-08T05:58:44 | 2021-05-25T14:55:43 | Java | UTF-8 | Python | false | false | 641 | py | #
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#
from setuptools import find_packages, setup
MAIN_REQUIREMENTS = [
"airbyte-cdk",
]
TEST_REQUIREMENTS = [
"pytest~=6.1",
"pytest-mock~=3.6.1",
"source-acceptance-test",
]
setup(
name="source_scaffold_source_http",
description="Sour... | [
"noreply@github.com"
] | Velocity-Engineering.noreply@github.com |
3d441fabaaf4bfae7d03bfda37ccf019e342d301 | 1456f1da1144399e5d8a955ad53325c7e4181407 | /dataEx/graph2.py | 7ea4cbb8030625b607aaca52962698a0a8730e62 | [] | no_license | GJM-Kinger/soft5 | 30b72e695720f0291bfdad67bc04cb0a108db7e5 | f7863870aa4657187c6b247ef9656d36414234c2 | refs/heads/master | 2022-12-29T15:48:21.389555 | 2020-10-17T08:52:22 | 2020-10-17T08:52:22 | 305,057,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,283 | py | # @todo
# @Author: gou
# @Time: 2020/9/24 20:33
# @version: 1.0
import sys
from pyqtgraph.Qt import QtCore, QtGui
from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QMessageBox
from PyQt5.QtCore import QTimer
from pyqtgraph_pyqt import Ui_MainWindow
from PyQt5.QtGui import QIcon
import pyqtgraph as pg
import numpy... | [
"you@example.com"
] | you@example.com |
88705eed80a0fbcf7f5f90af5e1e6d9fb1414692 | 0e7b61465e8a50dcf5cb0cfec8aaf4477410f455 | /plan/testsuite/core.py | 4d35e69834ebe655afb8cdbe3eaa1d9c0203aec3 | [
"BSD-3-Clause"
] | permissive | sandlbn/plan | acc7efa5fcf838611530914508b01356fba45590 | c9f7ffc6b8eb26dbb383845be2224ddd01a8449c | refs/heads/master | 2021-01-23T20:12:08.354716 | 2014-06-12T13:17:13 | 2014-06-12T13:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | # -*- coding: utf-8 -*-
"""
plan.testsuite.core
~~~~~~~~~~~~~~~~~~~
Tests the core classes for Plan.
:copyright: (c) 2014 by Shipeng Feng.
:license: BSD, see LICENSE for more details.
"""
import sys
import unittest
from plan.testsuite import BaseTestCase
from plan.core import Plan
class PlanTe... | [
"fsp261@gmail.com"
] | fsp261@gmail.com |
203a64bad513c0927d90e360440fb4542c4e44cc | 8e09b30344b59610a0e0d8986ca1c452775233a6 | /word2verb_aspect.py | fe28e1f2521c9387a5791575dcb631a2167e3fc8 | [] | no_license | Koziev/word2verb_aspect | f0d6f589dd33c00500bb7c2dd0cd2cac24913515 | 0af52fe78284ee201c6f763be9136d851cb769da | refs/heads/master | 2020-12-24T18:55:01.305553 | 2016-05-01T05:57:50 | 2016-05-01T05:57:50 | 57,536,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,134 | py | # -*- coding: utf-8 -*-
'''
Использование RNN/LSTM для классификации цепочек символов как сов_гл/несов_гл/неопр
30.04.2016 первая реализация на основе кода модели word_is_noun
'''
from __future__ import print_function
from keras.models import Sequential
from keras.layers.core import Activation, Dense, Masking
from ker... | [
"mentalcomputing@gmail.com"
] | mentalcomputing@gmail.com |
94a7d0f56e6ca812e996dd7edd212b982650a18e | 9b7c150aa683793ce02d88d90c08b3a63257aa33 | /Bridge/example.py | b757930e07412d344c2b34082dfca05c1f6992b8 | [] | no_license | anantkaushik/Design_Patterns | 2b431ef39e830be5328f1991a6fec14f23d95656 | 50898ed53b589c2e6dac8ffceb4db1fdd0fa8046 | refs/heads/master | 2023-04-01T21:56:40.739982 | 2021-04-04T18:20:07 | 2021-04-04T18:20:07 | 265,890,146 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,644 | py | from abc import ABC, abstractmethod
class Abstraction:
"""
The Abstraction defines the interface for the "control" part of the two
class hierarchies. It maintains a reference to an object of the
Implementation hierarchy and delegates all of the real work to this object.
"""
def __init__(self,... | [
"anant.kaushik2@gmail.com"
] | anant.kaushik2@gmail.com |
f9deb199853fab0bee61d87dfda61baf1d0d80ab | beb43528a2f3e83c715d8f4cb0b31779154c8e6d | /qmla/process_string_to_matrix.py | 7b4dd5d32296d705e5cf194995f117d4e85f7376 | [
"MIT"
] | permissive | stjordanis/QMLA | ed90b8ca6ded3cd2d05592e792524de9a8d6a3d7 | f9e0f920245a7f309818beb551b37e3a04bcbe51 | refs/heads/master | 2023-04-17T07:57:15.766037 | 2021-02-22T22:44:27 | 2021-02-22T22:44:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,894 | py | import numpy as np
from qmla import construct_models
import qmla.string_processing_functions
import qmla.logging
__all__ = [
'string_processing_functions',
'process_basic_operator'
]
string_processing_functions = {
'nv': qmla.string_processing_functions.process_n_qubit_NV_centre_spin,
'pauliSet': qml... | [
"flynnbr@tcd.ie"
] | flynnbr@tcd.ie |
012334ca646503f541e7ce38e8cf03922b4c400a | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/01_netCDF_extraction/merra902Combine/87-tideGauge.py | b0f455027f378ae8f31f3c4fef6552d9e3c1f805 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,374 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 17 11:28:00 2020
--------------------------------------------
Load predictors for each TG and combine them
--------------------------------------------
@author: Michael Tadesse
"""
import os
import pandas as pd
#define directories
# dir_name = 'F:\\01_erainterim\\01_er... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
76170cdba0fd66c8c6626025cf04c667831acbf8 | e824262c199fe6193736dab07832adb3683ef21d | /webserver5.py | f31840a397f485ab7c90fe119a5a8d4945a32521 | [] | no_license | methane/fastest-webserver | ae822623bf121a7c44e8c95af5c7c20541043a27 | 1b9d8c04dce327a1c182d370b0ece43febb92ec8 | refs/heads/master | 2020-06-05T04:52:26.881193 | 2013-10-03T12:54:33 | 2013-10-03T12:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import socket
import select
read_waits = {}
write_waits = {}
def wait_read(con, callback):
read_waits[con.fileno()] = callback
def wait_write(con, callback):
write_waits[con.fileno()] = callback
def evloop():
while 1:
rs, ws, xs = select.select(read_waits.keys(), write_waits.keys(), [])
... | [
"inada-n@klab.com"
] | inada-n@klab.com |
6255dd75619196f023cf4e9103c1e46b21ece405 | b3f40953c1876f5916a2dbd2d7b9903a635e512e | /Dojo_Python/Django_Level_2/imaginary_friends/imaginary_friends/settings.py | 187429582a62fd2e645846a3b0e31045ad97d334 | [] | no_license | rudietuesdays/dojo_python | c9d9907096995d6e247b6b7732a908ece246b466 | 5e1fd46c45c90dfcd046f0fe922c64f96625a6c0 | refs/heads/master | 2021-01-11T13:28:56.029473 | 2017-03-07T02:49:48 | 2017-03-07T02:49:48 | 81,473,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | """
Django settings for imaginary_friends project.
Generated by 'django-admin startproject' using Django 1.10.5.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
... | [
"amanda.gaines@gmail.com"
] | amanda.gaines@gmail.com |
dc6a5ada19425a4237967b54159e5ece82767862 | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project/.history/main_20211116163838.py | a8355196c737d26d4f3429710e6822f916b7220f | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 2,693 | py | import product as p
def choose():
action = 0
while action >= 0:
if action == 1:
p.AddProduct()
print("--------------------------------")
elif action == 2:
p.DeleteProduct()
elif action == 3:
p.UpdateProduct()
elif action == 4:
... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
6a4f1ff3ed84d4d71e2e86a8a81c0e2478137b92 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/VBSjjlnu/Full2017v7/conf_test_wjetsHT/samples.py | 1e8002f007678b4b56a8c04f041b3bcfe3a28128 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 6,614 | py | import os
import subprocess
import string
from LatinoAnalysis.Tools.commonTools import *
def nanoGetSampleFiles(inputDir, sample):
return getSampleFiles(inputDir, sample, True, 'nanoLatino_')
def CombineBaseW(samples, proc, samplelist):
newbaseW = getBaseWnAOD(directory_bkg, 'Fall2017_102X_nAODv7_Full2017v7', s... | [
"davide.valsecchi@cern.ch"
] | davide.valsecchi@cern.ch |
1067e04e14d3e0982e88292f5435249b9ef551cd | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CISCO-LWAPP-CLIENT-ROAMING-CAPABILITY.py | 7280e7370df1b2464a3f4d3f1e7e7aacf65625bf | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 3,472 | py | #
# PySNMP MIB module CISCO-LWAPP-CLIENT-ROAMING-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LWAPP-CLIENT-ROAMING-CAPABILITY
# Produced by pysmi-0.3.4 at Mon Apr 29 17:47:52 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
#... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
a0f62e617ab2a7c16601252c54031916c072ac67 | fe64cc9f8f224ed15a514e3a2a5b8635e7d45e6a | /exceptiondemo.py | 372137bcd78e6215a0dd0690262aadebe0cddb54 | [] | no_license | viralsir/python_saket | c99273545c208d866014830871e961fdc6dc4ce2 | 9db2aeee34438220c2536db6ea01ba8621ccceae | refs/heads/master | 2023-08-18T11:54:34.066298 | 2021-10-16T12:43:00 | 2021-10-16T12:43:00 | 415,494,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | start=True
while start==True:
try:
number1=int(input("Enter No1:"))
number2=int(input("Enter No2:"))
ans=number1/number2
print("ans:",number1/number2)
start=False
except ZeroDivisionError:
print("zero is invalid as a second no")
except ValueError :
p... | [
"viralsir2018@gmail.com"
] | viralsir2018@gmail.com |
b25407e007b0b7c83f662d14763407b7391ed94d | d61d05748a59a1a73bbf3c39dd2c1a52d649d6e3 | /chromium/third_party/blink/web_tests/external/wpt/referrer-policy/generic/tools/common_paths.py | 1066fb5bb238ed5dfd57bc5ba0e98af624bfd9b4 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"W3C",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-w3c-03-bsd-license",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"Lice... | permissive | Csineneo/Vivaldi | 4eaad20fc0ff306ca60b400cd5fad930a9082087 | d92465f71fb8e4345e27bd889532339204b26f1e | refs/heads/master | 2022-11-23T17:11:50.714160 | 2019-05-25T11:45:11 | 2019-05-25T11:45:11 | 144,489,531 | 5 | 4 | BSD-3-Clause | 2022-11-04T05:55:33 | 2018-08-12T18:04:37 | null | UTF-8 | Python | false | false | 2,054 | py | from __future__ import print_function
import os, sys, json, re
script_directory = os.path.dirname(os.path.abspath(__file__))
generic_directory = os.path.abspath(os.path.join(script_directory, '..'))
template_directory = os.path.abspath(os.path.join(script_directory,
... | [
"csineneo@gmail.com"
] | csineneo@gmail.com |
d23faa0c0401b5e588488579a54a6fa49fd60a39 | 45de3aa97525713e3a452c18dcabe61ac9cf0877 | /src/primaires/perso/commandes/raedit/__init__.py | 57e1e7764128f31b74262f3136a7ad76c772f06d | [
"BSD-3-Clause"
] | permissive | stormi/tsunami | 95a6da188eadea3620c70f7028f32806ee2ec0d1 | bdc853229834b52b2ee8ed54a3161a1a3133d926 | refs/heads/master | 2020-12-26T04:27:13.578652 | 2015-11-17T21:32:38 | 2015-11-17T21:32:38 | 25,606,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,483 | py | # -*-coding:Utf-8 -*
# Copyright (c) 2010 LE GOFF Vincent
# 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 notice, this
# l... | [
"kredh@free.fr"
] | kredh@free.fr |
595a7a5d21b4851a48fdfc4ec323288561b68ba0 | eb27f44089e4e00d5fc2a403cb5e2f722964bd86 | /code/backends/DataShuffler/src/server.py | cbea80b603ca157fdee650b400b4d1fc64b70cb0 | [] | no_license | aynstan/Rhinoceros | d39dcecde849d1b755d69a4428c7dfa387dcedf4 | c6925a102f55ba8b84ed5775cc6eca06d0cc5802 | refs/heads/master | 2020-07-14T20:20:28.715215 | 2019-04-21T14:50:40 | 2019-04-21T14:50:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | #coding:utf-8
import sys
import getopt
from camel.biz.application.corsrv import CoroutineApplication,setup,instance
from camel.fundamental.amqp import AmqpManager,AccessMode
class AdapterServer(CoroutineApplication):
def __init__(self):
CoroutineApplication.__init__(self)
def init(self):
Cor... | [
"24509826@qq.com"
] | 24509826@qq.com |
788f4a4e9e32d87e11722593317ce5a223e545a9 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/1303.py | c5f576ea723a2f7b4f67149ba3a29be8872fc612 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | with open('A-large.in') as f:
with open('A.out', 'w') as out:
tests = f.readline()
testNum = 1
for line in f:
vals = line.split(" ")
max = vals[0]
cur = vals[1].strip()
total = 0
count = 0
need = 0
for chr in cur:
if total >= count:
total = total + int(chr)
else:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3d688d1ad288670f93d3b5c2ac3cbc7fac38e36e | dea198896f679e577a3fd0923e3fa4470da4b9cc | /journal/pyfakefs_mutants/LCR_BoolOp_mutant_1507055448.py | ed28b4e92b19903e77b0a035091407788d4082ba | [] | no_license | naustarg/cbmcmutate | f138ab2b04b4be70d735de90815ac670ae6042ce | a6ee6fd395338bb2dfd6bdffabb2dc484cb303f1 | refs/heads/master | 2020-04-04T08:10:15.913309 | 2018-05-21T18:23:58 | 2018-05-21T18:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219,330 | py | # line: 91
'A fake filesystem implementation for unit testing.\n\n:Includes:\n * FakeFile: Provides the appearance of a real file.\n * FakeDirectory: Provides the appearance of a real directory.\n * FakeFilesystem: Provides the appearance of a real directory hierarchy.\n * FakeOsModule: Uses FakeFilesystem to pr... | [
"agroce@gmail.com"
] | agroce@gmail.com |
2c2676051aa2ec5e46008aae69a9d59450bcbd86 | 6f7ef265722d442c8ea782a2af6fb957a6b36865 | /core/registration/static/forms.py | f7fb17c3bb55bbdbb399edfb845e6480f26351f1 | [] | no_license | Marlburo/inventory | 751149a0085c8ec8ef82d81ca6e1edc79d4a293d | bb2aa99e41f532c35eda47a210a12be134ca62c0 | refs/heads/master | 2021-01-22T16:38:58.901807 | 2015-01-28T15:37:07 | 2015-01-28T15:37:07 | 33,836,752 | 1 | 0 | null | 2015-04-12T22:39:12 | 2015-04-12T22:39:10 | null | UTF-8 | Python | false | false | 1,446 | py | from django import forms
from django.forms import widgets
from core.registration.static.models import StaticReg
from core.utils import resolve_ip_type
from mozdns.forms import BaseForm
from mozdns.utils import ensure_label_domain
class StaticRegForm(BaseForm):
class Meta:
model = StaticReg
fields... | [
"uberj@onid.orst.edu"
] | uberj@onid.orst.edu |
c47f216bb7b2eb3a2544e2aef66db5851b86034f | dc67e70a303f265ee6cb4c1a2d61fe811053fb3d | /beginner/147/C.py | 9e06eaadb7c2ce625c1bff688c39827f639a550d | [] | no_license | cry999/AtCoder | d39ce22d49dfce805cb7bab9d1ff0dd21825823a | 879d0e43e3fac0aadc4d772dc57374ae72571fe6 | refs/heads/master | 2020-04-23T13:55:00.018156 | 2019-12-11T05:23:03 | 2019-12-11T05:23:03 | 171,214,066 | 0 | 0 | null | 2019-05-13T15:17:02 | 2019-02-18T04:24:01 | Python | UTF-8 | Python | false | false | 1,256 | py | def honest_or_unkind_2(N: int, testimonies: dict)->int:
ans = 0
for i in range(1 << N):
honest_num = 0
for j in range(N):
if i & (1 << j) == 0:
continue
honest_num += 1
# 正直者の場合はその人の証言が全て正しいことをチェックする
for k, is_honest in testimonies... | [
"when.the.cry999@gmail.com"
] | when.the.cry999@gmail.com |
f4e848735955626615931fe1e3b1fcebd40dba5e | d2df591c50458f88b3ebef4e5f9c65fa8ba42688 | /Algorithm-Study/programmers/hash/2.py | f69c0230826015784713ac6e532aea0989f4a8cd | [] | no_license | JuHyang/today-I-learned | 16eba628b3e9e8c99cb3ca6bcdf1d49f9f496f94 | 6a262bc7a88612aa22fcb5119d4d182bacb22b49 | refs/heads/main | 2022-02-10T16:37:36.793196 | 2022-01-28T01:06:02 | 2022-01-28T01:06:02 | 222,265,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | def solution(phone_book):
answer = True
phone_book.sort()
print (phone_book)
return answer
phone_book = ["12123123123123123", "12232332", "12", "222222"]
solution (phone_book)
| [
"kkss2889@naver.com"
] | kkss2889@naver.com |
15b4581006a1a5d755444ba3c84b8f1ec2e0171c | 508b570c4ad20ca97aebac86aa12a090d03ba817 | /tv_server/read_buffer.py | 9b8fddf6455be92d8c20d3896c22eb911fdef9cd | [] | no_license | dsoprea/TvServer | 0dcce431511d6b2693bb99818bc4a4b79277d973 | 5797e5c3c28c1e0fcebfedfa2e795b81e6f3cc89 | refs/heads/master | 2016-09-05T17:05:49.790256 | 2014-05-23T07:04:18 | 2014-05-23T07:08:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | import logging
from threading import RLock
from struct import unpack
from tv_server.backend.protocol import get_message_cls_by_index
class ReadBuffer(object):
"""This class receives incoming data, and stores it in a list of extents
(also referred to as buffers). It allows us to leisurely pop off sequences ... | [
"myselfasunder@gmail.com"
] | myselfasunder@gmail.com |
cbd85f12272409dfae67a8740d3c96785eea254a | f09155ed20774a4fbf2a117ae43b38223642e9d8 | /businessworldenv/bin/google_network_setup | 8fce2aee397e8df59b60d17ca761cf70c23d46ba | [] | no_license | krsumit/bwn | eeebbd8cf21cf7e8cc3ba7b180605d664e655876 | 17d894760099640d44ec70ecaf5b15c764efd658 | refs/heads/master | 2023-01-04T14:06:03.426185 | 2019-10-01T04:17:20 | 2019-10-01T04:17:20 | 212,008,994 | 0 | 0 | null | 2022-12-26T20:15:56 | 2019-10-01T03:58:29 | Python | UTF-8 | Python | false | false | 289 | #!/home/sumit/businessworld/businessworldenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from google_compute_engine.network_setup.network_setup import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"kr.sumit89@gmail.com"
] | kr.sumit89@gmail.com | |
e03c9d1a0693d7322b081ab3b4a46cef45d88713 | da285129f2549d895c16736a1a694bbbfe19f813 | /setup.py | a7333a9dca04d23a6378af700e875614f8a56366 | [] | no_license | larsks/zcam | 01a87d83153ada87e92f5de2a00d117a362afe0b | ddac2904082e9b2a7a2a02b2442114db91217866 | refs/heads/master | 2021-07-20T23:57:16.485662 | 2017-10-30T12:34:18 | 2017-10-30T12:34:18 | 105,022,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | from setuptools import setup, find_packages
setup(
name='zcam',
version='0.1',
author='Lars Kellogg-Stedman',
author_email='lars@oddbit.com',
url='https://github.com/larsks/zcam',
packages=find_packages(),
entry_points={
'console_scripts': [
'zcam-service-activity = zcam... | [
"lars@redhat.com"
] | lars@redhat.com |
00dbef85a49d7657be336b1eeb2af21cf3dc5ac9 | 181af10fcf40b824fe92d3b8f72fd15d6d1490c2 | /Contests/201-300/week 226/1743. Restore the Array From Adjacent Pairs/Restore the Array From Adjacent Pairs.py | d265e8366f3852d99dbdbd76912f0ebaac244386 | [] | no_license | wangyendt/LeetCode | 402c59a0b7b7f5b3a672231ea5dad8056ade36af | 4a3ba15284c45b2d8bf38306c8c8526ae174615c | refs/heads/master | 2023-08-10T06:27:54.995152 | 2023-08-10T02:22:27 | 2023-08-10T02:22:27 | 176,651,399 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,123 | py | #!/usr/bin/env python
# -*- coding:utf-8 _*-
"""
@author: wangye(Wayne)
@license: Apache Licence
@file: Restore the Array From Adjacent Pairs.py
@time: 2021/01/31
@contact: wang121ye@hotmail.com
@site:
@software: PyCharm
# code is far away from bugs.
"""
from typing import *
import collections
class Soluti... | [
"905317742@qq.com"
] | 905317742@qq.com |
ebfb9a5ae32c0577b01f283dd785709e18925d99 | c8a9d66efb29a9a5d5a42b74c252eeb91f20e2f8 | /survae/tests/transforms/bijections/autoregressive/autoregressive_splines_2d.py | b6b6e49c300c1ff706f4a6499309e0c81a26557d | [
"MIT"
] | permissive | alisiahkoohi/survae_flows | 60ebfa86506f4139ce1fd9508e9c1e0dbdd1bdff | e1747b05524c7ab540a211ed360ab3e67bc3e96d | refs/heads/master | 2022-12-19T15:18:42.587276 | 2020-09-17T12:34:51 | 2020-09-17T12:34:51 | 290,247,391 | 1 | 0 | MIT | 2020-08-25T15:08:02 | 2020-08-25T15:08:01 | null | UTF-8 | Python | false | false | 4,280 | py | import numpy as np
import torch
import torch.nn as nn
import torchtestcase
import unittest
from survae.transforms.bijections.autoregressive import *
from survae.nn.layers.autoregressive import SpatialMaskedConv2d, MaskedConv2d
from survae.nn.layers import ElementwiseParams, ElementwiseParams2d
from survae.tests.transfo... | [
"didrik.nielsen@gmail.com"
] | didrik.nielsen@gmail.com |
5801164201ffa4030c9b1f2633b1a309de8e4b73 | 196f7e3238f961fb5eba7a794f0b0c75d7c30ba1 | /Python笨办法2.7/34.py | 6271f52490b792f1abb601ce9705eb048797cbf1 | [] | no_license | Liaoyingjie/Pythonlearn | d0b1b95110017af7e063813660e52c61a6333575 | 8bca069f38a60719acac5aa39bd347f90ab0bfb1 | refs/heads/master | 2020-04-08T07:35:07.357487 | 2018-04-12T16:44:43 | 2018-04-12T16:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py | #coding=utf-8
#animals = ['bear', 'tiger', 'penguin', 'zebra']
#bear = animals[0]
#
#上面是访问第一元素的方法
#程序员不能用这种方式思考问题,因为他们可以从列表的任何一个位置取出一个元素来。对程序员来说,上述的列表更像是一叠卡片。
#如果他们想要 tiger,就抓它出来,如果想要zeebra,也一样抓取出来。
#要随机地抓取列表里的内容,列表的每一个元素都应该有一个地址,或者一个 “index(索引)”,
#而最好的方式是使用以 0 开头的索引。
'''
@类的数字被称为“基数(cardinal number)”,它意味着你可以... | [
"godzoco@qq.com"
] | godzoco@qq.com |
a4d4948677a47f29a1dcf88965ad8838889b84b3 | 4860b5995a6d4754b7329b588b0f1994c7afc10e | /tools/skylark/py_env_runner.py | 2fe16e748bfd9653e263f0b4c2369b613d2712c5 | [
"BSD-3-Clause"
] | permissive | osrf/drake | b741c81d4fb7d955837a3eadae6105b8a7081dc2 | d3112221a2544ee74a79b45c6cfcb7fc18ea7b3a | refs/heads/master | 2022-10-22T23:54:42.565354 | 2018-02-13T22:07:26 | 2018-02-13T22:07:26 | 101,802,343 | 3 | 1 | null | 2017-12-22T17:26:43 | 2017-08-29T20:08:29 | C++ | UTF-8 | Python | false | false | 365 | py | #!/usr/bin/env python
"""
Wrapper Python script to ensure we can execute a C++ binary with access to
Python libraries using an environment established by Bazel.
"""
# TODO(eric.cousineau): See if there is a way to do this in pure C++, such
# that it is easier to debug.
import subprocess
import sys
assert len(sys.ar... | [
"eric.cousineau@tri.global"
] | eric.cousineau@tri.global |
00f53eda6e42122cdfa40ec8a93becf3365056b4 | ff81a9d7880f1b85a1dc19d5eba5ac72d7179c86 | /pychron/entry/tasks/simple_identifier/task.py | 88540060c0a38554711f310378a06533b4641ff4 | [
"Apache-2.0"
] | permissive | UManPychron/pychron | 2fb7e479a9f492423c0f458c70102c499e1062c4 | b84c9fd70072f9cbda30abe2c471e64fe3dd75d8 | refs/heads/develop | 2022-12-03T23:32:45.579326 | 2020-01-29T19:02:20 | 2020-01-29T19:02:20 | 36,100,637 | 0 | 0 | null | 2015-05-23T00:10:06 | 2015-05-23T00:10:05 | null | UTF-8 | Python | false | false | 1,733 | py | # ===============================================================================
# Copyright 2017 ross
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICE... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
6463ae45935e8f54f39628ea86eeb2b0789f5502 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_118/ch150_2020_04_13_19_52_37_828665.py | d2a564575c0562abd51684171961c37b120b61f0 | [] | 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 | 116 | py | import math
def calcula_pi(n):
i=1
while i<=n:
pi=math.sqrt(6/(n**2))
i+=1
return pi | [
"you@example.com"
] | you@example.com |
bcf14aba853847b1b17c3a2cefafb495650d045e | 37a65bea51a851c54d7bdcaba6f749504aa70cfb | /aiC/基于成绩的专业推荐/grade.py | 0f11353ab4a49c7b3e5e1250f3c873559125a51e | [] | no_license | jiuxia66/REC2020 | 0bac1b0d54a1cc86ec43f1eae692fbc30699f126 | e33fca0e2826a6e04b0be593fdb3414587927b60 | refs/heads/master | 2023-04-17T05:02:12.372942 | 2020-10-11T09:33:09 | 2020-10-11T09:33:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,513 | py | import pandas as pd
import json
import string
import os.path
import math
def getrecommendation(province,category,bl,rank,gradelist,ability=False):
m=bl['Major'].tolist()
majors=[]
for major in m:
if major not in majors:
majors.append(major)
ss=[]
for major in majors:
... | [
"noreply@gitee.com"
] | noreply@gitee.com |
72bf06648fbbccd845531a18ade76e730953881d | dae59820ebbebd7429ce94b760f89c1bfab5ed82 | /tests/test_report.py | 332408d1608102dd323ba05aeda21f986b18b294 | [
"MIT"
] | permissive | silviu001/calrissian | 58b11ffaa0b563cf28cf7e6afbbed81b85bb5ab9 | 6d53deee6892998a206efbc8eb96b5d353d4dbdc | refs/heads/master | 2022-08-02T09:01:07.780051 | 2020-06-03T13:49:21 | 2020-06-03T13:49:21 | 260,020,601 | 0 | 0 | MIT | 2020-04-29T19:16:49 | 2020-04-29T19:16:48 | null | UTF-8 | Python | false | false | 21,433 | py | from unittest import TestCase
from calrissian.report import TimedReport, TimedResourceReport, TimelineReport
from calrissian.report import Event, MaxParallelCountProcessor, MaxParallelCPUsProcessor, MaxParallelRAMProcessor
from calrissian.report import MemoryParser, CPUParser, Reporter
from calrissian.report import ini... | [
"dan.leehr@duke.edu"
] | dan.leehr@duke.edu |
91b1403f8e1105645bfefc85442423a816e24f0c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02848/s698981801.py | 7e0cebce400b848c6b6f5211a58ecacfee9361c8 | [] | 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 | 185 | py | N = int(input())
S = input()
ABC = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
s = ""
for c in S:
for i, a in enumerate(ABC):
if a == c:
break
s += ABC[(i+N)%26]
print(s) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6feac90f372a344a464be7960602463c941c1213 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_372/ch151_2020_04_13_20_05_38_914868.py | 484e6bcd2cd795d760874f5c31d180730791b57e | [] | 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 | 343 | py | def classifica_lista(lista_numeros):
i=0
lista_numeros=[]
while i < len(lista_numeros):
if lista_numeros[i+1]>lista_numeros[i]:
print('crescente')
elif lista_numeros[i+1]<lista_numeros[i]:
print('decrescente')
else:
print('nenhum')
... | [
"you@example.com"
] | you@example.com |
62f559d8220e03934872a162315e3373a28d56ff | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2494/61659/262968.py | 7f9f136d80290d8e4d09f35e301c9abb605c5afa | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | lists=eval(input())
count=0
for i in range(0,len(lists)-1):
for j in range(i+1,len(lists)):
if lists[i]>2*lists[j]:
count=count+1
print(count) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f43c29205fbc170379d87b684e4ac234e1a8df35 | e5ca75c98ce9fc647402c785460530b931367914 | /src/flow_solver.py | 0b7c5b0f835bcad74676733169fd477f2abbca48 | [] | no_license | MiroK/gp-cylinder | 4661f5bec991d66d78bb7f5972554caaa4380896 | e60e4af6d44e5deed2a5ad91042848c437a9cb5e | refs/heads/master | 2020-04-12T11:52:02.872403 | 2019-01-30T16:54:54 | 2019-01-30T16:54:54 | 162,473,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,600 | py | from jet_bcs import JetBCValue
from utils import read_vtu_function
import numpy as np
from dolfin import *
class FlowSolver(object):
'''IPCS scheme with explicit treatment of nonlinearity.'''
def __init__(self, flow_params, geometry_params, solver_params):
# Using very simple IPCS solver
mu = ... | [
"miroslav.kuchta@gmail.com"
] | miroslav.kuchta@gmail.com |
de2649f23db1638588fc499aaabe6c95f460b2ba | 1fe0b680ce53bb3bb9078356ea2b25e572d9cfdc | /venv/lib/python2.7/site-packages/ansible/modules/storage/netapp/na_ontap_volume.py | 752c4f4a7dcaae5f0fbcf886ce10e36578aa02bf | [
"MIT",
"GPL-3.0-or-later"
] | permissive | otus-devops-2019-02/devopscourses_infra | 1929c4a9eace3fdb0eb118bf216f3385fc0cdb1c | e42e5deafce395af869084ede245fc6cff6d0b2c | refs/heads/master | 2020-04-29T02:41:49.985889 | 2019-05-21T06:35:19 | 2019-05-21T06:35:19 | 175,780,457 | 0 | 1 | MIT | 2019-05-21T06:35:20 | 2019-03-15T08:35:54 | HCL | UTF-8 | Python | false | false | 48,314 | py | #!/usr/bin/python
# (c) 2018-2019, NetApp, Inc
# GNU General Public License v3.0+
# (see COPYING 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'],... | [
"skydevapp@gmail.com"
] | skydevapp@gmail.com |
60b35a6534f3f02876d43f03dbf7016093c82518 | a519c248ccac7cfb4c934b5ad1159f4937117fba | /While_Loop/hot_and_cold.py | 9d6c19d3813eaf84b5cee1b10dd27c2d7b9149f6 | [] | no_license | kaci65/Nichola_Lacey_Python_By_Example_BOOK | 1ae5654b82c01e320eaf8d1e41fb03804c0786fc | 2cc18d2d8351a990cee31e253c4bcb298ba4c266 | refs/heads/main | 2023-04-12T18:16:03.663399 | 2021-05-02T14:34:00 | 2021-05-02T14:34:00 | 346,003,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | #!/usr/bin/python3
"""Check if user input is similar to the value of the variable"""
compNum = 50
num = int(input("Enter a number: "))
count = 1
while num != compNum:
if num > compNum:
print("Too high")
else:
print("Too low")
count = count + 1
num = int(input("Try again. Enter a number... | [
"wanjikukarugi@gmail.com"
] | wanjikukarugi@gmail.com |
c04ed22826cefec6a03afabc52334e87c1b9d844 | b8379b73f6665a74b14d3d5796cf7c8351852b85 | /tests/test_io.py | 0a5cc7927e003598154815e7295568bf16e3863f | [
"BSD-3-Clause"
] | permissive | certik/sfepy | ceb766ee51821ecd1f2bfa4f5611ef87abe88805 | f89b2682df0cdba57c64caa6fe362855f2671465 | refs/heads/master | 2020-08-06T17:07:15.780747 | 2009-01-15T16:47:58 | 2009-01-15T16:47:58 | 110,970 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | from sfepy.base.testing import TestCommon, assert_
import numpy as nm
import scipy.sparse as sp
import os.path as op
##
# 02.07.2007, c
class Test( TestCommon ):
##
# 02.07.2007, c
def from_conf( conf, options ):
return Test( conf = conf, options = options )
from_conf = staticmethod( from_conf... | [
"cimrman3@ntc.zcu.cz"
] | cimrman3@ntc.zcu.cz |
845fdefbbc201a12f6145b54e78d21dcaeb96848 | f99c276fe2534c5822a2a65812be45cfd1d9832f | /run_allfeatures.py | 7772c2d04b0cf4fdf26effee78ff97fba3936b8a | [] | no_license | cgallego/integrationFeaturesModule | 48276f2b1f83649a960707c8e037718bf67f6040 | 236204e6c45dc100fd3d6d301839316dba22173a | refs/heads/master | 2020-04-05T23:16:30.804779 | 2015-04-16T19:23:24 | 2015-04-16T19:23:24 | 19,864,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 01 10:47:40 2014
This script will load volumes, Load a lesion Segmentation (VOI), Visualize volumes
and then extract Dynamic, Morphology and Texture features from the VOI.
@ author (C) Cristina Gallego, University of Toronto, 2013
--------------------------------... | [
"admin@webdsdesign.com"
] | admin@webdsdesign.com |
83ba5987091ff4069564ff92a62200a1cfa7f62f | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /travelport/models/provider_reservation_display_service_port_type_service_output.py | f4729c8d2f9295c91bfa4ec60a7d881fc65362a5 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 2,637 | py | from __future__ import annotations
from dataclasses import dataclass, field
from travelport.models.error_info_1 import ErrorInfo1
from travelport.models.provider_reservation_display_details_rsp import ProviderReservationDisplayDetailsRsp
__NAMESPACE__ = "http://www.travelport.com/service/air_v52_0"
@dataclass
class ... | [
"chris@komposta.net"
] | chris@komposta.net |
233d691e0b7e982e5b3b4eb0c04d7cc8a5933454 | 094a82883b0f4490dbca6c042e129faf0593d7bc | /micropython/neopixel_writer.py | d77f9d85395b5de7f61d084eedd525712191ad81 | [
"Apache-2.0"
] | permissive | kesking82/thingflow-python | 904495aa370fb0fdef5e1eb162f0553a37bd7271 | 4c00deafd1bf425ec90ef2159fc5f3ea2553ade8 | refs/heads/master | 2020-04-21T13:05:57.615247 | 2019-02-28T09:59:13 | 2019-02-28T09:59:13 | 169,587,091 | 0 | 0 | Apache-2.0 | 2019-02-07T14:44:45 | 2019-02-07T14:44:44 | null | UTF-8 | Python | false | false | 1,498 | py | """Control NeoPixel-style light strips from ThingFlow.
num_pixels and bytes_per_pixel will vary, depending on your light strip.
Set pinno to the gpio pin number where you connected the data line of
the NeoPixel.
If you have bytes_per_pixel=3, the events will be of the form:
(pixelno, r, g, b)
If you have bytes_per... | [
"jeff@data-ken.org"
] | jeff@data-ken.org |
6119b014b4b48b32092ec0696b22518b8784012f | f5a1fcc57ba6d1bdd946158d269f861747023977 | /google_problems/problem_41.py | 1a986da040f409ba82575d58cd32fb580e4e0c13 | [
"MIT"
] | permissive | younes38/Daily-Coding-Problem | 64f8c4137b86fc44d6202585f009a3a5e05f4eac | ba2b48fbd4d86b2130a396b9d464f2395b9983b6 | refs/heads/master | 2021-07-19T01:41:20.665277 | 2019-11-30T21:00:50 | 2019-11-30T21:00:50 | 225,072,874 | 2 | 0 | MIT | 2019-11-30T21:38:13 | 2019-11-30T21:38:13 | null | UTF-8 | Python | false | false | 325 | py | """This problem was asked by Google.
Given a set of closed intervals, find the smallest set of
numbers that covers all the intervals. If there are multiple smallest sets, return any of them.
For example, given the intervals [0, 3], [2, 6], [3, 4], [6, 9],
one set of numbers that covers all these intervals is {3, 6}... | [
"mxcsyounes@gmail.com"
] | mxcsyounes@gmail.com |
e33e3670e86328c30e466d96952b8956f5c2b163 | 0abcbbac1efc95877f159c65d6f898e749b1bf09 | /MyMusicApp/blog/migrations/0003_auto_20190913_2056.py | b1049059ecfb27f3f672efa619a9f49eba24a0e0 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"GPL-1.0-or-later",
"bzip2-1.0.6",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-newlib-historical",
"OpenSSL",
"Python-2.0",
"TCL",
"LicenseRef-scancod... | permissive | kells4real/MusicApp | 5055e465b46c39e0687c98b7a8adbb2203ac9156 | 4e4ba065c4f472243413551f63dc4e9eddf7f4a7 | refs/heads/master | 2022-10-07T15:49:38.406106 | 2019-10-24T19:55:52 | 2019-10-24T19:55:52 | 197,428,434 | 0 | 1 | MIT | 2022-10-02T02:23:26 | 2019-07-17T16:48:16 | Python | UTF-8 | Python | false | false | 416 | py | # Generated by Django 2.2.2 on 2019-09-13 19:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_auto_20190913_2052'),
]
operations = [
migrations.AlterField(
model_name='post',
name='slug',
... | [
"kells4real@gmail.com"
] | kells4real@gmail.com |
b120af94f5a41302e9c1c1964f5729844da28c82 | 55f89bd92ec6acb1c88f0584b46bcdebf583b239 | /tests/unit/image_streamer/resources/test_deployment_plans.py | 490cbfae470af3e7a9076eb70f25ae4130cd45ad | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"Apache-2.0"
] | permissive | jyothisgm/oneview-python | 13424cfd54f13be5124ea8c63cd53d222415f089 | ddb39276fe926a5f1f4762d14f2a4bf7f2db66b6 | refs/heads/master | 2022-03-28T13:26:39.865851 | 2019-12-16T11:30:22 | 2019-12-16T11:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,914 | py | # -*- coding: utf-8 -*-
###
# (C) Copyright [2019] Hewlett Packard Enterprise Development LP
#
# 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
#... | [
"sijeesh.kattumunda@hpe.com"
] | sijeesh.kattumunda@hpe.com |
21ee11052765265324fc1067a97b969101bf69d7 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /tools/perf/contrib/cluster_telemetry/v8_loading_runtime_stats_ct.py | 838ec63e1be5479fbc48154fd89bac52f72cce07 | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"APSL-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LGPL-2.0-only",
"LicenseRef-scancode-unknown",
"MIT",
"Zlib"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 920 | py | # Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from benchmarks import v8_browsing
from contrib.cluster_telemetry import loading_base_ct
from telemetry.web_perf import timeline_based_measurement
# pylint: ... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
0d5b7733db7fecbb170a36949c466efb3f9ae10c | 42b2b400c518f194e58faf6ea0b4d93cd73608a9 | /samples/api_orders.py | e1f441c7f0878a9e77a05bd43638db40ef4b1637 | [
"MIT"
] | permissive | sdmiami/td-ameritrade-python-api | 700d235e92a1a66bcb77acdf7733b140498a2c5f | fce3be3e89c32ef0b1a141120b4d134a10540f98 | refs/heads/master | 2022-11-15T03:16:34.554104 | 2020-07-13T20:00:32 | 2020-07-13T20:00:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,830 | py | from td.orders import Order, OrderLeg
from td.enums import ORDER_SESSION, DURATION, ORDER_INSTRUCTIONS, ORDER_ASSET_TYPE
# Initalize a new Order Object.
new_order = Order()
#
# MOST OF THE PARAMETERS OF YOUR ORDER CAN BE SPECIFIED EITHER WITH AN ENUM OBJECT
# OR A STRING VALUE.
#
# Define the SESSION of the Orde... | [
"alexreed1192@gmail.com"
] | alexreed1192@gmail.com |
6902f427c3ab51424eba9a01ede57acffb417875 | 91ad206ad602aafe32cd06a29491d75ee0894a51 | /conda/activate.py | 9cb794ddf8b1f1b7d9f1b627c21d5e0ddd45b7c3 | [
"BSD-3-Clause",
"MIT"
] | permissive | melonfish/conda | c0370a5a93cfe6d9e0daabf709ce7ba499f2b32a | 347b8e5d5c0f8798f950b07d08d9f0c81241843b | refs/heads/master | 2021-01-01T18:19:35.913057 | 2017-06-27T19:58:04 | 2017-06-27T19:58:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,136 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from glob import glob
import os
from os.path import abspath, basename, dirname, expanduser, expandvars, isdir, join, normpath
import re
import sys
from tempfile import NamedTemporaryFile
try:
from cytoolz.it... | [
"kfranz@continuum.io"
] | kfranz@continuum.io |
320542bbec983764760282b8aee8566ebe444078 | dc4228d4a7be61683834f4472122fe407eb9f5ae | /metropack/metros.py | 5436ce38556fc93ec832f1735ba8e4c3f7a380fa | [
"BSD-3-Clause"
] | permissive | eddiejessup/metropack | 9aa77d3828c00ae3cde8667ee409aaa9f45c5312 | 528b47d0f2f70f39e1490e41433f2da8c8b9d63c | refs/heads/master | 2016-08-06T12:04:34.471751 | 2015-08-16T18:51:49 | 2015-08-16T18:51:49 | 40,555,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,783 | py | from __future__ import print_function, division
import numpy as np
from scipy.spatial.distance import pdist
from spatious.geom import sphere_volume
from spatious.distance import pdist_sq_periodic, cdist_sq_periodic
class MetroRCP(object):
def __init__(self, r_0, L_0, R, dr_max, dL_max, rng=None):
self.r ... | [
"elliot.marsden@gmail.com"
] | elliot.marsden@gmail.com |
c1c04713a4d80b90c8e7d138a21368e819e406cf | 526f889e4bad06be4c8424c456c487ee2bfb5ec9 | /jdjinshuiji/pipelines.py | dcd6698f784567f2e0c8cb0a242bcd1b64c1b31b | [] | no_license | junjunjuner/jd_jingshuiqi | 28ecce10d5d62ee167f8e4cf0c476bd27de4e68e | 297cde4d98bde90ac870115fd3dc4b5da4ed59e7 | refs/heads/master | 2021-05-11T18:22:26.108744 | 2018-01-17T10:54:45 | 2018-01-17T10:54:45 | 117,822,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import pymongo
from scrapy.conf import settings
from jdjinshuiji.settings import FIELDS_TO_EXPORT
from scrapy import signals
fro... | [
"523614801@qq.com"
] | 523614801@qq.com |
5c3509249fbd3c28a90eeff2db10d5edf77e037c | eef39fd96ef4ed289c1567f56fde936d5bc42ea4 | /BaekJoon/Bronze3/11966.py | 61f886af611385d58f1fe486af18749648a26028 | [] | no_license | dudwns9331/PythonStudy | 3e17da9417507da6a17744c72835c7c2febd4d2e | b99b9ef2453af405daadc6fbf585bb880d7652e1 | refs/heads/master | 2023-06-15T12:19:56.019844 | 2021-07-15T08:46:10 | 2021-07-15T08:46:10 | 324,196,430 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # 2의 제곱인가?
"""
2021-01-11 오전 12:14
안영준
문제
자연수 N이 주어졌을 때, 2의 제곱수면 1을 아니면 0을 출력하는 프로그램을 작성하시오.
입력
첫째 줄에 N(1 ≤ N ≤ 2^30)이 주어진다.
출력
N이 2의 제곱수면 1을 아니면 0을 출력하는 프로그램을 작성하시오.
"""
N = int(input())
result = list()
for i in range(31):
result.append(2 ** i)
if N in result:
print(1)
else:
print(0)
| [
"dudwns1045@naver.com"
] | dudwns1045@naver.com |
beb64a2379bc93f7fb4c6fde6246f302adc48310 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03361/s695910873.py | 71c76c304d65b2fd54c495b81bb576708ac41291 | [] | 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 | 688 | py | H,W=list(map(int,input().split()))
S=[]
for h in range(H):
S_temp=list(input())
S.append(S_temp)
S_=[]
for h in range(H):
for w in range(W):
if S[h][w]=='.':
continue
try:
S_left=S[h-1][w]
except:
S_left='.'
try:
S_right=S[h+1... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cf2c096097a48c4c9aa6049f5cdb9c87d5a5b401 | 5924f4146755e33b9e0a7435da2de708ab8075fa | /osrc/github.py | a60605a21fa7b4fc7ba18d2d194467c5ba46366b | [
"MIT"
] | permissive | pulsedemon/osrc | 40e72d53bd3219b989456f4eeeeab2b8a08caa1b | eb6c9c78de3c98258efbcc9c6b91f0b0bdfe676d | refs/heads/master | 2021-05-03T06:46:48.678808 | 2015-11-13T16:40:02 | 2015-11-13T16:40:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | # -*- coding: utf-8 -*-
__all__ = ["gh_request", "get_user", "get_repo"]
import flask
import requests
from sqlalchemy import func
from .models import db, User, Repo
from .process import process_user, process_repo
API_URL = "https://api.github.com"
def gh_request(path, method="GET", etag=None, **params):
# Bui... | [
"danfm@nyu.edu"
] | danfm@nyu.edu |
fd8f00066ba2b441e2a8674845815412d49a78b9 | 89cd8b77ad5171c336cc60b2133fe6468a6cb53f | /Module01_CZ/day9_reference/04-代码/day9/157_引用(元组).py | 7b065559a0433c57b09c496803c8b27d5261b069 | [
"MIT"
] | permissive | fenglihanxiao/Python | 75178f6b6b0c53345e1ed54226ea645216572d6c | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | refs/heads/master | 2021-05-23T18:49:20.656433 | 2020-04-29T01:06:21 | 2020-04-29T01:06:21 | 253,199,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | """
演示引用(元组)
"""
# print(id(()))
# print(id(()))
# print(id((1,2,3)))
# print(id((1,2,3)))
# a = (1,2,3)
# b = (1,2,3)
# print(id(a))
# print(id(b))
a = (4,5,6)
b = a
print(id(a))
print(id(b)) | [
"fenglihanxiao@qq.com"
] | fenglihanxiao@qq.com |
1e04af291ab8c77a17a5851da3c157606493dbee | 58e15fca047ece58bfa391a6efb88ec1b46997b2 | /venv/lib/python3.8/site-packages/virtualenv/activation/batch/__init__.py | 3131875d773a5ee7e5cc8ca07ab349cff206674e | [] | no_license | su2708/WebScraper | 6594f102336de0bb0ebc2c3feafdb4d87da52ad3 | a084afce4a8dacb4d4beb43924aa85a831c3b4ec | refs/heads/main | 2023-02-20T15:43:37.246448 | 2023-01-15T17:26:28 | 2023-01-15T17:26:28 | 323,025,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | /home/runner/.cache/pip/pool/3a/9f/87/9b538aedb950a795cac0f58b90e01698a4dd8fb7434eea2521531f9951 | [
"46125751+su2708@users.noreply.github.com"
] | 46125751+su2708@users.noreply.github.com |
742a8d0768a75c22eb2c164f37cfbd58ee9b29fb | 5cb9dccbcccb8a2137368dd0615fe3e3c7761707 | /utilities/exploration_strategies/OU_Noise_Exploration.py | 581b0aafbe789ea604dd6ff57e9f9d55fe3930f6 | [] | no_license | Simon-Steinmann/sim2real-modular-RL-project | b2467a393014e106043f6128a026f5eac934a83d | 4027590ac94de2d5c914731c09efcf2f318b9ca3 | refs/heads/master | 2020-07-29T01:30:56.450919 | 2019-10-12T09:33:00 | 2019-10-12T09:33:00 | 209,605,548 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | from utilities.OU_Noise import OU_Noise
from utilities.exploration_strategies.Base_Exploration_Strategy import Base_Exploration_Strategy
class OU_Noise_Exploration(Base_Exploration_Strategy):
"""Ornstein-Uhlenbeck noise process exploration strategy"""
def __init__(self, config):
super().__init__(config... | [
"simon.steinmann91@gmail.com"
] | simon.steinmann91@gmail.com |
57fc4594ee11d7e5abc4ebab162e96d887d12c09 | c2163c653ba589ea610733250230ab4b57ab7d6a | /swhlab/old_init.py | b1b6b208fb9e1ff820fe4aa483d48b8ae84bb718 | [
"MIT"
] | permissive | harshadsbs/SWHLab | 6ff57f816f252da888f5827e9ea677e696e69038 | a86c3c65323cec809a4bd4f81919644927094bf5 | refs/heads/master | 2021-05-20T12:24:55.229806 | 2018-12-14T03:18:38 | 2018-12-14T03:18:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | # start out this way so tests will import the local swhlab module
import sys
import os
sys.path.insert(0,os.path.abspath('../'))
import swhlab
import logging
# if swhlab is installed in 'site-packages' like normal, import it silently.
# if a local (development) module exists, import that one instead.
module_was_found... | [
"swharden@gmail.com"
] | swharden@gmail.com |
dc6b70d598ea551d7488a27cd2837e9be125db4f | 595fb9ddd51d169492fea0d2b5ffac63de476ba7 | /contrib/python/pypodman/lib/action_base.py | ff2922262499ff2588db96cf28e1d46aca4a8548 | [
"Apache-2.0"
] | permissive | roysjosh/libpod | 0dd769a709a56e804f608b1767d03132d80e5a81 | 6372c977ea0e6206d137e734a981ca0bb3435e12 | refs/heads/master | 2020-03-23T05:33:19.865487 | 2018-07-16T08:10:20 | 2018-07-16T13:40:40 | 141,151,106 | 0 | 0 | Apache-2.0 | 2018-07-16T14:35:48 | 2018-07-16T14:35:47 | null | UTF-8 | Python | false | false | 2,549 | py | """Base class for all actions of remote client."""
import abc
from functools import lru_cache
import podman
class AbstractActionBase(abc.ABC):
"""Base class for all actions of remote client."""
@classmethod
@abc.abstractmethod
def subparser(cls, parser):
"""Define parser for this action. Su... | [
"jhonce@redhat.com"
] | jhonce@redhat.com |
1d204a3c76f9d0d495bbf3f272ececcc988af637 | 65a32b8a8a97c126843d2cfe79c43193ac2abc23 | /chapter8/self_container.py | 34f334753393bef72a58dfd393eca9e870c929cb | [] | no_license | zhuyuedlut/advanced_programming | 9af2d6144e247168e492ddfb9af5d4a5667227c4 | a6e0456dd0b216b96829b5c3cef11df706525867 | refs/heads/master | 2023-03-19T09:21:31.234000 | 2020-10-09T13:09:38 | 2020-10-09T13:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | import collections
class A(collections.Iterable):
pass
a = A()
import collections
collections.Sequence()
import bisect
class SortedItems(collections.Sequence):
def __init__(self, initial=None):
self._items = sorted(initial) if initial is not None else []
# Required sequence methods
def _... | [
"root@lyzdeMacBook.local"
] | root@lyzdeMacBook.local |
bb067d365a1659384fbc5d3c60e0065a5a761dde | 41fe5f7cc7cc7dbcad5e74a36866d10caecacf0f | /bots/quote.py | df56190bf4d840ce4687e84aef1afcfea597be6d | [] | no_license | SMFOSS/irc | 5549d64c48f99e0353e8766ca12236996959b223 | 87128ae4332b372c36c05e71d2e9818fe41aec5b | refs/heads/master | 2021-01-16T18:15:56.164220 | 2010-08-22T17:25:31 | 2010-08-22T17:25:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,849 | py | import httplib2
import random
import re
import urllib
from BeautifulSoup import BeautifulSoup
from irc import Dispatcher, IRCBot
class QuoteDispatcher(Dispatcher):
last_message = ''
def fetch_result(self, phrase):
sock = httplib2.Http(timeout=1)
headers, response = sock.request... | [
"coleifer@gmail.com"
] | coleifer@gmail.com |
8a07063b7f9a45b3c847d6367111099cd869d232 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/layout/ternary/_uirevision.py | 099e1957985ca6509c7dfc0535e9c4318b3a8d88 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 423 | py | import _plotly_utils.basevalidators
class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator):
def __init__(
self, plotly_name="uirevision", parent_name="layout.ternary", **kwargs
):
super(UirevisionValidator, self).__init__(
plotly_name=plotly_name,
parent_n... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
2d0d139d7d5fbe635491d8c6d21b9ff922f2b5b6 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/orchardup-fig/allPythonContent.py | 83e39208fd810682026c977767f10169e3f89346 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144,089 | py | __FILENAME__ = colors
from __future__ import unicode_literals
NAMES = [
'grey',
'red',
'green',
'yellow',
'blue',
'magenta',
'cyan',
'white'
]
def get_pairs():
for i, name in enumerate(NAMES):
yield(name, str(30 + i))
yield('intense_' + name, str(30... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
fb7d2d4429bf11cb10cc12275dafbf83b008ef4e | 955f9d3fb34af54de2f046d17bbac11c1474819e | /abc072/b.py | b0fcee1d89878d6ecb5b68044a1443f505fe0cf5 | [] | no_license | shimewtr/AtCoderPracticePython | 5bb4c28119fced2d111bd1810e0e290f25b6a191 | f3c22ec1f7a36a27848070c5c6ca4e1717b04ac6 | refs/heads/master | 2023-01-12T17:28:44.770138 | 2020-11-19T22:50:22 | 2020-11-19T22:50:22 | 204,830,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,256 | py | import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
s = input()
ans = ""
for i in range(len(s)):
if i % 2 == 0:
ans += s[i]
print(ans)
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
... | [
"wawawatataru@gmail.com"
] | wawawatataru@gmail.com |
d3ba03ae33c0b652c222fce8ec73203f04286664 | 6bec880ecd6921209a2e3eeea0710de5a9be3e8d | /test/sample_data/get_observation_histogram_month.py | 1ff52663bae343df3f3b3f0a4d2cca9482674cf9 | [
"MIT"
] | permissive | JWCook/pyinaturalist | e728e29ebeb427c23be2fd205176e8580ec4fbcb | 472f30c3fa5d4c9dd43808ab793f1fa830768722 | refs/heads/main | 2022-06-19T05:28:06.983771 | 2022-05-31T16:53:11 | 2022-05-31T17:02:17 | 243,678,282 | 1 | 0 | MIT | 2022-02-23T02:57:09 | 2020-02-28T04:29:13 | Python | UTF-8 | Python | false | false | 489 | py | from datetime import datetime
{
datetime(2020, 1, 1, 0, 0): 272,
datetime(2020, 2, 1, 0, 0): 253,
datetime(2020, 3, 1, 0, 0): 992,
datetime(2020, 4, 1, 0, 0): 3925,
datetime(2020, 5, 1, 0, 0): 7983,
datetime(2020, 6, 1, 0, 0): 7080,
datetime(2020, 7, 1, 0, 0): 9150,
datetime(2020, 8, 1,... | [
"jordan.cook@pioneer.com"
] | jordan.cook@pioneer.com |
0ab64dd91ea5a99600d07b0084dd15afbd2b3e0c | 02e23da0431623db86c8138bda350a1d526d4185 | /Archivos Python Documentos/Graficas/.history/tierras_20200222160520.py | 53bd7dcf73b905d3531cd254069c2cda0a487bbd | [] | no_license | Jaamunozr/Archivos-python | d9996d3d10ff8429cd1b4c2b396016a3a5482889 | 1f0af9ba08f12ac27e111fcceed49bbcf3b39657 | refs/heads/master | 2022-08-05T14:49:45.178561 | 2022-07-13T13:44:39 | 2022-07-13T13:44:39 | 244,073,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | import os
import pylab as pl
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import numpy as np
os.system("clear")
fig = pl.figure()
axx = Axes3D(fig)
raiz=np.sqrt
ln=np.log
X = np.arange(-2, 12, 1)
Y ... | [
"jaamunozr@gmail.com"
] | jaamunozr@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.