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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1f204b9f362f97e84e1afdfb30147c6c153e674e | 3726c43d910d65d8c761101f2dc4f0b8babf8193 | /09_matlpotlib_example/matplotlib_example.py | babab2dc28252d0297c6442bf2e73fa92330fae4 | [] | no_license | GCWK/pylatex | 1a844cadc86e5793d1554aa731aca10749542bf9 | bf12eb217831d358c1fcf76f0a6d5426443183d8 | refs/heads/master | 2020-03-16T15:18:54.688507 | 2018-04-04T10:18:15 | 2018-04-04T10:18:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | import matplotlib
from pylatex import Document, Section, Figure, NoEscape
matplotlib.use('Agg') # Not to use X server. For TravisCI.
import matplotlib.pyplot as plt # noqa
def main(fname, width, *args, **kwargs):
geometry_options = {"right": "2cm", "left": "2cm"}
doc = Document(fname, geometry_options=geo... | [
"rishikesh0014051992@gmail.com"
] | rishikesh0014051992@gmail.com |
53d0698e79f92df35e84aaed46ca339ac9800690 | a5c4290c224edd827a0a3db4f849d1d31e1448fc | /push/core/views.py | 24d4b4c615243d1a480255917abd0bc51cda061f | [] | no_license | prakashpandey0/flask-boilerplate | 0b76f107ecbeee5808abe3f48288b99148fc83a7 | cc14af39f4d9cb914a19b6144622c8859a69d760 | refs/heads/master | 2020-05-09T14:35:26.837305 | 2019-04-13T16:37:23 | 2019-04-13T16:37:23 | 181,199,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from flask import render_template, Blueprint, url_for, flash, redirect
core = Blueprint('core',__name__)
@core.route('/')
def index():
return render_template('base.html')
| [
"="
] | = |
9fabdd8e9830ce103d447f9bea14b0a2e6f892bf | c4c0f5d742b88106053b63a0c0e710efeb867e79 | /digestiflow/contrib/sites/migrations/0003_set_site_domain_and_name.py | 4e7b82a6cdc36066934102b3e18db9474eaef147 | [
"MIT"
] | permissive | bihealth/digestiflow-server | 0ed49c371cd59da5c331259a65cdd75ca71fab76 | 83f94d068d8592d83254a0b4271be9523334339d | refs/heads/main | 2023-02-18T05:56:13.261282 | 2022-04-21T09:43:58 | 2022-04-21T09:52:52 | 165,990,428 | 16 | 3 | null | 2023-02-16T05:17:33 | 2019-01-16T06:56:04 | Python | UTF-8 | Python | false | false | 971 | py | """
To understand why this file is here, please read:
http://cookiecutter-django.readthedocs.io/en/latest/faq.html#why-is-there-a-django-contrib-sites-directory-in-cookiecutter-django
"""
from django.conf import settings
from django.db import migrations
def update_site_forward(apps, schema_editor):
"""Set site d... | [
"manuel.holtgrewe@bihealth.de"
] | manuel.holtgrewe@bihealth.de |
469ae29741573daf39ddf6eed0967f97f97c7795 | 5517b91a4be684d822d35a6c2bd8d21f1098aebc | /tensorflow/_api/random/__init__.py | 37c1f5e5a324beb0bf4e4ad6a0ceaa470295f6a2 | [
"BSD-2-Clause"
] | permissive | zhengruiguo/dragon | 785f52a2eaba0899b2e598a4365adf1b43e07b38 | 3dfb6ea55d90d2fb2da9b1b471f5e1e7d7667810 | refs/heads/master | 2023-05-31T22:48:42.157381 | 2021-06-29T01:59:24 | 2021-06-29T01:59:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | # ------------------------------------------------------------
# Copyright (c) 2017-present, SeetaTech, Co.,Ltd.
#
# Licensed under the BSD 2-Clause License.
# You should have received a copy of the BSD 2-Clause License
# along with the software. If not, See,
#
# <https://opensource.org/licenses/BSD-2-Clause>
#
# -... | [
"ting.pan@seetatech.com"
] | ting.pan@seetatech.com |
a8c0ff71483bec4da155e09860cdd65d67f24b7b | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/movingMedian_20200630225655.py | 7a6f9a76abee73a168a993d8df9ef4abbfbad16d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | def MovingMedian(arr):
answer = []
window = arr[0]
for i in range(1,len(arr)):
if i <= window:
print(MovingMedian([3,1,3,5,10,6,4,3,1])) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
c7e2ac2bc9330e5c38f1662368d23d0b35635f94 | 711bb41967f77e8f41ab465dc13a7653ff40ea04 | /insight/test.py | 168d8c07d091304923f1421a7749144ead813570 | [] | no_license | aemerick/eeda | c77e6e7023fb12c82ed3a7f6a143b1673306192c | deef618dc926f0049b6a624d5c42e9715efb489c | refs/heads/master | 2023-02-18T16:11:41.342953 | 2021-01-19T04:02:51 | 2021-01-19T04:02:51 | 283,013,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import sys
if len(sys.argv) > 1:
workdir = str( sys.argv[1] )
a = int( sys.argv[2] )
b = int( sys.argv[3] )
print(workdir)
print(a+b)
| [
"aemerick11@gmail.com"
] | aemerick11@gmail.com |
a5ca4d82fdb3dba25b144ce21e8187bd2ddc9f84 | 58f81a20e6a22d17af626d423c6e1a5b160f784c | /services/core-api/tests/now_submissions/resources/test_application_status_resource.py | 587cc601338df06303e04b9a56eba21d3eed3f65 | [
"Apache-2.0"
] | permissive | cryptobuks1/mds | 5e115c641dfa2d1a91097d49de9eeba1890f2b34 | 6e3f7006aeb5a93f061717e90846b2b0d620d616 | refs/heads/master | 2022-04-23T21:11:37.124243 | 2020-04-14T17:55:39 | 2020-04-14T17:55:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | import json, datetime
from tests.factories import (NOWSubmissionFactory, NOWApplicationIdentityFactory)
class TestGetApplicationResource:
"""GET /now-submissions/applications/{messageid}/status"""
def test_get_now_application_status_by_messageid_success(self, test_client, db_session,
... | [
"bcgov-csnr-cd@gov.bc.ca"
] | bcgov-csnr-cd@gov.bc.ca |
99cff4cc4d8ccf1555c52bc29a348384f5c4c997 | 06e030c6d0703bc3ad4a0a48821278ebeb3f992c | /document_feature_selection/pmi/pmi.py | 280a0c03af1c31147c764a9a7cc4e87a0a674aea | [
"LicenseRef-scancode-cecill-b-en"
] | permissive | Sandy4321/document_feature_selection | bee35868c61bafe74eb2c5f495675b0130ad8a5f | 24e7ea0b9abaf94a93dfa6fe0fecddd4a7169000 | refs/heads/master | 2021-01-17T18:23:45.531720 | 2015-11-04T02:38:54 | 2015-11-04T02:38:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,785 | py | #! -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals
from __future__ import division
from scipy.sparse import csr_matrix
import logging
import math
__author__ = 'kensuke-mi'
def PMI(pmi_csr_matrix, word_index, label_index, label... | [
"kensuke.mit@gmail.com"
] | kensuke.mit@gmail.com |
a1090e34dba45d47665f97dc0e1c1fded09f4e82 | 4c3ad36846fe4382fafd55ed831bd2fef8e454cd | /easy/Complex Number Multiplication.py | 5246abe8ca13c598bf538b66c1b3910c663f7091 | [] | no_license | gjwei/leetcode-python | 809f1f2d43d62eb931d42f2e7e271abf4a426017 | 7f25fa62c8cfa0fb24d57fd2a62059e0e98a6002 | refs/heads/master | 2021-01-20T01:38:01.149608 | 2018-01-05T06:43:05 | 2018-01-05T06:43:05 | 89,308,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | class Solution(object):
def complexNumberMultiply(self, a, b):
"""
:type a: str
:type b: str
:rtype: str
"""
a_real, a_image = self.get_real_and_image(a)
b_real, b_image = self.get_real_and_image(b)
result_real = a_real * b_real - a_image * b_image
... | [
"1449894353@qq.com"
] | 1449894353@qq.com |
f17fdf4652f191125b19f7894d87babb374cebe9 | ed7757eb7c030e1c0cd7a2aacde9d7785b8ef825 | /tests/unit2/test_textured_rects.py | 0db7388cddb89bb0135a37acb22d6fe737bb38ed | [
"MIT"
] | permissive | callmebg/arcade | 3f45796e0e8b02151d7283f1b4d619ad320c64e5 | 50d05415001423a4f15013b95db05bea6ca1fd09 | refs/heads/master | 2021-05-17T10:20:25.070726 | 2020-03-27T19:19:58 | 2020-03-27T19:19:58 | 250,736,736 | 1 | 0 | NOASSERTION | 2020-03-28T07:20:06 | 2020-03-28T07:20:05 | null | UTF-8 | Python | false | false | 1,280 | py | """
Tests for textures.
"""
import arcade
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
LINE_HEIGHT = 20
CHARACTER_SCALING = 0.5
class MyTestWindow(arcade.Window):
def __init__(self, width, height, title):
super().__init__(width, height, title)
arcade.set_background_color(arcade.color.AMAZON)
... | [
"paul@cravenfamily.com"
] | paul@cravenfamily.com |
f30744656736bded0ae659a9be251fbab08626c5 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01/aio/operations/_service_tags_operations.py | 1213eb4bd10b0f335d53a03dd4996182ad7f0632 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 4,501 | 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"
] | scbedd.noreply@github.com |
9e20869d17ac2418200aba42e8717dc6ebceea2e | f225709950b0d66dfe109b64b06bf82ad61221f3 | /branches/cursor/engine/game.py | 9f4f52518f14955989a5a49492f1beb0a1365922 | [] | no_license | BGCX262/zycars-svn-to-git | ab9d7eeba2245285a0dd7b743470273249b93173 | a1e53a00f02b3b11213eea44cb69d5e593a58f31 | refs/heads/master | 2020-04-18T06:34:53.071044 | 2015-08-23T06:58:07 | 2015-08-23T06:58:07 | 41,257,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,508 | py | # -*- encoding: utf-8 -*-
import pygame
from pygame.color import *
import data
import resource
import keyboard
import cursor
import xml.dom.minidom
from pygame.locals import *
class Game:
'''
Clase encargada de inicializar pygame. Tiene el bucle principal .
También lleva el control de cada estado del jue... | [
"you@example.com"
] | you@example.com |
03eb2261bf0705a1179512dade81c7e1cfd3cf2b | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_arm/source/numpy/polynomial/__init__.pyi | bebedb3a69902c9b64ac3291ba8be303c9ab415f | [
"MIT",
"BSD-3-Clause",
"GPL-3.0-or-later",
"BSD-3-Clause-Open-MPI",
"GPL-3.0-only",
"GCC-exception-3.1"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 641 | pyi | from typing import List
from numpy.polynomial import (
chebyshev as chebyshev,
hermite as hermite,
hermite_e as hermite_e,
laguerre as laguerre,
legendre as legendre,
polynomial as polynomial,
)
from numpy.polynomial.chebyshev import Chebyshev as Chebyshev
from numpy.polynomial.hermite import H... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
784d7cc888ae77dc62703a0f1c45fae42b8e1604 | 38c37dc6909c19029c12312ce842e8e848d50083 | /algorithm/D26_2019_04_03(AD)/N QUEEN(BASIC).py | e81427755b87cf32f808154ffd422c258e439a8c | [] | no_license | jho0078/til | 46e50eaa043a21f18fa772993c137861c40cb038 | 6110ccc072d3e92e7bb50760d0a69108f3d6c71f | refs/heads/master | 2020-04-14T10:03:24.047740 | 2019-10-18T00:23:09 | 2019-10-18T00:23:09 | 163,776,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 835 | py | def iswall(y, x):
if y < 0 or x < 0 or y >= N or x >= N:
return True
return False
def marking(y, x, n, copytable):
dx = [1, -1, 0, 0, 1, 1, -1, -1]
dy = [0, 0, -1, 1, 1, -1, 1, -1]
for i in range(8):
for k in range(1, n+1):
nx = x + dx[i]*k
ny = y + dy[i]*k
... | [
"jho0078@gmail.com"
] | jho0078@gmail.com |
caccad5ee5d8e373fa1aa8a293c46a8268b1f23a | 925e4cd2580ee40051ac9823e8443ec8c9300cfd | /installer.py | 6c432c39b37c4a79725629ecb4d1c8f58fde33ff | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Team-Donut/XenText | 8f63ffe741fbf2b7278c7ff0decfd188782f7da8 | ccba4cfe9dac96eb87ff75415afe03ab7767138b | refs/heads/master | 2022-07-30T20:01:57.563689 | 2020-05-17T08:30:50 | 2020-05-17T08:30:50 | 264,616,452 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | import sys
from time import *
import os
os.system("clear")
print("--- Xent language installation ---")
print("")
print("requirements for installation:")
print("1. python3 +")
print("2. space to install")
print("3. wget, as the source will be written from there")
print("")
print("will install Xent 2.0 and XentCLI")
sle... | [
"none"
] | none |
1c52979c050e1b3453a7cd74dfbc11ded63605a4 | 632efa9e1991bc632aaba4783e05c942afc77712 | /liberapay/elsewhere/_paginators.py | 0481b1d254b2ff729f52bcf3cf5299ad633bbf5b | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | astiob/liberapay.com | 82e2785b17a104197c483bf5dd1c1cc85cc1cb26 | 29842f7aeaaaca99f4427ff43ebdefd41223ff9c | refs/heads/master | 2020-04-05T23:39:24.843313 | 2016-04-19T13:02:07 | 2016-04-19T13:02:07 | 56,925,959 | 0 | 1 | null | 2016-04-23T15:22:00 | 2016-04-23T15:22:00 | null | UTF-8 | Python | false | false | 3,278 | py | """Helper functions to handle pagination of API responses
"""
from __future__ import unicode_literals
try:
from urllib.parse import parse_qs, urlencode, urlsplit, urlunsplit
except ImportError:
from urllib import urlencode
from urlparse import parse_qs, urlsplit, urlunsplit
def _modify_query(url, key, va... | [
"changaco@changaco.oy.lc"
] | changaco@changaco.oy.lc |
504f0c7a54770575130f804e8d018999551b29f5 | 0c66e77b8449b6cc4740951311ff5655db43e1a2 | /corral/run/alert.py | 85004fa66fefd1a284bae035f9c0076435c2166e | [] | no_license | EdwardBetts/corral | b3b2c6731dae8486c77683953eef0ae3ce8eef9e | ad46cfa39a7620636cbc35c5f037b74c0406e02f | refs/heads/master | 2021-01-16T22:02:51.352888 | 2016-04-06T05:36:46 | 2016-04-06T05:36:46 | 56,488,397 | 0 | 0 | null | 2016-04-18T07:58:23 | 2016-04-18T07:58:22 | null | UTF-8 | Python | false | false | 5,691 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import inspect
import datetime
import collections
import six
from .. import conf, db, util, exceptions
from ..db.default_models import Alerted
from ..core import logger
from .base import Processor, Runner
# =============================================================... | [
"jbc.develop@gmail.com"
] | jbc.develop@gmail.com |
627e70d89b13e39c61dcc631041d113ae0466faa | 7cc5183d0b36133330b6cd428435e6b64a46e051 | /tensorflow/lite/testing/op_tests/gather.py | d23e917067a0bf97204a8e70395de3025c326efd | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | shizukanaskytree/tensorflow | cfd0f3c583d362c62111a56eec9da6f9e3e0ddf9 | 7356ce170e2b12961309f0bf163d4f0fcf230b74 | refs/heads/master | 2022-11-19T04:46:43.708649 | 2022-11-12T09:03:54 | 2022-11-12T09:10:12 | 177,024,714 | 2 | 1 | Apache-2.0 | 2021-11-10T19:53:04 | 2019-03-21T21:13:38 | C++ | UTF-8 | Python | false | false | 4,485 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
a9b46680ee3b761a78ca91aaf10cbecca2559e23 | b57d337ddbe946c113b2228a0c167db787fd69a1 | /scr/Spell484 - Summon Nature's Ally IX.py | b420b11f09b87237db5db2894c65a1e02982e8da | [] | no_license | aademchenko/ToEE | ebf6432a75538ae95803b61c6624e65b5cdc53a1 | dcfd5d2de48b9d9031021d9e04819b309d71c59e | refs/heads/master | 2020-04-06T13:56:27.443772 | 2018-11-14T09:35:57 | 2018-11-14T09:35:57 | 157,520,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | from toee import *
from utilities import *
from SummonMonsterTools import *
def OnBeginSpellCast( spell ):
print "Summon Nature's IX OnBeginSpellCast"
print "spell.target_list=", spell.target_list
print "spell.caster=", spell.caster, " caster.level= ", spell.caster_level
game.particles( "sp-conjuration-conjure", s... | [
"demchenko.recruitment@gmail.com"
] | demchenko.recruitment@gmail.com |
903a1a5b0af4467d477bff72b1f1140a6b6f9ac6 | 5f8487a7efb97d90ec0393b0db046b7ca908378b | /wk2/lessons/8ball.py | 1accba89ce1e66ffe09dfedeccf682a6c060214b | [] | no_license | sphilmoon/karel | 444fe686c083b3a6b101141c3b16e807ef54a4ba | f6e8a1801509d49d188cf579856cec5d7033bbde | refs/heads/main | 2023-08-25T10:23:19.010270 | 2021-10-20T12:26:35 | 2021-10-20T12:26:35 | 359,027,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | # this is a week2 group assignment.
# 8 ball will answer your questions.
import random
def main():
question1 = input("What's your question: ")
while question1 != '': # if q1 is not empty, then:
randome_answer()
question1 = input("What's your question: ")
else: # if q1 is empty, then:
print("No more question... | [
"sphilmoon@gmail.com"
] | sphilmoon@gmail.com |
95124c6f07eef00ddf78a4340c06b6892f7de26f | b0a1d23ffda6a76d6c87e9f3fe8c760453c86357 | /mybot/views.py | fa2e58c4e7e6e705a2d02ad8cb27647266588266 | [] | no_license | skafis/fb_bot | 698500404905dc02ac752e5ce5b721c3847916d0 | 935d342c4593b15b06c7a2ad7ccfae28cee14725 | refs/heads/master | 2020-12-25T07:20:49.922803 | 2016-06-28T17:42:56 | 2016-06-28T17:42:56 | 62,161,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | from django.shortcuts import render
from django.views import generic
from django.http.response import HttpResponse
# Create your views here.
class mybotview (generic.View):
def get(self, request, *args, **kwargs):
return HttpResponse ("Hello world! MF")
| [
"franciskipchumba5@gmail.com"
] | franciskipchumba5@gmail.com |
3f4b01dc2399806f7678a3ba7db2b0f40a994c69 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04046/s260437334.py | c58c2e3a9331c6c1cd1f2ea2606943155cb322fb | [] | 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 | 525 | py | import sys
input = sys.stdin.readline
H,W,A,B= map(int,input().split())
MOD = 10**9 + 7
num = 200010
fact = [1] * (num+1)
ifact = [1] * (num+1)
for i in range(1,num+1):
fact[i] = (fact[i-1] * i) % MOD
ifact[-1] = pow(fact[-1],MOD-2,MOD)
for i in range(1,num+1)[::-1]:
ifact[i-1] = (ifact[i] * i)% MOD
def nCr(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cef95d58f44edac9f78b3737692f5e89305ea179 | 39c8624b4e36b7e49e2612530ca4fdc7fc9099b4 | /setup.py | 1d353ae3a5d744b2e929e61fd93726d4b700d8b7 | [
"BSD-3-Clause"
] | permissive | flaviovdf/phoenix | a18787c67c81bbe15d2607bd989247965548b4f5 | 59177657f13337b14d1fe27527a9b09c2c1c1419 | refs/heads/master | 2016-09-05T15:33:17.831995 | 2016-02-01T16:11:25 | 2016-02-01T16:11:25 | 19,543,790 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | #!/usr/bin/env python
# -*- coding: utf-8
from __future__ import division, print_function
'''Setup script'''
import glob
import numpy
import os
import sys
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
SOURCE = '.'
os.chdir(SOURCE)
if sys.version_in... | [
"flaviovdf@gmail.com"
] | flaviovdf@gmail.com |
71856300434cde12fa7ecf800d283dba9c8f75ea | 3c2b5fd20c7372fccb97fa76deb0980a173b5991 | /PythonFullStack/000Basic/005ListFormula.py | d071098e8ff020b90f5fcee188f3adb06014af16 | [] | no_license | softwarefaith/PythonFullStack | 560cdc2c0c38831e8304751b8b2bf680cb2f23e5 | 292cc0a5eee3ed8eb8a8d5e14673226533d2651e | refs/heads/master | 2021-05-15T09:57:37.812869 | 2019-02-21T10:37:41 | 2019-02-21T10:37:41 | 108,229,662 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 787 | py |
"""
列表生成式
即List Comprehensions
Python内置的非常简单却强大的可以用来创建list的生成式。
L = []
for x in range(1, 11):
L.append(x * x)
转换为:
[x * x for x in range(1, 11)]
for循环后面还可以加上if判断
[x * x for x in range(1, 11) if x % 2 == 0]
运用列表生成式,可以快速生成list,
可以通过一个list推导出另一个list,而代码却十分简洁。
"""
from collections import Iterable
L = ... | [
"jie.cai@mljr.com"
] | jie.cai@mljr.com |
1d83a15bc8470b129a25df8ad7f3c00ba9554c9e | 2b7852fecd8602f019b4784df07b571b2a5df15c | /21.py | b5bb4d10ac730f11f05c5a060b4dc60bc1bc07a4 | [] | no_license | tech-vin/Practice-Python | 5a08d821aa75bedda28475134ef6743247314abf | 599c1b8d33627de5d9f1cb704ae6005cae934a53 | refs/heads/master | 2022-11-20T09:27:41.659203 | 2020-07-26T04:06:20 | 2020-07-26T04:06:20 | 279,064,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | # find odd or even
def isOdd(n):
if n % 2 == 0:
return 'even'
else:
return 'odd'
print(isOdd(2))
print(isOdd(1))
print(isOdd(-2)) | [
"noreply@github.com"
] | tech-vin.noreply@github.com |
08bc99e1cdc916c14df89d5b7f00ab4998423cff | d89c6643d2e09f0cc0ab436629c5bfcdee613d81 | /perceptron.py | 1dd8658779c0253306aab93591d555ebcd204362 | [] | no_license | jaredly/backprop | dc06420e2191a81d9aed5a082be9054686d0300b | 252b3f899b7031b47efcfa567a5fbaf6e407e990 | refs/heads/master | 2016-09-01T20:10:47.974270 | 2014-02-18T02:20:42 | 2014-02-18T02:20:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | py | #!/usr/bin/env python
from runner import Runner
from learner import Learner
from scipy.io.arff import loadarff
from utils import subData
class Perceptron:
def __init__(self, size, rate=.1):
self.weights = np.zeros(size)
self.trainingRate = rate
def classify(self, line):
line = np.con... | [
"jared@jaredforsyth.com"
] | jared@jaredforsyth.com |
5906e7d66792dce88d0ef0b5c2d427addfcc49cf | a6b5ce76b5e8b64db0c1dd910332aff1b192e49e | /src/libs/con_database.py | f89b9dc94d7a634a0fc4c626b4cc49882f4a0ad9 | [
"Apache-2.0"
] | permissive | flyfish0087/Yearning | 6aea529fd9b08a52badbc6ae070f887a6b5180c7 | 5db9e34710ed6b5ddccd26a00de184d5ca6d9a05 | refs/heads/master | 2021-04-27T22:20:01.612069 | 2018-04-12T07:05:35 | 2018-04-12T07:05:35 | 122,417,112 | 0 | 0 | Apache-2.0 | 2018-04-12T07:05:36 | 2018-02-22T01:43:40 | Vue | UTF-8 | Python | false | false | 6,058 | py | '''
About connection Database
2017-11-23
cookie
'''
import pymysql
class SQLgo(object):
def __init__(self, ip=None, user=None, password=None, db=None, port=None):
self.ip = ip
self.user = user
self.password = password
self.db = db
self.port = int(port)
self.con ... | [
"392183@qq.com"
] | 392183@qq.com |
f2f209c6d058bf5d427795737e9b8b26d4e2fd94 | 467f9e8d2181c6cfba59afc4c596e328fa1ddbbc | /accounts/migrations/0005_auto_20150831_1146.py | 345f92f77f80cd7697918a181b6c948e15373b5b | [] | no_license | jphalis/oby | 40af213349d7d68e748d34b25c14653876874110 | 20d4b43f7918c98044f82e7bdb9c34dcc10a7994 | refs/heads/master | 2021-05-21T11:13:58.612908 | 2016-06-15T22:05:20 | 2016-06-15T22:05:20 | 36,603,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,686 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import accounts.models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_auto_20150831_1102'),
]
operations = [
migrations.AlterField(
model_name... | [
"jphalisnj@gmail.com"
] | jphalisnj@gmail.com |
23d78f6ae18b284375bbddaa133df0c517e5f7f7 | 1fdccdf459d601c6b621022e3376003b05a4a7c7 | /1-chapter-aSneakPreview/4-step4-AddingConsoleInterction/1-aConsoleShelveInterface/dump_db_classes.py | 0271741941aae3f076411c40c71a102e323631e6 | [] | no_license | jonasht/programmingPython-book | 8e12995f35c2e035e7ee738ab453c365e9f3c53e | 53ad3c5d8c7e9559a09c5ea3fa4d9e13fe4e6329 | refs/heads/main | 2023-06-23T13:33:55.211775 | 2021-07-27T21:40:30 | 2021-07-27T21:40:30 | 367,163,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | import shelve
db = shelve.open('class-shelve')
for key in db:
print(key, '->\n ', db[key].name, db[key].pay)
bob = db['bob']
sue = db['sue']
tom = db['tom']
print(bob.last_name())
print(sue.last_name())
print(tom.last_name()) | [
"jhenriquet@outlook.com.br"
] | jhenriquet@outlook.com.br |
f89277e71c2c2e2eed72ca2fb9f84c8198416ebd | 4577d8169613b1620d70e3c2f50b6f36e6c46993 | /students/1757012/homework02/program03.py | b66d85d0ba109ee6efc838530b95d81723e2fefe | [] | no_license | Fondamenti18/fondamenti-di-programmazione | cbaf31810a17b5bd2afaa430c4bf85d05b597bf0 | 031ec9761acb1a425fcc4a18b07884b45154516b | refs/heads/master | 2020-03-24T03:25:58.222060 | 2018-08-01T17:52:06 | 2018-08-01T17:52:06 | 142,419,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,422 | py | '''
Abbiamo una stringa i cui elementi sono cifre tra '0' e '9' (comprese) che rappresenta la struttura di una parola.
La parola contiene al piu' 10 lettere diverse (ma puo' essere piu' lunga di 10 lettere se alcune sono ripetute),
e la struttura si ottiene dalla parola sostituendo ciascuna lettera con una cifra, seco... | [
"a.sterbini@gmail.com"
] | a.sterbini@gmail.com |
f0eb55500695029fb104f3c0f8a3221b295227cb | 573e4c2d662ac9e27b2f575aa5cc60a7d74915c5 | /giiit/models/ref.py | 583936fb665469677537dad94eb487de38901f57 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | maizy/giiit | 4cec7999065188bf441c5d20faeec3eaadbe645b | 31d2cbbf4969e2330671382475e3423dd992bde1 | refs/heads/master | 2021-01-10T07:48:43.613350 | 2013-07-04T14:11:57 | 2013-07-04T14:11:57 | 8,518,646 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | # _*_ coding: utf-8 _*_
# Copyright (c) Nikita Kovaliov, maizy.ru, 2013
# See LICENSE.txt for details.
from __future__ import unicode_literals, absolute_import
from giiit.parsers import ParserError, WrongOutputError
from giiit.multi_version import to_str, uu
SYMBOLIC_REF_TYPES = ('tags', 'heads', 'remotes')
@to_str... | [
"nikita@maizy.ru"
] | nikita@maizy.ru |
28bea3488fa5a5145856296a41b5e96ee30a94ba | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_158/1061.py | c74d24fea00b6ab6a404091b1afc9595c9ea284f | [] | 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,524 | py | str_format = "Case #{0}: {1}\n"
names = ['RICHARD', 'GABRIEL']
with open("D-small-attempt0.in", "r") as input_f:
first_line = input_f.readline()
case_number = int(first_line)
for case_nr in range(case_number):
# INPUT
one_line = input_f.readline()
X, R, C = one_line.split()... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
12d194ef4df95f0a3882ed9b79c2432e765cca3d | 0afe73244e4d0ff7ef2b7f242475f4db2ac844ac | /228-Summary-Ranges.py | 6b539fb1770df92f6876e6e57b223e7c395d8f46 | [] | no_license | liuspencersjtu/MyLeetCode | 7261c7cfae4a175c6ca67dfe471e8c847a805a53 | b7d9238d692b1b2f5ab8f73a76d02228a71a4d15 | refs/heads/master | 2023-04-17T04:56:52.999553 | 2023-04-10T06:21:36 | 2023-04-10T06:21:36 | 129,114,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | class Solution:
def summaryRanges(self, nums: List[int]) -> List[str]:
if not nums:
return []
res = []
low, fast = 0, 0
while fast<len(nums):
if fast and nums[fast]-nums[fast-1]>1:
if fast-low==1:
res.append(str(nums[low]))
... | [
"liusjtu@163.com"
] | liusjtu@163.com |
aaa2c9f202014a196955a46854dd8a68ac5d4859 | ee8577b0d70ae783e42032fdf38bd4ec6c210ccf | /barddo/publishing/migrations/0002_load_basic_data.py | 3f960326c76cd95891e3fef44ec3cdea95ac6746 | [] | no_license | bruno-ortiz/barddo | 9192cfd5aff9ca0f296f476877b468919bdc5636 | 4f7aa41fd0697af61539efd1aba2062addb63009 | refs/heads/master | 2023-05-19T11:15:05.251642 | 2014-09-21T18:36:44 | 2014-09-21T18:36:44 | 374,435,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,866 | py | # -*- coding: utf-8 -*-
from south.v2 import DataMigration
class Migration(DataMigration):
def forwards(self, orm):
from django.core.management import call_command
call_command("loaddata", "publishing_basic_data.json")
def backwards(self, orm):
pass
models = {
u'accounts... | [
"devnull@localhost"
] | devnull@localhost |
3833454b4c78927a303db244c8e4741a2e2c35db | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/6020/841006020.py | 3b359f6c0c6dbd3b8a8f86ae0eb01988d63e552d | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 3,864 | py | from bots.botsconfig import *
from records006020 import recorddefs
syntax = {
'version': '00602',
'functionalgroup': 'SP',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'SPI', MIN: 1, MAX: 99999, LEVEL: [
{ID: 'RDT', MIN: 0, MAX: 99999},
{ID: 'NTE', MIN: 0, MAX: 99999},
... | [
"doug.vanhorn@tagglogistics.com"
] | doug.vanhorn@tagglogistics.com |
2906d77f08b6e9072a829113165d75291c04cbf7 | 04aecd18367674d8f35c68e2ad777fd43ca0831d | /mezzrow/oscar_apps/dashboard/reports/utils.py | 858d1f06331bb8cec09c7cacbdebd75f7c936d82 | [] | no_license | SmallsLIVE/mezzrow | e3fd7cd692a55169700ad83e5b7b72ca238adac0 | 325ef74a44977660ad21e2f2ea56093f8ff9a4d8 | refs/heads/master | 2021-06-29T01:57:28.203474 | 2020-01-30T16:40:02 | 2020-01-30T16:40:02 | 21,049,571 | 1 | 1 | null | 2021-06-10T18:33:55 | 2014-06-20T19:18:36 | Python | UTF-8 | Python | false | false | 292 | py | from oscar.apps.dashboard.reports.utils import GeneratorRepository as CoreGeneratorRepository
from site_app.reports import TicketReportGenerator
class GeneratorRepository(CoreGeneratorRepository):
def __init__(self):
self.generators = [TicketReportGenerator] + self.generators
| [
"filip@jukic.me"
] | filip@jukic.me |
7901ce8130852f204e43623dfd61af80078193c3 | 9b7291d81a416bde2ec181229601eb2e33c7b8b2 | /monophoton/spikes/scan_ab.py | a3b5e7c5d149b6d659177856ea640eccd7551c87 | [] | no_license | MiT-HEP/MonoX | ab1528e72dad2590a0ae64f1a1d47195139e1749 | 224ee01107a94cedf8563c497edb2f326b99d9b1 | refs/heads/master | 2021-01-24T06:04:16.645559 | 2019-11-15T09:18:40 | 2019-11-15T09:18:40 | 41,823,403 | 1 | 9 | null | 2018-07-19T17:05:30 | 2015-09-02T19:33:33 | Python | UTF-8 | Python | false | false | 989 | py | """
Scan along the alpha-beta correlation line and plot sieie:t0 for each point.
"""
import ROOT
ROOT.gStyle.SetOptStat(0)
points = [
(0.4, 2.8),
(0.4, 2.4),
(0.5, 2.8),
(0.6, 2.),
(0.7, 2.),
(0.8, 1.9),
(0.85, 1.8),
(0.8, 2.),
(0.95, 1.8),
(1., 1.75),
(1.05, 1.7),
(1.... | [
"yiiyama@mit.edu"
] | yiiyama@mit.edu |
339b5a8d913a26682a5de1ed9802a59c02197f21 | c577331726f124c872dbc6aa65516834848cb997 | /520/Aula3/parametros2.py | 88fb0f547bc88200fcbbd2aa9b1a19a15dfca75f | [] | no_license | lcbezerra/phyton520 | 4421085c04dd7ac7e805f5c84384883fb2827b6a | 6b38e60dbef1d69ba110879cc7eb0cdf9ea80010 | refs/heads/master | 2020-09-17T07:08:15.509100 | 2019-11-28T20:29:14 | 2019-11-28T20:29:14 | 224,030,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | # #!/usr/bin/python3
# '''
# '''
# ########################
# ## PARÂMETROS DE FUNÇÃO
# ########################
# def retorna_pessoa(nome,idade=99):
# print(f'Nome: {nome}\nidade: {idade}')
# retorna_pessoa(nome='Daniel', idade=19)
# ##################
# # Especificar tipo de parâmetro e retorno
# ### ANot... | [
"iaferro@gmail.com"
] | iaferro@gmail.com |
5193fdf84d6f51ecc741cabd0634baef9e8ae181 | 3a8057d469a533b13a5a0961a48bfde1b31411cd | /py-jianzhi-round3/JianzhiOffer33.py | 182d5ee9d4bf2bc18f31a104aea5a67432ee0d32 | [] | no_license | XMK233/Leetcode-Journey | 41b5aa6a47db56b008e94d75029f3dffd24a4695 | 4012c16ccedeebc7852fda707a2399ecb0b5b60a | refs/heads/master | 2022-04-26T13:08:32.470174 | 2022-03-07T14:09:29 | 2022-03-07T14:09:29 | 126,415,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py | '''
[剑指 Offer 33. 二叉搜索树的后序遍历序列 - 力扣(LeetCode)](https://leetcode-cn.com/problems/er-cha-sou-suo-shu-de-hou-xu-bian-li-xu-lie-lcof)
输入一个整数数组,判断该数组是不是某二叉搜索树的后序遍历结果。如果是则返回 true,否则返回 false。假设输入的数组的任意两个数字都互不相同。
参考以下这颗二叉搜索树:
5
/ \
2 6
/ \
1 3
示例 1:
输入: [1,6,3,2,5]
输出: false
示例 2:
输入: [1,3,2,6,5]
输... | [
"clxfxmk@qq.com"
] | clxfxmk@qq.com |
48141470ddac48c7ad5e1f189db80fffe2dcf3a8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2824/60723/280048.py | df0e8a772f05b72cffae23321bae84c881e17d90 | [] | 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 | 258 | py | temp=input().split()
n=int(temp[0])
t=int(temp[1])
c=int(temp[2])
temp=input().split()
array=[]
result=0
for i in range(n):
array.append(int(temp[i]))
for i in range(n-c+1):
temp=array[i:i+c]
if max(temp)<=t:
result=result+1
print(result) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
c94f0c9d1fb38f66a315f7e813191481ff86c709 | 81fbbf5a2c34b6d48aafa90b05faf0f56db892e1 | /lib/source/siteinfo.py | 04c357c2a3c3cec1c7d538894ce8b48ad3591b8b | [
"MIT"
] | permissive | ellenlee1/dynamo | d1ea05a6f93668875576520d2e62cd3174120e4f | 1d42ef49f523f5bc56ff2cf42fdf8e47a4108e2e | refs/heads/master | 2020-03-25T00:37:09.660391 | 2018-08-01T18:50:12 | 2018-08-01T18:50:12 | 143,195,297 | 0 | 0 | MIT | 2018-08-01T18:47:01 | 2018-08-01T18:47:01 | null | UTF-8 | Python | false | false | 2,916 | py | import fnmatch
import re
import logging
from dynamo.utils.classutil import get_instance
from dynamo.dataformat import Configuration
LOG = logging.getLogger(__name__)
class SiteInfoSource(object):
"""
Interface specs for probe to the site information source.
"""
@staticmethod
def get_instance(mod... | [
"yiiyama@mit.edu"
] | yiiyama@mit.edu |
4fb43c523f3a19d3317415f579b4d372e805cf4d | a7ab35ff204d7c4679ce8b1bf7da8fa363a7a708 | /algo_problems/q681-700/q686.py | da037323fa4071e42b68932ac61838d167bf01e2 | [] | no_license | lin13k/practice | c68e7270be2694cb9737c35af8beb19db7e30d65 | c3efe1a5839c3ff1c320c0fcfc7b65a9462f7b52 | refs/heads/master | 2021-01-19T11:05:43.521468 | 2018-11-12T09:42:29 | 2018-11-12T09:42:29 | 87,928,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | import math
class Solution:
def repeatedStringMatch(self, A, B):
"""
:type A: str
:type B: str
:rtype: int
"""
"""
case 1
if B in A*(math.ceil(len(B)/len(A)))
return math.ceil(len(B)/len(A))
case 2
if B in A*(math.ceil(len... | [
"lin.13k@gmail.com"
] | lin.13k@gmail.com |
89dfa21fb0bce47f0ddcd90bfe848e39a864aeed | a461167be2120929a92bfe25b6062812486d8121 | /EmployeeManagement/employee/migrations/0001_initial.py | 561611ffaf7e5906be8f77f40a83f742859bc17c | [] | no_license | TarekCsePust/Employee-Management-System-Django- | e572c1b4bfb111318dcfd469c638ef669da9e3c6 | 21d65c59c6ff245279b0295e3cfe58f52a9a7bf9 | refs/heads/master | 2020-06-02T08:29:46.433558 | 2019-06-10T17:54:50 | 2019-06-10T17:54:50 | 191,099,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | # Generated by Django 2.1 on 2019-06-09 15:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
opera... | [
"hasantarek12cse@gmail.com"
] | hasantarek12cse@gmail.com |
ed548431a47f5de92ebaffbdcb69b88adfe3b48a | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-live/aliyunsdklive/request/v20161101/DescribeLiveStreamWatermarkRulesRequest.py | c5d96ef4c9cb4d1fa56b4ae0fb2fe98931ab390b | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,019 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
9b1cbe4f8886447fe38a781dcc10a3bbeca9b13b | 6bce631b869a8717eed29eae186688a7fdb7f5c8 | /venv/Lib/site-packages/test/test_data_point_api.py | b683618fcd7776112ac8dc04cdbcbbad7dca5186 | [] | no_license | singhd3101/CS5100-Stock-Market-Prediction | 6d43bd39633dd80bb1141dc550302874a5bc0939 | 2804a6270a05155e168d0f2518bcd97f1c9bcb3e | refs/heads/master | 2020-11-26T03:56:02.613630 | 2019-12-19T02:22:13 | 2019-12-19T02:22:13 | 228,958,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | # coding: utf-8
"""
Intrinio API
Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ... | [
"singh3101div@gmail.com"
] | singh3101div@gmail.com |
1cfaf8b7a2bbf00f625a035c5018811fe8baab43 | 44f26ebc931a722509fb46f7366a21074f951b2b | /portal/news/migrations/0003_auto_20201016_0504.py | 895bf89f3c244db5bc5dab003ee5f91e7b54aa48 | [] | no_license | Beketx/News-Portal | baa53c10634388b9144ece641028a89ee7184490 | 9c7b809e996868f76556bb1c0196a1bf0229446d | refs/heads/main | 2023-01-01T21:26:26.081627 | 2020-10-23T09:15:23 | 2020-10-23T09:15:23 | 301,621,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # Generated by Django 3.1.2 on 2020-10-16 05:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('news', '0002_auto_20201014_1858'),
]
operations = [
migrations.AlterField(
model_name='news',
... | [
"beketsk@gmail.com"
] | beketsk@gmail.com |
b95ce83dc70b676dbfb1ffc32684336d293610c1 | 577fd6f5ce00ba4b530937e84f3b426b30cd9d08 | /study/socketcus.py | f8aba7e624cb2078f56b59a326f4c1cde50ee7ad | [] | no_license | YxiangJ/Python | 33e2d0d4c26ce35ccd3504b73de15e45adb6946c | bcb1a0ace39fbcbe868a341652085c0ddf307c17 | refs/heads/master | 2018-09-24T08:24:13.692535 | 2018-06-07T01:11:00 | 2018-06-07T01:11:00 | 126,120,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | import socket
import sys
s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
host = socket.gethostname()
port = 9999
s.connect((host,port))
msg = s.recv(1024)
s.close()
print(msg.decode('utf-8')) | [
"284953505@qq.com"
] | 284953505@qq.com |
4b9089a50a471eb2891c20f343365e1529b231da | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/sklearn/utils/tests/test_testing.py | 8d03c0f9ae5bc831fe8d14314c219cbd72d200b9 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:efaca14bd5fba00903222dbbabf78b41525a0ef60b0cec72fcaf219a412209f6
size 21218
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
f8493edff981937624b5f826c9406b8717f38586 | 5c54e4a20580ff2ae69ac81de61c1ee551818850 | /backend/chat/migrations/0001_initial.py | f106c91aba1a8ee104ea1e40717ae6f66cc17c09 | [] | no_license | crowdbotics-apps/jaydeemusic-21199 | 74ed3fcbfce633fd280e670907300ba238d34dff | 8998abed114bc459cceaa0e7bff9463f896871de | refs/heads/master | 2022-12-28T10:23:30.959905 | 2020-10-07T04:35:33 | 2020-10-07T04:35:33 | 301,869,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,385 | py | # Generated by Django 2.2.16 on 2020-10-06 22:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("chat_user_profile", "0001_initial"),
]
operations = [
migrations.CreateModel(
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
d41387e4f0a6ef3df5e96b8688139115f623c133 | b6cf64bf10c16634ec3bf1a642af9eb7ae801355 | /dsr/dsr/doctype/tally_integration_company/test_tally_integration_company.py | 70905a074986f5adef6cb3e861c4a85a1bcb4703 | [
"MIT"
] | permissive | aakvatech/DSR | ad52caeaee8dafbaedef30151ca60b6890b17e08 | 60db3639bc0660cd2ac532eaf14d2f60c76d69da | refs/heads/master | 2023-07-04T04:11:44.145665 | 2021-08-11T15:36:14 | 2021-08-11T15:36:14 | 277,496,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2020, Aakvatech Limited and Contributors
# See license.txt
from __future__ import unicode_literals
# import frappe
import unittest
class TestTallyIntegrationCompany(unittest.TestCase):
pass
| [
"info@aakvatech.com"
] | info@aakvatech.com |
61d37743e4a2a0d81c5030d6a66ededfa0727856 | 9907672fcd81ab73ac63b2a83422a82bf31eadde | /aizu/tyama_aizuNTL~2D.py | f6d3508265af6c075d64c177629b665e5e37436a | [
"0BSD"
] | permissive | cielavenir/procon | bbe1974b9bddb51b76d58722a0686a5b477c4456 | 746e1a91f574f20647e8aaaac0d9e6173f741176 | refs/heads/master | 2023-06-21T23:11:24.562546 | 2023-06-11T13:15:15 | 2023-06-11T13:15:15 | 7,557,464 | 137 | 136 | null | 2020-10-20T09:35:52 | 2013-01-11T09:40:26 | C++ | UTF-8 | Python | false | false | 129 | py | #!/usr/bin/python
import sys
a,b=map(int,sys.stdin.readline().split())
k=1
if a<0:
k=-k
a=-a
if b<0:
k=-k
b=-b
print(a//b*k)
| [
"cielartisan@gmail.com"
] | cielartisan@gmail.com |
ef6c45c3d2333a77df90ed3bd37553a715a4c7eb | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/482/usersdata/342/110183/submittedfiles/Av2_Parte4.py | 59d668f1282bec9ee7f488da44404b2027ef84d3 | [] | 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 | 385 | py | # -*- coding: utf-8 -*-
m = int(input('insira a quantidade de linhas: '))
n = int(input('insira a quantidade de colunas: '))
matriz = []
for i in range (0,m,1):
l = []
for i in range (0,n,1):
l.append(0)
matriz.append(l)
for i in range (-1,m-1,-1):
for i in range (-1,n-1,-1):
matri... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
29d21a3ee787ad3099812c5ba3e0ee616186f3c8 | 856fce4cdc5c01159a3864837b1a34341d324b92 | /test/test_docs_coverage.py | 8b95091d5a4609b24641e34a531d567dbd1c74ac | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | ChinmayLad/pytorch | 4c04a75854b85e42855dc16c0a081b718a34a1e4 | 4086f7432b1172ab0bcd26d3ac1327ca081a0c5c | refs/heads/master | 2020-08-04T11:20:43.326352 | 2019-10-01T14:12:23 | 2019-10-01T14:14:01 | 212,119,066 | 3 | 0 | NOASSERTION | 2019-10-01T14:35:14 | 2019-10-01T14:35:14 | null | UTF-8 | Python | false | false | 3,659 | py | import torch
import unittest
import os
import re
import textwrap
path = os.path.dirname(os.path.realpath(__file__))
rstpath = os.path.join(path, '../docs/source/')
pypath = os.path.join(path, '../torch/_torch_docs.py')
r1 = re.compile(r'\.\. autofunction:: (\w*)')
r2 = re.compile(r'\.\. auto(?:method|attribute):: (\w... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c96209741057ef4cc001c4bf0b951ab87bc0fb60 | 3b7474148c07df7f4755106a3d0ada9b2de5efdc | /cisco/npdev/scripts/restconf/generic_restconf.py | a047506a47b3f0b01034b9bb24cd17b2115dc43e | [] | no_license | juancsosap/pythontraining | 7f67466846138f32d55361d64de81e74a946b484 | 1441d6fc9544042bc404d5c7efffd119fce33aa7 | refs/heads/master | 2021-08-26T05:37:15.851025 | 2021-08-11T22:35:23 | 2021-08-11T22:35:23 | 129,974,006 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | import requests
import json
from jinja2 import Template
from requests.auth import HTTPBasicAuth
requests.packages.urllib3.disable_warnings()
def main():
config_json = read_file('config.json')
config = json.loads(config_json)
auth = HTTPBasicAuth(config['login']['user'], config['login']['pswd'])
headers = {
... | [
"juan.c.sosa.p@gmail.com"
] | juan.c.sosa.p@gmail.com |
bba1370ca69a28c96e300864ddeb7c73560c1770 | f5e7882e9fa8dca9b49d74819918063963eaf515 | /FunctionTest1.py | ba34d7f2abf09382a1608f2953a8f4aaf1644df8 | [] | no_license | marri88/python-base | 66ede5e3da3bce92e2661fabf8a2119644dd5ab3 | 00002724412f4081ee6d1b91c22cb1ccb5ed92fe | refs/heads/master | 2023-06-09T16:13:08.921614 | 2021-07-02T09:16:38 | 2021-07-02T09:16:38 | 382,293,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | # def square(x):
# print('квадрат числа', x, '=', x**2)
# square(int(input()))
# for i in range (1, 11):
# square(i)
# def even(a):
# if a % 2 == 0:
# print(a, "chetnoe")
# else:
# print(a, "ne chetnoe")
# #ver1
# even(int(input()))
# #ver2
# for i in range(1, 100):
# even(i)
# def square(x):
# print(... | [
"aymira.narzhigitova@gmail.com"
] | aymira.narzhigitova@gmail.com |
ad1b7da912e18646d359c53b92c56746374334b6 | f08e50d55bbbb90e4c8f9a8811eaede98ede2694 | /erpbee/buying/report/purchase_analytics/purchase_analytics.py | 4c8e56fdbcd372149957dba9292c3699a799b590 | [] | no_license | mohrezbak/erpbee | bc48472a99a7f4357aa7b82ff3a9c1a4c98ba017 | 1134156ad337fd472e14cf347479c17bd8db7b33 | refs/heads/main | 2023-02-12T01:32:07.858555 | 2021-01-08T17:25:23 | 2021-01-08T17:25:23 | 327,872,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | # Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
from erpbee.selling.report.sales_analytics.sales_analytics import Analytics
def execute(filters=None):
return Analytics(filters).run()
| [
"bakhtiar2k6@gmail.com"
] | bakhtiar2k6@gmail.com |
a122aea13c00aa70aecee1a44f057e7bee632b38 | 4e3fba57687e5f0ed7849987b73399181e1f00d4 | /2021/BOJ17144_미세먼지 안녕!.py | 0c6cfbc241d538870cf3bd4f36078e65a4024098 | [] | no_license | bhyun/daily-algorithm | 6c29a93e05577af05f9041c392b6c759bfd218d2 | 980e2a928d4cfb32fbc97f3e779fdf101e4ac2a1 | refs/heads/main | 2023-08-07T21:56:56.391742 | 2023-07-31T01:17:04 | 2023-07-31T01:17:04 | 366,224,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,280 | py | import sys
input = sys.stdin.readline
def spread(x, y):
dx = [-1, 1, 0, 0]
dy = [0, 0, 1, -1]
cnt = 0
for i in range(4):
nx = x + dx[i]
ny = y + dy[i]
if 0 <= nx < r and 0 <= ny < c and before[nx][ny] != -1:
after[nx][ny] += before[x][y] // 5
cnt += 1
... | [
"nkmine100@gmail.com"
] | nkmine100@gmail.com |
0ff132c58e974422cea88f1cb11309612de3f17b | 1d9aea6a642ae8f70413c7c188585b8b9544dadd | /bcbio/hla/optitype.py | 7ec52ae55f6017e468dcfd1240868a475e8d1f04 | [
"MIT"
] | permissive | yodeng/bcbio-nextgen | fa15d26a3580ea7c26dfb4f58d16fda24eb2775a | b226b384f25e1328c72c8ed28eccf47337009d18 | refs/heads/master | 2020-03-10T18:11:25.807430 | 2018-04-14T09:55:06 | 2018-04-14T09:55:06 | 129,519,544 | 1 | 0 | MIT | 2018-04-14T13:29:46 | 2018-04-14T13:29:46 | null | UTF-8 | Python | false | false | 5,864 | py | """HLA typing from extracted HLA alleles with OptiType
https://github.com/FRED-2/OptiType
"""
import csv
import glob
import os
import re
import sys
import shutil
import toolz as tz
from bcbio import utils
from bcbio.distributed.transaction import file_transaction, tx_tmpdir
from bcbio.hla import bwakit
from bcbio.pi... | [
"chapmanb@50mail.com"
] | chapmanb@50mail.com |
45eddcef095046f61d2404b2b7276409b819fed8 | efbcdc04e5d2d5917328e23f62f0e2b3b585d393 | /minde/spiral/spiral.py | 5f2a06a47e876d6342629453f9cf4e224b669eaa | [] | no_license | satya-arjunan/spatiocyte-models | 7e43457a170348638998a1382410c00e2d091cd6 | b5c29b6be758e971ba016d0334670c2afafd2c31 | refs/heads/master | 2021-01-17T00:39:29.965797 | 2018-09-06T07:46:17 | 2018-09-06T07:46:17 | 11,064,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,403 | py | import math
sim = theSimulator.createStepper('SpatiocyteStepper', 'SS')
sim.VoxelRadius = 100e-9
sim.SearchVacant = 0
theSimulator.rootSystem.StepperID = 'SS'
theSimulator.createEntity('Variable', 'Variable:/:GEOMETRY').Value = 0
theSimulator.createEntity('Variable', 'Variable:/:LENGTHX').Value = 200e-6
theSimulator... | [
"satya.arjunan@gmail.com"
] | satya.arjunan@gmail.com |
df96baf842b10d023b8e4777ba810c2d2aaaa70f | 47008724082fd7fa39b87416bcd1d7633e9d8ef7 | /07-使用Exporter导出数据/toscrape_book/toscrape_book/pipelines.py | 78cd7227a1560b7efe3c873a692586d679e50a58 | [
"Apache-2.0"
] | permissive | gy0109/matser-scrapy-liushuo | 1909d5902dcaf9a119a1cbf42dff9c9434fb58cc | 99afa51aa30248282bf6d86f8a98a28b086f54ff | refs/heads/master | 2020-05-16T09:25:13.429519 | 2019-04-25T12:34:30 | 2019-04-25T12:34:30 | 182,947,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class ToscrapeBookPipeline(object):
def process_item(self, item, spider):
return item
class BookPipeline(object... | [
"1974326896@qq.com"
] | 1974326896@qq.com |
7f75e0d1761292e9c6a4bf8c8f8541976b6ee170 | de99325634f4d81126e6c13603b74ae0a5b04414 | /homework/unit_5/pig/max_wins.py | 4a364bbb8ff48cffabc186ae7cf8484998b5a006 | [] | no_license | joyrexus/CS212 | 13d22b3e41d6a86d2ff9cd2fa2c7b36e70083b8b | ab3729939c154ef559c43d5c5b076ceb59f87db6 | refs/heads/master | 2021-01-23T14:06:13.827050 | 2014-03-20T19:29:08 | 2014-03-20T19:29:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,808 | py | from functools import update_wrapper
def decorator(d):
"Make function d a decorator: d wraps a function fn."
def _d(fn):
return update_wrapper(d(fn), fn)
update_wrapper(_d, d)
return _d
@decorator
def memo(f):
"""Decorator that caches the return value for each call to f(args).
Then whe... | [
"joyrexus@gmail.com"
] | joyrexus@gmail.com |
0224d65b1ec89cb6e2e234f326efa2ade0fd62c2 | bad130b7b6489a1e870e2707c3108a218be10602 | /tools/PAN17Classifier.py | 9e5564a9592fe12b0d94d1b6098618661f330659 | [] | no_license | nschaetti/PAN-CLEF17 | c6f37e4e9bdb75419fe912bcdc17c7716446c0c0 | 8948529f8fe0e31243a5a0287940436d67fea81c | refs/heads/master | 2021-03-16T09:19:27.056904 | 2017-06-20T16:19:04 | 2017-06-20T16:19:04 | 84,322,203 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | # -*- coding: utf-8 -*-
#
# File : core/downloader/PySpeechesConfig.py
# Description : .
# Date : 20th of February 2017
#
# This file is part of pySpeeches. pySpeeches 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 Foun... | [
"n.schaetti@gmail.com"
] | n.schaetti@gmail.com |
4eba264fb240b2d3c016326dbb76344cf1bc936e | 63768dc92cde5515a96d774a32facb461a3bf6e9 | /jacket/tests/compute/unit/virt/libvirt/volume/test_aoe.py | b650b1eeec0cac8c3ebdcdff46aaaa5a2b7e7a1b | [
"Apache-2.0"
] | permissive | ljZM33nd/jacket | 6fe9156f6f5789e5c24425afa7ce9237c302673d | d7ad3147fcb43131098c2a5210847634ff5fb325 | refs/heads/master | 2023-04-16T11:02:01.153751 | 2016-11-15T02:48:12 | 2016-11-15T02:48:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | 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... | [
"nkapotoxin@gmail.com"
] | nkapotoxin@gmail.com |
d0761d0b83e97d47139b890192c47d3c5a62370f | 8a4933df480d0d834fef74d4e980d31c16a0d05c | /ex22.py | cd7c7968c5043e3004b76038c68432d5ee716037 | [] | no_license | code-repeat/primeiromundo | e107ae551bf59f53da360ca9d3a1cb756e59756f | 1aaa93c721ad994360ba78a706b00c379b05ec08 | refs/heads/master | 2022-11-23T07:43:12.497109 | 2020-07-28T18:55:30 | 2020-07-28T18:55:30 | 283,300,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | nome_completo = input('Digite seu nome completo: ')
print('TODAS AS LETRAS MAIÚSCULAS: {}'.format(nome_completo.upper()))
print()
print('TODAS AS LETRAS MINÚSCULAS: {}'.format(nome_completo.lower()))
print()
dividir_nome = nome_completo.split()
juntar_nome = ''.join(dividir_nome)
print('QUANTIDADE DE LETRAS: {}'.for... | [
"coderepeat44@gmail.com"
] | coderepeat44@gmail.com |
18577823fad9d1c4f55ab5c35286e029f6ca2f5c | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_3/Sidnicious/jammer.py | e6b172cf8f8b6d577d2421d357bc2bc768a1bea2 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 850 | py | from itertools import islice
from math import sqrt
# https://stackoverflow.com/a/12273111/84745
def any_divisor(x):
i = 2
limit = sqrt(x)
while i * i <= limit:
if x % i:
i += 1
else:
return i
def gen_coins(n):
base_coin = (1 << (n-1)) | 1
for i in range(pow(... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
ee9e85d0bc410226e1e0ac81d56f9d28d89a11e2 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/H/hansense/pricemonitor_2.py | 7512dad7db23e1f795517009f72e93c50c34e61f | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,700 | py | import scraperwiki
import scraperwiki
import lxml.html
import uuid
import datetime
# Blank Python
ASINS = ["B005QJ7OR2","B0078Y0BAK","B002XOHZWC","B0000DE2SS"]
summary = ""
for asin in ASINS:
url = "http://www.amazon.com/dp/"+asin
html = scraperwiki.scrape(url)
root = lxml.html.fromstring(htm... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
3a7e307b679059c73458f6b5d3d01ecc16c6ec3d | 1322329fbe94a2091b380710b8d573adc977b9bf | /script/sizing.py | aef98842a963eed79b058cd8afbf9c1b59f97d02 | [] | no_license | hlngo/tns | e9c781159ca133c54f5825f9f87063eded8a12ae | 9e1bd3469b1c3e0f3a3f9111ff43c2867196e444 | refs/heads/master | 2020-06-10T04:11:19.488356 | 2019-06-24T20:56:38 | 2019-06-24T20:56:38 | 193,578,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | import json,collections
import pandas as pd
f=open('eplusout.eio','r')
lines=f.readlines()
f.close()
with open('vavs') as f:
config=json.load(f,object_pairs_hook=collections.OrderedDict)
vavs=[]
for i in range(1,len(config)+1):
vavs.append(config[str(i)])
occupancy_sch='HVACOPERATIONSCHD:Schedule Valu... | [
"hung.ngo@pnnl.gov"
] | hung.ngo@pnnl.gov |
ec5c9a4ff6413eb623129c451b359b4f0786ad2a | 1e7de55bbc714e7a4a734dcdb37cc564bc7b640b | /02.scraping/scraping/hwscrp.py | 580bc88c4286a7e91039c2b7fbb290f4db76da24 | [
"MIT"
] | permissive | predora005/weather-forecasting | 4f918767a5d79bbf3a64a83d66a6e191833df325 | deb3592ac52751ccaf81d7aa8bbb00a14d232f9f | refs/heads/master | 2021-07-08T11:10:32.671210 | 2020-08-15T15:23:39 | 2020-08-15T15:23:39 | 176,057,181 | 0 | 0 | null | 2019-03-17T05:55:21 | 2019-03-17T04:43:35 | null | UTF-8 | Python | false | false | 6,214 | py | # coding: utf-8
import numpy as np
import pandas as pd
import requests
from bs4 import BeautifulSoup
##################################################
# 高層の気象データをスクレイピングするクラス。
##################################################
class HighriseWeatherDataScraping:
"""高層の気象データをスクレイピングするクラス。
Attributes:
... | [
"46834065+predora005@users.noreply.github.com"
] | 46834065+predora005@users.noreply.github.com |
3ae3d0bf3adf95a88a02567ecc9b816cab2a078d | 10fbe5526e5f0b8588b65f70f088cd86b6e9afbe | /avwpufexob/migrations/0013_auto_20150218_1628.py | 51ca4f5d33c98ad822d0b261dd3af36539436f2d | [] | no_license | MarkusH/django-migrations-benchmark | eb4b2312bb30a5a5d2abf25e95eca8f714162056 | e2bd24755389668b34b87d254ec8ac63725dc56e | refs/heads/master | 2016-09-05T15:36:45.250134 | 2015-03-31T23:44:28 | 2015-03-31T23:44:28 | 31,168,231 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gcyjx', '0011_nmbztrlh_vrbhetrjgt'),
('avwpufexob', '0012_auto_20150218_1625'),
]
operations = [
migrations.CreateMo... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
c335f741bb4efe67efb4b8a3932ae1afb0547532 | f84540a209490c4d3ee7583c4668fe1c8b1c230e | /Tree/BST/ConvertSortedArrayToBinarySearchTree.py | b1c42c7e37c5f537212aeb399146abf8c1d056fe | [] | no_license | TimMKChang/AlgorithmSampleCode | 9e08a3a88f24b9645ca70f834970650d400fd259 | d5bcdce147bd6c3f05648962ca2096f79e4f003f | refs/heads/master | 2023-07-19T15:28:27.722181 | 2021-09-09T07:02:22 | 2021-09-09T07:02:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from typing import List
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def build(self, nums, start, end):
if start > end:
return None
if start == end:
return Tre... | [
"gn01168178@yahoo.com.tw"
] | gn01168178@yahoo.com.tw |
ea7aa8f92a8e19782a54fe95457f2bab87a67deb | 2545252679e65a1912a56a8e6cfd3f3f8e26af87 | /virtualenv/Lib/site-packages/phonenumbers/shortdata/region_ZA.py | f8e6d5b6d02c7fe5c535956a551d7ce9b1c2c09b | [] | no_license | tubbatun/customize-django-oscar-templates- | 796a1288cd18f12258c3c20958ce84e8fdb9af78 | 41404e4aa59aa36a4159034af7fab32a8b3b3263 | refs/heads/master | 2021-01-11T11:37:46.098571 | 2016-12-19T10:55:02 | 2016-12-19T10:55:02 | 76,853,932 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | """Auto-generated file, do not edit by hand. ZA metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_ZA = PhoneMetadata(id='ZA', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='[134]\\d{2,4}', possible_number_pattern... | [
"sathi@mahdil.com"
] | sathi@mahdil.com |
8c8e9cf66c2514193f8d52118a16417329222fc8 | 9657d72ca77081e699c472241f4d565e03cda32e | /fable/fable_sources/libtbx/tst_math_utils.py | 3d90fb3bdd638ce6edcbfc01c401b3d443bddbba | [
"MIT",
"BSD-3-Clause-LBNL"
] | permissive | hickerson/bbn | b37a4a64a004982dd219a3bd92e519b62f4ea2b3 | 17ef63ad1717553ab2abb50592f8de79228c8523 | refs/heads/master | 2021-01-17T09:50:23.863448 | 2018-08-12T19:04:58 | 2018-08-12T19:04:58 | 20,693,028 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,074 | py | from __future__ import division
from libtbx.test_utils import approx_equal
def exercise_integer():
from libtbx.math_utils import iround, iceil, ifloor, nearest_integer
assert iround(0) == 0
assert iround(1.4) == 1
assert iround(-1.4) == -1
assert iround(1.6) == 2
assert iround(-1.6) == -2
assert iceil(0)... | [
"hickerson@gmail.com"
] | hickerson@gmail.com |
1cefebf58467c9631d246300a0b6bb552713edea | dfab6798ece135946aebb08f93f162c37dd51791 | /core/luban/cli/_template/cmd1.py | 7749b12de74aee77834d26a4323490841ecb2d5c | [] | no_license | yxqd/luban | 405f5f7dcf09015d214079fe7e23d644332be069 | 00f699d15c572c8bf160516d582fa37f84ac2023 | refs/heads/master | 2020-03-20T23:08:45.153471 | 2012-05-18T14:52:43 | 2012-05-18T14:52:43 | 137,831,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2011 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
a709523bda180c5c882415b900460ba5c6247da7 | dfaf6f7ac83185c361c81e2e1efc09081bd9c891 | /k8sdeployment/k8sstat/python/kubernetes/test/test_v1_node_selector_term.py | 6622c935abe4bf3a4ccae075b6cd013420c3db0f | [
"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 | 962 | 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... | [
"JeffYFHuang@github.com"
] | JeffYFHuang@github.com |
bcc57f665ab50f2dc53bb7e136ebc19639efc684 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/violin/stream/_token.py | 0d7a94c4c787fd3a7d402611687d08f08b15b927 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 494 | py | import _plotly_utils.basevalidators
class TokenValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(self, plotly_name="token", parent_name="violin.stream", **kwargs):
super(TokenValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
c92f21f9d30b6f021a1fb20a299004ecb772138c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02763/s613649475.py | eef755eda3f67fcf3dfe03c005d7264005a5479c | [] | 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,158 | py | import sys
input = sys.stdin.readline
N = int(input())
S = list(map(lambda x: ord(x) - ord("a"), list(input())[: -1]))
class BIT:
def __init__(self, n):
self.n = n
self.data = [0] * (n + 1)
self.el = [0] * (n + 1)
def sum(self, i):
s = 0
while i > 0:
s += self.data[i]
i -= i & -i
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6774ebce1e0ab2f9558ffe938ddcac29147e2098 | f42b7bdd99da1726ad10bf7b0e3a399c6b2ed5b3 | /examples/nodeproppred/proteins/node2vec.py | bae397d7afc93eec63aaac93d007d227e370b344 | [
"MIT"
] | permissive | fagan2888/ogb | 12bfe37b38d562d64d7ca7af8f46fc1e2f335dea | eaf5a8e8dfb06233eeb21bd29c9ae35f334d2d55 | refs/heads/master | 2021-04-02T14:56:40.214763 | 2020-03-18T04:49:17 | 2020-03-18T04:49:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,367 | py | import argparse
import torch
from torch.utils.data import DataLoader
from torch_geometric.nn import Node2Vec
from ogb.nodeproppred.dataset_pyg import PygNodePropPredDataset
@torch.no_grad()
def save_embedding(model):
model.eval()
device = model.embedding.weight.device
embedding = model(torch.arange(mod... | [
"matthias.fey@tu-dortmund.de"
] | matthias.fey@tu-dortmund.de |
505f8a0509a2c3631fa95f5d318f32456597013d | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_Class249.py | 51dec6532bcbc2d899f72a3e6cc652a0d3afc8e0 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=16
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
db488d7cda47260603991b9e37ecc2b8b777365f | 7528e4bf75915ae58efb1df374840cdaaf1189a9 | /accounts/models.py | fce6582ceb770fcbd554494bc814321f4812b693 | [] | no_license | ditrobotics/drs-archive | fb64ba4db8c65703a408b45628588ba8696f92ce | c90261d5110d3f537cb0904068f768b2a7d956b8 | refs/heads/master | 2020-12-31T03:02:30.210829 | 2015-09-04T08:08:48 | 2015-09-04T08:08:48 | 27,715,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,218 | py | from django.db import models
from django.contrib.auth.models import User
from django.utils.html import format_html
from django.core.urlresolvers import reverse
from django.utils import timezone
from .tokens import gen_token
def get_profile(user):
try:
return user.profile
except Profile.DoesNotExist:
... | [
"afg984@gmail.com"
] | afg984@gmail.com |
47bd3dce71eb7d0989f1c40d7d398b638d9afb30 | 5de7f472c91a382956f5b942d6b991c68fb2375e | /heapprof/_si_prefix.py | a984fd0be5f309cdb65c763d74879e680c4d8542 | [
"MIT"
] | permissive | pombredanne/heapprof | a560b115f3efbc6297cccad6b12521aa846abd3b | c46a5d0de86d5d1c50b0aa1b7014ef0b2b46a821 | refs/heads/master | 2023-04-04T07:26:21.703306 | 2020-03-03T23:32:01 | 2020-03-03T23:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,547 | py | import math
from typing import Tuple, Union
"""Tools for rendering numbers using SI prefixes, e.g. 1,023,404 as 1.02M.
This should really be in its own library, but we'll include it as part of heapprof for now.
This is subtle because there are a few different things, all referred to as "SI Prefixes," and it's
reall... | [
"noreply@github.com"
] | pombredanne.noreply@github.com |
bdec8b8f61d5a7e334b7d026a92776357047f2d7 | 452a12de440207bbb3fe6b0aba08db18875ad47f | /manage.py | 8996ef9426c0af4f55491e3cc077702599270ec7 | [] | no_license | mwesterhof/app_pages_space | 51f04394f827c8cc4af45eb74c4ab06f48ba9e6f | d06a2418017982da33ed2861a3b246fc5be2d64d | refs/heads/master | 2021-04-03T09:20:55.788993 | 2018-03-15T12:55:15 | 2018-03-15T12:55:15 | 125,241,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "app_pages_space.settings.dev")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"m.westerhof@lukkien.com"
] | m.westerhof@lukkien.com |
2c86108c6da6f11e6fb9a92468d5daef6ca35b29 | de6a52b659f8b9aa8b2fa1539bc70df5e3c86258 | /Python_Exercises/RFC_downloader.py | 91d52b15c7c4a0747ea743a70991738c97f935c6 | [] | no_license | SohLucky/Python_Networking | 44da232ab4faf985eb6b3f10241ea78e32651295 | 009a0c44c5b97d4ade896517a1313fc41fabe4a5 | refs/heads/master | 2021-03-10T14:38:49.158674 | 2020-03-10T12:38:48 | 2020-03-10T12:38:48 | 246,461,908 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 333 | py | import sys, urllib.request
try:
rfc_number = int(sys.argv[1])
except(IndexError, ValueError):
print("Must suply an RFC number as first argument")
sys.exit(2)
template = "http://www.ietf.org/rfc/rfc{}.txt"
url = template.format(rfc_number)
rfc_raw = urllib.request.urlopen(url).read()
rfc = rfc_raw.decode(... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
5d41234b73cee911ff1a03a17c9d25b0c4a7f708 | 9d496fa3b3d94002a804cb7f64b04c9adf7673a7 | /bin/pylint | 16538e94b3241ae648d1fa673e2f27b941e2585d | [] | no_license | stephenlofgren/WemosController | 6e373c654dfb767cbc02d31a94e70d963c42ed66 | 9bc78f13db848e3d999ed6d2d965b11d993223c2 | refs/heads/master | 2021-01-13T10:35:23.331502 | 2017-08-15T00:37:14 | 2017-08-15T00:37:14 | 76,656,366 | 0 | 0 | null | 2016-12-29T02:05:38 | 2016-12-16T13:37:05 | Python | UTF-8 | Python | false | false | 250 | #!/home/stephen/git/WemosController/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pylint
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pylint())
| [
"stephenlofgren@hotmail.com"
] | stephenlofgren@hotmail.com | |
4ad19fcc5d491919fa42eff07eeaad957cf794d3 | 1925c535d439d2d47e27ace779f08be0b2a75750 | /leetcode/delete_operation_for_two_strings.py | a22c2b738c9755920ff73b2d709e2ad03ca5e5d2 | [] | no_license | arthurDz/algorithm-studies | ee77d716041671c4b8bb757d8d96f3d10b6589f7 | 1e4d23dd0c40df34f58d71c7ca3e6491be732075 | refs/heads/master | 2023-04-27T12:17:06.209278 | 2021-04-30T20:16:18 | 2021-04-30T20:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | # Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one character in either string.
# Example 1:
# Input: "sea", "eat"
# Output: 2
# Explanation: You need one step to make "sea" to "ea" and another step to make "eat" to "ea".
... | [
"yunfan.yang@minerva.kgi.edu"
] | yunfan.yang@minerva.kgi.edu |
18eb2bca45b7ef51c3700caf187d0794e5fd3d2e | 51885da54b320351bfea42c7dd629f41985454cd | /abc018/b.py | 048a1165d541f7d8b7f1f79991267a4975870aeb | [] | no_license | mskt4440/AtCoder | dd266247205faeda468f911bff279a792eef5113 | f22702e3932e129a13f0683e91e5cc1a0a99c8d5 | refs/heads/master | 2021-12-15T10:21:31.036601 | 2021-12-14T08:19:11 | 2021-12-14T08:19:11 | 185,161,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | #
# abc018 b
#
import sys
from io import StringIO
import unittest
class TestClass(unittest.TestCase):
def assertIO(self, input, output):
stdout, stdin = sys.stdout, sys.stdin
sys.stdout, sys.stdin = StringIO(), StringIO(input)
resolve()
sys.stdout.seek(0)
out = sys.stdout.r... | [
"mskt4440@gmail.com"
] | mskt4440@gmail.com |
6e41ee06cfbd18e32e22f69500bd951dde0ccea3 | f4fdb0c1213bbb403b87c2dbbde390918ac08861 | /rewrite_form_of_to_infl_of.py | 991b0b2e8a71dd059904a095d9755722aebe0820 | [] | no_license | benwing2/RuNounChanges | 0d5076e576237f10b50049ed52b91f96c95cca95 | 048dfed5abe09b8d5629c5772292027ce0a170f2 | refs/heads/master | 2023-09-03T22:48:06.972127 | 2023-09-03T06:27:56 | 2023-09-03T06:27:56 | 41,480,942 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pywikibot, re, sys, argparse
from collections import defaultdict
import blib
from blib import getparam, rmparam, msg, errandmsg, site, tname, pname
templates = {
# "genitive singular definite of": ["def", "gen", "s"],
# "genitive singular indefinite of": ["inde... | [
"ben@benwing.com"
] | ben@benwing.com |
f74b8f63ddaf313b6dc71a95cfc31ddfa036c581 | aac1b8efaeccc544d229aa52093a36802250b4cf | /pre/python/lib/python2.7/dist-packages/urllib3/contrib/socks.py | 07363bccbdf37c9da87f9227263a4a0e6102e5ba | [] | no_license | ag1455/OpenPLi-PC | 4f63bbd389ff9604ab7aaf72d10ee6552b794c87 | 256401ac313df2e45c516af1a4d5398f54703b9c | refs/heads/master | 2023-08-22T18:20:07.491386 | 2023-08-14T17:29:59 | 2023-08-14T17:29:59 | 233,239,212 | 27 | 22 | null | 2020-12-28T22:09:26 | 2020-01-11T13:50:25 | Python | UTF-8 | Python | false | false | 6,190 | py | # -*- coding: utf-8 -*-
"""
This module contains provisional support for SOCKS proxies from within
urllib3. This module supports SOCKS4 (specifically the SOCKS4A variant) and
SOCKS5. To enable its functionality, either install PySocks or install this
module with the ``socks`` extra.
The SOCKS implementation supports t... | [
"a.g.prosat@gmail.com"
] | a.g.prosat@gmail.com |
b71877f734b62afffe8fea0fd68e2c810da32279 | 23c4f6d8a2a6b97077628c2a012b2b402c816d91 | /LeetCode算法题/0063_不同路径2/不同路径_dp状态转移实现.py | 18d385d0dcdca1251f1994f37997c003bbf5163f | [] | no_license | exueyuanAlgorithm/AlgorithmDemo | 7ef6ff8104e8da5a81037795184115fb0ac8ca9a | d34d4b592d05e9e0e724d8834eaf9587a64c5034 | refs/heads/master | 2023-07-16T19:00:05.664780 | 2021-09-04T11:31:07 | 2021-09-04T11:31:07 | 277,327,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | # coding=utf-8
class Solution(object):
def startCheck(self, obstacleGrid):
startPosition = (0, 0)
targetPosition = (len(obstacleGrid) - 1, len(obstacleGrid[0]) - 1)
if obstacleGrid[startPosition[0]][startPosition[1]] == 1:
return 0
if obstacleGrid[targetPosition[0]][targ... | [
"1079240024@qq.com"
] | 1079240024@qq.com |
ca48becc85370e12ee47f5b8110dd6418dcb7152 | 82673cc38d75506918d88304a2833c94552741d3 | /schoolwebsite/schoolapp/migrations/0025_auto_20201207_2253.py | f7e245130ccbd4bc00daacb0af1a40e54b57b5b1 | [] | no_license | AbdurRahman111/Django_School_Management_System_full_website | 2205060cd30aa691368484a91644ab5d875c1c24 | b89e5c6fb1b69e4af191055c40aa5ebb99b539c3 | refs/heads/master | 2023-01-24T10:24:51.033441 | 2020-12-09T11:48:04 | 2020-12-09T11:48:04 | 319,939,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | # Generated by Django 3.1.4 on 2020-12-07 16:53
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('schoolapp', '0024_auto_20201207_2223'),
]
operations = [
migrations.AlterField(
... | [
"mdabdurrahmanchowdhury1122@gmail.com"
] | mdabdurrahmanchowdhury1122@gmail.com |
fbebd2b425077be599c4a784fac3bf18bdee2de4 | d78bc2229c0960716a1ef6efb57ce95767fde72a | /py30/py13.py | a2441f9e9082a27e5a677897aba9cf3255c4a09a | [] | no_license | monetree/core-python | ace66bf21e3deb804148e1debdd2fcc1b76cec6a | 3c83f91bcb34927b7fa02ea01f892416903a5f7c | refs/heads/master | 2020-03-14T04:00:18.508410 | 2018-04-28T17:56:35 | 2018-04-28T17:56:35 | 131,431,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | '''
Thread synchronization:
when multiple threads are acting on same object or same group of objects simultaneously, they should be
synchronized.
'''
| [
"soubhagyakumar666@gmail.com"
] | soubhagyakumar666@gmail.com |
e12127d78667451349e8977e68d558caf14c6dda | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_315/ch118_2020_10_05_20_21_20_671658.py | 296afae4cbeb84108ec6b1b4bd4cd74c7c2ffed6 | [] | 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 | 181 | py | import math
def reflexao_total_interna(n1,n2,teta2):
x = math.sin(math.radians(teta2))
teta1 =(n2*x)/n1
if teta1 >= 1:
return True
else:
return False | [
"you@example.com"
] | you@example.com |
c367594409d2843423cb4cc7a6ddd5302f9e2ac5 | 8ace8be98c5fb7baac267ca7f83c8085e5cad35c | /13_partition_labels.py | 8c2b4ce41da393cc305b53cecfb94fd82216015e | [] | no_license | cyberbono3/amazon-oa-python | c063eb275a4d311e58f148c0300c7e19b0f03bea | 7ce502bbe3a30b1d6052a46e7a28b724a327b5ae | refs/heads/master | 2023-01-20T16:23:00.241012 | 2020-11-22T03:49:25 | 2020-11-22T03:49:25 | 293,693,115 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | class Solution(object):
#
def partitionLabels(self, S):
"""
:type S: str
:rtype: List[int]
e s e s
S = "a b a b c b a c a d e f e g d e h i j h k l i j"
https://leetcode.com/problems/partition-labels/
... | [
"cyberbono3@gmail.com"
] | cyberbono3@gmail.com |
d0d58d8e2e3312b747f80581749253bf8e4487da | 1e2207c17ac3552033635e2590316ea29bde7015 | /array_api_tests/test_constants.py | 1d9bf85f5b797d3d0e0aa0098a68c2e98a9053f3 | [
"MIT"
] | permissive | barry-jin/array-api-tests | 2ee7685b811301de297f7d166d2b0bf7f6684d3d | c1dba80a196a03f880d2e0a998a272fb3867b720 | refs/heads/master | 2023-08-07T12:03:06.882935 | 2021-09-03T23:22:20 | 2021-09-03T23:22:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | from ._array_module import (e, inf, nan, pi, equal, isnan, abs, full,
float64, less, isinf, greater, all)
from .array_helpers import one
def test_e():
# Check that e acts as a scalar
E = full((1,), e, dtype=float64)
# We don't require any accuracy. This is just a smoke test to ... | [
"asmeurer@gmail.com"
] | asmeurer@gmail.com |
ef0387d46729eb40dfca10ef113967a0e1276216 | c38c09387ec6531f560c28bbb8ccb461a721100d | /pipeline/test.py | e2b84ffec7bed34e259a426af2fd3478553df193 | [] | no_license | tomwright01/nipype_singularity | 092e76b2945d45f0303f84ff80039dca7aaf1407 | 9e31c95764c676ecb5a21db3057686169a331677 | refs/heads/master | 2021-01-22T03:53:55.798352 | 2017-06-06T17:23:11 | 2017-06-06T17:23:11 | 92,412,287 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | from .singularity import (SingularityInputSpec,
SingularityOutputSpec,
SingularityTask)
from nipype.interfaces.base import (traits,
File)
class TestInputSpec(SingularityInputSpec):
myarg = traits.Unicode(desc="An argument",
... | [
"tom@maladmin.com"
] | tom@maladmin.com |
18e2c0c7ebf8584ccf30f783fd9783713fd6a224 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03330/s341655268.py | 5e59b08d090e3d32b9e70ef20ba6438712977e9c | [] | 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 | 895 | py | N,C = map(int,input().split())
D = [list(map(int,input().split())) for i in range(C)]
c = [list(map(int,input().split())) for i in range(N)]
color = [{} for i in range(3)]
for h in range(N):
for w in range(N):
if c[h][w] not in color[(h+w+2)%3]:
color[(h+w+2)%3][c[h][w]] = 1
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
575e6226a30b8ae397409e74dbbfe51f83a84984 | efa72581cca29a806bb353ee15efd94118382991 | /source/accounts/views.py | e8850425435998fb66eecd5c28a7fd43340aaabd | [] | no_license | sharshenova/python-group_1-homework_44-maria_sharshenova | 1e5d2c8616274ecde355feb3152d20b5a2e77133 | 44599c2efb2bf242f3f4bd04a1298fa6fd7152ae | refs/heads/master | 2020-04-13T04:12:42.122299 | 2019-01-06T10:10:06 | 2019-01-06T10:10:06 | 162,954,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | from django.shortcuts import render, redirect
from django.contrib.auth import login, authenticate, logout
def login_view(request):
if request.method == 'POST':
username = request.POST.get('username')
password = request.POST.get('password')
user = authenticate(request, username=username, pa... | [
"maria@sharshenov.com"
] | maria@sharshenov.com |
53b0895cce93c530483e855012ba3a9867f59ebe | 88831381479b29a084dace6bee95fcf9584562fd | /src/oci/identity/models/update_dynamic_group_details.py | f23aa0c11146aa0103a0602056869a849b21f262 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"UPL-1.0"
] | permissive | stretchcloud/oci-python-sdk | dc28d8ef21fa4a5c53cff8767b92124362aebb55 | 20201e021b418913099571942080ee3349f934e5 | refs/heads/master | 2021-04-15T12:35:18.998882 | 2018-03-08T23:17:11 | 2018-03-08T23:17:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,325 | py | # coding: utf-8
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
from ...util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
from ...decorators import init_model_state_from_kwargs
@init_model_state_from_kwargs
class UpdateDynamicGroupDetail... | [
"mike.c.ross@oracle.com"
] | mike.c.ross@oracle.com |
fcd48378cac2cbafc745bbad5d8256bf30ac680e | 4ecacd4abc14e9531332b8533544af9f26e82a1a | /ATKColoredCompressor/update_version.py | 9447d14cd15b16f78e543b6540d31812ada318f2 | [
"BSD-3-Clause"
] | permissive | EQ4/ATK-plugins | 733edc68f506bf1a266416f8a7fa10e3d1f8e6ef | c06c6f1479f9319923b835825f1a21831e1f39e9 | refs/heads/master | 2020-05-29T12:17:19.875773 | 2015-09-07T21:40:14 | 2015-09-07T21:40:14 | 44,551,776 | 1 | 0 | null | 2015-10-19T17:33:28 | 2015-10-19T17:33:27 | null | UTF-8 | Python | false | false | 4,517 | py | #!/usr/bin/python
# this script will update the versions in plist and installer files to match that in resource.h
import plistlib, os, datetime, fileinput, glob, sys, string
scriptpath = os.path.dirname(os.path.realpath(__file__))
def replacestrs(filename, s, r):
files = glob.glob(filename)
for line in filein... | [
"matthieu.brucher@gmail.com"
] | matthieu.brucher@gmail.com |
7929c5c1a148c6d12e5774364c1ac49686fa8dc7 | ff9bdedbf20150f844a09331c9fc846cbb4a8d66 | /bankfnbt/pipelines.py | cd9bb1f3f494e432bb4665be7123b79419164066 | [] | no_license | hristo-grudev/bankfnbt | 46a9c225de577f97ab2a7507861e513f78211a69 | 53517430eebd11a6e7884009b16993dea1891f87 | refs/heads/main | 2023-03-30T03:08:17.960695 | 2021-04-07T06:34:32 | 2021-04-07T06:34:32 | 355,437,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | import re
import sqlite3
class BankfnbtPipeline:
conn = sqlite3.connect('bankfnbt.db')
cursor = conn.cursor()
def open_spider(self, spider):
self.cursor.execute('''CREATE TABLE IF NOT EXISTS `bankfnbt` (
title varchar(100),
... | [
"hr.grudev@gmail.com"
] | hr.grudev@gmail.com |
0fee08e0c62c15cb3b42a7d2a80751648c674d9c | ad9bd58a3ec8fa08dfcc994d4101ee815a9f5bc0 | /02_algorithm/baekjoon/problem/1000~9999/1018.체스판 다시 칠하기/1018.py | 244ef0c5da3ba7b5fa4e5203d3130679ea98ddc8 | [] | no_license | wally-wally/TIL | 93fc1d0e3bc7d030341ed54155294c68c48b4c7d | 936783bc86f563646c0398c24e2fcaa707f0ed23 | refs/heads/master | 2023-04-28T08:59:48.235747 | 2023-04-12T12:06:52 | 2023-04-12T12:06:52 | 195,918,111 | 40 | 7 | null | 2020-09-29T16:20:46 | 2019-07-09T02:31:02 | Python | UTF-8 | Python | false | false | 1,027 | py | import sys
sys.stdin = open('input.txt', 'r')
M, N = map(int, input().split())
arr = []
for _ in range(M):
arr.append(input())
# print(arr)
case = [['WBWBWBWB', 'BWBWBWBW', 'WBWBWBWB', 'BWBWBWBW', 'WBWBWBWB', 'BWBWBWBW', 'WBWBWBWB', 'BWBWBWBW'],
['BWBWBWBW', 'WBWBWBWB', 'BWBWBWBW', 'WBWBWBWB', 'BWBWBWBW',... | [
"wallys0213@gmail.com"
] | wallys0213@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.