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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ec7249fb25fcc334c8ba9b5b5d6ce61012c410e | c2e49d32b2613d702dd06067bd0ec7846a319fd5 | /arelle/plugin/instanceInfo.py | 92187ad858d39887fc97f227c0073ceba1900616 | [
"Apache-2.0"
] | permissive | hamscher/Arelle | c9a020a5955a313c14a4db3a4e7122ec9599714c | 64c1beddcc7163e571011faf07a03d8ffe18bb78 | refs/heads/master | 2023-08-24T14:12:49.055954 | 2021-10-17T16:55:56 | 2021-10-17T16:55:56 | 284,703,106 | 0 | 0 | Apache-2.0 | 2020-08-10T15:48:15 | 2020-08-03T13:08:08 | Python | UTF-8 | Python | false | false | 11,510 | py | '''
instanceInfo.py provides information about an XBRL instance
(c) Copyright 2018 Mark V Systems Limited, All rights reserved.
'''
import sys, os, time, math, re, logging
from collections import defaultdict
from arelle.ValidateXbrlCalcs import inferredDecimals, rangeValue
from arelle import ModelDocument
from arelle.... | [
"fischer@markv.com"
] | fischer@markv.com |
1031b15ef4224999d0fc93543846634035595c25 | 7f2511240539b1327a5a97060fa59f811bdc2889 | /django_functest/exceptions.py | a95b6b4d9fd5ad70530a83cac35c6ae76290059b | [] | no_license | liushilive/django-functest | e1080c2e8b9031ba9b271bfd56029f0b77082e5a | 8cffd4ae01dd9a004acc0f37088a34ce5b5e0983 | refs/heads/master | 2021-01-20T14:16:23.133597 | 2018-03-30T07:06:22 | 2018-03-30T07:06:22 | 82,748,549 | 0 | 0 | null | 2018-03-30T07:06:23 | 2017-02-22T01:57:10 | Python | UTF-8 | Python | false | false | 297 | py | from __future__ import absolute_import, print_function, unicode_literals
class WebTestNoSuchElementException(Exception):
pass
class WebTestMultipleElementsException(Exception):
pass
class WebTestCantUseElement(Exception):
pass
class SeleniumCantUseElement(Exception):
pass
| [
"L.Plant.98@cantab.net"
] | L.Plant.98@cantab.net |
cbde25477696d51659f3ddfcf455ceb4387eb642 | 6515dee87efbc5edfbf4c117e262449999fcbb50 | /Sorting/AUC.py | c6548f4f09b7421ff5d5d311ff99bde1e848da1e | [] | no_license | wangyunge/algorithmpractice | 24edca77e180854b509954dd0c5d4074e0e9ef31 | 085b8dfa8e12f7c39107bab60110cd3b182f0c13 | refs/heads/master | 2021-12-29T12:55:38.096584 | 2021-12-12T02:53:43 | 2021-12-12T02:53:43 | 62,696,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | class AucCompute():
def __init__(self):
self.samples = []
samples = [(0.5, 1), (0.6, 1), (0.2, 0), (0.55, 0)]
def compute(self, label, score):
samples = sorted()
def roc_area(self, ):
def true_pos_rate():
return float(tp)/(float(tp) + float(fn))
def fa... | [
"wangyunge1@yahoo.com"
] | wangyunge1@yahoo.com |
fb64b70aa19618482a0dc633386ee2f4f1e330f4 | ec87bf8c5a4617ade5556b6dc4df12a6f1056566 | /Sec_7/7.2/test2.py | 27931f07b2eca51e07f6633e454cb2f415ed34ca | [] | no_license | WiconWang/spider_project | a5772b1bda63695d9e398edd31a3574e568ef0b3 | f49a93c1cab5716d4dafecb7479a3be2a4af91ad | refs/heads/master | 2023-01-24T08:34:20.951665 | 2020-11-25T06:25:04 | 2020-11-25T06:25:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | import requests
url = 'http://192.168.6.160:8050/render.png?url=https://www.jd.com&wait=5&width=1000&height=700'
response = requests.get(url)
with open('jd.png', 'wb') as f:
f.write(response.content) | [
"271138425@qq.com"
] | 271138425@qq.com |
bdab442eec0258db57481eaade41c78e4c9425f5 | 6478723d180a8ef39941ba04b80c1eca9f437323 | /1063. Number of Valid Subarrays.py | d2ff3ac378cb81f52d28f7851e45d2f12bbe5249 | [] | no_license | NiuNiu-jupiter/Leetcode | 2a49a365898ecca393cb1eb53a47f4501b25952d | e278ae6ded32f6a2d054ae11ad8fcc45e7bd0f86 | refs/heads/master | 2022-11-22T01:05:57.417538 | 2020-07-28T23:34:39 | 2020-07-28T23:34:39 | 182,104,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,174 | py | """
Given an array A of integers, return the number of non-empty continuous subarrays that satisfy the following condition:
The leftmost element of the subarray is not larger than other elements in the subarray.
Example 1:
Input: [1,4,2,5,3]
Output: 11
Explanation: There... | [
"cmyumo.zhang@gmail.com"
] | cmyumo.zhang@gmail.com |
a1acccb1aba90199654cacf3ead931973c054ceb | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/api_lib/run/task.py | c288e4e773ffe47bea82d77e5052543b63594cc1 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 3,906 | py | # -*- coding: utf-8 -*- #
# Copyright 2022 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
5079e05b86e2723e8d0e70be3749a7efa59a9183 | d10a1814735fa6e7fc9354bad8d8251eb81fa9fc | /core/decorators.py | c9c25be29165176c68365e2285ab55993572af80 | [] | no_license | SeedyROM/django-social-spotify-example | 15d6a43045009e0f28e49f4f832bb0b1b1bbae51 | adb6cc9cfda6d76d45ef9c3611cacfb17ba89831 | refs/heads/master | 2022-12-14T21:49:43.512965 | 2018-03-28T08:40:01 | 2018-03-28T08:40:01 | 127,084,250 | 3 | 0 | null | 2022-12-08T00:55:24 | 2018-03-28T04:36:03 | Python | UTF-8 | Python | false | false | 696 | py | from django.contrib.auth import logout
from django.contrib.auth.decorators import login_required
from django.shortcuts import redirect
from requests.exceptions import HTTPError
from social_django.utils import load_strategy
def spotify_view(function):
@login_required
def wrap(request, *args, **kwargs):
social ... | [
"rallokkcaz@gmail.com"
] | rallokkcaz@gmail.com |
c005b4665be718a64a4934ba60988c4d6d45bf34 | c4d56a69bea9daecab4a6d6dcf64ea40d22eb48e | /mitmproxy/tools/console/eventlog.py | 0b8a3f8cf9167e612d17ad473ade11e91456e26b | [
"MIT"
] | permissive | iBrandon/mitmproxy | 981f44baa8c6ea7cfddafeb38bcf93a853b4c682 | cafa094f75732bd803972aecb71e2d1032ee2390 | refs/heads/master | 2021-01-20T17:29:44.817486 | 2017-05-10T08:11:27 | 2017-05-10T08:11:27 | 90,879,892 | 2 | 0 | null | 2017-05-10T15:28:43 | 2017-05-10T15:28:43 | null | UTF-8 | Python | false | false | 1,315 | py | import urwid
from mitmproxy.tools.console import signals
EVENTLOG_SIZE = 10000
class LogBufferWalker(urwid.SimpleListWalker):
pass
class EventLog(urwid.ListBox):
keyctx = "eventlog"
def __init__(self, master):
self.walker = LogBufferWalker([])
self.master = master
urwid.ListBox... | [
"aldo@nullcube.com"
] | aldo@nullcube.com |
ec1825cba9d2657ee0ecdc2ebb87aed9c258df64 | cdad738a7085a997b5349a94aedb4db8da78da8f | /TreeProduction/test/crab/w01_hijing8tev_gensimtreeproduction/crab.py | c8cf7f7e5455d3f3de7b81e0aec48396bdacec2b | [
"MIT"
] | permissive | tuos/DirectLoopAnalysis | 4851d122d4723e498705c1d2cb100cbf3eda8d43 | 6f5f02538454d2240d0232665b9b17d07eb79854 | refs/heads/master | 2020-06-12T22:24:01.081755 | 2020-01-21T17:49:37 | 2020-01-21T17:49:37 | 194,446,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'w01_hijing8tev_gensimtreeproduction'
config.General.workArea = 'project_w01_hijing8tev_gensimtreeproduction'
config.General.transferOutputs = True
config.General.transferLogs = False
config.JobType.plugi... | [
"shengquan.tuo@cern.ch"
] | shengquan.tuo@cern.ch |
4f532fb82b968462c6b2cba3a5fdbc06a4fd47c7 | c2ff2ee2b0c84e047a80cfdf0b0d0b122fc9db79 | /features/himario/mmediting/mmedit/datasets/generation_paired_dataset.py | 2df184d567d46c30260f0faf1c1112ad072dd09d | [
"Apache-2.0",
"MIT"
] | permissive | obarnard99/vilio | 275dcb62cdb8b2d8c55ab1e73f3a796bd2073a5b | 77aac226c3a0910410f11a5999f8908181f57ccd | refs/heads/master | 2023-06-29T17:02:02.282457 | 2021-06-22T09:50:11 | 2021-06-22T09:50:11 | 337,738,373 | 0 | 0 | MIT | 2021-06-22T09:50:12 | 2021-02-10T13:50:49 | Python | UTF-8 | Python | false | false | 1,466 | py | import os.path as osp
from .base_generation_dataset import BaseGenerationDataset
from .registry import DATASETS
@DATASETS.register_module()
class GenerationPairedDataset(BaseGenerationDataset):
"""General paired image folder dataset for image generation.
It assumes that the training directory is '/path/to/d... | [
"obarnard99@gmail.com"
] | obarnard99@gmail.com |
08f69a4436ba0b5d7c98506b57dd7c74f16f4402 | caa7c209acd1b336fcd6c0f3d9e8a58ba1eb60ad | /test_task1.py | 4d95408c2199cab426d5994c5865354a8c64792e | [] | no_license | herzenuni/sem5-firsttask-04092018-arinasaf11-2 | b60375e511206aac94d0253ae69de6b957a9ffa2 | 10b3cc83ae8bce745e624229592667a1b18c9724 | refs/heads/master | 2021-07-25T14:11:26.582542 | 2018-12-28T13:09:23 | 2018-12-28T13:09:23 | 147,555,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import unittest
import task1
class test_task():
def test_func(self):
self.assertEqual(task1.func(2,'hex'), '0x2')
def test_func1(self):
self.assertEqual(task1.func(2), 'два')
if __name__ == '__main__':
unittest.main()
| [
"noreply@github.com"
] | herzenuni.noreply@github.com |
b5cda5a37001a46ca5df718ba77b4f3d8ec7ebb2 | df55759bac7f788aa0c7ddbc620154ce2625b38a | /odps/runner/df/adapter.py | a32f62298d2cbec3de28231825d05509d93ca8cc | [
"Apache-2.0"
] | permissive | yjjsdu/aliyun-odps-python-sdk | 7b4bb21583d9fc8132157fd03f0ca7af2e410f26 | 72ba6ecc2e70d50a581385fffb4fedd1950ed285 | refs/heads/master | 2021-01-09T20:04:24.357789 | 2017-01-25T02:13:37 | 2017-01-25T02:13:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,481 | py | # encoding: utf-8
# Copyright 1999-2017 Alibaba Group Holding 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 b... | [
"xuye.qin@alibaba-inc.com"
] | xuye.qin@alibaba-inc.com |
891b10c729cc41d184af202fe27ee44fb33c93fb | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_hungers.py | 83a72b5e0211718be8c579621609825ad0454cb4 | [
"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 | 222 | py |
#calss header
class _HUNGERS():
def __init__(self,):
self.name = "HUNGERS"
self.definitions = hunger
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['hunger']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
88482394f3d8b2feadd61f7632ec800377781b29 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /day08/day8/16.logging模块.py | 4c9f15064ad8ca6221e2e72af4b717640d5d9fb1 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 1,266 | py | # import logging
# fh = logging.FileHandler(filename='xxx.log',encoding='utf-8')
# fh1 = logging.FileHandler(filename='xxx2.log',encoding='utf-8')
# sh = logging.StreamHandler()
# logging.basicConfig(level=logging.INFO,
# handlers=[fh,sh,fh1],
# datefmt='%Y-%m-%d %H:%M:%S',
# ... | [
"13269469526@163.com"
] | 13269469526@163.com |
87505b47481663ffa086e48bd4b226ccd4d8700d | c4fa1ebcdd413c4ab3f0979ee3beead8a8809870 | /share/normalize/links.py | 88254c3295a936526c92a7278fe4d6a87efdcd76 | [] | no_license | terroni/SHARE | e47f291db7cf100d29a7904fe820e75d29db1472 | a5631f441da1288722c68785b86128c854cbe7c1 | refs/heads/develop | 2020-12-03T02:29:47.381341 | 2016-07-11T19:40:27 | 2016-07-11T19:40:27 | 63,097,148 | 1 | 0 | null | 2016-07-11T19:45:51 | 2016-07-11T19:45:50 | null | UTF-8 | Python | false | false | 10,985 | py | import threading
from functools import reduce
from collections import deque
import xmltodict
import arrow
from lxml import etree
from pycountry import languages
from nameparser import HumanName
__all__ = ('ParseDate', 'ParseName', 'ParseLanguage', 'Trim', 'Concat', 'Map', 'Delegate', 'Maybe', 'XPath', 'Join', 'R... | [
"chriskseto@gmail.com"
] | chriskseto@gmail.com |
c3e48a7b3486a9f541e42d8e360ef80d57c5f287 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /pinpoint_write_f/recommender-configuration_create.py | bf2bef53865f2a8a45fe748c41e6cf0bbc15a86e | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
a4ea05beb61a1ae9488673785bc21a36590eeb5d | 4569d707a4942d3451f3bbcfebaa8011cc5a128d | /hierwikiplugin/0.9/hierwiki/macros/parentwiki.py | aa746ceb1c51e30ceb2e29e717c30465cb294e13 | [] | no_license | woochica/trachacks | 28749b924c897747faa411876a3739edaed4cff4 | 4fcd4aeba81d734654f5d9ec524218b91d54a0e1 | refs/heads/master | 2021-05-30T02:27:50.209657 | 2013-05-24T17:31:23 | 2013-05-24T17:31:23 | 13,418,837 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,685 | py | # Macros for the HierWiki plugin
from trac.core import *
from trac.wiki.api import IWikiMacroProvider, WikiSystem
from StringIO import StringIO
import re, string, inspect
class ParentWikiMacro(Component):
"""
Inserts a link to the "parent" wiki entry.
This only applies to wikis that have a "/" in ... | [
"coderanger@7322e99d-02ea-0310-aa39-e9a107903beb"
] | coderanger@7322e99d-02ea-0310-aa39-e9a107903beb |
d3b1d9bcf01a6956cb9f8162f90e476652811962 | 4b4828d3c98d76d7bf38f90a015945acc408ddc5 | /PythonAI/Source/W1D4/src/EX_REQ/ex_req_png.py | 13d7a84e8fda327fcf1724af0cd5c4b314c0726e | [] | no_license | Huh-jae-won/Study | cb5d32728e8dcded492e7edb054b500c91ec607c | e4dbc3fef69bb273b62b866fb5ef2a7250222f10 | refs/heads/main | 2023-06-20T13:06:26.691899 | 2021-07-11T07:43:41 | 2021-07-11T07:43:41 | 362,759,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | # 모듈 로딩 -------------------------------------------
import requests
# 데이터 변수 선언 -------------------------------------
URL = 'http://wikibook.co.kr/logo.png'
IMG_FILE = '../../data/test.png'
# 데이터 가져오기 ------------------------------------
res = requests.get(URL)
if int(res.status_code) == 200:
# 바이너리 형식으로 데이터 저장
... | [
"dfr9034@naver.com"
] | dfr9034@naver.com |
8a8d04b9fceb712b14b32cf15babd104e5f7a9d6 | 61a5f4f9a862a5cb15ba5041bc0eebeb5a73d989 | /virtual/bin/pip3 | 92068ed905cf2a262dfed75c3731340c1c17f4a4 | [
"MIT"
] | permissive | iankabugi/chama | 8c48cb081e5202e6a1b446cd87fec6124fff7e6c | 282a460588c7f4476318314fe139e3b6ec574eb6 | refs/heads/master | 2020-05-02T11:59:01.129404 | 2019-03-27T11:50:20 | 2019-03-27T11:50:20 | 177,946,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/home/ian/Desktop/chama/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"iank299@gmail.com"
] | iank299@gmail.com | |
b658f62dc2ae780047fb588ecb481e20ae1822d1 | 9b3f578e63a7e17e2b1bab5f38aa8625b8a80251 | /descarteslabs/client/services/tasks/tests/data/dl_test_package/package/module.py | 281e2167df79dcb724e1afd4151237c60c5b0182 | [
"Apache-2.0"
] | permissive | carderne/descarteslabs-python | e6f7000f08cd1569e0ddd0f7fb8e53abb6765183 | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | refs/heads/master | 2022-12-09T23:19:02.361226 | 2020-08-13T11:52:30 | 2020-08-13T11:52:30 | 287,264,851 | 0 | 0 | NOASSERTION | 2020-08-13T11:46:58 | 2020-08-13T11:46:57 | null | UTF-8 | Python | false | false | 296 | py | a_global = "A global var"
def foo():
print("foo")
def func_foo():
a_local = "A local var"
return a_local + a_global
class outer_class:
class inner_class:
@staticmethod
def func_bar():
a_local = "A local var"
return a_local + a_global
| [
"support@descarteslabs.com"
] | support@descarteslabs.com |
7c50534c50b9a795e870dc44b83879518e77b022 | f8f40422b6da71206bd45cb395761b2b56150b73 | /virl/cli/logs/commands.py | 96d8b20b45417e3518261d827d1d3b814dbf1f88 | [
"MIT"
] | permissive | RunSi/virlutils | 3bb96d8a805ad884578c967c480dc51f98a4cbab | 595bae19ea23ba589e7883bedd2076c40bfc4907 | refs/heads/master | 2021-01-25T13:36:53.273146 | 2017-12-15T20:06:42 | 2017-12-15T20:06:42 | 123,597,468 | 0 | 0 | MIT | 2018-03-02T15:42:22 | 2018-03-02T15:42:22 | null | UTF-8 | Python | false | false | 558 | py | import click
from virl.api import VIRLServer
from virl.cli.views import log_table
from virl import helpers
@click.command()
@click.argument('env', default='default')
def logs(env, **kwargs):
"""
Retrieves log information for the provided simulation
"""
running = helpers.check_sim_running(env)
if r... | [
"kecorbin@cisco.com"
] | kecorbin@cisco.com |
59bf04653400bc0082de29089c4bffcf7a9921fa | 528f910908885c3ded4ecc6380b9603c8dcacbd6 | /tbapi/top/api/rest/FenxiaoProductSkuUpdateRequest.py | c720f4a5fcd2ed51753fc1fa937f037da27ea87c | [] | no_license | Monica-ckd/data007 | 15fe9c4c898a51a58100138b6b064211199d2ed1 | 0e54ae57eb719b86ec14ce9f77b027882a3398a8 | refs/heads/master | 2023-03-16T05:26:14.257318 | 2016-05-25T06:57:05 | 2016-05-25T06:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | '''
Created by auto_sdk on 2013-04-01 16:44:41
'''
from top.api.base import RestApi
class FenxiaoProductSkuUpdateRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.agent_cost_price = None
self.dealer_cost_price = None
self.product_id = Non... | [
"root@u16392468.onlinehome-server.com"
] | root@u16392468.onlinehome-server.com |
e200015486e71bc146de42be55e36a0a0cb55b0c | 94a6a83c8bd3f9a951ee7d48973f35d0b5b6f99c | /testcases/dev/GlobalSettings_dev.py | dee52c16156534ae6bd5896371cc00e4e651c91d | [] | no_license | JerryLiu0821/apython | 19766bebd5365e53aa7ea46adc01132045e91f9c | d9804b1099c879da1f8dc130fb205ab191f65fb1 | refs/heads/master | 2020-05-17T05:09:15.319167 | 2015-08-17T10:50:09 | 2015-08-17T10:50:09 | 40,886,032 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,079 | py | # -*- coding: utf-8 -*-
'''
Created on Mar 27, 2013
@author: liujian
'''
import unittest
import re, time, commands
import sys
sys.path.append('../testcases')
import Stability
class TestGlobalSettings(unittest.TestCase):
def setUp(self):
try :
self.error = ''
self.setup = Stabilit... | [
"liujian@letv.com"
] | liujian@letv.com |
68fbfc30ae113b14e8e307ec4775137c6e47de5d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/97/usersdata/206/56394/submittedfiles/lecker.py | 6a4f92871ebc5f5c9f874df4bd40bc0b6ea4393a | [] | 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 | 956 | py | # -*- coding: utf-8 -*-
n= int(input('Digite N:'))
a=[]
b=[]
contA=0
contB=0
for z in range (1, n+1,1):
valorA=float(input('valor da lista A:'))
a.append(valorA)
for i in range (0, len(a),1):
if(i==0):
if (a[i]>a[i-1]):
contA=contA + 1
elif (i==len(a)- 1):
if (a[i]>a[i-1])... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
726e3445787acda675e18981a98aa2e53e15c3ab | 8de847f626ffb6b11e49bec669cb80304a66a0af | /plugins/dbnd-snowflake/src/dbnd_snowflake/snowflake_resources.py | 0a37250ef330c5add20ed3cf14ca8b0387d6b7b7 | [
"Apache-2.0"
] | permissive | FHoffmannCode/dbnd | 5ac7d766ec1bfe37f7a12605ebd12b4dcf31fba6 | 82beee1a8c752235bf21b4b0ceace5ab25410e52 | refs/heads/master | 2022-12-26T06:04:30.008949 | 2020-10-04T19:30:58 | 2020-10-04T19:30:58 | 301,370,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,981 | py | import logging
from decimal import Decimal
from textwrap import dedent
from dbnd import log_duration, log_metrics
from dbnd_snowflake.snowflake_values import SnowflakeController
logger = logging.getLogger(__name__)
# TODO: Add support for QUERY_TAG
# I.e. Subclass SnowflakeOperator and set session param QUERY_TAG ... | [
"evgeny.shulman@databand.ai"
] | evgeny.shulman@databand.ai |
0b2ee115102da0dff844ffdbfff0f1445e2b6017 | 66fe6eb64afeb7313a4c7685a8748455325b6726 | /1329-sort-the-matrix-diagonally.py | b944795e759d4d78649c943f42f1017f27392e8e | [] | no_license | anantkaushik/leetcode | b54eb27b17ed95b02ab426392208c346f2d87aaa | 06f0a6dbff2e2062fa4568efa5f01ad982d6ac94 | refs/heads/master | 2022-03-07T18:21:35.881943 | 2022-02-23T12:27:24 | 2022-02-23T12:27:24 | 120,501,367 | 40 | 13 | null | 2019-10-11T11:07:22 | 2018-02-06T18:05:51 | Python | UTF-8 | Python | false | false | 1,243 | py | """
Problem Link: https://leetcode.com/problems/sort-the-matrix-diagonally/
A matrix diagonal is a diagonal line of cells starting from some cell in either the topmost row or leftmost column and
going in the bottom-right direction until reaching the matrix's end. For example, the matrix diagonal starting from mat[2][... | [
"anant.kaushik2@gmail.com"
] | anant.kaushik2@gmail.com |
d68c5d463664d4d7bdbf0dbcda90e172df77d16f | 40218b64840f4eec1866e33300a8395bdfa4c33b | /demos/TestMQTTMusic.py | 456f3f1fd42dc664ca03a96ca51e57e63ea91846 | [
"MIT"
] | permissive | titos-carrasco/MindSet-Python | af0750ec12a72954741f13ff016e9a4d9e753b08 | 74f53fe49b8b6129a7a34da314efc46d3d5e1aa1 | refs/heads/master | 2021-12-24T16:41:43.766347 | 2021-12-24T00:02:34 | 2021-12-24T00:02:34 | 98,101,141 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,000 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import rtmidi
import paho.mqtt.client as mqtt
import json
import time
import queue
from mindset.MindSet import *
MQTT_SERVER = '127.0.0.1'
MQTT_PORT = 1883
MQTT_TOPIC = "rcr/demo/mindset"
class TestMusicaMQTT():
def __init__( se... | [
"titos.carrasco@gmail.com"
] | titos.carrasco@gmail.com |
f273efbb20a2ff8023b3515a70d85b4edd43fe4e | b60953cdbb29dd87a450d1a1a5f6f5fde6f0e200 | /util/repoter.py | 42db8e3d10e2dbca45c5ed3d6cd6ac2e0cfe670f | [
"MIT"
] | permissive | PINTO0309/TensorflowLite-UNet | bcffad7db93c8ea0d85aea976773fa22fa8bd2bb | e805162fc2623b31dbdbf159d2eb89d7041fdbdd | refs/heads/master | 2020-04-01T20:56:13.269870 | 2019-02-13T11:59:01 | 2019-02-13T11:59:01 | 153,627,668 | 79 | 22 | MIT | 2018-10-19T23:13:56 | 2018-10-18T13:24:10 | Python | UTF-8 | Python | false | false | 6,381 | py | from PIL import Image
import numpy as np
import datetime
import os
import matplotlib.pyplot as plt
class Reporter:
ROOT_DIR = "result"
IMAGE_DIR = "image"
LEARNING_DIR = "learning"
INFO_DIR = "info"
PARAMETER = "parameter.txt"
IMAGE_PREFIX = "epoch_"
IMAGE_EXTENSION = ".png"
... | [
"rmsdh122@yahoo.co.jp"
] | rmsdh122@yahoo.co.jp |
4a00024163d840eac6bbf878d2c02d6e3dee4993 | fa4d4455159ad2d9e7e057388e2fa45a2333928b | /assignments/Assignment7/Assignment7_3.py | fcf9a62a0d9f5d7b2cb6ab5674836ab5dcbb5aa2 | [] | no_license | shreyash05/python_programs | b492e6fbeba7bc8a31caf72dd60f3984ff16e6f0 | 74b4f3ee15a7221d03816f7ba831d59bec7bf7ff | refs/heads/main | 2023-04-25T11:15:44.868634 | 2021-05-20T12:55:54 | 2021-05-20T12:55:54 | 356,513,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,921 | py | """ 3. Write a program which contains one class named as Numbers.
Arithmetic class contains one instance variables as Value.
Inside init method initialise that instance variables to the value which is accepted from user.
There are four instance methods inside class as ChkPrime(), ChkPerfect(), SumFactors(),
Factors... | [
"noreply@github.com"
] | shreyash05.noreply@github.com |
d5d6cc1460ec8a0cc8fa4caad9843cc19a94fca7 | 7b0c90185aa3d4ae7c422ff32fcc0ebf930f1eed | /venv/bin/cq | 181b875f537d28fd7dc87e8b9dd64210bb35b2fc | [] | no_license | skilllauncher/lets-hi5 | d3c83052886027575e5e3b5d4e92cb934105fab5 | 8277d3ea641b44fc70c4bfb1f5581e6ae8e395cb | refs/heads/master | 2020-03-24T03:14:35.276636 | 2018-07-26T08:14:19 | 2018-07-26T08:14:19 | 142,410,670 | 0 | 1 | null | 2018-07-26T08:16:33 | 2018-07-26T08:16:33 | null | UTF-8 | Python | false | false | 3,089 | #!/Users/saicharanreddy/Desktop/lets-hi5/venv/bin/python
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
#
# 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, inc... | [
"saicharan.reddy1@gmail.com"
] | saicharan.reddy1@gmail.com | |
50b15ee80d619c141365229c4ac4c5a1f3eab92a | 74f2e26b17acd51f5eaea5df6a3921943ac29d98 | /pints/tests/test_toy_lotka_volterra_model.py | 64e450b7bfbab3ec9d4558042baa600896f97152 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | nandigama/pints | fd1ec6ee7e7a0d5f255f6c94b0da0a3cbb2e9efd | adf920adaf4f9e23f33bb978f79bc0c341acd4eb | refs/heads/master | 2020-07-13T03:13:33.740363 | 2019-08-26T21:15:24 | 2019-08-26T21:15:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | #!/usr/bin/env python
#
# Tests if the Lotka-Volterra toy model runs.
#
# This file is part of PINTS.
# Copyright (c) 2017-2018, University of Oxford.
# For licensing information, see the LICENSE file distributed with the PINTS
# software package.
#
import unittest
import numpy as np
import pints
import pints.toy
... | [
"chonloklei@gmail.com"
] | chonloklei@gmail.com |
3272b803a4924a147960a0c97b018b92231252ef | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /YK9PpDRfyBTEarNyR_6.py | 336c15964672eb1a583700bbf580e7666e0021f2 | [] | 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 | 572 | py | """
Programmer Pete is trying to turn two lists inside one list into one without
messing the order of the list nor the type and because he's pretty advanced he
made it without blinking but I want you to make it too.
### Examples
one_list([[1, 2], [3, 4]]) ➞ [1, 2, 3, 4]
one_list([["a", "b"], ["c", "d"... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d1cf241890c289ab4628ed9941032718dd9d5a40 | 7ba4e38e0835cd009a078ce39a480b5bacaba21f | /sample_code/chap5/5.1.2.testplot3d.py | d0c8015f395f6ef3c7c84022b96a7c47a74a2256 | [] | no_license | moguranran/computer_vision_test | fe0641987905755c733e4ab16f48c3b76d01b3f4 | 4c5b5572d01e13a42eefb2423e66e34675c305cb | refs/heads/master | 2022-04-20T17:53:37.668609 | 2020-03-31T00:13:02 | 2020-03-31T00:13:02 | 249,196,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from pylab import *
from mpl_toolkits.mplot3d import axes3d
fig = figure()
ax = fig.gca(projection="3d")
# 3Dのサンプルデータを生成する
X,Y,Z = axes3d.get_test_data(0.25)
# 3Dの点を描画する
ax.plot(X.flatten(),Y.flatten(),Z.flatten(),'o')
show()
| [
"peehssalg@gmail.com"
] | peehssalg@gmail.com |
df09e465e9af07a47772e5ceb87409c30f72a830 | f38e78214992de722a6ec2012e844bce7b3c59ed | /lib/clckwrkbdgr/todo/test/test_providers.py | 04ed6438c490083c1709000f37ae9b135d01877e | [
"MIT"
] | permissive | clckwrkbdgr/dotfiles | 20fb86f54d93ae4936c334898c3d7b1b3820fb06 | a7e880e189bfa4793f30ff928b049e4a182a38cd | refs/heads/master | 2023-08-31T13:13:47.533868 | 2023-08-30T18:32:00 | 2023-08-30T18:32:00 | 20,396,084 | 2 | 2 | MIT | 2022-10-01T16:35:31 | 2014-06-02T07:26:38 | Python | UTF-8 | Python | false | false | 1,153 | py | import json
from ... import xdg
from ... import unittest
from ..provider import todo_dir
from .. import _base
class TestTodoDir(unittest.fs.TestCase):
MODULES = [todo_dir]
def setUp(self):
if _base.task_provider._entries.get('todo_dir'): # pragma: no cover
del _base.task_provider._entries['todo_dir']
super(Te... | [
"umi0451@gmail.com"
] | umi0451@gmail.com |
5a8758c70f2c16039e050e3cd7e77ed3736f27e3 | 0a2cc497665f2a14460577f129405f6e4f793791 | /sdk/appconfiguration/azure-appconfiguration/azure/appconfiguration/_generated/aio/operations/_azure_app_configuration_operations.py | d898efd4c7a3d1b42d4ce643dcad171b78bb582f | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | hivyas/azure-sdk-for-python | 112158aa9e1dd6e30cf6b3dde19f5db6ea2a577b | 8b3258fa45f5dc25236c22ad950e48aa4e1c181c | refs/heads/master | 2023-06-17T12:01:26.392186 | 2021-05-18T19:56:01 | 2021-05-18T19:56:01 | 313,761,277 | 1 | 1 | MIT | 2020-12-02T17:48:22 | 2020-11-17T22:42:00 | Python | UTF-8 | Python | false | false | 59,148 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | hivyas.noreply@github.com |
303c660e3eef57e3a36afb062ecd39b07d4bc99b | 58df224689ab08c99359b1a6077d2fba3728dc61 | /lamda-ocr/merge-files/borb/io/write/page/write_pages_transformer.py | 68627bae287b7b3e25fae919b97dba2be46afbac | [] | no_license | LIT-Midas/LITHackathon | 2b286728c156d79d3f426f6d19b160a2a04690db | 7b990483dd48b91cf3ec3452b78ab67770da71af | refs/heads/main | 2023-08-13T05:22:59.373965 | 2021-08-16T01:09:49 | 2021-08-16T01:09:49 | 395,024,729 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,106 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This implementation of WriteBaseTransformer is responsible
for writing Dictionary objects of \Type \Pages
"""
import logging
import typing
from typing import Optional
from borb.io.read.types import AnyPDFType, Dictionary, Name, Reference
from borb.io.write.object.writ... | [
"trevordino@gmail.com"
] | trevordino@gmail.com |
b7e12c3f4b2d45fded162877ad86427111a6fb38 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03437/s315998808.py | e3d8b6ff4e9f3533a8b2b47253c581f3b116e5da | [] | 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 | 64 | py | X,Y=map(int,input().split())
if X%Y==0: print(-1)
else: print(X) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
76f98d3da0ade232f07aceecf15d6408af840350 | 678770fcff8f01340dbea76bdc255a7f7dae7ce8 | /cme/modules/enum_chrome.py | ee01a980d9512560b1ee464fca2e648ed8eb3c60 | [
"BSD-2-Clause"
] | permissive | archey/CrackMapExec | 8a60d8f84332234636689dc448d6e58ae86bb02c | 3d010ea2f0321908f28bae5ba814a453e3d9b215 | refs/heads/master | 2021-01-12T04:13:22.955299 | 2016-12-28T18:23:31 | 2016-12-28T18:23:31 | 77,552,171 | 1 | 0 | null | 2016-12-28T18:12:49 | 2016-12-28T18:12:48 | null | UTF-8 | Python | false | false | 5,519 | py | from cme.helpers import create_ps_command, get_ps_script, obfs_ps_script, validate_ntlm, write_log
from datetime import datetime
from StringIO import StringIO
import re
class CMEModule:
'''
Executes PowerSploit's Invoke-Mimikatz.ps1 script (Mimikatz's DPAPI Module) to decrypt saved Chrome passwords
... | [
"byt3bl33d3r@gmail.com"
] | byt3bl33d3r@gmail.com |
00d2631d286f49fce9f9cd2239ebf7a8d7d64789 | c0665729c9d6d9981df3525a2937dbf82650e023 | /migrations/versions/88cf82c03451_.py | b041896d1e10abcc32ef4c59b6be6f11313d9fc8 | [] | no_license | anaf007/t923 | 3ebef05801904456953e128a9059db3c52252dc1 | 078d2c566c77afa2ca1be7663d3c23c9f0ecddac | refs/heads/master | 2020-03-25T08:39:01.200735 | 2018-12-12T14:56:59 | 2018-12-12T14:56:59 | 143,625,550 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 940 | py | """empty message
Revision ID: 88cf82c03451
Revises: d61c3c0d0a4a
Create Date: 2018-08-05 21:38:07.000959
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
# revision identifiers, used by Alembic.
revision = '88cf82c03451'
down_revision = 'd61c3c0d0a4a'
branch_labels = None
depe... | [
"anaf@163.com"
] | anaf@163.com |
6bb116d3f2cf2ad70af121abb33e58ed43bf50c3 | 98158b9e965e72b5a296be193931ce108bf0519e | /src/main/python/systemds/operator/algorithm/builtin/correctTypos.py | acbd0f9448f3e79f19f34fcd1d6dd511d21ccec2 | [
"Apache-2.0"
] | permissive | Shafaq-Siddiqi/systemml | 88dabaddf4763376bfcc46dc0f961ee9ab1cd438 | fecc4df3d6a9bba48d3ed72f6abcb7d3ce5582bf | refs/heads/main | 2023-04-27T14:22:05.333433 | 2022-05-22T10:08:06 | 2022-05-22T10:08:06 | 251,010,104 | 0 | 0 | Apache-2.0 | 2023-01-31T02:04:28 | 2020-03-29T10:54:14 | Java | UTF-8 | Python | false | false | 2,289 | 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 unde... | [
"baunsgaard@tugraz.at"
] | baunsgaard@tugraz.at |
ce2a20b6cfa253ad34430502e424c381538ed45a | 7f5fa529f558853bf127a6f8f08d954121633542 | /pdm/_vendor/halo/halo_notebook.py | de595ff9c6ba0cba51b01c395a483b668acbe9eb | [
"MIT"
] | permissive | jeverling/pdm | 60335cc9912455c17a2fbbdf468f7f39c6cf943a | 22bb6a9cba5ded7dee688770f5f48f768e09bb65 | refs/heads/main | 2023-08-29T18:01:25.444405 | 2021-11-14T13:03:18 | 2021-11-14T13:03:18 | 427,973,885 | 1 | 0 | MIT | 2021-11-14T16:01:12 | 2021-11-14T16:01:12 | null | UTF-8 | Python | false | false | 3,219 | py | from __future__ import absolute_import, print_function, unicode_literals
import sys
import threading
import pdm._vendor.halo.cursor as cursor
from pdm._vendor.halo import Halo
from pdm._vendor.halo._utils import colored_frame, decode_utf_8_text
class HaloNotebook(Halo):
def __init__(
self,
text... | [
"mianghong@gmail.com"
] | mianghong@gmail.com |
e060e41da085c54baadaffc2295a417a6d40a2f6 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyfile/pyfm-010/fileicon.py | d0093c6c5e2653257b83e914445cef0f5980e4b0 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,298 | py | #!/usr/bin/env python
#
# 3D File Manager in Python OpenGL, helper routines
#
import math, sys, subprocess
import gtk.gtkgl
from OpenGL.GL import *
from OpenGL.GLU import *
#from gtk.gtkgl.apputils import *
from OpenGL.GL.ARB.multitexture import *
class FileIcon():
def __init__(self, self2, fname, txt, comma... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
5244b3066e5f11804f7748f54801fe61074231b7 | b518fdfe5e0d26c384ae4d7770a1c16134640462 | /lms/migrations/0020_auto_20200820_1703.py | 2bce2e6daab456377d80864d6755f354b775400d | [] | no_license | ravichandra99/forlms | 70c43fa8e6e4475b7b18c247e490fc3d4dcb86a1 | ea43cdef75e2984b0a093ad6a0143ef730bfbab5 | refs/heads/master | 2022-12-05T23:03:54.909261 | 2020-08-24T06:21:28 | 2020-08-24T06:21:28 | 289,515,731 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | # Generated by Django 3.0.8 on 2020-08-20 11:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lms', '0019_auto_20200820_1702'),
]
operations = [
migrations.AlterField(
model_name='course',
name='faq',
... | [
"you@example.com"
] | you@example.com |
963c3c937ebbc170044186ef1b7d0d69c25594e3 | 30ac8484a6318a14c1a18994506b476522a8518f | /recipe_modules/futures/__init__.py | bde85606e48b93f60291bc6ae6239efcca9a8680 | [
"Apache-2.0"
] | permissive | Quantum-Platinum-Cloud/recipes-py | 69ee248035c4bf582088d064f1acefbf2ecedaf0 | b60bb0d221df01a41a175daf18632ec0525f20f1 | refs/heads/main | 2023-05-30T13:45:07.673046 | 2023-05-25T19:06:27 | 2023-05-25T19:06:27 | 646,251,290 | 1 | 0 | null | 2023-05-27T19:17:34 | 2023-05-27T19:17:33 | null | UTF-8 | Python | false | false | 162 | py | # Copyright 2021 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.
| [
"infra-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | infra-scoped@luci-project-accounts.iam.gserviceaccount.com |
87c28f9695b7880bf6642fae0143c7b660d07d56 | a5e5d39f42f468d35f18aab3e78c3c090046b0df | /apps/countdown_letters/utils.py | 34d0cb8777eb356f5c90822ce23bf70b8317f8e0 | [] | no_license | WayneLambert/portfolio | 66198dfc18b3f254e6bc726575903c3e8f570dc4 | 7e02165386e4784f81e15bae0325a77cf45f410d | refs/heads/main | 2023-02-04T18:08:13.559223 | 2023-01-29T14:13:59 | 2023-01-29T14:13:59 | 180,239,669 | 5 | 1 | null | 2023-02-04T07:07:10 | 2019-04-08T22:02:22 | JavaScript | UTF-8 | Python | false | false | 1,860 | py | from urllib.parse import urlencode
from django.urls import reverse
from apps.countdown_letters import logic
from apps.countdown_letters.models import LettersGame
def build_game_screen_url(num_vowels_selected: int) -> str:
"""
Builds the game screen's URL based upon the game's logic for
choosing the lett... | [
"wayne.a.lambert@gmail.com"
] | wayne.a.lambert@gmail.com |
d3c3b2c4176952ecea3c6ff9256d43ff609b77e2 | 3ab494cac87a9f3c5ba17c903ffdbba7e72c305f | /algorithm/보충/venv/Scripts/easy_install-3.6-script.py | 3eb42c94cecd12c6de91863c2165be01675d4f1b | [] | no_license | sochic2/TIL | 6036cae002ce4c4ba5e7d2175e668c664de209de | eb2709f5ac1a4b9c79dda0e647f14044c7a4fb6e | refs/heads/master | 2023-01-10T03:51:14.057387 | 2022-12-21T01:27:38 | 2022-12-21T01:27:38 | 162,229,719 | 4 | 1 | null | 2023-01-09T11:56:04 | 2018-12-18T04:23:54 | Python | WINDOWS-1256 | Python | false | false | 476 | py | #!C:\Users\student\Desktop\namki\TIL\algorithm\؛¸أو\venv\Scripts\python.exe -x
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.6'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r... | [
"netzzang12@gmail.com"
] | netzzang12@gmail.com |
f3bdb90d97b79633bf441562fe7407603ed74a15 | 3f1afc627ac4ba3b870cefd95b307e2194f3c377 | /Gabarito/Exercícios/Lista02/questao04.py | 4b57503465ad7968d3e8353e29a5897318e69dd7 | [] | no_license | valeriacavalcanti/IP-2019.2 | 5e800430131c80979aadbc3481f0bcb07c08921f | 8d796bea2a4892f38c5278069233f5bbb00d4510 | refs/heads/master | 2020-08-06T22:24:34.416129 | 2019-12-11T15:02:44 | 2019-12-11T15:02:44 | 213,180,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | n1 = 0
n2 = 1
qtde = int(input('Quantidade: '))
for i in range(qtde):
print(n1, '', end='')
n1, n2 = n2, n1
n2 = n1 + n2
print() | [
"valeria.cavalcanti@ifpb.edu.br"
] | valeria.cavalcanti@ifpb.edu.br |
12a2f8fa71fdc51df7e8e9b65d16e8c5fbee75ca | 7ec91f8b8342b1ab62d315424f43588a13dda307 | /solu/225. Implement Stack using Queues.py | 2408835fcf98d461605bfbc7acf78815f82dad2a | [] | no_license | coolmich/py-leetcode | bbd001a1cb41b13cd0515d1b764ec327dfaaa03c | 3129438b032d3aeb87c6ac5c4733df0ebc1272ba | refs/heads/master | 2020-05-21T08:44:46.564419 | 2016-09-15T15:45:08 | 2016-09-15T15:45:08 | 60,917,444 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | from collections import deque
class Stack(object):
def __init__(self):
"""
initialize your data structure here.
"""
self.q = deque([])
self.sz = 0
def push(self, x):
"""
:type x: int
:rtype: nothing
"""
self.q.append(x)
se... | [
"coolmich00@gmail.com"
] | coolmich00@gmail.com |
fdef99f1e3c57a1ebf30037d68abb0430da91add | 7a09af404f29389504742a3d5f1727bfbe562750 | /TrekBot_WS/build/zed-ros-wrapper/tutorials/zed_tracking_sub_tutorial/catkin_generated/pkg.develspace.context.pc.py | 4a1d4c47aeb7e2baacd1ef341fc620353217ace4 | [
"MIT"
] | permissive | Rafcin/TrekBot | 4baa2ed93b90920b36adba0b72384ac320d2de01 | d3dc63e6c16a040b16170f143556ef358018b7da | refs/heads/master | 2020-03-30T02:15:35.361254 | 2018-12-14T03:30:25 | 2018-12-14T03:30:25 | 150,622,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "zed_tracking_sub_tutorial"
PROJECT_SP... | [
"Rafcin.s@gmail.com"
] | Rafcin.s@gmail.com |
b8e63a9fbc5a3b0416566a73132e8279c3cc3cd3 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/plotly/py2/plotly/validators/contourcarpet/contours/labelfont/__init__.py | c81c9ce64d4004929b30ba1d1131b7bc3d944506 | [
"MIT",
"Apache-2.0"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 1,637 | py | import _plotly_utils.basevalidators
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(
self,
plotly_name="size",
parent_name="contourcarpet.contours.labelfont",
**kwargs
):
super(SizeValidator, self).__init__(
plotly_name=plotly... | [
"robot-piglet@yandex-team.com"
] | robot-piglet@yandex-team.com |
3ff051a1e0fbccee71a8f6395bf9a393a6840ce8 | a5f31704d64de5ceeab45811b94f43c7b9b3604e | /bullet.py | 33c7318f91337b06fd9345fe594b6a2a298f182a | [] | no_license | Zhaisan/PythonDev | 6788908f85a628bfa5340185b27e44e5fec4b3a4 | 43aca96d9df6b97651fdf16cf7b3e6d193a1c6b9 | refs/heads/master | 2023-05-09T07:19:37.364294 | 2021-05-31T14:43:49 | 2021-05-31T14:43:49 | 237,256,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | bullet.py
import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
def __init__(self, ai_settings, screen, ship):
# объект пули в текущей позиции корабля."""
super(Bullet, self).__init__()
self.screen = screen
# Создание пули в позиции (0,0) и назначение правильной поз... | [
"noreply@github.com"
] | Zhaisan.noreply@github.com |
f7392bf4d8322e9dbd1a06a364b5a14d802954af | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/b2dac080496d9534c6661a7e47f687373dd8c038-<test_zero_dim>-bug.py | 9c37521a67795f28c566fc1c46c3c2af88c2f14b | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | def test_zero_dim(self):
_test_reshape(old_shape=(4, 2, 1), new_shape=(0, 0, 0), expected_shape=(4, 2, 1))
_test_reshape(old_shape=(4, 2, 1), new_shape=(0, 0, 0), expected_shape=(4, 2, 1), arg_shape=False)
_test_reshape(old_shape=(4, 2, 1), new_shape=(0, 2, 1), expected_shape=(4, 2, 1))
_test_reshape(ol... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
0097e70179f08323f50cb8ac93f084e5942981e7 | 8011631d92166efbf5ecb2c01d02189363a174ec | /subtraction.py | 73fa13df83a5819e234afbd70eeb50f2987319f1 | [] | no_license | tsungic/w19a | e2087311a0730d7b0ea799e2856ddad54f8544d3 | 83ea4d637f9560adeefe3b3617cbf4af4f7803e8 | refs/heads/master | 2023-02-28T20:53:48.523902 | 2021-02-11T05:15:30 | 2021-02-11T05:15:30 | 337,906,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33 | py | def subtract(x,y):
return x-y | [
"you@example.com"
] | you@example.com |
5e6f738c7e99d9a32a44ca6b73d5575c431aab6b | d11c6b6b9762acda60fc094b7e8ad2754fd9b700 | /tensorflow/python/framework/auto_control_deps_test.py | 1cd10964070a486f246f6a84cafb62d9e9d18f7e | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | jprosser/tensorflow | 28ba58a811ac92e0e15aab518512cd46fbef90ea | c3f73a5f946c63b238f5412717f6aae4d4d6bf4b | refs/heads/master | 2021-10-07T16:53:58.923779 | 2021-10-01T17:23:25 | 2021-10-01T17:28:00 | 219,566,947 | 0 | 1 | Apache-2.0 | 2019-11-04T18:16:54 | 2019-11-04T18:16:53 | null | UTF-8 | Python | false | false | 27,990 | py | # Copyright 2018 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
32aa5d9cac9deb1adfdf09a485151fce534ecd73 | a3f3c625af98882a7f1775de1e6187f1ead4e32b | /playground/swarm/pso.py | 0fa9e4d29e75bad2e8c5e50770db40f8b8c213ee | [
"MIT"
] | permissive | StanJBrown/playground | e0846986af5939be77ee561794b5bd0c94a37c28 | f372c3c547d0ad34f9bdffaa2b2e93d089a3f5a4 | refs/heads/master | 2020-07-01T11:45:45.410104 | 2014-12-12T19:19:39 | 2014-12-12T19:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,542 | py | #!/usr/bin/env python2
import os
import sys
import time
from random import random
from random import uniform
sys.path.append(os.path.join(os.path.dirname(__file__), "../../"))
import matplotlib.pylab as plt
from playground.population import Population
class PSOParticle(object):
def __init__(self, **kwargs):
... | [
"chutsu@gmail.com"
] | chutsu@gmail.com |
45a709071d8ec420e128a6a4db0795c863d79579 | 2cfcc435d82455e5273c2643092cda8f641e1f50 | /portfolio/migrations/0023_auto_20190712_1402.py | 675aaabf9c944f9b8d63bcd81494b2c0faf5c96a | [] | no_license | iAnafem/My_website | bdc8804bfe099e095faa96233d138278d9a8f11b | 6cb1498809ef2027b419960544c8101649cb5c89 | refs/heads/master | 2022-12-09T15:23:32.717676 | 2019-08-22T20:03:45 | 2019-08-22T20:03:45 | 187,834,896 | 0 | 0 | null | 2022-12-08T05:51:02 | 2019-05-21T12:41:47 | Python | UTF-8 | Python | false | false | 408 | py | # Generated by Django 2.2.3 on 2019-07-12 11:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('portfolio', '0022_auto_20190712_1357'),
]
operations = [
migrations.AlterField(
model_name='projectimages',
name='de... | [
"DPronkin@mostro.ru"
] | DPronkin@mostro.ru |
1e7986478e8ef71cc2aa8e795af6d16af4a20b41 | 287a10a6f28517003728aebbd7ed097af13a8d18 | /exp_170508_after_bug_fix_in_mc/create_border_contact_figure.py | 8987102c8da185cc105167ad1679624f50405007 | [] | no_license | jhennies/nmmp_experiments | 05c78c6068fa0f6df0002e57529cd7b8d1daa456 | 7c06a5818a5176fa0dc17a42ba22b2262239d91d | refs/heads/master | 2021-04-06T12:01:25.537695 | 2017-09-22T13:42:51 | 2017-09-22T13:42:51 | 83,289,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py |
from multicut_src.false_merges.compute_border_contacts import compute_border_contacts_old
from multicut_src import load_dataset
import os
import vigra
from multicut_src import ExperimentSettings
from pipeline import find_false_merges
# TODO Change here
from init_exp_splB_z0 import meta_folder, project_folder, sourc... | [
"julianhennies@hotmail.de"
] | julianhennies@hotmail.de |
1507896221705c44fb7ce9ab7818ac2b66f65fd7 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02682/s859546484.py | cba7ac8502d2fc8816e0d58c1f99f1e9a8ff57f7 | [] | 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 | 184 | py | A, B, C, K = map(int, input().split())
if((K-A)>0):
Y = K-A
else:
print(K)
exit()
if((Y-B)>0):
Z = Y-B
else:
Z = 0
X = A + 0 * Y + (-1) * Z
print(X)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d664c90d8aebc67f3b56264fc249bd376fb266fe | efb1eb654d3477b411f82f83762796372b5c803b | /src/config/django/__init__.py | e2581d7f443403883d115c08422b6f43ce23640a | [
"MIT"
] | permissive | Rydra/mastermind-api | d9bcc6857fe4e3ad2a77560babd64a5d8ded59b7 | 850963b472644dd66b042223ffd86726af60bcda | refs/heads/master | 2023-02-22T03:10:49.589415 | 2022-12-29T14:37:08 | 2022-12-29T14:37:08 | 192,472,100 | 0 | 0 | MIT | 2023-02-15T20:28:40 | 2019-06-18T05:33:59 | Python | UTF-8 | Python | false | false | 161 | py | from split_settings.tools import include
from config.settings import Settings
settings = Settings()
ENVIRONMENT = settings.env
include("base.py", "local.py")
| [
"davigetto@gmail.com"
] | davigetto@gmail.com |
d553a694c1bc0ece302e0020fb2752ee528044af | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-monitor/azure/mgmt/monitor/models/diagnostic_settings_resource_collection.py | 396b3e7b7afb2b9f28ec3a523a1fe743d47e6fbd | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 1,040 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
d0f861cc95b97c0247df14a8af581cee071c46e6 | 3dfb2fcf1236eebc1e306ec6c071a8b02441c597 | /tests/test_api.py | 6c9544f2816beb6bddcc947a280d3b981569de14 | [
"Apache-2.0"
] | permissive | pombredanne/bowl | fdb10e2b824246adcdced718d5eded10ba840c33 | 3f7765a85c9b2954f7d40f919f18573f24a46580 | refs/heads/master | 2021-01-16T17:58:23.241810 | 2014-12-24T06:46:18 | 2014-12-24T06:46:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,719 | py | """
This module is the test suite of the API for bowl.
Created on 27 July 2014
@author: Charlie Lewis
"""
import os
import pkg_resources
import requests
import sys
from bowl import api
class Object(object):
pass
class TestClass:
"""
This class is responsible for all tests in the API.
"""
def sta... | [
"clewis@iqt.org"
] | clewis@iqt.org |
85f3359e9fb29b9c128520c9c5bbd5763fe522d9 | 04b245c8fb6bb09eeb6d8ee962f924d656b4292e | /datumaro/tests/test_voc_format.py | de58ce40ce4f90028f8cc4dba27f13778a0ca0e0 | [
"MIT"
] | permissive | researchapps/cvat | 11b57a59bd6fdca1f899c744526035b43f9f3891 | eb896a1bdd69e5b624b1178c3dc203d95e787dfe | refs/heads/develop | 2020-12-22T15:43:51.072769 | 2020-03-01T19:27:53 | 2020-03-01T19:27:53 | 236,845,460 | 1 | 1 | NOASSERTION | 2020-03-01T18:46:22 | 2020-01-28T21:26:33 | null | UTF-8 | Python | false | false | 23,978 | py | import cv2
import numpy as np
import os
import os.path as osp
from xml.etree import ElementTree as ET
import shutil
from unittest import TestCase
from datumaro.components.extractor import (Extractor, DatasetItem,
AnnotationType, BboxObject, LabelCategories,
)
import datumaro.components.formats.voc as VOC
from dat... | [
"40690625+nmanovic@users.noreply.github.com"
] | 40690625+nmanovic@users.noreply.github.com |
28735579103adaecd3f593cd35e4b4f802cb9c28 | d7e0b198c216fc877ec94c4279d837bfbc6bccfc | /linkedlist/PartitionLinkedList.py | 8167452d449622e2bbb3d9c338d1a821e2931df0 | [
"MIT"
] | permissive | choiking/LeetCode | dcdb467e25ad6455156a9e2620dd98fabdf9c28b | 08a7ad6af2449e4268fce86823cbf667bbed2ae8 | refs/heads/master | 2021-07-11T15:46:01.841530 | 2017-10-12T23:34:45 | 2017-10-12T23:34:45 | 107,908,853 | 1 | 0 | null | 2017-10-22T22:48:30 | 2017-10-22T22:48:30 | null | UTF-8 | Python | false | false | 936 | py | # Definition for singly-linked list.
# Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
# You should preserve the original relative order of the nodes in each of the two partitions.
# Given 1->4->3->2->5->2 and x = 3,
# return 1->2->2->4->3->5... | [
"junior147147@yahoo.com"
] | junior147147@yahoo.com |
956bc15b1abb68df95f0d064267eda4a0caead0b | 4face76e61792656870d79740d46c3350a22e2c5 | /MedianOfTwoSortedArrays.py | 4d3c3e2a2c3040dfc8101c10b7a2f67b2b6e3917 | [] | no_license | juhideshpande/LeetCode | 268d0b8d3557d558d7dbd11ba598eaa09f16c515 | 0be5b51e409ae479284452ab24f55b7811583653 | refs/heads/master | 2023-02-17T23:26:43.326424 | 2021-01-21T04:38:05 | 2021-01-21T04:38:05 | 271,307,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,371 | py | class Solution(object):
def findMedianSortedArrays(self, nums1, nums2):
"""
:type nums1: List[int]
:type nums2: List[int]
:rtype: float
"""
m, n = len(nums1), len(nums2)
if (m > n):
return self.findMedianSortedArrays(nums2, nums1)
... | [
"noreply@github.com"
] | juhideshpande.noreply@github.com |
420c189fce6c75d1524cf77d368de8fba5389406 | 2019f400e7f081ea49103e9896824185f26faf9c | /coa_tools/operators/slot_handling.py | 73e83719bb5015e3d19044b429c8952a8f394915 | [] | no_license | Takuyax/myblendercontrib | 7c9636d8acfc1aa75889a8e53af7768759a6cd56 | c465a75bce6f7d096cca22076c4c3e92b0045106 | refs/heads/master | 2020-06-22T20:44:26.936818 | 2019-07-18T04:33:47 | 2019-07-18T04:33:47 | 198,394,845 | 0 | 0 | null | 2019-07-23T09:11:12 | 2019-07-23T09:11:11 | null | UTF-8 | Python | false | false | 9,905 | py | '''
Copyright (C) 2015 Andreas Esau
andreasesau@gmail.com
Created by Andreas Esau
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at you... | [
"Develop@Shaneware.Biz"
] | Develop@Shaneware.Biz |
c71c927d0ad65e56c35ab4e162cb2d2081b53863 | 371fe9a1fdeb62ad1142b34d732bde06f3ce21a0 | /scripts/make_loop_csv.py | a5b00e1e0c6eb16100a6d2b9acdbb25263ecf479 | [] | no_license | maickrau/rdna_resolution | 971f3b7e803565c9432be69b8e2a2852f55b8b79 | aab42310c31e655cbbc318331082fa3436d69075 | refs/heads/master | 2023-03-03T05:14:33.966930 | 2021-02-17T20:45:20 | 2021-02-17T20:45:20 | 339,851,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | #!/usr/bin/python
import sys
graphfile = sys.argv[1]
# loops from stdin
# csv to stdout
node_lens = {}
with open(graphfile) as f:
for l in f:
parts = l.strip().split('\t')
if parts[0] == 'S':
node_lens[parts[1]] = len(parts[2])
lines = []
column_vals = {}
for node in node_lens:
column_val... | [
"m_rautiainen@hotmail.com"
] | m_rautiainen@hotmail.com |
a17935821a8b08c407e1e1c9f6530ba43580d57f | e9f3abc6b50c07239264b7d2433fb8624a6dfae8 | /HydroDataDownload/ReadDatabase_SURF_CLI_CHN_MUL_DAY.py | 84e97bbd80d7ea3b137e1e8610a358b480a0321a | [] | no_license | alameday/Python | d41f3cb25a67ac6fec9047a46de91d340b99cc92 | 59251eb9b429750040f3fa57c4fdfd2ac8419380 | refs/heads/master | 2020-04-07T01:26:09.759387 | 2018-10-08T03:34:14 | 2018-10-08T03:34:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,468 | py | #! /usr/bin/env python
# coding=utf-8
# Func. : Read Database of SURF_CLI_CHN_MUL_DAY_V3.0
# Author: Liangjun Zhu
# Date : 2016-4-11
# Email : zlj@lreis.ac.cn
# Blog : http://zhulj.net/python/2016/04/11/Constructing-SURF_CLI_CHN_MUL_DAY_V3.0-database.html
import datetime
import os
import sqlite3
def g... | [
"crazyzlj@gmail.com"
] | crazyzlj@gmail.com |
0c5d394822fa436e1d98a5195894e6c3d859197d | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/automl_HPOlib/HPOlib-master/docs/source/conf.py | 9f3a4a9d2e6b16ee3550f719177d575f8b6c7a61 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 8,877 | py | # -*- coding: utf-8 -*-
#
# HPOlib documentation build configuration file, created by
# sphinx-quickstart on Fri Oct 17 17:39:41 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"659338505@qq.com"
] | 659338505@qq.com |
be7e2605e2a665d952cbcf3b01736709b9ac7bc0 | af5d9d3d1596ada9e3d162d12912f03c58305de3 | /scripts/Conference2021.py | 42e26e1a6bc45d8969d39a1d4d10e0d17cb00983 | [] | no_license | Oz-Oguz/bpy-scripting | 8db40c6750aeae8740269621ad9fda754df8fb89 | 938f9eb2b76d26009af252457601db018cb428f2 | refs/heads/main | 2023-08-23T05:36:08.046618 | 2021-10-14T11:12:09 | 2021-10-14T11:14:07 | 366,370,457 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,303 | py | import bpy
import bmesh
import numpy as np
import sys, os
import re
import time
dirname = os.path.dirname(os.path.realpath(__file__+"/.."))
sys.path.append(dirname)
from src.Utils import *
from src.RaiAnim import *
from src.Camera import *
time_start_script = time.process_time()
####################################... | [
"andreas.orthey@gmx.de"
] | andreas.orthey@gmx.de |
e2e88c41fcb82cba6f6b2533f7d4532d42c84a36 | 0a7d49300a547eecc823b78a891057f1017db1b2 | /rabbitmq/fanout_rec.py | e041a3d36ed001c4e471e104b35850cdfe3400c3 | [] | no_license | PeterZhangxing/codewars | f315b2ce610207e84a2f0927bc47b4b1dd89bee4 | 8e4dfaaeae782a37f6baca4c024b1c2a1dc83cba | refs/heads/master | 2020-09-22T12:09:59.419919 | 2020-03-02T12:52:55 | 2020-03-02T12:52:55 | 224,330,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | import pika
credentials = pika.PlainCredentials('zx2005', 'redhat')
# 使用上面定义的用户名密码,连接远程的队列服务器
connection = pika.BlockingConnection(pika.ConnectionParameters(
"10.1.1.128",
credentials=credentials
))
# 在tcp连接基础上,建立rabbit协议连接
channel = connection.channel()
# 申明一个广播类型的交换器
channel.exchange_declare(exchange='log... | [
"964725349@qq.com"
] | 964725349@qq.com |
67316c99dc3b31b9eb2fb8f6fffd399a5f6f62fb | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/program/qiskit/QC/startQiskit_QC108.py | d99f75a7d7cceec4efb22f76cc195c74e2336e37 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | # qubit number=2
# total number=8
import cirq
import qiskit
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
3af0de1078602eb1f3aefb95f8e1cf7963429092 | 47b71ff8a12367c10573e58289d6abbd41c2436f | /android/build/tools/releasetools/common.py | 30ffab38faab92b96f5a6f2b019841c94567bf9c | [
"Apache-2.0"
] | permissive | BPI-SINOVOIP/BPI-A31S-Android | d567fcefb8881bcca67f9401c5a4cfa875df5640 | ed63ae00332d2fdab22efc45a4a9a46ff31b8180 | refs/heads/master | 2022-11-05T15:39:21.895636 | 2017-04-27T16:58:45 | 2017-04-27T16:58:45 | 48,844,096 | 2 | 4 | null | 2022-10-28T10:10:24 | 2015-12-31T09:34:31 | null | UTF-8 | Python | false | false | 29,923 | py | # Copyright (C) 2008 The Android Open Source Project
#
# 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 ... | [
"mingxin.android@gmail.com"
] | mingxin.android@gmail.com |
ff632b330a5981db22ea60d8b5c3733208cdecb9 | 8034442a9778043b1d886220a3c928327b6297d4 | /common/ssh_fabric.py | ea533c2060adeb4fb30f0ffdc8d4832bf1b25f06 | [] | no_license | wangqian0818/auto_test | 5efe6d7b41ff01e6a9f10211674f55e195484a1c | 803a485d9720f090f7fa5d4482092cc4e7d9aa73 | refs/heads/master | 2023-08-24T01:27:40.956398 | 2021-11-02T02:12:14 | 2021-11-02T02:12:14 | 367,355,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,534 | py | #!/usr/bin/env python
# coding: utf-8
# @TIME : 2021/9/1 12:41
import paramiko
import sys
#
# reload(sys)
# sys.setdefaultencoding('utf8')
class Remote_Ops():
def __init__(self, hostname, ssh_port, username='', password=''):
self.hostname = hostname
self.ssh_port = ssh_port
self.username ... | [
"wangqianjob0818@163.com"
] | wangqianjob0818@163.com |
1760d67abcc3ecccc8485bfdfcd5101b5ad55194 | f3931179f52c7ef67fd56213fdb774f4f125731f | /Graph-InfoClust-GIC经典思路版本/kubao/tabu.py | 608e22d329ac6b369690e47e34681ff164876473 | [] | no_license | zhangbo2008/graph_research_latest | bb5e1c0d34cbed6675e5bcbfa7cc2502259cc15c | c6c363532226554429b14d09ecaaf8eeffd9c31e | refs/heads/main | 2023-03-29T15:52:20.869773 | 2021-04-06T03:06:47 | 2021-04-06T03:06:47 | 355,040,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,286 | py | import heapq # Libarary for array sorting https://docs.python.org/2/library/heapq.html
import time
import numpy as np
import math
import pandas as pd
from Solution import Solution
from input import Input
def Write2Excel(results):
solution=pd.DataFrame(results, columns=['Box Type','Box Oriantation in Blok','Bo... | [
"15122306087@163.com"
] | 15122306087@163.com |
a5cdcc75d5b039b2168a0c913f6cf22289e0757f | b7b122b7b9c35ec2f191021c3396f4790f023ed3 | /03_用列表存储的坐标_数据采集/readCSVcoordi.py | 622779a136e79f433a8d576a0b5abcfa206a0129 | [
"MIT"
] | permissive | l5d1l5/python-urbanPlanning | e7fe413441aea7df94765062fe14d331a6e0006a | f22e5b561a55ac2263aa96e8e9aff155b0aae1fd | refs/heads/master | 2020-06-22T09:54:54.895918 | 2019-06-18T02:22:14 | 2019-06-18T02:22:14 | 197,694,260 | 0 | 2 | MIT | 2019-07-19T03:19:41 | 2019-07-19T03:19:40 | null | UTF-8 | Python | false | false | 702 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Sep 12 23:30:43 2017
@author: RichieBao-caDesign设计(cadesign.cn)
"""
import csv
import numpy as np
import matplotlib.pyplot as plt
filePath=r"D:/MUBENAcademy/pythonSystem/code/baiduMapPoiLandscape.csv"
f=open(filePath)
csvReader=csv.reader(f)
coordi=[]
for row in ... | [
"noreply@github.com"
] | l5d1l5.noreply@github.com |
ae0668ec7b7478809134331aac6cbe81d5b756f5 | 2b9ac87d509ffeca59e46a2fc3373214b0c4bb98 | /StockAnalysisSystem/core/Database/SqlRw.py | 5543c04fc8aae7099369a5fa3d3769fc8a7d37a2 | [
"Apache-2.0"
] | permissive | lifg2000/StockAnalysisSystem | d94023dbb22db11d664700229ae28afed98bebc1 | b0bef50f5c1a9565e1a1f953fedbe7821601147c | refs/heads/master | 2023-03-09T08:13:59.675491 | 2021-02-22T13:48:42 | 2021-02-22T13:48:42 | 309,856,804 | 0 | 0 | Apache-2.0 | 2021-02-22T13:48:43 | 2020-11-04T02:06:38 | null | UTF-8 | Python | false | false | 11,691 | py | # !usr/bin/env python
# -*- coding:utf-8 -*-
"""
@version:
author:Sleepy
@time: 2019/01/08
@file: SqlRw.py
@function:
@modify:
"""
import sqlite3
import traceback
import numpy as np
import pandas as pd
SQL_QUERY_TABLE_COLUMN = '''SELECT p.name as ColumnName
FROM sqlite_master m
left outer join pragma_table_info((m.... | [
"yufei.qiu@schneider-electric.com"
] | yufei.qiu@schneider-electric.com |
cb82788b9ff75cd86e49bf69fbcec4111a67aa5a | 2c760f659bc7e0415142421fb6c540cfd98b6152 | /stem_word.py | 9e8999e197038c72ad4a7266f92cf25d928cf8e7 | [] | no_license | edimaudo/Natural-Language-Processing | 32c9279e2ac44eba6b2502e14a3a4759d0d889bd | c659e8b14b0dd0fd9b7d115496053d7204b1ccc5 | refs/heads/master | 2021-01-12T10:41:15.490730 | 2017-02-19T22:34:39 | 2017-02-19T22:34:39 | 72,611,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | from nltk.stem import PorterStemmer
from nltk.tokenize import sent_tokenize, word_tokenize
ps = PorterStemmer()
example_words = ["python","pythoner","pythoning","pythoned","pythonly"]
python_stem = [ps.stem(word) for word in example_words]
new_text = "It is important to by very pythonly while you are pythoning with... | [
"edimaudo@gmail.com"
] | edimaudo@gmail.com |
bc8d71d97141ecbdf9574f4745d8a3f290be2c6f | 1d2258fbd69719dfe3f3be87f2cf91d13ad655a1 | /Algorithms/Arrays & Strings/print_subarray_0_sum.py | d7ad46d13fe33149c8806a3eac42692f71478e2c | [] | no_license | skhan75/CoderAid | 83625edd52fbe8619d8cc280338da86cf93ecd80 | ec898cb59bd136c4a6cdc8a32c399896febc483e | refs/heads/master | 2023-08-31T14:22:59.778094 | 2023-08-30T05:19:09 | 2023-08-30T05:19:09 | 144,413,708 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | """
Given an array of integers, print all subarrays with 0 sum
"""
from collections import defaultdict
def print_subarrays_with_0_sum(arr):
s = defaultdict(list)
s[0].append(-1)
solution = []
sum = 0
for i in range(len(arr)):
sum += arr[i]
if (sum in s):
# find all sub... | [
"sami.ahmadkhan12@gmail.com"
] | sami.ahmadkhan12@gmail.com |
7137748277f1cd63223ab231f1e78babfc251b80 | ea2d80ac6733210b7841121ce0592a7d591cfa76 | /iprPy/workflow/prepare/relax_static.py | 524cc27724e29c9002303f32eae42c299a8a443d | [] | no_license | StriderO/iprPy | ab0b6b271bb32688dfe7a30866ecc9eaa2c7432e | 49d25adf1c9ac0a52f8fbb726efdfec0c952c989 | refs/heads/master | 2022-12-21T22:29:46.670132 | 2020-09-25T16:58:40 | 2020-09-25T16:58:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,947 | py | # Standard Python libraries
import sys
# iprPy imports
from . import prepare
calculation_name = 'relax_static'
def main(database_name, run_directory_name, lammps_command, **kwargs):
"""
Prepares relax_static calculations from reference_crystal and E_vs_r_scan
records.
buildcombos
- reference : a... | [
"lucas.hale@nist.gov"
] | lucas.hale@nist.gov |
c9dba315b8af82eb804dd2e52ca45dde170c6ae8 | 929fc8dd47b91c963c8c2f81d88e3d995a9dfc7c | /src/DP/easy/64_Minimum_Path_Sum.py | 7389b32a1fa43870020e855bad013a3e89549215 | [] | no_license | 1325052669/leetcode | fe7571a9201f4ef54089c2e078810dad11205b14 | dca40686c6a280bd394feb8e6e78d40eecf854b9 | refs/heads/master | 2023-04-01T17:53:30.605822 | 2021-04-10T15:17:45 | 2021-04-10T15:17:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from typing import List
class Solution:
def minPathSum(self, grid: List[List[int]]) -> int:
m = len(grid)
n = len(grid[0])
dp = [[0] * n for _ in range(m)]
dp[-1][-1] = grid[-1][-1]
for i in range(n - 2, -1, -1):
dp[-1][i] = dp[-1][i + 1] + grid[-1][i]
... | [
"js7995@nyu.edu"
] | js7995@nyu.edu |
76b17a6841aa8fe14ed93b17483f10d58534b25a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_pupae.py | 99416f9ced84f392cfabb21eec716d975befdd8f | [
"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 _PUPAE():
def __init__(self,):
self.name = "PUPAE"
self.definitions = pupa
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['pupa']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
fbac1c282e8dd5a8c6c3876e5f54ef6e3c44cdf8 | 7d096568677660790479d87c22b47aae838ef96b | /stubs/System/Windows/Media/Animation_parts/FillBehavior.pyi | 15af9862d0aa4e8dff7d4511c4d3fa4002704cfe | [
"MIT"
] | permissive | NISystemsEngineering/rfmx-pythonnet | 30adbdd5660b0d755957f35b68a4c2f60065800c | cd4f90a88a37ed043df880972cb55dfe18883bb7 | refs/heads/master | 2023-02-04T00:39:41.107043 | 2023-02-01T21:58:50 | 2023-02-01T21:58:50 | 191,603,578 | 7 | 5 | MIT | 2023-02-01T21:58:52 | 2019-06-12T16:02:32 | Python | UTF-8 | Python | false | false | 1,045 | pyi | class FillBehavior(Enum,IComparable,IFormattable,IConvertible):
"""
Specifies how a System.Windows.Media.Animation.Timeline behaves when it is outside its active period but its parent is inside its active or hold period.
enum FillBehavior,values: HoldEnd (0),Stop (1)
"""
def __eq__(self,*args):
""" ... | [
"sean.moore@ni.com"
] | sean.moore@ni.com |
9b82980d0ba80121a3e74d36257439bd9ad7a282 | e27333261b8e579564016c71d2061cc33972a8b8 | /.history/api/IR_engine_20210726210035.py | e231b53c33eec2a63c2f86870be7824dac22af35 | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,990 | py | import pandas as pd
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.metrics.pairwise import cosine_similarity
from sklearn.metrics.pairwise import euclidean_distances
from nltk.stem import PorterStemmer
from nltk.tok... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
9a9d2b165bcf57f9c995dc84c76a5a4c0ce28848 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_048/ch41_2020_04_01_00_06_34_049221.py | cd859ef2d7ab02257d808cf886da81b08617b92a | [] | 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 | 157 | py | def zera_negativos(x):
t=0
i=len(x)
while t<i:
if x[t]<0:
del x[t]
x.insert(t,0)
t=t+1
return(x) | [
"you@example.com"
] | you@example.com |
3ad9a37e9e171f8ce39f37f8c3144b8607c507e5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02743/s099779834.py | 4b687207109d093383b7555f1da3abd4b8869ca0 | [] | 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 | 155 | py | from decimal import *
import math
getcontext().prec=1000
a,b,c=map(int,input().split())
if a+b+2*Decimal(a*b).sqrt()<c:
print("Yes")
else:
print("No")
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
70a01c59b4b664ef0db8aafc1fd97e28296a1324 | 7b91755b1c777248050f3cadf23ed34d1f10adef | /Section8/60.py | a2fc429546aa3f6d74048e164cf5b4b61fb82a4c | [] | no_license | JAntonioMarin/PythonBootcamp | ef2976be0204df44e0c56a521628c73a5d274008 | 6e4af15b725913d3fda60599792e17d7d43d61d2 | refs/heads/master | 2021-01-06T16:52:57.537678 | 2020-03-26T17:36:50 | 2020-03-26T17:36:50 | 241,406,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | my_list = [1, 2, 3]
my_set = set()
print(type(my_set))
class SampleWord():
pass
my_sample = SampleWord()
print(type(my_sample))
class Dog():
def __init__(self, breed, name, spots):
# Attributes
# We take in the argument
# Assign it using self.attribute_name
self.breed = ... | [
"avalanch.psp@gmail.com"
] | avalanch.psp@gmail.com |
b501c00b45c1b813f628e512cd1de07a77c0582e | c2289635f088e8b0613900bfb85985fc9af8d20f | /programmers/lv3_스티커모으기2.py | be433342c5915f9810b8d2d260b116d2b96a24d6 | [] | no_license | gyoforit/study-algorithm | e91da5491c935731e754ac9f85074a97f8e48066 | af0c10e417f5d205048db268f7cc60b60b2c49cb | refs/heads/master | 2023-08-21T14:04:00.891937 | 2021-10-29T11:54:31 | 2021-10-29T11:54:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | def solution(sticker):
answer = []
L = len(sticker)
dp = [0] * L
if L == 1:
return sticker[0]
# 첫번째 스티커 뜯음
dp[0] = sticker[0]
dp[1] = sticker[0]
for i in range(2, L - 1):
dp[i] = max(dp[i - 2] + sticker[i], dp[i - 1])
answer.append(max(dp))
# 첫번째 스티커 안 뜯음
dp2... | [
"gyoforit@gmail.com"
] | gyoforit@gmail.com |
84b7d546ee415702bf3a0dfe5ab42fe105e80b6c | beb22b5d1584d9962aecb547692da8a2679bd172 | /code/Toolbox/DP_AlgorithmSyn.py | 759b2bad26c043020ac9e3e1ac5fc190350614b3 | [] | no_license | 356255531/ADP_Programming_Assignment | 5fb16c8dff5a884b371a89a819cd3718c0b286d2 | e8d21b7943df806f5232e37795ae3a70a84fddd1 | refs/heads/master | 2020-06-14T10:12:35.390736 | 2017-01-13T16:47:09 | 2017-01-13T16:47:09 | 75,199,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,625 | py | import numpy as np
from StateActionSpace import StateActionSpace
from Enviroment import Enviroment
__auther__ = "Zhiwei"
class DP_AlgorithmSyn(object):
"""
Parent class of DP algorithm(VI, PI)
Member function:
init_val_func_vector(val_func)
derive_policy(val_func_vector,... | [
"hanzw356255531@icloud.com"
] | hanzw356255531@icloud.com |
89ebdc3767a55b1adeb10aed9f78d4153f61cd22 | f6db8d85a3b41eed543959314d65927353a8229c | /.history/W5/restaurant/views_20201202134429.py | 2fd9b255c7fc4e77e83d886775ac37fd056818d1 | [] | no_license | NFEL/DjangoPaeez99 | d573cc8e36500f08bc104d76f7a2628062d86c2f | 621636bfb47d71f2a4f45037b7264dd5ebc7cdd7 | refs/heads/main | 2023-01-27T22:05:57.788049 | 2020-12-08T10:08:28 | 2020-12-08T10:08:28 | 304,553,353 | 1 | 2 | null | 2020-10-16T07:33:04 | 2020-10-16T07:33:03 | null | UTF-8 | Python | false | false | 1,202 | py | from django.shortcuts import render, get_object_or_404
import folium
from geolocation import geolocator
from .models import Category, Element, ElementAddress
def element_list(request, cat_id, cat_title):
category_obj = get_object_or_404(Category, id=cat_id)
print(cat_title)
elements = category_obj.eleme... | [
"nfilsaraee@gmail.com"
] | nfilsaraee@gmail.com |
dcd13b8f27011b198afbe05a69263144625e2140 | b9ca99a0244e5d5a07e0b27be8192ad01c4eda6c | /EIP/EIP_login.py | ab438374bf8e3062c20dbb32db2556a9ab704a86 | [] | no_license | Boomshakal/spider | c3fdbf18f874ec9953509e4ce984b5476d25839f | e6779a3961f48325dd4992d88f88b8b3938225d7 | refs/heads/master | 2021-06-17T06:22:19.679444 | 2021-03-05T06:33:36 | 2021-03-05T06:33:36 | 154,489,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | import csv
import json
from urllib import request, parse
from http import cookiejar
from lxml import etree
# 创建cookiejar的实例
cookie = cookiejar.CookieJar()
# 生成 cookie的管理器
cookie_handler = request.HTTPCookieProcessor(cookie)
# 创建http请求管理器
http_handler = request.HTTPHandler()
# 生成https管理器
https_handler = request.HTTPSH... | [
"362169885@qq.com"
] | 362169885@qq.com |
705f67f691d2f47f6a3da7ecc159f168f5560c10 | 7d2f933ed3c54e128ecaec3a771817c4260a8458 | /venv/Lib/site-packages/pandas/tests/indexing/test_coercion.py | e7b63769cbdbaae3a37fe9649e353e0cdb3afaad | [] | no_license | danielmoreira12/BAProject | c61dfb1d0521eb5a28eef9531a00e744bfb0e26a | 859f588305d826a35cc8f7d64c432f54a0a2e031 | refs/heads/master | 2021-01-02T07:17:39.267278 | 2020-02-25T22:27:43 | 2020-02-25T22:27:43 | 239,541,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,904 | py | import itertools
import numpy as np
import pandas as pd
import pandas._testing as tm
import pandas.compat as compat
import pytest
from typing import Dict, List
###############################################################
# Index / Series common tests which may trigger dtype coercions
##############################... | [
"danielmoreira12@github.com"
] | danielmoreira12@github.com |
4728310efd0b4e2eaa6e3535d1903dc3d22b7567 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC2091.py | 737923b2439c1fa807fa1cda167fcd2579578343 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,252 | py | # qubit number=4
# total number=35
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
bda335ed88fe441e1737f4dd3b25d75487239999 | 4da852082af72bd25f5c7016ab781d544aa3d88d | /PyQt5/uic/port_v2/load_plugin.py | 5c141ba81b810cbd6d172000529dcda39e31574a | [] | no_license | pyqt/python-qt5-mavericks | 9241ba98d63a76d1d0a490e8095e7b1d25158f8c | ffb84f9c3f0fc277cdf06a0ae430219987cf9ab4 | refs/heads/master | 2021-01-01T16:21:16.360643 | 2015-04-13T15:30:47 | 2015-04-13T15:30:47 | 33,808,029 | 4 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,519 | py | #############################################################################
##
## Copyright (c) 2015 Riverbank Computing Limited <info@riverbankcomputing.com>
##
## This file is part of PyQt5.
##
## This file may be used under the terms of the GNU General Public License
## version 3.0 as published by the Free Softw... | [
"konstruktion@gmail.com"
] | konstruktion@gmail.com |
2ad5e098cbfdc9aab82ed4a4c64b2957d0a8a24c | 56122577951c39e62571de3390613b67ea379e5c | /sample.py | e61bcc3108ef30cfa7907cd532deb3340c77ce97 | [] | no_license | nedbat/blank_prz | e29ac4b0945e805e276aa553a1bb3f1d46c53bdb | bd95bd503319c214ed00b4bbef3de7119af55c80 | refs/heads/master | 2023-06-22T04:05:40.399584 | 2020-01-25T22:46:29 | 2020-01-25T23:02:35 | 86,907,227 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | def f(n):
print("Look!: {}".format(n))
if n > 0:
f(n-1)
f(4)
| [
"ned@nedbatchelder.com"
] | ned@nedbatchelder.com |
8f3e69c784b486f684321c1493ffb4cb4592cacb | f1a6013a41ea5d49e034d1932991ef039e767e34 | /utils/pycraft/networking/connection.py | 3cdd151a106a80699845e57ca79f86954c8b7016 | [
"Apache-2.0"
] | permissive | Merrg1n/PCRC | a544c234ea1eea79bb6fb235cc610d14090d6a7f | 0af9f6d3a1f9f2e0b78b71241176968b0e5983af | refs/heads/master | 2023-01-24T01:16:57.956263 | 2020-06-18T09:10:11 | 2020-06-18T09:10:11 | 256,414,160 | 2 | 1 | Apache-2.0 | 2020-04-30T04:01:53 | 2020-04-17T05:54:22 | Python | UTF-8 | Python | false | false | 36,447 | py | from __future__ import print_function
import copy
import traceback
from collections import deque
from threading import RLock
import zlib
import threading
import socket
import timeit
import select
import sys
import json
import re
from future.utils import raise_
from .types import VarInt
from .packets import clientbou... | [
"yqx791125833@gmail.com"
] | yqx791125833@gmail.com |
d9a599f338f61afbe4051bd2a7d2602ccc66f966 | 7b1fdeb2ecac20764945c8e7222a8d4d58eec39c | /src/reviews/tests/test_js.py | 61d235f80fd5e9dc0adc2a762f8bd23e466ad84a | [
"MIT"
] | permissive | andyjia/phase | 268e8ed76e15df0590042f88415182dc4bccb414 | 7a21716f4427ea1830139a361c61bf9f4936ef20 | refs/heads/master | 2021-01-19T07:05:27.663115 | 2016-05-05T19:41:12 | 2016-05-05T19:41:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
from django.contrib.contenttypes.models import ContentType
from casper.tests import CasperTestCase
from accounts.factories import UserFactory
from categories.factories import CategoryFactory
from documents.factories import DocumentFactory
fro... | [
"thibault@miximum.fr"
] | thibault@miximum.fr |
252b94b945f484175867be66162fd9c41da8bc13 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_16487.py | b6a7d68ce588b946370a4e83da6751bb07efd245 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | # Django: Why is timezone.now() off by one day?
tzinfo=<UTC>
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
8d97914292279f7ff53414df4b74de0dac7fa867 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2725/60697/271503.py | c53cb441631cdc587a7d9bc03c1578d8bcbd51c6 | [] | 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 | 160 | py | t=int(input())
nums=[]
for i in range(t):
nums.append(int(input()))
for i in range(t):
if(nums[i]%2==0):
print("1")
else:
print("0") | [
"1069583789@qq.com"
] | 1069583789@qq.com |
186b9b7fb9c2f35bc5d4cea69b7abd64c1d13e2d | c7d5950b281e4f8063f21de151775c648664f03a | /lemur/notifications/schemas.py | 2c93d32b615ef7e246e6fec1d1b703ed1948ecf0 | [
"Apache-2.0"
] | permissive | mik373/lemur | b5cc6655cb2e361d99e175f668efb87592009cd0 | 121b72307ec101e84b9cc4090cfa3223806a5517 | refs/heads/master | 2021-01-18T15:01:32.709233 | 2016-06-14T00:22:45 | 2016-06-14T16:20:18 | 57,319,811 | 0 | 1 | null | 2016-04-28T17:03:25 | 2016-04-28T17:03:23 | Python | UTF-8 | Python | false | false | 1,707 | py | """
.. module: lemur.notifications.schemas
:platform: unix
:copyright: (c) 2015 by Netflix Inc., see AUTHORS for more
:license: Apache, see LICENSE for more details.
.. moduleauthor:: Kevin Glisson <kglisson@netflix.com>
"""
from marshmallow import fields, post_dump
from lemur.common.schema import LemurInpu... | [
"kevgliss@gmail.com"
] | kevgliss@gmail.com |
3b1adcb9f174265a46a9176f280a6c420925cff1 | 50a4af2cc044fe9fb6b2dfb4f612bdefb18153b6 | /src/players/__init__.py | 088e3caaa2aa2d151af175a6f47179b44262913e | [
"MIT"
] | permissive | pawelad/nba-rank | 45bbc2aa798c40ef811d9c617eb4768b7cebd90d | ff9f80609c25435307608002ee3b36951e337043 | refs/heads/master | 2022-07-15T15:53:01.385873 | 2016-08-14T16:48:20 | 2016-08-14T16:48:20 | 53,074,080 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | default_app_config = 'players.apps.PlayersAppConfig'
| [
"pawel.ad@gmail.com"
] | pawel.ad@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.