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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8be72a52068001cc66bd59da148af82ea5b224a8 | db575f3401a5e25494e30d98ec915158dd7e529b | /BIO_Stocks/PMD.py | f9d9498e20f4a6d77b53ce8653cbb90641628f67 | [] | no_license | andisc/StockWebScraping | b10453295b4b16f065064db6a1e3bbcba0d62bad | 41db75e941cfccaa7043a53b0e23ba6e5daa958a | refs/heads/main | 2023-08-08T01:33:33.495541 | 2023-07-22T21:41:08 | 2023-07-22T21:41:08 | 355,332,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | import requests
from lxml import html
from bs4 import BeautifulSoup
import os
from datetime import date, datetime
from ValidationTools import validateday
from Database_Connections import InsertData, Insert_Logging
def main(id_control):
try:
url = 'https://investors.psychemedics.com/sec-filings-and-press... | [
"[email protected]"
] | |
018b2906e7a41541d957764ddd1c47e355d03386 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2464487_0/Python/CuteCube/ra1.py | dbc146df38875aae8ae187eac50411365e303fb4 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | #!/usr/bin/env python
import math
def main():
f = open('input.txt', 'r')
total_T = int(f.readline())
#print total_T
for T in xrange(1,total_T+1):
r,t = f.readline().split()
r = long(r)
t=long(t)
# 2k^2 + (2r - 1)k - t = 0
b = 2*r -1.0
a = 2.0
c = ... | [
"[email protected]"
] | |
36675db792eaa04c9b5c9732126b47ebda3a154f | 43cdd7cb26fe44b1ed7de6a46f8b5e680c9b1372 | /openpeerpower/generated/config_flows.py | 244c7e0f950d8f44b848d46e9680ed38ab8aaabb | [
"Apache-2.0"
] | permissive | OpenPeerPower/Open-Peer-Power | 02ec5c133564b47c6f72f669e844a666643cacd6 | 940a04a88e8f78e2d010dc912ad6905ae363503c | refs/heads/master | 2022-08-16T09:38:49.994009 | 2021-05-29T03:54:13 | 2021-05-29T03:54:13 | 183,174,237 | 1 | 0 | Apache-2.0 | 2022-07-15T18:43:02 | 2019-04-24T07:35:47 | Python | UTF-8 | Python | false | false | 246 | py | """Automatically generated by oppfest.
To update, run python3 -m script.oppfest
"""
# fmt: off
FLOWS = [
"almond",
"daikin",
"dialogflow",
"homekit_controller",
"met",
"mobile_app",
"mqtt",
"zha",
"zwave"
]
| [
"[email protected]"
] | |
20adba546311eb8ef3f505a79525f18a05e924ff | 4fd65dc15ed0e5849c440a41d81036d1ff47ea96 | /tests/integration/test_deploy_and_evaluate_model_auth_on.py | 56f92793bb30c984b1b9583ee2c3e49b30cd861f | [
"MIT"
] | permissive | tableau/TabPy | 20ae3dacb958bf2d0e48fc36220366cb3db412bb | 96aa26252b6115bd2788f9526680ec1b34f1c86f | refs/heads/master | 2023-08-29T13:47:21.507211 | 2023-06-21T21:30:40 | 2023-06-21T21:30:40 | 69,400,040 | 1,527 | 633 | MIT | 2023-06-21T21:30:42 | 2016-09-27T21:26:03 | Python | UTF-8 | Python | false | false | 1,233 | py | from . import integ_test_base
class TestDeployAndEvaluateModelAuthOn(integ_test_base.IntegTestBase):
def _get_config_file_name(self) -> str:
return "./tests/integration/resources/deploy_and_evaluate_model_auth.conf"
def _get_port(self) -> str:
return "9009"
def test_deploy_and_evaluate_m... | [
"[email protected]"
] | |
1685d2a9cf7e5dc726fffb430a61ba17869e53f8 | 4cce3b466591f7f8b9d58c1f8cae4dd0b6425b09 | /classes dealing.py | 09e2606008d31426022cdef988fb9cec1726491e | [] | no_license | adityamangal1/hackerRank-solutions | 4e5fc66785215688449f58176b0260e05fb0c404 | 102ee32f5984240939bf14e799a458d99388774b | refs/heads/master | 2023-04-18T15:35:36.998087 | 2021-04-22T07:16:38 | 2021-04-22T07:16:38 | 297,935,486 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,770 | py | import math
class Complex(object):
def __init__(self, real, imaginary):
self.real = real
self.imaginary = imaginary
def __add__(self, no):
complex_n = complex(self.real, self.imaginary) + \
complex(no.real, no.imaginary)
return Complex(complex_n.real, complex_n.ima... | [
"[email protected]"
] | |
fe247491ad250b60cfc470e63187bc32eacfeb9c | 8ed215ee731bc8c55eabdc66ee028a43771510bc | /tasks/nooisee/flask/ids_and_flags.py | ab033ca249b1daac30bde9c7af9c03d3eb3c21b4 | [
"MIT"
] | permissive | irdkwmnsb/lkshl-ctf | c6c0b0ae58653d3d7c427073221043d2adea212c | e5c0200ddc8ba73df5f321b87b9763fb1bbaba57 | refs/heads/master | 2020-03-23T22:22:23.499985 | 2019-02-22T13:29:51 | 2019-02-22T13:29:51 | 142,172,055 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,415 | py | ids = ['i2yctSSMGde1TjBIor4T', 'DZrIgOypvPqMctJS06O9', 'lH4uWfzCg1kFeULgUIVC', 'N9mUMmG8maidbCD0s4mV', 'PuqvlpXgaa5s42mZKE4j', 'CoRVyJtEoNE87xUoRqw0', '8uKC7RXAOBlOXdP7KVGl', '2cVvsSZY3QLRmoAYRFkL', '22enKTGqQwxga5RFQdus', 'Sw1vkSnYDQdEtOjTnfH0', 'S7mUlJwhAJhCFgxCOoAW', 'JkTjzY6JUEgo9G7tHciV', 'xn8irINr3sDQLIAb2CkI', '... | [
"[email protected]"
] | |
ce505ca0ceaa5e400375f9fc5ee87089d635e977 | 325fde42058b2b82f8a4020048ff910cfdf737d7 | /src/databox/azext_databox/vendored_sdks/databox/__init__.py | 1c85885ae27c33da1710d57cd105b2ea74f26605 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | ebencarek/azure-cli-extensions | 46b0d18fe536fe5884b00d7ffa30f54c7d6887d1 | 42491b284e38f8853712a5af01836f83b04a1aa8 | refs/heads/master | 2023-04-12T00:28:44.828652 | 2021-03-30T22:34:13 | 2021-03-30T22:34:13 | 261,621,934 | 2 | 5 | MIT | 2020-10-09T18:21:52 | 2020-05-06T01:25:58 | Python | UTF-8 | Python | false | false | 736 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"[email protected]"
] | |
517e4b682e6b12974385b9c23201af4bebefd1d0 | 5679731cee36c537615d285ed72810f4c6b17380 | /513_FindBottomLeftTreeValue.py | 0de079fbf90fd9385df6647f65a7e451a7aa108a | [] | no_license | manofmountain/LeetCode | 6b76105190a9b62df65a7b56b6def4120498b9fa | 718f688b3d316e8c10ef680d9c21ecd518d062f8 | refs/heads/master | 2021-01-12T03:41:48.318116 | 2017-07-18T12:35:58 | 2017-07-18T12:35:58 | 78,252,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # 40.9%
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
#from collections import deque
class Solution(object):
def findBottomLeftValue(self, root):
"""
:type root: Tre... | [
"[email protected]"
] | |
540a90e5ada5365bcdd02cc93f075cf3bbcc7940 | aba9b00edec394f1389a7ecf88a290112303414d | /semestr_8/analiza_obrazu/projekt/image_anal.py | 27ef23203928b6d0aa4647a3b8b98e00f6ab0559 | [] | no_license | torgiren/szkola | 2aca12807f0030f8e2ae2dfcb808bf7cae5e2e27 | 5ed18bed273ab25b8e52a488e28af239b8beb89c | refs/heads/master | 2020-12-25T18:18:36.317496 | 2014-04-27T23:43:21 | 2014-04-27T23:43:21 | 3,892,030 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 33,859 | py | #*-* coding: utf8 *-*
"""Moduł zawierający klasy używane do przetwarzania obrazu"""
import numpy as np
from scipy import misc
import itertools
from pprint import pprint
from glob import glob
import os
class NoImageError(Exception):
"""Wyjątek sygnalizujący próbę operowania na niewczytanym obrazie"""
pass
cla... | [
"[email protected]"
] | |
4e0fe6547a110182f76e9ab8ad0eb89cb972a754 | e9ffc75f2de77f76bcd10c28195e7b8dcc01db4b | /config/settings/test.py | 95f766b07155f793e1fc376098106f9cf3549397 | [
"MIT"
] | permissive | Parkyes90/pystagram | c2d4b9e38a2065e5d1a8cb4eaa330640efe60a4e | 54a497f4acb70eb4d4288816d9ae460ec5722640 | refs/heads/master | 2023-08-04T06:20:40.536836 | 2023-07-27T10:12:01 | 2023-07-27T10:12:01 | 133,020,662 | 0 | 0 | MIT | 2023-07-27T10:12:02 | 2018-05-11T09:38:24 | JavaScript | UTF-8 | Python | false | false | 2,024 | py | """
With these settings, tests run faster.
"""
from .base import * # noqa
from .base import env
# GENERAL
# ------------------------------------------------------------------------------
# https://docs.djangoproject.com/en/dev/ref/settings/#debug
DEBUG = False
# https://docs.djangoproject.com/en/dev/ref/settings/#se... | [
"[email protected]"
] | |
ec0bfed2e04944f6a53b48dd4438719b1733cb75 | 699ff10c347dc9b6d5af7f531a1c941dbfecd558 | /leetcode/python/232-implement-queue-using-stacks.py | cfbd49aa1d50363b1d16e3ac48c0bcd623bf7032 | [] | no_license | iampkuhz/OnlineJudge_cpp | 71a7637c54d81be2aa066a6132aab31b798bbe6b | 737b9bac5a73c319e46cda8c3e9d729f734d7792 | refs/heads/master | 2021-01-10T10:16:37.589855 | 2017-03-06T12:45:20 | 2017-03-06T12:45:20 | 24,891,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | #!/usr/bin/env python
# encoding: utf-8
"""
Implement the following operations of a queue using stacks.
push(x) -- Push element x to the back of queue.
pop() -- Removes the element from in front of queue.
peek() -- Get the front element.
empty() -- Return whether the queue is empty.
Notes:
You must use only standa... | [
"[email protected]"
] | |
168a729a213cb05a64c5b3b4dc1ab8aa2155d254 | ac9e892c02af18cea990bb0a3f60071b34a03194 | /pytorch_pfn_extras/training/triggers/manual_schedule_trigger.py | fc2db995b809735e7cefe6fc0d8df2ffd185d4ee | [
"MIT"
] | permissive | limsijie93/pytorch-pfn-extras | 1323e796d59fe113ee86f631cc65ad44c7914a77 | 4b675fce8f4a420d87f1685423a9e62dbe598700 | refs/heads/master | 2022-09-18T09:18:25.459126 | 2020-06-04T04:43:47 | 2020-06-04T04:43:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,131 | py | class ManualScheduleTrigger:
"""Trigger invoked at specified point(s) of iterations or epochs.
This trigger accepts iterations or epochs indicated by given point(s).
There are two ways to specify the point(s): iteration and epoch.
``iteration`` means the number of updates, while ``epoch`` means the nu... | [
"[email protected]"
] | |
640acd474ccc2667449fec3953056cfc3acb5173 | 3e74c0b272bfd7981454953aeef96ab2f5c59c69 | /benchmarking/timeIt.py | 8d8650898c5cef602fc4840308c61e368cda7614 | [] | no_license | LokeshKD/DSPython | 09e2e086182d1d0e73f85cc88611b7aa446d1253 | f657678ac2cc1855c4d13bdc66d790a1022b6640 | refs/heads/master | 2023-04-16T13:58:02.500681 | 2021-04-17T17:04:51 | 2021-04-17T17:04:51 | 357,611,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | #
def my_function():
try:
1 / 0
except ZeroDivisionError:
pass
if __name__ == "__main__":
import timeit
setup = "from __main__ import my_function"
print(timeit.timeit("my_function()", setup=setup))
| [
"[email protected]"
] | |
2718b4a553b211d4a9237d21b069590a78c1b9fc | df5d82456b26461643fe0f3c0d7f4b34a521afae | /volt/controllers.py | c8331417109714ac41cc8880e0b87eeefd6562ad | [] | no_license | ali96343/ombott-test | b5bfbc4e079ca3a50b40b210438405acdba65765 | 7d7c46d5cd5c73a92fae08247917ac988b83b9c7 | refs/heads/master | 2023-08-21T15:02:41.614957 | 2021-10-07T06:28:59 | 2021-10-07T06:28:59 | 380,330,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,870 | py | #
# py4web app, AI-biorex ported 26.04.2021 14:45:45 UTC+3, src: https://github.com/themesberg/volt-bootstrap-5-dashboard
# https://github.com/ali96343/facep4w
#
import os, json, uuid
import ombott as bottle
from py4web import action, request, response, abort, redirect, URL, Field
from py4web.utils.form import Form... | [
"[email protected]"
] | |
e760becc3c1eb5c190c95e6eb021d1db26b75b93 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/dcx.py | 6b975b5f2f2c98bbfca63125607d2e2c1d79986e | [] | 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:
... | [
"[email protected]"
] | |
466502916f65ec970df5c90a6f2d448e9050d8b0 | 09efb7c148e82c22ce6cc7a17b5140aa03aa6e55 | /env/lib/python3.6/site-packages/plotly/graph_objs/ohlc/__init__.py | 6045b7202af831a93026f1550f8e714430892557 | [
"MIT"
] | permissive | harryturr/harryturr_garmin_dashboard | 53071a23b267116e1945ae93d36e2a978c411261 | 734e04f8257f9f84f2553efeb7e73920e35aadc9 | refs/heads/master | 2023-01-19T22:10:57.374029 | 2020-01-29T10:47:56 | 2020-01-29T10:47:56 | 235,609,069 | 4 | 0 | MIT | 2023-01-05T05:51:27 | 2020-01-22T16:00:13 | Python | UTF-8 | Python | false | false | 34,074 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Stream(_BaseTraceHierarchyType):
# maxpoints
# ---------
@property
def maxpoints(self):
"""
Sets the maximum number of points to keep on the plots from an
incoming str... | [
"[email protected]"
] | |
c40f6b94961010096fa1e43f69e3c26d32368c2c | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_229/ch57_2020_04_10_21_47_51_592464.py | 1b83ba556f170dae510b6bab0604f9e0d9a59eca | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,127 | py | def verifica_progressao(lista):
r = lista[1] - lista[0]
rn = lista[2] - lista[1]
continua = True
continua2 = True
i = 0
if lista[0] != 0 and lista[1] != 0:
q = lista[1]/lista[0]
qn = lista[2]/lista[1]
if qn == q:
while continua == True:
while ... | [
"[email protected]"
] | |
7436c12c9b17ab4e53a8e623b20b1a24fc082352 | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/test/test_v1beta1_subject_access_review_status.py | 86ad671f95cfc1388e0b498d3971b2a7c14d6e90 | [
"Apache-2.0",
"MIT"
] | permissive | JeffYFHuang/gpuaccounting | d754efac2dffe108b591ea8722c831d979b68cda | 2c63a63c571240561725847daf1a7f23f67e2088 | refs/heads/master | 2022-08-09T03:10:28.185083 | 2022-07-20T00:50:06 | 2022-07-20T00:50:06 | 245,053,008 | 0 | 0 | MIT | 2021-03-25T23:44:50 | 2020-03-05T02:44:15 | JavaScript | UTF-8 | Python | false | false | 1,076 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
OpenAPI spec version: v1.15.6
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import kube... | [
"[email protected]"
] | |
49ddfd050e02c9a29ad478cd2401367cf761db46 | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/icml2020/murtaza/pusher/demo_state_td3.py | 1bb88eaceb172d7677d3cb4f22eca88400bb1641 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,221 | py | from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in
from rlkit.launchers.launcher_util import run_experiment
import rlkit.misc.hyperparameter as hyp
from rlkit.launchers.experiments.murtaza.rfeatures_rl import state_td3bc_experiment
from rlkit.launchers.arglauncher import run_variants
if __name__ ... | [
"[email protected]"
] | |
de575d64908dac2ae371562a98245e061498181d | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/X733GROUP-MIB.py | 2e3597342dc315db7cc0b26e65652659f42fc2f8 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 18,926 | py | #
# PySNMP MIB module X733GROUP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/X733GROUP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:36:00 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 201... | [
"[email protected]"
] | |
075d717759921834a2a8c9622dbb53790cf0228a | b198ab1d3faf79d34b1745236daa5eb02a37e18e | /yggdrasil/metaschema/properties/tests/test_JSONArrayMetaschemaProperties.py | ed812677d1d5d9df256fbc5b8f6903ae12c185fa | [
"BSD-3-Clause"
] | permissive | leighmatth/yggdrasil | 688f13aa0d274217daec9f412269fbbaf5f10aef | dcc4d75a4d2c6aaa7e50e75095a16df1df6b2b0a | refs/heads/master | 2021-07-09T10:39:25.422978 | 2021-04-14T16:40:04 | 2021-04-14T16:40:04 | 245,011,886 | 0 | 0 | NOASSERTION | 2020-03-04T21:54:25 | 2020-03-04T21:54:24 | null | UTF-8 | Python | false | false | 1,645 | py | from yggdrasil.metaschema.properties.tests import (
test_MetaschemaProperty as parent)
class TestItemsMetaschemaProperty(parent.TestMetaschemaProperty):
r"""Test class for ItemsMetaschemaProperty class."""
_mod = 'JSONArrayMetaschemaProperties'
_cls = 'ItemsMetaschemaProperty'
def __init... | [
"[email protected]"
] | |
b08f3840e780e082aad97256d99c215839e1e058 | 1012f61f46ff7aaf37cd3ce0ead64e035ec201dc | /coding-challange/codewars/8kyu/~2021-07-25/capitalization-and-mutability/capitalization-and-mutability.py | 70ab2ba79b4d13199ed131fb83a863ae49274dcb | [] | no_license | polyglotm/coding-dojo | 89efe22f5a34088e94c9e3a4e25cad510b04172a | 43da9c75e3125f5cb1ac317d275475f1c0ea6727 | refs/heads/develop | 2023-08-17T11:59:30.945061 | 2023-08-16T14:13:45 | 2023-08-16T14:13:45 | 188,733,115 | 2 | 0 | null | 2023-03-04T05:49:21 | 2019-05-26T21:26:25 | JavaScript | UTF-8 | Python | false | false | 386 | py | """
capitalization-and-mutability
codewars/8kyu/Capitalization and Mutability
Difficulty: 8kyu
URL: https://www.codewars.com/kata/595970246c9b8fa0a8000086/
"""
def capitalize_word(word):
return word.capitalize()
def test_capitalize_word():
assert capitalize_word('word') == 'Word'
assert capitalize_word('... | [
"[email protected]"
] | |
4b10fa53b97294463e20ad06343f2dd982acc650 | afebbb07b2b4eada17a5853c1ce63b4075d280df | /marketsim/gen/_intrinsic/orderbook/of_trader.py | 804ce5709645171b35783b2eb31d41c8a145e2c1 | [] | 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 | 1,224 | py | from marketsim import types
from marketsim.gen._out.trader._singleproxy import SingleProxy
from marketsim import getLabel
from marketsim.gen._out._intrinsic_base.orderbook.of_trader import OfTrader_Base, Proxy_Base
class Base(object):
_properties = {}
def __getattr__(self, name):
if name[0:2] != '__... | [
"[email protected]"
] | |
1fa173f6bfa99361c4de753688e6de4aa025f83f | ea378480ba678eb123ef826e3ca0c3eb8f4e538f | /paused/05. bk old/bk future includes/candidates/06.misc from nodebox/context.py | 1d6b06a511c7ed2c494ad636d23c4867059aa457 | [] | no_license | msarch/py | 67235643666b1ed762d418263f7eed3966d3f522 | dcd25e633a87cdb3710e90224e5387d3516c1cd3 | refs/heads/master | 2021-01-01T05:21:58.175043 | 2017-05-25T08:15:26 | 2017-05-25T08:15:26 | 87,453,820 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155,609 | py | #=== CONTEXT =========================================================================================
# 2D NodeBox API in OpenGL.
# Authors: Tom De Smedt, Frederik De Bleser
# License: BSD (see LICENSE.txt for details).
# Copyright (c) 2008 City In A Bottle (cityinabottle.org)
# http://cityinabottle.org/nodebox
# All... | [
"[email protected]"
] | |
7cf435eb848c7d03f3f9aad53f457dca59045ba8 | fb91c53b311cf191bc0f3a4efe5b1a0ba197944e | /play/tmp/0003_auto__add_field_coupon_coupons_released.py | e83fcdb8627bc6416c6a929aaadb00a6125eb43e | [
"MIT"
] | permissive | fraferra/PlayCity | e0ba878c52a321afbdbba68d25717b29a5dd3109 | 2bf97c30599b686ca0e642d1ebaf73fc99705291 | refs/heads/master | 2021-01-19T16:26:24.955470 | 2014-08-08T21:56:08 | 2014-08-08T21:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,807 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Coupon.coupons_released'
db.add_column(u'play_coupon', 'c... | [
"[email protected]"
] | |
e4f7d50b81def02a4fc5c109097676d372a8b5c3 | fbb12b2b7dcf7f2a33235f6766b4176c083a0c8e | /ARsyntax/workflow/rules/pseudoReplicates.smk | 66d10732db24581cccd7e5b362ac228197b0e3d1 | [] | no_license | birkiy/TermProjectCOMP541 | b76c8fa3a01e48dc302dc040a2c499c2c9f1b8ba | 400a81765889a21d0590b599c4ba0e529a56e3ca | refs/heads/main | 2023-01-19T21:36:55.085293 | 2020-11-30T12:59:14 | 2020-11-30T12:59:14 | 306,048,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | smk |
folder = "results/mapping/processed"
rule pseudoReplicates:
input:
"results/mapping/processed/{raw}.merged.final.bam"
output:
header=temp("results/mapping/processed/{raw}.merged.header.final.sam"),
pseudo1="results/mapping/processed/{raw}.pseudo1.final.b... | [
"[email protected]"
] | |
b7345219fb5ba716b3fed095337bf4ff6b1df307 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/nwxtho001/question2.py | e5b2fd67ffe16d5f456ab603de434f28d2291d9f | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | print ("Welcome to the 30 Second Rule Expert\n------------------------------------\nAnswer the following questions by selecting from among the options.")
seen = input ('Did anyone see you? (yes/no)\n')
if seen == 'yes' :
seen_type = input ('Was it a boss/lover/parent? (yes/no)\n')
if seen_type == 'no' :
... | [
"[email protected]"
] | |
f486e9a0a0c4bfa8648db2f3ab716096708a8df8 | 4b7e282fe480415f5d52c0fc0429f144156190fe | /google/ads/googleads/v8/common/types/feed_common.py | 12888a33eb9f184c2402a3337e503e869b2be75f | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 1,263 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"[email protected]"
] | |
d5655f14e27d61edfb7d6882009fe9f0ad295296 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2755/60793/267817.py | 8e0ef8cec59b834a9a8d68728452208db38b0567 | [] | 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 | 371 | py | for test in range(0, int(input())):
input()
ls1 = list(map(int, input().split()))
ls2 = list(map(int, input().split()))
l1, l2 = len(ls1), len(ls2)
ls3 = [0 for x in range(0, l1 + l2 - 1)]
for i in range(0, l1):
for j in range(0, l2):
ls3[i + j] += ls1[i] * ls2[j]
for i i... | [
"[email protected]"
] | |
086a9a37c222334524b2121455b685678a95f665 | 63c7060562ec5d1a9153f0454ea6886b0a62a28e | /tb/axi_cdma/test_axi_cdma.py | 6b7ce9326dc3e25a24752ed080d6e17b2cf42064 | [
"MIT"
] | permissive | alexforencich/verilog-axi | 666e6dfbd14fd124bdcbc2798b4f557347fb8261 | 38915fb5330cb8270b454afc0140a94489dc56db | refs/heads/master | 2023-03-30T07:34:17.721579 | 2023-03-30T07:12:13 | 2023-03-30T07:12:13 | 142,810,315 | 1,042 | 342 | MIT | 2023-03-05T19:52:57 | 2018-07-30T01:36:26 | Verilog | UTF-8 | Python | false | false | 6,800 | py | """
Copyright (c) 2020 Alex Forencich
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 rights
to use, copy, modify, merge, publish, distribute... | [
"[email protected]"
] | |
570e791962616acf2b90d808f402aaea2ee15533 | e1834bce67d20e73d10eb4533584d635f2840782 | /onir/datasets/nyt.py | 14b837a35362df7067ee673b9743e46b16f78994 | [
"MIT"
] | permissive | tgeral68/OpenNIR | f1d8361c1543fda401386ee5d87ecb14766c16da | 225b26185bd67fdc00f24de3ef70d35768e22243 | refs/heads/master | 2023-02-27T02:06:28.357884 | 2021-02-08T16:22:09 | 2021-02-08T16:22:09 | 327,644,600 | 0 | 0 | MIT | 2021-02-08T15:55:28 | 2021-01-07T15:03:22 | null | UTF-8 | Python | false | false | 16,788 | py | import os
import tarfile
import contextlib
import functools
from glob import glob
from multiprocessing import Pool
from pytools import memoize_method
from bs4 import BeautifulSoup
import onir
from onir import datasets, util, indices, log, config
from onir.interfaces import trec, plaintext
logger = log.easy()
_HELD_... | [
"[email protected]"
] | |
3611831f18561cfa5af0f745acdf03a946f45c97 | d3762b1b4d908b2b43f6e0ae362daa7136c6c7a4 | /elections/management/commands/migrate_data.py | d427572608b5a937a16039325feb542271465cab | [] | no_license | pbahle/elections-api | c58cdf2b05f1560c8d6a69f8bc07e878458585c1 | 60cc06610ab7a279102018078f29f38d31e8bd26 | refs/heads/master | 2020-09-02T10:44:03.663386 | 2019-11-02T19:26:30 | 2019-11-02T19:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | # pylint: disable=no-self-use
import sys
from datetime import timedelta
from pathlib import Path
from django.core.management.base import BaseCommand
from django.utils import timezone
import log
from elections import defaults
from elections.helpers import normalize_jurisdiction
from elections.models import District,... | [
"[email protected]"
] | |
c1fb632462fb073565ae995962ae392db45905b3 | a411a55762de11dc2c9d913ff33d2f1477ac02cf | /lte/gateway/python/magma/mobilityd/subscriberdb_client.py | 1fec443db1956ef872a11cfbc3a1d98d7a4c2e0f | [
"BSD-3-Clause"
] | permissive | magma/magma | 0dc48c1513d9968bd05fb7589f302c192b7c0f94 | 0e1d895dfe625681229e181fbc2dbad83e13c5cb | refs/heads/master | 2023-09-04T09:31:56.140395 | 2023-08-29T13:54:49 | 2023-08-29T13:54:49 | 170,803,235 | 1,219 | 525 | NOASSERTION | 2023-09-07T17:45:42 | 2019-02-15T04:46:24 | C++ | UTF-8 | Python | false | false | 6,221 | py | """
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES O... | [
"[email protected]"
] | |
536e8eda7de1c4a381f2c709fa56729cfbf19ee7 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /native_client_sdk/src/build_tools/tests/verify_filelist_test.py | 2e01da1c93e9b3e5b6743a0e4d6f71f712de429d | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 3,854 | py | #!/usr/bin/env python
# Copyright (c) 2013 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.
import os
import sys
import unittest
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
BUILD_TOOLS_DIR = os.path.dirname(SCR... | [
"[email protected]"
] | |
ca1b707109866827e14056049f57c913b474171f | 4229a406a83a573dc357c1144cae7c5aad6f673b | /trestle/tasks/__init__.py | 86a3ca67891864e7f9daa7aafdae8b49ba9a8a8d | [
"Apache-2.0"
] | permissive | xee5ch/compliance-trestle | dbc0647fe18e1164a75bcfdc4d38687df14e3247 | 969c10eceb73202d2b7856bac598f9b11afc696e | refs/heads/main | 2023-09-02T17:21:35.659432 | 2021-11-17T00:01:27 | 2021-11-17T00:01:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # -*- mode:python; coding:utf-8 -*-
# Copyright (c) 2020 IBM Corp. 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
... | [
"[email protected]"
] | |
9a6669dbb8aa1d8739a39c14d383548d2e889676 | 557d75e6dfb42c881d4df73950c41935635f2162 | /preprocessing/recon_all.py | d9bf4632fb59ca40f6606a9db0ddc41864471963 | [] | no_license | sssilvar/multiple-sclerosis | e6139558249f00a882ffeb9d4b82ac323a50ec96 | a2e1e97e1297d45c2b84c5c57b372eee26047941 | refs/heads/master | 2020-06-05T00:09:04.781033 | 2019-07-13T23:15:00 | 2019-07-13T23:15:00 | 192,245,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | #!/bin/env python3
import os
import glob
from multiprocessing.pool import Pool
from os.path import join, isdir, basename
def recon_all(vol_file):
sid = basename(vol_file).split('_')[0]
t2_file = vol_file.replace('T1Wreg.nii.gz', 'T2Wreg.nii.gz')
cmd = f'recon-all -i {vol_file} -T2 {t2_file} -s {sid} -sd {... | [
"[email protected]"
] | |
d04ae994a53ff06417f846f19c0403d3bc065f10 | e5d83ede8521027b05d9b91c43be8cab168610e6 | /0x0B-python-input_output/1-number_of_lines.py | 1dfc5fcc64012fcf583f7f599a0cd5e13d80cbb1 | [] | no_license | Danielo814/holbertonschool-higher_level_programming | 8918c3a6a9c136137761d47c5162b650708dd5cd | 832b692529198bbee44d2733464aedfe650bff7e | refs/heads/master | 2020-03-28T11:09:00.343055 | 2019-02-22T03:33:54 | 2019-02-22T03:33:54 | 148,181,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #!/usr/bin/python3
"""
1-number_of_lines module
"""
def number_of_lines(filename=""):
"""
returns the number of lines of a text file
"""
numlines = 0
with open(filename, 'r', encoding='utf-8') as f:
for line in f:
numlines += 1
return numlines
| [
"[email protected]"
] | |
0d6361a1c0ab589a30c8857539292b0ea2ba6f17 | 43dabf77afd5c44d55b465c1b88bf9a5e7c4c9be | /drawing_random_circles.py | be298cbf90b23e67ea008144b485fca1b94b056c | [] | no_license | geegatomar/OpenCV-Computer-Vision-Adrian-Rosebrock | cc81a990a481b5e4347dd97369b38479b46e55bc | daa579309010e6e7fefb004b878ffb26374401d0 | refs/heads/master | 2022-11-18T13:07:08.040483 | 2020-07-20T01:55:39 | 2020-07-20T01:55:39 | 280,987,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import cv2
import numpy as np
# drawing 25 random circles
canvas = np.zeros((400, 400, 3), dtype="uint8")
for i in range(25):
radius = np.random.randint(180) # will generate random radius value between 0 and 100
centre = np.random.randint(0, 400, size=(2, ))
color = np.random.randint(... | [
"[email protected]"
] | |
5b2adb99ac1c7f639cd70f0a78682b1b33699973 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/292/85489/submittedfiles/testes.py | 8470e2323f37fdef8789f886efdda325a1056e93 | [] | 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 | 87 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
import datetime
n=date.today()
print(n) | [
"[email protected]"
] | |
a0cb28bad70fcd7e7477f099e1ce87cedae8050d | f33b30743110532ddae286ba1b34993e61669ab7 | /比赛/力扣杯2020春季全国编程大赛/1.py | dff7e2ce6da1326a6dd9870c6a3b18e8dfb798d9 | [] | no_license | c940606/leetcode | fe9dcee7a5daa4d52999d5f53253dd6dd33c348b | 631df2ce6892a6fbb3e435f57e90d85f8200d125 | refs/heads/master | 2021-07-10T14:01:26.164966 | 2020-08-16T10:46:16 | 2020-08-16T10:46:16 | 186,588,449 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | from typing import List
import collections
a = Solution()
print()
| [
"[email protected]"
] | |
c3e597348ecd704038d52109bd25c04c2baf9da0 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc003/D/4547211.py | 6a0acb9b36e11c97948531a48a505d78d41e9f86 | [] | 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 | 998 | py | mod = 10**9 + 7
def powmod(x, n):
ret = 1
while n > 0:
if n & 1:
ret *= x; ret %= mod; n -= 1
else:
x *= x; x %= mod; n >>= 1
return ret
fact = [1 for _ in range(1000)]
revfact = [1 for _ in range(1000)]
def setfact(n):
for i in range(n):
fact[i+1] = fact[i] * (i+1); f... | [
"[email protected]"
] | |
873fd33b792017d4797bb0d1acbb046e82beacde | 26f8a8782a03693905a2d1eef69a5b9f37a07cce | /test/test_destiny_historical_stats_destiny_historical_stats_period_group.py | 54f3aa5d3731b9a1cb0a50764667212af0aef180 | [] | no_license | roscroft/openapi3-swagger | 60975db806095fe9eba6d9d800b96f2feee99a5b | d1c659c7f301dcfee97ab30ba9db0f2506f4e95d | refs/heads/master | 2021-06-27T13:20:53.767130 | 2017-08-31T17:09:40 | 2017-08-31T17:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | # coding: utf-8
"""
Bungie.Net API
These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
OpenAPI spec version: 2.0.0
Contact: [email protected]
Generated by: ... | [
"[email protected]"
] | |
c29ff1701a3bfbca5682d464670a0183a3517f7b | 8882bfe78b3a6e5d022f81c86512b22f851d9dc8 | /tgflow/TgFlow.py | ffb115f18b4e9744371863b4ed3007956ddc5bbd | [
"MIT"
] | permissive | inexcode/tgflow | 5600fa4040d30157daf6d2ad5fe8d625ac64789d | e7bbd7df87e7a711c1b2924f3f2ae909fb2086c5 | refs/heads/master | 2020-03-29T10:19:39.405683 | 2018-09-21T18:13:30 | 2018-09-21T18:13:30 | 149,799,442 | 0 | 0 | null | 2018-09-21T17:59:23 | 2018-09-21T17:59:23 | null | UTF-8 | Python | false | false | 6,673 | py | #import telebot
import hashlib
from enum import Enum
from . import handles
from . import render
import pickle,time
from .api.tg import telegramAPI
import pprint
pp = pprint.PrettyPrinter(indent=4)
action = handles.action
api,key = None,None
def_state = None
def_data= None
States = {}
UI = {}
Data = {}
Actions = {}
K... | [
"[email protected]"
] | |
28eb9cf5f13dc05100ba9264f00df18331a9e5ba | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04030/s999899727.py | d1c7afb12be8ed4228e960b1a6e2e0f7fc222ea5 | [] | 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 | 164 | py | s=input()
fin=""
for c in s:
if c=='1':
fin+="1"
elif c=='0':
fin+="0"
else:
if len(fin)>0:
fin=fin[:-1]
print(fin)
| [
"[email protected]"
] | |
5fe4c7ed46fc6342f89f21baa980a8b8f0c9a22a | a814debee728e59a7a10d8c12b92c1f3ee97e19d | /Cadeias/Questao01.py | 5a06773ddc2a07e94da38507662ab3bf4ae50ea1 | [] | no_license | PedroVitor1995/Algoritmo-ADS-2016.1 | 0ee034d2f03b29d3c8177fb3402f7aeae08d07cf | 8e3b6dfb0db188b9f5d68dcb8619f6636883ab89 | refs/heads/master | 2021-01-01T15:51:56.636502 | 2017-07-19T13:47:36 | 2017-07-19T13:47:36 | 81,328,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #__*__ encoding:utf8 __*__
"""1. Faça a criptografia de uma frase digitada pelo usuário. Na criptografia, a frase deverá ser invertida e as
consoantes deverão ser substituídas pelo caractere #."""
def main():
frase = raw_input('Digite uma frase: ')
consoantes = 'BCDFGHJKLMNPQRSTVXYWZbcdfghjklmnpqrstvxywz'
for... | [
"[email protected]"
] | |
b350f1f0416822ef956cae7c7a8e285fdeae380a | 2d1649a7a00d49b72ed7e53afa4abb3c9281ce03 | /.history/ParticleFilter/go_to_goal_20190421181756.py | fa5c4dea237b41fd8aea882ecec9f2e1f521c0ff | [] | no_license | joshzhang5/CS3630Lab6 | 9547dc6c89198e9bb4aebd8359d4feb974082d20 | 69e6df12829e18a211ae850236d74b4d728046ef | refs/heads/master | 2020-05-15T13:59:51.906195 | 2019-04-22T18:21:42 | 2019-04-22T18:21:42 | 182,317,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,240 | py | # Jiaxi Zhang
# George McAlear
# If you run into an "[NSApplication _setup] unrecognized selector" problem on macOS,
# try uncommenting the following snippet
try:
import matplotlib
matplotlib.use('TkAgg')
except ImportError:
pass
from skimage import color
import numpy as np
from numpy.linalg import inv... | [
"[email protected]"
] | |
f78ec480786556e08f9a2cddea0271a0013e24e1 | 9ff1d0d5049dfe1c14528e098bdd8c934fb2274a | /tests/test3/test_port7_unittest.py | 6465c5d08297ccf489943439d23ab7e7aca49cfa | [] | no_license | 486dx/utility_Python | 43e06b3f74dac140396643d0e5c132fb874d2467 | 598117f7e9fd416f4bc7f1ccea931048a977a0bc | refs/heads/master | 2022-04-23T06:36:36.220406 | 2020-04-06T08:59:35 | 2020-04-06T08:59:35 | 264,519,552 | 1 | 0 | null | 2020-05-16T20:17:30 | 2020-05-16T20:17:30 | null | UTF-8 | Python | false | false | 1,690 | py | # test_port7_unittest.py
import unittest
from portfolio3 import Portfolio
class PortfolioTest(unittest.TestCase):
def test_empty(self):
p = Portfolio()
self.assertEqual(p.cost(), 0.0)
def test_buy_one_stock(self):
p = Portfolio()
p.buy("IBM", 100, 176.48)
self.assertEq... | [
"[email protected]"
] | |
374eb12b1ec6126e692a94315444e4a7bcf0621b | 4eaab9327d25f851f9e9b2cf4e9687d5e16833f7 | /problems/search_suggestions_system/solution.py | 47a2ff3a14f8b27c1b8af6d2a0b73ebff62b06d6 | [] | no_license | kadhirash/leetcode | 42e372d5e77d7b3281e287189dcc1cd7ba820bc0 | 72aea7d43471e529ee757ff912b0267ca0ce015d | refs/heads/master | 2023-01-21T19:05:15.123012 | 2020-11-28T13:53:11 | 2020-11-28T13:53:11 | 250,115,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | class Solution:
def suggestedProducts(self, products: List[str], searchWord: str) -> List[List[str]]:
products.sort() # time O(nlogn)
array_len = len(products)
ans = []
input_char = ""
for chr in searchWord:
tmp = []
input_char += chr
inse... | [
"[email protected]"
] | |
fc63244cd75a39edbf500b6fa6de7db12118a2b9 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/surface/auth/application_default/login.py | cd8f38b6c453bd00a3fae5c98e366c42c46a414a | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 9,042 | py | # -*- coding: utf-8 -*- #
# Copyright 2016 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... | [
"[email protected]"
] | |
8cdd5f52e919892a5acf7fabc7f846d69d487956 | 5491f4b600f7ecd1d0848d60d7b017e5e407d4c7 | /inventario/migrations/0005_ventamodel.py | 79ad0c9268a28f2a5951adb94199d7fd065bfa48 | [] | no_license | GustavoPMex/web-inventario | 409456dd356bbfcadd735cc9b8e2aae7605a0e37 | d0ac36ee791ff0262f9390497da1dd990581a4fd | refs/heads/master | 2023-06-10T10:08:39.029666 | 2021-06-30T23:40:19 | 2021-06-30T23:40:19 | 296,677,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | # Generated by Django 3.0.8 on 2020-09-29 03:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventario', '0004_historicalarticulomodel'),
]
operations = [
migrations.CreateModel(
name='VentaModel',
fields=[
... | [
"[email protected]"
] | |
0ae646e5fd55b65b3f924b29c97b5843b2eca062 | bd1362c60313784c90013dfc9f0169e64389bf27 | /scripts/ingestors/soilm_ingest.py | a3a1ef7cc473f3149593d222b9f47ed4891c86b8 | [] | no_license | ForceCry/iem | 391aa9daf796591909cb9d4e60e27375adfb0eab | 4b0390d89e6570b99ca83a5fa9b042226e17c1ad | refs/heads/master | 2020-12-24T19:04:55.517409 | 2013-04-09T14:25:36 | 2013-04-09T14:25:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | """
Ingest ISU SOILM data!
DailySI
"TIMESTAMP",
"RECORD",
"TAir_C_Avg",
"TAir_C_Max",
"TAir_C_TMx",
"TAir_C_Min",
"TAir_C_TMn",
"SlrMJ_Tot",
"Rain_mm_Tot",
"WS_mps_S_WVT",
"WindDir_D1_WVT",
"WindDir_SD1_WVT",
"WS_mps_Max",
"WS_mps_TMx",
"DailyET",
"TSoil_C_Avg",
"VWC_12_Avg",
"VWC_24_Avg",
"VWC_5... | [
"[email protected]"
] | |
de8f1e1f2f085838464375d1849719293a936020 | 0af30c2e3ddcc80a19ea9cfaad9d7e1fedf8b876 | /210311-210314/백)2579 계단 오르기/이동재.py | b27bbc2081db13195ca37f930e92c97bac44a0d8 | [] | no_license | winterash2/algorithm_study_2021_1 | d1cd6077f71f68e7fc3eb6dfae7b2cc220885e4c | c1fee62c7e5e560c3bf7ae5e6166866d0147f23f | refs/heads/master | 2023-04-02T20:11:04.169856 | 2021-04-05T11:18:22 | 2021-04-05T11:18:22 | 327,563,535 | 1 | 2 | null | 2021-01-24T14:17:40 | 2021-01-07T09:28:08 | Python | UTF-8 | Python | false | false | 512 | py | import sys
input = sys.stdin.readline
N = int(input())
scores = []
for _ in range(N):
scores.append(int(input()))
dp1 = [0 for _ in range(N)]
dp2 = [0 for _ in range(N)]
# 0번 칸 초기화
dp1[0] = scores[0]
if N == 1:
print(scores[0])
else: # N이 2보다 클 때
# 2번 칸 초기화
dp1[1] = scores[1]
dp2[1] = scores[1] ... | [
"[email protected]"
] | |
64b1ff60158655b97b826b8467eb04fc9536b67f | c264153f9188d3af187905d846fa20296a0af85d | /Python/Python3网络爬虫开发实战/《Python3网络爬虫开发实战》随书源代码/urllib/error/demo3.py | 6928b02a18d8a9762b9a281c84c97d5aa162f9c4 | [] | no_license | IS-OSCAR-YU/ebooks | 5cd3c1089a221759793524df647e231a582b19ba | b125204c4fe69b9ca9ff774c7bc166d3cb2a875b | refs/heads/master | 2023-05-23T02:46:58.718636 | 2021-06-16T12:15:13 | 2021-06-16T12:15:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from urllib import request, error
try:
response = request.urlopen('http://cuiqingcai.com/index.htm')
except error.HTTPError as e:
print(e.reason, e.code, e.headers, sep='\n')
except error.URLError as e:
print(e.reason)
else:
print('Request Successfully') | [
"[email protected]"
] | |
c5c570c5d072a814ff270e276deaef84ad277e35 | 56255c15702f4f4a01b7f785f956cee7290d0097 | /segmentation_pytorch/utils/train.py | ef5089b869ed248028f04a015305e45cdec34d74 | [] | no_license | devhliu/PyTorch_UNOdeMSegNet | d2561606aac34ace4664c48bc000d4c4a915699a | 3a446ca71ddd74e612bf2c2acc43e7b210366e5b | refs/heads/master | 2020-12-24T04:41:23.674029 | 2019-11-13T08:07:40 | 2019-11-13T08:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | import sys
import torch
import pdb
from tqdm import tqdm as tqdm
from torchnet.meter import AverageValueMeter
# from ..models.CRF import dense_crf
class Epoch:
def __init__(self, model, loss, metrics, stage_name, device='cpu', verbose=True):
self.model = model
self.loss = loss
self.metrics = metrics
self.st... | [
"[email protected]"
] | |
af3c13b0b6d71fc197d85e36c8e32fa818a832f2 | b72c37e3ccda507b231649cddd5c7845c6c34ba1 | /PythonBasic/Day15/exec5_enumate.py | bcde4f16b170aa836494556ff4f435dfe5176b43 | [] | no_license | ljrdemail/AID1810 | 51c61c255b5c5efc1dc642b46691a614daedd85e | b417bd831bc1550ab953ce7ca23f54e34b8b2692 | refs/heads/master | 2020-04-24T09:45:14.781612 | 2019-02-21T11:26:49 | 2019-02-21T11:26:49 | 171,866,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | # -*- coding:utf-8 -*-
def myenumerate(iterable, start=0):
i = start # 开始索引
for x in iterable:
yield (i, x) # 生成一个元组
i += 1
d = myenumerate("ABCDE", 1)
for i in d:
print(i)
| [
"root"
] | root |
fed79b9a386ddab376d7acd6d52191fc5ec5f846 | 23fb5b1fb275892b0a27657685c062360630889e | /Week 7/django/src/bookstore/settings.py | ad6bf63e9bc7c5c3b7fdb61d360525456c224875 | [
"MIT"
] | permissive | carlosal1015/python2017 | 2b596fa1e4cad4de06537ffc99fb0af0dfa4563d | c1eed0201039c6b4daf857dd1f08c47a7b1e3f45 | refs/heads/master | 2020-09-13T17:15:50.419142 | 2018-05-24T12:44:40 | 2018-05-24T12:44:40 | 222,850,901 | 1 | 2 | MIT | 2019-11-20T04:32:23 | 2019-11-20T04:30:54 | null | UTF-8 | Python | false | false | 3,161 | py | """
Django settings for bookstore project.
Generated by 'django-admin startproject' using Django 1.11.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import ... | [
"[email protected]"
] | |
855033498433fc4b023163b8a1e030790481cc8e | 102d09ef1d6effe166ad703ba4472c45dfb03263 | /py/Unique Binary Search Trees.py | ff810735f7dccf5e13975b50685aee50ae48a74b | [] | no_license | bitcsdby/Codes-for-leetcode | 5693100d4b66de65d7f135bbdd81b32650aed7d0 | 9e24e621cfb9e7fd46f9f02dfc40a18a702d4990 | refs/heads/master | 2016-09-05T08:43:31.656437 | 2014-08-02T15:14:53 | 2014-08-02T15:14:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | class Solution:
# @return an integer
def numTrees(self, n):
if n == 0 or n == 1:
return 1;
l = [];
l.append(1);
l.append(1);
count = 2;
while count <= n:
c = 0;
tmp = 0;
while ... | [
"[email protected]"
] | |
184ebeb33592af81e788e14c06df93a03090abd8 | 5f27bc1a0460a078f6fe33a544f494a5dff7f452 | /script/old/O_0703_arm_move_jaco.py | 1fa6247e4c4c661ef79584d37b0acde343aed2be | [] | no_license | A-Why-not-fork-repositories-Good-Luck/arm_move | 3e381f0310265f47da14beaac136c358fb318f92 | e2e6182cfd93df1935bd3b8e9158134964dc44fa | refs/heads/master | 2023-03-15T18:37:17.337770 | 2020-11-18T06:46:06 | 2020-11-18T06:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,159 | py | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2013, SRI International
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code ... | [
"[email protected]"
] | |
8e83913f251d402a25e5c30c18a1ccbc9ca7bc1b | bfbe642d689b5595fc7a8e8ae97462c863ba267a | /bin/Python27/Lib/site-packages/openmdao.lib-0.8.1-py2.7.egg/openmdao/lib/drivers/newsumtdriver.py | 1fe4b338c4195f801abf288f9fbdec1e2569630d | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | mcanthony/meta-core | 0c0a8cde1669f749a4880aca6f816d28742a9c68 | 3844cce391c1e6be053572810bad2b8405a9839b | refs/heads/master | 2020-12-26T03:11:11.338182 | 2015-11-04T22:58:13 | 2015-11-04T22:58:13 | 45,806,011 | 1 | 0 | null | 2015-11-09T00:34:22 | 2015-11-09T00:34:22 | null | UTF-8 | Python | false | false | 19,803 | py | """
``newsumtdriver.py`` - Driver for the NEWSUMT optimizer.
"""
# disable complaints about Module 'numpy' has no 'array' member
# pylint: disable-msg=E1101
# Disable complaints Invalid name "setUp" (should match [a-z_][a-z0-9_]{2,30}$)
# pylint: disable-msg=C0103
# Disable complaints about not being able ... | [
"[email protected]"
] | |
163d7c44a7e018cae6d6ff4a03b364723f15cc08 | 487c45df5fcbe7fdf6df5a348f6fe163bbb22033 | /leetcode/875_koko_eating_bananas.py | 20b4f0c350be2d1c309eb1f272a208f5b384aa40 | [
"Unlicense"
] | permissive | leetcode-notes/daily-algorithms-practice | dba03ac1c55262f6bae7d5aa4dac590c3c067e75 | 2a03499ed0b403d79f6c8451c9a839991b23e188 | refs/heads/master | 2023-06-18T14:14:58.770797 | 2021-07-12T05:27:32 | 2021-07-12T05:27:32 | 264,057,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | class Solution:
def minEatingSpeed(self, piles, H: int) -> int:
low, high = 1, max(piles)
def cannot_finish(k, piles):
total = 0
for p in piles:
total += p//k
if p % k:
total += 1
return total > H
while... | [
"[email protected]"
] | |
eb8bd2bd90dfe1850bd04800fbf208772c98a519 | 8e07b5b7a8dd38e0ef2c7ffc97d0392d886f32e6 | /venv/Lib/site-packages/mypy/typeshed/third_party/2and3/paramiko/server.pyi | f43bc83b05520072133af6f1a6c7ad7944981cc9 | [] | no_license | RodrigoNeto/cursopythonyt | fc064a2e6106324e22a23c54bdb9c31040ac9eb6 | 279dad531e21a9c7121b73d84fcbdd714f435e7e | refs/heads/master | 2023-07-03T00:54:09.795054 | 2021-08-13T12:42:24 | 2021-08-13T12:42:24 | 395,646,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,113 | pyi | import threading
from typing import Any, List, Optional, Tuple, Union
from paramiko.channel import Channel
from paramiko.message import Message
from paramiko.pkey import PKey
from paramiko.transport import Transport
class ServerInterface:
def check_channel_request(self, kind: str, chanid: int) -> int: ..... | [
"[email protected]"
] | |
87285319b453d6b779837ac5d96b87d989629dbd | 1277c0d30434133a7ce6f4d1db6c04d65b0a49c9 | /backend/findme_20524/wsgi.py | 8403d67f78f9ff859caa0a7e2ffa509f5e7f5195 | [] | no_license | crowdbotics-apps/findme-20524 | aef86f49038e1e06967c3d22fee0968ec769c3b4 | da959e3a82c81a93ce2e6d3388ad610ebc7be7f5 | refs/heads/master | 2022-12-23T10:47:01.480756 | 2020-09-21T19:34:35 | 2020-09-21T19:34:35 | 297,441,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for findme_20524 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.setdefault('DJANGO_... | [
"[email protected]"
] | |
8faa8b56120958de0b6f1135e29aabb4e6389a29 | ea4e3ac0966fe7b69f42eaa5a32980caa2248957 | /download/unzip/pyobjc/pyobjc-14/pyobjc/stable/PyOpenGL-2.0.2.01/src/shadow/GL.KTX.buffer_region.0100.py | ac8f5465112ac5e17f3261bbe25ef82d3803a274 | [] | no_license | hyl946/opensource_apple | 36b49deda8b2f241437ed45113d624ad45aa6d5f | e0f41fa0d9d535d57bfe56a264b4b27b8f93d86a | refs/heads/master | 2023-02-26T16:27:25.343636 | 2020-03-29T08:50:45 | 2020-03-29T08:50:45 | 249,169,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,082 | py | # This file was created automatically by SWIG.
# Don't modify this file, modify the SWIG interface instead.
# This file is compatible with both classic and new-style classes.
import _buffer_region
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
if (name == "this"):
if isinstance... | [
"[email protected]"
] | |
fbab5560e9894901c5617e613add83c277d25710 | 8e8acc57b63a66cb1450fa4d015d4ddcd74cce85 | /liaoxuefengLessons/ObjectOrientedProgramming/ENUM.py | 5e50eaa8c9becb7d3b84f7e8a321feb1a34f2cb0 | [] | no_license | indeyo/PythonStudy | fc2241db7cec8075a59a307ff47c9de83494844b | 099feb4e4c8dec9e68887cedd95705d831e51b0f | refs/heads/master | 2021-03-29T19:04:24.553848 | 2020-06-05T15:07:33 | 2020-06-05T15:07:33 | 247,978,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | #!/usr/bin/env python3
#-*- coding: utf-8 -*-
"""
@Project : StudyPython0-100
@File : ENUM.py
@Time : 2019-08-05 22:57:52
@Author : indeyo_lin
@Version :
@Remark :
"""
"""
练习:
把Student的gender属性改造为枚举类型,可以避免使用字符串:
"""
# from enum import Enum, unique
#
# class Gender(Enum):
# Male = 0
# Female = 1
#
# c... | [
"[email protected]"
] | |
3b6e664d5482c257c0400170a43bf6b823377024 | 5cf7f81791a9d66ba495512f0b1d2c8b6cccbd3d | /python/test/test_rhomb_H_and_R.py | ac268c603a510df1fc1881d48b3b0bc262075ef6 | [
"BSD-3-Clause"
] | permissive | odidev/spglib | 9e0eecbb77b20e09f1affec42af48dc6a1c60e82 | e807f1193ad57af8b916245fc397e4667baaaf92 | refs/heads/develop | 2023-07-03T03:03:37.592891 | 2021-05-17T08:45:07 | 2021-05-17T08:45:07 | 390,248,634 | 0 | 0 | BSD-3-Clause | 2021-07-28T11:44:17 | 2021-07-28T07:01:36 | null | UTF-8 | Python | false | false | 2,280 | py | import unittest
import numpy as np
from spglib import get_symmetry_dataset, find_primitive
from vasp import read_vasp
import os
data_dir = os.path.dirname(os.path.abspath(__file__))
dirnames = ('trigonal', )
rhomb_numbers = (146, 148, 155, 160, 161, 166, 167)
tmat = [[0.6666666666666666, -0.3333333333333333, -0.333333... | [
"[email protected]"
] | |
61bbe9c6a03dc155f5c1f6a09c732284f2f3acdf | 0d9c964fd7644395a3f0763f484e485fcc67f762 | /new/src/21.03.2020/list_of_business.py | 2e49049cc01217aba3b71d33a8cc65d4af44bb18 | [
"Apache-2.0"
] | permissive | VladBaryliuk/my_start_tasks | eaa2e6ff031f2f504be11f0f64f5d99bd1a68a0e | bf387543e6fa3ee303cbef04d2af48d558011ed9 | refs/heads/main | 2023-04-14T14:00:08.415787 | 2021-04-24T13:47:38 | 2021-04-24T13:47:38 | 354,538,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | from tkinter import *
root = Tk()
root.geometry('300x400')
btn2 = Button(text = 'save')
btn2.pack()
text = Entry()
text.pack()
list = Text()
list.pack()
def add ():
todo = text.get() + '\n'
list.insert (END, todo)
btn = Button(text = 'enter',command=add)
btn.pack()
root.mainloop()
| [
"[email protected]"
] | |
c1f0f56f1f31047cfc5c943b9b8cb27094c83a27 | 69bb1d0e824625876207d492722adfdb9d959ad1 | /Codeforces/antonAndDanik.py | c059ac795188e2be373516cbb3ff30f3a2ece7af | [] | no_license | domiee13/dungcaythuattoan | 8e2859264515e0fac3e9f0642a8b79ce5d966fff | 7e95d037d47d6e4777e9cf56b9827c3e42f556b3 | refs/heads/master | 2023-03-28T03:58:44.225136 | 2021-03-29T10:32:52 | 2021-03-29T10:32:52 | 277,798,242 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | # A. Anton and Danik
# time limit per test1 second
# memory limit per test256 megabytes
# inputstandard input
# outputstandard output
# Anton likes to play chess, and so does his friend Danik.
# Once they have played n games in a row. For each game it's known who was the winner — Anton or Danik. None of the games ende... | [
"[email protected]"
] | |
4d7886f416baba1c84d182a66f20391da7c27df2 | 0d5c77661f9d1e6783b1c047d2c9cdd0160699d1 | /python/paddle/fluid/tests/unittests/test_row_conv_op.py | 07dcd108689ae6069e30fe22029258d192215549 | [
"Apache-2.0"
] | permissive | xiaoyichao/anyq_paddle | ae68fabf1f1b02ffbc287a37eb6c0bcfbf738e7f | 6f48b8f06f722e3bc5e81f4a439968c0296027fb | refs/heads/master | 2022-10-05T16:52:28.768335 | 2020-03-03T03:28:50 | 2020-03-03T03:28:50 | 244,155,581 | 1 | 0 | Apache-2.0 | 2022-09-23T22:37:13 | 2020-03-01T13:36:58 | C++ | UTF-8 | Python | false | false | 3,441 | py | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"[email protected]"
] | |
5f5c03bcd52eb2348ea2bfae56c4eb554064760a | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_210/263.py | 07aad036673e87dff6e60957731771366d880485 | [] | 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,406 | py | import operator
fin = open('B-small-attempt2.in', 'r')
fout = open('output.out', 'w')
tcs = int(fin.readline())
for tc in range(0, tcs):
inptemp = fin.readline().split(' ')
ac = int(inptemp[0])
aj = int(inptemp[1])
acs = list()
ajs = list()
for i in range(0, ac):
acinp = fin.r... | [
"[email protected]"
] | |
e7846284c7e134592127b48bc185fe593b0949ec | fe7b700cfe3c06d89d18ffad3eeeb3b8220c1759 | /pipeline/feature-classification/exp-3/selection-extraction/pca/pipeline_classifier_mrsi.py | 30793e60571a5f7f0342ae4b772cf21d2691ce80 | [
"MIT"
] | permissive | DivyaRavindran007007/mp-mri-prostate | 928684a607cf03a2d76ea3e3e5b971bbd3a1dd01 | bd420534b4b5c464e5bbb4a07eabdc8724831f8a | refs/heads/master | 2021-06-08T21:09:15.850708 | 2016-10-20T16:08:57 | 2016-10-20T16:08:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,823 | py | """This pipeline is intended to make the classification of MRSI modality
features."""
from __future__ import division
import os
import numpy as np
from sklearn.externals import joblib
from sklearn.preprocessing import label_binarize
from sklearn.decomposition import PCA
from sklearn.ensemble import RandomForestClas... | [
"[email protected]"
] | |
06e9af435b48d5945c4ae92e1b4270ba096357cc | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /iBqJcagS56wmDpe4x_7.py | 3acaa1ddc25b89eab9db4328cabbfff41f70461d | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | """
The volume of a spherical shell is the difference between the enclosed volume
of the outer sphere and the enclosed volume of the inner sphere:

Create a function that takes `r1` and `r2` as arguments and re... | [
"[email protected]"
] | |
344734125bb7c7899ca6cc6c2558fd173da78d68 | 279ed7207ac2c407487416b595e12f573049dd72 | /pybvk/bvk/bvkmodels/ni_676.py | 8e2c8f20a537ec5b2eaa574c6f66b29f2b1de7de | [] | no_license | danse-inelastic/pybvk | 30388455e211fec69130930f2925fe16abe455bd | 922c8c0a8c50a9fabd619fa06e005cacc2d13a15 | refs/heads/master | 2016-09-15T22:21:13.131688 | 2014-06-25T17:12:34 | 2014-06-25T17:12:34 | 34,995,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | # ni_676.py
# BvK force constants
element = "Ni"
lattice_type = "fcc"
temperature = 676 # Units: K
reference = "De Wit, G.A., Brockhouse, B.N.: J. Appl. Phys. 39 (1968) 451"
details = "All fits use the measured elastic constants. This fit uses general force up to fourth neighbour, axially symmetric force for fifth ... | [
"[email protected]"
] | |
8ff8c60155eca0198afd7158b8f4dbb5f00a51d5 | 163cb8cae7d364a090565710ee9f347e5cdbf38f | /new_deeplab/utils/get_dataset_colormap_test.py | 90005ebbf542c89e44a7dd4783811474cc59853d | [
"CC-BY-4.0",
"CC-BY-3.0"
] | permissive | abhineet123/river_ice_segmentation | 2b671f7950aac6ab2b1185e3288490bc5e079bc1 | df694107be5ad6509206e409f5cde4428a715654 | refs/heads/master | 2023-05-01T11:52:10.897922 | 2023-04-25T22:55:04 | 2023-04-25T22:55:04 | 179,993,952 | 15 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,955 | py | # Copyright 2018 The TensorFlow Authors All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"[email protected]"
] | |
ddfdd2f0efe461b056235acb80be18b8c1228721 | 34165333483426832b19830b927a955649199003 | /publish/library_app/reports/library_book_report.py | f1b54fc8a5cc254109a6f75a8fa9f9b3ecad1cee | [] | no_license | terroristhouse/Odoo12 | 2d4315293ac8ca489d9238f464d64bde4968a0a9 | d266943d7affdff110479656543521889b4855c9 | refs/heads/master | 2022-12-02T01:09:20.160285 | 2020-08-16T13:56:07 | 2020-08-16T13:56:07 | 283,630,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | from odoo import fields,models
class BookReport(models.Model):
_name = 'library.book.report'
_description = 'Book Report'
_auto = False
name = fields.Char('Title')
publisher_id = fields.Many2one('res.partner')
date_published = fields.Date()
def init(self):
self.env.cr.execute("""... | [
"[email protected]"
] | |
99831b86797def2356ed377f20ea20834b08bcec | 94d4ccd443a37c8090a84d730d006edef869b816 | /recursion_and_backtracking/rat_in_maze.py | 8fde6e9bcdff326a7021e497c7d29b0c638e1f3d | [] | no_license | sudo-hemant/CP_CipherSchools | e0fc51d6f77f80709a88a7711ef6360f1fdd13e3 | 4f741f5f6fbbb182bd03135fb3180f5a40acbb1e | refs/heads/master | 2023-03-09T20:59:59.704014 | 2021-02-19T15:27:15 | 2021-02-19T15:27:15 | 338,825,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py |
# https://practice.geeksforgeeks.org/problems/rat-maze-with-multiple-jumps-1587115621/1/?track=DSASP-Backtracking&batchId=154
from collections import deque
def solve(n, maze):
res = [ [0 for i in range(n)] for j in range(n)]
if is_path(0, 0, res, n, maze):
print_sol(n, res)
else:
... | [
"[email protected]"
] | |
80edbd1d65d545f84f4122c4822dc23a4c57785d | 70d39e4ee19154a62e8c82467ef75b601e584738 | /pyth3/mysql/just_mysql_pandas_things_.py | 84e264411f2cd3f02839fd45febb7a3e86ce9f2e | [] | no_license | babywyrm/sysadmin | 6f2724be13ae7e5b9372278856a8c072073beffb | 2a5f3d29c7529bc917d4ff9be03af30ec23948a5 | refs/heads/master | 2023-08-16T03:50:38.717442 | 2023-08-16T03:05:55 | 2023-08-16T03:05:55 | 210,228,940 | 10 | 5 | null | 2023-05-01T23:15:31 | 2019-09-22T23:42:50 | PowerShell | UTF-8 | Python | false | false | 6,634 | py | # MySQL Querying Using Pandas
# Author: Elena Adlaf
# Version 1.2, 10/16/17
# This Python file shows how to query results from table, 't', in database, 'af', stored on a local MySQL server while
# importing the values directly into a Pandas dataframe.
# The table lists details about pieces created by the custom furnit... | [
"[email protected]"
] | |
a54dba4d3ebcdf78eb1020f011bb1570ffd11720 | 3595d51ff2499bb990b87a25b17516edf6907696 | /boards/models.py | a9fc0f9597a2654f291a202c6c60a21410fac535 | [
"Apache-2.0"
] | permissive | maxlipsky/infomate.club | 01fa55b3dfd318212b0c328dd48019b585d3ef9d | 9729b568622120f8cba3d22fefdcfba81d1b5b88 | refs/heads/master | 2020-12-08T19:53:37.231403 | 2020-01-16T19:04:14 | 2020-01-16T19:04:14 | 233,079,581 | 1 | 0 | Apache-2.0 | 2020-01-10T15:49:08 | 2020-01-10T15:49:07 | null | UTF-8 | Python | false | false | 6,435 | py | import uuid
from datetime import datetime, timedelta
from django.contrib.humanize.templatetags.humanize import naturaltime
from django.db import models
from slugify import slugify
from boards.icons import DOMAIN_ICONS
class Board(models.Model):
id = models.UUIDField(primary_key=True, default=uuid.uuid4, editabl... | [
"[email protected]"
] | |
b8241865b3838ea090162eb428a1c8b48348b10e | e692a9074d21c456dbdcb938ce7c74d8254f6ad9 | /Module 010/module 010.py | 815c2efdfd0e3789bf37330b86d323acc2079d0b | [] | no_license | Marius-Juston/ECE-110 | e29b08d5a305a315467635a138ef62a1a638e4ed | 962761b9bb23b02cc2a687bc691d568db8c82b31 | refs/heads/master | 2022-05-29T08:17:58.809019 | 2020-05-05T16:48:45 | 2020-05-05T16:48:45 | 261,530,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import matplotlib.pyplot as plt
import numpy as np
from matplotlib.axes import Axes
from matplotlib.figure import Figure
if __name__ == '__main__':
with open('data-20200502-1713.circuitjs.txt', 'r') as file:
time_step = float(file.readline().split(' ')[4])
lines = tuple(map(int, file.readlines()))... | [
"[email protected]"
] | |
2c4e9748a4fe10c33bdca30bdba1637018100b86 | 9ec4bc3cdba9e46fe05712daeec3e35f5b6bb704 | /hallicrafter2/device/ics.py | ce1fe1212d2c1fc2085fe53bbaeb7981d6a1c3fd | [] | no_license | derekmerck/hallicrafter | 04d7d31017079fcc0c9c9361ad7e653f6e0e6418 | b9439bb9f9b311ca1f8a224ce25c64c836901381 | refs/heads/master | 2020-06-02T03:23:23.086094 | 2019-09-03T02:06:03 | 2019-09-03T02:06:03 | 191,018,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,220 | py | from .device import Device
class SirenIC(Device):
# Control a UM3561 ic
# See https://www.instructables.com/id/Siren-Generation-using-IC-UM3561/ for pinout
#
# 1. sel1
# 2. gnd
# 3. out -> 10k ohm -> NPN transistor that drives speaker gnd line
# 4. not connected (testing)
# 5. active ... | [
"[email protected]"
] | |
20965d57bf76e26a205182ffc8240ddad375cf2b | 0db97db08743783019efe022190f409d22ff95bd | /aliyun/api/rest/Rds20140815DescribeModifyParameterLogRequest.py | a738e55de39ed911b27aa2c242f097a771646719 | [
"Apache-2.0"
] | permissive | snowyxx/aliyun-python-demo | 8052e2a165f1b869affe632dda484d6ca203bd9b | ed40887ddff440b85b77f9b2a1fcda11cca55c8b | refs/heads/master | 2021-01-10T03:37:31.657793 | 2016-01-21T02:03:14 | 2016-01-21T02:03:14 | 49,921,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | '''
Created by auto_sdk on 2015.06.02
'''
from aliyun.api.base import RestApi
class Rds20140815DescribeModifyParameterLogRequest(RestApi):
def __init__(self,domain='rds.aliyuncs.com',port=80):
RestApi.__init__(self,domain, port)
self.DBInstanceId = None
self.EndTime = None
self.PageNumber = None
se... | [
"[email protected]"
] | |
1cf471f736f9047d1985610fbf89b38dffb9bb5d | aeeaf40350a652d96a392010071df8a486c6e79f | /archive/python/Python/binary_search/374.guess-number-higher-or-lower.py | 1f51d98818399ede0698e42d7d7bd0cde96a1879 | [
"MIT"
] | permissive | linfengzhou/LeetCode | 11e6c12ce43cf0053d86437b369a2337e6009be3 | cb2ed3524431aea2b204fe66797f9850bbe506a9 | refs/heads/master | 2021-01-23T19:34:37.016755 | 2018-04-30T20:44:40 | 2018-04-30T20:44:40 | 53,916,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # The guess API is already defined for you.
# @param num, your guess
# @return -1 if my number is lower, 1 if my number is higher, otherwise return 0
# def guess(num):
class Solution(object):
def guessNumber(self, n):
"""
:type n: int
:rtype: int
"""
| [
"[email protected]"
] | |
4ae49460f06822543fc2ff34e14d8fef115016f7 | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res_bw/scripts/common/lib/abc.py | 37d2a8d88679def4d589700c441407cc6fa1a0d0 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 6,294 | py | # 2015.11.10 21:32:36 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/abc.py
"""Abstract Base Classes (ABCs) according to PEP 3119."""
import types
from _weakrefset import WeakSet
class _C:
pass
_InstanceType = type(_C())
def abstractmethod(funcobj):
"""A decorator indicating abstract me... | [
"[email protected]"
] | |
96e13ce85156c34b4c16aa46eb26cb5774458507 | b9e5aebb49734ad47825130529bd64e59f690ecf | /chapter_9/die.py | 6c02c0f3e4e49e928c96c1881f050c10ddd4aaf1 | [] | no_license | mikegirenko/python-learning | dab0f67d990d95035f93720986c84aaf422f7a9f | db9e3f0e3897caf703169d1f14b15a9aa1901161 | refs/heads/master | 2021-07-09T08:03:40.535653 | 2020-08-05T00:13:41 | 2020-08-05T00:13:41 | 169,983,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | from random import randint
class Die:
def __init__(self, sides=6):
self. sides = sides
def roll_die(self):
print('\t', randint(1, self.sides))
print('Printing 6 sided roll:')
six_sided_roll = Die()
for i in range(1, 11):
six_sided_roll.roll_die()
print('Printing 10 sided roll:')
ten_si... | [
"[email protected]"
] | |
dd422b4ebe4b9e6aeb1fc219d30133cd31641577 | 296287f05a1efed570b8da9ce56d3f6492126d73 | /snippets/draw_text_in_image.py | fcbb7d055099100cada3113b7ce8812f110ddacb | [] | no_license | formazione/python_book | 145f8a2598b6b75736a7c33a796b9fdd8cff668e | d7822b312c1db028bb70e25385a74b227a9a2609 | refs/heads/main | 2023-07-05T20:15:18.166771 | 2021-08-12T14:14:25 | 2021-08-12T14:14:25 | 320,499,187 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | from PIL import Image,ImageDraw,ImageFont
import tkinter as tk
def create_img_with_text(text=""):
if text == "":
text = "Pythonprogramming.altervista.org"
# sample text and font
unicode_text = u"Pythonprogramming.altervista.org"
font = ImageFont.truetype(
"C:\\Program Files\\Android\\Android Studio\\jre\\jre\... | [
"[email protected]"
] | |
ee3dbda8b19a10b1e5348fd84e2fbaa94ac30ee0 | 07504838d12c6328da093dce3726e8ed096cecdb | /pylon/resources/properties/minPressureSetpoint.py | 37a8d2471523d2fe28bceff3606f5ef910265dfe | [] | no_license | lcoppa/fiat-lux | 9caaa7f3105e692a149fdd384ec590676f06bf00 | 7c166bcc08768da67c241078b397570de159e240 | refs/heads/master | 2020-04-04T02:47:19.917668 | 2013-10-10T10:22:51 | 2013-10-10T10:22:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | """minPressureSetpoint standard property type, originally defined in resource
file set standard 00:00:00:00:00:00:00:00-0."""
# Copyright (C) 2013 Echelon Corporation. All Rights Reserved.
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation ... | [
"[email protected]"
] | |
078c40258e6bf4fcda2fc2317f847dddfb2bce21 | 83292e8ee5b14a30f61dcaf3067129e161832366 | /douban_film.py | a798c36cfe2919cb8fa74d911c62c1883780d1e7 | [] | no_license | A620-Work-Exchange/Application-Integration | 19197513f1aef67f27b4b984a736cd28ff9c8ac1 | baada55dd1b988112afd6bd4dc781670983337b8 | refs/heads/master | 2020-05-20T20:03:38.842375 | 2019-05-18T09:11:20 | 2019-05-18T09:11:20 | 185,736,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | from urllib.request import urlopen
from time import sleep
import requests
from json_util import JsonUtil
import json
def get_top_film():
url = 'https://api.douban.com/v2/movie/top250'
for start in range(0, 250, 50):
req = requests.get(url, params={'start': start, 'count': 50})
data = req.json... | [
"[email protected]"
] | |
55cf1f4ce50995a9d07d8447d478a6db0d5bb5be | bb198232df12a1adb9e8a6164ff2a403bf3107cf | /wifi-dump-parser-3/template-parsing.py | 5ebdb33d76793457a8eace4b4066f6e2e0ee8ee9 | [] | no_license | vanello/wifi-arsenal | 9eb79a43dfdd73d3ead1ccd5d2caf9bad9e327ee | 1ca4c5a472687f8f017222893f09a970652e9a51 | refs/heads/master | 2021-01-16T22:00:37.657041 | 2015-09-03T03:40:43 | 2015-09-03T03:40:43 | 42,060,303 | 1 | 0 | null | 2015-09-07T15:24:11 | 2015-09-07T15:24:11 | null | UTF-8 | Python | false | false | 21,786 | py | #Author : Abhinav Narain
#Date : May 6, 2013
#Purpose : To read the binary files with data from BISmark deployment in homes
# Gives the frames: transmitted and received by the Access point in human readable form
# To test the output of the files with the dumps on clients; and understanding the trace ... | [
"[email protected]"
] | |
f2e7f0e94bba710d8fdae5692b1f3256e1ae55d1 | 0bfb55b41282803db96b90e7bba73d86be7e8553 | /submissions/migrations/0002_auto_20161028_0540.py | cd60356ef018a13dc5711524a56d9a60a4a3a77a | [
"MIT"
] | permissive | OpenFurry/honeycomb | eebf2272f8ae95eb686ad129555dbebcf1adcd63 | c34eeaf22048948fedcae860db7c25d41b51ff48 | refs/heads/master | 2021-01-11T01:52:40.978564 | 2016-12-29T18:08:38 | 2016-12-29T18:08:38 | 70,649,821 | 2 | 2 | null | 2016-12-29T18:08:39 | 2016-10-12T01:22:38 | Python | UTF-8 | Python | false | false | 2,187 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-28 05:40
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('usermg... | [
"[email protected]"
] | |
2a97d4fde1b262d7d7571c5622491d16841bed3f | 313bb88c43d74995e7426f9482c6c8e670fdb63c | /07-modules/example6_module.py | 8926b868c6f45aa8be74c33928f9bfcea9bd86be | [] | no_license | martakedzior/python-course | 8e93fcea3e9e1cb51920cb1fcf3ffbb310d1d654 | 3af2296c2092023d91ef5ff3b4ef9ea27ec2f227 | refs/heads/main | 2023-05-06T07:26:58.452520 | 2021-05-26T16:50:26 | 2021-05-26T16:50:26 | 339,822,876 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import example6_module
import shapes
if __name__ == '__ main__':
print(shapes2.rectangle_aera(3, 4))
else:
print('Jestem teraz modulem')
print('wartość zmiennej __name__:', __name__)
print('moduł - wartość zmiennej __name__:', __name__) | [
"[email protected]"
] | |
2c5fcb6a21f19430ac8de3c70be24f2e6b1711a8 | 90cad1df7b7d424feb8e71ff3d77e772d446afdf | /test/test_reebill/test_excel_export.py | 56fabef7c4bff8d7f0b9276c42aab2347c599839 | [] | no_license | razagilani/billing | acb8044c22b4075250c583f599baafe3e09abc2e | fd2b20019eeedf0fcc781e5d81ff240be90c0b37 | refs/heads/master | 2021-05-01T14:46:32.138870 | 2016-03-09T18:55:09 | 2016-03-09T18:55:09 | 79,589,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,940 | py | from copy import deepcopy
from datetime import date, datetime
from itertools import cycle
from StringIO import StringIO
import unittest
import mock
from core import init_config, init_model
from core.model import Register, Charge, Session, Utility, Address,\
Supplier, RateClass, UtilityAccount
from core.model.util... | [
"[email protected]"
] | |
64d45d9b34c9e2d7e84fae07e4afc49f2795317a | 0c9ba4d9c73fb3b4ee972aed0b6d844d8a9546a9 | /TerchaerCode/s13day3课上代码/day3/s1.py | 2b5de365e8984bdb16be174cabf9b4b954ffbc68 | [] | no_license | SesameMing/Python51CTONetwork | d38179122c8daaed83d7889f17e4c3b7d81e8554 | 76169c581245abf2bcd39ed60dc8c9d11698fd3a | refs/heads/master | 2020-04-15T12:47:15.234263 | 2018-06-02T15:04:04 | 2018-06-02T15:04:04 | 65,876,269 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Alex Li
# 1、set,无序,不重复序列
# li = [11,222]
# print(li)
# a. 创建
# li = []
# list((11,22,33,4))
# list __init__,内部执行for循环(11,22,33,4) [11,22,33,4]
# 原理,list
# dic = {"k1":123}
# se = {"123", "456"}
# s = set() # 创建空集合
# li = [11,22,11,22]
# s1 = set(li)
# print(s1)
# b... | [
"[email protected]"
] | |
5acdfe52eb25d3cd6de5b1bea421707d7b5ba3cd | 0630a7addb90600293f0ee0787dd6ab0ac77b09a | /LinkedList/FindDuplicatesInArray.py | 35abfd91e5fb529b564d57ba99c6e779fb8a5c5a | [
"MIT"
] | permissive | aritraaaa/Competitive_Programming | 48ecd3b6e28549889160c04cdbd19a5ad06fa49b | ee7eadf51939a360d0b004d787ebabda583e92f0 | refs/heads/master | 2023-06-12T07:04:07.698239 | 2021-07-01T11:11:24 | 2021-07-01T11:11:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | class Solution:
# @param A : tuple of integers
# @return an integer
def repeatedNumber(self, A):
'''
# This is the marker concept, by list modification
A = list(A)
if len(A) <= 1:
return -1
for i in range(len(A)):
num = abs(A[i])
if... | [
"[email protected]"
] | |
e31ee367fc6802635bca02f0078aae7a1c53faf9 | cc2d37a71eac8422b0722533766b3ee95b5b5d1a | /data_import/zmmutypes.py | 4480cded4f86f0e6a1b75637c6e882db37268004 | [] | no_license | JelleZijlstra/taxonomy | 88018a1a0ec114875c45cf87ffc825957fc3e870 | 56aac782e2cbbd084a14d2ad1b1572729ba387be | refs/heads/master | 2023-08-17T03:20:13.576928 | 2023-08-07T00:47:41 | 2023-08-07T00:47:41 | 10,962,492 | 0 | 0 | null | 2023-08-17T04:53:54 | 2013-06-26T08:21:35 | Python | UTF-8 | Python | false | false | 12,168 | py | import copy
import re
import unicodedata
from collections.abc import Iterable
from typing import Any
from taxonomy.db import constants, models
from . import lib
from .lib import DataT, PagesT
SOURCE = lib.Source("zmmutypes.txt", "ZMMU-types.pdf")
ORDER = "Отряд"
SECTION_INTRO = ("ЛЕКТОТИП", "ГОЛОТИП", "ПАРАТИП", "СИ... | [
"[email protected]"
] | |
bb090a14d03d9ae34916626a733163fb80a13d07 | 6fd5d30cf21716893388442eb0f9c16e13b91315 | /ABC/146/b.py | c2dd6c1a2676c0ffb2fe3790a90434aca68c06bd | [] | no_license | mgmk2/atcoder-python | 23d45f3195977f1f5839f6a6315e19cac80da2be | beec5857a8df2957ff7b688f717d4253b4196e10 | refs/heads/master | 2021-06-09T20:00:22.500222 | 2021-05-04T15:36:39 | 2021-05-04T15:36:39 | 179,711,330 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | n = int(input())
s = input()
a = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ans = ''
for i in range(len(s)):
idx = n + a.find(s[i])
ans += a[idx % 26]
print(ans)
| [
"[email protected]"
] | |
e34f54532e8403ba6405c2e1be24e8b4eb190ba3 | bcc3359817a74c97b8804d415b5b578d03ca4fc9 | /test/assets/classes/message.py | ae9a9cd7c2fcfd518fe6587ade21a5477f78edb7 | [] | no_license | pydget/pyspare | 21c7677e66987ef4625dc7a71f041beb025b0350 | 46ef0e3c4eca1ceb52a86cae3d790483d25b2906 | refs/heads/master | 2023-02-19T19:18:13.743639 | 2021-01-16T01:27:20 | 2021-01-16T01:27:20 | 288,975,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from dataclasses import dataclass
@dataclass
class Message:
__slots__ = 'origin', 'target', 'body'
def __init__(self, origin, target, body):
self.origin = origin
self.target = target
self.body = body
| [
"[email protected]"
] | |
ad03b895afc6d180aa2358f68de8fcb600e871dd | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /W3Hptw6ieTtrWNw4H_17.py | 8740c16f02a86224026dad019c28269cb2d8f877 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,753 | py | """
The basic **Polybius Square** is a 5x5 square grid with the letters A-Z
written into the grid. "I" and "J" typically share a slot (as there are 26
letters and only 25 slots).
| 1| 2| 3| 4| 5
---|---|---|---|---|---
**1**| A| B| C| D| E
**2**| F| G| H| I/J| K
**3**| L| M| N| O| P
**4**| Q| R| S... | [
"[email protected]"
] | |
a3522fca20b8464003183ee290a2778619feb8d8 | cb4db25a0b13f058f1a31b38d80d76a118d1e2dc | /venv/lib/python3.6/site-packages/google/cloud/pubsub_v1/subscriber/policy/thread.py | 39f161a3b93e9a362f65cc6dcd60b839cd2cad34 | [
"MIT"
] | permissive | Hackaton-Dragons/Never-Boils | 73df2b65f54a77d961ce53dea350b7d2a4261154 | 2d43e6e07fb18409d5a964f44f481d28d2352531 | refs/heads/master | 2020-03-09T20:27:54.554616 | 2018-10-08T05:52:33 | 2018-10-08T05:52:33 | 128,985,616 | 1 | 0 | MIT | 2018-04-15T13:32:45 | 2018-04-10T19:35:32 | Python | UTF-8 | Python | false | false | 12,056 | py | # Copyright 2017, 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 required by applicable law or a... | [
"[email protected]"
] | |
a44762f7f83ec08c0a592bc170b50259d8bd49e2 | 292417a70e83d33fc4cedaed34d1b8e859ffe1a7 | /market/urls.py | 113708503a9a96ee4ed392f28d9d1321ee1c94c8 | [] | no_license | cooluks2/Niche-market-mine | c739144b61dfecd641f19bfa20439388d9dd562d | 2eacedd83ae3d1690ac56f9ae4089a44737c4771 | refs/heads/master | 2022-12-10T09:45:13.759650 | 2020-08-31T02:52:07 | 2020-08-31T02:52:07 | 289,786,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,253 | py | from django.urls import path
from market.views import StoreDV, StoreLV, StoreCreateView, StoreUpdateView, StoreDeleteView, store_download
from market.views import MarketDV, MarketCreateView, MarketUpdateView, MarketDeleteView, market_download
from mysite.views import HomeView
from market.models import Market, Location
... | [
"[email protected]"
] | |
6cb65b44504b20720b6967c08c0fb580dd2850cb | cd6a835b14596620d46236ce2ec8003b42dcd393 | /machina/apps/forum/urls.py | 588a345c6d1914ddacaafe935dbb9bae7b6ff0a3 | [] | no_license | VanHai88/covert-site | bfec3ed75a75f4a29614906d982fd565ac1e011b | 2385ebaf1ed6c0eb42027f6665f545ce60828c12 | refs/heads/master | 2023-06-08T19:43:18.339787 | 2021-06-22T09:28:00 | 2021-06-22T09:28:00 | 379,212,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | """
Forum URLs
==========
This module defines URL patterns associated with the django-machina's ``forum`` application.
"""
from django.urls import path
from machina.core.loading import get_class
from machina.core.urls import URLPatternsFactory
class ForumURLPatternsFactory(URLPatternsFactory):
"""... | [
"[email protected]"
] | |
3370e689410d396a827a715f14aedb1803000b7e | f048f66977ebcfd3973f5cb41911e5de8b1bf7f5 | /pullenti/ner/NumberSpellingType.py | 72db57f98484782ba6c07c2f861ed30185173d7c | [] | no_license | AAA1911/PullentiPython | e01223d2d8656a8fbcc0873446a12d7e5c913f4a | f25b228c8eef9b70acb1285f405c976542342319 | refs/heads/master | 2020-12-22T12:56:21.701229 | 2019-12-11T08:34:43 | 2019-12-11T08:34:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 708 | py | # Copyright (c) 2013, Pullenti. All rights reserved. Non-Commercial Freeware.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project (www.pullenti.ru).
# See www.pullenti.ru/downloadpage.aspx.
from enum import IntEnum
class NumberSpellingType(IntEnum):
... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.