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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
949c6d9f07351de9dce2dce42d9cd57e27bac03d | 0920b50773cfd231137d2383695a6730d0678628 | /pylib/keys.py | e9b88d82a59a5096cf7a1651b31216abd9793056 | [] | no_license | chyser/bin | 05b67cf299b0e427e253abc42ca015fcdec8e84c | b54f23c6c5f1f19e426ee06c9e9faf9f561ee9a9 | refs/heads/master | 2021-01-19T19:35:05.801722 | 2015-08-19T17:58:29 | 2015-08-19T17:58:29 | 17,319,228 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,443 | py | #!/usr/bin/env python
"""
Library:
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
from __future__ import absolute_import
import string
__QuickChars = '0123456789abcdefghijkmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ-_+$'
__sd = {}
for idx, ch in enume... | [
"chris.hyser@oracle.com"
] | chris.hyser@oracle.com |
b17ff877803df569c734b00023bb306e5ed63be5 | e0c8e66af3a72a1cc534d7a90fead48754d266b3 | /pandas/core/internals.py | 1071ebcc1ba70401b25fd6e5215de510cd51775e | [
"BSD-3-Clause"
] | permissive | gwtaylor/pandas | e12b0682347b9f03a24d6bff3e14f563cb7a3758 | 7b0349f0545011a6cac2422b8d8d0f409ffd1e15 | refs/heads/master | 2021-01-15T17:51:47.147334 | 2012-01-13T17:53:56 | 2012-01-13T17:53:56 | 3,174,111 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 33,514 | py | import itertools
from numpy import nan
import numpy as np
from pandas.core.index import Index, _ensure_index
import pandas.core.common as com
import pandas._tseries as lib
class Block(object):
"""
Canonical n-dimensional unit of homogeneous dtype contained in a pandas data
structure
Index-ignorant; ... | [
"wesmckinn@gmail.com"
] | wesmckinn@gmail.com |
4559f5f956f5f1d1aca521001d1a56aa006e342c | c2e969a4a54d54426675639a1dc8e0cb86e7a272 | /mbed_devices/_internal/mbed_tools/list_connected_devices.py | 924000ba8a97dddb551a8d8bf57ce56ae2f90fbe | [
"Apache-2.0"
] | permissive | ARMmbed/mbed-devices | e773caf78b29c5f1eb2e59485c6e4a2847630eef | d9f459cbe47a341734c0813ebcdd25633237e1d9 | refs/heads/master | 2023-03-16T15:58:40.202451 | 2020-04-28T14:26:43 | 2020-04-28T14:26:43 | 215,789,280 | 3 | 0 | Apache-2.0 | 2020-07-09T21:34:01 | 2019-10-17T12:40:04 | Python | UTF-8 | Python | false | false | 3,148 | py | #
# Copyright (C) 2020 Arm Mbed. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
"""List all devices cli command."""
import click
import json
from operator import attrgetter
from typing import Iterable
from tabulate import tabulate
from mbed_devices import get_connected_devices, Device
from mbed_targets i... | [
"noreply@github.com"
] | ARMmbed.noreply@github.com |
60cc3428b450d6e43e6a31d6e789ce5f20e0f0f1 | 011416f366b8ff7da7e267cabcacb2279f328447 | /detector.py | e8686abcd2dfc72cadbfa58d80bc1c8997c14671 | [] | no_license | victorgrubio/Yolo-detection-NRG5 | ceed23cc7d2d7f97064bc9232e888e8c1df3df7a | 48c746d6cb1f1862f94bcfb5d90378d009fd73b6 | refs/heads/main | 2023-01-10T16:12:40.487364 | 2020-10-20T17:58:39 | 2020-10-20T17:58:39 | 306,098,308 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | """
Created on Mon Jan 29 17:25:59 2018
@author: victor
"""
import pyximport; pyximport.install() # allow .pyx files import
def Detector():
def __init__(self, img):
pass
def process_img(self, img):
pass
| [
"victorgrubiodl@gmail.com"
] | victorgrubiodl@gmail.com |
6465301a497bfcd82a2d6d1b4edea5e3e8ea5605 | 1137db33db4a1ebe66ede596021c691f856b2979 | /funcmeasure/models/__init__.py | 46ae28b12fb8f86a8ef5b0bfa21d539b8112c3af | [
"MIT"
] | permissive | kkristof200/py_funcmeasure | d1aa6f0d86f4cd854d863772c2ed663641ae91f8 | 0cf910e7759466df60bcd6fa411051d36088f97d | refs/heads/master | 2023-04-15T09:31:57.546583 | 2021-04-15T15:14:29 | 2021-04-15T15:14:29 | 270,449,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | from .function_stats import FunctionStats
from .enums import * | [
"kovacskristof200@gmail.com"
] | kovacskristof200@gmail.com |
8e7c8e939b745936b9c56fdcad18bbc94247f2dc | c1bd12405d244c5924a4b069286cd9baf2c63895 | /azure-mgmt-recoveryservicesbackup/azure/mgmt/recoveryservicesbackup/models/mab_error_info.py | d57e90b3fdeaad0ccaa8fce630564c8ecc36c04b | [
"MIT"
] | permissive | lmazuel/azure-sdk-for-python | 972708ad5902778004680b142874582a284a8a7c | b40e0e36cc00a82b7f8ca2fa599b1928240c98b5 | refs/heads/master | 2022-08-16T02:32:14.070707 | 2018-03-29T17:16:15 | 2018-03-29T17:16:15 | 21,287,134 | 1 | 3 | MIT | 2019-10-25T15:56:00 | 2014-06-27T19:40:56 | Python | UTF-8 | Python | false | false | 1,097 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"dheeru.rathor14@gmail.com"
] | dheeru.rathor14@gmail.com |
967bc0c6daed181a230ed0df131092a91d1585c7 | 9b3f578e63a7e17e2b1bab5f38aa8625b8a80251 | /descarteslabs/workflows/types/primitives/primitive.py | 2d49e5b56195eb800ecbd67e14ed0bf44934e74c | [
"Apache-2.0"
] | permissive | carderne/descarteslabs-python | e6f7000f08cd1569e0ddd0f7fb8e53abb6765183 | 757b480efb8d58474a3bf07f1dbd90652b46ed64 | refs/heads/master | 2022-12-09T23:19:02.361226 | 2020-08-13T11:52:30 | 2020-08-13T11:52:30 | 287,264,851 | 0 | 0 | NOASSERTION | 2020-08-13T11:46:58 | 2020-08-13T11:46:57 | null | UTF-8 | Python | false | false | 1,324 | py | from descarteslabs.common.graft import client
from ..core import Proxytype, ProxyTypeError
class Primitive(Proxytype):
"""
Proxy wrapper around a Python primitive type.
Do not use Primitive directly; instead, use one of the built-in subtypes (Int, Str, etc.)
"""
_pytype = None
def __init__(... | [
"support@descarteslabs.com"
] | support@descarteslabs.com |
bd6fbef0bcbf14bea60261fe548c8aa68a9ac909 | 302442c32bacca6cde69184d3f2d7529361e4f3c | /cidtrsend-all/stage2-model/pytz/zoneinfo/America/Argentina/Mendoza.py | d3b0b6b1d1cd786afa0f915837aa14c8768788d6 | [] | no_license | fucknoob/WebSemantic | 580b85563072b1c9cc1fc8755f4b09dda5a14b03 | f2b4584a994e00e76caccce167eb04ea61afa3e0 | refs/heads/master | 2021-01-19T09:41:59.135927 | 2015-02-07T02:11:23 | 2015-02-07T02:11:23 | 30,441,659 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,974 | py | '''tzinfo timezone information for America/Argentina/Mendoza.'''
from pytz.tzinfo import DstTzInfo
from pytz.tzinfo import memorized_datetime as d
from pytz.tzinfo import memorized_ttinfo as i
class Mendoza(DstTzInfo):
'''America/Argentina/Mendoza timezone definition. See datetime.tzinfo for details'''
... | [
"learnfuzzy@gmail.com"
] | learnfuzzy@gmail.com |
731ddffa3a3330ee11c7a4b1f6c437a7196dcce7 | d90283bff72b5a55dd4d0f90c7325355b00ce7b1 | /p1804/lianxi/函数参数.py | 604939b96265d356561c29ce3cf5a71702d1a3db | [] | no_license | yuemeiss/p1804daima | f841f52e63081d53d50a199e4d148d4533605bb6 | 6ea08eb9971e42bf4ac535033a006d98ed98bf98 | refs/heads/master | 2020-03-15T23:29:59.691297 | 2018-08-06T02:42:49 | 2018-08-06T02:42:49 | 132,395,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | def sum_2_num():
num1 = 10
num2 = 20
result = num1 + num2
print("%d + %d = %d"% (num1,num2,result))
sum_2_num()
| [
"1083027306@qq.com"
] | 1083027306@qq.com |
bc4cfdc288816b00de2839a560736efa2542f302 | 07151cc20993dff5e3e22a8fc2fe4fe7fb3e2551 | /parse_drugbank.py | 3142e785a49b34248686366bc30b75f9c1d3bc04 | [] | no_license | jmuhlich/lincs-drug-targets | 4a2b122185caf587a3b4eda47da125c4a3c8e439 | bf627c4760c52fa0a15645c4b49c077a4ed478d5 | refs/heads/master | 2021-01-19T08:26:02.903067 | 2013-07-03T19:48:01 | 2013-07-03T19:48:01 | 10,800,024 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,668 | py | import os
import sys
import lxml.etree
import csv
import sqlalchemy as sa
def xpath(obj, path, single=True):
result = map(unicode, obj.xpath(path, namespaces={'d': ns}))
if single:
if len(result) == 0:
result = None
elif len(result) == 1:
result = result[0]
else:... | [
"jmuhlich@bitflood.org"
] | jmuhlich@bitflood.org |
bc0ab3ba1d66e12d5151b4ece16b2e5d76d35cfa | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/h5py/version.py | d07fd5c286ba42d9633ba01d61c2280a7fd43eff | [
"Apache-2.0"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 1,652 | py | # This file is part of h5py, a Python interface to the HDF5 library.
#
# http://www.h5py.org
#
# Copyright 2008-2013 Andrew Collette and contributors
#
# License: Standard 3-clause BSD; see "license.txt" for full license terms
# and contributor agreement.
"""
Versioning module for h5py.
"""
from __futu... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
8ecf3e72e374f924b88bc99a155fc33cd9c050a1 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/ospf/lsastatshist5min.py | 10f90f8bccaf46bf0a16f11a7a67d8878606062d | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 27,691 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
8dcce500bccb4d7e0fe014e6d850a544ff23c742 | 822027ec57f113f80a51f100c520eb76a6f302f6 | /test/z_component_tests/test__encoding.py | c16288fc2367ecd1ff65d2070ad6a1e0a27f5ece | [
"MIT"
] | permissive | KIC/pandas_ml_utils | 131de11f4914f0993570687b581452e2e81b256b | 76b764e2f87c2e9bcee9a62cfe0b54e7fb046034 | refs/heads/master | 2023-04-04T00:08:23.175385 | 2020-02-24T14:44:42 | 2020-02-24T14:44:42 | 205,210,206 | 3 | 0 | MIT | 2023-03-24T23:20:47 | 2019-08-29T16:54:12 | Python | UTF-8 | Python | false | false | 1,683 | py | import logging
import unittest
from typing import List
import pandas as pd
import numpy as np
from sklearn.neural_network import MLPClassifier
import pandas_ml_utils as pdu
from pandas_ml_utils.constants import *
from test.config import TEST_FILE
from pandas_ml_utils.model.features_and_labels.target_encoder import T... | [
"ch9.ki7@gmail.com"
] | ch9.ki7@gmail.com |
fe993ecafc7ef8012d6a4063011c843657ce6c70 | f0681b8c129e8afce21e340697502230f45ce930 | /venv/Lib/site-packages/com/vmware/nsx_policy/infra/services_client.py | 82757de614aaf94ee6efc90a2e3fe00d79d670b9 | [] | no_license | dungla2011/python_pyvmomi_working_sample_vmware_easy | 8852b6fdcd0f7d0f648f6f7b6c6e4f70c7213746 | a3b6d86a802f28c7ee249fc03523d5e5f0a2e3bd | refs/heads/main | 2023-07-05T14:56:46.551091 | 2021-08-20T12:19:39 | 2021-08-20T12:19:39 | 395,496,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,849 | py | # -*- coding: utf-8 -*-
#---------------------------------------------------------------------------
# Copyright 2021 VMware, Inc. All rights reserved.
# AUTO GENERATED FILE -- DO NOT MODIFY!
#
# vAPI stub file for package com.vmware.nsx_policy.infra.services.
#--------------------------------------------------------... | [
"dungla2011@gmail.com"
] | dungla2011@gmail.com |
c1d2ad1b4ef08b921ee81f80d41045d6c1deef7a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_211/ch27_2020_03_11_19_25_38_657892.py | 6bfeffb25e1b70d6b961b54597fe66634b50247f | [] | 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 | 494 | py | '''Faça um programa que pergunta ao aluno se ele tem dúvidas na disciplina. Se o aluno responder qualquer coisa diferente de "não", escreva "Pratique mais" e pergunte novamente se ele tem dúvidas. Continue perguntando até que o aluno responda que não tem dúvidas. Finalmente, escreva "Até a próxima".
Seu programa deve ... | [
"you@example.com"
] | you@example.com |
5326aadeaf20fb0e6e60b6f2a9f3f75699f6c732 | d623b8fe1b7e5d49d1c2623fc6ff0356bda50d5d | /tests/components/bluetooth/test_init.py | 9b958e2fadeb2c4bd0469a829652668f93675d45 | [
"Apache-2.0"
] | permissive | piotr-kubiak/home-assistant | 02f1ab8195d9111c6d4c96a55715e67de6b103d9 | d32f3e359f1fabe2d79b0e07e375b3723b7cb07c | refs/heads/dev | 2023-03-03T11:08:25.871531 | 2022-08-26T19:41:41 | 2022-08-26T19:41:41 | 198,906,482 | 1 | 0 | Apache-2.0 | 2023-02-22T06:23:51 | 2019-07-25T22:00:44 | Python | UTF-8 | Python | false | false | 69,951 | py | """Tests for the Bluetooth integration."""
import asyncio
from datetime import timedelta
import time
from unittest.mock import MagicMock, Mock, patch
from bleak import BleakError
from bleak.backends.scanner import AdvertisementData, BLEDevice
import pytest
from homeassistant.components import bluetooth
from homeassis... | [
"noreply@github.com"
] | piotr-kubiak.noreply@github.com |
287eb5948fdfa0b92d31d92331777526e4b0d8c2 | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/2021-5-15/python_re2_test_file/regexlib_5492.py | 8908eaf023624b909fb44cceba923652e2fb1cb3 | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # 5492
# ^((\D*[a-z]\D*[A-Z]\D*)|(\D*[A-Z]\D*[a-z]\D*)|(\D*\W\D*[a-z])|(\D*\W\D*[A-Z])|(\D*[a-z]\D*\W)|(\D*[A-Z]\D*\W))$
# EXPONENT
# nums:5
# EXPONENT AttackString:""+"aA"*512+"@1 _SLQ_2"
import re2 as re
from time import perf_counter
regex = """^((\D*[a-z]\D*[A-Z]\D*)|(\D*[A-Z]\D*[a-z]\D*)|(\D*\W\D*[a-z])|(\D*\W\D*... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
d4e4c2c0bc5b59146ff0bc3021c814b5a8821c8a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_undulated.py | 64b34a6850b8ecaf7e0aabe42b76a28fce49e7b8 | [
"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 | 252 | py |
from xai.brain.wordbase.verbs._undulate import _UNDULATE
#calss header
class _UNDULATED(_UNDULATE, ):
def __init__(self,):
_UNDULATE.__init__(self)
self.name = "UNDULATED"
self.specie = 'verbs'
self.basic = "undulate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
4c8ea9cb63d8f0c08dd8f3b0cec6698d4ed9ea3d | 0cc2a3a4b5948d8a30a4ab6e6a81209b28fa4dc2 | /Introduction.py | b75a74b8451203f59734e9fa4a6de2b3aa61bb28 | [] | no_license | zoshs2/Statiscal_Learning_Beginner | ece80effaae28875ed023803f2c738baf21fb6af | dc48640b00b04c1357ea205340f81b3e6bdbff5b | refs/heads/main | 2023-01-13T09:12:29.204403 | 2020-10-28T06:46:30 | 2020-10-28T06:46:30 | 306,056,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | ### Introduction
# Basic statistic for beginners
# https://www.kaggle.com/kanncaa1/statistical-learning-tutorial-for-beginners
## Chapter 1.py
# 1. Histogram
# 2. Outliers
# 3. Box Plot
# 4. Summary Statistics
## Chapter 2.py
# 5. CDF (Cumulative Distribution Function?)
# 6. Effect Size
# 7. Relationship Between Vari... | [
"zoshs27@gmail.com"
] | zoshs27@gmail.com |
bae18e6d6c368cd7d692ce5ddccda12121b1bcd3 | f6217c228984107f1fdde63fc544c92ad32efd13 | /common/hash/sha256.py | 36c2288f256afde86f48bd1cd2dc3a4118fb44cb | [
"MIT"
] | permissive | lukius/mts | 8be64972fd700ec9110789a7e15307e3fc3dfecb | 96d3d8b28742a474aca67bfcb079577c878bbb4c | refs/heads/master | 2021-06-06T03:22:21.991908 | 2017-11-28T23:52:50 | 2017-11-28T23:52:50 | 22,904,866 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | from Crypto.Hash import SHA256 as _SHA256
from common.hash import HashFunction
class SHA256(HashFunction):
@classmethod
def get_OID(cls):
return '\x06\x09\x60\x86\x48\x01\x65\x03\x04\x02\x01'
def hash(self, message):
# TODO: implement custom SHA256.
return _SHA256.new(me... | [
"lukius@gmail.com"
] | lukius@gmail.com |
2d0ddf5bf1de02234b97f6a5df7b3d69b8d470a4 | 22b3822af1a3c525cfbc85efabcb80f7198dba8d | /Functions/Brantley_U5_04/Brantley_U5_04.py | 39c8efb038eaf3f8b4602369e39fffdb88cef6ec | [] | no_license | ccbrantley/Python_3.30 | 90b05a0b985819e95333e490006544332bb5e462 | 681bfd542505754abe36224f5b773d889f20ae38 | refs/heads/master | 2021-12-25T02:04:44.501778 | 2018-04-05T17:40:46 | 2018-04-05T17:40:46 | 80,469,480 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | expenseDict = {'loan payment' : 0, 'insurance' : 0, 'gas' : 0, 'oil' : 0, 'tires' : 0, 'maintenace' : 0}
def main():
expense()
totalMonthly, totalYearly = total()
print('Total monthly cost: $', format(totalMonthly, ',.2f'), sep='')
print('Total annual cost: $', format(totalYearly, ',.2f'), sep=''... | [
"noreply@github.com"
] | ccbrantley.noreply@github.com |
d6ca72f18a592b1ecc313eea503875930f5d835c | 167face5e34f69ba36b8a8d93306387dcaa50d24 | /testes.py | 9502eb97df4ebeb820bacf59a85b1d29e3ef13b5 | [] | no_license | william-cirico/python-study | 4fbe20936c46af6115f0d88ad861c71e6273db71 | 5923268fea4c78707fe82f1f609535a69859d0df | refs/heads/main | 2023-04-19T03:49:23.237829 | 2021-05-03T01:24:56 | 2021-05-03T01:24:56 | 309,492,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | import unittest
from atividades import comer, dormir, eh_engracado
class AtividadesTestes(unittest.TestCase):
def test_comer_saudavel(self):
"""Testando o retorno com comida saudavel"""
self.assertEqual(
comer('quiabo', True),
"Estou comendo quiabo porque quero manter a fo... | [
"contato.williamc@gmail.com"
] | contato.williamc@gmail.com |
e966f209cb98135cc7d991a4ed9fb9f6176e8b2b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_artworks.py | d3cffdc1e4d13959720c0a0811e03088e3d625c5 | [
"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._artwork import _ARTWORK
#calss header
class _ARTWORKS(_ARTWORK, ):
def __init__(self,):
_ARTWORK.__init__(self)
self.name = "ARTWORKS"
self.specie = 'nouns'
self.basic = "artwork"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
24842142cd636353539a3e7b63e7cef1c4626bb1 | 7a1b88d06ea18772b065b43d775cec6dd2acdf80 | /4153.py | 39386beff06afc1b47bb3d042dc3cabb7a745654 | [] | no_license | skaurl/baekjoon-online-judge | 28144cca45168e79b1ae0baa9a351f498f8d19ab | 1620d298c2f429e03c5f9387d8aca13763f5c731 | refs/heads/master | 2023-07-26T10:07:29.724066 | 2021-09-07T09:21:02 | 2021-09-07T09:21:02 | 299,019,978 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | while True:
A = input().split()
A[0] = int(A[0])
A[1] = int(A[1])
A[2] = int(A[2])
A = sorted(A)
if A[0] == 0 and A[1] == 0 and A[2] == 0:
break
if A[0]**2 + A[1]**2 == A[2]**2:
print('right')
else:
print('wrong') | [
"dr_lunars@naver.com"
] | dr_lunars@naver.com |
94d7fe23b39627e9dafd26e70c17d851bdc74ebc | bedadeffd76899b4255871eaa79a03e8c8c5d7a9 | /screenshot/urls.py | 48013d0dce79f803043d4b0400d96b8fd8e14906 | [] | no_license | aakriti1435/Django-HTML-to-PDF | 5b48c5b0300227bc37439c4ea3d515c9ca3644a1 | 1f9a261ef1b17267514a951b8155c54ad74a281a | refs/heads/master | 2022-12-02T02:12:20.659027 | 2020-08-13T13:32:01 | 2020-08-13T13:32:01 | 287,287,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from django.urls import path
from . import views
# from .views import take_screenshot
urlpatterns = [
path('', views.canvas),
path('/take', views.take_screenshot, name='canvas'),
] | [
"65544777+aakriti1435@users.noreply.github.com"
] | 65544777+aakriti1435@users.noreply.github.com |
902f3b00f8b02d6588611e6f3ec9c27f5ca52daa | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /b36bBpsnzyDbd4mzF_7.py | 569c718eecf06dc047827688656c8d981d55a694 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 70 | py |
def imposter_formula(i, p):
return str(round(100 * (i/p),)) + "%"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6fad1f124a44e93e1651c2f3ac8832a29a8777dd | 4be467ebc691f31b94dc72de88c10e1ab14d9c53 | /data.py | b7c56b80f628bfbb8bf81d5948588ea589af7f90 | [] | no_license | oziTeam/mockup-warp-test | 546d96a028155b2d605f72fbd1b0513d23b63ada | 242e838d31c57603f04060b5e8c196ac8ba9f306 | refs/heads/master | 2022-12-04T10:09:18.159312 | 2020-08-19T04:52:32 | 2020-08-19T04:52:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,833 | py | # ARTWORK_DATA = {
# "Front": "./sample_data/artworks/3-front.jpg",
# "Hood": "./sample_data/artworks/3-hood.jpg",
# "Back": "./sample_data/artworks/3-back.jpg"
# }
#
# MOCKUP_DATA = [
# {
# "side_name": "Back",
# "parts": [
# {
# "name": "back.left_sleeve",
#... | [
"vantrong291@gmail.com"
] | vantrong291@gmail.com |
0495487a69cc62832cd6afee4efb15ddda3a9969 | 10e94d77e56d9cbb979174795c465b679d03d6b3 | /tensorflow/contrib/learn/python/learn/dataframe/transforms/difference.py | f9cb0c9485516abedbb3847530755d5cb328287f | [
"Apache-2.0"
] | permissive | pint1022/tf-coriander | 68939732c1ec0f052929c13ef6d8f49e44d423e4 | 197a685accca4a3f38285d6ac3ccf3998a200090 | refs/heads/master | 2020-04-14T18:56:40.334257 | 2019-01-11T00:40:11 | 2019-01-11T00:40:11 | 164,038,861 | 1 | 0 | Apache-2.0 | 2019-01-04T00:53:40 | 2019-01-04T00:53:40 | null | UTF-8 | Python | false | false | 2,361 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d908b2fae3acda4b5f7c3d8687dd1444f93be70c | c6389f9b11fd40ee9295f4e88a14a8057e294e4f | /components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py | 3c755efed3e57a74ab399fd34544cd6f210af845 | [
"MIT"
] | permissive | ghsecuritylab/N14 | 987ebb27cfbd7ebf84deadeb09a480aa51be34c7 | 76bc595e3face0903436e48165f31724e4d4532a | refs/heads/master | 2021-02-28T19:46:09.834253 | 2019-11-19T14:36:58 | 2019-11-19T14:36:58 | 245,728,464 | 0 | 0 | MIT | 2020-03-08T00:40:31 | 2020-03-08T00:40:30 | null | UTF-8 | Python | false | false | 34,844 | py | #!/usr/bin/env python
#
# esp-idf NVS partition generation tool. Tool helps in generating NVS-compatible
# partition binary, with key-value pair entries provided via a CSV file.
#
# Copyright 2018 Espressif Systems (Shanghai) PTE LTD
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may ... | [
"qitas@qitas.cn"
] | qitas@qitas.cn |
0428f2bbc10bab71365ca218e39a361a0a85a71f | e89b1297206710aad354ae7a0514ea8d0dfe5984 | /setup.py | 907ca11897264ee61d985f4a1558c49f3ab2f3e7 | [] | no_license | dandavison/docopt-subcommand-completion-example | d649f635012e147cc59c94611a198abe7b61aff7 | f700d61aa43fb9ddf16c4bd11aeccdb7bad171dc | refs/heads/master | 2021-01-17T13:29:34.631932 | 2016-07-10T21:03:31 | 2016-07-10T21:03:31 | 56,941,539 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | import os
from setuptools import find_packages
from setuptools import setup
setup(
name='docopt-example',
version=(open(os.path.join(os.path.dirname(__file__),
'app',
'version.txt'))
.read().strip()),
packages=find_packages(),
... | [
"dandavison7@gmail.com"
] | dandavison7@gmail.com |
555ad2bb52e603076658741cc942bcaa8a6e7d82 | a024fe3b05dd320a7860165dd72ebd832ce6e484 | /intn_informe_bascula_web/models/models.py | 50eadeb8cc3bf328f707f559a4c7e5cdcabf4edf | [] | no_license | acostaw/erp_odoo | 97d02a675908e441cf8e1ba4e3dcbc62691f8dec | 2437997b650c9fdbf6a6f007c0a1fea2aab018e2 | refs/heads/main | 2023-04-19T14:52:48.877851 | 2021-04-22T18:40:07 | 2021-04-22T18:40:07 | 360,644,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
# class intn_informe_bascula_web(models.Model):
# _name = 'intn_informe_bascula_web.intn_informe_bascula_web'
# name = fields.Char()
# value = fields.Integer()
# value2 = fields.Float(compute="_value_pc", store=True)
# description = fie... | [
"wacosta@INTN.GOV.PY"
] | wacosta@INTN.GOV.PY |
d659427ec99c9669489b717acd6c596b6664ec5a | 98d22227d64517351db489dd5d751bcbf852e9b3 | /keras/applications/inception_v3.py | 58c6d1f27363aebe3a0e0b0c5994b6ce713b5512 | [
"MIT"
] | permissive | intel/keras | 5d4d869ff4ab96a440abc12a6654daca59cd6714 | ced92ff0293f95bf1c200b55af098e8e136686c2 | refs/heads/master | 2023-08-30T13:39:09.291242 | 2022-08-04T23:04:26 | 2022-08-04T23:04:26 | 72,058,381 | 13 | 5 | null | 2016-10-27T01:09:40 | 2016-10-27T01:09:38 | null | UTF-8 | Python | false | false | 12,610 | py | # -*- coding: utf-8 -*-
'''Inception V3 model for Keras.
Note that the ImageNet weights provided are from a model that had not fully converged.
Inception v3 should be able to reach 6.9% top-5 error, but our model
only gets to 7.8% (same as a fully-converged ResNet 50).
For comparison, VGG16 only gets to 9.9%, quite a ... | [
"francois.chollet@gmail.com"
] | francois.chollet@gmail.com |
0b979cd389adf373b4cf58c997b7186c16712406 | 291ede8b17c404991e8140b9e8815c8e2e799163 | /NSC/src/train.py | aa871d3320b2339b8b28a015610fc02105c1b09a | [] | no_license | SleepyBag/NSC_tensorflow | 54d53d0d174b8d3e85ae222c8c0ca7e985363c38 | 3a2b7ff4a9a29d9b49f6510767ba3b0e8d408536 | refs/heads/master | 2020-04-03T03:09:07.906478 | 2018-10-27T15:45:55 | 2018-10-27T15:45:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,527 | py | #-*- coding: utf-8 -*-
#author: Zhen Wu
import os, time, pickle
import datetime
import numpy as np
import tensorflow as tf
from data_helpers import Dataset
import data_helpers
from model import NSC
# Data loading params
tf.flags.DEFINE_integer("n_class", 5, "Numbers of class")
tf.flags.DEFINE_string("dataset", 'yel... | [
"xueqianming200@gmail.com"
] | xueqianming200@gmail.com |
21ac7595d1c48ec6845defa0d35ade0a65638217 | 38b88b6123634e4d0deb4ffab4bdb8302dbc9e5a | /modules/estatistica-01/distribuicoes/distribuicao_normal-definicao.py | 23b5dae9208438902ac2a2e7b31f3855faa10625 | [] | no_license | Angelicogfa/data-science | 0c11d165b1d061c71812d596c86e4472a240017c | 30f05a3e62edd278a87f81eba952cce99bc9453e | refs/heads/master | 2020-04-21T09:13:38.211419 | 2019-06-28T13:36:47 | 2019-06-28T13:36:47 | 169,441,917 | 0 | 0 | null | 2019-11-02T07:00:19 | 2019-02-06T16:58:56 | Python | UTF-8 | Python | false | false | 1,482 | py | import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
itens = [7.57, 6.72, 5.59, 9.56, 4.79, 4.84, 5.87, 10.23, 9.53, 6.99,
9.51, 9.21, 5.78, 6.72, 8.96, 7.32, 7.64, 8.53, 5.9, 7.93,
8.82, 8.45, 7.99, 5.77, 4.76, 4.49, 8.97, 6.60, 8.55, 6.30,
... | [
"angelicogfa@gmail.com"
] | angelicogfa@gmail.com |
b5851bb47c31679be956cce35108ea80515cd733 | 910be469257538bcbbd15e894679856a1d311252 | /server/service/kernel/migrations/0043_auto_20170424_2209.py | 10536bd456c1285476597fbe490fe0f21ae0fd3c | [] | no_license | bopo/bankeys2 | ece7e7faa93aab48bf5a336721bfa69b33a870d8 | 5a81f5f4cd6442aade444444ba768b9ffa9dcbd4 | refs/heads/master | 2023-08-19T04:16:12.063961 | 2023-08-04T09:09:00 | 2023-08-04T09:09:00 | 119,646,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-04-24 22:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('kernel', '0042_auto_20170417_0213'),
]
operations = [
migrations.AlterField... | [
"ibopo@126.com"
] | ibopo@126.com |
1e60f4c33e6b2d6239d2677ec6afe2ff4f9186a6 | 057c525d6fbff928fc0cb0cd6b2930e9494b5d4b | /training-data/py/7-__init__.py | bfd89ded65d2386773e3e370d841ca01d3420cce | [] | no_license | uk-gov-mirror/ukwa.text-id | 0931742d1f2df3091ac52eee6160c177ea98180d | 5f3dcc6436bc46dedb375b37e3fd51c1c0d9b45b | refs/heads/master | 2022-02-26T15:32:15.901527 | 2019-11-19T16:36:06 | 2019-11-19T16:36:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | # a ..a a aAaN
a .a a Aa, a_a_a, a_a_a_a, a_a_a_a, aAaN
a .aAaAaAa a *N
a .aAaAaAa a *N
a .a_a a Aa_AaAa_AaN
a .a_a a Aa_AaAaAa_AaN
a .a_a a Aa_AaAaAa_AaN
a .a_a a Aa_AaAaAa_AaN
# a .a_a a Aa_AaAaAa_AaN
a .a_a_ a Aa_AaAa__AaN
a .a_a a Aa_AaAa_AaN
a .a_a a Aa_AaAaAa_AaN
a .a_a a Aa_Aa_AaN
N
a .aAa a aAaAa | [
"Andrew.Jackson@bl.uk"
] | Andrew.Jackson@bl.uk |
bd80320694ed6fa0379f916daa2fb0c7caa8d53d | 7c51b321d97b6e1f2480941cf6ce17e6fc1eef55 | /hungerstation/hungerstation/doctype/vacation_air_ticket/test_vacation_air_ticket.py | d9afd535d85a06afa39c73daed8577fc0c598c60 | [
"MIT"
] | permissive | poweroftrue/hungerstation | 1c53131a98968b92d678cda28f9db45068ae1454 | 8df88ce77cbde553b21f87511c6875d63b2aeb48 | refs/heads/master | 2020-03-12T09:49:22.202964 | 2018-04-16T09:58:15 | 2018-04-16T09:58:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Accurate Systems and Contributors
# See license.txt
from __future__ import unicode_literals
import frappe
import unittest
class TestVacationAirTicket(unittest.TestCase):
pass
| [
"mhbu50@gmail.com"
] | mhbu50@gmail.com |
35436f7d0a4d6539eac725bb92f926434e59aaf0 | 8a82a83655f118208692e55d7804d9fa480ad4b6 | /book/packt/Mastering.Natural.Language.Processing.with.Python/Chapter 1/ch1_10.py | 5f7445a2ea2ad22292f509ee07c1e70e85cceb00 | [] | no_license | xenron/sandbox-da-python | 0814159da9a91923e4b66c5e40057e381f765e96 | ab8f1c0d57fdc6006355f613012b84165068c315 | refs/heads/master | 2020-04-12T05:41:33.182110 | 2016-12-14T22:57:33 | 2016-12-14T22:57:33 | 60,324,979 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | import nltk
from nltk.tokenize import regexp_tokenize
sent="Don't hesitate to ask questions"
print(regexp_tokenize(sent, pattern='\w+|\$[\d\.]+|\S+'))
| [
"xenron@outlook.com"
] | xenron@outlook.com |
2cc9d0b711bdaca74f11120bcc21b5c032da427a | 2218e1da5cb944e4509f8641ca051de137645c5e | /剑指 Offer/54. KthLargest.py | bff16aa6411802e289ae82e16e257f787326e850 | [] | no_license | Hegemony/Python-Practice | 9e76ebb414433e51c2074602fb0a871891647839 | b68ea41688e9e305635c63fdc43402e2b6fe6524 | refs/heads/main | 2023-05-05T14:00:59.921803 | 2021-06-01T15:38:30 | 2021-06-01T15:38:30 | 301,602,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def kthLargest(self, root: TreeNode, k: int) -> int:
def preTraversal(root, nums):
if root == None:
... | [
"noreply@github.com"
] | Hegemony.noreply@github.com |
be017a4ba1b77d079419dd99b0595b8acd34030a | fab39aa4d1317bb43bc11ce39a3bb53295ad92da | /examples/tensorflow/common/object_detection/utils/mask_utils.py | 4dde46ca5e8538cd4e262119415ba0ae1c611d1a | [
"Apache-2.0"
] | permissive | dupeljan/nncf | 8cdce27f25f01ce8e611f15e1dc3036fb8548d6e | 0abfd7103ca212888a946ba4d0fbdb9d436fdaff | refs/heads/develop | 2023-06-22T00:10:46.611884 | 2021-07-22T10:32:11 | 2021-07-22T10:32:11 | 388,719,455 | 0 | 0 | Apache-2.0 | 2021-07-23T07:46:15 | 2021-07-23T07:43:43 | null | UTF-8 | Python | false | false | 3,853 | py | """
Copyright (c) 2020 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 in writin... | [
"noreply@github.com"
] | dupeljan.noreply@github.com |
de16a25bb4c0fe0e41345993cb917cb6907c5490 | 09c87fe780df6d1f9eb33799ed516a0bbd7ab1e3 | /Admin/bitly-releases/bitly.py | 5285e9b5e8d0667bd6b843a772839257b5701f7a | [] | no_license | abulka/pynsource | 8ad412b85dc1acaeb83d7d34af8cc033c6baba91 | 979436525c57fdaeaa832e960985e0406e123587 | refs/heads/master | 2023-04-13T12:58:02.911318 | 2023-04-11T09:56:32 | 2023-04-11T09:56:32 | 32,249,425 | 271 | 46 | null | 2022-10-10T04:36:57 | 2015-03-15T07:21:43 | Python | UTF-8 | Python | false | false | 6,024 | py | """
Generate the links for
- DOWNLOADS.md
- Bitly
- Main website html
from parsing the Github release page HTML information
"""
import requests
from bs4 import BeautifulSoup
import bs4
import os
from dataclasses import dataclass # requires 3.7
from typing import List, Set, Dict, Tuple, Optional
import ppr... | [
"abulka@gmail.com"
] | abulka@gmail.com |
6dbbb0165a3e7b4a8f5c1900e13b0dda93327c4f | 47ef6997d03f4d5c921c83cc09aef1dfc6828e2c | /zeus/networks/erdb_esr.py | 9f0c7e19ded1f4cd4204891add8cb2e93f462763 | [
"MIT"
] | permissive | huawei-noah/xingtian | 620c9f245183d636e0a65659fd99a984397ecbd4 | e4ef3a1c92d19d1d08c3ef0e2156b6fecefdbe04 | refs/heads/master | 2023-09-03T01:10:21.768245 | 2022-03-21T03:39:39 | 2022-03-21T03:39:39 | 287,759,621 | 308 | 91 | MIT | 2023-09-12T11:33:22 | 2020-08-15T14:13:06 | Python | UTF-8 | Python | false | false | 14,306 | py | # -*- coding:utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the ... | [
"hustqj@126.com"
] | hustqj@126.com |
5eb658bffb7a8c72a2d6633d288eb1a0ba4c1005 | f538e3974b8d9718a3cd24c1dea77023789c9315 | /DjangoUbuntu/images_env/bin/pip3.4 | f456ff02511f0abd21310a167cd42e107b3e6c74 | [] | no_license | doremonkinhcan87/BlogImage | de1eab86505befb595844ed15168d1eb7d352121 | c25dbe8c0a54c3294d3c8353cc9baf0a748a3707 | refs/heads/master | 2016-08-11T10:18:19.654850 | 2016-01-27T09:07:13 | 2016-01-27T09:07:13 | 49,034,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | 4 | #!/var/www/images_env/bin/python3.4
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dautienthuy@gmail.com"
] | dautienthuy@gmail.com |
e9f8199bbd0443f5ade26424134dfc5c24dfbf03 | 7c843f80a08db6725fd8d2e85099d9e6c13f6426 | /nets/res-unet1/trainInterface.py | b9b17f7178bc520e09135402109634d591211eae | [] | no_license | wanfade/scaffolding_Seg | e983c1d1cdd60efcd7d381728c277993a1cf4721 | 12ba8892eb44d3ce47fa2609973b0510904c4753 | refs/heads/master | 2023-03-16T05:57:28.808341 | 2017-11-25T13:53:11 | 2017-11-25T13:53:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,608 | py | # coding: utf-8
'''
res-unet
全图训练 自动填充黑边 以适应上下采样
Parameters
----------
step : int
填充黑边 将图片shape 调整为step的整数倍
'''
from lib import *
import logging
logging.basicConfig(level=logging.INFO)
npm = lambda m:m.asnumpy()
npm = FunAddMagicMethod(npm)
import mxnet as mx
from netdef import getNet
class SimpleBatch(object)... | [
"ylxx@live.com"
] | ylxx@live.com |
b68b7615a7af8bb6f8aee3839a354f867e3f5bc5 | e26bf05bc4177e15c5f8cb28690882189d332bdf | /transformers_keras/question_answering/readers.py | f1662f73bc73213045db4c7d2e1530ae5abb8529 | [
"Apache-2.0"
] | permissive | OuyKai/transformers-keras | 1e4ed574acafcb807f3073f45e6462025c0139e5 | 58b87d5feb5632e3830c2d3b27873df6ae6be4b3 | refs/heads/master | 2023-09-06T07:50:10.404744 | 2021-11-23T02:34:34 | 2021-11-23T02:34:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | import json
import logging
import os
def read_jsonl_files_for_prediction(
input_files, conetxt_key="context", question_key="question", answers_key="answer", **kwargs
):
if isinstance(input_files, str):
input_files = [input_files]
for f in input_files:
if not os.path.exists(f):
... | [
"zhouyang.luo@gmail.com"
] | zhouyang.luo@gmail.com |
268edd9811fd6743a2f68e9cdc53f307295bd5df | ff23900a911e099595c392a7efab1d268b4f5f7d | /python_modules/libraries/dagster-census/dagster_census_tests/test_op.py | e552b2e971e3033594f96e914cba86674bacb4b9 | [
"Apache-2.0"
] | permissive | zkan/dagster | bbf2da091bdc7fca028c569db72b9c68ddf55e98 | b2b19edb71fc8985f505b116927350dd23b4a7d9 | refs/heads/master | 2022-08-24T03:20:12.583577 | 2022-08-16T00:01:23 | 2022-08-16T00:01:23 | 244,012,061 | 0 | 0 | Apache-2.0 | 2020-02-29T17:33:24 | 2020-02-29T17:33:24 | null | UTF-8 | Python | false | false | 1,952 | py | import responses
from dagster_census import CensusOutput, census_resource, census_trigger_sync_op
from dagster import job, op
from .utils import (
get_destination_data,
get_source_data,
get_sync_data,
get_sync_run_data,
get_sync_trigger_data,
)
def test_census_trigger_sync_op():
cen_resourc... | [
"noreply@github.com"
] | zkan.noreply@github.com |
4b935fb5f1d7a8408bd454a00959604aafb39b14 | d58a90a5befc0a594d6cde3ecd3a1233f422db04 | /solutions/transfer_linear.py | b0712f3839df04060d158b94812528f7b00420a8 | [] | no_license | omarun/intro_to_cnns | a0bf11854a51101c69566f03e7baf7602af485c8 | a759ce6349712869f648b82680b60a07caa91d87 | refs/heads/master | 2021-01-20T06:25:07.525332 | 2016-10-21T18:51:35 | 2016-10-21T18:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | classifier = LogisticRegression()
classifier.fit(x_train_flat, y_train)
classifier.score(x_valid_flat, y_valid)
| [
"luiz.gh@gmail.com"
] | luiz.gh@gmail.com |
662affb01df36470968915cb99bf04a3e048044e | 084c3246c44c2e5ae5a0dd38522cb19ac993fe35 | /game_utils.py | 6b73e7fec2552661e18af332d04f300a6c757822 | [] | no_license | archivest/PythonWars-1996 | 5bafaca65764ca0d0999b063a5411c53cdbbb0eb | b2b301233d72334cfd9b4404b32a45ac22f0b248 | refs/heads/master | 2023-02-06T09:53:32.464771 | 2020-12-30T07:37:03 | 2020-12-30T07:37:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,475 | py | # PythonWars copyright © 2020 by Paul Penner. All rights reserved. In order to
# use this codebase you must comply with all licenses.
#
# Original Diku Mud copyright © 1990, 1991 by Sebastian Hammer,
# Michael Seifert, Hans Henrik Stærfeldt, Tom Madsen, and Katja Nyboe.
#
# Merc Diku Mud improvements copyright © 1... | [
"jindrak@gmail.com"
] | jindrak@gmail.com |
b149337554b2282c3286a0bcf124a42801eccad7 | 682526c4fa74951f5551310d92b19f9948f67b89 | /tapioca_jarbas/tapioca_jarbas.py | 42fda2683f6ec05780471d136c39fce0d2c44ce2 | [
"MIT"
] | permissive | indigos33k3r/tapioca-jarbas | 458d8b0cefc0425c7d94ae25c572d0c931a62671 | e54846a1aa7a2b2bcaa23126f21492f9da475704 | refs/heads/master | 2020-04-13T23:18:13.797237 | 2017-11-01T21:13:01 | 2017-11-01T21:13:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | from tapioca import (
TapiocaAdapter, generate_wrapper_from_adapter, JSONAdapterMixin)
from .resource_mapping import RESOURCE_MAPPING
class JarbasClientAdapter(JSONAdapterMixin, TapiocaAdapter):
api_root = 'https://jarbas.serenatadeamor.org/api/'
resource_mapping = RESOURCE_MAPPING
def get_iterator_... | [
"daniloshiga@gmail.com"
] | daniloshiga@gmail.com |
c5df412987c4bf17583da28903931d117431accc | 279f415dd1e06c594c6c87deda57e201c73c4542 | /test/espnet2/layers/test_mask_along_axis.py | 61f62562a222d988d407a5c997e71dcd8802261d | [
"Apache-2.0"
] | permissive | espnet/espnet | f7ba47271c1a6b1ed606dbbfb04a7f14220bb585 | bcd20948db7846ee523443ef9fd78c7a1248c95e | refs/heads/master | 2023-08-28T23:43:34.238336 | 2023-08-23T02:51:39 | 2023-08-23T02:51:39 | 114,054,873 | 7,242 | 2,244 | Apache-2.0 | 2023-09-14T08:01:11 | 2017-12-13T00:45:11 | Python | UTF-8 | Python | false | false | 1,043 | py | import pytest
import torch
from espnet2.layers.mask_along_axis import MaskAlongAxis
@pytest.mark.parametrize("requires_grad", [False, True])
@pytest.mark.parametrize("replace_with_zero", [False, True])
@pytest.mark.parametrize("dim", ["freq", "time"])
def test_MaskAlongAxis(dim, replace_with_zero, requires_grad):
... | [
"naoyuki.kamo829@gmail.com"
] | naoyuki.kamo829@gmail.com |
0c8fc6ce245ed6f32ae7a857ba2561de41e4a544 | 0f0f8b3b027f412930ca1890b0666538358a2807 | /dotop/tools/amount_to_text_en.py | ff67589e6bb8f9d80bfd30c551ac13aba3354988 | [] | no_license | konsoar/dotop_pos_v11 | 741bd5ca944dfd52eb886cab6f4b17b6d646e131 | 576c860917edd25661a72726d0729c769977f39a | refs/heads/master | 2021-09-06T13:25:34.783729 | 2018-02-07T02:11:12 | 2018-02-07T02:11:12 | 111,168,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,146 | py | # -*- coding: utf-8 -*-
# Part of dotop. See LICENSE file for full copyright and licensing details.
import logging
from translate import _
_logger = logging.getLogger(__name__)
#-------------------------------------------------------------
#ENGLISH
#-------------------------------------------------------------
to_1... | [
"Administrator@20nuo003-PC"
] | Administrator@20nuo003-PC |
816d8629ef45304e5ba47462013cad82e344a259 | f5ce05395e4b37ea5d970073f95681d3a880aefd | /setup.py | 27845d5d9659006759224cf1dabf78b80890a412 | [
"MIT"
] | permissive | simondlevy/gym-mygame | 2ef960a8cfd546f3f4abd42e1bcd952840416223 | e04495425117f1cd8ffe2e840f4561d6fdcaf50d | refs/heads/master | 2022-07-13T16:52:39.760990 | 2020-05-12T20:44:41 | 2020-05-12T20:44:41 | 263,425,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | #!/usr/bin/env python3
'''
Python distutils setup file for gym-mygame module.
Copyright (C) 2020 Simon D. Levy
MIT License
'''
#from distutils.core import setup
from setuptools import setup
setup (name = 'gym_mygame',
version = '0.1',
install_requires = ['gym', 'numpy'],
description = 'Gym environment f... | [
"simon.d.levy@gmail.com"
] | simon.d.levy@gmail.com |
9bd40a000147a571fe7d40700465c556556526c7 | 4567c7caa29288dda264cb78f6bc7ef2a6eeb756 | /SetDataStructure/MathOpsSet.py | 729dcee00cde6ed866eda38d638315232ea90155 | [] | no_license | JaspinderSingh786/Python3BasicsToAdvance | dc0c676e7efb0749288425dd3922a716b389199d | 00e9cb66bb2e5e35736fe8032e233a9d178cb038 | refs/heads/master | 2022-12-23T11:01:38.626288 | 2019-05-15T06:08:36 | 2019-05-15T06:08:36 | 300,102,348 | 0 | 0 | null | 2020-10-01T01:03:21 | 2020-10-01T01:03:21 | null | UTF-8 | Python | false | false | 672 | py | # union to return all the elements present in both sets
x =set(range(0,10,2))
y = set(range(6,20,2))
print(x|y)
print(x.union(y))
# intersection of x&y will return all the common elements present in both the set
print(x.intersection(y)) # or
print(x&y)
# difference x-y returns the elements present in x but not ... | [
"vivekgoswami71@gmail.com"
] | vivekgoswami71@gmail.com |
265cd5ce49260eb4a369231f4af087e09bb9f225 | 4042d12cc6ece8e690331a03fbe7936f2b85cc31 | /assets_app/models/assets_main.py | 4c6b8f4bc101bbfa53fb2e3250cde82403d6106e | [] | no_license | terroristhouse/Odoo13 | 551b65d18a934e7cfb1bcb2a571110ca524d80b8 | be4789c2c38dffe9afc3495c7f17f629cb458c89 | refs/heads/master | 2022-12-01T05:31:30.892018 | 2020-08-17T00:48:45 | 2020-08-17T00:48:45 | 278,875,024 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,056 | py | from odoo import fields, models, api
class AssetsMain(models.Model):
_name = 'assets.main'
_description = '资产'
_order = 'name'
name = fields.Char('设备编号', required=True) # 设备编号
desc_detail = fields.Text('备注') # 设备备注
number = fields.Integer('数量', required=True) # 资产数量
sequ = fields.Char(... | [
"867940410@qq.com"
] | 867940410@qq.com |
23f0c67f201967b6850945aa7d07c32191f2f9b8 | 7489448f6279fb4821ad49bc9475a2ddafd2570f | /.venv/lib/python3.8/site-packages/finmarketpy/network_analysis/learn_network_structure.py | 821e5917c4becc640c3353909b9b755ed1ae70a5 | [
"MIT"
] | permissive | webclinic017/VectorBTanalysis | a37df299103e63e350a6fb83caaeb9b3dc0b9542 | bea3deaf2ee3fc114b308146f2af3e4f35f70197 | refs/heads/master | 2023-03-16T02:03:34.288818 | 2020-09-05T22:59:50 | 2020-09-05T22:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,358 | py | # Project: finmarketpy project
# Filename: learn_network_structure
# Objective: compute a network graph for a group of asset return time series
# Created: 2019-11-02 12:05
# Version: 0.0
# Author: FS
# importing packages
import numpy as np
from sklearn import cluster, covariance, manifold
def learn_netwo... | [
"eorlowski6@gmail.com"
] | eorlowski6@gmail.com |
9b34fda8067ba60916db6d5830d18b528fb2163a | bf813d2b877fb8ba62feb4263484db3d0f26d5cd | /coma/catalogue_manipulation/move_cat_to_d_coma.py | c4553074f71305e798c3de2117e40e6a93870ec9 | [] | no_license | 9217392354A/astro-scripts | 1e8e8c827097a877518d1f3e10870a5c2609417c | cd7a175bd504b4e291020b551db3077b067bc632 | refs/heads/master | 2021-01-13T00:40:57.481755 | 2016-03-25T17:04:28 | 2016-03-25T17:04:28 | 54,730,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,346 | py | #program to move a catalogue to the distance of coma
# Chris Fuller March 2014
#import modules
import numpy as np
from os.path import join as pj
import atpy as at
from copy import copy, deepcopy
import matplotlib.pyplot as plt
from pylab import bar
import pdb
#pdb.set_trace()
#i/o
print 'reading in cat . . .'
folder... | [
"chrisfuller@Chriss-MBP.lan"
] | chrisfuller@Chriss-MBP.lan |
27ed23f7457434fd19a3ba7ce1b446ac8006d7d4 | 02f565644b729c496bb4d802dfc6cb3a5db68ff1 | /tests/test_repeated_dna_sequences.py | fbfb36d28c09ab3fc23461b2dc41dd8bf4b564b5 | [] | no_license | saubhik/leetcode | 99a854ad87272eb82b16f22408ee7314ba0db099 | 221f0cb3105e4ccaec40cd1d37b9d7d5e218c731 | refs/heads/master | 2023-04-27T03:11:03.565056 | 2021-05-17T07:55:22 | 2021-05-17T07:55:22 | 275,324,914 | 3 | 1 | null | 2020-10-03T07:06:17 | 2020-06-27T07:48:37 | Python | UTF-8 | Python | false | false | 1,121 | py | import unittest
from repeated_dna_sequences import (
OfficialSolutionApproach2,
OfficialSolutionApproach3,
Solution,
)
class TestRepeatedDNASequences(unittest.TestCase):
def test_example_1(self):
assert Solution().findRepeatedDnaSequences(
s="AAAAACCCCCAAAAACCCCCCAAAAAGGGTTT"
... | [
"saubhik.mukherjee@gmail.com"
] | saubhik.mukherjee@gmail.com |
392b75c54f958a4bebd4f2b76e439193093387d0 | eef243e450cea7e91bac2f71f0bfd45a00c6f12c | /.history/run_20210124182546.py | 96b0a8d0a563b5c91efbe0ad25075a0f449732ac | [] | no_license | hoaf13/nlp-chatbot-lol | 910ab2ea3b62d5219901050271fc1a1340e46a2f | 18cb64efa9d6b4cafe1015f1cd94f4409271ef56 | refs/heads/master | 2023-05-08T04:17:19.450718 | 2021-02-02T02:37:38 | 2021-02-02T02:37:38 | 332,535,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 923 | py | from app import app
from flask import request
from flask_socketio import SocketIO, send, emit, join_room, leave_room, close_room, rooms, disconnect
socketio = SocketIO(app, cors_allowed_origins='*')
@socketio.on('connected')
def test_connect(data):
send("User {} has connected".format(data), broadcast=True)
@sock... | [
"samartcall@gmail.com"
] | samartcall@gmail.com |
8c6416ed9c7686e7035c91a619c60aa6c6150ff3 | a6b8f33193163de60eb17231a713083da4dea970 | /week_04/mini_projects/webpage_generator/wpgenerator.py | c09f7f4936f39ee4fc06e46531fa266b4da896c5 | [] | no_license | mingyyy/onsite | 4defd8d2e8bad6f2f1c61f756ee9269ec0ba5fe2 | 79c8fa30ca152161abfeef797d6eb357f764dc97 | refs/heads/master | 2022-12-14T18:50:13.514560 | 2019-04-02T11:56:37 | 2019-04-02T11:56:37 | 171,419,253 | 0 | 3 | null | 2022-12-08T01:41:15 | 2019-02-19T06:35:59 | Python | UTF-8 | Python | false | false | 445 | py |
path = "raw/ubud.txt"
with open(path, "r") as f:
file = f.readlines()
# first line is the title
counter = 0
for line in file:
print(line)
if counter == 0:
title = line.strip()
while line == "\n":
para = "".join(line)
break
counter += 1
page = f'''
<!DOCTYPE html>
<html lan... | [
"j.yanming@gmail.com"
] | j.yanming@gmail.com |
64298fe9b7f9838cf461141a6650770b5125dea2 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/intersectingDiscs_20200810184541.py | f8db0d3333e9e5d6410298329455a497ce0a91d5 | [] | 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 | 95 | py | def discs(A):
start = [i-j for i,j in enumerate(A)]
discs([1,5,2,1,4,0]) | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
a528bab8dad447a472fead2de386caaa12a21e06 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/securityinsight/azure-mgmt-securityinsight/generated_samples/get_entity_queries.py | 8cee24ba13980a452d2c2b900ca52c9cfd64be9e | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 1,615 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | Azure.noreply@github.com |
4d07737f103ae1cce749e1abaf6560be63c813fc | 8c50265b43add0e91e30245cc7af3c2558c248f5 | /example/rcnn/symnet/metric.py | fa8d7919e919244f30ccfca2fbaf238d92cf322d | [
"BSD-3-Clause",
"BSD-2-Clause-Views",
"Zlib",
"Apache-2.0",
"BSD-2-Clause",
"Intel",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | awslabs/dynamic-training-with-apache-mxnet-on-aws | 6a67f35d7e4b12fa8bba628bd03b2b031924e211 | 1063a979417fee8c820af73860eebd2a4f670380 | refs/heads/master | 2023-08-15T11:22:36.922245 | 2022-07-06T22:44:39 | 2022-07-06T22:44:39 | 157,440,687 | 60 | 19 | Apache-2.0 | 2022-11-25T22:23:19 | 2018-11-13T20:17:09 | Python | UTF-8 | Python | false | false | 5,187 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"vikumar@88e9fe53272d.ant.amazon.com"
] | vikumar@88e9fe53272d.ant.amazon.com |
b54cad4d67281209ae0454f243bca0b73a8d9bf8 | 3420dd606acc60f921efcc79160d85af92be3740 | /dexp/processing/denoising/_test/test_butterworth.py | f8a65768a97d976601687f947fe3ad4734ff0888 | [
"BSD-3-Clause"
] | permissive | royerlab/dexp | 3e9b67b4084eacf9de8006f75754292f8d7e0fb4 | 8e8399f5d0d8f1e1ae0ddfa6cb6011921929ae0b | refs/heads/master | 2023-05-26T04:03:44.833528 | 2023-04-10T16:06:09 | 2023-04-10T16:06:09 | 196,109,847 | 23 | 6 | BSD-3-Clause | 2023-04-07T21:48:25 | 2019-07-10T01:41:20 | Python | UTF-8 | Python | false | false | 251 | py | from dexp.processing.denoising.demo.demo_2D_butterworth import _demo_butterworth
from dexp.utils.testing.testing import execute_both_backends
@execute_both_backends
def test_butterworth():
assert _demo_butterworth(display=False) >= 0.608 - 0.03
| [
"noreply@github.com"
] | royerlab.noreply@github.com |
ce36258cadd509837e9c4a8b6f7c8c3d43ffad1c | 57fc5d54f5df359c7a53020fb903f36479d3a322 | /controllers/.history/supervisor/supervisor_20201127193541.py | de29736d2a7d8836760d56a0b3c6d96a070d790a | [] | no_license | shenwuyue-xie/webots_testrobots | 929369b127258d85e66c5275c9366ce1a0eb17c7 | 56e476356f3cf666edad6449e2da874bb4fb4da3 | refs/heads/master | 2023-02-02T11:17:36.017289 | 2020-12-20T08:22:59 | 2020-12-20T08:22:59 | 323,032,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,970 | py | import math
import numpy as np
from numpy import random
from numpy.core.fromnumeric import size
from numpy.lib.function_base import meshgrid
import utilities as utils
from deepbots.supervisor.controllers.supervisor_emitter_receiver import \
SupervisorCSV
# # from deepbots.supervisor.wrappers.tensorboard_wrapper i... | [
"1092673859@qq.com"
] | 1092673859@qq.com |
94f60f929cf72989003431c51a7ae1b30e26b12a | bb983b38f9be7b6fd4ab1a651484db37c1aeff39 | /1019/python_list_index.py | d54b78a345b11bda2588b2b6d799910da221d2b2 | [] | no_license | nakanishi-akitaka/python2018_backup | c214df78372cca993d69f8001010ec2f6dcaf1be | 45766d3c3777de2a91b3e2cf50c6bfedca8627da | refs/heads/master | 2023-02-18T08:04:28.625532 | 2022-06-07T01:02:53 | 2022-06-07T01:02:53 | 201,399,236 | 5 | 30 | null | 2023-02-10T21:06:51 | 2019-08-09T05:48:22 | Jupyter Notebook | UTF-8 | Python | false | false | 1,127 | py | # -*- coding: utf-8 -*-
"""
https://note.nkmk.me/python-list-index/
Created on Fri Oct 19 12:40:31 2018
@author: Akitaka
"""
l = list('abcde')
print(l)
print(l.index('a'))
print(l.index('c'))
def my_index(l, x, default=False):
if x in l:
return l.index(x)
else:
return default... | [
"noreply@github.com"
] | nakanishi-akitaka.noreply@github.com |
ec813cec9fde2a104a1cdad75cf78ecc5a255913 | 65b4522c04c2be071c2d42095956fe950fe1cebe | /inversions/inversion_one_chanel/run1/analysis/pred_disp_large_scale/plots/Raslip_vel/plot_displacement_contours.py | f75d0bde319f5b19287101cdc1313d0c9cf23b29 | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | import numpy as np
import viscojapan as vj
from epochs import epochs
def load_lons_lats():
tp = np.loadtxt('../stations_large_scale.in', '4a,f,f')
lons = [ii[1] for ii in tp]
lats = [ii[2] for ii in tp]
return lons, lats
lons, lats = load_lons_lats()
reader = vj.inv.DeformPartitionResultReader(
... | [
"zy31415@gmail.com"
] | zy31415@gmail.com |
c9c98e197cfaa40df88820f453e394610790ef19 | 3d62466a21dd4f9cce27544eb0318025949e2385 | /samples/WebApplication/Session.py | 4e487d2d1d9d729d2aa048e5fe7fb4606a779dad | [
"BSD-3-Clause"
] | permissive | zlorb/PyModel | eb6cd24e96429bdd57c3ed2a451d0f4f4073e353 | 502aa0a3708f549ecd803008ab6a2d63a59a2cd3 | refs/heads/master | 2023-08-09T15:32:53.183114 | 2022-02-23T00:13:02 | 2022-02-23T00:13:02 | 50,697,490 | 15 | 8 | NOASSERTION | 2023-07-25T18:13:49 | 2016-01-29T23:07:34 | Python | UTF-8 | Python | false | false | 2,381 | py | """
Experiment with code for WebApplication stepper
"""
import re
import urllib.request, urllib.parse, urllib.error
import urllib.request, urllib.error, urllib.parse
import http.cookiejar
# Scrape page contents
def loginFailed(page):
return (page.find('Incorrect login') > -1)
intPattern = re.compile(r'Number: (\d... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
b5ba9954411cf7814a07f2dd21891c315d9499f5 | f8d9f893a7afa667a9b615742019cd5c52ee2c59 | /scripts/linters/general_purpose_linter.py | f673a60f7274a7cfafd20f0b08a9c099ea38939d | [
"Apache-2.0"
] | permissive | FareesHussain/oppia | 2ac6c48aaea6a70452b79d665995f6ba6560f70d | 2862b7da750ce332c975b64237791f96189d7aa8 | refs/heads/develop | 2023-08-17T19:25:05.551048 | 2021-10-01T10:36:36 | 2021-10-01T10:36:36 | 323,160,532 | 2 | 0 | Apache-2.0 | 2020-12-20T20:38:45 | 2020-12-20T20:38:44 | null | UTF-8 | Python | false | false | 23,416 | py | # coding: utf-8
#
# Copyright 2020 The Oppia 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 requi... | [
"noreply@github.com"
] | FareesHussain.noreply@github.com |
008051dab9733ed2d9f2fb7454f439c579ba2b1d | d0cbfb54c336582c72e8d36c26c03a41d81a1bf4 | /djblog/blog/urls.py | 3f9a68d0cf928b549348495c01231e5567c56b8b | [
"MIT"
] | permissive | ghacer/djwebapp-blog | ea523928112572d34caf62c1bcede2e52c71dc6b | 0101b0356a6fa2d364f0da04adc8956938cef78c | refs/heads/master | 2021-01-18T01:37:25.283289 | 2014-11-22T02:09:38 | 2014-11-22T02:09:38 | 39,756,290 | 0 | 1 | null | 2015-07-27T05:15:11 | 2015-07-27T05:15:11 | null | UTF-8 | Python | false | false | 370 | py | from django.conf.urls import patterns, include, url
# import .views
urlpatterns = patterns('',
url(r"^$", "blog.views.index", name="index"),
url(r"^post/(?P<pk>\d+)/$", "blog.views.post", name="post"),
url(r"^category/(?P<pk>\d+)/$", "blog.views.cate... | [
"wwq0327@gmail.com"
] | wwq0327@gmail.com |
7cf68892b2e25b23ddffda245dbbce948ae8f6ce | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_206/717.py | f8d716b09ed85efab988ce26b530693ae8483649 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | t = int(raw_input()) # read a line with a single integer
import numpy as np
for i in xrange(1, t + 1):
D, N = [s for s in raw_input().split(" ")]
D = int(D) #destination distance
N = int(N) #number of horses
K = np.zeros(N) #start position
S = np.zeros(N) #speed
T = np.zeros(N) #arrival time
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
035f8507902b4e954a369b882f9c67efe0e953c2 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-iotanalytics/huaweicloudsdkiotanalytics/v1/model/dis_content_rsp.py | 67f2dccb885bb01a85eae6061603d4173e14226a | [
"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 | 5,056 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class DisContentRsp:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
ff4c97e9a54013b3ff6342b1b25da663fd7d7cf0 | 6f097812440f1cf728d9a0c2706b66e706de0824 | /uclptb/models.py | 8a9993cf6b152f7ab43b7dc96673b9822736a3a6 | [] | no_license | medical-projects/uclp-tb | 105f915c3042c53b769681fb30d7f06fb21fd60a | ef9dbdb22846be1a0d38e63b34532f7ff414762d | refs/heads/master | 2021-06-22T01:30:55.287491 | 2016-07-05T16:45:20 | 2016-07-05T16:45:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 553 | py | """
uclptb models.
"""
from django.db.models import fields
from opal import models
class Demographics(models.Demographics): pass
class Location(models.Location): pass
class Allergies(models.Allergies): pass
class Diagnosis(models.Diagnosis): pass
class PastMedicalHistory(models.PastMedicalHistory): pass
class Treatme... | [
"fredkingham@gmail.com"
] | fredkingham@gmail.com |
cf86932c5694e36b1c1333e4fd4e94fd12b2bb41 | 7876e76aa397b7c2dfae6fa9dbdeb9bd2c3e678a | /plugins/xafs/feffdat.py | f4045f5c9a23179651ca34e657a96122dc4b9261 | [
"BSD-2-Clause"
] | permissive | astrojuan/xraylarch | 5f8facebd22482b2218d320fe45757d4f7243579 | e094f42057b2c6f0f3aac3e46a43f75935f8b81b | refs/heads/master | 2020-03-19T02:46:48.485894 | 2018-05-30T04:41:07 | 2018-05-30T04:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,122 | py | #!/usr/bin/env python
"""
feffdat provides the following function related to
reading and dealing with Feff.data files in larch:
path1 = read_feffdat('feffNNNN.dat')
returns a Feff Group -- a special variation of a Group -- for
the path represented by the feffNNNN.dat
group = ff2chi(pathlist)
creates a group t... | [
"newville@cars.uchicago.edu"
] | newville@cars.uchicago.edu |
a962541a52c1468a9fc1c8e4406db08c41303414 | dae212cb615e5eba3fe8108799a39bc09d7bddb6 | /grokking-coding/cyclic_sort/problem_challenge_1.py | 572ef55c35c78732d5581d7b37aa4e9dcc615fb7 | [] | no_license | cs-cordero/interview-prep | a291b5ce2fb8461449e6e27a1f23e12b54223540 | c3b5b4612f3641572d2237e36aa23019c680c799 | refs/heads/master | 2022-05-23T10:39:59.817378 | 2020-04-29T12:57:12 | 2020-04-29T12:57:12 | 76,767,250 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | from typing import List
def find_corrupt_numbers(nums: List[int]) -> List[int]:
result = []
for i in range(len(nums)):
if nums[i] == i + 1:
continue
temp = nums[i]
nums[i] = None
while temp and temp > 0 and temp <= len(nums):
if temp == nums[temp - 1]:
... | [
"ccordero@protonmail.com"
] | ccordero@protonmail.com |
184619b837b7e49365075a3d962d2bbd1c417295 | 8256963b73a829ec5054b8c3cb707250a8c6054a | /scooter/models/__models.py | f5946eb13876de57266266c8cd2a86b855a4396b | [
"MIT"
] | permissive | vyahello/rent-electro-scooter | bbd2d8c51536a832baeadbcd2a328de2174638ac | 34b85b0538d61315e325842f4c1b5094a94d2c0d | refs/heads/master | 2021-07-06T11:48:20.303858 | 2021-04-23T16:06:33 | 2021-04-23T16:06:33 | 236,315,479 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # pylint: disable=unused-import
# noinspection PyUnresolvedReferences
from scooter.models import rentals # noqa: F401
# noinspection PyUnresolvedReferences
from scooter.models import locations # noqa: F401
# noinspection PyUnresolvedReferences
from scooter.models import scooters # noqa: F401
# noinspection PyUnre... | [
"vyahello@gmail.com"
] | vyahello@gmail.com |
a5e12c032d5bc0f2f18a84268727ab3ea96e0593 | ddb3656fbacef606ac3cfa53eb74a99be90202cd | /selfdrive/hardware/eon/androidd.py | b836eb01294dc6258395bbe29ba7b767d3aca242 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | ErichMoraga/openpilot | f70b353099d3643c9f8d16fb8003811418c95656 | 2f73be29651e34e62eaf18472f9219cea57c177a | refs/heads/812 | 2023-08-02T16:58:57.870050 | 2023-07-20T17:33:41 | 2023-07-20T17:33:41 | 140,953,335 | 58 | 77 | MIT | 2023-07-30T15:33:18 | 2018-07-14T14:41:16 | C | UTF-8 | Python | false | false | 2,295 | py | #!/usr/bin/env python3
import os
import time
import psutil
from typing import Optional
from common.realtime import set_core_affinity, set_realtime_priority
from selfdrive.swaglog import cloudlog
MAX_MODEM_CRASHES = 3
MODEM_PATH = "/sys/devices/soc/2080000.qcom,mss/subsys5"
WATCHED_PROCS = ["zygote", "zygote64", "/sy... | [
"user@comma.ai"
] | user@comma.ai |
0f213d8dd1ec7a658623f0215997a3592e0df9ed | de707c94c91f554d549e604737b72e6c86eb0755 | /math/0x02-calculus/10-matisse.py | 2580a5ebc2eeb7f237af29cff5d2d583248ae911 | [] | no_license | ejonakodra/holbertonschool-machine_learning-1 | 885cf89c1737573228071e4dc8e26304f393bc30 | 8834b201ca84937365e4dcc0fac978656cdf5293 | refs/heads/main | 2023-07-10T09:11:01.298863 | 2021-08-11T03:43:59 | 2021-08-11T03:43:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,055 | py | #!/usr/bin/env python3
""" defines a function that calculates the derivative of a polynomial """
def poly_derivative(poly):
"""
calculates the derivative of the given polynomial
Parameters:
poly (list): list of coefficients representing a polynomial
the index of the list represents th... | [
"eislek02@gmail.com"
] | eislek02@gmail.com |
299b7afae0c73e134909d4228f2ad18889254403 | 3bf73a5ac2c8dbcee802a742ee31834c2bbfda4e | /viewer/converter.py | d4e98e5ba9d2b73fa658263024cc81b9108103e8 | [
"Unlicense",
"LicenseRef-scancode-public-domain"
] | permissive | pawlosck/epistolaire | c8708df67e324abce31bff5519967a2ba6ffcd31 | 56c3d8665e492e649c631953baadebc70404303d | refs/heads/master | 2021-05-17T16:19:37.762930 | 2020-03-25T22:29:57 | 2020-03-25T22:32:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,391 | py | #!/usr/bin/env python3
# This is free and unencumbered software released into the public domain.
# See LICENSE file for details.
import locale
import datetime
from pathlib import Path
import sys
import json
import xml.etree.ElementTree as ET
class Converter:
def import_data(self, path):
with open(path) ... | [
"dev@indigo.re"
] | dev@indigo.re |
f978c6e0a9bfde2190c40eb828a863cba0d926f4 | f93ea26173e6b72ff46b3abb2a5250bfb0636cdd | /eqsig/sdof.py | 503ab7098abb75b698e0fb48941656348ebe783d | [
"MIT"
] | permissive | eng-tools/eqsig | 53d1dc695ffbe132a7fef871d825d9b7011f821c | 8a70f4c7152bc0f0901d457b6acbca256d1a6473 | refs/heads/master | 2023-02-26T06:58:43.243878 | 2022-08-16T03:23:04 | 2022-08-16T03:23:04 | 125,842,866 | 22 | 10 | MIT | 2023-02-08T00:41:12 | 2018-03-19T10:46:43 | Python | UTF-8 | Python | false | false | 9,476 | py | import numpy as np
def single_elastic_response(motion, step, period, xi):
"""
Perform Duhamels integral to get the displacement.
http://www.civil.utah.edu/~bartlett/CVEEN7330/Duhamel%27s_integral.pdf
http://www1.aucegypt.edu/faculty/mharafa/MENG%20475/Forced%20Vibration.pdf
:param motion: acceler... | [
"maxim.millen@gmail.com"
] | maxim.millen@gmail.com |
252968fc95b8ee95bcdff316f26b7222dc1805b1 | cba0f1286e4271ac35101a25d5040b2e4f405bde | /cgi-bin/admin/severe2/advanced/answerKey/edit.py.cln | ba798fa61b4625939db956fa6a9d944db2d181ef | [] | no_license | akrherz/pals | 271c92d098909abb5b912db4ae08f0c3589e5ec7 | adc213333fb23dc52d6784ce160c4ff8a8f193e3 | refs/heads/master | 2021-01-10T15:01:59.570168 | 2019-12-18T16:59:08 | 2019-12-18T16:59:08 | 45,484,297 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,565 | cln | #!/usr/local/bin/python
# This program changes db stuff
# Daryl Herzmann 8-16-99
import cgi, pg, style, time
mydb = pg.connect('severe2_adv', 'localhost', 5555)
def get_question(question_num):
entry = mydb.query("SELECT * from questions WHERE q_id = '"+question_num+"' ").dictresult()
return entry
def get_old_ans... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
e19d8f8f88840156c1eeb8d48d212e59b617dba8 | 34ec93dd1846270d7999e03db4f2f877ea1af005 | /nfldb/__init__.py | b2fdac632ab95a72060604da2e99ceda8b7bbc64 | [
"Unlicense"
] | permissive | micahstone20/nfldb | 4469fc466d3e8b065cf669362b0d13d6033bae2d | 61a5ae56be627a1ad5be93ea25ac494ee0ff292d | refs/heads/master | 2017-12-02T12:33:48.929627 | 2014-05-10T16:13:11 | 2014-05-10T16:13:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,759 | py | """
Module nfldb provides command line tools and a library for maintaining
and querying a relational database of play-by-play NFL data. The data
is imported from [nflgame](https://github.com/BurntSushi/nflgame),
which in turn gets its data from a JSON feed on NFL.com's live
GameCenter pages. This data includes, but is ... | [
"jamslam@gmail.com"
] | jamslam@gmail.com |
10a63c1f20bce5638d2acc7a6327beab0a37f250 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/galex_j23054-4046/sdB_GALEX_J23054-4046_coadd.py | 2c395340b31353193613a52ea32cda925e2a3290 | [] | 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 | 455 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[346.356125,-40.776181], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_GALEX_J23054-4046/sdB_GALEX_J23054-4046_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTC... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
7088e6f502c1cdeacd741bb0c4bd166fe030c4ad | 364d77b02d62d45ea588dbada7da16540e6a1f0c | /PyQt5/_table.py | 526ddea155e5a727ca8028812b9d53c62c2ffefe | [] | no_license | BaranAkcakaya/PythonProgramming | 3021f5b3452495fcc34ab9bbfce441976bb63456 | a0cc0f60dce3d50fe9bcf68a7255a71b3e81351d | refs/heads/main | 2023-01-07T09:20:33.695241 | 2020-11-02T07:25:49 | 2020-11-02T07:25:49 | 309,286,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QTableWidgetItem
from _tableForm import Ui_MainWindow
import sys
class Window(QtWidgets.QMainWindow):
def __init__(self):
super(Window, self).__init__()
self.ui = Ui_MainWindow()
self.ui.setupUi(self)
self.... | [
"noreply@github.com"
] | BaranAkcakaya.noreply@github.com |
999e154742b6bdc53d8b6a9fa2225b844a90b729 | 7d27c71588c08e2a56807d5e670ef48e1985b3b5 | /Python/kraken/core/__init__.py | 1f2bf6959ded98791ac377e9905699510cf005f1 | [
"BSD-3-Clause"
] | permissive | BigRoy/Kraken | 6fcc5cf55c412751180d930c2c56a37084f5c5a3 | 8744f9ef3eec4f7d94f28a1433c6e89ca9cd0f6b | refs/heads/develop2.X | 2021-01-18T00:01:42.721175 | 2016-02-11T03:34:26 | 2016-02-11T03:34:26 | 51,552,149 | 1 | 0 | null | 2016-02-11T22:34:36 | 2016-02-11T22:34:36 | null | UTF-8 | Python | false | false | 468 | py | """Kraken Core."""
VERSION_MAJOR = 1
VERSION_MINOR = 0
VERSION_BUILD = 0
VERSION_SUFFIX = ""
def getVersion():
"""Contatenates the version globals and returns the current version of
Kraken.
Returns:
str: Current version of Kraken.
"""
versionString = str(VERSION_MAJOR) + "." + str(VERS... | [
"ethivierge@gmail.com"
] | ethivierge@gmail.com |
5b035d24a819e715e34b2f925f799a3b6312348f | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_08_01/aio/operations/_network_profiles_operations.py | c964535bc8b442e57c7fe86c57a22be226ab4306 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 23,938 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
863ceb86e30e5bcaec6018ee17468974dbc00861 | 6448cd8b6fc0104362924fe1aa788cbd58abe17d | /ABCNN/test_abcnn.py | b2575e8f945de2bcfcdcaad1429d5fe680eac788 | [
"Apache-2.0"
] | permissive | RandolphVI/Text-Pairs-Relation-Classification | 8e54c21fcc97be81c0c797a83d3212c1a854a318 | 25a746ac9e72efdc79c9d90af9769e02587cf650 | refs/heads/master | 2021-06-05T21:58:11.686850 | 2020-11-18T02:24:55 | 2020-11-18T02:24:55 | 83,399,665 | 156 | 52 | null | null | null | null | UTF-8 | Python | false | false | 6,218 | py | # -*- coding:utf-8 -*-
__author__ = 'Randolph'
import os
import sys
import time
import logging
import numpy as np
sys.path.append('../')
logging.getLogger('tensorflow').disabled = True
import tensorflow as tf
from utils import checkmate as cm
from utils import data_helpers as dh
from utils import param_parser as par... | [
"chinawolfman@hotmail.com"
] | chinawolfman@hotmail.com |
7b8e14dedc35d80a37f531e52050c5e7631b4e23 | 03e115c1937ec7bd1e249f82db0225828eaaa186 | /2-GUI (tkinter)/5marcos2.py | ba25a0d2f06d0cb9bab02c46d760c7a49c2eaa32 | [] | no_license | mivargas/Master-python | 236c04205637ddd44d1cc879de2b7c48418153f9 | 9d1c04a8d658aa0dd8620ed792fa2133adfa57e7 | refs/heads/master | 2023-03-06T13:35:58.177058 | 2021-02-16T00:06:00 | 2021-02-16T00:06:00 | 321,731,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,866 | py | from tkinter import *
ventana = Tk()
ventana.title("Marcos | Master en python")
ventana.geometry("700x700")
marco_padre = Frame(ventana, width=250, height=250)
marco_padre.config(
bg="lightblue"
)
marco_padre.pack(side=TOP, anchor=N, fill=X, expand=YES) #el anchor es para que se apegue lo mas posible al borde s... | [
"miguelvargas619@gmail.com"
] | miguelvargas619@gmail.com |
bd6ef2fdadfa54e915b11813bf6ee532622609f2 | b0814b43440a36c9998924c9fe05f335302a2717 | /venv/lib/python2.7/site-packages/nipype/interfaces/semtools/registration/tests/test_auto_BRAINSResize.py | 7b3f8c8ee38a2a381f8e16950d90eff5ec613387 | [
"MIT"
] | permissive | nagyistge/electrode-gui | 0b47324ce8c61ffb54c24c400aee85f16fd79c7a | 6d89c78ea61935042ead5df5e1474101df3557eb | refs/heads/master | 2021-06-03T22:47:30.329355 | 2016-09-13T19:43:31 | 2016-09-13T19:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | # AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.semtools.registration.brainsresize import BRAINSResize
def test_BRAINSResize_inputs():
input_map = dict(args=dict(argstr='%s',
),
environ=dict(nohash=True,
usedefault=True,
),
ig... | [
"xavierislam@gmail.com"
] | xavierislam@gmail.com |
3d5c505cb30f8c8837d93f222fe86e1aeb19d869 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D01C/DOCADVD01CUN.py | 316d74fc708591564f4d9989068543c3bfebce05 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 2,529 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD01CUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'RFF', MIN: 1, MAX: 1},
{ID: 'BUS', MIN: 1, MAX: 1},
{ID: 'INP'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
ac63ea0619ec21a0f49f2fc1b0976f2fb087d8aa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03567/s276827154.py | a80ce1471f8b7edb52e8a4923ffd580a19f23626 | [] | 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 | 104 | py | n=input()
c=0
for i in range(1,len(n)):
if n[i-1:i+1]=="AC":
c=1
print("Yes"if c!=0else"No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c4c1858df652ab42311df23401c4eac2e1bf7dcb | 7fc26de436ad958fc02e11fc7f7486f9ac775d0b | /services/url_lookup/project/tests/test_url.py | 717ba731587a4df19ed77f4afbd8868a2d611887 | [] | no_license | chenjienan/url_lookup_service | 633071d78598b2ee248b6a6fc3ceee2bf4ccca9b | ef10d58450af97221697ac0fa26cfb9e5a43415e | refs/heads/master | 2023-05-12T00:09:36.278356 | 2019-08-06T16:45:05 | 2019-08-06T16:45:05 | 199,910,038 | 0 | 0 | null | 2023-05-01T21:14:08 | 2019-07-31T18:36:20 | Python | UTF-8 | Python | false | false | 4,009 | py | import json
import unittest
from project.tests.base import BaseTestCase
from project import db
from project.api.models import Url
class TestUrlService(BaseTestCase):
"""Tests for the URL Lookup Service."""
def test_urls(self):
"""Ensure the /ping route behaves correctly."""
# Action
r... | [
"chenjienan2009@gmail.com"
] | chenjienan2009@gmail.com |
9ab6311a01d824701beb7379e05276521f44673f | e3c8f786d09e311d6ea1cab50edde040bf1ea988 | /Incident-Response/Tools/cyphon/cyphon/aggregator/filters/tests/test_services.py | ea76a8d0f809dacc5a2677be2ac5ed231cb91e30 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-copyleft"
] | permissive | foss2cyber/Incident-Playbook | d1add8aec6e28a19e515754c6ce2e524d67f368e | a379a134c0c5af14df4ed2afa066c1626506b754 | refs/heads/main | 2023-06-07T09:16:27.876561 | 2021-07-07T03:48:54 | 2021-07-07T03:48:54 | 384,988,036 | 1 | 0 | MIT | 2021-07-11T15:45:31 | 2021-07-11T15:45:31 | null | UTF-8 | Python | false | false | 2,269 | py | # -*- coding: utf-8 -*-
# Copyright 2017-2019 ControlScan, Inc.
#
# This file is part of Cyphon Engine.
#
# Cyphon Engine is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, version 3 of the License.
#
# Cyphon En... | [
"a.songer@protonmail.com"
] | a.songer@protonmail.com |
f696eeeb42b422e8eabc13eea85b6dc8b527d15b | f388385e4a2eb63dda0ac2697f9065efd2bcac7e | /test/test4.py | c68535a0d167e72494184404ac28a57152c985c1 | [] | no_license | supercp3/MasterResearch | 03ebae46f8e151b919b46a862bbf132174d30db2 | a15e3c489a21ecdff77e0adb2683c7b95fca3842 | refs/heads/master | 2020-04-13T09:50:54.029493 | 2019-01-18T09:49:07 | 2019-01-18T09:49:07 | 163,122,878 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | import numpy as np
for i in np.arange(0,0.2,100):
print(i) | [
"13281099@bjtu.edu.cn"
] | 13281099@bjtu.edu.cn |
fbfb59163e735907eafbee626470acc4c0e48d44 | 37c3b81ad127c9e3cc26fa9168fda82460ca9bda | /SW_expert/sw_3752_가능한시험점수.py | 1d952fc7daa9160bad7302dde04267851a61397f | [] | no_license | potomatoo/TIL | 5d85b69fdaed68966db7cfe2a565b7c64ed3e816 | 395dc190fa13e5ed036e1e3c7d9e0bc2e1ee4d6c | refs/heads/master | 2021-07-08T16:19:40.410097 | 2021-04-19T02:33:40 | 2021-04-19T02:33:40 | 238,872,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | import sys
sys.stdin = open('./input/input_3752.txt','r')
T = int(input())
for t in range(1, T+1):
N = int(input())
test = list(map(int, input().split()))
arr = []
for i in range(N):
arr = list(set(arr))
if not arr:
arr.append(test[i])
continue
x = len(a... | [
"duseh73@gmail.com"
] | duseh73@gmail.com |
b53bd82679e0afced3b977fbf6b6929fcff84246 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/databoxedge/azure-mgmt-databoxedge/azure/mgmt/databoxedge/v2020_09_01/operations/_triggers_operations.py | f6b42b941e51c27903c2638705efe229843bc299 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 21,148 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
a44003bb5206592292825279248f7d3fb178359c | 1d7bb0175edf39a04ca665c46e80fc6da8085747 | /trash/IdealGasLaw.py | 8a3b41b715b6959d03f06c8a3bfec6f7fc89ac70 | [] | no_license | ElenaGramellini/PlayingWithCEvNS | 211d54514c0fab2358ea8bc1058fe093303c366f | fb3500c2b25bdbc3d81b12d19da8d1750989f412 | refs/heads/master | 2020-07-31T16:56:53.649085 | 2019-09-24T19:46:44 | 2019-09-24T19:46:44 | 210,683,533 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,433 | py | ###############################
### Important notes ###
### the v is in mm/microsec ###
### the E is in V/cm ###
###############################
import argparse
import math
R = 8.314 # m3 Pa K-1
#m = 1000 # gr
M = 20.1797 # gr/mol
pa2Atm = 9.86923e-6
def V2P(V, T,m):
p = pa2Atm*m*R*T/(V*M)
r... | [
"elena.gramellini@yale.edu"
] | elena.gramellini@yale.edu |
ff701be8781c6fbba6a1c24f8f2dbb0e157d6411 | 455a501b6e7579a8d150d40645311433bf22d3c4 | /Day 17/q3.py | 20189d7217d9c34eb7311662bc29ede4156da973 | [] | no_license | Infinidrix/competitive-programming | e77e442b73590b9bf42a40832323d87f57bbbdf4 | 6cf7a9de7d076405990d497871bb2ccfe04fc6f3 | refs/heads/master | 2023-02-09T04:02:31.389806 | 2023-02-02T11:10:10 | 2023-02-02T11:10:10 | 222,917,959 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | def substring_adder(string, lookup):
index = 0
subsum = 0
for i in range(len(string)):
if string[i] in lookup:
index += 1
else:
subsum += (index)*(index+1)/2
index = 0
return int(subsum + (index) * (index + 1) / 2)
no_uses = input()
string = input()
lookup = input().split()
print(subs... | [
"biruksolomon11@gmail.com"
] | biruksolomon11@gmail.com |
71c0a2e9e86e5b8aff5a4085668128ef7b76a6eb | d64ff38360527cb1a1aa45ba2869a95cdf33ea52 | /src/vumi/webapp/api/urls.py | 69cb428ce821bf2cda3b388b61e7e337c4f7b611 | [] | no_license | smn/richmond | 9d3d8b3e52d89a71181300149f15116e0eec7e64 | 2593293ef5b8fbd659da12ff46c5b6aad1764add | refs/heads/master | 2020-05-20T12:36:59.670573 | 2010-11-15T20:45:26 | 2010-11-15T20:45:26 | 629,376 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | from django.conf.urls.defaults import *
from piston.resource import Resource
from piston.authentication import HttpBasicAuthentication
from vumi.webapp.api import handlers
from vumi.webapp.api import views
ad = {'authentication': HttpBasicAuthentication(realm="Vumi")}
url_callback_resource = Resource(handler=handlers.... | [
"simon@soocial.com"
] | simon@soocial.com |
422244505be179d682f30089b16d093e458be9c7 | 06e897ed3b6effc280eca3409907acc174cce0f5 | /plugins/filetime_from_git/content_adapter.py | e3a951272c66b56efff2754d9c4969e311d3d9ae | [
"AGPL-3.0-only",
"MIT"
] | permissive | JackMcKew/jackmckew.dev | ae5a32da4f1b818333ae15c6380bca1329d38f1e | b5d68070b6f15677a183424c84e30440e128e1ea | refs/heads/main | 2023-09-02T14:42:19.010294 | 2023-08-15T22:08:19 | 2023-08-15T22:08:19 | 213,264,451 | 15 | 8 | MIT | 2023-02-14T21:50:28 | 2019-10-07T00:18:15 | JavaScript | UTF-8 | Python | false | false | 2,755 | py | # -*- coding: utf-8 -*-
"""
Wraps a content object to provide some git information
"""
import logging
from pelican.utils import memoized
from .git_wrapper import git_wrapper
DEV_LOGGER = logging.getLogger(__name__)
class GitContentAdapter(object):
"""
Wraps a content object to provide some git information
... | [
"jackmckew2@gmail.com"
] | jackmckew2@gmail.com |
f82fb02818c9fd23a4cf44fa31f43ad48cd5a419 | d3e6d6555b0314936902727af36de2f1b7432bf8 | /h-index/h-index.py | 96658ad52e376ae31f028b62e5323dcc366f65b1 | [] | no_license | fly2rain/LeetCode | 624b1e06e1aa3174dfb5c81834b58cc8fd7ad073 | 4ddb5a051c6e2051f016a675fd2f5d566c800c2a | refs/heads/master | 2021-01-18T03:12:22.402044 | 2015-12-28T04:31:19 | 2015-12-28T04:31:19 | 85,842,050 | 0 | 1 | null | 2017-03-22T15:05:20 | 2017-03-22T15:05:19 | null | UTF-8 | Python | false | false | 600 | py |
class Solution(object):
def hIndex(self, citations):
"""
:type citations: List[int]
:rtype: int
"""
citations.sort()
h_index = 0
for i in reversed(citations):
if h_index + 1 <= i:
h_index += 1
else:
ret... | [
"xuzheng1111@gmail.com"
] | xuzheng1111@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.