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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
07d70ae42492f6ef1d0c9f70c89b683116d2d1fe | 0b01cb61a4ae4ae236a354cbfa23064e9057e434 | /alipay/aop/api/request/KoubeiMerchantKbcloudSubuserinfoQueryRequest.py | 25b94a0a4cf762b874f9cb73885384e42136d8d1 | [
"Apache-2.0"
] | permissive | hipacloud/alipay-sdk-python-all | e4aec2869bf1ea6f7c6fb97ac7cc724be44ecd13 | bdbffbc6d5c7a0a3dd9db69c99443f98aecf907d | refs/heads/master | 2022-11-14T11:12:24.441822 | 2020-07-14T03:12:15 | 2020-07-14T03:12:15 | 277,970,730 | 0 | 0 | Apache-2.0 | 2020-07-08T02:33:15 | 2020-07-08T02:33:14 | null | UTF-8 | Python | false | false | 4,021 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiMerchantKbcloudSubuserinfoQueryModel import KoubeiMerchantKbcloudSubuserinfoQueryModel
class KoubeiMerchantKbcloudSubuserinfoQ... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
6d5689b96edd16de7af3d2cdb8ee31be61120d55 | dcbb531eada723b717cf7243fbeac6d3738007b4 | /chapter3/BX-CSV-Dump/users.py | ba7426d264ec460afc5d144cd1afc3500153ad3b | [] | no_license | yangtao0304/recommendation-system | 14a023a57d38a2450d44467bb85c441bd067e8f9 | 995b93ed0fd146d5bb6d837055b8e150a8b145c7 | refs/heads/master | 2020-09-12T05:56:00.173486 | 2020-03-10T01:24:28 | 2020-03-10T01:24:28 | 222,332,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | py | import pandas as pd
file_path = 'BX-Users.csv'
users = pd.read_table(file_path, sep=';', header=0, encoding='ISO-8859-1')
print('前5条数据为:\n{}\n'.format(users.head()))
print('总的数据条数为:\n{}\n'.format(users.count()))
print('年龄区间:<{},{}>'.format(users['Age'].min(), users['Age'].max()))
'''
总的数据条数为:
User-ID 278858
Loca... | [
"im.yangtao0304@gmail.com"
] | im.yangtao0304@gmail.com |
06017e09936000545346137f186f35e3dd4590ef | a1aba83b90285def84cc425c0b089dd632a01a51 | /py千峰/day13线程与协程/xiecheng03.py | 8ba4d3827ffd07f072a48671005c6c1fcbd1b612 | [] | no_license | 15929134544/wangwang | 8ada14acb505576f07f01e37c936500ee95573a0 | 47f9abbf46f8d3cbc0698cb64c043735b06940d4 | refs/heads/master | 2023-05-11T19:59:54.462454 | 2021-05-25T15:19:43 | 2021-05-25T15:19:43 | 328,119,916 | 1 | 1 | null | 2021-05-11T16:13:18 | 2021-01-09T09:33:29 | JavaScript | UTF-8 | Python | false | false | 1,285 | py | """
greenlet已经实现了协程,但是这个是人工切换,是不是觉得太麻烦了,不要着急
python还有一个比greenlet更强大的并且能够自动切换任务的模块gevent
其原理就是当一个greenlet遇到了IO(指的是input output输入输出,比如网络、文件操作等)
操作时,比如访问网络,就自动切换到其他的greenlet,等到IO完成,
在适当的时候切换回来继续执行。
由于IO操作非常耗时,经常使程序处于等待状态,有了gevent我们自动切换协程,
就保证总有greenlet在运行,而不是等待IO。
"""
import time
import gevent as gevent
from greenlet... | [
"you@example.com"
] | you@example.com |
64f802ee3da662f7515a4b931b1bd80bc895e282 | e2992e19ebc728387125a70c72a702a076de7a12 | /Python/01_My_Programs_Hv/05_List/102_C5_E3.py | 20429dcf098b179f726d90ec28f04fadd4ca8fe1 | [] | no_license | harsh1915/Machine_Learning | c9c32ed07df3b2648f7796f004ebb38726f13ae4 | c68a973cfbc6c60eeb94e253c6f2ce34baa3686e | refs/heads/main | 2023-08-27T15:01:16.430869 | 2021-11-15T07:53:36 | 2021-11-15T07:53:36 | 377,694,941 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | ls= ["abc", "def", "ghi"]
print(ls[0][::-1])
def list_reverse(ls):
ls1= []
for i in ls:
ls1.append(i[::-1])
return ls1
print(list_reverse(ls)) | [
"“hdjethva6@gmail.com”"
] | “hdjethva6@gmail.com” |
a18d86d09a8f17900f98f2b1c6064003b6ee5ec0 | 50e10e8f304d32329ba88aa3fa8f8250c0a6a84d | /standard/girc.py | 594043511c56131f646724eb2d265123d12a8728 | [
"Apache-2.0"
] | permissive | candeira/duxlot | 0a1b4468e1d93f3db90219ea21d45a8e494aaabb | 69f4234e14ac8ad1ef53a0d663a7240d6e321e46 | refs/heads/master | 2021-01-20T04:26:10.588945 | 2012-09-13T17:00:18 | 2012-09-13T17:00:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,750 | py | # Copyright 2012, Sean B. Palmer
# Code at http://inamidst.com/duxlot/
# Apache License 2.0
# @@ this can't be named irc.py
import duxlot
# Save PEP 3122!
if "." in __name__:
from . import api
else:
import api
command = duxlot.command
# @@ ask, not tell yourself
# IRC
@command
def ask(env):
"Ask anothe... | [
"sean@miscoranda.com"
] | sean@miscoranda.com |
5262ad751574f1650ce9fde9ee1b73565b930cb2 | d7379fa682e25d1d40b93b61dfe7c1fc2a64e0ff | /test/test_variables.py | fb481be5d642768a394481a1a887f86acd895855 | [
"Apache-2.0"
] | permissive | renuacpro/unit | f7b00cfc059b1ff9298824ead28b1ac404b86ff0 | 22c88f0253d57756ad541326df09d1398a871708 | refs/heads/master | 2022-12-10T08:27:15.371966 | 2020-09-07T12:21:14 | 2020-09-07T12:21:14 | 293,599,216 | 2 | 0 | null | 2020-09-07T18:08:47 | 2020-09-07T18:08:47 | null | UTF-8 | Python | false | false | 3,888 | py | from unit.applications.proto import TestApplicationProto
class TestVariables(TestApplicationProto):
prerequisites = {}
def setUp(self):
super().setUp()
self.assertIn(
'success',
self.conf(
{
"listeners": {"*:7080": {"pass": "routes/... | [
"zelenkov@nginx.com"
] | zelenkov@nginx.com |
7e96ded78edf879fd044bae181c6553700ee19a1 | 3db9ef78b62b01bf79dff6671b02c24192cd4648 | /13/8.py | b0c91ec8d0d5b114b03beb2ee22681599281cb1e | [] | no_license | rheehot/python-for-coding-test | 401f5655af1a8cf20bc86edb1635bdc4a9e88e52 | be95a0d0b3191bb21eab1075953fa472f4102351 | refs/heads/master | 2022-11-11T19:35:56.680749 | 2020-06-24T02:19:48 | 2020-06-24T02:19:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | from collections import deque
def get_next_pos(pos, board):
next_pos = [] # 반환 결과 (이동 가능한 위치들)
pos = list(pos) # 현재 위치
pos1_x, pos1_y, pos2_x, pos2_y = pos[0][0], pos[0][1], pos[1][0], pos[1][1]
# (상, 하, 좌, 우)로 이동하는 경우에 대해서 처리
dx = [-1, 1, 0, 0]
dy = [0, 0, -1, 1]
for i in range(4):
... | [
"noreply@github.com"
] | rheehot.noreply@github.com |
43fceb1cbee1e30cbb8565be49c40ba5a3866b44 | 6d9fbe6e6a2abfd8455e92f6dba67a5f02d87f41 | /lib/phonenumbers/shortdata/region_TR.py | 4840c1a7757ec99155ac8ae581af9b61d4516426 | [] | no_license | JamesBrace/InfluenceUWebLaunch | 549d0b48ff3259b139cb891a19cb8b5382ffe2c8 | 332d25940e4b1b45a7a2a8200f77c8413543b199 | refs/heads/master | 2021-09-04T04:08:47.594900 | 2018-01-15T16:49:29 | 2018-01-15T16:49:29 | 80,778,825 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | """Auto-generated file, do not edit by hand. TR metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_TR = PhoneMetadata(id='TR', country_code=None, international_prefix=None,
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2}', possible_number_pattern='\\d{... | [
"james.brace@mail.mcgill.ca"
] | james.brace@mail.mcgill.ca |
9026e69e8f119456f9e40a29da8f7c7d3ef7372b | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Integration/model_control_one_enabled_Integration_PolyTrend_BestCycle_MLP.py | 5274eb0449dc0222445102838746fbe7b7badd4e | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 154 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Integration'] , ['PolyTrend'] , ['BestCycle'] , ['MLP'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
36fa9338504116911b5efc2f47a261d074edb8a3 | 3cd4902b67de144d8e6f36335e125d0548d8cf97 | /submissions/runs/RUN10_vc_extended_model_img_unsorted.py | 129ab86ee4ee8a26ac6546af8dd14261d13a222a | [
"MIT"
] | permissive | stefantaubert/imageclef-lifelog-2019 | 5d201c2a28f15f608b9b58b94ab2ecddb5201205 | ad49dc79db98a163c5bc282fb179c0f7730546b3 | refs/heads/master | 2022-10-06T12:42:30.011610 | 2022-08-29T13:35:09 | 2022-08-29T13:35:09 | 196,553,184 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,215 | py | from src.models.pooling.Model_opts import *
from src.data.RawPlaces365Data import name_raw_places
from src.data.IndoorOutdoorData import name_io
from src.data.CocoYoloData import name_yolo
from src.data.CocoDetectronData import name_detectron
from src.data.CocoDefaultData import name_coco_default
from src.data.OpenIma... | [
"stefan.taubert@posteo.de"
] | stefan.taubert@posteo.de |
99fbbf8071ba11b6ce828063c78654215208e339 | bede13ba6e7f8c2750815df29bb2217228e91ca5 | /medical_lab_management/__manifest__.py | 01ea6d84e8879c00ab859c47d9b8fa1631145e57 | [] | no_license | CybroOdoo/CybroAddons | f44c1c43df1aad348409924603e538aa3abc7319 | 4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14 | refs/heads/16.0 | 2023-09-01T17:52:04.418982 | 2023-09-01T11:43:47 | 2023-09-01T11:43:47 | 47,947,919 | 209 | 561 | null | 2023-09-14T01:47:59 | 2015-12-14T02:38:57 | HTML | UTF-8 | Python | false | false | 2,048 | py | # -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2021-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
#
# You can modify it under the terms of the GNU AFFERO
# GENERAL PUBLIC LICENSE (AGPL v3)... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
2d48271b9fc70a4e9d62124e31981289ac41c030 | cfb373af248f1f24124194913a52d395e6b826e7 | /recruitment_plus/config/docs.py | e2d3da882af7144d3fec38727c269c5516b501da | [
"MIT"
] | permissive | leaftechnology/recruitment-plus | 616da8e1b9fc405d431e3e20559f55c2b5e78981 | 505478a9d4299b18089dba41a86d7ab3b4907289 | refs/heads/master | 2023-04-02T13:50:52.135805 | 2021-04-12T13:29:24 | 2021-04-12T13:29:24 | 328,859,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | """
Configuration for docs
"""
# source_link = "https://github.com/[org_name]/recruitment_plus"
# docs_base_url = "https://[org_name].github.io/recruitment_plus"
# headline = "App that does everything"
# sub_heading = "Yes, you got that right the first time, everything"
def get_context(context):
context.brand_html =... | [
"jangeles@bai.ph"
] | jangeles@bai.ph |
a81fbbd2f5f2f89caa41421f4da4cedacd4fe732 | bc441bb06b8948288f110af63feda4e798f30225 | /staff_manage_sdk/model/metadata_center/stream_aggregate_states_pb2.py | e1c387bf61b3d82a52c66f128f07bb8158289ee0 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,721 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream_aggregate_states.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from goo... | [
"service@easyops.cn"
] | service@easyops.cn |
8351589ff5cf619e24e9651f2c6e06360a29a3d5 | 0580861bd8b993ac92faec0ed88a339975d702c0 | /reagent/model_managers/discrete_dqn_base.py | ea825859334f6a14b3a64a0e0ef59b203444de62 | [
"BSD-3-Clause"
] | permissive | Sandy4321/ReAgent | 346094ae4c98121de5c54d504186f583de21daf0 | 0a387c1aeb922d242c705338fae9379becc82814 | refs/heads/master | 2023-07-17T01:27:17.762206 | 2021-08-19T03:15:15 | 2021-08-19T03:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,205 | py | #!/usr/bin/env python3
import abc
import logging
from typing import Dict, List, Optional, Tuple
from reagent.core import types as rlt
from reagent.core.dataclasses import dataclass, field
from reagent.core.parameters import (
EvaluationParameters,
NormalizationData,
NormalizationKey,
RLParameters,
)
f... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
e280e7b4ce66799e836bba7771e9ef48dfd54688 | 59359e4821554f559c9ffc5bf1a7f52fff0c6051 | /descarteslabs/core/common/client/tests/test_attributes.py | cc396105832fecd35dea1fa023f4f5e890c94ff5 | [
"Apache-2.0"
] | permissive | descarteslabs/descarteslabs-python | 706acfc594721a1087872744c9cb72fe2b3d2e5b | a8a3859b8ced6d4478b93ff205caad06d508501d | refs/heads/master | 2023-08-23T12:01:36.802085 | 2023-08-21T14:57:22 | 2023-08-21T15:20:01 | 84,609,153 | 176 | 49 | NOASSERTION | 2023-05-02T15:54:37 | 2017-03-10T23:27:12 | Python | UTF-8 | Python | false | false | 10,438 | py | # Copyright 2018-2023 Descartes Labs.
#
# 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 ... | [
"support@descarteslabs.com"
] | support@descarteslabs.com |
411d1b5d5d006f9c41b1c82bed003b39f7fba6ac | 27acd9eeb0d2b9b6326cc0477e7dbb84341e265c | /test/vraag4/src/isbn/222.py | fd40dde79d0542bab2d8bd49e8cc487684633488 | [] | no_license | VerstraeteBert/algos-ds | e0fe35bc3c5b7d8276c07250f56d3719ecc617de | d9215f11cdfa1a12a3b19ade3b95fa73848a636c | refs/heads/master | 2021-07-15T13:46:58.790446 | 2021-02-28T23:28:36 | 2021-02-28T23:28:36 | 240,883,220 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | def isISBN_13(code):
if len(code) != 13:
return False
if code[:3] != "978" and code[:3] != "979":
return False
even = code[::2]
oneven = code[1::2]
even_som = 0
oneven_som = 0
for i in range(6):
cijfer = int(even[i])
even_som += cijfer
cijfer = int(one... | [
"bertverstraete22@gmail.com"
] | bertverstraete22@gmail.com |
16af628a8124aa21de4d8f7daff20c5fc1e87eea | 0951b7ad46683d5fd99ae5611e33117b70d5ba1b | /scg_venv/lib/python3.8/site-packages/pandas/tests/io/xml/test_to_xml.py | beaa6d61f02c24e9cac8829c36633f2c67a36630 | [] | no_license | alissonpmedeiros/scg | 035bf833e16e39f56502f2a65633e361c6dc4fa6 | e3e022a14058936619f1d79d11dbbb4f6f48d531 | refs/heads/main | 2023-04-19T05:29:55.828544 | 2022-10-28T08:38:27 | 2022-10-28T08:38:27 | 525,835,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,499 | py | from __future__ import annotations
from io import (
BytesIO,
StringIO,
)
import os
import numpy as np
import pytest
import pandas.util._test_decorators as td
from pandas import (
NA,
DataFrame,
Index,
)
import pandas._testing as tm
import pandas.io.common as icom
from pandas.io.common import ge... | [
"alissonp.medeiros@gmail.com"
] | alissonp.medeiros@gmail.com |
68166f1c54bc0727d4ea84555b656e8b4fc72753 | a5200ba8b1d2b248c7c7bef5704c7e375efc1c2a | /exp_configs.py | c09ecd223c6f468e105e0d7348bd4b1cfa3bf410 | [] | no_license | hongyunnchen/sps | e0c958dadca2a60b0e8d797d8e786f88669cf5c7 | 4ddb3567f9a1893685ea161e2b1d7ba3cb3a1fe3 | refs/heads/master | 2023-02-26T06:36:41.462069 | 2021-02-09T12:22:09 | 2021-02-09T12:22:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,448 | py | from haven import haven_utils as hu
import itertools
# datasets
kernel_datasets = ["mushrooms",
# "w8a", "ijcnn",
# "rcv1"
]
# define runs
run_list = [0]
# define optimizers
c_list = [0.2]
sps_list = []
for c, adapt_flag in itertools.product(c_list, ['smoo... | [
"issam.laradji@gmail.com"
] | issam.laradji@gmail.com |
5fbdd4faeaa02752c91f94d6860761a2dfb07bac | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/datashare/v20181101preview/get_adls_gen2_file_system_data_set.py | 6a6d525b551e637a119b660529a00a01bd625ef0 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,350 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
1f9ca65ce07629f7f3f5c41490cfa08c638c7723 | 6ac3e509c9d848497a7cb0f79008ec1f395f3aad | /Phone-Numbers/freecarrierlookup/freecarrierlookup/__main__.py | e28a3cacc22b778073bda4d6b71388e5f2893fbf | [] | no_license | WeilerWebServices/Scrapers | a87ca6c0fd719639be831623b2b55183932d8fba | 206ea9adf48e9b882a2d62df691185609483f9d0 | refs/heads/master | 2022-11-30T10:46:09.731660 | 2020-08-04T16:07:19 | 2020-08-04T16:07:19 | 273,375,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,091 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import argparse
import time
import csv
from sys import stderr, stdout
try:
import phonenumbers
except ImportError:
phonenumbers = None
from . import FreeCarrierLookup
########################################
# Parse arguments
p = argparse.ArgumentParser(descr... | [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
680ed39c6067bac7d1093e8713b57f5a460cce64 | a8079efec61894fb6082986e66c4c146757fc895 | /src/constraints/operations/Set.py | bb54ca702dcb33a9ceb60f2d7578608f0f5e5c14 | [] | no_license | gsdlab/ClaferSMT | aaa5bd0c0c72f6a9b156529a871cced40e006cba | d8240b4503107641d62f7f913ebe50a88182d9a3 | refs/heads/master | 2021-01-16T21:23:22.838308 | 2015-08-20T00:24:54 | 2015-08-20T00:24:54 | 9,037,961 | 2 | 1 | null | 2018-08-21T13:48:02 | 2013-03-26T19:00:12 | TeX | UTF-8 | Python | false | false | 19,280 | py | '''
Created on Nov 1, 2013
@author: ezulkosk
'''
from common import Common, SMTLib
from common.Common import mAnd, mOr
from structures.ExprArg import ExprArg, IntArg, BoolArg, JoinArg
import sys
def getClaferMatch(key, my_list):
'''
TODO REMOVE
Returns the entries in my_list that correspond to either sub... | [
"ezulkosk@gsd.uwaterloo.ca"
] | ezulkosk@gsd.uwaterloo.ca |
50ffb4956388901f75c430e335b4c03a8493463b | d748710c6c5fa0f61b5bd6c2ec849d9250428811 | /demo1/client_python/test/test_format.py | a03e8a252d7c7c1a5ae10dea8b78b8c22f086cd7 | [] | no_license | stefan2904/aries-experiments | 9f4dab2d0711b76557e3d6ae8e5a27e532102685 | 46f31ee62cf951da2696e5ca4e6dc1d3d753743d | refs/heads/main | 2023-03-23T00:06:06.362992 | 2021-03-18T12:56:58 | 2021-03-18T12:56:58 | 329,986,417 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 902 | py | # coding: utf-8
"""
(Aries Agent REST Server) of VC4SM University.
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future_... | [
"dev@2904.cc"
] | dev@2904.cc |
4befa60f75f65fc7d117fd7196c46db4398c2c4c | f99cca94f74c69bc518e298c14140534e18eabd3 | /OrcApi/start_report.py | efcbc2ca473ffe5c686fdeb3c906e7f559f6ecab | [] | no_license | pubselenium/OrcTestToolsKit | d6d838d9937d2c4d86941e317cb3ff096b58e52d | f3ccbbceaed4f4996f6907a2f4880c2fd3f82bbb | refs/heads/master | 2021-04-29T05:15:53.240714 | 2016-12-30T09:42:53 | 2016-12-30T09:42:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | # coding=utf-8
import sys
from flask import make_response
from OrcLib import init_log
from OrcLib import get_config
from OrcApi import app
from OrcApi import orc_api
from OrcApi.Run.ReportApi import ReportDetAPI
configer = get_config("server")
@app.after_request
def after_request(response):
response.headers['A... | [
"orange21cn@126.com"
] | orange21cn@126.com |
53cde0b836010d45228fa1c3b0df4ed331fc4563 | 0bde5f7f09aa537ed1f4828d4e5ebee66475918f | /h2o-py/tests/testdir_apis/Data_Manipulation/pyunit_h2oH2OFrame_split_frame.py | 7b6184fc5c776b24ad32cc3e4da703f2af126c3c | [
"Apache-2.0"
] | permissive | Winfredemalx54/h2o-3 | d69f1c07e1f5d2540cb0ce5e6073415fa0780d32 | dfb163c82ff3bfa6f88cdf02465a9bb4c8189cb7 | refs/heads/master | 2022-12-14T08:59:04.109986 | 2020-09-23T08:36:59 | 2020-09-23T08:36:59 | 297,947,978 | 2 | 0 | Apache-2.0 | 2020-09-23T11:28:54 | 2020-09-23T11:28:54 | null | UTF-8 | Python | false | false | 1,086 | py | from __future__ import print_function
import sys
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
import numpy as np
from h2o.utils.typechecks import assert_is_type
from h2o.frame import H2OFrame
def h2o_H2OFrame_split_frame():
"""
Python API test: h2o.frame.H2OFrame.split_frame(ratios=... | [
"noreply@github.com"
] | Winfredemalx54.noreply@github.com |
5953b3b9c01500579a6f297e7f5b22fd87d779c5 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/ebayer/c2/kernel/pae/drivers/module-pae-openafs/actions.py | 5dcbf53a4428541a79d686435aaf1aa6a77d6da8 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
f... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
6e00615762e8df542d13ee65b1357bdf9cf232dc | a11984110d22e8231896c7e8bf2c6c2a96e46502 | /Daily Challenges/2020/June/Coin Change 2.py | 11def6bdf3936bba8f8e65cab5a71696240db825 | [] | no_license | Waqar-107/LeetCode | fbd323c89a5ea010b3322b0b35dd087a7744abc4 | 5f7dc48918c0367b20e733830e9807eb40840f77 | refs/heads/master | 2023-08-03T12:27:58.593051 | 2023-07-24T01:33:24 | 2023-07-24T01:33:24 | 220,239,559 | 8 | 7 | null | 2022-05-01T18:50:03 | 2019-11-07T13:08:48 | Python | UTF-8 | Python | false | false | 837 | py | class Solution:
def change(self, amount: int, coins: List[int]) -> int:
n = len(coins)
dp = [[0 for _ in range(n)] for _ in range(amount + 1)]
if amount == 0:
return 1
if n == 0:
return 0
for j in range(n):
dp[0][j] = 1
... | [
"noreply@github.com"
] | Waqar-107.noreply@github.com |
0a6b8b51c8c6d0be55dbbec18662c723561424b8 | 44064ed79f173ddca96174913910c1610992b7cb | /Second_Processing_app/temboo/Library/SendGrid/WebAPI/Profile/__init__.py | 6d92d7a013674c733657f66763ff162be16e38d5 | [] | no_license | dattasaurabh82/Final_thesis | 440fb5e29ebc28dd64fe59ecd87f01494ed6d4e5 | 8edaea62f5987db026adfffb6b52b59b119f6375 | refs/heads/master | 2021-01-20T22:25:48.999100 | 2014-10-14T18:58:00 | 2014-10-14T18:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from UpdateContactProfileEmailAddress import *
from UpdateUsername import *
from ViewAccountProfile import *
from ResetPassword import *
from UpdateAccountProfile import *
| [
"dattasaurabh82@gmail.com"
] | dattasaurabh82@gmail.com |
4ddb79704d7f95d929525eb9514d2329a0e2ae5f | 9ce4292954000fd66bcdbd0797a280c306308d08 | /quizzes/00.organize.me/Cracking the Coding Interview/10-5.py | b766c70b7b543f695e10a7a7269d68734ca8f968 | [
"MIT"
] | permissive | JiniousChoi/encyclopedia-in-code | 0c786f2405bfc1d33291715d9574cae625ae45be | 77bc551a03a2a3e3808e50016ece14adb5cfbd96 | refs/heads/master | 2021-06-27T07:50:10.789732 | 2020-05-29T12:50:46 | 2020-05-29T12:50:46 | 137,426,553 | 2 | 0 | MIT | 2020-10-13T08:56:12 | 2018-06-15T01:29:31 | Python | UTF-8 | Python | false | false | 1,342 | py | '''
10.5 - 빈 문자열이 섞여 있는 정렬 상태의 배열이 주어졌을 때, 특정한 문자열 의 위치를 찾는 메서드를 작성하라.
'''
def search_arr_with_empty_string(arr, target):
assert arr
left = init_left(arr)
right = init_right(arr)
mid = get_mid(arr, left, right)
while mid>=0:
if arr[mid]==target:
return mid
if arr[mid]>... | [
"jinchoiseoul@gmail.com"
] | jinchoiseoul@gmail.com |
dcbab961672293df7685c2b68b386d61314c7e39 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_144/ch149_2020_04_13_20_40_50_766295.py | 878ea953ff527f041b48cc86231d9d5b082aeda2 | [] | 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 | 1,029 | py | salario_bruto = int(input(("Salario: "))
numero_dependentes = int(input("Dependentes: "))
contri_INSS = 0
if salario_bruto <= 1045:
contri_INSS = salario_bruto * 0.075
elif salario_bruto >= 1045.01 and salario_bruto <=2089.60:
contri_INSS = salario_bruto * 0.09
elif salario_bruto >= 2089.01 and salar... | [
"you@example.com"
] | you@example.com |
584fe41b940e4bd228c969c3f6fe5b68081645b6 | cc0c0f99a5cf563ff52a76f2ac17cdad09d22f01 | /venv/Lib/site-packages/itk/itkQuadEdgeMeshToQuadEdgeMeshFilterPython.py | 9b071e6e20bc0503a4cd1054eb25977024483ead | [] | no_license | Marxss/carck_detect_system | 9c0d338bde322b4c7304fd0addb524d8697c8a7b | d2480f2108052af8af0aa5265a5239c309885043 | refs/heads/master | 2022-04-15T23:34:20.988335 | 2020-03-29T16:24:00 | 2020-03-29T16:24:00 | 214,625,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,466 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkQ... | [
"274065539@qq.com"
] | 274065539@qq.com |
c1825c451ebce3e5a90f216fa0ea0683c035ad0d | 34f6d9a4c4becc057d1b01a0ed3e50f20a071b03 | /main/migrations/0001_initial.py | 55e4c7b7da9e0f6d8dea069a8d80d7bc81e61042 | [] | no_license | hitscanner/WUW | e6d59bb8eae3834cf115e50834a2a4af51c29b29 | 31a482afe3e4789c979696a70f5ded17488b7810 | refs/heads/master | 2022-12-10T06:01:01.862354 | 2019-08-11T11:31:01 | 2019-08-11T11:31:01 | 196,556,732 | 0 | 0 | null | 2022-07-06T20:13:05 | 2019-07-12T10:06:49 | JavaScript | UTF-8 | Python | false | false | 771 | py | # Generated by Django 2.2 on 2019-07-16 08:45
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Search_result',
fields=[
('id', models.AutoFi... | [
"dmswl_0311@naver.com"
] | dmswl_0311@naver.com |
cab7d49da20714d35bcfe777d586c4c4b8e8bcb1 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/eqpt/spcmnblk.py | 4a85bd179a0f4e21e2c358232362a472c0383c4d | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,084 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
d64a07214140198e05e8730f69a9a5dd80e5146d | aa3beba7d2e9eb7d4b5b4884f8d11203fe8ebe8e | /historical_bars_pandas_one_time.py | 4b41c3982182d22d010ea68d4e22e4cd423b3b3f | [] | no_license | webclinic017/historical_ticks-1 | 0d3d5113f16624f2191fff366c9e9f6ad2e72f1c | 8a30e6b6ea3c484f6cab95cf4d32fe3dd2695056 | refs/heads/main | 2023-08-05T03:07:59.258809 | 2021-09-13T12:22:59 | 2021-09-13T12:22:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,089 | py | import pandas as pd
import csv
import argparse
import datetime
import collections
import inspect
import logging
import os.path
import time
import datetime
from ibapi import wrapper
from ibapi import utils
from ibapi.client import EClient
from ibapi.utils import iswrapper
from ContractSamples import ContractSamples
... | [
"noreply@github.com"
] | webclinic017.noreply@github.com |
877d1c526b3f20bd3188f83451ed138f7a56e486 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_sniggering.py | 17cd2b9a2bb4518486b4ed491fb93307ec1d284d | [
"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 | 230 | py |
#calss header
class _SNIGGERING():
def __init__(self,):
self.name = "SNIGGERING"
self.definitions = snigger
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['snigger']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ac7098eb210e84d502ecbef2178e0288d257fa61 | 010215c1421f5275a846e7154189b22cdd3c89bc | /MS/Two Pointer/backspace_compare.py | b930b074d11fe2ed02fd6c809b5f4f8223bf58ac | [] | no_license | bsextion/CodingPractice_Py | ab54d5715298645a8fd7ab6945bf3b22d4e6a874 | da2847a04705394c32a6fe1b5f6c6b64c24647a3 | refs/heads/master | 2023-08-16T17:14:47.643989 | 2021-09-28T19:23:40 | 2021-09-28T19:23:40 | 383,658,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | def backspace_compare(str1:str, str2):
#two pointers,
ptr_one = 0
ptr_two = 0
while ptr_one < len(str1):
if str1[ptr_one] is '#' and ptr_one > 0:
temp = list(str1)
temp[ptr_one-1] = ''
temp[ptr_one] = ''
str1 = ''.join(temp)
ptr_one += 1
... | [
"bsextion@gmail.com"
] | bsextion@gmail.com |
b6677daaa5433a1a5bff104dbd781005f9caa6ad | bdba52c756cc09f192b720ea318510c265665dcd | /swagger_client/models/get_characters_character_id_planets_planet_id_head.py | d6daf4f3b6cdc6f78e96cc5957b82e43bb1a5d74 | [
"MIT"
] | permissive | rseichter/bootini-star | 6b38195890f383615cc2b422c365ac28c5b87292 | a80258f01a05e4df38748b8cb47dfadabd42c20d | refs/heads/master | 2020-03-14T03:17:11.385048 | 2018-06-28T17:23:23 | 2018-06-28T17:23:23 | 131,416,504 | 0 | 0 | MIT | 2018-05-01T14:26:04 | 2018-04-28T14:28:46 | Python | UTF-8 | Python | false | false | 5,555 | py | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online # noqa: E501
OpenAPI spec version: 0.8.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class GetCharactersCharacterIdPlanetsPlanetIdHead(object):
... | [
"github@seichter.de"
] | github@seichter.de |
c4f36d4b7fa6d6a4966f1a22288517df1842a6e4 | 480e33f95eec2e471c563d4c0661784c92396368 | /Configuration/Generator/python/QCD_Pt-20toInf_MuEnrichedPt15_TuneCUETP8M1_13TeV_pythia8_cff.py | 7ca22905e2e7cd1528d55e528353b0c20e2ccb2d | [
"Apache-2.0"
] | permissive | cms-nanoAOD/cmssw | 4d836e5b76ae5075c232de5e062d286e2026e8bd | 4eccb8a758b605875003124dd55ea58552b86af1 | refs/heads/master-cmsswmaster | 2021-01-23T21:19:52.295420 | 2020-08-27T08:01:20 | 2020-08-27T08:01:20 | 102,867,729 | 7 | 14 | Apache-2.0 | 2022-05-23T07:58:09 | 2017-09-08T14:03:57 | C++ | UTF-8 | Python | false | false | 2,277 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
maxEventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.int32(1),
fil... | [
"kpedro88@gmail.com"
] | kpedro88@gmail.com |
ba2213f9f76fd58af80066c34ca0933cca61dfbe | 8b2b497069ed3db150e15863559dc0e9a44dc8c1 | /pure_protobuf/io/url.py | 3e2004fb24b0f96f02a7ce5efe77d39b2a72b5a2 | [
"MIT"
] | permissive | eigenein/protobuf | 2aec2c544cf9f6571b161b1e62ec3675a5b141eb | cf14bc702302c9334c7c9cc839b0b24334a725ef | refs/heads/master | 2023-08-31T21:23:29.258800 | 2023-08-27T12:00:26 | 2023-08-28T12:36:25 | 1,890,285 | 216 | 20 | MIT | 2023-09-13T12:58:54 | 2011-06-13T18:26:55 | Python | UTF-8 | Python | false | false | 619 | py | """Reading and writing parsed URLs."""
from typing import IO, Iterator
from urllib.parse import ParseResult, urlparse, urlunparse
from pure_protobuf.interfaces.read import Read
from pure_protobuf.interfaces.write import Write
from pure_protobuf.io.bytes_ import read_string, write_string
class ReadUrl(Read[ParseResu... | [
"eigenein@gmail.com"
] | eigenein@gmail.com |
aee56c11569ff5461d903c1776810a2242a2f6ce | 12c15c7ae150acaf8032f444db24440da2234b1a | /ComputerVision/Projects/cv20_proj1/lap.py | f91c55cde634d08ca8ca04d68cc2380417508879 | [] | no_license | Jimut123/rkmveri-labs | 315ecd4607af72dd0851489e427a3ab09a8009ff | be19a453ea32460c454e3443798e3d8954fb084b | refs/heads/master | 2023-02-02T17:11:23.641187 | 2020-12-13T18:35:20 | 2020-12-13T18:35:20 | 201,784,550 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | import numpy as np
import cv2
cutoff_frequency = 4
filter = cv2.getGaussianKernel(ksize=cutoff_frequency*4+1,
sigma=cutoff_frequency)
filter = np.dot(filter, filter.T)
def del2(M):
dx = 1
dy = 1
rows, cols = M.shape
dx = dx * np.ones ((1, cols - 1))
dy = dy * np.ones ... | [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
c89b9794cbf2b7f1b847fd4e611f0c42b5aa35fa | 4771ca5cd2c7be8e6d0a50f1e0b1f85a17ec5efd | /todos/forms.py | 51e119676bbd8af1823a81a48e4933eac9090377 | [] | no_license | luanfonceca/todomvc-django-over-the-wire | 03aa2e57c04d465c56cf06e1c95b417c502bcbad | ae1b6e989c0c9edd7d4f8de2d9553bf57e4e1e38 | refs/heads/main | 2023-03-03T19:23:35.849691 | 2021-02-07T13:23:17 | 2021-02-07T13:23:17 | 334,795,276 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | py |
from django import forms
from todos.models import ToDo
class ToDoForm(forms.ModelForm):
class Meta:
model = ToDo
fields = ('title',)
class CompleteToDoForm(forms.ModelForm):
class Meta:
model = ToDo
fields = ('is_completed',)
| [
"luanfonceca@gmail.com"
] | luanfonceca@gmail.com |
2212a2b636017e168a6d9d41201b0c3c70163ac9 | 057d662a83ed85897e9906d72ea90fe5903dccc5 | /Comprehension.py | 68427686ee2e27abe1a3290558f7865fd4fd49bb | [] | no_license | Karishma00/AnsiblePractice | 19a4980b1f6cca7b251f2cbea3acf9803db6e016 | 932558d48869560a42ba5ba3fb72688696e1868a | refs/heads/master | 2020-08-05T00:05:31.679220 | 2019-10-04T13:07:29 | 2019-10-04T13:07:29 | 212,324,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | #
list=[x**2 for x in range(0,10)]
print(list)
#another ex
celcius=[0,10,30,90]
fahrenheiet=[((0/5)*temp +32) for temp in celcius]
print(fahrenheiet) | [
"karishma11198@gmail.com"
] | karishma11198@gmail.com |
1d806f235836b0b15c4c2615bbf176dff8458479 | 82be2ebd50fef5b359cfbcacd21f38da4c383ffc | /tests/test_writer.py | a340f79117bfab8297d6e6b0fb63a8be472e2988 | [
"BSD-3-Clause"
] | permissive | isabella232/helium-commander | 5eae81b89cccf2dae56a4163815d867777387288 | 58d1fe4064c51beccbff7a0d93bf037fffdac370 | refs/heads/master | 2021-06-15T15:16:00.139651 | 2017-02-28T23:22:36 | 2017-02-28T23:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | from helium_commander import Sensor, DataPoint
from itertools import islice
import pytest
def validate_format(output, client, sensors, capsys):
first_sensor = sensors[0]
# With sort
Sensor.display(client, sensors, format=output, sort='name')
out, err = capsys.readouterr()
assert first_sensor.shor... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
102a94ec2318f2e1673fd0e494380451db909578 | 0e7aed5eef2e1d132a7e75dd8f439ae76c87639c | /python/652_find_duplicated_subtrees.py | ee4a673bdc3ecbf54bdd00a403e289703d72c886 | [
"MIT"
] | permissive | liaison/LeetCode | 2a93df3b3ca46b34f922acdbc612a3bba2d34307 | bf03743a3676ca9a8c107f92cf3858b6887d0308 | refs/heads/master | 2022-09-05T15:04:19.661298 | 2022-08-19T19:29:19 | 2022-08-19T19:29:19 | 52,914,957 | 17 | 4 | null | null | null | null | UTF-8 | Python | false | false | 2,429 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def findDuplicateSubtrees(self, root: TreeNode) -> List[TreeNode]:
# set of all node strings
... | [
"lisong.guo@me.com"
] | lisong.guo@me.com |
15fd9952fee0476a4522d0e9c5220985962185cf | 88abc8645e499a61e96e2979ae6092e98bfd09e7 | /streamz/utils.py | 4e1538da7c4506a9bf7fed145c07d2eb9fdde2bc | [
"BSD-3-Clause"
] | permissive | vishalbelsare/streamz | 5e2d6e112b6a2a90e396c4e3bc11cb1167d879e3 | b73a8c4c5be35ff1dae220daaefbfd2bfa58e0a1 | refs/heads/master | 2022-12-24T17:28:40.600327 | 2022-11-22T16:40:35 | 2022-11-22T16:40:35 | 207,001,623 | 0 | 0 | BSD-3-Clause | 2022-12-10T04:20:03 | 2019-09-07T17:20:32 | Python | UTF-8 | Python | false | false | 1,184 | py | _method_cache = {}
class methodcaller(object):
"""
Return a callable object that calls the given method on its operand.
Unlike the builtin `operator.methodcaller`, instances of this class are
serializable
"""
__slots__ = ('method',)
func = property(lambda self: self.method) # For `funcn... | [
"noreply@github.com"
] | vishalbelsare.noreply@github.com |
3a084bb437dc7e9fbb08e486b1cc9993909d21bb | 71d535545c4f3b2fc626cd04cfcee22805b67353 | /copacity_app/migrations/0007_auto_20210613_1019.py | c0f52b9073d682a55e6c58ee766848aa894fabd7 | [] | no_license | mcnalj/copacity_django | 01a018d32ee9cb9ba392e5dcd160d636ba0b5b74 | 48432cff7585af342599c06cac497947e4b68195 | refs/heads/master | 2023-07-04T14:27:50.736252 | 2021-08-10T16:53:59 | 2021-08-10T16:53:59 | 383,779,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,768 | py | # Generated by Django 3.1.7 on 2021-06-13 10:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('copacity_app', '0006_che... | [
"example@example.com"
] | example@example.com |
ef954e4bc9bcc4a0ca428034f6427da6e1577c8f | 07da31b260bf2949ffd9463ad4f777ca93b75d43 | /sleekforum/src/sleekapps/threads/views/post/post.py | 6f81800803801b5318b4dba53439f620da360d57 | [] | no_license | adepeter/sleek-docker | 134fd7de12ade8c521ceb8e1b2b2611fa2224dde | dcf010c3da53093600101d970c6888c82360209f | refs/heads/master | 2022-12-15T14:53:01.499098 | 2020-09-14T00:42:31 | 2020-09-14T00:42:31 | 282,499,689 | 0 | 0 | null | 2020-07-31T14:31:22 | 2020-07-25T18:12:19 | JavaScript | UTF-8 | Python | false | false | 1,459 | py | from django.contrib import messages
from django.views.generic.edit import CreateView, DeleteView, UpdateView
from django.utils.translation import gettext_lazy as _
from ...forms.post.post import PostEditForm, PostForm
from ...viewmixins.post import BasePostMixin
TEMPLATE_URL = 'threads/post'
class EditPost(BasePost... | [
"adepeter26@gmail.com"
] | adepeter26@gmail.com |
418ff5b81b82739dbb020083e568e2276627c16e | fdaba69f8d3ae3e645cb548a31111814b67f88bc | /credit/xgboost_Chunk_join.py | 3d222a1d0c5720a80dc1aa63bfc2f49b7910ada3 | [] | no_license | curryli/pandasFlow | 6c381a06843f353f3449666cc9aee3e3fc2c3620 | 891963e1d9acd8cdd23732180a3fd4b4633bc335 | refs/heads/master | 2020-12-07T15:24:36.500075 | 2018-07-01T09:01:09 | 2018-07-01T09:01:09 | 95,520,789 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,752 | py | # -*- coding: utf-8 -*-
import pandas as pd
from sklearn.cross_validation import train_test_split
from sklearn.metrics import recall_score, precision_score
from sklearn.metrics import precision_recall_fscore_support
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import confusion_matrix
from s... | [
"xurui.lee@msn.com"
] | xurui.lee@msn.com |
4b3187694d3f43ef8b7ee834c64e18fad6e4b5d3 | 2290eed5c494202beea0da1b9257a38b7a4403d2 | /script/[662]二叉树最大宽度.py | 382e8af49c05465745fefb5b155a1be322b7d57b | [] | no_license | DSXiangLi/Leetcode_python | 4b1c9848ea774955fb252b9bd796ba8d46ad728e | a2ef0ba5e86405dbf68dbc1ffeb086c7d864db1d | refs/heads/main | 2022-09-01T04:34:04.260402 | 2022-08-20T01:12:27 | 2022-08-20T01:12:27 | 445,347,891 | 1 | 0 | null | 2022-07-23T06:32:14 | 2022-01-07T00:15:20 | Python | UTF-8 | Python | false | false | 2,352 | py | # 给定一个二叉树,编写一个函数来获取这个树的最大宽度。树的宽度是所有层中的最大宽度。这个二叉树与满二叉树(full binary tree)结构相同,但一些节
# 点为空。
#
# 每一层的宽度被定义为两个端点(该层最左和最右的非空节点,两端点间的null节点也计入长度)之间的长度。
#
# 示例 1:
#
#
# 输入:
#
# 1
# / \
# 3 2
# / \ \
# 5 3 9
#
# 输出: 4
# 解释: 最大值出现在树的第 3 层,宽度为 4 (5,3,null,9)。... | [
"liningrui@xiaohongshu.com"
] | liningrui@xiaohongshu.com |
ea41bf74cd26d0892bb73965c448beea182cf8f0 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnconveyanc.py | 8b322095af1ce66ac5cee14556ce11e1e57f9dc2 | [] | 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 | 158 | py | ii = [('ClarGE2.py', 7), ('AinsWRR3.py', 1), ('ClarGE.py', 2), ('WadeJEB.py', 6), ('HaliTBC.py', 1), ('MereHHB2.py', 1), ('ClarGE3.py', 2), ('DibdTRL.py', 4)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
68a8b7bca0c433c9063cdb4726ee5fc8ce83c752 | 48aacf0425c5ab071972034c3fbd388feb036578 | /node-7/site-packages/ceph_deploy/connection.py | 381f6afa4c9bd0454eb2cda6a9881067950e2c18 | [] | no_license | wputra/MOS-centos | 2b8ec0116bb3a28632c54d6052d322a42391439f | 0a4f24dd4183d4d44e8c7beb27adce12e42f0201 | refs/heads/master | 2021-01-10T19:22:22.920342 | 2014-09-12T03:33:54 | 2014-09-12T03:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from ceph_deploy.lib.remoto import Connection
from sudo_pushy import needs_sudo # TODO move this to utils once pushy is out
def get_connection(hostname, logger, threads=5):
"""
A very simple helper, meant to return a connection
that will know about the need to use sudo.
"""
try:
return Co... | [
"wasis.putra@gmail.com"
] | wasis.putra@gmail.com |
f54066fc82d29ccbcbb0f6fbc82e0b625fe67fb5 | ad0857eaba945c75e705594a53c40dbdd40467fe | /leetCode/maximal_rectangle.py | 98b030c3831e8cf2db830fb6e04f0209fe45fc5d | [
"MIT"
] | permissive | yskang/AlgorithmPractice | c9964d463fbd0d61edce5ba8b45767785b0b5e17 | 3efa96710e97c8740d6fef69e4afe7a23bfca05f | refs/heads/master | 2023-05-25T13:51:11.165687 | 2023-05-19T07:42:56 | 2023-05-19T07:42:56 | 67,045,852 | 0 | 0 | null | 2021-06-20T02:42:27 | 2016-08-31T14:40:10 | Python | UTF-8 | Python | false | false | 927 | py | class Solution(object):
def maximal_rectangle(self, matrix):
if not matrix or not matrix[0]:
return 0
width = len(matrix[0])
heights = [0] * (width+1)
ans = 0
for row in matrix:
for i in range(width):
heights[i] = heights[i] + 1 if ro... | [
"yongsung.kang@gmail.com"
] | yongsung.kang@gmail.com |
ac7a8bc1157a39c61201db61f88be40f9b180771 | 7cf52b987da6595ebc5f763b384b03e608ccb25f | /tests/index/test_mongodb_index.py | 87a66da4180d9cc8e832f22eb992d389b7dee1c3 | [] | no_license | shaypal5/dinglebop | 93fdfda48ec4d91c0a9485173a106d1edbcd1b29 | a10473b4abecfd70a00cd9086aa8919a404959c9 | refs/heads/master | 2021-08-20T10:17:46.640046 | 2017-11-14T18:01:43 | 2017-11-14T18:01:43 | 109,569,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,710 | py | """Testing the implementation of MongoDB-based dingle indexes."""
import pytest
from dinglebop.index.mongodb import MongoDBIndex
from dinglebop.shared import get_dinglebop_cfg
SAMPLE_IDEN1 = 'school_data_2016'
SAMPLE_IDEN2 = 'school_data_2017'
SAMPLE_DOC1 = {'identifier': SAMPLE_IDEN1, 'version': 'v1.0',
... | [
"shaypal5@gmail.com"
] | shaypal5@gmail.com |
9f5159c90657e4c81d5b418e21cacd21836d48a7 | 0f3a0be642cd6a2dd792c548cf7212176761e9b1 | /pywps_services/r_spreadpath.py | afb9e04098aba8613b3ae1e979cf639f4e50b450 | [] | no_license | huhabla/wps-grass-bridge | 63a5d60735d372e295ec6adabe527eec9e72635a | aefdf1516a7517b1b745ec72e2d2481a78e10017 | refs/heads/master | 2021-01-10T10:10:34.246497 | 2014-01-22T23:40:58 | 2014-01-22T23:40:58 | 53,005,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,149 | py | # ################################################ #
# This process was generated using GrassXMLtoPyWPS #
# Author: Soeren Gebbert #
# Mail: soerengebbert <at> googlemail <dot> com #
# ################################################ #
from pywps.Process import WPSProcess
from PyWPSGrassM... | [
"soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202"
] | soerengebbert@23da3d23-e2f9-862c-be8f-f61c6c06f202 |
634e12c0e89842b519a5bae4fcff0bcc9f6bc466 | 6e19835f99efea46d7b7966144efa8e2302d5e4c | /tensorflow/python/autograph/utils/misc_test.py | c813e0f5c96386a0d0fbd078bd5b663c688b0327 | [
"Apache-2.0"
] | permissive | Cincan/tensorflow | 415fba147ef4676901f424a839d751aa7d1c50f0 | 94c9acddd9f3fd73a5e4b5bc1fd7c9284a68ea75 | refs/heads/master | 2020-04-08T14:07:14.355697 | 2018-11-28T00:59:40 | 2018-11-28T00:59:40 | 159,422,705 | 1 | 0 | Apache-2.0 | 2018-11-28T01:08:35 | 2018-11-28T01:08:35 | null | UTF-8 | Python | false | false | 1,719 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
d3bb18f8490dbe42f2945f71dc53ab3f6ba81073 | 012aadc12dc2a4560eabc04527414c3883e87e3d | /myvenv/bin/autopep8 | b7dcecda5a6c5b3d815b73491659a8d14741a669 | [] | no_license | kosiannpann/my-first-blog | a0c17286256e0d16a90b40b6b2f9beddebe9b03e | e41f4966da20785cabb9402e02a4119fb981fee1 | refs/heads/master | 2023-06-09T04:19:02.276691 | 2021-07-04T02:52:22 | 2021-07-04T02:52:22 | 376,177,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | #!/Users/ootadaiki/djangogirls/myvenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from autopep8 import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.com | |
a1169142ea4526aa901d36823d53da96429542b2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02898/s602471427.py | 314d28278090b7657613ada6c2c07aa32f78faee | [] | 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 | 528 | py | from sys import stdin
import sys
import math
from functools import reduce
import functools
import itertools
from collections import deque,Counter,defaultdict
from operator import mul
import copy
# ! /usr/bin/env python
# -*- coding: utf-8 -*-
import heapq
sys.setrecursionlimit(10**6)
# INF = float("inf")
INF = 10**18
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
df7b698115c3ffbcc37de296d1f45a03dd270d4e | 78144baee82268a550400bbdb8c68de524adc68f | /Production/python/Autumn18/RPV_2t6j_mStop-1300_mN1-100_TuneCP2_13TeV-madgraphMLM-pythia8_cff.py | 76c72b7101248b1ce6344a581378b039f338ce9b | [] | no_license | tklijnsma/TreeMaker | e6989c03189b849aff2007bad22e2bfc6922a244 | 248f2c04cc690ef2e2202b452d6f52837c4c08e5 | refs/heads/Run2_2017 | 2023-05-26T23:03:42.512963 | 2020-05-12T18:44:15 | 2020-05-12T18:44:15 | 263,960,056 | 1 | 2 | null | 2020-09-25T00:27:35 | 2020-05-14T15:57:20 | null | UTF-8 | Python | false | false | 1,467 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/RunIIAutumn18Mi... | [
"Chris_Madrid@Baylor.edu"
] | Chris_Madrid@Baylor.edu |
68554203dcadc071481784c3c5bb2aa165f03998 | f5ffd566166948c4202eb1e66bef44cf55a70033 | /openapi_client/model/array_of_groups.py | 49b6ca340c93633e7253f9ed715d5e9b8508b2ce | [] | no_license | skyportal/skyportal_client | ed025ac6d23589238a9c133d712d4f113bbcb1c9 | 15514e4dfb16313e442d06f69f8477b4f0757eaa | refs/heads/master | 2023-02-10T02:54:20.757570 | 2021-01-05T02:18:03 | 2021-01-05T02:18:03 | 326,860,562 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,650 | py | """
Fritz: SkyPortal API
SkyPortal provides an API to access most of its underlying functionality. To use it, you will need an API token. This can be generated via the web application from your profile page or, if you are an admin, you may use the system provisioned token stored inside of `.tokens.yaml`. ### ... | [
"profjsb@gmail.com"
] | profjsb@gmail.com |
0bf8b725ddbfa47071048214793a8fd56f8a68d9 | 90c6262664d013d47e9a3a9194aa7a366d1cabc4 | /tests/storage/cases/test_KT1GvgQwPwo8ZdYojFrQyjs1QtjRKjn52cbV.py | 2ae9510b0d691b63af6e04ec0a6f9d672271926b | [
"MIT"
] | permissive | tqtezos/pytezos | 3942fdab7aa7851e9ea81350fa360180229ec082 | a4ac0b022d35d4c9f3062609d8ce09d584b5faa8 | refs/heads/master | 2021-07-10T12:24:24.069256 | 2020-04-04T12:46:24 | 2020-04-04T12:46:24 | 227,664,211 | 1 | 0 | MIT | 2020-12-30T16:44:56 | 2019-12-12T17:47:53 | Python | UTF-8 | Python | false | false | 1,130 | py | from unittest import TestCase
from tests import get_data
from pytezos.michelson.converter import build_schema, decode_micheline, encode_micheline, micheline_to_michelson
class StorageTestKT1GvgQwPwo8ZdYojFrQyjs1QtjRKjn52cbV(TestCase):
@classmethod
def setUpClass(cls):
cls.maxDiff = None
cls.... | [
"mz@baking-bad.org"
] | mz@baking-bad.org |
8f05bd2092972f6b401e756e15c2117a31a5a4ba | ad69b52951c2f80d152b9ce2225b9a588f110deb | /fan_element_struct.py | 66a7720d1a15cb86b7b4a0c70052200350ac8318 | [] | no_license | hailangzz/fan_health_program | 47c70fe884ec8e28b20be63f99d5c3004bb2a261 | 137d8a1a2271a44c68fe5a5b2b4e367023c0efad | refs/heads/master | 2020-03-19T16:03:13.442179 | 2018-06-09T07:47:34 | 2018-06-09T07:47:34 | 136,698,139 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,210 | py | #coding=utf-8
import numpy as np
import copy
def fan_element_struct():
#机组状态码暂时不确定,因此后续动态添加···,做单台机组状态码频率分布···,'stames_alive_list'是不同机组状态的存活列表···
stames_code={'stamescode_number':0,'stamescode_time':0,'reduce_power':0,'stames_alive_list':[]}
#机组故障及其次数统计
error={'uiHubErr':{'HubErr_code':{},'starttime':[... | [
"344267342@qq.com"
] | 344267342@qq.com |
0c8d931e83ca07c53fe67e67250f3e7cb9fb37c8 | 09dbc3b3ecf116eda30b039c641913b63aecb991 | /turbustat/data_reduction/data_reduc.py | 41e624b91294e59713b677f5f9150537dbd1d512 | [
"MIT"
] | permissive | keflavich/TurbuStat | 2a3e2a891933046074adb6a20f93977ad136e750 | a6fac4c0d10473a74c62cce4a9c6a30773a955b1 | refs/heads/master | 2021-01-18T06:30:06.717191 | 2014-07-04T00:05:27 | 2014-07-04T00:05:27 | 21,695,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,244 | py | # Licensed under an MIT open source license - see LICENSE
'''
Data Reduction Routines for PPV data cubes
'''
import numpy as np
from scipy import ndimage as nd
from operator import itemgetter
from itertools import groupby
from astropy.io import fits
import copy
from scipy.optimize import curve_fit
... | [
"koch.eric.w@gmail.com"
] | koch.eric.w@gmail.com |
d917aed4d0dc683d3061f78f5a904422e86e49e2 | 26a660be93842a94c6416491fcf29bbab4a98a66 | /dev_utils/BioLogic_.py | 63ea4d02289cf872e0b1f0f10bd2c512fdf203c7 | [
"MIT"
] | permissive | indigos33k3r/cellpy | b9d2b37c994c41c73e5a3a0a439c787b9857e978 | 7aef2bb416d1506229747320cf73dc199704f585 | refs/heads/master | 2020-04-14T10:37:44.810456 | 2018-11-16T13:39:08 | 2018-11-16T13:39:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,053 | py | # -*- coding: utf-8 -*-
"""Code to read in data files from Bio-Logic instruments"""
# created by Chris Kerr
# downloaded from https://github.com/chatcannon/galvani/blob/master/galvani/BioLogic.py
__all__ = ['MPTfileCSV', 'MPTfile']
import sys
import re
import csv
from os import SEEK_SET
import time
from datetime imp... | [
"jepe@ife.no"
] | jepe@ife.no |
e3ea71ddfb85dc71b555b2e4eae31113519430a1 | 4819a4f99c6e283344bf81d05f98afb6555b4fe9 | /untitled1/urls.py | 8a2caf4fa2350d2a1cf343ecd51d3a00dc4e5e00 | [] | no_license | RafayelGardishyan/Schoolar | e6efe7280ac6c355421e34c3742f685a6c75b988 | 48e21c03486060e4bf6b0dd3e8f529f3faea0e9d | refs/heads/master | 2022-03-09T00:18:46.684387 | 2019-10-31T15:55:59 | 2019-10-31T15:55:59 | 170,994,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | """untitled1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"rgardishyan@gmail.com"
] | rgardishyan@gmail.com |
0a3443fba16aaf8d469463c85e077f82a962c1a3 | e4f1f60c587fadab2af3082836b559f981a74015 | /pcmdpy/galaxy/sfhmodels.py | 633948280418a368fd72cfdc917404aad8e5503b | [
"MIT"
] | permissive | bacook17/pcmdpy | bb2cd4b224f6a7cad5ca638a94f8494945404c6a | ce2e9341efb1846e8c6c8bac27208603591ec525 | refs/heads/master | 2021-06-04T09:49:21.414770 | 2019-08-13T17:39:48 | 2019-08-13T17:39:48 | 113,083,573 | 7 | 2 | MIT | 2023-06-27T04:45:28 | 2017-12-04T19:09:52 | Batchfile | UTF-8 | Python | false | false | 12,206 | py | # sfhmodels.py
# Ben Cook (bcook@cfa.harvard.edu)
"""Define SFHModel classes to integrate with Galaxy Models"""
__all__ = ['BaseSFHModel', 'NonParam', 'ConstantSFR', 'TauModel', 'RisingTau',
'SSPModel', 'get_sfh_model', 'all_sfh_models']
import numpy as np
def get_sfh_model(name, *args, **kwargs):
i... | [
"bcook@cfa.harvard.edu"
] | bcook@cfa.harvard.edu |
b7f51ac07e35b2adf6dab304ed1b86b064e9a447 | 29cc0a662b62078e553c461f05ef999c76c0f51f | /Lab_01/connection.py | 7f6f22939e3081ad8120f3d5f4badfa55ace0957 | [] | no_license | fefeagus/Redes_Sistemas_Distribuidos_2015 | bd2978f439389d8f50cbe55a9681cede2530de26 | eee77359891d6c52083c2bd116c2ae65cf36af14 | refs/heads/master | 2023-04-14T13:46:13.935385 | 2017-09-12T03:37:50 | 2017-09-12T03:37:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,300 | py | # encoding: utf-8
# Copyright 2014 Carlos Bederián
# $Id: connection.py 455 2011-05-01 00:32:09Z carlos $
import os
import socket
from constants import *
import server
class Connection(object):
"""
Conexión punto a punto entre el servidor y un cliente.
Se encarga de satisfacer los pedidos del cliente has... | [
"ferreyramario7@gmail.com"
] | ferreyramario7@gmail.com |
20413f0c344df7cbdad1bb7338a11aa39fc9861d | 48460db1a6fdc6c09845c86cf5fa257f1a32f08a | /leetcode/medium/0949_Largest_Time_for_Given_Digits.py | 0a85a9dd6fad4107f8c6a0e5a7d7bc8004502a85 | [] | no_license | MichalBrzozowski91/algorithms | 9d0b085621ed94b1aff5473663fbdc686463cd8d | ae57535b574a800c6300eae7d55b21f2432c3baa | refs/heads/master | 2022-12-20T08:00:59.385002 | 2020-09-30T16:32:33 | 2020-09-30T16:32:33 | 290,835,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | class Solution:
def largestTimeFromDigits(self, A: List[int]) -> str:
B = A.copy()
for firstDigitLimit in [2,1]:
A = B.copy()
result = ''
temp = [a for a in A if a in range(firstDigitLimit + 1)]
if not temp:
return ''
... | [
"noreply@github.com"
] | MichalBrzozowski91.noreply@github.com |
172e43d93c0b543dc370d654dd22753e9dd1cdfd | f7574ee7a679261e758ba461cb5a5a364fdb0ed1 | /MergeSortedArray.py | 25c884f75350c4b5cb98ff52b73b35e165289aaa | [] | no_license | janewjy/Leetcode | 807050548c0f45704f2f0f821a7fef40ffbda0ed | b4dccd3d1c59aa1e92f10ed5c4f7a3e1d08897d8 | refs/heads/master | 2021-01-10T19:20:22.858158 | 2016-02-26T16:03:19 | 2016-02-26T16:03:19 | 40,615,255 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,549 | py | class Solution(object):
def merge(self, nums1, m, nums2, n):
"""
:type nums1: List[int]
:type m: int
:type nums2: List[int]
:type n: int
:rtype: void Do not return anything, modify nums1 in-place instead.
"""
i = 0
j = 0
for j ... | [
"janewjy87@gmail.com"
] | janewjy87@gmail.com |
74c5c8c7b320b2dfc6dc3ab53abcf9739fd64eaa | 343bdaddfc66c6316e2cee490e9cedf150e3a5b7 | /0001_0100/0076/0076.py | 851fe3c3ab0a773579c4237f01aaebb9804a5a57 | [] | no_license | dm-alexi/acmp | af7f6b4484b78f5922f3b464406a0ba5dea0d738 | 3fa0016d132adfeab7937b3e8c9687a34642c93a | refs/heads/master | 2021-07-09T15:14:25.857086 | 2020-10-20T19:08:54 | 2020-10-20T19:08:54 | 201,908,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | def timeint(s):
return int(s[:2]) * 60 + int(s[3:])
with open("input.txt", "r") as f, open("output.txt", "w") as q:
m = 0
inlist, outlist = [], []
n = int(f.readline())
for i in range(n):
a, b = (timeint(x) for x in f.readline().split())
inlist.append(a)
outlist.append(b)
... | [
"dm2.alexi@gmail.com"
] | dm2.alexi@gmail.com |
45716f1b021167af4d29c8f8aceb4dcacc7127bd | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client_common/client_request_lib/data_sources/fake.py | 929662c454b82fe9c9e9246b4e9b77d255e999ca | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 33,763 | py | # 2017.08.29 21:52:16 Střední Evropa (letní čas)
# Embedded file name: scripts/client_common/client_request_lib/data_sources/fake.py
"""
Created on Jul 1, 2015
@author: oleg
"""
from functools import wraps, partial
from datetime import datetime, timedelta, time as dt_time
import random
from client_request_lib import e... | [
"info@webium.sk"
] | info@webium.sk |
24a2b2bd01037bb5984627af29d73e874afe85da | 94ea21700381f12b72649a59d2c90ae32c7e04f0 | /addons/hc_medication_administration/models/hc_res_medication_administration.py | 43a24cc10010e8dd270762918187fcb536cf5171 | [] | no_license | messakali/odoo-fhir | c07e2d058763580de2929d4c84ebd4717ac15c43 | 1f5c28a3fdd788370696a5f75ab68a2acfe16d25 | refs/heads/master | 2021-01-10T22:35:55.158494 | 2016-09-28T17:21:56 | 2016-09-28T17:21:56 | 69,700,012 | 0 | 1 | null | 2016-09-30T20:30:57 | 2016-09-30T20:30:56 | null | UTF-8 | Python | false | false | 450 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api
# class hc_medication_administration(models.Model):
# _name = 'hc_medication_administration.hc_medication_administration'
# name = fields.Char()
# value = fields.Integer()
# value2 = fields.Float(compute="_value_pc", store=True)
# de... | [
"lsison@moxylus.com"
] | lsison@moxylus.com |
b9d463520440cefe1071f439c6ea17ab48c3146f | 9d6f8b37165f51cf1f07f527ee1b86cc507127af | /api_pytest_2020/api_2020_04_25_1314/a4.py | 73cef69a16ec6718fad574b3c43bad2c3e284c94 | [] | no_license | pangchuan99/web_auto | 61876df2e69a642a983aa5309a8423429d0105bf | 62d79675eb37a7163a0d1baef97a37e36058fa6d | refs/heads/master | 2022-12-02T18:05:44.996353 | 2020-08-19T07:09:44 | 2020-08-19T07:09:44 | 280,367,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | #作用域
# b = "200"
def function(b):
a = "111"
c = a+b
return c
b = "200"
print(function(b))
| [
"you@example.com"
] | you@example.com |
f3a1b7d5b8f3c6718af758c89fae01723081f4ca | ca0757ab59d6420efae766dae80a539a3b692fbd | /apps/ippcdrupal/auth_backends.py | ba28716f1c21d575cec5c18d2e1d8708a507320f | [] | no_license | hypertexthero/itwishlist | bc1cfe7f3542a395ab439ee5aa71c1991baaadff | 148a085238ae86ee07255f94d3a48a92190ce5c5 | refs/heads/master | 2020-06-05T01:00:41.981168 | 2013-08-30T15:06:52 | 2013-08-30T15:06:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,052 | py | # =todo: authenticate against drupal users db
# Looks like we'll need to upgrade to Django 1.4...
from django.conf import settings
from django.contrib.auth import login
from django.contrib.auth.models import User, check_password
from itwishlist.apps.ippcdrupal.models import DrupalUsers
# from itwishlist.apps.ippcdrupa... | [
"simon@hypertexthero.com"
] | simon@hypertexthero.com |
5bb40c1749eaa3eac4770ac0d10b52827385b4ad | 19ffa66dc7ad2eb2e7f81783abbf365caf04dae9 | /Code/Mine/Python/SympyHelpers/MethodHelp/GeqPolyDirect/PolynomialWay.py | 94a1ef9bc9e2ebd9af3a024a9d79983f1aa7c711 | [] | no_license | jordanpitt3141/gSGN | 648bd137760937bc7ab28dfcc11ec6b0039b33d9 | c62b88316ba583737500341d233982c3c3810dbd | refs/heads/master | 2023-02-25T23:48:39.919795 | 2021-01-27T04:54:52 | 2021-01-27T04:54:52 | 264,787,792 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,569 | py | """
Python code to generate csv files that contain integrals of the basis functions
needed to generate the matrices of the Finite Element Method.
by Jordan Pitt 11/10/2018
"""
"""
############################# IMPORTS #########################################
"""
from sympy import * #Related website: https://www.sy... | [
"jordanpitt3141@gmail.com"
] | jordanpitt3141@gmail.com |
b2e0397ffe57b93e5e6ae261bde6a10fee12cd3a | b213c8b10b831d5fdacfb65c145450f6af846a4f | /blog/blog.py | ce23082f7c014309cc37d87c9b6217fc56981450 | [] | no_license | tuomas56/random-python-stuff | 1df260532abeb0a3da02560ed23ad1ee1995f5b2 | 12737127a31f1a3b84456021e8a5ac81545324da | refs/heads/master | 2020-12-31T04:42:12.123345 | 2015-11-25T21:54:28 | 2015-11-25T21:54:28 | 46,889,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,649 | py | from bottle import server_names, ServerAdapter, run, request, Bottle, redirect,response, abort
import markdown
import re
import os
import pickle
import uuid
import scrypt
import base64
from datetime import datetime, timedelta
from cherrypy import wsgiserver
from cherrypy.wsgiserver.ssl_builtin import BuiltinSSLAdapter
... | [
"pigworts2@gmail.com"
] | pigworts2@gmail.com |
b191a119c6debbe2643f12b03216b61002e09590 | 8f4c59e69cce2f6e932f55b3c65aae376b206a2c | /笨办法学python/ex47/skeleton/tests/ex47_tests.py | 00d322ae6ea3a7f953674e7ad506bc4a1713fde2 | [] | no_license | zmjm4/python | ef7206292f1c3a3a5763b25527024999de5e8e79 | 44cf74c0f16891c351ce214762218ccf2d7353a0 | refs/heads/master | 2020-05-27T17:23:48.776167 | 2018-05-24T07:14:16 | 2018-05-24T07:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,022 | py | # -*- coding: utf-8 -*-
from nose.tools import *
from ex47.game import Room
def test_room():
gold=Room("GoldRoom",
"""This room has gold in it you can grab. There's a
door to the north.""")
assert_equal(gold.name,"GoldRoom")
assert_equal(gold.paths,{})
def test_room_paths():
center = Room("Center", "Tes... | [
"715073608@qq.com"
] | 715073608@qq.com |
58c46c9a110a1eb99789632d26ae3ae38b04e23d | 9463d85666453fd8e57a0ce9e515e4765ae2b60a | /cwetsy/cwetsy/parser/browse_parser.py | a049cb5b8bc4542890ee7856ce7379b97e183bed | [
"MIT"
] | permissive | trujunzhang/djzhang-targets | dc6c3086553a5450fb239cc1cef5330a51a02e1f | c2e327acde9d51f0455e7243f17d93d74b579501 | refs/heads/master | 2021-01-09T20:52:31.258826 | 2016-07-16T13:18:53 | 2016-07-16T13:18:53 | 60,747,429 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from cwetsy.parser.base_parser import BaseParser
class BrowseParser(BaseParser):
def __init__(self):
super(BrowseParser, self).__init__()
def parse(self, url, hxs):
return None
| [
"trujunzhang@gmail.com"
] | trujunzhang@gmail.com |
68e4256f5b371f2525935ebc77355c859a1a2757 | 2993adb383fed317e6a83f2b8c2cacd640d19fb3 | /bookmarks/account/authentication.py | 2a9db5db7359fcc4a5a5ddcca0b1e3170ebbf911 | [] | no_license | Dyavathrocky/socialapp | 0e811a957a224b30aa32e8a24e3253c1b49a25df | 1dc071b69f9258c4f540211e25635ac277a6f6e4 | refs/heads/master | 2022-12-02T03:42:32.778466 | 2020-08-21T13:19:25 | 2020-08-21T13:19:25 | 286,060,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | from django.contrib.auth.models import User
class EmailAuthBackend(object):
"""
Authenticate using an e-mail address.
"""
def authenticate(self, request, username=None, password=None):
try:
user = User.objects.get(email=username)
if user.check_password(password):
... | [
"davathrak@gmail.com"
] | davathrak@gmail.com |
9478688498c1c1a485af4ce8894c0f2948b2b74b | 6223dc2e5de7921696cb34fb62142fd4a4efe361 | /.metadata/.plugins/org.eclipse.core.resources/.history/25/0083d7fa3b6a00141afa8a8ed49a3dc2 | 7b564846565a3335ffc0ed085fe8f0d38b42e923 | [] | no_license | Mushirahmed/python_workspace | 5ef477b2688e8c25b1372f546752501ee53d93e5 | 46e2ed783b17450aba29e4e2df7b656522b2b03b | refs/heads/master | 2021-03-12T19:24:50.598982 | 2015-05-25T10:23:54 | 2015-05-25T10:23:54 | 24,671,376 | 0 | 1 | null | 2015-02-06T09:27:40 | 2014-10-01T08:40:33 | Python | UTF-8 | Python | false | false | 5,466 | #!/usr/bin/env python
#
# Copyright 2014 <+YOU OR YOUR COMPANY+>.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This software is dis... | [
"imushir@gmail.com"
] | imushir@gmail.com | |
d3e241d4b04a38c79e01d0b0348b62f60c6c72fa | b44ba1ca68154a37936ae3822ca016b5d9a99a2a | /Redis/redis_pipe.py | bfde6e48477131440764d56064521f1f1f917c54 | [] | no_license | liuxingrichu/advanced-network-program | 6e17d30980e21b3397ac5ed5e404a282983a6869 | 3f84c4600a35af12a68a4c512afbe60ddf6347b1 | refs/heads/master | 2021-01-23T02:05:45.933255 | 2017-08-06T09:15:54 | 2017-08-06T09:15:54 | 85,964,385 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 427 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import redis
import time
'''
使用pipeline实现一次请求,执行多条命令
'''
# db的选择范围为0-15
pool = redis.ConnectionPool(host='localhost', port=6379, db=12)
r = redis.Redis(connection_pool=pool)
# pipe = r.pipeline(transaction=False)
pipe = r.pipeline(transaction=True)
pipe.set('name',... | [
"liuxingrichu@163.com"
] | liuxingrichu@163.com |
4c3c98dc139b2f8f584f48a9f1db91fb63471c18 | 5eea120356afc15cc3edb71f8864d6771ad865c6 | /futures/var_model/__init__.py | e9af4c55745c0234467df114b12290c6b8f19f73 | [
"MIT"
] | permissive | ShubraChowdhury/Investment_Finance | 469d5e5a200616eee830be18cb4a86d54319a30b | 3da761d755278d3d2de8c201b56d4ff9cb23def4 | refs/heads/master | 2022-12-12T11:52:33.585329 | 2021-09-23T18:13:15 | 2021-09-23T18:13:15 | 153,317,318 | 2 | 0 | null | 2022-12-08T00:45:34 | 2018-10-16T16:22:56 | Jupyter Notebook | UTF-8 | Python | false | false | 312 | py | """
The __init__.py files are required to make Python treat the directories as
containing packages; this is done to prevent directories with a common name,
such as string, from unintentionally hiding valid modules that occur later
(deeper) on the module search path.
@author: ucaiado
Created on 09/05/2016
"""
| [
"noreply@github.com"
] | ShubraChowdhury.noreply@github.com |
91f6f93546e8240aff32445f1e68c11ccfe19d83 | 4d2238210813c1581bf44f64d8a63196f75d2df4 | /tem.py | ece18216c221c476bc14897a6b8a415a8a9197d1 | [] | no_license | wwtang/code02 | b1600d34907404c81fa523cfdaa74db0021b8bb3 | 9f03dda7b339d8c310c8a735fc4f6d795b153801 | refs/heads/master | 2020-12-24T14:10:33.738734 | 2012-12-14T04:24:47 | 2012-12-14T04:24:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | color = raw_input('please select the color: ')
if color == "white" or color == "black":
print "the color was black or white"
elif color > "k" :
print "the color start with letter after the 'K' in alphabet"
| [
"andytang1994@gmail.com"
] | andytang1994@gmail.com |
a4ce7faf8a9617e3a7dcffa89948c091bf32dc3f | 1e11d6f9245c55e21edfb24f4340d52e3f7f327f | /dillo/migrations/0078_organizations.py | ecdc1eed4f69e90c13232e53b67ef2f646fc6389 | [] | no_license | armadillica/dillo | 996e8462f4f76349ecc49ecb08cdd6c8c66e072b | 960aed85f8438109bed9883321891305e1db8b10 | refs/heads/main | 2023-08-04T06:45:34.570071 | 2023-06-04T00:07:57 | 2023-06-04T00:07:57 | 30,461,275 | 79 | 18 | null | 2023-08-02T00:22:40 | 2015-02-07T16:17:43 | Python | UTF-8 | Python | false | false | 4,925 | py | # Generated by Django 3.2.13 on 2022-11-19 22:29
import dillo.models.mixins
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django_countries.fields
def forwards_func(apps, schema_editor):
"""Set default cateogries."""
OrganizationCategory = ap... | [
"francesco.siddi@gmail.com"
] | francesco.siddi@gmail.com |
95482e1fc560e2c251c59b36d951f928ba1157ba | 06292f96cba132ca57777672a447cfff7c5abee6 | /week5/tut/submit/1.py | b099a6a693b68bb37a739181ac6b9f40fa36844d | [] | no_license | kietteik/ppl | 1746440b12affe71e67d6f958922b32b1fdaab5c | 2ee60582e81595b8d8b5d0f8212d20151cfe9264 | refs/heads/master | 2023-03-01T00:24:36.969189 | 2021-01-31T05:15:13 | 2021-01-31T05:15:13 | 305,802,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | def double(lst):
'''1. a'''
return [i * 2 for i in lst]
def double(lst):
'''1. b'''
if not lst: return []
return [lst[0] * 2] + double(lst[1:])
def double(lst):
'''1. c'''
return list(map(lambda x: x * 2, lst)) | [
"kietteikdoi@gmail.com"
] | kietteikdoi@gmail.com |
bf0d24f0abd3437a1d7ea9f45e109f8389451f71 | 42c48f3178a48b4a2a0aded547770027bf976350 | /google/ads/google_ads/v4/proto/resources/ad_group_pb2.py | 9b8b6e30e51cd9adcbc7d0531551288d3aeb74cc | [
"Apache-2.0"
] | permissive | fiboknacky/google-ads-python | e989464a85f28baca1f28d133994c73759e8b4d6 | a5b6cede64f4d9912ae6ad26927a54e40448c9fe | refs/heads/master | 2021-08-07T20:18:48.618563 | 2020-12-11T09:21:29 | 2020-12-11T09:21:29 | 229,712,514 | 0 | 0 | Apache-2.0 | 2019-12-23T08:44:49 | 2019-12-23T08:44:49 | null | UTF-8 | Python | false | true | 27,203 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v4/proto/resources/ad_group.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import mes... | [
"noreply@github.com"
] | fiboknacky.noreply@github.com |
efc7ecd6a3329d95f29a04a55031b90530622262 | 52381a4fc02e90ce1fcfffd8d9876d9e8f44c248 | /core/storage/app_feedback_report/gae_models_test.py | 3d85809c3d1398a4612e0373018cc3bd404014b1 | [
"Apache-2.0"
] | permissive | ankita240796/oppia | 18aa1609a0f237ce76142b2a0d3169e830e5bcdd | ba4f072e494fd59df53fecc37e67cea7f9727234 | refs/heads/develop | 2022-07-11T01:11:53.136252 | 2022-06-30T08:55:49 | 2022-06-30T08:55:49 | 160,626,761 | 0 | 0 | Apache-2.0 | 2020-04-28T16:12:26 | 2018-12-06T06:02:18 | Python | UTF-8 | Python | false | false | 23,191 | py | # Copyright 2021 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 required by applicable ... | [
"noreply@github.com"
] | ankita240796.noreply@github.com |
b59a65aaf741f7146a41fec472f14aee29ef80fa | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02627/s326133719.py | ea89387977f0185b18128a2c9ae93915afa28952 | [] | 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 | 108 | py | from string import ascii_lowercase
a = input()
if a in ascii_lowercase:
print("a")
else:
print("A") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c469f6d0359884d8d16ed851a6af1e7f39b15f42 | 6f04b7f8fd55fffb54ce4c78049812655b8c176b | /chap03_GroupApply/lecture/step02_groupby_plot_선생님.py | a33aaf98830f6e875d4ec23df91b81e5c56e0c20 | [] | no_license | Elly-bang/Python-ll | 71092507b719e1532675f8bab489be3f7366c1de | 2658de214cc4a9dd68ad35d82202b59b3129e5af | refs/heads/master | 2022-11-09T18:11:55.449732 | 2020-06-30T06:57:11 | 2020-06-30T06:57:11 | 276,021,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,962 | py | # -*- coding: utf-8 -*-
"""
집단변수 기준 자료 분석
- subset 생성
- group 객체 생성
- 시각화
"""
import pandas as pd
# 1. dataset load
wine = pd.read_csv('C:/ITWILL/4_Python-II/data/winequality-both.csv')
wine.info() # type, quality
# 칼럼명 변경 : 공백 -> '_' 교체
wine.columns = wine.columns.str.replace(' ', '_')
win... | [
"noreply@github.com"
] | Elly-bang.noreply@github.com |
03ae5a477c8f067d8cb700f67401521690fd068d | eda9187adfd53c03f55207ad05d09d2d118baa4f | /algo/pca/pca_old.py | 264da244de8c2b727e5ca60a969c58a436681e39 | [] | no_license | HuiZhaozh/python_tutorials | 168761c9d21ad127a604512d7c6c6b38b4faa3c7 | bde4245741081656875bcba2e4e4fcb6b711a3d9 | refs/heads/master | 2023-07-07T20:36:20.137647 | 2020-04-24T07:18:25 | 2020-04-24T07:18:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,519 | py | # -*- coding:utf-8 -*-
# /usr/bin/python
'''
@Author: Yan Errol @Email:2681506@gmail.com
@Date: 2019-06-09 23:59
@Describe:
@Evn:
'''
from sklearn.decomposition import PCA
import matplotlib.pyplot as plt
import numpy as np
# A value we picked to always display the same results
# Feel free to change this to any... | [
"2681506@gmail.com"
] | 2681506@gmail.com |
c3029c19a6c3b697bb29649019096a2ef9384915 | 521efcd158f4c69a686ed1c63dd8e4b0b68cc011 | /airflow/operators/datetime.py | 47021c1730952719ea17c0bf05c4778c8d57ae5f | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | coutureai/RaWorkflowOrchestrator | 33fd8e253bfea2f9a82bb122ca79e8cf9dffb003 | cd3ea2579dff7bbab0d6235fcdeba2bb9edfc01f | refs/heads/main | 2022-10-01T06:24:18.560652 | 2021-12-29T04:52:56 | 2021-12-29T04:52:56 | 184,547,783 | 5 | 12 | Apache-2.0 | 2022-11-04T00:02:55 | 2019-05-02T08:38:38 | Python | UTF-8 | Python | false | false | 4,632 | 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... | [
"noreply@github.com"
] | coutureai.noreply@github.com |
734b6a332d6f0af9cd41c64282aff3d00bb8662f | 461bffdd97ba507b29f1fbf6f9af1800f0e241f6 | /pytext/metric_reporters/classification_metric_reporter.py | 1e3ced78d285a9bff886349e7b06f32ac39129b1 | [
"BSD-3-Clause"
] | permissive | Erica-Liu/pytext | d347e1327254bbe746c491fd8002bcc2e29d82a9 | 0a77e34e555750311ede54514c3c85b133b258f3 | refs/heads/master | 2020-06-16T02:49:21.589774 | 2019-07-05T18:25:52 | 2019-07-05T18:33:55 | 195,459,270 | 0 | 0 | NOASSERTION | 2019-07-05T19:38:34 | 2019-07-05T19:38:34 | null | UTF-8 | Python | false | false | 6,254 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from enum import Enum
from typing import List, Optional
from pytext.common.constants import Stage
from pytext.data import CommonMetadata
from pytext.metrics import (
LabelListPrediction,
LabelPrediction,
compute_... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
8f6c010d69c13e262cdd609efe3ac4b6009f38d3 | 6dae31f10260e39feae9d268e3ebe6d23146575a | /spm/bin_deep_surveys/run_stellarpop_miles_deep2_kroupa | fc11bb5287636c2c426dae12945d749d5984c5b1 | [
"CC0-1.0"
] | permissive | JohanComparat/pySU | e55eba92f0660e733468bce618595a03dc25a3d2 | 4169e11414be661dc0c01c774e64fb8ce6242825 | refs/heads/master | 2021-12-25T11:06:04.315554 | 2021-10-11T12:03:22 | 2021-10-11T12:03:22 | 44,340,565 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | #! /usr/bin/env python
import sys
from os.path import join
import os
import time
import numpy as np
import glob
import astropy.cosmology as co
cosmo = co.Planck13
import astropy.io.fits as fits
# for one galaxy spectrum
import GalaxySpectrumFIREFLY as gs
import StellarPopulationModel as spm
catalog=fits.open(join(os... | [
"johan.comparat@gmail.com"
] | johan.comparat@gmail.com | |
ff6f46df45a62d02b5d3eb10ff5fa6488d3aca62 | ea01ed735850bf61101b869b1df618d3c09c2aa3 | /python基础/network_programming/ftp_task/ftp/conf/settings.py | fe1097cb50a4b2bf3c4804ce40907ffed75bb71a | [] | no_license | liuzhipeng17/python-common | 867c49ac08719fabda371765d1f9e42f6dd289b9 | fb44da203d4e3a8304d9fe6205e60c71d3a620d8 | refs/heads/master | 2021-09-27T10:39:45.178135 | 2018-11-08T01:49:33 | 2018-11-08T01:49:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,296 | py | # -*- coding: utf-8 -*-
import os.path
_project_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
USER_DB_PATH = os.path.join(_project_path, 'db', 'userdb.ini')
ENCODING = 'utf-8'
MAX_BUFFER_SIZE = 1024
USER_BASE_PATH = os.path.join(_project_path, 'dir', 'home')
BASE_DIR = os.path.join(_project_... | [
"liucpliu@sina.cn"
] | liucpliu@sina.cn |
e1550eadd9cc69970c6b6044d39bd284e1baef25 | 474525154a4e1d48ef5242d1f44164d05399b145 | /spinoffs/oryx/oryx/experimental/nn/function.py | b9d20e453f86199f85885faeeef667bb5300a2ac | [
"Apache-2.0"
] | permissive | svshivapuja/probability | 9855737790f74a39169688fbfec9671deef804d9 | af7ccb22d972329633530c3b754ed1f49472f6a7 | refs/heads/main | 2023-07-17T04:14:53.703622 | 2021-08-30T17:47:06 | 2021-08-30T17:47:06 | 400,983,015 | 1 | 0 | Apache-2.0 | 2021-08-29T07:51:29 | 2021-08-29T07:51:29 | null | UTF-8 | Python | false | false | 1,863 | py | # Copyright 2020 The TensorFlow Probability Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
b55ecc78784e9edeb59f797fac7f6750b1ccd7e5 | 79c0358277a5f6ae231d89ee4476cb1facd00e50 | /extra/desktop/gnome/addons/gnome-color-manager/actions.py | c37eddcb3525032b734864d2c7b456d5bc8496bb | [] | no_license | mrust1/PisiLinux | a139dbc9f8d3d61ebec38d08f36dfa6eafff7107 | a2014b6912df50ad22da5b2f3d21bf01cbd8e192 | refs/heads/master | 2020-12-11T03:42:50.309869 | 2014-10-05T14:05:17 | 2014-10-05T14:05:17 | 24,826,519 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
... | [
"namso-01@hotmail.it"
] | namso-01@hotmail.it |
9d6a7d467f536f81f74bd7a97d1b3f132f5b0116 | 46ff8840ec7b3949c7f9c8d3262252b76761df3a | /fil_finder/filament.py | 6c8828ef6322203f9914544ddb6cd32e86aefcb6 | [
"MIT"
] | permissive | samdf96/FilFinder | cc087fbc78ff8db85dae4b8200d41a607dae00be | 340497399b782e855840e48b6a00f979babfad38 | refs/heads/master | 2023-09-04T11:56:20.672554 | 2019-10-25T22:11:38 | 2019-10-25T22:11:38 | 248,880,381 | 0 | 1 | MIT | 2020-03-21T00:45:53 | 2020-03-21T00:45:52 | null | UTF-8 | Python | false | false | 55,271 | py | # Licensed under an MIT open source license - see LICENSE
import numpy as np
import astropy.units as u
import networkx as nx
import warnings
import scipy.ndimage as nd
from astropy.nddata import extract_array
import astropy.modeling as mod
from astropy.modeling.models import Gaussian1D, Const1D
import sys
if sys.vers... | [
"koch.eric.w@gmail.com"
] | koch.eric.w@gmail.com |
656b9a478e48b1c9114cb46915cfa1113d2c3a9e | 651a296c8f45b5799781fd78a6b5329effe702a0 | /polpak/bell_values.py | 22a15e0802b2391a06bf53d6f330732079415995 | [] | no_license | pdhhiep/Computation_using_Python | 095d14370fe1a01a192d7e44fcc81a52655f652b | 407ed29fddc267950e9860b8bbd1e038f0387c97 | refs/heads/master | 2021-05-29T12:35:12.630232 | 2015-06-27T01:05:17 | 2015-06-27T01:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,625 | py | #!/usr/bin/env python
#
def bell_values ( n_data ):
#*****************************************************************************80
#
## BELL_VALUES returns some values of the Bell numbers.
#
# Discussion:
#
# The Bell number B(N) is the number of restricted growth functions on N.
#
# Note that the Stirling nu... | [
"siplukabir@gmail.com"
] | siplukabir@gmail.com |
e636e89dc9a0a67ae30601cbdb6cdcf9947fef12 | e4f2aba6cb66ac33c5fc439374e8ef39d0bb0e4a | /Week-2-format-string/Exercise-4.py | 7d00cc9ba3f0f3a488faa705797ac2907d073325 | [] | no_license | AChen24562/Python-QCC | 573f5b545239aa24b8047c74539ca6b3e997faa0 | 1da01b76e209eb9b0d08f0f205d635bc2a149dfd | refs/heads/master | 2023-02-06T23:18:41.850377 | 2020-12-28T12:59:29 | 2020-12-28T12:59:29 | 289,614,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | width = 17
height = 12.0
delimiter = "."
print(width//2, type(width//2))
print(width/2.0, type(width/2.0))
print(height/3, type(height/3))
# delimiter * 5 = '.....', str
print(delimiter * 5, type(delimiter * 5))
| [
"54772925+AChen24562@users.noreply.github.com"
] | 54772925+AChen24562@users.noreply.github.com |
307a62915d6949a0d0da070e0c930329d1b02074 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/compute/v20180601/get_log_analytic_export_request_rate_by_interval.py | 3eff60bb02dd42eaf3cbb6765a0555d41fb0c38f | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 3,956 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
ae3b13b10359ae08b10f0782054445f49475fc90 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/maxProduct_20200731212441.py | c7bb8018626c41179870e4caa9d8418f760ec486 | [] | 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 | 766 | py | import sys
# time complexity is o(n3 ) and space is o(1)
def maxThree(arr):
if len(arr) < 3:
return -1
maxProduct = -(sys.maxsize -1)
print(maxProduct)
n = len(arr)
for i in range(0,n-2):
for j in range(i+1,n-1):
for k in range(j+1,n):
print('i',arr[i],... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
1699d7d134745de10adce3f9435f31332bfe41fd | 635cb7fb75048f9de7b95b48d1f59de68f9b3368 | /R09/używanie_metaklas_do_kontrolowania_tworzenia_obiektów/example1.py | e76bc265bf850d4e8c8757ec5aaa9bafea6fbc7d | [] | no_license | anpadoma/python_receptury3 | 9e889ac503e48eb62160050eecfdc4a64072c184 | c761f2c36707785a8a70bdaccebd7533c76dee21 | refs/heads/master | 2021-01-22T14:38:34.718999 | 2014-01-31T22:09:44 | 2014-01-31T22:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # example1.py
#
# Bezpośrednie tworzenie obiektów jest niedozwolone
class NoInstances(type):
def __call__(self, *args, **kwargs):
raise TypeError("Nie można bezpośrednio tworzyć obiektu")
class Spam(metaclass=NoInstances):
@staticmethod
def grok(x):
print('Spam.grok')
if __name__ == '__ma... | [
"mtar@data.pl"
] | mtar@data.pl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.