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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e564104f27856cb3b61dac72d4e0c670803a1df8 | 35c37bbaf18c7be586f52e5c0c074a23814ed41b | /venv/bin/pip3 | db69dd49e4e6bf0c7ebb651e413b8b05a0f76b44 | [] | no_license | CamiloYate09/SpeechAssistantPython | ca5f79ebfb4b302282e7981841fb4ed294b82f50 | e1e569a4e3939b562b47ab971b7026a5e6614947 | refs/heads/master | 2020-12-03T11:59:45.183597 | 2020-01-02T04:29:28 | 2020-01-02T04:29:28 | 231,307,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | #!/home/python/PycharmProjects/SpeechAssistantPython/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a... | [
"cyateya35439@universidadean.edu.co"
] | cyateya35439@universidadean.edu.co | |
566003d6188a38c72c80394b584f0f1499166867 | ed827e9e8e1aa5d4714502f30c0705dbcfdbcc4e | /blog_main/blog/migrations/0015_remove_post_rating_average.py | b38945b253ee4bd0a8a6c2cb3856efa587f0cbee | [] | no_license | agbin/movie_blog | e72470270ead2d9765e8af4aab339d2b63167624 | af69de860b9f48b77b3639c28bda01355796c388 | refs/heads/master | 2020-04-05T22:14:08.292377 | 2018-12-11T13:50:48 | 2018-12-11T13:50:48 | 157,249,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # Generated by Django 2.1.2 on 2018-10-29 21:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0014_auto_20181029_2133'),
]
operations = [
migrations.RemoveField(
model_name='post',
name='rating_average',
... | [
"agnieszka.bin@gmail.com"
] | agnieszka.bin@gmail.com |
4565add3b66cda2b8fd75f10f991c60e08119575 | 675cabce7cb5672e35f788650b5c0b1dd4cd15bb | /spatial_transformer_tutorial.py | 911f21f3857a1f4d3878b3d14e734dc4c764716c | [] | no_license | jwwangchn/Machine-Learning-Pytorch | 55344818ffddc2e6cce34c22791fead4a71a7d54 | e3d1fa7066fa3d4fbcf55b443e7404b201be5d72 | refs/heads/master | 2021-05-14T05:10:22.346868 | 2018-03-04T21:06:22 | 2018-03-04T21:06:22 | 116,215,077 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,544 | py | # -*- coding: utf-8 -*-
"""
Spatial Transformer Networks Tutorial
=====================================
**Author**: `Ghassen HAMROUNI <https://github.com/GHamrouni>`_
.. figure:: /_static/img/stn/FSeq.png
In this tutorial, you will learn how to augment your network using
a visual attention mechanism called spatial tr... | [
"jwwangchn@outlook.com"
] | jwwangchn@outlook.com |
b7814a2594cc167bfcd73d56994d63b8e19a2a17 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /rds_write_f/db-parameter-group_create.py | 25a20a478d6aca48c459f81d5e854d694a67fafb | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
0675534d00a2a7467129a7fd658bb2731e8d9dd3 | 7f939ccdc7068f1c441333296896274724100142 | /products/migrations/0006_packing_ptype.py | a298b4059b5f5e1b34fc7312f737d5e4eeb164a2 | [] | no_license | happychallenge/vendorMgmt | c62584af3a7ab4538b36be2f46a5f23b83043495 | e703a04461151950a4b29e5ab2abb855205b21e6 | refs/heads/master | 2021-07-10T08:03:38.666214 | 2018-01-31T11:00:01 | 2018-01-31T11:00:01 | 96,496,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-11 12:31
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0005_auto_20170711_1227'),
]
operations = [
migrations.AddField... | [
"happychallenge@outlook.com"
] | happychallenge@outlook.com |
c5fb4f3897ff1017a1f302b9e17fd47cb643d69a | 421895876d91a0f5eeaba722ef851dc7e728d081 | /warehouse/migrations/0005_auto_20210623_1741.py | c42a4af00d7d594704a7972562b41f430b7c9379 | [] | no_license | liaz98/warehouse_management | 620f5b7bf315b8eb2017cc6e81b3a90a3d1ec4c8 | 8e3a80e5378288df5f614c94a5c9e0aa4b6ebc43 | refs/heads/master | 2023-06-07T05:34:02.561660 | 2021-06-23T12:48:35 | 2021-06-23T12:48:35 | 376,352,706 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | # Generated by Django 3.2 on 2021-06-23 12:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('warehouse', '0004_alter_storagebin_warehouse'),
]
operations = [
migrations.AlterField(
... | [
"azibonu19@gmail.com"
] | azibonu19@gmail.com |
1bab30b21c3012e3fee4a91e1db686f872e942dc | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/iwy.py | 8d546f6aeb97de3f853978063f837af5a90c3214 | [] | 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 |
0a792265c72956a4c3f4ce93684b0ae03840deb1 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/twentyPercent/rank_4hkx_P.py | 31f6f27a9bb1b4def96d5cdcbb44d1e16055e981 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
2fffedde1a2e2094f45eb5fa8049266fcc29d205 | 2f19c1a87a2af65eb9b8dbe311dff43d2aa37bef | /57b06f90e298a7b53d000a86.py | 9720ffd5d9bd2fb0b900035a90788d78ca8a9667 | [] | no_license | Lauriy/codewars-submissions | 975572b437af151670b33baefea74fd33f791fc9 | 0f18e72bdfcd67277aa65b7d586565f98148d0ce | refs/heads/master | 2021-06-24T14:20:40.401321 | 2017-04-24T21:36:33 | 2017-04-24T21:36:33 | 103,376,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | def queue_time(customers, n):
tills = [0 for each in range(n)]
counter = 0
while True:
has_active_till = False
for i in range(len(tills)):
if tills[i] == 0 and len(customers):
tills[i] = customers[0]
has_active_till = True
del (cust... | [
"laurileet@gmail.com"
] | laurileet@gmail.com |
87134b1168eb8b1b20ec0d7a10a42e375507a034 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Bert-CRF_for_PyTorch/examples/sentence_classfication/task_sentiment_classification_P_tuning.py | fc3d2b899de4ac9c89458bb1ce87d2c443ce36e0 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 9,506 | py | # -*- coding: utf-8 -*-
# BSD 3-Clause License
#
# Copyright (c) 2017
# All rights reserved.
# Copyright 2022 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
2361e3dfe065b7a22975f29d23858e8c0593f7e8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2397/60617/307538.py | 845759923bdae5ddda54b0185bb4245ad059681d | [] | 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 | 1,006 | py | if __name__=='__main__':
n=int(input())
row1=int(input())
row2=int(input())
res=[]
for i in range(0,n-2):
res.append(int(input()))
if n==3:
if row1==19:
print(17)
exit()
elif row1==1:
print(32)
exit()
elif row1==35:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
255d083c9b4934f7d0595108c8ae571a1d334ef0 | 6c004771614e233aff014d0eca812d9e1bffb200 | /test/test.py | 2e946820b03dc63f345ef2b47e613fe16a2de063 | [
"BSD-2-Clause"
] | permissive | liyong3forever/asr-evaluation | 1206b63e3c711ab99d205d76b2398b590c2c6906 | f6fca802363ccd203ed885997981a7b81bb6c10b | refs/heads/master | 2021-01-18T06:33:40.170195 | 2017-03-04T08:21:09 | 2017-03-04T08:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | """
Unit tests for asr_evaluation.
"""
from __future__ import division
import sys
import unittest
from asr_evaluation import __main__
class TestASREvaluation(unittest.TestCase):
"""..."""
def testing(self):
"""..."""
self.assertTrue(True)
def test_cli1(self):
sys.argv = ['evalua... | [
"ben@benjaminlambert.com"
] | ben@benjaminlambert.com |
9c82443aa79f51d9d93885f6a989ae49597a9656 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_exp/trend_constant/cycle_0/ar_/test_artificial_128_exp_constant_0__0.py | 03c44e099297428d8338874cf0c877f0baacb892 | [
"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 | 306 | 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 = 0, transform = "exp", sigma = 0.0, exog_count = 0, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
cfe4efcfb445070b1fef71a94cb77ded1b24d7d7 | 53ec01fa57d9cdc7e7fd3364990713d211e1c414 | /ABC099/099d.py | 77420e1d4c559ebbee009ce64b4e933ece68727c | [] | no_license | nekoTheShadow/atcoder-answers | 4f2cae82ac2b24df4153c43381ce58084647704c | 461e5a9b00718fd9a3b19dc6071da0fb3192f34e | refs/heads/master | 2022-02-03T18:24:01.673661 | 2022-01-24T14:43:44 | 2022-01-24T14:43:44 | 165,072,722 | 0 | 0 | null | 2020-03-22T13:25:56 | 2019-01-10T14:19:52 | Java | UTF-8 | Python | false | false | 654 | py | import itertools
N, C = map(int, input().split())
D = [list(map(int, input().split())) for _ in range(C)]
c = [[int(s) - 1 for s in input().split()] for _ in range(N)]
m0 = [0] * C
m1 = [0] * C
m2 = [0] * C
for i, j in itertools.product(range(N), repeat=2):
if (i + j) % 3 == 0: m0[c[i][j]] += 1
if (i + j) % 3... | [
"h.nakamura0903@gmail.com"
] | h.nakamura0903@gmail.com |
b233e3a60c8b5ad9a10c20b0cc42d571318ca3c4 | bc2e77b92ae12e34aec9445f5e8c92fc399e6cc8 | /va_topo.py | 9bccae58fc3a26b84cc22fe6887cd4fa88d1d807 | [] | no_license | 18782967131/test | fc8049c10f02f7b49a4dd4a675618ccf388c4f2f | cb02979e233ce772bd5fe88ecdc31caf8764d306 | refs/heads/master | 2020-05-27T08:41:57.535153 | 2017-11-09T08:31:07 | 2017-11-09T08:31:07 | 82,536,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,679 | py | """coding: utf-8
Copyright 2016 vArmour Networks private.
All Rights reserved. Confidential
VaTopo implements the class that abstracts the topology required to
setup/cleanup testbed
.. moduleauthor:: xliu@sigma-rt.com
"""
import os, re, time, sys, pprint, ipaddress
import builtins
from vautils import... | [
"515947075@qq.com"
] | 515947075@qq.com |
d919ae4a0861ec5baf66f9aa70596bc3cbfba2b8 | 0b529ba1efe44c47b540dd22a7fd9cc6a73f907f | /src/800-900/_883_projection-area-of-3d-shapes.py | d3e6285f0765156b2ed4d6bbac0a5d7416866eff | [] | no_license | alexparunov/leetcode_solutions | b9445a02182bc61f490257328a1960c2a627d7bc | bc19dbcc903782f91846d5b9d73a7ffb9b2f002d | refs/heads/master | 2022-11-28T21:10:24.875260 | 2020-08-15T12:42:40 | 2020-08-15T12:42:40 | 261,517,109 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | """
https://leetcode.com/problems/projection-area-of-3d-shapes/
"""
from typing import List
class Solution:
def projectionArea(self, grid: List[List[int]]) -> int:
ans = 0
for i in range(len(grid)):
max_xz = 0
max_yz = 0
for j in range(len(grid[0])):
... | [
"alexander.parunov@heyjobs.de"
] | alexander.parunov@heyjobs.de |
c172eaa77fac27153e2cbe0c96e2145402b03803 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.2/desktop/freedesktop/xorg/xorg-video/actions.py | 470b5f0fb5099d2937afc35d344bcd81f44e4d79 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2006-2007 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
95bd770e75abc7f8775e3559df4c689c36061a58 | c8f5877f5af20ec4bcf1b0e0edc11a6ae4b6ac75 | /Asynchronous_programming/tuto/multiprocessing_download.py | 5927508b3cdeedee143c7ee76fa6dec34c78a7b9 | [] | no_license | opemipoVRB/Concurrent_Concepts | e375201850d4badd537a5841fe389755ce797385 | b99a3306dc7c9c5b0e66223c745a64195a53abd7 | refs/heads/master | 2020-06-08T06:04:56.922505 | 2019-06-22T00:24:37 | 2019-06-22T00:24:37 | 193,173,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,083 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←
←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←←
↓↓...........................................................................↓↓
↓↓..........................↓... | [
"opemipodurodola@gmail.com"
] | opemipodurodola@gmail.com |
2374e2cb76f65245b02c266e1c24539d731612c5 | c1277968563d1645c8af980fc0823750f400b449 | /blog/views.py | add8ac17d9d52c4960927237faf1e4480cf7e71f | [] | no_license | akabhi5/Blog-Django---c | 426a4ffd2b673c1dc2cf9542e56d9203ff70708b | 22191b9003157ab66abf42489b9055e4ba9ded66 | refs/heads/master | 2020-04-17T04:07:40.173165 | 2019-01-17T11:32:56 | 2019-01-17T11:32:56 | 166,215,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django.shortcuts import render
from django.views.generic import ListView, DetailView
from . models import Post
class BlogListView(ListView):
model = Post
template_name = 'home.html'
class BlogDetailView(DetailView):
model = Post
template_name = 'post_detail.html'
| [
"abhishekk580@gmail.com"
] | abhishekk580@gmail.com |
d9ea781d7b87cc24fff6b0c6af7456e6191bed44 | 7f86f46f5048fad45cfdebe43b56dfe179688856 | /mmgpy/problems/two_dimensional/_core.py | 8701b0f01fc45a30534862d107322e91afbe6a4d | [] | no_license | geoffreygarrett/metamodel-guidance-with-python | 502cc2055427c34d45b55129e290f31ec31d385a | d048a420c69e2fc019478784fcd04be3ae1d72b7 | refs/heads/master | 2022-03-30T09:00:11.520493 | 2020-01-16T13:30:36 | 2020-01-16T13:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,659 | py | from .geometry import MissionGeometry
from .spacecraft import Spacecraft
from .representation import DesignSpaceBase
from ._performance import *
class AttitudeTrajectoryProblem2D:
def __init__(self, mission_geometry: MissionGeometry, spacecraft: Spacecraft, design_space: DesignSpaceBase,
thrust_... | [
"g.h.garrett13@gmail.com"
] | g.h.garrett13@gmail.com |
ad96b166a155a2431870bab4c1e9565df2e87d24 | df2b7da3ddbf874fdad822d84da94379ba095349 | /pace_file_snapshot/CIFAR_DFL_diverseSGD.py | 3e414f3bc0186a8b4a4dd86d5df1f80887a1f88a | [] | no_license | hithxh/DecentralizedFL | 85054443f5e53446fe67c0cee4858ef5681eb503 | c69211e851e86f3c4c508998f5eb35518792146c | refs/heads/main | 2023-04-29T22:58:48.505665 | 2021-05-07T18:59:25 | 2021-05-07T18:59:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,085 | py | # Official training implementation
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from torchvision import datasets, transforms
from torch.optim.lr_scheduler import StepLR
import numpy as np
import sys
import pickle
# class Net(nn.Module):
# def __init__(self):
#... | [
"zhzhang@colby.edu"
] | zhzhang@colby.edu |
d48482e2fbfea0ed3deba5ff1da6223c9f6c44fc | 8145472d8090e28f47b869dd0bcd9e2882e68e98 | /studentpage/students/migrations/0007_certificate_quali.py | 8a18caa816855f3142edc9aa8129816146be446f | [] | no_license | virginiah894/online_certificate_system | ef4434b40960b8d5e3fce6ca478d75374fa53eae | 1b48b7f5f0c8712a35f62e3bbc107d1081dc6dd8 | refs/heads/master | 2023-06-21T22:01:44.758191 | 2021-07-15T17:49:46 | 2021-07-15T17:49:46 | 385,518,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # Generated by Django 3.2.5 on 2021-07-15 17:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('students', '0006_certificate_number'),
]
operations = [
migrations.AddField(
model_name='certificate',
name='quali',... | [
"virgyperry@gmail.com"
] | virgyperry@gmail.com |
4ab14ef84ce729ba2486b674e55441937e958a62 | 474a25bd28ae6dd8e7c56d68b862db647d3529d3 | /S18/hw2/homework2part2bonus.py | da55948f35e5a9bcc1b61f4395ddfe92d52a2b05 | [
"MIT"
] | permissive | stanleylio/OCN318 | 932dfb6f2a892e8b328c91f24f925d1352375780 | 98f0329ea38ddd4ed2966f8f845a0bb29e71b923 | refs/heads/master | 2021-10-21T15:41:50.576242 | 2019-03-05T00:16:59 | 2019-03-05T00:16:59 | 116,876,802 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # Optional/bonus/challenge:
# Read serial_log.txt, merge the first two columns by adding them, write it
# and the second and thrid columns to output2.csv. Like so:
# INPUT:
'''
256,0,24.525,103.70,251,270,1382,1573,582,2215
256,20,24.559,103.63,252,272,1381,1570,581,2212
256,40,24.547,103.60,252,272,1380,1569,580,2210
... | [
"stanleylio@gmail.com"
] | stanleylio@gmail.com |
f3f95afea6aead3a52c458eed26fc06cb5dd44ce | ddb8c14775dfbe9424691dabf1617273d118d317 | /catkin_ws/devel/lib/python2.7/dist-packages/mavros_msgs/msg/_GlobalPositionTarget.py | 96722d89a6da52dbb7770b254f948a6d5bdf1d68 | [] | no_license | rishabhdevyadav/fastplanneroctomap | e8458aeb1f2d3b126d27dc57011c87ae4567687a | de9d7e49cb1004f3b01b7269dd398cf264ed92b4 | refs/heads/main | 2023-05-12T22:12:27.865900 | 2021-05-26T19:25:31 | 2021-05-26T19:25:31 | 356,674,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | /home/rishabh/catkin_ws/devel/.private/mavros_msgs/lib/python2.7/dist-packages/mavros_msgs/msg/_GlobalPositionTarget.py | [
"rishabhdevyadav95@gmail.com"
] | rishabhdevyadav95@gmail.com |
36238d17dc749e208acea5c839924ec2c33965c3 | 64bb32d32508408de37f442834557b9ccefac78c | /exemplo_5.py | c068a2a79e39f747fcb54262c3004444c704cb5f | [
"MIT"
] | permissive | dunossauro/efeitos-colaterais | 4ae665d6f9e5fed19bc14a51a6ffc66671415dca | 65e6ad81ec2fe354cd8f8fb1c8850b34b499a73b | refs/heads/master | 2020-05-09T12:51:24.942080 | 2019-04-13T05:45:01 | 2019-04-13T05:45:01 | 181,126,691 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from typing import Text
from urllib.request import urlopen
def web_scrap_pika(url: str) -> Text:
"""Dada uma url, retorna o html da página."""
return urlopen(url).read()
web_scrap_pika('http://gogle.com.br/')
# web_scrap_pika('http://google.com.br/')
| [
"mendesxeduardo@gmail.com"
] | mendesxeduardo@gmail.com |
ab7e59e993b57c2f86a2e63a1874c50070fabffb | 7aa4e4bfee6b0a265a4bcf1b7f81291f3299f43b | /Day2/LifeInDays.py | 8713567113b19a56c19c1dc62f46a4232acd7686 | [] | no_license | fazer1929/100DaysOfCode_Python | 464b54e33fdda25f985a4a7fde327ceafc88fa93 | 313cd77ad7266b18fd2442548569cf96f330ce26 | refs/heads/main | 2023-05-05T01:59:48.936964 | 2021-05-30T14:34:57 | 2021-05-30T14:34:57 | 311,775,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | curr_age = int(input("Enter Your Current Age:\n"))
goal_age = int(input("What's Your Goal Age:\n"))
years_left = goal_age-curr_age
print(f"You Have {years_left*12} Months, {years_left*52} Weeks, and {years_left * 365} Days Left In Your Life") | [
"abhishekagrawal8888@gmail.com"
] | abhishekagrawal8888@gmail.com |
060e690b134f7fd7615d409265da32b37fb6c385 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2523/60653/241945.py | ba726c0eda681277b4668abe98ff2eeb7119c00e | [] | 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 | 983 | py | s = input()
n = len(s)
ss = s[1:n-1]
flag = False
t = []
temp = []
for i in range(0, len(ss)):
if ss[i] == '[':
temp = []
elif ss[i] == ']':
t.append(temp)
elif ss[i] != ',':
temp.append(int(ss[i]))
high = len(t)
wide = len(t[0])
col = wide
ans = [[0 for i in range(0, wide)]for j in ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
5f54007663920d62ddfac71a3923bd55f86a3c32 | 3d62a14eb69baea0737f8c093336cbf6380b30a7 | /dingtalk/api/rest/OapiAtsJobDeliverAddRequest.py | bb4b70e4c9fd3056074e5e305d23a26fda12c8f1 | [] | no_license | KangSpace/message_plus_server | 50cbc55c296d5e835a0c6f99f45cf699f6806add | 300954993f44648db3a2124d587533656d970d6c | refs/heads/main | 2023-05-01T15:08:18.195400 | 2021-05-27T04:41:56 | 2021-05-27T04:41:56 | 361,338,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | '''
Created by auto_sdk on 2020.08.04
'''
from dingtalk.api.base import RestApi
class OapiAtsJobDeliverAddRequest(RestApi):
def __init__(self,url=None):
RestApi.__init__(self,url)
self.biz_code = None
self.deliver_channel = None
self.deliver_msg = None
self.deliver_outer_id = None
self.deliver_s... | [
"kango2gler@gmail.com"
] | kango2gler@gmail.com |
16d8618a91240b907004c7162f6a9f731ff4c901 | 6b6892f98ebc492faaf915e7ce1c4fec6b274f11 | /tests/integration_test/test_scanner_and_parser.py | 4a62275ab544bd3b8f5be6aa143680bce181c331 | [] | no_license | samuel-cavalcanti/ufu_language_ufu | f0875c3ad198be8140503f9b19498c5f6e6d17cd | 685f6ead5076f3ae5f4c347ec4bd62f92e4b2b52 | refs/heads/main | 2023-08-16T09:25:44.028979 | 2021-10-25T15:24:19 | 2021-10-25T15:24:19 | 405,813,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,259 | py | import os
import pathlib
import unittest
from typing import List
from src.scope_detection import ScopeDetectionPlugin
from src.source_program import TensorSourceProgram, SourceProgram
from src.tree_graphviz_visualizer import TreeGraphvizVisualizer, GraphvizNodeWrapper
from src.ufu_parser import UfuParserException, Ufu... | [
"scavalcanti111@gmail.com"
] | scavalcanti111@gmail.com |
a5840a6f38059f10178ee4915786df8daa518c86 | 5845f3db50799e1815a0c9fbbbd4fddeeb69866e | /Backend/NeuroNet/coplay/migrations/0001_initial.py | 28e9782c150638bee661ffe6e0c7b7ed02e95e20 | [] | no_license | TzahiM/NeuroNet | c8dff3acbcd20754c4a735fd8b11bacc7c96349e | b41538507e63faaaaeb697d158c124631c9844a7 | refs/heads/master | 2022-12-06T12:45:41.069183 | 2020-08-17T14:43:47 | 2020-08-17T14:43:47 | 15,221,496 | 9 | 6 | null | 2022-11-26T22:33:10 | 2013-12-16T09:10:36 | Python | UTF-8 | Python | false | false | 17,890 | py | # Generated by Django 2.2.7 on 2020-02-11 18:04
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import taggit.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable... | [
"tzahimanmobile@gmail.com"
] | tzahimanmobile@gmail.com |
055395ad79da42a43a2d9c7e8dabccf55e67b459 | 7172fb0554d2c3f69964079f3543f5d7501ad399 | /18.http服务器/11.使用字典管理路径.py | dad32329bafcbf35231463136c0caa48a927e8c5 | [] | no_license | menghaoshen/python | 6179d37e53ce64bf657cb399d68af53b89f7d336 | e8e371a095a624094bbbbd5836b98f0a27d77608 | refs/heads/master | 2023-02-28T02:09:05.886748 | 2021-01-30T10:57:54 | 2021-01-30T10:57:54 | 334,394,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | from wsgiref import simple_server
from wsgiref.simple_server import make_server
import json
def load_file(file_name, **kwargs):
try:
with open('./pages/' + file_name,encoding='utf8') as file:
content = file.read()
if kwargs:
content = content.format(**kwargs)
... | [
"you@example.com"
] | you@example.com |
c83468208c887a76a51cd88493df65e960025e7c | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2331/60699/304036.py | ff04a35a55670696a84d943656bff728f1f8991b | [] | 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 | 348 | py | a=input()
if a=="3 4 2":
print(3)
elif a=="248 249 28":
print(11)
elif a=="5 5 2":
print(1170)
elif a=="233 250 171" or a=="249 250 49" or a=="12 12 7":
print(1)
elif a == "12 22 3":
print(435)
elif a == "8 9 5":
print(643)
elif a == "250 250 167":
print(20)
elif a == "250 250 91":
print... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
7b67e3c3711abf44a9fc1d4c41cad9603a0e464d | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_1447.py | f27de22b557389aea5fc6a9cb62d62da26479c67 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | # Python UDP socket port random, despite assignment
addr
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
e85cdee4a3397c0f794c1b9009158677dfa80e58 | 651a296c8f45b5799781fd78a6b5329effe702a0 | /polpak/slice.py | 2e37201d7db75d6731845ba5d51591242bdbe4cd | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | #!/usr/bin/env python
def slice ( dim_num, slice_num ):
#*****************************************************************************80
#
## SLICE: maximum number of pieces created by a given number of slices.
#
# Discussion:
#
# If we imagine slicing a pizza, each slice produce more pieces.
# The position ... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
f1bb6919b29a604fd7f957f83a0d49d99e698070 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /pYwnLBJHBbHaEEano_23.py | 9894fde60d5d92b1a1ab2f5f2a28bd3b845bce9d | [] | 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 | 448 | py | """
Create a function that returns the number of hashes and pluses in a string.
### Examples
hash_plus_count("###+") ➞ [3, 1]
hash_plus_count("##+++#") ➞ [3, 3]
hash_plus_count("#+++#+#++#") ➞ [4, 6]
hash_plus_count("") ➞ [0, 0]
### Notes
* Return `[0, 0]` for an empty string.
... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
18e99f00327106012257c616c51dcbfbcd38d40d | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/test_20210708160514.py | 4bd75d31fa17f244986537fdba03e139bce412fc | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | # -*- coding: utf-8 -*-
def summerWeather(weather):
output = ['sunny', 0, 'rainy', 0]
sunnyDays = 0
rainyDays = 0
for char in weather:
if char == 's':
sunnyDays += 1
elif char == 'r':
rainyDays += 1
output[1] = sunnyDays
output[3] = rainyDays
return ... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
6c261912473c7f3eabeca353792605137f73a79b | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/wallet.py | fc33c8cbe22dd15190b440545304f8fa657d49a8 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 237 | py | ii = [('PeckJNG.py', 1), ('BailJD2.py', 1), ('WilkJMC2.py', 1), ('CarlTFR.py', 2), ('AinsWRR3.py', 3), ('BuckWGM.py', 1), ('MedwTAI.py', 1), ('GodwWLN.py', 2), ('MedwTAI2.py', 1), ('BuckWGM2.py', 1), ('ClarGE3.py', 1), ('RogeSIP.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
606d56bda5bec54cca32f7289dda53aa9622eb1e | 92fb3d19b329434fe577fb5b8cc2e3302700d427 | /Week10/todo/auth_/views.py | 7678469b2f4a1f1372e11894947823e3fcef4595 | [] | no_license | aigerimzh/BFDjango | 6a2635db8a1017b64c304193277d3030b3daf196 | 99f81274abdf0afcd9925cf2af057e616c433448 | refs/heads/master | 2020-03-28T22:45:13.782301 | 2018-11-22T17:10:54 | 2018-11-22T17:10:54 | 146,699,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | from django.shortcuts import render,redirect
from django.contrib import auth
from django.contrib.auth.forms import UserCreationForm
def register(request):
form = UserCreationForm(data=request.POST or None)
if request.method == 'POST':
if form.is_valid():
form.save()
return redi... | [
"ajgerimzumabaeva10@gmail.com"
] | ajgerimzumabaeva10@gmail.com |
5fe57e458aa01635a031408f04ea47cd2bacc800 | c085b06c9eb220eb40b5ada840886c09a152f053 | /Libros de Python/Tutorial Tkinter/35-VENTANAS TOP LEVEL/toplevel0.py | 4edcad08b63f389a0308802934d501cdb36a5e66 | [] | no_license | thanggc/libros | 7d3bf564c5a227f08390fbcc6721a0aed160e3e0 | 430c03fe97544d263b5c3a665327b527d9c223a8 | refs/heads/master | 2020-12-25T13:23:38.527089 | 2013-04-29T23:14:08 | 2013-04-29T23:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | import sys
from Tkinter import Toplevel, Button, Label
win1 = Toplevel( ) # two independent windows
win2 = Toplevel( ) # but part of same process
Button(win1, text='Spam', command=sys.exit).pack( )
Button(win2, text='SPAM', command=sys.exit).pack( )
Label(text='Popups').pac... | [
"mini.guero@hotmail.com"
] | mini.guero@hotmail.com |
fc0127a328c3f2a5996058e5d31f44a27cc619f9 | 2f9eddc071b87698e27a3fd5c6066a0db99f6f92 | /math/_TODO_self_crossing.py | 08a5fd9e84977b6b8e44de5169d8f1f2ba9ac4a7 | [] | no_license | Lancher/coding-challenge | d8c5ec528ef802fef9817e64be94fc246d95e84f | 4c8f833a6e3375c6cbb31ff487ad766c53a74755 | refs/heads/master | 2022-01-20T03:19:11.452412 | 2022-01-10T05:23:47 | 2022-01-10T05:23:47 | 137,972,744 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py |
# 335. Self Crossing
#
# | [
"steve.liushihao@gmail.com"
] | steve.liushihao@gmail.com |
35b34e4dbe65d1a22f6624d6812a0c04425f9b36 | 1a2ca64839723ede3134a0781128b0dc0b5f6ab8 | /ExtractFeatures/Data/rcdosado/files.py | 8a6658a6906bc5dcd8af4c9bba388de5f2937349 | [] | no_license | vivekaxl/LexisNexis | bc8ee0b92ae95a200c41bd077082212243ee248c | 5fa3a818c3d41bd9c3eb25122e1d376c8910269c | refs/heads/master | 2021-01-13T01:44:41.814348 | 2015-07-08T15:42:35 | 2015-07-08T15:42:35 | 29,705,371 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 11,536 | py | """
Files Pipeline
"""
import hashlib
import os
import os.path
import rfc822
import time
import urlparse
from collections import defaultdict
from cStringIO import StringIO
from twisted.internet import defer, threads
from scrapy import log
from scrapy.contrib.pipeline.media import MediaPipeline
from scrapy.exceptions... | [
"vivekaxl@gmail.com"
] | vivekaxl@gmail.com |
050f4a003437d05f9d249cce64febee10945a0b1 | 8e17bbd6da5be22032d266a6c96a0f1d908db082 | /code/params/objective_stacking_cnmn2d_cassava_params6_1.py | e8743b620fb26c3ab03577de9967af0c4fceac94 | [] | no_license | riron1206/kaggle_Cassava | f39f40a1a356a4ecfb4f9de6b379cd6ca50e92cc | 91cb793a153686a9dd671c8b2ed83312437c237b | refs/heads/master | 2023-06-11T08:02:38.265142 | 2021-06-29T12:42:11 | 2021-06-29T12:42:11 | 320,337,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,077 | py | import os
import glob
import pickle
import json
import numpy as np
import pandas as pd
if os.getcwd() in "/kaggle/working":
ROOT_DIR = "../input/cassava-leaf-disease-classification"
TRAIN_DIR = "../input/cassava-leaf-disease-classification/train_images"
TEST_DIR = "../input/cassava-leaf-disease-classificat... | [
"rironyokoi@gmail.com"
] | rironyokoi@gmail.com |
f2c708a1a0e0459532507bea2a57f1103845c6ca | 2031771d8c226806a0b35c3579af990dd0747e64 | /pyobjc-framework-Quartz/PyObjCTest/test_cifeature.py | ff1e18f555b01d5a7991a2ad2531737adeb73dd1 | [
"MIT"
] | permissive | GreatFruitOmsk/pyobjc-mirror | a146b5363a5e39181f09761087fd854127c07c86 | 4f4cf0e4416ea67240633077e5665f5ed9724140 | refs/heads/master | 2018-12-22T12:38:52.382389 | 2018-11-12T09:54:18 | 2018-11-12T09:54:18 | 109,211,701 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | from PyObjCTools.TestSupport import *
from Quartz.QuartzCore import *
class TestCIFeature (TestCase):
@min_os_level('10.7')
def testConstants10_7(self):
self.assertIsInstance(CIFeatureTypeFace, unicode)
@min_os_level('10.10')
def testConstants10_10(self):
self.assertIsInstance(CIFeatur... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
ed8fbc48da1892503070138203b835bc0d9e137d | f94790a262f6d31f91ec0a0b63d5212a36a9ee6d | /ex_cdf.py | a11cfadc90af2636a70787e23df2950eaa420c6f | [
"BSD-3-Clause"
] | permissive | rc/dist_mixtures | 02d893898b986b3123511d7fdb8bb37bb282261a | 6cb1219339b6c0ce66a240fe6626402ea23fe19f | refs/heads/master | 2021-01-13T01:36:52.982612 | 2014-07-23T13:50:09 | 2014-07-23T13:50:09 | 6,022,654 | 0 | 1 | null | 2013-06-24T13:13:33 | 2012-09-30T21:43:35 | Python | UTF-8 | Python | false | false | 2,553 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 26 21:57:48 2012
Author: Josef Perktold
"""
import numpy as np
from scipy import stats, interpolate, integrate
from dist_mixtures.mixture_von_mises import (VonMisesMixture,
normalize_params, shift_loc)
from numpy.testing imp... | [
"josef.pktd@gmail.com"
] | josef.pktd@gmail.com |
c739384123c1cafc5d328789b70ffb9fce4d959e | 3d90d6753cbb48c74dc8e72f4a886635a706ee16 | /day21/machineManage/models.py | d95587f996c558e0db3b7628a028821024556478 | [] | no_license | shun-zi/python | 01354dfc23e470c67ae6adc323b7b23c446faf95 | 9b9851a608cfa18392464b7d887659ced8eb58a6 | refs/heads/master | 2021-09-12T23:15:35.586858 | 2018-04-22T12:32:41 | 2018-04-22T12:32:41 | 113,460,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | from django.db import models
# Create your models here.
from django.db import models
# Create your models here.
class Business(models.Model):
caption = models.CharField(max_length=32)
class Host(models.Model):
hostname = models.CharField(max_length=32, db_index=True)
ip = models.GenericIPAddressField... | [
"mac@macdeMacBook-Pro.local"
] | mac@macdeMacBook-Pro.local |
3ef4fd8192b1b1bab251d1df9c1023f6f41d0d81 | 44db7bdd50851721dc174164241bd3f7ea7dfc0d | /server.py | f3d0b94a15617b8bb4afbef67f2cd8d11062f891 | [] | no_license | TobyChen0106/109-1-web-deploy-tutorial | d09f4bab1bb20131ec8192b560de594b10d2c4fb | b349e7c0758799bb7107dfe69b183f2cf31f6a37 | refs/heads/main | 2023-02-20T23:57:00.910139 | 2021-01-21T15:28:00 | 2021-01-21T15:28:00 | 330,571,678 | 0 | 60 | null | 2021-01-21T15:28:01 | 2021-01-18T06:11:03 | JavaScript | UTF-8 | Python | false | false | 493 | py | import os
from flask import Flask, send_from_directory
app = Flask(__name__, static_folder='build')
# Serve React App
@app.route('/', defaults={'path': ''})
@app.route('/<path:path>')
def serve(path):
if path != "" and os.path.exists(app.static_folder + '/' + path):
return send_from_directory(app.static_f... | [
"you@example.com"
] | you@example.com |
0074d53fc059f15dcb42fd034ac439499cc1c25c | 594b5152cfc6774282aa7be589e200bedaba5400 | /ietf/nomcom/redirect_ann_urls.py | 7688896b5ee55fb004526370d13211f9949e8d7c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wpjesus/codematch | a3adaae02ed848e24058c818bc847eab824e8f23 | 5af455fbe6b0c7e60b8af360718345ba044597a4 | refs/heads/master | 2021-04-12T04:10:10.423230 | 2016-12-21T14:39:18 | 2016-12-21T14:39:18 | 35,008,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | from django.conf.urls import patterns
from django.views.generic import RedirectView
urlpatterns = patterns('',
(r'^nomcom/$', RedirectView.as_view(url="/nomcom/ann/", permanent=True)),
(r'^nomcom/(?P<message_id>\d+)/$', RedirectView.as_view(url="/nomcom/ann/%(message_id)s/", permanent=True)),
)
| [
"wanderson.paim@gmail.com"
] | wanderson.paim@gmail.com |
0b233cde6483ae7b165746fa0a5b512f9e774d19 | d9d8137db80187e6888f54846759d344e02a43b7 | /chap3/ex4.py | 354b4814596553e47fab463021931e062f9b5b66 | [] | no_license | afeefebrahim/anand-python | 10a38a207f5dd5585059f437436bde8dfbcd96de | 08e387a322c757854485cee238bab066af1c6f7b | refs/heads/master | 2021-01-25T03:54:15.224784 | 2015-05-10T15:55:13 | 2015-05-10T15:55:13 | 35,376,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | #Write a program to list all the files in the given directory along with their length and last modification time.
import os
import time
cwd = os.getcwd()
l = os.listdir(cwd)
for i in l:
print i,"\t",len(i),"\t" ,time.ctime(os.stat(i)[9])
| [
"afeefebrahim@gmail.com"
] | afeefebrahim@gmail.com |
c7a5f41a7876dc8c9c8ceddac1a08a468c519c7c | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_19484.py | f4c3312fdb1d6c045d63c966e9b0f5e12c4c16d9 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | # Do iteration variable exist after the iteration statement in python?
i
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
0d2309afca19f5d9ed36e29836d1d1e12cfc9e53 | 344add9ee0997458d96f9c45202a4eeb825a185f | /pkg/suggestion/bayesianoptimization/src/algorithm_manager.py | d7d5628403d7c1e0d2c763718e75ebd2a1157d03 | [
"Apache-2.0"
] | permissive | lyft/katib | 2de14e3a6cd1eb91a3fa1b5fa8362faa5a76d498 | 72fafad12ccdd86394cd9bd1cb80ad00203c959a | refs/heads/master | 2023-09-04T07:00:18.159809 | 2018-07-04T06:58:45 | 2018-07-04T06:58:45 | 137,107,090 | 4 | 3 | Apache-2.0 | 2019-05-21T15:09:26 | 2018-06-12T17:39:14 | JavaScript | UTF-8 | Python | false | false | 6,702 | py | """ module for algorithm manager """
import numpy as np
from pkg.api.python import api_pb2
def deal_with_discrete(feasible_values, current_value):
""" function to embed the current values to the feasible discrete space"""
diff = np.subtract(feasible_values, current_value)
diff = np.absolute(diff)
re... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
97bd034a088a8af648274b6103205a616afb196a | 6411acb3828fec8cc79f6f2630a4d99e8352a9aa | /1002.py | 8fa06f121fa5f735c7b2eb2dabde26ebfdc58b13 | [] | no_license | zhouliuling/Leetcode_Task | 95f55a3ca33b561a130fc15272e513d9af2c0317 | 0230d31351a4093e8ae6be5fe0c175f3f41e08ac | refs/heads/master | 2020-05-25T18:44:59.377953 | 2019-09-12T02:14:22 | 2019-09-12T02:14:22 | 187,935,297 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | ## 查找常用字符
# 记录A中第一个单词中个字母,以此为对照,查找在其他所有单词中这些字母出现的最小值,更新res
class Solution(object):
def commonChars(self, A):
"""
:type A: List[str]
:rtype: List[str]
"""
res = []
if not A:
return res
key = set(A[0])
for i in key:
# 遍历key中字符,... | [
"noreply@github.com"
] | zhouliuling.noreply@github.com |
f7046d5a53bd32cae16d43d6b000465551d5080e | b1222efc9c0d8a6f4549d12490344695e07a2fed | /scripts/fit_tilted_module_orientations.py | 934e889aed4ba5216c894d9667d67d5f2fe2e385 | [] | no_license | sgnoohc/TrackLooper_ | c703d8efb717480b999be555a3193f76b855d5b2 | 250067deebeb7a0ac6b9d73f780ab09ef6e826fd | refs/heads/master | 2023-02-04T14:40:40.091380 | 2020-12-22T20:45:45 | 2020-12-22T20:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py | #!/bin/env python
import ROOT as r
import math
import sys
f = open("scripts/tilted_hits_sorted.txt")
lines = f.readlines()
hits = {}
# Parse and store hits
for line in lines:
ls = line.split()
detid = ls[0]
hit = (float(ls[2]), float(ls[3]), float(ls[1])) # NOTE in txt file we have z, y, x coordinates
... | [
"sgnoohc@gmail.com"
] | sgnoohc@gmail.com |
c7c2dd0c37c52048e4336e72c217716ce3f87677 | ddc47b938d7ce1ccc3e239291b8db26eeca71226 | /python-tips-and-tricks/Analyzing-Coronavirus-with-Python-COVID-19/main4.py | 09c9c7814bbe0e1a3f8a3a846db94ee648920d31 | [] | no_license | abderrahmanesaad/python-climb-learning-tutorial | fad70b0d3d5cadf871198cffcb35be15402c63d4 | 8d32f8c50cb878d79d6e7b53c116e25f8ac8faf6 | refs/heads/main | 2023-06-19T01:11:09.672766 | 2021-07-17T06:12:01 | 2021-07-17T06:12:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | from datetime import date
import pandas as pd
import matplotlib.pyplot as plt
from pandas.core.indexes.datetimes import date_range
confirmed = pd.read_csv('covid19_confirmed.csv')
deaths = pd.read_csv('covid19_deaths.csv')
recovered = pd.read_csv('covid19_recovered.csv')
confirmed = confirmed.drop(['Province/State', ... | [
"lucifercaonima@gmail.com"
] | lucifercaonima@gmail.com |
baf0f2aeeca7bb24a5c0030f0955dbb94b99e4b3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03838/s202669174.py | 836ed1ded294d6d1c3c3c232ac50e8028a825806 | [] | 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 | 472 | py | import sys
readline = sys.stdin.readline
sys.setrecursionlimit(10**8)
mod = 10**9+7
#mod = 998244353
INF = 10**18
eps = 10**-7
x,y = map(int,readline().split())
if x*y > 0:
if x > y:
print(x-y+2)
else:
print(y-x)
elif x*y < 0:
print(abs(abs(x)-abs(y))+1)
else:
if x == 0:
if y... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c20f0a2533a2fb5e9626191ae466117af1dca0a6 | ebecd8174964a3b68e4844f8a5059dd6af3d12e2 | /convlab/modules/nlu/multiwoz/bert/train.py | 8853b14814dfb3a70cab891482f47e9567f0cded | [
"MIT",
"Apache-2.0"
] | permissive | sangmukjo/ConvLab | ef87230113e5d57927b9e4084f501f2a7b6aa496 | 78b141f10e47d08f9e7edc9d0f96d5f29fed4f29 | refs/heads/master | 2020-09-19T23:18:06.648812 | 2019-11-14T14:03:36 | 2019-11-14T14:03:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,168 | py | import argparse
import pickle
import os
import json
import torch
from torch.utils.tensorboard import SummaryWriter
import random
import numpy as np
import zipfile
from copy import deepcopy
from pprint import pprint
from transformers import BertConfig, AdamW, WarmupLinearSchedule
from convlab.modules.nlu.multiwoz.bert.d... | [
"zhuq96@hotmail.com"
] | zhuq96@hotmail.com |
b5227811f8ff21c586686de735d5b8ea6342b96c | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/requests/requests/__init__.pyi | b3b3796044afe2b214a05f6a26825c6ffdc8cf64 | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 1,240 | pyi | from .__version__ import (
__author__ as __author__,
__author_email__ as __author_email__,
__build__ as __build__,
__cake__ as __cake__,
__copyright__ as __copyright__,
__description__ as __description__,
__license__ as __license__,
__title__ as __title__,
__url__ as __url__,
__v... | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
44b93d5c2c2649b9900191e9904231d50cf173fb | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/arc/arc045/C/answers/178173_ookie.py | c5fe272fa8a707cd1d887a63b97880bce82c9b70 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | input_line = input()
input_line=input_line.replace("Left","<")
input_line=input_line.replace("Right",">")
input_line=input_line.replace("AtCoder","A")
print(input_line) | [
"kojinho10@gmail.com"
] | kojinho10@gmail.com |
4ed91c56cbb9a9d7e6128fbddac4a5cef75b31b8 | 9d3f69539e8f94f82bca5aa446f73b5da3372c0c | /home/migrations/0001_load_initial_data.py | 40d6238d6d12519760d5c66ddc8b064af79d988d | [] | no_license | crowdbotics-apps/django-first-30370 | 3730292b45ec8e804a867ece6f03a8aebaee0f0f | 7b029fc887a1851ae571d8a686dac8b2b0ca5d32 | refs/heads/master | 2023-07-31T21:24:30.045046 | 2021-09-07T08:50:05 | 2021-09-07T08:50:05 | 403,907,104 | 0 | 0 | null | 2021-09-15T01:54:38 | 2021-09-07T08:50:00 | Python | UTF-8 | Python | false | false | 542 | py | from django.db import migrations
def create_site(apps, schema_editor):
Site = apps.get_model("sites", "Site")
custom_domain = "django-first-30370.botics.co"
site_params = {
"name": "django-first",
}
if custom_domain:
site_params["domain"] = custom_domain
Site.objects.update_o... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2650a037a8d32cb89cfdc996ff25c95b5189c24c | 4f584789b99a33d806da0b7c5b63da3b608f7b48 | /scripts/get_real_footprint_lengths_for_not_clustered_reads_all_at_once.py | 66fc472eadec75925f67791eae4087cf208a0acc | [] | no_license | satyanarayan-rao/protein_binding_at_enhancers | f10580e76adcc057bf21614c0f9a3c96a8b3f0d5 | 74a6a33efb7acff073b0dcec96c917a4cd019219 | refs/heads/master | 2022-11-30T13:56:41.520639 | 2020-08-11T21:17:19 | 2020-08-11T21:17:19 | 286,848,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,351 | py | import os
import sys
import re
from collections import defaultdict
import pickle
from extend_a_given_read import extend_footprint_from_center
from capital_peracentage_and_unbound_stretches import capital_percentage_and_stretch_of_unbound
# Look at the rule get_real_footprint_lengths_and_oraange_on_read
def get_count_an... | [
"satyanarayan.iiitm@gmail.com"
] | satyanarayan.iiitm@gmail.com |
26ae8e2765f313a1d23f51c4d4fd4675d4d46ac2 | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/PearRay/ui/properties_render_layer.py | cdd22ee7795f51098c6268fd38aca3ac1b1c37e5 | [] | 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 | 2,340 | py | import bpy
from bl_ui.properties_render_layer import RenderLayerButtonsPanel
from bl_ui import properties_render_layer
properties_render_layer.RENDERLAYER_PT_layers.COMPAT_ENGINES.add('PEARRAY_RENDER')
del properties_render_layer
class RENDERLAYER_PT_pr_layer_options(RenderLayerButtonsPanel, bpy.types.Panel):
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
c731a006826267fe9897c50dbf7e0afce0d6b99b | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D01C/MEQPOSD01CUN.py | b83028ea25121ac12e3afc0f93319016b32de31b | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 920 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD01CUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 9},
{ID: 'QTY', MIN: 0, MAX: 1},
{ID: 'LOC'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
31996f2e3a8cde926385900a99e027cc67123a66 | da1dbb0e1c8c323bbf7ba0eac43b5815ce075282 | /python/ccxt/_1btcxe.py | a549f6a09c14bccc32d76c2f29490d6177eb7ff1 | [
"MIT"
] | permissive | alexander-dev-hub/ccxt | d339662d527bdf0d99380c61ccce233c4475d1a1 | eba5dbe98cf106361c45cec9debda3d2722ea878 | refs/heads/master | 2022-07-10T05:03:35.809978 | 2019-09-02T19:10:10 | 2019-09-02T19:10:10 | 205,919,117 | 1 | 1 | MIT | 2022-06-22T15:56:21 | 2019-09-02T19:00:14 | JavaScript | UTF-8 | Python | false | false | 12,471 | py | # -*- coding: utf-8 -*-
# PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
# https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
from ccxt.base.exchange import Exchange
# -----------------------------------------------------------------------------
try:
basestri... | [
"wangming19871126@gmail.com"
] | wangming19871126@gmail.com |
6bbf0ba04d2fd0b8c99fd9cd20c7f00fdcc70c99 | cb13037cdbd3e0ab6108670108e9497cc1e2a5a7 | /1.networkProgramming/2.parallelProgramming/1.multiProcess/6.consumerProducerModel.py | de70a962883b9ed441b5f51f0d8e699b5b3e7dc9 | [] | no_license | GMwang550146647/network | 390fe0d1c72dcaca8b6d6dd1307adca0d56b55ce | 576de9b993f7763789d25a995702b40c9bc6fa57 | refs/heads/master | 2023-06-15T04:42:54.306077 | 2021-07-12T06:06:02 | 2021-07-12T06:06:02 | 315,488,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | """
生产者消费者模型
#爬虫
#分布式操作
#本质:让生产者数据和消费者数据的效率达到平衡并且效益最大化
"""
import time
from multiprocessing import Queue,Process
def consumer(q,ith):
count=0
while True:
count+=1
print("Consumer {} -> {}th get: receive from consumer {}".format(ith,count, q.get()))
time.sleep(10)
def producer... | [
"550146647@qq.com"
] | 550146647@qq.com |
b10bc2e74b059347daf4ebafb9f44b520e2322cc | 1130f61cef895ae0afb3359d1d00ae9ed77de103 | /db/upload_dogsand.py | f0070b6d0ef7dff9e1c02df841d3c9f480452951 | [] | no_license | zhoulingjie/WeiboApp | 32a3538762ec8f3244aaa73b29e7f30f4f86c821 | cab2738a7f0d70d33548a968cdbbb07629e075a8 | refs/heads/master | 2020-03-30T07:22:50.553321 | 2015-10-11T13:39:34 | 2015-10-11T13:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,403 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from __future__ import unicode_literals
import config
import os
import mimetypes
import time
from leancloud_api import LeanCloudApi
from single_process import single_process
from ..crawler.animal.animals_tumblr import (
DogsandpupsdailySpider,
)
class Upload(object):
... | [
"291374108@qq.com"
] | 291374108@qq.com |
67c26969f243fd221297af34fc725b09bf584f9b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_allotments.py | ed7f5e9719c5fed9cb2698693b616c7a23cb278f | [
"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 | 259 | py |
from xai.brain.wordbase.nouns._allotment import _ALLOTMENT
#calss header
class _ALLOTMENTS(_ALLOTMENT, ):
def __init__(self,):
_ALLOTMENT.__init__(self)
self.name = "ALLOTMENTS"
self.specie = 'nouns'
self.basic = "allotment"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1c8a4e484f7508ab4b2131c9a0a05b6babea21fd | 273484a9dc7778e2c0310befcf65506e60b468c0 | /neurolab/optimization/metric/acc.py | 8f869060853577c5bb2fe47293516de0faa00909 | [
"MIT"
] | permissive | GabrieleLagani/HebbianLearning | 942a44778abbaccc14bc624887b5d96c6506bfa5 | a7ed2f8a5925426880b5c315a7caf1ef1891001a | refs/heads/master | 2023-02-14T22:47:07.220429 | 2023-01-23T11:31:32 | 2023-01-23T11:31:32 | 219,447,087 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | import torch
from ..optimization import MetricManager
from neurolab import params as P
# Return number of correctly classified samples given network outputs and target labels. The experiment class is then
# going to average over a batch of data, thus finally obtaining an accuracy score.
class AccMetric:
def __call_... | [
"gabriele.lagani@gmail.com"
] | gabriele.lagani@gmail.com |
1e485d8df5c3a0b6c396abc75d92993f0b54c395 | b210204be933427fbe36448d226d557c744fd62e | /Day 12.py | f5b28cd6d5281888f7ce53ab0c02f12c5d619a02 | [] | no_license | AdamBures/JUNE-CHALLENGE-2020 | ad364ec68149083dbd83f20c5791e0efeef60bde | 902e331cba0c4b6ce1c20e1bb4471d3505441293 | refs/heads/master | 2022-11-08T00:41:13.627477 | 2020-07-02T14:30:53 | 2020-07-02T14:30:53 | 276,668,165 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | import random
class RandomizedSet(object):
def __init__(self):
self.nums, self.pos = [], {}
def insert(self, val):
if val not in self.pos:
self.nums.append(val)
self.pos[val] = len(self.nums) - 1
return True
return False
... | [
"noreply@github.com"
] | AdamBures.noreply@github.com |
8d7b15b7d899e55c12a118a029163baa20f6407c | ea58aa620efb89c0e8636efc8f15534eec4ac799 | /polyaxon/projects/signals.py | 24230961a04e548a5fabe8087d3158eb2f235929 | [
"MIT"
] | permissive | uber-haupt/polyaxon | fca824cfa0b2baa8c3c06e3ae1676886b028cd89 | 303a7bd452a6386163f9a9c553f385eb1b5a51bc | refs/heads/master | 2020-03-07T01:46:33.227599 | 2018-03-27T20:38:39 | 2018-03-27T20:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,735 | py | from django.db.models.signals import post_save, pre_delete
from django.dispatch import receiver
from libs.decorators import ignore_raw
from projects.models import ExperimentGroup, Project
from projects.tasks import create_group_experiments
from projects.paths import (
delete_project_outputs,
delete_experiment_... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
4ca8025feeb0e33472147dd7e9b438f7e4195926 | 1edb370654498d1ef614f5c05ff9f0969f3c6637 | /david_beazley4/59-links_counting.py | 49875542c0ad78b7af8c2ab13558a0ef140fd4ec | [] | no_license | shmakovpn/python_projects | 147888a54fd585de930e12a5e92f602b6f4e5d7a | 9059334bff6f2fc3d4df69f6bdd009eb4f5f7764 | refs/heads/master | 2020-09-25T13:58:16.226512 | 2020-06-19T05:19:09 | 2020-06-19T05:19:09 | 226,018,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | #!/usr/bin/env python
"""
Книга Девида Бизли "Python подробный справочник 4ое издание"
страница 59
Подсчет ссыллок и сборка мусора
"""
__author__ = "shmakovpn <shmakovpn@yandex.ru>"
__date__ = "2019-12-09"
import sys
import copy
d = []
for x in range(10):
d.append("123")
z = "123"
print(f"z ref count={sys.getrefco... | [
"shmakovpn@yandex.ru"
] | shmakovpn@yandex.ru |
ad34fae614cb8e28612633bacc6876e7ef58503b | f80f77417ca0e3dcb3881b0684e31bfd9cdc1078 | /Implementatioin/1_ans.py | d47216ac6397982a20f8dab9f18d6d73c74e0777 | [] | no_license | mlsh1112/python-for-coding-test | 8b8a812e841aed654a5459a184e6f4cc9c93ae32 | 489ba34a4859be866a7d77add885d62b4cd2dbc4 | refs/heads/master | 2023-07-07T09:10:59.765332 | 2021-07-28T03:16:43 | 2021-07-28T03:16:43 | 346,233,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | n=int(input())
x,y=1,1
plans=input().split()
dx=[0,0,-1,1]
dy=[-1,1,0,0]
move_types=['L','R','U','D']
for plan in plans:
for i in range(len(move_types)):
if plan ==move_types[i]:
nx=x+dx[i]
ny=y+dy[i]
if nx<1 or ny<1 or nx>n or ny>n:
continue
x,y=nx,ny
print(x,y) | [
"replituser@example.com"
] | replituser@example.com |
ef3c060b7e73dd0bebba8ff960ddfea255fd446a | 5a65c8c8f10c9637857b79b6202e5e80ffe1e76d | /catwatch/migrations/env.py | 3ef972ca38b6fd37ca9ee613aaac012ca4d8d92b | [
"MIT"
] | permissive | bikegriffith/build-a-saas-app-with-flask | 7c47c40aab59befa7e668545a797ba91a91494cd | 4b0fcb06cb0e4efb1e3f1d9e3999019580f73a64 | refs/heads/master | 2023-04-13T21:24:31.878621 | 2015-09-08T12:13:12 | 2015-09-08T12:13:12 | 45,186,814 | 0 | 0 | MIT | 2023-04-04T01:34:33 | 2015-10-29T14:03:23 | Python | UTF-8 | Python | false | false | 2,566 | py | from __future__ import with_statement
import os
import sys
import logging
from logging.config import fileConfig
from alembic import context
from sqlalchemy import engine_from_config
try:
from instance import settings
SQLALCHEMY_DATABASE_URI = settings.SQLALCHEMY_DATABASE_URI
except ImportError:
logging.... | [
"nick.janetakis@gmail.com"
] | nick.janetakis@gmail.com |
9ba46b10f29e72b2a162a3815e826a9a0182280a | b6aa9768dbac327943e0220df1c56ce38adc6de1 | /520_detect-capital.py | c68cce1502e31ee94a98eab6d2a5909f78db4264 | [] | no_license | Khrystynka/LeetCodeProblems | f86e4c1e46f70f874924de137ec5efb2f2518766 | 917bd000c2a055dfa2633440a61ca4ae2b665fe3 | refs/heads/master | 2021-03-17T00:51:10.102494 | 2020-09-28T06:31:03 | 2020-09-28T06:31:03 | 246,954,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Problem Title: Detect Capital
class Solution(object):
def detectCapitalUse(self, word):
"""
:type word: str
:rtype: bool
"""
if word == word.lower():
return True
if word[0] == word[0].lower():
return False
if word[1:] == word[1:].low... | [
"khrystyna@Khrystynas-MacBook-Pro.local"
] | khrystyna@Khrystynas-MacBook-Pro.local |
bae12d70d8ae85f71824ccef8826350e9d097a31 | 9c022a7991edc0849251d3d27d1c432920c4644b | /app/authentification/views.py | 930a074993b1b393bb2c86f6424f6e6075ac2432 | [
"MIT"
] | permissive | dancan-sandys/bernblogs | 909fc5e72ad458e41cbd211dca9d1009ce718be0 | 149aa82111bc72b6e7d8cf804c58bfc935e7a53c | refs/heads/master | 2022-12-24T01:26:36.648169 | 2020-10-01T08:08:29 | 2020-10-01T08:08:29 | 300,151,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,450 | py | from flask import redirect, render_template, url_for,render_template, flash
from .forms import SignIn, SignUp
from ..models import User
from flask_login import login_user,logout_user
from . import auth
from .. import db
from flask_login import login_required
@auth.route('/profile/signup', methods = ['GET','POST'])
de... | [
"dancan.oruko96@gmail.com"
] | dancan.oruko96@gmail.com |
f02231ff7de91baa92de8944af2ba1c83194bc5c | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/stacklesslib/replacements/select.py | 4735bd53d19198bd2e3887379f93379f09506d7e | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 789 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\stdlib\stacklesslib\replacements\select.py
from __future__ import absolute_import
import stackless
import stacklesslib.util
import select as real_select
error = real_select.error
__doc__ = real_select.__doc__
_main_... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
e1d08b98844b8d6015ef3183e08237f4af622bf8 | 7ead6a660ef3402f53e805d21772d89b770b3521 | /src/ui/uicore.py | e1f6f83657a3154c6737dd62d8d2589307735b4a | [] | no_license | huybk213/nxp-sec-boot-ui | c3cdc44abc3b8b39583c49aa6b9b2580eb9533f9 | 684965646c832b9f6f087ac9451bcc0f7a5814f4 | refs/heads/master | 2022-01-22T19:02:16.514333 | 2018-11-16T02:41:08 | 2018-11-16T02:41:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,582 | py | #! /usr/bin/env python
import wx
import sys
import os
import serial.tools.list_ports
import uidef
import uivar
sys.path.append(os.path.abspath("../.."))
from gui import secBootWin
sys.path.append(os.path.abspath(".."))
from run import rundef
from fuse import fusedef
s_isGaugeWorking = False
s_curGauge = 0
s_maxGauge =... | [
"jie.heng@nxp.com"
] | jie.heng@nxp.com |
d3ef3cbfc597187e808e087a2a812884bbb82662 | 732b9caa57342007d17c7db4e08eb37f3cbde016 | /dataset_preprocessing/generate_templates.py | d6a8e3947accb78fb8f8069a48bec03c455e5595 | [] | no_license | kedz/mrt | 001f1f6a0e6bf9061a9ea4590125e95a9c9095ce | c42e17c079797c5bc59d4e82f6de863b5fafde04 | refs/heads/master | 2021-05-21T05:56:23.431030 | 2020-05-19T22:54:03 | 2020-05-19T22:54:03 | 252,575,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | #!/usr/bin/env python
import argparse
from pathlib import Path
import json
from collections import defaultdict
from itertools import permutations, product
import mrt.e2e.mr_utils
import mrt.e2e.template_meta
import mrt.viggo.mr_utils
import mrt.viggo.template_meta
def get_rule_set(rule_set):
if rule_set == "E2E... | [
"kedzie@cs.columbia.edu"
] | kedzie@cs.columbia.edu |
96d79233d6afc01140bc88a8fd0eb5cb209db0bf | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4010/431004010.py | 03b971fc544e4640457eb3254a900b1cdb2358a0 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 563 | py | from bots.botsconfig import *
from records004010 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'RM',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'SMB', MIN: 1, MAX: 1},
{ID: 'N4', MIN: 1, MAX: 10},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
eceb5286ea4e4a26e4d437739707f4c7d9212e96 | 3354e6bdd4aeb2ddec84e6a8036c90cd24b6577a | /(구)자료구조와 알고리즘/(구)Quizes/SWEA/swea_1859.py | 655f31e88b9be7e0f61e80a9698445708e21f4d5 | [] | no_license | hchayan/Data-Structure-and-Algorithms | 1125d7073b099d8c6aae4b14fbdb5e557dcb9412 | be060447e42235e94f93a0b2f94f84d2fd560ffe | refs/heads/master | 2023-01-05T10:15:02.862700 | 2020-11-04T08:16:56 | 2020-11-04T08:16:56 | 209,513,516 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py |
for nn in range(int(input())):
i = int(input())-1
lis = list(map(int,input().split()))
ans = 0
k = lis[len(lis)-1]
for j in range(i,-1,-1):
if lis[j] < k:
ans += (k-lis[j])
else:
k = lis[j]
print("#" + str(nn + 1) + " " + str(ans))
'''
for j in r... | [
"k852012@naver.com"
] | k852012@naver.com |
5630188a68c46704921df2a3ecacdf252370afec | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /try_old_year_on_life.py | d13f765d83b26ccd050b1b3cb90f92a6c1d7ad03 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#! /usr/bin/env python
def little_child(str_arg):
same_part_or_part(str_arg)
print('be_different_hand')
def same_part_or_part(str_arg):
print(str_arg)
if __name__ == '__main__':
little_child('eye')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
be86e48466199fc4d4bc60cd6420770bbdacfbd5 | b5e720a291a6ac5877ce49341082f6881270bc84 | /autosklearn/pipeline/constants.py | 2cd95287be55f1265b8506a50a2b5f2d0f1c8b54 | [
"BSD-3-Clause"
] | permissive | Rong-Inspur/auto-sklearn | a39f809ad032c91c5940c5d82622e5c46746261f | 275bf1845bf9045262d5458e3e89a91f60b4e08c | refs/heads/master | 2020-12-08T05:09:37.304712 | 2020-01-03T14:47:47 | 2020-01-03T14:47:47 | 232,893,534 | 0 | 1 | NOASSERTION | 2020-01-09T19:58:02 | 2020-01-09T19:58:00 | null | UTF-8 | Python | false | false | 1,144 | py | """Constants which are used as dataset properties.
"""
BINARY_CLASSIFICATION = 1
MULTICLASS_CLASSIFICATION = 2
MULTILABEL_CLASSIFICATION = 3
REGRESSION = 4
REGRESSION_TASKS = [REGRESSION]
CLASSIFICATION_TASKS = [BINARY_CLASSIFICATION, MULTICLASS_CLASSIFICATION,
MULTILABEL_CLASSIFICATION]
TASK_... | [
"feurerm@informatik.uni-freiburg.de"
] | feurerm@informatik.uni-freiburg.de |
3ddc07b994f9a47b15c62e3322d4f6ed10a9ed90 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20170707/example_memory/05loop.py | 420eb3299f47b3f7bb7e0f1ffabfb2cc05d4988a | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 651 | py | # python -X tracemalloc <thisfile>
import tracemalloc as t
import time
import threading
import logging
logger = logging.getLogger(__name__)
L = []
def tick():
while True:
logger.info("%s", str([t._format_size(x, False) for x in t.get_traced_memory()]))
time.sleep(0.2)
def loop(*, size, times):
... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
b080110d900fd2be9ba57f5479c053b9b1237063 | c9287937c4d7900d311640a2b16c08c42eedfe58 | /tensorflow/python/saved_model/loader_test.py | c1072664c3d3bcbc950525245691f9791313c39b | [
"Apache-2.0"
] | permissive | Purplme/tensorflow | e868e9bf59cc8eb680f1c35bf0b8615ec2b68c62 | d2d6c3f07a0b874e64a024c767deb7c9fb39b704 | refs/heads/master | 2022-11-23T23:38:00.243591 | 2020-07-16T06:20:19 | 2020-07-16T06:25:23 | 280,074,885 | 2 | 0 | Apache-2.0 | 2020-07-16T06:39:14 | 2020-07-16T06:39:13 | null | UTF-8 | Python | false | false | 11,241 | py | # Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
566eee690b2ad6ef82bd5e0a983fbe538c74e1ba | be61a9f30274514857ea34297719157f1e5b8447 | /fhir/resources/DSTU2/tests/test_bundle.py | b9a5315d010aa70b25135d684f001f45eaa0da2c | [
"BSD-3-Clause"
] | permissive | jwygoda/fhir.resources | ceff3a620100d2e875136b86d3e82816c0e60a33 | 5053565570d1ca992d9971d20db813c53fd350b9 | refs/heads/master | 2021-02-05T02:59:17.436485 | 2019-07-18T10:57:33 | 2019-07-18T10:57:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,327 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 1.0.2.7202 on 2019-05-14.
# 2019, SMART Health IT.
import os
import io
import unittest
import json
from . import bundle
from .fhirdate import FHIRDate
class BundleTests(unittest.TestCase):
def instantiate_from(self, filename):
datad... | [
"connect2nazrul@gmail.com"
] | connect2nazrul@gmail.com |
23b6e948bf37d63dd939526a4e9f0986d7a20c0b | 82762d776e2400948af54ca2e1bdf282885d922c | /677. 键值映射.py | 3f1ed417f696ecc57c135fa9a22c11ca9a4a2036 | [] | no_license | dx19910707/LeetCode | f77bab78bcba2d4002c9662c122b82fc3c9caa46 | 624975f767f6efa1d7361cc077eaebc344d57210 | refs/heads/master | 2020-03-17T02:50:46.546878 | 2019-06-25T09:22:13 | 2019-06-25T09:22:13 | 133,208,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | class MapSum(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.map = {}
def insert(self, key, val):
"""
:type key: str
:type val: int
:rtype: void
"""
self.map.update({key:val})
def sum(self, prefi... | [
"dx19910707@qq.com"
] | dx19910707@qq.com |
f6cd3be2df349788b1bdb13d80c8db7b63e354c5 | 1ea7421851a2239ee13437c9fdcd302e4f3d2335 | /inference.py | 97f19417439c32ee6138c807c86df0412b5d30ef | [] | no_license | TanveshT/Intel_Mini_Project | 0386e465ab7a583a14a8c3a17a84eb7545859c0f | 47487a8f648339b9c1331e4bfd12f398bb7aaea6 | refs/heads/master | 2021-01-16T04:28:09.885219 | 2020-02-26T15:33:51 | 2020-02-26T15:33:51 | 242,976,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,428 | py | '''
Contains code for working with the Inference Engine.
You'll learn how to implement this code and more in
the related lesson on the topic.
'''
import os
import sys
import logging as log
from openvino.inference_engine import IENetwork, IECore
class Network:
'''
Load and store information for working with th... | [
"tanveshtakawale26@gmail.com"
] | tanveshtakawale26@gmail.com |
61164c6f65c4dbb5ec03d366bbad39054303a560 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_each214.py | 64bd2606b4acea9a8d878938e758da580daa008a | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from xcp2k.inputsection import InputSection
class _each214(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Just_energy = None
self.Powell_opt = None
self.Qs_scf = None
self.Xas_scf = None
self.Md = None
self.Pint = None
self.Metad... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1bd9a9fce4c5f4571e49883e0e15590cf5a679e4 | c2a46158a91d3dd41e962230d182c80bfc88886e | /test/test_products_add_variant_model.py | f66ef366caf57efd3dbf1fa4b761a43cfb256b35 | [] | no_license | martinsauve/doli-swagger-client-python | e5f4308b6a38c34c4c0bcc796f6863e983b6d7da | b2606e6f9f3064fe55f81ab90ec524921086a159 | refs/heads/master | 2023-08-14T00:04:02.228383 | 2021-10-06T15:34:02 | 2021-10-06T15:34:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | # coding: utf-8
"""
Restler API Explorer
Live API Documentation # noqa: E501
OpenAPI spec version: 1
Contact: arul@luracast.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagger_client
from swagger_client... | [
"martin@billesandco.paris"
] | martin@billesandco.paris |
f56819b250cfba4c564984882798b34edfbd9435 | 61e5fa5dd66c80e545ff02745768cbb13be21274 | /ksppy/undistort_catalog.py | 74d763918580b2c6240df0d62447eafa0e7d2e65 | [] | no_license | kmtnet-sp/kmtnet_sn_pipeline | 4850663a8cb6a9629fac5ca29fba118a9424e9d3 | dbd9b85d676c59d433f40a8d89783bae43da5b14 | refs/heads/master | 2021-09-06T09:49:19.210417 | 2018-02-05T06:27:50 | 2018-02-05T06:27:50 | 26,607,835 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,087 | py | import astropy.io.fits as pyfits
import astropy.wcs as pywcs
import os
import exec_path
executables = exec_path.get_exec_path()
pv2sip_name = executables["pv2sip"]
xy2rd_name = executables["xy2rd"]
fit_wcs_name = executables["fit_wcs"]
if 0:
f = pyfits.open("kmtc.20150329.007590.ne.fits")
f[0].header["CTYPE1... | [
"lee.j.joon@gmail.com"
] | lee.j.joon@gmail.com |
5695168a19d366dcd98627466872540aac0ec20c | 2dd4b89f60bd22d96ca6043666816069ba060875 | /TPplots/blast2circos.py | c6b1622f8e3accea3ad58d7260fbda0e9a5a40d3 | [] | no_license | liaochenlanruo/TPplots | 4d65b970f3a105c48a1a66aeb176e299f4bb3cea | 4d0ed24f9b5b7fcd80942abb5f22167d1aba38c6 | refs/heads/master | 2023-07-19T13:22:25.278304 | 2021-09-07T14:13:01 | 2021-09-07T14:13:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,757 | py | #!/usr/bin/env python
# python 2.7.5 requires biopython
########### promer2circos ############
# A script for converting show-coords output for sequence matches from the Mummerplot package to circos link-track format.
# Version 1. Adam Taranto, January 2014.
# Contact Adam Taranto, adam.p.taranto@gmail.com
###Impo... | [
"trestan.pillonel@gmail.com"
] | trestan.pillonel@gmail.com |
c1e9b0bdb0f658bea0e794e02bc30c05631a95fc | 904fd519e3f10c8a21653d3fdea34915d2e708e2 | /scripting/prod_settings.py | 5c3e82c1ef9a32f821f5bb8d1c41995ac099fedd | [
"Apache-2.0"
] | permissive | Kgermando/es-script | 5d4c74996dd83a2e91fb462f3ceb4943c887811c | f1b10ecf2c805e8875a025e7033c724e236f6cd1 | refs/heads/main | 2023-06-26T00:54:31.351588 | 2021-07-26T15:40:14 | 2021-07-26T15:40:14 | 366,509,163 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | import dj_database_url
from .settings import *
DEBUG = False
TEMPLATES_DEBUG = False
DATABASES['default'] = dj_database_url.config()
ALLOWED_HOSTS = ['crm-advans.herokuapp.com'] | [
"katakugermain@gmail.com"
] | katakugermain@gmail.com |
827126fe853cf6af66f76442abadba575dfae157 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/BAS-RBP-MIB.py | c6297c0c00531ea53aedd356d55da141377f1707 | [
"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 | 8,206 | py | #
# PySNMP MIB module BAS-RBP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/BAS-RBP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:17:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 0... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
f3af3c2957623b193ea8f9ab62ad4f983ef65b00 | 0f9f8e8478017da7c8d408058f78853d69ac0171 | /python2/l0174_dungeon_game.py | ff3c198c4429e6ea95bb7b22772ceb9621db876d | [] | no_license | sprax/1337 | dc38f1776959ec7965c33f060f4d43d939f19302 | 33b6b68a8136109d2aaa26bb8bf9e873f995d5ab | refs/heads/master | 2022-09-06T18:43:54.850467 | 2020-06-04T17:19:51 | 2020-06-04T17:19:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | class Solution(object):
def calculateMinimumHP(self, dungeon):
"""
:type dungeon: List[List[int]]
:rtype: int
"""
# Required hp at i, j.
hp = [[0 for _ in row] for row in dungeon]
hp[-1][-1] = max(-dungeon[-1][-1] + 1, 1) # Minimum have 1 hp.
m = len(... | [
"zhoulu312@gmail.com"
] | zhoulu312@gmail.com |
9ea612b67aa6a2b537260439c81154477b60a12a | 149ff797e267f6f7240c2ee737003f53f3963599 | /apache_repos.py | c5bc859e84e8501d0dd54ea9bf397fd8105a3d70 | [] | no_license | inbalros/repository_mining | 98e701fc882019eaf0763bbf13bf0497478565e2 | a1c4b8c87f30b8b0987ef2b0c3efe6b0a03bd7fc | refs/heads/master | 2022-12-06T14:03:47.922693 | 2020-08-26T15:23:47 | 2020-08-26T15:23:47 | 290,329,743 | 0 | 0 | null | 2020-08-25T21:41:57 | 2020-08-25T21:41:56 | null | UTF-8 | Python | false | false | 1,706 | py | import jira
import github3
import os
import csv
import sys
from collections import Counter
from itertools import product
# from data_extractor import DataExtractor
# from caching import cached
# from repo import Repo
REPO_DIR = r"C:\Temp\apache_repos"
def find_repo_and_jira(key, repos, jira_projects):
jira_proje... | [
"amir9979@gmail.com"
] | amir9979@gmail.com |
b01b3c2fcf24b505ad7b092187d8d56d9498bd49 | 068d271e241d8cdb46dbf4243166e4b8ee7025b2 | /Django/s4day752/s4day752/urls.py | 2ef0d9b031ffd1239ccf9ea1933f17a7b7014da0 | [] | no_license | caiqinxiong/python | f6e226e76cb62aac970bcfbcb6c8adfc64858b60 | 9029f6c528d2cb742b600af224e803baa74cbe6a | refs/heads/master | 2023-05-26T19:41:34.911885 | 2020-05-15T09:02:08 | 2020-05-15T09:02:08 | 195,261,757 | 1 | 0 | null | 2021-06-10T23:33:33 | 2019-07-04T15:01:42 | JavaScript | UTF-8 | Python | false | false | 820 | py | """s4day752 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/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-b... | [
"13269469526@163.com"
] | 13269469526@163.com |
86ed7a72d1aa6d3e6bdbbb20b687e7b32cf476c1 | 32d06344d16da2c43bd0ce9bd542504c11ec13ed | /imperative/python/megengine/jit/__init__.py | 5965fa1b817a58e0c92bfae2b9d988475528a1aa | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | ym593277523/MegEngine | 28aa7367d6782c570e1b1e14a1c86ca86144a621 | 2e8742086563ea442c357b14560245c54e0aa0a3 | refs/heads/master | 2023-01-23T21:23:57.399900 | 2020-11-21T09:32:08 | 2020-11-23T06:38:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTI... | [
"megengine@megvii.com"
] | megengine@megvii.com |
8cada5cf716fdbbf6083947d22d9ca2c13fb2a28 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/idlelib/idle_test/test_rpc.py | da3d3baa3ccb2ff967fe07cc35e593df36e3a76f | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:38e3bb1648cab509be226a34405f1bb6fb477ea215bf1121e08c745469fb9a0f
size 834
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
f17f890fa37e07238dd8d7fd896e347351a12f60 | 5f2103b1083b088aed3f3be145d01a770465c762 | /275. H-Index II.py | be6a2e98d6ddd275e4a239ebdb0b1064b34d2ddb | [] | no_license | supersj/LeetCode | 5605c9bcb5ddcaa83625de2ad9e06c3485220019 | 690adf05774a1c500d6c9160223dab7bcc38ccc1 | refs/heads/master | 2021-01-17T17:23:39.585738 | 2017-02-27T15:08:42 | 2017-02-27T15:08:42 | 65,526,089 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 501 | py | class Solution(object):
# todo
def hIndex(self, citations):
"""
:type citations: List[int]
:rtype: int
"""
length = len(citations)
first = 0
cnt = length
while cnt > 0:
step = cnt //2
mid = first + step
... | [
"ml@ml.ml"
] | ml@ml.ml |
ecd384f32cb8295d02f89424762b91cd58126315 | c16d4c86ef1f874b701c707b5a01556d36fa0d4f | /ibcsp_ipamsvc/models/ipamsvc_name.py | cdd1b0c0c07cb49d5eb135fd8afad9b1904b3f6e | [] | no_license | uuand/ibcsp_ipamsvc | 7f9f4c2509ce9049e2ab39d1072e9d1d31a5165c | 94a5475b11997551f732ceffcbd627d27ac37b2c | refs/heads/master | 2022-11-21T07:22:12.131660 | 2020-07-24T08:38:55 | 2020-07-24T08:38:55 | 281,871,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,476 | py | # coding: utf-8
"""
IP Address Management API
The IPAM/DHCP Application is a BloxOne DDI service providing IP address management and DHCP protocol features. The IPAM component provides visibility into and provisioning tools to manage networking spaces, monitoring and reporting of entire IP address infrastruct... | [
"jens-peter.wand@metrosystems.net"
] | jens-peter.wand@metrosystems.net |
55ac3480031167e9850e68bc583863fa8538bdcf | fc3f784c8d00f419b11cbde660fe68a91fb080ca | /algoritm/programmers/level2/프린터.py | b46f97ea5293c19ff4a565f7d7047c0847a7166b | [] | no_license | choo0618/TIL | 09f09c89c8141ba75bf92657ac39978913703637 | 70437a58015aecee8f3d86e6bfd0aa8dc11b5447 | refs/heads/master | 2021-06-25T07:01:34.246642 | 2020-12-21T04:57:13 | 2020-12-21T04:57:13 | 163,782,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | def solution(priorities, location):
R = 1
n = 0
while True:
if priorities[n] != max(priorities[n:len(priorities)]):
priorities.append(priorities.pop(n))
location -= 1
if location < n:
location = len(priorities) - 1
else:
if loca... | [
"choo0618@naver.com"
] | choo0618@naver.com |
0da8357d369849e37f6e3bff2a2a3df77d76ae36 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_AllotmentPayment/YW_PGJK_SHKCB_017.py | cfaffbaca36ec80ec3359e840c8846664b7e492e | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("... | [
"418033945@qq.com"
] | 418033945@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.