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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
febb96c94ce8da0983d61e5f72ae3c876d19bac4 | a4e1093cd868cc16cf909b8f7b84832a823a97bf | /utils/criterion.py | 1d10cbdcb99de7980901e1cde9c148fb1d57396b | [] | no_license | hermanprawiro/gan-playground | 8fb7eed54314661d9d1b908fe2cb1695eb1e3881 | bf4c270ad4696d61df0dbe2afb8c9ebafb9c2ba3 | refs/heads/master | 2020-09-06T19:43:22.685332 | 2019-12-24T10:45:12 | 2019-12-24T10:45:12 | 220,529,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | import torch
import torch.nn as nn
class GANLoss(nn.Module):
def __init__(self, gan_mode, target_real_label=1.0, target_fake_label=0.0, target_fake_G_label=1.0):
super().__init__()
self.gan_mode = gan_mode
self.register_buffer('real_label', torch.tensor(target_real_label))
self.reg... | [
"herman.prawiro@gmail.com"
] | herman.prawiro@gmail.com |
e185e0a8d0306c187a69813419c3f2bffe3f8ef2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /pwAdsffHkxdhSwXKc_16.py | a9d24417389bf368548a6f4fbb949210895a81fd | [] | 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 | 48 | py |
import re
pattern = "(\w+)(?: = )(?!yes)"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
ad1476c4e3d727a594748fbd46e8750466f874b9 | f6d7c30a7ed343e5fe4859ceaae1cc1965d904b7 | /htdocs/submissions/ad1476c4e3d727a594748fbd46e8750466f874b9.py | 21655121ccb580a53180397a9efc156aa7c8ae71 | [] | no_license | pycontest/pycontest.github.io | ed365ebafc5be5d610ff9d97001240289de697ad | 606015cad16170014c41e335b1f69dc86250fb24 | refs/heads/master | 2021-01-10T04:47:46.713713 | 2016-02-01T11:03:46 | 2016-02-01T11:03:46 | 50,828,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | a=''.join
seven_seg=lambda x:a(a(' ||| _ ___ | |||'[ord('C0WY"KJaQR'[int(l)])/k%7::7]for l in x)+'\n'for k in(49,7,1))
| [
"info@pycontest.net"
] | info@pycontest.net |
0f08a7de43e780c241ac24fe25e5d88f5c7bb850 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/icicle/outsidetextfont/_family.py | 9f2822cabc11769355cd3ba0b30e64667849668e | [
"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 | 571 | py | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self, plotly_name="family", parent_name="icicle.outsidetextfont", **kwargs
):
super(FamilyValidator, self).__init__(
plotly_name=plotly_name,
parent_na... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
17f6b3138f1968e2507a1f897c7af44cf61fed90 | 0981ddfcd812cdd66f3509b4a052d30e098d8f44 | /start-content/gerando_mensagens.py | af6f574bbb6c37ef8ad9963c8f71c3fa2e19a8c7 | [] | no_license | ricardofelixmont/Udacity-Fundamentos-IA-ML | 3c49532e0a3bd662d6b5262cab056281f0020689 | dda2afc0e31ab94fef937be31b1b12685f447a71 | refs/heads/master | 2020-04-10T13:44:19.472140 | 2019-04-16T21:24:22 | 2019-04-16T21:24:22 | 161,058,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | names = input('digite os nomes: ').split().title()
assignments = input('Digite os assignments: ').split()
grades = input('Digite as notas: ').split()
message = 'Hi {},This is a reminder that you have {} assignments left to submit before you can graduate. Your current grade is {} and can increase to {} if you submit a... | [
"ricardofelix_mont@outlook.com"
] | ricardofelix_mont@outlook.com |
5a6434d9a3bdeaec69b62fd4db7eeaa128efe908 | f66da3c9293d9f680ab54cf3c562ef5dd661137c | /docs/source/examples/index.py | 731aa4fd9d3096b22bd8ae9a9f1393d90efd68fb | [
"MIT"
] | permissive | dvincentwest/gtimer | c49ef33ecdfeaf55298283cfd24953d372a3f4e5 | 2146dab459e5d959feb291821733d3d3ba7c523c | refs/heads/master | 2022-04-21T22:08:06.103426 | 2016-10-05T07:44:04 | 2016-10-05T07:44:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import gtimer as gt
import time
@gt.wrap
def some_function():
time.sleep(1)
gt.stamp('some_method')
time.sleep(2)
gt.stamp('another_function')
some_function()
gt.stamp('some_function')
time.sleep(1)
gt.stamp('another_method')
print gt.report()
| [
"adam.stooke@gmail.com"
] | adam.stooke@gmail.com |
4df46f23c7e369d02d8672af00dd27c657d333c3 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/nic_spec.py | b40e87c841b9dc1783c70313cbd1039699834425 | [
"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 | 5,520 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class NicSpec:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
420fe9952d25789d462ba42a6cd0d82c5d3005e8 | 8a1686aeeefa80afeb0aa9f45ed72a75883458c4 | /dit/divergences/maximum_correlation.py | 80b8a60874ec9a78929efb6b7f35b7813c08a5da | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | heleibin/dit | 70afd57f31be346e48b9b28c67fd6e019132ac36 | ebd0c11600e559bf34cf12a6b4e451057838e324 | refs/heads/master | 2020-09-27T07:42:15.991500 | 2019-11-23T06:10:11 | 2019-11-23T06:10:11 | 226,466,522 | 1 | 0 | BSD-3-Clause | 2019-12-07T06:26:50 | 2019-12-07T06:26:50 | null | UTF-8 | Python | false | false | 3,451 | py | """
Compute the maximum correlation:
\rho(X:Y) = max_{f, g} E(f(X)g(Y))
"""
import numpy as np
from ..exceptions import ditException
from ..helpers import normalize_rvs
svdvals = lambda m: np.linalg.svd(m, compute_uv=False)
def conditional_maximum_correlation_pmf(pmf):
"""
Compute the conditional maxi... | [
"ryangregoryjames@gmail.com"
] | ryangregoryjames@gmail.com |
867a8ce5135318155e8e9463699c47f23b4859b6 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/recoveryservices/azure-mgmt-recoveryservicesbackup/generated_samples/get_resource_guard_proxy.py | a085c61f352a1766d44f4096824fb137a79e154c | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 1,712 | 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"
] | kurtzeborn.noreply@github.com |
51ec22fa4a3789ebde8822eb40cf8fb7046df5fc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02646/s812265777.py | bf9bfeae85ecdf39cf4a7df800b93778ecaceb82 | [] | 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 | 717 | py | A, V = map(int, input().split(" "))
B, W = map(int, input().split(" "))
T = int(input())
if W > V:
print("NO")
else:
if abs(A - B) <= T * (V - W):
print("YES")
else:
print("NO")
# if A - B > 0:
# # 負の方向に逃げる
# if (B + 10**9) / W <= T:
# # print("left reach")
# # T立つよりも先に端に到達してしまう場合
# Bdi... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
86b3f2d69deb2248d91d4be3c74f7213daf6915f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_84/33.py | 57b6d1e3842473c752fac1c09401d02031ba1c9c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | def solve():
r,c = map(int,raw_input().split())
a = [list(raw_input()) for _ in xrange(r)]
for i in xrange(r):
for j in xrange(c):
if a[i][j]!='#': continue
if i==r-1 or j==c-1: return None
if a[i+1][j]!='#': return None
if a[i+1][j+1]!='#': retur... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
f2c2740bf34812d6361ee4b4a9a39f9f1a9d983b | 86318359cde2629f68113f7fe097757ef8e4923a | /mep/books/migrations/0023_merge_20200406_1206.py | 507c1ce7a10f2e1cdb1c549e0585c76c6e7fc95f | [
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | Princeton-CDH/mep-django | 214f68a9c99b5025722c7301c976004edd277d9b | 6103855f07c2c0123ab21b93b794ea5d5ca39aa2 | refs/heads/main | 2023-08-03T10:15:02.287018 | 2022-09-06T21:16:01 | 2022-09-06T21:16:01 | 94,891,547 | 6 | 0 | Apache-2.0 | 2023-07-20T22:07:34 | 2017-06-20T13:00:00 | Python | UTF-8 | Python | false | false | 271 | py | # Generated by Django 2.2.11 on 2020-04-06 16:06
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('books', '0021_creator_type_order'),
('books', '0022_generate_work_slugs'),
]
operations = [
]
| [
"rebecca.s.koeser@princeton.edu"
] | rebecca.s.koeser@princeton.edu |
97d1539bed50afcef0d7e0baa3186bd2c9887471 | 50d331aec35c1429e0d9b68822623ee9a45b251f | /IPTVPlayer/hosts/hostfilisertv.py | 14e90dce85575e0ca3901bcf74824d94a03c9321 | [] | no_license | openmb/iptvplayer | cd00c693adcac426214cc45d7ae5c97b9d7cbe91 | bbc3f5b6f445f83639cd1ebb5992dc737bc9023d | refs/heads/master | 2021-01-17T09:58:09.202306 | 2017-03-26T18:19:10 | 2017-03-26T18:19:10 | 83,997,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,625 | py | # -*- coding: utf-8 -*-
###################################################
# LOCAL import
###################################################
from Plugins.Extensions.IPTVPlayer.components.iptvplayerinit import TranslateTXT as _, SetIPTVPlayerLastHostError
from Plugins.Extensions.IPTVPlayer.components.ihost import CHos... | [
"samsamsam@o2.pl"
] | samsamsam@o2.pl |
b18beae3273c85da402f38b9ec0bc6ec5fee5418 | c53b3e120c59557daaa2fa5b7626413105eb5965 | /tendenci/apps/corporate_memberships/templatetags/corporate_memberships_tags.py | 541c5e793ea1ad4b6f702a52f3951f2a8cd441e2 | [] | no_license | chendong0444/ams | 8483334d9b687708d533190b62c1fa4fd4690f2c | f2ac4ecc076b223c262f2cde4fa3b35b4a5cd54e | refs/heads/master | 2021-05-01T03:59:18.682836 | 2018-07-23T06:33:41 | 2018-07-23T06:33:41 | 121,194,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,075 | py | import random
from django.contrib.auth.models import AnonymousUser, User
from django.db import models
from django.template import Node, Library, TemplateSyntaxError, Variable
from django.utils.translation import ugettext_lazy as _
from tendenci.apps.corporate_memberships.models import CorpMembership
from tendenci.app... | [
"chendong@shinezone.com"
] | chendong@shinezone.com |
d893501915448c66c6bda1af06cc5994eb4911be | 3428950daafacec9539a83809cf9752000508f63 | /data_struct/10_combination.py | 136a9f2a426e90a1e6863a66530fc3a6d61f865a | [] | no_license | HyunAm0225/Python_Algorithm | 759b91743abf2605dfd996ecf7791267b0b5979a | 99fb79001d4ee584a9c2d70f45644e9101317764 | refs/heads/master | 2023-05-24T05:29:12.838390 | 2021-06-15T16:36:33 | 2021-06-15T16:36:33 | 274,587,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | def combination(s):
if len(s) < 2:
return s
res = []
for i, c in enumerate(s):
res.append(c) # 추가된 부분
for j in combination(s[:i]+s[i+1:]):
res.append(c+j)
return res
if __name__ == "__main__":
data = "abc"
print(combination(data))
| [
"tlfgjawlq@naver.com"
] | tlfgjawlq@naver.com |
9c99e9c602c04babded94612e54aa4147608301e | 265403cd620f1729176343626db909ccecc67243 | /runserver.py | c80b199e83158ccb7fb8c091ddaef40bbfda8d39 | [
"MIT"
] | permissive | djpnewton/beerme | a5486efe8f3a632ff479f75fde825264f8c45d42 | b06564f897c5e63a6af6229aa5234ef5de4820a7 | refs/heads/master | 2020-04-05T23:21:15.375723 | 2015-07-01T07:37:02 | 2015-07-01T07:37:02 | 37,122,757 | 1 | 1 | null | 2015-07-05T12:26:55 | 2015-06-09T09:25:34 | Python | UTF-8 | Python | false | false | 2,544 | py | #!/usr/bin/python
from beerme import app
import os
host = os.getenv('HOST', '127.0.0.1')
port = int(os.getenv('PORT', 5000))
# get filenames before daemonizing
app_log_filename = os.path.realpath('log/beerme.log')
access_log_filename = os.path.realpath('log/access.log')
def log_app():
import cherrypy
from p... | [
"djpnewton@gmail.com"
] | djpnewton@gmail.com |
1a7a6d6691359a38be4991eefc4ff9dd19b73511 | 4edb067c8c748e503e154bb2b9190843f6f1684a | /tests/test_utils/test_decorators.py | 99e6a477f5b2abc16262433e3225e0fbb78a035e | [
"Apache-2.0"
] | permissive | DistrictDataLabs/yellowbrick-docs-zh | 5ecbdccfaff4a6822d60250719b37af9b8d37f61 | 3118e67f2bed561a00885e6edb2cabb3520ad66b | refs/heads/master | 2021-04-09T11:00:29.709555 | 2019-04-06T15:23:55 | 2019-04-06T15:23:55 | 125,447,764 | 22 | 5 | Apache-2.0 | 2019-04-06T14:52:40 | 2018-03-16T01:37:09 | Python | UTF-8 | Python | false | false | 2,788 | py | # tests.test_utils.test_decorators
# Tests for the decorators module in Yellowbrick utils.
#
# Author: Benjamin Bengfort <bbengfort@districtdatalabs.com>
# Created: Thu May 18 15:14:34 2017 -0400
#
# Copyright (C) 2017 District Data Labs
# For license information, see LICENSE.txt
#
# ID: test_decorators.py [79cd8cf]... | [
"benjamin@bengfort.com"
] | benjamin@bengfort.com |
397243dd9250d0356dc9e27a00dfd091286e41c7 | 7233716fbf9fff94240d14770b3fc3f3ada10d9b | /devel/lib/python2.7/dist-packages/gazebo_logical_camera/msg/_LogicalCameraImage.py | 2d13505c04971b0a5fc8394f5ba3c1a9f34572c3 | [] | no_license | shashankseth01/E-yantra | 58d42dce90667ca37f31f2cf111ee98c39468617 | 23432e058fce7733bd1a8399fd6edc20967fa6a3 | refs/heads/main | 2023-02-04T00:36:57.230996 | 2020-12-21T09:55:23 | 2020-12-21T09:55:23 | 316,716,460 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | /home/shashank/ws_task3/devel/.private/gazebo_logical_camera/lib/python2.7/dist-packages/gazebo_logical_camera/msg/_LogicalCameraImage.py | [
"shashankseth3@gmail.com"
] | shashankseth3@gmail.com |
1808985b4ac9d43d43c5b8cc0ebbc2b85b51a3ec | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/nos/v7_2_0/interface/hundredgigabitethernet/storm_control/__init__.py | 129d9c09e4a7d15c7a89324f305901c6ecfdcf8a | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,095 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
63546a63ea14ce3fc5fadc04ebc9988761286182 | d1ddb9e9e75d42986eba239550364cff3d8f5203 | /google-cloud-sdk/lib/surface/compute/instance_groups/unmanaged/delete.py | 955dc6c5dfd2b844563c81ffbc6b0310d1d95757 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | bopopescu/searchparty | 8ecd702af0d610a7ad3a8df9c4d448f76f46c450 | afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6 | refs/heads/master | 2022-11-19T14:44:55.421926 | 2017-07-28T14:55:43 | 2017-07-28T14:55:43 | 282,495,798 | 0 | 0 | Apache-2.0 | 2020-07-25T17:48:53 | 2020-07-25T17:48:52 | null | UTF-8 | Python | false | false | 2,378 | py | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"vinvivo@users.noreply.github.com"
] | vinvivo@users.noreply.github.com |
8b37cfa66542bbb293a615730337867c31ead081 | bb932a93d3face2458dc00329e3811664baa6b52 | /unittest/asyncio_queue.py | f02aba922836f18e965d7c7bc443e2e333a97c6c | [
"MIT"
] | permissive | Emptyset110/Morphe | 5dfc5d836b13d8edd074a231faa923add6b98bbe | 762a031298addf9a34425dbecaa793727aeed4c2 | refs/heads/master | 2021-01-19T09:21:11.323822 | 2017-04-15T05:16:05 | 2017-04-15T05:16:05 | 87,750,665 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,435 | py | # coding: utf-8
"""
决定将queue.Queue换成asyncio.Queue前试写的demo
"""
import asyncio
from asyncio import Queue
import queue
import random
import threading
import functools
@asyncio.coroutine
def queue_feeder(q):
for i in range(0, 100):
print("Put: ", i)
yield from q.put(i)
yield from asyncio.sleep... | [
"21324784@qq.com"
] | 21324784@qq.com |
169e9831bcc3567be42765c6f6d3db237d70ede8 | 49e3663fea29ae7fabec581ebae1fda5361effcd | /events/migrations/0003_auto__add_field_event_short_body.py | ff8f2567acac4b37f3f29ef89ba73caeb15a2d8f | [] | no_license | ikonitas/old_causenaffect | 8fdabdc3108efa16046f6bdfa542f71d58a4e6eb | 145f7ae82d02e39bda17aad380dac0f190f1882c | refs/heads/master | 2021-05-28T08:46:49.663299 | 2014-02-17T21:42:36 | 2014-02-17T21:42:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,212 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Event.short_body'
db.add_column('events_event', 'short_body', self.gf('django.db.models.fi... | [
"ikonitas@gmail.com"
] | ikonitas@gmail.com |
302f65518292a696e7f129cd6da7782047494676 | d7e41fee3b404cc30d93da72eb92ac466c4fe3ae | /aplpy/colorbar.py | c8a2d6c107a27ccf8a8f1624d08df868e8ed978c | [
"MIT"
] | permissive | lpsinger/aplpy | ca257d0da48aac9e29e0e71470e90147c710cecf | a59ec76d1f0b04ece7a78accd9d6672d5def5a0a | refs/heads/master | 2020-04-08T22:43:37.778800 | 2012-12-21T14:27:56 | 2012-12-21T14:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,469 | py | import warnings
import matplotlib.axes as maxes
from mpl_toolkits.axes_grid import make_axes_locatable
from matplotlib.font_manager import FontProperties
from .decorators import auto_refresh, fixdocstring
# As of matplotlib 0.99.1.1, any time a colorbar property is updated, the axes
# need to be removed and re-creat... | [
"thomas.robitaille@gmail.com"
] | thomas.robitaille@gmail.com |
1e4797753fd3e0fcebccf3be0b971ddb534b7452 | 9129a791f45cd3b25d8a5da57ee6936bfe4e73a2 | /learn-django/db_ORM2/one/migrations/0002_article_username.py | 36eb6412db4e75d303331bc845e1d0aeff1d4ef2 | [] | no_license | Sunsetjue/Django2.0 | 94be49ed9d65dab6398ab8f0ddd02bb1871afb6b | 102bf0f2bd2d309b76f3247e396b7e83c5f6c2f8 | refs/heads/master | 2020-04-22T03:25:24.014196 | 2019-02-15T16:18:23 | 2019-02-15T16:18:23 | 170,086,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | # Generated by Django 2.0 on 2018-12-10 08:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('two', '0001_initial'),
('one', '0001_initial'),
]
operations = [
migrations.AddField(
mod... | [
"10073631822qq.com"
] | 10073631822qq.com |
9c70343fb4ede60d25a4826018132491b6ce3728 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_/trend_constant/cycle_12/ar_/test_artificial_128__constant_12__20.py | 53da275217edee4022050200a1f5d3f55f20f941 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 128 , FREQ = 'D', seed = 0, trendtype = "constant", cycle_length = 12, transform = "", sigma = 0.0, exog_count = 20, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
ea41284abeaed9935fe87782c57638229ca46372 | 73832d62f4e982517f36265617c17bea3b715719 | /04cem/Programming_Software_Tools/PYTHON/untitled/untitled/urls.py | 675eecba0135ea31bb1e5a83c85b278aeb2fd7a1 | [] | no_license | keipa/bsuir-labs | fa9018a121ec1b040bae27326607cd82ac7652a4 | a7a3eca34d095568c7f8cbbe976cc91e515dc756 | refs/heads/master | 2021-06-15T23:37:27.249024 | 2020-06-09T09:33:32 | 2020-06-09T09:33:32 | 34,018,391 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 764 | py | """untitled URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"nichogaus@gmail.com"
] | nichogaus@gmail.com |
5e70ad84a6cda2ce2c916562e762ea79f62edafc | 1c0e889b5f216549160eba5fa6960078926b6f27 | /flaskServer.py | a9e1fe60fe430ae1ecbd3b75de3e2629082eb37f | [
"Artistic-2.0"
] | permissive | ttm/aars | 477d42f7f4627d0178ca5fabf1445d7c1819d2ef | 481ea568321255ddc60b167325c545f84f3284ff | refs/heads/master | 2021-01-01T17:32:55.940835 | 2014-12-16T06:09:05 | 2014-12-16T06:09:05 | 21,177,370 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | #-*- coding: utf-8 -*-
from flask import Flask, render_template, make_response, session, redirect, url_for, escape, request,jsonify,Response
import pymongo, __builtin__, datetime, string
from dateutil import parser
import time as T, networkx as x, json # json.dumps
#import MySQLdb, cPickle, numpy as n
from maccess ... | [
"renato.fabbri@gmail.com"
] | renato.fabbri@gmail.com |
e7f67e86dc59350d2e03716109cfd53bf3497274 | 9ee5e51e96fe8baff2ccc7a03981e453b60e3bed | /test/technical_analysis/stock_analysis.py | 2b69e76bf748ca07296f428bfbecce36e24c8a7e | [] | no_license | marciopocebon/myInvestor | 0b97a065e9f5dd9beaefca99955d4fb31a619c03 | f4861b462b1161fb49534ec85ce259026fa20fd3 | refs/heads/master | 2021-12-24T03:21:05.829680 | 2017-12-05T15:45:04 | 2017-12-05T15:45:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | # must run using ipython console
# or jupyter-console
import pandas as pd
import pandas_datareader as web # Package and modules for importing data; this code may change depending on pandas version
import datetime
import matplotlib
import numpy as np
import matplotlib.pyplot as plt # Import matplotlib
# We will l... | [
"mengwangk@gmail.com"
] | mengwangk@gmail.com |
cbe8aff3d8002af75c4697557ef1744bc3204f6d | ab825ee0326e98d115b6dc02bbda02b302787d46 | /基礎編/パスの結合・連結/モジュール/パスの結合・連結.py | dacca7b719dece6f3e5051edcf80d20667fd444b | [] | no_license | holothuria/python_study | 295dd7c30a566b5a9688b9196e25bf6e065401a0 | 7e98090e64d646d23a4189e0efd68c2905b78d04 | refs/heads/master | 2020-03-23T20:04:38.900368 | 2019-03-05T12:47:53 | 2019-03-05T12:47:53 | 142,019,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py |
import os
PROJECT_DIR = 'C:\python-izm'
SETTINGS_FILE = 'settings.ini'
print(os.path.join(PROJECT_DIR, SETTINGS_FILE))
print(os.path.join(PROJECT_DIR, 'settings_dir', SETTINGS_FILE))
PROJECT_DIR = 'python-izm'
print(os.path.join('C:', PROJECT_DIR, 'settings_dir', SETTINGS_FILE))
# ↑「(アルファベット一文字):」のみだと、区切... | [
"umehara.daichi@withone.co.jp"
] | umehara.daichi@withone.co.jp |
34483c2ca07b40eaabcb779de868fcf8094cdac5 | ebf3e0fdb7ca2c19e04f893b49120cd4fdf10649 | /django/models_and_database/manage.py | b86d7b4ab80a51e710716e63299291a21b5f82f7 | [] | no_license | Sem31/Django-Basics | 19f8528f683c1bbc67a4d5d01988fa8d64d251c2 | 3219143d135a1d918e0994b61128375b01b35a5d | refs/heads/master | 2022-12-12T00:01:04.518559 | 2019-09-29T18:16:57 | 2019-09-29T18:16:57 | 190,061,340 | 0 | 0 | null | 2022-12-08T05:22:25 | 2019-06-03T18:37:25 | Python | UTF-8 | Python | false | false | 639 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'models_and_database.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"31kamleshprajapat@gmail.com"
] | 31kamleshprajapat@gmail.com |
f0002acb5507cad1be812360cbda655027b4a4ee | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03836/s741210941.py | 115e3d1b0023264fc7ddea4090c60e0bdb2df46d | [] | 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 | 234 | py | sx, sy, tx, ty = map(int, input().split())
X, Y = tx - sx, ty - sy
for d, n in zip("RULD", [X, Y, X, Y]):
print(d * n, end="")
for d, n in zip("DRULULDR", [1, X + 1, Y + 1, 1, 1, X + 1, Y + 1, 1]):
print(d * n, end="")
print() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9c4c6adaab2653c87efba4f9e32323052ec9309e | aa0270b351402e421631ebc8b51e528448302fab | /sdk/servicebus/azure-servicebus/tests/async_tests/test_sb_client_async.py | d42e1dfd218fd8cc898361b417cdf68817ff1533 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 29,537 | py | #--------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
import lo... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
57791e12aecfb2440e48964dc6d5a0c4e3c27d94 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-6589.py | aad7ca56d310f77854a1ba7b3ae9903b4a5cb6d7 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,741 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
f472bebf8fd8f21a87e1b9ff1e7bf3e60577b9b8 | 1c58aef845d5dc1398249d784450c3825a1a75a5 | /Dynamic_Programming/speed_and_spikes.py | a9cbecd5027d6f47406253b683546dacd977f77a | [] | no_license | AmitKulkarni23/Leet_HackerRank | b1c1d7e5915397fd971d777baf75bb0f6fd27c78 | 047b167311d2fb93a53998a20d73533a4cae2ab8 | refs/heads/master | 2021-06-01T20:24:40.659530 | 2020-02-06T22:10:14 | 2020-02-06T22:10:14 | 123,007,444 | 0 | 0 | null | 2018-07-12T18:42:40 | 2018-02-26T17:58:28 | Python | UTF-8 | Python | false | false | 2,069 | py | # Speed and spikes problem
# Source -> http://blog.refdash.com/dynamic-programming-tutorial-example/
def canStopOnRunway(init_speed, runway, init_position):
"""
Function that returns true if a person on a jumping ball with init
speed can stop on a runway
type: runway - List
type: init_speed - int
... | [
"amitrkulkarni232@gmail.com"
] | amitrkulkarni232@gmail.com |
2df8b170c2e69db0ef937e0f736d0c7f99e10784 | 3d962145fe6f6b118e059af8728ec4d302593101 | /dbaas/dbaas/middleware.py | 2e93c087ba2aca960ed1b7a8b12a213aa456d2de | [
"BSD-3-Clause"
] | permissive | perry-contribs/database-as-a-service | f015008a29600ce128c15686c2ff00fa360600f9 | db8fbee3982bbc32abf32aa86f7387de01a243be | refs/heads/master | 2022-12-18T12:17:40.496898 | 2020-10-01T09:12:54 | 2020-10-01T09:12:54 | 300,216,997 | 0 | 0 | BSD-3-Clause | 2020-10-01T09:11:19 | 2020-10-01T09:11:18 | null | UTF-8 | Python | false | false | 1,390 | py | from datetime import datetime, timedelta
from threading import current_thread
from django.conf import settings
from django.contrib import auth
class AutoLogout:
def process_request(self, request):
if not request.user.is_authenticated():
return
if 'last_touch' in request.session:
... | [
"mauro_murari@hotmail.com"
] | mauro_murari@hotmail.com |
d2d0f0e9540ff72210ef46f197d0fd14ea054dae | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03546/s313305577.py | d170aacbf34a2d5379c9166b8773528b739fcec0 | [] | 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 | 1,352 | py | # G[i][j]: 頂点v_iから頂点v_jへ到達するための辺コストの和
# クラスにしてしまったけど、これ遅いのでクラスじゃ無い方が良い
class Warshall_Floyd:
def __init__(self, V):
self.V = V
self.G = [[float('inf')] * self.V for i in range(self.V)]
def add_edge(self, fr, to, cost):
self.G[fr][to] = cost
def add_multi_edge(self, v1, v2, cost):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7325dcc029209e10b76f417754456c26de5f846e | 30099a17539959fd445a412c09cf5d5369971dc4 | /test/test.py | 2ed51d8a5db2198d4f3c88cd8b31e78cc63c9a7e | [] | no_license | Kmmanki/bit_seoul | 7e16d6d51c21c449dd5150a64da3233bc562dcb7 | 8d1e86a84e218c7d96d6c6f9b2b5cd69765ebb9c | refs/heads/main | 2023-04-08T02:16:10.372497 | 2021-04-15T01:35:09 | 2021-04-15T01:35:09 | 311,284,716 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | import numpy as np
from tensorflow.keras.models import Sequential,Model
from tensorflow.keras.layers import Dense, LSTM, Concatenate, Input
from tensorflow.keras.callbacks import EarlyStopping
#1.data
x1 = np.array([[1,2,3],[2,3,4],[3,4,5],[4,5,6]
,[5,6,7],[6,7,8],[7,8,9,],[8,9,10]
,[9,10,11],[... | [
"aksrl25@gmail.com"
] | aksrl25@gmail.com |
ff0bc8e563418f52c188920b6d7c290630091b55 | 4742f8b06c0e2d537cd76d0b05664be09f2a08fb | /Python Scripts/_Mono_Framework/MonoButtonElement.py | de9bbe6e71029607e51f7408b3c822e234ac1ebe | [] | no_license | robjac/m4m7 | bf6414bd0dd3ebfd7da72adecb761a85bfa79ce6 | 0dc6043594effd7375e7fb893321109f85288b46 | refs/heads/master | 2021-01-17T23:35:34.276099 | 2015-12-06T08:17:06 | 2015-12-06T08:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,989 | py | # by amounra 0413 : http://www.aumhaa.com
import Live
from _Framework.ButtonElement import ButtonElement, ON_VALUE, OFF_VALUE
from _Framework.Skin import Skin, SkinColorMissingError
from MonoBridgeElement import MonoBridgeProxy
from Debug import *
MIDI_NOTE_TYPE = 0
MIDI_CC_TYPE = 1
MIDI_PB_TYPE = 2
MIDI... | [
"aumhaa@gmail.com"
] | aumhaa@gmail.com |
0f8e38c0a2f1ee16f600bf711b04253540799ebb | c6292c1dd68f0c4dd3389628de0d2b786fa0ee64 | /0x11-python-network_1/5-hbtn_header.py | b8d01504078e77816dad1f5eb961ca606bc0bf7a | [] | no_license | mj31508/holbertonschool-higher_level_programming2 | 835be695b568cd189c1448c54218a0201830005f | 3fa47001c041cd0c74f88c3a19677e126bee37b4 | refs/heads/master | 2021-07-06T22:31:05.040354 | 2017-09-29T05:28:45 | 2017-09-29T05:28:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | #!/usr/bin/python3
# Taking in a URL and sends a request
import requests
import sys
if __name__ == "__main__":
url_arg = sys.argv[1]
req_arg = requests.get(url_arg)
try:
store = req_arg.headers["X-Request-Id"]
print(store)
except:
pass
| [
"mj31508@gmail.com"
] | mj31508@gmail.com |
0a086ba5ffae00e39e59426d3cc287e047cf73a7 | 4d71eb6075ac388a67370fddc1ae0579575b304f | /examples/ssd/train_multi.py | 8fdd055743af395d22b217e7d335ca7d5e61771e | [
"MIT"
] | permissive | apple2373/chainercv | 1b4a6ad80648e848c7108e53fbb3e3fd44aa5c3e | 1442eac6a316c31eab029c156b6d6e151553be2a | refs/heads/master | 2020-03-18T20:53:21.473474 | 2018-05-28T09:37:14 | 2018-05-28T09:37:14 | 135,245,197 | 1 | 0 | MIT | 2018-05-29T05:27:15 | 2018-05-29T05:27:15 | null | UTF-8 | Python | false | false | 5,279 | py | import argparse
import multiprocessing
import numpy as np
import chainer
from chainer.optimizer_hooks import WeightDecay
from chainer import serializers
from chainer import training
from chainer.training import extensions
from chainer.training import triggers
import chainermn
from chainercv.chainer_experimental.data... | [
"Hakuyume@users.noreply.github.com"
] | Hakuyume@users.noreply.github.com |
0f1b7cefd176b3539ee02af4cd1b8710084794b8 | 4e7797d520a68ded9bf77be555c13aff643389f1 | /tests/test_helper.py | e448b376e57a6f296b955df3b01a3e0df4fcf3f7 | [] | no_license | JBorrow/seagen | 654cf06b3191fbd00faaa313afb2822b7ea396f2 | fb1dbc0736593cc2cd6364812e1fcc0fabe3eb32 | refs/heads/master | 2021-04-27T00:20:41.761132 | 2018-03-06T15:23:18 | 2018-03-06T15:23:18 | 123,797,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | """
Tests the helper functions
"""
import numpy as np
import matplotlib.pyplot as plt
import mpl_toolkits.mplot3d.axes3d as axes3d
from seagen.helper import polar_to_cartesian
def test_polar_to_cartesian():
"""
Tests the polar to cartesian conversion by ensuring
that r is conserved.
"""
phi = np... | [
"joshua.borrow@durham.ac.uk"
] | joshua.borrow@durham.ac.uk |
c594f78b733e395a7d369bd262c7cea585fbe150 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03705/s081733428.py | 98e064ca6f0ef5b9a31b74e618de42bb0a8fbdba | [] | 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 | 150 | py | N, A, B = map(int,input().split())
min = A * (N - 1) + B
max = B * (N - 1) + A
if (max - min) + 1 < 0:
print("0")
else:
print((max - min) + 1) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7c0e2ffee816a35c2d057419a714c80b1ebecc75 | f06cf7cf7fe12a50f45edbd56b20acfc28606a44 | /Linked List/intersection_point_in_list.py | 83f9cde211bce58dc409bc7e8d8650e0d63b775f | [] | no_license | prashant97sikarwar/data-structure-and-algorithms | 53e016e50cf2ba26d2504f5a5f1ba39ca35f13f4 | 3ebe367c96a7bd82a427fc2beb7c8edd37247de7 | refs/heads/master | 2023-01-18T16:15:44.935431 | 2020-11-22T14:59:54 | 2020-11-22T14:59:54 | 257,667,068 | 0 | 0 | null | 2020-10-02T09:59:27 | 2020-04-21T17:32:43 | Python | UTF-8 | Python | false | false | 456 | py | class node:
def __init__(self,val):
self.next = None
self.data = val
def intersetPoint(head_a,head_b):
curr = head_a
purr = head_b
while curr is not None:
curr.data = curr.data - 1001
curr = curr.next
ans = -1
while purr is not None:
if purr.data >= 0:
... | [
"prashant97sikarwar@gmail.com"
] | prashant97sikarwar@gmail.com |
a4d69b5d3d6747f313209a1534539033e0d26edf | 268568ff2d483f39de78a5b29d941ce499cace33 | /spyder/plugins/editor/__init__.py | 837acce64e0e7f40a42373fee3222e97d7416db5 | [
"MIT"
] | permissive | MarkMoretto/spyder-master | 61e7f8007144562978da9c6adecaa3022758c56f | 5f8c64edc0bbd203a97607950b53a9fcec9d2f0b | refs/heads/master | 2023-01-10T16:34:37.825886 | 2020-08-07T19:07:56 | 2020-08-07T19:07:56 | 285,901,914 | 2 | 1 | MIT | 2022-12-20T13:46:41 | 2020-08-07T19:03:37 | Python | UTF-8 | Python | false | false | 394 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright (c) 2009- Spyder Project Contributors
#
# Distributed under the terms of the MIT License
# (see spyder/__init__.py for details)
# --------------------------------------------------------------------------... | [
"mark.moretto@forcepoint.com"
] | mark.moretto@forcepoint.com |
7b74ecf9cdd1b909e24e5e576f8de6229d90b73b | 74cab51fa52be54dfd720ba130f0c0435d99c8cd | /xray/scratch/00-VICTRE_pipeline/01-pipeline_codes/x-ray_runs/run_xray_jobs.py | 9d528cc33e7ea4057dd677b530e765a726b82271 | [] | no_license | shenghh2015/fda_breast_phantom | a57f82fc280783b1c3ca48308565beeff87e6530 | dfb9d8613ed5cf0e5812a674027a5d200ffc91bd | refs/heads/main | 2023-06-04T10:51:09.736674 | 2021-06-17T19:21:27 | 2021-06-17T19:21:27 | 377,733,048 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | import os
import argparse
#os.chdir('/scratch/00-VICTRE_pipeline/00-base_input_files/x-ray_runs/')
parser = argparse.ArgumentParser()
parser.add_argument("--num_jobs",type=int)
parser.add_argument("--gpu_num",type=int)
args = parser.parse_args()
path = os.getcwd()
print('The current path:{}'.format(path))
os.ch... | [
"shenghh2015@gmail.com"
] | shenghh2015@gmail.com |
57e3696503c3443d6e57294c7da7aefd27b261f9 | 244ecfc2017a48c70b74556be8c188e7a4815848 | /res/scripts/client/gui/shared/utils/requesters/requestscontroller.py | be2c8caecc9dbab9b1fc757b83af66b425b517d0 | [] | no_license | webiumsk/WOT-0.9.12 | c1e1259411ba1e6c7b02cd6408b731419d3174e5 | 5be5fd9186f335e7bae88c9761c378ff5fbf5351 | refs/heads/master | 2021-01-10T01:38:36.523788 | 2015-11-18T11:33:37 | 2015-11-18T11:33:37 | 46,414,438 | 1 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,567 | py | # 2015.11.18 11:57:02 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/utils/requesters/RequestsController.py
from functools import partial
import BigWorld
from debug_utils import LOG_ERROR, LOG_DEBUG
from shared_utils import safeCancelCallback
from gui.shared.rq_cooldown import RequestCooldow... | [
"info@webium.sk"
] | info@webium.sk |
95ce44a1ea35c2f7d70624237f2a1f58ee321bed | 05d84ca54c3866a546dc9eb03bf904552845b114 | /main/migrations/0005_auto_20181110_0140.py | 30b6a19f4a470da99c33289b5c2a8bf8c9fb0dfe | [] | no_license | chriscauley/ur-conf | 43ba6793995b4a17308844c6ccaeb7e92f50eb1e | 17819b750117ce3cb8808d4a6c8702b5234c8dbb | refs/heads/master | 2022-12-13T08:38:05.026612 | 2020-05-11T13:10:53 | 2020-05-11T13:10:53 | 155,024,014 | 0 | 0 | null | 2022-12-09T20:29:49 | 2018-10-28T01:13:40 | JavaScript | UTF-8 | Python | false | false | 368 | py | # Generated by Django 2.1.2 on 2018-11-10 01:40
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20181109_1624'),
]
operations = [
migrations.RenameField(
model_name='achievement',
old_name='description'... | [
"chris@lablackey.com"
] | chris@lablackey.com |
cf90adffa041ea62709451a2f6cf519949fce841 | b677894966f2ae2d0585a31f163a362e41a3eae0 | /ns3/ns-3.26/src/olsr/examples/wscript | 35a0d90e4cb07c3aaf83654d02db5ca1a0ebcde7 | [
"LicenseRef-scancode-free-unknown",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | cyliustack/clusim | 667a9eef2e1ea8dad1511fd405f3191d150a04a8 | cbedcf671ba19fded26e4776c0e068f81f068dfd | refs/heads/master | 2022-10-06T20:14:43.052930 | 2022-10-01T19:42:19 | 2022-10-01T19:42:19 | 99,692,344 | 7 | 3 | Apache-2.0 | 2018-07-04T10:09:24 | 2017-08-08T12:51:33 | Python | UTF-8 | Python | false | false | 466 | ## -*- Mode: python; py-indent-offset: 4; indent-tabs-mode: nil; coding: utf-8; -*-
def build(bld):
obj = bld.create_ns3_program('simple-point-to-point-olsr',
['point-to-point', 'internet', 'olsr', 'applications', 'wifi'])
obj.source = 'simple-point-to-point-olsr.cc'
obj =... | [
"you@example.com"
] | you@example.com | |
8a90f1562daaf6f29ced5e9afb0f9c2d898e3578 | 7a5a3eb831825fb0c0e80957278d95332e5f2258 | /core/RIG/Control/mirrorCtlShp/mirrorCtlShp.py | cf45e216ce822ca1791c86f01caf11de51c3ea90 | [] | no_license | lefan2016/MPToolkit | e76cee2be10558dd97f228789d0e05bca4deebfc | 5b3d1cf7a83b9eeda57919722e353ada7a4f7f6b | refs/heads/master | 2020-04-23T11:05:02.816596 | 2015-12-17T06:26:32 | 2015-12-17T07:08:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,722 | py | #========================================
# author: changlong.zang
# mail: zclongpop@163.com
# date: Tue, 05 May 2015 11:44:00
#========================================
import os.path, re, pymel.core
import maya.cmds as mc
from mpUtils import scriptTool, uiTool, mayaTool
#--+--+--+--+--+--+--+--+--+--+--+--+--+--+-... | [
"zclongpop123@163.com"
] | zclongpop123@163.com |
7e785828ecc952b6eabfc9890f7df3d4a90a054d | b71e91d4eb55b6826dbe378180aa7b2b8a717bdf | /Capitulo10/exercicio109_v2.py | b5df9d68ab21d3a0935e8bfaac4dc18ddb8237c3 | [] | no_license | gustavopierre/think_python | 49a9ceb50f760b41f6fbac54a07f6b394aa8d637 | a3ad6e660db4e6ce2aa105f5084e585f95936867 | refs/heads/main | 2023-03-24T23:48:29.415573 | 2021-03-15T22:15:30 | 2021-03-15T22:15:30 | 348,137,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | t = []
fin = open('./Capitulo9/words.txt')
for line in fin:
word = line.strip()
t = t + [word]
fin.close()
print(t)
| [
"gustavopierre@gmail.com"
] | gustavopierre@gmail.com |
35a1716ba124832d9905c592d9e96d33a27971ee | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/dialogflow/v2/dialogflow-v2-py/google/cloud/dialogflow_v2/services/intents/pagers.py | f5030b36777fe129d348bab6f6e1d7c6da9472c0 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,626 | 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
6d4f64ec2045276b56dba14ee6b4ad2b1dff62c4 | dab891f601d33dbab869672eb035f6bb1c79c8d8 | /dirs/crons.py | 683aabcdf865b6fbc0b22a2872b37ecf2551f851 | [] | no_license | codeforcauseorg-archive/Py-Boot-2021 | c8835ed4af2b2cdd1f80d5dff9a12676ef613ea6 | 6734e7f9b0a8e3c1eb46de11d095fae1c4c49ec7 | refs/heads/main | 2023-07-17T23:14:47.204035 | 2021-08-24T06:26:02 | 2021-08-24T06:26:02 | 392,699,382 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from crontab import CronTab
cron = CronTab(user='ganga')
job = cron.new(command='python file-dispenser.py')
job.minute.every(1)
cron.write()
| [
"anujgargcse@gmail.com"
] | anujgargcse@gmail.com |
9ad6be4c78e74806f22c40d8736604e560f03069 | 59f635ca237f829c9f420ea7e97e150845e7c131 | /src/fuzzyLogicRule/variable/variable.py | 36d970ec8f610c82ef214c5a451c40efefa22bff | [] | no_license | Lukeeeeee/FuzzyInferenceWithDRL | 38256d4d5f01b552779765a5016ef444977114a4 | 5dbe4ded544d779a81d72917f2cef03c67b0c4d6 | refs/heads/master | 2021-03-24T02:48:17.175094 | 2017-09-12T01:19:12 | 2017-09-12T01:19:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py |
class Variable(object):
def __init__(self, name, mf, range):
self.name = name
self.mf = mf
self.linguistic_label = []
for mf_i in mf:
self.linguistic_label.append(mf_i.name)
self.upper_range = range[1]
self.lower_range = range[0]
self._value = {}... | [
"lukedong123@gmail.com"
] | lukedong123@gmail.com |
c7c889636b85cb12e2266052560382d35d7e43d5 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/odu.py | ffb5ddfec684b20676e433f2e985814acd853b04 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
eb15b4125424c6865b42ca535067bf7e590e2d1e | c697122555fa82d993f37c89f17ba98dd5fe502f | /src/pyams_table/tests/__init__.py | 7432d6657437b20da080ab490faf7c03d172abd7 | [
"ZPL-2.1"
] | permissive | Py-AMS/pyams-table | d9cdc9019a9aebc3e685eef243214f0ebc65301c | 5b94a4cb2fa8874372f5ea40a202940881ba86b9 | refs/heads/master | 2021-07-11T11:31:36.772976 | 2021-03-09T12:49:10 | 2021-03-09T12:49:10 | 234,533,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | #
# Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net>
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRAN... | [
"thierry.florac@onf.fr"
] | thierry.florac@onf.fr |
73a8edbc10cf9a95bdf7fe0998a45479bc51ee6a | 2e9e994e17456ed06970dccb55c18dc0cad34756 | /atcoder/abc/075/D/D.py | bb36bb97e08ed60220e3bd3641780bbfbf444e97 | [] | no_license | ksomemo/Competitive-programming | a74e86b5e790c6e68e9642ea9e5332440cb264fc | 2a12f7de520d9010aea1cd9d61b56df4a3555435 | refs/heads/master | 2020-12-02T06:46:13.666936 | 2019-05-27T04:08:01 | 2019-05-27T04:08:01 | 96,894,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,883 | py | def main():
N, K = map(int, input().split())
x, y = zip(*(
map(int, input().split())
for _ in range(N)
))
f(N, K, x, y)
def f(N, K, x, y):
"""
制約
* 2≦K≦N≦50
* −10^9≦xi,yi≦10^9 (1≦i≦N)
* xi≠xj (1≦i<j≦N)
* yi≠yj (1≦i<j≦N)
* 入力値はすべて整数である。(21:50 追記)
長方形の内部... | [
"kntsmy@hotmail.co.jp"
] | kntsmy@hotmail.co.jp |
5145be87d31768c82f2e05727c0de10bf98fbc32 | 1a4bc1a11fdb3f714f22f5e0e826b47aa0569de2 | /projects/project03/tests/q3_1_9.py | 7ba9201ae87f09d05ffc4fe63d8fde616069e11c | [] | no_license | taylorgibson/ma4110-fa21 | 201af7a044fd7d99140c68c48817306c18479610 | a306e1b6e7516def7de968781f6c8c21deebeaf5 | refs/heads/main | 2023-09-05T21:31:44.259079 | 2021-11-18T17:42:15 | 2021-11-18T17:42:15 | 395,439,687 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | test = { 'name': 'q3_1_9',
'points': None,
'suites': [ { 'cases': [ { 'code': ">>> genre_and_distances.take(np.arange(7)).group('Genre').index_by('Genre')[my_assigned_genre][0].item('count') >= 4\nTrue",
'hidden': False,
'lo... | [
"taylorgibson@gmail.com"
] | taylorgibson@gmail.com |
29c53c9dd989b92da644998540979d855bafd45c | e262e64415335060868e9f7f73ab8701e3be2f7b | /.history/Test002/数据类型_20201205183838.py | 68110a4f1f601b98f39c8628e07060a8e42e6692 | [] | no_license | Allison001/developer_test | 6e211f1e2bd4287ee26fd2b33baf1c6a8d80fc63 | b8e04b4b248b0c10a35e93128a5323165990052c | refs/heads/master | 2023-06-18T08:46:40.202383 | 2021-07-23T03:31:54 | 2021-07-23T03:31:54 | 322,807,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,818 | py | # fruits = ['orange', 'apple', 'pear', 'banana', 'kiwi', 'apple', 'banana']
# print(fruits.count("apple"))
# a = fruits.index("banana",4)
# print(a)
# fruits.reverse()
# print(fruits)
# fruits.append("daka")
# print(fruits)
# print(fruits.sort)
# a = fruits.pop(0)
# print(a)
# print(fruits)
# number = [1,2,45,3... | [
"zhangyingxbba@gmail.com"
] | zhangyingxbba@gmail.com |
e5ed60b0ee074f5aef6c1a6a87a551154b7fa049 | 3bda43b935e8009e1c57afbb3538a6fc595f6a6c | /pattern9.py | 5ca6f2d5b70097f25abdccdf6cdfa5c71bb47488 | [] | no_license | Somi-Singh/pattern_loop | 51639ee4c01c9cc1aa50e6aa1a7471dea977e499 | aa5881f0098cfcdc54428237159ba0d33832cc33 | refs/heads/main | 2023-06-06T04:28:36.608971 | 2021-07-01T10:55:40 | 2021-07-01T10:55:40 | 382,000,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | i=1
while i<=4:
j=4
while j>=i:
j-=1
print(chr(1+64),end="")
print()
i+=1 | [
"noreply@github.com"
] | Somi-Singh.noreply@github.com |
fb9cbb94cc255f67675688194b2756a15c9c4dca | 9e20dd7cd0105122f0e164aa0966fc37691d5042 | /card.py | be56121910a6aa12020005a8ca6c92c4d01710da | [] | no_license | RocketMirror/AtCoder_Practice | c650fd3ea1322ecda535e40f6ab63251085cecbe | 32e4c346b65d670ba6642f815b1a04e8b7c5f241 | refs/heads/master | 2023-07-09T14:25:41.052647 | 2021-08-08T17:40:33 | 2021-08-08T17:40:33 | 394,016,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | n = int (input())
dic = {}
for _ in range (n):
s = str (input())
if s in dic.keys():
dic[s] += 1
else:
dic[s] = 1
m = int (input())
for _ in range (m):
t = str (input())
if t in dic.keys():
dic[t] -= 1
else:
dic[t] = -1
dic = sorted (dic.values(), reverse= True)
... | [
"matsuedanaoki@matsuedanaokinoMacBook-Air.local"
] | matsuedanaoki@matsuedanaokinoMacBook-Air.local |
ca6d6152b3ba3adb92fb1a3b4b6d72c5875271d5 | ec5e4dacb30800828ae4d68f9d87db523293ab65 | /fb_post/views/create_comment/tests/test_case_01.py | d3a4ca4366ac755f7266092eef1c459667e60275 | [] | no_license | raviteja1766/fb_post_learning | 54022066ba727220433cb72c43458f9cb6164b24 | 889718fc8f138888aea1b66455fa68c000a02091 | refs/heads/master | 2022-11-08T17:39:40.275922 | 2020-06-25T11:19:28 | 2020-06-25T11:19:28 | 274,897,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | """
# TODO: Update test case description
"""
from django_swagger_utils.utils.test import CustomAPITestCase
from . import APP_NAME, OPERATION_NAME, REQUEST_METHOD, URL_SUFFIX
REQUEST_BODY = """
{
"content": "string"
}
"""
TEST_CASE = {
"request": {
"path_params": {"post_id": "1234"},
"query_pa... | [
"ravitejak125@gmail.com"
] | ravitejak125@gmail.com |
8d2be2f7615f7caa3925f9200b966752a6b53993 | f878260bbca242a15cd3b069ed40f5c0704a771b | /datacat/db/__init__.py | 7eb57874459ae91af67887207204bc5d2d170520 | [] | no_license | rshk-archive/datacat-poc-140825 | 2485c561746ea70852fdbfd9b46eee97edc6cda7 | 626ad8b36655c69e93093be1d74cfb503ec9ba19 | refs/heads/master | 2020-06-01T04:16:32.752067 | 2014-09-26T14:02:03 | 2014-09-26T14:02:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,146 | py | from collections import MutableMapping
import json
import functools
from flask import g
import psycopg2
import psycopg2.extras
from werkzeug.local import LocalProxy
def connect(database, user=None, password=None, host='localhost', port=5432):
conn = psycopg2.connect(database=database, user=user, password=passwor... | [
"redshadow@hackzine.org"
] | redshadow@hackzine.org |
13d04fcb0c47f0b5eaa3044125faa9f70fe6f6cf | f441d86d1de8e1d75057f5c8c92ae012c2e35b92 | /GEOS_Util/coupled_diagnostics/verification/levitus/__init__.py | 23c96548ce4b269997fde00dd498a1783bf51537 | [] | no_license | ddlddl58/GMAO_Shared | 95f992e12b926cf9ec98163d6c62bac78e754efa | e16ddde5c8fab83429d312f5cff43643d9f84c94 | refs/heads/master | 2021-05-20T20:46:26.035810 | 2020-04-01T20:32:10 | 2020-04-01T20:32:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | import os
import scipy as sp
from my_lib import dset, grid
import datetime
from dateutil import rrule
__all__=['ctl']
class Ctl(dset.NCDset):
def __init__(self):
name='Levitus'
oceanval=os.environ.get('OCEANVAL',
'/discover/nobackup/projects/gmao/oceanval/v... | [
"yury.v.vikhliaev@nasa.gov"
] | yury.v.vikhliaev@nasa.gov |
a135db2c9afff8bc59d6785b2b646725fb751016 | d1376938086c65e8b7d5d0d9618278fd8dfb1cfd | /Python/Scripts/j1.py | 4611b83b23d87d43cd126568360077f5a97b5f03 | [] | no_license | DataEdgeSystems/Project | a6d235b1c0800a9ffb19e6163e69f07918ebce29 | 09ec31b385c7be62275079a7fb1826377d861365 | refs/heads/master | 2022-11-20T18:39:22.850454 | 2020-07-17T06:46:16 | 2020-07-17T06:46:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import turtle
turtle.write("welcome")
turtle.showturtle()
turtle.forward(300)
turtle.down()
turtle.right(90)
turtle.showturtle()
turtle.color("green")
turtle.circle(50)
turtle.home
turtle.goto(100,100)
turtle.showturtle()
| [
"ripattna@gmail.com"
] | ripattna@gmail.com |
e845609c5e19bc9814ba6a8e189484b2eb4d5df5 | 0a07d0f59cd7eb8ce817c74cc114d177f56306e3 | /06_nested_loops/exercise/01_number_pyramid.py | 3a08d4af43ad1af6f05e9b5e8569beb0b3d261cf | [] | no_license | M0673N/Programming-Basics-with-Python | 10c777cec5ed4fcbf9f18dc7c81daa3c7bd406ad | cd23423d49f7fb0423d9f87c5b23dce3275bac21 | refs/heads/main | 2023-05-27T16:13:11.329033 | 2021-06-06T19:00:24 | 2021-06-06T19:00:24 | 360,933,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | n = int(input())
number = 1
for row in range(1, n + 1):
for col in range(1, row + 1):
if number == n + 1:
break
print(number, end=" ")
number += 1
if number == n + 1:
break
print()
| [
"m0673n@abv.bg"
] | m0673n@abv.bg |
e04a8b7c58fa1ab8782199327a6a27fa183ded49 | 7832e7dc8f1583471af9c08806ce7f1117cd228a | /aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/StartArchiveSQLLogRequest.py | dea0e8656104d0cc61b24edf93aa28bcc7e5a2f3 | [
"Apache-2.0"
] | permissive | dianplus/aliyun-openapi-python-sdk | d6494850ddf0e66aaf04607322f353df32959725 | 6edf1ed02994245dae1d1b89edc6cce7caa51622 | refs/heads/master | 2023-04-08T11:35:36.216404 | 2017-11-02T12:01:15 | 2017-11-02T12:01:15 | 109,257,597 | 0 | 0 | NOASSERTION | 2023-03-23T17:59:30 | 2017-11-02T11:44:27 | Python | UTF-8 | Python | false | false | 2,742 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
3f54e042b195335242ba0e1963abcc48a78e159c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2179/60671/241345.py | f325de92ff5e7cd5ef53723502109c4b2092086d | [] | 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 | 44 | py | print(1)
print(1)
print(2)
print(2)
print(2) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
47caea1c49197c9d2faacd6924bd6eee72b8dc49 | 021e550da175c7fe4d7b108553f9d71bb0be1044 | /stubs/Rhino/Rhino-stubs/ApplicationSettings/__init__.pyi | 41b08231861a084621b0b6a9dede1d8d5f50c75b | [
"MIT"
] | permissive | rlldx/pythonstubs | b1d00438ae44618bbce30e61a0072316d6a284e8 | 6338085cae231f3f76ba272e72e670be7bc6e8a2 | refs/heads/master | 2020-05-02T16:54:25.088269 | 2019-03-10T06:05:33 | 2019-03-10T06:05:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,839 | pyi | from typing import Tuple, Set, Iterable, List
class PaintColor:
NormalStart = 0
NormalEnd = 1
NormalBorder = 2
HotStart = 3
HotEnd = 4
HotBorder = 5
PressedStart = 6
PressedEnd = 7
PressedBorder = 8
TextEnabled = 9
TextDisabled = 10
MouseOverControlStart = 11
MouseOv... | [
"steve@mcneel.com"
] | steve@mcneel.com |
a05e4fa1f1c5fa3696fae51ce274f1ad101d3175 | 15131f068ff3f457c4f405310cd375274d913c63 | /backend/long_limit_29117/settings.py | 75a0a84a46ff0f64d98eeb0b6ddb2709b73bb5a8 | [] | no_license | crowdbotics-apps/long-limit-29117 | 749cf2c7a7d2e2fcdb9464eb327a4f6799e0f18c | de1f20fe4298f9833f4c3c10bedd689d0b078024 | refs/heads/master | 2023-06-22T16:29:54.695478 | 2021-07-24T17:16:00 | 2021-07-24T17:16:00 | 389,157,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,927 | py | """
Django settings for long_limit_29117 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
b0489bd24caeaaf0ce9996ca35046cfccf718050 | ac8b725681e25177c5de3daf58afe00135241d0f | /leetcode/0136_single_number.py | ce6423738f0aa2d3b5644e971dda3130faedfdde | [
"MIT"
] | permissive | jacquerie/leetcode | 7af100ea1d7292c8c3da34210cf04d891be5561b | 0cb213b9c7bcb6efa11210e9ebc291befb560bb9 | refs/heads/master | 2022-05-19T22:19:46.284065 | 2022-03-27T02:41:58 | 2022-03-27T02:41:58 | 129,323,741 | 3 | 0 | MIT | 2021-01-04T01:41:50 | 2018-04-12T23:51:56 | Python | UTF-8 | Python | false | false | 330 | py | # -*- coding: utf-8 -*-
class Solution:
def singleNumber(self, nums):
result = 0
for num in nums:
result ^= num
return result
if __name__ == "__main__":
solution = Solution()
assert 1 == solution.singleNumber([2, 2, 1])
assert 4 == solution.singleNumber([4, 1, ... | [
"jacopo.notarstefano@gmail.com"
] | jacopo.notarstefano@gmail.com |
322be270a39cddcf47218ccadcbd9963f2929efc | 6c512b7d2ae4b1ad713a57f74a4816e1291ba7a1 | /python_3/experiments/expr_generate_random_email_addr.py | ffdb0114212f3743389a9430fcc54266bf9dc738 | [
"MIT"
] | permissive | duttashi/applied-machine-learning | 451389e8f27931f32132a148e93effa7c6352536 | ff3267b97d9dd7122400754798e06fb493daa40a | refs/heads/master | 2021-12-17T19:12:39.531717 | 2021-12-04T09:36:46 | 2021-12-04T09:36:46 | 169,368,684 | 0 | 2 | MIT | 2021-12-04T09:36:47 | 2019-02-06T07:19:08 | R | UTF-8 | Python | false | false | 1,002 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 21 09:02:51 2021
Objective: To generate a random list of email addresses and write to file
Reference: https://codereview.stackexchange.com/questions/58269/generating-random-email-addresses
@author: Ashish
"""
import random, string
domains = ["hotmail.com", "gmail... | [
"ashish.dutt8@gmail.com"
] | ashish.dutt8@gmail.com |
1f4a96aadea9ab8facaad238c1994ab40c709058 | f771e83756436594a145bd7b80e5e5d8bca53268 | /djangocms_baseplugins/spacer/migrations/0001_initial.py | 966d6afda4ff196593e37d0468afda831e2ebd4b | [
"MIT"
] | permissive | bnzk/djangocms-baseplugins | b76ed75460fbeacb62366935824d2bcfac52b25e | 98e390482aa4facc35efe2412ff1603d85e2c8ba | refs/heads/develop | 2023-06-17T23:55:41.574828 | 2023-06-09T09:22:01 | 2023-06-09T09:22:01 | 68,296,521 | 2 | 0 | MIT | 2023-04-17T09:18:11 | 2016-09-15T13:32:05 | Python | UTF-8 | Python | false | false | 2,206 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-09 11:32
from __future__ import unicode_literals
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('cms', '0016_auto_20160608_1535'),
]... | [
"bnzk@bnzk.ch"
] | bnzk@bnzk.ch |
9e54269c162580b6585706bcfc401a469f121965 | 807305b8aefbd7aac4f44c67deed06c059ca02d9 | /tests/databases/value/test_database.py | 3f26650ec4063233ba8ff239621aca52b79828e1 | [
"MIT"
] | permissive | supramolecular-toolkit/stk | c40103b4820c67d110cbddc7be30d9b58d85f7af | 46f70cd000890ca7c2312cc0fdbab306565f1400 | refs/heads/master | 2022-11-27T18:22:25.187588 | 2022-11-16T13:23:11 | 2022-11-16T13:23:11 | 129,884,045 | 22 | 5 | MIT | 2019-08-19T18:16:41 | 2018-04-17T09:58:28 | Python | UTF-8 | Python | false | false | 862 | py | def test_database(case_data):
"""
Test a database.
Parameters
----------
case_data : :class:`.CaseData`
A test case. Holds the database to test and the value to put
into it.
Returns
-------
None : :class:`NoneType`
"""
_test_database(
database=case_dat... | [
"noreply@github.com"
] | supramolecular-toolkit.noreply@github.com |
f223475d9486a080b7b1aca585647310abe8c018 | 2e6248663931cac90404e7ed63cb905ff1854b90 | /sycomore/rf_spoiling.py | eb11c03f22a8b95749edcaed5c904f5849b3e1c5 | [] | no_license | ruojianhua1/sycomore-web | 30b2a69843667b07a55af620ba78864bc227fd4d | a3fb38d7548939c3fa33ab838aa658cc0b89a9a9 | refs/heads/master | 2023-03-22T03:59:07.543015 | 2020-01-22T09:10:06 | 2020-01-22T09:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 844 | py | import numpy
import sycomore
from sycomore.units import *
def rf_spoiling(
model, flip_angle, TE, TR, slice_thickness, phase_step, repetitions):
t_readout = TR-TE
G_readout = (2*numpy.pi*rad / (sycomore.gamma*slice_thickness))/(TR-TE)
echoes = numpy.zeros(repetitions, dtype=complex)
... | [
"lamy@unistra.fr"
] | lamy@unistra.fr |
163f42dea8e8032a2c607490214273e7151c07fe | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/notepad2/testcase/firstcases/testcase3_010.py | 5e1e4a976a0825757fc871a9d6bde4ddddf53119 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,308 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
51b36e9e923120f85678fa88d62f02b2e0c61d2c | 1e11d6f9245c55e21edfb24f4340d52e3f7f327f | /dillo/migrations/0059_image_entity.py | 15048319182249db28d4ac935bc231ce24a67f27 | [] | no_license | armadillica/dillo | 996e8462f4f76349ecc49ecb08cdd6c8c66e072b | 960aed85f8438109bed9883321891305e1db8b10 | refs/heads/main | 2023-08-04T06:45:34.570071 | 2023-06-04T00:07:57 | 2023-06-04T00:07:57 | 30,461,275 | 79 | 18 | null | 2023-08-02T00:22:40 | 2015-02-07T16:17:43 | Python | UTF-8 | Python | false | false | 508 | py | # Generated by Django 2.2.14 on 2021-04-11 20:57
import dillo.models.mixins
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dillo', '0058_rename_icon_to_image'),
]
operations = [
migrations.AddField(
model_name='post',
... | [
"francesco.siddi@gmail.com"
] | francesco.siddi@gmail.com |
139dfac249b6f7b80b7a95457f89dea57fcbe4b2 | ffb05b145989e01da075e2a607fb291955251f46 | /pypers/oxford/metatracer.py | 253fb7ce096b902041cfe72b29f2096d1d49f442 | [] | no_license | micheles/papers | a5e7f2fa0cf305cd3f8face7c7ecc0db70ce7cc7 | be9070f8b7e8192b84a102444b1238266bdc55a0 | refs/heads/master | 2023-06-07T16:46:46.306040 | 2018-07-14T04:17:51 | 2018-07-14T04:17:51 | 32,264,461 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # metatracer.py
import inspect
from decorators import decorator
@decorator
def traced(meth, *args, **kw):
cls = meth.__cls__
modname = meth.__module__ or cls.__module__
print "calling %s.%s.%s" % (modname, cls.__name__, meth.__name__)
return meth(*args, **kw)
class MetaTracer(type): ... | [
"michele.simionato@gmail.com"
] | michele.simionato@gmail.com |
5d3eb74722808ffd0192f32a87c42dc32849375a | 409829dfa1c9758ac67190fe76fea3746106bbad | /setup.py | 3b7e08ef66822de90ff5fd52631aa58f7305cdb6 | [
"MIT"
] | permissive | eagleflo/python-sc2 | 916d1df613190dbc5da0883d2c3c6275350c8f88 | 1bd24e0b7d3200df7fb7ef02256753c45fea0b32 | refs/heads/master | 2020-04-01T05:16:42.683300 | 2018-10-13T10:33:31 | 2018-10-13T10:33:31 | 152,896,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,356 | py | from setuptools import setup, find_packages
from pipenv.project import Project
from pipenv.utils import convert_deps_to_pip
pfile = Project(chdir=False).parsed_pipfile
requirements = convert_deps_to_pip(pfile['packages'], r=False)
test_requirements = convert_deps_to_pip(pfile['dev-packages'], r=False)
setup(
nam... | [
"hannes.karppila@gmail.com"
] | hannes.karppila@gmail.com |
6c8c160c9634381508ee010a7ceeae9177ffd6ec | 8e24e8bba2dd476f9fe612226d24891ef81429b7 | /geeksforgeeks/python/python_all/112_5.py | dc004ce6416dbe458336c86465138549e9215466 | [] | no_license | qmnguyenw/python_py4e | fb56c6dc91c49149031a11ca52c9037dc80d5dcf | 84f37412bd43a3b357a17df9ff8811eba16bba6e | refs/heads/master | 2023-06-01T07:58:13.996965 | 2021-06-15T08:39:26 | 2021-06-15T08:39:26 | 349,059,725 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,837 | py | Python – Filter unequal elements of two lists corresponding same index
Sometimes, while working with Python data, we can have a problem in which we
require to extract the values across multiple lists which are unequal and have
similar index. This kind of problem can come in many domains. Let’s discuss
certain... | [
"qmnguyenw@gmail.com"
] | qmnguyenw@gmail.com |
0b5f1d72d0ce03d8535066049aea2e6e91ad8bbf | 965e163df916b01d647953f2b1431d265683f6ca | /test/test_helpers.py | e839094edc9afd8bc16d27b5c41e69a3377b702d | [
"MIT"
] | permissive | expressvpn/expressvpn_leak_testing | 6505c39228d396caff0c2df3777009c6fbdf3127 | 9e4cee899ac04f7820ac351fa55efdc0c01370ba | refs/heads/master | 2023-08-18T06:33:33.931040 | 2021-10-11T03:02:50 | 2021-10-11T03:02:50 | 112,572,905 | 244 | 48 | MIT | 2021-01-19T16:02:18 | 2017-11-30T06:18:40 | Python | UTF-8 | Python | false | false | 1,912 | py | import sys
import unittest
import mock
from parameterized import parameterized
from xv_leak_tools.helpers import current_os
from xv_leak_tools.helpers import merge_two_dicts
from xv_leak_tools.helpers import other_oses
class TestOSHelpers(unittest.TestCase):
def test_current_os(self):
for plat in ['linu... | [
"leakproofing@expressvpn.com"
] | leakproofing@expressvpn.com |
38e53983d55b9890e6298bca5e315690dd08829a | 9e3f1fc1935ac1dcdce7c8d39776de14ec49b5e6 | /aptechapp/apps.py | bc8776a83e61e36a73718deed4ee603c13447ab8 | [] | no_license | irchriscott/Aptech-Connect-Web | f03072bcc790ef1d72b6e609fa99656f0e45fcba | 7ebe1919ffacd9e826e2d86c778f4546072738e9 | refs/heads/master | 2020-05-02T07:19:05.867858 | 2019-03-29T12:46:22 | 2019-03-29T12:46:22 | 177,814,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class AptechappConfig(AppConfig):
name = 'aptechapp'
| [
"irchristianscott@gmail.com"
] | irchristianscott@gmail.com |
a31878733c748d9fc436e92e0c85e1f95a4a753b | 3cef51c71fdb19d326bea2a76bce03b6e04a69cb | /2016/22 Grid Computing/solutionb.py | 476a47fa34b3476665f34fb9ac2b6ae703eda0a0 | [] | no_license | janezd/advent-of-code | fe2819c667a2f9309fe3c50e5c234a98855f26b8 | 700b09894eb6b8de4324304e99be17ca664a7c5b | refs/heads/master | 2021-01-10T08:53:31.721953 | 2017-12-26T10:33:11 | 2017-12-26T10:33:11 | 48,594,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,091 | py | import numpy as np
import re
from hashlib import sha1
class Hashable:
def __init__(self, a):
self.a = a
self._hash = int(sha1(np.ascontiguousarray(self.a)).hexdigest(), 16)
print(self._hash)
def __hash__(self):
return self._hash
def __eq__(self, other):
return np.a... | [
"janez.demsar@fri.uni-lj.si"
] | janez.demsar@fri.uni-lj.si |
1434edbf203110a40d993508e20577056c7ba9dc | f124e3a874bf9bfe8ce2d694d276238c1a1150fc | /src/lib/pedal/sandbox/result.py | 6f2f9b61ed343b8ae41d3c6743ef572fea823ec4 | [
"MIT",
"Python-2.0"
] | permissive | Skydler/skulpt | b37a737b4f82c788e2f94b3a406fc3a313a75274 | 6eeabde2c5eb80c4a13f0958b75a69d99cd31b8a | refs/heads/master | 2020-08-17T10:48:29.244685 | 2019-10-23T12:16:36 | 2019-10-23T12:16:36 | 215,650,824 | 0 | 0 | NOASSERTION | 2019-10-16T21:50:53 | 2019-10-16T21:50:53 | null | UTF-8 | Python | false | false | 12,543 | py | class SandboxResult:
"""
Proxy class for wrapping results from executing student code. Attempts
to perfectly emulate the underlying data value, so that users will never
realize they have a proxy. The advantage is that special information is
available in the corresponding Sandbox about this result th... | [
"acbart@vt.edu"
] | acbart@vt.edu |
8a745f4689ea9fda6a7da7c444c8f3eef0616059 | 52f4426d2776871cc7f119de258249f674064f78 | /misc/algorithm/shortest_path/floyd_warshall.py | 69f03a396a9041e4d03aae9d449722638becbffb | [] | no_license | namhyun-gu/algorithm | 8ad98d336366351e715465643dcdd9f04eeb0ad2 | d99c44f9825576c16aaca731888e0c32f2ae6e96 | refs/heads/master | 2023-06-06T02:28:16.514422 | 2021-07-02T10:34:03 | 2021-07-02T10:34:03 | 288,646,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | from math import inf
from typing import List
graph: List[List[int]] = [
[0, 7, inf, inf, 3, 10, inf],
[7, 0, 4, 10, 2, 6, inf],
[inf, 4, 0, 2, inf, inf, inf],
[inf, 10, 2, 0, 11, 9, 4],
[3, 2, inf, 11, 0, inf, 5],
[10, 6, inf, 9, inf, 0, inf],
[inf, inf, inf, 4, 5, inf, 0],
]
def floyd_wa... | [
"mnhan0403@gmail.com"
] | mnhan0403@gmail.com |
d174d21032804d359d6c11940c1d34010ee9f1d4 | 1915774790a77a630c00e70738ac41a315f5a2cb | /doorscalc/migrations/0038_auto_20190828_0818.py | 700027d8f8f6d981755119764f7adca3d7b95bad | [] | no_license | coconutcake/hajduktools | 842948646d2e8d3368b4d420d73bba981d649d43 | 6f9e678a1168195d77d1163bc9145205d03bb141 | refs/heads/master | 2020-07-02T20:02:19.914649 | 2019-09-13T17:44:05 | 2019-09-13T17:44:05 | 201,648,138 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # Generated by Django 2.1.11 on 2019-08-28 06:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('doorscalc', '0037_auto_20190822_1052'),
]
operations = [
migrations.AlterField(
model_name='order',
name='status',
... | [
"contact@mign.pl"
] | contact@mign.pl |
adfd67c20156cb8b8ad74e8c8a720e9e2e48f5eb | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /QiPr3M5tsqfsbYcCQ_6.py | 971a4a4b867272607ab5fce9aa8d69b8c201cd28 | [] | 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 | 223 | py |
def square_digits(n):
curdigit = 0
final = ""
while n > 0:
curdigit = n % 10
n = n // 10
final = str(curdigit ** 2) + final
final = int(final)
print(final)
return final
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e30f9dfb96f688439caf3db1cd6882c6de1688f0 | 81c6278a9d50e04794eb4b0fe35ec0d595ca60d1 | /cerulean/test/test_torque_scheduler.py | cee58c7bb4fb372013b4807428628b71862ece59 | [
"Apache-2.0"
] | permissive | romulogoncalves/cerulean | c5c028328873d49b326d5bba1520c6de41b23f16 | c61b4848a46f93e47653a474771ee6c443727c79 | refs/heads/master | 2020-08-02T09:31:15.982745 | 2019-01-21T09:26:38 | 2019-01-21T09:26:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | from cerulean import JobDescription
from cerulean.torque_scheduler import (_get_field_from_qstat_xml,
_job_desc_to_job_script,
_seconds_to_time)
def test_job_script_name() -> None:
job_desc = JobDescription()
job_desc.name = 'test_n... | [
"l.veen@esciencecenter.nl"
] | l.veen@esciencecenter.nl |
316b6c09614be0148d1c2b5160f106c633db3bdc | 9baa9f1bedf7bc973f26ab37c9b3046824b80ca7 | /venv-bck/lib/python2.7/site-packages/bson/__init__.py | 765e29a98d825e4e4fed5c0c32749a243ca0a4f2 | [] | no_license | shakthydoss/suriyan | 58774fc5de1de0a9f9975c2ee3a98900e0a5dff4 | 8e39eb2e65cc6c6551fc165b422b46d598cc54b8 | refs/heads/master | 2020-04-12T05:36:59.957153 | 2017-01-08T06:12:13 | 2017-01-08T06:12:13 | 59,631,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,803 | py | # Copyright 2009-2015 MongoDB, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | [
"shakthydoss@gmail.com"
] | shakthydoss@gmail.com |
e9f18e7cf838a0d9ad2b3ff178bfda18e06dd1ec | ceb75e50d77b962edbe866b0640271cdd4721be9 | /hash.py | d986345513156fa9df62d089ac9bfcc250367c63 | [] | no_license | rocket3989/hashCode2020 | 9394dc52e66c085e14fdd6f4152d6605f426b79a | 6fd287381c3b32813eb3f63558d3afd83bd0ebbf | refs/heads/master | 2021-01-08T11:14:36.956131 | 2020-02-27T02:16:50 | 2020-02-27T02:16:50 | 242,014,611 | 3 | 7 | null | null | null | null | UTF-8 | Python | false | false | 2,693 | py | B, L, D = [int(x) for x in input().split()]
score = [int(x) for x in input().split()]
freq = [0 for i in range(B)]
from heapq import heappop, heappush, heapify
import random
calls = 0
class library:
def __init__(self, count, time, rate, books):
self.count = count
self.time = time
... | [
"rocket3989@gmail.com"
] | rocket3989@gmail.com |
f8a0b1b30cd967fa9b3450c9cfb4207194c8ec86 | 8c680fc22c005aadc84deff33850d819e943124a | /open-test-data/rfc4475-sip-torture-test/unksm2.dat.py | a19935571b6edd931465bffe6ed24bb66262a1db | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | bobjects/BobStack | abc824b8513d826cbc725e8fbd3837ae8e03d646 | c177b286075044832f44baf9ace201780c8b4320 | refs/heads/master | 2020-04-06T05:12:35.041273 | 2017-10-08T23:39:35 | 2017-10-08T23:39:35 | 50,403,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | messageString = (
'REGISTER sip:example.com SIP/2.0\r\n'
'To: isbn:2983792873\r\n'
'From: <http://www.example.com>;tag=3234233\r\n'
'Call-ID: unksm2.daksdj@hyphenated-host.example.com\r\n'
'CSeq: 234902 REGISTER\r\n'
'Max-Forwards: 70... | [
"bob@bobjectsinc.com"
] | bob@bobjectsinc.com |
4ea0b9b40fea28cf979342e613ffcf0c2010e2d2 | d52ee2f7ec5dcd8825f4e221a7f084d488d35634 | /new_scripts/cluster_rerank/rerank_match_dress.py | 442dbeed13eb4e02caf9a03b28d1e9dadb8028df | [] | no_license | rekriz11/sockeye-recipes | 9dbf96140e4d9d546210dd1c29801132e1b9201c | 644363b92e2f38311cc2b7e926b6558aa41900f3 | refs/heads/master | 2020-03-29T16:52:52.542574 | 2020-03-13T18:18:25 | 2020-03-13T18:18:25 | 150,131,769 | 5 | 3 | null | 2018-09-24T16:15:47 | 2018-09-24T16:15:46 | null | UTF-8 | Python | false | false | 9,656 | py | import kenlm
import sys
import gensim.models as g
from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
from fractions import Fraction
from collections import Counter
## Checks validity of output
def debug_output(sentences, scores, title):
print(title)
for i in range(len(sentences)):
... | [
"rekriz@seas.upenn.edu"
] | rekriz@seas.upenn.edu |
cdeb4e8690477000342cd59097c9cc23be076db6 | 4e5b233311bdb5872fd5f862f90b3c6e56f56bc2 | /Day_16_CoffeeMachine.py | d342630146136aa15eca126c5e01696d1bebea25 | [] | no_license | asher-lab/100daysofpython | 02b7c6703b82683f824e3a5b21d41233141827df | 046f16fddb1073195f320e0f0f6e091c35f10314 | refs/heads/main | 2023-07-01T17:55:57.654898 | 2021-08-11T02:38:59 | 2021-08-11T02:38:59 | 388,103,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from menu import Menu, MenuItem
from coffee_maker import CoffeeMaker
from money_machine import MoneyMachine
#declaring objects
menu = Menu()
coffee_maker = CoffeeMaker()
money_machine = MoneyMachine()
is_on = True
while is_on:
options = menu.get_items()
choice = input(f"What would you like? {options}:")
... | [
"noreply@github.com"
] | asher-lab.noreply@github.com |
bc9ae930f9b3a8b12ccb821e89bb277f81c1a19d | 76d3ec49d75ca5cef755e612a97ddcbc34f62bf3 | /data_integration/parallel_tasks/sql.py | 724456ec4dcef6e187d023a7fe4298906fd58d8a | [
"MIT"
] | permissive | ierosodin/data-integration | 8f7e9500bda03c8316061452bc502d68cfcd33da | f3ee414e8b8994e5b740a374c0594e40862ff6e9 | refs/heads/master | 2021-01-02T14:58:10.752745 | 2020-02-13T00:58:58 | 2020-02-13T00:58:58 | 239,665,119 | 0 | 0 | MIT | 2020-02-11T03:11:37 | 2020-02-11T03:11:36 | null | UTF-8 | Python | false | false | 3,315 | py | import inspect
import re
import typing
from mara_page import _, html
from .. import config, pipelines
from ..commands import sql
class ParallelExecuteSQL(pipelines.ParallelTask, sql._SQLCommand):
def __init__(self, id: str, description: str, parameter_function: typing.Callable, parameter_placeholders: [str],
... | [
"martin.loetzsch@gmail.com"
] | martin.loetzsch@gmail.com |
0384d7dfb9a7e53271b18c52096a581c20d45dc2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_46/71.py | 24e9421799bdf1037f657a345661908082b4f683 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | input_file = "A-large.in";
output_file = "0.out";
input = open(input_file,"r");
output = open(output_file,"w+");
num_tests = int(input.readline());
for test in range(num_tests):
size = int(input.readline());
matrix = []
a = []
for i in range(size):
gg = input.readline()
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
2c486fdff4147264b3a4d0404a6e8af18fa3daab | 2055c8b46b72e4fa19dc87fddf29faf0c81e703a | /Trackle/trackle/venv/lib/python3.6/encodings/iso8859_13.py | dad20781f270f4685c66642e733d6fd0ec0061e5 | [] | no_license | JMRLudan/Trackle2 | 2c72a3fff2e9bfe988874e00b64f56950043e825 | 2d2f486f076eb956903dabcc05434f1ecc6b6079 | refs/heads/master | 2021-06-20T08:56:56.973353 | 2020-01-19T14:28:59 | 2020-01-19T14:28:59 | 176,396,178 | 1 | 2 | null | 2021-06-10T21:20:09 | 2019-03-19T01:10:28 | Python | UTF-8 | Python | false | false | 61 | py | /Users/JLudan/anaconda3/lib/python3.6/encodings/iso8859_13.py | [
"joshludanr@gmail.com"
] | joshludanr@gmail.com |
81fa627e293605e74746676da48b221cdaa59e9d | ce0a3a73c7825f7327b8319fb2593b6b01659bb0 | /webtest03/evaluation/migrations/0002_auto_20180802_0151.py | 5bb7bf88cabc2d1779cc24878b96578183d001a5 | [] | no_license | soccergame/deeplearning | 28b0a6ed85df12e362b3a451050fab5a2a994be7 | cbc65d3eba453992a279cfd96a9d3640d8fe6b9f | refs/heads/master | 2020-03-28T22:38:26.085464 | 2018-08-31T11:22:39 | 2018-08-31T11:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-02 01:51
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('evaluation', '0001_initial'),
]
operations = [
migrations.AlterField(
... | [
"18811442380@163.com"
] | 18811442380@163.com |
ffd9dc16f603d827f2770aa462b19116227f81ab | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/ib_miniprojects_backend/covid_dashboard/interactors/get_mandals_daily_report_day_wise_interactor.py | 391e90db9899d1ac8399b764ed3bda3330121e23 | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,116 | py | {"filter":false,"title":"get_mandals_daily_report_day_wise_interactor.py","tooltip":"/ib_miniprojects_backend/covid_dashboard/interactors/get_mandals_daily_report_day_wise_interactor.py","undoManager":{"mark":16,"position":16,"stack":[[{"start":{"row":22,"column":8},"end":{"row":25,"column":9},"action":"remove","lines"... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
ab6185ba90c94448913c8279f6c0785763528b8d | 22946b79620a06405f5c1add7844ca7eb118b5ce | /templates/frontend/start-frontend.erb | d6bd3711d5735145a3e11a40aa7e7da2154afb3c | [
"BSD-2-Clause-Views"
] | permissive | SUNET/puppet-sunet | 91ae0c023f4e00dc863d5fe28ee0f660791506db | 39296bb5780218e28f816ee6f39ce99746d452a0 | refs/heads/main | 2023-08-28T03:11:10.798430 | 2023-08-21T13:31:40 | 2023-08-21T13:36:04 | 35,332,499 | 1 | 6 | NOASSERTION | 2023-09-04T09:39:22 | 2015-05-09T14:56:01 | Puppet | UTF-8 | Python | false | false | 10,659 | erb | #!/usr/bin/env python3
#
# Copyright 2019 SUNET. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of
# ... | [
"fredrik@thulin.net"
] | fredrik@thulin.net |
66322e287c6b4586776e85303fbc8f20198de35f | cf6c67790393b4d1ad75f5f30fef00455bc9a541 | /icgc_dataobjects/run.py | c71e438d674f2c7beed3bc51313bfcf68ef4a785 | [
"MIT"
] | permissive | ohsu-comp-bio/icgc_dataobjects | fe3b231838875c9dadb9eacb17004fc59790689c | 3cbb676d2e1a9a21e03f3cfb8a3853752aa97916 | refs/heads/master | 2022-10-09T01:04:14.259700 | 2017-05-05T20:28:50 | 2017-05-05T20:28:50 | 90,410,194 | 0 | 0 | MIT | 2022-09-23T20:52:26 | 2017-05-05T19:33:26 | Python | UTF-8 | Python | false | false | 2,301 | py | #!/usr/bin/env python
"""
Proxy front end to the dcc server
"""
import os
from flask import request, jsonify, Response, abort, Flask
from flask_cors import CORS
# our utilities
import dcc_proxy
def _configure_app():
""" set app wide config """
# start the app
app = Flask(__name__)
# allow cross site... | [
"brian@bwalsh.com"
] | brian@bwalsh.com |
e8fc1d761894c544fc9f36d9aa38ca5900bef47d | 3fda3ff2e9334433554b6cf923506f428d9e9366 | /hipeac/migrations/0014_auto_20190121_1724.py | ebf27a1920573587d68f431147ce919777e91b00 | [
"MIT"
] | permissive | CreativeOthman/hipeac | 12adb61099886a6719dfccfa5ce26fdec8951bf9 | 2ce98da17cac2c6a87ec88df1b7676db4c200607 | refs/heads/master | 2022-07-20T10:06:58.771811 | 2020-05-07T11:39:13 | 2020-05-07T11:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py | # Generated by Django 2.1.5 on 2019-01-21 16:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("hipeac", "0013_auto_20190121_1650"),
]
operations = [
migrations.AlterField(
model_name="video", name="youtube_id", field=models... | [
"eneko.illarramendi@ugent.be"
] | eneko.illarramendi@ugent.be |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.