blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aca0f8da76438bb92344a411b386bae33b859c61 | 804d40b874e2eb1f2e9f3f3f124d507bf2b517f1 | /env/Lib/site-packages/sqlalchemy/dialects/mysql/json.py | 4961ef33b155b194515e5e298d98eb38f3cc976d | [] | no_license | Nestor-Leyva/api-flask | 86d5d3053e62767813aeacea5f30cc6a355320d0 | 55675a02fd79263518b0dfc731a2b4a2be50bd0d | refs/heads/main | 2023-08-21T03:00:18.740097 | 2021-10-04T19:25:38 | 2021-10-04T19:25:38 | 413,517,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,121 | py | # mysql/json.py
# Copyright (C) 2005-2021 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from __future__ import absolute_import
from ... import types as sqltypes
... | [
"noreply@github.com"
] | Nestor-Leyva.noreply@github.com |
463affe2ad1841699dfb96a3668f21e2c37af98e | 0ce68cc0e9b93ae339e69f9f328e27262ebe0ab9 | /art/attacks/inference/membership_inference/label_only_boundary_distance.py | be29c3e16d90254053b6f3121a0fd6f4623acf20 | [
"MIT"
] | permissive | igor-barinov/adversarial-robustness-toolbox | ede762bafa471d0d0664e82649f35bf0455c0d9a | 10518daca0d5f2eb3bcd64022c2151cadc843443 | refs/heads/main | 2023-07-16T08:36:51.500788 | 2021-07-14T15:19:45 | 2021-07-14T15:19:45 | 376,598,416 | 1 | 0 | MIT | 2021-06-13T17:09:16 | 2021-06-13T17:09:15 | null | UTF-8 | Python | false | false | 8,046 | py | # MIT License
#
# Copyright (C) The Adversarial Robustness Toolbox (ART) Authors 2020
#
# 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
# r... | [
"beat.buesser@ie.ibm.com"
] | beat.buesser@ie.ibm.com |
3413e4da2bfd468cf595d767feb1d2525b88ca04 | cdfb77f5fb782ed8c731c6789ba154fefb34b830 | /Seção 7/deque.py | 1677e2b381400de0a3e586e8e583e9016cf89942 | [] | no_license | Yuri-Santiago/curso-udemy-python | 7dc83e0ade45e8d959ce12b81098a13617e0a7ca | 2af0ddad01b08f6afd0bfe35648212d4ee49f52b | refs/heads/master | 2023-04-21T07:11:35.594753 | 2021-05-18T05:14:56 | 2021-05-18T05:14:56 | 350,412,085 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | """
Módulo Collections - Deque
Podemos dizer que o Deque é uma lista de alta performance.
"""
from collections import deque
# Criando deques
deq = deque('yuri')
print(deq)
# Adicionando elementos no deque
deq.append('m') # Adciona no final
print(deq)
deq.appendleft('O') # Adiciona no começo
print(deq)
# Remover... | [
"yurimateussantiago@gmail.com"
] | yurimateussantiago@gmail.com |
05e7e379498d8da233aebf0da6207fd6cce541c8 | fc9f4e6af9df3d05c507c9e114b956dfc26cd0f0 | /chapters/2023/Qualité logicielle dans les notebooks Jupyter/assets/python-scripts/0002_get_basket_composition_for_date_range.py | f241d486a24f743a1215f5f1f900614880dfe8a5 | [] | no_license | RIMEL-UCA/RIMEL-UCA.github.io | 0f1334bf9ba77a5ef59c63065f2dbe7c00d70f25 | 3009e69eab06c9dc4f6f2b7f866fa0b00f909516 | refs/heads/master | 2023-07-03T16:00:05.606141 | 2023-02-12T14:40:35 | 2023-02-12T14:40:35 | 230,765,683 | 7 | 29 | null | 2023-03-05T22:09:35 | 2019-12-29T15:04:00 | Jupyter Notebook | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import datetime as dt
import pandas as pd
from gs_quant.markets.baskets import Basket
from gs_quant.session import Environment, GsSession
# In[ ]:
client = 'CLIENT ID'
secret = 'CLIENT SECRET'
GsSession.use(Environment.PROD, client_id=client, client_secret=secret, ... | [
"vincetl74@gmail.com"
] | vincetl74@gmail.com |
c33a7c77d3a95e5a197628b12e94dbd929b9403d | 4359911a3546134982c10fa2965a85e3eaf244c1 | /test_3d_car_instance.py | 34f7356def88cc6d5a44f77c0ef23b095232db3a | [] | no_license | itsme-ranger/ApolloScape_InstanceSeg | 154614eefbf4965204cfc243f77ea52a8830322f | 816abea8992abdcd54f0fc155620c1b8da41ba2d | refs/heads/master | 2022-04-10T02:48:38.147939 | 2020-02-08T09:36:11 | 2020-02-08T09:36:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,122 | py | """Perform inference on one or more datasets."""
import argparse
import cv2
import os
import pprint
import sys
import matplotlib
#matplotlib.use('Agg')
import torch
os.environ['CUDA_VISIBLE_DEVICES'] = '1'
import _init_paths # pylint: disable=unused-import
from core.config import cfg, merge_cfg_from_file, merge_cfg_... | [
"stevenwudi@gmail.com"
] | stevenwudi@gmail.com |
d185dff0848d40badb6664ead738792964b15ce0 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /pzQXHMqizBmaLDCHc_17.py | 92b7a0873f57358e73a7f1a469c02827953bbc1a | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py |
def calculate_damage(your_type, opponent_type, attack, defense):
effectiveness=1
d = {('fire','grass'):2,('fire','water'):0.5,('fire','electric'):1,('water', 'grass'):0.5,
('water', 'electric'):0.5,('grass', 'electric'):1, ('grass','fire'):0.5,("grass", "water"):2}
for i in d:
if i == (your_type,opp... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9c2abe985a3afab65e9881bb794b7c361855e052 | 91b2fb1fb6df216f2e365c3366bab66a567fc70d | /Week09/每日一题/61. 旋转链表.py | 5edbeab4480fb64151aaafd831aeb3035a12ede2 | [] | no_license | hrz123/algorithm010 | d17aee642f03f607a7984beb099eec18f2de1c8e | 817911d4282d2e226518b3533dff28282a91b3d4 | refs/heads/master | 2022-12-20T14:09:26.365781 | 2020-10-11T04:15:57 | 2020-10-11T04:15:57 | 270,178,423 | 1 | 0 | null | 2020-06-07T03:21:09 | 2020-06-07T03:21:09 | null | UTF-8 | Python | false | false | 4,281 | py | # 61. 旋转链表.py
# Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def rotateRight(self, head: ListNode, k: int) -> ListNode:
if not head:
return head
size = self.get_size(head)
k %= size
... | [
"2403076194@qq.com"
] | 2403076194@qq.com |
fa19bb1aae904e95f252db7303fe8a7bf7953dce | fd882ae9ceab15868b102328ec33e9d3dbe73cb4 | /devil/devil/android/sdk/adb_compatibility_devicetest.py | d4e63ade953b10753d42d875a72bf7d2d58d2169 | [
"BSD-3-Clause"
] | permissive | rohitrayachoti/catapult | 9a904e4120dabdc61643897610ad894b06faa52b | cd2eebd327e35c839149f7a4d888b046d628df12 | refs/heads/master | 2022-03-16T11:47:18.234529 | 2020-10-09T20:10:31 | 2020-10-09T21:41:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,676 | py | #!/usr/bin/env python
# Copyright 2016 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 contextlib
import os
import posixpath
import random
import signal
import sys
import unittest
if sys.version_info.major >= 3:
... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
0e5570449a1fc4e0ffc94af74051560a30a4798b | 2d0d39b7c066d6f98199e5968dfe2ad3f078eb4a | /Python3/Dictionaries/pop_popitems_update.py | 37b39a2443fcda48fefc11e58ea3e32b96916f87 | [
"MIT"
] | permissive | norbertosanchezdichi/TIL | a232b8648eb41cfb6d74ed6f09affba94c7d6bbb | 45304c1896725fb8ffbe957f4da5f9a377f7ad62 | refs/heads/master | 2023-05-26T20:04:50.146277 | 2023-05-20T17:10:44 | 2023-05-20T17:10:44 | 222,038,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | student = {
'name': 'Norberto',
'owns_parrot' : True,
'favorite_language': 'Python',
25 : 'my favorite number!'}
print(f'{student =}')
print(f'{student.pop(25) =}')
print(f'{student =}')
print(f'{student.popitem() =}')
print(f'{student.popitem() =}')
print(f'{student =}')
person = {'city': 'Los Angel... | [
"norbertosanchezdichi@users.noreply.github.com"
] | norbertosanchezdichi@users.noreply.github.com |
e5ef6e99151307ff308b5f59eb0e82f785a86ec7 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/sympy/2015/12/authors_update.py | be1a714c8269f40c37c1f3444979dfcf925bc2b3 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 2,770 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
A tool generate AUTHORS. We started tracking authors before moving to git, so
we have to do some manual rearrangement of the git history authors in order to
get the order in AUTHORS.
"""
from __future__ import unicode_literals
from __future__ import print_function
imp... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
3f9e25b9467dc1ba529923a9c89c66a19ee6aacd | 19cf0afe2ee84711337a661630974c74dd29d946 | /CLOVER/nature2017/mcs_energy.py | 314bfeee39f64e5f79f591c488f20ac33ab1abe2 | [] | no_license | zhpfu/proj_CEH | b253bfe9334a372af7d9de7ba21cb57e52b4f370 | b4be27bdf1e4452baff276014da014b7ff89fddc | refs/heads/master | 2022-12-26T11:27:48.126308 | 2020-10-02T19:06:36 | 2020-10-02T19:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py |
from decimal import Decimal
lv = 2.26*1e6 # energy of evaporation in J / kg of water
seconds_day = (60*60*24)
storm_acc_rain = 19 # mm / storm on average or kg / m2
wetted_area = 100000*1e6 # storm area in square metres 12 m/s over 24 hours
storm_per_m2 = storm_acc_rain * lv # J / m2 = W s / m2
print('%.2E'... | [
"cornelia.klein@gmx.de"
] | cornelia.klein@gmx.de |
9b6dba52e389e6fefc316b128ba47280ee641249 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5648941810974720_1/Python/iakl/solution_large.py | d656ecb440e5e40876b6bfd9698fe80d36b9c7e0 | [] | 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 | 1,402 | py | input_file = "A-large.in"
output_file = "A-large.out"
in_f = open(input_file)
T = -1
N = -1
tcs = []
for l in in_f:
sl = l.strip()
if len(sl) == 0:
continue
if T == -1:
T = int(sl)
continue
tcs.append(sl)
in_f.close()
out_f = open(output_file, "w")
def O... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
d773bda77e43e291d97be37bee13c098710d31cf | 7c551e749064b25af706b9167211050f8c6ad0a9 | /signatures/windows/infostealer_keylogger.py | 53b784f83f339cd94322d7f17b1539b9363316a7 | [] | no_license | dashjuvi/Cuckoo-Sandbox-vbox-win7 | fa382828b4895c5e1ee60b37a840edd395bf1588 | a3a26b539b06db15176deadeae46fc0476e78998 | refs/heads/master | 2020-03-12T08:33:06.231245 | 2019-01-14T23:09:02 | 2019-01-14T23:09:02 | 130,529,882 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | # Copyright (C) 2012 Thomas "stacks" Birn (@stacksth)
# Copyright (C) 2014 Claudio "nex" Guarnieri (@botherder)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License,... | [
"diegovm14@gmail.com"
] | diegovm14@gmail.com |
0120a0666de2492a42fec06064f920cf942ac669 | 0c6100dc16291986fab157ed0437f9203f306f1b | /2000- 3000/2356.py | 6b7f8786e155e42660feea4e0eb1af9ab1f4caa9 | [] | no_license | Matuiss2/URI-ONLINE | 4c93c139960a55f7cc719d0a3dcd6c6c716d3924 | 6cb20f0cb2a6d750d58b826e97c39c11bf8161d9 | refs/heads/master | 2021-09-17T09:47:16.209402 | 2018-06-30T08:00:14 | 2018-06-30T08:00:14 | 110,856,303 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | while True:
try:
seq1 = input()
seq2 = input()
except EOFError:
break
if seq2 in seq1: # Se a sequencia 2 estiver contida na sequencia 1, ela é resistente
print("Resistente")
else:
print("Nao resistente")
| [
"noreply@github.com"
] | Matuiss2.noreply@github.com |
773f7fef36812d17cd02f2a0c2a452e95541bfd7 | 6872caaa6c3bb59995627064ed1ab63df403bdf6 | /eyantra_provider/venv/Lib/site-packages/authlib/jose/rfc7518/_backends/_key_cryptography.py | 066c5da1e86247fa58b95e4ddde79714d1aed8d9 | [
"MIT"
] | permissive | Andreaf2395/OpenID-Provider | 3189780631d9057140e233930ace72e9bfc76e58 | cdedd42cc49e6f03e3b2570c03fb1f4a2c83be34 | refs/heads/Sameeksha_Final_Provider | 2023-08-21T16:05:42.864159 | 2020-06-18T18:47:16 | 2020-06-18T18:47:16 | 273,314,708 | 0 | 0 | MIT | 2020-06-18T18:48:34 | 2020-06-18T18:44:29 | Python | UTF-8 | Python | false | false | 1,580 | py | from cryptography.hazmat.primitives.serialization import (
load_pem_private_key, load_pem_public_key, load_ssh_public_key
)
from cryptography.hazmat.primitives.asymmetric.rsa import (
RSAPrivateKey, RSAPublicKey
)
from cryptography.hazmat.primitives.asymmetric.ec import (
EllipticCurvePrivateKey, EllipticCu... | [
"sameekshabhatia6@gmail.com"
] | sameekshabhatia6@gmail.com |
01916b1dc80855030aa378e97495ed5099a7b2a1 | 1c562b288a92dbef9ee76744f73acd334ba56306 | /jaguar/tests/test_room_metadata.py | 38f6ba87fbbf6b36be13158c768b806276852ce4 | [] | no_license | mkhfring/pychat | 862ffaaee01ea5927e94640e19d88d698ed170af | 8d7c4ea8eb35d8216c2f4194b00483995052b8ea | refs/heads/master | 2021-03-13T07:13:55.433143 | 2020-03-11T18:44:26 | 2020-03-11T18:44:26 | 246,652,274 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | from bddrest.authoring import status, response
from jaguar.tests.helpers import AutoDocumentationBDDTest
class TestRoomMetadata(AutoDocumentationBDDTest):
def test_metadata(self):
with self.given('Test metadata verb', '/apiv1/rooms', 'METADATA'):
assert status == 200
fields = res... | [
"khajezade.mohamad@gmail.com"
] | khajezade.mohamad@gmail.com |
9df6392902b582ba186f117b11700d66985b2de9 | ef243d91a1826b490e935fa3f3e6c29c3cc547d0 | /lxml/etree/CommentBase.py | 29cd0fa1b6fe12df733b0e6bce2364a1a113ec15 | [] | no_license | VentiFang/Python_local_module | 6b3d0b22399e817057dfd15d647a14bb1e41980e | c44f55379eca2818b29732c2815480ee755ae3fb | refs/heads/master | 2020-11-29T11:24:54.932967 | 2019-12-25T12:57:14 | 2019-12-25T12:57:14 | 230,101,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | # encoding: utf-8
# module lxml.etree
# from F:\Python\Python36\lib\site-packages\lxml\etree.cp36-win_amd64.pyd
# by generator 1.147
""" The ``lxml.etree`` module implements the extended ElementTree API for XML. """
# imports
import builtins as __builtins__ # <module 'builtins' (built-in)>
from ._Comment import _Comm... | [
"5149528+ventifang@user.noreply.gitee.com"
] | 5149528+ventifang@user.noreply.gitee.com |
520fb4963fd27b6f09e539e0d5fdf44b99f18a32 | ba1d0f05e2faf2f21f076c90960e436db2930d36 | /src/items/view.py | be96e57742877f7c5343250254dacff23ff56a4a | [
"MIT"
] | permissive | elipavlov/items | 94d553d05bab4e444c1172f96045058da387db64 | c935e3321284af251c3339e72531f26e9dd64802 | refs/heads/master | 2021-01-22T20:18:27.036787 | 2017-03-20T18:18:20 | 2017-03-20T18:18:20 | 85,308,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,752 | py | # coding=utf-8
from sqlite3 import IntegrityError
from flask import json, request, url_for, flash, jsonify, session
from items.exceptions import DataExtractionError
from sqlalchemy import exc
from .config import app
from .models import db, Item
from logging import getLogger
logger = getLogger(__name__)
def _proce... | [
"eli.pavlov.vn@gmail.com"
] | eli.pavlov.vn@gmail.com |
bbd765025d00ad5f5576e91fbfc14956a25fa47a | c600f82e32bb1cbe22c6aff42371b1526ecae440 | /src/livestreamer/packages/flashmedia/flv.py | 7671fe0f2ae8ded170b8b509a32fa79bb9459f33 | [
"BSD-2-Clause"
] | permissive | john-peterson/livestreamer | 6445a91cfd6f2002c2184c8c125934a1b5616cea | 5b268a9cf1a157bbd2fecd3e61c110f046680ab1 | refs/heads/master | 2020-12-01T03:02:56.109651 | 2012-12-30T16:14:15 | 2012-12-30T16:14:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | #!/usr/bin/env python
from .tag import Header, Tag
from .compat import is_py2
class FLV(object):
def __init__(self, fd=None):
self.fd = fd
self.header = Header.deserialize(self.fd)
def __iter__(self):
return self
def __next__(self):
try:
tag = Tag.deserialize(... | [
"chrippa@tanuki.se"
] | chrippa@tanuki.se |
a217ad299a4c52b3e630ca5237cbe36640af382d | 77e22775135dff0de080573c7a6e83ef373fe4cb | /dl/data/base/datasets.py | 20962cd49a0f1a1f01673ec07dc9f00f7f197657 | [
"MIT"
] | permissive | flyingGH/pytorch.dl | bfcd23ddbc7d405cbba7ce15695e0dda75b755fe | d82aa1191c14f328c62de85e391ac6fa1b4c7ee3 | refs/heads/master | 2023-06-01T11:21:15.636450 | 2021-03-31T05:47:31 | 2021-03-31T05:47:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,809 | py | from torch.utils.data import Dataset
import abc, os, cv2
import numpy as np
from pycocotools.coco import COCO
from xml.etree import ElementTree as ET
from .exceptions import _TargetTransformBaseException, MaximumReapplyError
from .._utils import DATA_ROOT, _get_xml_et_value, _check_ins
reapply_in_exception = True
max... | [
"kado_89_ssp_jun@yahoo.co.jp"
] | kado_89_ssp_jun@yahoo.co.jp |
c2f89f6c6b456ec887bd59fcc97d7a64f2a6337c | a58d930f68712bc9635911af646711201bd1634d | /Lib/site-packages/flask_debugtoolbar/panels/sqlalchemy.py | ded1c101a228d80486fb6d8e410af07cb20adbe6 | [
"MIT"
] | permissive | kyle8998/AppGen | 9999d5d895531ab2dd704e54f016d0e12e74e81a | 4cc9e57c85363d41dc39c8a4687c9f6ada103beb | refs/heads/master | 2022-12-01T17:06:02.824557 | 2017-11-20T21:53:23 | 2017-11-20T21:53:23 | 84,370,560 | 2 | 1 | MIT | 2022-11-27T00:26:13 | 2017-03-08T22:05:01 | Python | UTF-8 | Python | false | false | 4,128 | py | try:
from flask_sqlalchemy import get_debug_queries, SQLAlchemy
except ImportError:
sqlalchemy_available = False
get_debug_queries = SQLAlchemy = None
else:
sqlalchemy_available = True
from flask import request, current_app, abort, json_available, g
from flask_debugtoolbar import module
from flask_debu... | [
"kylelim8998@gmail.com"
] | kylelim8998@gmail.com |
f06396f839a325246ee0801bec2dd517652b1377 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/76/usersdata/179/39313/submittedfiles/jogoDaVelha.py | dc18ac8faf0b1370501cfc88faf49f897ae00dfb | [] | 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 | 925 | py | # -*- coding: utf-8 -*-
import math
x1 = int(input('Digite x1: '))
x2 = int(input('Digite x2: '))
x3 = int(input('Digite x3: '))
x4 = int(input('Digite x4: '))
x5 = int(input('Digite x5: '))
x6 = int(input('Digite x6: '))
x7 = int(input('Digite x7: '))
x8 = int(input('Digite x8: '))
x9 = int(input('Digite x9: '))
if x... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
807298af3e1ebd4145bdd555747f385744339491 | 309dbf12ce8bb5ddb935978628f9a675141cffa5 | /rev-linked-list/reversell.py | 44d54c38073c38ee870b2913c2de6fd2e49990dc | [] | no_license | eljlee/hb-code-challenges | 38cc55df8cbf13f1c516cc315734ea029c6ce08d | 3a190794483003a52ca7fd43349dad6aed252eee | refs/heads/master | 2020-03-08T06:21:14.977981 | 2018-05-01T06:07:06 | 2018-05-01T06:07:06 | 127,969,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | """Given linked list head node, return head node of new, reversed linked list.
For example:
>>> ll = Node(1, Node(2, Node(3)))
>>> reverse_linked_list(ll).as_string()
'321'
"""
class Node(object):
"""Class in a linked list."""
def __init__(self, data, next=None):
self.data = data
... | [
"vagrant@vagrant.vm"
] | vagrant@vagrant.vm |
01fbc51fb60705df1d17f7752984ecf95387c70c | 76e6d4f93078327fef8672133fc75a6f12abc240 | /ABC166/Test_C.py | 21670db70c1607836575dd879ec8512eea46c6fc | [] | no_license | adusa1019/atcoder | 1e8f33253f6f80a91d069b2f3b568ce7a2964940 | f7dbdfc021425160a072f4ce4e324953a376133a | refs/heads/master | 2021-08-08T04:41:36.098678 | 2021-02-01T07:34:34 | 2021-02-01T07:34:34 | 89,038,783 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | import pytest
from C import solve
def test_solve():
assert solve('4 3\n1 2 3 4\n1 3\n2 3\n2 4') == '2'
assert solve('6 5\n8 6 9 1 2 1\n1 3\n4 2\n4 3\n4 6\n4 6') == '3'
| [
"symphony20030829@yahoo.co.jp"
] | symphony20030829@yahoo.co.jp |
b9eb79ac90d988d56bfe2b1946ca1d9a20bc13c4 | 20a18ea0d2738477c5a117f80154c195c6ff2679 | /nova/tests/unit/scheduler/filters/test_vcpu_model_filter.py | 29e35d8e88efc3989c239a0f1635d3a3eb84a908 | [
"Apache-2.0"
] | permissive | hustlzp1981/stx-nova | 1300fa9757a29b2d00ef587c71ebd98171077d10 | c52432b3e7a240817a2de06321a2459f4862ab6a | refs/heads/master | 2020-04-26T03:21:12.797447 | 2019-03-01T17:40:14 | 2019-03-01T17:40:14 | 173,264,343 | 0 | 0 | Apache-2.0 | 2019-03-01T08:28:15 | 2019-03-01T08:28:15 | null | UTF-8 | Python | false | false | 7,430 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"dtroyer@gmail.com"
] | dtroyer@gmail.com |
dfc6c6bcfb803410e8e29e9372cbfc20346520ac | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj_101342.12+260620.0/sdB_SDSSJ_101342.12+260620.0_lc.py | 9a011b1d702d1b617d49f9c4a2d9a77ee7bb3f10 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 370 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[153.4255,26.105556], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_SDSSJ_101342.12+260620.0 /sdB_SDSSJ_101342.12+260620.0_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.010388897... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
6d08ddadf72bb842f38dcab1040eb5c887a7b5ba | e6e81d0cd02223ca27f2c3f544b3c116e7617270 | /LeetCodePremium/77.combinations.py | 4e7d7a1ed0cc1d5b18cdec815c2f06e8eceb101c | [] | no_license | ashjambhulkar/objectoriented | 86166640b0546713095dd5d8804fc78d31782662 | 6f07b50590ceef231be38d6d7b8c73a40c1152e9 | refs/heads/master | 2022-05-03T23:28:38.674275 | 2022-04-26T21:37:31 | 2022-04-26T21:37:31 | 249,091,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | #
# @lc app=leetcode id=77 lang=python3
#
# [77] Combinations
#
# @lc code=start
class Solution:
def combine(self, n: int, k: int) -> List[List[int]]:
# sample = [i for i in range(1, n+1)]
# result = []
# def helper(sample, temp):
# if len(temp) == k:
# result.ap... | [
"ashjambhulkar@hotmail.com"
] | ashjambhulkar@hotmail.com |
972ea4c7a9f98ddd846f80c492b024ad39d1440a | 60a7e7dc2ba82c5c74352dc8466a9becba068e2e | /backend2/userapi1/migrations/0001_initial.py | 8c0c9e319f589c09a402c93581e1c8af2e666c7e | [] | no_license | TestTask12/SKD-Django- | d7b445d8afd32fe5aa877c31451b7f2d932d2fe7 | 47bf79071d2781d129794e9b47d396cfd9162d00 | refs/heads/master | 2023-07-06T10:08:04.156998 | 2021-08-02T12:26:04 | 2021-08-02T12:26:04 | 387,738,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,970 | py | # Generated by Django 3.2.5 on 2021-07-23 10:53
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_first_name_max_length'),
]
operations = [
migrations.CreateModel(
name='User',
... | [
"sumankumariideal@gmail.com"
] | sumankumariideal@gmail.com |
cd347060e1da3d2391d0143e12892f9eac6c4346 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/storage/azure-mgmt-storage/generated_samples/blob_containers_put_immutability_policy_allow_protected_append_writes_all.py | 959e1d06da38a2e43845d975a656d18959590c16 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,700 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | openapi-env-test.noreply@github.com |
980c0b0837b2db2ae0a95f0e3aec09938d06100f | a5698f82064aade6af0f1da21f504a9ef8c9ac6e | /huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/cce_job_spec.py | dc9786d83d3d306eea915bbbb9939ea87a5e228b | [
"Apache-2.0"
] | permissive | qizhidong/huaweicloud-sdk-python-v3 | 82a2046fbb7d62810984399abb2ca72b3b47fac6 | 6cdcf1da8b098427e58fc3335a387c14df7776d0 | refs/heads/master | 2023-04-06T02:58:15.175373 | 2021-03-30T10:47:29 | 2021-03-30T10:47:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,808 | py | # coding: utf-8
import pprint
import re
import six
class CCEJobSpec:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
bec2ac58d9e5663e3e2e4ecdcd53faa846e92d59 | e65ae5bd9ae1c93e7117e630f7340bc73aa71212 | /lib/gevent/greentest/test__greenletset.py | ffe4e308e45094f2aa246d25c391c328edcf36aa | [
"MIT"
] | permissive | nadirhamid/oneline | e98ff1ed81da0536f9602ecdde2fb2a4fe80d256 | 833ebef0e26ae8e0cc452756381227746d830b23 | refs/heads/master | 2021-01-21T04:27:41.715047 | 2016-05-30T03:50:34 | 2016-05-30T03:50:34 | 23,320,578 | 1 | 2 | NOASSERTION | 2020-03-12T17:22:24 | 2014-08-25T16:29:36 | Python | UTF-8 | Python | false | false | 3,222 | py | import time
import greentest
import gevent
from gevent import pool
DELAY = 0.1
class SpecialError(Exception):
pass
class Undead(object):
def __init__(self):
self.shot_count = 0
def __call__(self):
while True:
try:
gevent.sleep(1)
except SpecialE... | [
"matrix.nad@gmail.com"
] | matrix.nad@gmail.com |
26a281cbfa087655cdab4c27c6fd0c9a2db3e8f2 | 77da9a5aac6598df2dea6088e068e973e3da52ad | /benchmarks/1d16pu/config.py | b5869320a3d278e60c3593dff0db31f503088bc8 | [] | no_license | GiggleLiu/projectx | e9e5960d5892c4efcad0a0a7cc5e7ff72ca50458 | 170f990939549949de203004c03ed68762ba23b4 | refs/heads/master | 2021-09-08T17:28:22.473021 | 2018-03-11T10:32:32 | 2018-03-11T10:32:32 | 109,708,185 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | import numpy as np
from models.wanglei6 import WangLei6
powerlist_list = [
[[1,0,1],[1,1]],
[[1,0,1],[1,1]],
[[1,0,1],[1,1]],
[[1,0,1],[1,1]],
[[1,0,1],[1,1]],
[[1,0,1],[1,1]],
]
num_features_list = [
[20], [20], [20], [20], [20],
[20], [20], [20... | [
"cacate0129@gmail.com"
] | cacate0129@gmail.com |
33cfc768934e8033b6bdcf3758e69a8c15adb0b0 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/opcodes/cases/test_map_mem_nat_100.py | 68ed860f3164c948df0a2f3f9efad4284fc8d31b | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 886 | py | from unittest import TestCase
from tests import abspath
from pytezos.repl.interpreter import Interpreter
from pytezos.michelson.converter import michelson_to_micheline
from pytezos.repl.parser import parse_expression
class OpcodeTestmap_mem_nat_100(TestCase):
def setUp(self):
self.maxDiff = None
... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
eebf77058bb72e39adc7e144c70efde6975f3eb4 | c380e7c61c97cb03531e4f33fe31c99c7593c70b | /contrib/splunk-sdk-python/examples/explorer/explorer.py | ae4f6d06e2597a0764a43d3e6d0bccc93b209569 | [
"Apache-2.0"
] | permissive | skada/splunk-appframework | 09bd777bc7c28b6b460eb8b7397288b559d9bf3d | 8d07f81a9c37b8a0a2b9432bdd6fd78e98e458cc | refs/heads/master | 2020-12-01T01:17:03.481885 | 2013-03-09T05:51:27 | 2013-03-09T05:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,029 | py | #!/usr/bin/env python
#
# Copyright 2011-2012 Splunk, 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... | [
"itay@neeman.net"
] | itay@neeman.net |
973003a6f81d1d8e405f3dfccf3199500bca22db | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_0833+211/sdB_PG_0833+211_lc.py | 04021942ce6aaaa0c17094607e8f65d9c8e1e284 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[129.082042,20.963314], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_0833+211 /sdB_PG_0833+211_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
ae9fd9989ac06924eaff500bcc8d0d390707e66e | cbd865bdba079069ba52e4bf78dd1395acb99d5b | /30.py | 08bb5c96aa2900c43d824aea65e74eae9541e17a | [] | no_license | anhnguyendepocen/100-pythonExercises | 52e72c214885e993207241b28124382365f28126 | 1f69184ba819b1a9d3880530aa349ae677dc1254 | refs/heads/master | 2022-01-17T14:00:16.390389 | 2019-03-23T19:22:13 | 2019-03-23T19:22:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | # Exercise No.30
# Why is there an error here?
# def foo(a=2, b):
# return a + b
# Solution
# Because default arguments must be listed at the end of the parameters list. If you list them at the beginning python
# will get confused because it is not sure if you are changing the default argument's value or passing t... | [
"eduardessc0@hotmail.com"
] | eduardessc0@hotmail.com |
aaeaef1286a253db035fa39dbb376b08736d9761 | aa9afb14c2e0871afc200d2a7e981334ae97974a | /item_engine/builders/package/mb1.py | aa7e39d194dd52ee9a7a12ae037540dfd42744ad | [
"MIT"
] | permissive | GabrielAmare/TextEngine | bd53357526cb0e31f5aae80dacfa02b004683017 | 39ceb323a63af35e32c4be34ae35a77e811bc973 | refs/heads/main | 2023-05-01T13:03:54.929892 | 2021-05-21T07:44:56 | 2021-05-21T07:44:56 | 344,866,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | from item_engine.textbase.elements import Char, Token
from typing import Iterator
def function(src: Iterator[Char]) -> Iterator[Token]:
cur: Token = Token(at=0, to=0, value=0)
for old in src:
while cur.to == old.at:
new: Token = cur.develop(_function(cur, old), old)
if not new.... | [
"67603418+GabrielAmare@users.noreply.github.com"
] | 67603418+GabrielAmare@users.noreply.github.com |
8b262c3bfa84526014f073bef31780e8a33dcc89 | 04dbbfea381996e207f4ff65ce1fc5a297cd2b79 | /MIT_ocw/6.006F11/JUNK/timing_exc.py | 8c9685bec8e99aa00d62a059bf8762dd3773c80d | [] | no_license | Ru0ch3n/MOOCs | 30081d1905ed5916bcbad640a30cdace3a1e3ce0 | 93acda7879cb5fd96cddb5be9148bb22e025fbb7 | refs/heads/master | 2021-09-21T16:34:31.536725 | 2018-08-28T18:05:48 | 2018-08-28T18:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,475 | py | import math
import string
import timeit
import scipy.optimize
# Parameter generation routines
def lg(x):
return math.log(x)/math.log(2.0)
def sqrt(x):
return math.sqrt(x)
def make_param_list(spec_string,growth_factor):
"""
Generate a list of dictionaries
given maximum and minimum values for each... | [
"cc.rafaz@zafar.cc"
] | cc.rafaz@zafar.cc |
dc2171d0ee0d6fe1239997e6fb0b4e5ca1c6b440 | 38558ac2e78837e7f975364f03a1f55fb02103af | /PRA practice/PRA S.py | b414adcbe405d0e17e933b2fa4b89f09bb0e79b5 | [] | no_license | SOURADEEP-DONNY/WORKING-WITH-PYTHON | a0bc2ff5ddab1b25563927c8f361c6512683d6ff | 5198d14f0711a3ba7f2fe8bac61d6404c20ea40c | refs/heads/master | 2023-07-14T04:49:08.399519 | 2021-08-29T15:22:33 | 2021-08-29T15:22:33 | 270,723,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | class Employee:
def __init__(self,emp_id,emp_name,role):
self.employeeId=emp_id
self.employeeName=emp_name
self.geInRole=role
self.status="In Service"
class Organization:
def __init__(self,emp_list):
self.employeeList=emp_list
def updateEmployeeStatus(self,no... | [
"noreply@github.com"
] | SOURADEEP-DONNY.noreply@github.com |
f72b33efb196f6401894f4994d0802946bc39515 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/gkehub/v1alpha/gkehub-v1alpha-py/google/cloud/gkehub/servicemesh_v1alpha/types/servicemesh.py | c524b4cb240d7c3bf95c02aa269442cef01aa673 | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,838 | 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
23d273d98f2e161c75df76b438884487fc3cedd3 | c459f4dd7b198ec8d8db8379726a5b2650be6636 | /backoffice/migrations/0027_auto_20210224_1621.py | 7500f1e83101678b90c23d489885f249201fc720 | [] | no_license | jittat/admapp | 4c712182cd06e82efab6c2513fb865e5d00feae8 | 38bf299015ae423b4551f6b1206742ee176b8b77 | refs/heads/master | 2023-06-10T03:23:41.174264 | 2023-06-09T19:41:03 | 2023-06-09T19:41:03 | 101,953,724 | 10 | 4 | null | 2023-04-21T22:48:55 | 2017-08-31T03:12:04 | Python | UTF-8 | Python | false | false | 412 | py | # Generated by Django 2.2.17 on 2021-02-24 16:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backoffice', '0026_auto_20210224_1550'),
]
operations = [
migrations.AlterField(
model_name='adjustmentmajorslot',
... | [
"jittat@gmail.com"
] | jittat@gmail.com |
b5aaaf013e3bf2e723a3e6318ca85c11b84631ca | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/428/usersdata/284/106789/submittedfiles/jogoDaVelha.py | 3a3449d0234c2f307a0dbc52ba6f670be5669645 | [] | 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 | 5,279 | py | # -*- coding: utf-8 -*-
from jogoDaVelha_BIB import *
# COLOQUE SEU PROGRAMA A PARTIR DAQUI
#definir entrada em lista:
import random
def solicitaSimboloDoHumano():
letra = 0
while not (letra == 'O' or letra == 'X'):
print('Qual símbolo você deseja utilizar no jogo? (X ou O) ')
l... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f3f8bb5d1c5a47a51aafed60b97ba43063db2582 | 6380a784ff2bbae2ffa67a50757bf0bb3bd7e87c | /config/api_router.py | a12bee390b55446679072d6b59145e56981ec515 | [] | no_license | mahidul-islam/rijal | fe07a1024ba2b430569b4f91abcd275958297013 | d31e8548ff69438b7e1b0f49468f367be15533a9 | refs/heads/master | 2022-11-21T14:23:25.446961 | 2020-07-21T07:10:17 | 2020-07-21T07:10:17 | 281,323,224 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from django.conf import settings
from rest_framework.routers import DefaultRouter, SimpleRouter
from arrijal.users.api.views import UserViewSet
if settings.DEBUG:
router = DefaultRouter()
else:
router = SimpleRouter()
router.register("users", UserViewSet)
app_name = "api"
urlpatterns = router.urls
| [
"mizihan84@gmail.com"
] | mizihan84@gmail.com |
745a7bddd4f8ff7dd570dc5adce795e85124f73a | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /tf3d/ops/tensorflow_sparse_conv_ops/sparse_conv_ops_test.py | 5f0edf1bbfee5b82233daf983f0fb915f45ef112 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 1,803 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d5831481809bc39418d1870a746d55b3c2d993ab | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/third_party_product.py | 50ae347ef65cbaf67a7ff980b403457e18ba01ef | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 309 | py | from dataclasses import dataclass
from .third_party_product_version_structure import ThirdPartyProductVersionStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class ThirdPartyProduct(ThirdPartyProductVersionStructure):
class Meta:
namespace = "http://www.netex.org.uk/netex"
| [
"chris@komposta.net"
] | chris@komposta.net |
41550f34d2705294a0046ac8b1de8397166aec24 | 73332abdcadb62f4f262d0c30856c3c257a9ee7d | /oyProjectManager/models/repository.py | e652584bc54fa7228d4ef379aa506eb227c11021 | [
"BSD-2-Clause"
] | permissive | code-google-com/oyprojectmanager | 454435604cc150c1b54ec2c54294e0fa05490f82 | 3085ecbe1cc04a73ec69b4848b789009546feae7 | refs/heads/master | 2021-01-19T02:40:56.342086 | 2015-01-26T16:40:00 | 2015-01-26T16:40:00 | 32,266,400 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,653 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2009-2014, Erkan Ozgur Yilmaz
#
# This module is part of oyProjectManager and is released under the BSD 2
# License: http://www.opensource.org/licenses/BSD-2-Clause
from exceptions import AttributeError, RuntimeError, ValueError, IOError
import os
from oyProjectManager import u... | [
"eoyilmaz@gmail.com"
] | eoyilmaz@gmail.com |
bef343ea16d689688535c9e4696e408161b5b29d | 8c16c8fa0a32e1b190df3206c739cc844f81df7a | /home/migrations/0002_load_initial_data.py | 808c1c33641ba4e51e3c8fae89ca49b39bf69c32 | [] | no_license | crowdbotics-apps/r123-dev-1618 | c689f7f0e5fb294632fa6abe40b13a2e4b5ed3bc | 192d89a3e82f212700fce8b9160947a73abdc716 | refs/heads/master | 2022-04-02T11:13:12.271354 | 2020-02-06T12:48:14 | 2020-02-06T12:48:14 | 238,687,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "R123"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
home... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
096f62f342b714d1b73d1cde4d377414250fa6f4 | 02d8a026d63127f045042e03e23acbe6c9675db8 | /vb2py/PythonCard/tools/resourceEditor/modules/backgroundInfoDialog.rsrc.py | 613f3425866455d083794a5997c9411d81d9d930 | [
"BSD-3-Clause"
] | permissive | VB6Hobbyst7/xl_vb2py | 40e77976b452732575e2726fb1f0675b1ab9f86f | 899fec0301140fd8bd313e8c80b3fa839b3f5ee4 | refs/heads/main | 2023-07-28T20:12:11.933183 | 2021-09-23T18:12:02 | 2021-09-23T18:12:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | {'type':'CustomDialog',
'name':'backgroundInfo',
'title':'Background Info',
'position':(53, 94),
'size':(370, 563),
'components': [
{'type':'Button',
'name':'btnCustomize',
'position':(247, 333),
'label':'Customize',
},
{'type':'RadioGroup',
'name':'windowStyle',
'pos... | [
"c.git@pronovost.net"
] | c.git@pronovost.net |
0e4e8d3779836386612dc162af745efcb539ecb8 | 6ac2631c256f156d4ddf169e6c67f1fe66ebcaaf | /062/pyteacher/app_accounts/migrations/0011_auto_20190321_0515.py | e36b9ecbc568798fd0c86cd592db78267480287a | [] | no_license | kasaiee/how-to-pyteacher | 101f106aeeed1b34756cecf502337ff8ee584ff5 | 074a57533f53fd1b8c7f37cd11dbc3b32ab8a08f | refs/heads/master | 2022-12-10T23:50:46.851784 | 2019-07-15T19:31:03 | 2019-07-15T19:31:03 | 187,372,111 | 6 | 4 | null | 2022-12-08T01:55:05 | 2019-05-18T15:08:03 | null | UTF-8 | Python | false | false | 502 | py | # Generated by Django 2.1.5 on 2019-03-21 05:15
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app_base', '0011_auto_20190302_2010'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app_accounts', '... | [
"1tapciran@gmail.com"
] | 1tapciran@gmail.com |
048517a1253073256e7a998e84e5de7e1dcffbcd | 7560e624ac39fcdf44b7b8d747c072c923bb6d1b | /docs/conf.py | 2bc866940e3023d41d63604c316372b4429720d7 | [] | no_license | tardis-sn-archive/tardisatomic | 889473a8c9b466dd433bc89778b16e43857d1652 | bea354a6427d3d9539abbac6a1ce476bdb3c9aaf | refs/heads/master | 2021-05-28T21:54:55.953270 | 2015-05-20T14:22:43 | 2015-05-20T14:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,948 | py | # -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license - see LICENSE.rst
#
# Astropy documentation build configuration file.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this file.
#
# All configurati... | [
"wkerzendorf@gmail.com"
] | wkerzendorf@gmail.com |
168901e7e84d4b1ade6c2cd222d40e16ee48d113 | 7ec38beb6f041319916390ee92876678412b30f7 | /src/leecode/medium_0885.py | 54fe1f13b536aa90188d941dedc3bf3b9271e365 | [] | no_license | hopensic/LearnPython | 3570e212a1931d4dad65b64ecdd24414daf51c73 | f735b5d865789843f06a623a4006f8883d6d1ae0 | refs/heads/master | 2022-02-18T23:11:30.663902 | 2022-02-12T17:51:56 | 2022-02-12T17:51:56 | 218,924,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | from datetime import datetime
'''
tag: ^0885 ^medium ^math
name: ^(Spiral Matrix III)
'''
class Solution:
def spiralMatrixIII(self, R: int, C: int, r0: int, c0: int):
res = []
loop_count = max(r0, R - r0, c0, C - c0) + 2
destX, destY = c0, r0
mat = [[0] * C for _ in range(R)]
... | [
"hopensic@gmail.com"
] | hopensic@gmail.com |
155930bcbbb9b559f4026ae42f775034e140cbe7 | 4d99350a527a88110b7bdc7d6766fc32cf66f211 | /OpenGLCffi/GL/EXT/KHR/robustness.py | 39eb5aee53fafaf629f399a33917ceedf689edd4 | [
"MIT"
] | permissive | cydenix/OpenGLCffi | e790ef67c2f6c9877badd5c38b7d58961c8739cd | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | refs/heads/master | 2021-01-11T07:31:10.591188 | 2017-04-17T11:04:55 | 2017-04-17T11:04:55 | 80,312,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,324 | py | from OpenGLCffi.GL import params
@params(api='gl', prms=[])
def glGetGraphicsResetStatus():
pass
@params(api='gl', prms=['x', 'y', 'width', 'height', 'format', 'type', 'bufSize', 'data'])
def glReadnPixels(x, y, width, height, format, type, bufSize, data):
pass
@params(api='gl', prms=['program', 'location', 'bufS... | [
"cdenizol@gmail.com"
] | cdenizol@gmail.com |
b79e99dc04ca2be2a69ca6079afc7b69c0afa6cd | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/Quote18/HQ_18_156.py | 2d711354476219ece70b5d19df540986a8e7b237 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import time
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from log import *
class HQ_18_156(xtp_test_case):
def subTickByTick(self, Api, stk_info, case_name, rs_ex... | [
"418033945@qq.com"
] | 418033945@qq.com |
4584b6d202923b7876acb783ea7f94a55dccd0e4 | 3b84c4b7b16ccfd0154f8dcb75ddbbb6636373be | /google-cloud-sdk/lib/googlecloudsdk/command_lib/storage/file_download_task.py | 55c926f4ed9ddba8c6feb5c5f335d5da0e5ad498 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | twistedpair/google-cloud-sdk | 37f04872cf1ab9c9ce5ec692d2201a93679827e3 | 1f9b424c40a87b46656fc9f5e2e9c81895c7e614 | refs/heads/master | 2023-08-18T18:42:59.622485 | 2023-08-15T00:00:00 | 2023-08-15T12:14:05 | 116,506,777 | 58 | 24 | null | 2022-02-14T22:01:53 | 2018-01-06T18:40:35 | Python | UTF-8 | Python | false | false | 2,211 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 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... | [
"gcloud@google.com"
] | gcloud@google.com |
07be9fff7ab78d6a62e09d5b2b53cd61b81cb9aa | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2671/60767/236760.py | 65aabd02d6cd17bfb4abc0f16f21487ef1587e78 | [] | 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 | 512 | py | def has11(num):
while(num>=1):
if(num%2==1):
num = num>>1
if(num%2==1):
return True
num = num>>1
return False
numOfTests = int(input())
Tests = []
for i in range(0,numOfTests):
Tests.append(int(input()))
for test in Tests:
temp = []
cnt = 0
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
34d0c59dbfbfa437e013e76dcd0fc29661a04b84 | 1259ee2a27cbb2d7de3e034159957d6043161add | /tests/roots/test-ext-autodoc/conf.py | 9f026eb8deab5ef78ede37824b69d322c6f75fc5 | [
"MIT",
"Python-2.0",
"LicenseRef-scancode-secret-labs-2011",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | balabit-deps/balabit-os-7-sphinx | f7b0ad4967418f074e8876cd8c7f4a7f5cfbe5d3 | 4e18ca37f4ddddf346c0b30835a544db20887259 | refs/heads/master | 2020-04-07T09:14:11.757278 | 2018-04-11T21:10:19 | 2018-07-20T22:59:13 | 158,244,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | import sys, os
sys.path.insert(0, os.path.abspath('.'))
extensions = ['sphinx.ext.autodoc']
# The suffix of source filenames.
source_suffix = '.rst'
autodoc_mock_imports = [
'dummy'
]
nitpicky = True
| [
"testbot@balabit.com"
] | testbot@balabit.com |
80d765845dcafee702bed7550ecb6e0196682ee9 | 30ac2f9831ebd33885a6f48d153356c2e3731c26 | /Python_Stack/flask/playground_project/server.py | 12ab16b5079218d55d52fb8fb967d84a7c922824 | [] | no_license | pharaoht/Coding-Dojo-Projects | 192cfd8c36b6dadb049e81d31bd780c7ab340d1e | 504f71acbac3c006cf866a08aea0566058f81ce2 | refs/heads/master | 2023-05-11T21:09:17.316257 | 2021-06-08T00:54:09 | 2021-06-08T00:54:09 | 334,003,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | from flask import Flask, render_template
app = Flask(__name__)
@app.route("/play")
def showboxes():
return render_template("index1.html")
@app.route("/play/<num>")
def showboxes1(num):
return render_template("index.html", num=int(num))
@app.route("/play/<num>/<color>")
def showboxes2(num, color):
retu... | [
"pharaohmanson@gmail.com"
] | pharaohmanson@gmail.com |
8a903a879f726b3a88d3a2e6e5a2b06370843dcb | 9aa85999021da96ce0a7d76789c1298d174d1835 | /blogs/migrations/0076_auto_20200128_1850.py | 649f921de7e73d9b82215f179e7f222baced5e4f | [] | no_license | m0bi5/ISTE-NITK_Website | 20b83a3a629836c33c7478c0af834f6f57e0e907 | 2e186bb1ba457c930f9b691cc5a5584b8e3c270c | refs/heads/master | 2022-11-24T03:02:49.354491 | 2020-07-24T15:43:44 | 2020-07-24T15:43:44 | 184,452,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Generated by Django 2.2.4 on 2020-01-28 18:50
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blogs', '0075_auto_20200128_1844'),
]
operations = [
migrations.AlterField(
model_name='bloghits',
n... | [
"amodhshenoy@gmail.com"
] | amodhshenoy@gmail.com |
55e8252223a59f65395fe1c7789fd74a8d4a78ba | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02792/s894845946.py | a0b1659006571d0d9285032ffceafc05e79611c9 | [] | 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,081 | py | # import sys
# sys.setrecursionlimit(10 ** 6)
def cmb(n, r):
import math
if n < r:
return 0
return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))
# from decorator import stop_watch
#
#
# @stop_watch
def solve(N):
ABs = {}
ABs_visited = {}
for h in range(1, 10):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d998ef3b950460ec243b2d468ca72164ed6addba | 7fdefad804586192915fc298a63db136c0863995 | /wxPython in Action/wxPythonInAction-src/Chapter-15/tree_simple.py | b9863e92018508c953ddaf7a65d656e00e8287f4 | [] | no_license | typ0520/python_ebook | 2ca948937e2f390a4e4c2ac57f6cd3124ab507a0 | 9abda102b9f245178b61bf9ffca0e633ad96fec1 | refs/heads/master | 2021-06-20T14:14:22.813999 | 2017-08-14T07:31:41 | 2017-08-14T07:31:41 | 98,658,811 | 0 | 1 | null | 2017-07-28T14:43:55 | 2017-07-28T14:43:55 | null | UTF-8 | Python | false | false | 1,913 | py | import wx
import data
class TestFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, None, title="simple tree", size=(400,500))
# Create the tree
self.tree = wx.TreeCtrl(self)
# Add a root node
root = self.tree.AddRoot("wx.Object")
# Add nodes... | [
"jason_yao@htc.com"
] | jason_yao@htc.com |
475fa382a546505487a35004c7fe5da4a68bd9ac | 208baab269ddffab1a93e7dc70b052d07bf50560 | /hood/migrations/0004_editor.py | 363a783e7d71c25eefd44a4b578ec7916b9cdc00 | [] | no_license | marysinaida/Neighborhood | a1035f09515ae9a24bed74ddf1263e06db134c94 | a285df5528bb99d6cb69f9ab41e320682422fe9d | refs/heads/master | 2020-12-13T23:29:18.148498 | 2020-01-21T15:04:53 | 2020-01-21T15:04:53 | 234,562,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2020-01-21 10:16
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('hood', '0003_auto_20200121_1312'),
]
operations = [
migra... | [
"marydorcassinaida54@gmail.com"
] | marydorcassinaida54@gmail.com |
8db6c287bc1a3eac410d8592ce97a1a24f13b860 | 3ee1bb0d0acfa5c412b37365a4564f0df1c093fb | /ml/m14_pipeline2_4_boston.py | cb55ea1a8f86bd861a41b7075007639d2c8f3b1b | [] | no_license | moileehyeji/Study | 3a20bf0d74e1faec7a2a5981c1c7e7861c08c073 | 188843c6415a4c546fdf6648400d072359d1a22b | refs/heads/main | 2023-04-18T02:30:15.810749 | 2021-05-04T08:43:53 | 2021-05-04T08:43:53 | 324,901,835 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | # Pipeline, make_pipeline
# 모델 비교
# 2번부터 RandomForest 모델 사용
import numpy as np
import warnings
warnings.filterwarnings('ignore')
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split, KFold, cross_val_score
from sklearn.model_selection import GridSearchCV, Randomi... | [
"noreply@github.com"
] | moileehyeji.noreply@github.com |
fea6c22074c77c9e5682f20c035d3b881dfa6d4f | ed218f5ea54eac34743f22596eae60242bb73004 | /backend/chat/admin.py | 5e83fe01bb146e7b8ebb6050982a7647e1960b63 | [] | no_license | crowdbotics-apps/kids-teach-kids-18288 | 65566d8ae92964c1e482c79883d1bce2bf7ff6f0 | 3b54f77ed6366541a4cd041d85934c8c802b409b | refs/heads/master | 2022-11-05T14:28:05.406100 | 2020-06-20T19:03:20 | 2020-06-20T19:03:20 | 273,767,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | from django.contrib import admin
from .models import (
Message,
ThreadMember,
MessageAction,
ThreadAction,
ForwardedMessage,
Thread,
)
admin.site.register(ThreadAction)
admin.site.register(ForwardedMessage)
admin.site.register(MessageAction)
admin.site.register(Thread)
admin.site.register(Threa... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
667f652834d1ed267e8db34154d55671fed9c562 | 5b28005b6ee600e6eeca2fc7c57c346e23da285f | /nomadic_recording_lib/ui/iOSCControl/sessionselect.py | 6669a04c959c24f1afc8377ae5c8dea8ae353723 | [] | no_license | nocarryr/wowza_logparse | c31d2db7ad854c6b0d13495a0ede5f406c2fce3f | d6daa5bf58bae1db48ac30031a845bf975c7d5cc | refs/heads/master | 2021-01-17T07:19:00.347206 | 2017-06-24T16:57:32 | 2017-06-24T16:57:32 | 25,835,704 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | from Bases import OSCBaseObject
import widgets
class SessionSelect(OSCBaseObject):
_Properties = {'selection':dict(type=str, quiet=True)}
def __init__(self, **kwargs):
self.iOsc = kwargs.get('iOsc')
self.client = kwargs.get('client')
kwargs.setdefault('osc_parent_node', self.client.osc_... | [
"matt@nomadic-recording.com"
] | matt@nomadic-recording.com |
59982cb9f893c43e0cf6038a51750f94da4c4fb5 | 1dd72195bc08460df7e5bb82d3b7bac7a6673f49 | /api/alembic/versions/69cbd7ca2477_add_gfs_prediction_model.py | 856f0767fd5fe67adc724458b639c5b7b9e2571f | [
"Apache-2.0",
"MIT"
] | permissive | bcgov/wps | c4347c39cadfad6711502d47776abc8d03895593 | 0ba707b0eddc280240964efa481988df92046e6a | refs/heads/main | 2023-08-19T00:56:39.286460 | 2023-08-16T18:03:06 | 2023-08-16T18:03:06 | 235,861,506 | 35 | 9 | Apache-2.0 | 2023-09-11T21:35:07 | 2020-01-23T18:42:10 | Python | UTF-8 | Python | false | false | 573 | py | """Add GFS prediction model
Revision ID: 69cbd7ca2477
Revises: de8355996f8e
Create Date: 2023-02-09 14:30:49.597571
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '69cbd7ca2477'
down_revision = 'de8355996f8e'
branch_labels = None
depends_on = None
def upgrad... | [
"noreply@github.com"
] | bcgov.noreply@github.com |
2344ae408834eb1cc85fd232d50f961cdc1f96b4 | 09c97a53c39c83bef52d15db6644a27a3bbf229f | /part01-web/day07~_Python/todoMgrSystem/view/menu_view.py | e8eb413180911442b7d826719825336e9c65ee92 | [] | no_license | wansang93/Cloud_multicampus | aa0372914e28ebdc76f5d683e9886841be5f5891 | 646325cee93d6bcabd4163c7bb099e4e92621e9f | refs/heads/master | 2023-03-27T07:02:41.552663 | 2021-03-24T01:53:07 | 2021-03-24T01:53:07 | 326,610,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,454 | py | from entity.todo import Todo
"""
Define View
"""
### Menu ###
# show menu
def display_menu():
print('==================================================')
print('등록(1) 보기(2) 수정(3) 삭제(4) 모두 삭제(5) 나가기(x)')
# select menu number
def select_menu():
menu = input()
return menu
# 메뉴를 다시 입력하라는 문구
def displ... | [
"wansang93@naver.com"
] | wansang93@naver.com |
325e2088f1a70378cc88cdf3a96e15fa365b4554 | 35aca1291dae461d5562a3b7484e5f659ee80817 | /oneflow/__main__.py | b0b1d9d18c301e9044ada93b56b5d3610add3d7f | [
"Apache-2.0"
] | permissive | Flowingsun007/oneflow | e6a52cfbf5e82ca4f8b787aa026f40a2f568a10f | c1880c011dd453719a28d880abe15e2dab8d0da1 | refs/heads/master | 2023-05-11T19:18:59.220269 | 2021-05-28T20:10:35 | 2021-05-28T20:10:35 | 372,195,705 | 0 | 0 | Apache-2.0 | 2021-06-02T09:46:51 | 2021-05-30T11:24:37 | null | UTF-8 | Python | false | false | 1,574 | py | """
Copyright 2020 The OneFlow 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 applicable law or agr... | [
"noreply@github.com"
] | Flowingsun007.noreply@github.com |
c74cf90baafe4882b333e01b28d7a2e85ebfb96b | 130e9ef21397b5263ecaf2923f3a196eba58ef5a | /pyxel/ui/number_picker.py | e7a1d3b6ec2d162aa814b72adab9af68df6dec6c | [
"MIT"
] | permissive | sacredhotdog/pyxel | 29571dd3daef6d813f9fdd833bf55e5ba0af689a | 08da48dbd1ac53c06cf8a383f28d66fd89f78f4a | refs/heads/master | 2020-04-04T16:35:26.370822 | 2018-11-04T09:06:05 | 2018-11-04T09:06:05 | 156,084,070 | 0 | 0 | MIT | 2018-11-04T13:18:19 | 2018-11-04T13:18:19 | null | UTF-8 | Python | false | false | 2,600 | py | import pyxel
from .constants import INPUT_FIELD_COLOR, INPUT_TEXT_COLOR
from .text_button import TextButton
from .widget import Widget
class NumberPicker(Widget):
"""
Events:
__on_change(value)
"""
def __init__(self, parent, x, y, min_value, max_value, value, **kwargs):
self._number_... | [
"takashi.kitao@gmail.com"
] | takashi.kitao@gmail.com |
268eb15f65ebda9c888438d11aa9f83830e6d243 | 25ba5fb4e2d02d6949f85ca49e11a70d3960432d | /lib/python/treadmill/alert/__init__.py | 9fef9e3d07e7fbee2c8270059253dff919d686f5 | [
"Apache-2.0"
] | permissive | crazyrex/treadmill | 9c007967db9470685b2d11e2232ad9926b47733e | 75be287a808a4cbdacab67b3f62a3cb3eb1eab67 | refs/heads/master | 2020-03-31T03:55:39.713552 | 2018-10-04T15:28:36 | 2018-10-04T15:28:36 | 151,884,550 | 1 | 0 | Apache-2.0 | 2018-10-06T21:50:04 | 2018-10-06T21:50:03 | null | UTF-8 | Python | false | false | 1,360 | py | """Treadmill alert module.
"""
import io
import json
import os.path
import time
from treadmill import fs
def create(alerts_dir,
epoch_ts=None,
instanceid=None,
summary=None,
type_=None,
**alert_data):
"""Create a file in alerts_dir representing the alert.
... | [
"ceache@users.noreply.github.com"
] | ceache@users.noreply.github.com |
6d3769cc470c8fe3b6958de2bbaec474c6edbc6b | ec68eee1abe0f900210c2bad51b64fb8a1053d5d | /fullerene/config.py | f1f81f62399499bb184b1eb86504f3882803b09d | [] | no_license | bitprophet/fullerene | 36a011eebf1ef1a14f963ed8101334c608757b92 | edb9afe6c07c9d610dfa8630142abb96382ff0c1 | refs/heads/master | 2020-05-18T20:27:56.612256 | 2012-02-11T00:14:52 | 2012-02-11T00:14:52 | 2,579,486 | 15 | 1 | null | 2017-12-11T17:30:57 | 2011-10-14T23:37:06 | Python | UTF-8 | Python | false | false | 2,804 | py | import yaml
from graphite import Graphite
from metric import Metric
class Config(object):
def __init__(self, text):
# Load up
config = yaml.load(text)
# Required items
try:
try:
exclude_hosts = config['hosts']['exclude']
except KeyError:
... | [
"jeff@bitprophet.org"
] | jeff@bitprophet.org |
5b8a25a8b5efba5420da7435bb20a6ce21dac8c9 | a0f0efaaaf69d6ccdc2a91596db29f04025f122c | /install/nav_2d_msgs/lib/python2.7/dist-packages/nav_2d_msgs/msg/_Twist2D.py | d9e163e152623a1775bb41432708d59da2817b86 | [] | no_license | chiuhandsome/ros_ws_test-git | 75da2723154c0dadbcec8d7b3b1f3f8b49aa5cd6 | 619909130c23927ccc902faa3ff6d04ae0f0fba9 | refs/heads/master | 2022-12-24T05:45:43.845717 | 2020-09-22T10:12:54 | 2020-09-22T10:12:54 | 297,582,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,788 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from nav_2d_msgs/Twist2D.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class Twist2D(genpy.Message):
_md5sum = "938fa65709584ad8e77d238529be13b8"
_type = "nav_2d_ms... | [
"chiuhandsome1966@gmail.com"
] | chiuhandsome1966@gmail.com |
0b82641f368069e443e83c50231fbc5e08c0a609 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02584/s013302359.py | f67303454d5f33e7cc48ea5bafc8491a565b7b35 | [] | 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 | 230 | py | x, k, d = map(int, input().split())
cur = abs(x)
rem = k
cnt = min(cur // d, k)
cur = cur - d * cnt
rem = rem - cnt
if rem > 0:
if rem % 2 == 1:
cur = cur - d
ans = abs(cur)
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c1767d932fff8f34fbd63518d4b75eae263689f5 | 3a8cb8a3639cee11ec5e9c8e4a0a5f940b711dec | /tests/repos/converters.py | 8510d4d3b9760df9ba3b12a1f22052591b31504e | [
"Apache-2.0"
] | permissive | pofatu/pygeoroc | f35686e19dc327159ce4285e18e2590e91332a23 | c722da35ab36f2fdcc3d793a025bb81d217238e1 | refs/heads/master | 2022-07-09T15:37:31.134567 | 2022-06-29T12:52:34 | 2022-06-29T12:52:34 | 253,836,063 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from pygeoroc.errata import CONVERTERS
FIELDS = {
'LAND_OR_SEA': CONVERTERS.upper,
}
COORDINATES = {
'NEW_CALEDONIA.csv': {
'latitude': CONVERTERS.negative,
'longitude': CONVERTERS.positive,
}
}
| [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
2148763f39be962a4ae2cb0e8be40e490b756cb2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_155/3117.py | 4b41befbf837cdaf9d873331ac63d00b40d7c5e5 | [] | 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 | 628 | py | infile = open('A-large.in', 'r')
outfile = open('out.txt', 'w')
cases = int(infile.readline())
for i in range(1, cases+1):
line = infile.readline().split()
s_max = int(line[0])
audience = line[1]
standing = 0
ans = 0
if s_max != 0:
for j in range(0, s_max + 1):
if standing >... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
968ffe2bd211dc6988e1de691ba4a0c09270e96c | 5df4d172df0bc6b6c8e021e44a0cfa50a6b01251 | /src/sanic/run_websocket_server.py | bd4e50f51c4efe2153f03012dfb1290d89996a43 | [
"MIT"
] | permissive | kingking888/MocaBliveAPI | 225ba33663f41c08ac358e5b138c57e26381d8f0 | 205bf4eec2becd0bf5a5a64f5d98718a73f51543 | refs/heads/master | 2022-10-18T08:59:53.301603 | 2020-06-08T10:59:08 | 2020-06-08T10:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,401 | py | # Ω*
# ■ ■■■■■
# ■ ■■ ■■
# ■ ■■ ■
# ■ ■■
# ■■■■■ ■ ■■■
# ■■ ■■ ■ ■■■
# ■■ ■■ ■ ■■■■
# ■■ ■■ ■ ■■■■
# ■■■■■■■■■ ■ ■■■
... | [
"el.idealideas@gmail.com"
] | el.idealideas@gmail.com |
4cc4a9f6af19cb45b334d02cac35add8080a7c70 | 39bae52d75b501f6db49b05480d5bb185c2370be | /my_work/btv/btv舆情早前版本/btv舆情_非精简版/btv_舆情/read_WEIBO_USER.py | dc1105b64aa42fb718e430a61e8f295129d1d165 | [] | no_license | callmeivy/Pycharm_Project | 65c53de17a3902c565e13c8b69d134daf97ba6f8 | ec1637683ee1f9d6d3f3533d9de9e913eb779898 | refs/heads/master | 2021-08-23T07:11:11.542918 | 2017-12-04T02:27:44 | 2017-12-04T02:27:44 | 112,572,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,220 | py | #coding=utf-8
import sys,os
import MySQLdb
import time
from collections import Counter
reload(sys)
sys.setdefaultencoding('utf8')
import datetime
import requests
import json
import base64
from requests_kerberos import HTTPKerberosAuth, OPTIONAL
import requests
def issuccessful(request):
if 200 <= request.status_co... | [
"c.ivy.jin@foxmail.com"
] | c.ivy.jin@foxmail.com |
52cd9f391400b90fae34f5b8dd6fd2c5e3a667c6 | 5c7fb0e2f3bc498351ba4c57247ec1637da57e21 | /python/mpi/enum.py | f4b091573d29406aba69119a5c793a4e9555f7b0 | [] | no_license | shixing/myLib | 35180e479f3701c07894f829b8f495594d23a225 | d4557fe0f07543ba588a7464b6efafebac1284a5 | refs/heads/master | 2020-05-19T13:34:34.022281 | 2017-04-10T01:08:06 | 2017-04-10T01:08:06 | 19,991,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | # copied from mpi4py-examples/09-task-pull.py
def enum(*sequential, **named):
"""
Handy way to fake an enumerated type in Python
"""
enums = dict(zip(sequential, range(len(sequential))), **named)
return type('Enum', (), enums)
tags = enum('READY', 'DONE', 'EXIT', 'START')
tags.READY # == 0
tags.... | [
"shixing19910105@gmail.com"
] | shixing19910105@gmail.com |
4188530b0c1b69052fa56920b558dc66dab2cbe9 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/b7db18784e744fa39ebc6a5d607b0289.py | 9405afec6249a56d672a92e52e9a8340f2f34a94 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 327 | py | def hey(content):
"""
Simple function which passes tests ran from bob_test.py.
"""
text = content.strip()
if text.isupper():
return "Whoa, chill out!"
elif text[-1:] == "?":
return "Sure."
elif len(text) == 0:
return "Fine. Be that way!"
else:
return "What... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
1d46b3c0287a5603be16485830b47c7a717b1e70 | cdb7bb6215cc2f362f2e93a040c7d8c5efe97fde | /P/PathSum.py | f4df2af0815725df3b70e8818ba0d2c397a4b0b4 | [] | no_license | bssrdf/pyleet | 8861bbac06dfe0f0f06f6ad1010d99f8def19b27 | 810575368ecffa97677bdb51744d1f716140bbb1 | refs/heads/master | 2023-08-20T05:44:30.130517 | 2023-08-19T21:54:34 | 2023-08-19T21:54:34 | 91,913,009 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,712 | py | '''
-Easy-
Given the root of a binary tree and an integer targetSum, return true if the
tree has a root-to-leaf path such that adding up all the values along the path
equals targetSum.
A leaf is a node with no children.
Example 1:
Input: root = [5,4,8,11,null,13,4,7,2,null,null,null,1], targetSum = 22
Output:... | [
"merlintiger@hotmail.com"
] | merlintiger@hotmail.com |
2d2c15b57889aca91355673475220e7fce3cd17b | e20d947696ffb2422c5856ca1067c9a068705a82 | /day011/hw_004_元组.py | 190b4ecb34df475476aae193895ba6f42c218bd8 | [] | no_license | lxgzhw520/ZhangBaofu | 27aed80446c687890e17c35a2bc5c93a5b75462e | 401bae4b2d8e1a284d281cc29b5ed31a4e2039a4 | refs/heads/master | 2020-05-07T16:14:06.627708 | 2019-04-21T06:20:26 | 2019-04-21T06:20:26 | 180,673,589 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | # _*_ coding:UTF-8 _*_
# 开发人员: 理想国真恵玩-张大鹏
# 开发团队: 理想国真恵玩
# 开发时间: 2019-04-12 08:44
# 文件名称: hw_004_元组.py
# 开发工具: PyCharm
# 元组和列表类似 不过列表是用()定义的 值不可修改
t = () # 定义一个空元组
print(type(t))
t1 = (1,) # 定义一个元素的列表
print(type(t1)) # type用来打印一个数据的类型
t2 = (1) # 注意一个元素必须加逗号,否则不是元组类型
print(type(t2))
# 元组推导式 这种方法是不行的
t = (i for i... | [
"zhangdapeng@zhangdapengdeMacBook-Pro.local"
] | zhangdapeng@zhangdapengdeMacBook-Pro.local |
adda1694dfde2bc1d6bbc99f30c38673d8050ccf | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/api/paddlebase/test_fill_diagonal_.py | 93120e73f50302acf34f960d7acf4c341ceb6a23 | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 4,229 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test_fill_diagonal_
"""
import pytest
import numpy as np
import paddle
import paddle.device as device
# global params
types = [np.float32, np.float64, np.int32, np.int64]
if device.is_compiled_with_cuda() is True:
plac... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
a1ba025fe318dd09aeeb95e54f2a655205cf044f | 0466559817d3a1be9409da2c83db99c4db3bacfe | /hubcheck/pageobjects/widgets/members_profile_citizenship.py | ec9f66eaa2fd00b4a7f93c8527708680e75ad588 | [
"MIT"
] | permissive | ken2190/hubcheck | 955cf9b75a1ee77e28256dfd3a780cfbc17de961 | 2ff506eb56ba00f035300862f8848e4168452a17 | refs/heads/master | 2023-03-20T15:17:12.949715 | 2015-09-29T16:11:18 | 2015-09-29T16:11:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,551 | py | from hubcheck.pageobjects.basepageelement import Radio
from hubcheck.pageobjects.basepageelement import Select
from hubcheck.pageobjects.widgets.members_profile_element import MembersProfileElement
class MembersProfileCitizenship(MembersProfileElement):
def __init__(self, owner, locatordict={}):
super(Memb... | [
"telldsk@gmail.com"
] | telldsk@gmail.com |
c5547a73de98204b49faad630d70600c0e27b32d | fd3c3ab6482c91e2ac6e497f89ed525eb93a7047 | /tests/test_stimulus.py | 6210872d3c6bd772e8d86955b420021640b855fd | [
"MIT"
] | permissive | alex-vrv/pyABF | 5c4d71f078f4b9bf6e95a1b58d10d9ca6510fed6 | 9ec95539f0130c307e6fa9b6edc980178b9cb6f7 | refs/heads/master | 2023-04-08T13:33:02.571622 | 2021-04-17T17:07:11 | 2021-04-17T17:07:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | """
Tests related to locating and reading command waveforms from stimulus waveform
files. If the stimulus waveforms aren't found you can provide a search path
as an argument when instantiating pyabf.ABF()
"""
import sys
import pytest
import os
import numpy as np
import time
import warnings
try:
# this ensures py... | [
"swharden@gmail.com"
] | swharden@gmail.com |
be1bb4ed6662e9ff830d39528774f26d5040e745 | 94f304cb4c2ac2ad6ff1ee39725f46254c8838bc | /core/draw/Ui_draw_point.py | 7ec948d966ec3c42e306b90ab1b088857653a980 | [] | no_license | kmolLin/python3_solve_dynamic | 105bd70edaa5014e0ad76a9a3c66e43dc0fa5ad7 | 18f56e6958dd1816dfb7c26f4857aa3b41de9312 | refs/heads/master | 2021-06-03T10:19:44.551240 | 2016-09-23T13:22:52 | 2016-09-23T13:22:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,397 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/ahshoe/Desktop/Pyslvs/core/draw/draw_point.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(s... | [
"smpss91341@gmail.com"
] | smpss91341@gmail.com |
3e3528b72cecdd0356d6df40b19ea4c3497bb400 | 914ca4921c114c917267214e0987ebecf30b3510 | /Programming_Practice/Python/Base/Bigdata_day1010/LIST08.py | aab3742c91537c9b07e87bb9007499fe748b1f30 | [] | no_license | BurnFaithful/KW | 52535030ea57f1489a0d108d599b66ffee50a1f4 | 15deb50449b8f902f623f20b97448c0f473a9342 | refs/heads/master | 2022-12-20T16:06:01.827398 | 2020-09-12T08:51:23 | 2020-09-12T08:51:23 | 294,897,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 731 | py | # 리스트 조작 함수 그 외
mylist = [30, 10, 20]
print("현재 리스트 :", mylist)
mylist.append(40)
print("append(40) 후 :", mylist)
res = mylist.pop()
print("pop()으로 추출한 값 :", res)
print("현재 리스트 :", mylist)
mylist.sort()
print("sort() 후 :", mylist)
mylist.reverse()
print("reverse() 후 :", mylist)
val = mylist.index(20)
print("index... | [
"burnfaithful@gmail.com"
] | burnfaithful@gmail.com |
45098d49bfd0204d1df0e2b2fdf4155f7bc7261a | b3c47795e8b6d95ae5521dcbbb920ab71851a92f | /Leetcode/Algorithm/python/1000/00944-Delete Columns to Make Sorted.py | 01c17945b8dcf7591fc445ab750d72a8edfe98a0 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Wizmann/ACM-ICPC | 6afecd0fd09918c53a2a84c4d22c244de0065710 | 7c30454c49485a794dcc4d1c09daf2f755f9ecc1 | refs/heads/master | 2023-07-15T02:46:21.372860 | 2023-07-09T15:30:27 | 2023-07-09T15:30:27 | 3,009,276 | 51 | 23 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | class Solution(object):
def minDeletionSize(self, A):
n = len(A[0])
st = []
for i in xrange(n):
st.append(''.join(map(lambda x: x[i], A)))
res = 0
for s in st:
if s != ''.join(sorted(s)):
res += 1
return res
| [
"noreply@github.com"
] | Wizmann.noreply@github.com |
ccc0db47bb35b02bf55b2a3b7b26bd606bcd75a7 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /log-20190927/132.230.102.123-10.21.11.20/1569575874.py | 5de66d09d31823420aabdb67b028801eeaf683e5 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,761 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def divisior(n: int) -> list:
"""Eine Funktion, die alle Dividenten einer positiven,
ganzen Zahl in einer Liste wiedergibt
"""
j = [n]
for d in range(n+1): #loop bis n
d > 0
if abs(n) % int(d)... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
3a04f547f002847a7ded45264a9b924b04ad80c2 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_95/2604.py | 17221a93a4af173a541d76a67dca1f017c864d35 | [] | 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,419 | py | f = open('A-small-attempt5.in')
lines = f.readline()
inputlist = f.readlines()
linewords =[]
TranslatedWord = ''
TranslatedWords = []
TranslatedSentence = ''
outputlist=[]
tongues = {}
tongues['a']='y'
tongues['b']='h'
tongues['c']='e'
tongues['d']='s'
tongues['e']='o'
tongues['f']='c'
tongues['g']='... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
05f1f72fb9d2533b3aba6ac889a694e0e1edc5f1 | 3088dc21f3e5eeb31575704712a695d71772495f | /torch/_C/_lazy.pyi | e86b80837d5898fd477b7f63c5e7ad387a2a65de | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | ezyang/pytorch | 8e82444c78025ff12fa605a62a18acfc43b176b8 | 6fc64500d1af9ee1306c7695ab0a2ff01852ff00 | refs/heads/master | 2023-09-02T01:56:28.108400 | 2022-06-07T19:13:21 | 2022-06-07T19:13:21 | 101,798,885 | 3 | 0 | NOASSERTION | 2022-08-23T22:10:07 | 2017-08-29T19:28:39 | C++ | UTF-8 | Python | false | false | 878 | pyi | from typing import List
from torch import Tensor
#defined in torch/csrc/lazy/python/init.cpp
def _mark_step(device: str, devices: List[str], wait: bool): ...
def _wait_device_ops(devices: List[str]): ...
def _reset_metrics(): ...
def _counter_names() -> List[str]: ...
def _counter_value(name: str) -> int: ...
def _get... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
eddda169430ed0378114c2ea9afbf5730a434155 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02984/s103576149.py | 4b0ac84178304706c240d4938f971696c04a987b | [] | 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 | 230 | py | n=int(input())
a=list(map(int,input().split()))
s=sum(a)
ans=[]
s1=0
for i in range(n):
if i%2==1:
s1+=a[i]
ans.append(str(s-s1*2))
for j in range(n-1):
ans.append(str(a[j]*2-int(ans[-1])))
print(' '.join(ans)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b973456b943c3feb54008e7162ec38a69daa125a | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008-EOL/programming/languages/perl/perl-Clone/actions.py | a535f852d7ba91e57c9e618fdef343f9b88e8c49 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2007,2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import perlmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
1bb3a9f8dfa507a3d76443d3a52f62ed9e64ba3a | eac7ae395c4832ac394087054ab014d1d6a9f6a6 | /python_experiments/data_analysis/figures_icde19/parse_others/parse_hidx.py | b9b210f1b1b13d1f29e2f0c48b1ac00e6f5122c1 | [
"MIT"
] | permissive | mexuaz/AccTrussDecomposition | 21be22007e1c50ca4b7df6fbbad1dfbf4c2fffae | 15a9e8fd2f123f5acace5f3b40b94f1a74eb17d4 | refs/heads/master | 2022-12-14T03:41:05.133564 | 2020-09-03T00:35:33 | 2020-09-03T00:35:33 | 291,565,779 | 0 | 0 | MIT | 2020-08-30T22:57:55 | 2020-08-30T22:57:55 | null | UTF-8 | Python | false | false | 1,989 | py | from data_analysis.util.read_file_utils_updated import *
from config import *
from exec_utilities import exec_utils
import json
others_time_hidx = 'h-idx'
def fetch_statistics(root_dir, dataset_lst, t_num, algorithm, json_file_path):
# Dataset -> Detailed Time Info
my_dict = dict()
for dataset in datase... | [
"yche@cse.ust.hk"
] | yche@cse.ust.hk |
3ac4f8b2a990c75001a1b676c0dcdbdcfaa0819c | 59b0ebc4249f20edd0e87dc63784c6e8c138c7fd | /.history/roman_20180615012149.py | 1f4d4bae42ab05f4189eed06aa87328cc9a2eeb8 | [] | no_license | Los4U/first_python_programs | f397da10be3ef525995f3f220e3b60012a6accaa | c3fc33a38c84abd292cb2e86de63e09434fc7fc4 | refs/heads/master | 2020-03-22T08:09:40.426118 | 2018-07-04T17:17:58 | 2018-07-04T17:17:58 | 139,748,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | number = 568
print("1000", number//1000)
print("900", number//900)
print("500", number//500)
print("400", number//400)
print("100", number//100)
print("90", number//90)
print("50", number//50)
print("40", number//40)
print("10", number//10)
print("9", number//9)
print("5", number//5)
print("4", number//4)
print("1", n... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
12623598889120e6503dc91e9996fe6e19049188 | eb9e5f950f567458deb7ac6a958e9e07eec8211c | /Python/Projects/mysite/im/views.py | d6a2010f3c6fe4d3720effe6c19e7f063374e179 | [] | no_license | hyteer/ytest | b32402f4a85af2cba298729b81ae73ccedbe6013 | 98234f88e923a705ce08673a269904ca81117f03 | refs/heads/master | 2020-01-23T21:47:40.100472 | 2017-01-23T10:12:21 | 2017-01-23T10:12:21 | 74,676,200 | 0 | 0 | null | 2017-01-23T10:12:22 | 2016-11-24T13:34:34 | JavaScript | UTF-8 | Python | false | false | 1,691 | py | # encoding: utf-8
from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.views import generic
from .forms import RoomLabelForm
from .models import Message, Room
# Create your views here.
def index(req):
#return HttpResponse("hi...")
if req.method == 'POST':
fo... | [
"hyteer@qq.com"
] | hyteer@qq.com |
f8a8e65317639d4af42307e7fb7372570acb74ba | 9cb4b0753f1392b488547395c43a8a6df5789a7a | /test/test_print_formats.py | c83cd4697133d482824149cf907251f9e8e95df5 | [
"BSD-2-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ZryletTC/archapp | db20cbcbf8135cc364d7dc0dda00a4409ff05800 | 68299fa3e35c292cff33bba55a3a75e9ae568815 | refs/heads/master | 2021-07-23T00:16:10.902137 | 2018-09-17T18:05:33 | 2018-09-17T18:05:33 | 233,143,295 | 0 | 0 | NOASSERTION | 2020-01-10T23:30:32 | 2020-01-10T22:50:21 | null | UTF-8 | Python | false | false | 319 | py | import unittest
from archapp.util import print_formats
class PrintFormatsTestCase(unittest.TestCase):
def test_print_list_no_crash(self):
print_formats.list_print([], do_print=False)
print_formats.list_print(["text"], do_print=False)
print_formats.list_print(["text"] * 50, do_print=False)
| [
"zlentz@slac.stanford.edu"
] | zlentz@slac.stanford.edu |
909fdf9e128bce0236a62e8ff7811d35593840e1 | 97a4d29863d1ce96f366554fdd985c3ce580bb5d | /038.py | 0992e125a2c74680dc26c628fe36a109f19fe972 | [] | no_license | Everfighting/Python-Algorithms | 5c3a102fed3a29858f3112d657c69e077efc7e28 | 235e9b4c66602035be39a8d3b3ad9cf016aebbb9 | refs/heads/master | 2021-01-20T22:19:18.902687 | 2018-03-02T05:38:27 | 2018-03-02T05:38:27 | 61,302,323 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
if __name__ == '__main__':
a = []
sum = 0.0
for i in range(3):
for j in range(3):
a.append(float(raw_input("input num:\n")))
for i in range(3):
sum += a[3*i+i]
#比原来的解法更加容易理解!
print sum
| [
"cbb903601682@163.com"
] | cbb903601682@163.com |
2f05dd68471f8c482bab11750f30469d447bc5fd | 5de646fb3ecf10ecb45e05018a23b6345fb9ca53 | /kickstart/2020 Round A/workout.py | 3228eaf2dddec7155a79d9a7818a00d038790e31 | [] | no_license | PPinto22/LeetCode | 5590d6ca87efcd29f9acd2eaed1bcf6805135e29 | 494a35542b61357c98c621202274d774e650a27c | refs/heads/master | 2022-04-29T20:37:31.085120 | 2022-04-02T12:02:30 | 2022-04-02T12:02:30 | 201,478,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,270 | py | import math
def solve(N, K, sessions):
diffs = [sessions[i + 1] - sessions[i] for i in range(N - 1)]
return min_binary_search(1, max(diffs), constraints, K, diffs)
# Validate if it is possible to achieve the given difficulty
# with less than 'max_splits' splits
def constraints(difficulty, max_splits, diffs)... | [
"pedropinto24@hotmail.com"
] | pedropinto24@hotmail.com |
a7fe54623cf7e91b74619370ecdf197fd332ce39 | 83727bce4680f56234b7ca35ab3fe99cd0cb0d3e | /lib/nark/__init__.py | c0748f97d6f7c712e456b91d78fa6e0469f45dfb | [] | no_license | onethousandfaces/rpg | 62647b2dd6ad0c253ed363f3bcd340706f075082 | 219b3f865c99d5619ec0a63f5e18ac1f0f064413 | refs/heads/master | 2021-01-15T16:16:11.037991 | 2013-04-07T07:41:20 | 2013-04-07T07:41:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from Enum import *
import log
import ioc
from Log import Log
from Register import Register
__all__ = [ enum, bitflags, log, Log, Register, ioc ]
| [
"linderd@iinet.net.au"
] | linderd@iinet.net.au |
93aa7788b41ca27080912ddcf5f42c76086fa66a | f7ae3a193cf672f2c7edf27518f6d3871f635bce | /tools/gen_daily_areas_scotland.py | dd1391d07c85027df83bc161ea627e10c7746a1b | [] | no_license | lozenge0/covid-19-uk-data | 262c158f27734dc0d8b0e3d28c21be613465eebe | e9f2c927e0be2e4301921d423108160e4a272ade | refs/heads/master | 2021-03-26T01:50:55.964597 | 2020-03-15T21:58:24 | 2020-03-15T21:58:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | #!/usr/bin/env python
# Extract local authority case data (England) or health board data (Scotland) from an HTMLpage and save in CSV format.
from bs4 import BeautifulSoup
import csv
import pandas as pd
import re
import sys
html_file = sys.argv[1]
csv_file = sys.argv[2]
# Get upper tier local authority name to code ... | [
"tom.e.white@gmail.com"
] | tom.e.white@gmail.com |
ddea386e7d4b21095806b4773a9d65d07e26e84f | d5d9996c55414561fe77a2630ad7e0cfff0735ad | /pddm/statstics_anlysis/bootstrapped/__init__.py | f83d651288bd9cb793be2ee6023a791a593a03fa | [
"Apache-2.0"
] | permissive | kyo-kutsuzawa/EEI_Analysis_model_based_rl | 4b704875619be0045b6f3b1ad12e86bd1041347c | d83ad7a7da936672a05ccacc6846d16c33421b96 | refs/heads/main | 2023-01-11T22:36:49.348156 | 2020-11-10T04:54:21 | 2020-11-10T04:54:21 | 313,227,869 | 0 | 0 | Apache-2.0 | 2020-11-16T07:55:31 | 2020-11-16T07:55:30 | null | UTF-8 | Python | false | false | 295 | py | # Copyright (c) 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
| [
"a.hamada@neuro.mech.tohoku.ac.jp"
] | a.hamada@neuro.mech.tohoku.ac.jp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.