blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f3cd108c4ee31b5498859b931cd6bc67e4d4b418 | e91f477713556f14b288b89ecce89754d4bd93f7 | /alpha-clipping/main.py | 8206fd8738006ed2f687e69b36b9dbbd85e3e019 | [
"MIT"
] | permissive | PepSalehi/algorithms | 715603ad16c320c0f1d32c544062b71b11814263 | 1c20f57185e6324aa840ccff98e69764b4213131 | refs/heads/master | 2020-12-28T23:24:39.542742 | 2019-02-01T05:17:56 | 2019-02-01T05:17:56 | 14,173,271 | 0 | 0 | MIT | 2019-02-01T05:17:57 | 2013-11-06T13:27:34 | Python | UTF-8 | Python | false | false | 5,195 | py | #!/usr/bin/env python
"""Example of the alpha clipping algorithm."""
def main():
"""Test some simple examples."""
pl = Point(0.0, 0.0)
pr = Point(10.0, 6.0)
p0 = Point(-3.0, 4.0)
p1 = Point(6.0, -2.0)
p3 = Point(-1.0, -1.0)
p4 = Point(4.0, 4.0)
p5 = Point(1.0, 100.0)
rectangle = R... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
bda61239f575bbe29c60da4f3ed441365a6650ae | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/ep/ipagingp.py | 24fe0ca702d011aa284b1fef708a92a52ea68b21 | [] | 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 | 7,228 | 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 |
f4715eb58fdf816dd11aecfe15e38cb0f67c343e | f2ed44ff6a8e4f163680f53bd34845e3cac3d91c | /summarize/data/dataset_readers/sds/abstractive.py | 017d53831a96c5b3503813c07cadd9b1ba44f658 | [
"Apache-2.0"
] | permissive | CogComp/summary-cloze | 1a2b76ba2e19a8ca0a98e1b95e036dc1dfba17ad | b38e3e8c7755903477fd92a4cff27125cbf5553d | refs/heads/master | 2020-09-01T17:09:10.312107 | 2019-11-05T20:43:47 | 2019-11-05T20:43:47 | 219,012,685 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,880 | py | from allennlp.common.file_utils import cached_path
from allennlp.data import DatasetReader, Instance
from allennlp.data.fields import MetadataField, TextField
from allennlp.data.token_indexers import SingleIdTokenIndexer, TokenIndexer
from overrides import overrides
from typing import Dict, Iterable, List, Optional
fr... | [
"danfdeutsch@gmail.com"
] | danfdeutsch@gmail.com |
2568d6aa8b661c8dae6a0f85ab197fa18cd31c95 | 7f66c9818b2a22e6dbfa832a6bb4f9f21fbd15da | /semester_2/graph/lab_03/main.py | 5147ef29678cf898ae10c2835d540e0b4f05cb83 | [] | no_license | caprapaul/assignments | cc3992833d4f23f74286c1800ac38dc2d9a874da | 206b049700d8a3e03b52e57960cd44f85c415fe8 | refs/heads/master | 2023-05-24T03:46:42.858147 | 2022-05-03T16:26:58 | 2022-05-03T16:26:58 | 248,552,522 | 0 | 0 | null | 2023-05-09T01:49:04 | 2020-03-19T16:31:37 | C | UTF-8 | Python | false | false | 1,744 | py | import random
from directed_graph import DirectedGraph
from ui import UI
from service import Service
def random_graph(graph, vertex_count, edge_count):
current_edge_count = 0
for i in range(vertex_count):
graph.add_vertex(i)
while current_edge_count < edge_count:
from_vertex = random.ran... | [
"c.paulica@gmail.com"
] | c.paulica@gmail.com |
c9c8afe833e1dc94693f45f0a75d7f2677ea1bf0 | aa73e301f658b45a9674df4b619b288945dd0669 | /branches/sal4_new_test_framework/examples/lts2graph.py | a0436c68a964f4d2e7727d7f517de6f605cb99bb | [
"MIT"
] | permissive | svn2github/python-graph2 | e1c37f77cc0a27ac9099208876c63693bffbc929 | f19039d7f3fc1f04977c3f1d1d6128e8545ebef1 | refs/heads/master | 2020-04-30T04:11:38.475209 | 2013-04-19T01:06:14 | 2013-04-19T01:06:14 | 9,714,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,623 | py | #!/usr/bin/env python
# Copyright (c) Pedro Matiello <pmatiello@gmail.com>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to... | [
"salimfadhley@70df0079-b534-0410-988b-a5721c0f2d16"
] | salimfadhley@70df0079-b534-0410-988b-a5721c0f2d16 |
037de8db65e09ddb945a0032a8f52a6e11056bfc | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayOpenBpaasContractQueryModel.py | aafa6e6f87c71ca0f87f9405737db7a130bcbd87 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,452 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenBpaasContractQueryModel(object):
def __init__(self):
self._bpaas_app_id = None
self._service_id = None
@property
def bpaas_app_id(self):
return self._bp... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
c4e8e69cf70a352f0113b54e9d57008ae864bf9b | 1d892928c70ee9ddf66f2a37a8e083d2632c6e38 | /smoketests/__init__.py | dbc926f1e38eba7021e4aac46cf302bf4a47fb84 | [
"Apache-2.0"
] | permissive | usc-isi/essex-baremetal-support | 74196c3f1332ee3cdeba9c263faff0ac0567d3cf | a77daf8ef56cf41e38de36621eda25ed3f180156 | refs/heads/master | 2021-05-19T03:12:11.929550 | 2020-07-24T14:15:26 | 2020-07-24T14:15:26 | 4,702,421 | 0 | 1 | Apache-2.0 | 2020-07-24T14:15:27 | 2012-06-18T15:19:41 | null | UTF-8 | Python | false | false | 1,262 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010 United States Government as represented by the
# Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compli... | [
"dkang@isi.edu"
] | dkang@isi.edu |
53a41e841c6260418bd1e7ae9a20c99f0b338dbc | 50008b3b7fb7e14f793e92f5b27bf302112a3cb4 | /recipes/Python/578164_Find_line_text_another/recipe-578164.py | fb286a488650b18fb2f8b998295941577af9201d | [
"MIT"
] | permissive | betty29/code-1 | db56807e19ac9cfe711b41d475a322c168cfdca6 | d097ca0ad6a6aee2180d32dce6a3322621f655fd | refs/heads/master | 2023-03-14T08:15:47.492844 | 2021-02-24T15:39:59 | 2021-02-24T15:39:59 | 341,878,663 | 0 | 0 | MIT | 2021-02-24T15:40:00 | 2021-02-24T11:31:15 | Python | UTF-8 | Python | false | false | 975 | py | import sys
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("file1", help="First file whose lines you want to check")
parser.add_argument("file2", help="Second file, in which you want to search for lines from first file")
args = parser.parse_args()
file1 = open(args.file1)
file2 = open(args.file... | [
"betty@qburst.com"
] | betty@qburst.com |
23dedd75381b9f1fe064efe634f7f8771b9ed2c0 | 565ae8473c545c43341f5511b9633e97f0e4da8b | /course2_python_fundamentals/10-Exams/1-MID-EXAM/PREPARATION/other-exams-for-exam-preparation/Mid_Exam_10_dec_2019/_2_Archery_Tournament.py | c801675c69580bc08321f897a5c16914079ec32a | [] | no_license | andriiburka/Web-Development-with-Python | 3934c1a3945bd983ab39d38b97f1af16fe784207 | b6927653a2c6a9cc10a8768395233e347624c49a | refs/heads/master | 2022-11-21T21:42:04.898254 | 2020-07-29T22:59:56 | 2020-07-29T22:59:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | integers = list(map(int, input().split('|')))
second_integers = []
while True:
judge_command = list(map(str, input().split('@')))
if judge_command[0] == 'Game over':
break
else:
index = int(judge_command[1])
length = int(judge_command[2])
if judge_command[0] == 'Shoot Left'... | [
"andriiburka@gmail.com"
] | andriiburka@gmail.com |
7c5d43f43b42b60f2b4114b30bbe086c274ce47d | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/messenger/proto/shared_errors.py | 967a966ccf6f0da8b65759b6db45d2cedde60407 | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 4,826 | py | # 2015.11.10 21:30:27 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/messenger/proto/shared_errors.py
import BigWorld
from gui.Scaleform.locale.MESSENGER import MESSENGER as I18N_MESSENGER
from helpers import i18n
from messenger.m_constants import CLIENT_ERROR_NAMES, CLIENT_ACTION_NAMES, CLIENT_ERROR_I... | [
"info@webium.sk"
] | info@webium.sk |
b14a6a992a76e45e9bff3f37e5aee488de432395 | 66b504cac41d9e02ef605613ef86911e647b7584 | /mergify_engine/tests/functional/actions/test_request_reviews.py | 5aa49cf05b92501795632c8df178d32ab52849e3 | [
"Apache-2.0"
] | permissive | Nytelife26/mergify-engine | 894217f88b93ed48df6f8700cf955826dad3173a | 98c2119e26021a39c7985baccf4f3e35500e7ab2 | refs/heads/master | 2023-04-04T09:48:06.904066 | 2021-04-08T18:29:40 | 2021-04-09T16:21:04 | 356,945,975 | 0 | 0 | Apache-2.0 | 2021-04-11T18:21:27 | 2021-04-11T18:21:27 | null | UTF-8 | Python | false | false | 6,561 | py | # -*- encoding: utf-8 -*-
#
# Copyright © 2018–2020 Mergify SAS
#
# 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 appl... | [
"37929162+mergify[bot]@users.noreply.github.com"
] | 37929162+mergify[bot]@users.noreply.github.com |
194e207bc958493908fac766954695e21e84316a | 7b65a38aca6fc4fb6f39bc5de1e0f352f3ab7e25 | /s9/9.1_espacios.py | b37d38a4121ed466d8d9f17a99e7eb815f8d0ca6 | [] | no_license | camohe90/-mision_tic_G1 | 96b10e4ae14278cf53f0a87638643112e2f81709 | f083c8a0a133b9be1a8d6e8f61cde46cd1aa75e5 | refs/heads/master | 2023-05-26T03:53:25.660868 | 2021-06-09T12:44:48 | 2021-06-09T12:44:48 | 371,374,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | # Usando 4 espacios
def es_par(num):
if num % 2 == 0:
print("par")
return True
else:
return False
| [
"camohe90@gmail.com"
] | camohe90@gmail.com |
dc227e7b0d70151dd193d560dc8cd7da9835d83e | 41d9b92ef2a74a4ba05d27ffbe3beb87884c4ce7 | /math/0x03-probability/normal.py | 5db0c14284738923b0e7d0984afd2984ea74f577 | [] | no_license | JosephK89/holbertonschool-machine_learning | 3f96d886c61d8de99a23e4348fb045b9c930740e | aa5c500f7d8ebeec951f9ab5ec017cae64007c25 | refs/heads/main | 2023-08-14T18:42:53.481354 | 2021-10-10T19:53:40 | 2021-10-10T19:53:40 | 386,248,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | #!/usr/bin/env python3
"""normal distribution module"""
class Normal:
""""Noraml class"""
def __init__(self, data=None, mean=0., stddev=1.):
"""initialization"""
if data is None:
if stddev <= 0:
raise ValueError("stddev must be a positive value")
else:
... | [
"josephkamel262@gmail.com"
] | josephkamel262@gmail.com |
a1f3baae2ae7d957d069289b1f36d2f680d3f886 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=12/params.py | 106ee852332fe69aea38aeb0a6597ada33dc539f | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.525095',
'max_util': '2.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'GSN-EDF',
'trial': 12,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
8127981a06daf63dd10904afe21974e27bd20512 | 580905861e3bdd1990cde76ba2b057c898e6f088 | /Django_Stuff/class_based_views/basic_app/urls.py | 8096ed097b0ecd3ea89f8ca6fa5ecf60bc74a0e5 | [
"MIT"
] | permissive | muhammad-mamdouh/Django_Projects | 14eddfdc25aa4be43c5d35e30c5efb146e255101 | 1f31e12aefb36b33474256db40a2c551882f445e | refs/heads/master | 2022-12-10T20:02:38.918760 | 2019-12-14T21:24:08 | 2019-12-14T21:24:08 | 198,602,869 | 0 | 1 | null | 2022-11-22T04:13:34 | 2019-07-24T09:28:59 | Python | UTF-8 | Python | false | false | 487 | py | from django.urls import path
from . import views
app_name = 'basic_app'
urlpatterns = [
path('', views.SchoolListView.as_view(), name='schools_list'),
path('<int:pk>/', views.SchoolDetailView.as_view(), name='school_details'),
path('create/', views.SchoolCreateView.as_view(), name='school_create'),
pat... | [
"mahammad.mamdouh@gmail.com"
] | mahammad.mamdouh@gmail.com |
97539f5418cf3928aff3692de719426093e91949 | aa4901a8e75bb31e27a5088ec6e53494e19ea48e | /main/api/permissions.py | 594a2774c732f6e32c3c5f783d4ad4017cca2407 | [] | no_license | ByAvatarOff/SameTinder | e65cbbcc25a383e10c602de235e6f38bd5917f98 | 3e89c572c2edb78286f136f87cc3ff4846bd2059 | refs/heads/master | 2023-05-27T20:07:22.188835 | 2021-06-09T10:42:32 | 2021-06-09T10:42:32 | 335,273,909 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from rest_framework.permissions import BasePermission, SAFE_METHODS
class IsOwnerProfile(BasePermission):
def has_object_permission(self, request, view, obj):
print(obj, view, obj.user.username)
print(obj.user != request.user)
return obj.user != request.user | [
"tsp7439@gmail.com"
] | tsp7439@gmail.com |
959059b948a2b693180c69490a916f6139a44483 | f95d2646f8428cceed98681f8ed2407d4f044941 | /day40/test_lock.py | daad077e967e8ed2e3bf02e29c495f046ca8dacf | [] | no_license | q2806060/python-note | 014e1458dcfa896f2749c7ebce68b2bbe31a3bf8 | fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983 | refs/heads/master | 2020-08-18T01:12:31.227654 | 2019-10-17T07:40:40 | 2019-10-17T07:40:40 | 215,731,114 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | from threading import Lock, Thread
m = 0
n = 0
def f1():
while True:
with lock:
if m != n:
print('m =', m, 'n =', n)
if __name__ == '__main__':
lock = Lock()
t = Thread(target=f1)
t.start()
while True:
with lock:
m += 1
n += 1
... | [
"C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn"
] | C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn |
a28e70a40e954a2b65089db852c5a4ebf621fa2c | 0b932d446d88013fadb8c4e0dd3ca3cc4a1a5de3 | /localizacion/inte_nro_control_secuencial/__manifest__.py | 3fe660f1f411281f17218061b50905c915108f7f | [] | no_license | grudiver/biumak | cd8e7477bba3389b2144fa6d35cd89d2eaf0210f | 65705737f16da087b6cb01f725236e7bc9c59c86 | refs/heads/master | 2022-04-11T13:17:33.347975 | 2020-03-24T17:55:24 | 2020-03-24T17:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | # coding: utf-8
###########################################################################
##############################################################################
{
"name": "Números de control SENIAT automaticos TYSAMNCA",
"version": "1.0",
"author": "Tysamnca",
"license": "AGPL-3",
"catego... | [
"soporte.innova2129@gmail.com"
] | soporte.innova2129@gmail.com |
07a6a238b645d7e22766752b4f28aa6af2f7adf2 | 52243c4a05a296e7c042663b5942faa47eb66aee | /common_nlp/historico_processo.py | 0ae114414b1095471ef1bb0480d7dbc6e4ac3f52 | [
"MIT"
] | permissive | joaoppadua/Pesquisas | fbe0311b59340c041732d6d1f7f4862fa6c53198 | 808d8b0ef9e432e05a4f284ce18778ed8b3acd96 | refs/heads/master | 2023-07-16T02:50:30.846205 | 2021-09-03T13:34:54 | 2021-09-03T13:34:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,954 | py | from parserTextoJuridico import parserTextoJuridico
import pandas as pd, json, arrow
class historico_processo(parserTextoJuridico):
"""Classe para obtenção de histórico do processo"""
def __init__(self):
super().__init__()
self.batch_publicacoes = 1000
self.historico = None
se... | [
"danilopcarlotti@gmail.com"
] | danilopcarlotti@gmail.com |
d48c7d8e186158688fa8c2d9fb45afdee4e40eee | d28bd8a27dd33e8140f2dc48ae169b8c0fe46147 | /setup.py | 301b47df2fa164da557c51ec1ff11a2069a127f4 | [] | no_license | marians/agssearch | b622de07b154ffdc688d477eb8ada66b516f8a64 | 3cabcaffda87347860072397a8e21773f217fad5 | refs/heads/master | 2016-09-05T11:30:19.978140 | 2014-01-26T12:45:22 | 2014-01-26T12:45:22 | 9,577,467 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | # encoding: utf-8
from setuptools import setup
try:
import pypandoc
description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError):
description = ''
setup(name='agssearch',
version='0.4',
description='Python client for the German Destatis Gemeindeverzeichnis',
long_descripti... | [
"marian@sendung.de"
] | marian@sendung.de |
a650ff2e726fa3c8a71871ebc3fe44fa460c67d6 | 077a17b286bdd6c427c325f196eb6e16b30c257e | /08_FmtString-unit-tests/10_32/verified-exploit-FsGotShellcode.py | 267c686b65001ace4568decd888bfabf4113bbdb | [] | no_license | KurSh/remenissions_test | 626daf6e923459b44b82521aa4cb944aad0dbced | 9dec8085b62a446f7562adfeccf70f8bfcdbb738 | refs/heads/master | 2023-07-08T20:25:04.823318 | 2020-10-05T06:45:16 | 2020-10-05T06:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # +------------------------------------------------+
# | Atack: Format String GOT Shellcode |
# +------------------------------------------------+
#
# For more info checkout: https://github.com/guyinatuxedo/nightmare/tree/master/modules/10-fmt_strings
from pwn import *
import sf
target = process("./chall... | [
"ryancmeinke@gmail.com"
] | ryancmeinke@gmail.com |
93366da9c13ccb209b3b624ab0008ae69ab264fb | 80810054516ddc3fd93e916de4bf7e3e07d871b0 | /1-books/book2_TensorFlow实战Google深度学习框架(第二版)/practice/LSTM_test1.py | cbed959b70b74bac7a7f453e2de3150c42bb2b24 | [] | no_license | TinyHandsome/BookStudy | df9ca668f2dd1b51b1e364c22bc531394a03eeae | 69c9018bb70893f74a44e4df9f3d3e39467de3f6 | refs/heads/master | 2023-09-04T03:06:43.918259 | 2023-09-01T04:27:01 | 2023-09-01T04:27:01 | 184,217,837 | 18 | 17 | null | null | null | null | UTF-8 | Python | false | false | 2,216 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# coding=utf-8
"""
@author: Li Tian
@contact: 694317828@qq.com
@software: pycharm
@file: LSTM_test1.py
@time: 2018/12/23 13:37
@desc: LSTM测试1
"""
import tensorflow as tf
# 定义一个LSTM结构。再Tensorflow中通过一句简单的命令就可以实现一个完整的LSTM结构。
# LSTM中使用的变量也会在该函数中自动被声明
lstm = tf.nn.rnn_cell.B... | [
"694317828@qq.com"
] | 694317828@qq.com |
25a74194ca6e00f498d76dc01fac448dabd6dcdc | 5d28c38dfdd185875ba0edaf77281e684c81da0c | /tests/projects/backend/test_local.py | 6d2c431abc4dfb26ae7324c1182734a9f5c5ff01 | [
"Apache-2.0"
] | permissive | imrehg/mlflow | 3a68acc1730b3ee6326c1366760d6ddc7e66099c | 5ddfe9a1b48e065540094d83125040d3273c48fa | refs/heads/master | 2022-09-24T05:39:02.767657 | 2022-09-20T00:14:07 | 2022-09-20T00:14:07 | 244,945,486 | 1 | 0 | Apache-2.0 | 2020-03-04T16:11:54 | 2020-03-04T16:11:53 | null | UTF-8 | Python | false | false | 3,187 | py | import os
from unittest import mock
from mlflow.projects.backend.local import _get_docker_artifact_storage_cmd_and_envs
def test_docker_s3_artifact_cmd_and_envs_from_env():
mock_env = {
"AWS_SECRET_ACCESS_KEY": "mock_secret",
"AWS_ACCESS_KEY_ID": "mock_access_key",
"MLFLOW_S3_ENDPOINT_URL... | [
"noreply@github.com"
] | imrehg.noreply@github.com |
4aa8d69e3fc68379c480897545f8d19475acb2d8 | febeffe6ab6aaa33e3a92e2dbbd75783a4e32606 | /ssseg/cfgs/ce2p/base_cfg.py | 53ab052f882aa2949da132381458f39250509ae2 | [
"MIT"
] | permissive | Junjun2016/sssegmentation | 7bbc5d53abee1e0cc88d5e989e4cff5760ffcd09 | bf7281b369e8d7fc2f8986caaeec3ec38a30c313 | refs/heads/main | 2023-02-04T22:09:13.921774 | 2020-12-23T06:28:56 | 2020-12-23T06:28:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,668 | py | '''base config for ce2p'''
# config for dataset
DATASET_CFG = {
'train': {
'type': '',
'set': 'train',
'rootdir': '',
'aug_opts': [('Resize', {'output_size': (2048, 512), 'keep_ratio': True, 'scale_range': (0.5, 2.0)}),
('RandomCrop', {'crop_size': (512, 512), 'o... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
05d4e7398b6baf2c1f7de7b84f7a6e0e81cb0afb | d8fa0ed226e6dbc0f607961c8b711362942b120a | /maskrcnn_benchmark/modeling/roi_heads/pred_head/roi_pred_predictors.py | 61f4ef46ed49d5168e57a75390aabcbf51111053 | [] | no_license | ltnghia/video-maskrcnn | 70d003f038f82156ec9a8dca4ce1b8ea1190792c | b0bc8eb8b43a8b45335625525eba620b389ba591 | refs/heads/master | 2021-06-19T11:13:29.058747 | 2021-04-01T02:19:07 | 2021-04-01T02:19:07 | 199,971,172 | 8 | 4 | null | null | null | null | UTF-8 | Python | false | false | 3,052 | py | from maskrcnn_benchmark.modeling import registry
from torch import nn
import math
import torch
from maskrcnn_benchmark.modeling.make_layers import make_fc
@registry.ROI_PRED_PREDICTOR.register("FastRCNNPredictor")
class FastRCNNPredictor(nn.Module):
def __init__(self, cfg, in_channels):
super(FastRCNNPred... | [
"trungnghiadk@gmail.com"
] | trungnghiadk@gmail.com |
fdc61ea92d64ff7e6860e3bbbd86c25e0cf2f2b3 | 44e85fa836a4099478a1c17f920cbd9f8b862ccb | /pos_language_model/morph_analyzer_single_counts_main.py | 57721f417c8fff33874a256f2f433158b4fa7c48 | [] | no_license | yukitomo/jp_robust_morphame_analysis | 7da9c4fdb3a743704d2e5f0acfb1a177c031230e | 6ca8b22a08003da7ce32201f9fe7968b92889643 | refs/heads/master | 2021-01-25T07:28:47.093365 | 2015-04-20T23:51:46 | 2015-04-20T23:51:46 | 27,806,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,823 | py | #!/usr/bin/python
#-*-coding:utf-8-*-
#2015-01-31 Yuki Tomo
import pickle
import math
import jctconv
import string
import sys
from collections import defaultdict
from make_dict_obj import Morph
from morph_analizer_counts import *
def main():
"""
posid_unigram_freq : 品詞の頻度
posid_bigram_freq : 品詞バイグラムの頻度
posid_word... | [
"over.the.tr0ouble@gmail.com"
] | over.the.tr0ouble@gmail.com |
91e40c70561c19a95bdf6e85872cc990ed29743d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02762/s492187443.py | d50e3beeefcb45621883846f22b51342ddd97ea9 | [] | 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 | 1,422 | py | import collections
class UnionFind:
def __init__(self, N):
self.parent = [i for i in range(N)]
self.rank = [0]*N
self.count = 0
def root(self, a):
if self.parent[a]==a:
return a
else:
self.parent[a]=self.root(self.parent[a])
return self... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2c36910a906c4c9ba81c09a28d3c666e18ad3e0c | b22e40b12e198af858dbf71cdb85f459314c0e37 | /image_utils.py | c721a20228730f3744ad52aa2f9ebe1448380216 | [] | no_license | gauenk/python_modules | 8b40626b566e4fdd7db6fc830255ed3daa34b039 | 632d4813a8e182c74b950d98f3f5b98732d8d6ad | refs/heads/master | 2020-12-15T16:34:42.542568 | 2020-06-09T15:47:43 | 2020-06-09T15:47:43 | 235,180,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | import numpy as np
import cv2
def overflowOnly(coordinate,rows,cols):
if 0 > coordinate[0]: coordinate[0] = np.abs(coordinate[0])
elif rows < coordinate[0]: coordinate[0] = rows - coordinate[0]
if 0 > coordinate[1]: coordinate[1] = np.abs(coordinate[1])
elif cols < coordinate[1]: coordinate[1] = cols -... | [
"kent.gauen@gmail.com"
] | kent.gauen@gmail.com |
afb8c441118da9ce0c7ceb12fc640da170000a66 | d9e8b7d5c468b38cdf18cece9dff12ad1188a71b | /DiscussionForum/Postapp/views.py | 7cf20fbdb26a0e0028127630d851e46d326f9dac | [] | no_license | Ruchika-Munde/Django_Task | f14e0497a4f8045a68dbe58bbd772abf606369d3 | 7fa549842a544527b9f78cbfcf52c26dde31463c | refs/heads/master | 2022-12-16T17:53:12.577323 | 2020-09-09T07:34:43 | 2020-09-09T07:34:43 | 294,036,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,502 | py | from django.shortcuts import render,redirect
from Postapp.forms import Addpostform
from Postapp.models import Post
from django.views import View
from Userapp.models import User
from Commentapp.forms import commentform
from Postapp.decorator import user_login
# Create your views here.
#for add post
class base(View):
... | [
"ruchamunde@gmail.com"
] | ruchamunde@gmail.com |
878c2b75897dabb57c8c8b8f229f2b4c3c2fda3e | 7823d31688879b2d4dcfd2e3c11fb2c862f35a23 | /AlexNet/cifar/__init__.py | 0e34a0daf85c1391567619a425f9e1606cb30503 | [] | no_license | FMsunyh/dlfive | 7637631f54520673e4ec417b3c02b5334ecdf026 | ffae48aac5ece4de5ff9afccc69b093a72e09637 | refs/heads/master | 2021-09-19T05:59:51.040214 | 2018-07-24T06:29:40 | 2018-07-24T06:29:40 | 108,929,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 11/30/2017 10:43 AM
# @Author : sunyonghai
# @File : __init__.py
# @Software: BG_AI
# ========================================================= | [
"fmsunyh@gmail.com"
] | fmsunyh@gmail.com |
497130a66a1d5cb4e762cfd18224838b0a235273 | 3dc647cd07a7361ed401e40d2b7cce8c826c8f6c | /Lib/distutils/command/install_headers.py | 9bb0b18dc0d809dbc03d9ca355818b3bb0af573b | [
"CC-BY-4.0",
"MIT",
"Python-2.0"
] | permissive | RustPython/RustPython | 5ddce4a9848b9de8c041ffd2634f83c0105d3f39 | b864e5da1f18897fc884180b7093df5aa170024f | refs/heads/main | 2023-09-04T12:38:29.458699 | 2023-09-03T12:33:42 | 2023-09-03T12:33:42 | 135,201,145 | 15,815 | 1,302 | MIT | 2023-09-14T08:11:45 | 2018-05-28T19:27:01 | Rust | UTF-8 | Python | false | false | 1,298 | py | """distutils.command.install_headers
Implements the Distutils 'install_headers' command, to install C/C++ header
files to the Python include directory."""
from distutils.core import Command
# XXX force is never used
class install_headers(Command):
description = "install C/C++ header files"
user_options = ... | [
"33094578+coolreader18@users.noreply.github.com"
] | 33094578+coolreader18@users.noreply.github.com |
5f51abe52378a636ea41db4efa51780a173e9ad5 | 6b265b404d74b09e1b1e3710e8ea872cd50f4263 | /Python/CodeTesting/Asserts/fac.py | 7572aa64bddf2acdd30e38c0485814ca7db55178 | [
"CC-BY-4.0"
] | permissive | gjbex/training-material | cdc189469ae2c7d43784ecdcb4bcca10ecbc21ae | e748466a2af9f3388a8b0ed091aa061dbfc752d6 | refs/heads/master | 2023-08-17T11:02:27.322865 | 2023-04-27T14:42:55 | 2023-04-27T14:42:55 | 18,587,808 | 130 | 60 | CC-BY-4.0 | 2023-08-03T07:07:25 | 2014-04-09T06:35:58 | Jupyter Notebook | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/env python
def fac(n):
'''compute the factorial of given number'''
assert type(n) == int, 'argument must be integer'
assert n >= 0, 'argument must be positive'
if n > 1:
return n*fac(n - 1)
else:
return 1
if __name__ == '__main__':
for i in range(5):
print('{... | [
"geertjan.bex@uhasselt.be"
] | geertjan.bex@uhasselt.be |
90e80b34f6a4d3649a476769aa02209fa9c279ee | 2af6a5c2d33e2046a1d25ae9dd66d349d3833940 | /res/scripts/client/gui/shared/gui_items/dossier/achievements/strategicoperationsachievement.py | e881003ec46abf209367c8d18f410da809eed7fb | [] | no_license | webiumsk/WOT-0.9.12-CT | e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2 | 2506e34bd6634ad500b6501f4ed4f04af3f43fa0 | refs/heads/master | 2021-01-10T01:38:38.080814 | 2015-11-11T00:08:04 | 2015-11-11T00:08:04 | 45,803,240 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,075 | py | # 2015.11.10 21:29:19 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/shared/gui_items/dossier/achievements/StrategicOperationsAchievement.py
from abstract import ClassProgressAchievement
from dossiers2.ui.achievements import ACHIEVEMENT_BLOCK as _AB
class StrategicOperationsAchievement(ClassProgre... | [
"info@webium.sk"
] | info@webium.sk |
bfb73d4604aeb01237151f4498cf682dc33c7707 | 4ba3a17f53985700de7b9e2c6ef9b9b5f1ad2e8d | /vgg.py | 3557e2cbdec843382f81dba825f678e3eaf7ef5f | [] | no_license | brjathu/style_kernel | fcba958221ba203ad87c8c855726f8d43f7fdd1e | f9c285f38b54132c957bb1543f434a7d2ae3e178 | refs/heads/master | 2021-07-25T19:37:25.174814 | 2017-11-08T02:07:44 | 2017-11-08T02:07:44 | 103,022,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,153 | py | import tensorflow as tf
import numpy as np
import scipy.io
VGG19_LAYERS = (
'conv1_1', 'relu1_1', 'conv1_2', 'relu1_2', 'pool1',
'conv2_1', 'relu2_1', 'conv2_2', 'relu2_2', 'pool2',
'conv3_1', 'relu3_1', 'conv3_2', 'relu3_2', 'conv3_3',
'relu3_3', 'conv3_4', 'relu3_4', 'pool3',
'conv4_1', 'relu4... | [
"brjathu@gmail.com"
] | brjathu@gmail.com |
08d9b6d4b9d5aeff1c5b501d48c1cfbe84d1d66f | 52542d7f93a97db5433293781e0b514f5330a127 | /USV_V1/sensor/src/test_ws/sensor_dep/pwm_func.py | 7970ffc38fabc807d658c570608d343aed3e3cb9 | [
"Apache-2.0"
] | permissive | supcon-nzic/USV | 437002ade39a8d4c70930c56127943a707152b83 | 52c97759f97f3222ca5465a5745842cfeb7f26a1 | refs/heads/master | 2022-11-20T11:38:11.783570 | 2020-07-28T01:09:37 | 2020-07-28T01:09:37 | 279,798,518 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,707 | py | # -*- coding: utf-8 -*-
import string
def pwm_export(pwm_num):
pwm_num = str(pwm_num)
pwm = '/sys/class/pwm/pwmchip/export'
pwm_dir = pwm[:22] + pwm_num + pwm[22:]
file_export = open(pwm_dir,'w')
file_export.write('0')
file_export.close
def pwm_unexport(pwm_num):
pwm_num = str(pwm_num)
pwm = '/sys/class/pwm/... | [
"qiuyunpeng@nz-ic.com"
] | qiuyunpeng@nz-ic.com |
d6915f891d241df17076fd4aac05f43ece785f6d | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/10/usersdata/73/23003/submittedfiles/testes.py | 946f242d6568fd56d5fe56ac4d96a251e4c428f5 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | # -*- coding: utf-8 -*-
from __future__ import division
qs=input('quantidade de salas:')
for i in range (0,qs,1):
sala=[]
sala.append(input('quantidade de vidas da sala:'))
print sala
pe=input('porta de entrada:')
ps=input('porta de saída:')
soma=0
for i in range(sala[pe],sala[ps]+1,1):
a=sala[pe+... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
522e260b84afd3a41e0c49124e442dacd6830b89 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_055/ch147_2020_04_12_04_04_45_284109.py | 49542792d1c1e1124502b5db7a53e21506d70c53 | [] | 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 | 274 | py | def mais_frequente(lista_palavras):
contagem = {}
for palavra in lista_palavras:
if palavra not in contagem:
contagem[palavra] = 1
else:
contagem[palavra] += 1
max_value = index(max(contagem.values()))
return max_value | [
"you@example.com"
] | you@example.com |
d59bcbbad39d74bcd294b6117bc8ca2b88bc83fe | 4f0385a90230c0fe808e8672bb5b8abcceb43783 | /LNH/day4-teacher/5 面向过程编程.py | 77d4e49cfd933d7a8fd11f330b2d27488f5bcdea | [] | no_license | lincappu/pycharmlearningproject | 4084dab7adde01db9fa82a12769a67e8b26b3382 | b501523e417b61373688ba12f11b384166baf489 | refs/heads/master | 2023-07-10T05:21:15.163393 | 2023-06-29T14:02:35 | 2023-06-29T14:02:35 | 113,925,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | '''
强调:面向过程编程绝对不是用函数编程那么简单
面向过程的编程思想:核心是过程二字,过程即解决问题的步骤,即先干什么再干什么
基于该思想去编写程序就好比在设计一条流水线,是一种机械式的编程思想
优点:复杂的问题流程化,进而简单化
缺点:可扩展性差
'''
# import os
# g=os.walk(r'C:\Users\Administrator\PycharmProjects\19期\day4\a')
# for dirname,_,files in g:
# for file in files:
# abs_file_path=r'%s\%s' %(dirname,file)
# ... | [
"lincappu@163.com"
] | lincappu@163.com |
38ffb9f0f778b5e8343554b367df1434ad7e94bf | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/dogma/eventCounters.py | abbf36a0815d4c95154b8703ffd3d80fd198ea7f | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 1,191 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\dogma\eventCounters.py
from contextlib import contextmanager
class EventCount(object):
def __init__(self):
self.__eventCount = {}
@contextmanager
def Event(self, key):
self._AddEventCoun... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
f989dc9c65e8f3ba691c10722a36b9be7e818a0a | e7bba3dd662bf2778c36a406f72ee93b2ea05e11 | /CardinalityEstimationTestbed/Overall/quicksel/test/python/test_include.py | 4f19223fb4f8307520b7d4b1f74308bb4c36e7ba | [
"Apache-2.0"
] | permissive | TsinghuaDatabaseGroup/AI4DBCode | 37e45b176bc94e77fe250ea45f0ad7b9054c7f11 | a8989bfadcf551ee1dee2aec57ef6b2709c9f85d | refs/heads/master | 2023-07-07T05:42:15.590000 | 2023-07-04T01:04:15 | 2023-07-04T01:04:15 | 217,175,047 | 53 | 35 | null | 2023-06-20T13:00:17 | 2019-10-24T00:03:14 | Scala | UTF-8 | Python | false | false | 688 | py | import sys
sys.path.append('../../src/python')
# isomer = imp.load_source('isomer', '../../src/python/isomer.py')
# import imp
import pprint
from quickSel import isomer
pp = pprint.PrettyPrinter(indent=2)
def Node(query):
return isomer.STHoles2d(query.boundary, [query])
def Query(boundary, freq... | [
"zhouxuan19@mails.tsinghua.edu.cn"
] | zhouxuan19@mails.tsinghua.edu.cn |
a35bae9f502d173b1fff236cf84aff4322441cb5 | a2211f0ef8297a77200a0b2eec8ba3476989b7e6 | /itcast/02_python核心编程/03_网络编程/day03_网络通信过程/demo16_网络通信过程中的MAC地址_IP地址.py | 25e25fb3f3e669b8dbe1ab7815b5d62ae64cb664 | [] | no_license | qq1197977022/learnPython | f720ecffd2a70044f1644f3527f4c29692eb2233 | ba294b8fa930f784304771be451d7b5981b794f3 | refs/heads/master | 2020-03-25T09:23:12.407510 | 2018-09-16T00:41:56 | 2018-09-16T00:42:00 | 143,663,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # 一.通信过程中
# 1.源/目的MAC地址在两个设备间变化
# 2.源/目的IP地址不变
# 二.总结
# 1.MAC地址: 唯一标识数据转发的实际网卡地址
# 2.IP地址: 唯一标识逻辑地址
# 3.网络掩码: 协助确认网络号
# 4.默认网关: 目的IP不在同一网段时, 转发给默认网关
# 5.端口: 唯一标识非同一台设备上的应用
# 6.PED: 唯一标识同一台设备上的应用
| [
"1197977022@qq.com"
] | 1197977022@qq.com |
169f65f33b732b562e5b9cf615068dbd751fd4ed | f39c2c500873180d953ab9a7b22a4f6df95fb1c3 | /Bloomberg/Design Underground System.py | 314a6c31b7b94a5f58dc9fbfad3485ba36f8756c | [] | no_license | Jason003/interview | 458516f671d7da0d3585f89b098c5370edcd9f04 | e153306b85c3687b23a332812a0885d25ecce904 | refs/heads/master | 2021-07-15T15:28:07.175276 | 2021-02-05T03:21:59 | 2021-02-05T03:21:59 | 224,898,150 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | '''
经典地铁题,原题解法就不说了,地里也有很多资源。 主要讲下follow up。
国女问了哪些edge case可以导致error, 我说了两种,一是check out的时候id在map中不存在,
二是check out的时候id对应的时间t大于之前之前check in时的时间。国女表示满意,
又问了运行过程中可能出现哪些情况导致地铁出问题。我说可能有些check in了但是把地铁卡弄丢了没有checkout,
id在memory中积压了很多最后导致memory不够。 解决方法是定期检查已经存储的数据,
如果start time间隔很久的就可以直接remove。
三哥也问了一个follow up,因为我在check out的m... | [
"jiefanli97@gmail.com"
] | jiefanli97@gmail.com |
d46a46d06171563485050b9203c957d38c0d0829 | 9f2445e9a00cc34eebcf3d3f60124d0388dcb613 | /2019-11-13-kineticfeatures/hhfitting_minimize_all.py | 65943f142fdd8a7ddda864998cb0f6a72011bff9 | [] | no_license | analkumar2/Thesis-work | 7ee916d71f04a60afbd117325df588908518b7d2 | 75905427c2a78a101b4eed2c27a955867c04465c | refs/heads/master | 2022-01-02T02:33:35.864896 | 2021-12-18T03:34:04 | 2021-12-18T03:34:04 | 201,130,673 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,359 | py | #exec(open('hhfitting_minimize.py').read())
#Using fmin
import h5py
import numpy as np
import matplotlib.pyplot as plt
import os
from scipy import signal
from scipy.optimize import minimize
from scipy.optimize import curve_fit
from scipy.optimize import Bounds
# We do it for cell rCell10070.nwb
# Take from 993 to 598... | [
"analkumar2@gmail.com"
] | analkumar2@gmail.com |
2b51bb93386e0ac1b6f86ceadeaa9b0d86f1bacf | e7b6364245adec14cc47cbe5f2206afcba81d734 | /main/models.py | 8cc8cc3d931e5710e1e23fd46cacecd70d4e3f28 | [] | no_license | anaf007/myapp | 255cd3476fe05f9e063c96c3dc535e7089cf317f | 90e2da4a4e0ec1d10620609cfa59f58a78fed08b | refs/heads/master | 2020-03-24T05:14:03.174477 | 2018-08-02T09:33:30 | 2018-08-02T09:33:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | from main.extensions import login_manager
from main.user.models import User
@login_manager.user_loader
def load_user(user_id):
"""Load user by ID."""
return User.get_by_id(int(user_id)) | [
"anaf@163.com"
] | anaf@163.com |
81c8562b87597fa5954ae5a0d9f29bf0e1dc7a0c | b7cb4d7a14b4d15741ca18c7d6159f2e755e49ff | /pysurrogate/util/usage.py | 59a844e65cf5b88dad879e7ee0d08d1e95a0d576 | [
"MIT"
] | permissive | mberkanbicer/pysurrogate | eb270099d452602d41368ae08f0e70d03b945018 | 6fe58f157920ef7819bcd4756342b2ca778f43b8 | refs/heads/master | 2023-03-16T00:46:11.221702 | 2018-09-12T18:26:53 | 2018-09-12T18:26:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import numpy as np
import matplotlib.pyplot as plt
from pysurrogate.optimize import fit, predict
if __name__ == '__main__':
# number of samples we will use for this example
n_samples = 20
# ---------------------------------------------------------
# Example 1: One input variable and one target
#... | [
"jules89@arcor.de"
] | jules89@arcor.de |
6ce2efa1815bfbcb8520ef0ef62c4d9a19a81325 | 46e9fc0fc20a58026d35a163c7201f1b40844ce8 | /src/widgets/music_table_widget.py | cc86686d7da19ee6e19240dc84ed25d9aaa756ad | [
"MIT"
] | permissive | kiragoo/FeelUOwn | c47d09bd8f1ee6200ebd5c8a0de30e5b6f403d22 | 07b88b452af873f1596a1cbf551a21ffc940cb94 | refs/heads/master | 2021-05-29T23:25:51.556985 | 2015-08-05T09:14:33 | 2015-08-05T09:14:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,877 | py | # -*- coding:utf8 -*-
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from base.logger import LOG
class MusicTableWidget(QTableWidget):
"""显示音乐信息的tablewidget
"""
signal_play_music = pyqtSignal([int], name='play_music')
signal_remove_music_from_list = pyqtSignal([... | [
"yinshaowen241@gmail.com"
] | yinshaowen241@gmail.com |
8784fdd39fd7940c5323ecb33a5d20bc0be6b2c1 | 4160b450b052830e17457a0412e29414f67caea5 | /goods/apps.py | 42618868a73474215ce8f280268254282c223de0 | [] | no_license | mnogoruk/fastcustoms | 6ad7b058607ddf4d2b56a09e23e66fcfb43be1a7 | 4c3bf7f9f1d4af2851f957a084b6adc2b7b7f681 | refs/heads/master | 2023-08-23T15:54:08.415613 | 2021-10-31T12:21:29 | 2021-10-31T12:21:29 | 372,066,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | from django.apps import AppConfig
class CargoConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'goods'
| [
"lionless072@gmail.com"
] | lionless072@gmail.com |
2e18bb631907b32d1f4cdde82bdb2a57e871174f | 746a9c1f65674cd5bcdce6dbd1971b6a16345f9d | /images/forms.py | dd89b8853a27fc1fdb599041349f517c15c147a7 | [] | no_license | mazulo/bookmarks | 4dc25dc09772663c65698d3cc9f5b653fd409ba9 | 5c2ce3c3ad811466c63f7b0f3a21bf33a6a28f5e | refs/heads/master | 2021-01-10T07:23:37.185414 | 2016-03-23T06:40:53 | 2016-03-23T05:40:53 | 54,158,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,305 | py | from urllib import request
from django import forms
from django.core.files.base import ContentFile
from django.utils.text import slugify
from .models import Image
class ImageCreateForm(forms.ModelForm):
class Meta:
model = Image
fields = ('title', 'url', 'description')
widgets = {
... | [
"pmazulo@gmail.com"
] | pmazulo@gmail.com |
846a5e2ab2a378670c30bbbbae0fcf1e5f6f4070 | 23fddc940a266c2d1d0e0b1687c36cdbcc9d54d9 | /test/unittest/line_up/line_up_test.py | adc7a590bbb62f34cfffe5488ea14b34016d80ec | [] | no_license | Cuick/traversing | 210fcfb1c780037de59343fffeb4fa4d3f2eae32 | c78982580af7f63c8bff4dcb37005b7f7c682b5b | refs/heads/master | 2021-01-10T17:38:37.899460 | 2016-11-18T06:06:55 | 2016-11-18T06:06:55 | 55,397,540 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | # -*- coding:utf-8 -*-
"""
created by server on 14-7-14下午6:12.
"""
from test.unittest.base.base_test_case import BaseTestCase
import unittest
class LineUpTest(BaseTestCase):
"""test heros_component and hero"""
def test_add_hero(self):
line_up_component = self.player.line_up_component
line_up_... | [
"zxzxck@163.com"
] | zxzxck@163.com |
8b92a7c9c58837640882ba3dee0dcaebc67d62bf | 2383bf5a3b58e468d65713c361718795d51f1b97 | /python/call_test.py | 99c1f81aec4011b55d157f082bfafc64cf379f12 | [
"MIT"
] | permissive | rec/test | 3f4fb6614729ebc72d130888a8a9bc550f92988c | a260b9bf7fea96867e64163d3c891c2e2091f636 | refs/heads/master | 2023-08-03T13:49:24.347294 | 2023-07-28T09:19:39 | 2023-07-28T09:19:39 | 65,399,133 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | class Call1(object):
def __call__(self, x):
return x
class Call2(object):
def __init__(self):
self.call = lambda x: x
def __call__(self, x):
return self.call(x)
class Call3(object):
def __init__(self):
self.__call__ = lambda x: x
print(Call1()(3))
print(Call2()(3))
p... | [
"tom@swirly.com"
] | tom@swirly.com |
55048821cc9cb29b98bdf0c56f5b9d6d22ccaed8 | 0a9949a7dbe5f7d70028b22779b3821c62eb6510 | /static/statistic_struct/user portrait_0430/dynamic_analysis/code_test.py | f774cc12c9f529669c7813a4082b3099290f2e91 | [] | no_license | 744996162/warehouse | ed34f251addb9438a783945b6eed5eabe18ef5a2 | 3efd299a59a0703a1a092c58a6f7dc2564b92e4d | refs/heads/master | 2020-06-04T22:10:14.727156 | 2015-07-03T09:40:09 | 2015-07-03T09:40:09 | 35,603,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | #ecoding=utf-8
__author__ = 'Administrator'
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
str = '\xe5\x88\xb0\xe8\xbe\xbe'
print(str.encode("utf-8")) | [
"744996162@qq.com"
] | 744996162@qq.com |
d1c9d99e2b1639d463275d911bda31fdb8d8aea9 | ce8ffe238c510f8a80b42aa897ab0ce29698445d | /finfet_ex/finfet/moscap3d.py | 5ccc6333cfd4fa29bd590093e3f9a7177e40537e | [] | no_license | devsim/devsim_misc | 4d29d58314f29cb08939c3580fee24f441f55b50 | 9a3c7056e0e3e7fc49e17031a706573350292d4d | refs/heads/main | 2022-07-20T21:08:08.780498 | 2022-06-27T02:22:11 | 2022-06-27T02:22:11 | 191,487,676 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,331 | py |
import pygmsh
import bool_common
geom = pygmsh.opencascade.Geometry(
#characteristic_length_min=.1,
#characteristic_length_max=2.5e-5
)
w=1
h=1
tox=3
tsi=60
xrf=-0.1
trf=3
l_contact=1
#tcl0=0.5 #cl in ox
#tcl1=0.05 #cl near interface
#tcl2=0.5
#tcl3=0.5 #cl near backside
lcar=0.3
lrf=0.1
gate=bool_com... | [
"juan@tcad.com"
] | juan@tcad.com |
600cb4a4a0fb0c02fd641c0744d20d4413860cd0 | 8d2abf7ad4c3f35801f6bfdb38a4d6cddf1e0fbd | /0404/demo03.py | b105dd59dfb4f75a1769f41c31d1d8eb5067af08 | [] | no_license | erroren/Python_A | e9dfba73fc09160e4d3b8ea994183e2735f9d36e | 47901316902705e513ea7d6e016f98f1cd2d3e85 | refs/heads/master | 2020-05-04T14:27:29.118843 | 2019-06-13T08:50:03 | 2019-06-13T08:50:03 | 179,197,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | L = [x for x in range(10)]
print(L, type(L), L.__sizeof__())
L1 = (x for x in range(10))
print(L1, type(L1), L1.__sizeof__())
# print(L1.__next__())
def run(L1):
for i in L1:
yield i
r = run(L1)
while True:
try:
print(next(r))
except Exception as e:
print(e)
break
| [
"hcy@qq.com"
] | hcy@qq.com |
7580457f1767cfc3fd8424fd738c1d6e49fa6094 | c0f5d309576f791f8cc062e2d0cad340eec41d7d | /190326_electric_bus_2.py | 0045a43b557135b855703e93b6422e9e110f0f7f | [] | no_license | mjjin1214/algorithm | fa91455ab792c38d01fd210c12e53e50f516eb55 | 423119406061443939b4b966c7d9f1513544dd03 | refs/heads/master | 2020-04-22T19:31:23.981387 | 2019-04-05T07:58:10 | 2019-04-05T07:58:10 | 170,610,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import sys
sys.stdin = open('input1.txt')
def backtrack(x, count):
global min_count
if count >= min_count:
return
if x >= data[0]:
if min_count > count:
min_count = count
return
for i in range(data[x], 0, -1):
backtrack(x+i, count+1)
T = int(input())
for t... | [
"moc0etan@gmail.com"
] | moc0etan@gmail.com |
f7a398e1bd474d711dd6004b39549a4426d9920a | 388556baa0c2ee53d8767ae8a4bce18c03124488 | /Chapter10/0011_rev09_match_z.py | b30aaea61405322ecf5e6f08f6aa090553e2a735 | [] | no_license | 8563a236e65cede7b14220e65c70ad5718144a3/introduction-python-programming-solutions | 6e2e7c8cf8babc3c63f75d8d5e987f4dbc018269 | f21d70ae2062cc2d5d3a2fefce81a2a3b4ea3bfd | refs/heads/master | 2022-12-10T04:24:56.364629 | 2020-07-01T11:34:01 | 2020-07-01T11:34:01 | 294,878,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | """
Review Question 9
Matches a word containing "z"
"""
import re
def main():
user_string = input("Enter sequence ")
pattern = re.compile(r"\b\w*z\w*\b")
match_object = pattern.search(user_string)
if match_object:
print("Match found")
print(match_object.group())
else:
print... | [
"warren.jitsing@gmail.com"
] | warren.jitsing@gmail.com |
37ad454a8a7d3c8cc63dd66a836de528d210b27f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03240/s819025179.py | 868e91e9b7562f6eedc217a4bfc2a8b1b491522a | [] | 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 | 1,979 | py | import sys
import os
import math
import bisect
import itertools
import collections
import heapq
import queue
import array
# 時々使う
# from scipy.sparse.csgraph import csgraph_from_dense, floyd_warshall
# from decimal import Decimal
# from collections import defaultdict, deque
# 再帰の制限設定
sys.setrecursionlimit(10000000)
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
83bd218a3a6158cde57369b86689442952cd1249 | f8ad6963bfc851657ea50c6a036cfad29cdd7f60 | /Books/LearningTensorFlow/Chapter3_Tensorflow_Basic_Understand/subchapter_03_04_Linear_Regression.py | 9c139d920a30a7310ed8b501626cfe7d1ea747e6 | [] | no_license | foru120/PythonRepository | e1ab0265c0f50ef2e9acdf7447237c913560692b | db6b6be0f9fb91b0a81a3b6a2ec5631daab10f98 | refs/heads/master | 2021-01-01T06:53:11.728109 | 2019-04-25T13:52:50 | 2019-04-25T13:52:50 | 97,541,222 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | import numpy as np
import tensorflow as tf
x_data = np.random.randn(2000, 3)
w_real = [0.3, 0.5, 0.1]
b_real = -0.2
noise = np.random.randn(1, 2000) * 0.1
y_data = np.matmul(w_real, x_data.T) + b_real + noise
NUM_STEPS = 10
g = tf.Graph()
wb_ = []
with g.as_default():
x = tf.placeholder(dtype=tf.float32, shape... | [
"broodsky1122@hanmail.net"
] | broodsky1122@hanmail.net |
53a3368b892b1ea07bd5aed868eef146253be066 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/others/CenterMask2/models/centermask2/centermask/modeling/centermask/maskiou_head.py | 23823fce2c12478ba7bdb4b83597a3363504cb80 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 4,952 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# 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... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
539f747aea7fe6c503a164283f17c23d2cc410ef | 7e9c3b7684a7c9d712382cb170ab2ca1485b5ea2 | /test/test_monty.py | ed1e6c94242cb103125420c1f68e9ec9b17fbb0c | [
"Apache-2.0"
] | permissive | hackerlist/monty-python | 0adabb857d6025b8004f406a10f59a533c3df464 | eb4233e2f0301665e3469401e71d8a54c4503311 | refs/heads/master | 2020-12-30T09:38:07.050584 | 2014-05-24T10:45:23 | 2014-05-24T10:45:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | #-*- coding: utf-8 -*-
"""
montypy.test
~~~~~~~~~~~~
Test cases for monty-python
"""
import unittest
import os
from montypy import Monty
TEST_SRV = 'https://monty.criticalpha.se'
class TestMontyPy(unittest.TestCase):
def test_instantiation(self):
m = Monty(TEST_SRV)
def test_nodes... | [
"michael.karpeles@gmail.com"
] | michael.karpeles@gmail.com |
74c58f92a24f50e470b93242b98a5a0b06c6581c | 69f2b8f54d923a064bf0de20249b5aa619f1da12 | /example/example/common/urls.py | 6c7ab2725da62af487d78fe557a29dc7035f43b8 | [] | no_license | skibblenybbles/django-dojoforms | 8302dff51f571d35e2c1f8439487baf494cd655c | 75e7b7a1c05c7db64df56352bd9e697450da4dab | refs/heads/master | 2020-12-29T01:41:46.657653 | 2012-11-08T03:55:50 | 2012-11-08T03:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from django.conf.urls import patterns, include, url
urlpatterns = patterns("example.common.views",
url(r'^$', "pages.homepage_view", name="homepage"),
)
| [
"mkibbel@gmail.com"
] | mkibbel@gmail.com |
24f50ff549e8c93fb62458eeb8bef3690e2293e6 | 63707652ba98b136744efd61115b7da9decd64ea | /homework1/q3/q3/spiders/q3_spider.py | d299ef2b3f7cf3267c544659ea1f1b26beb153c8 | [] | no_license | yerihyo/cs6200f13 | ad79a576f8ad190ef9f35049df988e62310ed0db | 96c5161a1b767118ded5dee441140fe49c499251 | refs/heads/master | 2021-01-01T18:07:55.390969 | 2013-09-18T22:57:27 | 2013-09-18T22:57:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,559 | py | from scrapy.contrib.spiders import CrawlSpider, Rule
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from q3.items import HyperlinkItem
import re
import urlparse
import sys
from scrapy.exceptions import CloseSpider
# from scrapy.contrib.closespider import CloseSpider
class MyExtractor(SgmlLinkExtract... | [
"yerihyo@gmail.com"
] | yerihyo@gmail.com |
537b65a9a936c8cc8663d161026ab155e899d103 | e3dcfa127f8d1e03b25d9f38d1d93bea9926d3b5 | /weaver/devtools/devclean.py | 183a4076e3b3ab0df35d7611d31c1229f4ca3c85 | [
"MIT"
] | permissive | mikadosoftware/weaver | 72832ff66efb8e352523126865ba1a89ad881ab2 | 58d35b72714a9be78d4bf31d9072b243469f5ffc | refs/heads/master | 2022-12-11T11:01:19.545070 | 2018-09-21T18:36:11 | 2018-09-21T18:36:11 | 76,447,730 | 0 | 0 | MIT | 2022-12-08T00:39:26 | 2016-12-14T10:04:52 | Python | UTF-8 | Python | false | false | 1,535 | py | #!/bin/env python
"""devclean
Usage:
devclean <rootpath> [--show]
devclean (-h | --help)
devclean --version
Options:
-h --help Show this screen.
--version Show version.
--show Only show dont kill files
"""
import os, sys
from fnmatch import fnmatch
from docopt import docopt
crap_matcher... | [
"paul@mikadosoftware.com"
] | paul@mikadosoftware.com |
08b77271f6d9e743446b11420b21694f8c5cb7a8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02767/s509630790.py | 134d80c81b5f5cf92ccd09bce8a4d9e1b91e7af6 | [] | 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 | 165 | py | N = int(input())
X_list = list(map(int, input().split()))
X_mean = round(sum(X_list) / N)
physical_sum = sum([(i - X_mean)**2 for i in X_list])
print(physical_sum) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
65e4cf82411c8c8153f0661d7ec0d14d2b426b00 | b29acb2e230b3cf2f8be070850c34ed5d62dc80c | /Python/YPS/Rensyu/08/Sample1.py | e365d37f505389fb63bb58af6d100aea58fe1491 | [] | no_license | MasatakaShibataSS/lesson | be6e3557c52c6157b303be268822cad613a7e0f7 | 4f3f81ba0161b820410e2a481b63a999d0d4338c | refs/heads/master | 2020-06-17T13:42:08.383167 | 2019-11-11T07:23:14 | 2019-11-11T07:23:14 | 195,940,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | class Car():
def __init__(self, num, gas):
self.num = num
self.gas = gas
def getNumber(self):
return self.num
def getGas(self):
return self.gas
cr1 = Car(1234, 25.5)
n1 = cr1.getNumber()
g1 = cr1.getGas()
cr2 = Car(2345, 30.5)
n2 = cr2.getNumber()
g2 = cr2... | [
"masataka.shibata.ss@gmail.com"
] | masataka.shibata.ss@gmail.com |
7078dcee082ede20fd630e1599955619f9c49a3f | 9c006bd8b1f628200a63a194000836505f50be9b | /tools/lldb/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py | d2ba2ae6056b494007615c201f3531a9de244e39 | [
"NCSA"
] | permissive | hoangt/NyuziToolchain | a66989a1b9c71a2df782f9c573b0da62d1e0e9cf | 400aae2a01d38a1e836d7be33211aa8525c87070 | refs/heads/master | 2020-12-24T23:29:11.747602 | 2015-08-30T00:06:09 | 2015-08-30T00:06:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,631 | py | """
Test 'watchpoint command'.
"""
import os, time
import unittest2
import lldb
from lldbtest import *
import lldbutil
class WatchpointLLDBCommandTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
# Our simple so... | [
"jeffbush001@gmail.com"
] | jeffbush001@gmail.com |
7cf33ffd307ec8485e367021e0c782dd7af726bb | 27a580304382e3a79c7307f42a83b689566dbf30 | /reinforcement_learning/0x03-policy_gradients/policy_gradient.py | dff87a11d16bf082c2455db22eacbd163879aa68 | [] | no_license | salmenz/holbertonschool-machine_learning | a37712a125cd2e9e4bd6975c3bb2338f3533474f | a49eb348ff994f35b0efbbd5ac3ac8ae8ccb57d2 | refs/heads/master | 2023-07-11T06:00:36.162782 | 2021-08-11T17:45:35 | 2021-08-11T17:45:35 | 279,366,817 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | #!/usr/bin/env python3
"""policy gradient"""
import numpy as np
def policy(matrix, weight):
"""compute to policy with a weight of a matrix"""
z = matrix.dot(weight)
exp = np.exp(z)
return exp / np.sum(exp)
def softmax_grad(softmax):
"""softmax"""
s = softmax.reshape(-1, 1)
return np.diagf... | [
"salmen.zooro@gmail.com"
] | salmen.zooro@gmail.com |
78c81bf41eaa5f3d6619327d769a73f98ac9db0b | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit1616.py | 5f4d304cc7b1179048c26042ec6efbd6cdbd56f6 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,491 | py | # qubit number=5
# total number=60
import cirq
import qiskit
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as np
import networkx as ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
016174c973cc6d5cc9d0073c0db0aed68af4d195 | 75d54a70d42f3790e917569172cde9b6969468cb | /timesketch/api/v1/resources_test.py | 13bf2ad68618a276a6b564f944363ea42a521818 | [
"Apache-2.0"
] | permissive | MarVinPL/timesketch | 792be04b8c9b1cab50bb6b5bf0096498bbc71b5b | 3c63cacef0f4ed4bbe826903ee5d708cc0502bb3 | refs/heads/master | 2021-01-15T20:33:36.816774 | 2015-03-26T08:53:27 | 2015-03-26T08:53:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,786 | py | # Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"jberggren@gmail.com"
] | jberggren@gmail.com |
7092c7986651958a2883bb51380909307aebb640 | 10d89f178dc2e0f594c29c76aeef931c9525fbfd | /tests/.stage3_nonssl/verify_client.d/connector.py | 6629e2ada72684fa53ee0ef3791acf9a5f78acaf | [] | no_license | exphost/exphost.postfix | 7398bc629f02f5d8863535f3752e62a3214d0bb0 | abc770f66422b9bffc6b2223c6356cc846047065 | refs/heads/master | 2023-05-14T08:01:20.293965 | 2021-06-05T07:47:35 | 2021-06-05T08:09:58 | 365,591,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | connector = "nc test.some.example.domain.xyz 25"
def setup_connector(host):
host.ansible(
"command",
"yum install -y nc",
become=True,
check=False,
)
| [
"torgiren@gmail.com"
] | torgiren@gmail.com |
cd3fb7b1c5af5ec78d27e4e22f214c209953131b | 090a4e026addc9e78ed6118f09fd0d7d4d517857 | /graph_objs/candlestick/_decreasing.py | a63b2f5acb3f6c6939a7777ea542936faf4e0bab | [
"MIT"
] | permissive | wwwidonja/new_plotly | 0777365e53ea7d4b661880f1aa7859de19ed9b9a | 1bda35a438539a97c84a3ab3952e95e8848467bd | refs/heads/master | 2023-06-04T19:09:18.993538 | 2021-06-10T18:33:28 | 2021-06-10T18:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,701 | py | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class Decreasing(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "candlestick"
_path_str = "candlestick.decreasing"
_valid_props = {"fillcolor", "line"}
... | [
"wwwidonja@gmail.com"
] | wwwidonja@gmail.com |
9d296c259a2e461bf5c93b18863d06131d8b435c | 9e2d79a2cf1dbeaffe8ef897bb53f94af8b5b68c | /ichnaea/api/submit/schema_v0.py | 369e4e1815bfa4d4f1b610b8b794b4d3dfea8f60 | [
"Apache-2.0"
] | permissive | amolk4games/ichnaea | a7d1cbd12b6aa5c0d877fca380080b08fcff24b8 | 907c542da05b428c8e994bce1537390e22b3ca58 | refs/heads/master | 2021-01-19T07:21:54.851167 | 2016-04-08T15:20:37 | 2016-04-08T15:21:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,408 | py | """
Colander schemata describing the public v1/submit HTTP API.
"""
import colander
from ichnaea.api.schema import (
OptionalBoundedFloatNode,
OptionalIntNode,
OptionalMappingSchema,
OptionalNode,
OptionalSequenceSchema,
OptionalStringNode,
UnixTimeFromString,
)
class BlueV0Schema(Option... | [
"hanno@hannosch.eu"
] | hanno@hannosch.eu |
fe972e3f143c34206e2f70eec1e9dd21dc51fb48 | f85c41af07c89af418b7565d289e8237ebe433f1 | /stubs/twisted/web/server.pyi | 201fab94b71c99ae8d97155f18bb20ed7273cc8f | [
"Apache-2.0"
] | permissive | matrix-org/sydent | 3b58e9488ce594b4fc803f9114d9b137a500611c | 77cb99e3fc6a77c3bc2b66005770bd940060fae4 | refs/heads/main | 2023-08-04T09:52:33.984167 | 2023-07-31T10:53:38 | 2023-07-31T10:53:38 | 22,844,878 | 269 | 103 | Apache-2.0 | 2023-09-12T11:17:20 | 2014-08-11T15:52:07 | Python | UTF-8 | Python | false | false | 669 | pyi | from typing import Callable, Optional
from twisted.web import http
from twisted.web.resource import IResource
class Request(http.Request): ...
# A requestFactory is allowed to be "[a] factory which is called with (channel)
# and creates L{Request} instances.".
RequestFactory = Callable[[http.HTTPChannel], Request]
... | [
"noreply@github.com"
] | matrix-org.noreply@github.com |
eafab3a40a8fcd6e8f3c5f79a7ab45fb09a1997d | e27333261b8e579564016c71d2061cc33972a8b8 | /development_codes/Backend/.history/UnigramLanguageModelImplementation_20210809204100.py | d1971d7e1650058901c9456feb9356fa2684514b | [] | no_license | Dustyik/NewsTweet_InformationRetrieval | 882e63dd20bc9101cbf48afa6c3302febf1989b1 | d9a6d92b51c288f5bcd21ea1cc54772910fa58f7 | refs/heads/master | 2023-07-01T09:12:53.215563 | 2021-08-12T08:28:33 | 2021-08-12T08:28:33 | 382,780,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | import math
from IPython.display import display
import sys
from BM25implementation import QueryParsers
ALPHA = 0.75
NORMALIZE_PROBABILITY = True
class UnigramLanguageModel:
def __init__(self, tweets_data): #tweets is a pandas dataframe
self.tweets_data = tweets_data
self.wordsCollectionFrequencyD... | [
"chiayik_tan@mymail.sutd.edu.sg"
] | chiayik_tan@mymail.sutd.edu.sg |
e80525d3c4e2b38c006b4ba26ad3d3c803612081 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-1/vse-naloge-brez-testov/DN5-M-155.py | 8589f4c179dad3cc22b745e3fc1e830f8a3794f4 | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | def unikati(s):
seznam = []
for i in s:
if i not in seznam:
seznam.append(i)
return seznam
def avtor(tvit):
return tvit.split(":")[0]
def vsi_avtorji(tviti):
avtorji = []
for zapis in tviti:
avtorji.append(avtor(zapis))
return unikati(avtorji)
def izloci_besedo... | [
"lenart.motnikar@gmail.com"
] | lenart.motnikar@gmail.com |
a25e272a7d02407e4dcb9451996d404845773daf | 22bf910b64283b3c15cc4d80542e83fa89e9f09d | /monero_glue/messages/MoneroGetTxKeyRequest.py | b935838df9f412978aeb49278af672fb07c50028 | [
"MIT"
] | permissive | ph4r05/monero-agent | 24ed1aa17d6616b2ae6bcdb7b9997f982f8b7b5d | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | refs/heads/master | 2022-10-18T06:30:43.550133 | 2021-07-01T16:27:56 | 2021-07-01T16:27:56 | 126,215,119 | 24 | 5 | MIT | 2022-09-23T22:53:44 | 2018-03-21T17:18:21 | Python | UTF-8 | Python | false | false | 1,433 | py | # Automatically generated by pb2py
# fmt: off
from .. import protobuf as p
if __debug__:
try:
from typing import Dict, List # noqa: F401
from typing_extensions import Literal # noqa: F401
except ImportError:
pass
class MoneroGetTxKeyRequest(p.MessageType):
MESSAGE_WIRE_TYPE = 55... | [
"dusan.klinec@gmail.com"
] | dusan.klinec@gmail.com |
0db085b02f0f82902740aec7e44bb19ae0918fef | 7b4e9342d42be2b55af5dc23a8abedd672d68e99 | /libs/flows/windows/jweb/flow_container.py | d286652e4bd3a203a05068468b2b900f0cf0c236 | [] | no_license | Amal548/QAMA | af5bb335c92a90b461f1ee9a3870435d83d46802 | b5230c51d3bc7bb04b3448d1a1fe5a076d8898d5 | refs/heads/master | 2023-07-12T09:17:04.624677 | 2021-08-06T08:01:11 | 2021-08-06T08:01:11 | 389,595,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | import logging
from time import sleep
from MobileApps.libs.ma_misc import ma_misc
from MobileApps.libs.flows.windows.jweb.home import Home
from MobileApps.libs.flows.web.hp_id.hp_id import HPID
from MobileApps.libs.flows.windows.jweb.auth_plugin import AuthPlugin
from MobileApps.libs.flows.windows.jweb.eventing_p... | [
"amal.muthiah@hp.com"
] | amal.muthiah@hp.com |
f17b80dc4d7e285090138061fd5c7212a6c11d43 | 89044f6606e3ccfbbca0b0dacc277497e735d5d4 | /lecture02/exercise02-B/template.py | de5bc2e02d30081a54e08b493b21c899c65425fb | [
"MIT"
] | permissive | nd-cse-34872-su21/cse-34872-su21-examples | 10595f1d53ad3a45fd5e293a8705aefd66bf65c9 | 0294bb0964b502bbb8541054977988c4a3b49dab | refs/heads/master | 2023-05-14T09:55:26.573462 | 2021-06-08T14:23:59 | 2021-06-08T14:23:59 | 370,460,163 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | #!/usr/bin/env python3
import sys
# Functions
LEFT_PBB = ('(', '[', '{')
RIGHT_PBB = (')', ']', '}')
def is_pbbmatched(s):
# TODO: Process string s using a stack to determine if the symbols are balanced
return False
# Main execution
def main():
for line in sys.stdin:
line = line.rstrip()
... | [
"pbui@nd.edu"
] | pbui@nd.edu |
5ee64de7a0e5c54c20e9a919092352983197fa28 | edbcb34df3f31bda1e90d9926916da8efc24f65d | /app/models.py | 5130107da2b6efca832994dd037e4bf8af4bad4c | [] | no_license | yuansuixin/movies_project | 74281ceeb6cc6e890c7a7e8d3f9a84e13e2ffdc7 | 8cd5dac957e9475c5f61c4dd648718a8cb782981 | refs/heads/master | 2021-04-05T23:30:57.037168 | 2018-03-14T15:36:55 | 2018-03-14T15:36:55 | 125,233,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | from django.db import models
# Create your models here.
# 用户
class User(models.Model):
# 密码
u_password = models.CharField(max_length=32)
# 昵称
u_name = models.CharField(max_length=20,primary_key=True)
# 头像路径
u_icon = models.ImageField(upload_to='icons')
isDelete = models.BooleanField(default... | [
"cyss428@163.com"
] | cyss428@163.com |
13b03308cf7b6535f6bf15ad2090240da75658b2 | bfee360e228494749ce1f73f7bc48cf5f4698d3a | /excelplay_echo/core/urls.py | 25ee96a89465e3093bf6586026db47af2fb93213 | [] | no_license | Excel-MEC/excelplay-echo | 0cc1f8d2305c107f95c8e72f7929651ec44c2b0f | 2b062e2a783adb7abeb05420c0761734fa1d368f | refs/heads/master | 2021-04-18T21:26:59.333703 | 2019-01-14T17:34:54 | 2019-01-14T17:34:54 | 126,799,930 | 1 | 1 | null | 2018-10-26T09:13:41 | 2018-03-26T08:47:40 | Python | UTF-8 | Python | false | false | 321 | py | from django.urls import path
from core.views import Submissionform,Problem,handshake
urlpatterns =[
# path('leaderboard',Echoleaderboard.as_view(),name='leaderboard'),
path('submit',Submissionform,name='finalsubmit'),
path('probs',Problem,name='Problems'),
path('handshake',handshake,name='handshake')
]... | [
"kurian.pro@gmail.com"
] | kurian.pro@gmail.com |
859ec81a3750696e6e42c17160e3397d0d0753fb | accdde552cda99d0fa328441bebdc7ce78b74f36 | /venv/Session6I.py | 4f258afe71ea77a573b36943755b33675423d95e | [] | no_license | navnoorsingh13/GW2019PA2 | 056f0b3d293d8a6f3ec149c8de01c96f0d46f826 | b94b2a5e1c6a760a5ada87e3f7a3117da552387d | refs/heads/master | 2022-01-17T13:20:57.446539 | 2019-07-19T10:53:37 | 2019-07-19T10:53:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | # Pass By Reference
def squareOfNumbers(nums):
for i in range(0, len(nums)):
nums[i] = nums[i] * nums[i]
numbers = [1, 2, 3, 4, 5]
squareOfNumbers(numbers)
print(numbers)
def fun(a, b, c):
pass
fun(a=10, c=20, b=30) | [
"er.ishant@gmail.com"
] | er.ishant@gmail.com |
ccd38499deb46018021dc170d1176876dd50b27e | 9f3488ddfdb02165f1be9a3ce3a4a3468af0e793 | /leetcode/273.integer-to-english-words.py | ca6936b235ba2fbf36945ffa81071a42077ea446 | [] | no_license | szr22/algorithm | b76646799272b81ea6dd179f0d07dba64d9b10d2 | bcf18a6583303dbd5a10776d2c70181b0733defb | refs/heads/master | 2022-05-13T13:59:27.471727 | 2022-04-15T18:27:55 | 2022-04-15T18:27:55 | 190,107,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,709 | py | #
# @lc app=leetcode id=273 lang=python3
#
# [273] Integer to English Words
#
# @lc code=start
class Solution:
def __init__(self):
self.dictLessTwenty = ["", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen", "Sev... | [
"shizhenrong1987@hotmail.com"
] | shizhenrong1987@hotmail.com |
e889548a187ca2c0ffa106a9c7a66ec640690c87 | ab8a1749aa2b1ad5f5d6fde4ad83702b306c9946 | /bowler/_bowlerv3.py | 1feb828fe6c62dbfc524677718fea104647aa980 | [] | no_license | Auzzy/python-dyio | ae85fdf5cdf17c59f6923e0a7c3eccd97bdddc3a | 60ccc8b311ff23f897b102524fd5ebdf847a4b3a | refs/heads/master | 2016-09-01T09:26:24.517331 | 2013-03-10T21:36:29 | 2013-03-10T21:36:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | from bowler import _DatagramBuilder,_DatagramParser
LENGTH = 11
class Affect(object):
STATUS = 0x00
GET = 0x10
POST = 0x20
CRIT = 0x30
ASYNC = 0x40
class _Builder(_DatagramBuilder):
@staticmethod
def build(mac, func, args, affect, ns):
mac = mac.replace(':',' ')
payload = _Builder._build_payload(func,arg... | [
"metalnut4@netscape.net"
] | metalnut4@netscape.net |
f39f248f0bbe9ef7481745246946d51ff52cf137 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_Quantization/trend_Lag1Trend/cycle_7/ar_12/test_artificial_32_Quantization_Lag1Trend_7_12_20.py | 8aab6db49f32f6e1b077dd49b45246fcd79cf007 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 272 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 7, transform = "Quantization", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
9c5539d8a3f55ac77c8088a89e80ba26627d0880 | 4751fd86184b64316d694a98671d34faae76ffe6 | /plannerrr/urls.py | 5440d164eca08d316b10eec4f88ad184fb5b72d6 | [] | no_license | mohammedaliyu136/dg_planner | 8a6a4888cc109d6c3a1cb115494a1e6decbb864a | a0fb87e182527e541e7758a2c4720ddbb2438145 | refs/heads/master | 2020-04-03T08:09:02.020426 | 2018-10-29T19:57:16 | 2018-10-29T19:57:16 | 155,124,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | from plannerrr import views
from django.conf.urls import include, url
from django.contrib import admin
from plannerrr.advisor.views import edit_default_plan
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^login/', views.login_user, name='login'),
url(r'^login_out/', views.logout_user, name='... | [
"mohammedaliyu136@gmail.com"
] | mohammedaliyu136@gmail.com |
a7116d737ea16e7b0521b8c9990f276ce7f27c42 | d0bdf444c71b724ecfd59b5bc6850962c56494cb | /homeworks/02-arrays_tables/tests/q2_2.py | b338149a2d1c1e8bf6590df93b420ef2042ceb53 | [] | no_license | ucsd-ets/dsc10-su20-public | 10e3d0ff452b337f222baee330fe60d1465b0071 | 38787e6cc3e6210b4cc8a46350e5120845971c9f | refs/heads/master | 2022-12-13T23:28:20.512649 | 2020-09-03T19:28:06 | 2020-09-03T19:28:06 | 275,905,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | test = {
'name': 'Question 2_2',
'hidden': False,
'points': 1,
'suites': [
{
'cases': [
{
'code': r"""
>>> isinstance( new_allowances_constant , np.ndarray)
True
""",
'hidden': False,
'locked': False
}
],
'scored':... | [
"eldridgejm@gmail.com"
] | eldridgejm@gmail.com |
3c2ffe9176682d22fb8791c366db0d1b969071f8 | f7deae8209a3ff66050780d5e59c8f2231f8139f | /profil3r/app/core/services/_social.py | a5abb6c74a823594b669110e37afced5602f1873 | [
"MIT"
] | permissive | cyber-workforce/Profil3r | 858b6ce3ad71bb4cf5d621a6bd18023d50538968 | ec308924850e0514416aaeaa9e96eabf658e2d0e | refs/heads/main | 2023-06-17T04:07:57.303282 | 2021-07-12T12:51:03 | 2021-07-12T12:51:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | from profil3r.app.modules.social.facebook import Facebook
from profil3r.app.modules.social.twitter import Twitter
from profil3r.app.modules.social.tiktok import TikTok
from profil3r.app.modules.social.instagram import Instagram
from profil3r.app.modules.social.pinterest import Pinterest
from profil3r.app.modules.social... | [
"r0g3r5@protonmail.com"
] | r0g3r5@protonmail.com |
91b6bd20ba16539afdb282384848c0db31a11601 | 111cac4319ff247d890926ddda4809a7ca6e6f25 | /ch02/02.py | edc962b02e51c769360fa1e35669d95871ace916 | [] | no_license | gebijiaxiaowang/FluentPython | c5c9838209524cbab0036f22ef6b75085b8ead53 | 700427ee872cd4c2a4b6466f7a214b7acc679580 | refs/heads/master | 2023-03-02T21:20:06.224311 | 2021-02-09T08:58:42 | 2021-02-09T08:58:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | #!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Time : 2020/12/31 15:25
# @Author : dly
# @File : 02.py
# @Desc :
import os
from collections import namedtuple
lax_coordinates = (33.9, -118.4)
# 元组拆包
latitude, longitude = lax_coordinates
print(latitude)
print(longitude)
# divmod(x, y)
# Return the tuple (x/... | [
"1083404373@qq.com"
] | 1083404373@qq.com |
ff4a5fc06618705dfc56f7d5407354cef5cb04bd | d943d1b6803bb3c44b3600a2b3728662d4a3de06 | /btcgreen/protocols/pool_protocol.py | 8156b5f25f7f6e48ecf3d376e3bbe60cd68eaabe | [
"Apache-2.0"
] | permissive | onuratakan/btcgreen-blockchain | 624575e3f484dcbb70dbbbfab46f7eeb92a5b709 | 03c9e27c483a0c3e6a34713dd9d2502eff7c25b2 | refs/heads/main | 2023-09-06T04:31:12.725344 | 2021-10-16T23:45:51 | 2021-10-16T23:45:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,027 | py | from dataclasses import dataclass
from enum import Enum
import time
from typing import Optional
from blspy import G1Element, G2Element
from btcgreen.types.blockchain_format.proof_of_space import ProofOfSpace
from btcgreen.types.blockchain_format.sized_bytes import bytes32
from btcgreen.util.ints import uint8, uint16,... | [
"svginsomnia@gmail.com"
] | svginsomnia@gmail.com |
3e95aaa34291786d7b1e43802787d3b150378db0 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayCommerceEducateTuitioncodePlanDisburseResponse.py | b68b5df3dd899650dcb85ee7430d2c745ecd58df | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 497 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayCommerceEducateTuitioncodePlanDisburseResponse(AlipayResponse):
def __init__(self):
super(AlipayCommerceEducateTuitioncodePlanDisburseResponse, self).__init__()
d... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
0189a50f15557b57e5dd47c6ad38deada72bbd5f | 08e6b46769aa36da479f29ef345bdb15e5d0d102 | /admin_mysql_purge_binlog.py | 3cd6ca5344c7563aad947373aba1ea153792b032 | [] | no_license | speedocjx/lepus_python | 30a33852efdef5b24402cbe81b8d9798072f9309 | 27d61c154d4cde97e004e3851203420f77a63c5d | refs/heads/master | 2021-06-14T22:37:50.936419 | 2017-03-21T06:18:12 | 2017-03-21T06:18:12 | 70,157,618 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,114 | py | #!//bin/env python
#coding:utf-8
import os
import sys
import string
import time
import datetime
import MySQLdb
path='.\include'
sys.path.insert(0,path)
import functions as func
from multiprocessing import Process;
def admin_mysql_purge_binlog(host,port,user,passwd,binlog_store_days):
datalist=[]
try:
... | [
"changjingxiu1@163.com"
] | changjingxiu1@163.com |
76428ce31dbddb8a14d11a3a0fa372bea28b6157 | 9b422078f4ae22fe16610f2ebc54b8c7d905ccad | /xlsxwriter/test/comparison/test_chart_doughnut01.py | 7048957c7e5110ea5f6179445573456bacf51b58 | [
"BSD-2-Clause-Views"
] | permissive | projectsmahendra/XlsxWriter | 73d8c73ea648a911deea63cb46b9069fb4116b60 | 9b9d6fb283c89af8b6c89ad20f72b8208c2aeb45 | refs/heads/master | 2023-07-21T19:40:41.103336 | 2023-07-08T16:54:37 | 2023-07-08T16:54:37 | 353,636,960 | 0 | 0 | NOASSERTION | 2021-04-01T08:57:21 | 2021-04-01T08:57:20 | null | UTF-8 | Python | false | false | 1,121 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2021, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparison_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"jmcnamara@cpan.org"
] | jmcnamara@cpan.org |
ad358bf4d32aea80191fa3241fe832f390353029 | 41311e8bbed80e1f819157d24d7943c05ba6b2e6 | /ProblemSet1/loadWords/loadWords.py | 3a94e083edcd22587507bf4aeaa2b961c0adee1b | [] | no_license | tanglan2009/MITx6.00.2x_Introductin_Computational_Thinking_and_Data_Science | c0bb39cb0964014661823e1301f05af7837ff3c5 | 334726fca7f87eae55f5f45c3cdc4dbac02cfac4 | refs/heads/master | 2021-01-10T02:49:34.663406 | 2016-03-06T19:49:44 | 2016-03-06T19:49:44 | 53,272,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | import string
PATH_TO_FILE = 'words.txt'
def loadWords():
inFile = open(PATH_TO_FILE, 'r', 0)
line = inFile.readline()
wordlist = string.split(line)
print " ", len(wordlist), "words loaded."
return wordlist
loadWords()
# Uncomment the following function if you want to try the code template
def loadWords2():
... | [
"tanglan2009@gmail.com"
] | tanglan2009@gmail.com |
e728f33e5d0da7256dab52088914b8554fcfb53b | 2fb0af0a30e3133ef4c5e649acd3f9911430062c | /src/otp/level/ZoneEntity.py | dd4b697f834eeffe4a6e4330b73a50fe508dda0f | [] | no_license | Teku16/Toontown-Crystal-Master | 4c01c0515f34a0e133441d2d1e9f9156ac267696 | 77a9345d52caa350ee0b1c7ad2b7461a3d6ed830 | refs/heads/master | 2020-05-20T06:02:58.106504 | 2015-07-25T07:23:59 | 2015-07-25T07:23:59 | 41,053,558 | 0 | 1 | null | 2015-08-19T18:51:11 | 2015-08-19T18:51:11 | null | UTF-8 | Python | false | false | 1,244 | py | import ZoneEntityBase
import BasicEntities
class ZoneEntity(ZoneEntityBase.ZoneEntityBase, BasicEntities.NodePathAttribs):
def __init__(self, level, entId):
ZoneEntityBase.ZoneEntityBase.__init__(self, level, entId)
self.nodePath = self.level.getZoneNode(self.entId)
if self.nodePath is Non... | [
"vincentandrea15k@gmail.com"
] | vincentandrea15k@gmail.com |
cf1f4af51afa41b4dec936aee3e234c05d0c1381 | fbf8bbc67ee98632531bb79b0353b536427d7572 | /variables_and_scope/exe1_function.py | 6687c59c3573e3f5e48fd39f5c3f3b5cafce1c0a | [] | no_license | bartoszmaleta/3rd-Self-instructed-week | c0eea57a8b077d91fe09fe53c1109d3a79e3f37c | 4d00306e64ba2f7c2dd8213fd776ce8d3da142fc | refs/heads/master | 2020-08-20T22:31:17.675733 | 2019-10-28T12:24:22 | 2019-10-28T12:24:22 | 216,073,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | def my_funcion(a):
b = a - 2
# print(b)
return b
c = 1
if c > 2:
d = my_funcion(5)
print(d)
# my_funcion(5)
| [
"bartosz.maleta@gmail.com"
] | bartosz.maleta@gmail.com |
6c365f68c5d1ed3c3e601bb023af3f91a5b78b92 | 14b44aa2b73fb3df08c9c085219ebfd320d5d63a | /register_service/venv/bin/jp.py | be778c22379e6ca2900eb32e774e96139bfddb56 | [] | no_license | sande2jm/CI-CD-Service | c46f95f380872e9aca02d5c5e5a88578ba6e88b0 | 34535e69a3c39a78cd1d1ca785587d5e78a03580 | refs/heads/master | 2020-03-27T02:16:00.843764 | 2018-08-25T00:28:32 | 2018-08-25T00:28:32 | 145,778,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | #!/Users/jacob/Desktop/_ML/CI-CD-Service/venv/bin/python3
import sys
import json
import argparse
from pprint import pformat
import jmespath
from jmespath import exceptions
def main():
parser = argparse.ArgumentParser()
parser.add_argument('expression')
parser.add_argument('-f', '--filename',
... | [
"sande2jm@gmail.com"
] | sande2jm@gmail.com |
08b8127958744b568e48462f5aed02e97b1ddad2 | 62bbef9472f343adea9804e29f403798434455df | /octaveimp/dictgen.py | 3a9e93641d4d9b0d46bbce71a0195c6000186de2 | [] | no_license | drdhaval2785/SamaasaClassification | d46658abce7ea7d7b6c89522ecc22a9d4391c011 | f71be804d2b6fb0ec370d0917adf1a58079df550 | refs/heads/master | 2020-12-24T08:55:08.230647 | 2016-08-07T09:17:39 | 2016-08-07T09:17:39 | 38,927,628 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | # -*- coding: utf-8 -*-
import sys, re
import codecs
import string
import datetime
"""
Usage - python dictgen.py step2.csv step3.csv dict.txt class.txt
Creates a dictionary and index of unique words in step2.csv.
The replacements are stored in step3.csv.
dict.txt file has the dictionary.
class.txt file has unique clas... | [
"drdhaval2785@gmail.com"
] | drdhaval2785@gmail.com |
0052186786f9135544da4bbd4cbbd0182d70d987 | 2c9db62ddaffd77c097b3da4990021270912ea40 | /프로그래머스/42626.py | 0fee2888d34a12c55c57058eb42adda113a2d477 | [] | no_license | nahyun119/algorithm | 9ae120fbe047819a74e06fc6879f55405bc9ea71 | 40e291305a4108266073d489e712787df1dbae4b | refs/heads/master | 2023-08-27T23:18:44.133748 | 2021-10-03T11:32:12 | 2021-10-03T11:32:12 | 326,661,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | import heapq
def solution(scoville, K):
answer = 0
q = []
for s in scoville:
heapq.heappush(q, s)
is_done = False
while q:
s = heapq.heappop(q)
if not q:
if s >= K:
is_done = True
break
if s < K: # 맨처음 원소가 작다면
... | [
"nahyun858@gmail.com"
] | nahyun858@gmail.com |
fae041b6f545357627db8a4e4d1117a61ad3b850 | 507daab36fdc1be0008d5dbcdb4402e299f6da8a | /mysite/mysite/urls.py | 461a1e33e3c7ee75eabf8812862d0bc858b88bf1 | [] | no_license | atmosphere1365/mastered | 057cf80b9969bfba690aef4009e4f6b39703471d | b777728eb656b4fc209c1cb2592ed35fc0864b83 | refs/heads/master | 2020-09-16T09:35:50.941166 | 2019-11-24T11:24:43 | 2019-11-24T11:24:43 | 223,729,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 314 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('grappelli/', include('grappelli.urls')), # grappelli URLS
path('admin/', admin.site.urls),
path('', include('mainApp.urls')),
path('007', include('blog.urls')),
path('news/', include('news.urls')),
] | [
"you@example.com"
] | you@example.com |
6f1a8f80c6cc21deb42ee605ff08484974623be8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_interviewed.py | 661432027101ffd3f901f39af597b5a42f7dd1a0 | [
"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 | 261 | py |
from xai.brain.wordbase.verbs._interview import _INTERVIEW
#calss header
class _INTERVIEWED(_INTERVIEW, ):
def __init__(self,):
_INTERVIEW.__init__(self)
self.name = "INTERVIEWED"
self.specie = 'verbs'
self.basic = "interview"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
3c4f0d6329fae0254ec8bb1115b4712d8a53553f | a8314fb4e71a229f2288ca0588bbb3ebd58b7db0 | /leet/number_of_islands/test.py | 2920c806eccab6da138ebbf27ddc5c6f99a14a53 | [] | no_license | blhwong/algos_py | 6fc72f1c15fe04f760a199535a0df7769f6abbe6 | 9b54ad6512cf0464ecdd084d899454a99abd17b2 | refs/heads/master | 2023-08-30T17:45:51.862913 | 2023-07-24T18:56:38 | 2023-07-24T18:56:38 | 264,782,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | from leet.number_of_islands.main import Solution
s = Solution()
def test_1():
grid = [
['1','1','1','1','0'],
['1','1','0','1','0'],
['1','1','0','0','0'],
['0','0','0','0','0']
]
assert s.numIslands(grid) == 1
def test_2():
grid = [
['1', '1', '0', '0', '0']... | [
"brandon@yerdle.com"
] | brandon@yerdle.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.