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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10f01cc79b094756f2803783c27f628a08c5d2ba | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/NMS-EPON-ONU-UNI-IF-ACL-APP-MIB.py | 0ae0f66114ef3aae44f6136253110f4fe413ba13 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 3,939 | py | #
# PySNMP MIB module NMS-EPON-ONU-UNI-IF-ACL-APP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/NMS-EPON-ONU-UNI-IF-ACL-APP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 20:12:16 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Pytho... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
7daa0d0d547ab9c3cba71dd3dcdf840e38722952 | c3be4b24d4e22d46fee0e22371956171f1749c6c | /tests/basics/sys1.py | a9984576bc3d377429641c208f20256a109fe71e | [
"MIT"
] | permissive | node-it/micropython | cf8475ffd8c63d4c150889df9185720360649b62 | f9f166b5624866afb4a2879f695658e47ada0d18 | refs/heads/master | 2021-01-24T00:33:19.306380 | 2015-09-14T07:37:50 | 2015-09-14T07:37:50 | 41,246,185 | 3 | 1 | null | 2015-08-23T11:02:01 | 2015-08-23T11:02:01 | null | UTF-8 | Python | false | false | 450 | py | # test sys module
import sys
print(sys.__name__)
print(type(sys.path))
print(type(sys.argv))
print(sys.version[:3])
print(sys.version_info[0], sys.version_info[1])
print(sys.byteorder in ('little', 'big'))
print(sys.maxsize > 100)
print(sys.implementation.name in ('cpython', 'micropython'))
try:
sys.exit()
excep... | [
"damien.p.george@gmail.com"
] | damien.p.george@gmail.com |
5e9a88eccaf758f39a54e535be17725e678de84e | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/a9d7efd2700f4e2d95d23262cec49fba.py | f2db793e14031cb690ad3c0958b82aab41efe8b9 | [] | 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 | 182 | py | def hey(str):
if str.strip() == '':
return 'Fine. Be that way!'
if str.isupper():
return 'Whoa, chill out!'
if str[-1:] == '?':
return 'Sure.'
return 'Whatever.'
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
23767f224598e7097060be70804c770cbb5e4fa8 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/security/azure-mgmt-security/azure/mgmt/security/v2021_06_01/operations/_assessments_operations.py | 9d5d560597f4cd5e1c00e3b0925702f02be1399d | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 22,314 | 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"
] | test-repo-billy.noreply@github.com |
17711318a96c21a99c9c3ba28b16771301336780 | d4252920cf72df6973c31dad81aacd5d9ad6d4c6 | /Magnetron.py | b9ceb15966b02489f3570c4882fad99f5b3108a5 | [] | no_license | tnakaicode/GeomSurf | e1894acf41d09900906c8d993bb39e935e582541 | 4481180607e0854328ec2cca1a33158a4d67339a | refs/heads/master | 2023-04-08T15:23:22.513937 | 2023-03-20T04:56:19 | 2023-03-20T04:56:19 | 217,652,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,496 | py | import numpy as np
import matplotlib.pyplot as plt
import sys
import os
import time
import argparse
sys.path.append(os.path.join("./"))
from src.base_occ import dispocc, set_trf
import logging
logging.getLogger('matplotlib').setLevel(logging.ERROR)
from OCC.Core.gp import gp_Pnt, gp_Vec, gp_Dir
from OCC.Core.gp impo... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
cbe0e0604bb37f736a2f6ad3efa2298acfc5e007 | c934e7c27f0e72385218a14b4e2a7e94a747a360 | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/cloudfunctions/v2alpha/cloudfunctions_v2alpha_messages.py | 2f98c8cfc19b49d183dd7ae1606065e85a101db3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PrateekKhatri/gcloud_cli | 5f74b97494df4f61816026af9460b9c4d8e89431 | 849d09dd7863efecbdf4072a504e1554e119f6ae | refs/heads/master | 2023-03-27T05:53:53.796695 | 2021-03-10T04:08:14 | 2021-03-10T04:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,685 | py | """Generated message classes for cloudfunctions version v2alpha.
Manages lightweight user-provided functions executed in response to events.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_import
from apitools.base.protorpclite import messages as _messages
fro... | [
"actions@github.com"
] | actions@github.com |
57659a1771a165416f36befc7c4b5632c278aa47 | fb16f7024e0d93ecb07c122e633c1a957a8ab645 | /django/pro8/pro8/urls.py | 9dff97d4814e374911becd770cbc068531c12568 | [] | no_license | rajeshanu/rajeshprograms | c23cf550e060040c7b336242a805e274d3305371 | 83f0fc9c4a8628bba590d1066ca93fd98137f0bc | refs/heads/master | 2020-04-04T13:17:55.986558 | 2018-11-03T06:42:51 | 2018-11-03T06:42:51 | 155,956,676 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | """pro8 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"44720126+rajeshanu@users.noreply.github.com"
] | 44720126+rajeshanu@users.noreply.github.com |
c5d8dbe72900b5a6f2d2da49db2ecea32f7d46f7 | 675c5e97a84cfda399ca74c1804e0218c43b7c70 | /xTool/reloader_helpers.py | 4645a4a02bf23c91a17574784161709e9535164b | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"Python-2.0"
] | permissive | fengzhongzhu1621/xTool | 37a232e5ea220c8e5cb48aaf6868bc9cf24181e8 | 57d745ce6be531c000a3b477c38bfdd4c2ac74e3 | refs/heads/master | 2023-07-20T22:31:50.278926 | 2023-07-18T02:29:21 | 2023-07-18T02:29:21 | 88,688,127 | 3 | 4 | Apache-2.0 | 2023-05-09T21:53:19 | 2017-04-19T01:49:20 | Python | UTF-8 | Python | false | false | 5,088 | py | # -*- coding: utf-8 -*-
import os
import signal
import subprocess
import sys
from multiprocessing import Process
from time import sleep
def _iter_module_files():
"""This iterates over all relevant Python files.
It goes through all
loaded files from modules, all files in folders of already loaded module... | [
"jinyinqiao@gmail.com"
] | jinyinqiao@gmail.com |
972a9c0b011114c455f48a45d191bafdb9cef46b | 215456f5e1e5576173d80aa7cee368128bb74ad9 | /20. Segment Trees I - Basics/segment_tree_update_range.py | a95e1e203df1f955dc5750b50f2ebc39f1856503 | [] | no_license | najeex/Competitive-Programming | 99b80c7da8335217003871cfc7205bb03d3b2194 | 1d50620681687a6d3796092cba7410f49dcbad7e | refs/heads/master | 2023-01-12T07:19:23.148177 | 2020-11-17T21:56:47 | 2020-11-17T21:56:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | def do_update_range(tree,st,end,qs,qe,inc,index):
# Out of Bound
if (qe<st or qs>end):
return
if(st == end):
tree[index]+=inc
return
mid = (st+end)//2
do_update_range(tree,st,mid,qs,qe,inc,2*index)
do_update_range(tree,mid+1,end,qs,qe,inc,2*index+1)
tree[inde... | [
"34626597+ShashankSinha98@users.noreply.github.com"
] | 34626597+ShashankSinha98@users.noreply.github.com |
ba33f79e119193eb00d97098fb141bf3162fa996 | ad4d927b05d3004cc5f835c84807a272ecff439f | /src/util/vision/recalibration2.py | 0f2750423551ce82b1cbb03122ff5b631013a761 | [] | no_license | kookmin-sw/capstone-2020-11 | 73954f8a692d3240a22ca9a81c9bede8538fabbf | 081733fb0470d83930433a61aabf9708275d64dd | refs/heads/master | 2023-03-06T23:02:14.869404 | 2022-11-09T01:44:27 | 2022-11-09T01:44:27 | 246,285,681 | 5 | 4 | null | 2023-03-04T13:53:47 | 2020-03-10T11:42:27 | C++ | UTF-8 | Python | false | false | 9,500 | py | #!/usr/bin/env python
import cv2
import numpy as np
import os
import rospy
from std_msgs.msg import Int32MultiArray
width = 640
height = 480
lower_light = np.array([0, 0, 0]) # ([0, 0, 0]
upper_light = np.array([255, 255, 140]) # [255, 255, 130] ([240, 240, 130])
edge_min = 25 # 20
edge_max = 70 # 60
centor_gap ... | [
"ksp2246@naver.com"
] | ksp2246@naver.com |
dd972508d621747c2828816f2deb7e2d3c24d719 | d0758e0ca004226cec8ad8b26c9565c98534a8b8 | /01-environment/scripts/2-convert-hours-into-seconds.py | 8a285d26240e9594370db2728adf235dd6e08846 | [] | no_license | pythoncanarias/eoi | 334d64a96afc76ac1fa10282378f291b6d8c94b3 | 349367254f85e3e4273cede067ca950913a1332c | refs/heads/master | 2023-07-06T08:00:11.366345 | 2023-06-30T15:19:33 | 2023-06-30T15:19:33 | 222,742,870 | 26 | 19 | null | 2023-06-25T16:03:46 | 2019-11-19T16:41:25 | Jupyter Notebook | UTF-8 | Python | false | false | 196 | py | seconds = 12345
seconds = seconds % (24 * 3600)
hour = seconds // 3600
seconds %= 3600
minutes = seconds // 60
seconds %= 60
result = f"{hour}:{minutes}:{seconds}"
print(result)
| [
"euribates@gmail.com"
] | euribates@gmail.com |
c05c75b1ce8c837f05b6cc4f7dfb07c3f13266e0 | aa5050aeccdd649730c1163e56e98bcd919e460d | /hash-table/1_两数之和/1_easy_两数之和.py | d767cb29155263e8901d0007b4ccc6cc17dd0d3f | [] | no_license | darrenzhang1007/Algorithm | 482ad837fc7135ba521d73f21989d2326953d506 | 8e121225b7952ef0aa45d2d4970874be944ae93a | refs/heads/master | 2022-12-02T17:44:41.934246 | 2020-08-16T15:43:42 | 2020-08-16T15:43:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | #
# @lc app=leetcode.cn id=1 lang=python3
#
# [1] 两数之和
#
# https://leetcode-cn.com/problems/two-sum/description/
#
# algorithms
# Easy (46.95%)
# Likes: 7595
# Dislikes: 0
# Total Accepted: 809.2K
# Total Submissions: 1.7M
# Testcase Example: '[2,7,11,15]\n9'
#
# 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整... | [
"785320051@qq.com"
] | 785320051@qq.com |
cc032f5c38705f9d69acfdcb9e867699247f31ac | d9e6be975abcca43f3d236d12fc3bd6ac84e3a31 | /tests/integration/goldens/logging/samples/generated_samples/logging_generated_logging_v2_config_service_v2_list_buckets_sync.py | a6b0fc001ae1be816f29a1db8fe73f810ba151fc | [
"Apache-2.0"
] | permissive | yihjenku/gapic-generator-python | 1415313a5c97c46f7aed88db20cdf6c376e6d2bd | 55e3ef1ac128dd8f22cb72c28b76a23a1c988f8c | refs/heads/master | 2023-07-18T02:42:47.711496 | 2021-08-20T23:31:09 | 2021-08-20T23:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | yihjenku.noreply@github.com |
5dab8387db92dbf58a725bfad59d2fec73191a44 | e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488 | /google_cloud_compute/komand_google_cloud_compute/actions/list_instances/action.py | 3ce658e6b3a6a8b3a0c28c4b4d769af55180aa38 | [
"MIT"
] | permissive | OSSSP/insightconnect-plugins | ab7c77f91c46bd66b10db9da1cd7571dfc048ab7 | 846758dab745170cf1a8c146211a8bea9592e8ff | refs/heads/master | 2023-04-06T23:57:28.449617 | 2020-03-18T01:24:28 | 2020-03-18T01:24:28 | 248,185,529 | 1 | 0 | MIT | 2023-04-04T00:12:18 | 2020-03-18T09:14:53 | null | UTF-8 | Python | false | false | 2,859 | py | import komand
from .schema import ListInstancesInput, ListInstancesOutput
# Custom imports below
import json
import urllib2
import urllib
class ListInstances(komand.Action):
def __init__(self):
super(self.__class__, self).__init__(
name='list_instances',
description='Retrie... | [
"jonschipp@gmail.com"
] | jonschipp@gmail.com |
bb8fbbd453de9fcaa0965f94390d370aa6db90bd | dc980bbd2bd6078f1e49004afcc710a89ed12565 | /test/functional/mining_basic.py | 141428d730985c1e36e3e8442b2d608e350b8cff | [
"MIT"
] | permissive | frankjardel/isocoin | c21408225399b33f941c303d0e66e0db264a03c2 | 36e3ce6d64839a37c45b6e17aedfb2238c3a5257 | refs/heads/master | 2020-03-28T10:11:59.484529 | 2019-07-17T17:06:11 | 2019-07-17T17:06:11 | 148,090,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,659 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2018 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test mining RPCs
- getmininginfo
- getblocktemplate proposal mode
- submitblock"""
import copy
from b... | [
"jardelfrank42@gmail.com"
] | jardelfrank42@gmail.com |
bf30e63ff5b2a51a8df26887c8bf4e54f8f1d483 | 4d199640f69c11fe1d7de14b3536acc96cd7f494 | /sleekxmpp/test/livesocket.py | 3e0f213599b7d0754c33b1869bd0fa3d845c9216 | [
"MIT"
] | permissive | andrzej-bieniek/SleekXMPP | bd0a6f1a36ff4c7580b18096a02d06d71d7980a2 | 596e135a03cd1dfd8eb27b63cdfe791d8f28317d | refs/heads/master | 2021-05-27T09:04:18.068754 | 2010-12-28T21:32:28 | 2010-12-28T21:32:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,530 | py | """
SleekXMPP: The Sleek XMPP Library
Copyright (C) 2010 Nathanael C. Fritz, Lance J.T. Stout
This file is part of SleekXMPP.
See the file LICENSE for copying permission.
"""
import socket
import threading
try:
import queue
except ImportError:
import Queue as queue
class TestLiveSocket(objec... | [
"lancestout@gmail.com"
] | lancestout@gmail.com |
b391928367aeb1f0c572852d523cfa8dffe8bd49 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/waterfall/connector/line/_color.py | 6eba1722b2077420556cbf1563bdaf8e040ebc01 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 421 | py | import _plotly_utils.basevalidators
class ColorValidator(_plotly_utils.basevalidators.ColorValidator):
def __init__(
self, plotly_name="color", parent_name="waterfall.connector.line", **kwargs
):
super(ColorValidator, self).__init__(
plotly_name=plotly_name,
parent_name... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
a6e6646451229e2b7220614636007a30013de781 | dcbef06d5a00f07756339b9e62c684dec2fee425 | /rpm/check-osc-status.py | 5d85268bc2616108a6e3b031c6a0ab223057f4c5 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Nuitka/Nuitka | f9543d8d95bfa0b81d4e60af0dfad99fb72893a4 | d87faf2f7e1d6ed9bfe4cf8c1d648f34307e33f2 | refs/heads/develop | 2023-08-28T14:00:32.861328 | 2023-08-27T09:16:45 | 2023-08-27T09:16:45 | 9,626,741 | 8,573 | 599 | Apache-2.0 | 2023-09-13T02:49:41 | 2013-04-23T15:40:33 | Python | UTF-8 | Python | false | false | 1,137 | py | #!/usr/bin/env python
# Copyright 2023, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Part of "Nuitka", an optimizing Python compiler that is compatible and
# integrates with CPython, but also works on its own.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this fi... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
58fbb2cd5b1b649f8841012594a2630156e8d9be | 97959e8f049e1877931e85b9965fc48e1d7b7616 | /p55.py | f7f447aa6212abb0db6bf7c016c7feac3596a565 | [] | no_license | mahabaleshwarabairi/mahabaleshwarabairi | 403911a7e9a0ec93730845eea6e27ee55363113f | 27935ac9165f049c48153455768709e6d8c8a374 | refs/heads/master | 2023-04-26T08:26:17.574774 | 2021-06-05T08:36:35 | 2021-06-05T08:36:35 | 351,385,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 23 15:00:58 2020
@author: Mahabaleshwara.Bairi
"""
import re
p="2004-059-559"## this
num=re.sub(r'#.*$', "",p)
print ("Phone Num:",num)
num1=re.sub(r'\D',"",p)
print ("Phone Num is:",num1) | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5ad82a9a88a2be6c11135b8bcc1433544b4f539c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/331/usersdata/283/96369/submittedfiles/funcoes1.py | 5793b2d79c4d50c83c12645f27984aef06a2263d | [] | 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 | 614 | py | # -*- coding: utf-8 -*-
a=[]
b=[]
c=[]
d=0
n=int(input('Digite o número de elementos: '))
for i in range (0,n,1):
a.append(input('a[%d]: '%(i+1)))
for i in range (0,n,1):
b.append(input('b[%d]: '%(i+1)))
for i in range (0,n,1):
c.append(input('c[%d]: '%(i+1)))
#escreva o código da função crescente aqui
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
91c2ee015fb2c7d8b8d48f30f27c54badf897285 | ef6f5f8ee33856e1dcc8e186598da805eb222576 | /run/eval_wider.py | 06e9f455a1bd13088acc2adbb506e5e5dea82da2 | [] | no_license | woolpeeker/CNet | 23616bdfcae3ea9ea0767beac525b24ee583cb6e | af923927b7385c0c4b4ac1e568611af5ae859662 | refs/heads/master | 2020-04-11T07:36:48.590687 | 2019-10-26T08:10:19 | 2019-10-26T08:10:19 | 161,616,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | import tensorflow as tf
import os, json
os.environ["CUDA_VISIBLE_DEVICES"] = "1"
import time
import tracemalloc
from models.detector import Detector, RefineDetector
from datasets.widerface import WiderEval, save_wider_result
wider_type = 'wider_val'
cfg_path = 'base.json'
cfg = json.load(open(cfg_path))
... | [
"luojiapeng1993@gmail.com"
] | luojiapeng1993@gmail.com |
8eb858c0843629ace64e9b80f07a785d64cb8b22 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-Quartz/Examples/Core Graphics/Quartz2DBasics/AppDrawing.py | a5ead4d96e9b1aeb9d8d22c4c616a7dd742b4832 | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,229 | py | import Cocoa
import UIHandling
import Quartz
import math
kOurImageFile = "ptlobos.tif"
# For best performance make bytesPerRow a multiple of 16 bytes.
BEST_BYTE_ALIGNMENT = 16
def COMPUTE_BEST_BYTES_PER_ROW(bpr):
return (bpr + (BEST_BYTE_ALIGNMENT - 1)) & ~(BEST_BYTE_ALIGNMENT - 1)
def DEGREES_TO_RADIANS(degr... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
2e6e23d9d6abc378938716f0e4436a7322c594df | 906171cc2ff7a669149d807c0e6d6db3fbea5f91 | /算法题/Leetcode/easy/Balanced_Binary_Tree.py | 44a9c050416083324e31e22ae66349332626cdf3 | [] | no_license | Deanhz/normal_works | a2942e9eab9b51d190039b659b6924fe2fba7ae9 | 7ae3d5b121bb7af38e3c7e6330ce8ff78ceaadb1 | refs/heads/master | 2020-03-25T20:51:02.835663 | 2019-02-18T16:34:44 | 2019-02-18T16:34:44 | 144,149,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Apr 21 09:40:50 2018
@author: Dean
110 easy
Given a binary tree, determine if it is height-balanced.
总结:经典,多回顾
"""
# Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
cla... | [
"258796762@qq.com"
] | 258796762@qq.com |
38036e14a4380832cac0ebfcfd3eb4c197c7bc65 | d34006106e74b1f1ed7a6075065af4fd4db57c94 | /courses/urls.py | ee8402a3bcea0b33a246b3d300023230c82bed5d | [] | no_license | charles-co/online_edu | 52756d50e4d8c67dae9b1e9a53112e8e8799c37c | 80f51883ebd1f21e4df7f987f1a5985b0d97063c | refs/heads/master | 2022-12-12T19:34:52.685870 | 2020-08-26T10:00:02 | 2020-08-26T10:00:02 | 284,412,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,648 | py | from django.conf.urls import url
from django.urls import path
from courses.views import (ManageCourseListView, CourseCreateView,
CourseDeleteView, CourseUpdateView,
CourseModuleUpdateView, ContentCreateUpdateView,
ContentDeleteView, ModuleConten... | [
"charlesboy49@gmail.com"
] | charlesboy49@gmail.com |
b1b3dfd35ca91e50686630d1385ebf65564ea43c | bf9ae1e4269952622c7f03dc86c418d21eb20ec7 | /PythonCode-OldBoy/Day6/随堂练习/09.面向对象补充1.py | cb9c91c8506f6a5a662b80f1c78bbe922528b171 | [] | no_license | ChuixinZeng/PythonStudyCode | 5692ca7cf5fe9b9ca24e9f54f6594f3a79b0ffb5 | 2986c83c804da51ef386ca419d0c4ebcf194cf8f | refs/heads/master | 2021-01-21T16:09:58.622069 | 2019-12-01T14:30:36 | 2019-12-01T14:30:36 | 91,876,874 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,734 | py | # -*- coding:utf-8 -*-
# Author:Chuixin Zeng
'''
1、什么是面向对象编程?
- 以前使用的是函数,现在是使用类和对象
2、什么是类,什么是对象,又有什么关系?
- 类就是一个个函数的集合,模块里面包着类,类里面是函数
- 有类之后,是通过对象去调用(obj = 类()),即先实例化;没有类的话是直接调用函数了
3、不会面向对象,也能实现功能,但是虽然函数编程能实现,但是比较麻烦。如果用面向对象就非常容易实现
4、JAVA和C#只支持面向对象编程,而Python可以用函数式编程,比如写脚本等
5、什么时候适用面向对象?
- 公共的功能提取出来(参考... | [
"zengchuixin@126.com"
] | zengchuixin@126.com |
1fbdda687d4ef678b42567fd78d33aac654b576b | aabfe137db175f0e070bd9342e6346ae65e2be32 | /PhysicsTools/UtilAlgos/test/testPrimaryVertexFilter_cfg.py | 06e8c871266a0b94e22bdc68db8b71679566634e | [] | no_license | matteosan1/cmssw | e67b77be5d03e826afd36a9ec5a6dc1b3ee57deb | 74f7c9a4cf24913e2a9f4e6805bb2e8e25ab7d52 | refs/heads/CMSSW_7_0_X | 2021-01-15T18:35:33.405650 | 2013-07-30T14:59:30 | 2013-07-30T14:59:30 | 11,789,054 | 1 | 1 | null | 2016-04-03T13:48:46 | 2013-07-31T11:06:26 | C++ | UTF-8 | Python | false | false | 1,391 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("Test")
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
"/store/relval/CMSSW_6_1_1-START61_V11/RelValZTT/GEN-SIM-RECO/v1/00000/0633BF33-EC76-E211-B3B6-003048F0E1BE.root"
)
)
process.maxEvents = cms.untracked.PSet( inpu... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
e654a216cec9eeb4d6b00c38da48018b1f0f353a | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/samples/traffic/traffic_scalable_sources_multicast_receivers.py | def95a197b3b1ac1ba8b2a301077e02ecd9a9225 | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | py | """Demonstrates creating a traffic item that uses scalable sources and igmp multicast receivers.
"""
from ixnetwork_restpy.testplatform.testplatform import TestPlatform
# connect to a test platform, create a session and get the root IxNetwork object
test_platform = TestPlatform('127.0.0.1', rest_port=11009)
test_pla... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
5eae74cbeddc0d8a2e8adb20a7c6afb0e9fce122 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/X/xinterium/lre-xpath.py | 410cfa9d62f97bbbe7a228bc9c04292af62a5edd | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,446 | py | import scraperwiki
import lxml.html
root = scraperwiki.scrape('http://onethingwell.org/')
content = lxml.html.etree.HTML(root)
linkage = content.xpath("/html/body/div/article/h2/a/@href")
for links in linkage:
record = { "link" : links }
scraperwiki.datastore.save(["link"], record)
#import urllib2
#proper... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
52ad32a0b5f54a1962705f64be4803dfeecc8632 | 21ec0f80b0ae4c06d06d49aa79ebbd65b1a7a576 | /helium/feed/services/icalprivateservice.py | 832e346842faf697d94dfc0058f5fe268c4f7fb8 | [
"MIT"
] | permissive | codacy-badger/platform | 0f928fc7d9cd8d03aeec00a8f88fc1bcc7914d84 | 8c0ee6073a166a2cbc3b45bd7dc2b07de63e60ba | refs/heads/master | 2020-06-28T01:53:32.417069 | 2018-04-27T18:28:21 | 2018-04-27T18:28:21 | 97,083,591 | 0 | 0 | null | 2017-07-13T05:30:53 | 2017-07-13T05:30:52 | null | UTF-8 | Python | false | false | 5,956 | py | import datetime
import logging
import icalendar
import pytz
from django.conf import settings
from django.utils import timezone
from helium.planner.models import Homework, Course
from helium.planner.services import coursescheduleservice
__author__ = "Alex Laird"
__copyright__ = "Copyright 2018, Helium Edu"
__version_... | [
"alexdlaird@gmail.com"
] | alexdlaird@gmail.com |
19453eec8c509f159e33204ba43b407c1b641f01 | fc8ab048af886289c84aa5f45e61e65cb9555c6e | /02_Double_Linked_List/Doubly_Linked_List.py | f846e7ceb7f150f20e09209055e038e41201bf6d | [] | no_license | SubhoBasak/DataStructure | c8a35b2cc8e59733804abac6a06ff81a69542490 | 1e2efc0fd3705b437c126cabacb4afe4769c40d8 | refs/heads/master | 2020-05-17T06:38:10.953020 | 2019-07-28T11:20:48 | 2019-07-28T11:20:48 | 183,563,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,690 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# Node class
class node:
def __init__(self, value = None):
self.value = value
self.nxt_node = None
self.prv_node = None
# Main linked list class
class linked_list:
def __init__(self):
self.head = None
#===========================... | [
"subhobasak50@gmail.com"
] | subhobasak50@gmail.com |
877ed3b48dda3902af5777d898230054bbcf9db6 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /RB6iWFrCd6rXWH3vi_20.py | 3d7a9cf97a45b10073e6b35d4c3fcaa634f87aec | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 895 | py |
def longest_substring(input):
sublst=[]
outputlst=[]
output=[]
result=''
input=list(input)
length=0
for n in range(1, len(input)):
if n==len(input)-1:
if int(input[n-1])%2 != int(input[n])%2:
sublst.append(input[n-1])
sublst.append(inp... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e43bbdd79dae5546951bc78ba24a7c8496cce4f9 | c720e6bb5c3a897ccef00bb4819594d7340f03c1 | /uasb_talento_humano/controllers/controllers.py | caf47096a019f2d9a6cadeec0b0a79269f8fa27a | [] | no_license | Brahim820/odoo_ec | 85978be23885ef986d3f8b3cdd5aac6cc37e95ef | 99b44fbfafca5adeea27fe4e27f219fb4a4592ba | refs/heads/master | 2020-04-12T23:30:51.028372 | 2018-07-05T22:16:11 | 2018-07-05T22:16:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # -*- coding: utf-8 -*-
from odoo import http
# class UasbTalentoHumano(http.Controller):
# @http.route('/uasb_talento_humano/uasb_talento_humano/', auth='public')
# def index(self, **kw):
# return "Hello, world"
# @http.route('/uasb_talento_humano/uasb_talento_humano/objects/', auth='public')
# ... | [
"ceduardodch@gmail.com"
] | ceduardodch@gmail.com |
3da3ae281735756eb05004f5a94c6360e4ee298a | 82072f2b075fce8815719c25dbef9a41780bf095 | /butter/payment_processors/okpay.py | 2081e4564eeff9fa37d05587f54c2dc7d21cc69e | [] | no_license | CoinGame/Brekky | 9aa22c7e4cb5319c849e1c423c2c3e3148d4a211 | d019cbc79b40da570a23f08a0bf8138d9ca16e41 | refs/heads/master | 2021-01-17T00:26:55.258661 | 2016-06-13T16:04:07 | 2016-06-13T16:04:07 | 61,204,463 | 0 | 0 | null | 2016-06-15T11:56:35 | 2016-06-15T11:56:35 | null | UTF-8 | Python | false | false | 1,081 | py |
class OkPay(object):
def __init__(self):
pass
@staticmethod
def generate_payment_url(tx, post_data, currency):
"""
generate a payment url to allow a user to send funds by this processor
:param tx: a butter Transactions object
:param post_data: the request POST data ... | [
"mj2p.sg@gmail.com"
] | mj2p.sg@gmail.com |
7d83f21a8e7d35b9414b9278519adfe849535bda | 8a452b71e3942d762fc2e86e49e72eac951b7eba | /leetcode/editor/en/[863]All Nodes Distance K in Binary Tree.py | 0a39ab9ce0c4272097cfe804461198de2b89e8e7 | [] | no_license | tainenko/Leetcode2019 | 7bea3a6545f97c678a176b93d6622f1f87e0f0df | 8595b04cf5a024c2cd8a97f750d890a818568401 | refs/heads/master | 2023-08-02T18:10:59.542292 | 2023-08-02T17:25:49 | 2023-08-02T17:25:49 | 178,761,023 | 5 | 0 | null | 2019-08-27T10:59:12 | 2019-04-01T01:04:21 | JavaScript | UTF-8 | Python | false | false | 2,072 | py | # Given the root of a binary tree, the value of a target node target, and an
# integer k, return an array of the values of all nodes that have a distance k from
# the target node.
#
# You can return the answer in any order.
#
#
# Example 1:
#
#
# Input: root = [3,5,1,6,2,0,8,null,null,7,4], target = 5, k... | [
"31752048+tainenko@users.noreply.github.com"
] | 31752048+tainenko@users.noreply.github.com |
01b7ee82ed9aa6b0d55c04e16a95e14657b7fb2a | 60654caf2633613021470d0285817343f76223e5 | /utils/WX/WX_qingbo/qingbo.py | 3759deb79104e9a19bbca6ac1bd40648abdf7ef3 | [] | no_license | whoiskx/com_code | 79460ccee973d1dfe770af3780c273e4a0f466c9 | 388b5a055393ee7768cc8525c0484f19c3f97193 | refs/heads/master | 2020-04-09T23:14:28.228729 | 2018-12-06T07:10:25 | 2018-12-06T07:10:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,185 | py | import datetime
import re
import requests
import json
import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import os
import pymysql
from send_backpack import JsonEntity, Account, Article
from pyquery import PyQuery as pq
current_dir = os.getcwd()
log_dir = os.path.join(curr... | [
"574613576@qq.com"
] | 574613576@qq.com |
4946384baf5906e41eebc2175262c3d1ff50bccc | ac32bac45df77083f4ef3115e747038a6753936c | /adapter-fusion/train_adapter/expert/multiple-choice/10k/run_multiple_choice.py | 23686bfd2281145aaf7290b11eaa743016187d19 | [] | no_license | Yujin-Yujin/rexpert | 13e1d5c4ca55664dd9fbb9a765ea5157a2e0893f | ed8628dc053194fee40e593b1cc5ec45a26c8073 | refs/heads/main | 2023-06-22T05:58:42.269923 | 2021-07-23T06:35:43 | 2021-07-23T06:35:43 | 373,423,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,343 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. 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 cop... | [
"yujin000731@yonsei.ac.kr"
] | yujin000731@yonsei.ac.kr |
65379c5690bfb6c7cffec9f732b51e8704c1916d | dc8939cec0ade08763465cb5e696acc51300b558 | /terms/sitemaps.py | e4954b26f4e16e2441cd02066acc6cb0116674ec | [] | no_license | jssevestre/django-terms | 68a8aac98ce01d7ad9d38fb7144e63ce95c602aa | b611de8338c8635a7488355b3bb965cbc9f60621 | refs/heads/master | 2021-01-16T18:10:03.845018 | 2012-12-13T20:17:53 | 2012-12-13T20:17:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.contrib.sitemaps import Sitemap
from .models import Term
class TermsSitemap(Sitemap):
changefreq = 'yearly'
priority = 0.1
def items(self):
return Term.objects.all()
| [
"bordage.bertrand@gmail.com"
] | bordage.bertrand@gmail.com |
bed1815497b01a4c3e741e0c724bc27a92e9f58c | b03131e692be3f84617cc5a9073397407489725c | /algorithms/insertion_sort.py | 823b92e858a378f57941e67325faed4481722860 | [] | no_license | RW21/CS | 1ad20c534d864150c76441011735878a4bccef67 | 3dc4cee33b219e66c77f18a7d7d98fd9abd9746d | refs/heads/master | 2022-12-09T06:18:31.234442 | 2020-09-08T03:56:27 | 2020-09-08T03:56:27 | 198,140,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | def insertion_sort(target: list):
for i in range(len(target)):
j = i
while j > 0 and target[j-1] > target[j]:
target[j], target[j-1] = target[j-1], target[j]
j -= 1
| [
"rinze.watanabe.translation@gmail.com"
] | rinze.watanabe.translation@gmail.com |
c4bf4511663c31fe55fe0f4250de49ff41c87c50 | d623b8fe1b7e5d49d1c2623fc6ff0356bda50d5d | /homeassistant/components/stream/fmp4utils.py | 313f5632841553419821979be43335d25c4bc651 | [
"Apache-2.0"
] | permissive | piotr-kubiak/home-assistant | 02f1ab8195d9111c6d4c96a55715e67de6b103d9 | d32f3e359f1fabe2d79b0e07e375b3723b7cb07c | refs/heads/dev | 2023-03-03T11:08:25.871531 | 2022-08-26T19:41:41 | 2022-08-26T19:41:41 | 198,906,482 | 1 | 0 | Apache-2.0 | 2023-02-22T06:23:51 | 2019-07-25T22:00:44 | Python | UTF-8 | Python | false | false | 5,157 | py | """Utilities to help convert mp4s to fmp4s."""
from __future__ import annotations
from collections.abc import Generator
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from io import BytesIO
def find_box(
mp4_bytes: bytes, target_type: bytes, box_start: int = 0
) -> Generator[int, None, None]:
"""Fin... | [
"noreply@github.com"
] | piotr-kubiak.noreply@github.com |
684724273767766b2f19229ced552c22bfafeb0b | a1712d8de5cb6f617a0a00a1b1f66611e51a078a | /MODEL1209260000/model.py | fbd316cc19ecc23e5380b50dcf9c9b4db88630a1 | [
"CC0-1.0"
] | permissive | biomodels/MODEL1209260000 | b91ae3f90a5490c61e914492036a0d8f06c13f40 | 840c2121e69055a822f866cd3a8dcfd54bb939fc | refs/heads/master | 2021-01-10T20:47:57.130323 | 2014-10-16T05:49:45 | 2014-10-16T05:49:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | import os
path = os.path.dirname(os.path.realpath(__file__))
sbmlFilePath = os.path.join(path, 'MODEL1209260000.xml')
with open(sbmlFilePath,'r') as f:
sbmlString = f.read()
def module_exists(module_name):
try:
__import__(module_name)
except ImportError:
return False
else:
ret... | [
"stanleygu@gmail.com"
] | stanleygu@gmail.com |
989051728c2f6305625e1332d2e580b5303439c2 | 1b314747aba065a9b27a08110b3c741e76b563d3 | /SiteSaltWebsite/LearningCentre/models.py | 75b04fca2dfca73a1f582813bda1eac2dcf2c55d | [] | no_license | SiteSaltSeo/website | a9e42fe9942839fb844332235ce4b7ad464e52cc | a2c3de297bc941364adf0fbd8d1c9a7a2075520b | refs/heads/master | 2021-01-13T03:27:32.393143 | 2017-02-10T16:58:06 | 2017-02-10T16:58:06 | 77,544,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,664 | py | from django.db import models
from tinymce.models import HTMLField
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from django.db.models.signals import pre_save
from django.utils import timezone
from django.utils.text import slugify
from taggit.managers import TaggableManager
# ... | [
"miles@klarity.co.za"
] | miles@klarity.co.za |
78303de5ffa29d614c26b48531b25d9f043b7929 | 1cc54d31a4a443230668ca063bcd27179ff096c2 | /orders/migrations/0008_auto_20210614_1603.py | 766143b2e2f4f431029a06336922ac81da67d743 | [] | no_license | akhmadakhmedov/e-commerce | 8d84f0ae7acd4dc80c8afbe3ab55ed13873ef631 | 6708aa62dec08be9b18fae15125eeef266d869e3 | refs/heads/main | 2023-05-29T21:36:40.354231 | 2021-06-14T13:23:22 | 2021-06-14T13:23:22 | 370,982,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # Generated by Django 3.1 on 2021-06-14 10:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0011_auto_20210530_0826'),
('orders', '0007_auto_20210610_2029'),
]
operations = [
migrations.RemoveField(
model_... | [
"ahmedov.thy@gmail.com"
] | ahmedov.thy@gmail.com |
4ea0127ec6e8c32e957d7d551d6ffe666064fb80 | 182dd5305aedeaa197f302c0d830ab85413cdd53 | /core/controllers/viewers/ViewerWorkFlowWidget.py | 501ab69580b4c33dd4fd01fc010371b056a84765 | [
"MIT"
] | permissive | UmSenhorQualquer/workflow-editor | 016dbf47759b2572a811b80fc8bc79c88404c4ab | 6f836f99e155c2f503cf59adf4e8b8b574184e6d | refs/heads/master | 2021-01-24T18:58:13.224476 | 2017-07-20T10:00:10 | 2017-07-20T10:00:10 | 86,163,117 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,652 | py | from core.controllers.viewers.BaseViewer import BaseViewer
from core.modules.OTModuleWorkFlowItem import OTModuleWorkFlowItem
from core.modules.ModuleConnection import ModuleConnection
from PyQt4.Qt import QGLWidget
import OpenGL.GL as GL
import OpenGL.GLU as GLU
class ViewerWorkFlowWidget(QGLWidget, BaseViewer):
"... | [
"ricardo.ribeiro@neuro.fchampalimaud.org"
] | ricardo.ribeiro@neuro.fchampalimaud.org |
dd3e7631ef1e1a27729f12519c1a1f334a0e0e37 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-ddm/huaweicloudsdkddm/v1/model/list_users_request.py | 48a4cc1a3b12331cdaef8c1ed7af8de231db4d72 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,812 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListUsersRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute n... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
080575c51b1dac8c97b1b6ce3d896c14e75824c0 | 93da9de3b9d693008ba49db80c5b3e5c44e062e7 | /ord_pset/pprinting.py | e2f4aafc683de7b5930f1c7e9173cf0c47751dfb | [] | no_license | lmmx/ordered-powerset | 154dcf619be05027e1bc8e7448897f1c977fc64a | 7f54b1b4b114cf77cafd487da6445410f3f08c1c | refs/heads/master | 2022-11-15T16:59:24.703017 | 2020-07-05T21:25:10 | 2020-07-05T21:25:10 | 274,216,600 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | def pprint_tuple(tup):
pt = repr(tup).replace(", ", ",").replace(",)", ")")
return pt
| [
"louismmx@gmail.com"
] | louismmx@gmail.com |
266fcca4b8f1fe2dd8c8a1afbaf33f1e4b207757 | 8ee9c5c47268b5c683d06fcc75b101a9e69ccac3 | /python/Data Structures and Algorithms in Python Book/oop/progression.py | 54a1b9f045820896dd09fe156c505a29ece4add2 | [
"MIT"
] | permissive | gauravssnl/Data-Structures-and-Algorithms | c8103e4540735423598da88d828a705505c88de3 | 1c335c72ce514d4f95090241bbd6edf01a1141a8 | refs/heads/master | 2021-03-20T18:50:12.375933 | 2021-01-29T14:07:50 | 2021-01-29T14:07:50 | 247,225,247 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | class Progression:
"""Iterator producing a generic progression"""
def __init__(self, start=0):
self._current = start
def _advance(self):
self._current += 1
def __next__(self):
if self._current is None:
raise StopIteration()
else:
answer = se... | [
"gaurav.ssnl@gmail.com"
] | gaurav.ssnl@gmail.com |
631189ba67ca67ca428e94d598a63fb585ae6586 | 66213c48da0b752dc6c350789935fe2b2b9ef5ca | /abc/073/b.py | 49055e322ace5e54231c3feef7112fe2d1c7bf71 | [] | no_license | taketakeyyy/atcoder | 28c58ae52606ba85852687f9e726581ab2539b91 | a57067be27b27db3fee008cbcfe639f5309103cc | refs/heads/master | 2023-09-04T16:53:55.172945 | 2023-09-04T07:25:59 | 2023-09-04T07:25:59 | 123,848,306 | 0 | 0 | null | 2019-04-21T07:39:45 | 2018-03-05T01:37:20 | Python | UTF-8 | Python | false | false | 218 | py | # -*- coding:utf-8 -*-
def solve():
N = int(input())
ans = 0
for i in range(N):
l, r = list(map(int, input().split()))
ans += (r-l+1)
print(ans)
if __name__ == "__main__":
solve()
| [
"taketakeyyy@gmail.com"
] | taketakeyyy@gmail.com |
0a856fd54e08e10091639e740913e725949c9ba0 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /bPHcgMpkf9WvbwbAo_17.py | ae189b285a6add59bcac280df42b8b20906bebdd | [] | 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 | 628 | py | """
Create a function that takes a list of 10 numbers (between 0 and 9) and
returns a string of those numbers formatted as a phone number (e.g. **(555)
555-5555** ).
### Examples
format_phone_number([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]) ➞ "(123) 456-7890"
format_phone_number([5, 1, 9, 5, 5, 5, 4, 4, 6, 8]) ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
36e1e876191b5608a2fc8632cc1605ea365d48f6 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_350/ch73_2019_09_19_03_25_07_126275.py | cbd46874a7ea99a0423cbf67d40f740edc2f536d | [] | 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 | 183 | py | def remove_vogais(n):
i=0
while i < len(n):
if n[i]=='a' or 'e' or 'i' or 'o' or 'u':
del str(n[i])
i+=1
return n
| [
"you@example.com"
] | you@example.com |
0a0400bdfd132056066e3cd66032d690c636731b | 4a6c81f79121a46071ac2861f7d34a09fe25d5c3 | /swExpertAcademy/q6325_listSearch.py | 7b16e18f6dba0cfc11c94ecce522b8030412be72 | [] | no_license | ghleokim/codeTestProblems | 3faa6913b7ea1822f6fd08edba559e562499d188 | 8d329c401979cfd8d9be0480ccc5b0a22aaf7fcf | refs/heads/master | 2020-06-17T17:27:32.441855 | 2019-09-07T16:22:17 | 2019-09-07T16:22:17 | 195,992,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | #Q6325 리스트에서 특정 숫자 검색, 임의의 숫자 포함 여부 출력
def search(element, targetList):
for i in targetList:
if i == element:
return True
return False
smList = [2,4,6,8,10]
print(smList)
searchTar = [5, 10]
for tar in searchTar:
print("{0} => {1}".format(tar,search(tar,smList)))
| [
"gh.leokim@gmail.com"
] | gh.leokim@gmail.com |
274a8bc5b54bb65156e9a1643fba830ecbc62d75 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03149/s477674495.py | d640759cb7cb16949768f8d31d04f1017213075e | [] | 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 | 148 | py | pool = list(map(int, input().split()))
flag = True
for i in [1, 7, 9, 4]:
if i not in pool:
flag = False
print('YES' if flag else 'NO')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1d74987c81c74f596f41e1f69cce5ef55fdab17e | a55516ea904ff7ee77cd9a6d9639675b19c9e563 | /9/rabota/results/rabota_andreeva_ekaterina/rabota_klass.py | d44ea1941d4107122fd8fd2840538954c56437e0 | [] | no_license | aaveter/curs_2016_b | d4c33635fb05899988012b8c3dcedd5dea6f1492 | 5ad5b8b9c6f3d96debbf823b75050179d92855a6 | refs/heads/master | 2020-04-06T03:53:44.135602 | 2016-07-09T08:47:25 | 2016-07-09T08:47:25 | 58,814,616 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # coding: utf-8
# 1. Исправить ошибки в этом программном коде
n = 0
def smart_task():
n += 1
print( 'start of smart_task #{}'.format('n') )
def other_task(): ## +
param_1 = None,
param_2 = None
if param_1 == None:
return None
print... | [
"aa.veter@gmail.com"
] | aa.veter@gmail.com |
e1cf9341fecd7456d9a76c1c6e54d6787c6dbc1f | 8c85cfa6255013626fe6cef4dba4b1b85bf8fd04 | /tests/processing_components/test_rfi.py | ca7a52a11bb4e36a91c2a1e422c421e5dea306d7 | [
"Apache-2.0"
] | permissive | Yonhua/rascil | a22ffede242ab180a9aa4441b278b25bf76b53e8 | 8948ac8ae6cd563a5c381f755176af0a5eb66136 | refs/heads/master | 2020-12-11T14:58:00.146611 | 2020-01-14T14:51:03 | 2020-01-14T14:51:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,407 | py | """ Unit tests for RFI simulation
"""
import logging
import unittest
import astropy.units as u
import numpy
import numpy.testing
from astropy.coordinates import SkyCoord, EarthLocation
from rascil.processing_components.simulation import create_named_configuration
from rascil.processing_components.simulation.rfi imp... | [
"realtimcornwell@gmail.com"
] | realtimcornwell@gmail.com |
4835d640c7f395215cdbfa655c6d3132e9c56a2c | 09f8a3825c5109a6cec94ae34ea17d9ace66f381 | /cohesity_management_sdk/models/bifrost_config.py | 2c90196dabd2e958b1777a07c0dd56bafa279f98 | [
"Apache-2.0"
] | permissive | cohesity/management-sdk-python | 103ee07b2f047da69d7b1edfae39d218295d1747 | e4973dfeb836266904d0369ea845513c7acf261e | refs/heads/master | 2023-08-04T06:30:37.551358 | 2023-07-19T12:02:12 | 2023-07-19T12:02:12 | 134,367,879 | 24 | 20 | Apache-2.0 | 2023-08-31T04:37:28 | 2018-05-22T06:04:19 | Python | UTF-8 | Python | false | false | 4,366 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Cohesity Inc.
import cohesity_management_sdk.models.bifrost_subnet
class BifrostConfig(object):
"""Implementation of the 'BifrostConfig' model.
Specifies the settings of a BifrostConfig. Its used by both Request and
Response structures.
Attributes:
... | [
"naveena.maplelabs@cohesity.com"
] | naveena.maplelabs@cohesity.com |
bbc4303261f37c35f0d3dadbfd56e6706f46abd1 | 4a513ee1781ac98947cc69c340955b318af91e95 | /구현 코드/그래프 알고리즘/이분매칭.py | 79fddac362f3f5d21196ab9c42c532d050308b0b | [] | no_license | atom015/algorithm | 7843d71cee5b760acdb3b9d74f37a091133c9ced | ad94a3dd12cb23363fa401f9cc67b52b36317206 | refs/heads/master | 2023-03-05T09:35:06.282154 | 2021-02-24T18:39:42 | 2021-02-24T18:39:42 | 194,266,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 834 | py | n = int(input())
m = int(input())
arr = [[] for i in range(n+1)]
d = [0 for i in range(n+1)] #선택하는 노드
c = [False for i in range(n+1)]
#매칭성공 True, 실패한경우 False
def dfs(nd):
# 연결된 모든노드에 대해서 들어갈수있는지 시도
for i in arr[nd]:
# 이미 처리한 노드는 볼 필요가 없음
if c[i]:continue
c[i] = True
# 비어있거나 점유 노... | [
"zeezlelove@gmail.com"
] | zeezlelove@gmail.com |
cf8e9c90654c724f061666a25a014c6fc4c881cd | 0dc9968c34f74f6ff15435104806956169d6c82a | /algorithm/Bit Manipulation/counter_game.py | 8b4925870c8054de079e3841cc105e61d152b85f | [] | no_license | tasnuvaleeya/hackerRank | 5ac0e5b089e8da83980b37b1dea45def20fe02e0 | 7259324ea0692ce36c494d9b8913eef8e2211aa9 | refs/heads/master | 2021-04-09T17:37:41.769210 | 2018-04-12T13:55:56 | 2018-04-12T13:55:56 | 125,638,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | def is_power(n):
n = n/2
if n == 2:
return True
elif n > 2:
return is_power(n)
else:
return False
print(is_power(5)) | [
"tasnuva2606@gmail.com"
] | tasnuva2606@gmail.com |
b325b3694658d4ef44ae549ffd8291f680ace251 | 57eb44ce1d84aca3580e28688cf645db483d0d03 | /plots/model_explorer/plotters/bar_plot/date_distribution/__init__.py | 6ff9c2509a147ce16db92ea206c57b895d473d04 | [
"Apache-2.0"
] | permissive | TheLabbingProject/pylabber | cbfd7a6663d56f779dde96bd6e0281f5c8f06393 | 4b51065f457ab86ed311f222080187caf1979fea | refs/heads/master | 2023-04-08T05:29:08.356479 | 2023-03-29T09:06:11 | 2023-03-29T09:06:11 | 205,411,164 | 5 | 3 | Apache-2.0 | 2023-03-29T09:06:13 | 2019-08-30T15:40:47 | Python | UTF-8 | Python | false | false | 235 | py | from plots.model_explorer.plotters.bar_plot.date_distribution.configuration import (
DateDistributionConfiguration,
)
from plots.model_explorer.plotters.bar_plot.date_distribution.date_distribution import (
DateDistribution,
)
| [
"z.baratz@gmail.com"
] | z.baratz@gmail.com |
e8c1d60c415d3ee29cbd5114291d871a461cba08 | bede13ba6e7f8c2750815df29bb2217228e91ca5 | /total_payable_receivable/__init__.py | 88054b442a6206c2336a59300aa15939ec0e816e | [] | no_license | CybroOdoo/CybroAddons | f44c1c43df1aad348409924603e538aa3abc7319 | 4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14 | refs/heads/16.0 | 2023-09-01T17:52:04.418982 | 2023-09-01T11:43:47 | 2023-09-01T11:43:47 | 47,947,919 | 209 | 561 | null | 2023-09-14T01:47:59 | 2015-12-14T02:38:57 | HTML | UTF-8 | Python | false | false | 905 | py | # -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2022-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: odoo@cybrosys.com
# You can modify it under the terms of the GNU AFFERO
# GEN... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
0065b150a7869630f8a81e0f07fffaf6c8af66cc | 8f6aa9ac9c8c2e409875bbf36fbc49b3eb37d88b | /enthought/endo/output/html.py | e0777c78a3a7d169a2fa018393dde7fb58160b09 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | enthought/etsproxy | 5660cf562c810db2ceb6b592b6c12274bce96d73 | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | refs/heads/master | 2023-03-27T04:51:29.297305 | 2020-12-02T09:05:18 | 2020-12-02T09:05:18 | 1,632,969 | 3 | 1 | NOASSERTION | 2020-12-02T09:05:20 | 2011-04-18T22:29:56 | Python | UTF-8 | Python | false | false | 97 | py | # proxy module
from __future__ import absolute_import
from etsdevtools.endo.output.html import *
| [
"ischnell@enthought.com"
] | ischnell@enthought.com |
6dc1a9a9a1f98288656da50df7d912da214fa09f | 7f2f76af3f76d93c33876ddadcf7d409ac0e7cc3 | /mlflow_tools/export_import/export_run.py | 1a9788f997323654d068f5c06cbbd52141c2e46b | [] | no_license | kaleko/mlflow-tools | 8ac9013facd6a641b35125cd969b3462f1988fb0 | 2d86a9ee928728e34a1bce2a04e7793ad0a94c02 | refs/heads/master | 2021-01-07T11:38:48.389909 | 2020-01-15T19:27:01 | 2020-01-15T19:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,236 | py | """
Exports a run to a directory of zip file.
"""
import os
import shutil
import traceback
import tempfile
import mlflow
from ..common import filesystem as _filesystem
from ..common.http_client import DatabricksHttpClient
from ..common import MlflowToolsException
from ..export_import import utils
print("MLflow Vers... | [
"amesar@users.noreply.github.co"
] | amesar@users.noreply.github.co |
2ef8dc1e993c9850edbb46bfd62833493e578680 | b51f2424cc5ef59ce9eb2dcf265d17e8dff0de19 | /backend/leadmanager/leadmanager/settings.py | 400d4679b153d2bf2f47d90659a4f78c1f22c1a9 | [] | no_license | luisandia/react-django-login | 4cca4e9ba304f1627df53a2eb44ba23183609024 | c3dfad79cb58acf412e70f35d0baa5ea7c2c7d49 | refs/heads/master | 2021-02-06T01:08:29.163778 | 2020-03-04T21:56:41 | 2020-03-04T21:56:41 | 243,856,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,336 | py | """
Django settings for leadmanager project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import o... | [
"luisandiamamani@gmail.com"
] | luisandiamamani@gmail.com |
06992303131511a9a036a395f866148eb5c2edb9 | 19a4b144e8afa70931d7a6e03bad2acea3d58fec | /venv/Lib/site-packages/tableutil/cell.py | b3933a193b1c9ea162686cf91c50bf020fcd57c3 | [
"Apache-2.0"
] | permissive | avim2809/CameraSiteBlocker | 29505f8d2d36f7d402787a032a916bd0fc2c4941 | bfc0434e75e8f3f95c459a4adc86b7673200816e | refs/heads/master | 2020-11-24T17:01:05.842820 | 2019-12-26T12:55:34 | 2019-12-26T12:55:34 | 228,260,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,500 | py | # -*- coding: utf-8 -*-
import logging_helper
from future.builtins import str
from dominate import tags
from conversionutil.convert import CONVERTER, convert
from fdutil.type_check import is_list_or_dictionary
from .constants import Justify
from .helpers import (escape_jira_markup,
is_a_table)
l... | [
"avim2809@gmail.com"
] | avim2809@gmail.com |
df647ba9ca420a68ed6310a18dc14de7934223ba | 153da69b35f032f5b83a06f17008ba41a1b336b4 | /src/test/hspylib/core/config/test_properties.py | da8d53ee15806f94474529cac49a21ead328588f | [
"MIT"
] | permissive | TrendingTechnology/hspylib | 6400cadf9dfe6ab5733712dcfeccf8022d61c589 | c79a2c17e89fe21d00ccd9c1646a03407cd61839 | refs/heads/master | 2023-06-20T15:47:35.962661 | 2021-07-19T22:12:18 | 2021-07-19T23:45:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,119 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
TODO Purpose of the file
@project: HSPyLib
hspylib.test.hspylib.core.config
@file: test_properties.py
@created: Tue, 4 May 2021
@author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior"
@site: https://github.com/yorevs/hspylib
@license: MIT -... | [
"yorevs@gmail.com"
] | yorevs@gmail.com |
df5c9e59ddfd77df8d7da3aba3408b773b4e6ccf | 7d741303a0d117762de76266eb2fc4dceaa49f01 | /Classwork/12/12-13-17.py | 1a118df1e1268ac5988857f0b1eee6663b910b55 | [] | no_license | HelalChow/Pyhton-Basics | e5870c9649f03533f2364ac4a96cd07af01af360 | 7155ca26d361d92b6d7bbbbc328b683ff9aa4151 | refs/heads/master | 2021-10-19T00:22:36.714395 | 2019-02-15T21:40:52 | 2019-02-15T21:40:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | def main():
file_name = input("Please enter a filename: ")
line_num_str = (input("Please enter the line number you want: "))
try:
line_num = int(line_num_str)
in_file = open(file_name, "r")
line = get_line_number(in_file, line_num)
in_file.close()
print(line... | [
"noreply@github.com"
] | HelalChow.noreply@github.com |
a1ab221fc057b7dcc4121677314169eccea93e75 | ef54d37f8a3303013ca7469871a320d303957ed7 | /robo4.2/fusion/tests/wpst_crm/feature_tests/TBIRD/FC_POTASH/data_F117_BA51_ab.py | e8f43689e67977dde4ff3ffc45f1703e2c6572c6 | [] | no_license | richa92/Jenkin_Regression_Testing | d18badfcf16bda682dfe7bcbbd66f54a9a27a58d | 24a74926170cbdfafa47e972644e2fe5b627d8ff | refs/heads/master | 2020-07-12T10:01:59.099137 | 2019-08-27T12:14:53 | 2019-08-27T12:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,288 | py | import data_common
appliance_ip = '15.245.131.72'
RACK = 'BA51'
ENC_1 = 'CN7544044G'
ENC_2 = 'CN7545084V'
ENCLOSURE_URIS = ['ENC:' + ENC_1, 'ENC:' + ENC_2]
frame = 2
# Interconnect Bay Set
IBS = 3
# Chloride type for the IBS
ENC_CLTYPE = data_common.CHLORIDE10
REDUNDANCY = 'AB'
LE = 'LE' + '-' + REDUNDANCY
LIG_A ... | [
"akul@SAC0MKUVCQ.asiapacific.hpqcorp.net"
] | akul@SAC0MKUVCQ.asiapacific.hpqcorp.net |
bfe75adf99059a545e70bc5bbb0d1aa4f582df48 | 9044f98093b244e478d0edd1e7f2ecf43b35f353 | /src/prepare_data.py | f133c389a57be68499dadac9767c61591415df72 | [] | no_license | vodanhbk95/classification_pytorch | 8e1c14d93c2d0f06f13b21a3f31414c2a6b827fb | a6726fa13884cc3db442a6b199f4e4853e4a0e04 | refs/heads/master | 2023-02-14T16:53:31.481625 | 2021-01-06T15:04:46 | 2021-01-06T15:04:46 | 322,328,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,474 | py | from torchvision import datasets
from torchvision.transforms import transforms
from create_dataloader import CassavaDataset
import torch
from albumentations import (
HorizontalFlip, VerticalFlip, IAAPerspective, ShiftScaleRotate, CLAHE, RandomRotate90,
Transpose, ShiftScaleRotate, Blur, OpticalDistortion, Gri... | [
"you@example.com"
] | you@example.com |
ae6f1ab70ed6f33c7de736e54965d3138369a118 | b0110e27e3162e2092259dd299481de1dafb4ea8 | /elm/v1.py | 7b0eb7081a575493757961ce4e665d48c24760a4 | [
"MIT"
] | permissive | mobarski/sandbox | f9be203bf7015f6df70badd605a40172b63a90f8 | f9054fb3252488208e503a87efba5df74fc70538 | refs/heads/master | 2023-05-29T14:51:00.125028 | 2023-05-14T21:02:38 | 2023-05-14T21:02:38 | 86,854,790 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,769 | py | # code from: https://towardsdatascience.com/build-an-extreme-learning-machine-in-python-91d1e8958599
# data from: https://www.kaggle.com/oddrationale/mnist-in-csv
from time import time
t0=time()
hidden_size = 1000 # 2k:80,72 1k:28,21 500:16,8
import numpy as np
import pandas as pd
from sklearn.model_selection impor... | [
"mobarski@gmail.com"
] | mobarski@gmail.com |
43db4c45c66d9f1d184a6482f995c41e609d3005 | 981f15bb929c6721a11c31d93173985c7cc05d17 | /Chapter04_Network/gradient.py | 9062d07c2740ff49082f80f429fe785287a9dc4d | [] | no_license | LelandYan/Neural_network | e59412320498d353f816d56113c66a70ab7a75c3 | 43c898bae4a13ada955807559199f38a17c9049c | refs/heads/master | 2020-06-27T21:28:47.446323 | 2019-08-10T11:56:06 | 2019-08-10T11:56:06 | 200,054,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | # _*_ coding: utf-8 _*_
__author__ = 'LelandYan'
__date__ = '2019/8/2 9:12'
import numpy as np
def numerical_diff(f, x):
h = 1e-4
return (f(x + h) - f(x - h)) / (2 * h)
def numerical_gradient(f, x):
h = 1e-4
grad = np.zeros_like(x)
for idx in range(x.size):
temp_val = x[idx]
x[i... | [
"2721599586@qq.com"
] | 2721599586@qq.com |
a9dc18439cb622a634abe8f32f38993b61a764e0 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/v4motion/__init__.py | b9d4d0416bcbfbfc838b74e1a62485baf1edb020 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,388 | py | import bpy
import struct
from bpy.types import Panel
from bpy_extras.io_utils import ExportHelper
from bpy.props import StringProperty, BoolProperty, EnumProperty, FloatProperty, IntProperty
from bpy.types import Operator
import os, sys
"""
0.4
v4motion add on
fixed header: bytesize from 8 to 4
0.5
pdated header : ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
a722f7b6202ce8d7a461c879ec7e344a2b72462f | 7d0f27ead83bb65507bf32dc17618227d2acf1bd | /tests/estimator/classifier/EmbeddedData.py | aba8585922823fabd79fd8c83e2066ef2a286be7 | [
"MIT"
] | permissive | Jonksar/sklearn-porter | 89da14abc2dc732db93a965c805597c983f12c53 | b1a3e817a9da3466373352c3fcf354cdc646b45e | refs/heads/master | 2021-03-27T14:23:43.020209 | 2018-05-09T10:16:57 | 2018-05-09T10:16:57 | 123,267,747 | 1 | 0 | null | 2018-02-28T10:15:42 | 2018-02-28T10:15:42 | null | UTF-8 | Python | false | false | 3,332 | py | # -*- coding: utf-8 -*-
import numpy as np
class EmbeddedData():
def test_random_features__binary_data__embedded(self):
self.load_binary_data()
self._port_estimator(embed_data=True)
amin = np.amin(self.X, axis=0)
amax = np.amax(self.X, axis=0)
preds, ground_truth = [], []... | [
"darius.morawiec@nok.onl"
] | darius.morawiec@nok.onl |
f8737b42d99b3d7bee7a5a74ee32c87dbc897e65 | d8498ca05daa83f108a231c024b4efa2f4b71747 | /ex03_2.py | 9bb28cc82f2a4b8f850b72ab42ea9b2d80914e4f | [
"CC-BY-4.0",
"CC-BY-3.0"
] | permissive | antoalv19/TP_solutions | ca9baf22ca1d16bac1f1bbabdefe473bb1b0ac0a | 7c1d3b35c11cfbd9c66be9878aafa1dbe8802581 | refs/heads/master | 2020-07-03T14:31:44.626360 | 2020-01-04T20:01:27 | 2020-01-04T20:01:27 | 201,936,524 | 0 | 0 | null | 2019-08-12T13:32:04 | 2019-08-12T13:32:03 | null | UTF-8 | Python | false | false | 222 | py | def do_twice(f,v):
f(v)
f(v)
def print_twice(s):
print(s)
print(s)
do_twice(print_twice,"spam")
def do_four(f,v):
do_twice(f,v)
do_twice(f,v)
print ("--------cutting line---------")
do_four(print_twice,"four") | [
"dixingxu@gmail.com"
] | dixingxu@gmail.com |
a8d848310d08b6cd314a9f91f1cb683b01d2500c | c3e47ce05f1d6a237a03742ce431d6958ca388b2 | /uv_export/import_01.py | 0abcc1e8781bc52d4736b54915ad21ce8f3fe0e2 | [] | no_license | fsanges/subins_tutorials | 27426ac71365124c28e924c502484c5bb172f715 | 9c50ec8e3200c29f1c7141ca013cbb0a5b4f8e4e | refs/heads/master | 2020-09-16T04:38:43.696690 | 2019-11-23T13:06:51 | 2019-11-23T13:06:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | # Load (import) uv custom data format
import os
import tempfile
import json
from maya.api import OpenMaya
# Source data path
file_path = os.path.join(
tempfile.gettempdir(), 'head_test_uvs.uv')
# Read uv custom data
file = open(file_path, 'r')
data = json.load(file)
file.close()
# Store shape ... | [
"subing85@gmail.com"
] | subing85@gmail.com |
e28535d4e775e3e3c2be8b051ec1efe67f5ec7b9 | c0c535adc1b80a6292e92a2f3ec8c3a377d71c7c | /Portfolio/deep/index/views.py | efb48328be95d22a6fa01380a1959c1941507529 | [] | no_license | deeppudasaini/Django-Portfolio | 02b57b8d598db9613da95d54961185e7d02c4734 | ce65c5cb27b5c2a931400c8d39da8965276e1249 | refs/heads/main | 2023-04-20T11:07:43.793757 | 2021-05-26T16:17:02 | 2021-05-26T16:17:02 | 371,066,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from django.shortcuts import render
from index.models import Project
# Create your views here.
def home(request):
context={
'title':"Home Page",
'project_name':Project.objects.all()
};
return render(request,'index.html',context); | [
"deep.pudasaini19@my.northampton.ac.uk"
] | deep.pudasaini19@my.northampton.ac.uk |
9a5fbcfb22e0302b886475d314ada823c3ab65d4 | 54d98a0ea5b28f1bc566aa02ae665c2ed6a38caf | /src/data/datasets/pwc_rgbd_dataset.py | 42589fd83be9401738efc68c6cb0cf1f097266cb | [] | no_license | Tung-I/SceneFlow | 6dda8518c9ddbe7ae739ee879e3dd4ae2e96ac61 | 736234fed5d8d6f20064725b3a581b871b869a7f | refs/heads/master | 2020-11-27T08:26:34.912787 | 2020-01-06T13:19:50 | 2020-01-06T13:19:50 | 229,369,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,517 | py | import csv
import glob
import torch
import numpy as np
from src.data.datasets.base_dataset import BaseDataset
from src.data.transforms import compose
class PWCRGBDDataset(BaseDataset):
"""The Kidney Tumor Segmentation (KiTS) Challenge dataset (ref: https://kits19.grand-challenge.org/) for the 3D segmentation met... | [
"dong893610@gmail.com"
] | dong893610@gmail.com |
1f7b02d09709ffb6c7a56c2a863bd3965134936f | 9b342f33c7d86a307a65ecbc3221359ea9069a52 | /tests/func_utils.py | 46c8c36735dd2a947bb7825b63a877da1d67bef2 | [
"BSD-3-Clause"
] | permissive | pustotnik/zenmake | dfeade2f47372d89a75f4f6e09d6b0fff98ef0bc | b588dec4bd19a088c2cdc7157b7427974f818efc | refs/heads/master | 2023-04-19T18:33:49.569605 | 2023-04-09T16:57:59 | 2023-04-09T16:57:59 | 190,001,886 | 2 | 1 | BSD-3-Clause | 2021-09-16T05:23:08 | 2019-06-03T12:34:34 | Python | UTF-8 | Python | false | false | 15,140 | py | # coding=utf-8
#
# pylint: disable = wildcard-import, unused-wildcard-import
# pylint: disable = missing-docstring, invalid-name
# pylint: disable = unused-argument, no-member, attribute-defined-outside-init
# pylint: disable = too-many-lines, too-many-branches, too-many-statements
# pylint: disable = line-too-long
"... | [
"pustotnik@gmail.com"
] | pustotnik@gmail.com |
0ede60720b3ebffd74d555b19b2b9706976d2c44 | 088314e3bd6ca7ef34d15f2aa45b743b363641d9 | /pybind11/tests/conftest.py | 55d9d0d5369393c068a2b0f2c08442f4a1f48578 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | weituo12321/PREVALENT_R2R | 7a27d580fcbe8f72a209697d053ca3eb2013e3a0 | 868fb53d6b7978bbb10439a59e65044c811ee5c2 | refs/heads/master | 2022-11-24T00:54:32.385940 | 2020-07-24T17:56:42 | 2020-07-24T17:56:42 | 248,832,547 | 8 | 7 | MIT | 2022-11-22T02:10:54 | 2020-03-20T19:07:08 | Python | UTF-8 | Python | false | false | 6,634 | py | """pytest configuration
Extends output capture as needed by pybind11: ignore constructors, optional unordered lines.
Adds docstring and exceptions message sanitizers: ignore Python 2 vs 3 differences.
"""
import pytest
import textwrap
import difflib
import re
import sys
import contextlib
import platform
import gc
_u... | [
"weituo.hao@gmail.com"
] | weituo.hao@gmail.com |
f3b6984d58cb6a0431b28a0bb4f839672cfb07b4 | 3a93a50bf80668a6ede701534f1567c3653729b0 | /week-01/Day-01/sale_by_match.py | 9bbbbf680da17da94b6d287017fd545010247a66 | [] | no_license | Tadele01/Competitive-Programming | c16778298b6c1b4c0b579aedd1b5f0d4106aceeb | 125de2b4e23f78d2e9f0a8fde90463bed0aed70f | refs/heads/master | 2023-09-01T06:00:09.068940 | 2021-09-13T18:04:30 | 2021-09-13T18:04:30 | 325,728,258 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | def sale_by_match(l, length):
hash_map = dict()
pair = 0
for i in range(length):
if l[i] in hash_map:
v = hash_map[l[i]]
pair +=1
hash_map[l[i]] = 0
else:
hash_map[l[i]] = 1
accumlator = 0
for key in hash_map:
if hash_map[key] >... | [
"tadeleyednkachw@gmail.com"
] | tadeleyednkachw@gmail.com |
aeda73e69c94a5161f407c85a92a307356db51a2 | f5fa77d99d31d4e8fef2648b83e9d988123be118 | /hanser/models/cifar/hs_resnet/layers.py | 1867a3b54ae22ce1cb3eaa8ca3fc8e40df7bbfb7 | [] | no_license | sbl1996/hanser | 6ff5362f6909c4ba717c10b5f7baf31a41b70531 | 21c6f9470dd21a5b2e7a18318f40314a34053822 | refs/heads/master | 2022-06-04T03:46:39.034645 | 2022-05-21T03:34:08 | 2022-05-21T03:34:08 | 197,355,428 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | import tensorflow as tf
from tensorflow.keras.layers import Layer
from hanser.models.layers import Conv2d
def split2(x):
c = x.shape[-1]
return tf.split(x, [c - c // 2, c // 2], axis=-1)
class MainHSConv(Layer):
def __init__(self, channels, kernel_size, groups=1, split=5, norm='def', act='def'):
... | [
"sbl1996@126.com"
] | sbl1996@126.com |
12503e8bfca5949f16bfb84fc64a91f87754bc34 | 90a6e13ee322c088762b48e029adf33733f75398 | /procedure_tools/test.py | 8404862b74dae118b273ac16018afe93399eb88a | [] | no_license | ProzorroUKR/procedure_tools | 28021cf0eae51d79d0079b2c7cb55562de4f86bf | 7d76930baede5c1d56a409b5d8969b37c8294553 | refs/heads/master | 2023-07-24T22:58:25.489002 | 2023-07-19T10:57:33 | 2023-07-19T10:57:33 | 170,825,973 | 0 | 1 | null | 2023-07-19T10:57:34 | 2019-02-15T08:08:14 | Python | UTF-8 | Python | false | false | 5,536 | py | import pytest
try:
from unittest import mock
except ImportError:
import mock
import os
from procedure_tools.main import main
API_HOST = "API_HOST"
API_TOKEN = "API_TOKEN"
DS_HOST = "DS_HOST"
DS_USERNAME = "DS_USERNAME"
DS_PASSWORD = "DS_PASSWORD"
REQUIRED_ENV_VARIABLES = [API_HOST, API_TOKEN, DS_HOST, DS_U... | [
"smithumble@gmail.com"
] | smithumble@gmail.com |
a28c04665d1426ada7d26f223adbcf246d361db8 | 99046b0b2bca710be8588741a3f30ebc8ee8bd1a | /ask/forms.py | bb2b4896426bd1ea635a66b6501e78d04ea879d6 | [] | no_license | mmrubayet/askRubayet | f52faf54c58d35ac8cafe26c986ed31af37b89a7 | 5e6cf7bb0ef82aa1131090e6e2cfa702c4754f8f | refs/heads/master | 2020-12-23T14:24:25.878729 | 2020-09-19T06:58:16 | 2020-09-19T06:58:16 | 237,178,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from django import forms
from .models import Question, Answer
class QuesForm(forms.ModelForm):
class Meta:
model = Question
fields = ('title', 'optional_description',)
class AnswerForm(forms.ModelForm):
class Meta:
model = Answer
fields = ('author', 'text',)
| [
"m.rubayet94@gmail.com"
] | m.rubayet94@gmail.com |
b216d4ab99bdeae499c02fd85d6157c65d1e45ba | 4461af13a595982b2940e45796c336d3ba7a14ac | /python/paddle/distributed/auto_parallel/__init__.py | 835ca68df2d1c1169b9eaca767715070ca00e013 | [
"Apache-2.0"
] | permissive | Xreki/Paddle | 6659c3c5ad727bc071a302e510c9da202d4f1bf4 | 5e1ee1064052ffe285bc18e3fdeb5667824f1c20 | refs/heads/develop | 2023-08-31T18:23:12.073614 | 2023-04-24T03:44:36 | 2023-04-24T03:44:36 | 66,993,970 | 2 | 0 | Apache-2.0 | 2023-04-24T05:17:59 | 2016-08-31T02:08:14 | Python | UTF-8 | Python | false | false | 894 | py | # Copyright (c) 2021 PaddlePaddle 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 app... | [
"noreply@github.com"
] | Xreki.noreply@github.com |
ac640290d67bc548f92f270b084d1ab4329a60d8 | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project/.history/product_20211116225813.py | 991f23548be1d6e0c65202a60fcef064cfd90ee8 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 11,350 | py | import data as list_product
import random
import pandas as pd
# def __init__(self, Id, Product_code, Product_name, Brand, Year, Size):
# self.Id = Id
# self.Product_code = Product_code
# self.Product_name = Product_name
# self.Brand = Brand
# self.Year = Year
# self.Size = Size
# Thêm sản phẩ... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
88edc0255cace4901f3c970325e2cca854a98776 | 71ccdd91057fe4cc4a7422e71628c524a024a954 | /intersight_licenses.py | 6dae3fadb8afedc4c39246a4f8e6199ce79f689b | [
"MIT"
] | permissive | mrlesmithjr/intersight-rest-api | fecfd9462fa0210368ab687611094173dd5669ef | c76b66ccbddf67747130b6c069d957bd1a403d31 | refs/heads/master | 2022-12-06T04:01:41.892162 | 2020-08-28T21:12:48 | 2020-08-28T21:12:48 | 290,882,264 | 0 | 0 | null | 2020-08-27T21:09:15 | 2020-08-27T21:09:14 | null | UTF-8 | Python | false | false | 3,536 | py | #!/usr/bin/env python
"""
intersight_licenses.py - provides a class to support Cisco Intersight
interactions
author: Larry Smith Jr. (mrlesmithjr@gmail.com)
"""
import json
import argparse
import sys
import requests
from intersight_auth import IntersightAuth
# Intersight REST API Base URL
BURL = 'https... | [
"mrlesmithjr@gmail.com"
] | mrlesmithjr@gmail.com |
94bbef28e5cf9e0fe7714080ae9cab4b7076dc39 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_creosotes.py | f281672477843f5308e72be6c0bb5f4b3f014509 | [
"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 | 252 | py |
from xai.brain.wordbase.nouns._creosote import _CREOSOTE
#calss header
class _CREOSOTES(_CREOSOTE, ):
def __init__(self,):
_CREOSOTE.__init__(self)
self.name = "CREOSOTES"
self.specie = 'nouns'
self.basic = "creosote"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
604a89ff9b4855c93551ea93097868d7b7d0bf78 | f9a2e67dd2f40b37d8ff81bf6cdce47c38d2dee4 | /.c9/metadata/environment/django/django_submissions/django_assignment_005/django_assignment_005/settings.py | bd26b464b24e6cc02fea6df09930b1dd54933bda | [] | no_license | mohan277/backend_repo | 4eae065cf0fffa29866a2b549028cb8df4c97643 | 25dbb4d0f1c174b6da95f4c73737e49db9978429 | refs/heads/master | 2022-11-13T00:08:37.600743 | 2020-07-09T04:36:44 | 2020-07-09T04:36:44 | 278,259,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | {"filter":false,"title":"settings.py","tooltip":"/django/django_submissions/django_assignment_005/django_assignment_005/settings.py","undoManager":{"mark":5,"position":5,"stack":[[{"start":{"row":27,"column":17},"end":{"row":27,"column":19},"action":"insert","lines":["\"\""],"id":2}],[{"start":{"row":27,"column":18},"e... | [
"senammohanakrishna@gmail.com"
] | senammohanakrishna@gmail.com |
ad45ba528a27a4597c53f6b3f21288f5d26deba4 | a94bb9dcbafe2dfc777b6e090c83109ca204dff1 | /bins/ml/builders/build-classifier-iris.py | b2366dff8efe073c7338fbe0555bec9eaebabadd | [
"BSD-3-Clause",
"Zlib",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | dolik2019/sci-pype | 49aef691f3e4021c5027fc312b047ef4d5b0aecb | 6bff42ea4eb32d35b9f223db312e4cd0d3911100 | refs/heads/master | 2021-02-14T18:35:20.100732 | 2017-05-26T17:58:44 | 2017-05-26T17:58:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,781 | py | #!/usr/bin/env python
# Load common imports and system envs to build the core object
import sys, os
# For running inside the docker container use:
#import matplotlib
#matplotlib.use('Agg')
# Load the Environment:
os.environ["ENV_DEPLOYMENT_TYPE"] = "JustRedis"
from src.common.inits_for_python import *
###########... | [
"jay.p.h.johnson@gmail.com"
] | jay.p.h.johnson@gmail.com |
dbf2ce873af236c193a05597aa308f29e8e0bce2 | 6e8e38bcf083c28d89553f89db33a1cde80705a4 | /GraphSampling/RN.py | ad58e4bcb711e7dc4e33c57b4fa361c2baacdb57 | [] | no_license | HawkinYap/GraphAnalysis | a235357f09c82fda75fc32c3bfae1ba2feadc4db | 6a6c4a31e01c4e40f010677886b08c76cd17c2c1 | refs/heads/master | 2022-03-29T11:54:24.135045 | 2019-12-29T14:47:08 | 2019-12-29T14:47:08 | 203,481,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | import random
import networkx as nx
from random import choice
class RN():
def randomnode(self, G, size, seed):
list_nodes = list(G.nodes())
select_nodes = random.sample(list_nodes, size)
if seed in select_nodes:
induced_graph = G.subgraph(select_nodes)
else:
... | [
"Gallowsgogo@gmail.com"
] | Gallowsgogo@gmail.com |
33df90cbb5d69dd52ae2cf3585c77bba46ec6091 | 1f42ca6bbe600eefbf80cbe5c1b8485003b2cb35 | /session_06_working_files/inclass_exercises/inclass_6.19.py | de17ded64ed46d408799c75a01c47ecacfbe19de | [] | no_license | jongiles/python_data_apy | a4589e39b3a3eaed850d0177ee79f649dd3a0ee1 | 343bd649635e98897d3924041374e9ad58eb345d | refs/heads/master | 2023-05-12T22:43:16.299571 | 2021-06-07T22:00:27 | 2021-06-07T22:00:27 | 374,784,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,212 | py | # 6.19: Set PYTHONPATH environment variable to make utils.py
# importable from any directory.
# Move (don't copy) temputils.py to your Desktop. This can be
# done through the PyCharm file view or your Finder or Windows
# Explorer windows.
#
# If you are using Jupyter Notebook, for this exercise you
# must first res... | [
"jgiles@MacBook-Pro.local"
] | jgiles@MacBook-Pro.local |
8d861bbbd9c742006a2ffd283712e7454f8a2844 | d01b271b1ae7c968c1c009cd6f7dada5ef1a3a37 | /openstackclient/object/client.py | 1a5363b17c59da74c461150b2dfd54005fa43416 | [
"Apache-2.0"
] | permissive | larsks/python-openstackclient | 8724648377a6caa510e2f811be4be828f8f76376 | 9062811d10f2ab660ce38f9bd20be9c52daa9479 | refs/heads/master | 2020-12-26T02:49:28.075721 | 2013-11-21T00:02:09 | 2013-11-21T07:27:10 | 14,628,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | # Copyright 2013 Nebula Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
b529fa98f6427559cf04d97e009370bee0bf26e7 | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/sqladmin/v1/outputs.py | 941a747c2965427a7c49e56fb47c743d8d72b1e8 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 107,536 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
61de41b71af6e2cc6183efbf7b277b7cb742ec6a | 916773e4af7367022067abf2e92bc8ab7302b1e5 | /trunk/prodRoot/wwjufsdatabase/libs/html/responseObs.py | 2e6bb89fc70aeec1bd923f257490936fa4ed8e80 | [] | no_license | weijia/ufs | 814ac76a9a44a931803971cb4edcefd79c87d807 | c43cdae2dfe89b747b6970138ccdf9ddf7f766b3 | refs/heads/master | 2016-09-01T18:35:33.754862 | 2012-08-14T09:02:40 | 2012-08-14T09:02:40 | 3,439,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,654 | py | import Cookie
import StringIO
import os
def getClientIp():
return os.environ["REMOTE_ADDR"]
class html:
def __init__(self, perPage=20, startPage=1, cookie = None):
self.headFlag = False
self.out = StringIO.StringIO()
self.scriptList = []
self.embededScript = []
self.load... | [
"richardwangwang@gmail.com"
] | richardwangwang@gmail.com |
04a22116808dab3490d93e989cd95e2f45401d34 | 5a9a28b79e01a71dae8c92d1c1feaee139a92510 | /2022/2022-06/06-05/478.py | 3d58d997578c0beb7e31be076a90ed8a55646955 | [] | no_license | ez4lionky/Leetcode-practices | b81854e0ab9a9b39b6a26df6faf99bcf89860c39 | 0c28803043ea8196e564dacdbb231f6bb1693226 | refs/heads/master | 2023-02-08T03:33:42.756691 | 2023-01-21T03:31:09 | 2023-01-21T03:31:09 | 196,699,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | import random
class Solution:
def __init__(self, radius: float, x_center: float, y_center: float):
self.radius, self.x_center, self.y_center = radius, x_center, y_center
def randPoint(self) -> List[float]:
xc, yc, r = self.x_center, self.y_center, self.radius
x, y = random.uniform(xc... | [
"codex.lxy@gmail.com"
] | codex.lxy@gmail.com |
ec333c145a5bb337f50b468673a3264973383513 | e61f627e6cb3b9a630d7dc336baf456ed8ba428f | /project/Board/notice/views.py | 04e2b3059ecc8058d75049c2b0eb2f0845a78334 | [
"MIT"
] | permissive | osamhack2021/AI_PersonalAIAdjutant_Posung | cbae323162085f5040770c23aa628ff116a7635b | bec145406028f1156d5236cc0a43341cde6041e4 | refs/heads/main | 2023-08-12T15:45:20.448636 | 2021-10-11T14:37:21 | 2021-10-11T14:47:15 | 405,977,249 | 0 | 3 | MIT | 2021-10-11T13:58:00 | 2021-09-13T13:06:47 | JavaScript | UTF-8 | Python | false | false | 880 | py | from django.http import HttpResponseRedirect, Http404
from django.shortcuts import render
from django.urls import reverse
from .models import *
def notice(request):
notices = {'notices': Notice.objects.all()}
return render(request, 'notice.html', notices)
def notice_post(request):
if request.method == "... | [
"noreply@github.com"
] | osamhack2021.noreply@github.com |
f38673bc5392f1e311c9a3854f380a66b01d5cbd | 2ab7bc89bf9900faaa825a9b8caca6dd1f98e91e | /src/gtkextra.py | c6590c626182e744158a0eea479f520509ce521a | [] | no_license | simmol/Pida | 36bb0ce6f0d87d52043ad11ffbd3c3cd68fe53a1 | b58becfb0e1d230f9aa8284b13eddba8e6310cfd | refs/heads/master | 2021-01-15T21:40:18.189441 | 2005-08-05T00:00:00 | 2010-10-18T01:45:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,980 | py | # -*- coding: utf-8 -*-
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
# $Id: gtkextra.py 469 2005-07-27 22:24:01Z aafshar $
#Copyright (c) 2005 Ali Afshar aafshar@gmail.com
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (th... | [
"scraper@vim-scripts.org"
] | scraper@vim-scripts.org |
30e892aafc8cf42e100cb3a9c35497acd587550d | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1200+094/sdB_pg_1200+094_coadd.py | 33a02fa0b22046811b47c775f85a546d20d1434f | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[180.83075,9.164431], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_1200+094/sdB_pg_1200+094_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB_p... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
d6515683c446318c6e4c45143a0ff0a87321f09d | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/unsignedShort/Schema+Instance/NISTXML-SV-IV-list-unsignedShort-minLength-1-2.py | 7e3fa49027638433b165685d91d51979ebdbb08b | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 398 | py | from output.models.nist_data.list_pkg.unsigned_short.schema_instance.nistschema_sv_iv_list_unsigned_short_min_length_1_xsd.nistschema_sv_iv_list_unsigned_short_min_length_1 import NistschemaSvIvListUnsignedShortMinLength1
obj = NistschemaSvIvListUnsignedShortMinLength1(
value=[
62423,
62113,
... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
49e88b7d56cd2343c4630050a8df7240ad85f1a7 | 549270020f6c8724e2ef1b12e38d11b025579f8d | /recipes/artery-font-format/all/test_package/conanfile.py | 26110ca175735daa4da39f8ca21d4823813e09c4 | [
"MIT"
] | permissive | conan-io/conan-center-index | 1bcec065ccd65aa38b1fed93fbd94d9d5fe6bc43 | 3b17e69bb4e5601a850b6e006e44775e690bac33 | refs/heads/master | 2023-08-31T11:34:45.403978 | 2023-08-31T11:13:23 | 2023-08-31T11:13:23 | 204,671,232 | 844 | 1,820 | MIT | 2023-09-14T21:22:42 | 2019-08-27T09:43:58 | Python | UTF-8 | Python | false | false | 832 | py | from conan import ConanFile
from conan.tools.build import can_run
from conan.tools.cmake import cmake_layout, CMake
import os
# It will become the standard on Conan 2.x
class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "CMakeDeps", "CMakeToolchain", "VirtualRunE... | [
"noreply@github.com"
] | conan-io.noreply@github.com |
6e0c95d7b072bdfbffde2fa12e7a2abc261ebc65 | 82ed3e06c1714e51866cd44307502f499fe076ec | /test/messages.py | 10fcb2ac111630b19a56ad56738ab28b09c2aea0 | [
"MIT"
] | permissive | Vido/pyFirmata | f6e10f6e7fc86831ef8a325614241edabcc60e45 | f7db0389db6b14069016d315a9786600ce2bf0e5 | refs/heads/master | 2021-01-14T11:08:31.866932 | 2014-05-16T02:13:57 | 2014-05-16T02:13:57 | 19,544,771 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,607 | py | import abc
import time
from itertools import chain
import pyfirmata
from pyfirmata.util import to_two_bytes, str_to_two_byte_iter
class TestBoardHandlers(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def setUp(self):
pass
@abc.abstractmethod
def tearDown(self):
pass
... | [
"vido@usp.br"
] | vido@usp.br |
340d29da3fa9eadebab8be7f6ec4ff1c45dab58a | 3e8e1add88b0782bc64f8682b05f399638094729 | /studentteacher/migrations/0018_auto_20190912_1251.py | 4ffab1845ea5a8a08cf1e762f7c3f64dadf17076 | [] | no_license | nnish09/Task2 | 3e154c8f61ef88034cff6e1e42fdd616d2922951 | cddc23c062c81e0669b6656d7f294f61f3c05976 | refs/heads/master | 2023-04-29T12:04:14.565984 | 2019-09-23T10:52:08 | 2019-09-23T10:52:08 | 209,307,595 | 0 | 0 | null | 2023-04-21T20:37:36 | 2019-09-18T12:51:29 | CSS | UTF-8 | Python | false | false | 858 | py | # Generated by Django 2.2.5 on 2019-09-12 12:51
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('studentteacher', '0017_auto_20190912_1244'),
]
operations = [
migrations.AlterField(
model_name='assignment',
... | [
"nishtha0995@gmail.com"
] | nishtha0995@gmail.com |
03d8e22aeb5307fd46e14e1ed4e27e583144f1a5 | 9bb16f8fbf9f562f1171a3bbff8318a47113823b | /abc251/abc251_g/generate.py | 1e314f48dc36f2276276592dff97d6af3e745a01 | [] | no_license | kyamashiro/atcoder | 83ab0a880e014c167b6e9fe9457e6972901353fc | 999a7852b70b0a022a4d64ba40d4048ee4cc0c9c | refs/heads/master | 2022-06-01T03:01:39.143632 | 2022-05-22T05:38:42 | 2022-05-22T05:38:42 | 464,391,209 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | #!/usr/bin/env python3
# usage: $ oj generate-input 'python3 generate.py'
# usage: $ oj generate-input --hack-actual=./a.out --hack-expected=./naive 'python3 generate.py'
import random
# generated by oj-template v4.8.1 (https://github.com/online-judge-tools/template-generator)
def main():
N = random.randint(1, 10... | [
"kyamashiro73@gmail.com"
] | kyamashiro73@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.