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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9373c0cd05fa128d62a95b63054c5a5f5d3ec8dc | 97426aa614cd9e07d53dd761b55472389a3ebd60 | /python/scripts/marketsim/scheduler.py | e4bb7eb635eb6e453927fdca5173fbb21bee0838 | [] | no_license | antonkolotaev/v2 | e30a12ea710848838d85ee0b6bbd9224e40602d2 | db64cd78577cebb366d0b3d849fdfbe694b97f94 | refs/heads/master | 2020-12-24T14:35:59.486012 | 2012-08-16T08:24:13 | 2012-08-16T08:24:13 | 10,887,220 | 1 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,665 | py | import heapq
class _EventHandler(object):
def __init__(self, handler):
self._handler = handler
self._cancelled = False
def __call__(self):
self._handler()
def cancel(self):
self._cancelled = True
@property
def cancelled(self):
return self._cancelled
... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
90e2fd31f15d3ba613a447de0e0f4bb4e370a085 | c67dc92dd0c4dc7661b9185ae7487abf086d4dc6 | /appraisalproject/settings.py | 4130eeb0d62b3e1e7b6a41d0a38d16ffe9f025bf | [
"MIT"
] | permissive | felkiriinya/Quality-Appraisal | 1f14339eddaad256994501ab2aa5e1a128b16478 | 5b9e114d96816a9d146eca7646330da7d273b6ef | refs/heads/master | 2023-01-22T22:31:30.052977 | 2020-12-09T14:13:41 | 2020-12-09T14:13:41 | 319,227,932 | 2 | 0 | MIT | 2020-12-08T18:46:21 | 2020-12-07T06:43:12 | HTML | UTF-8 | Python | false | false | 4,515 | py | """
Django settings for appraisalproject project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
impo... | [
"felkiriinya@gmail.com"
] | felkiriinya@gmail.com |
dc8e427f0f9960b214b3229a6aad8301ef411940 | e6ab424564e3d651ca2533ad7078dcd9c677d3b1 | /tutorial-reference/Day 23/raw_input.py | 289f09e2cc0cd7a886a1a9068d76b1906f432bd2 | [
"MIT"
] | permissive | fineanmol/30-Days-of-Python | cd274c155d811a0d865dbe790f3d998626e45cae | e4b7b6272febf05ca7fc73652f141ca355e638f8 | refs/heads/master | 2022-10-16T07:07:14.889425 | 2022-10-01T21:47:33 | 2022-10-01T21:47:33 | 151,871,847 | 4 | 1 | MIT | 2022-10-01T21:47:34 | 2018-10-06T18:54:29 | HTML | UTF-8 | Python | false | false | 122 | py |
from getpass import getpass
name = input("What's your name?\n")
pw = getpass("What's your password?\n")
print(name, pw)
| [
"hello@teamcfe.com"
] | hello@teamcfe.com |
f2f8d6a4696af48a294dd7a3760a76943e0fa51a | e3fe234510d19c120d56f9a2876b7d508d306212 | /16paddle/dssm_lm_rank/infer.py | 46aade009862bd1903c9ce6ade3cb0918b75bd60 | [
"Apache-2.0"
] | permissive | KEVINYZY/python-tutorial | 78b348fb2fa2eb1c8c55d016affb6a9534332997 | ae43536908eb8af56c34865f52a6e8644edc4fa3 | refs/heads/master | 2020-03-30T02:11:03.394073 | 2019-12-03T00:52:10 | 2019-12-03T00:52:10 | 150,617,875 | 0 | 0 | Apache-2.0 | 2018-09-27T16:39:29 | 2018-09-27T16:39:28 | null | UTF-8 | Python | false | false | 2,827 | py | # -*- coding: utf-8 -*-
# Author: XuMing <shibing624@126.com>
# Data: 17/10/18
# Brief: 预测
import os
import sys
import paddle.v2 as paddle
import config
import reader
from network import dssm_lm
from utils import logger, load_dict, load_reverse_dict
def infer(model_path, dic_path, infer_path, prediction_output_pa... | [
"507153809@qq.com"
] | 507153809@qq.com |
84af5643294405a7ff2847ab15b144cbe2e0b180 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/leap/54a77e4df04741779d39c341ac4e009d.py | 3f2016251f8855d98df3f0166caff580674caeeb | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 90 | py | def is_leap_year(year):
return bool((not year % 4 and year % 100) or not year % 400)
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
6f115c7096d8ae1c99f1016d22ed8d128fa46b32 | 75d8667735782cd1d0eb4877e52c89da5cd92dde | /nova/tests/unit/virt/vmwareapi/test_vif.py | 5b4fb19c12b3b518d45107c750fd29f41ecc21e7 | [
"Apache-2.0"
] | permissive | bopopescu/nova-token | ffecfd3ec561936b7d9d7e691bc57383cde05436 | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | refs/heads/master | 2022-11-22T09:53:31.073483 | 2016-05-14T02:47:01 | 2016-05-15T22:02:55 | 282,105,621 | 0 | 0 | Apache-2.0 | 2020-07-24T02:42:19 | 2020-07-24T02:42:18 | null | UTF-8 | Python | false | false | 31,662 | py | begin_unit
comment|'# Copyright 2013 Canonical Corp.'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment... | [
"dmg@uvic.ca"
] | dmg@uvic.ca |
8688f0f01915077265c19b58b0e1101afbd6b545 | 6bf7c633f31b2c7c222f160b5526bde5fa734690 | /magenta/models/latent_transfer/common.py | 4f8028201667b166e47fec00669c1c5d5f950408 | [
"Apache-2.0"
] | permissive | dax-1895/magenta | 04fb27f15fdfd7452980858c364dae46bd861c35 | 4393c218147e92d805bbe85fddebd3397c766715 | refs/heads/master | 2020-04-03T22:29:31.388322 | 2018-10-31T03:39:54 | 2018-10-31T03:39:54 | 155,604,293 | 0 | 1 | Apache-2.0 | 2018-10-31T18:18:48 | 2018-10-31T18:18:47 | null | UTF-8 | Python | false | false | 8,387 | py | # Copyright 2018 Google Inc. 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 law or ag... | [
"adarob@google.com"
] | adarob@google.com |
8164c15ce080bba486b0e97395893638e109f140 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.QVA/Sun-ExtA_16/pdf_to_json_test_Latn.QVA_Sun-ExtA_16.py | c9e6eeadc61bf0cfc64ae23cd016123070abc397 | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.QVA/Sun-ExtA_16/udhr_Latn.QVA_Sun-ExtA_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
310ef3f7f502ac9fca2d6fc43f37500bd8a533f7 | 3e4c3b6a6ba770fa18e9f072b1cfb58207f96b30 | /openaddr/compat.py | ec93ded08da55c579f23fc715124f0d6f8c05740 | [
"ISC"
] | permissive | cbmeeks/machine | 931b53657db3bb0b960006ccc6abd67fd41d704a | 39652f0614597e2b56973ded9f61a1a2a208da2e | refs/heads/master | 2020-12-26T00:46:01.112727 | 2016-07-31T03:41:06 | 2016-07-31T03:41:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | import sys
import io
PY2 = (sys.version_info[0] == 2)
if PY2:
import unicodecsv, subprocess32, uritemplate
unicodecsv.field_size_limit(sys.maxsize)
check_output = subprocess32.check_output
CalledProcessError = subprocess32.CalledProcessError
TimeoutExpired = subprocess32.TimeoutExpired
... | [
"mike@teczno.com"
] | mike@teczno.com |
d680686b38adb8e9cdfc5bf3e14016b01354af3a | d1c6de4e0d4aafbe1e7d15a02487494f86bf9b7e | /알고리즘문제/내려가기.py | 1515a653c108bd21017b437c35fc3fc9e25479c1 | [] | no_license | kdm604/TIL | d2ce2122e0b828a595530ac2a405a4661cf60205 | 554bbd8e884f4e7fbebdefbfa22a1a5eee0fa452 | refs/heads/master | 2023-01-11T21:41:57.845549 | 2020-03-24T08:55:10 | 2020-03-24T08:55:10 | 195,938,033 | 0 | 0 | null | 2023-01-05T01:14:37 | 2019-07-09T05:23:00 | Python | UTF-8 | Python | false | false | 903 | py | import sys
N = int(input())
ans_max = [[0 for _ in range(3)]for _ in range(2)]
ans_min = [[0 for _ in range(3)]for _ in range(2)]
for i in range(1, N+1):
arr = list(map(int, sys.stdin.readline().split()))
ans_max[i % 2][0] = max(ans_max[(i -1)%2][0], ans_max[(i-1) %2][1]) + arr[0]
ans_max[i % 2][1] = max... | [
"kdm604@naver.com"
] | kdm604@naver.com |
8f3cc002c398732246f1e2d85326681bd76a8411 | c5a8f6dd4e5ebc43f02923704325620f0787b2f4 | /visual-experiments/rectangular_visualizer.py | 657afe5661a8fb7256dba49930c2c02daf9a6eec | [] | no_license | alex-berman/tforms | 50098501d19de75632426423d02025162bbc94e6 | 046476001609dfa8192c2e373a040d4129975ab6 | refs/heads/master | 2021-01-01T20:00:00.381901 | 2014-03-16T13:44:09 | 2014-03-16T13:44:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | import visualizer
from visualizer import File, run
from vector import DirectionalVector, Vector2d
import math
class Chunk:
def peer_position(self):
return Visualizer.bearing_to_border_position(
self.peer.bearing, self.visualizer.width, self.visualizer.height)
class Segment(visualizer.Segment, ... | [
"alex@nimations.com"
] | alex@nimations.com |
042476a02c8bf29a0201454a2168abe364601a48 | a67d999deafb7d3dac60ad95f66234fe3e79030e | /Python/Advanted/src/chauthoi/myGUItest1.py | 3a9a1c4fe3d7059a5e5b5415c33d5c352348e5ae | [] | no_license | tielse/Example_Python | 1282728a3e38725a48f30a1c49a688b5262be485 | 0bc31f86f16ef98cf3b7ad8a524c27978e47775f | refs/heads/master | 2021-01-02T22:36:58.866922 | 2017-08-04T15:25:17 | 2017-08-04T15:25:17 | 99,355,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | py | #!/usr/bin/env python 2.7
import Tkinter
from Tkinter import *
Widget=Label(None,text='Hello Python')
Widget.pack()
Widget.mainloop() | [
"you@example.com"
] | you@example.com |
7a15d93ffe5208e8afe7da36fd5f11f27c9fd337 | 59e8a041435b70f1dfb2464ccef298c69cf8466e | /058_Length_of_Last_Word/tests.py | 22dd861ca481516c780a5c55fa2454e7d4fdcbd3 | [] | no_license | sallowdish/LeetCode | f0aa6c5be864711c75a3583f320ce967d50c55d3 | d12ca00f30a1784802f42f8e76f782d7b72e95a6 | refs/heads/master | 2021-01-21T04:32:02.351940 | 2016-06-25T00:12:22 | 2016-06-25T00:12:22 | 33,152,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | #!/usr/bin/python3
from unittest import TestCase, main
from sol1 import Solution
def split(n):
l = []
for i in n:
l.append(list(i))
return l
class Test(TestCase):
sol = None
def setUp(self):
self.sol = Solution()
def test0(self):
n = ""
self.a... | [
"zhrud21@gmail.com"
] | zhrud21@gmail.com |
dcf94f3467263d06f0cdc6a6fd45814921ae79cf | 1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5 | /hackerEarth/practice/dataStructures/advancedDataStructures/segmentTrees/researchOnNumbers.py | cd843193b38d663316dbb8d7bec57cc27e97e182 | [
"MIT"
] | permissive | sagarnikam123/learnNPractice | f0da3f8acf653e56c591353ab342765a6831698c | 1b3b0cb2cff2f478006626a4c37a99102acbb628 | refs/heads/master | 2023-02-04T11:21:18.211654 | 2023-01-24T14:47:52 | 2023-01-24T14:47:52 | 61,184,927 | 2 | 1 | MIT | 2022-03-06T11:07:18 | 2016-06-15T06:57:19 | Python | UTF-8 | Python | false | false | 2,349 | py | # Research on Numbers
#######################################################################################################################
#
# Bob is studying in a research institute. He is currently researching on integer sequences. He has already done
# some research on famous fibonacci sequence. Now he is tr... | [
"sagarnikam123@gmail.com"
] | sagarnikam123@gmail.com |
61bdf96e9e66babc6af5fbb50dce07eacb4d3e7e | b804260baffde6044d0da699ebd01eefd5524897 | /tests/loss/test_loss.py | db2c74e8c2f0e1a7ffec9783b81e8edcb95589ba | [
"MIT"
] | permissive | pfnet/pynif3d | d8112e659c3158cd87f4f88ebb77c653c2a0eb7c | da3680cce7e8fc4c194f13a1528cddbad9a18ab0 | refs/heads/main | 2023-07-15T06:27:27.849842 | 2021-08-18T07:15:13 | 2021-08-18T07:15:13 | 397,141,414 | 72 | 5 | MIT | 2021-08-18T07:15:14 | 2021-08-17T06:53:45 | Python | UTF-8 | Python | false | false | 533 | py | from unittest import TestCase
import torch
from pynif3d.loss import eikonal_loss
class TestLoss(TestCase):
def test_eikonal_loss(self):
x = torch.as_tensor(
[
[0.2936261892, -1.0289776325, 0.1445489526],
[-0.2577984035, -0.7820385098, 0.3506951332],
... | [
"mihaimorariu@gmail.com"
] | mihaimorariu@gmail.com |
75f86cfb2964f955c6eb729325f89b994094d90b | 4e27edeea65ccbf56751ce8d2dc77a7133b0acd4 | /manage.py | 67c6cd2430e82991dd181c57036a89165333e071 | [] | no_license | TheFifthMan/whitehat | f1e6faf39c7e56d79ac462de4de847ebd531ecb1 | 944ff548ec18b2c306af63a53baff9940fdbec84 | refs/heads/master | 2020-04-08T18:40:27.924936 | 2018-11-29T06:37:13 | 2018-11-29T06:37:13 | 159,619,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'whitehat.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"John.Wen@ehealth.com"
] | John.Wen@ehealth.com |
1b4972c56701c6145e833481d3454ceb0bfc240a | 62980875b6e08d0099b1662fa3148ae29986fb64 | /BeautifulSoup/6_bs4.py | 898014028b10426db05bb94eb1a9f99b419b19ca | [] | no_license | kogkuemryong/Python_WebScraping- | 9db659c9a11c2677074fcac7f7029ec8541cb4f5 | 51cf7e7e71ce7c90b68f70daa43785671350dfb5 | refs/heads/master | 2022-12-12T17:01:27.142178 | 2020-09-08T16:48:19 | 2020-09-08T16:48:19 | 293,404,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,019 | py | import requests
from bs4 import BeautifulSoup
url ='https://comic.naver.com/webtoon/weekday.nhn'
res = requests.get(url) # url 를 읽음
res.raise_for_status() # 문제가 생기면 프로그램 종료를 시켜줌
soup = BeautifulSoup(res.text, 'lxml') # 텍스트 형태로 가져온 데이터를 lxml를 통해서
# BeautifulSoup 객체로 만든 것이다.
'''
... | [
"rmafud93@naver.com"
] | rmafud93@naver.com |
2520da0ffe6d528d917b6d76d7e86d7767ae8d15 | 8f4488494507da4cb6f15073b8aa2e6f97fabb35 | /test/integration/local/test_tensorflow.py | c85f8f5d446253c4b38bdc7e634c6851379fd0e4 | [
"Apache-2.0"
] | permissive | aws/sagemaker-training-toolkit | 025966a1216aeb78b58f7abab19c6ccb01b0897d | e4a765e699e16c5849bbdfd789edbfc9820fdd77 | refs/heads/master | 2023-08-21T12:33:59.831391 | 2023-08-08T16:46:40 | 2023-08-08T16:46:40 | 212,439,434 | 415 | 110 | Apache-2.0 | 2023-09-07T19:58:23 | 2019-10-02T20:54:32 | Python | UTF-8 | Python | false | false | 1,528 | py | # Copyright 2022 Amazon.com, Inc. or its affiliates. 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. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | [
"noreply@github.com"
] | aws.noreply@github.com |
538432edd63d9503879fed091c2da849b88aeb19 | d7ccb4225f623139995a7039f0981e89bf6365a4 | /.history/mall/settings_20211011171802.py | d6ac69d215da3f819a7996e8f1d92e8ab5d563bf | [] | no_license | tonnymuchui/django-mall | 64fd4abc3725c1bd0a3dcf20b93b490fe9307b37 | 55c083d8433be3c77adc61939cd197902de4ce76 | refs/heads/master | 2023-08-23T04:59:20.418732 | 2021-10-13T15:59:37 | 2021-10-13T15:59:37 | 415,668,388 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,642 | py | """
Django settings for mall project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from ... | [
"tonykanyingah@gmail.com"
] | tonykanyingah@gmail.com |
2ea6a54e6d5e934338510fc52ec20c0e4d55851c | ce6cb09c21470d1981f1b459293d353407c8392e | /docs/jnpr_healthbot_swagger/swagger_client/models/rule_schema_formula1_or.py | 71314684086751f0563ed538b08bac277bdc9834 | [
"Apache-2.0"
] | permissive | minefuto/healthbot-py-client | c4be4c9c3153ef64b37e5344bf84154e93e7b521 | bb81452c974456af44299aebf32a73abeda8a943 | refs/heads/master | 2022-12-04T07:47:04.722993 | 2020-05-13T14:04:07 | 2020-05-13T14:04:07 | 290,145,286 | 0 | 0 | Apache-2.0 | 2020-08-25T07:27:54 | 2020-08-25T07:27:53 | null | UTF-8 | Python | false | false | 5,021 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class RuleSchemaFo... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
4c0d4d4150b62d2151f73bd99f474cc1fcdc41af | e01dde12be71c40065a9d6d2b1451f837c42a41e | /py_trees_ros_viewer/viewer.py | 754f696ee24634ae00238eb788ed5305d7f1e131 | [
"BSD-3-Clause"
] | permissive | neelj09/py_trees_ros_viewer | 29336ce5a7f7592ffb67c0170b42902d16fea5d3 | 1fbd7877fa4bcb53119b3111db26ce87ec8ccebd | refs/heads/master | 2022-04-09T00:48:10.260221 | 2019-08-10T02:54:03 | 2019-08-10T02:54:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# License: BSD
# https://github.com/splintered-reality/py_trees_ros_viewer/raw/devel/LICENSE
#
##############################################################################
# Documentation
##############################################################################
... | [
"d.stonier@gmail.com"
] | d.stonier@gmail.com |
15bd7e332a59184de848af3cc92208ff3dcc0330 | 7d1e9acf94a5e4533d3ef5828b568e89c29519a3 | /11-Message Box/MessageBox.py | a6e635c724e37df0204a8b500c9173b5d056455a | [] | no_license | abuzarrizvi/Python-GUI-s-With-TKinter | c960e3629589d25b72f6720caebb552352e77976 | d5c7843cdd3203294762ae92b6503ecb55d083f1 | refs/heads/master | 2020-07-06T03:17:56.798236 | 2019-08-23T10:56:41 | 2019-08-23T10:56:41 | 202,871,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from tkinter import *
from PIL import ImageTk, Image
from tkinter import messagebox
root = Tk()
root.title('Learn To Code at Github.com')
root.iconbitmap('Martz90-Circle-Camera.ico')
#showinfo, showwarning, showerror, askquestion, askokcancel, askyesno
def popup():
response = messagebox.showerror("This... | [
"noreply@github.com"
] | abuzarrizvi.noreply@github.com |
728c81d8394209a41c9c13be78e81117b4680432 | 250e692078234b0e3ef22ad20ab7168f807d1d5f | /diagonal_matrix.py | 08b03ebc30dd750a07341d1b062de7ee30082f1c | [] | no_license | AnTznimalz/python_prepro | 694338609985971c5e6eaf8ec463c2a5c62dd836 | bdc1e49fa03704bebcf2ab69a4c1600e4cd46a74 | refs/heads/master | 2022-06-22T23:47:28.396580 | 2020-05-07T15:07:56 | 2020-05-07T15:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | """ Diagonal Matrix"""
def mat():
""" Func. mat for calculate matrix """
dim = int(input())
box = list()
a, b = 0, 0
for n in range(dim):
lst = input().split()
box.append(lst)
lst = []
for i in range(dim):
a += int(box[i][i])
b += int(box[i][dim-i-1])
... | [
"thuchpunapivitcholachat@gmail.com"
] | thuchpunapivitcholachat@gmail.com |
fc32cea9c83b3dc402ab49fd5e934718e734f48c | 5b221c2809d82cf13a2b24a56589943315cdb381 | /2018/2018-29.py | e953d3c14398aab0d4b63f6a0705c7cf5486abfc | [] | no_license | Bruce-V/CS-BM25 | c2cd797e9be2fc55af9c8944882fd55109ebee61 | 2401f0ddb24c1712b13c0c96e13565f60d48705d | refs/heads/main | 2023-01-04T23:29:20.906427 | 2020-11-09T08:44:22 | 2020-11-09T08:44:22 | 259,228,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,714 | py | # Copyright 2020 zicheng Zhang(18551701375@163.com)
#
# 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... | [
"1714624946@qq.com"
] | 1714624946@qq.com |
2beb1f616a83a5c13a520bc827faceffac12cedc | 5864e86954a221d52d4fa83a607c71bacf201c5a | /eve/devtools/script/networkdatamonitor.py | ad91d9153d462512bd7775ae06745daf165a0b2d | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\devtools\script\networkdatamonitor.py
import operator
import carbonui.const as uiconst
from carbonui.primitives.container import Container
from eve.client.script.ui.control.buttons import Button
from eve.client.script.ui.control.eve... | [
"le02005@163.com"
] | le02005@163.com |
11297a63b6c776b7bc4dd49d2b1fa0ad4699fc53 | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /models/research/object_detection/models/faster_rcnn_inception_v2_feature_extractor.py | 60e98f2b2ba3619347c6f61da69b7f71c6f59039 | [
"Apache-2.0"
] | permissive | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 12,152 | 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 applica... | [
"gmonkman@mistymountains.biz"
] | gmonkman@mistymountains.biz |
3e3fa24bb242e68bd2148c3982eaedf610738f1e | 8fa938eddcc75eb7dff1f2055c49cb3817a00c63 | /Basic - Part1/ex124.py | a5b7b3c3bf10bb3195275eca92ec3fbbf51c9665 | [] | no_license | jayhebe/w3resource_exercises | f27109759d112b0611574aa70eb378ace447c2a0 | b29aa7c806f6021a8988e83bb9f674522a41380d | refs/heads/master | 2020-05-07T09:23:24.039271 | 2020-01-30T15:05:06 | 2020-01-30T15:05:06 | 180,374,062 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | x = 1
y = 1
z = 1
if x == y == z:
print("All variables have same value!")
| [
"jayhebe1983@sina.com"
] | jayhebe1983@sina.com |
3b5330ea0aa6a4a8d96e5804f4c85d8878f67ed5 | d5440edcfc66496937e98c557ab9c33946234808 | /lifting line theory basic.py | 750e9c9edd03ecebdd25e481ebf6dc7a98950762 | [] | no_license | geoffreynyaga/lifting-line-theory | 4df7fb1baca79b9e3dfb19f5ec6c4ba86fa8fe69 | 352e1379863adf25c5f3e4966e16ae67d38f97ba | refs/heads/master | 2022-08-30T04:18:23.725361 | 2020-02-14T18:55:28 | 2020-02-14T18:55:28 | 99,334,542 | 2 | 0 | null | 2022-06-22T01:09:44 | 2017-08-04T10:58:33 | Python | UTF-8 | Python | false | false | 2,355 | py | # coding: utf-8
__author__ = "Geoffrey Nyaga"
import numpy as np # type: ignore
import math
import matplotlib.pylab as plt # type: ignore
N: int = 9 # (number of segments - 1)
S: float = 24.39 # wing area m^2
AR: float = 7.8 # Aspect ratio
taper: float = 0.45 # Taper ratio
alpha_twist: float = -2.0 # Twist ang... | [
"geoffreynyagak@gmail.com"
] | geoffreynyagak@gmail.com |
ff54639667d43e2a8ef0b80917c081381a5370b5 | 5471de6fd11cc36e8ad9c05ea25d13ae568ad060 | /ClassesAndInstances/Lab Vet.py | 0661e0116a2ab4a17184311b5b09a71a094a3404 | [] | no_license | olgayordanova/PythonOOP | 75bbf9a20c612be7212de7bed59edccef1e02304 | 2d177d17bf50335b17f6246198b1cf85719de1df | refs/heads/main | 2023-03-30T18:59:56.751037 | 2021-04-03T19:48:37 | 2021-04-03T19:48:37 | 333,202,583 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | class Vet:
animals =[]
space =5
def __init__(self, name):
self.name =name
self.animals = []
def register_animal(self,animal_name):
if len(Vet.animals)<Vet.space:
self.animals.append(animal_name)
Vet.animals.append ( animal_name )
... | [
"noreply@github.com"
] | olgayordanova.noreply@github.com |
b8728bf275bb2ca91a768945aac95810d2f474eb | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/gui/shared/gui_items/dossier/achievements/Achieved.py | abf5a6ed09d5c5dab3a8ed8390af41b1ca9fb8d5 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 668 | py | # 2016.11.19 19:52:48 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/gui_items/dossier/achievements/Achieved.py
from abstract import RegularAchievement
from gui.shared.gui_items.dossier.achievements import validators
class Achieved(RegularAchievement):
@classmethod
def checkIsValid... | [
"info@webium.sk"
] | info@webium.sk |
8051de40984a9a2acb43e21095fbc3aae7026551 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_118/ch23_2020_03_11_11_23_45_741474.py | c6ecc8ea4e87cf6cff5cef2378d5c6e336252e92 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | def velocidade(c):
v=(c-80)*5
return v
x = float(input('Qual a velocidade? '))
y=velocidade(x)
if y == 0:
print('Não foi multado')
else:
print ('Foi multado em R$ '' {0:.2f}'.format (y)) | [
"you@example.com"
] | you@example.com |
b76eebcce6d333ab9eeb6a635d645bcff821d353 | cd4bbecc3f713b0c25508d0c5674d9e103db5df4 | /toontown/estate/FlowerCollection.py | ae519a6213959a49508db54bc4af3e2794d78be4 | [] | no_license | peppythegod/ToontownOnline | dce0351cfa1ad8c476e035aa3947fdf53de916a6 | 2e5a106f3027714d301f284721382cb956cd87a0 | refs/heads/master | 2020-04-20T05:05:22.934339 | 2020-01-02T18:05:28 | 2020-01-02T18:05:28 | 168,646,608 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,443 | py | import GardenGlobals
from direct.directnotify import DirectNotifyGlobal
import FlowerBase
class FlowerCollection:
notify = DirectNotifyGlobal.directNotify.newCategory('FlowerCollection')
def __init__(self):
self.flowerlist = []
def __len__(self):
return len(self.flowerlist)
def getF... | [
"47166977+peppythegod@users.noreply.github.com"
] | 47166977+peppythegod@users.noreply.github.com |
cc462bc85d0d716ae2e44775a9e09ff96c2e6614 | d9f52125601ec26f79202f0e912891b31b60ffc4 | /오전반/30-days-of-code/Day_06/Day_06_YNY.py | 463f620727b012c7231ca35c7a30dd8078ae48fe | [] | no_license | YoungGaLee/2020_Python_coding-study | 5a4f36a39021c89ac773a3a7878c44bf8b0b811f | b876aabc747709afa21035c3afa7e3f7ee01b26a | refs/heads/master | 2022-12-12T13:34:44.729245 | 2020-09-07T04:07:48 | 2020-09-07T04:07:48 | 280,745,587 | 4 | 4 | null | 2020-07-22T03:27:22 | 2020-07-18T21:51:40 | Python | UTF-8 | Python | false | false | 268 | py | n=int(input())
q_odd=[]
q_even=[]
for i in range (n):
q=str(input())
for j in range(len(q)):
if j%2==0:
q_odd.append(q[j])
if j%2==1:
q_even.append(q[j])
print("".join(q_odd) ,"".join(q_even))
q_odd,q_even=[],[]
| [
"noreply@github.com"
] | YoungGaLee.noreply@github.com |
2aacf7a42a5e5ba680eac760fa60e5e5c13abc8f | 3d69b7fe8fa95fcd6dbab25885f2e3e42bc891d6 | /src/nlp/classification/tf1/bert/run_squad.py | 37118c6db8065cbadf118ecc3b0a13473347453d | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | wu-uw/OpenCompetition | ac652d066f667dc2b3061947af5ea0425643a1b5 | 9aa9d7a50ada1deb653d295dd8a7fe46321b9094 | refs/heads/master | 2021-01-03T04:59:28.987099 | 2020-03-02T07:49:11 | 2020-03-02T07:49:11 | 239,932,371 | 0 | 0 | Apache-2.0 | 2020-03-02T07:49:12 | 2020-02-12T05:12:02 | Python | UTF-8 | Python | false | false | 51,567 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | [
"ran.wang.math@gmail.com"
] | ran.wang.math@gmail.com |
81a8f7309966861e6a73d3cea111f8f0f441759e | 153d5ff918a33afb1e73fefab9e774672cf4f129 | /auth_demo_stripe/wsgi.py | 06be555707e70f63105bf12ae7bbb1f7f8d691c1 | [] | no_license | meganduffy/auth_demo_stripe | a67700e406fab62091ab52bbb72b0eede89c1f72 | 74c6e1d2af19221d78c4eb813513e5f1d36c3abe | refs/heads/master | 2021-01-17T10:01:22.309264 | 2017-03-06T11:44:39 | 2017-03-06T11:44:39 | 84,001,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | """
WSGI config for auth_demo_stripe project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJ... | [
"meganemilyduffy@gmail.com"
] | meganemilyduffy@gmail.com |
26c1bf3393e74fe359f62019bcd01a096dc2a25a | f662aa3ce7896ca0283cae38df8ef824c1b80c9a | /examples/larson_hue.py | e59f5ae5199f37f0ab3c97b555d030f940ee0d49 | [
"MIT"
] | permissive | pimoroni/plasma | bd7ddebbc60ae7cc9c2561408b52fc46bf810672 | 7857c44255285aac061a9064dd033fd63bbbda29 | refs/heads/master | 2023-02-10T13:27:17.565867 | 2023-01-30T17:27:28 | 2023-01-30T17:27:28 | 155,544,928 | 12 | 9 | MIT | 2021-11-06T04:14:19 | 2018-10-31T11:17:40 | Python | UTF-8 | Python | false | false | 1,548 | py | #!/usr/bin/env python3
import math
import time
import colorsys
from plasma import auto
NUM_PIXELS = 10 * 4
FALLOFF = 1.9
SCAN_SPEED = 4
plasma = auto(default=f"GPIO:14:15:pixel_count={NUM_PIXELS}")
if plasma.get_pixel_count() == 1:
raise RuntimeError("Uh, you can't larson scan *one* pixel!?")
plasma.set_clea... | [
"phil@gadgetoid.com"
] | phil@gadgetoid.com |
9d14d6702c380b23bdbc1f209bb5f8a3e6a6beb7 | 46bab53f41324fa880626d80c7a175e11ec30f5b | /sinar/representatives/setuphandlers.py | f322b7a6cba088432f71f03cc810a8c9149343b1 | [] | no_license | joemariedimzon/sinar.representatives | 8d21b5447b65f55fbde809c74dc74be6bc0bfdf7 | 11d63647a1d82c739a6d4312363392f8a6ca79ed | refs/heads/master | 2021-01-18T05:00:12.128279 | 2015-07-07T07:51:19 | 2015-07-07T07:51:19 | 38,667,596 | 0 | 0 | null | 2015-07-07T06:07:04 | 2015-07-07T06:07:03 | null | UTF-8 | Python | false | false | 384 | py | from collective.grok import gs
from sinar.representatives import MessageFactory as _
@gs.importstep(
name=u'sinar.representatives',
title=_('sinar.representatives import handler'),
description=_(''))
def setupVarious(context):
if context.readDataFile('sinar.representatives.marker.txt') is None:
... | [
"khairil.yusof@gmail.com"
] | khairil.yusof@gmail.com |
a52afad79d275173735bfbc72a33cf1ba2a7a17e | a217801fdf840d97785f06a1e2381d6ed62d7852 | /volume/drivers/netapp/dataontap/nfs_base.py | 1e7c08ae0f1bae744bd926cd2f9e9962e8f06264 | [] | no_license | TonyChengTW/Cinder_Extend | fb05cdda9d925d1c8344595a19472125959e4830 | 5e20383660cf5c0340aa8fa3cf387bb8b59efc4b | refs/heads/master | 2020-06-18T09:54:06.834743 | 2016-11-30T03:01:16 | 2016-11-30T03:01:16 | 75,145,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,631 | py | # Copyright (c) 2012 NetApp, Inc. All rights reserved.
# Copyright (c) 2014 Ben Swartzlander. All rights reserved.
# Copyright (c) 2014 Navneet Singh. All rights reserved.
# Copyright (c) 2014 Clinton Knight. All rights reserved.
# Copyright (c) 2014 Alex Meade. All rights reserved.
# Copyright (c) 2014 Bob Callaw... | [
"tony.pig@gmail.com"
] | tony.pig@gmail.com |
2bf3f597e8025c8b8805d3462d370391acaf8535 | fd97689f062e6d90837ea27b9a5e3de87bcd1e92 | /Cliente/MET.py | 1037d266937331ca50ced2198eb1c3abeead74d4 | [] | no_license | Edresson/MET | 9f7b8a43bdea29ee844d0c98a20f0aef4afbcdd2 | 5945116d0d52fdf8f892a5f266bf6b51afb529eb | refs/heads/master | 2023-08-31T10:18:35.942324 | 2019-10-29T12:17:15 | 2019-10-29T12:17:15 | 93,848,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75,202 | py | # -*- coding: utf-8 -*-
import pygame
import sys
import os
#from qtpy import QtCore, QtGui
from PyQt5 import QtCore, QtGui, QtWidgets,QtTest
import time
from matplotlib.figure import Figure
#from qtpy import QtTest
from threading import Thread
#from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as Fig... | [
"edresson1@gmail.com"
] | edresson1@gmail.com |
ccc95a8679b749bc527794939994aee82257f6dd | 1d182c8cf1ce19019e0b1cba4a16ee1a2a49751e | /data/base.py | d4e7c2318658561292e5f341ea1513223aa70af8 | [
"MIT"
] | permissive | zxt881108/pytorch-cv | e30ac8638a8819b637c6bbef717f733264229126 | 6f2d1760f12c9a56a3e7b19ba74bc41451ea284c | refs/heads/master | 2020-06-18T18:16:09.741626 | 2019-04-29T14:11:06 | 2019-04-29T14:11:06 | 196,396,348 | 5 | 0 | null | 2019-07-11T13:06:29 | 2019-07-11T13:06:28 | null | UTF-8 | Python | false | false | 4,270 | py | """Base dataset methods."""
import os
from torch.utils import data
class ClassProperty(object):
"""Readonly @ClassProperty descriptor for internal usage."""
def __init__(self, fget):
self.fget = fget
def __get__(self, owner_self, owner_cls):
return self.fget(owner_cls)
class SimpleData... | [
"tinyshine@yeah.net"
] | tinyshine@yeah.net |
96740a5818f496c48cced1e2c40379baf0a7e573 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /native_client/pnacl/driver/pnacl-driver.py | 2ac806f22b80cbb2246dd980fe3d41b59f3c1040 | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 29,863 | py | #!/usr/bin/python
# Copyright (c) 2012 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
import subprocess
from driver_tools import AddHostBinarySearchPath, DefaultOutputName, \
DefaultPCHOutputName, Driv... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
6235ff1283a1cd1df9f2920ac2d4acc0b4fda5f2 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_tubercles.py | 1fd9350940d02997c44f6017604e905edf183a0b | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py |
#calss header
class _TUBERCLES():
def __init__(self,):
self.name = "TUBERCLES"
self.definitions = tubercle
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['tubercle']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d93f1eac9a51b554e79f2210ef4ec9efb9dc75e3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02785/s616461833.py | e25ba5505a0fe199b73bcb1668bb380fc510363a | [] | 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 | 100 | py | n, k = map(int, input().split())
h = list(map(int, input().split()))
print(sum(sorted(h)[::-1][k:])) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
23259865da4b2ba2241e13dc4a003730ecd8244e | f483545d7765c25d1b315027726dbd74bc77b98a | /myproject/helloflask/__init__.py | 3c841b6144c426d612c3be2276bab54c47abc33d | [] | no_license | niceman5/pythonProject | e51b44a50776100a63443d7da850ba4b8b00f5eb | 3589fd200b56f68b856d2b4d2031c2a1135168a0 | refs/heads/master | 2023-07-10T16:12:57.756944 | 2023-06-27T08:13:54 | 2023-06-27T08:13:54 | 135,047,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | from flask import Flask, g, request, Response, make_response
from flask import session, render_template, Markup, url_for
from datetime import date, datetime, timedelta
import os
from helloflask.init_db import init_database, db_session
app = Flask(__name__)
import helloflask.views
import helloflask.tests
import hellofl... | [
"niceman555@gmail.com"
] | niceman555@gmail.com |
7e0e11a25de222a5998cf039e5d07b16e1e5ee3d | 0cfb5831a748ebd46e438e3ad7e7a09c1d196499 | /com/chapter_02/section_03/task_2.3.1_string.py | 0ced5f96b6c94cd49087d941d8d2db0b958d7a97 | [] | no_license | StevenGeGe/pythonFromIntroductionToPractice01 | 7cfe8cdb4bc5c0ddbe25b44976231d72d9e10108 | 9d2ba499056b30ded14180e6c4719ee48edd9772 | refs/heads/master | 2023-02-15T04:08:59.878711 | 2020-12-28T13:27:55 | 2020-12-28T13:27:55 | 310,980,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2020/11/8 14:44
# @Author : Yong
# @Email : Yong_GJ@163.com
# @File : task_2.3.1_string.py
# @Software: PyCharm
# title() : 以首字母大写的方式显示每个单词,即将每个单词的首字母全部大写或者全部小写。
# 更改字符串的小写
name_big = "ada love"
print(name_big.title()) # 输出: Ada Love
# 更改字符串的大写
name_sm... | [
"Yong_GJ@163.com"
] | Yong_GJ@163.com |
4592909cbecdc99a76075adfdb88ebecd628f893 | e247d9261676f257752c0c6beac161954137a81c | /src/0670.maximum-swap/maximum-swap.py | a768dba246b1ee138757c7df172f980aba66c1ea | [
"MIT"
] | permissive | henrymorgen/Just-Code | 8fbbd8288b485372a44e10b0078b5edb8af61a3b | fa03ebb89edd8f2292de7c0644dbab88dc1d924c | refs/heads/master | 2022-10-19T05:59:53.134092 | 2020-06-10T02:26:43 | 2020-06-10T02:26:43 | 273,656,532 | 1 | 2 | MIT | 2020-06-20T07:02:38 | 2020-06-20T07:02:38 | null | UTF-8 | Python | false | false | 447 | py | class Solution:
def maximumSwap(self, num: int) -> int:
num = list(str(num))
max_idx = len(num) - 1
xi = yi = 0
for i in range(len(num) - 1, -1, -1):
if num[i] > num[max_idx]:
max_idx = i
elif num[i] < num[max_idx]:
... | [
"yaxe522@163.com"
] | yaxe522@163.com |
c288be163fc503676e07dbc33ab1ccc5193348d6 | f28591fab50d9b7a539c66b5a81fc91d1bc2ce64 | /py3/def/uint32_rotateleft.py | 3d8529dece0a6541a402dce9cfeefd84e5370f9e | [] | no_license | tnzw/tnzw.github.io | b8a5fe1f8479736bbf2b3594d511a1282939a3b3 | 6d95968db793cebcfa77cb49eecd987f821350db | refs/heads/master | 2023-04-21T14:22:49.849859 | 2023-03-31T15:55:01 | 2023-03-31T15:55:01 | 176,712,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # uint32_rotateleft.py Version 1.0.0
# Copyright (c) 2020 Tristan Cavelier <t.cavelier@free.fr>
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Ve... | [
"tzw56702@outlook.com"
] | tzw56702@outlook.com |
4c13c1b16129e4ea923b3a8845fa0d873f5515cb | 471c56d189c21733371fb60f3d4a13e69b6c8c0d | /plot_comp_prediction_clstm.py | ffb3a6bdfb0b40079d1f116578e2cd5e96cf6b3f | [] | no_license | inoue0406/svg | 2b3d50e17526d27b37e352a535a8468b23d5773b | 6a12e052ca9d9a54eaae1657e236259b00aabdc9 | refs/heads/master | 2020-08-13T12:25:41.729998 | 2019-11-03T06:31:06 | 2019-11-03T06:31:06 | 214,967,485 | 0 | 0 | null | 2019-10-14T06:43:43 | 2019-10-14T06:43:43 | null | UTF-8 | Python | false | false | 8,294 | py | #
# Plot Predicted Rainfall Data
# for non-probabilistic clstm model
#
import torch
import numpy as np
import torch.utils.data as data
from torch.autograd import Variable
from torch.utils.data import DataLoader
import argparse
import pandas as pd
import h5py
import os
import sys
import random
import itertools
import... | [
"inoue0406@gmail.com"
] | inoue0406@gmail.com |
5cbbcad90b7a18247ef4129e11896b12752543ab | ec827bd5df431c9400946e8d0593448814b5534b | /venv/bin/ipython | 498f13bc79c779676e375d1d51d86e95af3fa922 | [] | no_license | grantnicholas/pytone | 7acd70878de8090d06d7a2911a67b3dbb3b64256 | b89c688cc88588a3758fff288bc9b1364534b42e | refs/heads/master | 2021-01-23T06:19:47.203418 | 2014-09-21T21:52:27 | 2014-09-21T21:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | #!/home/grant/Desktop/pytone/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from IPython import start_ipython
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(start_ipython())
| [
"grantnicholas2015@u.northwestern.edu"
] | grantnicholas2015@u.northwestern.edu | |
56b5cf1eaba651687a7c590fa1649daae00ec525 | 1b0755fafd5993c8fe5c847d0f3b250f0705cc87 | /perf/__init__.py | ccef7a523ee945da1eb514e9d7dade75768eb8dd | [
"MIT"
] | permissive | pombredanne/perf | 65b722b2822daf598798da40917abdc608708ec3 | da5f2259815c39569957f584a7e1e57cfdbbb927 | refs/heads/master | 2021-04-29T11:31:23.533547 | 2016-12-16T14:50:02 | 2016-12-16T14:50:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | from __future__ import division, print_function, absolute_import
__version__ = '0.9.2'
# Clocks
try:
# Python 3.3+ (PEP 418)
from time import monotonic as monotonic_clock, perf_counter
except ImportError:
import sys
import time
monotonic_clock = time.time
if sys.platform == "win32":
p... | [
"vstinner@redhat.com"
] | vstinner@redhat.com |
18038f0af6c237d5b9db5678328e4d466f172dc2 | 57fec0f5928beaaeb2dc66004267204e77bf05a7 | /scripts/05-gmaps-test.py | ca95867cc5fec1d0fc87836f9afd89caf7c679cc | [] | no_license | fgolemo/neo-m8p-python | a26d382cd0a8d90bd8eca4a6a2c13a51bc1a08b9 | f9af936cdc804b24a76b697df749b0aca0325bed | refs/heads/master | 2020-06-21T09:55:13.280892 | 2019-07-25T17:36:07 | 2019-07-25T17:36:07 | 197,414,904 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | import cv2
from neom8p.gmaps import get_gmap
map = get_gmap(45.530807,-73.613293, 19)
cv2.imshow("map", map)
cv2.waitKey(1)
print ("yo") | [
"fgolemo@gmail.com"
] | fgolemo@gmail.com |
41ebec25755d59ff6b7c39a02ee7b633ecb9eb93 | 24223ef61937be40f0ea23db279a93b75a0b7a0f | /pygogo/utils.py | e1c94efb0cea6c5c6bfdab9424b8a04a82d3f199 | [
"MIT"
] | permissive | liutaihua/pygogo | cfd13a036bcbdf7767fa05e31ab2161be9c6a99b | 7b7a99fdf28cef3185cf7f3f8f0cad8b8d5691b2 | refs/heads/master | 2021-01-18T01:48:15.294501 | 2016-01-01T10:58:27 | 2016-01-01T10:58:27 | 48,997,690 | 1 | 0 | null | 2016-01-04T13:08:29 | 2016-01-04T13:08:29 | null | UTF-8 | Python | false | false | 8,266 | py | # -*- coding: utf-8 -*-
# vim: sw=4:ts=4:expandtab
"""
pygogo.utils
~~~~~~~~~~~~
Misc classes and functions that don't warrant their own module
Examples:
basic usage::
>>> CustomEncoder().encode(range(5))
'[0, 1, 2, 3, 4]'
"""
from __future__ import (
absolute_import, division, print_funct... | [
"reubano@gmail.com"
] | reubano@gmail.com |
a47f8034e2370aec414aa1e5b290f1bff3f65fe2 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2700486_0/Python/jbaek/codejam3.py | 66cc08fb16dc343fe03e3fc66bf66e11429e006d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,392 | py | from math import *
from itertools import *
import os
from decimal import *
ALLGRIDS = []
def main():
global ALLGRIDS
f = open("/home/jackie/Documents/Codejam/in")
lines = f.readlines()
cases = int(lines.pop(0))
for i in range(cases):
ALLGRIDS = []
print "Case #%d:" % (i+1),
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
ee9a241f9d288ae78366ae06757b0dee588ce874 | 5acc77c4d594c1750a9b7477499ee25b4c307bca | /ehpi_action_recognition/train_ehpi.py | 3c8f3b90123e199bd9a2df7439bbf06c510462ca | [
"MIT"
] | permissive | noboevbo/ehpi_action_recognition | bc15a3c260c79b85a82844a2779c9b1ec9cf42fd | 3b77eeb5103f0f11c8d4be993ec79dddad7e661c | refs/heads/master | 2021-12-29T05:24:31.891044 | 2021-12-19T16:23:36 | 2021-12-19T16:23:36 | 180,351,212 | 113 | 23 | null | 2019-04-23T11:24:27 | 2019-04-09T11:22:45 | Python | UTF-8 | Python | false | false | 3,006 | py | import os
import random
from typing import List
import torch
from ehpi_action_recognition.config import ehpi_dataset_path
from nobos_commons.data_structures.constants.dataset_part import DatasetPart
from nobos_commons.data_structures.dimension import ImageSize
from nobos_torch_lib.configs.training_configs.training_con... | [
"Dennis.Ludl@reutlingen-university.de"
] | Dennis.Ludl@reutlingen-university.de |
49df46b47998c18b9a1e1cd63e336461b0b668e5 | 5390d79dad71ad0d9ff9d0777435dcaf4aad16b3 | /chapter_05/toppings5.py | bb3053276c058e6ce16e156ef1659461aab3c552 | [] | no_license | JasperMi/python_learning | 19770d79cce900d968cec76dac11e45a3df9c34c | 8111d0d12e4608484864dddb597522c6c60b54e8 | refs/heads/master | 2020-11-26T08:57:02.983869 | 2020-03-11T10:14:55 | 2020-03-11T10:14:55 | 218,935,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | requested_toppings = []
if requested_toppings:
for requested_topping in requested_toppings:
print("Adding " + requested_topping + ".")
print("\nFinished making your pizza!")
else:
print("Are you sure you want a plain pizza?")
| [
"darmi19@163.com"
] | darmi19@163.com |
193cb91ce7cabc2daeb6898364f78bd9d496cf4b | 9fc6604ae98e1ae91c490e8201364fdee1b4222a | /eg_delivery_return_disclaimer_msg/wizards/msg_by_unifonic.py | 1e5e3eb6e45160c46c0dadf6f1a4942c11dc796a | [] | no_license | nabiforks/baytonia | b65e6a7e1c7f52a7243e82f5fbcc62ae4cbe93c4 | 58cb304d105bb7332f0a6ab685015f070988ba56 | refs/heads/main | 2023-03-23T21:02:57.862331 | 2021-01-04T03:40:58 | 2021-01-04T03:40:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | from odoo import models, fields, api
from odoo.exceptions import Warning
class MsgByUnifonic(models.TransientModel):
_name = "msg.by.unifonic"
number = fields.Char(string="Number")
message = fields.Text(string="Message")
@api.model
def default_get(self, fields_list):
res = super(MsgByUni... | [
"ash@odoxsofthub.com"
] | ash@odoxsofthub.com |
7f733621867abbd79a0a8d2784f7d57814b625e5 | ebd24e400986c57b4bb1b9578ebd8807a6db62e8 | /InstaGrade-FormBuilder/xlsxwriter/test/comparison/test_chart_errorbars05.py | 002e0d8055c1d99983bc226195274cbf4b92c183 | [] | no_license | nate-parrott/ig | 6abed952bf32119a536a524422037ede9b431926 | 6e0b6ac0fb4b59846680567150ce69a620e7f15d | refs/heads/master | 2021-01-12T10:15:15.825004 | 2016-12-13T21:23:17 | 2016-12-13T21:23:17 | 76,399,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"nateparro2t@gmail.com"
] | nateparro2t@gmail.com |
5ad138fa284a69c9c985ba8a2084ea57d9d8d176 | 0071aad01ab5e91b7d32567470bd729c23bac656 | /g2048.py | d75f388736b07dd7f87d31f67252e7ab02cbf060 | [] | no_license | Hakuyume/2048-rl | 19c29e24492bd1efaddbbe0dad28474752b2d97f | ff0593582b293bcf1c21bd2e26701da6d24c6647 | refs/heads/master | 2021-01-22T18:33:36.057004 | 2017-08-26T06:47:37 | 2017-08-26T06:47:37 | 100,769,933 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,058 | py | import numpy as np
import random
class G2048(object):
def __init__(self, size=4):
self.size = size
self.board = np.empty((size, size), dtype=np.uint8)
def reset(self):
self.score = 0
self.board[:] = 0
for _ in range(2):
self._add()
@property
def m... | [
"Hakuyume@users.noreply.github.com"
] | Hakuyume@users.noreply.github.com |
8ee0c7c66379fbead56732ab779d72356e965329 | 925f199438b3af508cf083ce094cb6a5f208fed8 | /src/lt_847.py | ed54216792f6792912f298fe087f8840d98ee563 | [] | no_license | oxhead/CodingYourWay | b1b50236cdfb06669c123fd9202ce3d87304a3bf | e60ba45fe2f2e5e3b3abfecec3db76f5ce1fde59 | refs/heads/master | 2020-08-06T16:45:21.054650 | 2018-06-26T03:53:38 | 2018-06-26T03:53:38 | 30,577,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,323 | py | """
https://leetcode.com/contest/weekly-contest-87/problems/shortest-path-visiting-all-nodes/
"""
"""
An undirected, connected graph of N nodes (labeled 0, 1, 2, ..., N-1) is given as graph.
graph.length = N, and j != i is in the list graph[i] exactly once, if and only if nodes i and j are connected.
Return the leng... | [
"kmscout@gmail.com"
] | kmscout@gmail.com |
a2d189784bb2a282ec8d7cdf005a0c8612dceb9b | bd08d0532f20b7285b437c9bf620de1bbcd5b9ea | /aalh_iit_buildings_006/populate-iso8601-amerdate.py | 08c1fdd9ca6bdcee638e2292f3d12d555f36c6ff | [
"Unlicense"
] | permissive | johndewees/iitmigration | a9e8a31ba6ceb541ce12c22fd612596cc243dbca | 4dadfbecda719d6e7d60af076a231aedec3c862f | refs/heads/main | 2023-03-14T17:06:58.777683 | 2021-03-27T20:44:58 | 2021-03-27T20:44:58 | 320,086,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,719 | py | from openpyxl import load_workbook
import re
filename = 'aalh_iit_buildings_006.xlsx'
wb = load_workbook(filename)
ws = wb['Metadata Template']
minimumcol = 15
maximumcol = 15
minimumrow = 7
maximumrow = 515
iterationrow = 7
targetcol = 15
isostandardcol = 16
for row in ws.iter_rows(min_row=minimumr... | [
"noreply@github.com"
] | johndewees.noreply@github.com |
0c2f558ec0494841857978e64f4fd0e8c8937538 | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/hr_recruitment/__init__.py | 2283b78b5f3c81ef2cc3a1d49ecbbb3c7b0b0f21 | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | # -*- encoding: utf-8 -*-
# Part of Harpiya. See LICENSE file for full copyright and licensing details.
from . import models
| [
"yasir@harpiya.com"
] | yasir@harpiya.com |
5d46d3160485153a72aeaa43b0d98d716859314c | 5cdd13489c995d825985f8e76fb9641d83675972 | /PlotConfiguration/ISR/2016/fake_estimation/muon/LLSS/cuts.py | 313c13d35f546643f1eed5f28fcb69008150737b | [] | no_license | CMSSNU/MultiUniv | d506cea55b1f57e0694309e04b9584434c859917 | cb72ac8cba215598a0f09a46725123e071f9137f | refs/heads/master | 2020-04-20T06:23:13.425043 | 2020-03-25T08:11:31 | 2020-03-25T08:11:31 | 168,682,069 | 0 | 4 | null | 2020-02-13T10:14:48 | 2019-02-01T10:35:47 | Python | UTF-8 | Python | false | false | 509 | py | from CommonPyTools.python.CommonTools import *
SKFlat_WD = os.getenv('SKFlat_WD')
sys.path.insert(0,SKFlat_WD+'/CommonTools/include')
from Definitions import *
supercut = '1==1'
# for fake estimation
# LL same sign
cuts['detector_level'] = 'is_dimu_tri_passed == 1 && evt_tag_dimuon_rec_Fake == 1 && evt_tag_dielectro... | [
"jhkim@cern.ch"
] | jhkim@cern.ch |
f9c2f40f505b378f8301758253f7362e714120e9 | 4ff5ca8f95e6014fa76323a69f3fbcb91ae8db1f | /usr/lib/python3.8/cgi.py | e41e56e0987fdb28510766b99564fb42e1ee50f8 | [
"Python-2.0"
] | permissive | Nasera5222/git-sdk-32 | ad1ccd631958d1cdbc6f6c9d06793342d5c566ce | bcff70f916ec1f028f79036d5b913a7279fea0e5 | refs/heads/main | 2023-06-01T09:05:05.990441 | 2021-06-20T03:07:00 | 2021-06-20T03:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,548 | py | #!/usr/bin/python
# NOTE: the above "/usr/local/bin/python" is NOT a mistake. It is
# intentionally NOT "/usr/bin/env python". On many systems
# (e.g. Solaris), /usr/local/bin is not in $PATH as passed to CGI
# scripts, and /usr/local/bin is the default directory where Python is
# installed, so /usr/bin/env would be... | [
"ci@git-for-windows.build"
] | ci@git-for-windows.build |
a7806cbd020f9a30ef0b3337e9f90d839d99a427 | da92caf06447ec7e244dfa11e71b551a4dab7d14 | /src/plugins/evoked_average.py | 21e26af5a91a55b09c07c45812ed17bb1e6ac9ab | [
"MIT"
] | permissive | Frikster/Mesoscale-Brain-Explorer | 28298adbcb49dc399f85fe4db1c3dc1263468677 | 269d8f18162e2b9dca4619561e73a6beb8ba810c | refs/heads/master | 2020-04-04T22:17:29.714298 | 2017-11-20T16:24:19 | 2017-11-20T16:24:19 | 61,849,037 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 4,036 | py | #!/usr/bin/env python3
import os
import numpy as np
import psutil
import qtutil
from PyQt4.QtGui import *
from .util import project_functions as pfs
from .util.plugin import PluginDefault
from .util.plugin import WidgetDefault
class Widget(QWidget, WidgetDefault):
class Labels(WidgetDefault.Labels):
pa... | [
"dirk.haupt@gmail.com"
] | dirk.haupt@gmail.com |
9fa71db652f5ba9a7efaf6487c314e53826c6153 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/tidb/apis/DescribeAvailableDBInfoInternelRequest.py | e771d081b365e9d329da6981125f9fced96c4cf4 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,479 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... | [
"jdcloud-api@jd.com"
] | jdcloud-api@jd.com |
47d31b4ad6d9d3f9ec16487c975797465de7096d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/22/usersdata/112/11794/submittedfiles/av1_2.py | 5ecfae8a8c59536c3785bab3a905bd43d390601a | [] | 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 | 317 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
ant=0
prox=0
meio=B
n=input('Digite o valor de n:')
j=input('Digite o valor de j:')
k=input('Digite o valor de k:')
l=input('Digite o valor de l:')
if n=k and j!=l:
print('verdadeira')
if j=l and n!=k:
print('verdadeira')
else:
('falsa') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
9c125735232060d0d2ab96a7273d2ed807cb7f56 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/detection/YOLOX_ID2833_for_PyTorch/configs/mask2former/mask2former_swin-b-p4-w12-384-in21k_lsj_8x2_50e_coco-panoptic.py | 0141271ed055de4c1cb757b1cf83099916ad3b24 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 941 | py |
# Copyright 2022 Huawei Technologies Co., Ltd
#
# 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 agre... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
870d12fe6a587e970c108504b42268cb10c844f3 | 2ed2dd917afb05d194e87f989d78953b31a5781b | /lesson10/mission08.py | 718005e6a8b1523d4636183b46dc3a00179e899b | [] | no_license | RenegaDe1288/pythonProject | 4058d549db7c37652f77438c31f8b31476497d98 | 801c06f3be22ed63214987b11d6f1b3fd2fe5b44 | refs/heads/master | 2023-08-17T13:20:50.777842 | 2021-10-05T10:51:00 | 2021-10-05T10:51:00 | 393,145,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | lent = int(input('Введите ширину '))
lent_2 = int(input('Введите длину '))
for row in range(lent):
for col in range(lent_2):
if col == lent_2 // 2 and row != lent//2:
print('|', end='')
elif row == lent // 2:
print('-', end='')
elif col == lent_2//2 + 5+ row:
... | [
"D121188@yandex.ru"
] | D121188@yandex.ru |
473d655633f7f72afa53daced7e8c8a4a90c4f51 | a209c2238ff97d781fc6f15d9b3ae6ecf9c15b53 | /utils/preprocess.py | 6b7077e20c2ba3b9257a3940756e4f54e10dd416 | [] | no_license | Arcana-2236/Text-Classification | 1788e05e4c29ce0e7130f38cd16af5ab08fbe6fd | 69047f0ffdfc621e3cb2d59056ac93d69582090b | refs/heads/master | 2022-04-12T08:30:50.089277 | 2020-03-28T06:09:16 | 2020-03-28T06:09:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,234 | py | import os
import re
import zipfile
import pickle
import jieba
import pandas as pd
import numpy as np
from collections import Counter
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
from sklearn.preprocessing import MultiLabelBinarizer
from skl... | [
"435786117@qq.com"
] | 435786117@qq.com |
4cb105211199b388e964f55bb905a04d35572cf9 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/LArCalorimeter/LArTest/LArConditionsTest/share/FixLArElecCalib_fix6_jobOptions.py | 59efd81bb72cab9f075cafd0a9f3b68c0147137b | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,813 | py | ###############################################################
#
# Job options file 1
#
#==============================================================
#use McEventSelector
include( "AthenaCommon/Atlas_Gen.UnixStandardJob.py" )
from AthenaCommon.DetFlags import DetFlags
DetFlags.Calo_setOn()
DetFlags.ID_setOff()
DetF... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
86e96ae863d4f9f1817fcae036de87f3df2a15ec | e694891ff8c9d06df7b7b5def7ba71c1dba03aa8 | /rabbitmq_rabbitpy/test_rabbitmq.py | 23f166795359b1166e1d5e54aa4a636cf2e3c2e1 | [] | no_license | wangyu190810/python-skill | 78f9abb39ebfa01b92ffb2ec96c7ef57c490d68d | 719d082d47a5a82ce4a15c57dd481932a9d8f1ba | refs/heads/master | 2020-04-05T17:43:48.005145 | 2019-02-01T01:45:49 | 2019-02-01T01:45:49 | 41,524,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # -*-coding:utf-8-*-
# email:190810401@qq.com
__author__ = 'wangyu'
<<<<<<< HEAD
=======
import rabbitpy
# with rabbitpy.Connection("amqp://guest:guest@localhost:5672/%2F") as conn:
# with conn.channel() as channel:
# amqp = rabbitpy.AMQP(channel)
#
# for message in amqp.basic_consume('queue-name'... | [
"190810401@qq.com"
] | 190810401@qq.com |
fb9705a0d1b4b5da9c80db0e6507fd386d90b160 | f28a261132fbf98f5ebfd004672af4155dfa1cc5 | /nanodash/service/dataset-description-nano-090.py | b6fd62ced21821aab7733a8570b3d22d64d38b3d | [
"Apache-2.0",
"MIT"
] | permissive | curtislisle/nanomaterial-dashboard | 8704779b7410747092c8fdb9326fb69b9f6b94ff | 06de2e0782f53ce56d6edd0937b14cbd738fc22a | refs/heads/master | 2021-01-21T04:41:16.713855 | 2016-07-08T01:07:17 | 2016-07-08T01:07:17 | 54,521,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | #import bson
import pymongo
import json
from bson import ObjectId
from pymongo import MongoClient
import string
import tangelo
def run(ipaddress):
# Create an empty response object.
response = {}
response['datasource'] = 'remote'
response['file'] = "http://"+str(ipaddress)+":8080/nanodash/service/data... | [
"clisle@knowledgevis.com"
] | clisle@knowledgevis.com |
e173dd44edd47d50ac75298a2927da10f8cb5fc5 | a95236e2dccd588627c6f0a1542f37e26f6899f3 | /Chap04Functions/3-1-1.函数对象.py | a969ddb2ef7cb3670e7c3c086c3b5e4d44527a9f | [
"MIT"
] | permissive | royqh1979/programming_with_python | 43b1cf0ab1b6a54ad165e30991250cf7bf318bd6 | aa0603058f40b5bc7406e92c92134ee34f3b15e2 | refs/heads/master | 2023-06-11T02:11:59.590880 | 2023-05-29T06:39:03 | 2023-05-29T06:39:03 | 166,190,796 | 5 | 4 | MIT | 2023-02-15T23:13:33 | 2019-01-17T08:38:56 | Python | UTF-8 | Python | false | false | 70 | py | def fun1():
print("this is fun1")
print(fun1)
fun1=34
print(fun1) | [
"royqh1979@gmail.com"
] | royqh1979@gmail.com |
bb32c9b355ff5984723a6f55c49c36cdbc32e17c | da280a226bbf15d7243410c0d3930bdca00d0088 | /firsttry/ex41.py | 0ba10ceba34cd4003844fa210c2ed0733881e028 | [] | no_license | c4collins/PyTHWay | 174cae57c73431ce5bfc90a361613c5db5c846d7 | 135b4b908ef2698084ee1b3fb9f1e5550c3c8843 | refs/heads/master | 2021-01-10T18:29:43.998528 | 2012-11-03T22:53:17 | 2012-11-03T22:53:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,767 | py | from sys import exit
from random import randint
def death():
quips = ["You died. You kinda suck at this.", "Your mum would be proud, if she were smarter.", "Such a loser.", "I have a small puppy that's better at this."]
print quips[randint(0, len(quips)-1)]
exit(1)
def princess_lives_here():
pri... | [
"connor.collins@gmail.com"
] | connor.collins@gmail.com |
faa87c8e3f067bcd7755c759e47e022742482bb8 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /wbhjXmdbPSxCSE5hW_0.py | e9536e0fed2a7c9b48f0291977cccbacbce5b686 | [] | 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 | 1,262 | py | """
A magic sigil is a glyph which represents a desire one wishes to manifest in
their lives. There are many ways to create a sigil, but the most common is to
write out a specific desire (e.g. " _I HAVE WONDERFUL FRIENDS WHO LOVE ME_ "),
remove all vowels, remove any duplicate letters (keeping the last occurence),
a... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e70cf9d6e63ff327f4103d60a0c7ba98634ec982 | 4d98abd2553e95856d835519424a60634fc4cdd3 | /CVE-2016-4437 Apache_Shiro_RCE/ShiroScan_1.2.4/moule/plugins/Spring2.py | 68bb19cf574477e3533d5a8f8ec6fe04827cd872 | [] | no_license | ANNS666/my_POC | 0157fa41bdd2d0f264e464b05bf9c75405083e44 | b3a38745609c9407a9bc0427f5dd55e4acfe6d70 | refs/heads/master | 2023-08-10T19:13:15.521562 | 2021-10-10T04:09:58 | 2021-10-10T04:09:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,658 | py | # -*- coding: utf-8 -*-
# By 斯文beast svenbeast.com
import os
import re
import base64
import uuid
import subprocess
import requests
import sys
import threadpool
from Crypto.Cipher import AES
from ..main import Idea
requests.packages.urllib3.disable_warnings()
JAR_FILE = 'moule/ysoserial.jar'
@Idea.plugin_register('C... | [
"m18479685120@163.com"
] | m18479685120@163.com |
b8fecdcd2f6db4c77f8c2dd91e69e1f8869ea920 | ff3da62ab2a336ba286ea320b8bf1eba5b1978ea | /normalization/time_Info/apm.py | e242dc16e93401a0d43eed4f9fa6c779d03c8403 | [] | no_license | llq20133100095/bert_ner_time | 9e17e9de77ff12b4ae5267986f646665066e070c | 9dc3baf5ca8f6d5cc7d4255bcfd913bd695c7b5e | refs/heads/master | 2021-10-28T14:59:17.217552 | 2019-04-24T06:12:22 | 2019-04-24T06:12:22 | 182,626,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/11/24 16:33
# @Author : honeyding
# @File : apm.py
# @Software: PyCharm
import re
class Apm:
apm_pat = re.compile(u'.*?(明早|傍晚|早上|早晨|凌晨|上午|中午|下午|大晚上|晚上|夜里|今晚|明晚|昨晚|前晚|这晚|晚|清晨|午后).*?')
apm_hour_pat = re.compile(u'.*?(明早|傍晚|早上|早晨|凌晨|上午|中午|下午|大晚上... | [
"1182953475@qq.com"
] | 1182953475@qq.com |
6e8da8e397cef33da10c132cc14befac799d08b6 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/pybites/intermediate/030_movie_data_analysis/save1_nopass.py | de9624e5838b09cfbf6dd63a838b4df2ba2feb25 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,495 | py | # _______ c__
# ____ c.. _______ d.., n..
# _______ __
# ____ u__.r.. _______ u..
#
# BASE_URL 'https://bites-data.s3.us-east-2.amazonaws.com/'
# TMP '/tmp'
#
# fname 'movie_metadata.csv'
# remote __.p...j.. B.. f..
# local __.p...j.. T.. f..
# u.. ? ?
#
# MOVIE_DATA local
# MIN_MOVIES 4
# MIN_YEAR 1960
#
# Movie n.. '... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
f6781a69e1b2ae0d198cc5c11ac27d5d185fa49e | c3cc755ae500e87b6d5fa839efaa4d7d0f746d43 | /Part 1/Ch.6 Dictionaries/Nesting/pizza.py | f07401d2bb54c94f78013b95d7f88cd48287e6fd | [] | no_license | AngryGrizzlyBear/PythonCrashCourseRedux | 9393e692cdc8e5e28a66077bbc6c1e674642d209 | 28d48fa16fc238cf0409f6e987a3b4b72e956a92 | refs/heads/master | 2020-03-28T11:04:44.030307 | 2018-10-20T21:06:27 | 2018-10-20T21:06:27 | 148,175,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | # Store information about a pizza being ordered.
pizza = {
'crust': 'thick',
'toppings': ['mushrooms', 'extra cheese'],
}
# Summarized the order
print("You ordered a " + pizza['crust'] + "-crust pizza " +
"with the following toppings:")
for topping in pizza['toppings']:
print("\t" + topping) | [
"evanmlongwood@gmail.com"
] | evanmlongwood@gmail.com |
a381405f3e7de92702f28ddc67b8a4d3d57494cd | 7bd5ca970fbbe4a3ed0c7dadcf43ba8681a737f3 | /aoj/aoj-icpc/300/1315.py | fc47a7e25bc9e18a6c15f3d4e5a4aeac5a025693 | [] | no_license | roiti46/Contest | c0c35478cd80f675965d10b1a371e44084f9b6ee | c4b850d76796c5388d2e0d2234f90dc8acfaadfa | refs/heads/master | 2021-01-17T13:23:30.551754 | 2017-12-10T13:06:42 | 2017-12-10T13:06:42 | 27,001,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | while 1:
n = int(raw_input())
if n == 0: break
exist = set([])
enter = [0]*1000
bless = [0]*1000
for loop in xrange(n):
md,hm,io,p = raw_input().split()
h,m = map(int,hm.split(":"))
t = 60*h+m
p = int(p)
if io == "I":
enter[p] = t
e... | [
"roiti46@gmail.com"
] | roiti46@gmail.com |
f23c206436ec78827ec7cbc0ab57a7c924a38e64 | 70087a0720037639297825a66135b9c985bbf586 | /verif/metric.py | 93c65c9b670eb008b0ef357dbd97079fe6539478 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rvalenzuelar/verif | 1ab854e2433a69378af8a867a1fb6f0efd1a4de0 | 034188cabd3a29136433be2ecb2f6555d3c03da8 | refs/heads/master | 2020-03-30T21:39:27.128496 | 2018-05-13T16:04:38 | 2018-05-13T17:48:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,947 | py | import inspect
import metric_type
import numpy as np
import sys
import scipy.stats
import verif.aggregator
import verif.axis
import verif.interval
import verif.util
def get_all():
"""
Returns a dictionary of all metric classes where the key is the class
name (string) and the value is the class object
"""
... | [
"tnipen@gmail.com"
] | tnipen@gmail.com |
e188217cf5dcdf7b3d1b7887be7a21f67e80e4ab | 544cfadc742536618168fc80a5bd81a35a5f2c99 | /tools/treble/fetcher/fetcher_lib.py | 0ec017318832788f675ab4ad2587b17824faa6f9 | [
"Apache-2.0"
] | permissive | ZYHGOD-1/Aosp11 | 0400619993b559bf4380db2da0addfa9cccd698d | 78a61ca023cbf1a0cecfef8b97df2b274ac3a988 | refs/heads/main | 2023-04-21T20:13:54.629813 | 2021-05-22T05:28:21 | 2021-05-22T05:28:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,512 | py | """Provides helper functions for fetching artifacts."""
import io
import os
import re
import sys
import sysconfig
import time
# This is a workaround to put '/usr/lib/python3.X' ahead of googleapiclient
# Using embedded_launcher won't work since py3-cmd doesn't contain _ssl module.
if sys.version_info.major == 3:
sy... | [
"rick_tan@qq.com"
] | rick_tan@qq.com |
15a60453aa5419b4fa377688c031c2632596a4f9 | 7ce479cac0a14d924159db9c784e3325b8f0bce7 | /schemaorgschemas/Thing/MedicalEntity/MedicalProcedure/__init__.py | cbefd8704afe1d477dfc83e65cb81ce50f18686e | [] | no_license | EvelineAndreea/AGRe | 1f0c27237eb047a60bbcfb8d73e3157035406409 | b952125896a82741f6617c259dd4060954583180 | refs/heads/master | 2020-04-08T16:08:11.517166 | 2018-11-28T07:15:56 | 2018-11-28T07:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,059 | py | # -*- coding: utf-8 -*-
from schemaorgschemas.Thing import potentialActionProp, nameProp, sameAsProp, imageProp, urlProp, mainEntityOfPageProp, additionalTypeProp, alternateNameProp, descriptionProp
from schemaorgschemas.Thing.MedicalEntity import codeProp, relevantSpecialtyProp, studyProp, guidelineProp, recognizingAu... | [
"mihai.nechita95@gmail.com"
] | mihai.nechita95@gmail.com |
222a8516170dbdfd60052c5217c8dbe791724e6b | a6df74bc7c139734bd9ce9f48d51e08fdc7d7efb | /article/migrations/0016_auto_20210412_1456.py | 34b4c21151d60a7d9f4aa95d47c0410f17c749cc | [] | no_license | Erlan1998/python_group_7_homework_68_Erlan_Kurbanaliev | 5a7f210e51f1998e5d52cdeb42538f2786af3f9f | fdc92be2c5187c78fecdc713f58e0e3e9fc62cb1 | refs/heads/master | 2023-05-03T17:01:59.066596 | 2021-05-26T13:28:41 | 2021-05-26T13:28:41 | 368,165,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | # Generated by Django 3.1.6 on 2021-04-12 14:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('article', '0015_auto_20210412_1444'),
]
operations = [
migrations.AlterModelOptions(
name='article',
options={'permissions':... | [
"kurbanalieverlan@gmail.com"
] | kurbanalieverlan@gmail.com |
3f6f9421f822fd2a774361edb18fd8c12c87027d | b58b175263f275e15a1b56bf1b0914db0f35ffc8 | /testcase/testcase_lan.py | 8d4326cbd823f38fc4d2cbf52a1cb50582dc55ed | [] | no_license | zeewii/BHU | aa9ff900a4bb6adb368081509b9f9222479f7742 | 1f3c4f634b44845f7a4f84535ff4904de4efc634 | refs/heads/master | 2021-01-09T21:49:01.534541 | 2015-09-30T09:21:28 | 2015-09-30T09:21:28 | 43,213,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,828 | py | #coding=utf-8
#描述:该模块为测试lan模块
#作者:曾祥卫
import unittest
from selenium import webdriver
import time,os,commands
from selenium.webdriver.common.action_chains import ActionChains
from selenium.common.exceptions import NoSuchElementException
from selenium.common.exceptions import NoAlertPresentException
from login import lo... | [
"zeewii@sina.com"
] | zeewii@sina.com |
5a65c3db8f5241c487aab78f930d7ec197529388 | 5a4d5ee624b375ece06fda1467afe18beb69c14b | /Algorithm/SW_Expert/1-46.py | e2fcfc033cbfedd0121723aaeb2c5ba1ecc91913 | [] | no_license | Knightofcydonia51/TIL | cd10dab949659bc827118ee42b25d926336dce23 | 78d7e8617f4abed9932a557c12e68bd950f8230d | refs/heads/master | 2022-12-26T00:10:06.262200 | 2022-05-26T01:12:32 | 2022-05-26T01:12:32 | 195,938,010 | 0 | 0 | null | 2022-12-16T01:03:09 | 2019-07-09T05:22:49 | Python | UTF-8 | Python | false | false | 218 | py | def score(text):
result=list(map(lambda x: 4 if x=='A' else 3 if x=='B' else 2 if x=='C' else 1 ,text))
return sum(result)
print(score('ADCBBBBCABBCBDACBDCAACDDDCAABABDBCBCBDBDBDDABBAAAAAAADADBDBCBDABADCADC')) | [
"leavingwill@gmail.com"
] | leavingwill@gmail.com |
bd692ef3d3cce53cc175de340df496d1c8586914 | eb518a18d8055400c85d1b2f714fe9d4d654b941 | /compare_segworm/_old/head_tail_manual_switched.py | 6948c7b9e0ebe75f72f883facddf4243954e34e8 | [] | no_license | ver228/single-worm-analysis | c755709354025f629f7c774749394743c7b9a46b | 8d0a442fb93ad25aa30743f6c31f883639524a4d | refs/heads/master | 2021-09-14T11:31:17.761390 | 2018-05-12T23:00:54 | 2018-05-12T23:00:54 | 79,457,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,602 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Feb 11 22:01:59 2016
@author: ajaver
"""
import h5py
import tables
import os
import numpy as np
import matplotlib.pylab as plt
from scipy.io import loadmat
import glob
import os
import pandas as pd
from MWTracker.featuresAnalysis.obtainFeaturesHelper import WormFromTable
fr... | [
"ajaver@MRC-8791.local"
] | ajaver@MRC-8791.local |
c2a6c7801f3547946b38492ef118dd975aae1772 | e6c17803c9f60dbeafa7e866d7e108a3239d799d | /what_the_cluster/GapStat.py | 1f928a08083bccde57f61c9a8b280bc201d89c3b | [] | no_license | idc9/what_the_cluster | e6cf04730e224625a0bce21f7a9730a4984d54bd | 50f024e214cf6f4f4f976ac104d50a0c9a7a6d94 | refs/heads/master | 2020-03-11T17:46:27.297370 | 2018-09-19T21:53:59 | 2018-09-19T21:53:59 | 130,156,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,107 | py | from math import sqrt
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from sklearn.externals import joblib
from scipy.sparse import issparse
from what_the_cluster.gapstat_utils import get_pooled_wcss, estimate_n_clusters
from what_the_cluster.reference_dists import sample_svd_null, sample_unifor... | [
"idc9@cornell.edu"
] | idc9@cornell.edu |
7cc5e26b3b002ea59b7a91392cf6ad2b4d9042bb | 12b5584956797fcb0f48e7971bc074ae13a37489 | /pySpatialTools/release.py | b4439a5b0eb2c44ff32c36629289ad36af5e241a | [
"MIT"
] | permissive | tgquintela/pySpatialTools | a0ef5b032310aa1c140e805f4ee8c4a40fd2d10e | e028008f9750521bf7d311f7cd3323c88d621ea4 | refs/heads/master | 2020-05-21T22:09:08.858084 | 2017-02-10T11:18:41 | 2017-02-10T11:18:41 | 39,067,763 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,919 | py | """Release data for pySpatialTools.
The information of the version is in the version.py file.
"""
from __future__ import absolute_import
import os
import sys
import time
import datetime
basedir = os.path.abspath(os.path.split(__file__)[0])
## Quantify the version
MAJOR = 0
MINOR = 0
MICRO = 0
ISRELEASED = False
V... | [
"tgq.spm@gmail.com"
] | tgq.spm@gmail.com |
645b5682e9763727540ac5d791536bf21623922f | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/5020/309005020.py | 83361578777dc5a5345e3f1329482955522de273 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,711 | py | from bots.botsconfig import *
from records005020 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'AQ',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'M10', MIN: 1, MAX: 1},
{ID: 'VEH', MIN: 0, MAX: 10},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
3fa94711deee1501fffaea2ebd96a02444740ebb | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/iothub/azure-mgmt-iothub/azure/mgmt/iothub/v2021_03_03_preview/aio/operations/_private_endpoint_connections_operations.py | 9539dfaa9da4998ba5e5dbec5e4b63fc87b7dedd | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 27,952 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
10bcb6a6cca24a31397972415ea766cbddfa555c | 523f8f5febbbfeb6d42183f2bbeebc36f98eadb5 | /147_best.py | 3d1e8b37f5da10cd271490da0e35045823c72455 | [] | no_license | saleed/LeetCode | 655f82fdfcc3000400f49388e97fc0560f356af0 | 48b43999fb7e2ed82d922e1f64ac76f8fabe4baa | refs/heads/master | 2022-06-15T21:54:56.223204 | 2022-05-09T14:05:50 | 2022-05-09T14:05:50 | 209,430,056 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 614 | py | # Definition for singly-linked list.
# class ListNode(object):
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution(object):
def insertionSortList(self, head):
"""
:type head: ListNode
:rtype: ListNode
"""
if head==Non... | [
"noelsun@mowennaierdeMacBook-Pro.local"
] | noelsun@mowennaierdeMacBook-Pro.local |
ffbba23a3c4c45c2d06645337aa75f9d54d24f4c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_243/ch161_2020_06_15_19_33_27_198209.py | f921b1b82956792ae479cd3fccf38b2e9021b5f4 | [] | 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 | 267 | py | def PiWallis(num):
numerador=1
denominador=2
i=0
multi = 1
while i < num:
multi *= numerador/denominador
if i%2 == 0:
denominador += 2
else:
numerador += 2
i+=1
return multi | [
"you@example.com"
] | you@example.com |
17443d48e14b9c51e3399739df9833c81a42bef8 | 886436fe7993aa2913e339ebe70b0eddfacac44c | /build/lib/armin/api/share/utils.py | e68eddb20a572579f23515d616640d6bb6bc3c91 | [] | no_license | singajeet/armin | 581793cac1ac3b1ab638d274b356965ee5d76750 | 99f61a0ce0f2d5c587002ddf8d2843e83d9538d3 | refs/heads/master | 2021-04-28T07:15:42.509397 | 2018-03-19T17:30:09 | 2018-03-19T17:30:09 | 122,219,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,957 | py | """
.. module:: source_driver
:platform: Unix, Windows
:synopsis: A default implementation of source system driver
"""
from typing import Type, Dict, Any
import pathlib
from armin.api.share.constants import N, F, V
from tinydb import TinyDB, Query
def get_meta_table(meta_repo_details:Type[Dict]):
"""Returns... | [
"singajeet@gmail.com"
] | singajeet@gmail.com |
44ad04a59f6f8b2df27bfda02eaab12a2aa8d256 | 06a045819cf99c7059afde40dca12cf9d3eb5f81 | /pandas/tests/indexing/test_at.py | 01315647c464b7573433bf36515371ffed05e411 | [
"BSD-3-Clause"
] | permissive | MarcoGorelli/pandas | b9882c6ac1e4bc753819b7bc7c8b567964efd275 | 86a4ee01c7899ef454d35b95cde11e9593921c9d | refs/heads/main | 2023-08-22T12:35:45.122152 | 2023-05-04T22:11:07 | 2023-05-04T22:11:07 | 164,618,359 | 4 | 1 | BSD-3-Clause | 2023-05-05T09:02:23 | 2019-01-08T09:55:54 | Python | UTF-8 | Python | false | false | 7,983 | py | from datetime import (
datetime,
timezone,
)
import numpy as np
import pytest
from pandas.errors import InvalidIndexError
from pandas import (
CategoricalDtype,
CategoricalIndex,
DataFrame,
DatetimeIndex,
MultiIndex,
Series,
Timestamp,
)
import pandas._testing as tm
def test_at_... | [
"noreply@github.com"
] | MarcoGorelli.noreply@github.com |
3730426a331bcc75745f9af0cdfc8efaf059a9b9 | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/numpy/array_api/tests/test_elementwise_functions.py | b2fb44e766f8adfc368d988bd7d17c2ac418b386 | [
"GPL-3.0-only",
"BSD-3-Clause-Open-MPI",
"GPL-3.0-or-later",
"GCC-exception-3.1",
"BSD-3-Clause",
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 3,619 | py | from inspect import getfullargspec
from numpy.testing import assert_raises
from .. import asarray, _elementwise_functions
from .._elementwise_functions import bitwise_left_shift, bitwise_right_shift
from .._dtypes import (
_dtype_categories,
_boolean_dtypes,
_floating_dtypes,
_integer_dtypes,
)
def ... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
0dcf4b6b5bcf74c86dfbcba79e56758e85c90377 | 08c7844a2bd2d94d16e851ce78109a7f33ffc53f | /config.py | 58407e73518f4329eb385d50488e096f33660915 | [] | no_license | jreiher2003/menu-app | dd5bd4a44688f43086f6a284684ebafff74daf2a | cc93f6a41539ab00b2d85bae21ee308987c93afe | refs/heads/master | 2021-01-10T09:26:51.673657 | 2015-11-17T19:11:25 | 2015-11-17T19:11:25 | 46,355,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | WTF_CSRF_ENABLED = True
SECRET_KEY = 'you-will-never-guess'
import os
basedir = os.path.abspath(os.path.dirname(__file__))
SQLALCHEMY_TRACK_MODIFICATIONS = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'menu.db')
SQLALCHEMY_MIGRATE_REPO = os.path.join(basedir, 'db_repository') | [
"jeffreiher@gmail.com"
] | jeffreiher@gmail.com |
b517f0bb5ca6346a38ef4745c26d781ed5b2d2cd | e83f2198cb765f048398e6485f138cf4e172199f | /src/pywaz/sprite/__init__.py | 2b4fa577eabb5f9d7b1f852d71ca2119cee7f2c3 | [] | no_license | giginet/MachiMatch | 6d1c2cb2a77323043e8e04e90df5d5e1d8e010d5 | 69b0e788f75966bf6e2fbfaba19e66da5ce22415 | refs/heads/master | 2021-01-13T01:36:19.399768 | 2011-12-25T02:40:10 | 2011-12-25T02:40:10 | 1,630,776 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | import pygame
from pygame.sprite import Sprite
class _Mixin(object):
def draw(self, surface):
for sprite in self.sprites():
if isinstance(sprite, Sprite):
sprite.draw(surface)
else:
surface.blit(sprite.image, sprite.rect)
class _Mixin2(object):
de... | [
"giginet.net@gmail.com"
] | giginet.net@gmail.com |
5e7eae6b648b87e1195f66e8de1baf28ed5cc3b4 | 176088b355fd48f89aa377d1358bc54fd5d9d35d | /backend/task_category/migrations/0001_initial.py | 9093194c12138f4db006dc787f9880e94c74f40c | [] | no_license | crowdbotics-apps/fashion-by-genesis-18024 | bbf2c78adaefcaf5297b208a23d291ec8c7b0f0f | a725add80913c3ecb4f9e049baa3c78c8de3ffbd | refs/heads/master | 2022-10-26T19:09:33.359374 | 2020-06-11T18:21:20 | 2020-06-11T18:21:20 | 271,617,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | # Generated by Django 2.2.13 on 2020-06-11 18:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5b93c2a71b7fe9860423932a99487ea380b7ad1b | e7307703a08ccdc0615bfa3b7a963a2ba2e9e732 | /bots/courses_bot/data_models/student_profile.py | 8f2b9d06af726a5cb4e8919a976c563d36878473 | [] | no_license | liyocee/cs_course_bot | 7817c43975c56aeb6edf31d28d9a7f553d107c26 | 93354ade3713293bf31a494a75bd11c3229814a8 | refs/heads/master | 2023-05-24T23:29:34.309303 | 2020-03-15T14:37:15 | 2020-03-15T14:37:15 | 246,835,877 | 0 | 0 | null | 2023-05-22T22:42:22 | 2020-03-12T13:03:32 | Python | UTF-8 | Python | false | false | 707 | py | from enum import Enum
from typing import Optional
from botbuilder.schema import Attachment
from .course_unit import CourseUnit
class StudentProfile:
def __init__(
self,
name: str = None,
admission_number: str = None,
course_unit: CourseUnit = None,
picture: Attachment = ... | [
"collinskivale@gmail.com"
] | collinskivale@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.