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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26f53ee3e13f32836f0a5496540fe55d41174be9 | be70e130f53c7703f942057923577adf607687a6 | /src/biotite/structure/atoms.py | 4f48389239e6002dc7578a797d4b2b6c6f6cda86 | [
"BSD-3-Clause"
] | permissive | Dr-Moreb/biotite | 4043eadb607e9ede13ce049ade554546ce58afe0 | c34ccb7a7a7de923bf8a238944dfb7e1e635bb28 | refs/heads/master | 2020-04-01T19:02:08.086093 | 2018-10-10T16:01:45 | 2018-10-10T16:01:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,642 | py | # This source code is part of the Biotite package and is distributed
# under the 3-Clause BSD License. Please see 'LICENSE.rst' for further
# information.
"""
This module contains the main types of the `Structure` subpackage:
`Atom`, `AtomArray` and `AtomArrayStack`.
"""
__author__ = "Patrick Kunzmann"
__all__ = ["A... | [
"patrick.kunzm@gmail.com"
] | patrick.kunzm@gmail.com |
2e1af62b8885e14dace3a366cbc04710bfeed19c | f6703b2afca284bf75e0dbf8f61d77e5251f905c | /euler368.py | f3c8ae9d070a4127d513a10655664dc7fbf55a4c | [] | no_license | rwieckowski/project-euler-python | 2a7aa73670b4684f076ad819bfc464aa0778f96c | be9a455058b20adfd32c814effd8753cc9d39890 | refs/heads/master | 2021-01-10T21:10:44.875335 | 2015-06-23T13:29:58 | 2015-06-23T13:29:58 | 37,920,684 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,540 | py | """
<P><table ><tr> <td>The <b> harmonic series </b> 1</td> <td>
</td><td><table class="frac"> <tr><td>1</td></tr> <tr>
<td class="overline">2</td></tr> </table> </td> <td></td>
<td><table class="frac"> <tr><td>1</td></tr> <tr>
<td class="overline">3</td></tr> <... | [
"rwieckowski@ivmx.pl"
] | rwieckowski@ivmx.pl |
8c59c58d386177253293e9defb8e3d3f496df206 | a44b780fef962bd03cc9e893026841735772ba98 | /mdx_mathjax.py | 40d329075a616657ca1b6bb426be2f5474519def | [] | no_license | liuyug/python-markdown-mathjax | 188a7f2326c443e045085f0803502e9d9e7556fc | 64364fe5a812069c4b2178665b924123f673d862 | refs/heads/master | 2022-11-10T15:59:50.806335 | 2020-06-28T13:19:51 | 2020-06-28T13:19:51 | 115,597,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,514 | py | # -*- coding: utf-8 -*-
# based on mitya57/python-markdown-math
import re
from markdown.inlinepatterns import Pattern
from markdown.extensions import Extension
from markdown.util import AtomicString, etree
class MathJaxExtension(Extension):
asciimath_delimiters = ('\\`',)
latexmath_delimiters = ('$$', '\\('... | [
"liuyug@gmail.com"
] | liuyug@gmail.com |
59a0977cec500d13c1b5beeae68381a31cc3ec4f | 2e786f5371931ef63629fa5799f7249393b73a7d | /ax/models/tests/test_torch_model_utils.py | 5d628205ca98e2cba19ead52706605a038046594 | [
"MIT"
] | permissive | chmodawk/Ax | ad99d3235897ab244adbde236ed4a3fc13d93715 | 0d0676f7e23264f72760c4af6563f9d43c24a27b | refs/heads/master | 2023-07-04T11:10:59.234347 | 2021-07-23T22:46:03 | 2021-07-23T22:47:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,854 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import numpy as np
import torch
from ax.exceptions.model import ModelError
from ax.models.torch.utils import (
_gen... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e41346ff53281b486b297e7b90ae640e21848b9c | f139a99d51cfa01a7892f0ac5bbb022c0cee0664 | /Pythonlogy/draft/Pusher/Drafts/__init__ copy.py | f692548f1c4eeace556546d4d1cb67cad96a60bc | [
"MIT"
] | permissive | Ledoux/ShareYourSystem | 90bb2e6be3088b458348afa37ace68c93c4b6a7a | 3a2ffabf46f1f68b2c4fd80fa6edb07ae85fa3b2 | refs/heads/master | 2021-01-25T12:14:34.118295 | 2017-01-12T14:44:31 | 2017-01-12T14:44:31 | 29,198,670 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,326 | py | # -*- coding: utf-8 -*-
"""
<DefineSource>
@Date : Fri Nov 14 13:20:38 2014 \n
@Author : Erwan Ledoux \n\n
</DefineSource>
Storer instances
"""
#<DefineAugmentation>
import ShareYourSystem as SYS
BaseModuleStr="ShareYourSystem.Objects.Structurer"
DecorationModuleStr="ShareYourSystem.Classors.Classer"
SYS.setSubMo... | [
"erwan.ledoux@ens.fr"
] | erwan.ledoux@ens.fr |
fdc93415a4ac8ec82002da7b8ca0d4cf06b8bba3 | d44d2c48baf004ba12eecb0cbcef4801fcb639d7 | /test_platform/interface_app/views/testtask_api.py | b82b7f3fd022a1926971f713db91615ea47fd469 | [] | no_license | quanbanno2/test_platform | ae16a2be4ab618e1dffe2d71a824065e2a1afc45 | 387e81d7ba0241355849baf2d0b55865dcdc493d | refs/heads/master | 2020-04-18T12:18:17.961529 | 2018-12-11T15:52:58 | 2018-12-11T15:52:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | import json
import requests
from test_platform import common
from interface_app.models import TestTask
from project_app.models import Project, Module
"""
说明:该文件中的接口由前段JS调用,返回JSON格式数据。
"""
# 保存任务
def save_task_data(request):
if request.method == "POST":
name = request.POST.get("task_name", "")
describe = request... | [
"fnngj@126.com"
] | fnngj@126.com |
7da2ba8b0608af7c468919d6a28e886fc49b12b0 | c273353ab076d2ceea7cbadee82b7671c135a99e | /openprocurement/auctions/core/plugins/contracting/v2_1/adapters.py | fa7c21fa71b0a05ed025e3113ada37fea5575c9d | [
"Apache-2.0"
] | permissive | openprocurement/openprocurement.auctions.core | 28a77ae735e7d74674cc96f90b5b76c81defd24f | b4ed171f990e2b27b2547160df7d5ac968a1c477 | refs/heads/master | 2020-12-03T14:16:11.388446 | 2019-03-27T14:18:05 | 2019-03-27T14:18:05 | 67,410,304 | 2 | 12 | Apache-2.0 | 2022-12-20T07:48:37 | 2016-09-05T10:08:32 | Python | UTF-8 | Python | false | false | 3,895 | py | # -*- coding: utf-8 -*-
from openprocurement.api.utils import (
get_now,
error_handler,
validate_with,
)
from openprocurement.auctions.core.plugins.contracting.base.adapters import (
BaseContractManagerAdapter
)
from openprocurement.auctions.core.plugins.contracting.v2_1.validators import (
validat... | [
"leitsius@gmail.com"
] | leitsius@gmail.com |
f1b05883c546439a442e03639c51cfb14c854560 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2858/60731/289107.py | 3449a9c3d31dfe8ebb3550d4ad6e38ffa25bd884 | [] | 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 | 267 | py | n=int(input())
matrix=[]
maxnum=1
for i in range(n):
line=[1]*n
matrix.append(line)
for i in range(1,n):
for j in range(1,n):
matrix[i][j]=matrix[i-1][j]+matrix[i][j-1]
if matrix[i][j]>maxnum:
maxnum=matrix[i][j]
print(maxnum)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
b9a7d399eb139184586628f9392694dd1f29c5bd | 9110f6b1251e002ee7daf6e2c5c1d7ab5fedfcf8 | /python-pscheduler/pscheduler/pscheduler/limitprocessor/identifier/always.py | e736b2ede103135ac9aeb3fd2fcd0b722d6fe2dc | [
"Apache-2.0"
] | permissive | perfsonar/pscheduler | 8a62c076ce8a6e4a51042ed294468616885819ad | f6d04c0455e5be4d490df16ec1acb377f9025d9f | refs/heads/master | 2023-08-11T02:12:15.487628 | 2023-07-24T15:16:00 | 2023-07-24T15:16:00 | 49,273,408 | 53 | 41 | Apache-2.0 | 2023-07-24T14:09:18 | 2016-01-08T13:25:33 | Python | UTF-8 | Python | false | false | 1,053 | py | """
Identifier Class for always
"""
import pscheduler
def data_is_valid(data):
"""Check to see if data is valid for this class. Returns a tuple of
(bool, string) indicating valididty and any error message.
"""
if isinstance(data, dict) and len(data) == 0:
return True, "OK"
return False... | [
"mfeit@internet2.edu"
] | mfeit@internet2.edu |
02da38342395d185c5afd562638b26c3cf53104e | b3d42d863b170f2a952e69c40bea727a92d95730 | /c18/p360_test1861.py | bf854aac85345b7592f33d80be4dc2c018dc2974 | [
"Apache-2.0"
] | permissive | HiAwesome/automate-the-boring-stuff | 6e8a8aa12fc36f9d7c139f1c2ae0510df1904491 | 7355f53bbb0d27755fe350b84be834f3b4f9767a | refs/heads/master | 2023-01-04T14:24:53.624590 | 2020-11-05T06:30:43 | 2020-11-05T06:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | import pyautogui
im = pyautogui.screenshot()
print(im.getpixel((0, 0)))
print(im.getpixel((50, 200)))
print(pyautogui.pixelMatchesColor(50, 200, (240, 240, 240, 255)))
print(pyautogui.pixelMatchesColor(50, 200, (100, 100, 240, 255)))
"""
(205, 227, 242, 255)
(240, 240, 240, 255)
True
False
"""
| [
"moqimoqidea@gmail.com"
] | moqimoqidea@gmail.com |
6b115aa1b3f87032fb3aadd39820aed4ad5cfea2 | e4ab2d1102019e02a6d8fb67657b84a7b3b2d55a | /TextClassificationV2/data_loader/__init__.py | a6b881e6bb2d8eea25fcc9e727d72a57d403b825 | [] | no_license | githubpgq/EmotionNet_CVPR2020 | 0c07950e1bc8029a6c78e34392e214b36266d1ea | 7822fdf0a4ac6b6aadb5838d50529cea0cb60e49 | refs/heads/master | 2023-05-26T05:33:42.008577 | 2021-06-09T00:40:00 | 2021-06-09T00:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | # Copyright (c) 2019 Zijun Wei.
# Licensed under the MIT License.
# Author: Zijun Wei
# Usage(TODO):
# Email: hzwzijun@gmail.com
# Created: 10/Mar/2019 22:08 | [
"zijwei@cs.stonybrook.edu"
] | zijwei@cs.stonybrook.edu |
4ae3f6aebf4108946bb2da323938ffe44ad87587 | 462f7429794d9312c4b0c2b5e54a9ee9a09b7659 | /opts.py | 2708727517ccca93b1adef471bfa8f9abd304610 | [
"MIT"
] | permissive | xiaojino/self-critical.pytorch | f7978e3b5f1af0ebb7dbe4a536e50239d0bb9e67 | b307844e572981f6750df873ec665edee4539b83 | refs/heads/master | 2020-05-13T22:09:07.526421 | 2019-04-16T00:56:04 | 2019-04-16T00:56:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,595 | py | import argparse
def parse_opt():
parser = argparse.ArgumentParser()
# Data input settings
parser.add_argument('--input_json', type=str, default='data/coco.json',
help='path to the json file containing additional info and vocab')
parser.add_argument('--input_fc_dir', type=str, defaul... | [
"rluo@ttic.edu"
] | rluo@ttic.edu |
886f906a06f9dbd4e66a1aee5ffeef051b62b8d2 | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /tests/components/yalexs_ble/test_config_flow.py | a0b8dfb68623ff51e1ae89daeca4af012a1a32b2 | [
"Apache-2.0"
] | permissive | konnected-io/home-assistant | 037f12c87bb79e19220192eb918e49db1b1a8b3e | 2e65b77b2b5c17919939481f327963abdfdc53f0 | refs/heads/dev | 2023-05-11T08:57:41.891518 | 2023-05-07T20:03:37 | 2023-05-07T20:03:37 | 109,931,626 | 24 | 10 | Apache-2.0 | 2023-02-22T06:24:01 | 2017-11-08T05:27:21 | Python | UTF-8 | Python | false | false | 35,390 | py | """Test the Yale Access Bluetooth config flow."""
import asyncio
from unittest.mock import patch
from bleak import BleakError
import pytest
from yalexs_ble import AuthError
from homeassistant import config_entries
from homeassistant.components.yalexs_ble.const import (
CONF_KEY,
CONF_LOCAL_NAME,
CONF_SLOT... | [
"noreply@github.com"
] | konnected-io.noreply@github.com |
ddb950911a806aadb9b19d96d5a57e1df4938625 | 124081e8c2e25b44e678f85fbd98226e9c6ccc85 | /ADDENDUM. Think Python/11 Dictionaries/11-3.py | bbdfee793d1445eba078d7663487dbddcf0e5176 | [] | no_license | paalso/learning_with_python | 934266bdeb282304ab2a80e52137f53a0b42e68f | ed2b43c819690fcbfabf5c6d6a6f74a83cd2b48d | refs/heads/master | 2021-11-22T17:17:14.931265 | 2021-09-13T13:52:49 | 2021-09-13T13:52:49 | 192,216,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | '''
Exercise 11.3. Memoize the Ackermann function from Exercise 6.2 and see if
memoization makes it possible to evaluate the function with bigger arguments.
A(m, n) =
n + 1 if m = 0
A(m − 1, 1) if m > 0 and n = 0
A(m − 1, A(m, n − 1)) if m > 0 and n > 0.
Hint: no. Solution: http://thinkpython2.co... | [
"40a.pvl@gmail.com"
] | 40a.pvl@gmail.com |
4499251ab7233cfc6cc2603a29b353c392093eb7 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/hackerrank/HackerrankPractice-master/Python/03. Strings/002. String Split and Join.py | 262f955e95b7d7fbc4a4217c707190eb6031f3f6 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 149 | py | # Problem: https://www.hackerrank.com/challenges/python-string-split-and-join/problem
# Score: 10
___ split_and_join(line
r.. "-".j..(line.s..
| [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
9aeb6d11c4d5d37cb0436ff033b822ea11fa14de | b174d505ceb7a58b6fbb70f3891ca815b56b5f2a | /textformer/models/decoders/self_attention.py | 36a843e7ad0ae7358e36943a005751320e330b48 | [
"Apache-2.0"
] | permissive | gugarosa/textformer | 5a8b55b68853542e59729f4f4138a71a52c2a3f8 | cccc670d48995fa0bfbdf9fc8013d13a90ea5e84 | refs/heads/master | 2021-12-04T11:25:51.499222 | 2021-11-08T19:24:52 | 2021-11-08T19:24:52 | 241,983,945 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,541 | py | """Self-Attention decoder.
"""
import math
import torch
from torch import nn
import textformer.utils.logging as l
from textformer.core import Decoder
from textformer.models.layers import MultiHeadAttention, PositionWideForward
logger = l.get_logger(__name__)
class SelfAttentionLayer(nn.Module):
"""A SelfAtten... | [
"gth.rosa@uol.com.br"
] | gth.rosa@uol.com.br |
da842df1063eea537f3e5caad9c08c1e258abf21 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03588/s406588537.py | 29d2dd0ea62515fbeb199a6f95e30de44b18cea6 | [] | 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 | 122 | py | n = int(input())
a = [[]]*n
for i in range(n):
a[i] = list(map(int, input().split()))
a.sort()
print(a[-1][0]+a[-1][1]) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c5eb62099d20024ffdda07e4751b3de1e3ee5a3e | 3c782925ac5ff85ff25232a888a6f42ac37abbad | /pisense/exc.py | 064ba29388049dcb9af8f801f4f8551cd9c47457 | [
"BSD-3-Clause"
] | permissive | waveform80/pisense | 196fb1407b0c988a9cb82179ece8cc0d549faac5 | 7e60fdac25d36ae2a5e16242907823230f4d4948 | refs/heads/master | 2023-08-14T19:52:00.311346 | 2019-10-27T18:33:22 | 2020-05-09T12:29:10 | 43,305,519 | 7 | 3 | BSD-3-Clause | 2023-07-26T18:44:22 | 2015-09-28T14:21:48 | Python | UTF-8 | Python | false | false | 2,283 | py | # vim: set et sw=4 sts=4 fileencoding=utf-8:
#
# Alternative API for the Sense HAT
# Copyright (c) 2016-2018 Dave Jones <dave@waveform.org.uk>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of... | [
"dave@waveform.org.uk"
] | dave@waveform.org.uk |
bc270fcacfa001338214d84f6da791396787a84a | 8dfd020e6b63e7e768d133850848ee463ecf3760 | /home/migrations/0011_auto_20200310_2351.py | 7e90bb180573b3a75cccc11b75efa0d2be587a1a | [] | no_license | vo0doO/stepchangeru | 137ed124c5b4ea3c3443c85637c99cba7d769048 | 0864a14abcdf9cbbc3510767a12118879d9395ec | refs/heads/master | 2022-12-14T19:17:47.275562 | 2020-03-18T00:19:13 | 2020-03-18T00:19:13 | 243,369,272 | 0 | 0 | null | 2022-11-22T05:07:46 | 2020-02-26T21:26:43 | CSS | UTF-8 | Python | false | false | 5,779 | py | # Generated by Django 3.0.3 on 2020-03-10 20:51
from django.db import migrations, models
import django.db.models.deletion
import wagtail.core.blocks
import wagtail.core.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('home', '0010_auto_20200310_2248'),
]
... | [
"kirsanov.bvt@gmail.com"
] | kirsanov.bvt@gmail.com |
85c3ce8e7b3bdb38430f2eb8770af9d8b762808d | d0e268862f359bbeec426b00a0c45788f6fb0b4e | /lesson43-nn_Module/main.py | ebe2c96aff77a04ea41874d607f0167f84da9986 | [] | no_license | jpegbert/PyTorch | f87c2e38572c51842785de5ed1b39bb641402ac6 | 482421c76a093312ffeff7e5af4ecd3ab0cdcf30 | refs/heads/master | 2023-08-27T03:56:26.883297 | 2021-11-08T06:03:30 | 2021-11-08T06:03:30 | 326,677,679 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,037 | py | import torch
from torch import nn
class MyLinear(nn.Module):
def __init__(self, inp, outp):
super(MyLinear, self).__init__()
# requires_grad = True
self.w = nn.Parameter(torch.randn(outp, inp))
self.b = nn.Parameter(torch.randn(outp))
def forward(self, x):
x = x @ sel... | [
"jiangpeng.jiang@zhaopin.com.cn"
] | jiangpeng.jiang@zhaopin.com.cn |
895605a48b66905af73eaa0bbad53d93ea900231 | edcc2f90e91cc781ed6e305daa5f6cb539533897 | /ncc/criterions/summarization/__init__.py | 5e3f72cbf583273c1356aa0077426d0c513b50ec | [
"MIT"
] | permissive | keiouok/naturalcc | d364639700d137720242a32b74b3ac48d0e94b76 | 7bab9a97331fafac1235fb32de829ff8d572320f | refs/heads/master | 2023-06-03T10:38:42.481107 | 2021-06-20T00:52:52 | 2021-06-20T00:52:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from .be_cross_entropy import BECrossEntropyCriterion
from .bos_cross_entropy import BosCrossEntropyCriterion
from .codenn_cross_entropy import CodeNNCrossEntropyCriterion
from .neural_transformer_loss import NeuralTransformerCriterion
| [
"yanghece96@gmail.com"
] | yanghece96@gmail.com |
4904a708198e47344e6c6de7422dc9403838d2f6 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/3595.py | 856a4d3a40e8ff3d544e2835d6848396bdfe4f8b | [] | 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 | 889 | py |
def check_tidy(num):
s = str(num)
retVal = True
if len(s) > 0:
for i in range(1,len(s)):
prev = s[i-1]
curr = s[i]
if int(curr) < int (prev):
retVal = False
break;
return retVal
def check_large_tidy(num):
s = str(num)
st= s
n = len(s)
pos = n-1
retVal = num
if check_tidy(num):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
0399c665c9dc0512b5e41cdcd67caf70adc75c2b | 440c728feb164f2685ad62304919607289c15a43 | /flask-blog/app/app.py | 3b9218713d46bc5fb365d9cbdb7ae022b62c494e | [] | no_license | VToropov1337/Scripts-examples | d902d90b740f44bebd64854f0f7dc4ccf3f51db7 | d87f2444276bb51cd0dc1fa50ee968000e77b668 | refs/heads/master | 2021-05-25T09:35:14.030487 | 2020-08-06T12:11:10 | 2020-08-06T12:11:10 | 126,997,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | from flask import Flask
from config import Configuration
from flask_sqlalchemy import SQLAlchemy
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
app = Flask(__name__)
app.config.from_object(Configuration)
db = SQLAlchemy(app)
migrate = Migrate(app, db)
manager = Manager(app)
manag... | [
"vladimirtoropov87@gmail.com"
] | vladimirtoropov87@gmail.com |
28726ebfcf96d9b27861a81dffc4ac29f9a6b2ec | 2ea33df726a1a3867ad7fecfc334e8dfb15c4458 | /packages/herwigpp/package.py | 4966dceff4c9613fbcd8c1ea4c7a97d6e495c155 | [] | no_license | gartung/cmssw-spack | fe0ad7997777cfe58de273a5cd2e2aa368d1a1e2 | 37795d92596303197710fb043723c03775339220 | refs/heads/master | 2023-01-22T11:40:03.835528 | 2021-08-04T15:03:34 | 2021-08-04T15:03:34 | 78,494,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | py | from spack import *
import os,sys
class Herwigpp(Package):
url = "https://www.hepforge.org/archive/herwig/Herwig-7.1.4.tar.bz2"
version('7.1.4', sha256='bdd55ac0dcc9e96d2f64fe6eaa4d7df38709e9fc3446fe16eae3200cbe0c99ab',
url="https://www.hepforge.org/archive/herwig/Herwig-7.1.4.tar.bz2")
... | [
"gartung@fnal.gov"
] | gartung@fnal.gov |
0ce5436bf76b0e3884c68b2a556bb787589ce460 | b8630509b97621ddc3bbeaef8d1cd54ff77b3dde | /myvenv/lib/python3.5/site-packages/django/forms/boundfield.py | d3621a305f7d40bf968c3b0d0130ff2e46cffe08 | [] | no_license | ChibaUnppluged/BandMaker-ogi | c4080204d63495fed42e26306663e06df8ffb373 | 68a4a6eceb3f385b97afe8741fc538216800f893 | refs/heads/master | 2021-01-01T04:29:28.436614 | 2017-10-20T16:30:00 | 2017-10-20T16:30:00 | 97,184,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,188 | py | # coding:utf-8
from __future__ import unicode_literals
import datetime
import warnings
from django.forms.utils import flatatt, pretty_name
from django.forms.widgets import Textarea, TextInput
from django.utils import six
from django.utils.deprecation import RemovedInDjango21Warning
from django.utils.encoding import f... | [
"pochi.0226.ogi@gmail.com"
] | pochi.0226.ogi@gmail.com |
6fd151351d62752612d923c7ec6924e738a68cc5 | 6b58f55ce13c230818f1607de7dac27c2144eae6 | /parser-whois.py | e36d67b70eedc43822a718b6b06ee7c938734766 | [] | no_license | AzureCloudMonk/whois-full-txt-search | 6cd204bcd206107d665abbf70fe47c72d8498208 | 0c0d86876f631b9dd808aa49a861ad1a2fe44a93 | refs/heads/master | 2020-04-03T11:02:25.104846 | 2018-03-22T11:34:26 | 2018-03-22T11:34:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,602 | py | # -*- coding: utf-8 -*-
import urllib
import urllib2
import json
import xlwt
import xlrd
import sys, getopt
#import pprint
import os
def PrintHelp():
msg = "Usage: python parser-whois.py <file> \r\n"
msg += "This script performs full text search in WHOIS data of RIPE database.\r\n"
msg += "Please, install xlwt and ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
897c22b3829a2d324ffbb7af6e9d0ed3e7add327 | f848a464dd213ac8f12bcaa3daa03ce42c97f727 | /nitrogen/view/mako.py | e86dc1c390df9d8d223785790ef9e8a73ff35b77 | [
"BSD-3-Clause"
] | permissive | mikeboers/Nitrogen | c56fdf3e06a8e12bbc44a6470a550a80ef360061 | 1af2883f59f13a6752b3527bed8574c300f2395a | refs/heads/master | 2023-08-16T21:12:23.495338 | 2013-01-28T17:27:28 | 2013-01-28T17:27:28 | 515,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,952 | py | from __future__ import absolute_import
import json
import pprint
import random
import re
import datetime
import collections
import threading
from mako.lookup import TemplateLookup as BaseTemplateLookup
from mako.exceptions import TopLevelLookupException
from mako.template import Template
from mako.filters import xml... | [
"github@mikeboers.com"
] | github@mikeboers.com |
761da427e2c27c37dd7c237c2d679e785f7d420e | 43ec1c06825a39c31b976906f7bded21c19b6019 | /google/cloud/talent_v4beta1/types/profile_service.py | b523d1b7f6c7d8d1aadb952fd53801ef22ab749e | [
"Apache-2.0"
] | permissive | renovate-bot/python-talent | b70b036c9d5a6b2887ef428fca853940df067c4b | 0413f5114256b8a8c2c157b33aa0cbc1eb9feca5 | refs/heads/master | 2023-06-07T05:27:59.879356 | 2021-08-30T16:12:17 | 2021-08-30T16:12:17 | 238,039,237 | 0 | 0 | Apache-2.0 | 2020-02-03T19:01:22 | 2020-02-03T19:01:22 | null | UTF-8 | Python | false | false | 22,650 | 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... | [
"noreply@github.com"
] | renovate-bot.noreply@github.com |
a12236c2d0a2ac171daa2541ef5d6f8acb154201 | f5d17f536bd8617ac3d56c7d5aca4002444b481d | /requests3/toolbelt/threaded/__init__.py | ffaf770ad4de9e3ce9902d744eef97c5339c7186 | [
"Apache-2.0"
] | permissive | cclauss/requests3 | a2df822642b4ecbbf9147b1df5e804e4b3d7ca35 | 260cd50aec1bd52b58968c3dfd0d5e850d563ac2 | refs/heads/master | 2020-05-15T18:47:10.559821 | 2019-04-20T17:30:15 | 2019-04-20T17:30:15 | 182,370,659 | 0 | 0 | NOASSERTION | 2019-04-20T06:41:56 | 2019-04-20T06:41:55 | null | UTF-8 | Python | false | false | 3,213 | py | """
This module provides the API for ``requests_toolbelt.threaded``.
The module provides a clean and simple API for making requests via a thread
pool. The thread pool will use sessions for increased performance.
A simple use-case is:
.. code-block:: python
from requests_toolbelt import threaded
urls_to_get... | [
"me@kennethreitz.org"
] | me@kennethreitz.org |
fa218f52a681946de8b9dcf96918954538eff6c9 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/f16ec4e64c37ec8a1df072812327e40fde06f199-<_requires_modification>-bug.py | 38262ea64d34398658c8fe7e22cba17e59b433d0 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | def _requires_modification(self):
'Check if cluster requires (nondestructive) modification'
modifiable_data = {
'NumCacheNodes': self.num_nodes,
'EngineVersion': self.cache_engine_version,
}
for (key, value) in modifiable_data.items():
if ((value is not None) and (self.data[key] ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
56ece63f78dd152832c53a387cfb483206034ea8 | 44a2741832c8ca67c8e42c17a82dbe23a283428d | /cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/akPu3PFJetSequence_pPb_jec_cff.py | bc81e2bbddc931157c8327a6a12da5bf1bc3a392 | [] | no_license | yenjie/HIGenerator | 9ff00b3f98b245f375fbd1b565560fba50749344 | 28622c10395af795b2b5b1fecf42e9f6d4e26f2a | refs/heads/master | 2021-01-19T01:59:57.508354 | 2016-06-01T08:06:07 | 2016-06-01T08:06:07 | 22,097,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,521 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
akPu3PFmatch = patJetGenJetMatch.clone(
src = cms.InputTag("akPu3PFJets"),
matched = cms.InputTag("ak3HiGenJetsCleaned")
)
akPu3PFpar... | [
"dgulhan@cern.ch"
] | dgulhan@cern.ch |
b1576f60f222e6e8798b137a4c50d1f8182dba3d | 0f1c90e74fab5a99c136d0318720afbddd8ee301 | /Pyqt4 Test/examples/tetris.py | 5c42a79818a003f737dd811abf877987aea97358 | [] | no_license | jame2661/Test | beb523a7f4250d13445b156dfd5dcdc6d503769a | 65864831660be006a0ab9f4aa96b0776760094ea | refs/heads/master | 2021-05-31T17:34:52.509609 | 2016-02-01T09:41:42 | 2016-02-01T09:41:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,557 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
ZetCode PyQt4 tutorial
This is a Tetris game clone.
author: Jan Bodnar
website: zetcode.com
last edited: October 2013
"""
import sys, random
from PyQt4 import QtCore, QtGui
class Tetris(QtGui.QMainWindow):
def __init__(self):
sup... | [
"vuquangtam1994@gmail.com"
] | vuquangtam1994@gmail.com |
1b9bbea102c747cc8c7a95e3269ea3443d68280b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_299/ch63_2020_04_21_00_39_35_352697.py | 87399ee1557b06cb03d7e4c70b607e7620209c29 | [] | 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 | 183 | py | def nome_usuario(string):
i=0
for posicao,caractere in enumerate(string):
if caractere == '@':
i=posicao
nome = string[:i]
return nome
| [
"you@example.com"
] | you@example.com |
8e741763220a8da256e418b2d489ff353056f72b | 56ca0c81e6f8f984737f57c43ad8d44a84f0e6cf | /src/bpp/models/struktura.py | e8d554dff705c1ae9358598c15fcbc67239ffa2e | [
"MIT"
] | permissive | iplweb/bpp | c40f64c78c0da9f21c1bd5cf35d56274a491f840 | a3d36a8d76733a479e6b580ba6ea57034574e14a | refs/heads/dev | 2023-08-09T22:10:49.509079 | 2023-07-25T04:55:54 | 2023-07-25T04:55:54 | 87,017,024 | 2 | 0 | NOASSERTION | 2023-03-04T04:02:36 | 2017-04-02T21:22:20 | Python | UTF-8 | Python | false | false | 72 | py | from .uczelnia import *
from .jednostka import *
from .wydzial import *
| [
"michal.dtz@gmail.com"
] | michal.dtz@gmail.com |
2cc6da3242457ca12242d2a141050290498d0ccf | 609d5408f302c9188b723998762c2c1f7b883af9 | /.closet/jython.configurator.efr32/1.0.0.201606231656-435/host_py_rm_studio_internal/host_py_rm_studio_internal_efr32xg1xfull/revA2/GPCRC.py | 494656b2521fb254c58a629182e2ec997e911d4f | [] | no_license | acvilla/Sundial-Beta | 6ea4fd44cbf7c2df8100128aff5c39b6faf24a82 | 9f84e3b5a1397998dfea5287949fa5b1f4c209a6 | refs/heads/master | 2021-01-15T15:36:19.394640 | 2016-08-31T20:15:16 | 2016-08-31T20:15:16 | 63,294,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,510 | py |
__all__ = [ 'RM_Peripheral_GPCRC' ]
from static import Base_RM_Peripheral
from GPCRC_register import *
class RM_Peripheral_GPCRC(Base_RM_Peripheral):
def __init__(self, rmio, label):
self.__dict__['zz_frozen'] = False
super(RM_Peripheral_GPCRC, self).__init__(rmio, label,
0x4001C000, ... | [
"acvilla@bu.edu"
] | acvilla@bu.edu |
fda0e6b7361c1f802eddb48fa924d4ddef22a29e | 77e8b7bc211624687eb61fdb071020642b2c0080 | /leetcode/63/q33.py | 44deabfa2fe8b797f2ba850b6099072357e18db5 | [] | no_license | wherby/hackerrank | fab46ea208042ce8055c2755545896bf69f88895 | 84345f56690ea6b1d5db181b12d2a2669007456c | refs/heads/master | 2020-09-26T23:53:06.841052 | 2019-09-15T12:11:43 | 2019-09-15T12:11:43 | 67,225,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81,348 | py | #Step-1: store position of all 1s for every row
#Step-2: take intersection of every pair of rows (inter). Number of rectangles possible with end points in those rows equals interC2= inter*(inter-1)/2
class Solution(object):
def countCornerRectangles(self, grid):
if len(grid)==1 or len(grid[0])==1:
... | [
"187225577@qq.com"
] | 187225577@qq.com |
87e6f075784d491876298da35462abfaaee53037 | 85d3e4f8ab9bf3cc46dc6c8a0554fa087e9e8dc3 | /user/urls.py | a40a1172a0e4ed598402733c32cff12ef5ff9a3a | [] | no_license | good-reads/backend | a3e0d54bba6808bfdcaf6f6f97e2708abe088ffd | 15bbe6f5e780ef4d6e041f5a820df1944030a026 | refs/heads/master | 2022-12-21T11:00:15.063157 | 2020-09-12T04:57:15 | 2020-09-12T04:57:15 | 244,574,969 | 0 | 0 | null | 2022-12-08T10:08:31 | 2020-03-03T07:56:54 | JavaScript | UTF-8 | Python | false | false | 476 | py | from django.urls import path
from .views import *
urlpatterns = [
path("auth/register/", register_account),
path("auth/login/", login_account),
path("auth/account/get/", get_or_update_account),
path("auth/account/update/", get_or_update_account),
path("list/get/", get_or_create_list),
path("l... | [
"rlawndhks217@gmail.com"
] | rlawndhks217@gmail.com |
6ccf47844e6248a94b54836580598386ddc77801 | 25ebc03b92df764ff0a6c70c14c2848a49fe1b0b | /daily/20190320/example_run_in_executor/01use_process_pool_executor.py | d42dc7189954dfe1d0f5b068f27aeac042e6d78f | [] | no_license | podhmo/individual-sandbox | 18db414fafd061568d0d5e993b8f8069867dfcfb | cafee43b4cf51a321f4e2c3f9949ac53eece4b15 | refs/heads/master | 2023-07-23T07:06:57.944539 | 2023-07-09T11:45:53 | 2023-07-09T11:45:53 | 61,940,197 | 6 | 0 | null | 2022-10-19T05:01:17 | 2016-06-25T11:27:04 | Python | UTF-8 | Python | false | false | 793 | py | import logging
import asyncio
import time
from concurrent.futures import ProcessPoolExecutor
from functools import partial
from mysleep import mysleep
logger = logging.getLogger(__name__)
async def run():
loop = asyncio.get_event_loop()
st = time.time()
logger.info("**start**")
executor = ProcessPool... | [
"ababjam61+github@gmail.com"
] | ababjam61+github@gmail.com |
bf8489e7aa2b868830ce8a42ec4737961aed1a5e | 93e9bbcdd981a6ec08644e76ee914e42709579af | /co_linkedin/715_Range_Module.py | eb156b597d57e226229fd4298e19fb595750b5d3 | [] | no_license | vsdrun/lc_public | 57aa418a8349629494782f1a009c1a8751ffe81d | 6350568d16b0f8c49a020f055bb6d72e2705ea56 | refs/heads/master | 2020-05-31T11:23:28.448602 | 2019-10-02T21:00:57 | 2019-10-02T21:00:57 | 190,259,739 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
https://leetcode.com/problems/range-module/
A Range Module is a module that tracks ranges of numbers.
Your task is to design and implement the following interfaces in an efficient
manner.
addRange(int left, int right) Adds the half-open interval [left, right),
trac... | [
"vsdmars@gmail.com"
] | vsdmars@gmail.com |
79756b98c41bd61a4f3ff98813d32c67e03ee669 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /XQwPPHE6ZSu4Er9ht_6.py | d632815d129bf175d426d40b5582529ebc0e1d4d | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,158 | py | """
A number is Economical if the quantity of digits of its prime factorization
(including exponents greater than 1) is equal to or lower than the digit
quantity of the number itself.
Given an integer `n`, implement a function that returns a string:
* `"Equidigital"` if the quantity of digits of the prime factor... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
f2bd762e35289ab1e3c113a4d4c28ca4c642d4d4 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Skimage_numpy/source/scipy/special/_testutils.py | b693a61c79a4e08c7e451b423464a887dc890cdb | [
"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 | 13,697 | py | from __future__ import division, print_function, absolute_import
import os
import warnings
from distutils.version import LooseVersion
import numpy as np
from numpy.testing import dec, assert_
from numpy.testing.noseclasses import KnownFailureTest
import scipy.special as sc
__all__ = ['with_special_errors', 'assert... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
582b4efe4f9f99221ad005d2928da56c33037c75 | e98ee3f0afc9fad2b6c48c980080d8ab07a08ed6 | /pytorch3d/datasets/r2n2/utils.py | 1ef00fdfbd92b62f9493c73a1931c7a5e10d7e11 | [
"BSD-3-Clause"
] | permissive | a-nau/pytorch3d | d131277925e9ef641344ba797681dc85d424ce61 | b0a83a291ffe11be5a553b7fd00cc5534b5f3c0f | refs/heads/main | 2023-07-15T15:32:34.943406 | 2021-08-30T09:13:18 | 2021-08-30T09:13:18 | 400,582,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,555 | py | # Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
import math
from typing import Dict, List
import numpy as np
import torch
from pytorch3d.common.types import Dev... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
2d3ab4a278336b7e9b68b48e325e47a17f2197d7 | 5963c12367490ffc01c9905c028d1d5480078dec | /homeassistant/components/hue/sensor_device.py | 8670f0853a3d1abca871c36c49487cb7e98fd4b2 | [
"Apache-2.0"
] | permissive | BenWoodford/home-assistant | eb03f73165d11935e8d6a9756272014267d7d66a | 2fee32fce03bc49e86cf2e7b741a15621a97cce5 | refs/heads/dev | 2023-03-05T06:13:30.354545 | 2021-07-18T09:51:53 | 2021-07-18T09:51:53 | 117,122,037 | 11 | 6 | Apache-2.0 | 2023-02-22T06:16:51 | 2018-01-11T16:10:19 | Python | UTF-8 | Python | false | false | 2,101 | py | """Support for the Philips Hue sensor devices."""
from homeassistant.helpers import entity
from .const import DOMAIN as HUE_DOMAIN
class GenericHueDevice(entity.Entity):
"""Representation of a Hue device."""
def __init__(self, sensor, name, bridge, primary_sensor=None):
"""Initialize the sensor."""
... | [
"noreply@github.com"
] | BenWoodford.noreply@github.com |
fdea41609301002c40764786612707234460e31d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03078/s657471647.py | d4b33007b37c90094aa0fb6dad2e349497ba6aac | [] | 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 | 498 | py | X,Y,Z,K = map(int,input().split())
A = sorted(list(map(int,input().split())),reverse=1)
B = sorted(list(map(int,input().split())),reverse=1)
C = sorted(list(map(int,input().split())),reverse=1)
num= []
for xi in range(1,X+1):
for yi in range(1,Y+1):
for zi in range(1,K//(xi*yi)+1):
if xi*yi*zi <... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
370213a1ac062ca81b3bb68842768eef2cf6dc7e | 9197436bb336477e7ebacc0c078f8114b25087ef | /manage.py | bc8950b4c3f2d92ad17fcc17b472b1c3e5df4121 | [] | no_license | CryceTruly/yte | d20fe5e54b44fb71aa7f109325f5bd03d8c5ddf1 | 05a762000d9bc3bb17bdc40ec1c2c125a00be7d3 | refs/heads/master | 2022-10-02T18:02:24.164779 | 2020-05-29T14:27:47 | 2020-05-29T14:29:47 | 266,594,838 | 1 | 0 | null | 2020-06-01T20:03:03 | 2020-05-24T17:51:41 | Python | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'expensesapi.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Im... | [
"crycetruly@gmail.com"
] | crycetruly@gmail.com |
2bb5935ab809ef7e0defaba740f063b3e4d857aa | 4fa3cbe2fd0331c8b4e441ff7fca3cbf178f146e | /lectures/code/functions_radius0.py | 58409df5a3a905cea3ecba3cec51191696a03f29 | [
"MIT"
] | permissive | naskoch/python_course | ee909243b5be730694b0f8a1a9f9e8722235e625 | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | refs/heads/master | 2020-04-03T09:52:45.858591 | 2016-09-26T16:44:20 | 2016-09-26T16:44:20 | 69,268,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | radius = 2.5
circumference = math.pi * radius | [
"naskoch@stanford.edu"
] | naskoch@stanford.edu |
1f0dc19c9f612faf00cfc27658d2503cd705c253 | 4c8e35f121a1c156593a9482ffa6367997b2ed8e | /ingenico/connect/sdk/pooled_connection.py | 5c9e47692a2a609b43ff996771915bb8338f4ce8 | [
"MIT"
] | permissive | Ingenico-ePayments/connect-sdk-python3 | 693f8a9e721083b3e6a65b62d44cb4847cc4fe9b | de656ed2b487dac07fffc5fbace1c272992e627a | refs/heads/master | 2023-08-20T18:01:40.000985 | 2023-08-11T07:42:05 | 2023-08-11T07:42:05 | 69,236,688 | 13 | 14 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | from .connection import Connection
# noinspection PyAbstractClass
class PooledConnection(Connection):
"""
Represents a pooled connection to the Ingenico ePayments platform server.
Instead of setting up a new HTTP connection for each request, this
connection uses a pool of HTTP connections.
"""
... | [
"jenkins@isaac.nl"
] | jenkins@isaac.nl |
7821ae0c60f4cd310466897d61f9daf898afcdea | e36225e61d95adfabfd4ac3111ec7631d9efadb7 | /problems/EE/auto/problem19_EE.py | 3da70772b6083bb7a06c12b54512f54dd1a455ec | [
"BSD-3-Clause"
] | permissive | sunandita/ICAPS_Summer_School_RAE_2020 | d2ab6be94ac508e227624040283e8cc6a37651f1 | a496b62185bcfdd2c76eb7986ae99cfa85708d28 | refs/heads/main | 2023-01-01T02:06:40.848068 | 2020-10-15T17:25:01 | 2020-10-15T17:25:01 | 301,263,711 | 5 | 2 | BSD-3-Clause | 2020-10-15T17:25:03 | 2020-10-05T01:24:08 | Python | UTF-8 | Python | false | false | 1,752 | py | __author__ = 'patras'
from domain_exploreEnv import *
from timer import DURATION
from state import state, rv
DURATION.TIME = {
'survey': 5,
'monitor': 5,
'screen': 5,
'sample': 5,
'process': 5,
'fly': 3,
'deposit': 1,
'transferData': 1,
'take': 2,
'put': 2,
'move': 10,
'... | [
"sunandita.patra@gmail.com"
] | sunandita.patra@gmail.com |
8586e5efacb7c154845c4de3f2b886d1518eb8ed | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/ebf.py | ef6ab5065ea289776c0e25dee0bfd57605ee816f | [] | 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 |
dda483bdda13c15583aa65f7e5bb87424213eceb | 8d699620655441634266c16d23594d8271a6d01e | /rpg/main.py | 545aa7f4fb92697330c0064528660ca142195313 | [
"MIT"
] | permissive | webalorn/unicode_rpg | 10b1668aea59d5bf4dfc03fb1e0b834c263dc715 | 91897e6307609c79d7c5b0ca1b639c622d85e6a2 | refs/heads/master | 2023-01-24T05:26:47.433032 | 2020-02-08T09:55:56 | 2020-02-08T09:55:56 | 233,220,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,190 | py | from engine import *
import engine.consts as C
import argparse, textwrap
PROG_DESCRIPTION = """{}, version {}
The unicode RPG is game designed to work in a command-line environment, made with python3.
========== GENERAL INFORMATIONS ==========
This is the command to start the unicode RPG. To make sure it works prope... | [
"webalorn@gmail.com"
] | webalorn@gmail.com |
67638a331c244e09cbe44782b3b679ab51c12816 | 89dc3083cef620d84219fbeb12f715c312617b65 | /mod_pydoc/pydoc.py | 5bd062e716b6f101d933be99725f7997b7f9b7a1 | [
"MIT"
] | permissive | aroberge/mod_pydoc | c5ef5da90bb0ec3fe83f2bc3574bf4cde28e9681 | 3046f8eb986cc0f25e3c5ff58be84d76c6e27448 | refs/heads/master | 2021-01-13T17:04:41.259754 | 2019-07-24T11:03:43 | 2019-07-24T11:03:43 | 29,953,178 | 11 | 7 | null | 2017-03-30T09:33:12 | 2015-01-28T05:58:13 | Python | UTF-8 | Python | false | false | 100,612 | py | #!/usr/bin/env python3
"""Generate Python documentation in HTML or text for interactive use.
At the Python interactive prompt, calling help(thing) on a Python object
documents the object, and calling help() starts up an interactive
help session.
Or, at the shell command line outside of Python:
Run "pydoc <name>" to ... | [
"andre.roberge@gmail.com"
] | andre.roberge@gmail.com |
a7d541c3c1e1de0b70e68dc9c7a59588b5caf374 | accbc6c34136702831ab8cf0869ccb3da82c041c | /spinoffs/inference_gym/targets/model_test.py | b0601cde91cca7f985fc772fcc07c9390dd87654 | [
"Apache-2.0"
] | permissive | KonstantinKlepikov/probability | a4290375708a3e57ccfb6a719bba3a286bbad1b7 | 0cc6c5febf3b10ece5bb2b9877bd695137a420ea | refs/heads/master | 2022-12-06T16:14:03.446482 | 2020-08-28T19:17:04 | 2020-08-28T19:18:28 | 291,145,141 | 1 | 0 | Apache-2.0 | 2020-08-28T21:01:16 | 2020-08-28T21:01:16 | null | UTF-8 | Python | false | false | 3,448 | py | # Lint as: python3
# Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
636fb88e740ec11bc7572ce4ff8421d23acc68ce | 747f759311d404af31c0f80029e88098193f6269 | /addons/comparison/website/erpComparator/erpcomparator/static/planet_comparison/planet/timeoutsocket.py | e59a777e7a8ccd8f7f31998a2c088bd96fc0672a | [] | no_license | sgeerish/sirr_production | 9b0d0f7804a928c0c582ddb4ccb7fcc084469a18 | 1081f3a5ff8864a31b2dcd89406fac076a908e78 | refs/heads/master | 2020-05-19T07:21:37.047958 | 2013-09-15T13:03:36 | 2013-09-15T13:03:36 | 9,648,444 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | /home/openerp/production/extra-addons/comparison/website/erpComparator/erpcomparator/static/planet_comparison/planet/timeoutsocket.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
ee4f074bbe71ce23f813a00ffba3ab4208d5d0e0 | ec59f44931527284f872de0f313499046cbb602e | /source-builder/sb/darwin.py | d79cf47116b2bbcd0dcafe95fb6f1086084d65cf | [
"ISC"
] | permissive | KinseyMoore/rtems-source-builder | 2c4e8d8f5677eafc4a26010763ea0f288cf40bd2 | 9c825f0b9a4eff4f87d22e12d3c94072712c3918 | refs/heads/master | 2020-04-30T09:34:56.236727 | 2019-03-14T18:19:28 | 2019-03-14T18:44:36 | 176,752,287 | 0 | 0 | NOASSERTION | 2019-03-20T14:30:36 | 2019-03-20T14:30:36 | null | UTF-8 | Python | false | false | 3,380 | py | #
# RTEMS Tools Project (http://www.rtems.org/)
# Copyright 2010-2012 Chris Johns (chrisj@rtems.org)
# All rights reserved.
#
# This file is part of the RTEMS Tools package in 'rtems-tools'.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, pro... | [
"chrisj@rtems.org"
] | chrisj@rtems.org |
244ba7a60590ed05c16171342bd356d34d91a9aa | 77e303d8353170f4181ab9ff66ac77cb57d46caf | /src/451A.py | cd6d479ed4df6931b4056053634ff3472fa25711 | [
"MIT"
] | permissive | viing937/codeforces | 14f689f2e3360939912e927fb830c69f7116b35c | 5bd8c2bec0e48cb2b4830c26849ea7fda447267c | refs/heads/master | 2022-09-25T19:51:03.891702 | 2022-08-15T15:32:54 | 2022-08-15T15:32:54 | 32,905,529 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | # coding: utf-8
n, m = [int(i) for i in input().split()]
if min(n, m)%2 == 0:
print('Malvika')
else:
print('Akshat')
| [
"viing937@gmail.com"
] | viing937@gmail.com |
9f31c28f96ff71ddf88f0e277eda5d5fb6ee48d8 | d76a31764ec429f094d4ef9559a4a10bd0f51510 | /test/test_preprocessing_by_func.py | 60c086574bfac4e6599f7bbe72a0ec5a0fc0cb8f | [
"Apache-2.0",
"MIT"
] | permissive | kerlomz/captcha_trainer | 374a74f0f81638c30b3043e11c5743cc2e5427db | 6fd35c0c789aaa43130de46d4c04622ec2948052 | refs/heads/master | 2023-08-14T08:13:48.564910 | 2022-10-24T21:17:32 | 2022-10-24T21:17:32 | 145,080,024 | 2,977 | 841 | Apache-2.0 | 2022-03-09T07:49:17 | 2018-08-17T06:17:47 | Python | UTF-8 | Python | false | false | 2,187 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Author: kerlomz <kerlomz@gmail.com>
if __name__ == '__main__':
import io
import os
import PIL.Image
import hashlib
import cv2
import numpy as np
from pretreatment import preprocessing_by_func
src_color = "yellow"
root_dir = r"H:\Sampl... | [
"kerlomz@gmail.com"
] | kerlomz@gmail.com |
a9731ce63c37354682f882193584acdb45f2ef47 | 319a3c659bc4eab4dc69dd8f21cb1ad4fe994df6 | /Ders 02 Degerler ve Degiskenler/degerlervedegiskenler02.py | 968aff4a8db87ee5e7bbebbcdf45849261cbfed1 | [] | no_license | OZ-T/Bilgisayar-Bilimi-Python-Dersleri | 50fb7d6ffcc682e7d36b64c660a60b498c591d76 | 8877943823949642c6e3a042b2248ca766ecc54c | refs/heads/master | 2023-05-14T11:29:27.276948 | 2021-06-08T08:51:47 | 2021-06-08T08:51:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | x = 10
print("x'in değeri.....: \n" + str(x))
y = 20
print("y = " + str(y))
z = 30
print("z = " + str(z))
| [
"sinan.urun@deu.edu.tr"
] | sinan.urun@deu.edu.tr |
47052894fedc9e20b5305ecbfbaff15b8805dc79 | 8d09a0a95fa698334657a1cb98a5645db982bbe4 | /ws/RLAgents/E_SelfPlay/search/cache_mgt.py | d54ab1c7ddc88dead010fe3ae0269083ff5da822 | [] | no_license | basab-dattaray/RLGames | 0aa548e4d6fd531dbeebe617c37d42066b6f6097 | 94b37fc5d7038db67c98863d1f2f1938837c1046 | refs/heads/master | 2023-06-17T17:58:23.532753 | 2021-07-09T01:51:34 | 2021-07-09T01:51:34 | 277,697,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,587 | py |
from collections import namedtuple
def cache_mgt():
dictionary = {}
hit_count = 0
access_count = 0
overwrite_try_count = 0
def fn_does_key_exist(key):
return key in dictionary
def fn_get_data(key):
nonlocal hit_count, access_count
access_count += 1
hit_count... | [
"basab.dattaray@gmail.com"
] | basab.dattaray@gmail.com |
9937da5a7aca7666728b7a136b0aee1e39951c12 | 8021839eb48093254c1ed01a9355044fa0623927 | /schema/recode.py | 1d2db88b962342cd45a2da914b34bd0a3bb6dbf0 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | simsong/ctools | a9b7b643972898c34986e7cbaabbd07c5d9e9385 | 875c58c40fbde086d83be6c0a7e3bc0f6454b452 | refs/heads/main | 2023-09-03T19:47:28.472330 | 2023-09-02T21:17:46 | 2023-09-02T21:17:46 | 139,169,050 | 7 | 3 | NOASSERTION | 2023-09-11T10:31:29 | 2018-06-29T15:54:55 | Python | UTF-8 | Python | false | false | 1,132 | py | # Recodes are implemented as compiled code. The function is put into the __main__ namespace.
# https://stackoverflow.com/questions/19850143/
import re
class Recode:
"""Represent a recode from one table to another. A recode consists of two parts:
DESTINATION=SOURCE
Where DESTINATION is a python variable, ... | [
"simsong@acm.org"
] | simsong@acm.org |
010d18b6025357e019c26a1aa35f208fb1875f53 | 776e2c42784d2fc9de758b34bb37180256cc848a | /xl-deploy-9.5.1-server/ext/uccm/kubernetes/service/planningScripts/operations.py | 24b356757933c5b12df05958f1f85be3505a862d | [] | no_license | bmoussaud/xld-uccm-plugin | fa3400405dba58182a8b5225587180dc3a895eeb | be9501fdfaf333b24ef088f04b832dc54d240a4c | refs/heads/master | 2021-06-14T23:38:14.693371 | 2021-03-12T05:54:34 | 2021-03-12T05:54:34 | 171,808,180 | 0 | 2 | null | 2021-03-31T21:04:44 | 2019-02-21T05:47:37 | JavaScript | UTF-8 | Python | false | false | 1,666 | py | import uccm.deltas.compute
reload(uccm.deltas.compute)
from uccm.deltas.compute import DeltasBuilder, StepGenerator
class ServiceStepGenerator(StepGenerator):
def create(self, delta, deployed, port):
if port.exposeAsService:
context.addStepWithCheckpoint(
steps.kubectlApply(*... | [
"bmoussaud@xebialabs.com"
] | bmoussaud@xebialabs.com |
4aa67a7acf50adb662cdcb5804e0e25f99e46b18 | f3211ffd69c3923ca537203af5c08cc3f980c831 | /flaskblog/users/routes.py | 419d48cd19f39491b0fec437e5cbadd7249b7d52 | [] | no_license | DeeMATT/FlaskBlog | 425cd4b3253a4b0b07389b16ece14e8c89100cd1 | 4a469bbff70b07f0d51452e7a7f466965650ce5e | refs/heads/master | 2022-12-13T00:59:12.990188 | 2019-07-31T13:29:45 | 2019-07-31T13:29:45 | 197,786,720 | 0 | 0 | null | 2022-12-07T23:37:35 | 2019-07-19T14:27:12 | HTML | UTF-8 | Python | false | false | 4,571 | py | from flask import render_template, url_for, flash, redirect, request, Blueprint
from flask_login import login_user, current_user, logout_user, login_required
from flaskblog import db, bcrypt
from flaskblog.models import User, Post
from flaskblog.users.forms import (RegistrationForm, LoginForm, UpdateAccountForm,
... | [
"mattode@outlook.com"
] | mattode@outlook.com |
25903dbfef9fd5252e50747533fa66260e3ab9e5 | e93690e8ac06fd6aa2f7fe7d3ea56978e787e496 | /memsurp/optimizeAUC/corpusIterator_FuncHead.py | 07f0f5ff24c7ad2172208444b6b5c477f629b4e5 | [] | no_license | m-hahn/optimization-landscapes | 8446fbb0ae783f7aa76278e8a5f4cf5e6f4b2cd8 | b16f640dd855a912f52844882b3de701e5b9eca6 | refs/heads/master | 2023-08-12T01:44:18.434912 | 2021-10-03T14:37:11 | 2021-10-03T14:37:11 | 273,661,277 | 0 | 0 | null | 2021-04-15T04:39:52 | 2020-06-20T07:36:12 | TeX | UTF-8 | Python | false | false | 1,782 | py | import os
import random
import sys
header = ["index", "word", "lemma", "posUni", "posFine", "morph", "head", "dep", "_", "_"]
from corpusIterator_V import CorpusIterator_V as CorpusIterator
def reverse_content_head(sentence):
CH_CONVERSION_ORDER = ["cc", "case", "cop", "mark"]
# find paths that should be ... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
07e29683776350a46a70a1834d2f9703c30ae904 | cd0068a04a706aa902947d5f1233a7f07bec150c | /Python/function_practice/test.py | e04214206722a089e41a6cb0247049dcf67c3511 | [] | no_license | eLtronicsVilla/Miscellaneous | b0c579347faad12cee64408c2a112b33b38a6201 | e83f44af985faad93336c1307aeae8694905c3e3 | refs/heads/master | 2021-11-28T04:22:08.278055 | 2021-08-14T19:53:29 | 2021-08-14T19:53:29 | 161,993,103 | 0 | 0 | null | 2021-08-14T19:53:29 | 2018-12-16T11:11:10 | C++ | UTF-8 | Python | false | false | 191 | py | a = "ghdsfgsdfgyusdfhsdyf"
def myfun(st):
for count in range (len(st)):
#if count % 2 == 0: a[count].upper()
if count % 2 == 0: a[count].upper()
else: return a[count]
print myfun(a)
| [
"eltronicsvilla17@gmail.com"
] | eltronicsvilla17@gmail.com |
8d20a22afada77f0c82fa29cbc3e4b5f1150c877 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/PreCheckCreateHiStoreInstanceRequest.py | a9c6180e144212950c9fb9739cbf59f51001b9b7 | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 1,409 | 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 ... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
e892fe2df3229dc7868015339ed2fe40e137afc4 | 50e3fcca6e2a9a73ed52d231a739f70c28ed108f | /Array/majorityElement.py | e42d323d968806d0f1bb085d44161f4552f11873 | [] | no_license | thomasyu929/Leetcode | efa99deaa2f6473325de516d280da6911c2cc4ab | 780271875c5b50177653fd7fe175d96dd10e84e2 | refs/heads/master | 2022-03-29T00:11:01.554523 | 2020-01-03T00:28:22 | 2020-01-03T00:28:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | class Solution:
def majorityElement(self, nums: List[int]) -> int:
# from collections import Counter
# c = Counter()
# l = len(nums)
# for i in nums:
# c[i] += 1
# for j in nums:
# if c[j] > l/2:
# return j
nums.sort()
r... | [
"yby4301955@gmail.com"
] | yby4301955@gmail.com |
9b29a78ded8e61ef2fabe53d2219ce493c7b96ff | a01fb7bb8e8738a3170083d84bc3fcfd40e7e44f | /python3/concurrent/thread_pool.py | 05cbd9eed4675825ea197ce2010b63c306ef9333 | [] | no_license | jk983294/CommonScript | f07acf603611b4691b176aa4a02791ef7d4d9370 | 774bcbbae9c146f37312c771c9e867fb93a0c452 | refs/heads/master | 2023-08-21T17:50:19.036159 | 2023-08-16T00:22:03 | 2023-08-16T00:22:03 | 42,732,160 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | import requests
from multiprocessing import Pool
def get_website_data(url):
r = requests.get(url)
return r.url
def main():
urls = ['http://www.qq.com',
'http://www.baidu.com',
'http://www.163.com']
pool = Pool(2)
print(pool.map(get_website_data, urls))
main()
| [
"jk983294@gmail.com"
] | jk983294@gmail.com |
3faaf222ea16d874291c8ec5e97e8029a17196f9 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_136/ch15_2020_09_23_18_06_11_320261.py | 0ad14d4cfae34f3674b0024de4d84b0874353479 | [] | 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 | 201 | py | def qual_o_seu_nome (nome):
if nome != 'Chris':
return 'olá, {0}'. format(b)
else:
return "Todo mundo odeia o Chris"
b= input('Qual o seu nome ? ')
print (qual_o_seu_nome(b)) | [
"you@example.com"
] | you@example.com |
6d05f518b88c6d010936fa6f1592478e35631d4e | 4a48593a04284ef997f377abee8db61d6332c322 | /python/pyqt/pyqt4/event_handler_button_to_label.py | b74cdc35939949307ba1928340e5524989956ed3 | [
"MIT"
] | permissive | jeremiedecock/snippets | 8feaed5a8d873d67932ef798e16cb6d2c47609f0 | b90a444041c42d176d096fed14852d20d19adaa7 | refs/heads/master | 2023-08-31T04:28:09.302968 | 2023-08-21T07:22:38 | 2023-08-21T07:22:38 | 36,926,494 | 26 | 9 | MIT | 2023-06-06T02:17:44 | 2015-06-05T10:19:09 | Python | UTF-8 | Python | false | false | 2,555 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (c) 2012 Jérémie DECOCK (http://www.jdhp.org)
# 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 witho... | [
"jd.jdhp@gmail.com"
] | jd.jdhp@gmail.com |
b64e308ae46337de7f37c6a020ad8ac0fb64c697 | fcb04d0a3deb909dae2113a3db2fb73f7d01f959 | /GlyphProofer/dist/GlyphProofer.app/Contents/Resources/lib/python2.6/numpy/core/generate_numpy_api.py | 9cbc317ac0014bed78f02a3172a194d8bcc71f5e | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | houseind/robothon | 9e90dc7353aea411f8b322c7fbdb4f8e456ca171 | b483ca3f6c6c92366b383c9f0df89d1541697723 | refs/heads/master | 2021-03-12T19:38:29.897078 | 2012-11-01T11:10:41 | 2012-11-01T11:10:41 | 3,603,847 | 9 | 1 | null | 2012-11-01T11:10:42 | 2012-03-02T16:27:43 | Python | UTF-8 | Python | false | false | 5,728 | py | import os
import genapi
types = ['Generic','Number','Integer','SignedInteger','UnsignedInteger',
'Inexact',
'Floating', 'ComplexFloating', 'Flexible', 'Character',
'Byte','Short','Int', 'Long', 'LongLong', 'UByte', 'UShort',
'UInt', 'ULong', 'ULongLong', 'Float', 'Double', 'LongDoub... | [
"ben@benkiel.com"
] | ben@benkiel.com |
c536da30d3da43032f021111853431ccbb8adf1b | 9c368c9fe78a2dd186daeed2d0714651c1c27d66 | /budgets/get_mhalo_mstar.py | 50fab2c5f2c0688a54ca32dccf8b55c293b4b468 | [] | no_license | sarahappleby/cgm | 5ff2121919e36b10069692f71fb1dc03f3678462 | 656bf308771dd3ff2f8c2e77107cdc14507c7ce7 | refs/heads/master | 2023-01-24T03:10:01.610418 | 2023-01-20T11:04:31 | 2023-01-20T11:04:31 | 160,820,718 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,274 | py | import numpy as np
import matplotlib.pyplot as plt
import caesar
import h5py
import sys
sys.path.append('/disk01/sapple/tools/')
from plotmedian import runningmedian
plt.rc('text', usetex=True)
plt.rc('font', family='serif', size=16)
def chi_squared(data, model, noise):
return np.sum((data - model)**2 / noise**... | [
"sarahappleby20@gmail.com"
] | sarahappleby20@gmail.com |
ebd08eae9bcd1f3925721941b6eaba64c6ab9977 | 581bcf321e0cc1cda534ec42632bc5902670e72f | /opportunities/migrations/0007_auto_20180219_0223.py | 11b3814dc51c583476be15b6bdbc3ad6cab56b6e | [] | no_license | ToferC/careers | 55514869604b99a6a7ba77bc0f8758a9871006ef | 2d0144d54fc266667eb7a2204b15bd8915f1c163 | refs/heads/master | 2022-12-12T01:36:04.083525 | 2018-02-19T22:46:17 | 2018-02-19T22:46:17 | 122,020,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # Generated by Django 2.0.1 on 2018-02-19 02:23
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('opportunities', '0006_application_slug'),
]
operations = [
migrations.RemoveField(
model_name='... | [
"cgeist7@gmail.com"
] | cgeist7@gmail.com |
ba7df1a0b462e87df8b3c4ab0a5b9b7ebf226990 | dd2a28e9e4a2fc6395215a37c183571ebdaa71a2 | /tests/test_get_wsgi_filter.py | 4c77003e27e8c86b13c5335a9ab190a16a189ad9 | [
"MIT"
] | permissive | TylerLubeck/plaster_pastedeploy | 24cbf30413a79a7366f94d48002284e157aa249b | 72a08f3fb6d11a0b039f381ade83f045668cfcb0 | refs/heads/master | 2020-05-23T11:40:00.198267 | 2019-04-12T06:04:23 | 2019-04-12T06:05:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | import os
import plaster
import pytest
here = os.path.dirname(__file__)
test_filter_path = "sample_configs/test_filter.ini"
class TestSimpleURI(object):
config_uri = test_filter_path
@pytest.fixture(autouse=True)
def loader(self, fake_packages, monkeypatch):
monkeypatch.chdir(here)
self... | [
"michael@merickel.org"
] | michael@merickel.org |
684646cc590fe5d73304f6e2c0edf94c90857642 | d274e22b1cc5d546855fe46b089b13cfe2f4047c | /april2020/tests/test_day20_ConstructBinarySearchTreeFromPreorderTraversal.py | f0dd539b934882b52770e05b92d4c9505c17a9fe | [] | no_license | varunkumar032/lockdown-leetcode | ca6b7a8133033110680dd226c897dd8a1482682b | 15a72a53be9005eca816f018cb1b244f2aa4cdfb | refs/heads/master | 2023-06-30T08:31:54.323747 | 2021-07-12T11:29:59 | 2021-07-12T11:29:59 | 260,616,280 | 0 | 0 | null | 2021-05-06T10:24:48 | 2020-05-02T04:52:37 | Python | UTF-8 | Python | false | false | 982 | py | from solutions.day20_ConstructBinarySearchTreeFromPreorderTraversal import TreeNode, bstFromPreorder
def getInorderOfBst(root):
return getInorderOfBst(root.left) + [root.val] + getInorderOfBst(root.right) if root else []
def test_day20_01():
test_input = [8,5,1,7,10,12]
test_output_root = TreeNode(8)
... | [
"varunkumar032@gmail.com"
] | varunkumar032@gmail.com |
1354c06b46d3fad21266cb61c3631a505010e193 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /2iETeoJq2dyEmH87R_13.py | 93ea025694e0faa53ee0ebd63190d1a14016efa8 | [] | 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 | 92 | py |
def count_digits(n, d):
return ''.join(str(i ** 2) for i in range(n + 1)).count(str(d))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
95517002e7c7e7be9e9c51180c7cec9231cd9c78 | 2ff7e53d5e512cd762217ca54317982e07a2bb0c | /carbon/common/lib/markers.py | 0220cad0f184b7451c57cb06a1d67fc596afd527 | [] | no_license | nanxijw/Clara-Pretty-One-Dick | 66d3d69426642b79e8fd4cc8e0bec23adeeca6d6 | 50de3488a2140343c364efc2615cf6e67f152be0 | refs/heads/master | 2021-01-19T09:25:07.555284 | 2015-02-17T21:49:33 | 2015-02-17T21:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #Embedded file name: carbon/common/lib\markers.py
import sys
import blue
import bluepy
GetCurrent = blue.pyos.taskletTimer.GetCurrent
ClockThis = sys.ClockThis
def Mark(context, function, *args, **kw):
"""
Mark(context, function, ...) -> value
Marks the current execution context (tasklet timer context stri... | [
"billchang.e@gmail.com"
] | billchang.e@gmail.com |
a805d57e37399bf85a77464afee4f80cd64864d4 | 43dbf438287d1ea426d1cc0e201d4a56bfd20e21 | /ABC/062/A.py | 185d4e7573848d7f78ad821089d75da78a41adf9 | [] | no_license | hatopoppoK3/AtCoder-Practice | c98e5b0377c46b440a79dcc0bd1790b508555672 | c7385b0444baf18b7a7dc8e3003cc2074bc9b4ab | refs/heads/master | 2023-02-23T03:45:45.787964 | 2023-02-07T12:59:51 | 2023-02-07T12:59:51 | 184,423,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | ans = ["A", "C", "A", "B", "A", "B", "A", "A", "B", "A", "B", "A"]
x, y = map(int, input().split())
if ans[x - 1] == ans[y - 1]:
print("Yes")
else:
print("No")
| [
"hatopoppo0320@gmail.com"
] | hatopoppo0320@gmail.com |
0a2cc2916934dce67c6c1ed1bae0f26374c48afe | d61c4e9d1fa8abbcb3445df9197d7ee8682948f0 | /app01/migrations/0002_auto_20180829_1410.py | c7946602c608d92e2c4b7bde86a335efc281050f | [] | no_license | YangQian1992/Django-Module | 52fb9097f2506b7bb4798a2e17e0f23c6a5cfa51 | 90058b5cda0d838ac060cf802fa31232f9579f6b | refs/heads/master | 2020-03-27T12:28:19.638191 | 2018-10-10T06:28:59 | 2018-10-10T06:28:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,420 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-08-29 06:10
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app01', '0001_initial'),
]
operations = [
... | [
"1289089651@qq.com"
] | 1289089651@qq.com |
35387f67511039da0e3369cbd352ed3230d0ab0d | 58306311bfca56105be2f9a1738bceb9a98d6250 | /pyradar/Chapter08/ui/SteppedFrequency_ui.py | a09bba85741395fa85a26fb97d6b992dd3d8eca8 | [] | no_license | markuskreitzer/RADARBookSoftware | 62b42b71c1778cf6ee119d12a518f652eca3f44d | 97b7086897d5bb5fdb8f06252b55b9da76186466 | refs/heads/master | 2023-09-01T20:30:33.792319 | 2021-10-30T12:24:52 | 2021-10-30T12:24:52 | 355,154,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,333 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'Chapter08\SteppedFrequency.ui'
#
# Created by: PyQt5 UI code generator 5.10
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):... | [
"pythonradarbook@gmail.com"
] | pythonradarbook@gmail.com |
60f35f958847aa6ea3f8199544918d5fa9ec3095 | 6c22354f6b977762b02cb12752614dddcdef67d2 | /reconcile/utils/glitchtip/models.py | 772e0c6854ad88f99afef179376d287b8320a671 | [
"Apache-2.0"
] | permissive | app-sre/qontract-reconcile | 266a284b96fd4876305b3c76887e982f40a065bd | 91734756b84d646ac1e4b5c4d8de2cc812ea6e46 | refs/heads/master | 2023-08-31T11:30:35.103253 | 2023-08-30T15:05:45 | 2023-08-30T15:05:45 | 157,718,650 | 33 | 72 | Apache-2.0 | 2023-09-14T12:00:01 | 2018-11-15T13:47:25 | Python | UTF-8 | Python | false | false | 6,197 | py | from __future__ import annotations
import re
from collections.abc import MutableMapping
from enum import Enum
from typing import (
Any,
Optional,
)
from pydantic import (
BaseModel,
Field,
root_validator,
validator,
)
def slugify(value: str) -> str:
"""Convert value into a slug.
Ada... | [
"noreply@github.com"
] | app-sre.noreply@github.com |
1a17b11ac77f0f722f6f412a625ac01f6cd7e1a4 | 6ccb55befcbc69caa351b8337fdd40e55dbb802f | /socialscan-master/socialscan/platforms.py | 6203c9014beefe4de338a9d6ea8a02831b3881ee | [
"MIT"
] | permissive | FiacreT/M-moire | cc0791cbf98bf565ea637e6ec409611bcc596c57 | 4089755191ffc848614247e98bbb641c1933450d | refs/heads/master | 2022-12-12T21:55:23.679854 | 2019-09-06T23:28:03 | 2019-09-06T23:28:03 | 187,702,532 | 2 | 2 | null | 2022-12-08T01:04:58 | 2019-05-20T19:39:21 | Python | UTF-8 | Python | false | false | 24,317 | py | import re
from dataclasses import dataclass
from enum import Enum
import aiohttp
from socialscan import __version__
class QueryError(Exception):
pass
class PlatformChecker:
DEFAULT_HEADERS = {"User-agent": f"socialscan {__version__}", "Accept-Language": "en-GB,en-US;q=0.9,en;q=0.8"}
UNEXPECTED_CONTENT... | [
"hervesoubgui57@gmail.com"
] | hervesoubgui57@gmail.com |
9ca2a5cfdef0ef49a2609326d036b9a073035dac | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenMiniVersionAuditCancelModel.py | c733da393d8bb49fa5fb142dd9e4f59162072b6e | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,430 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenMiniVersionAuditCancelModel(object):
def __init__(self):
self._app_version = None
self._bundle_id = None
@property
def app_version(self):
return self._a... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
4a540b24108f3805fb5a6f8a07e290798e6818fb | 33708a33165181749cd028568e03109777ee3f30 | /circlet/users/urls.py | 245f9796c5b85a22044d709969dce2723b9ea221 | [
"MIT"
] | permissive | kk6/circlet | 0191981e4e36f9d3cd544fdc40641c1586b4ca14 | 6efc373dc357a9dbc6358f55b4f3bedc8e9ea553 | refs/heads/master | 2020-03-21T12:06:19.233148 | 2019-02-16T08:14:59 | 2019-02-16T08:14:59 | 138,535,932 | 0 | 0 | MIT | 2019-02-16T08:15:00 | 2018-06-25T02:50:14 | Python | UTF-8 | Python | false | false | 409 | py | # -*- coding: utf-8 -*-
from django.urls import path
from . import views
urlpatterns = [
path("login/", views.login, name="login"),
path("callback/", views.callback, name="callback"),
path("dashboard/", views.dashboard, name="dashboard"),
path(
"fetch_twitter_followings/",
views.FetchTw... | [
"hiro.ashiya@gmail.com"
] | hiro.ashiya@gmail.com |
77ade144fb2fc8146d1909aa6a7f294cd7b51ef8 | e8574a1eb466c37ab15a3722f762702023998ce8 | /src/cogent3/format/nexus.py | 7dca1ae3ff50ac5d8c47d606423da67713a0df55 | [
"BSD-3-Clause"
] | permissive | cogent3/c3test | 0415210e5aee197ea7256fd3747698073a5b29c3 | e200ed18a7fbc317abf7ebe76871fb2a7004375c | refs/heads/master | 2021-04-16T12:35:36.652805 | 2020-05-19T00:03:10 | 2020-05-19T00:03:10 | 249,356,408 | 0 | 1 | BSD-3-Clause | 2020-05-04T02:46:01 | 2020-03-23T06:50:50 | Python | UTF-8 | Python | false | false | 1,453 | py | #!/usr/bin/env python
__author__ = "Gavin Huttley"
__copyright__ = "Copyright 2007-2020, The Cogent Project"
__credits__ = ["Gavin Huttley"]
__license__ = "BSD-3"
__version__ = "2020.2.7a"
__maintainer__ = "Gavin Huttley"
__email__ = "gavin.huttley@anu.edu.au"
__status__ = "Production"
def nexus_from_alignment(aln, ... | [
"Gavin.Huttley@anu.edu.au"
] | Gavin.Huttley@anu.edu.au |
75a0295d8fc453eb4af97bbd91bfb7a2981be70c | 694c417a08cca7ab2b06fe48a9cd5d6b63ee9927 | /movies/migrations/0001_initial.py | 279c2b33a6c9d958be4f8b5e1541f3a9e94de15a | [] | no_license | xor0x/xmovies | cd7436d988dab9d551d469e684bea6c0d0221dc1 | b4db9854ac937b076b0a825bf44420b3b29f2b8a | refs/heads/master | 2020-11-28T17:50:25.660221 | 2020-02-05T11:04:14 | 2020-02-05T11:04:14 | 229,885,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,749 | py | # Generated by Django 3.0.1 on 2019-12-25 05:47
import datetime
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
... | [
"you@example.com"
] | you@example.com |
a61443c2b3eec7b6111e590449ae91a7bcc9b4d9 | 6ca0cc952fe4aae9778dfcfc3bb5720922056849 | /MovieDb/wsgi.py | 40a35dce14c3450b93dccc6289ca51ce63cf6e63 | [] | no_license | Wojtekadamski/Cinema_db_ | 4694e7408a050b3eca8ed22e168f0216f9aa36fb | 108ed548e99014038d2336bcbaae326dd4bf8236 | refs/heads/master | 2022-12-22T01:28:34.467058 | 2020-09-27T14:43:46 | 2020-09-27T14:43:46 | 299,053,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for MovieDb 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/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"sbbogus@gmail.com"
] | sbbogus@gmail.com |
8e36674c15f6885d217873cf9f128afa8282de5a | a4d2da29f28ba79b5408e74f83b723c0dbcf1b0b | /home_work_2_6/logs/configs/config_client_log.py | 18e034838febf09a8c6e549dfea49813466f62ba | [] | no_license | AndreySperansky/CryptoChat | 65e1dd36d58b1cb42535a51b1fa79c4203d1d795 | f91db445c817a8cec026d1bc90c84e4fa189910f | refs/heads/main | 2023-06-26T01:42:20.264184 | 2021-07-22T20:49:59 | 2021-07-22T20:49:59 | 388,574,272 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | """Кофнфиг клиентского логгера"""
import sys
import os
import logging
import logging.handlers
sys.path.append('../..')
from common.variables import LOGGING_LEVEL
# создаём формировщик логов (formatter):
CLIENT_FORMATTER = logging.Formatter('%(asctime)s %(levelname)s %(filename)s %(message)s')
PATH = os.path.dirname... | [
"andrey.speransky@gmail.com"
] | andrey.speransky@gmail.com |
659e089ca2d24e3db58a163850fa6898163be21b | dffb9a8855adecc4bd4d21b9168a4e9bdc75e508 | /binarytree/q12.py | 27ce2dfc8cc7c7ba716b5fc275163fdc522fa0ee | [
"MIT"
] | permissive | ResolveWang/algorithm_qa | 95278c4459e38c55225304210770efb61d934fcc | a0cb649acaf8cf9d808272bc15f1951f2c05c828 | refs/heads/master | 2021-07-17T09:32:01.845815 | 2018-08-13T13:54:42 | 2018-08-13T13:54:42 | 100,107,109 | 90 | 29 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | """
问题描述:给定彼此独立的两棵树头结点分别为t1和t2,判断t1中是否有与t2树拓扑结构完全相同的子树。
思路:
1)使用二叉树序列化的方法将二叉树序列化成一个字符串
2)使用KMP算法判断t1字符串是否包含t2字符串
由于目前对KMP算法还不是很了解,所以直接使用了in进行判断
"""
from binarytree.toolcls import Node
class TopTreeTool:
@classmethod
def is_all_top(cls, head1, head2):
str_t1 = cls.pre_order_visit(head1)
str... | [
"1796246076@qq.com"
] | 1796246076@qq.com |
fde3e927e40e24537162d1a223e43f76a22a1f69 | 959a7b17884aa9af1d38d9c6b0afe2045a9be5d2 | /Recursion/ Unique Binary Search Trees II.py | 6ffedf013373d70f251ac9af04a6f7e6b9e44ef2 | [] | no_license | dumavit/leetcode | a1c998f4c56411b061995d939093b03f7aae366b | 866689f564125ca4152dc1b6b3d268991d7ec89a | refs/heads/master | 2022-02-07T20:44:17.388121 | 2022-01-31T21:02:28 | 2022-01-31T21:02:28 | 252,981,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution:
def generateTrees(self, n):
return self.dfs(1, n+1)
def dfs(self, start, end):
if start == end:... | [
"vitalii.duma@corva.ai"
] | vitalii.duma@corva.ai |
570dd858d0fd19df28e952f7d83d2f1b7fbe9759 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /drfact/fact2fact_index.py | 00407de3e431807bc54d44fcb9d7de471153ba26 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 6,394 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
09649dcd2f79b7029311ea30c6b33576a2e2cf60 | c017d89824c16bc2931edbac6139ac7bc3e5abbe | /final_src/node_clusterization/main.py | b4e7ba173248ef0afb67ad88d42e3f0104714298 | [] | no_license | DustOfStars/GraphEmbeddings | 304a4d99d3f379e2a159cd9d31a97309148c1431 | 691afdc5538ac6998da47eee6dfb22e3bb7c13e9 | refs/heads/master | 2020-12-03T11:33:14.881858 | 2018-08-30T21:04:30 | 2018-08-30T21:04:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,243 | py | from itertools import product
import traceback
from node_clusterization.Runner import run_sbm, run_football, run_polbooks
from settings import PATH_TO_DUMPS
from transformation.HistLossConfiguration import HistLossConfiguration
from transformation.RunConfiguration import RunConfiguration
def main():
methods = [... | [
"tsepa.stas@gmail.com"
] | tsepa.stas@gmail.com |
0e17e4e5c497a0599dab06ab077ed1e1f034cb6b | deae8bc2da1936c4f9afbd8e9412af8df39e96a2 | /src/spaceone/inventory/manager/ip_address_manager.py | 29c614eac809453e60f67fb1f61b3e6b1b51ac28 | [
"Apache-2.0"
] | permissive | choonho/inventory | 11a3ef0ec327214cc26260ace049305021c892cf | cc89757490d28fecb7ffccdfd6f89d4c0aa40da5 | refs/heads/master | 2023-04-17T05:51:20.373738 | 2020-06-16T07:14:27 | 2020-06-16T07:14:27 | 273,175,186 | 0 | 0 | null | 2020-06-18T07:49:19 | 2020-06-18T07:49:18 | null | UTF-8 | Python | false | false | 2,632 | py | import logging
from spaceone.core import utils
from spaceone.core.manager import BaseManager
from spaceone.inventory.model.ip_address_model import IPAddress
from spaceone.inventory.lib.resource_manager import ResourceManager
_LOGGER = logging.getLogger(__name__)
class IPManager(BaseManager, ResourceManager):
r... | [
"whdalsrnt@megazone.com"
] | whdalsrnt@megazone.com |
1a6446ba7764c1e52746991bc8f170d3cfee586b | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_97/925.py | 2c8372eed01e71a097a1b20fdf9394022d158d31 | [] | 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,255 | py | FILENAME = "C-small-attempt0"
LINE_PER_CASE = 1
INPUT_FILE = "%s.in" % FILENAME
OUTPUT_FILE = "%s.out" % FILENAME
def scramble(string, start):
return string[start:] + string[:start]
def scrambles(string):
output = list()
for i in range(len(string)):
output.append(scramble(string, i))
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
28427327aa726e21774a58b87c0bf7ed6e17e646 | 7caa438706a423dd9779a81f8345fcf1ec11e921 | /matrix/algebra/matrix.py | 6a947c2892c52411a048933f043d2e6f76f0a76e | [] | no_license | tamarinvs19/python-learning | 5dd2582f5dc504e19a53e9176677adc5170778b0 | 1e514ad7ca8f3d2e2f785b11b0be4d57696dc1e9 | refs/heads/master | 2021-07-15T13:23:24.238594 | 2021-07-08T07:07:21 | 2021-07-08T07:07:21 | 120,604,826 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,727 | py | import pdb
import logging as log
from pprint import pprint
from fractions import Fraction
global module
def reverse_matrix(matrix):
rows = [[e.numerator for e in row] for row in matrix.rows]
rk = len(rows) - rows.count([0] * len(rows[0]))
last_row = rows[rk-1]
last_row.reverse()
last_index_of_one... | [
"slavabarsuk@ya.ru"
] | slavabarsuk@ya.ru |
18a6acae4c564ae2ead4288025e3d339894df0e4 | f160d992d0ea5fa4e36af0025b5637c8962f2a29 | /gzywtk_spider/mini_spider/gzywtk_mini_spider.py | de75403cd0ca88ab705f5fb6e36e8626c0004a1c | [] | no_license | Zachypentakill/Afanti_tiku | 369dde43a32cecb136eb1207bf4223f6decd9843 | aebee5b3d8dce76f95620cb52fda5a0f19965945 | refs/heads/master | 2021-07-11T15:59:03.099600 | 2017-10-11T10:27:43 | 2017-10-11T10:27:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | # -*- coding: utf-8 -*-
import logging
import json
from achihuo_mini.async_loop import AsyncLoop
from achihuo_mini.item import Item
from afanti_tiku_lib.utils import md5_string
from afanti_tiku_lib.dbs.mysql_pool import CommonMysql
from afanti_tiku_lib.dbs import html_archive
from afanti_tiku_lib.dbs.execute import ... | [
"yanfeng.li@lejent.com"
] | yanfeng.li@lejent.com |
a4503b5bdc62725322c2b5563d1e11782339fcb7 | 25403dd331c6f273190461ed57c12c9f633853b9 | /chiton/wintour/matching.py | ecbd023f7ed79db3067007fa82d6e70f048c21d1 | [] | no_license | justinlocsei/chiton | d1a91a57ff90f16aa375d0f4c6a0b093a66d2d38 | 6ca38962d08a6ca154434a1f78235155710ffeec | refs/heads/master | 2021-03-27T15:10:07.811691 | 2017-01-30T01:18:33 | 2017-01-30T01:18:33 | 48,400,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,840 | py | from timeit import default_timer
from django.db import connection
import voluptuous as V
from chiton.closet.models import StandardSize
from chiton.core.queries import cache_query
from chiton.core.schema import define_data_shape, Email
from chiton.runway.models import Formality, Style
from chiton.wintour.models import... | [
"justin.locsei@gmail.com"
] | justin.locsei@gmail.com |
53db5b39966694f124d1d8fd208d9fa32b19d167 | 66477bf8801e13ed230f821a6c8686e55dcef89f | /UpbeatEngineering/urls.py | 65f098238653c842331a1f5d1817fde310cb38a2 | [] | no_license | Code-Institute-Submissions/CI-MS4-project4 | 606aebd41b28c2bfedbf9685eed6b89115c084ad | c350dad99a541ab600a772a896be19bfceb78a0e | refs/heads/master | 2023-02-07T13:56:51.300259 | 2020-12-28T16:59:29 | 2020-12-28T16:59:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 991 | py | """UpbeatEngineering URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... | [
"toh.tingji@gmail.com"
] | toh.tingji@gmail.com |
7f7eedfe853612b2666ff1d0a6c36c7d7cdcf97a | 4fb5eb0a9a24fa5c112a4ebc854ee2604b04adda | /python/oanda/models/market_order_request.py | 078201127db14604d43030f44a66149f66fcb22a | [
"MIT"
] | permissive | KoenBal/OANDA_V20_Client | ed4c182076db62ecf7a216c3e3246ae682300e94 | e67b9dbaddff6ed23e355d3ce7f9c9972799c702 | refs/heads/master | 2020-03-27T20:42:25.777471 | 2019-12-02T15:44:06 | 2019-12-02T15:44:06 | 147,088,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,342 | py | # coding: utf-8
"""
OANDA v20 REST API
The full OANDA v20 REST API Specification. This specification defines how to interact with v20 Accounts, Trades, Orders, Pricing and more. To authenticate use the string 'Bearer ' followed by the token which can be obtained at https://www.oanda.com/demo-account/tpa/perso... | [
"koen.bal@gmail.com"
] | koen.bal@gmail.com |
907e57f676ef4d72cb7d519f3736aa929c243357 | d359fe1fb1e3824b9411d86d33e91eeb6325aa93 | /agent_bee_v4_1_4.py | d58906ec265d06d46a7d1be0b9e0a2f940c7fbaf | [] | no_license | flynnwang/kaggle_halite4 | 9c14e82899ee3ae469ac1ed47e095ab6635b5b21 | 453ca80a6fec5a346629e21e9449af571f52e5ef | refs/heads/master | 2023-03-18T19:43:59.920892 | 2020-09-16T02:41:25 | 2020-09-16T02:41:25 | 275,327,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51,669 | py | # -*- coding: utf-8 -*-
"""
v4_1_4 <- v4_1_3
* Use halite cell as collect weight
* Keep halite ratio = 0.5
* Home ext dist = ship_num/8 + 1
* increase attack dist.
Tournament - ID: TMM0Mj, Name: Your Halite 4 Trueskill Ladder | Dimension - ID: Pk0M4r, Name: Halite 4 Dimension
Status: running | Competitors: 6 | Rank S... | [
"flynnwang@didiglobal.com"
] | flynnwang@didiglobal.com |
e0117c1b33518a637c416d0d305d4969fbf4cbbe | 5759c0ed3219c06437ce5b39ef9ad92b5e191fed | /py/0272_closest_binary_search_tree_value_ii.py | b19e2ed710d594eb8e8af6baafd5df7f0f31637e | [] | no_license | mengnan1994/Surrender-to-Reality | ba69df7c36112ad19f19157a9f368eae6340630f | 66232728ce49149188f863271ec2c57e426abb43 | refs/heads/master | 2022-02-25T01:34:49.526517 | 2019-09-22T17:21:28 | 2019-09-22T17:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,156 | py | """
Given a non-empty binary search tree and a target value, find k values in the BST that are closest to the target.
Note:
Given target value is a floating point.
You may assume k is always valid, that is: k ≤ total nodes.
You are guaranteed to have only one unique set of k values in the BST that are closest to the ... | [
"hurricane.cui@gmail.com"
] | hurricane.cui@gmail.com |
02db7c74005b3b7893913df03b9226c790ef64fe | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_11_01/aio/operations/_virtual_appliance_skus_operations.py | 5831f745f6b1b0295bfb22ca7a3059cc247a444f | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 7,589 | 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"
] | catchsrinivas.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.