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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c9edb0745268f7630ef2ccba55011d56a6ffdc26 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2021_04_01/operations/_virtual_machine_images_edge_zone_operations.py | 2792b1ac617a7aa00ba6a1727e7ddb0e922e09e1 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 25,711 | py | # pylint: disable=too-many-lines
# 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) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
8ceeb0a77f65f5aa5dc0b1f9c2e615a6e988ef7a | bdbc9cd8c64cfa92efffb9e138cb282d36f69b0a | /addons/account_analytic_plans/account_analytic_plans.py | 2da147fe9aef415e12ce5ec2d5601cd1f1f3a1c3 | [] | no_license | clebaresu/impra-adns | d330cece1b710643625627bfd7ed66bac7d233ef | 8b9889d86c6ea194cfb7b0db8bdc3284635cc081 | refs/heads/master | 2020-05-02T16:51:41.798969 | 2019-03-27T22:03:32 | 2019-03-27T22:03:32 | 178,080,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,729 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of ... | [
"clebaresu@gmail.com"
] | clebaresu@gmail.com |
aa8548d6800340c742298b7fcfabbb8703401195 | 60ab2468735fe16d02ff800b169ffa81afc35f10 | /blog/validators.py | 8616bf33686c11bbc9dd27efd4f1949fa7cc64b1 | [] | no_license | askdjango/dj28 | be6ddcb9eaa0e4bc543f61d8f6360c05eee4dc24 | 1092a0434e5196c876362bdb1d79caef316e11bc | refs/heads/master | 2021-01-13T03:35:08.109224 | 2016-12-28T07:59:04 | 2016-12-28T07:59:04 | 77,506,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | import re
from django import forms
LNGLAT_REGEX = r'^([+-]?\d+\.?\d*),([+-]?\d+\.?\d*)$'
def lnglat_validator(lnglat):
if not re.match(LNGLAT_REGEX, lnglat):
raise forms.ValidationError('경도,위도를 입력해주세요.')
| [
"allieuslee@gmail.com"
] | allieuslee@gmail.com |
7357dad283d79d162a77f21682a22bae933e7230 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc003/B/4893948.py | 2e532cf442c9e2e623c9bb4b0945530517df144d | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | n=int(input())
a=[int(input()) for i in range(n)]
b=0
c=0
for i in a:
if i!=0:
c+=i
else:
b+=c//2
c=0
print(b+c//2) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
2be48bbff9ee38ebed12d283945a7e939c64dbeb | 5849e622803db1f388ad7dd24a1430abe86ecf05 | /torchbiggraph/train_cpu.py | b67896474e297173fd09410c3adff758e51098f0 | [
"BSD-3-Clause"
] | permissive | facebookresearch/PyTorch-BigGraph | 8630ad17dd57574229741b26948ebdff1416d3b2 | ab12fb79c6da4f5821421153c0e8a6e9ab6808b6 | refs/heads/main | 2023-08-26T17:59:38.324736 | 2023-08-25T22:31:20 | 2023-08-25T22:31:20 | 151,156,413 | 3,479 | 495 | NOASSERTION | 2022-10-06T20:31:55 | 2018-10-01T20:41:16 | Python | UTF-8 | Python | false | false | 42,381 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE.txt file in the root directory of this source tree.
import logging
import math
import time
from collections import defaultdict
from funct... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8eb0827ae15bdd6758dd2d5bfa62a95b64b96f6e | 27b86f422246a78704e0e84983b2630533a47db6 | /tests/test_04_dxf_high_level_structs/test_426_ezdxf_metadata.py | bce9977c559558d1da10e32e945077a24aa0808f | [
"MIT"
] | permissive | mozman/ezdxf | 7512decd600896960660f0f580cab815bf0d7a51 | ba6ab0264dcb6833173042a37b1b5ae878d75113 | refs/heads/master | 2023-09-01T11:55:13.462105 | 2023-08-15T11:50:05 | 2023-08-15T12:00:04 | 79,697,117 | 750 | 194 | MIT | 2023-09-14T09:40:41 | 2017-01-22T05:55:55 | Python | UTF-8 | Python | false | false | 2,879 | py | # Copyright (c) 2021, Manfred Moitzi
# License: MIT License
import pytest
import ezdxf
from ezdxf.document import CREATED_BY_EZDXF, WRITTEN_BY_EZDXF
@pytest.fixture(params=["R12", "R2000"])
def doc(request):
return ezdxf.new(request.param)
def test_created_by_ezdxf_metadata(doc):
metadata = doc.ezdxf_met... | [
"me@mozman.at"
] | me@mozman.at |
d09824fcf3bdc530e1f916f683fb0be5f701f77a | d368125db17dbd4e50ee82b929275c66f18c3144 | /paths_graph/__init__.py | ee3f9f105e843e210469c5160d15927c598ad4e4 | [
"BSD-2-Clause"
] | permissive | kkaris/paths_graph | 8b31ca0f6fde98bfd0b566aa66a6b7eea8dc3d9a | b2f8c83a0da6aac94487dd605b0d96f8cde612df | refs/heads/master | 2020-04-05T12:52:23.771120 | 2019-04-23T16:22:46 | 2019-04-23T16:23:48 | 156,884,142 | 0 | 0 | BSD-2-Clause | 2018-11-09T15:54:02 | 2018-11-09T15:54:02 | null | UTF-8 | Python | false | false | 187 | py | from .pg import PathsGraph, CombinedPathsGraph, get_reachable_sets
from .pre_cfpg import PreCFPG
from .cfpg import CFPG, CombinedCFPG
from .paths_tree import PathsTree
from .api import *
| [
"bachmanjohn@gmail.com"
] | bachmanjohn@gmail.com |
4c2a4a17c5bdd63eef5a1284ec5431b838145b09 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /classes/_each214.py | 83ea01b61d10462ea68a76813c0c9bc1f1d8d552 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | from xcp2k.inputsection import InputSection
class _each214(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Just_energy = None
self.Powell_opt = None
self.Qs_scf = None
self.Xas_scf = None
self.Md = None
self.Metadynamics = None
se... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5eb9e5261e1f46ac399130bee7ea67cc78e8bffb | 81b438781ecc307225fcc6141238f8a8ef03bd64 | /Project/src/Modules/Computer/Bridges/_test/test_bridges.py | d55031eba01934468d95f3cb5685782f58898fd0 | [] | permissive | DBrianKimmel/PyHouse | b7d61be4dc6ce9e3332228a6c633e81fdfd8a908 | a100fc67761a22ae47ed6f21f3c9464e2de5d54f | refs/heads/develop | 2021-01-23T09:30:08.722975 | 2020-02-29T16:30:08 | 2020-02-29T16:30:08 | 4,125,178 | 3 | 1 | MIT | 2020-07-19T22:07:18 | 2012-04-24T13:53:33 | Python | UTF-8 | Python | false | false | 4,079 | py | """
@name: Modules/Computer/Bridges/_test/test_bridges.py
@author: D. Brian Kimmel
@contact: D.BrianKimmel@gmail.com
@copyright: (c) 2017-2019 by D. Brian Kimmel
@note: Created on Dec 23, 2017
@license: MIT License
@summary:
Passed all 6 tests - DBK - 2018-02-12
"""
__updated__ = '2019-12-15'
# Imp... | [
"d.briankimmel@gmail.com"
] | d.briankimmel@gmail.com |
b1eddd642f5547ba5354aa19fb945337a58f9a12 | e402c78999a01e032afccf9091901c8f439360fc | /DAY02/example/procee_1.py | f20b3755c3171384fab52a0dbd166e7dd5136351 | [] | no_license | PengLovol/08.PythonThead | 1c7362cc3212a244bfee7782e844f60e941e8faf | 254f465b137f2dae1ee94a9eb590ccb09db5734d | refs/heads/master | 2020-07-08T01:24:39.558672 | 2019-09-16T08:17:31 | 2019-09-16T08:17:31 | 203,527,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from multiprocessing import Process
from time import sleep
#带参数的进程函数
def worker(sec,name):
for i in range(3):
sleep(sec)
print("I'm %s"%name)
print("I'm working...")
p = Process(target = worker,args = (2,),\
kwargs = {'name':'Daivl'},name = "Worker")
p.start()
print("Process name:",p.... | [
"1816525677@qq.com"
] | 1816525677@qq.com |
9c35e5e27050f271628776f5fa915ab339c56765 | 54ab0f79f5d68f4732ca7d205f72ecef99862303 | /torch/_C/_functorch.pyi | d0916e9f035b0a6405e26699cf70ab92d88c6b8c | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | csarofeen/pytorch | a9dd0f8ffa0642d72df2d5e109a8b4d9c2389cbc | e8557ec5e064608577f81e51ccfe7c36c917cb0f | refs/heads/devel | 2023-04-30T02:42:13.558738 | 2023-03-14T00:50:01 | 2023-03-14T00:50:01 | 88,071,101 | 35 | 10 | NOASSERTION | 2023-06-21T17:37:30 | 2017-04-12T16:02:31 | C++ | UTF-8 | Python | false | false | 2,179 | pyi | from torch import Tensor
from enum import Enum
from typing import Optional, Tuple
# Defined in torch/csrc/functorch/init.cpp
def _set_dynamic_layer_keys_included(included: bool) -> None: ...
def get_unwrapped(tensor: Tensor) -> Tensor: ...
def is_batchedtensor(tensor: Tensor) -> bool: ...
def is_functionaltensor(tens... | [
"pytorchmergebot@users.noreply.github.com"
] | pytorchmergebot@users.noreply.github.com |
b4ef81491287fd734dc915b1cca3c9f6e48600fc | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /tests/components/tomorrowio/test_weather.py | 586fd87f681a4df59f39842cc4b93e8f63012f87 | [
"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 | 4,916 | py | """Tests for Tomorrow.io weather entity."""
from __future__ import annotations
from datetime import datetime
from typing import Any
from freezegun import freeze_time
from homeassistant.components.tomorrowio.config_flow import (
_get_config_schema,
_get_unique_id,
)
from homeassistant.components.tomorrowio.co... | [
"noreply@github.com"
] | konnected-io.noreply@github.com |
282b898d18323acb0a2e99b73404a733a23ed620 | 43852c47c9bf8f1d7d54f564a7130bb667df5110 | /rllib/algorithms/qmix/qmix.py | 79f02332b8ce55a592ec91a734139bd2531b7259 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | jon-chuang/ray | 654de3518b77a9b4285ef402053a3db3e341ec94 | adf2b92afcb4688251388838210e18b8721871b9 | refs/heads/master | 2023-05-26T09:04:24.349126 | 2023-02-20T02:33:40 | 2023-02-20T02:33:40 | 206,287,690 | 1 | 1 | Apache-2.0 | 2023-05-20T08:02:24 | 2019-09-04T09:55:00 | Python | UTF-8 | Python | false | false | 13,297 | py | from typing import Optional, Type
from ray.rllib.algorithms.algorithm_config import AlgorithmConfig, NotProvided
from ray.rllib.algorithms.simple_q.simple_q import SimpleQ, SimpleQConfig
from ray.rllib.algorithms.qmix.qmix_policy import QMixTorchPolicy
from ray.rllib.utils.replay_buffers.utils import update_priorities... | [
"noreply@github.com"
] | jon-chuang.noreply@github.com |
a78b6b6877b44fbae515eb8453372b39eaaa87bd | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/datastore/v1/resources.py | f3edab6d3a79d8347a10362a60db1d1abb86c4d7 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 1,422 | py | # Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"me@gareth.codes"
] | me@gareth.codes |
2f0e9827d8b163781d7806e06ab944eef1e9849e | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Forms/__init___parts/DataGridViewTextBoxColumn.py | 44ed08a511cc238ff20d91f65f13a4bf9a2cf3cd | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,361 | py | class DataGridViewTextBoxColumn(DataGridViewColumn,ICloneable,IDisposable,IComponent):
"""
Hosts a collection of System.Windows.Forms.DataGridViewTextBoxCell cells.
DataGridViewTextBoxColumn()
"""
def Dispose(self):
"""
Dispose(self: DataGridViewColumn,disposing: bool)
disposing: true to release both m... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
eb06bd69705bbbfb731b0f5a8760d3aac9613915 | bf2d87cc14f983a6c563ebe1bd49c48a7474ddff | /leetcode/38.count_and_say.py | 9514ed6fa3047815536d78ea34203f321f9d49db | [] | no_license | iamkissg/leetcode | 6bd1c87c67ffc6f5d231cac3224c928e22f62af3 | 99a3abf1774933af73a8405f9b59e5e64906bca4 | refs/heads/master | 2020-05-05T11:21:05.900296 | 2019-10-27T10:51:51 | 2019-10-27T10:51:51 | 179,986,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,198 | py | class Solution:
def __init__(self):
'''
92 ms 13.8 MB Python3
'''
seqs = ['1']
for i in range(2, 31):
seq = seqs[-1]
new_seq = []
count = 0
pre_t = ''
for t in seq:
if count == 0:
... | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
1346dbfc987ebc42a132140712eb61a59e2a6384 | 43ae032297b492fbdf2df478588d2367f59d0b6b | /3 - Types/3.2 - InbuiltTypes-ListsTuples/24-strings-immutability.py | 4f9b0e9468fc7449b46de768f3a739d0afcb75dc | [] | no_license | thippeswamydm/python | 59fa4dbb2899894de5481cb1dd4716040733c378 | db03b49eb531e75b9f738cf77399a9813d16166b | refs/heads/master | 2020-07-05T06:57:18.575099 | 2019-10-23T04:30:27 | 2019-10-23T04:30:27 | 202,562,414 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # Describes how strings are immutable
# String cannot be manipulated or reassigned in place
# Only a new entire string value can be re-assigned to a variable
name = 'Zophie a cat'
name[7] = 'the'
# Traceback (most recent call last):
# File "<pyshell#50>", line 1, in <module>
# name[7] = 'the'
# TypeError: 'str'... | [
"ganeshsurfs@gmail.com"
] | ganeshsurfs@gmail.com |
d75b99ca78c9653151e20f29d7cd12b3e1e5aca6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/3/usersdata/87/3018/submittedfiles/ex1.py | ef7a10ff5084074bbc34cf97d1edfef35ac32861 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = input('Digite a: ')
b = input('Digite b: ')
c = input('Digite c: ')
d=((b**2)-(4*a*c))**(0.5)
x1=((-b+d)/(2*a))
x2=((-b-d)/(2*a))
if d>=0:
print('VALOR DE x1: %.1f' %x1)
print('VALOR DE X2: %.1f' %x2)
else:
print('SRR')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e59120617876d84e96fcf8aa1a43089340430916 | 4318b236a3e83f5bcd7c10ba93d24595d5b2f8bb | /dx/valuation/var_portfolio.py | 3039393c04fad64655f00fba7cde5907fb541039 | [] | no_license | mccarvik/python_for_finance | 9ad11b8c4f900b31fb464031b6bf7be0b9b8cc13 | 957c49300ae59571eda590ddf13e7e092fdd96aa | refs/heads/master | 2021-01-19T22:15:18.563679 | 2019-09-20T19:10:58 | 2019-09-20T19:10:58 | 88,779,445 | 3 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,121 | py | from .derivatives_portfolio import *
class var_derivatives_portfolio(derivatives_portfolio):
''' Class for building and valuing portfolios of derivatives positions
with risk factors given from fitted VAR model.
Attributes
==========
name : str
name of the object
positions : dict
... | [
"mccarviks@gmail.com"
] | mccarviks@gmail.com |
4f782fee6cde8365f874d7f8942c6bd958eeda74 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_362/ch18_2019_08_15_21_01_17_605737.py | b858ba6408d57a0e5e63722d1f98fae209ce4a2f | [] | 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 | 79 | py | def encontra_cateto(cat1,hip):
cat2=((hip**2-cat1**2))**0.5
return cat2 | [
"you@example.com"
] | you@example.com |
ca811c5dfc958f8896b3bc6108a9f087f92046b1 | 3a298c93b67386392d3dee243671f2c101decf01 | /leetcode/learn-cards/array-and-string/21_move_zeros.py | d2dc1887b399ea555e596729479b99d1cdd20f92 | [] | no_license | Zahidsqldba07/coding-problems-2 | ffbc8408e4408fc846c828af2ec50a9d72e799bc | 020bffbd14ca9993f1e678181ee7df761f1533de | refs/heads/master | 2023-06-26T11:05:34.089697 | 2021-07-21T15:16:10 | 2021-07-21T15:16:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | class Solution:
def moveZeroes(self, nums):
"""
Do not return anything, modify nums in-place instead.
"""
z = 0
i = 0
for i in range(len(nums)):
if nums[i] != 0:
nums[i], nums[z] = nums[z], nums[i]
z += 1 | [
"alvee.akand@outlook.com"
] | alvee.akand@outlook.com |
bcd27f6d053afdc0755f9133b84c6eb91627dd12 | 0cf7ede6eea6220a019560535887d2b4e5e73018 | /week03-OOC/day13--项目演练/pracice/项目演练.py | 0844776f3cf7f4fa8c66e32f69ac957c7dcb7587 | [] | no_license | skywalkerqwer/PythonBase | 76efd1fcbe0c2d1c54484c02fcb107063fba96fe | 6faf8051bdf416a16586c7f660a4e6cc2a7745bf | refs/heads/master | 2020-06-23T05:41:02.540900 | 2019-08-12T03:21:52 | 2019-08-12T03:21:52 | 198,533,526 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,238 | py | """
在技能数据列表中查找制定名称的技能对象
查找冷却时间大于5的所有技能对象
查找技能数据列表中,消耗法力最小的技能
查找技能数据列表中,冷却时间最大的技能
根据冷却时间对进列表进行升序排列
"""
class Skill:
__slots__ = ('__code', '__name', '__cd', '__cost_sp')
def __init__(self, code=0, name='', cd=0, cost_sp=0, ):
self.code = code
self.name = name
self.c... | [
"15902162780@163.com"
] | 15902162780@163.com |
ccb578ad32358c586911218c9ba824a1f9e37126 | ac4b9ceea8533fd144a75a168258c692b702a3b6 | /django_mobile_tests/tests.py | 0577e64151b39261b035d12e29f74951baf5af47 | [
"BSD-3-Clause"
] | permissive | savidworks/django-mobile | 19ecdab027875134d1c82a38ef4cbccf59a1362c | 47084b11cd669583ee7b63c530d7a1ba62e6ffd4 | refs/heads/master | 2020-12-25T10:50:44.563846 | 2011-02-13T18:51:14 | 2011-02-13T18:51:14 | 1,362,512 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,304 | py | import threading
from django.conf import settings as django_settings
from django.template import RequestContext, TemplateDoesNotExist
from django.template.loaders import app_directories, filesystem
from django.test import Client, TestCase
from mock import MagicMock, Mock, patch
from django_mobile import get_flavour, se... | [
"gregor@muellegger.de"
] | gregor@muellegger.de |
af4589e13a811f8b04bf9ca97b8fd5c958b4e5e4 | 6110d5305a827bfe361dc2c3f2e1cff2afef26c4 | /core/settings.py | 8d4faaa98087fe5bef8f2e2458a6ff499e0701b0 | [] | no_license | larry852/krono-backend | effbee89287a5a5934cf799f7177daa6ec25e2ce | b6c8b68846e8d061dae010dd19e23f0d2544efea | refs/heads/master | 2022-12-20T20:54:47.629314 | 2020-02-16T05:15:11 | 2020-02-16T05:15:11 | 166,121,132 | 0 | 0 | null | 2022-12-08T01:32:45 | 2019-01-16T22:22:37 | Python | UTF-8 | Python | false | false | 3,680 | py | """
Django settings for core project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# Bu... | [
"larryportocarrero@gmail.com"
] | larryportocarrero@gmail.com |
fc62c3940c4609688f744520731c8fcade42ab1e | f9b025c77bc7b3aad3bc70fe7fab489c13a54f14 | /staff_only/apps.py | d66aa4e02f59ab6da4772b8138671195170df9a4 | [] | no_license | maria-j-k/WatchDog | 1ba8f443a66eb1e63641884848c88fd2ace42ba5 | fe9453cb4d66981320a8b90d45f6400838285f1b | refs/heads/master | 2023-01-04T16:59:41.339641 | 2020-10-30T10:26:07 | 2020-10-30T10:26:07 | 300,861,010 | 0 | 1 | null | 2020-10-21T22:13:24 | 2020-10-03T11:10:17 | Python | UTF-8 | Python | false | false | 94 | py | from django.apps import AppConfig
class StaffOnlyConfig(AppConfig):
name = 'staff_only'
| [
"maria77julia@gmail.com"
] | maria77julia@gmail.com |
6e0334190f5b1580b3018f5e0f8e2280e7754b8f | 19333aed645a4721108a67ba4d90292d2383314e | /bfs/662widthOfBinaryTree.py | 411645450224f1c8b666493c11ab0787eb6cbc18 | [] | no_license | qinzhouhit/leetcode | f39f8720a19259310293c1eb2975ce459f7cf702 | 502e121cc25fcd81afe3d029145aeee56db794f0 | refs/heads/master | 2023-06-24T09:18:25.715450 | 2021-07-21T07:21:42 | 2021-07-21T07:21:42 | 189,679,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | '''
keys:
Solutions:
Similar:
T:
S:
'''
from typing import List
# 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:
# O(N) for S and T
# S: the queue holds no m... | [
"qinzhouhit@gmail.com"
] | qinzhouhit@gmail.com |
47a9fdc1cb784dbc6305a43420f80d517695980a | ef6f5f8ee33856e1dcc8e186598da805eb222576 | /object_detection/anchor_generators/grid_anchor_generator.py | 1cde284e679e9fe666207641857539b951b48346 | [] | no_license | woolpeeker/CNet | 23616bdfcae3ea9ea0767beac525b24ee583cb6e | af923927b7385c0c4b4ac1e568611af5ae859662 | refs/heads/master | 2020-04-11T07:36:48.590687 | 2019-10-26T08:10:19 | 2019-10-26T08:10:19 | 161,616,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,177 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"luojiapeng1993@gmail.com"
] | luojiapeng1993@gmail.com |
c94a17a5654b607c23b8f5210e215757437ed834 | d9be747b24e665d1c2cdc9eaf38fa6b7ff34d40c | /bartpy/tree.py | 95bbe2ce62766f8113123fc6e862b3b3342f1d73 | [
"MIT"
] | permissive | sar2160/bartpy | 40187c105562a80f79464e1d1e9c2fcfb4a11d35 | a99fe7ad9ca1a18c92c49410ed196afebb379a46 | refs/heads/master | 2020-04-07T01:01:32.082828 | 2018-10-28T13:38:58 | 2018-10-28T13:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,146 | py | from typing import List
import numpy as np
from bartpy.mutation import TreeMutation
from bartpy.node import TreeNode, LeafNode, DecisionNode, deep_copy_node
class Tree:
"""
An encapsulation of the structure of a single decision tree
Contains no logic, but keeps track of 4 different kinds of nodes within... | [
"jakecoltman@sky.com"
] | jakecoltman@sky.com |
24fa945b7dc6335baffe4653c2db4cde4edb18df | 11b420a9e6dbe371167227f41ef8e344e3382612 | /ConvNets/FINAL_Averaged_Experiments/N=1000/Q=5/Minimum_Expected_Entropy/MEE_Q10_N1000.py | 9d4a210bc1d34b1b6a69723bf1bfb7129f84694c | [
"MIT"
] | permissive | tarek-ullah/Active-Learning-Bayesian-Convolutional-Neural-Networks | 7092386758b68dc922efaa2c2eba055930bf2896 | f8b68038bd3b97c473e9c1de6b6cdee4538021f4 | refs/heads/master | 2021-01-13T06:57:19.343775 | 2016-11-02T12:22:16 | 2016-11-02T12:22:16 | 81,338,773 | 1 | 0 | null | 2017-02-08T14:34:15 | 2017-02-08T14:34:15 | null | UTF-8 | Python | false | false | 11,779 | py | #minimum expected entropy
from __future__ import print_function
from keras.datasets import mnist
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling... | [
"riashat.islam.93@gmail.com"
] | riashat.islam.93@gmail.com |
aadeb6f31a2f966a8eb969f05a1dd8dd8df13326 | 7639b91f8f1319a32e57916745b8fd31d00df682 | /HackerRank/Interview-Prep-Kit/sorting/markAndToys.py | d1434a5c5fa2df998126156d8467b121b1b57b80 | [] | no_license | kartsridhar/Problem-Solving | 4a391a6ffe3d672d223949491e3cda20f776ef16 | 09f4018dc47e5175b03718942a41553527a0463a | refs/heads/master | 2021-07-08T11:09:55.694614 | 2020-10-15T16:15:13 | 2020-10-15T16:15:13 | 200,101,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the maximumToys function below.
def maximumToys(prices, k):
count = 0
sortedPrices = sorted(prices)
i = 0
while k > sortedPrices[i]:
k -= sortedPrices[i]
count += 1
i += 1
return count
if __... | [
"contactkarthik34@gmail.com"
] | contactkarthik34@gmail.com |
516300c5e9a71d105d85c1c1a594aa118ec26656 | c5e4a9a66f686de6eaca331f1ee3823ac925101b | /apps/pharmacy/migrations/0004_auto_20201110_1142.py | e61f9dcc3c774c47bede0be673d127a8d897288a | [] | no_license | Tiilon/Hospital_project | b1409be60f0d6daecb0e294bfbe81698d97b7c1f | 6506218f4ad504f9031482999d9b33c92b350df8 | refs/heads/main | 2023-01-23T13:30:11.564836 | 2020-11-24T16:15:12 | 2020-11-24T16:15:12 | 303,461,057 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | # Generated by Django 3.1.2 on 2020-11-10 11:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pharmacy', '0003_auto_20201109_1634'),
]
operations = [
migrations.RenameField(
model_name='medicine',
old_name='pie... | [
"tiilon42@gmail.com"
] | tiilon42@gmail.com |
618b841fcfc039f249207e9c00bb696569adcec0 | b76615ff745c6d66803506251c3d4109faf50802 | /pyobjc-framework-Quartz/PyObjCTest/test_ciimage.py | ddc6fb8639a7b03d6237f2d500ceece672659c4f | [
"MIT"
] | permissive | danchr/pyobjc-git | 6ef17e472f54251e283a0801ce29e9eff9c20ac0 | 62b787fddeb381184043c7ff136f1c480755ab69 | refs/heads/master | 2021-01-04T12:24:31.581750 | 2020-02-02T20:43:02 | 2020-02-02T20:43:02 | 240,537,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,822 | py | from PyObjCTools.TestSupport import *
from Quartz.QuartzCore import *
class TestCIImage(TestCase):
def testConstants(self):
self.assertIsInstance(kCIFormatARGB8, (int, long))
self.assertIsInstance(kCIFormatBGRA8, (int, long))
self.assertIsInstance(kCIFormatRGBA8, (int, long))
self.... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
efa4c0d31b985cf945421f9efb363ef8a9a57817 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnwidelyextend.py | 13c5576e24adfb80b0f1c75f5aa5e286b2e70f5c | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 45 | py | ii = [('BuckWGM2.py', 1), ('FitzRNS4.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
49896efbfbf5125a76ebc1139f08b98637b30f98 | 3c9e5a16b1625faf82e2e714aff119ef49033d50 | /customizer_lib_test.py | a1dc14bb23d553196151618df1ef0ac922d752f9 | [
"Apache-2.0"
] | permissive | tcprescott/pyz3r | 144ef0dacec1ed76e10df6a8acb350fb843e2847 | fb90559650098090a9e800ca3d4b3d337473942a | refs/heads/master | 2023-09-05T09:26:56.927172 | 2023-09-05T04:45:37 | 2023-09-05T04:45:37 | 163,603,582 | 24 | 8 | Apache-2.0 | 2023-08-29T03:08:51 | 2018-12-30T17:02:35 | Python | UTF-8 | Python | false | false | 1,510 | py | import json
from pyz3r import alttpr, romfile
from pyz3r.customizer import customizer
import asyncio
import config
async def generation_test():
f = open('input/customizer-settings.json', "r")
customizer_settings = json.loads(f.read())
f.close()
settings = customizer.convert2settings(cus... | [
"tcprescott@gmail.com"
] | tcprescott@gmail.com |
583d3752067ecf4c51683f4a9a965e2aae358df3 | 99e44f844d78de330391f2b17bbf2e293bf24b1b | /pytorch/test/onnx/test_pytorch_onnx_caffe2.py | eaa16f0fdf1bdf368a37d9712290469252c66db4 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | raghavnauhria/whatmt | be10d57bcd6134dd5714d0c4058abd56a1b35a13 | c20483a437c82936cb0fb8080925e37b9c4bba87 | refs/heads/master | 2022-12-04T05:39:24.601698 | 2019-07-22T09:43:30 | 2019-07-22T09:43:30 | 193,026,689 | 0 | 1 | MIT | 2022-11-28T17:50:19 | 2019-06-21T03:48:20 | C++ | UTF-8 | Python | false | false | 81,607 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import sys
import unittest
import itertools
import torch.onnx
import torch.onnx.operators
from torch.onnx import ExportTypes
from torch import nn
from... | [
"rnauhria@gmail.com"
] | rnauhria@gmail.com |
97bcad324e2ad720f2228cff063371ed2aa317cb | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/social_network_login/__init__.py | cf3b8fe42682df9df8b03290c445738212a99ed3 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 403 | py | # 2015.11.10 21:29:49 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/social_network_login/__init__.py
from Bridge import Bridge
__all__ = ['Bridge']
# okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\client\gui\social_network_login\__init__.pyc
# decompiled 1 files: 1 okay, 0 fa... | [
"info@webium.sk"
] | info@webium.sk |
89c40d3c09a3e18d77926f5186f793b4f2fe45fe | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /deploy_write_f/deployment-config_delete.py | 4ab222c7b4f05c1f80fc3a720918da1d4a2786bc | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
63d61f08fc4b0c32703a64685415da890bee4865 | 5b565e331073a8b29f997c30b58d383806f7d5a8 | /ch_04/4_4_one_million.py | c6b00bbdec7f67a5625277e20e2d88205e077c1e | [] | no_license | jeongwook/python_work | f403d5be9da6744e49dd7aedeb666a64047b248d | bba188f47e464060d5c3cd1f245d367da37827ec | refs/heads/master | 2022-04-02T23:16:57.597664 | 2020-01-21T08:29:48 | 2020-01-21T08:29:48 | 227,506,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | for num in numbers:
print(num) | [
"jeongwook.yu@utexas.edu"
] | jeongwook.yu@utexas.edu |
e3e1b34e35154cd6fc884b74639da59ff289b015 | d62cbada00caf2f7784066014a87e18052d6fa9f | /darksite/account/test/management/commands/test_createadmin.py | 9a2907e594e0811c6cbc99a2d149a418513921fe | [
"MIT"
] | permissive | UNCDarkside/DarksiteAPI | d6653990bce6b78db78efc672fde2c0ff20e4597 | a4bc1f4adee7ecfba840ad45da22513f88acbbd0 | refs/heads/master | 2020-04-11T17:36:19.062963 | 2019-01-11T03:42:31 | 2019-01-11T03:42:31 | 161,967,336 | 0 | 0 | MIT | 2019-10-22T22:09:50 | 2018-12-16T04:23:27 | Python | UTF-8 | Python | false | false | 1,436 | py | from django.contrib.auth import get_user_model
from account.management.commands.createadmin import Command
def test_handle_new_user(db, env):
"""
If the appropriate environment variables are present and the
corresponding user doesn't exist in the database yet, they should
be created.
"""
env[... | [
"chathan@driehuys.com"
] | chathan@driehuys.com |
38a89e1de7c1b0752033741c6976754617f667f0 | 0513b26a9a591847e804e8fe42a4108341b6998d | /data_loader/MSRVTT_dataset.py | 6056f0a156ae7192d4c0ac69f5b01f1e9bb060f4 | [] | no_license | MachineLearning-AI/collaborative-experts | b4e7abfc5635832e63f22c26c01b9ad8b2893d01 | d361f1acc271ddab53c02da72b9bb385a8fb0542 | refs/heads/master | 2020-06-29T21:43:41.099828 | 2019-08-02T17:52:52 | 2019-08-02T17:52:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,089 | py | import time
from pathlib import Path
from os.path import join as pjoin
from utils.util import memcache
from base.base_dataset import BaseDataset
class MSRVTT(BaseDataset):
def configure_train_test_splits(self, split_name):
self.restrict_test_captions = None
if split_name == "miech":
#... | [
"albanie@robots.ox.ac.uk"
] | albanie@robots.ox.ac.uk |
75dfd759411f711a3e89cab34cf1428959b30e94 | f2acfe325ee64b239ba68e8a2474d78f89f274bd | /perfdaily/eventing.py | 191391e69d2928efcf05964f295efde7ce4412fd | [
"Apache-2.0"
] | permissive | couchbase/perfrunner | d12596ff3c2a53b08c488cd48f0c72475cc59c49 | e76fd55bf1c733adf9988dee166da36304c36e72 | refs/heads/master | 2023-08-30T18:14:01.731809 | 2023-08-30T12:13:49 | 2023-08-30T12:14:32 | 12,786,971 | 23 | 44 | Apache-2.0 | 2023-08-02T01:56:41 | 2013-09-12T15:17:58 | Python | UTF-8 | Python | false | false | 310 | py | from perfdaily import DailyTest
from perfrunner.tests.eventing import FunctionsThroughputTest as _FunctionsTT
from perfrunner.tests.eventing import TimerThroughputTest as _TimersTT
class FunctionsThroughputTest(DailyTest, _FunctionsTT):
pass
class TimerThroughputTest(DailyTest, _TimersTT):
pass
| [
"pavel.paulau@gmail.com"
] | pavel.paulau@gmail.com |
4f571808c78476b2a7a76e917bb20df98d7d6204 | c6e7c8e8b9d714a312769c375cfcbdae793daba8 | /SCRAPY/UA/agents.py | a7fa50b5f6fc322ab89b6f430387e9646c3dd10b | [] | no_license | rebootshen/emotion-predict-stock | f06ede8406b44f412a70cfff7f78769f57bf8712 | 530c94dded016c5523cec026c572c66f0fc74e99 | refs/heads/master | 2022-10-30T05:24:35.798357 | 2020-06-16T15:46:29 | 2020-06-16T15:46:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,596 | py | # https://github.com/xiaobeibei26/xueiqiu_spider/blob/master/UA.py
agents = [
"Mozilla/5.0 (Linux; U; Android 2.3.6; en-us; Nexus S Build/GRK39F) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1",
"Avant Browser/1.2.789rel1 (http://www.avantbrowser.com)",
"Mozilla/5.0 (Windows; U; Wind... | [
"435878393@qq.com"
] | 435878393@qq.com |
70f627c59e471513500ce286db967bfb3cd979f5 | 888fff9d780ae0b3eaa5a6baf08fb02bd77e2858 | /scripts/scripts/testing/automations/batch/united_kingdom.py | 76fc2b4016d871050267a83e4a77ce4880daaa87 | [] | no_license | Naty1209/Covid | d3dfa3a96e4df8d308703d873249a5817209dc2e | 13ae0b333dc432733e00d4de2ef91b4fe6f72c21 | refs/heads/master | 2023-06-08T06:35:42.250992 | 2021-06-27T09:59:04 | 2021-06-27T09:59:04 | 380,702,808 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,437 | py | from uk_covid19 import Cov19API
from typing import Union
import pandas as pd
# MAX_DATE_FILL_PILLAR_ONE_TWO: the max date where it is ok to fill NA
# values of cumVirusTests/newVirusTests with
# cumPillarOneTwoTestsByPublishDate/newPillarOneTwoTestsByPublishDate.
# Prior to (and including this date),
# cumPill... | [
"78781439+Naty1209@users.noreply.github.com"
] | 78781439+Naty1209@users.noreply.github.com |
28ecd5a82e6ee7326749fccdb39cac19d0933d4d | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/sensorpush/config_flow.py | 9913b7f7b09a82f6a7295baa5592432e0dc70441 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 3,549 | py | """Config flow for sensorpush integration."""
from __future__ import annotations
from typing import Any
from sensorpush_ble import SensorPushBluetoothDeviceData as DeviceData
import voluptuous as vol
from homeassistant.components.bluetooth import (
BluetoothServiceInfoBleak,
async_discovered_service_info,
)
... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
f47dd108cda5ef5838c9072880fa6c1ef5a8a47f | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/share/pyshared/gwibber/microblog/util/exceptions.py | 4444e4d179036a746372975ae1dd691db9b6af60 | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,334 | py | import log
import os, subprocess
import xdg, time
import gettext
from gettext import lgettext as _
if hasattr(gettext, 'bind_textdomain_codeset'):
gettext.bind_textdomain_codeset('gwibber','UTF-8')
gettext.textdomain('gwibber')
class GwibberError(Exception):
"""Base class for exceptions in gwibber."""
pas... | [
"root@xinli.xinli"
] | root@xinli.xinli |
4dae4bf1c199cb312783322f9e9fa7f89b7a42d3 | 0881fa0aa942f556466cb62f2b3936b1da96e99f | /IPTVplayer/hosts/eurosportplayer.py | 12c1f87c4bf7136c822793bf284693df71f289aa | [] | no_license | persianpros/crossplatform_iptvplayer | da12ca83dbef81baff7cb77e3c3070890dcbc4c5 | 89543b9e04ac6aa2bd050355f8b853d6e2aa76f6 | refs/heads/master | 2020-03-31T13:32:19.606428 | 2018-06-27T08:36:37 | 2018-06-27T08:36:37 | 152,259,962 | 2 | 0 | null | 2018-10-09T13:54:11 | 2018-10-09T13:54:11 | null | UTF-8 | Python | false | false | 37,490 | py | # -*- coding: utf-8 -*-
###################################################
# LOCAL import
###################################################
from Plugins.Extensions.IPTVPlayer.dToolsSet.iptvplayerinit import TranslateTXT as _, SetIPTVPlayerLastHostError, GetIPTVNotify
from Plugins.Extensions.IPTVPlayer.icomponents.ih... | [
"zdzislaw22@windowslive.com"
] | zdzislaw22@windowslive.com |
0785d799aa478d7a1d0c0f9c2c2ac300f4c1d5c5 | bc233c24523f05708dd1e091dca817f9095e6bb5 | /bitmovin_api_sdk/common/__init__.py | 8478cd2326b1e6865bb6639a15a93c6797d316fa | [
"MIT"
] | permissive | bitmovin/bitmovin-api-sdk-python | e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd | b0860c0b1be7747cf22ad060985504da625255eb | refs/heads/main | 2023-09-01T15:41:03.628720 | 2023-08-30T10:52:13 | 2023-08-30T10:52:13 | 175,209,828 | 13 | 14 | MIT | 2021-04-29T12:30:31 | 2019-03-12T12:47:18 | Python | UTF-8 | Python | false | false | 469 | py | from bitmovin_api_sdk.common.api_client import ApiClient
from bitmovin_api_sdk.common.base_api import BaseApi
from bitmovin_api_sdk.common.bitmovin_api_logger_base import BitmovinApiLoggerBase
from bitmovin_api_sdk.common.bitmovin_api_logger import BitmovinApiLogger
from bitmovin_api_sdk.common.bitmovin_error import Bi... | [
"openapi@bitmovin.com"
] | openapi@bitmovin.com |
9f1f7d190cfef9fad59a57f28776e8f250550441 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_trumpets.py | 3fb1ca4439db9fc8358489319b42160d67c15e55 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py |
from xai.brain.wordbase.nouns._trumpet import _TRUMPET
#calss header
class _TRUMPETS(_TRUMPET, ):
def __init__(self,):
_TRUMPET.__init__(self)
self.name = "TRUMPETS"
self.specie = 'nouns'
self.basic = "trumpet"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
59a33a73235978c6addfdb5f20d0f7b68c7f4876 | 4b2703bfbb7e1064336f18d69387189a07250d9c | /malaya/num2word.py | 7f49964874e157ab38fa23b0193e6d49189a9a0f | [
"MIT"
] | permissive | keyreply/Malaya | e4a6f54b73744f808182602f49fe6c907caad59f | 579f8e69001bae9f5375fed28a01af1ec5114af9 | refs/heads/master | 2020-03-28T15:23:22.865849 | 2018-09-13T01:28:50 | 2018-09-13T01:28:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,672 | py | from __future__ import print_function, unicode_literals
BASE = {0: [],
1: ["satu"],
2: ["dua"],
3: ["tiga"],
4: ["empat"],
5: ["lima"],
6: ["enam"],
7: ["tujuh"],
8: ["lapan"],
9: ["sembilan"]}
TENS_TO = {3: "ribu",
6: "juta",
... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
94e9e269fc55308ac1114e1560c46830800419b8 | 8eb91c9987a057ce3c41c8443d83277218843773 | /Game/Savings/save.py | 7485309b5f3e564824fa13a501d862261dc93e07 | [] | no_license | Larionov0/Group1-OrderOfHeroes | 468d6a9eb1cc751780f918e10492e047df459954 | 5cb052c46f94938decd9a01baef0b0b4dda179d5 | refs/heads/master | 2023-02-19T06:54:41.276498 | 2021-01-24T13:17:57 | 2021-01-24T13:17:57 | 311,980,998 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | import pickle
FILENAME = 'data.bin'
def save_data(data, filename=FILENAME):
with open(filename, 'wb') as file:
pickle.dump(data, file)
def load_data(filename=FILENAME):
with open(filename, 'rb') as file:
data = pickle.load(file)
return data
| [
"larionov1001@gmail.com"
] | larionov1001@gmail.com |
6eef33c8a1876af0034adb1422e50dc13e109928 | 1d27decdb5207616837f03a36741947a46e8852d | /py/hscTools/pipe_test/testMakeWcs.py | e727ae39cf396a2ec6ae444c0803f61f16d40353 | [] | no_license | dr-guangtou/hs_hsc | 12d7a83ee9898f6d9fb5cf5dc85fa682d50578e8 | 865abc0ba5337d3a085efa99b87ebfcfdd9710af | refs/heads/master | 2021-01-17T03:20:03.900050 | 2019-06-19T05:26:34 | 2019-06-19T05:26:34 | 23,053,990 | 0 | 2 | null | 2015-12-02T15:52:47 | 2014-08-18T00:47:48 | Python | UTF-8 | Python | false | false | 6,402 | py | #!/usr/bin/env python
#
# LSST Data Management System
# Copyright 2008, 2009, 2010 LSST Corporation.
#
# This product includes software developed by the
# LSST Project (http://www.lsst.org/).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public Licen... | [
"dr.guangtou@gmail.com"
] | dr.guangtou@gmail.com |
5a95f11678d2ba35d7db207c4a1081d03e252da8 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/model/show_rabbit_mq_project_tags_response.py | 5d24c3f05fd6dafa6aec16fc52933de63019def5 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,383 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowRabbitMqProjectTagsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
347e7b7a8ae9d1f1c229bf0ab3cfd87c9fa48b39 | 52378764c1326051dfc2d5fcf65a31487261d80a | /e3g.py | efc660d1e57f588bb3bb7b82b8a18a8ed5482afa | [] | no_license | MartinCarli/LB-F2 | 337334811e2a539f7a65540ab5394065b2e836e9 | 8886564582a73a2f885b1150159583b939efdbc9 | refs/heads/main | 2023-02-28T00:19:44.145520 | 2021-02-01T17:28:46 | 2021-02-01T17:28:46 | 334,257,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,294 | py |
class Calcolatrice:
def __init__(self, a, b):
self.a=a
self.b=b
#somma
def somma(self):
try:
float(self.a)
float(self.b)
except Exception as e:
print('i valori inseriti non sono numeri:{}'.format(e))
print('somma:{}'.fo... | [
"replituser@example.com"
] | replituser@example.com |
b2c295106f247d6cfa4a12e48b97de84c9019f3e | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav57.py | 3c672732994b4ba81a9079cccfb95fbf689ebd36 | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | #!/usr/bin/python
import sys
def compute(prey):
if prey[1] != 0:
temp0 = prey[1] / prey[1]
else:
temp0 = prey[1]
temp1 = min(prey[1], prey[1])
temp2 = temp0 - prey[0]
temp1 = temp1 + temp2
temp2 = min(prey[0], prey[0])
if prey[0] != 0:
temp0 = temp1 % prey[0]
else:
temp0 = prey[0]
if prey[0] != 0:
t... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
565642fb050f1e96dc90a53b54a4b03c4420f37b | 739e41d4f24f79c772d266cded0de9b759c6e953 | /venv/lib/python3.6/site-packages/nlp/datasets/ted_hrlr/317ae7a59db0b2ef6d10e8b0f5752db8553026fe753c1564f0188ff2a5cd2e9d/ted_hrlr.py | 9aa64d2bc1727156c1433e5d740fcb6ee75e7770 | [
"MIT"
] | permissive | MachineLearningBCAM/Minimax-risk-classifiers-NeurIPS-2020 | 24b7bbdecf459292f8b58be286feab3b9aa341ba | 82586c632268c103de269bcbffa5f7849b174a29 | refs/heads/main | 2023-05-18T15:41:13.495286 | 2021-06-11T18:21:35 | 2021-06-11T18:21:35 | 304,268,819 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,275 | py | # coding=utf-8
# Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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... | [
"adiaz@bcamath.org"
] | adiaz@bcamath.org |
6d3a3e94fe0fcc4d990002f38f763e97c26fdd5b | fc71d5d2a92187c0e142ede6acb931e89a895937 | /page_customisations/migrations/0032_auto_20211025_2012.py | d4d30c8b536eff978e5662c3901cf432457ea0e9 | [] | no_license | DelroyBrown28/nueui-ecommerce-template | 764ffa74a270adab89c5715811b9c01056b8b78e | 86e2bcc1eb99d95aa403fef4e281b61da4944bb6 | refs/heads/main | 2023-08-28T12:19:20.675569 | 2021-11-04T19:14:42 | 2021-11-04T19:14:42 | 393,047,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | # Generated by Django 3.2.3 on 2021-10-25 19:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('page_customisations', '0031_auto_20211025_2011'),
]
operations = [
migrations.AlterField(
model_name='homepagecustomisation',
... | [
"delroybrown.db@gmail.com"
] | delroybrown.db@gmail.com |
8eaa67be6d931a8da1a7ce118148dbf103a1fb53 | 46a5df524f1d96baf94f6eb0f6222f2b856235f3 | /src/puzzle/examples/msp/msp2017_07_12_nebraska_raw.py | 69c5dc23ca56276d70b8f6fea29d187038e5f172 | [
"MIT"
] | permissive | PhilHarnish/forge | 5dfbb0aa2afdb91e55d85187bd86fbeb9b6b2888 | c544fb8b499e1e13793c94159f4c35bce187311e | refs/heads/master | 2023-03-11T17:23:46.569359 | 2023-02-25T15:09:01 | 2023-02-25T15:09:01 | 1,818,598 | 2 | 0 | MIT | 2023-02-25T15:09:02 | 2011-05-29T19:36:53 | Jupyter Notebook | UTF-8 | Python | false | false | 6,089 | py | import Numberjack
Andrea = Numberjack.Variable(25, 'Andrea')
Bob = Numberjack.Variable(25, 'Bob')
Christine = Numberjack.Variable(25, 'Christine')
Diane = Numberjack.Variable(25, 'Diane')
Eleanor = Numberjack.Variable(25, 'Eleanor')
Felicia = Numberjack.Variable(25, 'Felicia')
Greg = Numberjack.Variable(25, 'Greg')
Ha... | [
"philharnish@gmail.com"
] | philharnish@gmail.com |
2036c0ced23127338bf1e207809abf53a725230a | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2354/60765/316990.py | 859f3bce37d67f3adf40a37307ebfc52a01e327e | [] | 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 | 959 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import math
import sys
# n = int(input())
# n,t=list(map(int,input().split()))
# serial=input().split()
#n,t,c=list(map(int,input().split()))
#p=list(map(int,input().split()))
count=0
res=0
#for pri in p:
# if pri>t:
# count=0
# else:
# count+=1
# ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
365a064b22718c2f4b260694b718a2bee10990e7 | cb9a56b1401a9dc5872866875c6beb354ea3bd5f | /cam/sgnmt/io.py | b0f4bb890fcf4cf300b23b4ed7bcab076c3723a5 | [
"Apache-2.0"
] | permissive | BensonChen-0718/sgnmt | 0e2dda123da44e497c60a9c9146461e0753dcaaf | c663ec7b251552e36b6b4f992f0ac21aad87cb7b | refs/heads/master | 2022-03-09T12:56:05.418947 | 2019-08-24T10:13:48 | 2019-08-24T10:13:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,483 | py | # -*- coding: utf-8 -*-
# coding=utf-8
# Copyright 2019 The SGNMT 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 requir... | [
"fstahlberg@gmail.com"
] | fstahlberg@gmail.com |
35e4c4741013f30340efc13412c4736db7fbb65e | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Reconstruction/Jet/JetUncertainties/testingMacros/python_scripts/MakeTH3DFromTH2Ds.py | 1bd2d94500f91e47daea5213977ce868ab66d1ab | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,891 | py | # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
import sys
import re
import array
from ROOT import *
def GetKeyNames(self,dir=""):
self.cd(dir)
return [key.GetName() for key in gDirectory.GetListOfKeys()]
TFile.GetKeyNames = GetKeyNames
def getJetDef(histName):
tokens = histName.sp... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
044b7b2f17170460a5382062961f0253e9f7bb46 | 20c20938e201a0834ccf8b5f2eb5d570d407ad15 | /arc002/arc002_3/8396036.py | 7c82f2968f7bab29150d66d02105b9705388141b | [] | no_license | kouhei-k/atcoder_submissions | 8e1a1fb30c38e0d443b585a27c6d134bf1af610a | 584b4fd842ccfabb16200998fe6652f018edbfc5 | refs/heads/master | 2021-07-02T21:20:05.379886 | 2021-03-01T12:52:26 | 2021-03-01T12:52:26 | 227,364,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | N=int(input())
c=input()
commands=["A","B","X","Y"]
macro=[]
for x in commands:
for y in commands:
macro.append(x+y)
ans=N
for L in macro:
for R in macro:
if L==R:
continue
id=0
tmp=0
while(id<N):
if id <N-1 and (c[id]+c[id+1]==L or c[id]+c[id+1]==R):
id+=2
else:
... | [
"kouhei.k.0116@gmail.com"
] | kouhei.k.0116@gmail.com |
e9e9dbfc9f994c55686b546b49d40dd8f94e8302 | 45ab4c22d918dc4390572f53c267cf60de0d68fb | /src/Analysis/Engine/Impl/Typeshed/stdlib/3/builtins.pyi | 9e1c74f73edc7de1be5a915395cf513278f1bce2 | [
"Apache-2.0",
"MIT"
] | permissive | sourcegraph/python-language-server | 580a24fd15fe9d4abeb95e9333d61db1c11a2670 | 64eae156f14aa14642afcac0e7edaf5d7c6d1a1c | refs/heads/master | 2023-04-09T21:17:07.555979 | 2018-12-06T23:25:05 | 2018-12-06T23:25:05 | 155,174,256 | 2 | 2 | Apache-2.0 | 2018-10-29T08:06:49 | 2018-10-29T08:06:49 | null | UTF-8 | Python | false | false | 44,651 | pyi | # Stubs for builtins (Python 3)
from typing import (
TypeVar, Iterator, Iterable, overload, Container,
Sequence, MutableSequence, Mapping, MutableMapping, NoReturn, Tuple, List, Any, Dict, Callable, Generic,
Set, AbstractSet, FrozenSet, MutableSet, Sized, Reversible, SupportsInt, SupportsFloat,
Support... | [
"alsher@microsoft.com"
] | alsher@microsoft.com |
b9f7d4656c43c5afb0bc4e38c547e3c5dff5a515 | 56b63ee537f872af0fc028016d1508b4c1dd5c60 | /school/migrations/0400_rpt_emssumth_terace.py | 944eeb5138903db5ac2c2afcffae9017c54d2bee | [] | no_license | jacknjillsolutionsrevanth/EMS1 | 01fc571120f765b0fbfe3aa654b15ff578d6e9b9 | db14d8e6c15669b5938aa9276c5e22006218814a | refs/heads/main | 2023-08-03T19:40:50.073133 | 2021-10-01T07:02:37 | 2021-10-01T07:02:37 | 410,202,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 3.2 on 2021-08-07 07:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('school', '0399_auto_20210806_2000'),
]
operations = [
migrations.AddField(
model_name='rpt_emssumth',
name='terace',
... | [
"jacknjillsolutions.revanth@gmail.com"
] | jacknjillsolutions.revanth@gmail.com |
a0b1c2125cb3b5d6c8dc65feae63f1f21acf8ed3 | 4dcf41e11d13258fa240c849fe8ed81c36c761af | /cirq/contrib/quirk/cells/ignored_cells.py | 408b24d7c8cdfe2329b49d15d61c3b4fb4d7f4ef | [
"Apache-2.0"
] | permissive | 1eedaegon/Cirq | 717920bdc4ee265ca5c39abc84d1b136c25d0343 | de0c5e855069bba71e55b070fc9b06f58c07a861 | refs/heads/master | 2020-08-28T14:21:01.531296 | 2019-10-25T22:59:12 | 2019-10-25T22:59:12 | 217,724,457 | 1 | 0 | Apache-2.0 | 2019-10-26T14:55:14 | 2019-10-26T14:55:14 | null | UTF-8 | Python | false | false | 1,380 | py | # Copyright 2019 The Cirq Developers
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in ... | [
"craiggidney+github+cirqbot@google.com"
] | craiggidney+github+cirqbot@google.com |
052436965aaa045955f095c81ebca96dca9b4e63 | ba0cbdae81c171bd4be7b12c0594de72bd6d625a | /MyToontown/Panda3D-1.9.0/direct/p3d/ppatcher.py | e9162c94b763964c5ecb38df55d11cbafad9068d | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | sweep41/Toontown-2016 | 65985f198fa32a832e762fa9c59e59606d6a40a3 | 7732fb2c27001264e6dd652c057b3dc41f9c8a7d | refs/heads/master | 2021-01-23T16:04:45.264205 | 2017-06-04T02:47:34 | 2017-06-04T02:47:34 | 93,279,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,275 | py | #! /usr/bin/env python
usageText = """
This script generates the patches required to support incremental
download of Panda3D packages. It can be run as a post-process on a
directory hierarchy created by ppackage; it will examine the directory
hierarchy, and create any patches that appear to be missing.
You... | [
"sweep14@gmail.com"
] | sweep14@gmail.com |
81d807617835ac101456042bbf4e40f2286616e7 | b299e95c1660aeb9933d83b15689d39e3af60456 | /www_douyin_com/structures/base.py | b2c1d804e57b23cc0ecde0e062fd296ad66b626d | [] | no_license | beckfun/spider_world | 537e700ec84e00efb18fbe4c78ace18f0fe54151 | 06a39872d7dfaf1421b19dbed78ad3c8139f0a19 | refs/heads/master | 2020-05-04T09:06:19.995407 | 2019-04-02T01:19:48 | 2019-04-02T01:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | #!/usr/bin/env python
# coding:utf-8
import datetime
from copy import deepcopy
from www_douyin_com.structures.videos import Video
class Base:
def json(self):
d = deepcopy(self.__dict__)
for k, v in d.items():
if not v:
continue
if isinstance(v, Video):
... | [
"funblessu@gmail.com"
] | funblessu@gmail.com |
013e3ea71ce89dac0441f49c71e9bcb84f03f07e | e2e08d7c97398a42e6554f913ee27340226994d9 | /pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_Route/test_c141071.py | cb44c5646e7ba9c12a86e1e37d796cc3186ddf22 | [] | no_license | lizhuoya1111/Automated_testing_practice | 88e7be512e831d279324ad710946232377fb4c01 | b3a532d33ddeb8d01fff315bcd59b451befdef23 | refs/heads/master | 2022-12-04T08:19:29.806445 | 2020-08-14T03:51:20 | 2020-08-14T03:51:20 | 287,426,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | import pytest
import time
import sys
from page_obj.common.rail import *
from os.path import dirname, abspath
from page_obj.common.ssh import *
from page_obj.scg.scg_def_policy_route import *
from page_obj.scg.scg_def_interface import *
from page_obj.scg.scg_dev import *
from page_obj.scg.scg_def_ifname_OEM imp... | [
"15501866985@163.com"
] | 15501866985@163.com |
e6ec9a89561a874413023b192aa89a174dc05b1d | a37160e59b14d9449da497d0581339535129be5a | /get_goods/scripts/__init__.py | 36168aecec3d58473cc3be5252bc31513ec60133 | [] | no_license | capric8416/taobao | 92d22f729cb217e44cab330ecf95e63a6fafdef2 | 2d875f4912ef42f17ee9db7b5e1036cc4edf034b | refs/heads/master | 2022-07-16T15:26:23.364354 | 2017-11-13T16:27:17 | 2017-11-13T16:27:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
from .translate import TranslateGoodsName
| [
"capric8416@gmail.com"
] | capric8416@gmail.com |
9918fb4cb70e5680adcf8ec358439bbee2b28062 | 174f848b62fb2ea0a1605e1aab70085ffd27ce50 | /breack_for_if_whil_cont/while.py | a167a7f27ba661e583fe3eb89ca2e8c23ca27c57 | [] | no_license | unet-echelon/by_of_python_lesson | cd71bd3890d42d49cc128ec1730371bf1b64dbfa | c6c5c917414ac98b6dfb582dc06c26d31ea5b30c | refs/heads/master | 2021-07-11T07:16:20.243347 | 2020-09-14T12:39:13 | 2020-09-14T12:39:13 | 201,041,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | number = 23
running = True
while running:
guess = int(input('Введите целое число : '))
if guess == number:
print('Поздравляю, вы угадали.')
running = False # это останавливает цикл while
elif guess < number:
print('Нет, загаданное число немного больше этого')
else:
prin... | [
"aleguk@ukr.net"
] | aleguk@ukr.net |
58ca506d04c7c4e8948093db649354129e440f56 | e5e2b7da41fda915cb849f031a0223e2ac354066 | /sdk/python/pulumi_azure_native/machinelearningservices/batch_deployment.py | 81ca0188b4e89934b7fae77d637303a7415af667 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | johnbirdau/pulumi-azure-native | b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25 | d676cc331caa0694d8be99cb90b93fa231e3c705 | refs/heads/master | 2023-05-06T06:48:05.040357 | 2021-06-01T20:42:38 | 2021-06-01T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,646 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | johnbirdau.noreply@github.com |
d9eb9e3c340e612d642db5b5c2881af07cbb0bd0 | d820c8efb25c9adb77015650a0f7dc6f1e983bfe | /abc/abc151_e.py | 6ef031d4ce0db756ea014a14bb64eaba1370c09b | [] | no_license | toshikish/atcoder | 73fdaa2310f23f846279f9f7466bdb969448371f | 33676630d6820dd92ccf0931425b8906b065bedd | refs/heads/master | 2022-05-16T20:00:52.665762 | 2022-04-02T11:55:44 | 2022-04-02T11:55:44 | 173,099,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | N, K = map(int, input().split())
A = list(map(int, input().split()))
MOD = 10 ** 9 + 7
def pow(x, t):
if t == 0:
return 1
a = pow(x, t >> 1)
return a * a * (x ** (t & 1)) % MOD
fact = [0] * N
fact[0] = 1
for i in range(1, N):
fact[i] = fact[i - 1] * i
fact[i] %= MOD
ifact = [0] * N
ifact... | [
"toshiki@nanshika.com"
] | toshiki@nanshika.com |
a73093a6e04a98050a3ebad79628e877808d8c60 | b004204644dd3cf9ad922a6cd5c0aab0c0e97598 | /addons_custom/izi_pos_debt_goods/models/stock_picking.py | 33af83ddfd0a99f867a5cef49e938e064fc8c6d0 | [] | no_license | butagreeza/korea_spa | 7a2fdd92ca73205945632ead6582ef1df424074e | 1524f87b62998eba29e491d0836714abec7059fd | refs/heads/master | 2023-04-26T09:45:51.931127 | 2021-05-17T16:45:33 | 2021-05-17T16:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api, _
from odoo.exceptions import except_orm
from datetime import date
class StockPicking(models.Model):
_inherit = 'stock.picking'
@api.multi
def action_done(self):
picking = super(StockPicking,self).action_done()
Debit = self.env... | [
"tungpd@izisolution.vn"
] | tungpd@izisolution.vn |
d7456e02bf5f0355b0a5ee152df9cd6854ee0f3e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_lumberjacks.py | 65ef86fbe1ee75a24307cd7f73f56ab2ae65554c | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py |
from xai.brain.wordbase.nouns._lumberjack import _LUMBERJACK
#calss header
class _LUMBERJACKS(_LUMBERJACK, ):
def __init__(self,):
_LUMBERJACK.__init__(self)
self.name = "LUMBERJACKS"
self.specie = 'nouns'
self.basic = "lumberjack"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
94b26f30f6d206c92bb6fea662674de2ee896114 | ec2ad4ba4dee1647f9a2d01a1e0fe7c2926ed92d | /pipenv/vendor/requirementslib/models/setup_info.py | 006ee60969dd88827c7d46ffe0a4598256c6166e | [
"MIT",
"BSD-3-Clause"
] | permissive | christek91/pipenv | a2cae5f570fca808cf1b89a934eea0f9eec70a95 | 6cfa4666725999f2c494426c357c751e7debfcf2 | refs/heads/master | 2020-04-06T20:48:36.877200 | 2018-11-18T00:52:13 | 2018-11-18T00:52:13 | 157,784,075 | 0 | 0 | MIT | 2018-11-15T23:10:01 | 2018-11-15T23:10:01 | null | UTF-8 | Python | false | false | 15,582 | py | # -*- coding=utf-8 -*-
import contextlib
import os
import sys
import attr
import packaging.version
import packaging.specifiers
import packaging.utils
try:
from setuptools.dist import distutils
except ImportError:
import distutils
from appdirs import user_cache_dir
from six.moves import configparser
from six.... | [
"dan@danryan.co"
] | dan@danryan.co |
813ea91de4d6e25b6d772e546b668492a66728cf | 0c261e31948fbf39295044ef57643be694124d11 | /whatlies/language/fasttext_lang.py | eb563d31f71978c337d4741e5151c70824d13c61 | [
"Apache-2.0"
] | permissive | Raghibshams456/whatlies | 421237e6efe8634089415dd5a1cf6d6a0278b89a | 07c04dbc5b7e7e6ebff24183b286a2dc8dfba11b | refs/heads/master | 2022-11-16T14:11:24.738583 | 2020-07-13T17:45:45 | 2020-07-13T17:45:45 | 278,894,238 | 0 | 0 | Apache-2.0 | 2020-07-13T17:52:03 | 2020-07-11T15:58:01 | Python | UTF-8 | Python | false | false | 8,842 | py | import warnings
import numpy as np
from typing import Union, List
from sklearn.metrics import pairwise_distances
import fasttext
import fasttext.util
from whatlies.embedding import Embedding
from whatlies.embeddingset import EmbeddingSet
from whatlies.language.common import SklearnTransformerMixin, HiddenPrints
c... | [
"vincentwarmerdam@gmail.com"
] | vincentwarmerdam@gmail.com |
4a0b6166e953d7d72ace02022bc02781b875627d | 118fef6d6bdbe52a62730ff1adf4ef6a289c9e65 | /main_ls.py | ef11f6d8d27d41bda0ec50e1bd77c896f09ea78c | [] | no_license | zhaoxin94/IterLNL | f8009d9d1800209d11f6bf5031e7f3a813dac105 | 5e2d48ef6e7d48e28322c217b9624fac4f130a79 | refs/heads/master | 2023-08-25T19:41:27.120413 | 2021-11-05T09:50:42 | 2021-11-05T09:50:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,275 | py | #!/usr/bin/env python
"""
Gorilla training script.
This script reads a given config file and runs the training or evaluation.
It is an entry point that is able to train standard models in gorilla.
In order to let one script support training of many models,
this script contains logic that are specific to these built-i... | [
"806205254@qq.com"
] | 806205254@qq.com |
7465c89899060b85d188cd7cfc888419aede3530 | 7c0026e4e6e47114c93bd8a49c4d2759cf7a8613 | /starter_code_section_7/tests/unit/models/test_item.py | fe3fd33a05324776e5f2b3bb919dd855ad93ed55 | [] | no_license | ikostan/automation_with_python | 5edf9bca971629fc7621af2957d26c3f0f73fe9e | 131a0699f927ac40ea625a3526c9193863b1cc1c | refs/heads/master | 2020-05-05T09:42:14.360826 | 2019-07-03T01:49:38 | 2019-07-03T01:49:38 | 179,913,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | from starter_code_section_7.tests.unit.unit_base_test import BaseUnitTestCase
from starter_code_section_7.models.item import ItemModel
class ItemUnitTest(BaseUnitTestCase):
def test_create_item(self):
item = ItemModel('test', 19.99, 1)
self.assertEqual(item.name, 'test',
... | [
"igorkostan@gmail.com"
] | igorkostan@gmail.com |
b48b494e81ba643cc1132716c0378c362e0c3374 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/brackets_20200810110107.py | de5de5d771b477c9c44c196a61e3f3008fbb7cea | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | def brackets(S):
# "{[()()]}"
stack = []
for i in S:
stack.append(i)
for i in S:
if ( i == "(" and stack[-1] != ")") or (i == "{" and stack[-1] != "}") or (i == "[" and stack[-1] != "]"):
return 0
else:
stack.pop()
return 1
print(br... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
5d29e9b123fe62c288d690ee1559b884bcb285b8 | e1fada3a9846a5593e3d3d2fdc32b23b832e38b4 | /tests/unit/mpa/modules/models/scalar_schedulers/test_schedulers.py | a79cbdc67e68a31d2a00c7ce006ab31a4337959e | [
"Apache-2.0"
] | permissive | GalyaZalesskaya/openvino_training_extensions | fd1ebb189900008b16b85568449e5c62d8edbad5 | 6116639caeff100b06a6c10a96c7e7f5951f20c7 | refs/heads/develop | 2023-09-03T19:32:44.702497 | 2023-03-15T06:48:24 | 2023-03-15T06:48:24 | 202,568,309 | 0 | 0 | Apache-2.0 | 2019-10-28T16:16:27 | 2019-08-15T15:41:59 | Python | UTF-8 | Python | false | false | 4,105 | py | """Test schedulers."""
# Copyright (C) 2023 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
import pytest
from otx.mpa.modules.models.scalar_schedulers import (
ConstantScalarScheduler,
PolyScalarScheduler,
StepScalarScheduler,
)
class TestSchedulers:
"""Test schedulers."""
def test_c... | [
"noreply@github.com"
] | GalyaZalesskaya.noreply@github.com |
6b288c42631e23141154dc6133f91b6511598fd3 | 455623c94f7e50887d7b732aee8cd86c2bc2b19e | /django-rest-framework-api/blog/blogapp/serializers.py | 021fd7d8946f877fcbf07bc2fb4ead3d7d323bdf | [] | no_license | sudeep0901/django | f55921bf3e4a95e11b2b540e6a8085eb7ecbd963 | 7e770ea9c572812dd29b214a66624a693d712587 | refs/heads/master | 2020-04-27T05:18:41.016922 | 2020-01-21T13:32:12 | 2020-01-21T13:32:12 | 174,077,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from rest_framework.serializers import ModelSerializer
from blogapp.models import Person, LANGUAGE_CHOICES, STYLE_CHOICES
class PersonSerializer(ModelSerializer):
class Meta:
model = Person
fields = '__all__'
| [
"sudeep.tech.patel@gmail.com"
] | sudeep.tech.patel@gmail.com |
41069fde61ecd64c1c25ce878ed00c9ee8f981bd | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_examples/_algorithms_challenges/leetcode/leetCode/Tree/208_ImplementTrie.py | 7bc968c5fa4d7a2f03c3389ced63c2cfe7f455cf | [] | 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 | 1,510 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: xuezaigds@gmail.com
# Refer to:
# https://leetcode.com/discuss/49529/my-python-solution
class TrieNode(object):
def __init__(self):
self.children = {}
self.is_word = False
class Trie(object):
def __init__(self):
self.root = Tr... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
4a4179c0e6159e92478b220f89006f7fe05c49db | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/brackets_20200810113618.py | eb7c01859b301f1480ec6251a24723c15affbb9d | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | def brackets(S):
# "{[()()]}"
if len(S) == 0:
return 1
countS = 0
countB = 0
countC = 0
for i in S:
if i == "(" and stack[-1] == ")":
stack.pop()
print(brackets("([)()]"))
| [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
b2385bbfc23aec73e25d45ae5f60203af2d3082f | 18f0ad99e21e2e35126f8c3c28079d358fa2129a | /CPX_Compass/code.py | 6deabd5f8a8980c1f25120dc1a756de71e095633 | [
"MIT"
] | permissive | ladyada/Adafruit_Learning_System_Guides | 9bf18dfa35941e0cbecbb3c2d02b4fa3cb79744f | 6d76801878cbf65132ccea950dc47ae842c73dcd | refs/heads/master | 2023-08-20T20:30:42.910576 | 2022-01-10T20:28:11 | 2022-01-10T20:28:11 | 115,837,894 | 13 | 2 | MIT | 2020-03-31T23:23:45 | 2017-12-31T02:34:47 | C | UTF-8 | Python | false | false | 4,087 | py | """
Circuit Playground Express Compass
Adafruit invests time and resources providing this open source code.
Please support Adafruit and open source hardware by purchasing
products from Adafruit!
Written by Dave Astels for Adafruit Industries
Copyright (c) 2018 Adafruit Industries
Licensed under the MIT license.
All ... | [
"dastels@daveastels.com"
] | dastels@daveastels.com |
da94f8098f8553be99f666db8e4df6cc547f0ea3 | 4599a5d28a2439b172f114f224c91335e188e5c7 | /tests/test_api.py | aa3783e0151c3a0ba61011c6c451e99419a01b25 | [
"MIT"
] | permissive | marnagy/audio-metadata | 04704c44e49e024736efe5b6ca6d7dc219978ce8 | 4931aa5c5768d7231027f246f73872bc15de93db | refs/heads/main | 2023-02-10T22:21:21.345854 | 2020-10-14T23:26:08 | 2020-10-14T23:29:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,450 | py | from pathlib import Path
from ward import (
each,
raises,
test,
using,
)
import audio_metadata
from audio_metadata import UnsupportedFormat
from tests.fixtures import id3v2_header
AUDIO_FILEPATHS = list((Path(__file__).parent / 'audio').iterdir())
@test(
"ID3v2-only is None",
tags=['unit', 'api', 'determine_... | [
"mail@thebigmunch.me"
] | mail@thebigmunch.me |
6f2dd4f169a2bc267f139544c07ac4e9677049aa | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/common/Lib/idlelib/CodeContext.py | 6ba7981e954874b28dfae8049041cbf18d96fd45 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 6,570 | py | # 2016.11.19 19:59:08 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/idlelib/CodeContext.py
"""CodeContext - Extension to display the block context above the edit window
Once code has scrolled off the top of a window, it can be difficult to
determine which block you are in. This extension impleme... | [
"info@webium.sk"
] | info@webium.sk |
d03d06d4dbaf996027400fff393ce8bcb285c072 | 817b6bd0b18d5f93de46283bb961185a0b70e71f | /MUREX_FX_Forward/Map_Rules.py | 668365ab3a187268fccd206810991512cde9181f | [] | no_license | mattstirling/CTR_Recon | 5e75f07f39fdd20a02c380ba5d214695b63cc603 | fdf3633c936ecfc977814c04c7f03f0c325694bc | refs/heads/master | 2021-01-17T11:07:02.994311 | 2017-08-14T22:29:42 | 2017-08-14T22:29:42 | 52,452,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,027 | py | '''
Created on Aug 10, 2016
@author: cnamgoong
'''
import numpy as np
import re
def apply_map_rule(value,rulename):
try:
if rulename == 'change_flag': return change_flag(value)
elif rulename == 'boolean_maker': return boolean_maker(value)
elif rulename == 'pay_holiday' : ... | [
"mstirling@ScotiaFalcon"
] | mstirling@ScotiaFalcon |
803e0e493261feae536efab0d9c75586a4d41cfd | 987c69ae0c9a44a04985706e329cf91ad58d36b8 | /tests/test_txt.py | b3a52746c90dbd038c33d91bef56b7c7c8db0459 | [
"Apache-2.0"
] | permissive | nasirxo/readme_renderer | 5cbb992ff9853f23f8e54e5c9792c1f6b6e6e527 | be206d314d35a5d70416e4d76d55d19adcb5774b | refs/heads/master | 2022-04-22T21:49:56.159064 | 2020-04-23T03:24:09 | 2020-04-23T03:24:09 | 283,092,423 | 2 | 0 | Apache-2.0 | 2020-07-28T03:52:07 | 2020-07-28T03:52:05 | null | UTF-8 | Python | false | false | 679 | py | import io
import glob
import os.path
import pytest
from readme_renderer.txt import render
@pytest.mark.parametrize(
("txt_filename", "html_filename"),
[
(fn, os.path.splitext(fn)[0] + ".html")
for fn in glob.glob(
os.path.join(os.path.dirname(__file__), "fixtures", "test_*.txt")
... | [
"donald@stufft.io"
] | donald@stufft.io |
72630ab25500420b772ba5b9a9e828b04422c640 | 6bdb32ddbd72c4337dab12002ff05d6966538448 | /gridpack_folder/mc_request/LHEProducer/Spin-2/BulkGraviton_WW_WlepWhad/BulkGraviton_WW_WlepWhad_narrow_M3000_13TeV-madgraph_cff.py | 2d91d5c17e0c864ef0a9173b4671fe61e702861f | [] | no_license | cyrilbecot/DibosonBSMSignal_13TeV | 71db480de274c893ba41453025d01bfafa19e340 | d8e685c40b16cde68d25fef9af257c90bee635ba | refs/heads/master | 2021-01-11T10:17:05.447035 | 2016-08-17T13:32:12 | 2016-08-17T13:32:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import FWCore.ParameterSet.Config as cms
# link to cards:
# https://github.com/cms-sw/genproductions/tree/master/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-2/BulkGraviton_WW_WlepWhad/BulkGraviton_WW_WlepWhad_narrow_M3000
externalLHEProducer = cms.EDProducer("ExternalLHEProducer",
args = cms.v... | [
"syu@cern.ch"
] | syu@cern.ch |
befbcc72c4b4e1dd1097c8a9bfdd07f4cecd0416 | 0eaab1305900d8e70dd746d676126d1667d9c314 | /winregrc/srum_extensions.py | 1a20d96bf2d792c135a7c0c7d2b84b894a9985b5 | [
"Apache-2.0"
] | permissive | scudette/winreg-kb | 89ffc7f63c2630b266bed41d1c66dff64fd1d32d | f81b8bcaef8365d0c52bf3c87af2bccb4274bece | refs/heads/master | 2020-06-08T20:51:37.427445 | 2019-06-14T06:47:16 | 2019-06-14T06:47:16 | 193,304,780 | 1 | 0 | null | 2019-06-23T04:07:02 | 2019-06-23T04:07:02 | null | UTF-8 | Python | false | false | 1,591 | py | # -*- coding: utf-8 -*-
"""System Resource Usage Monitor (SRUM) extension collector."""
from __future__ import unicode_literals
from winregrc import interface
class SRUMExtension(object):
"""System Resource Usage Monitor (SRUM) extension.
Attributes:
dll_name (str): DLL name.
guid (str): identifier.
... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
819a2e7d66486ee1ae58e26e867bce5c2e90ca3c | 0b858ba47ccd7ae397ab070fdb8066ec350aaa03 | /tempus.wsgi | 9efe6ca58aff0c12ae294903d31f814f04acd52e | [] | no_license | plone/plonejenkins.middleware | 3a9f4901ec34c2ffd45b3523e4e387d83d8e3f9e | 223d036f920e37ad1bfa80e3ee9b4984e837ee1d | refs/heads/master | 2023-04-16T15:14:00.952015 | 2023-04-09T15:58:31 | 2023-04-09T15:58:31 | 8,108,016 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | wsgi | import os, sys
#sys.path.append('/var/plone/tempus.buildout')
#os.environ['PYTHON_EGG_CACHE'] = '/var/plone/tempus.buildout/eggs:/var/plone/tempus.buildout/develop-eggs'
from paste.deploy import loadapp
application = loadapp('config:/var/plone/tempus.buildout/development.ini')
| [
"ramon.nb@gmail.com"
] | ramon.nb@gmail.com |
38b6f0ae136f98e12d855969e912f24dbab2c57a | 3f2e2f96c3089eba37e06d4b837099c885beb447 | /planemo_ext/galaxy/tools/loader_directory.py | b9987db10d445b68875c54c8cce32d9945516fc6 | [
"AFL-3.0",
"CC-BY-2.5",
"AFL-2.1",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | chambm/planemo | b4f0ca6afa6db01581fb9181e0c6f080cc22a010 | 5396550d9527e518bb04dccc5e6b12d67905b68a | refs/heads/master | 2021-01-16T19:16:39.497287 | 2015-09-01T23:29:26 | 2015-09-01T23:29:26 | 41,813,460 | 0 | 0 | null | 2015-09-02T16:45:34 | 2015-09-02T16:42:01 | Python | UTF-8 | Python | false | false | 2,224 | py | import fnmatch
import glob
import os
from ..tools import loader
import sys
import logging
log = logging.getLogger(__name__)
PATH_DOES_NOT_EXIST_ERROR = "Could not load tools from path [%s] - this path does not exist."
PATH_AND_RECURSIVE_ERROR = "Cannot specify a single file and recursive."
LOAD_FAILURE_ERROR = "Fail... | [
"jmchilton@gmail.com"
] | jmchilton@gmail.com |
1d4bc4a1f8a420bca853f4912b547600bf971b9d | 2af1e6357f51d0d08b1a991e2bd922b7bdc8c0b6 | /baekjoon/accepted/수학/9527 1의 개수 세기.py | 60c11775f8a71ca07c892e63da5d6c9287ecd803 | [] | no_license | grasshopperTrainer/coding_practice | 530e9912b10952c866d35d69f12c99b96959a22d | d1e5e6d6fa3f71f1a0105940fff1785068aec8b0 | refs/heads/master | 2023-06-01T13:30:15.362657 | 2021-06-08T08:40:15 | 2021-06-08T08:40:15 | 267,359,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py |
def solution(A, B):
dp = {}
def count(N):
if N in dp:
return dp[N]
if N <= 1:
return N
t = 1
while t <= N:
t *= 2
t //= 2
n = count(t-1) + count(N - t) + N - (t - 1)
dp[N] = n
return n
return count(B) - cou... | [
"grasshoppertrainer@gmail.com"
] | grasshoppertrainer@gmail.com |
9210cbf22d63fed2a3eb166472c393ccb8db0ae9 | ab223538012e2f4ddd20ee5eb055625929d34def | /List2/centered_average.py | e6aa891e9069afec4ab38479215f5e98c68c2d9b | [] | no_license | alextickle/codingBat-python | 5a9ee4aaed14310ada4c968fcbcf4e0165c634ca | e96a33733a75dedb3c0aa2267651d2a9b5b59054 | refs/heads/master | 2020-06-14T17:32:29.231154 | 2017-05-06T19:47:54 | 2017-05-06T19:47:54 | 75,354,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | def centered_average(nums):
min = nums[0]
max = nums[0]
for i in range(len(nums)):
if nums[i] > max:
max = nums[i]
if nums[i] < min:
min = nums[i]
sum = 0
for j in range(len(nums)):
sum = sum + nums[j]
return (sum - max - min) / (len(nums) - 2)
print centered_average([1,2,3,4,5])
| [
"alexander.tickle@gmail.com"
] | alexander.tickle@gmail.com |
4564633c45471faf06270d9dc3467744f51b061f | 4838f7f5e36884b2bc4066ea56c3cd55b170d78f | /train_image_statistics.py | 30136fe67a38342a73d051366d071b2a8e02fec7 | [] | no_license | yairbeer/farm2016 | 7b652e8f004c87b7db843677cb8e79f909553d30 | d4d4934dc1b0acd1f863ad356650412ca2e64e31 | refs/heads/master | 2021-01-21T12:59:12.764196 | 2016-04-15T21:24:33 | 2016-04-15T21:24:33 | 55,575,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,036 | py | import glob
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from skimage.io import imread, imsave
from skimage.color import gray2rgb, rgb2gray
from skimage.color.adapt_rgb import adapt_rgb, each_channel
from skimage import filters
from skimage import exposure
import os
def img_draw(im_arr):
... | [
"yaia1309@gmail.com"
] | yaia1309@gmail.com |
d917d580285ff1d7a98fcb785ddffff03b48498f | 15ac76ff04d65d6de0ded2a774da6f16642c2835 | /library/build/lib/orangelib/net.py | 30c6b8aff78a255aa12f0c2cb839a458ad5506cb | [] | no_license | ObinnaObeleagu/orangelib | 1391d6151f2722edbbf655827182d4e864aaaa9b | 7bd10c188fda1c101bfc7c0dcf235c628c646091 | refs/heads/master | 2022-04-19T13:10:05.247042 | 2020-04-13T14:23:40 | 2020-04-13T14:23:40 | 274,392,319 | 1 | 0 | null | 2020-06-23T11:51:49 | 2020-06-23T11:51:48 | null | UTF-8 | Python | false | false | 4,808 | py | # EDIT THE net.py file
#Add the following to the net.py file
import keras
from keras.layers import *
from keras.models import *
import os
from keras.preprocessing import image
#The Linear Bottleneck increases the number of channels going into the depthwise convs
def LinearBottleNeck(x,in_channels,out_chan... | [
"noreply@github.com"
] | ObinnaObeleagu.noreply@github.com |
df734569f082911bc8a2042052b9655dcab9e925 | 12a652ffb301e2f48cb80ddc8fdc556926b8026f | /scripts/bash/dbcleanup.py | 54b761e8fb5a0be0a42d14dc6b594e61b0660a73 | [
"MIT"
] | permissive | jeremiahmarks/dangerzone | de396da0be6bcc56daf69f2f3093afed9db5ede3 | fe2946b8463ed018d2136ca0eb178161ad370565 | refs/heads/master | 2020-05-22T12:45:34.212600 | 2017-04-18T02:57:59 | 2017-04-18T02:57:59 | 28,025,861 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,116 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
There are several repetitious database entries that I have in my db. This script
is there to clean them up.
"""
import os, sys
import cgi
import pwd
import socket
import urlparse
import MySQLdb
import pw
sys.path.insert(0,'/home/jlmarks/mycode/mypy')
db = MySQLdb.... | [
"Jeremiah@JLMarks.org"
] | Jeremiah@JLMarks.org |
70b5ae1a56cb8cf40ed7304a039c117b614c78a6 | 7c4369d5e2e048842b23064c609d6c2bbfd0ca76 | /bertrand/pages.py | 2eb7692906146afcacdf3e6fbb61de26567455a4 | [
"MIT"
] | permissive | chapkovski/oTree-Russian | c2829bbba915113c2b22b1b77ec0d42bb45dd704 | e17ffa287e2d197caff856cb985884d3d16edfb4 | refs/heads/russian | 2023-02-07T05:33:32.880659 | 2020-12-24T08:38:55 | 2020-12-24T08:38:55 | 318,496,476 | 0 | 4 | NOASSERTION | 2020-12-24T08:39:14 | 2020-12-04T11:31:48 | Python | UTF-8 | Python | false | false | 411 | py | from ._builtin import Page, WaitPage
from otree.api import Currency as c, currency_range
from .models import Constants
class Introduction(Page):
pass
class Decide(Page):
form_model = 'player'
form_fields = ['price']
class ResultsWaitPage(WaitPage):
after_all_players_arrive = 'set_payoffs'
class ... | [
"chris@otree.org"
] | chris@otree.org |
e5ecb7551854b813a251328a27ad435a7f59ca99 | 76fdc88ebdafa624a35d2d6e1d9821290be0b68a | /NLP/4-2.Seq2Seq_Attention/4_2_4_Seq2Seq_Padded_ Mask_BLEU.py | 100744205d28d300b5b9ead327822a7b14a35138 | [] | no_license | ramild/pytorch_learning | 3c17a38dc2ecb1493d2fe68e337874050658dbe7 | 69455d58a6d857f5f7cb167c33bd695d5e6e66cc | refs/heads/master | 2022-12-18T13:28:00.538004 | 2020-09-02T18:28:44 | 2020-09-02T18:28:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,581 | py | # coding: utf-8
# # 4 - Packed Padded Sequences, Masking, Inference and BLEU
#
# ## Introduction
#
# In this notebook we will be adding a few improvements - packed padded sequences and masking - to the model from the
# previous notebook. Packed padded sequences are used to tell our RNN to skip over padding tokens in... | [
"summer56567@163.com"
] | summer56567@163.com |
92193d184b9ef4368a6c9afaef81f3cb1bfc6567 | f7b361c57a031e9e3cf291be0a18a39170ac853b | /db_operation/login_info_dao.py | d59b102d87d097eee78f1f33c1d7cf55f9d779d1 | [] | no_license | iamdaiyuan/WeiboSpider | 5af7b1985d434156bcb871e3d3fcfdd791ca9d4a | 0532af6cbf28d1b3e876d2d73335602bc15a46cf | refs/heads/master | 2021-01-18T08:29:54.819784 | 2016-09-01T10:48:39 | 2016-09-01T10:48:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # -*-coding:utf-8 -*-
# 操作登陆信息
from db_operation import db_connect
def get_login_info():
con = db_connect.get_con()
sql = 'SELECT * FROM (SELECT * FROM sina_login_infodangbantest order by dbms_random.value) WHERE rownum =1'
r = db_connect.db_queryone(con, sql)
db_connect.db_close(con)
login_name =... | [
"1796246076@qq.com"
] | 1796246076@qq.com |
49552a3f6655df81cbe05af0fd0cded902a80fce | 18f776553a59a89faf05144ed1a69dc563dc4e9e | /Python/t51.py | 3d9e9fed2c90c45ae5195d6f24067c5cc0bdcf45 | [] | no_license | g-lyc/LeetCode | 274feff3b6c61da0ec8726deac0b298baed5cf10 | fa45cd44c3d4e7b0205833efcdc708d1638cbbe4 | refs/heads/master | 2022-12-13T14:50:02.976951 | 2020-09-03T09:39:58 | 2020-09-03T09:39:58 | 259,212,315 | 15 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,964 | py | # -*- conding:utf-8 -*-
#Author:lyc
import os, sys, copy
# 题目:
# n 皇后问题研究的是如何将 n 个皇后放置在 n×n 的棋盘上,并且使皇后彼此之间不能相互攻击。
# 给定一个整数 n,返回所有不同的 n 皇后问题的解决方案。
# 每一种解法包含一个明确的 n 皇后问题的棋子放置方案,该方案中 'Q' 和 '.' 分别代表了皇后和空位。
#
# 示例:
# 输入: 4
# 输出: [
# [".Q..", // 解法 1
# "...Q",
# "Q...",
# "..Q."],
#
# ["..Q.", // 解法 2
# "Q...",
... | [
"309080979@qq.com"
] | 309080979@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.