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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5ee5cb9bf9402ad2216dd4aa9568e06ed20148e8 | fc3ffd1a5f4f229bc585f62fe8ae0db55c8a435a | /ml4rt/jtech2021/make_site_figure.py | 4ec16416b1ffe3a449e986c5e9e41a278f8de660 | [] | no_license | thunderhoser/ml4rt | b587d96ae7094e672d0445458e7b812c33941fc6 | 517d7cb2008a0ff06014c81e158c13bf8e17590a | refs/heads/master | 2023-08-05T04:28:29.691564 | 2023-07-31T22:25:50 | 2023-07-31T22:25:50 | 270,113,792 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,692 | py | """Creates paneled figure with different views of sites."""
import os
import argparse
from gewittergefahr.gg_utils import file_system_utils
from gewittergefahr.plotting import imagemagick_utils
PATHLESS_INPUT_FILE_NAMES = [
'all_sites.jpg', 'tropical_sites.jpg', 'assorted2_sites.jpg'
]
CONVERT_EXE_NAME = '/usr/b... | [
"lagerqui@ualberta.ca"
] | lagerqui@ualberta.ca |
b32f5035cf85169d11f1cb0b73654819c498f5d6 | 15fae17aadc1ff83ad84ad2ee3db14ec40c6ffce | /app/articles/admin.py | c6bc56c32480f9df92b025a4cb61be49c96cb0c5 | [] | no_license | elmcrest/feincms3-example | 2eaaed3bd2bb68b9cfa6c21c9e60b190c193e08f | 3ec92b1bb23656d52c3cb46f4a0c8a138a088cbf | refs/heads/master | 2020-03-21T23:29:33.704979 | 2017-08-18T10:08:59 | 2017-08-18T10:08:59 | 139,190,393 | 0 | 0 | null | 2018-06-29T19:59:32 | 2018-06-29T19:59:32 | null | UTF-8 | Python | false | false | 954 | py | from __future__ import unicode_literals
from django.contrib import admin
from feincms3.plugins.versatileimage import AlwaysChangedModelForm
from . import models
class ImageInline(admin.TabularInline):
form = AlwaysChangedModelForm
model = models.Image
extra = 0
@admin.register(models.Article)
class A... | [
"mk@feinheit.ch"
] | mk@feinheit.ch |
681140367c0aacb15268f68df64bf7845fba3c57 | b0f0473f10df2fdb0018165785cc23c34b0c99e7 | /Peach.Core/Lib/nntplib.py | d3212d2505d233f917f2760ad751ae01e67b3489 | [] | no_license | wimton/Meter-peach | d9294a56ec0c1fb2d1a2a4acec1c2bf47b0932df | af0302d1789a852746a3c900c6129ed9c15fb0f4 | refs/heads/master | 2023-04-25T22:54:31.696184 | 2021-05-19T13:14:55 | 2021-05-19T13:14:55 | 355,202,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,500 | py | """An NNTP client class based on RFC 977: Network News Transfer Protocol.
Example:
>>> from nntplib import NNTP
>>> s = NNTP('news')
>>> resp, count, first, last, name = s.group('comp.lang.python')
>>> print 'Group', name, 'has', count, 'articles, range', first, 'to', last
Group comp.lang.python has 51 articles, rang... | [
"wimton@yahoo.com"
] | wimton@yahoo.com |
486fda6e1753ed2136f830174096f2c571d665ad | 29f830670675cea44bf3aad6e50e98e5b1692f70 | /scripts/import_permissions_and_roles.py | 867979ebca2c717d403bdf57b45d34d2dce26019 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | forksbot/byceps | 02db20149f1f0559b812dacad276e4210993e300 | ac29a0cb50e2ef450d4e5ebd33419ed490c96e4f | refs/heads/main | 2023-03-04T05:55:07.743161 | 2021-02-14T06:03:37 | 2021-02-14T06:19:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | #!/usr/bin/env python
"""Import permissions, roles, and their relations from a TOML file.
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
import click
from byceps.services.authorization import impex_service
from byceps.util.system import get_config_filename_from... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
b936ffc9e6684b9c97da4d88a0f2e59e3e42aab1 | cc101e71d4b47e1ade22159bc3273aab5386a49e | /integration-tests/fake_spine/fake_spine/vnp_request_matcher_wrappers.py | 3591870d8d4679c49b285dbbc7a413cba93a0ceb | [
"Apache-2.0"
] | permissive | nhsconnect/integration-adaptors | 20f613f40562a79428e610df916835f4e3c3e455 | 8420d9d4b800223bff6a648015679684f5aba38c | refs/heads/develop | 2023-02-22T22:04:31.193431 | 2022-03-15T16:01:25 | 2022-03-15T16:01:25 | 179,653,046 | 15 | 7 | Apache-2.0 | 2023-08-23T14:52:10 | 2019-04-05T09:18:56 | Python | UTF-8 | Python | false | false | 803 | py | from fake_spine.request_matching import RequestMatcher
def async_express():
return RequestMatcher('async-express-vnp',
lambda request: '<eb:Action>QUPC_IN160101UK05</eb:Action>' in request.body.decode())
def async_reliable():
return RequestMatcher('async-reliable-vnp',
... | [
"noreply@github.com"
] | nhsconnect.noreply@github.com |
a2dcbf9b1d89748680c0d4367c744d3038686cc4 | 8e86b14e153a6c626739d12666d0131c5fcc24fd | /requirements.py | af2e789d7fa56fb50e86563d6fbef6b454a4caeb | [
"MIT"
] | permissive | Kromey/err-nanobot | 16e4db659edc142df33fcb48aa637d3f6cc1756a | af07232512b2fc04efb19d5271064decd4c14d08 | refs/heads/master | 2021-05-04T10:11:47.659386 | 2017-11-07T21:49:29 | 2017-11-07T21:49:29 | 45,268,537 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py | pynano==0.1.1
| [
"travisvz@gmail.com"
] | travisvz@gmail.com |
525929dc1eeca4dacff44536fcb21918ee9ee501 | 3f41bafb8012f264605724dbe9b1a6ee11a1f767 | /competitions/EMNIST/resize_380_B4.py | 80995b99e649cb8fcb0364b6c8c07df6932621e3 | [] | no_license | pervin0527/pervinco | 6d0c9aad8dbf6d944960b2e2c963054d1d91b29a | 9ced846438130341726e31954cc7e45a887281ef | refs/heads/master | 2022-11-26T02:11:00.848871 | 2022-11-24T00:56:14 | 2022-11-24T00:56:14 | 223,062,903 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 6,169 | py | import cv2, pathlib, datetime, os
import numpy as np
import pandas as pd
import tensorflow as tf
from matplotlib import pyplot as plt
from functools import partial
from tqdm import tqdm
from sklearn.model_selection import KFold
# GPU setup
gpus = tf.config.experimental.list_physical_devices('GPU')
if len(gpus) > 1:
... | [
"zfbtldnz@gmail.com"
] | zfbtldnz@gmail.com |
1446845eeccf87263d870b37805acf3b3c96d21d | 4c8c0f857500b5f4b572f139602e46a6c813f6e3 | /Polymorhphism_and_Magic_methods_exercises/project/cat.py | 12c5083c335f08076e5581860eca49af0764f67d | [] | no_license | svetoslavastoyanova/Python_OOP | 3d21fb0480c088ecad11211c2d9a01139cde031f | 518f73ecc8a39e7085d4b8bf5657a1556da3dcfa | refs/heads/main | 2023-08-04T19:46:58.906739 | 2021-09-18T07:46:02 | 2021-09-18T07:46:02 | 352,304,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from project.animal import Animal
class Cat(Animal):
def __repr__(self):
return f"This is {self.name}. {self.name} is a {self.age} year old {self.gender} {self.__class__.__name__}"
def make_sound(self):
return f"Meow meow!" | [
"svetoslava_stoyanova92@abv.bg"
] | svetoslava_stoyanova92@abv.bg |
5efcb7fb86370b09e864d1c00759871aabe142ae | 593b23cd61932e8206d89e43925f038c86758288 | /covid19_pipeline/engine/module.py | c9e80824df08107c21b3a61deabe4888864d0db2 | [] | no_license | HDU-DSRC-AI/HKBU_HPML_COVID-19 | ad4f311777176d469b07c155e252df26d57f5056 | 0f685312d26c0b50fffb433408a913243638a14a | refs/heads/master | 2022-10-12T09:32:15.635509 | 2020-06-09T13:53:42 | 2020-06-09T13:53:42 | 271,016,743 | 1 | 0 | null | 2020-06-09T13:55:31 | 2020-06-09T13:55:28 | null | UTF-8 | Python | false | false | 6,807 | py | import os
from collections import OrderedDict
import numpy as np
import torch
from sklearn import metrics
from torchline.engine import MODULE_REGISTRY, DefaultModule, build_module
from torchline.utils import AverageMeterGroup, topk_acc
from .utils import mixup_data, mixup_loss_fn
__all__ = [
'CTModule'
]
@MODU... | [
"1435679023@qq.com"
] | 1435679023@qq.com |
80ff391e57858bfe6654bb74b3b2aad7a68da33c | ab5ef28065b0ad3f8d86fc894be569074a4569ea | /mirari/SV/migrations/0020_auto_20190321_1210.py | 063b11284a810c9cdddd97f51c5c6e61e556b605 | [
"MIT"
] | permissive | gcastellan0s/mirariapp | 1b30dce3ac2ee56945951f340691d39494b55e95 | 24a9db06d10f96c894d817ef7ccfeec2a25788b7 | refs/heads/master | 2023-01-22T22:21:30.558809 | 2020-09-25T22:37:24 | 2020-09-25T22:37:24 | 148,203,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # Generated by Django 2.0.5 on 2019-03-21 18:10
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('SV', '0019_auto_20190315_1330'),
]
operations = [
migrations.AlterModelOptions(
name='ticket',
options={'default_permissions... | [
"g@gustavo-castellanos.com"
] | g@gustavo-castellanos.com |
ba6e5b9e1e9ff2e71c68568c7835e0414609b61d | 0062ceae0071aaa3e4e8ecd9025e8cc9443bcb3b | /solved/2579.py | 90890849ba15de80636cc12fe760fd9e34b65942 | [] | no_license | developyoun/AlgorithmSolve | 8c7479082528f67be9de33f0a337ac6cc3bfc093 | 5926924c7c44ffab2eb8fd43290dc6aa029f818d | refs/heads/master | 2023-03-28T12:02:37.260233 | 2021-03-24T05:05:48 | 2021-03-24T05:05:48 | 323,359,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | N = int(input())
arr = [int(input()) for _ in range(N)]
dp = [[0, 0] for _ in range(N)]
dp[0][0] = arr[0]
if N != 1:
dp[1][0] = arr[1]
dp[1][1] = arr[0] + arr[1]
for i in range(2, N):
dp[i][0] = max(dp[i-2]) + arr[i]
dp[i][1] = dp[i-1][0] + arr[i]
print(max(dp[N-1])) | [
"pyoun820@naver.com"
] | pyoun820@naver.com |
39a0c47ca4248562ba9920e235e06a51a43f6be8 | aa76391d5789b5082702d3f76d2b6e13488d30be | /BOJ-Solution/2440.py | 442fb8f075508e999d021ff816b95a6a2762b386 | [] | no_license | B2SIC/python_playground | 118957fe4ca3dc9395bc78b56825b9a014ef95cb | 14cbc32affbeec57abbd8e8c4ff510aaa986874e | refs/heads/master | 2023-02-28T21:27:34.148351 | 2021-02-12T10:20:49 | 2021-02-12T10:20:49 | 104,154,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | n = int(input())
for i in range(0, n):
print("*"*(n-i)) | [
"the_basic_@kookmin.ac.kr"
] | the_basic_@kookmin.ac.kr |
190cb5e443625842236cc6cbe8c93583f288a126 | 6c524d7c4114531dd0b9872090bd7389a3cd3fd8 | /poems/migrations/0003_auto_20200731_1245.py | ec917ae86031cdc2623eba1b2a2431d466946ae0 | [] | no_license | cement-hools/poems_project | e33bcd03ca8b2b1f1fa558d1036928aee73c87c9 | 493e6d517b65faab6b25a9fda485e165b6eea03d | refs/heads/master | 2022-11-28T02:11:50.837816 | 2020-08-01T10:12:16 | 2020-08-01T10:12:16 | 284,234,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | # Generated by Django 2.2.14 on 2020-07-31 09:45
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('poems', '0002_auto_20200731_1219'),
]
operations = [
migrations.AlterModelOptions(
name='poem'... | [
"cement-fan@ya.ru"
] | cement-fan@ya.ru |
a15de310a575dd2dfa1b63f03ee73cd8ee65edf5 | 13084338fa9d1c72fe32d323bcd2df1417b98e83 | /src/bxcommon/models/blockchain_peer_info.py | 7ad272ad39cc2493b806aa95ec618225f48830a7 | [
"MIT"
] | permissive | bloXroute-Labs/bxcommon | ad45e3a060a7d1afd119513248da036818c7f885 | 03c4cc5adab1ae182e59a609eff273957499ba5d | refs/heads/master | 2023-02-22T00:10:46.755175 | 2022-08-16T19:38:22 | 2022-08-16T19:38:22 | 220,556,144 | 14 | 7 | MIT | 2023-02-07T22:58:14 | 2019-11-08T22:16:37 | Python | UTF-8 | Python | false | false | 896 | py | from dataclasses import dataclass
from typing import Optional
from bxcommon.utils.blockchain_utils.eth import eth_common_constants
@dataclass
class BlockchainPeerInfo:
ip: str
port: int
node_public_key: Optional[str] = None
blockchain_protocol_version: int = eth_common_constants.ETH_PROTOCOL_VERSION
... | [
"vc.shane@gmail.com"
] | vc.shane@gmail.com |
b137928399ca34af62b565e767f81889f316ac21 | 2af28d499c4865311d7b350d7b8f96305af05407 | /model-optimizer/mo/front/mxnet/extractor.py | bce78e371dcb4aa4d043ad108a22efe1cbaf7f3d | [
"Apache-2.0"
] | permissive | Dipet/dldt | cfccedac9a4c38457ea49b901c8c645f8805a64b | 549aac9ca210cc5f628a63174daf3e192b8d137e | refs/heads/master | 2021-02-15T11:19:34.938541 | 2020-03-05T15:12:30 | 2020-03-05T15:12:30 | 244,893,475 | 1 | 0 | Apache-2.0 | 2020-03-04T12:22:46 | 2020-03-04T12:22:45 | null | UTF-8 | Python | false | false | 2,912 | py | """
Copyright (c) 2018-2019 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | [
"alexey.suhov@intel.com"
] | alexey.suhov@intel.com |
49881c0afd820a8d03c284c032931f34cb14c3ef | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /_use_in_my_scripts/switch/008_decorators_template_Simulating a simple Switch in Python with dict.py | 00900f8959a0911755babf3db801ea1c231eaa31 | [] | 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 | 459 | py | def dow_switch_dict(dow):
dow_dict = {
1: lambda: print('Monday'),
2: lambda: print('Tuesday'),
3: lambda: print('Wednesday'),
4: lambda: print('Thursday'),
5: lambda: print('Friday'),
6: lambda: print('Saturday'),
7: lambda: print('Sunday'),
'default'... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
16ca6ca8294bb2452eda7a18ad8e9c5ef5fc649e | a12bd907b26934978a09173039e7eed361d09670 | /nbs/models/supplier.py | c1c899d7caac32a40f373b6ffc86e1e8f7ad3a0f | [
"MIT"
] | permissive | coyotevz/nobix-app | 489e2dc8cafc40a3022ef02913461e324bc9f752 | 9523d150e0299b851779f42927992810184e862d | refs/heads/master | 2020-12-20T23:22:10.302025 | 2015-12-18T22:06:44 | 2015-12-18T22:06:44 | 32,998,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,051 | py | # -*- coding: utf-8 -*-
from sqlalchemy.ext.associationproxy import association_proxy
from nbs.models import db
from nbs.models.entity import Entity
class Supplier(Entity):
__tablename__ = 'supplier'
__mapper_args__ = {'polymorphic_identity': u'supplier'}
FREIGHT_SUPPLIER = 'FREIGHT_SUPPLIER'
FREIG... | [
"augusto@rioplomo.com.ar"
] | augusto@rioplomo.com.ar |
90ad9fcdb2334a3144853bebdcabed989714fc08 | d54e1b89dbd0ec5baa6a018464a419e718c1beac | /Python from others/文件/wk_03_分行读取文件.py | ae79c246fb71c837847b4312137a77ae4ae62097 | [] | no_license | cjx1996/vscode_Pythoncode | eda438279b7318e6cb73211e26107c7e1587fdfb | f269ebf7ed80091b22334c48839af2a205a15549 | refs/heads/master | 2021-01-03T19:16:18.103858 | 2020-05-07T13:51:31 | 2020-05-07T13:51:31 | 240,205,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | # 1. 打开文件
file = open("README")
# 2. 读取文件内容
while True:
text = file.readline()
# 判断时候有内容
if not text:
break
print(text)
# 3. 关闭
file.close()
| [
"1121287904@qq.com"
] | 1121287904@qq.com |
bfd6fab30015421b87ddfbb130b4c0fda5ced7dd | 8e474edd3954c4679061bb95970ba40e20c39c2d | /pre_analysis/observable_analysis/qtq0eff_mass_mc_intervals.py | 83a06fd90bb8b0503b0d5ac9de8309a5479a28ad | [
"MIT"
] | permissive | JinKiwoog/LatticeAnalyser | c12f5c11f2777c343a2e1e1cd4e70e91471b4e79 | 6179263e30555d14192e80d94121f924a37704c9 | refs/heads/master | 2020-04-17T18:35:24.240467 | 2019-01-21T11:25:19 | 2019-01-21T11:25:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | from pre_analysis.observable_analysis import QtQ0EffectiveMassAnalyser
import copy
import numpy as np
import os
from tools.folderreadingtools import check_folder
import statistics.parallel_tools as ptools
class QtQ0EffectiveMassMCAnalyser(QtQ0EffectiveMassAnalyser):
"""Correlator of <QtQ0> in euclidean time analy... | [
"hmvege@ulrik.uio.no"
] | hmvege@ulrik.uio.no |
455467f723018a27dbe6a7830158e27d70b9d9a8 | 7a915ae2c07c652cb3abffccd3b1b54c04fd2918 | /main/views.py | 26333397c360b25743f2035cebddc66815dfc322 | [] | no_license | YUNKWANGYOU/healingWheel | 410135bd21f9a4f6922051e63bc50fcf090edc3c | 416434e5ee8f79b366cdee7b81d58382e073020e | refs/heads/master | 2022-10-18T17:59:33.272890 | 2020-06-14T04:10:36 | 2020-06-14T04:10:36 | 264,862,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | from django.shortcuts import render,redirect
from .forms import DrivingTimeForm
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
from datetime import timedelta
def index(request):
return render(request,'main/index.html',)
def aboutus(request):
return render... | [
"1996yyk@gmail.com"
] | 1996yyk@gmail.com |
abe9c326d87ac84ae84d1b1abc67baad6d8cd389 | 657d549ffa47c4ef599aa5e0f5760af8de77fec4 | /src/runner/predictors/base_predictor.py | 865569b96277b12446c2ca90d1e3595b99495a53 | [] | no_license | Tung-I/Incremental_Learning | 68357d3db5a646aa6b3df844b85e12fa45e3eb3e | 95602f404ab8dd627c5dd5fcc94a4a071ad330ab | refs/heads/master | 2021-01-14T15:18:21.941132 | 2020-03-30T04:04:13 | 2020-03-30T04:04:13 | 242,659,450 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,531 | py | import logging
import torch
from tqdm import tqdm
from src.runner.utils import EpochLog
LOGGER = logging.getLogger(__name__.split('.')[-1])
class BasePredictor:
"""The base class for all predictors.
Args:
device (torch.device): The device.
test_dataloader (Dataloader): The testing dataloader... | [
"dong893610@gmail.com"
] | dong893610@gmail.com |
0f0b1fd4c55e34e3152eb2d5b014c46a1f681429 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03125/s620551773.py | 2fa87780ec501f96d186ec29b97ba692ec344e65 | [] | 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 | 105 | py | A, B = map(int, raw_input().split())
if B % A == 0:
ans = A + B
else:
ans = B - A
print str(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
dfe4cdb4b2cd3b16377380d041e286d9589ad92f | a26b8a208259b61ad5d77a9092d0edf02a7f5fe3 | /爬虫/py/zeran_answer.py | 67edd655f6fbf8abedfe14a057a2ad70c2e5c55f | [] | no_license | yiyue21/PythonCode | e088aa8661c0c88bd9971a2f1f7cd1cac9eaf1c6 | 39445a0898c404836f3c60fd067d8489ab804fb4 | refs/heads/master | 2020-06-19T04:23:28.019604 | 2019-06-09T17:08:45 | 2019-06-09T17:08:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89,180 | py | #coding:utf-8
import requests
import re
text = u"{"paging": {"is_end": false, "totals": 2628, "previous": "https://www.zhihu.com/api/v4/members/ze.ran/answers?sort_by=created&include=data%5B%2A%5D.is_normal%2Cadmin_closed_comment%2Creward_info%2Cis_collapsed%2Cannotation_action%2Cannotation_detail%2Ccollapse_reason%2Cc... | [
"1397991131@qq.com"
] | 1397991131@qq.com |
6a6f7df26cb37b166a82c2a0b11ebe4621986391 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4009/codes/1590_1014.py | a4d00150034f869d011a6a04ebe840fb0ed78141 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45 | py | y=float(input("valor:" ))
x=y*30/100
print(x) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
c3771eaa61b07b3cd184d7bdca9ff13270cbd4b8 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2577/60660/296683.py | 4283bd8bc19eca118b313934e87233f0cbfd48c0 | [] | 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 | 668 | py | def jobScheduling(startTime, endTime, profit):
n = len(startTime)
# 按结束时间排序
work = sorted(zip(startTime, endTime, profit))
# 计算OPT数组
dp = [0] * (n + 1)
pos=0#记录与当前不重合的最大区间序号,减少循环量
s=0
for i in range(n):
for j in range(pos, i+1):
# 区间不重合
if work... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
0569a5ee3ff6e13a8e55562b2dde689b330181d1 | 945b3c14b5a58f8d98955cdf27aef9469e21523c | /flod_matrikkel_address_restapi/matrikkel.py | 370a48d6bcdd2bec075df00225106e533e8fb18f | [
"BSD-2-Clause-Views"
] | permissive | Trondheim-kommune/Bookingbasen | 34e595e9c57ea6428406b2806559aab17e9a3031 | 58235a5a1fd6ad291cb237e6ec9a67bfe8c463c6 | refs/heads/master | 2022-11-29T00:20:18.681549 | 2017-05-29T19:33:43 | 2017-05-29T19:33:43 | 49,863,780 | 1 | 1 | NOASSERTION | 2022-11-22T00:27:34 | 2016-01-18T08:47:46 | JavaScript | UTF-8 | Python | false | false | 6,031 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from suds.client import Client
import suds
import re
import logging
import httplib
import ssl
import urllib2
import socket
import base64
logging.basicConfig(level=logging.INFO)
class HTTPSConnectionV3(httplib.HTTPSConnection):
def __init__(self, *args, **kwargs):
... | [
"teeejay@gmail.com"
] | teeejay@gmail.com |
aa8b90ef142a6c6eab8212204d6d4306724706ae | 19bc8a9343aa4120453abeff3deddda7d900f774 | /ProgrammingInterviewQuestions/24_DynamicProgrammingFibonacci.py | da078e3a21ff91ec68517a6074e80e997e529813 | [] | no_license | ArunkumarRamanan/CLRS-1 | 98643cde2f561d9960c26378ae29dd92b4c3fc89 | f085db885bcee8d09c1e4f036517acdbd3a0918e | refs/heads/master | 2020-06-28T08:30:44.029970 | 2016-11-19T15:27:55 | 2016-11-19T15:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 25 10:29:52 2016
@author: Rahul Patni
"""
# Dynamic Programming Fibonacci
def recursiveApproach(n):
if n == 0 or n == 1:
return 1
return recursiveApproach(n - 1) + recursiveApproach(n - 2)
def iterativeApproach(n):
x1 = 0
x2 = 1
for i in... | [
"rahul20patni@gmail.com"
] | rahul20patni@gmail.com |
7bdbc7a11bdde9e5916deb7091b35bd212766c1d | 08db28fa3836c36433aa105883a762396d4883c6 | /spider/learning/day_01/01_url.py | 1359c9c42a557bf47dfc6cf4ab93d3ca22994db6 | [] | no_license | xieyipeng/FaceRecognition | 1127aaff0dd121319a8652abcfe8a59a7beaaf43 | dede5b181d6b70b87ccf00052df8056a912eff0f | refs/heads/master | 2022-09-19T07:02:33.624410 | 2020-06-02T03:03:58 | 2020-06-02T03:03:58 | 246,464,586 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | import urllib.request
# 学习网址 https://www.bilibili.com/video/av68030937?p=26
def load_data():
url = "http://www.baidu.com/"
# get请求
# http请求
# response:http相应对象
response = urllib.request.urlopen(url)
print(response)
# 读取内容 byte类型
data = response.read()
print(data)
# 将文件获取的内容转换成字符... | [
"3239202719@qq.com"
] | 3239202719@qq.com |
0d3a0639593a2f61d15a0d586b1eec308bd1662b | 933a4f98b3ab1df987bce525d20ca904b225140f | /scripts/slave/recipe_modules/chromium/tests/run_gn.py | 1fa3b5362367efa0f9276e1b2c2d605e9d943b9e | [
"BSD-3-Clause"
] | permissive | mcgreevy/chromium-build | 3881c489b4d9be2f113da755487808b3593f8156 | f8e42c70146c1b668421ee6358dc550a955770a3 | refs/heads/master | 2020-12-30T12:32:15.685191 | 2017-05-17T06:58:18 | 2017-05-17T06:58:18 | 91,419,271 | 0 | 2 | NOASSERTION | 2020-07-22T09:27:35 | 2017-05-16T05:52:45 | Python | UTF-8 | Python | false | false | 1,002 | py | # Copyright 2017 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'chromium',
'recipe_engine/platform',
'recipe_engine/properties',
]
def RunSteps(api):
api.chromium.set_config(
api.properties.get('... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
e146a9201f1636b25f025374ad8d9c41871ad505 | f0581fa08ef790606ca019890a2233f91b1c42a7 | /PythonSrc/Unused/Rotations/vector3d.py | 23e7968dd55e8668927443f19b0b467adbd8ada3 | [] | no_license | jaycoskey/IntroToPythonCourse | de758f0dd0a1b541edb2ef4dcc20950a8d8788bb | d1373ec6602584a6791fd48d37ae66ff5f104487 | refs/heads/master | 2023-02-22T16:32:50.533091 | 2021-01-27T08:22:14 | 2021-01-27T08:22:14 | 333,007,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | package rotations
import unittest
class Vector3d:
ZERO = Vector3d(0.0, 0.0, 0.0)
XUNIT = Vector3d(1.0, 0.0, 0.0)
YUNIT = Vector3d(0.0, 1.0, 0.0)
ZUNIT = Vector3d(0.0, 0.0, 1.0)
def __init__(self, *args):
if len(args) == 0:
self.x = self.y = self.z = 0.0
el... | [
"jay.coskey@gmail.com"
] | jay.coskey@gmail.com |
7b8e5a0b99e1f8250761f4bebafb28c015e5515a | b47f2e3f3298388b1bcab3213bef42682985135e | /experiments/heat-3d/tmp_files/1618.py | 79d9cc6c1db159c2a66cbdad061c4da75f285850 | [
"BSD-2-Clause"
] | permissive | LoopTilingBenchmark/benchmark | 29cc9f845d323431e3d40e878cbfc6d1aad1f260 | 52a3d2e70216552a498fd91de02a2fa9cb62122c | refs/heads/master | 2020-09-25T09:45:31.299046 | 2019-12-04T23:25:06 | 2019-12-04T23:25:06 | 225,975,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | from chill import *
source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c')
destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/1618.c')
procedure('kernel_heat_3d')
loop(0)
tile(0,2,16,2)
tile(0,4,16,4)
tile(0,... | [
"nashenruoyang@163.com"
] | nashenruoyang@163.com |
d929851f0eb039c525508cc703f4ebab44b783d8 | b44960d60c4969b2f2014cfc978a9a8ba1e584fa | /122.py | 789526cc3e7c00dc524292c8a662260111466325 | [] | no_license | sushmithasushi/player | 83650582689c9f5a9edc3aee3c46c40a051368c4 | 949672a23ee2dc31b4748fa221640fe6e85b5324 | refs/heads/master | 2020-06-17T12:43:39.010920 | 2019-07-22T01:28:19 | 2019-07-22T01:28:19 | 195,928,088 | 0 | 0 | null | 2019-07-09T03:45:57 | 2019-07-09T03:45:56 | null | UTF-8 | Python | false | false | 70 | py | n=int(input())
s=list(map(int,input().split()[:n]))
print(n*(n+1)//2)
| [
"noreply@github.com"
] | sushmithasushi.noreply@github.com |
9395a2ed51c260190fff3c4e43d459356f20f233 | ce9d22c3e0e06d5543b404d0c254a582231a0f4b | /tensorflow_federated/python/aggregators/measurements.py | fbf0d5aae3e8289aff9de732e98c67698bdac830 | [
"Apache-2.0"
] | permissive | stjordanis/federated | d9da8c68072a4eb7871f8e293dafebd7584a00c4 | 6819c65eb823dcb7f3f5666051529b9e2346cb28 | refs/heads/master | 2021-09-08T21:41:56.552453 | 2021-09-02T23:45:17 | 2021-09-02T23:46:21 | 191,418,366 | 0 | 0 | Apache-2.0 | 2019-06-11T17:25:27 | 2019-06-11T17:25:26 | null | UTF-8 | Python | false | false | 7,531 | py | # Copyright 2021, The TensorFlow Federated 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 applicable law o... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
9b029ba1462be18dcc18bfc84ccc15d1ca07a792 | 0c2583011200a5bed73315fde7ef30678075fce7 | /modules/db/entities/US_TOIMP.py | c7bdec4c93c6cdf081aa1872ccff8557411b87aa | [] | no_license | enzococca/pyarchinit_3 | 3d3b5784a3b2e4b753581f28064748043f8c47fe | 00626ba5c24d447fc54c267071f0584a2962182c | refs/heads/master | 2020-03-09T16:59:21.853411 | 2018-03-12T14:49:51 | 2018-03-12T14:49:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,869 | py | '''
Created on 19 feb 2018
@author: Serena Sensini
'''
class US_TOIMP(object):
#def __init__"
def __init__(self,
id_us,
sito,
area,
us,
d_stratigrafica,
d_interpretativa,
descrizione,
interpretazione,
periodo_iniziale,
fase... | [
"serena.sensini@gmail.com"
] | serena.sensini@gmail.com |
4dffd211b37de445ce2265d53a8f960213309ae9 | fc2d1f44ec35577b0e291f403907ccc8c7859edf | /docs/conf.py | d59a6ebf0dd656cf813d7cab8dbcd6f4446c78ff | [
"MIT"
] | permissive | sobolevn/python-humanfriendly | 35403b4e611f0f95ad474de8e8efd354f12b5369 | 03d1db48e8ab4539403a58d7dea7ef0bd6672ae3 | refs/heads/master | 2020-04-26T10:52:16.294536 | 2019-02-21T20:21:43 | 2019-02-21T20:21:43 | 173,498,753 | 0 | 0 | MIT | 2019-03-02T21:04:23 | 2019-03-02T21:04:23 | null | UTF-8 | Python | false | false | 2,325 | py | # -*- coding: utf-8 -*-
"""Documentation build configuration file for the `humanfriendly` package."""
import os
import sys
# Add the 'humanfriendly' source distribution's root directory to the module path.
sys.path.insert(0, os.path.abspath('..'))
# -- General configuration -----------------------------------------... | [
"peter@peterodding.com"
] | peter@peterodding.com |
5ef4c9611c9a041497ebe1c6441f572a0ea7280a | feca498db2f7819320bdc177fe6f9368fbd83ab9 | /loop_script_morph.py | e9bea5d9d9a3400aba9e49b6443b049e63d89e4a | [] | no_license | ModelDBRepository/241932 | a98155010f46f068533f746d08061540ebaf9a84 | ea9aabbbb29f086e924f837832b99cac1961e1cb | refs/heads/master | 2020-03-19T10:07:19.457538 | 2018-06-06T19:32:32 | 2018-06-06T19:32:32 | 136,344,942 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 46,194 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 2 10:32:29 2015
@author: rennocosta
This script is part of the publication Renno-Costa & Tort, 2017, JNeurosci
This script relates to the data presented in the Figure 5, 6, 7 and 8
Will run a single experiment with specific parameters determined below
Output data will b... | [
"tom.morse@yale.edu"
] | tom.morse@yale.edu |
cb7af099f940f5ba112e7f53d43e231bfca9550a | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/third_party/catapult/tracing/bin/run_py_tests | d5cf781888af6fb4e715bae9e5e21c30164b2f3a | [
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 1,115 | #!/usr/bin/env python
# Copyright (c) 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import platform
import sys
_CATAPULT_PATH = os.path.abspath(os.path.join(
os.path.dirname(__file__), os.path.pardir,... | [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com | |
ad40c75916ec2d3d84483c9477a39ee50804f258 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03089/s954098144.py | 4781af4d76b7517d6d52dd675494067d64a378b7 | [] | 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 | 272 | py | n = int(input())
B = [int(i) for i in input().split()]
ans = []
while B:
L = []
for i in range(len(B)):
if B[i] == i+1:
L.append(B[i])
if L:
ans.append(L[-1])
B.pop(L[-1]-1)
else:
print(-1)
exit()
for i in ans[::-1]:
print(i) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
75ca957fcc6b0ca47831ce5f73d697ab54cb8436 | 1d0a4750e216f301ec49a247bf7bf07cd61fa29f | /app/views/commuter/company_commuter_plan_view.py | ec9cd4dcec20664a89e39d135f1290141e2b2699 | [] | no_license | smoothbenefits/BenefitMY_Python | 52745a11db2cc9ab394c8de7954974e6d5a05e13 | b7e8474a728bc22778fd24fe88d1918945a8cfc8 | refs/heads/master | 2021-03-27T15:57:34.798289 | 2018-04-29T19:04:04 | 2018-04-29T19:04:04 | 24,351,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | from rest_framework.views import APIView
from django.http import Http404
from rest_framework.response import Response
from rest_framework import status
from app.models.commuter.company_commuter_plan import CompanyCommuterPlan
from app.serializers.commuter.company_commuter_plan_serializer import (
CompanyCommuterPl... | [
"jeffzhang_misc@hotmail.com"
] | jeffzhang_misc@hotmail.com |
a4b03be3990b0a990a9b9b5921833e1949890b55 | 27b4d1b7723845812111a0c6c659ef87c8da2755 | /PythonCookBook/1_数据结构和算法/查找最大或者最小的N个元素列表/03.py | de7b91bd9c47a32638d00d17ac4d93dab161ccb6 | [] | no_license | NAMEs/Python_Note | 59a6eff7b4287aaef04bd69fbd4af3faf56cccb4 | f560e00af37c4f22546abc4c2756e7037adcc40c | refs/heads/master | 2022-04-11T09:32:17.512962 | 2020-03-17T09:30:58 | 2020-03-17T09:30:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | '''
如果你想在一个集合中查找最小或最大的 N 个元素,并且 N 小于集合元素数量,
那么这些函数提供了很好的性能。因为在底层实现里面,首先会先将集合数据进行堆排
序后放入一个列表中
堆数据结构最重要的特征是 heap[0] 永远是最小的元素。并且剩余的元素可以很
容易的通过调用 heapq.heappop() 方法得到,该方法会先将第一个元素弹出来,然后
用下一个最小的元素来取代被弹出元素(这种操作时间复杂度仅仅是 O(log N),N 是
堆大小)。比如,如果想要查找最小的 3 个元素,你可以这样做:
当要查找的元素个数相对比较小的时候,函数 nlargest() 和 nsmallest() 是很
合... | [
"1558255789@qq.com"
] | 1558255789@qq.com |
c22b288eeec61c012ac1e9fb29b0cd92193615b1 | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/libsigc++.py | bd7663119f55fe29bf5236253c373c8e8888cf25 | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | from .base import GnuRecipe
class LibSigCppRecipe(GnuRecipe):
def __init__(self, *args, **kwargs):
super(LibSigCppRecipe, self).__init__(*args, **kwargs)
self.sha256 = '774980d027c52947cb9ee4fac6ffe2ca' \
'60cc2f753068a89dfd281c83dbff9651'
self.name = 'libsigc++'
... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
bdaca89a365a3445264646da386645b9b5fad002 | 03a2c1eb549a66cc0cff72857963eccb0a56031d | /acmicpc/14427.py | 133779d5c5f1c126eba92eb72a510a05dea57127 | [] | no_license | nobe0716/problem_solving | c56e24564dbe3a8b7093fb37cd60c9e0b25f8e59 | cd43dc1eddb49d6b5965419e36db708c300dadf5 | refs/heads/master | 2023-01-21T14:05:54.170065 | 2023-01-15T16:36:30 | 2023-01-15T16:36:30 | 80,906,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | import math
import sys
input = sys.stdin.readline
_DEFAULT = (10 ** 9 + 1, 1)
_GET = lambda x, y: min(x, y)
_SET = lambda i, v: (v, i)
n = int(input())
a = [int(x) for x in input().split()]
a = [_SET(i, v) for i, v in enumerate(a, start=1)]
m = int(input())
BASE = 2 ** math.ceil(math.log(n, 2))
st = [_DEFAULT] * BAS... | [
"sunghyo.jung@navercorp.com"
] | sunghyo.jung@navercorp.com |
3e0fc28c46e9bd40233e17d0b10f99cee105f0c6 | b2ed893d04f04eeaf7209187133de7431c476a96 | /icc/merge_data.py | 7e76b3267853a20f5be07f2f3caa9dc3cd1a9150 | [] | no_license | liruikaiyao/workshop | 4b5221259f59ad504d87d73c31f5fa0e58d4a1f0 | 6dbde74e35ef02f5e92c76dcdd1909f1d0afb89e | refs/heads/master | 2021-01-17T16:09:13.248109 | 2015-08-05T09:43:21 | 2015-08-05T09:43:21 | 23,420,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #coding:utf-8
from config.db import bda
all_cluster=bda['all_cluster']
db_list=bda.collection_names()
a=db_list
db_list=[]
for elem in a:
if len(elem)==32:
db_list.append(elem)
for elem in db_list:
db=bda[elem]
for item in db.find():
all_cluster.insert(item)
| [
"liruikaiyao@gmail.com"
] | liruikaiyao@gmail.com |
aa63d3f03980b5759d81dab4f148f013d82a0cab | f62fd455e593a7ad203a5c268e23129473d968b6 | /python-watcher-1.0.1/watcher/tests/decision_engine/model/faker_cluster_and_metrics.py | e0664158a07fed9442d6ba6ed109f10802e82eff | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | MinbinGong/OpenStack-Ocata | 5d17bcd47a46d48ff9e71e2055f667836174242f | 8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3 | refs/heads/master | 2021-06-23T05:24:37.799927 | 2017-08-14T04:33:05 | 2017-08-14T04:33:05 | 99,709,985 | 0 | 2 | null | 2020-07-22T22:06:22 | 2017-08-08T15:48:44 | Python | UTF-8 | Python | false | false | 5,643 | py | # -*- encoding: utf-8 -*-
#
# Authors: Vojtech CIMA <cima@zhaw.ch>
# Bruno GRAZIOLI <gaea@zhaw.ch>
# Sean MURPHY <murp@zhaw.ch>
#
# 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 ... | [
"gongwayne@hotmail.com"
] | gongwayne@hotmail.com |
75508448eb04949efc0a5950f4ce7749c1dfc7fe | 2b16a66bfc186b52ed585081ae987e97cab8223b | /script/document_classification/import_lr_wiki_classification_result.py | d1509efa93e4dbe0e8ffc75c8f82eb869f157495 | [] | no_license | OldPickles/SKnowledgeGraph | d334000c7a41dd5014fd59154bbe070fcc754e4c | 6d131ad6bf3a09a5ce6461fa03690117d703c9e8 | refs/heads/master | 2022-01-09T11:27:00.043712 | 2019-06-06T07:57:06 | 2019-06-06T07:57:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from db_importer.wiki_classification_result import WikiClassificationResultDBImporter
if __name__ == "__main__":
importer = WikiClassificationResultDBImporter()
importer.import_lr_wiki_classification_result(result_json_file_name="lr_result.v2.json")
| [
"467701860@qq.com"
] | 467701860@qq.com |
7ec0f70abd775cb479257cc103252641eda0f42f | 5b93930ce8280b3cbc7d6b955df0bfc5504ee99c | /nodes/Ramsundar18TensorFlow/D_Chapter3/A_MathematicalReview/B_LossFunctions/index.py | 97543b4baacbc2c725c33517fa3f7795429b1173 | [] | no_license | nimra/module_gen | 8749c8d29beb700cac57132232861eba4eb82331 | 2e0a4452548af4fefd4cb30ab9d08d7662122cf4 | refs/heads/master | 2022-03-04T09:35:12.443651 | 2019-10-26T04:40:49 | 2019-10-26T04:40:49 | 213,980,247 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 15,909 | py | # Lawrence McAfee
# ~~~~~~~~ import ~~~~~~~~
from modules.node.HierNode import HierNode
from modules.node.LeafNode import LeafNode
from modules.node.Stage import Stage
from modules.node.block.CodeBlock import CodeBlock as cbk
from modules.node.block.ImageBlock import ImageBlock as ibk
from modules.node.block.MarkdownB... | [
"lawrence.mcafee@gmail.com"
] | lawrence.mcafee@gmail.com |
b311deac9287395ba96912fa77bba8b7069189ba | 1e1c85d0d74bc1b111e77f082cd24c94219d7eb0 | /VE-Tests/tests/KD/test_device_logout.py | 4fcd4b6840117995b378d5aa39690bbfe93167a1 | [] | no_license | anshsaikia/GSSDeliverables-YesProject | b6f5e4de8d853ce21dfe7401c4b9179c40f32a89 | ed786ccfd7b8c344802c7ff6d0cfd4afbffe015e | refs/heads/master | 2020-04-06T04:07:49.034461 | 2017-02-24T13:39:48 | 2017-02-24T13:39:48 | 83,044,504 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | import pytest
__author__ = 'srevg'
from tests_framework.ve_tests.ve_test import VeTestApi
from vgw_test_utils.IHmarks import IHmark
@IHmark.LV_L2
@IHmark.O_iOS
@IHmark.O_Android
@IHmark.MF1530
@IHmark.MF1342
@pytest.mark.commit
@pytest.mark.MF1530_LogOut
@pytest.mark.MF1342_LogOut
@pytest.mark.level2
def test_log_out... | [
"anshuman.saikia@lnttechservices.com"
] | anshuman.saikia@lnttechservices.com |
fd30b078e6d7cffb844e3d1190637df352e04368 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /able_hand_and_little_case/own_group.py | b3f4f5a358d913248b2a972a20c5acd10078ea22 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py |
#! /usr/bin/env python
def be_point(str_arg):
do_new_part(str_arg)
print('right_case')
def do_new_part(str_arg):
print(str_arg)
if __name__ == '__main__':
be_point('eye_or_person')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
e07a8919ecdfb3638a538d4e5a1d875b6b48b2b3 | bf20548c143fdaecc1d8b5746dab142414b27786 | /galaxy-tool-BLAST/utilities/bold/add_taxonomy_bold.py | 1f03eabf49e5f4c97606b6edbf03d50fbf3cf580 | [] | no_license | zeromtmu/galaxy-tool-temp-2019 | e9f58956b014e2e4e9260b028c14549f90756f05 | 704c3b850e8ddf5420dc458a0282717ab2268c40 | refs/heads/master | 2021-10-25T05:02:55.328975 | 2019-04-01T11:40:41 | 2019-04-01T11:40:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,294 | py | """
"""
from Bio import SeqIO
import argparse
parser = argparse.ArgumentParser(description='Add taxonomy to BOLD fasta file')
parser.add_argument('-t', '--taxonomy', dest='taxonomy', type=str, required=True)
parser.add_argument('-g', '--gbif_taxonomy', dest='gbif', type=str, required=True)
parser.add_argument(... | [
"martenhoogeveen@gmail.com"
] | martenhoogeveen@gmail.com |
a22cfb2be3ed7a20604c5c82392355d9e69ae696 | 008bc57ad937f0d76edbe29376220b33ff2fddc1 | /CRC/crc_report_regression_testing.py | b48f74725a8653f7462fc73b88bfeed1032599aa | [] | no_license | chetandg123/cQubeTesting-2.0 | f1b15d77401e677a6e4d2e9e497a364e3dd001b2 | bd3ab2b6c8be65bfc1aef3a42585360d70483bd5 | refs/heads/master | 2023-07-12T22:10:51.705709 | 2021-08-11T11:20:51 | 2021-08-11T11:20:51 | 374,532,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,482 | py | import unittest
from CRC.check_clusterwise_records import crc_schoolevel_records
from CRC.check_crc_tabledata_by_selecting_districts import districtwise_tabledata
from CRC.check_districtwise_records import test_crc_report_districtwise
from CRC.check_homebtn import Homeicon
from CRC.check_table_data_order import Check_... | [
"chetan.goudar@tibilsolutions.com"
] | chetan.goudar@tibilsolutions.com |
38ba24a26d1eec490788d33c922c28a26fe279e3 | 5dc0534f17d34562f5eb90061bd77844db3110d9 | /misc/deep_learning_notes/Ch4_Recurrent_Networks/002_vanila_RNN_with_edf/edf.py | 7f18aacd0cfd85d08e6a79111b1cccd0674a4fce | [
"MIT"
] | permissive | johnnymck/MoocX | 202394d064e8a7ebd269876f473b1cef43104c1b | 52c8450ff7ecc8450a8adc2457233d5777a3d5bb | refs/heads/master | 2023-03-21T04:40:04.069791 | 2017-09-15T12:49:19 | 2017-09-15T12:49:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,492 | py | import numpy as np
DT = np.float32
eps = 1e-12
# Globals
components = []
params = []
# Global forward/backward
def Forward():
for c in components:
c.forward()
def Backward(loss):
for c in components:
if c.grad is not None: c.grad = DT(0)
loss.grad = np.ones_like(loss.value)
for c in... | [
"kinshuk.ram@gmail.com"
] | kinshuk.ram@gmail.com |
1c6210564d19565b0fb0d19d5a16faa49512c900 | f5c3841a08c3faa1818d3ee210c8b9921dc9499d | /parsing_JSON_1.py | e41a258c27dd0efb92e08a6fbfd4055cf60134e0 | [] | no_license | villancikos/realpython-book2 | a4e74b51fe1d3a8e5af206c2938ff4966ef00df6 | 6c9a2ef714531f1163f3c78c80fad335661dacf2 | refs/heads/master | 2016-09-06T10:06:49.227106 | 2014-09-22T18:56:58 | 2014-09-22T18:56:58 | 23,493,659 | 1 | 1 | null | 2014-09-19T23:35:40 | 2014-08-30T14:44:52 | Python | UTF-8 | Python | false | false | 193 | py | # JSON Parsing 1
import json
# decodes the json file
output = json.load(open('cars.json'))
# display output screen
print output
print " "
print json.dumps(output, indent=4, sort_keys=True)
| [
"villancikos@gmail.com"
] | villancikos@gmail.com |
354ea62ee68b6d87dc18276952c5f8d9254a2185 | 747f759311d404af31c0f80029e88098193f6269 | /addons/crm_claim_refund/__openerp__.py | bdb21add0a4b5d9b880d8bff8907d124c775c8d9 | [] | 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 | 69 | py | /home/openerp/production/extra-addons/crm_claim_refund/__openerp__.py | [
"geerish@omerp.net"
] | geerish@omerp.net |
681a5376528ffab913b8a88d30fc3a66a36752f2 | 5456502f97627278cbd6e16d002d50f1de3da7bb | /chrome/test/mini_installer/verifier_runner.py | 9f3f99f54ca5533d699a6f03c95fc058d6f53633 | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import file_verifier
import process_verifier
import registry_verifier
class VerifierRunner:
"""Runs all Verifiers."""
def __init__(self):
... | [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com |
e5d1941ea66a0350ed8fe6c0a7e0f6f1275e4f81 | 061c36c4b33dd0c47d9d62c2057559d4c5973681 | /hdfs_find_replication_factor_1.py | 8745848be2d4daa4237a72ad514a994daa990440 | [
"MIT"
] | permissive | ashkankamyab/DevOps-Python-tools | 0847f9e1b74d7864d17b0a9833beeef1f149e5a5 | dc4b1ce2b2fbee3797b66501ba3918a900a79769 | refs/heads/master | 2022-10-09T15:23:31.108086 | 2022-09-01T14:32:56 | 2022-09-01T14:32:56 | 189,855,037 | 1 | 0 | NOASSERTION | 2019-06-02T14:15:18 | 2019-06-02T14:15:18 | null | UTF-8 | Python | false | false | 5,894 | py | #!/usr/bin/env python
# coding=utf-8
# vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2018-11-28 16:37:00 +0000 (Wed, 28 Nov 2018)
#
# https://github.com/HariSekhon/DevOps-Python-tools
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on ... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
2602ad8b379a491de681ea75acdc8be364eec2e4 | c6aea4804eae5a9390f1b49ab430292b3ddadb5b | /ipython/ipython_config.py | 49f484b383369f26bfb8fe49ac6d72b9d21462c6 | [] | no_license | dandavison/dotfiles | eceb48a2e831a9cf792a5d8ca5434610b20d0151 | b3ee393ac9585ea22b3747d65f3674f7aeeac947 | refs/heads/main | 2023-08-28T16:34:25.815800 | 2023-08-13T23:16:59 | 2023-08-13T23:16:59 | 244,988,871 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | # print('ipython_config.py')
c = get_config()
# (NoColor, Linux, LightBG)
# c.TerminalInteractiveShell.colors = 'NoColor'
| [
"dandavison7@gmail.com"
] | dandavison7@gmail.com |
74bb10c845c3b32c868125b06e7cbd85e69d75f9 | cf58c2c216f6c76c71b5a04f72d79fb1d58e4b64 | /homeassistant/components/recorder/db_schema.py | c97f99b9e8cf0d8a57ef2aa630bbb5f7e8a09669 | [
"Apache-2.0"
] | permissive | whtsky/home-assistant | c301a7a0c2f8e94806d411b705c8f7b5939355d2 | 2ea5811e3a34e228908802e18c29af1c2fc249c5 | refs/heads/dev | 2023-08-19T07:37:29.365289 | 2023-02-17T22:21:28 | 2023-02-17T22:21:28 | 204,410,639 | 1 | 0 | Apache-2.0 | 2023-02-22T06:14:25 | 2019-08-26T06:30:12 | Python | UTF-8 | Python | false | false | 26,470 | py | """Models for SQLAlchemy."""
from __future__ import annotations
from collections.abc import Callable
from datetime import datetime, timedelta
import logging
import time
from typing import Any, cast
import ciso8601
from fnvhash import fnv1a_32
from sqlalchemy import (
JSON,
BigInteger,
Boolean,
ColumnE... | [
"noreply@github.com"
] | whtsky.noreply@github.com |
eae6bc8c7738ace5b044e7819c925a0627ad7571 | 8049911411405e9db412fe81a9ed8869f28907ba | /python test/5.py | 2df3a5715cfd2ed1d779d03bff8bed2a4fe0e68f | [
"MIT"
] | permissive | merry-hyelyn/LIKE_LION | e55a7b10a7c3547cd051b1f1cbebee67f9db0649 | 26d6642a88d5c075447c60d43a70a7d0f082fb07 | refs/heads/master | 2020-05-04T09:12:35.787141 | 2019-07-25T14:36:07 | 2019-07-25T14:36:07 | 179,063,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | list1 = ['a', 'c', 'd', 'b', 'e']
list1.sort()
list1.reverse()
print(list1)
| [
"h1335@naver.com"
] | h1335@naver.com |
9e6aaeb8d65495a48c801f2d753a356698b1c673 | bffc8513026009bf6f8bda93b8cc779d9cfefea0 | /parser_table.py | 1e198324d636de7b192f5d330ad329eeff99193c | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | Stanford-PERTS/mindsetmeter | 9e1a764271c9eedc0637eb5a8ab95dd863a65af3 | 74c0c9a3e908f54a9cae07e171b572225290492a | refs/heads/master | 2022-10-25T14:22:37.916936 | 2020-06-14T17:37:10 | 2020-06-14T17:37:10 | 272,250,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215,305 | py |
# parser_table.py
# This file is automatically generated. Do not edit.
_tabversion = '3.2'
_lr_method = 'LALR'
_lr_signature = b'\x14\xd0^\xea\x1d8\x17\x96\xba%\xf1\xb7P\xab\xe7\x0e'
_lr_action_items = {'PASS':([0,2,10,19,22,23,24,25,45,46,53,68,69,75,79,80,91,95,109,113,115,131,151,154,156,157,158,161,162,163,... | [
"chris@perts.net"
] | chris@perts.net |
d7b27284fcf8e687c0ce5cdc8fc1586f625817db | 26aeec7c6571012e85cd6bdd42560988664dc845 | /0x04-python-more_data_structures/1-search_replace.py | bf02407fb835033abc2ea61c84569a868d1e5c89 | [] | no_license | KoeusIss/holbertonschool-higher_level_programming | 3d6ac70d9630c516fa95fcd2d6209d8591bf4169 | 446ca491156ac93134e5c15f3568cb684079d67e | refs/heads/master | 2022-12-11T15:22:58.164551 | 2020-09-24T09:51:45 | 2020-09-24T09:51:45 | 259,189,990 | 1 | 4 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | #!/usr/bin/python3
def search_replace(my_list, search, replace):
"""
Replaces all occurences of an element by another in a new list
"""
return [(replace if x == search else x) for x in my_list]
| [
"sebri.issam@gmail.com"
] | sebri.issam@gmail.com |
ca1da8e85b269c0081f63c09d3201e66d15324ae | 131921d5ed69ac5d470520a3fbb651d1374a668d | /accounts/models.py | e04dcc920bc257ac68ee4d62006da384f97c2532 | [] | no_license | SyedMaazHassan/temporary-one | 07fc31673b3eb8368014878a22c747d39b259cb3 | cc67107cabcb2a092b79fbc7d8b5369592a15241 | refs/heads/master | 2023-03-02T11:28:08.813659 | 2021-02-10T10:02:52 | 2021-02-10T10:02:52 | 337,535,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,924 | py | import uuid
from django.dispatch import receiver
from django.db import models
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser
)
from django.db.models.signals import post_save
from saidatech_admin.models import saidatech_admin_profile
class MyUserManager(BaseUserManager):
def creat... | [
"hafizmaazhassan33@gmail.com"
] | hafizmaazhassan33@gmail.com |
aacf5dba2a25fe59933c529c454fa74f4d0e7abb | 666c1b8a36d85e33cae95c5b13f5212098492586 | /openpyxl/worksheet/filters.py | e8242d6b2cd517b0b591745dc333e6780dcbf38e | [
"MIT"
] | permissive | nickpell/openpyxl | 1e5f2d0757bd254271e9eb9fdec1d8423984afc4 | 160c730c419f3796d2208b05c3b26a2b2fc10eb1 | refs/heads/master | 2020-04-10T01:46:45.896392 | 2018-12-06T20:15:17 | 2018-12-06T20:15:17 | 160,725,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,946 | py | from __future__ import absolute_import
# Copyright (c) 2010-2018 openpyxl
from openpyxl.compat import unicode
from openpyxl.descriptors.serialisable import Serialisable
from openpyxl.descriptors import (
Alias,
Typed,
Set,
Float,
DateTime,
NoneSet,
Bool,
Integer,
String,
Sequenc... | [
"npellegrino@dimagi.com"
] | npellegrino@dimagi.com |
6ca67602d21d354937356280ae7d8a91c75c5990 | 26be9ea17640d29d6a8a576cbf306f71675bdfb1 | /pyroprint/optedredger.py | c46bc80acf83ea548a2c338e430e1a6e746c1c47 | [] | no_license | meredithhitchcock/wabio | 076a69efa0e38da0cbba348114408e2354fdde76 | f3de4b8ca6f98d6ec2fa3989214871c2a3781c37 | refs/heads/master | 2021-01-18T14:50:52.630167 | 2014-10-04T04:28:58 | 2014-10-04T04:28:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,812 | py | import pymysql
import string
import sys
primer = "CGTGAGGCTTAACCTT"
revcomprimer = "AAGGTTAAGCCTCACG"
seqFile1 = ""
ratioSeq1 = ""
seqFile2 = ""
ratioSeq2 = ""
fileDir = "./Genome Sequences/rDNA plasmid sequences/23-5"
outfile = ""
# A quick tool to dredge the opterons from .seq files
# Takes in three params:
# - th... | [
"elkingtonx@gmail.com"
] | elkingtonx@gmail.com |
e3bb6cda196d50d9aa9a0366a7e535e4d6cbe821 | 9fb7bc79fc3e9224de8a63189515044812a1ff41 | /scripts/general_utils.py | d490031b36efe0659d6834af14b5d1905f111691 | [
"MIT"
] | permissive | dciborow/amlsdummy | 2fb4c0ddb39ec40140d4811d23d832c009dee139 | 91d2732dd485002b16c28353263b62c674a69399 | refs/heads/master | 2022-06-19T11:28:46.961813 | 2020-02-09T20:51:15 | 2020-02-09T20:51:15 | 239,918,986 | 0 | 0 | MIT | 2020-02-12T03:30:20 | 2020-02-12T03:30:19 | null | UTF-8 | Python | false | false | 3,210 | py | import pickle
import os
from enum import Enum
from datetime import datetime, timedelta
class JobType(Enum):
real_time_scoring = "RealTimeScoring"
batch_scoring = "BatchScoring"
class JobLog:
step_start = "start"
step_end = "end"
logs_directory = "Logs"
general_stats = "Overview.csv"
def _... | [
"grecoe@microsoft.com"
] | grecoe@microsoft.com |
b8e53160b6e640f632a827ac6a40be6f7edb9e58 | 16450d59c820298f8803fd40a1ffa2dd5887e103 | /SWEA/2027_대각선출력.py | 33b1e9b766ac8201bf9d5378fb3649f247886e87 | [] | no_license | egyeasy/TIL_public | f78c11f81d159eedb420f5fa177c05d310c4a039 | e2f40eda09cb0a65cc064d9ba9b0e2fa7cbbcb38 | refs/heads/master | 2021-06-21T01:22:16.516777 | 2021-02-02T13:16:21 | 2021-02-02T13:16:21 | 167,803,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | """
주어진 텍스트를 그대로 출력하세요.
> 입력
> 출력
#++++
+#+++
++#++
+++#+
++++#
"""
print("""#++++
+#+++
++#++
+++#+
++++#""")
# 반성
# 1. multiline comment를 활용하는 방법
# 2. print()를 여러 방법으로 쓰는 법 | [
"dz1120@gmail.com"
] | dz1120@gmail.com |
c4f9837ca141aa95d0af984632f977212fccf8c7 | ab0315bcded75c10c591076b22ed8ff664ee76af | /fig4/config_scf_10mods_200213.py | 5a3c6829ca9d92207ab9ba95c94ca871a795916d | [] | no_license | mukamel-lab/BICCN-Mouse-MOp | 389f62492986a2ffe4278ed16f59fc17dc75b767 | 8058ab8ae827c6e019fff719903b0ba5b400931d | refs/heads/master | 2021-07-06T11:14:25.401628 | 2020-09-30T04:54:27 | 2020-09-30T04:54:27 | 189,758,115 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,734 | py | #!/usr/bin/env python3
"""An example configuration file
"""
import sys
import os
# # Configs
name = 'mop_10mods_200213'
outdir = '/cndd/fangming/CEMBA/data/MOp_all/results'
output_pcX_all = outdir + '/pcX_all_{}.npy'.format(name)
output_cells_all = outdir + '/cells_all_{}.npy'.format(name)
output_imputed_data_format... | [
"fmxie1993@gmail.com"
] | fmxie1993@gmail.com |
23be186718ed310752b58249fce51092af45e1c1 | 85f5dff291acf1fe7ab59ca574ea9f4f45c33e3b | /api/tacticalrmm/agents/migrations/0054_alter_agent_goarch.py | d2f26e1c4156e7ec3053a815a89ca418cf2919a9 | [
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sadnub/tacticalrmm | a4ecaf994abe39244a6d75ed2166222abb00d4f4 | 0af95aa9b1084973642da80e9b01a18dcacec74a | refs/heads/develop | 2023-08-30T16:48:33.504137 | 2023-04-10T22:57:44 | 2023-04-10T22:57:44 | 243,405,684 | 0 | 2 | MIT | 2020-09-08T13:03:30 | 2020-02-27T01:43:56 | Python | UTF-8 | Python | false | false | 498 | py | # Generated by Django 4.0.4 on 2022-06-06 04:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('agents', '0053_remove_agenthistory_status'),
]
operations = [
migrations.AlterField(
model_name='agent',
name='goarc... | [
"dcparsi@gmail.com"
] | dcparsi@gmail.com |
5ea614fee71884c24f32e860daef852091238e03 | 5da5473ff3026165a47f98744bac82903cf008e0 | /packages/google-cloud-securitycenter/samples/generated_samples/securitycenter_v1beta1_generated_security_center_update_source_sync.py | b5e8b229d69c9ca234a50e7b49e7d975e67ed7f9 | [
"Apache-2.0"
] | permissive | googleapis/google-cloud-python | ed61a5f03a476ab6053870f4da7bc5534e25558b | 93c4e63408c65129422f65217325f4e7d41f7edf | refs/heads/main | 2023-09-04T09:09:07.852632 | 2023-08-31T22:49:26 | 2023-08-31T22:49:26 | 16,316,451 | 2,792 | 917 | Apache-2.0 | 2023-09-14T21:45:18 | 2014-01-28T15:51:47 | Python | UTF-8 | Python | false | false | 1,863 | py | # -*- coding: utf-8 -*-
# Copyright 2023 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"
] | googleapis.noreply@github.com |
bf9079fb3d60a76e417d01ad38efd6a8b18c6bd4 | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/count-number-of-distinct-integers-after-reverse-operations.py | 24dbdf067e7e0c6f952bd0ae88007568b737487c | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 707 | py | # Time: O(nlogr), r = max(nums)
# Space: O(n)
# hash table
class Solution(object):
def countDistinctIntegers(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
def reverse(n):
result = 0
while n:
result = result*10 + n%10
... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
cb51b6fcc0d3bf4a8423b790d3e33d50c46cfa76 | 80907e3f9e998abc375afcc6e6546c88ee023252 | /badgepad/cmdline.py | 4fb20087f1865f5d46be5d1143852f084c2adcdb | [] | no_license | toolness/badgepad | 5ac1eb21bf426335e81cb9400f5180b6542dea43 | 2c1e221efca12054b843aef066798dd03f6f2533 | refs/heads/master | 2021-01-10T20:03:45.630275 | 2013-04-08T19:46:43 | 2013-04-08T19:46:43 | 9,220,546 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,051 | py | import os
import sys
import shutil
import argparse
from . import pkg_path
from .project import Project
from .build import build_website
from .server import start_auto_rebuild_server
def nice_dir(path, cwd=None):
if cwd is None:
cwd = os.getcwd()
path = os.path.realpath(path)
cwd = os.path.realpath... | [
"varmaa@gmail.com"
] | varmaa@gmail.com |
e2ee762af542c4e17ef39d01c46d47c5bbc7d2ab | 3af9425f048876de388d2a5dc4f361132d03a387 | /algorithms/source/최단경로/1.Shortest path(1753_Dijkstra).py | d4b5deea16f72a032b83b6eec204466c755aa8db | [] | no_license | hwanginbeom/TIL | 6fab0d06db9cb9d78c03e3b3392dedcdaf799df6 | 933348f08e5bd58527dcb3732c092a83581e471b | refs/heads/master | 2021-08-15T06:15:21.452951 | 2021-08-13T14:56:09 | 2021-08-13T14:56:09 | 146,391,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,284 | py | '''
문제
방향그래프가 주어지면 주어진 시작점에서 다른 모든 정점으로의 최단 경로를 구하는 프로그램을 작성하시오.
단, 모든 간선의 가중치는 10 이하의 자연수이다.
입력
첫째 줄에 정점의 개수 V와 간선의 개수 E가 주어진다. (1≤V≤20,000, 1≤E≤300,000) 모든 정점에는 1부터 V까지 번호가
매겨져 있다고 가정한다. 둘째 줄에는 시작 정점의 번호 K(1≤K≤V)가 주어진다. 셋째 줄부터 E개의 줄에 걸쳐 각 간선을
나타내는 세 개의 정수 (u, v, w)가 순서대로 주어진다. 이는 u에서 v로 가는 가중치 w인 간선이 존재한다는 뜻이다. u와 v... | [
"rydn2002@gmail.com"
] | rydn2002@gmail.com |
f3bbe6e34b15c175b28daa543e9a87e025c79843 | b647129cb448b4991059dcfb44d8279b4c8f18dd | /pyEX/commodities/commodities.py | cfcfbb6c68aaaf35f81c2bbf3438af9571a42525 | [
"Apache-2.0"
] | permissive | jmailloux/pyEX | 433a9aeab3429edb5af1c2f18dc533011ab15c92 | 2101e8c53a9080ea8b00b28a758be441095d5048 | refs/heads/main | 2023-03-24T06:36:43.544611 | 2021-03-17T03:30:40 | 2021-03-17T03:30:40 | 345,503,430 | 0 | 0 | Apache-2.0 | 2021-03-08T02:06:50 | 2021-03-08T02:06:49 | null | UTF-8 | Python | false | false | 2,944 | py | # *****************************************************************************
#
# Copyright (c) 2020, the pyEX authors.
#
# This file is part of the pyEX library, distributed under the terms of
# the Apache License 2.0. The full license can be found in the LICENSE file.
#
from enum import Enum
from functools import ... | [
"t.paine154@gmail.com"
] | t.paine154@gmail.com |
f1034afe44a9c9c5e8a0e96135c0e964deace10b | 44b636e56d088c98949bf8341b8edb4df7af0f68 | /l10n_br_nfe_import/wizard/__init__.py | debf07d977e3ca124c545a641dcf6b15bf41ada1 | [
"MIT"
] | permissive | deborapoh/odoo-brasil | e579d54dd86e7e45cee2b1892193d8b9aa3a11d1 | 603aae00dfeef8087036dbcd2f8c9a5150576916 | refs/heads/13.0 | 2022-12-01T07:28:11.423607 | 2020-08-07T13:36:23 | 2020-08-07T13:36:23 | 286,156,023 | 0 | 1 | MIT | 2020-08-09T22:05:06 | 2020-08-09T02:54:03 | null | UTF-8 | Python | false | false | 25 | py | from . import import_nfe
| [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
19b3d339d591f72252203b511ed7e437a59647f3 | 5955ea34fd72c719f3cb78fbb3c7e802a2d9109a | /ITERATOR_GENERATOR/ITERATOR/Sample/factorial_iterated.py | cbbabe042f1a81d9ed66d5bdd9dd2ac8668ab5d6 | [] | no_license | AndreySperansky/TUITION | 3c90ac45f11c70dce04008adc1e9f9faad840b90 | 583d3a760d1f622689f6f4f482c905b065d6c732 | refs/heads/master | 2022-12-21T21:48:21.936988 | 2020-09-28T23:18:40 | 2020-09-28T23:18:40 | 299,452,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | """Итеральное исчисление факториала работает быстрее рекурсивного"""
def iterative_factorial(n):
if n == 0 or n==1:
res = 1
return res
else:
res = 1
for i in range(2, n+1):
res = res * i
return res
num = abs(int(input("Введите целое число: ")))
print("Фактор... | [
"andrey.speransky@gmail.com"
] | andrey.speransky@gmail.com |
3edd594c112f2a201b8ec695395ac0a413286f35 | b8e3ceb93c08f9a8af776a78a9479b1dadb498b5 | /wcsinteractive/wcsinteractive/starmapper/__init__.py | fd47b586f41019548e3af4cca7173081afa447a0 | [] | no_license | sholmbo/photometry | fcb3e153059129cef6e91bcca30d74703035b7b9 | be2e20d93ca6ca3a2b20f3ba99b0e166a4687758 | refs/heads/master | 2023-09-04T04:22:09.547708 | 2021-10-26T12:53:30 | 2021-10-26T12:54:49 | 307,145,536 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | from .starmapper import StarMapper
| [
"simonholmbo@gmail.com"
] | simonholmbo@gmail.com |
917574d4ba87f4c467e7867dc9e6650e93fc9a21 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2164/60606/306710.py | 97804c69d658036e62e5f0f4c83a491771e81aae | [] | 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 | 147 | py | test_num = int(input())
s = input()
if s=="aaaab":
print(3)
print(7)
elif test_num==3 and s=="aab":
print(1)
print(8)
print(0)
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
32a2ca42eaf13c97db25cff13c3c05b9250f601f | 3854452cb10bc4c8dbadaf2328d0f4706300d596 | /pypet/tests/integration/environment_multiproc_test.py | 0b4698d87a66e3c3d4d6d945904694321a686ae5 | [
"BSD-3-Clause"
] | permissive | henribunting/pypet | 852e9905957a298bf1035f1b10f45e4d053dcc95 | bcbdffe1dc6c55ff7ac4a9746b990d2060be55f0 | refs/heads/develop | 2021-01-13T15:36:09.249761 | 2015-06-04T09:07:36 | 2015-06-04T09:07:36 | 36,863,306 | 0 | 0 | null | 2015-06-04T10:14:36 | 2015-06-04T10:14:34 | Python | UTF-8 | Python | false | false | 10,503 | py | __author__ = 'Robert Meyer'
import logging
import random
import os
from pypet import pypetconstants
from pypet.environment import Environment
from pypet.tests.integration.environment_test import EnvironmentTest, ResultSortTest,\
TestOtherHDF5Settings2, multiply
from pypet.tests.testutils.ioutils import run_suite,... | [
"robert.meyer@ni.tu-berlin.de"
] | robert.meyer@ni.tu-berlin.de |
caf2fecb194e07ce6842ae03cc70ae308b64a77b | 6444622ad4a150993955a0c8fe260bae1af7f8ce | /djangoenv/lib/python2.7/site-packages/django/contrib/redirects/middleware.py | 88bdfe488ab088fde0477ae06a0433d5a7196195 | [] | no_license | jeremyrich/Lesson_RestAPI_jeremy | ca965ef017c53f919c0bf97a4a23841818e246f9 | a44263e45b1cc1ba812059f6984c0f5be25cd234 | refs/heads/master | 2020-04-25T23:13:47.237188 | 2019-03-22T09:26:58 | 2019-03-22T09:26:58 | 173,138,073 | 0 | 0 | null | 2019-03-22T09:26:59 | 2019-02-28T15:34:19 | Python | UTF-8 | Python | false | false | 1,961 | py | from __future__ import unicode_literals
from django import http
from django.apps import apps
from django.conf import settings
from django.contrib.redirects.models import Redirect
from django.contrib.sites.shortcuts import get_current_site
from django.core.exceptions import ImproperlyConfigured
from django.utils.deprec... | [
"jeremyrich@free.fr"
] | jeremyrich@free.fr |
27a01cd8a0085e4c72daeb98b6450a52198af332 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/CISCO-LWAPP-DHCP-MIB.py | 8a0c218950d0431114ff485c5d7543889a404acf | [
"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 | 16,226 | py | #
# PySNMP MIB module CISCO-LWAPP-DHCP-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-LWAPP-DHCP-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 17:47:56 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
35d4b0512b4879f6c8ead169c23166a092997977 | 97be865468706b5776993024d55d3229995ab2cd | /StreamGeneration/GenerateHQD.py | 78f096bb6a4391ef693d244c1e388e674e20bdb7 | [] | no_license | ZhuJiahui/ECTH | b7dd369b958b21a6e9c2e8ad97126022aa03247c | 8a8dbf9713e220f74dfcaf893b36d110c0555f46 | refs/heads/master | 2021-01-02T22:44:13.479021 | 2015-06-06T06:59:53 | 2015-06-06T06:59:53 | 29,050,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,470 | py | # -*- coding: utf-8 -*-
'''
Created on 2014年12月27日
@author: ZhuJiahui506
'''
import os
import time
from TextToolkit import quick_write_list_to_text
'''
Step 3
Compute EM weight of each Weibo and ordered by its EM weights to generate the high quality data.
So the original data was changed.
'''
def generate_high_qua... | [
"zhujiahui@outlook.com"
] | zhujiahui@outlook.com |
2575fcfda27f77fbd034558e815ed42659a70e22 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1711+564/sdB_pg_1711+564_coadd.py | a317f3971b126e1513af2c8cbe3cd9d5030ee583 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[258.155417,56.418942], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_1711+564/sdB_pg_1711+564_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
c94c7df584c83a447b8988023b95bfe4f1d4c8fb | ae87b11560c543cb678c52a28916ea2252d7aa52 | /plaso/parsers/winreg_plugins/appcompatcache.py | b289c8f42fc8d33291badb2471c08f744e4129e0 | [
"Apache-2.0"
] | permissive | CNR-ITTIG/plasodfaxp | 19ccf77d0be62cfa8a9b246eb6797cf64a480d80 | 923797fc00664fa9e3277781b0334d6eed5664fd | refs/heads/master | 2016-09-13T11:14:08.877399 | 2016-04-11T15:01:42 | 2016-04-11T15:01:42 | 55,975,921 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,748 | py | # -*- coding: utf-8 -*-
"""Windows Registry plugin to parse the Application Compatibility Cache key."""
import construct
import logging
from plaso.events import time_events
from plaso.lib import binary
from plaso.lib import eventdata
from plaso.parsers import winreg
from plaso.parsers.winreg_plugins import interface
... | [
"dfirfpi@gmail.com"
] | dfirfpi@gmail.com |
b5653a6f9699da39d8c2d60fdac5941697f1abbc | afb2bdf8044e4c9ff09b1b8379efbc17867d8cc0 | /2parts/challenge/challenge2.py | cf8359ef6d86b17dfe0a1b0bb22f142f4a785437 | [] | no_license | ChenFu0420/leranpython | b2e364ff8d6730a3eb768b76f0369faa3367dfa2 | 52d0aa614d7fab19e17bbb696330a0330d3862b6 | refs/heads/master | 2020-05-29T19:46:24.020046 | 2019-09-25T09:17:10 | 2019-09-25T09:17:10 | 189,339,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | num1 = int(input("输入一个数"))
num2 = int(input("再输一个数"))
#两数之和
print("两个数的和是:", num1 + num2)
#两数之差
print("两个数的差是:", num1 - num2)
#两数乘积
print("两数乘积是:", num1 * num2) | [
"hiziying@hotmail.com"
] | hiziying@hotmail.com |
f6799deed3adf5955c953244b8e21ad2a510e6ff | 48b67d5a7149376b5949f12641fa14cb8404a359 | /accounts/migrations/0005_auto_20181018_1754.py | b8183ba6fad46552feeae9eae696552ad9b89ceb | [] | no_license | mishaukr7/simple_blog | 7f962dce438b9bab03b0ddabfc1ce47d57e9cb5b | c00aba56afe4caad77dfa5f058e3ab8e1e8919b1 | refs/heads/master | 2020-04-01T23:21:28.176890 | 2018-10-19T08:58:14 | 2018-10-19T08:58:14 | 153,754,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | # Generated by Django 2.1.2 on 2018-10-18 17:54
from django.db import migrations
import django.db.models.deletion
import smart_selects.db_fields
class Migration(migrations.Migration):
dependencies = [
('accounts', '0004_auto_20181018_1712'),
]
operations = [
migrations.AlterField(
... | [
"mishaukr22@gmail.com"
] | mishaukr22@gmail.com |
629c520da224ca08d1b463ba82b88210faa9c090 | 7248b86a0a882badb20f83be57748fae89311c7d | /case01/migrations/0001_initial.py | b1c221b705f2a710eea22d9f679f6ea50702fa6f | [] | no_license | daiyeyue/daiyeDRF | 2164ae4e6d611f577d1fac9e84dd8fcd83b3f909 | 884f0dcf4bbedf2c17842d7dc05dc3603cc95877 | refs/heads/master | 2020-12-03T12:48:02.551331 | 2020-01-02T06:38:12 | 2020-01-02T06:38:12 | 231,322,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='ClassRoom',
fields=[
('id', models.AutoField(ve... | [
"150064328@qq.com"
] | 150064328@qq.com |
187cb4166766dd206e5197b34e86bd8da22e166b | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/hyzhak/titanic-for-beginners/titanic-for-beginners.py | 7cbd2fb9d328cf687072a6f9cfbb5913b2a286e8 | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,438 | py | #!/usr/bin/env python
# coding: utf-8
# # Titanic for beginners
# it is basic introduction to Kaggle.
#
# ## Workflow
# 1. Import Necessary Libraries
# 2. Acquire training and testing data.
# 3. Analyze, Visualize data
# 1. Outlets (errors or possibly innacurate values) ?
# 2. Create new feature?
# 4. Clearning d... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
51605ef74b4cba3582dbd4a581b09e1dbf06ec52 | d491c11dc87a955c95a4e14a2feea19fe1fa859e | /python/Arcade/Python/P32WordPower.py | 8e59958099ab4e818bb696c758d23213474a33a7 | [] | no_license | Vagacoder/Codesignal | 0f6ea791b25716cad7c46ab7df73679fb18a9882 | 87eaf44555603dd5b8cf221fbcbae5421ae20727 | refs/heads/master | 2023-07-16T04:18:44.780821 | 2021-08-15T18:41:16 | 2021-08-15T18:41:16 | 294,745,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,148 | py | #
# * Python 32, Word Power
# * Easy
# * You've heard somewhere that a word is more powerful than an action. You decided
# * to put this statement at a test by assigning a power value to each action and
# * each word. To begin somewhere, you defined a power of a word as the sum of
# * powers of its characters, wher... | [
"qiruihu@gmail.com"
] | qiruihu@gmail.com |
6bf9fe564297c104e2d4a8e7f00109a5ee57bd30 | 14ff5ca733ce92c14dd347e32c7ad262026c48cf | /typeshed/rdflib/exceptions.pyi | 4066f6854d2ffd93b18fa4bd16a05f92764610bd | [
"Apache-2.0"
] | permissive | common-workflow-language/cwlprov-py | 6040bd1ea18fb58909bba9874f65e4edcc4ecd92 | 9b719c687484d3f888eb5f807ec3270e9081078a | refs/heads/main | 2023-08-17T06:03:39.274209 | 2022-07-19T18:09:15 | 2022-07-19T18:21:13 | 148,144,870 | 1 | 2 | Apache-2.0 | 2023-08-02T18:35:35 | 2018-09-10T11:27:31 | Python | UTF-8 | Python | false | false | 761 | pyi | from typing import Any
class Error(Exception):
msg: Any
def __init__(self, msg: Any | None = ...) -> None: ...
class TypeCheckError(Error):
type: Any
node: Any
def __init__(self, node) -> None: ...
class SubjectTypeError(TypeCheckError):
msg: Any
def __init__(self, node) -> None: ...
cla... | [
"1330696+mr-c@users.noreply.github.com"
] | 1330696+mr-c@users.noreply.github.com |
f3abfbb514fdc985c0c51949272f13c43a7c3730 | b799c3e1fe5a50b2babcfb2960af210dec434f49 | /354.russian-doll-envelopes.py | facf0e6c6903adc2cda1b3f18cbef9f6574cf968 | [] | no_license | Joecth/leetcode_3rd_vscode | 4619ef80632dec83cbcbcd090f74e043f436cc75 | 3c0943ee9b373e4297aa43a4813f0033c284a5b2 | refs/heads/master | 2022-12-02T19:30:34.572339 | 2020-08-18T15:21:15 | 2020-08-18T15:21:15 | 255,601,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | #
# @lc app=leetcode id=354 lang=python3
#
# [354] Russian Doll Envelopes
#
# https://leetcode.com/problems/russian-doll-envelopes/description/
#
# algorithms
# Hard (34.98%)
# Likes: 981
# Dislikes: 37
# Total Accepted: 62.8K
# Total Submissions: 178.5K
# Testcase Example: '[[5,4],[6,4],[6,7],[2,3]]'
#
# You ha... | [
"huangjiancong@aidigger.com"
] | huangjiancong@aidigger.com |
9a042505df211682de5afa3eb04441642762d7ba | e402a0fbde47acb8903304a0fef11ec1de83b01f | /SecretColors/data/palettes/__init__.py | 0424d070c31874e136fbe0f9ba306d437a31b594 | [
"MIT"
] | permissive | Robinsondssantos/SecretColors | ad254a872d7bcc4ef1ac1914355d2f5c7ec73357 | eb19b8a1805eba812032b450d644aa8fc5c257e5 | refs/heads/master | 2023-01-25T00:34:25.849346 | 2020-12-06T11:35:45 | 2020-12-06T11:35:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | # Copyright (c) SecretBiology 2020.
#
# Library Name: SecretColors
# Author: Rohit Suratekar
# Website: https://github.com/secretBiology/SecretColors
#
# Most of these palettes are derived from various design systems. Few
# examples of such design systems can be found on following URL
# https://designsystemsrep... | [
"rohitsuratekar@gmail.com"
] | rohitsuratekar@gmail.com |
4973daa5f7033237dd93efc217a2a9c1532a74b5 | 90914b7d84d69a86652e69d1ad72888af363367b | /production_work_timesheet/timesheet.py | a4ebbc6d37d4d6bfb0c7cae074624939a479354c | [] | no_license | emperadorxp1/TrytonModules | 754a3ca92c0ac7b2db9165208b1bc5fda5fe4a73 | 33ef61752e1c5f490e7ed4ee8a3f0cff63a8fc89 | refs/heads/master | 2020-12-19T18:41:05.260174 | 2020-01-23T15:32:57 | 2020-01-23T15:32:57 | 235,815,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from trytond.pool import PoolMeta, Pool
__all__ = ['TimesheetWork']
class TimesheetWork(metaclass=PoolMeta):
__name__ = 'timesheet.work'
@classmethod
def _get_o... | [
"joxua.1995@gmail.com"
] | joxua.1995@gmail.com |
310690032b5db321ddc9107fa0c8fb962ffa3a9a | 232fc2c14942d3e7e28877b502841e6f88696c1a | /dizoo/smac/envs/smac_action.py | aaceb32e9777eaf73ed542d6ae037d894d0fc412 | [
"Apache-2.0"
] | permissive | shengxuesun/DI-engine | ebf84221b115b38b4b3fdf3079c66fe81d42d0f7 | eb483fa6e46602d58c8e7d2ca1e566adca28e703 | refs/heads/main | 2023-06-14T23:27:06.606334 | 2021-07-12T12:36:18 | 2021-07-12T12:36:18 | 385,454,483 | 1 | 0 | Apache-2.0 | 2021-07-13T02:56:27 | 2021-07-13T02:56:27 | null | UTF-8 | Python | false | false | 16,272 | py | import enum
import math
import numpy as np
from collections import namedtuple
from s2clientprotocol import common_pb2 as sc_common, sc2api_pb2 as sc_pb, raw_pb2 as r_pb
ORIGINAL_AGENT = "me"
OPPONENT_AGENT = "opponent"
MOVE_EAST = 4
MOVE_WEST = 5
actions = {
"move": 16, # target: PointOrUnit
"attack": 23, ... | [
"niuyazhe@sensetime.com"
] | niuyazhe@sensetime.com |
34c193b5f47a90df0b6bd16d59075d1761ee4192 | 499f5402baed77d000c65f243b457c69dc3d2fe4 | /pycatia/system_interfaces/setting_repository.py | 5ce1233ac76c360aa18a27c0e231a219e723079a | [
"MIT"
] | permissive | evereux/pycatia | 416189b34f3c60effea8a76258e36ffc5ae86e22 | 5f5726d5dc66265b3eba8a01910c4aeae424365d | refs/heads/master | 2023-08-21T10:03:41.660445 | 2023-08-09T16:21:10 | 2023-08-09T16:21:10 | 159,069,580 | 141 | 42 | MIT | 2023-08-09T11:15:27 | 2018-11-25T20:04:31 | Python | UTF-8 | Python | false | false | 13,294 | py | #! usr/bin/python3.9
"""
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-09 09:53:18.676780
.. warning::
The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only.
They are there as a guide as to how the visual basic / catscript function... | [
"evereux@gmail.com"
] | evereux@gmail.com |
6954ecfa3c9a5a56759adcad12af34bb1cefe713 | 03520fd9d037e22e8c34f61369268b01769c0ae9 | /server/server_generic.py | 9601a66e4380b10b3052e25118e3a85b75e70715 | [
"MIT"
] | permissive | kevinkk525/micropython_iot_generic | d93f4a51d8f89da221f4b30af4afa866231df909 | f58730ff387a09077b8bb73b0b0f57a1c8c72485 | refs/heads/master | 2020-04-10T21:59:39.888144 | 2019-11-11T07:51:59 | 2019-11-11T07:51:59 | 161,312,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,310 | py | # Author: Kevin Köck
# Copyright Kevin Köck 2019 Released under the MIT license
# Created on 2018-12-15
__updated__ = "2018-12-15"
__version__ = "0.0"
import asyncio
import logging
import math
import time
from server.apphandler.apphandler import AppHandler
# server tested with 800 concurrent (dis)connects at a time... | [
"kevinkk525@users.noreply.github.com"
] | kevinkk525@users.noreply.github.com |
0c8f151455b44f75723bef94d18ab3bf6b15805f | 97bf1824e9b299ae0c9b99dc1bcf83db321b20a5 | /secondProject/blog/models.py | 59f871477b1d2416ee8921cee812eabb7f5807ae | [] | no_license | shinhaeran/likelion_class | f2ed68f245e25a89313834876f001c4b35f5ffaa | 72c2d53cfedccde0062f46816449415131b2c332 | refs/heads/master | 2020-04-25T21:59:56.891042 | 2019-05-26T08:56:48 | 2019-05-26T08:56:48 | 173,097,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | from django.db import models
# Create your models here.
class Blog(models.Model):
title = models.CharField(max_length=200)
pub_date = models.DateTimeField('date published')
body = models.TextField()
def __str__(self):
return self.title
def summary(self):
return self.body[:100] #1... | [
"haeran97@naver.com"
] | haeran97@naver.com |
a61ae1c4f2160c0682d89a2535a5d98f3c78e607 | a07fd8aca2d69ade2e388054dd2c1c9991232185 | /tests/test_tutorial/test_extra_data_types/test_tutorial001_py310.py | 0b71d9177332979a661b3a344e8e023d92e4cb4e | [
"MIT"
] | permissive | vitalik/fastapi | 76b71bbbade19f12484c73dcbdca426197cc2db6 | 0276f5fd3aafb38dcbb430177a4685aeb58e5c69 | refs/heads/master | 2023-08-01T06:56:06.053824 | 2023-07-25T20:46:02 | 2023-07-25T20:46:02 | 315,668,229 | 1 | 0 | MIT | 2020-11-24T15:07:16 | 2020-11-24T15:07:15 | null | UTF-8 | Python | false | false | 8,219 | py | import pytest
from dirty_equals import IsDict
from fastapi.testclient import TestClient
from ...utils import needs_py310
@pytest.fixture(name="client")
def get_client():
from docs_src.extra_data_types.tutorial001_py310 import app
client = TestClient(app)
return client
@needs_py310
def test_extra_types... | [
"noreply@github.com"
] | vitalik.noreply@github.com |
f52b1ef6a6b56db0523211d934578ec0ef2a07e4 | 0377a4135f9e8940809a62186b229295bed9e9bc | /剑指offer/new2/判断一棵树是否为另一棵树的子结构.py | c14465c97106d88afb892a94b084094c2611b4b3 | [] | no_license | neko-niko/leetcode | 80f54a8ffa799cb026a7f60296de26d59a0826b0 | 311f19641d890772cc78d5aad9d4162dedfc20a0 | refs/heads/master | 2021-07-10T10:24:57.284226 | 2020-09-13T11:28:45 | 2020-09-13T11:28:45 | 198,792,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def HasSubtree(self, pRoot1, pRoot2):
# write code here
if pRoot1 == None or pRoot2 == None:
return False
else:
return self.panduan(pRo... | [
"2361253285@qq.com"
] | 2361253285@qq.com |
321182ac1c784cfc94356d065684340d14c0b1a1 | 3073677476a918720fb24a13961d6e9f5143627b | /console.py | dcd93ec5ed4ac74a56b3bf6c3dc042853d32cbe2 | [] | no_license | nemec/audibleMPD | 960fe2c358ac875936ceb23c1c7b19d74940012a | d214ac44e2411583db3f6cab835138747b6df6b1 | refs/heads/master | 2021-01-01T05:40:25.894785 | 2011-01-24T23:48:52 | 2011-01-24T23:48:52 | 983,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,193 | py | from os import getuid
import gobject
from input_header import input_header
if getuid() != 0:
raise ImportError, "Must be root to get keypresses."
from struct import unpack
# Code 0 = Mouse x axis, val = mouse accel (with +/-)
# Code 1 = Mouse y axis, val = mouse accel (with +/-)
KEY_PRESS = 1
KEY_RELEASE = 2
cla... | [
"djnemec@gmail.com"
] | djnemec@gmail.com |
e700a24a2a79345362880d9c61b0b979299289a8 | 086ff58e13978ef5fa771ffc44c3b002cfcf18cb | /froide/publicbody/widgets.py | 0e89162ad29d102f0a13c6e53207916a598ada39 | [
"MIT"
] | permissive | jdieg0/froide | 70b0de85eff09886919a838fe46b776467824dfb | 44a5d7e65b1678e0031e2cf01687c8834b2517e2 | refs/heads/master | 2020-04-27T22:51:45.343233 | 2019-03-09T16:46:34 | 2019-03-09T16:46:34 | 174,752,276 | 0 | 0 | null | 2019-03-09T22:19:20 | 2019-03-09T22:19:20 | null | UTF-8 | Python | false | false | 2,348 | py | import json
from django import forms
from django.urls import reverse
from django.utils.translation import ugettext as _
from django.templatetags.static import static
from froide.helper.content_urls import get_content_url
from .models import PublicBody
def get_widget_context():
return {
'url': {
... | [
"mail@stefanwehrmeyer.com"
] | mail@stefanwehrmeyer.com |
fdb1438c63169f6ae42534f8c356819b6ced8614 | 3358f6fbfa39d4429f2a9fa3ba5416285fab5793 | /第3章 Django/第3章 Django/3、Django中的视图/kaige/project/myApp/models.py | 7128dbac959f269df33a0dddfa674349e6780c90 | [] | no_license | kmxz2016/PycharmProjects | 8ab79cd5ef87bba2a1af0fe9f035f87a18621407 | 631a792eb9b5f4121dc08849dded10c290ac2401 | refs/heads/master | 2020-03-13T18:21:11.364219 | 2018-05-16T10:06:42 | 2018-05-16T10:06:42 | 131,234,054 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 735 | py | from django.db import models
# Create your models here.
class Grades(models.Model):
gname = models.CharField(max_length=20)
gdate = models.DateTimeField()
ggirlnum = models.IntegerField()
gboynum = models.IntegerField()
isDelete = models.BooleanField(default=False)
def __str__(s... | [
"601985329@qq.com"
] | 601985329@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.