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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
659225b6d0ed14ffec7d992922f69f21209fb358 | 1f468bc6edd2619c4fcc213f44fc64db129eaa51 | /tf_agents/bandits/policies/linalg.py | 8d54bd8cbfb1f5f4c655288016339d79ba97f24e | [
"Apache-2.0"
] | permissive | sanket-kamthe/agents | 8ae89da7d581d6d9165ad87ad10d10375e7f4d68 | 5876d78cacaec1cf5994f93ad0aa48f347f7fff0 | refs/heads/master | 2021-06-21T03:09:46.953822 | 2021-02-05T22:19:15 | 2021-02-05T22:19:15 | 181,042,465 | 2 | 0 | Apache-2.0 | 2021-02-05T22:19:16 | 2019-04-12T16:12:06 | Python | UTF-8 | Python | false | false | 7,331 | py | # coding=utf-8
# Copyright 2020 The TF-Agents 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
49de6098f4d8b05a00fbb57f00b1af5d4ea13289 | 3bdff0b728d8754a9a424c5eae79f1bc417d8728 | /pi_db/client/entity/UserEntity.py | 7ccab845eb7258395a5196a071d26e75d43dc305 | [] | no_license | wangshiyu/pi | 92e8ac753f8de878d080a7dd0eecd8aa2a276d18 | e6c42f2c24407e5857bde4ba777ef78e88cb9263 | refs/heads/master | 2023-02-12T12:05:27.525452 | 2021-01-12T13:57:30 | 2021-01-12T13:57:30 | 291,059,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # encoding: utf-8
# !/usr/bin/python3
from sqlalchemy import Column, Integer, String
from pi_db.client.entity.ClientBaseEntity import ClientBaseEntity
from sqlalchemy.ext.declarative import declarative_base
DeclarativeBase = declarative_base()
"""
UserEntity对象
用户表
"""
class UserEntity(DeclarativeBase, ClientBaseEnti... | [
"wsywsywsy541@qq.com"
] | wsywsywsy541@qq.com |
9227a7b8cf65dae2dea286079ee8966be6e1d118 | c6abe311e9bc57fbe2454983c30bdd46e1feaf0d | /python/8-practiceProblemI.py | 9c2bce2f10885c7434ac9e8dbce3714c04cb5138 | [] | no_license | muon012/practiceProblems | 5966241d0af6c396bc52b2adac6d180e734a322d | 8dde7810212ed79745ab06320c5d96ce179db1bd | refs/heads/master | 2020-04-02T15:43:45.496026 | 2019-07-10T18:55:45 | 2019-07-10T18:55:45 | 154,581,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | # Hackerrank Challenge
if __name__ == '__main__':
# py_students = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2], ['Akriti', 41], ['Harsh', 39]]
py_students = []
print("For this program, you will enter the name of the student followed by its grade. All values are separated by"
" commas. The program will outp... | [
"eduardessc0@hotmail.com"
] | eduardessc0@hotmail.com |
c3e6459704cdacd14fbef32550033a2c7b5cdc7c | 0e5291f09c5117504447cc8df683ca1506b70560 | /test/test_ip_address_interface.py | 0743121b18b16fb3ace5cfe5aad58f0e6bd725fc | [
"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 | 879 | 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.ip_address_interface import I... | [
"67791576+underline-bot@users.noreply.github.com"
] | 67791576+underline-bot@users.noreply.github.com |
8bfdf81e80831a58f4e585c3016eb416e2c55ff4 | 71ac98ddc5a58a033631683757b5a7509f5dfc5f | /0x05-python-exceptions/3-safe_print_division.py | a1183b7378a83d70ab8cfc7619d3a5136fd69857 | [] | no_license | Virteip/holbertonschool-higher_level_programming | 8193a22eb0de4b800ec2408207735f242dfda6f5 | 616948631871acbd8a5b6887f79ee1801f3b5516 | refs/heads/master | 2020-09-29T01:17:15.120539 | 2020-05-15T02:25:22 | 2020-05-15T02:25:22 | 226,911,855 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #!/usr/bin/python3
def safe_print_division(a, b):
try:
r = a / b
except:
r = None
finally:
print("Inside result: {0}".format(r))
return r
| [
"sergiopietri@gmail.com"
] | sergiopietri@gmail.com |
339357bd4950057f0ff663546f4b6a87a621cca9 | e21c70d5b03633b4e0a89dfccb0cb8ccd88612d0 | /venv/lib/python3.5/site-packages/engineio/socket.py | 65cff1c7b929b32fb0d80ee35a24b800f90379bd | [
"MIT"
] | permissive | LavanyaRamkumar/Networking-app_Dynamic-Quiz | 4d5540088b1e2724626dda8df0fd83442391b40f | 4de8329845712864d3cc8e8b81cfce5a1207224d | refs/heads/master | 2023-02-09T12:08:19.913354 | 2019-10-26T04:23:54 | 2019-10-26T04:23:54 | 173,337,916 | 1 | 1 | MIT | 2023-02-02T04:48:55 | 2019-03-01T16:56:13 | Python | UTF-8 | Python | false | false | 9,102 | py | import six
import sys
import time
from . import exceptions
from . import packet
from . import payload
class Socket(object):
"""An Engine.IO socket."""
upgrade_protocols = ['websocket']
def __init__(self, server, sid):
self.server = server
self.sid = sid
self.queue = self.create_q... | [
"lavanya.ramkumar99@gmail.com"
] | lavanya.ramkumar99@gmail.com |
4613d4637b8e5446f2b84a1ba6f4097ec0a3d330 | f8666599b83d34c861651861cc7db5b3c434fc87 | /plotly/validators/scatter3d/error_y/__init__.py | a9450d059bf50c8b989357d05ae9e897fc206983 | [
"MIT"
] | permissive | mode/plotly.py | 8b66806e88c9f1820d478bab726f0bea81884432 | c5a9ac386a40df2816e6c13264dadf14299401e4 | refs/heads/master | 2022-08-26T00:07:35.376636 | 2018-09-26T19:08:54 | 2018-09-26T19:19:31 | 60,372,968 | 1 | 1 | MIT | 2019-11-13T23:03:22 | 2016-06-03T19:34:55 | Python | UTF-8 | Python | false | false | 618 | py | from ._width import WidthValidator
from ._visible import VisibleValidator
from ._valueminus import ValueminusValidator
from ._value import ValueValidator
from ._type import TypeValidator
from ._tracerefminus import TracerefminusValidator
from ._traceref import TracerefValidator
from ._thickness import ThicknessValidato... | [
"adam.kulidjian@gmail.com"
] | adam.kulidjian@gmail.com |
5956a7e2faaa079368dd7896181b368f16ece831 | 1079e654ce950f50bc4ed27c0974f78589428573 | /tests/__init__.py | 23ad5cb638accd087a54d8728cf2d5068b0f93ee | [] | no_license | uranusjr/python-web-stack | d2aaa64a4ba6e5d447db1444ab08813e507961e1 | 971c0190f28abfbd8c577e2b149e2d1a604d3f13 | refs/heads/master | 2020-04-27T11:17:21.922742 | 2013-11-20T10:40:16 | 2013-11-20T10:40:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | #!/usr/bin/env python
# -*- coding: utf-8
import os.path
import shutil
import tempfile
from nose.plugins.skip import SkipTest
from pywebstack import utils
__all__ = [
'ALL_FORMULAE_NAMES', 'PROJECT_NAME', 'TEMP_DIR',
'MockedArguments',
'skipped', 'create_tempdir', 'cleanup_tempdir'
]
ALL_FORMULAE_NAMES... | [
"uranusjr@gmail.com"
] | uranusjr@gmail.com |
c2ec06b06c3e618131391854042d37d0ab13a261 | 426aed70aa6925105f10c7fcb7b611b277bf8b84 | /benchmarks/benchmarks/model_acc/bench_sage_ns.py | 6f99d94ad32d6ce29bf95b128eed28951ecb9b7f | [
"Apache-2.0"
] | permissive | hengruizhang98/dgl | 0ce7201ca7380482440f031cb8ced6ca0e8c8dc1 | 195f99362d883f8b6d131b70a7868a537e55b786 | refs/heads/master | 2023-06-10T22:21:45.835646 | 2021-04-13T12:29:43 | 2021-04-13T12:29:43 | 336,804,001 | 3 | 0 | Apache-2.0 | 2021-02-07T14:16:20 | 2021-02-07T14:16:20 | null | UTF-8 | Python | false | false | 7,162 | py | import dgl
import torch as th
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import torch.multiprocessing as mp
from torch.utils.data import DataLoader
import dgl.nn.pytorch as dglnn
import time
from .. import utils
class SAGE(nn.Module):
def __init__(self,
in_... | [
"noreply@github.com"
] | hengruizhang98.noreply@github.com |
daba2bcf498cc73ac6ef73cd4a09cb9bed329969 | 53edf6b0f4262ee76bb4e3b943394cfeafe54865 | /linear_theory/Non_linear_stuff/plot_nonlinear_from_data.py | 97e9a4d14b244d725d021a167e009d6a2dcf67e6 | [] | no_license | Yoshi2112/hybrid | f86265a2d35cb0a402ba6ab5f718717d8eeb740c | 85f3051be9368bced41af7d73b4ede9c3e15ff16 | refs/heads/master | 2023-07-07T21:47:59.791167 | 2023-06-27T23:09:23 | 2023-06-27T23:09:23 | 82,878,960 | 0 | 1 | null | 2020-04-16T18:03:59 | 2017-02-23T03:14:49 | Python | UTF-8 | Python | false | false | 37,835 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jan 2 22:05:39 2022
@author: Yoshi
"""
import os, sys, warnings, pdb, emd
sys.path.append('../../')
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.colors as colors
import matplotlib.dates as mdates
import matplotlib as mpl
import matplot... | [
"joshua.s.williams@uon.edu.au"
] | joshua.s.williams@uon.edu.au |
b4c4fc2a2bbd87a9e3d856bcc2e74c883eb189d1 | 066ee4df594a5dc90335d271b9d5a1b1e2a4d34c | /y/google-cloud-sdk/platform/google_appengine/google/appengine/ext/cloudstorage/cloudstorage_stub.py | 069b7b65ad138552819b75d0ada18b1defcf0999 | [
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-3-Clause",
"MIT",
"GPL-2.0-or-later",
"MPL-1.1",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ychen820/microblog | a2d82447525325ec58285c2e5db58b79cceaca1b | d379afa2db3582d5c3be652165f0e9e2e0c154c6 | refs/heads/master | 2021-01-20T05:58:48.424357 | 2015-04-28T22:03:09 | 2015-04-28T22:03:09 | 32,948,331 | 0 | 2 | BSD-3-Clause | 2020-07-25T05:04:35 | 2015-03-26T19:45:07 | Python | UTF-8 | Python | false | false | 18,503 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"ychen207@binghamton.edu"
] | ychen207@binghamton.edu |
4e4ab4639104f571fb8a3fb079a9036e4b226ebf | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_59/321.py | 0a9767e0766e4ba935813b4c36b5d417c281ff86 | [] | 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 | 819 | py | f = open("A-large.in")
T = int(f.readline())
out = open("A-large.out", "w")
for i in range(T):
N, M = [int(x) for x in f.readline().split()]
dirs = []
for j in range(N):
dirs.append(f.readline()[1:].strip())
ndirs = []
for j in range(M):
ndirs.append(f.readline()[1:].st... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
5e61a1ac0bdda6850396f1dde2ef6f5ad1ae89a0 | d125c002a6447c3f14022b786b07712a7f5b4974 | /tests/bugs/core_5647_test.py | 6270292da43b931230fb13d42925508c89a4e987 | [
"MIT"
] | permissive | FirebirdSQL/firebird-qa | 89d5b0035071f9f69d1c869997afff60c005fca9 | cae18186f8c31511a7f68248b20f03be2f0b97c6 | refs/heads/master | 2023-08-03T02:14:36.302876 | 2023-07-31T23:02:56 | 2023-07-31T23:02:56 | 295,681,819 | 3 | 2 | MIT | 2023-06-16T10:05:55 | 2020-09-15T09:41:22 | Python | UTF-8 | Python | false | false | 1,390 | py | #coding:utf-8
"""
ID: issue-5913
ISSUE: 5913
TITLE: Increase number of formats/versions of views from 255 to 32K
DESCRIPTION:
JIRA: CORE-5647
FBTEST: bugs.core_5647
"""
import pytest
from firebird.qa import *
db = db_factory()
test_script = """
set bail on;
set list on;
... | [
"pcisar@ibphoenix.cz"
] | pcisar@ibphoenix.cz |
a59632cf8ae532ffe1310f5a4589020417954045 | e2f68f7f2b96af92d0d56ef9aa3119e7909cd992 | /dataplicity/m2m/remoteprocess.py | 96322c408309ccf7a475c5dba744ded0b077d147 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | anuradhawick/dataplicity-agent | c89edd563103aa251f858d38aeba8ed6c605481c | 9d4c234f0d7b24aa144a079f54883d38eb8b9f40 | refs/heads/master | 2022-04-09T18:16:18.590182 | 2020-03-26T12:10:44 | 2020-03-26T12:10:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,356 | py | """Manage a subprocess that streams to a remote side"""
from __future__ import unicode_literals
from __future__ import print_function
import json
import logging
import os
import signal
import shlex
from . import proxy
log = logging.getLogger("m2m")
class RemoteProcess(proxy.Interceptor):
"""Process managed re... | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
96cb59c86f3f04d1a645ab6dbe5dec9566815298 | f693c9c487d31a677f009afcdf922b4e7f7d1af0 | /biomixer-venv/lib/python3.9/site-packages/pylint/config/configuration_mixin.py | 2b8402b1de70ad6af27d329a9b8a26da1ae427c9 | [
"MIT"
] | permissive | Shellowb/BioMixer | 9048b6c07fa30b83c87402284f0cebd11a58e772 | 1939261589fe8d6584a942a99f0308e898a28c1c | refs/heads/master | 2022-10-05T08:16:11.236866 | 2021-06-29T17:20:45 | 2021-06-29T17:20:45 | 164,722,008 | 1 | 3 | MIT | 2022-09-30T20:23:34 | 2019-01-08T19:52:12 | Python | UTF-8 | Python | false | false | 1,105 | py | # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/LICENSE
from pylint.config.option_manager_mixin import OptionsManagerMixIn
from pylint.config.options_provider_mixin import OptionsProviderMixIn
class ConfigurationMixIn(Options... | [
"marcelo.becerra@ug.uchile.cl"
] | marcelo.becerra@ug.uchile.cl |
42ff135cd3c609889f324bcda93251136a3573db | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/421/usersdata/309/85689/submittedfiles/tomadas.py | e849c70f0e33e8eac82fa6a18c34f43c973659d4 | [] | 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 | 560 | py | # -*- coding: utf-8 -*-
import math
#COMECE SEU CODIGO AQUI
soma =1
for i in range(1,5,1) :
while (True):
t=int(input("Digite o valor de tomadas da régua %d, por gentileza:" %i))
if (t>0):
break
soma=soma+t
print ("%d"%soma)
#t2=in... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
bc624e51be65ae34c43f9fe58871a1a0b9359c12 | a66460a46611483dfbdc94c7996893f427e60d97 | /ansible/my_env/lib/python2.7/site-packages/ansible/modules/network/f5/bigip_pool_member.py | b2225b411eb0334eb3d8273b4c28adc1a05c030a | [
"GPL-3.0-only",
"MIT"
] | permissive | otus-devops-2019-02/yyashkin_infra | 06b57807dde26f94f501828c07503d6bf1d70816 | 0cd0c003884155ac922e3e301305ac202de7028c | refs/heads/master | 2020-04-29T02:42:22.056724 | 2019-05-15T16:24:35 | 2019-05-15T16:24:35 | 175,780,718 | 0 | 0 | MIT | 2019-05-15T16:24:36 | 2019-03-15T08:37:35 | HCL | UTF-8 | Python | false | false | 26,646 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017 F5 Networks Inc.
# Copyright (c) 2013 Matt Hite <mhite@hotmail.com>
# GNU General Public License v3.0 (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBL... | [
"theyashkins@gmail.com"
] | theyashkins@gmail.com |
bb6dc98e989399e948ba525a6d333964b95d3386 | df4fd380b3e1720a970573c4692eb0a32faf8f47 | /sort/insert_sort.py | 81debeb0a668d5850d4dd0f8ba1ff0eeeb77b87e | [] | no_license | Taeheon-Lee/Algorithm | 99dd21e1e0ddba31190a16d6c9646a9f393f4c4b | 64ebacf24dfdf25194b5bce39f4ce43c4bc87141 | refs/heads/master | 2023-07-10T20:26:10.121214 | 2021-08-07T17:26:26 | 2021-08-07T17:26:26 | 383,803,983 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,307 | py | "Insert Sort 삽입 정렬"
# 아직 정렬되지 않은 임의의 데이터를 이미 정렬된 부분의 적절한 위치에 삽입해 가며 정렬하는 방식
# 선택된 키값을 앞쪽 데이터들의 키값과 비교하며 자신의 위치를 찾아 삽입하여 정렬
# 최선의 경우, n-1번 비교하면 정렬이 완료
# 최악의 경우, 모든 단계에서 앞에 놓인 데이터들을 전부 이동 "n(n-1)/2 번 수행"
# 시간 복잡도는 최선의 경우 O(n), 최악의 경우 O(n²)
def insert_sort(lst):
"삽입 정렬 함수"
length = len(lst) ... | [
"taeheon714@gmail.com"
] | taeheon714@gmail.com |
a0cc6c8dfeb588a79e84e11ed632982a28f48784 | a7122df9b74c12a5ef23af3cd38550e03a23461d | /Elementary/Three Words.py | ae2e7c11af4f31ee48707685af3bc478b686b7e3 | [] | no_license | CompetitiveCode/py.checkIO.org | c41f6901c576c614c4c77ad5c4162448828c3902 | e34648dcec54364a7006e4d78313e9a6ec6c498b | refs/heads/master | 2022-01-09T05:48:02.493606 | 2019-05-27T20:29:24 | 2019-05-27T20:29:24 | 168,180,493 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | #Answer to Three Words - https://py.checkio.org/en/mission/three-words/
def checkio(words: str) -> bool:
word_list = words.split()
three = 0
for i in word_list:
if i.isalpha():
three += 1
else:
three = 0
if three == 3:
return True
return False... | [
"admin@remedcu.com"
] | admin@remedcu.com |
5d0e2596df37927c85962b5901035adae9d5f07f | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-1069.py | 0eb2deca32b6d008f79111e9b825723d65fb45f8 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,001 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
d90029074a8b3cb21014a71c04d262ed15bdd2a4 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_Class2105.py | 46f966d0a752418c6145076ba857b2bce1e11250 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,100 | py | # qubit number=4
# total number=36
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2
import numpy as np
import networkx as nx
def bitwise_... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
2e87fd0b48a421b52fc6a50780c58fc1488e04e6 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_angles1.py | 96616c02397b22202a79759ec0c9b16dd6cb2395 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from xcp2k.inputsection import InputSection
class _angles1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Default_keyword = []
self._name = "ANGLES"
self._repeated_default_keywords = {'Default_keyword': 'DEFAULT_KEYWORD'}
self._attributes = ['Default_ke... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1ff557c19d6ccf18f76ca6ae2e5858460cee6803 | 1811d37ed6474ab7eaeafff3c82d3bb7c0466e3d | /parts/zodiac/pyramid/scripting.py | f54f87f456200dc87c12bc8cacc3288eee7809a2 | [] | no_license | bernatcortina/zodiac | ed384fe96f6739d841a3a777d10bad4b33fd0e78 | aa0ecb2c386fc5b54ff60ba94e0a1bc5a7493f17 | refs/heads/master | 2021-01-18T14:02:44.978553 | 2014-02-07T17:33:27 | 2014-02-07T17:33:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | /Users/Bernat/GitHub/zodiac/eggs/pyramid-1.4-py2.7.egg/pyramid/scripting.py | [
"bernatcortina@gmail.com"
] | bernatcortina@gmail.com |
3c22e9c21b6f644c8bbd5ffc9b800d480868215d | 07ec5a0b3ba5e70a9e0fb65172ea6b13ef4115b8 | /lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/contrib/appengine.py | d71d9e21e57c5fa6a6e12c71e7f2d39ec15bdbf1 | [] | no_license | cronos91/ML-exercise | 39c5cd7f94bb90c57450f9a85d40c2f014900ea4 | 3b7afeeb6a7c87384049a9b87cac1fe4c294e415 | refs/heads/master | 2021-05-09T22:02:55.131977 | 2017-12-14T13:50:44 | 2017-12-14T13:50:44 | 118,736,043 | 0 | 0 | null | 2018-01-24T08:30:23 | 2018-01-24T08:30:22 | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:35d37fc4e8032cc69d50f7bf74ddf075a9ff0c7f7e7f154da8582ad7db5ba90b
size 7937
| [
"seokinj@jangseog-in-ui-MacBook-Pro.local"
] | seokinj@jangseog-in-ui-MacBook-Pro.local |
a2ca84aef2b9b69a884aa9a30a8f8b1264c9c8f1 | c2e3f66a7c26be1b12a48a464c0db0f170826433 | /WDI/lekcja 5 04.11.2020/zad20.py | 2c4959a63829e8937d95dc7a62da9da9a7a0b7d5 | [] | no_license | HITOfficial/College | 7b801b4eb93afc0b1b6a2b6f405db4161d8976d7 | 84eae6182397a9ad373718a077939461eb189fbb | refs/heads/main | 2023-08-01T01:50:07.875292 | 2021-09-20T11:21:43 | 2021-09-20T11:21:43 | 303,842,865 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | # Dana jest tablica T[N][N] (reprezentująca szachownicę) wypełniona liczbami naturalnymi.
# Proszę napisać funkcję która ustawia na szachownicy dwie wieże, tak aby suma liczb na „szachowanych”
# przez wieże polach była największa. Do funkcji należy przekazać tablicę, funkcja powinna zwrócić położenie
# wież. Uwaga- ... | [
"noreply@github.com"
] | HITOfficial.noreply@github.com |
ae84f2f4ef44978d98a6a363f6caa06b298960c2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03227/s957546769.py | 48b0de137f448123c6d2f66af5501853e90c21d3 | [] | 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 | 301 | py | # -*- coding: utf-8 -*-
"""
A - Measure
https://atcoder.jp/contests/tenka1-2018-beginner/tasks/tenka1_2018_a
"""
import sys
def solve(S):
return S if len(S) == 2 else S[::-1]
def main(args):
S = input()
ans = solve(S)
print(ans)
if __name__ == '__main__':
main(sys.argv[1:]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a2749475eac129473aaa17068f2336ac1eb515ee | 7b1edb732ca1159e428ecc4c2c1f5148f2ff03f0 | /0x04-python-more_data_structures/9-multiply_by_2.py | 43677229d843a9d8a1c7e025bbc2b610e5ef9fc6 | [] | no_license | maroua199525/holbertonschool-higher_level_programming | 0045b1a31438f79e0da96b97e0a4d6eee46217c8 | 1df7014614ffb4b3fb2693a9711603d939b5dc35 | refs/heads/master | 2023-08-02T04:57:16.217728 | 2021-09-22T15:59:14 | 2021-09-22T15:59:14 | 361,716,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/python3
def multiply_by_2(a_dictionary):
dictionary = a_dictionary.copy()
value = list(map(lambda x: x * 2, dictionary.values()))
key = dictionary.keys()
for i, v in zip(key, value):
dictionary[i] = v
return (dictionary)
| [
"2646@holbertonschool.com"
] | 2646@holbertonschool.com |
3cfa936ed48c53fcf3e5d2235f299be8bce0cf99 | eda632b4d9f5a643bd4d086eef0860249bfbd64d | /8장/models.py | e639604d3c3ab0283ce33aa288d4887d8345c232 | [] | no_license | sohn0356-git/python_web | 508e9bc7167893426d216c067f7eb634f71c4e65 | f9b8d46df6be4b85b06daf491c3bda6a83117467 | refs/heads/master | 2021-01-13T17:59:48.799620 | 2020-03-12T00:26:14 | 2020-03-12T00:26:14 | 242,445,531 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Fcuser(db.Model):
__tablename__ = 'fcuser'
id = db.Column(db.Integer, primary_key = True)
password = db.Column(db.String(64))
userid = db.Column(db.String(32))
username = db.Column(db.String(8)) | [
"sohn0356@gmail.com"
] | sohn0356@gmail.com |
3ff4e2e9c9b07471979ab4bb2934b128bc6109b7 | ba694353a3cb1cfd02a6773b40f693386d0dba39 | /sdk/python/pulumi_google_native/healthcare/v1beta1/get_dataset.py | d56e29284fb73b5d51cfe90e671e86f999afa748 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-google-native | cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b | 124d255e5b7f5440d1ef63c9a71e4cc1d661cd10 | refs/heads/master | 2023-08-25T00:18:00.300230 | 2023-07-20T04:25:48 | 2023-07-20T04:25:48 | 323,680,373 | 69 | 16 | Apache-2.0 | 2023-09-13T00:28:04 | 2020-12-22T16:39:01 | Python | UTF-8 | Python | false | false | 3,030 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _u... | [
"noreply@github.com"
] | pulumi.noreply@github.com |
7fa89e0e08735ef2d3f91806030c4918a84d5aad | d2ca1ab6ed63983d1bd6497f26a63f0445451844 | /2015/04/fc_2015_04_08.py | 871c3052fbcb6c6fd633cdaac920497c029bd5d2 | [
"MIT"
] | permissive | mfwarren/FreeCoding | 96636367f4f4a53351535372c5691d7805199f23 | 58ac87f35ad2004a3514782556762ee0ed72c39a | refs/heads/master | 2021-01-19T14:30:09.057354 | 2015-07-05T05:59:53 | 2015-07-05T05:59:53 | 24,469,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | #!/usr/bin/env python3
# imports go here
import datetime
from collections import defaultdict
from github import Github
import os
import plotly.plotly as py
from plotly.graph_objs import Data, Layout, Figure, Bar
#
# Free Coding session for 2015-04-08
# Written by Matt Warren
#
hub = Github(os.environ['GITHUB_USERN... | [
"matt.warren@gmail.com"
] | matt.warren@gmail.com |
9c332035934bf11c99d4e9c9ec7262069f653b2c | d6952f048727add5b54a521d04f6c9b5889bcd35 | /test/test_dag_folder_input_alias.py | 768d7f33bd3474d3cc5bf000ee28744202ea245f | [] | no_license | TfedUD/python-sdk | bf719644041c2ab7b741af9c7fb8e5acfe085922 | 7ddc34611de44d2f9c5b217cf9b9e7cec27b2a27 | refs/heads/master | 2023-08-10T21:13:45.270193 | 2021-06-21T14:48:36 | 2021-06-21T14:51:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,866 | py | # coding: utf-8
"""
pollination-server
Pollination Server OpenAPI Definition # noqa: E501
The version of the OpenAPI document: 0.13.0
Contact: info@pollination.cloud
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import datetime
import... | [
"antoinedao1@gmail.com"
] | antoinedao1@gmail.com |
202e3ec820a2bfc5f5dd2de6968bf8fdae7afcd9 | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/surface/endpoints/quota/update_test.py | 9b8a0dd8fffe1836395bc164e16e520aba4c729b | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 3,206 | py | # -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"code@bootstraponline.com"
] | code@bootstraponline.com |
f558ac962c214ea3311588dbcddd5abf0f98c210 | c057d05c60521096897f120c598b3ebcddb07c21 | /swagger_client/api/electioneering_api.py | 461c011d07124b4f94f5e5ba74532538c7e43540 | [] | no_license | ottomata/fec_python | 97e9ae13b37dc0e26421f7d3c682fcfb1753db4f | 70a50c0c1c90dd553a81f7b450b037646dfe4cb3 | refs/heads/master | 2022-09-27T03:22:57.054350 | 2020-06-05T16:48:59 | 2020-06-05T16:48:59 | 269,473,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44,948 | py | # coding: utf-8
"""
OpenFEC
This API allows you to explore the way candidates and committees fund their campaigns. The FEC API is a RESTful web service supporting full-text and field-specific searches on FEC data. [Bulk downloads](https://www.fec.gov/data/advanced/?tab=bulk-data) are available on the curre... | [
"acotto@gmail.com"
] | acotto@gmail.com |
f7ddb88ee40975c1f6cf4d7261152d33c5be59d8 | 43f2a863243fbb93883d10207662a626a7da5b54 | /scripts/interp_sea_level_ICESat2_ATL07.py | f73900beec9d1bdce44f7fe9ddbae6a26c87436c | [
"MIT",
"CC-BY-4.0"
] | permissive | mrsiegfried/read-ICESat-2 | cdc6f0d0963140c968e602c4b8b36c4b80e82116 | 1406b92691d284616ca6c9d72646eca4592d1f1d | refs/heads/main | 2023-06-13T21:49:46.089847 | 2021-06-15T00:11:37 | 2021-06-15T00:11:37 | 382,966,888 | 0 | 0 | MIT | 2021-07-04T23:24:17 | 2021-07-04T23:24:17 | null | UTF-8 | Python | false | false | 34,396 | py | #!/usr/bin/env python
u"""
interp_sea_level_ICESat2_ATL07.py
Written by Tyler Sutterley (05/2021)
Interpolates sea level anomalies (sla), absolute dynamic topography (adt) and
mean dynamic topography (mdt) to times and locations of ICESat-2 ATL07 data
https://www.aviso.altimetry.fr/en/data/products/sea-surface-hei... | [
"tsutterl@uw.edu"
] | tsutterl@uw.edu |
612241aac8a50b5bd7b171fbe0a2fc7176d5547b | 04b494a2286e7d0ec3bbe8d25c15d575486a0f91 | /_exercises/exercise101/exercise101.py | f564c92b008b53d9142ca0ef0f10178c6cdd171b | [] | no_license | ViniciusGranado/_studies_Python | ea6adc35edccfbd81a67a613e8cd468fd8485856 | af645fa777a408a8ff1b8ed89911971f5b537ac7 | refs/heads/master | 2023-02-01T19:57:04.117047 | 2020-12-19T00:56:10 | 2020-12-19T00:56:10 | 258,855,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # Functions
def vote(birth_year):
"""
:param birth_year: int. The users birth year.
:return: A string containing the age and wheter
the vote is NOT ALLOWED, OPTIONAL or
MANDATORY.
"""
from datetime import date
age = date.today().year - birth_year
return_str = f'C... | [
"vinicius.r.granado@gmail.com"
] | vinicius.r.granado@gmail.com |
cf90720c6752ac6cb6cac711bf8eec906f46ce2a | 4b07658528a035c558a6757c31f7f864b781e8e9 | /fluent/example-code/03-dict-set/support/container_perftest.py | e9fc80a4f38964d236c5231e778a8c22f743ac94 | [
"MIT"
] | permissive | ghjan/fluent-python | eae307c53d0382b91f2dd71f4ab1126f93d961c7 | 68e27072f43701710fc1f2e0ed69f3c558bc579b | refs/heads/master | 2020-03-24T07:55:02.293996 | 2018-07-29T14:08:24 | 2018-07-29T14:08:24 | 142,570,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,120 | py | """
Container ``in`` operator performance test
"""
import sys
import timeit
SETUP = '''
import array
selected = array.array('d')
with open('selected.arr', 'rb') as fp:
selected.fromfile(fp, {size})
if {container_type} is dict:
haystack = dict.fromkeys(selected, 1)
else:
haystack = {container_... | [
"cajan2@163.com"
] | cajan2@163.com |
4748a443a829edd552558787816d88e5b52a9f9d | 9047aec2400933376e71fdc24d087d2ad35b4d45 | /minSteps_1347.py | 770c0d81af89a4f15a52f640b29b27fbd6c500d8 | [] | no_license | sasankyadavalli/leetcode | a8c3a4b63970cfa67a8bbec5d1fb7cca818f7ea9 | 555931bc5a74e0031726070be90c945da9cb3251 | refs/heads/master | 2021-02-07T12:12:06.938562 | 2020-07-28T18:25:10 | 2020-07-28T18:25:10 | 244,024,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | class Solution:
def minSteps(self, s: str, t: str) -> int:
d1 = {}
steps = 0
for ele in s:
if ele in d1.keys():
d1[ele] +=1
else:
d1[ele] = 1
for i in t:
if i in d1 and d1[i] > 0:
d1[i] -= 1
... | [
"yadavallisasank@gmail.com"
] | yadavallisasank@gmail.com |
8befc2b3af60d0d72bfc6445f068647e539b68e2 | 826ded51e15bf5c4e1f3a202b8f58764e56ee742 | /virtual/bin/confusable_homoglyphs | 1abf67144eb83ea41671d5a3125599be22e887ee | [] | no_license | LeoAmby/webly | 0473766476ec93f0bdb0ed09512c9045cc6948d2 | 85cf765c654324f5aea27562c3a2b90e665a88b3 | refs/heads/master | 2022-11-30T21:17:49.065335 | 2019-10-31T11:28:45 | 2019-10-31T11:28:45 | 216,031,732 | 0 | 0 | null | 2022-11-22T04:35:55 | 2019-10-18T13:35:48 | Python | UTF-8 | Python | false | false | 303 | #!/home/moringa/Documents/MoringaSchool-Projects/Core-Projects/Django/webly/virtual/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from confusable_homoglyphs.cli import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"leoamby@gmail.com"
] | leoamby@gmail.com | |
ad6cfbbb49e897d10a9a2e9d3b5c73a7dd860b8d | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.4/tests/regressiontests/context_processors/urls.py | 00733253b4a73fce10bdfbc64b1b05f237247246 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/tests/regressiontests/context_processors/urls.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
384a851a30913f3137316f99735cf23dd303b3f8 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc055/B/4903050.py | 7731624b54ba064fa0b812064ee63aa67d499a16 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | N = int(input())
ans = 1
for i in range(1,N+1):
a = i % (10 ** 9 + 7)
ans *= a
ans = ans % (10 ** 9 + 7)
print(ans) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
63b0012fef513a4036e954d58f9db81a958f3b1f | 31ab401afc2c99d85765bec73204e4009a80993d | /비밀지도.py | 987f993508357810019aadf595e373fa247d045a | [] | no_license | rheehot/Algorithm-coding_test | bdd700acda13ddbef2aa9c8c77d010b440c82964 | 3aca4ae1d60130515f7b9a0f85ef0625faf3c298 | refs/heads/master | 2023-02-20T01:21:20.015565 | 2021-01-24T03:47:45 | 2021-01-24T03:47:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | # 나의 풀이
def solution(d, budget):
cnt = 0
num = 0
if sum(d) > budget:
d = sorted(d)
for i in d:
num += i
cnt += 1
if num > int(budget):
cnt -= 1
break
return cnt
else:
return len(d)
# 다른 사람의 풀이
def soluti... | [
"soohyun527@gmail.com"
] | soohyun527@gmail.com |
c2c65dbf9cb33392837f4936001f292cac812aa8 | 09c00563e44d0e4b62449f1648ba1c595a4fa455 | /Python_File_IO_Pty_Fork.py | 0743c2633d406ecd6af9216f4e7743dbfc60fddf | [] | no_license | VakinduPhilliam/Python_File_IO | 20da71688384fe145873ae5ade064b37be6c67d6 | 016d7d6d5315def35d82354e9d46a627afa2f271 | refs/heads/master | 2020-05-27T17:54:15.751253 | 2019-05-26T21:31:10 | 2019-05-26T21:31:10 | 188,731,817 | 5 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 1,685 | py | # Python File IO
# pty — Pseudo-terminal utilities.
# The pty module defines operations for handling the pseudo-terminal concept: starting another process and being able
# to write to and read from its controlling terminal programmatically.
# pty.fork()
# Fork. Connect the child’s controlling terminal to a pseudo... | [
"noreply@github.com"
] | VakinduPhilliam.noreply@github.com |
ad214cee844e8e823915ece27cc7713e3373e328 | 5a07828016e8bafbea5dac8f83c8bfd5d0bfd603 | /py_93w93/140318_eiz.py | 44744b47e9e56314ce840f16e1483c47051102c8 | [] | no_license | JJHopkins/rajter_compare | db5b88d2c6c1efc0fead9b6ed40fb3cce36bedb4 | 2ba52f4f16cf2aca350a82ea58d0aa8f8866c47c | refs/heads/master | 2020-06-04T23:53:57.089329 | 2014-04-08T18:02:30 | 2014-04-08T18:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,210 | py | #!/usr/bin/python
import matplotlib
#import pyreport
import numpy as np
from pylab import *
#from pylab import show
from matplotlib import pyplot as pl
x_x,y_x_unsc = np.loadtxt('data/CNT9_3_xe2_solid_30.txt',unpack=True, usecols = [0,1])
x_z,y_z_unsc = np.loadtxt('data/CNT9_3_ze2_soli... | [
"hopkins.jaime@gmail.com"
] | hopkins.jaime@gmail.com |
14476f6a4599c9269c4a8e5b073ec545726b44d2 | 2635edb96afa8117d4584a470061e447b79adc6e | /life/models.py | 37074983630a300a534a3e96598353345abd2c40 | [] | no_license | Mark-Seaman/Sensei-2018 | 673609731ecb5ebb782dab94b2cf3d7c22940424 | 06b02892cfe1bf1d25cb4224e86eb693c82b0f29 | refs/heads/master | 2022-02-18T19:14:10.343093 | 2022-01-15T20:06:21 | 2022-01-15T20:06:21 | 158,728,468 | 0 | 0 | null | 2022-01-16T21:06:09 | 2018-11-22T16:51:55 | HTML | UTF-8 | Python | false | false | 1,045 | py | from __future__ import unicode_literals
from django.db import models
class Year(models.Model):
age = models.IntegerField()
contribute = models.TextField()
relate = models.TextField()
learn = models.TextField()
enjoy = models.TextField()
def __unicode__(self):
return str(self.age)
c... | [
"Mark.Seaman@imac.net"
] | Mark.Seaman@imac.net |
b1adf4597ffc1d7b98b6e5894e2b69610f88ec25 | de33091037128fe3feb5a6dad28be5b72aed86a0 | /g4g/Amazon/Easy/greater-on-right-side.py | ec15ed83e0616ea9bf406e0ca8fc1d1f4914e3e2 | [] | no_license | khannasarthak/codingPrep | 78fbf089c6f095f7ec8a5f5d9998593aea2942fe | 2b638ab284bf9fefa2259fd7aa4ca3905438b7ab | refs/heads/master | 2021-01-12T02:58:04.236524 | 2018-11-07T06:03:37 | 2018-11-07T06:03:37 | 78,140,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # USING MAX
t = int(input())
for p in (range(t)):
n = int(input())
a = list(map(int,input().split()))
op = []
for i in range(len(a)-1):
op.append(max(a[i+1:]))
op.append(-1)
print (*op)
# SECOND SOLUTION WITHOUT MAX
t = int(input())
for p in (range(t)):
n = int(input())
a = list(map(int,input().split()))
... | [
"khannasarthak.1994@gmail.com"
] | khannasarthak.1994@gmail.com |
dfb5a65a4ca0886e97fb23f03b987514cc0edc0f | 4b68243d9db908945ee500174a8a12be27d150f9 | /pogoprotos/enums/variable_name_pb2.py | cd222f47297fec06b2cc4a740ef6ca9f93b9e07f | [] | no_license | ykram/pogoprotos-py | 7285c86498f57dcbbec8e6c947597e82b2518d80 | a045b0140740625d9a19ded53ece385a16c4ad4a | refs/heads/master | 2020-04-20T10:19:51.628964 | 2019-02-02T02:58:03 | 2019-02-02T02:58:03 | 168,787,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 9,227 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: pogoprotos/enums/variable_name.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protob... | [
"mark@noffle.net"
] | mark@noffle.net |
f8e843416fa7b2feb722ee1f940bc09e65143ea4 | 4e8dc479fbf28d34fa1678c14ef02f3aca31d46a | /Arrays_and_Strings.md/String_Compression(1).py | c52c58b4f06b85ecece2fd1f1664495ef14b09a1 | [] | no_license | fagan2888/Leetcode-2 | b0ace8e0695875bdcd61acdec33c45b5d1d52247 | 4175d14985172eabee0a49a821eaeaf57a5b6593 | refs/heads/master | 2020-12-02T23:08:23.519672 | 2019-02-06T22:20:03 | 2019-02-06T22:20:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py |
# coding: utf-8
# In[3]:
def compressed(s):
count=1
new=[]
for i in range(len(s)-1):
if(s[i]==s[i+1]):
count+=1
else:
new.extend([s[i],str(count)])
count=1
return ''.join(new)
st=input('Enter string: ')
print('Compressed string is: ',... | [
"noreply@github.com"
] | fagan2888.noreply@github.com |
fb4a313bf56af0e92e006eb7f102755ba3bcbf98 | bdf3879b183611fef4239ece505f9f9a05fe49aa | /work/work1.py | 20963567d8a0b4d994237ce241bccfbf6f749825 | [] | no_license | Prabithapallat01/pythondjangoluminar | 9578fccd1628ed0810000cbec1ab97ac8d931bf9 | 3248939c0d454084326f9694ecb3094f599c0b6b | refs/heads/master | 2023-03-20T10:22:54.524782 | 2021-03-10T08:43:01 | 2021-03-10T08:43:01 | 327,939,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,044 | py | # # [1,2,3,4,5,6] [4,5,6,1,2,3]
# #lst=[1,2,3,4,5,6]
# def leftRotate(lst, d, n):
# for i in range(d):
# leftRotatebyOne(lst, n)
#
#
# # Function to left Rotate arr[] of size n by 1*/
# def leftRotatebyOne(lst, n):
# temp = lst[0]
# for i in range(n - 1):
# lst[i] = lst[i + 1]
# lst[n -... | [
"prabidas01@gmail.com"
] | prabidas01@gmail.com |
fe21a650d7becd85577455403863b65cb3d04236 | 859ca4b957af0c3486ed11bbf87c1b18d6e589a0 | /src/rathings/notebooks/SpectralIndexCalc.py | 2027453412f7e7eb0bd5bc0b3c557644e9ae9810 | [
"Apache-2.0"
] | permissive | Joshuaalbert/RadioAstronomyThings | b5f84b15d8d787d38dab90b05b6905b1b74acf18 | c72d6e5af8b0831a2e0e86d2d99ca894ad7f43ff | refs/heads/master | 2020-04-12T06:40:28.737231 | 2018-07-24T09:44:30 | 2018-07-24T09:44:30 | 60,545,956 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,389 | py |
# coding: utf-8
# In[ ]:
'''Compute the posterior estimates of spectral index, S1.4GHz, and P1.4GHz
as well as the posterior estimates of measured fluxes (S_i) using the Metropolis Hastings algorithm.
We assume priors: Gaussian measurments fluxes, uniform spectral index, uniform S1.4, and uniform P1.4.
Detection i... | [
"albert@strw.leidenuniv.nl"
] | albert@strw.leidenuniv.nl |
3c42675b2801430204bd563ea33ea0d5e27554ea | a9ca47eddea033e7d3ea530ee62dc3c70c07702e | /leet_code717.py | 86293c99210bdf282c0023bf9c2d4ddcf4177cab | [] | no_license | tejamupparaju/LeetCode_Python | 94d5eb80ea038dfdfc6ce5e8d833af9404215f01 | 6e4894c2d80413b13dc247d1783afd709ad984c8 | refs/heads/master | 2021-01-22T05:33:58.443569 | 2018-11-05T18:00:42 | 2018-11-05T18:00:42 | 81,676,499 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | """
717. 1-bit and 2-bit Characters
We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11).
Now given a string represented by several bits. Return whether the last character must be a one-bit character or not. The given strin... | [
"tejaswi.mupparaju@quanergy.com"
] | tejaswi.mupparaju@quanergy.com |
8f9f30d6831cde1e4fcbf7f239ea70d1b594ea72 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/224/users/4378/codes/1734_2506.py | 469f436519bd3fef7d7fc8e98ac992cba7f1f7a7 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | q_inicial=int(input("quantidade inicial: "))
perc=float(input("percentual de crescimento: "))
quant=int(input("quantidade de pirarucus retirados: "))
perc=perc/100
t=0
while(0<=q_inicial <=12000):
q_inicial=(q_inicial+q_inicial*perc)-quant
t=t+1
if(q_inicial<=0):
print("EXTINCAO")
print(t)
if(q_inicial>=12000):
pr... | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
461f66f089b405e1c9d10bf004d48db54981b2e5 | 4ca44b7bdb470fcbbd60c2868706dbd42b1984c9 | /21.05.09/SWEA_1208.py | 739beb273d68e6696bc62fdfc2ef56bb16859b3f | [] | no_license | titiman1013/Algorithm | 3b3d14b3e2f0cbc4859029eb73ad959ec8778629 | 8a67e36931c42422779a4c90859b665ee468255b | refs/heads/master | 2023-06-29T17:04:40.015311 | 2021-07-06T01:37:29 | 2021-07-06T01:37:29 | 242,510,483 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | import sys; sys.stdin = open('1208.txt', 'r')
for tc in range(1, 11):
N = int(input())
arr = list(map(int, input().split()))
for i in range(N):
if arr.count(max(arr)) >= len(arr) - 1: break
arr[arr.index(max(arr))] -= 1
arr[arr.index(min(arr))] += 1
answer = max(arr) - min(arr... | [
"hyunsukr1013@gmail.com"
] | hyunsukr1013@gmail.com |
f6c50cffa088f6323d15a6017b52e49948b80c58 | 00c9022edb984b68f0a6b1df9ba15d62d79ec62e | /src/chapter3/exercise7.py | 674b706737ef6f39bf866101b9d8972467bc2342 | [
"MIT"
] | permissive | Group3BCS1/BCS-2021 | c037bcc86193ac1c773fc9d402ef9d95a4d1276d | b8ee8f900e3fd23822844e10fb2c6475a4f3400a | refs/heads/main | 2023-06-03T08:19:24.035239 | 2021-06-18T07:42:49 | 2021-06-18T07:42:49 | 349,341,077 | 0 | 2 | MIT | 2021-03-19T07:45:39 | 2021-03-19T07:45:38 | null | UTF-8 | Python | false | false | 863 | py | try:
location = input("enter location: ")
location = location.upper() # this converts the user's string to uppercase
pay = float(input('enter pay: '))
if location == 'MBARARA' and pay > 4000000:
print('I WILL TAKE THE JOB')
elif location == 'MBARARA' and pay <= 4000000:
print('SORR... | [
"you@example.com"
] | you@example.com |
6f2d0035b27900c2f7fc843139b6b74c96b2bf51 | ae2c2bdf3aba6b5bd0753778be1991f968e689ec | /dotbiz/migrations/0031_uploadedfile_file_name.py | 86e1abecbb628ab31cbfd47120129aac6079d12d | [] | no_license | bintangx1902/clone_biz | 7cd5ce56073ebd7627c93bb1608de10177a33dfd | 80ee7b04aaff167001f5cbd9307bd3f487d3919c | refs/heads/main | 2023-08-24T10:53:18.590655 | 2021-10-25T06:32:28 | 2021-10-25T06:32:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.1.4 on 2020-12-30 15:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dotbiz', '0030_uploadedfile'),
]
operations = [
migrations.AddField(
model_name='uploadedfile',
name='file_name',
... | [
"60544749+bintangx1902@users.noreply.github.com"
] | 60544749+bintangx1902@users.noreply.github.com |
6bbddf9120b6877356513aa49b8ece59f6e330f0 | f48778b953c76cfb0039735094eb2246d6e56177 | /graphs/enhanced_qos/experiment_rssi/plot_association.py | a8ac4e20efc2706cfee98114ffb05ca5c8729634 | [] | no_license | phisolani/wifi_monitoring | 36826c52a00cf79d71f93c4acd0dc8b6d56ff934 | 06c62e625d395e4f179b9fef95318a746fee1786 | refs/heads/master | 2021-06-07T02:53:59.832752 | 2021-04-09T09:36:37 | 2021-04-09T09:36:37 | 142,306,383 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | #!/usr/bin/env python
__author__ = "Daniel Kulenkamp"
__copyright__ = "Copyright 2020, QoS-aware WiFi Slicing"
__license__ = "GPL"
__version__ = "1.0"
__maintainer__ = "Daniel Kulenkamp"
__email__ = "dkulenka@asu.edu"
__status__ = "Prototype"
" Python script for testing association plot"
from graphs.enhanced_qos.asso... | [
"pedroisolani@gmail.com"
] | pedroisolani@gmail.com |
da866e6ea6f4eb4518bbc5ec3a0d9a1479af131e | c3c8b7779381c37a97c7176947f175a1168b6149 | /instrument/generate_port_agent_config.py | 95920fcfc744e6aff2b2d762f9af8f11f88e0f0a | [] | no_license | ronkyo/ooi-tools | 9f7e51dc6fbc8fc5d77d91d3523f4342e957f8e1 | 36034ae3f950ff7c585363c6cc07f8a51549185d | refs/heads/master | 2021-01-21T03:54:24.522565 | 2015-04-27T23:22:23 | 2015-04-28T20:52:01 | 25,649,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,645 | py | #!/usr/bin/env python
"""
generate_port_agent_config.py
Generate port agent configuration files and a supervisord file from CSV input
Usage:
generate_port_agent_config.py <path> <name> <csv_file>
"""
import shutil
import jinja2
import os
import docopt
from csv import DictReader
loader = jinja2.FileSystemLoader(s... | [
"petercable@gmail.com"
] | petercable@gmail.com |
5b545d841152235d7e1f5f4957a3721084e203b0 | 8d6f73af697f56834e8cef88876be78a360190d9 | /flaskblog/users/forms.py | 73112b0e9cadba5151b9b28e081593b41fb3d9b2 | [] | no_license | Sukhrobjon/flask-blog | 7a837f3454263f69935d88cc3c73858a2848c22c | 357b311efd32f3537fce9f84ecbadd0835aac524 | refs/heads/master | 2020-04-18T10:49:58.829788 | 2019-02-25T23:28:14 | 2019-02-25T23:28:14 | 167,480,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,654 | py | from flask_wtf import FlaskForm
from flask_wtf.file import FileField, FileAllowed
from wtforms import StringField, PasswordField, SubmitField, BooleanField
from wtforms.validators import DataRequired, Length, Email, EqualTo, ValidationError
from flask_login import current_user
from flaskblog.models import User
class R... | [
"sgolibbo@mail.ccsf.edu"
] | sgolibbo@mail.ccsf.edu |
bd65812cfdd6ab3cd0e5706f3851f79bf3fe9fda | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02803/s706884747.py | 68d1a7bdccac1d1136b3fdc1c6c24530314347e6 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,575 | py | import numpy as np
H, W = map(int, input().split())
map_lis = [input() for i in range(H)]
ans = 0
def prob(x,y,h,w):
if 0<=x<h and 0<=y<w:
return True
else:
return False
def count(x,y,lis):
if not lis[x][y]:
return True
else:
return False
def maze(x,y,lis):
if lis[x][y] == ".":
return T... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
098e437846ce6912a30c7c1604db09a0b6f8e608 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/87/usersdata/190/59803/submittedfiles/contido.py | 665f253469da7a4df1c7e7b19b10513a1ca38f72 | [] | 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 | 232 | py | # -*- coding: utf-8 -*-
n=int(input('digite o numero de elementos de a:'))
m=int(input('digite o numero de elementos de b:'))
a=[]
b=[]
for i in range(1,n+1,1):
valor=float(input('digite o valor:'))
a.append(valor)
print(a) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
8e2190e81d771f4be02cbe29247c7364b863a649 | da1dbb0e1c8c323bbf7ba0eac43b5815ce075282 | /python/ccxt/btcmarkets.py | 17d7528793b07519dacb1addd93c125255c0cd09 | [
"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 | 24,692 | 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
import base64
import hashlib
import math
from ccxt.base.errors import ExchangeError
from ccxt.base.... | [
"wangming19871126@gmail.com"
] | wangming19871126@gmail.com |
7f66de5ad7a64720048a36fbb2fe4e9553f4d762 | cb57a9ea4622b94207d12ea90eab9dd5b13e9e29 | /lc/python/0404_sum_of_left_leaves.py | 8933e5d4e7cc50241ba77f57829793df8661ba7e | [] | no_license | boknowswiki/mytraning | b59585e1e255a7a47c2b28bf2e591aef4af2f09a | 5e2f6ceacf5dec8260ce87e9a5f4e28e86ceba7a | refs/heads/master | 2023-08-16T03:28:51.881848 | 2023-08-10T04:28:54 | 2023-08-10T04:28:54 | 124,834,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py |
# binary tree and dfs
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def sumOfLeftLeaves(self, root: Optional[TreeNode]) -> int:
if not root:
... | [
"noreply@github.com"
] | boknowswiki.noreply@github.com |
a5693d14d44e83141c8b81ec18c896a2cc1e4a0d | 5842d17a6c85f7e135609fc9e9951978ad42e6a5 | /app/migrations/0015_userprofile_tz.py | cfecfa463d489995a488b33d945bc7b61d423689 | [] | no_license | projectdata8thsem/lctva | ca95f56b8f3ceaffe6ef724fddcde2f3edb37e30 | 71522cd65451cc52f65eed2033f4ae2bac52040f | refs/heads/master | 2020-04-07T06:03:45.380412 | 2016-10-11T20:05:34 | 2016-10-11T20:05:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-07 03:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0014_auto_20160102_1636'),
]
operations = [
migrations.AddField(
... | [
"jtaddei@gmail.com"
] | jtaddei@gmail.com |
e647def5e76581edc66f86e284a7583b0c68c1e2 | c32809922bbdb8bef698f9979999187a30823d8f | /setup.py | a5da1976c5aad387385a747d3276c2692a26520b | [
"MIT"
] | permissive | mattdennewitz/pat | 6f98cc19ed7d647dac27ffee6d434fac0be63107 | 782ebf29a75ab9b35d45fc11d2eb7a50fa2f611b | refs/heads/master | 2020-04-01T18:45:35.721013 | 2016-07-27T05:35:20 | 2016-07-27T05:35:20 | 64,279,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
import pip.download
from pip.req import parse_requirements
reqs_txt = os.path.join(os.path.dirname(__file__), 'requirements.txt')
pip_reqs = parse_requirements(reqs_txt, session=pip.download.PipSession())
pip_reqs = [str(obj.req) for obj in... | [
"mattdennewitz@gmail.com"
] | mattdennewitz@gmail.com |
0182379e6cb385585af008abaae27b6f33a00cb1 | cbd2f3db68ec311e0d40f5281111bc3a8f200115 | /modelo/bookings/api/urls.py | ef95c12cefbd96832bd4ab68b6f9dfb1c5b4e6b3 | [] | no_license | CoutinhoElias/fullcalendar | fceff2dfae07508f02ceabf0247bac2da4528224 | 4553828cd1dd20f15a139bf535060b9cee27d3f1 | refs/heads/master | 2020-03-09T20:28:53.020188 | 2018-04-25T20:35:37 | 2018-04-25T20:35:37 | 128,986,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | from django.conf.urls import url
from django.contrib import admin
from modelo.bookings.api.serializers import BookingListFeriadoSerializer
app_name = 'bookings-api'
from .views import (
PostListAPIView,
PostListFeriadoAPIView,
PostDetailAPIView,
PostDeleteAPIView,
PostUpdateAPIView,
PostCreate... | [
"coutinho.elias@gmail.com"
] | coutinho.elias@gmail.com |
5e259794546b32d33fda459110047e2905c88230 | 382e1f0fe6349c9c65aeb369114f739ac7b099c6 | /apps/launchie/admin.py | 8c7d468ff4b88caa0c6a5c0c4d5425f0b32acd71 | [] | no_license | iambibhas/lpad | e2350af49ab049aa9627750a8921eceee770446f | 7205791c743cd27f5f7cdb7bb091e4bcde42b0d4 | refs/heads/master | 2020-05-16T22:23:46.528044 | 2012-03-01T21:38:45 | 2012-03-01T21:38:45 | 3,564,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | from django.contrib import admin
from launchie.models import Project
admin.site.register(Project)
| [
"iambibhas@gmail.com"
] | iambibhas@gmail.com |
0266435bf4f57fd88ee473e431c5d9eff7fce795 | 49536aafb22a77a6caf249c7fadef46d63d24dfe | /tensorflow/tensorflow/contrib/learn/python/learn/estimators/__init__.py | bb9f7f894f49a611d744418418bbce85167cbf4c | [
"Apache-2.0"
] | permissive | wangzhi01/deeplearning-1 | 4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d | 46ab82253d956953b8aa98e97ceb6cd290e82288 | refs/heads/master | 2020-05-28T03:14:55.687567 | 2018-09-12T16:52:09 | 2018-09-12T16:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,817 | py | # Copyright 2016 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... | [
"hanshuobest@163.com"
] | hanshuobest@163.com |
0c7322d41077b64b7c875f3f2f1d39845ebd37f3 | d93159d0784fc489a5066d3ee592e6c9563b228b | /Calibration/EcalAlCaRecoProducers/python/ALCARECOEcalESAlign_Output_cff.py | 4dd5cc22d3f4dbedd90a21eaf5229cad92c545c6 | [] | permissive | simonecid/cmssw | 86396e31d41a003a179690f8c322e82e250e33b2 | 2559fdc9545b2c7e337f5113b231025106dd22ab | refs/heads/CAallInOne_81X | 2021-08-15T23:25:02.901905 | 2016-09-13T08:10:20 | 2016-09-13T08:53:42 | 176,462,898 | 0 | 1 | Apache-2.0 | 2019-03-19T08:30:28 | 2019-03-19T08:30:24 | null | UTF-8 | Python | false | false | 1,006 | py | import FWCore.ParameterSet.Config as cms
OutALCARECOEcalESAlign_noDrop = cms.PSet(
# put this if you have a filter
SelectEvents = cms.untracked.PSet(
SelectEvents = cms.vstring('pathALCARECOEcalESAlign')
),
outputCommands = cms.untracked.vstring(
'keep ESDCCHeaderBlocksSorted_ecalPresho... | [
"marco.musich@cern.ch"
] | marco.musich@cern.ch |
0f277c60902e8603255da3dbd08294738084831d | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/minimum_area_rectangle_ii.py | 708813731bf76371e270627e1c38eb0d4c3a71c5 | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Given a set of points in the xy-plane, determine the minimum area of any rectangle formed from these points, with sides not necessarily parallel to the x and y axes.
If there isn't any rectangle, return 0.
Example 1:
Input: [[1,2],[2,1],[1,0],[0,1]]
Output: 2.00... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
b90f6e7917af6e75b2d7465f1ec61af936e8ad06 | a08f5a2a75dcbe8e6871759d6b7a89e0e2f3519e | /pypodman/pypodman/lib/actions/rmi_action.py | 7c3d0bd795b1c9a13a592f15020303f704fb5c37 | [
"Apache-2.0"
] | permissive | 4383/python-podman | 99a7d8906e13811059743feba005a7550ff9f604 | 94a46127cb0db2b6187186788a941ec72af476dd | refs/heads/master | 2020-04-22T10:47:05.035526 | 2019-01-14T14:30:35 | 2019-01-14T14:30:35 | 170,317,428 | 0 | 0 | Apache-2.0 | 2019-02-12T12:52:13 | 2019-02-12T12:52:12 | null | UTF-8 | Python | false | false | 1,339 | py | """Remote client command for deleting images."""
import sys
import podman
from pypodman.lib import AbstractActionBase
class Rmi(AbstractActionBase):
"""Class for removing images from storage."""
@classmethod
def subparser(cls, parent):
"""Add Rmi command to parent parser."""
parser = par... | [
"jhonce@redhat.com"
] | jhonce@redhat.com |
5bedb6acfb11c0720e53b72916dc4b2a3fe2290b | 1843fd5ccb4377240e664acd21ba5a9369eca2ab | /bluebottle/utils/exchange_rates.py | 5a13a2e89fbde1ff2d96b0f6451e16a83362c4b3 | [
"BSD-2-Clause"
] | permissive | raux/bluebottle | ba2e576cebcb6835065004c410b22bd8a6b9ee29 | 49d92b5deb289c1539f99122abc20f845577b879 | refs/heads/master | 2020-03-27T03:20:11.465491 | 2018-08-23T13:09:25 | 2018-08-23T13:09:25 | 145,854,614 | 0 | 0 | null | 2018-08-23T13:05:00 | 2018-08-23T13:04:59 | null | UTF-8 | Python | false | false | 198 | py | from djmoney_rates.utils import convert_money
def convert(money, currency):
""" Convert money object `money` to `currency`."""
return convert_money(money.amount, money.currency, currency)
| [
"ernst@onepercentclub.com"
] | ernst@onepercentclub.com |
36b6bc2a275ccfba0a769e03a047842003034ffa | 8d1d1e7677e1a18c00fb295971211d4e29d10896 | /vocal_synthesis/experiments/22feb_testing_b2_rmsprop_rectify.py | 5bbb31566fa7981f6bc49ff20056e209698369f4 | [] | no_license | christopher-beckham/ift6266h16 | 8296d1529f6ce3e209af371283f816a4c6d63ea9 | f141fb0a320c20c2c7b43b46f06b1c68cde183f0 | refs/heads/master | 2021-01-10T13:38:40.733180 | 2016-04-17T02:22:52 | 2016-04-17T02:22:52 | 49,399,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | import numpy as np
from scipy.io import wavfile
import os
import sys
sys.path.append( os.pardir )
import cPickle as pickle
from lasagne.updates import *
import rnn_experiment as experiment
if __name__ == "__main__":
# e.g. 1000_60sec.pkl
in_pkl = sys.argv[1]
out_pkl = sys.argv[2]
with open(in_pkl) as... | [
"chrispy645@gmail.com"
] | chrispy645@gmail.com |
b665f56e5dff437feeb254d063d46896215f3942 | bad686ba27539a3d3286418cc3ebf2aa80ae4958 | /src/kits/maker-pi-rp2040-robots/time-of-flight-display-test.py | f633d990bc842f9f8617dc32d4679a845184fb29 | [] | no_license | AaryaBatchu/micropython | f0a31b579b3a998586f26b92036875c93588eca7 | aef7d33937352e9ab6f9615bfc5bf9aa1a9bee57 | refs/heads/main | 2023-08-19T13:33:15.006432 | 2021-10-23T19:06:26 | 2021-10-23T19:06:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # Test program for VL53L0X
import time
from machine import Pin, I2C
from ssd1306 import SSD1306_I2C
import VL53L0X
I2C0_SDA_PIN = 0
I2C0_SCL_PIN = 1
I2C1_SDA_PIN = 2
I2C1_SCL_PIN = 3
i2c0=machine.I2C(0,sda=machine.Pin(I2C0_SDA_PIN), scl=machine.Pin(I2C0_SCL_PIN))
i2c1=machine.I2C(1,sda=machine.Pin(I2C1_SDA_PIN), scl=m... | [
"dan.mccreary@gmail.com"
] | dan.mccreary@gmail.com |
105c0808de6a0d4f0fca7819c1b26ac7d1fd97cf | 1cd83cf06ff7ae750ab419ac867d475d38342388 | /play-with-numbers/lychrel.py | ee4e3ef1b0281f78eebe6e5db760bed2cd2e7ead | [
"MIT"
] | permissive | AnuragAnalog/maths | 28e402a980075e0201a699528387a7ca223737e8 | b8fd5398dd8fce657ba5c3c0170b5e493eb9d341 | refs/heads/master | 2022-10-31T14:50:52.114560 | 2022-10-15T19:19:36 | 2022-10-15T19:19:36 | 146,905,452 | 0 | 3 | MIT | 2022-10-15T19:19:37 | 2018-08-31T14:52:56 | C | UTF-8 | Python | false | false | 1,074 | py | #!/usr/bin/python3.6
""" If we take 47, reverse and add, 47 + 74 = 121, which is palindromic.
It is thought that some numbers, like 196, never produce a palindrome.
A number that never forms a palindrome through the reverse and add process
is called a Lychrel number. Due to the theoretical nature of these number... | [
"anurag.peddi1998@gmail.com"
] | anurag.peddi1998@gmail.com |
d0d2170beaa496a695545f31c255a9f64e877438 | 3c38febb2f7a42fb72b543eb23caa9f46580f06b | /Uva Problems/Python/713.py | e95e6f573511da20421cca9b7150a6881a4d1807 | [] | no_license | joyonto51/Programming_Practice | 479b8e84862e35f29a3904bd3556edb6532efb4b | 1d6ff08cf63011cfde6b73988bc1686a12e70a79 | refs/heads/master | 2020-03-09T05:34:39.502942 | 2018-10-01T14:34:17 | 2018-10-01T14:34:17 | 128,617,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | T = int(input())
for i in range(T):
a,b=map(str,input().split())
x = int(a[::-1])
y = int(b[::-1])
w = str(x+y)
z = int(w[::-1])
print("{}".format(z))
| [
"meghla1609"
] | meghla1609 |
09d70c0aefbd48906980a784bebbb7489af1e443 | b6d3ff62c8baa193226414e0a4ee7e8c242340cc | /crf-seq/sets/sets_2/7/seq_detect_1i.py | 3f0c0ed2646bac57d171b6c4b4cdd9046f430e70 | [
"Apache-2.0"
] | permissive | roma-patel/seq | a0c8025c6629f06157d7530f1f21ca6d9c9c146f | 25012b1218b60090f467fe5ed5a15d7a28b3134c | refs/heads/master | 2021-09-16T15:21:53.842958 | 2018-06-21T20:21:16 | 2018-06-21T20:21:16 | 110,298,977 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,349 | py | import pycrfsuite
import sklearn
from itertools import chain
from sklearn.metrics import classification_report, confusion_matrix
from sklearn.preprocessing import LabelBinarizer
import re
import json
annotypes = ['Participants', 'Intervention', 'Outcome']
annotype = annotypes[1]
path = '/nlp/data/romap/crf/'
#path = '... | [
"romapatel996@gmail.com"
] | romapatel996@gmail.com |
91225add6aa7e75a6cef7c47459470a6ff209b39 | 58d2b60989a83142286273c1d3bdd66a77842c76 | /Wind/Train/RunConfig.py | 0220ddff4b85e2aa74b7fa6c181234275d0f4756 | [] | no_license | castorgit/wind_code | 8193c7439eb459e58a55b8ff107df6032f77ad7d | 6f25302e9ba581f769d22d47b2c86aa2d60de393 | refs/heads/master | 2022-09-24T13:14:59.280976 | 2020-06-06T17:13:58 | 2020-06-06T17:13:58 | 270,047,772 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,846 | py | """
.. module:: RunConfig
RunConfig
*************
:Description: RunConfig
Object to store information from the flags passed to the script for training
:Authors: HPAI-BSC
:Version:
:Created on: 06/07/2018 8:09
"""
__author__ = 'HPAI-BSC'
class RunConfig:
"""Class Runconfig
Stores informatio... | [
"30628981+castorgit@users.noreply.github.com"
] | 30628981+castorgit@users.noreply.github.com |
927db656a17a58d4953f22fbdc57fd16d812b724 | 27ff7fec0ae3f29f58089a2acab0aa3bc4e6e1f7 | /RIDE-python3/utest/controller/test_tcuk_copy.py | 4d4c8ab42b7c9cad385b512f4c7fb6b0a38d324f | [
"Apache-2.0"
] | permissive | zhangsong1417/xx | 01435d6057364991b649c1acc00b36ab13debe5a | c40cfdede194daf3bdf91b36c1936150577128b9 | refs/heads/master | 2020-04-06T14:06:23.011363 | 2019-07-09T02:38:02 | 2019-07-09T02:38:02 | 157,528,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,828 | py | import time
import unittest
from robotide.robotapi import TestCaseFile
from robotide.controller.filecontrollers import TestCaseFileController
from resources import COMPLEX_SUITE_PATH
from nose.tools import assert_equal, assert_true
class TestCaseAndUserKeywordCopyingTest(unittest.TestCase):
controller = TestCas... | [
"44634576+shuiling21@users.noreply.github.com"
] | 44634576+shuiling21@users.noreply.github.com |
e09bfea83d8f83c4c3596a4e1384efbdb19d67e1 | f5a1fcc57ba6d1bdd946158d269f861747023977 | /google_problems/problem_19.py | ba9c6737ede40571563275798458611485c593dd | [
"MIT"
] | permissive | younes38/Daily-Coding-Problem | 64f8c4137b86fc44d6202585f009a3a5e05f4eac | ba2b48fbd4d86b2130a396b9d464f2395b9983b6 | refs/heads/master | 2021-07-19T01:41:20.665277 | 2019-11-30T21:00:50 | 2019-11-30T21:00:50 | 225,072,874 | 2 | 0 | MIT | 2019-11-30T21:38:13 | 2019-11-30T21:38:13 | null | UTF-8 | Python | false | false | 463 | py | """This problem was asked by Google.
Implement an LRU (Least Recently Used) cache. It should be able to
be initialized with a cache size n, and contain the following methods:
• set(key, value): sets key to value. If there are already n items in the
cache and we are adding a new item, then it should also
remove the l... | [
"mxcsyounes@gmail.com"
] | mxcsyounes@gmail.com |
8ceb1e40fd1074a3ca829be6b58a977dfba353b3 | 828e58fff5f3779b6fddbc029f332345adb97c4f | /yoohalal/apps/dashboard/promotions/app.py | 9a86e30efe48de93a9f59df745206195afa7b01e | [] | no_license | sofyandamha/Django-Oscar-Marketplace-yoohalal | 5c33ac77834dcbc199d5f39971b0f527e9627167 | 8bc1f11b1fe301f1dc5f9f9edfd6c24402effeb3 | refs/heads/master | 2020-03-27T20:52:37.031477 | 2018-09-02T16:03:43 | 2018-09-02T16:03:43 | 147,099,611 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | from django.conf.urls import url
from oscar.apps.dashboard.promotions.app import PromotionsDashboardApplication as CorePromotionsDashboardApplication
from oscar.core.loading import get_class
from apps.promotions.conf import PROMOTION_CLASSES
class PromotionsDashboardApplication(CorePromotionsDashboardApplication):
... | [
"sofyandamha@gmail.com"
] | sofyandamha@gmail.com |
2e1034143ccd6580c372cfbb8d6a5d8edcd31a92 | 11c94a2c46a337293a35866788895634dee9c0c6 | /third_party/typ/typ/expectations_parser.py | 09bb7e0d85234aa720ccbf9c569293925145ee83 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | tobeqj/catapult | cce63e58b0fcf5713b942ed73708581491ac2f69 | 4d850033271b29cd51e6343747c75631d335f14c | refs/heads/master | 2020-05-24T14:16:13.287182 | 2019-05-17T22:27:20 | 2019-05-17T23:36:44 | 187,305,972 | 1 | 0 | BSD-3-Clause | 2019-05-18T02:42:59 | 2019-05-18T02:42:59 | null | UTF-8 | Python | false | false | 13,436 | py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# TODO(dpranke): Rename this to 'expectations.py' to remove the 'parser'
# part and make it a bit more generic. Consider if we can reword this to
# also not ... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
44d13ab9183844ac238550a00eb7aa2a9725fc68 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-7417.py | ea541f93983bdad42dfad5f037191888021db2c1 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,276 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
e0ed0dfefb138ca3c8fd3e937468c210583a4899 | ace717292aec2cbff637da1455e265b2c4f5894b | /azdev/operations/tests/test_break_change.py | 6a81837caf7c11c4c8bb9ba49d0e3b8e9f1cb7b8 | [
"MIT"
] | permissive | Azure/azure-cli-dev-tools | b62b936327c1129d970e7b836b7f926e7c277cce | d4e9490071a5161c3f663e41a99f16b7a091feea | refs/heads/dev | 2023-08-24T12:36:36.386669 | 2023-08-10T05:57:09 | 2023-08-10T05:57:09 | 158,465,443 | 78 | 106 | MIT | 2023-09-14T02:55:18 | 2018-11-20T23:46:08 | Python | UTF-8 | Python | false | false | 2,621 | py | # -----------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# -----------------------------------------------------------------------------
i... | [
"noreply@github.com"
] | Azure.noreply@github.com |
989ffac9bbb35c98fef0e0e921d47fbd26eac1d9 | 4e02d5b0b1b0739553fd40bbbdfb0d02c9830350 | /0279_Perfect_Squares.py | a4f7a1558f81bae7ae146a21635bc67ee099f516 | [] | no_license | bingli8802/leetcode | b039ab6af62f0c8992463393f561caafd21056e6 | a509b383a42f54313970168d9faa11f088f18708 | refs/heads/master | 2023-03-29T03:11:45.801090 | 2021-03-23T22:55:16 | 2021-03-23T22:55:16 | 279,321,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | class Solution(object):
def numSquares(self, n):
"""
:type n: int
:rtype: int
"""
dp = [0] * (n+1)
for i in range(1, n+1):
dp[i] = i
j = 1
while i - j*j >= 0:
dp[i] = min(dp[i], dp[i-j*j] + 1)
j += 1
... | [
"noreply@github.com"
] | bingli8802.noreply@github.com |
b85bd0e003e0af4800ebefdd62eaedba1d847289 | 83cbb5554f488f78b9cc8fddda5749e4a77cd9d7 | /corona_chan/app_celery.py | d2f74a0925bf8a3b6fdd875f3bcee3262aaa42f5 | [
"WTFPL"
] | permissive | dem4ply/corona_chan | 5273beef3bb859314a39bf6948d983db1f9ead38 | e422a6ddd2ea7628d83f9f7eb09dc8b39984971b | refs/heads/master | 2022-01-21T17:34:56.458016 | 2020-03-28T08:12:40 | 2020-03-28T08:12:40 | 252,572,781 | 0 | 0 | WTFPL | 2022-01-06T22:43:34 | 2020-04-02T21:53:46 | Python | UTF-8 | Python | false | false | 398 | py | from __future__ import absolute_import
import os
from celery import Celery
from django.conf import settings
__all__ = [ 'corona_chan_task' ]
os.environ.setdefault( 'DJANGO_SETTINGS_MODULE', 'corona_chan.settings' )
corona_chan_task = Celery( 'corona_chan' )
corona_chan_task.config_from_object( 'django.conf:setti... | [
"dem4ply@gmail.com"
] | dem4ply@gmail.com |
d9a61d0432914bf06dd735f4f255e00fbb172535 | 6a3db7061752a7dc7466f3965e1d7aef116b2adc | /core/manager/threadmanager.py | 0a24f226af42726d5611b3b10dedc9d19d0f664f | [
"BSD-2-Clause"
] | permissive | bwbj/imagepy | f3b68b320a82bbb3e0641539a244046e9dc6fa73 | e2ee389f1003fc297a541968dcfd7fd883b91e01 | refs/heads/master | 2021-01-25T09:25:45.077798 | 2017-06-04T16:02:19 | 2017-06-04T16:02:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jan 14 23:24:32 2017
@author: yxl
"""
import numpy as np, os
import IPy
class ThreadManager:
threads = [] | [
"498264240@qq.com"
] | 498264240@qq.com |
c64c92384af399fffd97ca2e1811f3c53183049a | ad20495c8df427211dba51c93c507365f9fce319 | /tilejetserver/source/models.py | 99a2588f534876baed6957523db4f391849ae42f | [
"LicenseRef-scancode-public-domain"
] | permissive | tilejet/tilejet-server | 779398257c65138c906f3989c63e029dfe45587e | 7bd0caa18cde98a8fd80aeea6e06bbe8aa2fa1be | refs/heads/master | 2021-01-10T02:41:23.553939 | 2015-12-06T07:18:56 | 2015-12-06T07:19:59 | 43,448,267 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,709 | py | import datetime
import logging
import os
import io
import sys
import uuid
from base64 import b64encode
from optparse import make_option
import json
import argparse
import time
import os
import subprocess
import binascii
import re
from django.db import models
from django.db.models import signals
from django.conf import... | [
"pjdufour.dev@gmail.com"
] | pjdufour.dev@gmail.com |
d046dfadb9f91a4651d440ee1c6c211841633686 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17r_1_01a/routing_system/router/router_bgp/address_family/ipv6/ipv6_unicast/default_vrf/af_ipv6_uc_and_vrf_cmds_call_point_holder/redistribute/static/__init__.py | 0bb0151f518a6c84ba89cf606dd97f1974d8b36b | [
"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 | 14,312 | 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 |
804ae630fba94c13e8ca0673bfb3b16caf9c116b | e7451193592aaee2536924ef03846eee920bcf94 | /ucscentralsdk/mometa/ls/LsIssues.py | ed90bd3be818f6f0f3d288ee7ced886d4a637c0a | [
"Apache-2.0"
] | permissive | vinayravish/ucscentralsdk | eb33191f3c7675561298af8cef9b30f6e220b7b2 | 809a3782d26c69f50cf7237700e107f1a9857870 | refs/heads/master | 2021-01-18T01:51:57.275207 | 2016-07-20T05:37:26 | 2016-07-20T05:37:26 | 62,137,219 | 0 | 0 | null | 2016-06-28T12:00:34 | 2016-06-28T12:00:34 | null | UTF-8 | Python | false | false | 12,494 | py | """This module contains the general information for LsIssues ManagedObject."""
from ...ucscentralmo import ManagedObject
from ...ucscentralcoremeta import UcsCentralVersion, MoPropertyMeta, MoMeta
from ...ucscentralmeta import VersionMeta
class LsIssuesConsts():
pass
class LsIssues(ManagedObject):
"""This ... | [
"vinay.ravish@gmail.com"
] | vinay.ravish@gmail.com |
847223e52750a1c83489ec6b1a24eef605dc399e | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/centernet2/projects/CenterNet2/centernet/modeling/layers/deform_conv.py | 1f769c8cc406ad284f290a81f443686934da2c31 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"GPL-1.0-or-later",
"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 | 4,579 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
# Copyright 2020 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.... | [
"hanjun20@huawei.com"
] | hanjun20@huawei.com |
ede7c645eab3f1f455a1d33accfd7f85666937fa | afebbb07b2b4eada17a5853c1ce63b4075d280df | /marketsim/gen/_out/_imultiassetstrategy.py | af12f65be98a441b14e7d2cd86e9acf0c7e41cf3 | [] | no_license | peter1000/marketsimulator | 8c0a55fc6408b880311d3ad49defc55e9af57824 | 1b677200a9d5323f2970c83f076c2b83d39d4fe6 | refs/heads/master | 2021-01-18T01:39:04.869755 | 2015-03-29T17:47:24 | 2015-03-29T17:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | class IMultiAssetStrategy(object):
pass
| [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
5e3edb681874b53ffa1b0407e4f3f44e9c9564ce | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-gaussdb/huaweicloudsdkgaussdb/v3/model/mysql_flavors_info.py | f645f35059fe903ce4c4505600efa70fabee5fdc | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,889 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class MysqlFlavorsInfo:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key i... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
f98b586ac029d55f77d430b036cbbe0642135da8 | 0660cfca0799685969f75b4082455a5608e23bc4 | /TensorFlow2/Recommendation/WideAndDeep/data/outbrain/nvtabular/preproc.py | 52240c1143495c764743a4c98d2bd58e20e4257a | [] | no_license | resemble-ai/DeepLearningExamples | c88dc66930bc2c4627fd187fc0034e783e6244d3 | 2d555548b698e4fc207965b7121f525c37e0401c | refs/heads/master | 2023-04-12T17:23:45.349726 | 2021-04-26T13:00:10 | 2021-04-26T13:00:10 | 362,784,409 | 4 | 3 | null | 2021-04-29T10:51:42 | 2021-04-29T10:51:41 | null | UTF-8 | Python | false | false | 1,995 | py | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | [
"kkudrynski@nvidia.com"
] | kkudrynski@nvidia.com |
8319f4003ac2e4e7bc59b13fa6bded86492c5bf2 | d89cbdfbb67e46d43a05edb2abeb5e1deedfd3a2 | /functions/shake_shake_function.py | 2b38e2c551c100ed70044885d915227a673d2921 | [
"MIT"
] | permissive | minhtannguyen/pytorch_shake_shake | c9a6fb520ba2201c1ccb022767cbba963225bbae | d7f245d8d8b9e81a6020aadb438ffeae6d5593c2 | refs/heads/master | 2020-03-27T14:22:09.646020 | 2018-09-01T02:00:25 | 2018-09-01T02:00:25 | 146,658,651 | 0 | 0 | MIT | 2018-08-29T21:07:24 | 2018-08-29T21:07:24 | null | UTF-8 | Python | false | false | 1,363 | py | # coding: utf-8
import torch
from torch.autograd import Function
class ShakeFunction(Function):
@staticmethod
def forward(ctx, x1, x2, alpha, beta):
ctx.save_for_backward(x1, x2, alpha, beta)
y = x1 * alpha + x2 * (1 - alpha)
return y
@staticmethod
def backward(ctx, grad_out... | [
"hysts@users.noreply.github.com"
] | hysts@users.noreply.github.com |
94c31b6f766395c271029a4a360588b51ce03a06 | bc40c23403c1926e5bb81d3f6b6be567ccee7a70 | /ecommerce/user_model/models.py | 049da65fb7f8b02f6947ab77d96e101120f2e8e3 | [] | no_license | hrupesh/ecommerce | e1e0abf624ad3222bcf57548f051a3197ae899e5 | 2fc645e0e43f1920d787612e8f5b47d5990c793e | refs/heads/master | 2020-04-20T01:28:35.977058 | 2019-01-31T14:51:20 | 2019-01-31T14:51:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.db import models
import hashlib
# Create your models here.
class register_model(models.Model):
firstname = models.CharField(max_length=250, help_text='Required')
lastname = models.CharField... | [
"maheshwarishivam2604@gmail.com"
] | maheshwarishivam2604@gmail.com |
db865ebb216e0b6efcc8947e4b2809b42095bcd7 | 07c3034f7b6ef88e08430b8c908613ea0091f1b6 | /Labs/Lab 7.py | 540d228ec6bf38673cdb8a3ea31a04a997b03f8a | [] | no_license | HelalChow/Data-Structures | 494b8fabcdf1cac20db78055547ce4160ad6a018 | 3b3401cbd23e01b2d7d95dfc3b95451ca179cee9 | refs/heads/master | 2021-10-19T00:24:23.589224 | 2019-02-15T22:34:05 | 2019-02-15T22:34:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,395 | py | #Question 1
def powers_of_two(num):
for i in range(1,num+1):
yield 2**i
#Question 2
def decimal_to_binary(int):
if int==1:
return "1"
else:
hold = decimal_to_binary(int-1)
#Question 3
def partition(lst):
low = 1
high = len(lst)-1
pivot = lst[0]
wh... | [
"noreply@github.com"
] | HelalChow.noreply@github.com |
cf2d48e9ab4da0ece9b9ee4ddd631919aa2261e1 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2790/60720/237340.py | ea1258231b7d219c2f8c047b47fb50bd69d1f997 | [] | 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 | 455 | py | list=input().split()
size1=int(list[0])
size2=int(list[1])
list1=input().split()
list2=input().split()
for i in range(size1):
list1[i]=int(list1[i])
for i in range(size2):
list2[i]=int(list2[i])
count=0
for i in range(size2-1):
for j in range(size1):
if list1[j]<=list2[i]:
count=count+1
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
e8d4272f4fa006bd29293b9b21adeec8080c6d47 | 3b15dc211cb6c034f4d843b1bbc540f1699182f7 | /爬虫/多线程爬取.py | 5fb5a954f28cf987da7a0401528b87219b49f4f9 | [] | no_license | Hanlen520/- | eea27d5a1272272a2f47f9070f285e44300ab0d2 | 308d3401ff368cd11f4aeac7949d57c3136f2b6e | refs/heads/master | 2023-03-15T19:18:25.168665 | 2020-07-05T14:39:41 | 2020-07-05T14:39:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | import requests
import re
import threading
import os
num = 1
def get_html_text_one(url, headers):
request = requests.get(url, headers=headers)
if request.status_code == 200:
return request.text
return request
def get_images_one(html, headers):
urls = re.findall('><a href="(.*?)" alt=".*?".*?">... | [
"admiwj@outlook.com"
] | admiwj@outlook.com |
9d822d260cb327e22781dc7abc5ad41d19df961c | 01c2254dcd0547058e66dd0ca0ecd9e2941e3cb9 | /billingstack/openstack/common/jsonutils.py | e8ab2d559752d171eeb769e1538b0bc0a47621dc | [
"Apache-2.0"
] | permissive | lanve/billingstack | 8ac3c52eca8f1d2dc46753d043ff09b55f536fcf | dfeb22992d503e1d407a55b7cf1a7658386fefa3 | refs/heads/master | 2021-01-22T15:22:08.731143 | 2014-10-31T10:21:35 | 2014-10-31T10:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,458 | 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.
# Copyright 2011 Justin Santa Barbara
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
#... | [
"endre.karlson@gmail.com"
] | endre.karlson@gmail.com |
ab19e7a013264bab618abc32f5c3b27d2161ed9d | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/html5lib/_utils.py | 0703afb38b13bf56998d43aa542dcea9839d8132 | [
"MIT"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 4,015 | py | from __future__ import absolute_import, division, unicode_literals
from types import ModuleType
from pip._vendor.six import text_type
try:
import xml.etree.cElementTree as default_etree
except ImportError:
import xml.etree.ElementTree as default_etree
__all__ = ["default_etree", "MethodDispatcher", "isSurr... | [
"354142480@qq.com"
] | 354142480@qq.com |
ec5e14ca7ee91e5a11c352f1f40d86319a8f3aca | 6e8f2e28479566dbaa338300b2d61f784ff83f97 | /.history/code/live_20210421141743.py | fc17bb0a93cda5b645c4b46e5443cb671d1f180d | [] | no_license | eeng5/CV-final-project | 55a7d736f75602858233ebc380c4e1d67ab2b866 | 580e28819560b86f6974959efb1d31ef138198fc | refs/heads/main | 2023-04-09T21:28:21.531293 | 2021-04-21T19:57:22 | 2021-04-21T19:57:22 | 352,703,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,640 | py | import os
import cv2
import sys
import numpy as np
from models import SimpleModel
from preprocess import Datasets
import hyperparameters as hp
import tensorflow as tf
from skimage.transform import resize
from PIL import Image, ImageFont, ImageDraw
from scipy.spatial import distance as dist
from imutils import face... | [
"natalie_rshaidat@brown.edu"
] | natalie_rshaidat@brown.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.