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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7aef78afef9a9c4c48469d61eb8e20d79607a181 | 1384435f0e0cf706db82d0672d5fe9e3bc0cf5a8 | /agilo/csv_import/functional_tests/update_by_import_test.py | d3f3fd85ff53f7cd9d96302ea379eba03716d3d7 | [] | no_license | djangsters/agilo | 1e85d776ab4ec2fa67a6366e72206bbad2930226 | 1059b76554363004887b2a60953957f413b80bb0 | refs/heads/master | 2016-09-05T12:16:51.476308 | 2013-12-18T21:19:09 | 2013-12-18T21:19:09 | 15,294,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,414 | py | # -*- coding: utf-8 -*-
from trac.tests.functional import tc
from agilo.test import Usernames
from agilo.test.functional import AgiloFunctionalTestCase
from agilo.csv_import.functional_tests.import_test import GOOD_CSV_DATA
class TestUpdatePreviewFromCSV(AgiloFunctionalTestCase):
def runTest(self):
self... | [
"bastir@gmail.com"
] | bastir@gmail.com |
a1d501de8f4745a14690fe82d2b670fa04b6aae3 | 0be644ba0208b1f9f93018f74580fd5047618a3b | /.chameleon_cache/produce_secondary_e4776be52d11cb69fdd883face89449d.py | 7437941625ff24c815cc9f6aa15d807ba0cad1d4 | [] | no_license | ebla71/XIS | 1ba48f019c063132b561d8c2e469634349b96aae | 9f96b8f210b91da29ce0d3b34e896f629fc7dede | refs/heads/main | 2023-08-22T11:45:22.723296 | 2021-10-05T09:11:11 | 2021-10-05T09:11:11 | 355,645,289 | 0 | 0 | null | 2021-09-25T21:51:01 | 2021-04-07T18:29:02 | Python | UTF-8 | Python | false | false | 83,951 | py | # -*- coding: utf-8 -*-
__filename = '/home/jake/GRF/firs-3.0.10-source/bundle_dir/src/src/templates/produce_secondary.pynml'
__tokens = {457: ('0', 10, 41), 500: (' ', 11, 40), 543: ('3', 12, 39), 586: ('o', 13, 38), 626: ('o', 14, 34), 666: ('i', 15, 33), 712: ('x', 16, 38), 757: ('a', 17, 36), 791: ('storage industr... | [
"jake.dander@gmail.com"
] | jake.dander@gmail.com |
b3f5e33efd3474492162a82edb9f550930242d5d | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/2859.py | 6055353b6f97dd3cee197e8d86c479f29abee94c | [] | 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,328 | py |
from collections import deque
T = int(raw_input())
def check(n):
b = 10
while n:
d = n % 10
if d <= b:
b = d
else:
return False
n = n // 10
return True
def foo(n, k):
sl = [-1] + [0 for _ in range(n)] + [-1]
pos = {}
best = None
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3b39cda90bb177c53f3701a1c93ca7dfc11c1279 | fb63c25920d15f9b48b8e9e604ffbbde99a7aeae | /svmrfe/venv/lib64/python2.7/site-packages/traits/tests/test_event_order.py | b2380ed49e9210ce3e9efa470c6a5226d05fff7c | [] | no_license | kellyhennigan/cueexp_scripts | 763385c96772867a4875c734732bb32a3b051d1c | 7264b0033a9cc83cc362c96cd04d94706728c994 | refs/heads/master | 2023-07-21T20:35:11.607859 | 2022-01-10T20:18:12 | 2022-01-10T20:18:12 | 55,538,490 | 1 | 1 | null | 2023-07-06T21:16:20 | 2016-04-05T19:17:21 | Python | UTF-8 | Python | false | false | 2,879 | py | # Copyright (c) 2007, Enthought, Inc.
# All rights reserved.
#
# This Software is provided without warranty under the terms of the
# BSD
# license included in /LICENSE.txt and may be redistributed only
# under the conditions described in the aforementioned license. The
# license
# is also available online at h... | [
"kelhennigan@gmail.com"
] | kelhennigan@gmail.com |
df7ec52f136a9ebac45c54627562e6db2900607c | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_1_01a/mpls_state/ldp/ldp_fec_prefix/nexthops/__init__.py | 6df004dc8af25966c802a918f32c63f98ccd655c | [
"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,761 | 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 |
f628738208e73254775d025d72b0788a146b1f00 | 62bccaa1672a3aebbe9c24b6a93885920e363d14 | /ffr/ffr_img_processing.py | 6f134ad035f71a161a91ea1d8e07c893647bd951 | [] | no_license | WaifuHarem/evalscreen-ocr | 95a96fb0fa52557c05657b261e2fbff124563afc | 606f0af298bbd563a1ab061466b9238c48d1890d | refs/heads/master | 2022-11-27T07:29:07.349744 | 2020-08-02T00:15:45 | 2020-08-02T00:15:45 | 282,514,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,048 | py | import numpy as np
import cv2
class FfrImgProcessing():
# Crop dimensions expressed as % of width and height
crop_info = {
'date_info' : [ 0.03, 0.07, 0.75, 1.00 ],
'player_info' : [ 0.03, 0.07, 0.03, 0.35 ],
'map_title' : [ 0.12, 0.17, 0.20, 0.90 ],
'map_info' : [ 0.16... | [
"abraker95@gmail.com"
] | abraker95@gmail.com |
353b0f44ee6de7735faca6c94746fe5691e31a89 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Deltalm_for_PyTorch/fairseq/examples/speech_text_joint_to_text/models/s2t_dualinputtransformer.py | 7970a3c71401b4835ba09158ea06134418afa065 | [
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla"
] | 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 | 44,762 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import logging
from collections import namedtuple
import torch
import torch.nn as nn
from fairseq import checkpoint_utils
from fairseq import... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
68797160f809b050a63ad591cd7a9178dc7decad | c3f36872b8adefdea495c439f793f56acc8b97ba | /12_8類別的特殊方法/12_8_4eq/12_32.py | 44637577b6076415b946706d00760fb548d2c8dc | [] | no_license | kelvinng2017/python_oop | 78cb3b92b0da19a415e9a9fdc822933ff5f25721 | b171ce7824e98bd40fc2534710328b7ac4ef6255 | refs/heads/main | 2023-07-27T13:50:13.876825 | 2021-09-02T14:42:16 | 2021-09-02T14:42:16 | 398,483,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | """
12_32.py Use _eq()__ instead of equals()
"""
class City():
def __init__(self, name):
self.name = name
def __eq__(self, city2):
return self.name.upper() == city2.name.upper()
one = City("Taipei")
two = City("taipei")
three = City("myhome")
print(one == two)
print(one == three)
| [
"kelvinngshuhui@gmail.com"
] | kelvinngshuhui@gmail.com |
ee7405a998c1ca188afb3f4ff58b17d063fc4f75 | 518da1fd169595190bb07d9d178ddec5e8a5d2da | /websauna/tests/test_static_asset.py | 71c16ff437852fd58732142a0b9d1ad6570f1a40 | [
"MIT",
"Apache-2.0"
] | permissive | maskid40/websauna | 17f09611ed22cecd001b91069b4341c1af15c956 | 9be40e0becce90d0b6b5b8eb13bf15e2afcfcb8d | refs/heads/master | 2021-01-19T13:23:42.338786 | 2017-08-10T13:01:13 | 2017-08-10T13:01:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | import shutil
import os
import pytest
from flaky import flaky
from pyramid.config import Configurator
from websauna.system.devop.cmdline import init_websauna
from websauna.system.http.static import DefaultStaticAssetPolicy
from websauna.tests.scaffold import execute_command
from websauna.tests.webserver import custom... | [
"mikko@opensourcehacker.com"
] | mikko@opensourcehacker.com |
b6b048b87110f37425ceab7293f25fa92d5aa250 | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2009/py01/day03/mytest2.py | a679c60db536ab8ba57750b9bf74067a1f362d2c | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | import star
star.pstar()
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
641673ab1297b1ad6adbaf1dbe8f4e0be5edcdec | 318303c0edef42c474d1bb8cb4c86785b565085d | /barbican/openstack/common/rpc/__init__.py | 9d05c1b6b38c89143f6ffd5e72427303b8ddc566 | [
"Apache-2.0"
] | permissive | jfwood/barbican | f5dc42c1edea3d524da63b39cdbf191c61a07b5b | f9ad52ac61bbdd8ad61977af733fc5530dd051aa | refs/heads/master | 2020-11-30T13:36:10.277943 | 2013-06-21T03:25:00 | 2013-06-21T03:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,730 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# Copyright 2011 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not... | [
"john.wood@rackspace.com"
] | john.wood@rackspace.com |
a6c8ef34132079ac0b2f501c03b40d2a7a90e6d8 | c27c51f5c33e0431dbe7db6e18c21b249d476cfa | /OpenSource_Python_Code/horizon-master/openstack_dashboard/dashboards/admin/volumes/tables.py | b704501f1c37b3a412398f91c3cbdd4c93819b4e | [
"Apache-2.0"
] | permissive | bopopescu/Python_Stuff | 9bef74e0db17bb5e3ba2d908ced01ee744820d80 | 9aa94a0fa5e4e802090c7b29ec88b840e304d9e5 | refs/heads/master | 2022-11-20T06:54:36.581623 | 2017-12-04T18:56:02 | 2017-12-04T18:56:02 | 282,171,169 | 0 | 0 | null | 2020-07-24T08:54:37 | 2020-07-24T08:54:36 | null | UTF-8 | Python | false | false | 2,804 | py | # 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 writing, software
# distributed under t... | [
"thelma1944@gmail.com"
] | thelma1944@gmail.com |
e3c3b20f7f1b712d8f55fe0ae4daa24667608e50 | 0dabf03ec028ddb0af3921cb7fa4b68ca276cdf9 | /main/views.py | efe97df2167cda677197371207ddad9af7be52ae | [] | no_license | rifqirosyidi/relearn-django | 94b30bd3e5fafb0dcca76df69ac08999032fb165 | 31ac4a92816aef98cbc4e8b012464e2f29ccba5d | refs/heads/master | 2020-11-27T17:53:26.607664 | 2019-12-24T14:35:21 | 2019-12-24T14:35:21 | 229,551,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,427 | py | from django.shortcuts import render, redirect, HttpResponse
from .models import Tutorial, TutorialCategory, TutorialSeries
from .forms import NewUserForm
from django.contrib.auth.forms import AuthenticationForm
from django.contrib.auth import login, logout, authenticate
from django.contrib import messages
# Create yo... | [
"rief.rosyidi@gmail.com"
] | rief.rosyidi@gmail.com |
4b7ad6b808f5a93ed2dc6254e2e5ec67d1bb2d3c | ba2dbc19e899faaa17b994a1224e455a3de5b9ad | /01_jump to python/CHAP05/177.py | 02eefe720bd46f81cfc63e7ee043cbafd2a3bee4 | [] | no_license | xsky21/bigdata2019 | 52d3dc9379a05ba794c53a28284de2168d0fc366 | 19464a6f8862b6e6e3d4e452e0dab85bdd954e40 | refs/heads/master | 2020-04-21T10:56:34.637812 | 2019-04-16T04:16:27 | 2019-04-16T04:16:27 | 169,503,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #-*-coding: utf-8 -*-#
class Service:
secret="영구는 배꼽이 두 개다."
name=""
def setname(self, name):
self.name= name
def sum(self, a, b):
result = a+b
print("%s님 %s+%s=%s입니다." % (self.name, a,b,result))
pey= Service()
pey.setname("홍길동")
#print(pey.secret)
pey.sum(1,1) #pey.sum을 통하여 pey... | [
"studerande5@gmail.com"
] | studerande5@gmail.com |
60deef5e44d3580bb607b768f849d43f5fa50601 | 682559c2040293b7752648fec20d62a8ca1ba0df | /tags/migrations/0018_move_tag_tables_in.py | 83b84181039affd36a48cc8192ad967ae0914246 | [] | no_license | ir4y/star-django | c57f8a2a594853c69b46a9680a96589960613c24 | a861d24dcf005e403bb1d53033b9d03e5af15ef2 | refs/heads/master | 2020-06-30T12:47:28.557723 | 2016-11-20T12:46:57 | 2016-11-20T12:46:57 | 74,370,289 | 0 | 0 | null | 2016-11-21T14:13:14 | 2016-11-21T14:13:14 | null | UTF-8 | Python | false | false | 6,033 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('legacy', '0009_drop_legacy_user_prepare_to_move_tag_tables'),
migra... | [
"suor.web@gmail.com"
] | suor.web@gmail.com |
7d43884a5ccf5545df227f1d18f2e8909b98427d | 8cc862aa51d3fec95d094dc4bd3151e1155d240a | /pythonProject/Email/send.py | 5ae39177d6337116e7780fe0fc81dc40dde62946 | [] | no_license | activehuahua/python | bcbf3a2190025e2315399bfd0c725f598211632b | cc36a93c01c53f856426ccf2724848142524d9c0 | refs/heads/master | 2023-04-14T10:23:21.590765 | 2019-08-12T06:52:15 | 2019-08-12T06:52:15 | 160,277,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | from email import encoders
from email.header import Header
from email.mime.text import MIMEText
from email.utils import parseaddr, formataddr
from email.mime.multipart import MIMEMultipart
from email.mime.multipart import MIMEBase
from email.mime.application import MIMEApplication
#msg=MIMEText('hello,send by Python...... | [
"zhaojianghua@pretang.com"
] | zhaojianghua@pretang.com |
6638afc8e9080fe12330593becb9353b5d7ddc90 | 7889f7f0532db6a7f81e6f8630e399c90438b2b9 | /2.0.0/mpl_examples/lines_bars_and_markers/scatter_with_legend.py | f6f1ea5fe04f0d54ecf82ad3bde9540da734b158 | [] | no_license | matplotlib/matplotlib.github.com | ef5d23a5bf77cb5af675f1a8273d641e410b2560 | 2a60d39490941a524e5385670d488c86083a032c | refs/heads/main | 2023-08-16T18:46:58.934777 | 2023-08-10T05:07:57 | 2023-08-10T05:08:30 | 1,385,150 | 25 | 59 | null | 2023-08-30T15:59:50 | 2011-02-19T03:27:35 | null | UTF-8 | Python | false | false | 326 | py | import matplotlib.pyplot as plt
from numpy.random import rand
fig, ax = plt.subplots()
for color in ['red', 'green', 'blue']:
n = 750
x, y = rand(2, n)
scale = 200.0 * rand(n)
ax.scatter(x, y, c=color, s=scale, label=color,
alpha=0.3, edgecolors='none')
ax.legend()
ax.grid(True)
plt.s... | [
"quantum.analyst@gmail.com"
] | quantum.analyst@gmail.com |
b39809606700786246247e9fa383cef611a24c43 | fb1bcf4b01a1708fd028c680ecbbbcb8223563fb | /app.py | d3feff4a83a9c0cb4a75b0a5ecb2b7023a5abfde | [] | no_license | neozhangthe1/leaderboard | 0e6f30c387178b655dd4d5d0402436cbe03c2c7a | dff43d28c20de01c64c54e98c581c01febe2210d | refs/heads/master | 2016-09-06T00:07:18.692426 | 2013-10-05T05:36:01 | 2013-10-05T05:36:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | from flask import Flask
from flask import render_template
import evaluate
app = Flask(__name__)
app.debug = True
baselines = [
("AMiner",0.3),
("LRegression",0.2)
]
@app.route("/")
def hello():
data = []
teams = evaluate.readTeamInfo()
for t in teams:
f = open("result/"+str(t.id))
t.bestScor... | [
"stack@live.cn"
] | stack@live.cn |
893b71e5e62fca4dfd5c7431cd23772c0be4e022 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /caql/agent_policy_test.py | 4cda8f7e81bca4712a48997f3551f4096b767173 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 2,817 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
8206db481f4794fb66597a95ad5f7d055ac1412f | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp-obt/sblp_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=6/params.py | cd0a5b10d0a5211506f6ffbaa538a79a5b0e6605 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.525810',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 6,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
035ea45d7416852691edd3f8346ff534e37147b2 | f54d702c1289b2b78f423850d7fedba6c9378126 | /Algorithms/Sorting/quicksort3.py | 20fbd4367731c8911156363831ce54bc91f998d4 | [
"MIT"
] | permissive | ekant1999/HackerRank | 81e6ac5bec8307bca2bd1debb169f2acdf239b66 | 084d4550b4eaf130837ab26a4efdbcaf8b667cdc | refs/heads/master | 2020-05-02T09:19:10.102144 | 2016-10-27T04:10:28 | 2016-10-27T04:10:28 | 177,868,424 | 0 | 0 | MIT | 2019-03-26T21:04:17 | 2019-03-26T21:04:17 | null | UTF-8 | Python | false | false | 745 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
def swap(arr,x,y):
mem = arr[x]
arr[x] = arr[y]
arr[y] = mem
return arr
def quick_sort_in_place(ar,start,end):
if end-start <= 0:
return ar
p = ar[end]
indx = start
for i in xrange(start,end):
... | [
"ugali_guy@hotmail.com"
] | ugali_guy@hotmail.com |
929d5a92756a848d0877cfce68aa37c4cf29a642 | 16d230d4ce25f480011ab0d9205034eadacb0871 | /Treasuregram/main_app/migrations/0001_initial.py | 5dbf6002e0c585e631da88bca7608b429b2591ec | [] | no_license | handole/pythonthusiast-course | d57a77871ea4c960da73e8f03ca515f9581e05c1 | 9646f696e80ddf858500c720713117d4c0979957 | refs/heads/master | 2021-01-01T19:32:18.684563 | 2017-10-17T13:55:39 | 2017-10-17T13:55:39 | 98,607,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 931 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-05-31 18:24
from __future__ import unicode_literals
from django.db import migrations, models
import main_app.models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"denihhandoko@gmail.com"
] | denihhandoko@gmail.com |
8268bf9219e8a2d95e0ebff1b125d95fd4ed2638 | 2bb6c6c06585ffec167a634a322061b43b0fafdc | /py/problem13.py | 4f11c7527835fa65f6ab6d11ed5581ae3a867c75 | [] | no_license | melank/ProjectEuler | 0ae9229dc4d057083e42da91b114f581bf047170 | f0c2d7d9c6eedcf4bbb3e43c2f3bcf9e9ab52961 | refs/heads/master | 2021-10-22T11:38:52.205850 | 2019-03-10T13:13:08 | 2019-03-10T13:13:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,388 | py | nums = "\
37107287533902102798797998220837590246510135740250 \
46376937677490009712648124896970078050417018260538 \
74324986199524741059474233309513058123726617309629 \
91942213363574161572522430563301811072406154908250 \
23067588207539346171171980310421047513778063246676 \
892616706966236338201363784183836841787343617... | [
"masaki.vr@gmail.com"
] | masaki.vr@gmail.com |
8fd6158446c4c6e16dbb5cacd7ee88b4be07531f | 5d22d9b2cb5cad7970c1055aeef55d2e2a5acb8e | /leetcode/hard/K_Empty_Slots.py | 42d4d179357c6f3a85c99f4a0138e78872421632 | [
"MIT"
] | permissive | shhuan/algorithms | 36d70f1ab23dab881bf1a15573fbca7b2a3f4235 | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | refs/heads/master | 2021-05-07T14:21:15.362588 | 2017-11-07T08:20:16 | 2017-11-07T08:20:16 | 109,799,698 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,009 | py | # -*- coding: utf-8 -*-
import math
import collections
import bisect
import heapq
"""
created by shhuan at 2017/9/24 08:46
"""
class Solution(object):
def kEmptySlots(self, flowers, k):
"""
:type flowers: List[int]
:type k: int
:rtype: int
"""
if not flowers or le... | [
"shuangquanhuang@gmail.com"
] | shuangquanhuang@gmail.com |
850b4e1918b81ad98a00120e5d38b4c98a267f88 | fb0ed92fea542d428cb2ba7976b7380415aac372 | /topic_search/migrations/0002_auto_20151220_0927.py | 419d13609e847e4287668d28006e815f535ed87f | [] | no_license | ZachLiuGIS/TopicSearch | 71eb730f275a0fddb753d03e92d31af66a199b22 | e0325484c048161776a371dcb918f7a01c711f32 | refs/heads/master | 2021-01-10T14:42:36.227312 | 2015-12-23T02:10:32 | 2015-12-23T02:10:32 | 48,144,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
import model_utils.fields
class Migration(migrations.Migration):
dependencies = [
('topic_search', '0001_initial'),
]
operations = [
migrations.AddField(... | [
"zachliugis@gmail.com"
] | zachliugis@gmail.com |
f65d15fb55982b2476119dbf954891a737d3d54e | 6cd0e183809930d9f839f6cb31fde5e1b9eebf78 | /rosh/shell.py | 96a30126188cae63ded45e743689521460d5d70c | [] | no_license | jubeira/rosh_core | 2029d0193be3343ae956258e6abfabdb56273138 | 9aa624f17b4c88c80d7805e8485c89a32e6c09ba | refs/heads/master | 2021-05-30T09:31:16.694065 | 2014-01-21T21:21:00 | 2014-01-21T21:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | #!/usr/bin/env python
import roslib; roslib.load_manifest('rosh')
# this changes the behavior of rospy/roslaunch/etc... on SIGINT to just be a normal KeyboardInterrupt
roslib.set_interactive(True)
import rosh
rosh.rosh_init()
# import all symbols after initialization
from rosh import *
import os, sys
plugins = sys.... | [
"dan@lazewatsky.com"
] | dan@lazewatsky.com |
3aa5da0087dd7bee20881c8d31f0ce9ff8bbb5c9 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Wyx_w_M_w_Sob_to_Wz_focus/Sob_Wxy/mae_s001/pyr_Tcrop256_pad20_jit15/pyr_1s/L4/step09_1side_L4.py | ed9323ecb92a50dcacd7ca7af97fb5a2833a0505 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,517 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
ace444f0728c05e142e99daf85d552fea2b7d215 | 05c395df76d494d8239de86515a3b57cd08231c4 | /test/lmp/tokenizer/_char_list_tokenizer/test_normalize.py | e985415d84ab6d5bdf9f469ce75fa2138a983c07 | [] | no_license | SiuYingCheng/language-model-playground | 61b74a28abea5707bc1c9d0a2280d2f24d959ae4 | 6bca79baceacf85c5c3683bbfdf586a00484ed19 | refs/heads/master | 2022-12-16T23:04:25.895156 | 2020-09-10T16:26:03 | 2020-09-10T16:26:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,165 | py | r"""Test `lmp.tokenizer.CharListTokenizer.normalize`.
Usage:
python -m unittest test.lmp.tokenizer._char_list_tokenizer.test_normalize
"""
# built-in modules
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
impor... | [
"ProFatXuanAll@gmail.com"
] | ProFatXuanAll@gmail.com |
c3152fa9b25b7dfdb07340c46a9b34a1b61e8894 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02778/s994300303.py | 5dd7fc15a3d373bdb7dd9e7627f8de043d4192cc | [] | 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 | 43 | py | S = input().strip()
a = "x"*len(S)
print(a) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
eae15ceb96941e1acf3a77b2bf10f141ea4f8a3e | b11f4ac47b07e0aca3110134cdff994202873bfb | /mysite/.mysite/lib/python3.7/reprlib.py | 5a6a4cf75a736ee953455a7947d81df1dc9de97d | [] | no_license | PaulaFAlves/django_projects | 2e106d1f80a5ab6c2e2bddbb21cf2ee684be2121 | b67cc8c8476d2e9e7758b04e46cf2e8680bd36dd | refs/heads/master | 2022-12-10T11:44:04.585938 | 2019-11-23T18:44:17 | 2019-11-23T18:44:17 | 220,825,901 | 0 | 0 | null | 2022-12-08T06:52:38 | 2019-11-10T17:39:06 | Python | UTF-8 | Python | false | false | 58 | py | /Users/user/.pyenv/versions/3.7.4/lib/python3.7/reprlib.py | [
"paulafernandaalves@icloud.com"
] | paulafernandaalves@icloud.com |
e749c512c0066b6294dea8e6db25bcfc4be1618c | c8e481e914a3bf455c3e1d85b6031f76d1ce0794 | /tests/010_inspector/004_depth.py | 7119371ba73f1dabe2613e5e29f4003b13a9c070 | [
"MIT"
] | permissive | dansamara/boussole | c6db8c9e2964bf57d113cfcfb4441c08dcdf67f6 | 07bbca09190e568d288ed07773a47bf31dafa3ab | refs/heads/master | 2021-09-24T01:26:48.840541 | 2018-10-01T00:33:05 | 2018-10-01T00:33:05 | 116,189,796 | 0 | 0 | null | 2018-01-03T22:50:11 | 2018-01-03T22:50:11 | null | UTF-8 | Python | false | false | 2,263 | py | # -*- coding: utf-8 -*-
import os
import pytest
def test_001(settings, inspector):
"""inspector.ScssInspector: Sample doing depth imports"""
sources = [
os.path.join(settings.sample_path, 'main_depth_import-1.scss'),
os.path.join(settings.sample_path, 'main_depth_import-2.scss'),
os.pat... | [
"sveetch@gmail.com"
] | sveetch@gmail.com |
61be4cd2d9c0fa389d3f23f5d85c832e1e3d60a7 | 844c7f8fb8d6bfab912583c71b93695167c59764 | /fixação/Seção06/31-40/Sec06Ex35.py | 9eded9e3e84d83fbbc668273742547b9a90a1e17 | [
"Apache-2.0"
] | permissive | gugajung/guppe | 2be10656cd9aa33be6afb8e86f20df82662bcc59 | a0ee7b85e8687e8fb8243fbb509119a94bc6460f | refs/heads/main | 2023-05-28T08:08:24.963356 | 2021-06-07T16:56:11 | 2021-06-07T16:56:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | valor1 = 0
valor2 = 0
somatoria = 0
while valor1 <= 0: valor1 = int(input("Entre com o 1 numero :-> "))
while valor2 <= valor1: valor2 = int(input("Entre com o 2 numero :-> "))
while valor1 <= valor2:
if (valor1 % 2 != 0):
somatoria += valor1
valor1 += 1
print(f"Somatoria dos impares no interval... | [
"luiz.carlin@gmail.com"
] | luiz.carlin@gmail.com |
8f10efb74ccb55bb09d73165c19634e1c7d016bc | f546248daf7fd64aeff6517e9fea668b459f9b62 | /yatwin/cameras/BaseHackedYatwin.py | 57edf084316d0d4c60a64b4f29909a4a4534c912 | [] | no_license | andre95d/python-yatwin | 2310b6c6b995771cea9ad53f61ad37c7b10d52d0 | 7d370342f34e26e6e66718ae397eb1d81253cd8a | refs/heads/master | 2023-03-16T18:06:17.141826 | 2020-05-12T23:04:53 | 2020-05-12T23:04:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,265 | py | from .. import scripts
from .BaseCamera import BaseCamera
from ..interfaces import onvif
"""
Imports:
..scripts
.BaseCamera.BaseCamera
Contains:
<BaseHackedYatwin>
"""
class BaseHackedYatwin(BaseCamera):
"""
The most base yatwin camera, which condones hacking
"""
def __init__ \
... | [
"26026015+tombulled@users.noreply.github.com"
] | 26026015+tombulled@users.noreply.github.com |
5fad90e9ce46519e8dcf8a55522fc9ca7161f59d | 57dff93e57655bcabdbc70639aac55f30ba0c305 | /upgrade_packages.py | 3573c98f40ad14363dee41eb23e9a1902c3983d7 | [] | no_license | blackfeather-wang/Dynamic-Vision-Transformer-MindSpore | b761259648b6b1d113689bb854718500821f7abf | a4d437a9cb204cd2ba4888632a22a40a08d9def8 | refs/heads/main | 2023-08-28T03:46:46.673724 | 2021-10-27T02:41:20 | 2021-10-27T02:41:20 | 413,015,708 | 27 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,717 | py | import os
import time
import moxing as mox
import glob
from pathlib import Path
import argparse
def cmd_exec(cmd, just_print=False):
t = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
print("\n{}:INFO:{}".format(t, cmd))
if not just_print:
os.system(cmd)
if __name__ == "__main__":
pars... | [
"guanfuchen@zju.edu.cn"
] | guanfuchen@zju.edu.cn |
ead25ddc40fb334880f5523580ebaa9d610c0f84 | 26b1b0d767c7a02a17d0cf3d14ee6f5d8af62ec9 | /talentmap_api/bidding/migrations/0006_auto_20180123_1624.py | 47771d5004f5228c1a41d5da4311e94b9478da32 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | 18F/State-TalentMAP-API | 62673db5bfa26266ac3a70f8461ead2cc5c080cd | cf71acd2ea0957aa2d599da8e1185d8519d8b013 | refs/heads/master | 2020-09-09T19:34:28.617579 | 2018-02-16T17:30:01 | 2018-02-16T17:30:01 | 94,444,868 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-23 16:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bidding', '0005_bidcycle__category_code'),
]
operations = [
migrations.Alte... | [
"armanfrasier@gmail.com"
] | armanfrasier@gmail.com |
13068b03c6dbdc061a93c5c29b7546decdac5ec0 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/pose_estimation/DeepPose/mmcv/engine/__init__.py | 8bec565dfc54efecedd75599048004ffc58cc9ae | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 218 | py | from .test import (collect_results_cpu, collect_results_gpu, multi_gpu_test,
single_gpu_test)
__all__ = [
'collect_results_cpu', 'collect_results_gpu', 'multi_gpu_test',
'single_gpu_test'
]
| [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
d5417ff9cca871f0364c67d8a0e88590568f8913 | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/rfRecon/730-tideGauge.py | 9b7141a2a59bfd09dc299b79d0bd512a7b9e60c2 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,696 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 7 11:39:00 2020
This program is designed to reconstruct
daily max surge using RF
@author: Michael Tadesse
"""
def reconstructRF():
"""
run KFOLD method for random forest regression
"""
#import packages
import os
import numpy as np
import pan... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
4415a401fb6b146fd8a0a632936b8e8468af091b | b92c73ac2fca8a1f16388cd553dafa0f167bda93 | /Unit 3/read_library_csv.py | 0229cbbf3115b5a27c43788c879e0f63a575353e | [] | no_license | DamoM73/Digital-Solutions-old | deb8d0fd7c256113fd7fad56b4658896de9f1cba | 750b76d847e1d1c1661c3f1bbf7d56a72666f094 | refs/heads/master | 2023-08-16T05:35:03.641402 | 2021-10-05T02:36:34 | 2021-10-05T02:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 547 | py | import csv
library_db = []
with open('./Unit 3/Library.txt') as library_file:
csv_reader = csv.reader(library_file, delimiter='\t')
line_count = 0
for item in csv_reader:
# print(item)
# item = list(item.split('\t'))
# isbn = item[10]
# title = item[21].strip('"')
... | [
"damomurtagh@gmail.com"
] | damomurtagh@gmail.com |
e70f1aee14e824589775c15e9113b140b5791528 | 6057d9f1e3d7dc769901b432516e8d87990ea476 | /settings_test.py | 47e7fd1676a5441a9ce29be034c7b6f94fbc0d15 | [] | no_license | iSC-Host/air.mozilla.org | 9c8cb68a794b2627a5d30d56ce5ab9a3181f8639 | 045f8895741250eed9c36430108e91a48e51270e | refs/heads/master | 2020-12-26T20:26:33.330205 | 2015-05-21T14:47:03 | 2015-05-21T14:47:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | # These settings will always be overriding for all test runs
EMAIL_FROM_ADDRESS = 'doesnt@matter.com'
PASSWORD_HASHERS = (
'django.contrib.auth.hashers.MD5PasswordHasher',
)
MOZILLIANS_API_APPNAME = 'something'
MOZILLIANS_API_BASE = 'https://shouldneveractuallybeused.net'
MOZILLIANS_API_KEY = 'supersecret'
VIDL... | [
"mail@peterbe.com"
] | mail@peterbe.com |
53379b3d711fd30c40639b6525955859b58bcad3 | 66e6360325b781ed0791868765f1fd8a6303726f | /HI2018HLT/JetTriggers/17554_HLTObjects/FinalMenu_13.py | 51904360ceca7156dbacb740ed7d3517c78a2215 | [] | no_license | alintulu/FHead2011PhysicsProject | c969639b212d569198d8fce2f424ce866dcfa881 | 2568633d349810574354ad61b0abab24a40e510e | refs/heads/master | 2022-04-28T14:19:30.534282 | 2020-04-23T17:17:32 | 2020-04-23T17:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312,730 | py | # hltGetConfiguration /users/chenyi/PbPb2018/HighPTJetsPbPb2018/V36 --globaltag auto:run2_mc_GRun --input "file:Samples/step1_DIGI_L1_DIGI2RAW_HLT_PU_315.root", "file:Samples/step1_DIGI_L1_DIGI2RAW_HLT_PU_316.root", "file:Samples/step1_DIGI_L1_DIGI2RAW_HLT_PU_317.root", "file:Samples/step1_DIGI_L1_DIGI2RAW_HLT_PU_318.r... | [
"chen.yi.first@gmail.com"
] | chen.yi.first@gmail.com |
f91006be5e4947b1bdc56d0b3a44cdbd77c368cf | a25f7829512f09d9a25679b2ccbf0a4d970e8a44 | /restiro/tests/stuff/wrong_usecases/wrong_api_path.py | b814aaa3223abbb7ef40acf84a7621a14011b8e5 | [
"MIT"
] | permissive | meyt/restiro | 1adaa27e6818ed0de29529b4e76c3829e376e23c | 016ffe386656eda9fea490f348e1d5408a1e9608 | refs/heads/master | 2022-01-17T01:11:51.943211 | 2019-07-24T06:43:35 | 2019-07-24T06:43:35 | 95,980,903 | 0 | 0 | MIT | 2019-04-22T07:28:56 | 2017-07-01T18:23:55 | Python | UTF-8 | Python | false | false | 604 | py |
class Seller:
def post(self):
"""
@api /sell
@apiVersion 1.0.0
@apiGroup Seller
@apiPermission
@apiPermission
@apiUrlParam {Integer} sellerId
"""
return self
def get(self):
"""
@api {get} /seller Get sellers list
... | [
"pasd3000@gmail.com"
] | pasd3000@gmail.com |
1fa640d6719bad8740df7d5a2068cbbc6e4e8a5e | cb1b800db9c2475b1f342fd892af869e1e5ab41d | /robogym_ws/build/moveit_ros_perception/catkin_generated/pkg.installspace.context.pc.py | 2413b1c800d4f65e0f2fefc6535436efae838841 | [] | no_license | klekkala/robogym_moveit | c64cb49f9fe11d5dbd2b10816708e323f772a4f6 | d5cdb3c177b719dd8366e0e1c741c5fd5e97521a | refs/heads/main | 2023-04-23T23:45:52.593518 | 2021-05-17T06:34:57 | 2021-05-17T06:34:57 | 365,917,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include;/usr/include/eigen3".split(';') if "${prefix}/include;/usr/include/eigen3" != "" else []
PROJECT_CATKIN_DEPENDS = "image_transport;moveit_core;moveit_msgs;moveit_ros_occupancy_map_mon... | [
"haomengz@usc.edu"
] | haomengz@usc.edu |
2571af3d10f2052efaa91c8d526881fb46996d9f | 6d04d9f7c32feb0a5f81b3ebad30b38196f4e714 | /visual/eye_gaze/ST_classification/archived_models/archived_model_1/load_model.py | 784c0bf6d377537d239f478ef23bb49d9531a912 | [] | no_license | arbaazQureshi/multitask_learning_on_regression_and_classification_to_estimate_depression | 8780e79e9172f03ee985c3bb3de32272bc794674 | 3b762fd3e5fc2bb6c2c02d8d60e8200c9e8b1ae8 | refs/heads/master | 2022-02-17T23:27:35.325122 | 2019-05-06T22:33:03 | 2019-05-06T22:33:03 | 185,280,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | import numpy as np
from keras.models import Model, Sequential, load_model
from keras.layers import Dense, CuDNNLSTM, Input, Concatenate, Dropout
import keras
def load_model(location=None):
if(location != None):
model = keras.models.load_model(location)
print("Loaded the model.")
return model
X = Input(shap... | [
"arbaaz.qureshi29@gmail.com"
] | arbaaz.qureshi29@gmail.com |
bdc54d1acc49f2cf17221840b4f53940459dd24f | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /problem/world_and_great_government.py | 5ee9182316e0fa1b3c8c1fbb0662b8d652915da5 | [] | 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 | 215 | py |
#! /usr/bin/env python
def problem(str_arg):
use_important_case(str_arg)
print('long_thing')
def use_important_case(str_arg):
print(str_arg)
if __name__ == '__main__':
problem('way_and_problem')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
1b1631b6ab59e736b204da7049a05b636e902de5 | 9b6233693dde44eb2074939e59f965cb34e39852 | /Problems/Word list/main.py | 995da437914709285a18d43c8b47be393b655c97 | [] | no_license | ofisser86/jb-Tic-Tac-Toe-with-AI | e27d1e351ec9c7595047dfc841f518257203d2c7 | 7945503a043b4898e080c5b9eda690592b861ec1 | refs/heads/master | 2022-12-31T20:06:17.607796 | 2020-10-12T06:27:50 | 2020-10-12T06:27:50 | 299,206,390 | 1 | 0 | null | 2020-10-12T06:27:51 | 2020-09-28T06:10:46 | HTML | UTF-8 | Python | false | false | 284 | py | text = [["Glitch", "is", "a", "minor", "problem", "that", "causes", "a", "temporary", "setback"],
["Ephemeral", "lasts", "one", "day", "only"],
["Accolade", "is", "an", "expression", "of", "praise"]]
n = int(input())
print([x for i in text for x in i if len(x) <= n])
| [
"ofisser86@gmail.com"
] | ofisser86@gmail.com |
8834ba1bba0aed2597dbf9a3cd320aba5c9f5060 | edaaaa31843aa4dc103dcd4bb8042e66b9b2c42e | /do_input.py | 0122255af88218e172e09b4b1ac9ab1c6a0c0dd9 | [] | no_license | Deeby/gdb-heap-overflow-detection | 4f374febd642226efc9a467f20b3505b6a038c1f | ad2d509b120c65599822ddd4d54d489bcc4bdebd | refs/heads/master | 2020-03-22T15:11:31.818181 | 2015-02-25T18:40:48 | 2015-02-25T18:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | #!/usr/bin/python
def getString(length):
cap_letters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J']
low_letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']
numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
i = 0
count = 0
count1 = 0
count2 = 0
count... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f5cc5e59080b25c5d9baea988a87f26e1da5c90e | a4139f78012a812f437d485d08f108c413c57154 | /pdoc/pelicanconf.py | 81a4823960fa5ed9a52e33de8fdaad3f158ebb41 | [] | no_license | breuleux/ug | 083fb53450c1c64c408511b49a0ef76c17c5e9b1 | 7cc3e1c13b7e89ac287a7ac0dca47924101671f9 | refs/heads/master | 2021-01-22T23:15:39.076110 | 2013-12-06T06:08:42 | 2013-12-06T06:08:42 | 10,134,607 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
AUTHOR = u'Olivier Breuleux'
SITENAME = u'Unholy Grail documentation'
SITEURL = ''
THEME = 'theme'
TIMEZONE = 'North America/Montreal'
DEFAULT_LANG = u'en'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM ... | [
"breuleux@gmail.com"
] | breuleux@gmail.com |
1ff72530db37147ae693e7264ce3b78774144c78 | 715997308f5bbeed506c76268a2b5c3d12a7313b | /MyMovies/wsgi.py | 788cf2d1d6a4ef6d26a7bdb2aa506697e0b86567 | [] | no_license | maoaiz/Prueba_Django | 1ad315ed22395e7279e5d5709dc573b9b62cd686 | 0b3f6c2e01e7173a93243558e692ac88af8db022 | refs/heads/master | 2020-04-06T06:43:38.186669 | 2012-07-07T17:20:06 | 2012-07-07T17:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | """
WSGI config for MyMovies project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION``... | [
"mauricioaizaga@gmail.com"
] | mauricioaizaga@gmail.com |
a8f9571411dccc603d778cb4f521624c6a58142f | 2f9f523b1f30cba95965953579850790f873e83b | /day14/week13/day51/server3.py | fd3042c96af750054decd520d9b916ef018a5d53 | [] | no_license | taizilinger123/day9 | 265d943197d52a2899b4ff2b64a68b27c885a8b9 | d07aaf5b2afb274c3a49ebeaaf1db023e776fbf6 | refs/heads/master | 2020-03-28T08:52:25.060276 | 2018-09-10T01:15:40 | 2018-09-10T01:15:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,350 | py | from wsgiref.simple_server import make_server
def f1(request):
return [b'<h1>Hello, book!</h1>']
def f2(request):
return [b'<h1>Hello, web!</h1>']
def login(request):
print(request)
return [b'<h1>Hello, loggin!</h1>']
def routers():
urlpatterns = (
('/book',f1),
('/web',f2),
... | [
"837337164@qq.com"
] | 837337164@qq.com |
2d65528a545ef18ba5cef17e05e8221fa139210a | 0e4f76fc3f9aae8b00a67806dffcfc6360e310d1 | /classes/ifctypeobject.py | 8f715f02f3d596c8aae05cdb8af798c387fb254e | [] | no_license | HassanEmam/PyoIFC | e11f3b330d3e758aaae47ee9e70b2ae5b5847432 | c2ec4e017ce366b07686491dbe22827aec2711c0 | refs/heads/master | 2020-07-31T14:27:53.305768 | 2019-09-24T15:41:28 | 2019-09-24T15:41:28 | 210,630,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | class IFCTYPEOBJECT(IFCOBJECTDEFINITION):
def __init__(self, ApplicableOccurrence, HasPropertySets):
self.ApplicableOccurrence = ApplicableOccurrence
self.HasPropertySets = HasPropertySets | [
"hassan.emam@hotmail.com"
] | hassan.emam@hotmail.com |
7891260160a10b1565ca75f99c22acb2bd83889f | e62d5b3e9cb8e3549c711067e3f17d7c761f1b2a | /sorting algorithm/O n log n merge sort.py | 59c4222c7bf1cf0b9fad215d99691e6e09a26622 | [] | no_license | UncleBob2/MyPythonCookBook | 5fe658b3e281861015e154493480753d169764a7 | 131051c884415cde789a487acb7e7d1f60aea3ac | refs/heads/master | 2023-01-03T04:26:15.493832 | 2020-10-29T20:09:45 | 2020-10-29T20:09:45 | 259,091,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,556 | py | #data = [7, 2, 5, 66, 3, 4, 9, 2]
data = [1, 2, 6, 32, 6, 643, 343, 245, 789, 32, 654]
#data = [10, 15, 4, 23, 88, 1, 2, 4]
#data = [10, 15, 4, 23, 1, 2, 4]
# recursive, O(len_left_halfogn)
# Python program for implementation of MergeSort
'''
1) divide and conquer
2) recursive
3) stable - equal keys = relative order s... | [
"trohoang@yahoo.com"
] | trohoang@yahoo.com |
2fca95a69c9ab8d9bc83ae7e1b3b4d118f90e4e2 | 952dbac03b90b23a2f56e7f43ca1fc7a2df31555 | /python_modules/libraries/dagster-aws/dagster_aws_tests/cli_tests/test_term.py | 84311bd1ad609e4b65112a0fffd39cdc57b8aded | [
"Apache-2.0"
] | permissive | zzztimbo/dagster | 2b5c5413d16d4ca726259ed0b9f1e48648f5f7ec | 5cf8f159183a80d2364e05bb30362e2798a7af37 | refs/heads/master | 2020-12-23T07:40:27.230870 | 2020-03-28T19:35:56 | 2020-03-30T22:34:47 | 251,444,191 | 1 | 0 | Apache-2.0 | 2020-03-30T22:37:49 | 2020-03-30T22:37:49 | null | UTF-8 | Python | false | false | 1,057 | py | # -*- coding: utf-8 -*-
import time
import click
from click.testing import CliRunner
from dagster_aws.cli.term import Spinner, Term
def test_term():
def term_helper(term_cmd, prefix, exit_code=0):
@click.command()
def fn():
term_cmd('foo bar')
runner = CliRunner()
res... | [
"nate@elementl.com"
] | nate@elementl.com |
1d17067cee6c262e41b21c6f42b30d5602df2f72 | 443d71dd6e37f21276602a5417f76da6b4388d94 | /collective/imageReference/utils/interfaces.py | 16133167d4451307f8126de2ec277172bb4b783a | [] | no_license | andreesg/collective.imageReference | 58c03521100c8e87e331f7cdcad03733d6129758 | 1f9f974a8d35550121f48487d2af10be15f07485 | refs/heads/master | 2021-01-10T13:48:47.176476 | 2015-11-11T12:56:48 | 2015-11-11T12:56:48 | 36,307,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,059 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from zope import schema
from zope.interface import Interface
from collective.imageReference import MessageFactory as _
from ..utils.vocabularies import _createPriorityVocabulary, _createInsuranceTypeVocabulary
from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary
fr... | [
"andreslb1@gmail.com"
] | andreslb1@gmail.com |
8ff3e4d1b644aaa9f4dec641d8cb93a98daa0584 | 34599596e145555fde0d4264a1d222f951f49051 | /pcat2py/class/213810c0-5cc5-11e4-af55-00155d01fe08.py | 365936a45465bc8bb8676c6562657047efe68ffe | [
"MIT"
] | permissive | phnomcobra/PCAT2PY | dc2fcbee142ce442e53da08476bfe4e68619346d | 937c3b365cdc5ac69b78f59070be0a21bdb53db0 | refs/heads/master | 2021-01-11T02:23:30.669168 | 2018-02-13T17:04:03 | 2018-02-13T17:04:03 | 70,970,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,574 | py | #!/usr/bin/python
################################################################################
# 213810c0-5cc5-11e4-af55-00155d01fe08
#
# Justin Dierking
# justindierking@hardbitsolutions.com
# phnomcobra@gmail.com
#
# 10/24/2014 Original Construction
################################################################... | [
"phnomcobra@gmail.com"
] | phnomcobra@gmail.com |
abb8ce91124a4f1a792c247b526fbb5e991c3807 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /3Eia4oLLCcyyLN2L7_18.py | 6446bdc7673f83d3ca8ffbd3a85db456bf95d71c | [] | 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 | 99 | py |
def remove_repeats(s):
return "".join([s[i] for i in range(0,len(s)-1) if s[i]!=s[i+1]])+s[-1]
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
668ba3528a2638fe9bfba3b4b8912d094735cf2d | 69400e9cedb7f367fbf396fe7a56bb162bc6f2aa | /backend/cold_war_wallpapers_26369/wsgi.py | 10ba1f8b3d76ec798d9f1995d04361656054e15c | [] | no_license | crowdbotics-apps/cold-war-wallpapers-26369 | 2682aa83c399af132c064839263a795f89f13f12 | 88989790add4203d42383be2afa0d117e3005b61 | refs/heads/master | 2023-04-29T03:24:16.780649 | 2021-05-08T04:53:53 | 2021-05-08T04:53:53 | 365,421,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | """
WSGI config for cold_war_wallpapers_26369 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdef... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ff979141bc1820993cd80263e6402defefea36f8 | 238e26a1b9e8ca17cad5ad7084ff89c07a7a0204 | /tensorflow_probability/python/experimental/mcmc/windowed_sampling_test.py | 1f06d10c3e1ff258d53ae57efda4a8cc9a4e9503 | [
"Apache-2.0"
] | permissive | Leengit/probability | 3a729982d9baf5bdd3ddeab360592fb5c909b05b | 25bc475e66a3f216505d773d6602eae7d90a12fa | refs/heads/main | 2023-07-11T14:07:20.784720 | 2021-08-11T23:43:32 | 2021-08-11T23:43:32 | 376,018,535 | 0 | 0 | Apache-2.0 | 2021-06-11T12:30:11 | 2021-06-11T12:30:10 | null | UTF-8 | Python | false | false | 24,145 | py | # Copyright 2021 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the _License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
8fb3b0963437b7e4e2957d9e8d5ba36d8e2b6797 | 0800aac473cbb94f3ac263c202979498c326cf18 | /tax0203.py | 9e86d45333a0f887209ebde581246df35ca55dc1 | [] | no_license | DanielHennyKwon/TAX_LIM_JEONG | 8f12e072c044cd17646f196c17b51d1e0cae179e | a263b4e90f0ac78500382047bf7ae72380213ca8 | refs/heads/master | 2023-06-16T10:50:55.111407 | 2021-07-11T02:59:50 | 2021-07-11T02:59:50 | 384,847,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | # -*- coding: utf-8 -*-
#Created on 2021-7-10 @author: 권달현
#___________________________________________________
제목=' 2-3 납세의무의 성립,확정 및 소멸'
tax={
"2-3-1 납세의무의 성립":{},
"2-3-2 납세의무의 확정":{},
"2-3-3 납세의무의 소멸":{},
}
| [
"cpahouse@naver.com"
] | cpahouse@naver.com |
317d2605559e92d0b1316788ad1bd1d0a4af422a | e6f45fba3f8c6b6fba07f51e6cf3ae848e711551 | /center_three/voice_label/voice_quality/data_processing.py | 9067790597363036c8c18c4e3249f3b0772c16ac | [] | no_license | yangwen1997/ASR | c0a49de2bcde7fe0a8806d4b7c1d2f2faeda0c70 | 8d8691f74646a1f66573ecbeaf022911f8363b55 | refs/heads/master | 2022-12-07T14:36:20.842942 | 2020-09-08T02:34:31 | 2020-09-08T02:34:31 | 293,677,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,459 | py | # !/usr/bin/env Python3
# -*- coding: utf-8 -*-
# @Author : wangchen
# @FILE : data_processing.py
# @Time : 2020/7/13 21:00
# @Software : PyCharm
import os
import sys
sys.path.append(os.environ['PUSHPATH'])
from center_three.voice_label.utils import (Read_From_Mysql, Redis_Pool,
... | [
"1120021365@qq.com"
] | 1120021365@qq.com |
79c2f9bdb0d49f517468a80c2779b1a5f2b7646b | a643c2ed78b48e4cacf140776fbedd0191881e18 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_date_time_format_response_body_for_content_types/post.pyi | 18588164a4ed2c7cc9d6c4ab6c5559c7d5e32b3d | [
"Apache-2.0"
] | permissive | padamstx/openapi-generator | 5ae41f68a4f9349d76c1db81b9ff82e18e5b4b7c | 00604aff594864447c134ddb1982565136e27857 | refs/heads/master | 2023-03-08T20:11:36.318959 | 2022-09-28T16:34:17 | 2022-09-28T16:34:17 | 160,528,958 | 0 | 1 | Apache-2.0 | 2023-02-24T16:13:11 | 2018-12-05T14:17:50 | Java | UTF-8 | Python | false | false | 4,826 | pyi | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noq... | [
"noreply@github.com"
] | padamstx.noreply@github.com |
588c3372b4eccaaa073ac4bf88fff75642643371 | f81099738d3ab7d4a4773a04ed9e36e493632590 | /angelos-ctl/setup.py | 075fcbb6e94f7e8b7798ec07d613326b6ba47c85 | [
"MIT"
] | permissive | kristoffer-paulsson/angelos | eff35753e4d7e4465d2aadac39265f206b09fcf9 | d789f47766fe3a63a6752b92e4ea955f420dbaf9 | refs/heads/master | 2022-05-05T15:16:59.340527 | 2022-03-27T16:05:51 | 2022-03-27T16:05:51 | 142,691,235 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,084 | py | #
# Copyright (c) 2018-2020 by Kristoffer Paulsson <kristoffer.paulsson@talenten.se>.
#
# This software is available under the terms of the MIT license. Parts are licensed under
# different terms if stated. The legal terms are attached to the LICENSE file and are
# made available on:
#
# https://opensource.org/lice... | [
"kristoffer.paulsson@talenten.se"
] | kristoffer.paulsson@talenten.se |
8a8585b422773ef8d8da93d90d7f9b154b60c430 | 262311e60529868e38c2c57ee3db573f8e11c458 | /spider_file/Tools/__init__.py | ccd2787eebb2b646d4ffea305bf6a8e1d9ab43e3 | [] | no_license | huileizhan227/untitled | 1c5604736d9ffcce6f7cb7e308cdc0ebd07e116a | 07df74c89291b1664a28e3c8dcba51a917f1835f | refs/heads/master | 2023-01-27T11:51:37.609210 | 2020-04-16T11:49:59 | 2020-04-16T11:49:59 | 150,606,504 | 1 | 0 | null | 2023-01-09T12:00:12 | 2018-09-27T15:12:18 | HTML | UTF-8 | Python | false | false | 131 | py | #!/user/bin/env pythone2.7
#! -*- coding:utf-8 -*-
#! @Time : 2018/6/27 16:16
#! @Auther : Yu Kunjiang
#! @File : __init__.py.py
| [
"374826581@qq.com"
] | 374826581@qq.com |
0a137be42e37a2d08ccbc488e27935db0cfe08fb | b2cefb7a2a83aa93ee1b15a780b5ddf6c498215b | /nemo_text_processing/inverse_text_normalization/es/taggers/measure.py | 516d2fb2d590d52c92abbc8e5c63e931a1dfafef | [
"Apache-2.0"
] | permissive | VahidooX/NeMo | bfde8c9b48c818342a9c6290fb9dee62fafeca38 | 866cc3f66fab3a796a6b74ef7a9e362c2282a976 | refs/heads/main | 2023-07-23T19:13:39.948228 | 2022-04-29T21:51:54 | 2022-04-29T21:51:54 | 227,733,473 | 1 | 2 | Apache-2.0 | 2022-09-15T15:30:13 | 2019-12-13T01:55:21 | Jupyter Notebook | UTF-8 | Python | false | false | 3,831 | py | # Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requ... | [
"noreply@github.com"
] | VahidooX.noreply@github.com |
ed83a113dbcd2423123a3cfa62837f66ef4648d9 | e50954bb35fbc377a1c9a6842fa4ceb6b6234b39 | /zips/plugin.video.weetv/lib/weeresolver/sources/speedvid.py | cb564784d4d95ec9ce5e5693107a9a9c1f4d9d69 | [] | no_license | staycanuca/BUILDONLY | f213e242ed869475668933ac7b6ee2d4e8508bbc | f87684bf0111a1079b0e1184e1bfca3f2c5348ed | refs/heads/master | 2021-05-09T04:54:22.747154 | 2018-01-28T08:55:07 | 2018-01-28T08:55:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | import re
import requests
domain = ['speedvid.net']
name = 'Speedvid'
sources = []
def resolve(url):
server = ''
no = ''
html = requests.get(url).content
n = re.findall('\|primary\|(.+?)\|(.+?)\|.+?mp4\|(.+?)\|',html)
for no,server,i in n:
no = no
server = server
playlink =... | [
"biglad@mgawow.co.uk"
] | biglad@mgawow.co.uk |
2db6dc35bc43660ce7c6441fb63052f62dad4eb9 | 7e03749969def182e47e1974c9de3b4cbc3ca4ff | /interna/crowdfund/apps.py | 810d0a4f1cf493bcacb7b74c66a53c5a36856541 | [] | no_license | coredump-ch/interna | a04dab1b1c92cbbaec666186f2f09c2bbb989b10 | 63ee3d7bd173368373e3d7c8e20eb962803c8514 | refs/heads/master | 2021-11-25T08:13:01.780169 | 2021-11-21T20:49:44 | 2021-11-21T20:50:13 | 13,701,826 | 5 | 3 | null | 2021-11-15T22:33:08 | 2013-10-19T13:53:03 | Python | UTF-8 | Python | false | false | 127 | py | from django.apps import AppConfig
class CrowdfundConfig(AppConfig):
name = 'crowdfund'
verbose_name = 'Crowdfunding'
| [
"mail@dbrgn.ch"
] | mail@dbrgn.ch |
d695b6c899636eec4af2d1f1f873864c6194c903 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4455786.3.spec | 3c8adf5c009417cfdb98657caea4d371d81e6891 | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 23,026 | spec | {
"id": "mgm4455786.3",
"metadata": {
"mgm4455786.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
3eb6a0045073fc2f49c2e629d02fb0a34b73caca | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/7/rt6.py | 8c0bf5148b181bb71b4aa1c4b91060e7ddec383e | [] | 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 |
6e73704562da084bfdf8a5a44fbf57bea41c9429 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/385/usersdata/329/90743/submittedfiles/volumeTV.py | 5f3c880aab9464d82906b26a45d353cc25f56b74 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | -*- coding: utf-8 -*-
n = 0
v = int(input("digite o acrescimo ou descrecimo do volume= "))
while v >= 0 and v =< 100:
n = n + v
print (n)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
c528f3965cdbca71223f22fe6e63ecc1369c51f2 | 38fff7bdefd8d62a740d51329b50d0e1e49258bb | /projects/ply/fuzz_lex_yacc.py | d45ccd44ac295f164d220c6100c2ef934c8a2a83 | [
"Apache-2.0"
] | permissive | google/oss-fuzz | 026384c2ada61ef68b147548e830f60730c5e738 | f0275421f84b8f80ee767fb9230134ac97cb687b | refs/heads/master | 2023-08-31T23:30:28.157702 | 2023-08-31T21:49:30 | 2023-08-31T21:49:30 | 63,809,205 | 9,438 | 2,315 | Apache-2.0 | 2023-09-14T20:32:19 | 2016-07-20T19:39:50 | Shell | UTF-8 | Python | false | false | 2,209 | py | #!/usr/bin/python3
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"noreply@github.com"
] | google.noreply@github.com |
a037b8dda0b025bee676f9e55d4810f720875d9a | a7d6807af3b8b67d0ac93b014d9a688d8d612539 | /algoexpert/11-dynamic-programming/min_number_coins_change.py | aa78e2a720a6ec92ef7b0e0f488837ef5bbeba84 | [] | no_license | shehryarbajwa/Algorithms--Datastructures | 06a9f86bedbf40909011365cf169d5c77791b643 | cbd456e0db9ea6a542926015aeee4bd2ceff9ff9 | refs/heads/master | 2023-04-11T21:00:17.438588 | 2021-05-11T23:19:05 | 2021-05-11T23:19:05 | 193,496,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | #Time Complexity O(nd)
#Space Complexity O(n)
def min_number_coins_change(n,denoms):
min_ways_to_make_change = [float('inf') for amount in range(n + 1)]
min_ways_to_make_change[0] = 0
for denom in denoms:
for amount in range(n + 1):
if denom <= amount:
min_ways_to_make_... | [
"shehryar.bajwa@gmail.com"
] | shehryar.bajwa@gmail.com |
af8b49ae0738f8da395362c4bd915e1b4a7a078d | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/googlecloudsdk/third_party/apis/apikeys/v1/resources.py | 85ac481b3db6128dee9dcf1569b7b7e975ff2d7c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 1,115 | py | # Copyright 2015 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... | [
"toork@uw.edu"
] | toork@uw.edu |
e425fd05af1fa75cb073976330251627c11b89e4 | 634fb5fe10e8f944da44ab31896acc8471ec5f18 | /hq_env/lib/python2.7/site-packages/openpyxl/reader/iter_worksheet.py | 3b2cf2b844fbd381183ee088a923ee474d2f9f04 | [] | no_license | dimagi/commcarehq-venv | 277d0b6fada24f2edd54f74850267201153412a7 | 2c52e3fb0f974cae5c5feaea1d5de851fe530c80 | refs/heads/master | 2021-01-18T14:05:47.931306 | 2015-07-20T10:10:41 | 2015-07-20T10:10:41 | 11,513,855 | 1 | 1 | null | 2015-07-20T10:10:41 | 2013-07-18T21:09:22 | Python | UTF-8 | Python | false | false | 12,939 | py | # file openpyxl/reader/iter_worksheet.py
# Copyright (c) 2010-2011 openpyxl
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the righ... | [
"dmyung@dimagi.com"
] | dmyung@dimagi.com |
98d70351c5c8965c4076b9d87a989f40978c90b7 | 0e5291f09c5117504447cc8df683ca1506b70560 | /test/test_nested_user.py | d920b14ba7126eb5d2b0f4735fca38ae06603548 | [
"MIT"
] | permissive | nrfta/python-netbox-client | abd0192b79aab912325485bf4e17777a21953c9b | 68ba6dd4d7306513dc1ad38f3ac59122ba4f70a8 | refs/heads/master | 2022-11-13T16:29:02.264187 | 2020-07-05T18:06:42 | 2020-07-05T18:06:42 | 277,121,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # coding: utf-8
"""
NetBox API
API to access NetBox # noqa: E501
OpenAPI spec version: 2.8
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import netbox_client
from netbox_client.models.nested_user import NestedUser... | [
"67791576+underline-bot@users.noreply.github.com"
] | 67791576+underline-bot@users.noreply.github.com |
a10f99c52b6c7d4f1bbe9121760bdbe8089d83fd | e164fd9dce5fef093f85ca009f78570ec2b1c492 | /108. Convert Sorted Array to Binary Search Tree.py | 9bc2e28c774e862732be076b428f87365c449a1d | [] | no_license | havenshi/leetcode | 58fde93a1f1cbdd3c2faa9566c00383e5812f3a7 | bcb79f329bcb133e6421db8fc1f4780a4eedec39 | refs/heads/master | 2021-01-22T04:15:23.748793 | 2019-11-30T04:25:54 | 2019-11-30T04:25:54 | 92,447,327 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # Time: O(n)
# Space: O(logn)
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def sortedArrayToBST(self, nums):
"""
:type nums: List[int]
:rtype... | [
"haiwen.shi01@gmail.com"
] | haiwen.shi01@gmail.com |
9255ac3a993e69417357361e82bff7cc824b0bea | 1f5bf7b22bdb1d0c1856c323fcd3a5ed70938ba2 | /第19届上海大学程序设计联赛春季赛/F.py | 4fe54f6cc03c96afd23b8f634c717a6defc1e156 | [] | no_license | yu-hanyang/my-newcoder-ans-by-python | ec7c6d7765fc65969b4798a93437712980429ec2 | fb5ee012c4615dc5198278d4349705403c2d4bae | refs/heads/main | 2023-05-03T07:00:01.398542 | 2021-05-29T11:43:48 | 2021-05-29T11:43:48 | 369,950,165 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | n,s=map(int,input().split())
a=list(map(int,input().split()))
max_a=max(a)
min_a=min(a)
if s<=min_a:
print(max_a-s)
elif s>=max_a:
print(s-min_a)
elif max_a-s>s-min_a:
print(s-min_a+max_a-min_a)
else:print(max_a-s+max_a-min_a) | [
"2522821183@qq.com"
] | 2522821183@qq.com |
2e4818ae3024475da774cb818e9c7853fb523649 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SSD/configs/legacy_1.x/retinanet_r50_caffe_fpn_1x_coco_v1.py | a29a037592c7728e43afc1e30101bc306cbc8e6a | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 1,928 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
5f9ca3c37784a91d966e7854c1ecbb22f1c2bc94 | 71e640ac44a47e88a813b0019f1ce3031edaad3a | /pythonds/7_binary_heap.py | ae673c52f495b582c9fac1371967acd6b1d0daa5 | [] | no_license | PyRPy/algorithms_books | ef19b45f24c08a189cb9914f8423f28d609700e2 | 1804863ca931abedbbb8053bcc771115d0c23a2d | refs/heads/master | 2022-05-25T20:22:03.776125 | 2022-05-10T13:47:33 | 2022-05-10T13:47:33 | 167,270,558 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | # 7_binary_heap.py
from pythonds.trees import BinHeap
bh = BinHeap()
bh.insert(5)
bh.insert(7)
bh.insert(3)
bh.insert(11)
print(bh.delMin())
print(bh.delMin())
print(bh.delMin())
| [
"noreply@github.com"
] | PyRPy.noreply@github.com |
b733bb26c40c46b394df72d8f4e2adfcd7475b60 | f3b5c4a5ce869dee94c3dfa8d110bab1b4be698b | /tools/sandesh/library/python/pysandesh/test/sandesh_uve_alarm_test.py | 4b97e38d27905d05b5dba20c5f26a6e04adba49f | [
"Apache-2.0"
] | permissive | pan2za/ctrl | 8f808fb4da117fce346ff3d54f80b4e3d6b86b52 | 1d49df03ec4577b014b7d7ef2557d76e795f6a1c | refs/heads/master | 2021-01-22T23:16:48.002959 | 2015-06-17T06:13:36 | 2015-06-17T06:13:36 | 37,454,161 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,882 | py | #!/usr/bin/env python
#
# Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
#
#
# sandesh_uve_alarm_test
#
import mock
import unittest
import sys
import socket
sys.path.insert(1, sys.path[0]+'/../../../python')
import test_utils
from pysandesh.sandesh_base import *
from pysandesh.sandesh_client import... | [
"pan2za@live.com"
] | pan2za@live.com |
a3af16495ce0f06d22e9f5293564d0dc2c9f1b45 | e13b3447d60cca179480d14fbb9f40ab611df7ab | /script/build_HMM_model.py | dc5bb4ca55d9ee15fd04ac6271530ab9e5aa12f6 | [
"MIT"
] | permissive | sanfendu/gojieba | 7b5e12207a074764f1a4a242db8c9342a03bda41 | 8819acd4cb5eb9739dd2ee595e4d0b83de77edfc | refs/heads/master | 2023-07-07T14:05:26.944951 | 2021-08-14T19:16:04 | 2021-08-14T19:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,702 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File: build_finalseg_model.py
# Created Date: 2021-08-14
# Author: Rabbit
# --------------------------------
# Copyright (c) 2021 Rabbit
import os
import sys
JIEBA_ROOT_DIR = os.path.join(ROOT_DIR, "jieba/")
ROOT_DIR = os.path.join(os.path.dirname(__file__), "../")
PY... | [
"zxh2017@pku.edu.cn"
] | zxh2017@pku.edu.cn |
157176c8e0311b7472e5d113e9767a871e72b859 | a2e607593dcbe5feaeedd9e9bd4caeaf06e46733 | /python/ht/events/manager.py | 67c11db1b19cbabf026db8dcff7b3aa70fcf1403 | [] | no_license | all-in-one-of/Houdini-Toolbox | dd05b2c869e663b185c1997d326bfe7548fbf55f | c10663c46c0f1249a9b3c6b32d4384a4399849ed | refs/heads/master | 2020-06-13T01:10:11.832715 | 2019-08-30T07:24:47 | 2019-08-30T07:24:47 | 194,484,242 | 0 | 0 | null | 2019-06-30T06:42:17 | 2019-06-30T06:42:17 | null | UTF-8 | Python | false | false | 8,183 | py | """This module contains a class and functions for registering and managing
events in Houdini.
"""
# =============================================================================
# IMPORTS
# =============================================================================
# Python Imports
import collections
from contextl... | [
"captainhammy@gmail.com"
] | captainhammy@gmail.com |
b8fbc393b118e97bae8b2cf81978d3b7e44300ea | 1eb3fd8158dd87a625a9b8bd3dd45e915a630e7f | /tests/test_meetups.py | 8a79a6b4aa4071cb88152d767f865c165045b3a4 | [] | no_license | wangonya/questioner2 | 0d127f8fb5b416cb93701a6e2cd7a4e4c1e16db9 | c0615d5503cf6d64270014427ed1c4cf67c57df2 | refs/heads/develop | 2022-12-13T18:30:29.018955 | 2019-03-04T12:38:09 | 2019-03-04T12:38:09 | 166,192,764 | 2 | 0 | null | 2022-12-08T01:32:57 | 2019-01-17T08:52:32 | Python | UTF-8 | Python | false | false | 2,377 | py | import datetime
import pytest
from .conftest import post_json
from app.utils import error_handlers, validators
def test_post_meetup(new_meetup, cursor, main):
"""test post meetup endpoint"""
insert_query = ('INSERT INTO meetups '
'(title, details, creator, location, happening_on, '
... | [
"kwangonya@gmail.com"
] | kwangonya@gmail.com |
e6dc57da66cc7b2561220d8e560e954e34aaf665 | 0a9ff5a17c268e2cf7fbbb41012d33f7920cf881 | /GENDERLOCATION/CareerTimeStats/gettimedata.py | 1097a0502f10e973ba62592fe8857c9ac230d970 | [] | no_license | milanjanosov/success_engine | b6a44b454ec06d918a31922a59316e344b3adb15 | 7292577f64225568af2292cc4448bd266c0d2a59 | refs/heads/master | 2021-10-10T12:09:02.216649 | 2019-01-10T11:46:13 | 2019-01-10T11:46:13 | 103,768,651 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,655 | py | import sys
import os
import gzip
data_folder = '../../Data'
input_fields = [(data_folder + '/Film/film-art-director-simple-careers', 'film', 'art-director'),
(data_folder + '/Music/music-pop-simple-careers', 'music', 'pop'),
(data_folder + '/Music/music-... | [
"janosovm@gmail.com"
] | janosovm@gmail.com |
f9066a3a3be4853795fcff4c72a4e4f30d9e018c | 055581f9d6c81eda2f73ea05b90b7a2256da1219 | /parts/zodiac/zope/interface/common/idatetime.py | f66b15ae09c45f1d2a74e33f23823c18872d01ef | [] | no_license | Tosti770/zodiac | 488a91c3e872a62d09a3ebb22a951dadcbd1c2df | af0380e20eb90699a84e3b7c6cb2085a1fb81667 | refs/heads/master | 2020-04-13T06:54:26.333228 | 2014-03-03T20:10:11 | 2014-03-03T20:10:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | /home/ruben/zodiac/eggs/zope.interface-4.0.5-py2.7-linux-x86_64.egg/zope/interface/common/idatetime.py | [
"ruben_tc@hotmail.es"
] | ruben_tc@hotmail.es |
d6591dd55855f7aeb1190088459f525871c9f649 | 620d21623a300821e2a195eed5434bac67fb4dca | /abb_experimental_ws/build/rosserial_vex_cortex/catkin_generated/pkg.develspace.context.pc.py | 8478c17839990febbb3bb984f22b3bf110b9a93c | [] | no_license | yazici/Robarch-dev | bb63c04bd2e62386e7c1215bf5b116ccd763c455 | 9f8db4c418db3fc80454200cb6625cc2b2151382 | refs/heads/master | 2020-05-21T02:32:06.765535 | 2018-09-07T15:50:26 | 2018-09-07T15:50:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rosserial_vex_cortex"
PROJECT_SPACE_D... | [
"email.jrv@gmail.com"
] | email.jrv@gmail.com |
74bdce64d7f1d8023852fae669ebab7106feaa3d | d62834c886cbc4b5728fa54207139cb2ae2ae725 | /tests/test_docs.py | 1dc59caaaea8b45bb80518cf3a5a67586e8539a5 | [
"MIT"
] | permissive | joeblackwaslike/pricing | 338c58aceb71941b92a05f166dc8a9e7a4feef99 | be988b0851b4313af81f1db475bc33248700e39c | refs/heads/master | 2020-03-17T02:30:22.795685 | 2018-05-13T01:33:06 | 2018-05-13T01:33:06 | 133,192,709 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py | # -*- coding: utf-8 -*-
"""
Price doctests as unittest Suite
"""
import doctest
import unittest
FILES = (
'../../README.rst',
)
def load_tests(loader, tests, pattern):
return doctest.DocFileSuite(*FILES)
| [
"me@joeblack.nyc"
] | me@joeblack.nyc |
a86fa6de738c01ae7bccd2ccf6a13dceaa6a3ac4 | 51b6d2fc53d5c632fcf01319842baebf13901e84 | /atcoder.jp/abc193/abc193_d/Main.py | 0b2d861e5d57abd897da24f0bc4d81d72180c441 | [] | no_license | mono-0812/procon | 35db3b2c21eff74fbd7b52db07f249380f6834ef | 68a4b53880a228a0164052b23d1326363efcbc20 | refs/heads/master | 2023-05-30T17:02:58.935074 | 2021-06-27T12:15:10 | 2021-06-27T12:15:10 | 345,896,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | K = int(input())
S = input()[:4]
T = input()[:4]
cnt = [K] * 10
for c in S:
cnt[int(c)] -= 1
for c in T:
cnt[int(c)] -= 1
def score(S):
cnt = [0] * 10
for c in S:
cnt[int(c)] += 1
ans = 0
for i in range(1, 10):
ans += i * 10 ** cnt[i]
return ans
ans = 0
for i in range(1, 10):... | [
"frisk02.jar@gmail.com"
] | frisk02.jar@gmail.com |
0b0bb3f06e14a1667ca412aee22b3ece5088e7a7 | 71cd089958414d51609da8d89bf7924705bad6c5 | /chapter8/videoserver.py | fb998d2c2965b47ba6129b40c5b26515cc6c57a2 | [] | no_license | JanPingZHANG/py_practical_skills_course | e33074d8d2fcc22b87d576dbc7a420333003cfdf | f93c5e4e3f2285c954db97a12fbacb8af0ce1177 | refs/heads/master | 2021-01-22T04:14:58.758710 | 2017-02-10T03:24:49 | 2017-02-10T03:24:49 | 81,521,842 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,622 | py | import os, cv2, struct, threading
from http.server import BaseHTTPRequestHandler
from socketserver import ThreadingTCPServer
from threading import Thread, RLock
from select import select
class JpegStreamer(Thread):
def __init__(self, camera):
Thread.__init__(self)
self.cap = cv2.VideoCapture(camera)
self.lock =... | [
"zjp_hiwork@163.com"
] | zjp_hiwork@163.com |
54e9e80f31afd98bc5b02b13ad9af7454b456237 | ab4f74d127bfc89813ee359bb9c779eca5426ddc | /script/label_image.runfiles/org_tensorflow/tensorflow/contrib/metrics/python/ops/confusion_matrix_ops.py | 49ba3904582df4faac5e33c32bee530543d1e12e | [
"MIT"
] | permissive | harshit-jain-git/ImageNET | cdfd5a340b62862ad8d1cc3b9a0f30cccc481744 | 1cd4c2b70917e4709ce75422c0205fe3735a1b01 | refs/heads/master | 2022-12-11T12:47:46.795376 | 2017-12-19T05:47:26 | 2017-12-19T05:47:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | /home/co/Documents/ImageClassifier/tensorflow/tensorflow/contrib/metrics/python/ops/confusion_matrix_ops.py | [
"harshitjain1371999@gmail.com"
] | harshitjain1371999@gmail.com |
26c13d5967797a8dbd118c174099395213d62b03 | 1785ce8f49b0a253a2980d37676c62dbb4955d23 | /Easy/diameterOfBinaryTree.py | e0c9e40d0afa2e2184f62bc63b8ba951d165ebb9 | [] | no_license | BassP97/CTCI | 29aca0913f39fc24c281f9cffb255a8e4c2f0472 | 6ca635efd0cacb56e7a117f6636b6126ddc8ea5b | refs/heads/master | 2023-04-08T17:25:58.853342 | 2021-04-17T22:25:20 | 2021-04-17T22:25:20 | 185,297,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | """
Given a binary tree, you need to compute the length of the diameter of the tree.
The diameter of a binary tree is the length of the longest path between any two
nodes in a tree. This path may or may not pass through the root.
Note - too lazy to implement a real tree so logic will have to do
"""
class Solution(ob... | [
"bass_p1@denison.edu"
] | bass_p1@denison.edu |
db310f13e0ae17de7aca0776ef7f1f93bc1cccfd | de3b77cb0927f28cbd85e9142c2dfd7c8be7c27e | /tests/migrations/014_allow_mult_nonhuman_auths_up.py | ccdc06dd670b909e5026c707ab615ef7053d246b | [
"MIT"
] | permissive | LoansBot/database | f3dcbccde59fdb80c876d2612f250662946588e6 | eeaed26c2dcfdf0f9637b47ebe15cd1e000d8cc4 | refs/heads/master | 2021-07-02T22:07:18.683278 | 2021-06-02T04:09:38 | 2021-06-02T04:09:38 | 239,400,935 | 0 | 1 | MIT | 2021-06-02T04:14:31 | 2020-02-10T01:06:53 | Python | UTF-8 | Python | false | false | 1,793 | py | import unittest
import helper
class UpTest(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.connection = helper.setup_connection()
cls.cursor = cls.connection.cursor()
@classmethod
def tearDownClass(cls):
cls.cursor.close()
cls.connection.rollback... | [
"noreply@github.com"
] | LoansBot.noreply@github.com |
016b49eaa2693fbdbbf419ae344d4a0be5d90e96 | 9f7d4d76c7e66aa424a5f8723575dc489f1fd2ab | /2015/19/19.py | b34672f9d7dd0724cc3abc3659dad68e4eec7f14 | [
"MIT"
] | permissive | kristianwiklund/AOC | df5a873287304816f25d91259c6e6c99c7a5f4bf | d9a668c406d2fd1b805d9b6a34cffa237a33c119 | refs/heads/master | 2023-01-12T09:01:11.012081 | 2023-01-02T19:12:29 | 2023-01-02T19:12:29 | 227,458,380 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | #!/usr/bin/python3
from input import input
from input import tokens
import re
import networkx as nx
G = nx.DiGraph()
sum=0
bop = list()
s = input()
t = tokens()
all = set()
for i in tokens():
r = t[i]
for rr in r:
all|=set([s[:m.start()] + rr + s[m.end():] for m in re.finditer(i,s)])
print(all)
p... | [
"githubkristian@snabela.nl"
] | githubkristian@snabela.nl |
2c33637b191d8ee6302ae75517d5f9d6e77a5507 | e81576012330e6a6024d14f3e241f88ca34b73cd | /python_code/vnev/Lib/site-packages/jdcloud_sdk/services/lb/models/RuleUpdateSpec.py | 9ba43193101a4aadface3360c6068ecf34af7892 | [
"MIT"
] | permissive | Ureimu/weather-robot | eba6a84147755aa83c941a306bac1a7c4e95e23e | 7634195af388538a566ccea9f8a8534c5fb0f4b6 | refs/heads/master | 2021-01-15T07:23:42.274413 | 2020-03-23T02:30:19 | 2020-03-23T02:30:19 | 242,912,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"a1090693441@163.com"
] | a1090693441@163.com |
4d94cf24ff576fc55be3eb00a37789602974ea25 | dd429b881f9af6e5228be6a2c457f495d634b0a0 | /boot.py | b7598cbdffd2976498cf42da3ba37f898066b1cf | [] | no_license | betatim/pycon17-no-hands | 37fabe95f747e75f5bbfc4bc42efe065d67321dd | 4eb759c550ae9f87fe83f92bde4889085f95c16c | refs/heads/master | 2021-01-21T17:41:24.972932 | 2017-05-21T19:25:45 | 2017-05-21T19:25:45 | 91,981,921 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | # This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
import gc
#import webrepl
#webrepl.start()
gc.collect()
| [
"betatim@gmail.com"
] | betatim@gmail.com |
3006af9cf571ee712c2d46aad97dbd4b204adacd | aaba31766fa2bd016eff5139b3a2927a3f1b12e7 | /saas/backend/biz/role.py | e718106401bf25966884c798df809fcde026a4e2 | [
"MIT"
] | permissive | Laotanling/bk-iam-saas | 1c15065a78d142ef2ccf522dc460a2bb92569de2 | 70c4306e5800e39461c2b688cb68fd5093c06a62 | refs/heads/master | 2023-07-10T01:21:56.637858 | 2021-08-10T06:37:52 | 2021-08-10T06:37:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,988 | py | # -*- coding: utf-8 -*-
"""
TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-权限中心(BlueKing-IAM) available.
Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with th... | [
"zhu327@gmail.com"
] | zhu327@gmail.com |
8245720eef1c9347d69985242cd7eae1779036c8 | d60fa37053a864b3d2e46c2d1b3d72b899743da9 | /L1Trigger/CSCTrackFinder/test/makeLUTs.py | b54c74bc2c52ef1d6823d70a9e5751909f52549c | [] | no_license | ikrav/cmssw | ba4528655cc67ac8c549d24ec4a004f6d86c8a92 | d94717c9bfaecffb9ae0b401b6f8351e3dc3432d | refs/heads/CMSSW_7_2_X | 2020-04-05T23:37:55.903032 | 2014-08-15T07:56:46 | 2014-08-15T07:56:46 | 22,983,843 | 2 | 1 | null | 2016-12-06T20:56:42 | 2014-08-15T08:43:31 | null | UTF-8 | Python | false | false | 2,247 | py | #!/usr/bin/env pythona
import FWCore.ParameterSet.Config as cms
# process name
##############
process = cms.Process("GeometryTestTwo")
# empty input
#############
process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
process.source = cms.Source("EmptySource")
process.load("FWCore.MessageLogger.Mess... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
bacb3e7d93b437adf5530ba9f6ade2b88df80951 | 108e18fdd640026489824667b9616fbdb013f4be | /natas12.py | 1a829290f8b500dd2a8cc04b9cdab62d7ecf89c7 | [] | no_license | AmmmberQin/natas | 8868b4aab58d6e54c4ed5368574fbb7c8327e48d | 94a4c989d820443d75b49f08fee8a4aa70367b35 | refs/heads/master | 2020-05-15T13:17:37.270016 | 2019-05-06T17:09:07 | 2019-05-06T17:09:07 | 182,294,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | # -*- coding: utf-8 -*-
from base import get_page, post_page
import re
def natas12():
username = "natas12"
password = "EDXp0pS26wLKHZy1rDBPUZk0RKfLGIR3"
with open("natas12.php", "rb") as f:
evil_file = f.read()
data = {"MAX_FILE_SIZE":1000, "filename":"evil.php"}
files = {"uploadedfile... | [
"aries.duanmu@gmail.com"
] | aries.duanmu@gmail.com |
2ad37420e9b83fd56add8a611e9c58a2aebd2b17 | c855bc4640a54630b62fafd89a20967606a8f14e | /tree/binary_tree_maximum_node.py | fd7e801eed8497b3fea72aab27044d25a3d12e0c | [
"MIT"
] | permissive | asethi-ds/Algorithm-Toolbox | 0d8f7e68ebce47810c7dd88df0bb6d911013e1d1 | b6c7b2228d8e70e0842e0bad607533a2c8322cf0 | refs/heads/master | 2021-01-02T15:44:06.833196 | 2019-08-31T11:32:11 | 2019-08-31T11:32:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | class Solution:
"""
Leaf node is handled implicitly.
"""
def maxNode(self, root):
self.avg = -2 ** 30
self.node = root
def traverse(root):
# write your code here
if not root:
return 0, 0
# if not root.left and not root.right:
... | [
"shawlu@github.com"
] | shawlu@github.com |
e8a1e67a7c17d7e4dad646f86cb8ede1089c9be0 | 5c980930dcc7d72b414a22df00ef660a044f951b | /Standard/use_argparse.py | cb47384691e5e2632c1cfb9bd0bd8eb6550e8a24 | [
"MIT"
] | permissive | kyle5358/Python-Code | 72d686fe79504ccb8cc637873c574b9a871cb4f9 | 49d9363608155dc1aef72871bf33df1485747de4 | refs/heads/master | 2023-07-20T02:34:46.499850 | 2020-09-06T07:21:31 | 2020-09-06T07:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | '''argparse --- 命令行选项、参数和子命令解析器
argparse 模块可以让人轻松编写用户友好的命令行接口。
程序定义它需要的参数,然后 argparse 将弄清如何从 sys.argv 解析出那些参数。
argparse 模块还会自动生成帮助和使用手册,并在用户给程序传入无效参数时报出错误信息。
'''
import argparse
parser = argparse.ArgumentParser() # 创建对象
# 添加参数
parser.add_argument("square", help="display a square of a given number",
... | [
"yang3781590@163.com"
] | yang3781590@163.com |
cfb490f4715d119ffd04e0ff9f38f721342d271b | 2a6f6cc148cbccb55c826bf01e0159ef58a733ec | /convert_test.py | 515b65e120f10cd9610a6418aa70542a1d627800 | [] | no_license | QuantumPlumber/CookieBoxMachineLearning | 5e9a4ebf385aa40373d4d5dbc1020b40dc06500f | dfc60bb9b29d519618d59b10f9acae058f368e17 | refs/heads/master | 2022-11-21T20:13:52.507033 | 2019-09-19T02:09:00 | 2019-09-19T02:09:00 | 168,767,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | import importlib
import h5py
import DataHandling as DH
importlib.reload(DH)
DH.transform_2_spectra(filename='../AttoStreakSimulations/TF_training_densespace.hdf5',
transfer='reformed_spectra_densesapce.hdf5')
h5_file = h5py.File('reformed_spectra_densesapce.hdf5', 'r')
print(h5_file.keys())
fo... | [
"44450703+QuantumPlumber@users.noreply.github.com"
] | 44450703+QuantumPlumber@users.noreply.github.com |
2376387ee33bb15446f00178aaf1d566060d10ad | 414393a5048e5212223051d6a5541ecb873bcc53 | /cifar100_VGG16/main_full_G1_20180914.py | 25796e70334811050b95de297160dc5007f42f90 | [] | no_license | byh1321/CIFAR100_Distorted_Channel_Selective | 5a0fc1107ab9d60ce12504a8e474144762eda8df | 897f2dea4e645329dfc3bf3df6b147c783bfa83f | refs/heads/master | 2020-03-21T02:31:24.024771 | 2019-08-12T05:59:53 | 2019-08-12T05:59:53 | 138,002,631 | 0 | 0 | null | 2019-08-02T02:26:49 | 2018-06-20T08:26:51 | Python | UTF-8 | Python | false | false | 19,843 | py | '''
some parts of code are extracted from "https://github.com/kuangliu/pytorch-cifar"
I modified some parts for our experiment
'''
############################################################################################
# example - for thres check : python3 -W ignore prune_quant_auto_half_clean.py --mode 0 --pr 80 ... | [
"byh1321@naver.com"
] | byh1321@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.