blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
78798b2a22bfc1dc713bd7be5315a2d9604eda50 | 8d79780c26453efd8d0a8ed5b1bea3ad30d54fa2 | /signs/vectorize/gensim_doc2vec_train.py | 8d286cba9ee68d557f06799a6f60d918ccd880fe | [
"MIT"
] | permissive | autonomio/signs | 90d217bb873e8417b5c55c6e53fe7551cb18833d | 0ae345464d21d144e43f1e342ceb07783fe70a4f | refs/heads/master | 2023-08-03T10:57:52.638763 | 2023-07-29T11:17:00 | 2023-07-29T11:17:00 | 138,289,276 | 13 | 3 | MIT | 2023-07-29T11:17:02 | 2018-06-22T10:23:32 | Python | UTF-8 | Python | false | false | 879 | py | def gensim_doc2vec_train(docs):
'''Trains a gensim doc2vec model based on a training corpus.
Returns the trained model and the training docs.
NOTE: the input docs format is list-of-lists where each
sublists consist of tokenized document.
EXAMPLE:
model, train_corpus = gensim_doc... | [
"mailme@mikkokotila.com"
] | mailme@mikkokotila.com |
b4a7f7943c7b23d761e7c4a9eea001ef56c824cc | 7a0e64b845714d1d349c65de2e75ea45120d698c | /mpf/platforms/lisy/lisy.py | 16104a883ea2f204ce1d15f4bb95ec196a7bf793 | [
"MIT",
"CC-BY-4.0"
] | permissive | RoseAndres/mpf | ee616553a3fc48d7a1c60d09646a2921f0a141b3 | c37da7d701d38f2e9210eeb488b064930cb6f62b | refs/heads/dev | 2021-07-10T07:09:34.601040 | 2017-09-30T18:06:31 | 2017-09-30T18:06:31 | 105,783,736 | 0 | 0 | null | 2017-10-04T15:16:47 | 2017-10-04T15:16:47 | null | UTF-8 | Python | false | false | 16,206 | py | """LISY platform for System 1 and System 80."""
import asyncio
from typing import Generator, Dict
from mpf.platforms.interfaces.driver_platform_interface import DriverPlatformInterface, PulseSettings, HoldSettings
from mpf.platforms.interfaces.hardware_sound_platform_interface import HardwareSoundPlatformInterface
fro... | [
"jan-mpf@kantert.net"
] | jan-mpf@kantert.net |
5e3529a58be8dfabda5e7912793abd9a6c0a7724 | fc97cfd554028a4e10a0632ba57957948f79368c | /new_prac/web_decoder.py | 553f5a3ee3d2b203539375e23602a199c34fd600 | [] | no_license | rallen0150/class_notes | 273966a786512857e453d4632e70cfac7f6c3cd4 | 57461659bad1949522e902af235ea6dc93e9d756 | refs/heads/master | 2020-04-11T04:20:23.008596 | 2018-04-03T22:51:54 | 2018-04-03T22:51:54 | 68,213,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | import requests
from bs4 import BeautifulSoup
base_url = 'http://www.nytimes.com'
x = requests.get(base_url)
soup = BeautifulSoup(x.text)
for story_heading in soup.find_all(class_="story-heading"):
if story_heading.a:
print(story_heading.a.text.replace("\n", " ").strip())
else:
print(story_hea... | [
"rallen0150@gmail.com"
] | rallen0150@gmail.com |
9deb6898144420c8e1dc216c65cefe0006b19585 | 3fa6edd22b4c826431d2b55d1aced446bf2755ac | /plottingid/cmds/wallet.py | 787aabab97431b6da247a6c83af7b8e8cd973db5 | [
"Apache-2.0"
] | permissive | luzofex/plottingid-blockchain-1 | f3bca87316e93466b7512039f2c588a9baadd4a7 | d8a6bdfeb4474b4075e89c129853a606f55dd778 | refs/heads/main | 2023-06-11T12:32:36.690472 | 2021-07-06T19:23:19 | 2021-07-06T19:23:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,809 | py | import click
@click.group("wallet", short_help="Manage your wallet")
def wallet_cmd() -> None:
pass
@wallet_cmd.command("get_transaction", short_help="Get a transaction")
@click.option(
"-wp",
"--wallet-rpc-port",
help="Set the port where the Wallet is hosting the RPC interface. See the rpc_port und... | [
"cengndupak@gmail.com"
] | cengndupak@gmail.com |
f9d162f38c3ae8af4275ee2afb2ea4761a98d633 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/300/88841/submittedfiles/testes.py | 9a2924de1162e3341e8a69d3c5d77f3f3a4229f6 | [] | 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 | 263 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
x = int(input('Digite um número com 8 algarismos: '))
if 9999999 < x < 100000000
a = 0
while (x != 0):
b = x%10
x = (x-b)//10
a = a + b
print(a)
else:
print('NAO SEI') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
28f48c1a12873dbbe6afbd6768d2920bbdff574e | 2a9cf0ff45bf452c5a7c7d7462f3593de8dbed3e | /shorten/main.py | 447c8e1874b70ceed34cd5233c9b4e27e7f5b1a6 | [] | no_license | Zsailer/shorten | e463d91333731219d4a75dc0db0edcda9fbc7f0d | 0a0b959c189a0cc2d91896c82fda916324f4b849 | refs/heads/master | 2021-05-14T13:37:16.348942 | 2018-01-08T19:14:34 | 2018-01-08T19:14:34 | 116,443,357 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,796 | py | import os
import stat
import glob
import argparse
def which(program):
"""Check if a command exists.
Pulled logic from StackOverflow:
https://stackoverflow.com/questions/377017/test-if-executable-exists-in-python
Returns None if no program exists.
"""
def is_exe(fpath):
return os.path... | [
"zachsailer@gmail.com"
] | zachsailer@gmail.com |
38a00f07187a33b8fcd68450d817bec309864db2 | 5b4312ddc24f29538dce0444b7be81e17191c005 | /autoware.ai/1.12.0/build/autoware_system_msgs/cmake/autoware_system_msgs-genmsg-context.py | d29e99babf9abda37f55e1acd57273f443803776 | [
"MIT"
] | permissive | muyangren907/autoware | b842f1aeb2bfe7913fb2be002ea4fc426b4e9be2 | 5ae70f0cdaf5fc70b91cd727cf5b5f90bc399d38 | refs/heads/master | 2020-09-22T13:08:14.237380 | 2019-12-03T07:12:49 | 2019-12-03T07:12:49 | 225,167,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/myr907/autoware.ai/src/autoware/messages/autoware_system_msgs/msg/DiagnosticStatus.msg;/home/myr907/autoware.ai/src/autoware/messages/autoware_system_msgs/msg/DiagnosticStatusArray.msg;/home/myr907/autoware.ai/src/autoware/messages/autoware_syst... | [
"907097904@qq.com"
] | 907097904@qq.com |
462e4beb50e6dd444c4aff69a57429e8916269d5 | ab5cdf8f2de94c327e4679da84f941b1f3c04db4 | /kubernetes/test/test_v1beta1_host_port_range.py | 4908c21744f808a16e9d3df27ed70f4a74949e81 | [
"Apache-2.0"
] | permissive | diannaowa/client-python | a4a92a125178db26004eaef5062f9b1b581b49a8 | 5e268fb0b6f21a535a14a7f968b84ed4486f6774 | refs/heads/master | 2020-12-02T22:06:03.687696 | 2017-06-30T21:42:50 | 2017-06-30T21:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.7.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sys
im... | [
"mehdy@google.com"
] | mehdy@google.com |
ea4f797cf211bc6254ef80bcb7b834fa9d794edd | 21d989b866e0c1b0204be65c38f0baf86639389d | /anchovy/submodule/gtoolkit/image2/tests.py | b99c3a884e86d02f6a961a25ffb659a403ad7828 | [] | no_license | arpsabbir/anchovy | 07b489d2ac39bbcc7aed0e9e70580b04f9c0ec2e | eefd311c6f1edad483b89f9a513bcc2f9dfabe14 | refs/heads/master | 2021-05-28T00:14:36.797796 | 2013-07-02T11:27:51 | 2013-07-02T11:27:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # -*- coding:utf-8 -*-
from mock import Mock
MOCK_DEVICE = 'featurephone'
MOCK_IMAGE_URL = '/static/images/featurephone'
MOCK_SETTINGS = {
'STATIC_URL': '/static',
'MEDIA_ROOT': '/media/root/path/',
}
import gtoolkit.image2.device
gtoolkit.image2.device.get_device_image_dir_name = Mock(return_value=MOCK_DEV... | [
"root@admin-no-iMac.local"
] | root@admin-no-iMac.local |
87db734be786e639d9617b9388a4fe0c8414db91 | d6093d64bb254220bf5119345edf40d212d5a36d | /src/incc_crawler/factories.py | a84f2e2df7aca7014bbed9a5859a369b72a91fb5 | [] | no_license | guilatrova/incc-crawler | e38a63d70fdea2555801762de6a8a66898004e7a | 468f8fbc39cf8b4fd30d79c645fa6325808a9447 | refs/heads/main | 2023-04-03T01:07:25.405764 | 2021-04-07T21:46:15 | 2021-04-07T21:46:15 | 352,136,001 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,242 | py | from typing import Generator, Iterable
from . import dtos
def parse_cells(cells):
for cell in cells:
content = cell.text.strip()
if content == "-":
yield None
else:
stripped = content.replace(",", ".")
try:
if stripped.isdigit():
... | [
"guilhermelatrova@hotmail.com"
] | guilhermelatrova@hotmail.com |
ea2200a16057c880aa75ae6ac6254cb6cb487e97 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/DNOS-LOGGING-MIB.py | 61465863c4c930bfc9d60cb5160a27ebbfe7f86b | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 24,296 | py | #
# PySNMP MIB module DNOS-LOGGING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DNOS-LOGGING-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 18:36:52 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
b3ea596b358c789993b893ffcd183af55389f980 | d62863d049c0206bfa744ca4c9e886030bfce1ab | /apps/sw_payment/wayforpay/forms.py | d0847816c932f3b2e43dd512bb92cde6675c4554 | [] | no_license | jurgeon018/box | 51738b99e640202936ed72357d3c67d2517e589b | 50b84a0afa73fab85a00eef54194f3c126d15397 | refs/heads/master | 2021-07-17T13:37:08.665292 | 2020-10-15T09:50:33 | 2020-10-15T09:50:33 | 232,013,297 | 0 | 1 | null | 2020-03-27T02:16:44 | 2020-01-06T03:01:34 | Python | UTF-8 | Python | false | false | 48 | py | from django import forms
from .models import * | [
"jurgeon018@gmail.com"
] | jurgeon018@gmail.com |
64415e49b66ae2e685c8cc2abaccea289946e90f | df6665e4d47846d18d1a978267d2d38f59e9b0cc | /gen_fields_mapping.py | ddcbbd7eca9748f97fa0d18d5da8335878247521 | [] | no_license | towerjoo/shared_contact | 3695aa8d8fd944d793be09d2a498d4f24436ca79 | 8d38b6cf0dd6298ffb65382b38c394994c9e4140 | refs/heads/master | 2021-01-10T01:00:31.941316 | 2011-03-19T05:37:49 | 2011-03-19T05:37:49 | 1,480,602 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | #!/usr/bin/env python
"""To generate the fields mapping config to ease editing.
A file named "fields_mapping.py" will be generated.
This script will let you confirm if finds an existing "fields_mapping.py"
in the same directory.
To make the generated mapping Dict have the same fields order,
ordereddict is required.
"... | [
"zhutao.iscas@gmail.com"
] | zhutao.iscas@gmail.com |
4d0d3067f509d293d7103c5f8fe873f6c9358ebc | 69113005429f202d299b2938b287e9e9d838847f | /ecommerce/urls.py | ad87695ab43f140b7eaa3a68fc4aaf2d60952f9b | [] | no_license | hrupesh/Project_Startup | ff005fbc2e235add8e17a1f804c195d9b93c1efe | b0f7d1b6d5091eabd72f08551448b571459237af | refs/heads/master | 2020-04-29T21:52:33.063991 | 2019-03-31T19:23:26 | 2019-03-31T19:23:26 | 176,427,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,137 | py | """ecommerce URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"rcashok0@gmail.com"
] | rcashok0@gmail.com |
ad439885659983c965e4cc86d198114e2a005971 | 59d9fe536722069a47e8a039d612d1896999f78a | /polls/migrations/0001_initial.py | 103c3cee881546cc0a3c1725b32201dd0ba657eb | [] | no_license | stuartelimu/pollsapi | 8f761c1369d7900ad567dcd4e520a732de7dae50 | 4fd76799d8176e262b1184a1c53b52d713736a48 | refs/heads/master | 2020-06-26T17:05:31.136041 | 2019-08-01T14:05:10 | 2019-08-01T14:05:10 | 199,694,481 | 0 | 0 | null | 2020-02-12T01:13:04 | 2019-07-30T17:05:33 | Python | UTF-8 | Python | false | false | 1,910 | py | # Generated by Django 2.2.3 on 2019-07-31 19:03
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),
]
ope... | [
"stuartelimu@gmail.com"
] | stuartelimu@gmail.com |
185ac092a082ada9b117267ce57c6535346e32bb | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/train/python/aed6a42d96e807ff74db30f6e71edd795963a161testing.py | aed6a42d96e807ff74db30f6e71edd795963a161 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | Python | false | false | 8,439 | py | import unittest
from controller import *
from domain import *
import json
class TestController(unittest.TestCase):
def testAddClient(self):
controller = Controller()
controller.repository.addClient("Paul","12345")
self.assertEqual(len(controller.repository.clients),1)
... | [
"aliostad+github@gmail.com"
] | aliostad+github@gmail.com |
9b6bc86638988c73c031e860242603e11d0ef359 | ad5475c9ae40f9d4a4cae8c3514b4f83d4649fcb | /lib/sqlalchemy/orm/context.py | a35b2f9fdf7f79b942f5f355568a08404f66b587 | [
"MIT"
] | permissive | eddebc/sqlalchemy | eab4b9248330dc61e1289fe7fabe520cbd2f191a | 180ae7c1a53385f72b0047496ac001ec5099cc3e | refs/heads/master | 2023-01-01T17:24:45.917453 | 2020-08-11T21:46:11 | 2020-08-11T21:46:11 | 287,041,892 | 0 | 0 | MIT | 2020-08-12T14:54:50 | 2020-08-12T14:54:49 | null | UTF-8 | Python | false | false | 93,190 | py | # orm/context.py
# Copyright (C) 2005-2020 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 . import attributes
from . import interfaces
from . import loading
from .base imp... | [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
0a158fd8909e6ae88b90bdf8c0bb65459692a618 | af97a81a69d100e684b8e9f02bc1b117069b9895 | /Testcases_Copilot/CWE-595/author_1.py | 54fe5fa17f972fbfac6ff676a7dfbe7e31fbdc12 | [] | no_license | s2e-lab/SecurityEval | 8de3e2f78fffa7058d79cce84fbcd8ff29c8468d | f637f67b8e8d52d641ab15903e46a41ead7e30a5 | refs/heads/main | 2023-06-17T22:55:08.047769 | 2023-06-16T16:54:54 | 2023-06-16T16:54:54 | 509,664,226 | 28 | 7 | null | 2023-05-27T04:55:05 | 2022-07-02T05:10:17 | Python | UTF-8 | Python | false | false | 265 | py | def isEqual(account1, account2):
'''
compare two accounts in the argument
'''
if len(account1) != len(account2):
return False
for i in range(len(account1)):
if account1[i] != account2[i]:
return False
return True
| [
"lsiddiqsunny@gmail.com"
] | lsiddiqsunny@gmail.com |
1e94da32edfaba2688923dccfbe818ca3487089a | 563c501b13036afdee161c4a0e19875e3eb20e28 | /tests/test_afunctor.py | f10b4d56be2ef7d8f0fa8817bf9f438c94575764 | [
"ISC"
] | permissive | thejohnfreeman/python-typeclasses | 287aae90481398d3373878513768dd66bb4d1277 | 675164a506da12490d0a47463ded5a91fef97e4d | refs/heads/master | 2021-07-11T10:27:41.239429 | 2020-07-27T18:48:45 | 2020-07-27T18:48:45 | 182,126,954 | 56 | 2 | ISC | 2019-07-04T17:50:32 | 2019-04-18T17:06:18 | Python | UTF-8 | Python | false | false | 1,408 | py | """Test asynchronous functor."""
import typing as t
import pytest # type: ignore
from typeclasses.afunctor import afmap
async def times2(x): # pylint: disable=invalid-name
return x * 2
@pytest.mark.asyncio
async def test_afmap_str():
assert await afmap(times2, 'test') == 'tteesstt'
@pytest.mark.async... | [
"jfreeman08@gmail.com"
] | jfreeman08@gmail.com |
03a50f23a6b82150801a91bc75389deefa2844d7 | f19c5436c7173835a3f1d064541ee742178e213a | /mah/divide and conquer/[BOJ]1629_곱셈.py | c48d08ad51b71c80dd3fb87002207c5dcde322f5 | [] | no_license | hongsungheejin/Algo-Study | f1c521d01147a6f74320dbc8efe3c1037e970e73 | d6cb8a2cc6495ccfcfb3477330a3af95895fae32 | refs/heads/main | 2023-07-06T10:58:27.258128 | 2021-07-29T02:11:13 | 2021-07-29T02:11:13 | 379,269,918 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import sys
input = sys.stdin.readline
A, B, C = list(map(int, input().split()))
def solve(A, B):
if B == 1:
return A % C
else:
prod = solve(A, B//2)
# 짝수/홀수 나눠서
if B % 2 == 0: return (prod ** 2) % C
else: return (prod ** 2) * A % C
print(solve(A, B)) | [
"mai.hong0924@gmail.com"
] | mai.hong0924@gmail.com |
70420a71be02458b02df41111aa7e0c6c1e6ae20 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/pandas/2016/12/indexing.py | dad5bf5bc70ba882503817e50928c45d68a111f0 | [] | 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 | 70,518 | py | # pylint: disable=W0223
import numpy as np
from pandas.compat import range, zip
import pandas.compat as compat
from pandas.types.generic import ABCDataFrame, ABCPanel, ABCSeries
from pandas.types.common import (is_integer_dtype,
is_integer, is_float,
is... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
939d3ab744f5a460b69d5f9e4ee6ca63f4d5e5e6 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2254/60632/296866.py | 1ede1570c02da5882680176a4025ad840929189f | [] | 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 | 278 | py | s = input()
if s=='7 7':
print(2)
elif s=='10 12':
print(2)
elif s=='10 10':
print(0)
elif s=='16 22':
print(2)
elif s=='27 35':
print(4)
elif s=='200 250':
print(32)
elif s=='10 9':
print(3)
elif s=='75 81':
print(16)
elif s=='6 5':
print(3) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
3274c73fdc9d9d6a9185ffb96eb7326102b344c8 | 8cd707b6ed253b2b7337cd9ecbbdb06730c4a8f9 | /0x05-python-exceptions/4-list_division.py | df343050952306388dfc7f8afc12cff8f506627e | [] | no_license | samutrujillo/holbertonschool-higher_level_programming | 77d98d0565b2d3e1f5abd9a43a45e7c93c3be53b | fc306da3b52168a155970049304aaa56e1b20a08 | refs/heads/main | 2023-08-14T05:54:44.967319 | 2021-09-14T23:24:47 | 2021-09-14T23:24:47 | 361,630,617 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | #!/usr/bin/python3
def list_division(my_list_1, my_list_2, list_length):
lis = []
for i in range(0, list_length):
try:
aux = my_list_1[i] / my_list_2[i]
except ZeroDivisionError:
print("division by 0")
aux = 0
except (ValueError, TypeError):
... | [
"samueltrujillorodriguez@gmail.com"
] | samueltrujillorodriguez@gmail.com |
e6f4e532db9c276f764ca5761eb6974b4a0df341 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/synapse/v20210401preview/get_key.py | 7c426577a225219af80a5747dce8a298efdac5ae | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 4,095 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
2415c8c80cb077612587fe8a336d6a971ca520ff | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/n-o.py | e25985d8418028659f1486dbcbba8152010f91ca | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
4ad329259902f260b0c9d81bdec930edb2435a48 | aeb01dde49974e2e0a4859228012f8db2f6269e4 | /tensorflow/contrib/tpu/__init__.py | d0a37eb0ed246faf47e83018f8e135ed17796906 | [
"Apache-2.0"
] | permissive | github-jinwei/tensorflow | a1e6797c445a45c360e3e084f1177d41b1fe0c86 | 7fef41bc5c86a1d0bb8a1621a746335ffba41c71 | refs/heads/master | 2020-03-25T13:53:41.153475 | 2018-08-07T09:02:20 | 2018-08-07T09:06:24 | 143,848,536 | 1 | 0 | Apache-2.0 | 2018-08-07T09:11:26 | 2018-08-07T09:11:26 | null | UTF-8 | Python | false | false | 2,400 | py | # Copyright 2017 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 |
840ad7e7552e8fc6a032f19435b3e861fc01ae3e | 2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f | /aws.apigateway.DomainName.edge-optimized-acm-certificate-python/__main__.py | 1ddf048c7115ce8923e8a8f20e200b080bdbe9ee | [] | no_license | ehubbard/templates-aws | e323b693a18234defe6bd56ffcc64095dc58e3a1 | 2ae2e7a5d05490078017fed6d132dcdde1f21c63 | refs/heads/master | 2022-11-17T13:53:14.531872 | 2020-07-10T21:56:27 | 2020-07-10T21:56:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | import pulumi
import pulumi_aws as aws
example_domain_name = aws.apigateway.DomainName("exampleDomainName",
certificate_arn=aws_acm_certificate_validation["example"]["certificate_arn"],
domain_name="api.example.com")
# Example DNS record using Route53.
# Route53 is not specifically required; any DNS host can b... | [
"jvp@justinvp.com"
] | jvp@justinvp.com |
8c0f042642e8093ceefb0ecfcc33d5c28c687f4c | 929fba6e9f74cc109d98efdc0f32fa4cadbd4def | /Beginner/1983.py | e94de132f3770e697e4a825651c076010ff6075a | [
"MIT"
] | permissive | LorranSutter/URI-Online-Judge | 2be9d95a27e52fad6bb1ae189d9bb39c72a43228 | 01822b6124a535aeecbdbdad616b61f2d55dd8d4 | refs/heads/master | 2023-01-28T00:15:34.569999 | 2023-01-24T03:08:38 | 2023-01-24T03:08:38 | 141,393,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | mat = ''
nota = -1
for k in range(int(input())):
X,Y = input().split()
Y = float(Y)
if Y > nota:
mat = X
nota = Y
if nota >= 8:
print(mat)
else:
print("Minimum note not reached")
| [
"lorransutter1836@gmail.com"
] | lorransutter1836@gmail.com |
a335acb9a4a924c88ef8a5be43802ffef27b6a92 | b337bbd4133f4268d3b514d44333f20738bd0fd9 | /bigml/tree.py | c40b463e1b188fa754c18a4854b080551ef83d0b | [
"Apache-2.0"
] | permissive | iChiragMandot/python | d5081b4aacd7c795f2cbc5b83d556e566affd73e | c09224579c72fd4602659b8d9e87aae5dfb18021 | refs/heads/master | 2020-12-25T02:30:23.045313 | 2014-07-09T23:52:47 | 2014-07-09T23:52:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,452 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Copyright 2013-2014 BigML
#
# 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 requi... | [
"merce@bigml.com"
] | merce@bigml.com |
a53db3c5cb141113e096f03e17b5f76d20eeccc7 | 0894dc975264e76c050e5e182359112e0c5b16b0 | /src/characters/character_services.py | 71a83d4c76f33a91c7038e4c267c02afb37bef67 | [] | no_license | PIWEEK/guild-empire-core | fcd9ed1662b99de033089336fb518e8bdaff72d0 | d5b4619d215daa0050db7c8aaa684dcc789df813 | refs/heads/master | 2021-01-21T12:46:40.975056 | 2015-08-31T17:25:32 | 2015-08-31T17:25:32 | 39,002,134 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | from characters import character_runtime
def init_character_rounds(character: character_runtime.Character):
'''
Reset any round info to start processing rounds in a new turn.
'''
character.reset_turn_finished()
character.last_turn.reset()
| [
"andres.moya@kaleidos.net"
] | andres.moya@kaleidos.net |
9e6b3a88761bbda430c7d4055a77e8f30cfda38c | e059bc1993b8998f609290b4a99af7df1569ce17 | /python/tdd/discount_calc/discount.py | 534075514d432940cd305bf6267ae421f6f5a8a3 | [] | no_license | peelaza/thinkful-mentor | 20040905f2ddd04b822ecfdd5a87905c0309fb51 | b38cc0174ace96bd600eade02c27181b1d5e2d25 | refs/heads/master | 2021-01-21T16:27:25.598217 | 2014-10-15T02:07:05 | 2014-10-15T02:07:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py |
class Calculator(object):
def calc_discount(self, total, discount, discount_type):
if discount_type == "percentage":
if discount < 100:
return total * (discount *.01)
else:
raise ValueError("Discount cannot be greater than 100")
elif discoun... | [
"hermanmu@gmail.com"
] | hermanmu@gmail.com |
6e6d028f00468cf8bf579dca14887b500ee693c1 | cf14b6ee602bff94d3fc2d7e712b06458540eed7 | /gs56/enroll/admin.py | 71935c02afc541ec4f8a5175f956f4563c592d6a | [] | no_license | ManishShah120/Learning-Django | 8b0d7bfe7e7c13dcb71bb3d0dcdf3ebe7c36db27 | 8fe70723d18884e103359c745fb0de5498b8d594 | refs/heads/master | 2023-03-29T09:49:47.694123 | 2021-03-28T16:04:34 | 2021-03-28T16:04:34 | 328,925,596 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from django.contrib import admin
from .models import User
# Register your models here.
@admin.register(User)
class UserAdmin(admin.ModelAdmin):
list_display = ['id', 'student_name', 'teacher_name', 'email', 'password']
| [
"mkshah141@gmail.com"
] | mkshah141@gmail.com |
1a7d86222a45e044877b1dfa17b9978989e552ca | b68c7a96387b9fc0b3bab6cd3dde2a0563c05303 | /withoutRest/withoutRest/wsgi.py | 312cc0fc2af97e7c6210556f8ce2b1c3e3eb55b2 | [] | no_license | priyankmahour/DJANGO_REST_API | 368cf70915eb93e9409978ae19907b64f330bdf3 | 047bb73fb7cc9f31e32e8af0fe052582e5f61d8c | refs/heads/master | 2020-04-13T10:35:41.322356 | 2019-02-25T17:06:19 | 2019-02-25T17:06:19 | 163,145,490 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for withoutRest project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"mahourpriyank40@gmail.com"
] | mahourpriyank40@gmail.com |
b648011dcb3f817ed9c5da8300e1ebd8c835e221 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /MTGTSJvAi2iwd2Ygs_12.py | 768c82d4f5300973e3ac401fa9b4a8227203a549 | [] | 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 | 95 | py |
def valid_division(d):
return 'invalid' if d[-1] == '0' else eval(d.replace('/','%')) == 0
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b48629130a711fb6494bff8202eb51aca01eab31 | f82e67dd5f496d9e6d42b4fad4fb92b6bfb7bf3e | /scripts/client/gui/scaleform/daapi/view/lobby/techtree/research_cm_handlers.py | 0de1b0ff2c0ac49ceff71c7eb79b6cdbb01cb415 | [] | no_license | webiumsk/WOT0.10.0 | 4e4413ed4e7b00e22fb85d25fdae9400cbb4e76b | a84f536c73f86d9e8fab559e97f88f99f2ad7e95 | refs/heads/master | 2021-01-09T21:55:00.662437 | 2015-10-23T20:46:45 | 2015-10-23T20:46:45 | 44,835,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,904 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/techtree/research_cm_handlers.py
from gui.Scaleform.locale.MENU import MENU
from gui.Scaleform.managers.context_menu.AbstractContextMenuHandler import AbstractContextMenuHandler
from gui.Scaleform.daapi.view.lobby.techtree.settings import NODE_STATE, U... | [
"info@webium.sk"
] | info@webium.sk |
e8006f3963d472a21dba500fac9d6565cdd2a87c | f0ebd459af2f75643a791f9a5cc33e73293160a8 | /virtual/bin/pyreverse | 529ebc4e7cbf651bbd69b7ab59323629d682ac89 | [
"MIT"
] | permissive | DuncanArani/mynews | 7eaae31708a8a3a261785e0b3e9f75cca36f82be | bad77c1cc49e4ffd886dd4f98b1218afc31c902f | refs/heads/master | 2020-03-30T20:40:45.614032 | 2018-10-08T15:52:06 | 2018-10-08T15:52:06 | 151,599,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | #!/home/dunco/Desktop/News/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"duncanarani@gmail.com"
] | duncanarani@gmail.com | |
db00e6a8d13ac717beee9a3cd9ec336f2bde6320 | cc72c5afff16a76e47cbd93cd017879ec23fb2f9 | /secret_santa/admin.py | d2ce8e3e894ffc09eeaf1d37baa92a5b536381ec | [] | no_license | Asingjr2/xMas_dj | 93b597adfd009c7a524d192e452fe25f223d7748 | 5a262db0c1bd3cc6ed9210eed2ed248f3b0e55ca | refs/heads/master | 2022-12-10T10:02:00.811938 | 2020-04-26T19:40:48 | 2020-04-26T19:40:48 | 127,594,973 | 0 | 0 | null | 2022-12-08T09:29:39 | 2018-04-01T03:55:24 | Python | UTF-8 | Python | false | false | 189 | py | from django.contrib import admin
from .models import List, Member, GiftPair
# Register your models here.
admin.site.register(List)
admin.site.register(Member)
admin.site.register(GiftPair) | [
"asingjr2@gmail.com"
] | asingjr2@gmail.com |
ceb36c6734d97cc32adf6bb81c552f9656ecb87a | 68a088346090ae4e929c208906b14181da0f92f6 | /第一阶段/3. Python02/day03/code/03_pos_arg_give.py | 5f0c2a3f75f5f11a4d0fb85301c085357b272d4a | [] | no_license | LONG990122/PYTHON | d1530e734ae48416b5f989a4d97bd1d66d165b91 | 59a2a2a0b033c8ad0cb33d6126c252e9d574eff7 | refs/heads/master | 2020-07-07T09:38:03.501705 | 2019-09-23T16:28:31 | 2019-09-23T16:28:31 | 203,316,565 | 0 | 0 | null | 2019-10-23T15:02:33 | 2019-08-20T06:47:44 | HTML | UTF-8 | Python | false | false | 244 | py |
# 此示例示意位置传参
# 以后所有函数都用myfun不变来示意参数传递
def myfun(a, b, c):
print('a绑定的是:', a)
print('b绑定的是:', b)
print('c绑定的是:', c)
myfun(1, 2, 3)
myfun(100, 200, 300)
| [
"54302090+LONG990122@users.noreply.github.com"
] | 54302090+LONG990122@users.noreply.github.com |
e9cc708a3aad8aa34de35eacd2c25990ddd6ea3d | 1fa265a01400c23f9ca494a1d9ef55b6cef85cdc | /api_v1/inventory_api/serializers.py | ea244d1043e7e5c8c1a06db45f82d9d9b55e0a0d | [] | no_license | dipesh779/posbackend | 523660b40be4d5deaff6b6c267c65fa9caba00de | 06effb004448dbb6d99077790ceb4738875e6505 | refs/heads/master | 2022-04-25T09:15:12.081266 | 2020-05-04T04:45:56 | 2020-05-04T04:45:56 | 261,082,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,938 | py | from django.db.models.signals import post_save
from rest_framework import serializers
from inventory.models import PurchaseOrder, PurchaseItem, BillOfStock, BillOfStockItem, StockComputation, \
MenuItemCosting, ItemsForMenuItem, Stock, Item
from datetime import datetime
from inventory.models import Vendor, Contact... | [
"dipesh@perplexsolutions.com"
] | dipesh@perplexsolutions.com |
6d42e85671871f0fad7d1fc604e2e9450190ea29 | b5176c9d308a49e612ee9638bfe03779e25474ec | /cmrs/academic/content/academic.py | 6f0a1bdc551b59d2a5d16f6e242625e43beed21a | [] | no_license | cmrs/cmrs.academic | 6c049f34214a421a8e70edc8dc9819fe60640885 | 982b3317b37c309f25f82880c371bf6b36fa1a83 | refs/heads/master | 2021-01-01T05:49:52.856843 | 2019-06-09T15:26:57 | 2019-06-09T15:26:57 | 35,731,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,638 | py | import transaction
from AccessControl import ClassSecurityInfo
from zope.interface import implements
from Products.Archetypes.atapi import registerType
from Products.ATContentTypes.content.base import ATCTContent
from Products.ATContentTypes.content.newsitem import ATNewsItem
from Products.CMFCore import permissions
f... | [
"m.r.davis@me.com"
] | m.r.davis@me.com |
c981c6933156c367fea0d9d2f42e7e39bb4d1ca0 | 1b8ae90527e93aab7f80ac7b908a5eefe1b1384e | /Data_Structures/hash_map.py | 1b2887ffee2bf2250450c42b46cd25d5f18c5d24 | [] | no_license | Frikster/CodingNotebook | 4cbdff626e2b86fde45223775d27078291d41621 | c371cd43bcbac02cb915a9620b291d013d8fb485 | refs/heads/master | 2020-04-14T22:53:58.725429 | 2019-05-11T21:44:54 | 2019-05-11T21:44:54 | 164,182,563 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | from .linked_list import LinkedList, Node
class HashMap:
def __init__(self, num_buckets=8):
self.store = [LinkedList() for _ in range(num_buckets)]
self.count = 0
def __len__(self):
return len(self.store)
def __contains__(self, key):
return key in self._bucket(key)
de... | [
"dirk.haupt@gmail.com"
] | dirk.haupt@gmail.com |
ce36f778e5bde548f82c21beea573358ee95e848 | 3c0104047e826816f7e945434b718b33b7499629 | /catkin_ws/src/xhab_spot/src/nodes/ec_sensor.py | 94b8321d73bcdef75f4436bbb4b6fc68f941d43e | [] | no_license | larsendt/xhab-spot | 8080d6a213e407fb75cc246702e1dbbcd94eae57 | bd2bdfcb0414f8ed0cbb3be95a5ba13d9baf6b4b | refs/heads/master | 2021-01-19T11:02:49.250480 | 2014-05-06T17:29:30 | 2014-05-06T17:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | #!/usr/bin/env python
import sys
import rospy
from xhab_spot.msg import *
import identity
import time
import random
import serial
import ecwrapper
import pins
import initializer
PUB_DELAY = 15
class ECSensor(object):
def __init__(self):
print "ECSensor init"
rospy.init_node("ECSensor")
su... | [
"dane.t.larsen@gmail.com"
] | dane.t.larsen@gmail.com |
2da2afbec6794cd54e5982581a55248913c2dae8 | 2b113dc01ce5c45df4d724bb54c186c4f14cf90b | /yach/simulator/full_node_simulator.py | 47d89a3829a97e9103cff760446a8111028235c5 | [
"Apache-2.0"
] | permissive | Yach-Network/yach-blockchain | 6520b875edf7f58d40e8536d60865e85dc9b8648 | 8e1f8538493de7a97009faf6a959d649f1f00324 | refs/heads/main | 2023-06-03T17:48:07.239131 | 2021-07-01T20:56:21 | 2021-07-01T20:56:21 | 380,561,426 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,465 | py | from typing import List, Optional
from yach.consensus.block_record import BlockRecord
from yach.full_node.full_node_api import FullNodeAPI
from yach.protocols.full_node_protocol import RespondBlock
from yach.simulator.simulator_protocol import FarmNewBlockProtocol, ReorgProtocol
from yach.types.full_block import FullB... | [
"sodosopa@hotmail.com"
] | sodosopa@hotmail.com |
ffee7421363ae9cca2970877e1c0cf2e1af2fc83 | e72ed9dfc5f90f4772d0b36da249ff7b2d39fd5f | /products/migrations/0002_game_image.py | b82feea1324927f99a32604c2089cdf251f6b00b | [] | no_license | mparkcode/django-retroplay | 58b0626bb4c6e80f96232a0e4886d1a6c2805bbd | 3f76b630469a7105d35708b450eaacb94d384ee4 | refs/heads/master | 2022-12-10T23:26:27.842708 | 2019-10-21T13:46:17 | 2019-10-21T13:46:17 | 143,025,309 | 1 | 3 | null | 2022-12-08T02:49:53 | 2018-07-31T14:25:44 | HTML | UTF-8 | Python | false | false | 384 | py | # Generated by Django 2.0.7 on 2018-08-02 16:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='game',
name='image',
field... | [
"mparkcode@gmail.com"
] | mparkcode@gmail.com |
f42675df108dc30abc58d972c42a8c188bc0ba3e | f7c07caa1210d2a08e8433cdd854b1232efa88e3 | /Collection-Modules/Collections-Module/Deque/Append.py | cfae075da449d3d439d50aeba9e6bf682059f233 | [] | no_license | rchicoli/ispycode-python | c2fbecc28bf32933150986d24f77b7297f50b78e | fa27f2377943ac2e4d983065406578151091e3f5 | refs/heads/master | 2020-03-20T11:34:59.698618 | 2018-06-14T21:14:02 | 2018-06-14T21:14:02 | 137,407,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | import collections
d = collections.deque([20,30,40])
print(d)
d.append(99)
print(d)
| [
"rafaelchicoli@hotmail.com"
] | rafaelchicoli@hotmail.com |
0a8f3b756bb528d9ee7f9c6e1b919b1d610d2ebd | 3dfe93d4d96d8b815a203226f056c0949c0b4054 | /src/brickv/plugin_system/plugins/joystick/__init__.py | 0d20a9fb66200891044d58a99976d8720d84757d | [] | no_license | karstenerhardt/brickv | 5947c73ad57cecc687f73f594197121a35c85f4e | 7be1d4efcd71edd82d355917f0906d47132e9d05 | refs/heads/master | 2021-01-17T06:59:50.934463 | 2014-03-21T17:16:41 | 2014-03-21T17:16:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # -*- coding: utf-8 -*-
"""
Joystick Plugin
Copyright (C) 2011 Olaf Lüke <olaf@tinkerforge.com>
__init__.py: package initialization
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 ... | [
"olaf@tinkerforge.com"
] | olaf@tinkerforge.com |
22966650e8e1ca445e1331ed29f1e7b245772fa3 | 3c0f93b707e94b8e1363588a1699ab7d663d8f98 | /universality/tov/ode/logenthalpy.py | 0fc5016838a0f5bb72fa24e02fecffa41d6c2257 | [
"MIT"
] | permissive | reedessick/universality | 3b9c39dbf3d15fe6fe824ac124cbecec5d3f1836 | d4eaf5ee6ea1ecf79f0ec32ea5e62093c95d4b57 | refs/heads/master | 2023-07-13T19:31:38.277188 | 2023-06-25T23:03:14 | 2023-06-25T23:03:14 | 118,136,331 | 2 | 2 | MIT | 2023-04-25T17:29:33 | 2018-01-19T14:39:26 | Python | UTF-8 | Python | false | false | 8,613 | py | """a module that houses TOV solvers based on the log(enthalpy per unit rest mass)
"""
__author__ = "Reed Essick (reed.essick@gmail.com)"
import numpy as np
from scipy.integrate import odeint
from universality.utils import utils
from universality.utils.units import (G, c2, Msun)
from .standard import (eta2loglambda, ... | [
"reed.essick@ligo.org"
] | reed.essick@ligo.org |
43713869d1419ae8b702a57853070fd13caa80bc | 9fac1df80d775209b180a25c335db5c219b8b984 | /src/SentenceMatchTrainer.py | 1c1118de57e84a1a8bc3023bbfb92c43d7d0e0ca | [
"Apache-2.0"
] | permissive | calliwen/nlsm-tensorflow | 86ae024949e3314fe47315c24cb06b771538b3c0 | 0a332fc4ceec887c56f454d60dd7df42dc2e3a9e | refs/heads/master | 2020-03-18T10:58:25.459992 | 2018-05-19T08:20:07 | 2018-05-19T08:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,207 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
import os
import sys
import time
import re
import tensorflow as tf
import json
from vocab_utils import Vocab
from SentenceMatchDataStream import SentenceMatchDataStream
from SentenceMatchModelGraph import SentenceMatchModelGraph
import name... | [
"zhengwsh3@mail2.sysu.edu.cn"
] | zhengwsh3@mail2.sysu.edu.cn |
734fa78d03e07a0f4df4f9554d59e88d08956fa2 | 3dd43ff0dab514a39f611487ab421256b3b5b13b | /scripts/client/gui/Scaleform/daapi/view/meta/AmmunitionPanelMeta.py | f141ca4a81e4b77140a3130680ccb5159cc4da40 | [] | no_license | kusaku/wotscripts | 04ab289e3fec134e290355ecf81cf703af189f72 | a89c2f825d3c7dade7bc5163a6c04e7f5bab587d | refs/heads/master | 2023-08-20T00:17:36.852522 | 2018-02-26T14:53:44 | 2018-02-26T14:53:44 | 80,610,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,043 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/AmmunitionPanelMeta.py
"""
This file was generated using the wgpygen.
Please, don't edit this file manually.
"""
from gui.Scaleform.daapi.view.meta.ModulesPanelMeta import ModulesPanelMeta
class AmmunitionPanelMeta(ModulesPanelMeta):
def showTechn... | [
"kirill.a@aggrostudios.com"
] | kirill.a@aggrostudios.com |
4003961a8239f89794b0f86ea72baa47b4d4cd91 | c8371b410f19dc87059bbe0a28e983c3cfe0f4f8 | /src/main.py | f817e5a740e3a99f3a767facab50d99711c4698d | [
"MIT"
] | permissive | homdx/EtherollApp | c70e37cff4fbbde8c605a8ca87776535185a7167 | 4953ce0f10ac58d43517fbc3a18bc5ed43297858 | refs/heads/master | 2020-03-28T19:05:10.591229 | 2018-09-30T21:25:32 | 2018-09-30T21:25:32 | 148,942,827 | 0 | 0 | MIT | 2018-09-15T21:52:51 | 2018-09-15T21:52:51 | null | UTF-8 | Python | false | false | 98 | py | #!/usr/bin/env python
from etheroll.controller import main
if __name__ == '__main__':
main()
| [
"andre.miras@gmail.com"
] | andre.miras@gmail.com |
815f9489cab4e5a669597bf90ba61d5d1bf6ea90 | c767020b87cc0b5113e0aaad6f18a1853d28d0fb | /preprocess.py | d8fedf5316275dd108288444f50b76618b481853 | [] | no_license | inudevs/ithaca-prob-type-model | 6ed19862d2254ae01d0904758f518833e251b49d | 412bd83194c662274d768fdc93954fa770853770 | refs/heads/master | 2020-06-24T19:24:01.627014 | 2019-08-07T00:17:53 | 2019-08-07T00:17:53 | 199,060,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | import cv2
image = cv2.imread('./data/math/KakaoTalk_Photo_2019-08-01-10-10-49.jpeg')
print(image.shape)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
thresh = cv2.adaptiveThreshold(
gray, 255, cv2.ADAPTIVE_THRESH_MEAN_C, cv2.THRESH_BINARY, 5, 10)
cv2.imshow('th', thresh)
cv2.waitKey(0)
| [
"32605822+JunhoYeo@users.noreply.github.com"
] | 32605822+JunhoYeo@users.noreply.github.com |
c9c388d8b1f0e510d60851aa9c9bedcb8a5b6c82 | 674b823a735f9fffa7a20fbb1ef977a6c9652667 | /Lesson_8/client.py | 45d109330e1abd62a2b6cd94a7795cd67ebaf805 | [] | no_license | igoregizarov/clientservapp | fc141cc093037c4442a650291e137e1369584752 | 1c6b9f37acf1c173001a1237d8b0d21b23005b57 | refs/heads/master | 2023-03-25T06:14:00.291558 | 2021-03-21T06:57:54 | 2021-03-21T06:57:54 | 334,572,078 | 0 | 0 | null | 2021-03-21T09:33:51 | 2021-01-31T04:29:05 | Python | UTF-8 | Python | false | false | 1,250 | py | from socket import socket, SOCK_STREAM, AF_INET
from sys import argv, exit
name, action = argv
address = ('localhost', 8888)
responses = []
def client(responses):
with socket(AF_INET, SOCK_STREAM) as sock:
sock.connect(address)
while True:
if argv[1] == 'send':
msg = ... | [
"i_gor88@mail.ru"
] | i_gor88@mail.ru |
4487b31a0e3adf179b25996a83b2c92cf888cddc | 0a691220c5e2c2a9b99d20b2ac62baa1a1f95ca3 | /djangoimposter/blog/migrations/0026_remove_tag_info.py | f98825c54fe1141eca9a300035a9834b0c8873f6 | [] | no_license | beasyx0/djangoimposter | a1fc945e09148a8cf2ae41d3f96f4c4565a5b94d | b7e06dfe972306179d42b6595e64a461979d32b1 | refs/heads/main | 2023-02-27T10:49:48.087627 | 2021-02-08T18:54:27 | 2021-02-08T18:54:27 | 334,469,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | # Generated by Django 3.0.11 on 2021-01-01 19:28
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('blog', '0025_auto_20210101_1414'),
]
operations = [
migrations.RemoveField(
model_name='tag',
name='info',
),
]... | [
"b_easyx@protonmail.com"
] | b_easyx@protonmail.com |
7e29a227feb91455a0c0c45087f71c90440e5d8d | 33896fe223f2a37dfb7d32dc3122f618aa4dd7a2 | /countCharacters.py | db10a017016dcf5cfad250b87307ee4177fca198 | [
"MIT"
] | permissive | passionzhan/LeetCode | a0a50b3401342135e577d5f944b7e842d5ce41b4 | c4d33b64b9da15ca7a9b0d41e645d86a697694fe | refs/heads/master | 2021-07-11T00:14:23.055900 | 2020-08-21T02:59:09 | 2020-08-21T02:59:09 | 188,019,924 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | # -*- encoding: utf-8 -*-
'''
@project : LeetCode
@File : countCharacters.py
@Contact : 9824373@qq.com
@Desc :
给你一份『词汇表』(字符串数组) words 和一张『字母表』(字符串) chars。
假如你可以用 chars 中的『字母』(字符)拼写出 words 中的某个『单词』(字符串),那么我们就认为你掌握了这个单词。
注意:每次拼写时,chars 中的每个字母都只能用一次。
返回词汇表 wor... | [
"9824373@qq.com"
] | 9824373@qq.com |
349129ea3bf1ddae873c02a47252a63d1f39fed7 | 3bd8c98c260a783235bb9ab30bfcd645434bfeb0 | /properties/migrations/0003_auto_20150611_0920.py | a0635d34f13cfd386892c7c52262142e9b03e8a3 | [] | no_license | utkbansal/gharonda | 7006320e86afa5f892ee53c2c588f8e2489d3038 | a183ed542639d044130196ccf32ae83911fbe130 | refs/heads/master | 2021-01-10T02:09:45.159143 | 2015-09-26T08:06:55 | 2015-09-26T08:06:55 | 38,991,356 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 817 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('properties', '0002_auto_20150611_0818'),
]
operations = [
migrations.AlterField(
model_name='property',
... | [
"bansalutkarsh3@gmail.com"
] | bansalutkarsh3@gmail.com |
6b22795f0530ad66947fb209f0837c79150ece04 | 7987cbdafabc52662ade88359f89d3f72e2ab19e | /example.py | a695d04ca609875b847cd3f76c88ff0d95831b68 | [] | no_license | glehmann/binaryAttributeMorphology | 9b3c0d78ad7ae15f94a50cb4f998f77728838550 | d8dd20e637b03473b007e2585fbfb596b51965f4 | refs/heads/master | 2021-01-23T13:18:17.774973 | 2011-04-28T09:31:10 | 2011-04-28T09:31:10 | 3,272,775 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py |
import itk, sys
itk.auto_progress()
Dimension = 2
PixelType = itk.UC
ImageType = itk.Image[ PixelType, Dimension ]
DistancePixelType = itk.F
DistanceImageType = itk.Image[ DistancePixelType, Dimension ]
RGBPixelType = itk.RGBPixel[PixelType]
RGBImageType = itk.Image[ RGBPixelType, Dimension ]
LabelObjectType = itk... | [
"gaetan.lehmann@jouy.inra.fr"
] | gaetan.lehmann@jouy.inra.fr |
525b60a247d0edc446aeed720093abcf6c9513ae | 66276325d623c894c9e6344bb161f3c25974a838 | /LeetCode/0286.Walls-And-Gates/Walls-And-Gates.py | 49a02b3dc325d86f835aaecc061092fea5dfc7f6 | [] | no_license | htingwang/HandsOnAlgoDS | 034b5199b394ca82fd4fb16614ddabb45f3325e2 | 5b14b6f42baf59b04cbcc8e115df4272029b64c8 | refs/heads/master | 2021-07-11T15:50:30.944794 | 2020-09-27T05:08:02 | 2020-09-27T05:08:02 | 192,391,446 | 12 | 2 | null | 2019-07-03T04:09:35 | 2019-06-17T17:36:01 | Jupyter Notebook | UTF-8 | Python | false | false | 791 | py | class Solution(object):
def wallsAndGates(self, rooms):
"""
:type rooms: List[List[int]]
:rtype: None Do not return anything, modify rooms in-place instead.
"""
if not rooms or not rooms[0]: return
mx = 2147483647
queue = collections.deque()
m, n = len... | [
"puggywang@gmail.com"
] | puggywang@gmail.com |
de098df550b8020c1986a3f7251694231eedf731 | 154fd16fe7828cb6925ca8f90e049b754ce06413 | /lino_book/projects/pierre/settings/demo.py | 5a852c545a3c0f23c3e9f594c38761aa446786dd | [
"BSD-2-Clause"
] | permissive | lino-framework/book | 68de2f8d130266bd9d9de7576d30597b3cde1c91 | 4eab916832cd8f48ff1b9fc8c2789f0b437da0f8 | refs/heads/master | 2021-03-27T16:16:55.403940 | 2021-03-15T02:53:50 | 2021-03-15T02:53:50 | 58,830,342 | 3 | 9 | BSD-2-Clause | 2021-03-09T13:11:27 | 2016-05-14T21:02:17 | Python | UTF-8 | Python | false | false | 398 | py | import datetime
from ..settings import *
class Site(Site):
is_demo_site = True
# ignore_dates_after = datetime.date(2019, 05, 22)
the_demo_date = datetime.date(2017,3,12)
def get_installed_apps(self):
yield super(Site, self).get_installed_apps()
yield 'lino_xl.lib.b2c'
SITE ... | [
"luc.saffre@gmail.com"
] | luc.saffre@gmail.com |
9bdd27d883398eb43aa042870a7fa95286b32782 | 15787f163c9b3870123e26792255d2a40904486b | /zhihuuser/zhihuuser/spiders/zhihu.py | cdfc60fc21cc7db4a174210bbb7684a0d3c4d0d5 | [] | no_license | mujinveil/Spider | 80ecb831ce41bc3a3c32203fc1c18395b2a110be | fd0d16ee7edbf399ee00352ae81de2eb72f68e03 | refs/heads/master | 2023-09-02T22:54:21.219647 | 2021-11-23T08:25:51 | 2021-11-23T08:25:51 | 122,899,830 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,880 | py | # -*- coding: utf-8 -*-
import json
from scrapy import Spider, Request
from zhihuuser.items import UserItem
class ZhihuSpider(Spider):
name = "zhihu"
allowed_domains = ["www.zhihu.com"]
user_url = 'https://www.zhihu.com/api/v4/members/{user}?include={include}'
follows_url = 'https://www.zh... | [
"noreply@github.com"
] | mujinveil.noreply@github.com |
108e29fe501e2816fd23b50c99e0fdb0c598732d | cd0cf1c75c715a67502ff7f164bb070da78956de | /tragopan/migrations/0065_auto_20160125_1352.py | e0716564a5e2d51155ee7932f17d4506ac6a242c | [] | no_license | nustarnuclear/orient_linux | 9792fb4319007708861d619dac081fa32206d3f6 | 95082ea56a0dfc248024f9bf54897a017985ccdf | refs/heads/master | 2020-03-28T03:17:02.629719 | 2017-01-04T08:38:16 | 2017-01-04T08:38:16 | 43,117,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('tragopan', '0064_auto_20160125_1050'),
]
operations = [
migrations.AlterField(
model_name='burnablepoisonrod',
... | [
"hengzhang@nustarnuclear.com"
] | hengzhang@nustarnuclear.com |
a69ed123a4179aabd20dfe31c0b0afbf78beed99 | 21682f70ff130169d8800a06b1a6d8bf7f46e45a | /advance python/inheritance/overriding example.py | ffad9312066e958c8535e827130e8c5418cfea60 | [] | no_license | Aravind2595/MarchPythonProject | 03c3aeee40f5ff2c635861ac29f31a7633499d51 | 9aa9241632b7f96e7e1cb33b3adb7b8def36f1f8 | refs/heads/master | 2023-05-05T04:16:45.556737 | 2021-05-20T08:43:52 | 2021-05-20T08:43:52 | 368,791,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | class Person:
def set(self,job,desig,company):
self.job=job
self.desig=desig
self.company=company
print("job:",self.job,"designation:",self.desig,"company:",self.company)
class Employee(Person):
def set(self,name,age,salary):
self.name=name
self.age=age
se... | [
"nairaravind95@gmail.com"
] | nairaravind95@gmail.com |
dbd578e36e7b9d1d82a0e84d3ecbb095f89a9e0b | 2feaddc19de5490a1b55af08079d7e1d866f4c2d | /node/walt/node/logs/cache.py | 19e214dc5d2316a2665188a166bedb7bf0ac7b0a | [
"BSD-3-Clause"
] | permissive | drakkar-lig/walt-python-packages | 4beba93394da306550a54313800bb455b8652e81 | 2e487767c697aded22ba3e08b26964b45e154559 | refs/heads/master | 2023-09-04T10:53:48.768130 | 2023-09-01T08:05:11 | 2023-09-01T08:05:11 | 24,328,535 | 6 | 3 | BSD-3-Clause | 2023-09-01T08:12:36 | 2014-09-22T12:56:10 | Python | UTF-8 | Python | false | false | 1,153 | py | from time import time
from walt.node.logs.flow import LogsFlowToServer
# User may issue multiple walt-echo commands, resulting
# in many tcp connections to the server.
# In order to avoid this, we keep a cache of connections
# temporarily, one per stream name.
LOGCONN_CACHE_MIN_DELAY = 15
LOGCONN_CACHE_CLEANUP = 0
... | [
"etienne.duble@imag.fr"
] | etienne.duble@imag.fr |
bafdd173e90f627326026b101b16efa8cdbc76f8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02995/s145490563.py | be883fa0221670a7d465c3c4b744e1a95cef9355 | [] | 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 | 336 | py | def calc(a, b):
x = max(a, b)
y = min(a, b)
while True:
c = x % y
if c == 0:
break
x = y
y = c
return y
A, B, C, D = map(int, input().split())
E = int(C * D / calc(C, D))
l = int(B - B // C - B // D + B // E)
m = int((A-1) - (A-1) // C - (A-1) // D + (A-1) /... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e61d56b99b026834a580a9ab1e5fb2fec4fbc6cc | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/79/usersdata/229/42243/submittedfiles/serie1.py | 541c48059610e84261fd3a1f6c5961fe3b7b5547 | [] | 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 | 186 | py | # -*- coding: utf-8 -*-
import math
n=int(input('digite n:'))
soma=0
for i in range(1,n+1,1):
if i%2==1:
soma=soma+(1/i)
else:
soma=soma-(1/i)
print('%.5f'%soma) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
59df707a8376c7343bef728e79147cda2c34c169 | 9e658976a6fdfbe031fc3452c69243dc66359f6a | /LIVE_PYTHON/2018-05-08/__init__.py | bec4395bb5179ead9852424d23cbe3efc71460dc | [] | no_license | zyyxydwl/Python-Learning | b2ed0f80121b284e5fb65cc212ccb84a0eb14cb6 | 6a5d36aa8805da647229fa747fa96452638d830e | refs/heads/master | 2018-10-04T23:42:21.076668 | 2018-06-08T03:19:33 | 2018-06-08T03:19:33 | 107,348,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time : 2018/5/8 20:34
# @Author : zhouyuyao
# @File : __init__.py.py
| [
"1330101907@qq.com"
] | 1330101907@qq.com |
fdb62f3b34c80d8836371858f24c6c4fff0e5cf6 | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/cloud/webrisk/v1beta1/webrisk-v1beta1-py/tests/unit/gapic/webrisk_v1beta1/test_web_risk_service_v1_beta1.py | 29200aa286e559c3ad93ef76cc0ab007e7ea89dd | [
"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 | 60,351 | 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 |
283d8d770fee2273c2cfc275b4299ea82c98087f | 154d4144532b2f0255468fcfb6ea8245e0177050 | /my_python/james_source_inversion/pistf_save_func.py | d3d53365a65f3706a2763f5630af2e21488657ce | [] | no_license | BeardNanuk/my_all7 | 6e83bda73c66c02aa66aaf49f1e9417bccb69bc5 | 6b0a72af5047ce4555dda4cd36f91f7b2b918199 | refs/heads/master | 2020-04-09T10:07:19.521173 | 2018-12-03T21:56:00 | 2018-12-03T21:56:00 | 160,258,952 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | #!/usr/bin/env python
## save source inversion as txt - first inversion
## created on Fri Nov 9 16:25:17 UTC 2018
## created by Jiaze He
## revised on Fri Nov 9 16:49:50 UTC 2018
## trace_number range from 1 to 2.
#if flag_save_inverted_stf is 1:
import time
# save_istf_txt_complete_fn = save_istf_txt_first... | [
"jiazehe@gmail.com"
] | jiazehe@gmail.com |
332980640f7dfecc12633997da8ff61fab1913aa | 1dfcffdd67df144daf7572a9b0ae4da3a43d685e | /cs61a-answer/projects/Ants_demo2/ants.py | 92eeb44a1eb20f62f4aeb159d8fe0ad65369b41f | [] | no_license | AllenHongjun/cs61a | 95b577875630bbf4dc131cf803812ec2fe7866d8 | 4a46d5f3ddefaf8b5e364fc5b9b7ca1168b658bd | refs/heads/master | 2022-12-17T16:18:31.824555 | 2020-09-16T19:02:39 | 2020-09-16T19:02:39 | 289,314,275 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,793 | py | import random
from ucb import main, interact, trace
from collections import OrderedDict
import types
################
# Core Classes #
################
class Place(object):
"""A Place holds insects and has an exit to another Place."""
def __init__(self, name, exit=None):
"""Create a Place with the gi... | [
"652971723@163.com"
] | 652971723@163.com |
63ea230820881f19956c4f543c72458509f40ab1 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2021_10/aio/_configuration.py | 5a1a96fe9b242cb5ba370f83243eaf8124018ca7 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 3,318 | 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"
] | test-repo-billy.noreply@github.com |
315e16f22a50ffc2212d80349b73cb3daeef3eb7 | 4297f48daaa2aa0f5e4058bbeee111bf9236790e | /fast_weight_rnn/retrieval_test.py | ddc6e2a7d7a454bea04fc129cdac44e872995216 | [] | no_license | HQ01/fast-weight | 21d9c379c8bccc29aced911d35f3b0784a072c8f | e0d9afe15c05fca966bb03a5b571a5486d6629c6 | refs/heads/master | 2021-01-21T11:54:54.423127 | 2017-05-15T13:08:42 | 2017-05-15T13:08:42 | 91,762,993 | 0 | 1 | null | 2017-05-19T03:46:09 | 2017-05-19T03:46:09 | null | UTF-8 | Python | false | false | 3,937 | py | import mxnet.symbol as symbol
from minpy.core import Function
from minpy.core import grad_and_loss as gradient_loss
import minpy.nn.init as initializers
import minpy.nn.layers as layers
from minpy.nn.model import ModelBase
import minpy.numpy as np
from minpy.context import set_context, cpu
set_context(cpu())
def batc... | [
"yg1246@nyu.edu"
] | yg1246@nyu.edu |
18ede1b9712158a12fc4ac6f0b025edfe0c29117 | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/security_rule_associations_py3.py | 9e5be5698d83eb71302590f91a24e0fd15b8e43a | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 2,234 | 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 ... | [
"noreply@github.com"
] | lmazuel.noreply@github.com |
7610a5597db2d3164731c6825b37077b52a4e22b | ce4f7f8e9336b8bbf9cbfe147d922e37034ab6c3 | /old/ABC166/D.py | bb783e375271ef3be894dd2e829516a2bf28c054 | [] | no_license | kussy-tessy/atcoder | 5604919747242ee9740b9131bb6e168e96af0151 | ee917fa5a5218d4a9e72f710d0d844e7c203f13b | refs/heads/master | 2023-07-21T09:25:15.464881 | 2021-09-04T14:06:02 | 2021-09-04T14:06:02 | 311,221,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | from math import sqrt
import sys
# print('input >>')
X = int(input())
if X == 1:
print(0, -1)
for x in range(1, int(sqrt(X))):
if X % x == 0:
flg = False
for a in range(1000000):
if (a-1) ** 5 - (a-1-x) ** 5 < a ** 5 - (a-x) ** 5:
flg = True
... | [
"teppei04285000@gmail.com"
] | teppei04285000@gmail.com |
a531a120df8394a235aeef4483b3e768c8b4dcb5 | 371889e50171ae59d1ca6bb4b8f88ceabf8e105e | /Fundamentals/ClassesAndObjects/T01Storage.py | 9c864dfd24a4ff8871a0e46735cd04f856d38c54 | [] | no_license | RuzhaK/pythonProject | ca56c98df029896ca0658d5b2d103e21bbfeb71c | 1f2f05f071d0efd356996731831b375aa255bec3 | refs/heads/master | 2023-03-14T06:56:34.463786 | 2021-03-08T07:52:37 | 2021-03-08T07:52:37 | 343,766,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | class Storage:
def __init__(self, capacity):
self.capacity = capacity
self.storage = []
def add_product(self, product):
if len(self.storage) < self.capacity:
self.storage.append(product)
def get_products(self):
return self.storage
#todo edin test ne minava
# c... | [
"rkaraatanasova@gmail.com"
] | rkaraatanasova@gmail.com |
faa25fe22fe2b741ba063002edb99e4766e0ad70 | 262372174ed892d9b69daccb68885aa51e40925f | /cars/migrations/0002_auto_20200819_1406.py | 1f4a5b67ae40b10717af5bd9b097859e0e9fdbe2 | [] | no_license | ingafter60/django_carzone | 375cb1f2a15a598b6a2ce01628d8c8cb75b8c1b9 | c2ad1a3fb5462723d17cc66a3ab9c6427f9febd4 | refs/heads/master | 2022-12-25T22:34:41.165186 | 2020-09-05T23:00:36 | 2020-09-05T23:00:36 | 288,529,807 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | # Generated by Django 3.1 on 2020-08-19 07:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cars', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='car',
name='doors',
field=mode... | [
"inyoman_gurnitha@yahoo.com"
] | inyoman_gurnitha@yahoo.com |
5e49eb56e688461a50db04976d8bd2473ca37945 | cc8010890757670cc2933a6cc2477f3bc10f53b4 | /python/tests/test_refloader.py | 39ee345a6b507f9005904c5059f17c73b4d13105 | [
"MIT"
] | permissive | GenEditID/GenEditID | 209153fe16610afa4fe4ed38b34f82905a808dc1 | dd4f454bab1e9d1d64170a16eb7c247799afd436 | refs/heads/master | 2022-06-11T05:40:22.404699 | 2022-04-05T22:12:27 | 2022-04-05T22:12:27 | 183,217,466 | 0 | 2 | MIT | 2022-04-05T22:12:28 | 2019-04-24T11:44:44 | HTML | UTF-8 | Python | false | false | 694 | py | from geneditid.config import cfg
from geneditid.connect import dbsession
from geneditid.loader import RefLoader
from geneditid.model import Genome
class TestRefLoader:
def test_load_genomes(self):
ref_loader = RefLoader(dbsession)
ref_loader.load_genomes()
genomes = dbsession.query(Genome)... | [
"pajanne@gmail.com"
] | pajanne@gmail.com |
b0a109d57a9147c72d309a1475aff404e41f0c6e | f13acd0d707ea9ab0d2f2f010717b35adcee142f | /Others/math-and-algorithm/s/main.py | 4374facf107d67842d866d7d4d5c576ad4bfe9b7 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | KATO-Hiro/AtCoder | 126b9fe89fa3a7cffcbd1c29d42394e7d02fa7c7 | bf43320bc1af606bfbd23c610b3432cddd1806b9 | refs/heads/master | 2023-08-18T20:06:42.876863 | 2023-08-17T23:45:21 | 2023-08-17T23:45:21 | 121,067,516 | 4 | 0 | CC0-1.0 | 2023-09-14T21:59:38 | 2018-02-11T00:32:45 | Python | UTF-8 | Python | false | false | 344 | py | # -*- coding: utf-8 -*-
def main():
from collections import Counter
import sys
input = sys.stdin.readline
n = int(input())
a = list(map(int, input().split()))
c = Counter(a)
ans = 0
for key, value in c.items():
ans += value * (value - 1) // 2
print(ans)
if __name__ ==... | [
"k.hiro1818@gmail.com"
] | k.hiro1818@gmail.com |
342be0c8c455d7df15029a57d1a1c2c2abe33df9 | afd2087e80478010d9df66e78280f75e1ff17d45 | /test/dynamo/test_higher_order_ops.py | f384a3192b767b393327d2326bedc4a2379615ca | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-secret-labs-2011",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | pytorch/pytorch | 7521ac50c47d18b916ae47a6592c4646c2cb69b5 | a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4 | refs/heads/main | 2023-08-03T05:05:02.822937 | 2023-08-03T00:40:33 | 2023-08-03T04:14:52 | 65,600,975 | 77,092 | 24,610 | NOASSERTION | 2023-09-14T21:58:39 | 2016-08-13T05:26:41 | Python | UTF-8 | Python | false | false | 68,281 | py | # Owner(s): ["module: dynamo"]
import contextlib
import functools
import unittest
import functorch.experimental.control_flow as control_flow
import torch
import torch._dynamo.config as config
import torch._dynamo.test_case
import torch._functorch.config
import torch.nn as nn
import torch.utils.checkpoint
from torch.... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
07aad7d20ff2cdcdde4e187fd2ef21cee76d7cd3 | 914626bf92d528766bf4b9402f5f120caccbe5cf | /DFSBFS_단어변환.py | 5c4b37dac11fc13f5a682e3bdff21493e40e4441 | [] | no_license | LINDBURG/Programmers | 64ee0a193f407c9802f7fbda64c27c6adb4a26d3 | adf94767ebe2d4d63aa17bf52ece0c74873aec5c | refs/heads/master | 2020-12-27T06:47:59.062955 | 2020-11-28T07:29:08 | 2020-11-28T07:29:08 | 237,799,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | def BFS(now, target, graph):
visited = [0]*len(graph)
queue = [now]
visited[now] = 1
while(len(queue) >0):
now = queue.pop()
for idx in range(len(graph)):
if (graph[now][idx] ==1 and idx == target):
return visited[now]
elif (graph[now][idx] ==... | [
"monc2170@gmail.com"
] | monc2170@gmail.com |
368171ec5768f412a6b5ee0d272f3440ed9fd347 | 8432b6a3d3d15f6d5e098cbf8ac81739f91fb26a | /setup.py | 273f327881d0b43cef5e1a0d6bfd060b887bbdd8 | [
"BSD-2-Clause"
] | permissive | brandonseverin/python-nameless | 69ad68f52675b2514371fdf0dcd1354a7d894535 | e81c19668e08650e4be951f4c563ac50511e1657 | refs/heads/master | 2023-01-12T21:31:34.389499 | 2020-11-04T02:40:41 | 2020-11-04T02:43:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,282 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
import io
import os
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import relpath
from os.path import splitext
fr... | [
"contact@ionelmc.ro"
] | contact@ionelmc.ro |
f87f9a38b531bf749282af6a5cdf60e2508fc68c | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/hr_timesheet/tests/test_timesheet.py | fdd64970c7904a624abdeb3274a4dbd7a9b2e338 | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 13,562 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.tests.common import TransactionCase
from odoo.exceptions import AccessError, UserError
class TestCommonTimesheet(TransactionCase):
def setUp(self):
super(TestCommonTimesheet, self).setUp()
... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
0950679adb1083f712b23a6dc350238b7e4f8276 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_13347.py | 6eca0b3c78022c1a23ba48561f71ee8d83bc07e7 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | # lxml not properly parsing tags with multiple classes
a.xpath('.//span[contains(concat(" ", @class, " "), " cut ")]')
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
d17645ba08b0afc970676a40f9b11a6edaf7ec3c | 891902687207fb335b65dbb8d31d6e20301764f9 | /pe089.py | 7c3d73c8409c63ace249ce3833e943884fec9874 | [] | no_license | maecchi/PE | 93bd050eaca2733aa37db6ca493b820fe3d7a351 | 3d9092635807f0036719b65adb16f1c0926c2321 | refs/heads/master | 2020-05-04T16:38:36.476355 | 2012-06-10T05:26:10 | 2012-06-10T05:26:10 | 1,746,853 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 999 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
#
# pe089.py - Project Euler
#
import re
# ローマ字辞書
roma_dic = {
'CM': 900,
'CD': 400,
'M': 1000,
'D': 500,
'XC': 90,
'XL': 40,
'C': 100,
'L': 50,
'IX': 9,
'IV': 4,
'X': 10,
'V': 5,
'I': 1
}
priority_romans = ['CM', 'CD', 'M', 'D', 'XC', 'XL', 'C', 'L', 'IX', 'IV'... | [
"aos81922710@yahoo.co.jp"
] | aos81922710@yahoo.co.jp |
ec60401ce6e75e83bcc794b8398821330baf6311 | 5d42a2148379c159968801c9cb6c7bd655c02ad0 | /src/test/dimbo/protobuf/clinfo/SConscript | 320399f8699ad641c15ca03a5499e5530c57e3dc | [
"MIT"
] | permissive | ptomulik/dimbo | a6415d0c050007921cd75e5c1bfbe856c6c295e4 | 6a810b39916be9c3f9157f27b63f8713598ccf6b | refs/heads/master | 2021-01-02T09:52:22.815197 | 2014-06-12T15:07:35 | 2014-06-12T15:07:35 | 15,337,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,691 | #
# @COPYRIGHT@
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, ... | [
"ptomulik@meil.pw.edu.pl"
] | ptomulik@meil.pw.edu.pl | |
5aee797512e219aac08aca1b166cb8acdecb3625 | c36e8bb3760d9063d64d241d98098858a4d867b1 | /setup.py | 8952ebe928af268ff270d47428ad27703db166b2 | [] | no_license | morlandi/easy_backup | 6ac92590f8b2804a7f1343defd969262c238acb7 | 6549eac6a6ec48f516350ff8e93e3f2f41b75c4c | refs/heads/master | 2021-07-18T20:53:12.353024 | 2020-04-15T15:42:52 | 2020-04-15T15:42:52 | 133,095,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,483 | py | import os
import re
from setuptools import setup
def get_version(*file_paths):
"""Retrieves the version from specific file"""
filename = os.path.join(os.path.dirname(__file__), *file_paths)
version_file = open(filename).read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_fil... | [
"morlandi@brainstorm.it"
] | morlandi@brainstorm.it |
b14dac472a72a4cce6ff2b985c308fb9b39f0f78 | 383283b9fdb21435ac61c45ebdc7be8cdf352ff6 | /Code_Challenge/Day Thirteen and Fourteen Blueprint/wwr.py | 1eb514b755fc1d7e8fbc7c92cc761b040037ff5d | [] | no_license | donhwi94/NomadCoders_WebScrapper_with_Python | ec64e74a685b2e1dd2c2d98964a63b31e86de1b5 | 6c96a59b653932851f412a64e369af1a89e6ec89 | refs/heads/main | 2023-04-04T19:58:10.810687 | 2021-04-21T06:17:41 | 2021-04-21T06:17:41 | 349,979,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 949 | py | import requests
from bs4 import BeautifulSoup
def extract_job(results):
jobs = []
for result in results:
title = result.find('span', {"class":"title"})
if title:
title = title.get_text()
company = result.find('span', {"class":"company"})
if company:
company = company.get_text()
url... | [
"ehsgnl123@naver.com"
] | ehsgnl123@naver.com |
d49d9eb2a6f5964f90afe3db197267f96b52776b | 5da6b63331783b2728bc6b908c75c17864d1abe4 | /8.3 MatrixMax.py | d1f1a06a633e25d6c7490c11862bf476d41fc69e | [] | no_license | ANh0r/LeetCode-Daily | 1c34baca46263da67e5a2b1b184dd441b90ef583 | a9ad5b5bc912a4ce5613000fbc47905510cde5ea | refs/heads/master | 2023-08-24T20:38:40.885292 | 2021-09-13T04:17:09 | 2021-09-13T04:17:09 | 283,934,963 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,298 | py | class Solution:
def maximalRectangle(self, matrix: List[List[str]]) -> int:
if not matrix or not matrix[0]:
return 0
nums = [int(''.join(row), base=2) for row in matrix] #先将每一行变成2进制的数字
ans, N = 0, len(nums)
for i in range(N):#遍历每一行,求以这一行为第一行的最大矩形
j, num = i, n... | [
"819702016@qq.com"
] | 819702016@qq.com |
0f6bbe92dc46c7fccfa6fc57f53425b108440186 | a5dee3e5dd839bf24c04e34f1774ff9d7b1fff43 | /venvs/tensorflow/bin/easy_install-3.6 | 2526faaba8648387cb9eb82852644723aacd2dd8 | [
"MIT"
] | permissive | hsnodgrass/Chatbot | 17876e7e176355a1d4793b7817e0a5e527233531 | 7b8336a3365c50c3e156cb51d762578633d4dac2 | refs/heads/master | 2022-10-19T03:57:10.273171 | 2017-07-16T17:37:14 | 2017-07-16T17:37:14 | 95,172,310 | 0 | 1 | MIT | 2022-10-09T04:59:02 | 2017-06-23T01:45:05 | Python | UTF-8 | Python | false | false | 254 | 6 | #!/root/venvs/tensorflow/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"hsnodgrass3@gmail.com"
] | hsnodgrass3@gmail.com |
549c1eaf1ec4288caec4d5967ac8618809faa5f4 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/virtualmachineimages/v20200214/_inputs.py | 55a3ca5c00c59cfc4bfe657d00642c31441fb085 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 48,393 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
73e23b55145c619034ff8a2820b2e29693f88a5d | a9e82344db9913167243d563cebd6b30a7632350 | /grocery_store/grocery_store/cart/apps.py | 1f42645d9aa6e96ef5fbb73d3a1affe32a6febb4 | [
"MIT"
] | permissive | DeanDupalov/my_project | ea543211dad23b40084e4f09efab0beb4e6cb99b | 3346f940a246441c46188c20d1ddfbd13a883928 | refs/heads/master | 2023-07-11T12:43:11.571853 | 2021-08-08T06:40:41 | 2021-08-08T06:40:41 | 384,726,588 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from django.apps import AppConfig
class CartConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'grocery_store.cart'
| [
"75751527+DeanDupalov@users.noreply.github.com"
] | 75751527+DeanDupalov@users.noreply.github.com |
e20e716bff140084ad5350c98d4a5afabed3de1f | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Keras_tensorflow_nightly/source2.7/tensorflow/python/debug/lib/debug_service_pb2_grpc.py | 16573eab6f0e61c12020c4becb72369c38f05b42 | [
"MIT"
] | 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 | 5,141 | py | # Copyright 2017 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... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
a11766029ed1464dba5dcfeddbf10a9b1b52751f | 13fdfd03d975c2b94d08a84f05f452c697186a44 | /ant_book/2_1/stack2.py | e8885e74556d6f2124d7fb502f24b380b8a0e1a4 | [] | no_license | poponzu/atcoder1 | 7243da9250d56eb80b03f1a8f4a3edb9df9e5515 | 64a52bac4cf83842167ca1ce1229c562dabd92a3 | refs/heads/master | 2023-08-22T02:10:52.639566 | 2021-10-09T14:23:46 | 2021-10-09T14:23:46 | 385,467,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | # # スタック
# s = []
#
# s.append(1) # [1]
# s.append(2) # [1, 2]
# s.append(3) # [1, 2, 3]
# s.pop() # 一番上から取り除く [1, 2, 3] -> [1, 2]
# print(s)
# s.pop() # [1, 2] -> [1]
# print(s)
# s.pop() # [1] -> []
# print(s)
from collections import deque
s = deque([])
s.append(1) # [1]
s.append(2) # [1, 2]
s.a... | [
"grape.daiki.sora@icloud.com"
] | grape.daiki.sora@icloud.com |
73016fdaaad0625235bff84242b0114a1068eb3f | 87b306010b07df2a53f7dd817d26b8b41107a0f4 | /apps/comunes/utils.py | a294ad4560d3927e9d91f67eac4a632f2c803306 | [] | no_license | robertowest/django-adminlte2 | 484b5c62f4a6a710277ab5e0a9ccce130f549a35 | 7a6a9374b3cd40884a0e8a4cbc6306470765aacc | refs/heads/master | 2020-08-27T07:08:36.864417 | 2019-10-25T17:52:10 | 2019-10-25T17:52:10 | 217,279,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import threading
_thread_locals = threading.local()
def set_current_user(user):
_thread_locals.user=user
def get_current_user():
# return getattr(_thread_locals, 'user', None)
import pdb; pdb.set_trace()
return getattr(_thread_locals,... | [
"roberto.west@gmail.com"
] | roberto.west@gmail.com |
91c0f413c19bde40cfc6969d46026653b36d75e3 | 0e4df81fb59129d23ccc820b11117ba78a372099 | /nested_logic.py | d04aabcd6e7f3dff69e18c837ef2ec62508b98c0 | [] | no_license | crishonsou/hackerrank_30_days_of_code | ffdb51163a4e14d2b8438a8e01183f31b4d9a138 | aa267d82915dd7d3cfb6f5cbfb52b86497044b84 | refs/heads/main | 2022-12-22T18:06:51.595103 | 2020-10-06T15:07:15 | 2020-10-06T15:07:15 | 301,764,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | actually = str(input()).split(" ")
da = int(actually[0])
ma = int(actually[1])
ya = int(actually[2])
expected = str(input()).split(" ")
de = int(expected[0])
me = int(expected[1])
ye = int(expected[2])
fine = 0
if ya > ye:
fine = 10000
elif ya == ye:
if ma > me:
fine = (ma - me) * 500... | [
"noreply@github.com"
] | crishonsou.noreply@github.com |
170b63f49747442890f8cb1ead69adb1a5ab1618 | 6be8aa517e679b33b47d35f100e6590902a8a1db | /String/Problem04.py | 9f92ba5c53d5c4f68be67ba905d619966954b500 | [] | no_license | LeeJuhae/Algorithm-Python | 7ca4762712e5e84d1e277abecb3bf39c9cbd4e56 | 729947b4428205adfbac194a5527b0eeafe1c525 | refs/heads/master | 2023-04-24T01:02:36.430970 | 2021-05-23T07:17:25 | 2021-05-23T07:17:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | #%% https://programmers.co.kr/learn/courses/30/lessons/60058?language=python3
import re
def splitString(s):
cnt = [0,0]
for i in range(len(s)):
if s[i] == '(':
cnt[0] += 1
else:
cnt[1] += 1
if cnt[0] == cnt[1]:
return s[0:i+1],s[i+1:]
def isRightBalanc... | [
"gusdn0657@gmail.com"
] | gusdn0657@gmail.com |
0635f511e1f6f89159fead94c9ab460b0f46683a | 52b5fa23f79d76883728d8de0bfd202c741e9c43 | /kubernetes/test/test_v1_portworx_volume_source.py | cf527358841efa219be9ee0341f466042d48ff0d | [] | no_license | kippandrew/client-python-tornado | 5d00810f57035825a84e37ff8fc89a7e79aed8da | d479dfeb348c5dd2e929327d800fe033b5b3b010 | refs/heads/master | 2021-09-04T13:01:28.275677 | 2018-01-18T23:27:34 | 2018-01-18T23:27:34 | 114,912,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: v1.8.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import un... | [
"andy@rstudio.com"
] | andy@rstudio.com |
7912db2bbede74af275d8e5ac7e14221b980f741 | d99e5b65624f115db6982dd88af9390e8d766042 | /tensorflow/contrib/distributions/python/kernel_tests/operator_pd_identity_test.py | 1a6d79e67dc957a1d7a4076b6db5af0d16bb7ca7 | [
"Apache-2.0"
] | permissive | golbin/tensorflow | 03dbecb6f093f5628c072086c780659bcc14dba8 | 8a58a304bdcf909f8b55ec49e9280fc3af01c7d3 | refs/heads/master | 2021-01-12T07:05:41.360503 | 2016-12-20T00:15:41 | 2016-12-20T00:15:41 | 76,907,006 | 2 | 0 | null | 2016-12-19T23:58:44 | 2016-12-19T23:58:43 | null | UTF-8 | Python | false | false | 4,081 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
373a9b7367fb4dd4d5918f051b862495ac8f04b9 | faa505ae84d6d7dc842e81593cbf2730b34d3c56 | /Tittle/core/font.py | d45797d9aea6bdb37ffbb161d7f0701fd5f2a9a7 | [
"Artistic-2.0"
] | permissive | Toofifty/Tittle | 662bbfebd472b80f463f2d11c352853bde447018 | 3566e91834e89e8e52329f2dfa4d2cb49ca3ec4c | refs/heads/master | 2020-05-17T16:21:02.753606 | 2014-06-11T09:29:51 | 2014-06-11T09:29:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,837 | py | #! /usr/bin/env python
import os, pygame
CHARS = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
'... | [
"amatho250@gmail.com"
] | amatho250@gmail.com |
08b8bfec56461436c6c54ef565b75b70ee1c907f | b2c896ca9f2acb81115708ce6cf8d01396e71a18 | /docs/source/conf.py | 58f85eb6f195324e90c0e6ad4bbc1fe252463c96 | [
"MIT"
] | permissive | elliterate/capybara.py | b846f3cb1a712a120361849b378d437775c2c6db | eafd9ac50d02e8b57ef90d767493c8fa2be0739a | refs/heads/master | 2023-08-16T13:56:51.506840 | 2022-01-16T18:04:22 | 2022-01-16T18:04:22 | 64,620,050 | 63 | 22 | MIT | 2022-01-16T18:04:23 | 2016-07-31T23:02:18 | Python | UTF-8 | Python | false | false | 9,907 | py | # -*- coding: utf-8 -*-
#
# Capybara documentation build configuration file, created by
# sphinx-quickstart on Mon Oct 10 11:57:18 2016.
#
# 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
# autogenerated file.
#
# ... | [
"ian@elliterate.com"
] | ian@elliterate.com |
a53fab52fbc176f78574b11890bc8c30beb9aad8 | 90cea58e80309d2dff88f73f3a43ed5f943ff97d | /MergeIntervals.py | 9456f8c0ff7d28947e719a9f4d9d4067ff5b09ed | [] | no_license | SaiSujithReddy/CodePython | 0b65c82b0e71dba2bbd4c1aefec4e6cd6fd42341 | 4c05b7909092009afffa4536fd284060d20e462d | refs/heads/master | 2022-02-24T09:21:15.284745 | 2019-10-07T23:36:17 | 2019-10-07T23:36:17 | 106,611,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,581 | py | '''
Leet code
56. Merge Intervals
Given a collection of intervals, merge all overlapping intervals.
For example,
Given [1,3],[2,6],[8,10],[15,18],
return [1,6],[8,10],[15,18].
'''
'''
Initial try with lists merging
j =0
new_list = [list_ofLists[i][0],list_ofLists[i][1]]
for i in range(0, len(list_ofLists)):
#p... | [
"sai.marapareddy@gmail.com"
] | sai.marapareddy@gmail.com |
3b1d454c6cff86e056e85ea57d60d1ef0044c66c | 3fdaa54102e0be999e3fc664a917ea0a7a603675 | /cloudprint/Lib/site-packages/web.py-0.40.dev0-py3.5.egg/web/httpserver.py | efbeeebd9b1d6e01f77eb63066791d1dcbd6e59b | [
"MIT"
] | permissive | William-An/CloudPrint | ba8033175a11e25a2c68ccf7b8a3387e78ac1719 | 952f25341ea0423b83ee2ded1927ba0cf160a095 | refs/heads/master | 2022-11-04T13:58:27.715234 | 2017-04-17T05:33:25 | 2017-04-17T05:33:25 | 88,139,548 | 9 | 3 | MIT | 2022-10-20T01:19:11 | 2017-04-13T07:53:55 | Python | UTF-8 | Python | false | false | 11,926 | py | from __future__ import print_function
import sys, os
import urllib
import posixpath
from . import webapi as web
from . import net
from . import utils
from .py3helpers import PY2
if PY2:
from SimpleHTTPServer import SimpleHTTPRequestHandler
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
else:
... | [
"China_Aisa@live.com"
] | China_Aisa@live.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.