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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dd4bd950a39ea20b33814bbe7e882ba1ea2b1bc3 | f4e8c8294b23fe070a763b527bc2f75ccdebaab1 | /leetCodePython/83.remove-duplicates-from-sorted-list.py | f829f2439febd64241b2d38c02332bae0a292c3b | [] | no_license | HOZH/leetCode | aff083b33e9b908490e7e992a0ad192ee31cc2e5 | a0ab59ba0a1a11a06b7086aa8f791293ec9c7139 | refs/heads/master | 2023-08-17T08:44:07.884861 | 2023-08-08T19:47:42 | 2023-08-08T19:47:42 | 136,558,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 733 | py | #
# @lc app=leetcode id=83 lang=python3
#
# [83] Remove Duplicates from Sorted List
#
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def deleteDuplicates(self, head):
current = head
if current:
... | [
"hong.zheng@stonybrook.edu"
] | hong.zheng@stonybrook.edu |
7453eac3ad4a2c9b553a59c2694a0a7c020a5d8a | 0343de40021f8dd72fb9a6cb31b5d2f24ccd7971 | /utilities/wake_models_mean/util.py | 17331324b776f80e56a804d954b718b2ef2a65bd | [] | no_license | sebasanper/WINDOW_dev | 47ae9252e6fadb2a3b1a0aae3383681a7955f4ea | 3c6437a777f2fc3be1dfd3d53b5d2ed25281c55c | refs/heads/master | 2021-01-01T19:45:02.555727 | 2018-05-21T20:27:56 | 2018-05-21T20:27:56 | 98,670,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | def interpolate(minx, miny, maxx, maxy, valx):
# print maxx, minx
return miny + (maxy - miny) * ((valx - minx) / (maxx - minx))
| [
"s.sanchezperezmoreno@tudelft.nl"
] | s.sanchezperezmoreno@tudelft.nl |
f98901e3b2917cb13dcbd40a6f3479c0b87c6840 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03131/s120646921.py | 522b4214f36258ffb62506f2aa2bb22339794d1f | [] | 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 | 260 | py | K,A,B= map(int,input().split())
ans = 1
if (B-A) <= 2:
ans += K
else:
if B - A <=2:
ans += K
else:
ans += A - 1
if (K-(A-1)) % 2 == 0:
ans += (((K-(A-1))//2)) * (B - A)
else:
ans += (((K-(A-1))//2)) * (B - A) + 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ce5e7eeed67ed5e94efb5bf6fec120007d0c6a1f | b35f86d9746f782dca05765a3c2d31e1e7a511b8 | /src/tubesite/models.py | df26a20d6bdd7017711e39e94258e224d255cf08 | [] | no_license | jccode/cutetube | 5f28f5c242c5213c91590ef82f97934257cb2b42 | 0a91745ca9adccab68ffb3d742d8fcc5c4b52f2b | refs/heads/master | 2020-12-13T21:47:30.129097 | 2017-07-31T01:36:53 | 2017-07-31T01:36:53 | 95,474,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils.safestring import mark_safe
# from django.contrib.postgres.fields import JSONField
# from jsonfield import JSONField
from .utils import JSONField
from filer.fields.image import FilerImageField
# Create your... | [
"junchangchen@gmail.com"
] | junchangchen@gmail.com |
6f96e83991bae143e3344852c09a992a151e54a7 | fe3759747f709a41e5ff3acf78872dd6b74f772a | /samples/openapi3/client/petstore/python-experimental/petstore_api/model/dog_all_of.py | 82cee4c2f86b5e935a3f34a13f73fa89ec48000a | [
"Apache-2.0"
] | permissive | Januson/openapi-generator | c50e3b52765e41adba9712d745918cea39dfa490 | 5b6b4c9d4829b57716741dc35b3f1033e5483784 | refs/heads/master | 2022-10-19T04:16:38.042495 | 2022-04-23T08:42:21 | 2022-04-23T08:42:21 | 238,659,737 | 0 | 0 | Apache-2.0 | 2023-09-05T01:01:23 | 2020-02-06T10:12:38 | Java | UTF-8 | Python | false | false | 1,945 | py | # coding: utf-8
"""
OpenAPI Petstore
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501
The version of the OpenAPI document: 1.0.0
Generated by: https://openapi-generator.tech
"""
... | [
"noreply@github.com"
] | Januson.noreply@github.com |
0a4ff76290de76fbad0a9754c6e94dc235163730 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/ZYXEL-DHCP-SNOOPING-MIB.py | cc4b139772e44793ddbbd362a97dd1e097633f21 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 16,635 | py | #
# PySNMP MIB module ZYXEL-DHCP-SNOOPING-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-DHCP-SNOOPING-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:43:18 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
3492b0d6ce2c684a730e99b0b923f6eb900e6355 | b30216e0e7d5181da3430087c1deb121f0c58dd5 | /Accounts/migrations/0003_usernames_image.py | c4ccec940e692346590414372a99b33347dc62fd | [
"MIT"
] | permissive | kurianbenoy/ShareGoods | ac360f7523636f3d0f5c758aac19ccd7de6769d8 | 5231a0ec2ad3ef22fa5da1c2ab2ba5a654ba75e0 | refs/heads/master | 2020-03-24T12:08:16.263168 | 2018-08-10T17:48:24 | 2018-08-10T17:48:24 | 142,704,517 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-07-29 03:24
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Accounts', '0002_auto_20180729_0818'),
]
operations = [
migrations.AddField... | [
"kurian.pro@gmail.com"
] | kurian.pro@gmail.com |
0ecfe9bc8614ef986ade28e1ce80d6929d627709 | 187ba0b860c1311e1e931825ad207b57d673d46d | /docs/conf.py | e64e7747d4c0c6f6ba851b43f3e40d6cbf5cbc0e | [
"MIT"
] | permissive | acgh213/jaraco.nxt | 698a230f7fd80e046741300182f283065900a3cd | 954f7dc95ac7c82e06b8d21a26b5d654ced31c9f | refs/heads/master | 2021-05-30T02:10:10.287918 | 2015-11-30T01:14:47 | 2015-11-30T01:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import setuptools_scm
extensions = [
'sphinx.ext.autodoc',
]
# General information about the project.
project = 'jaraco.nxt'
copyright = '2015 Jason R. Coombs'
# The short X.Y version.
version = setuptools_scm.get_version(root='..', relative_to=__file__)
# The full... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
407869ec28a72c22c3176031a91d984739fd1356 | a0757f4148f4bcc0ae2a499267c884e2c04c389d | /posts/migrations/0001_initial.py | 9da7662c853bb3787e6740e2f5c0c1441eb711f9 | [] | no_license | hkailee/sequencinggo | 7a1a11889e46b4b4aba0aeda6e50ff5d74c8f65b | e118f5815ac6ad41053a7edcaacb00f4a414f2a2 | refs/heads/master | 2021-01-21T03:21:46.672069 | 2016-12-03T05:58:33 | 2016-12-03T05:58:33 | 69,310,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,570 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
import taggit.managers
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),... | [
"leehongkai@gmail.com"
] | leehongkai@gmail.com |
b886898739062d97e735446d5063b42c56bd703c | b385f39c5b701fb6f22796ab951872257ae8398a | /exercicios-secao04/exercicio10.py | 366c4faf0f212965a046781b9c4425271372735f | [
"MIT"
] | permissive | EhODavi/curso-python | 5c97a6913bad198ae590519287ed441c95399d80 | cf07e308be9d7516f2cfe7f21c539d214c836979 | refs/heads/main | 2023-08-07T13:44:46.608118 | 2021-06-14T21:40:50 | 2021-06-14T21:40:50 | 356,542,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | velocidade_km_h = float(input('Informe a velocidade em km/h: '))
velocidade_m_s = velocidade_km_h / 3.6
print(f'{velocidade_km_h} km/h corresponde à {velocidade_m_s} m/s')
| [
"davi.miau@gmail.com"
] | davi.miau@gmail.com |
c8e3877940df449f6b89f121031545c98b5c2f26 | 4a36b5979b0753b32cff3956fd97fb8ed8b11e84 | /0.22/_downloads/6448e1cdd25e7f92168993a74b81b311/plot_psf_ctf_vertices.py | 26db8d8e8b32a53e728539452c6217f69cca5f9b | [] | permissive | mne-tools/mne-tools.github.io | 8aac7ae10bf2faeeb875b9a351a5530dc0e53154 | 495e878adc1ef3374e3db88604504d7542b01194 | refs/heads/main | 2023-09-03T07:06:00.660557 | 2023-09-03T04:10:18 | 2023-09-03T04:10:18 | 35,639,371 | 12 | 16 | BSD-3-Clause | 2023-05-05T19:04:32 | 2015-05-14T22:04:23 | HTML | UTF-8 | Python | false | false | 3,440 | py | # -*- coding: utf-8 -*-
"""
Plot point-spread functions (PSFs) and cross-talk functions (CTFs)
==================================================================
Visualise PSF and CTF at one vertex for sLORETA.
"""
# Authors: Olaf Hauk <olaf.hauk@mrc-cbu.cam.ac.uk>
# Alexandre Gramfort <alexandre.gramfort@inr... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
0ed63b19ed685dfb761fcbc978a8607fd3f3bd7f | 4054fde482f06ba5566ff88ff7c65b7221f4fd91 | /forml/io/dsl/_struct/frame.py | 2709983fa18e1430abe162e403203b24d40133fd | [
"Apache-2.0"
] | permissive | formlio/forml | e54278c2cc76cdfaf9d4feb405bd1a98c6dcd3e6 | 373bf4329338a9056e43966b8cfa458529ed2817 | refs/heads/main | 2023-06-07T21:38:34.952453 | 2023-05-28T21:53:47 | 2023-05-28T21:53:47 | 310,066,051 | 108 | 15 | Apache-2.0 | 2023-05-28T19:38:16 | 2020-11-04T17:04:13 | Python | UTF-8 | Python | false | false | 31,539 | 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... | [
"antonymayi@yahoo.com"
] | antonymayi@yahoo.com |
a0be7c11d79e85d00ece19127980488c6049cee5 | 2933b8f123981f88e576e7ba5baa5143c3667019 | /_testing/utils/subscription.py | cce06a6f7d97a2c2279aed54db1c9095aa986f69 | [
"MIT"
] | permissive | MatthiasLienhard/pysmartnode | c6a9b4819cddcf1b928eecc385cef087a832e5cb | f853efb3378d881dd2e62eec2ca1621898953c19 | refs/heads/master | 2020-09-04T09:31:45.302398 | 2019-07-07T06:14:55 | 2019-07-07T06:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | '''
Created on 18.02.2018
@author: Kevin K�ck
'''
__version__ = "0.2"
__updated__ = "2018-03-09"
import gc
from pysmartnode.utils.wrappers.timeit import timeit
memory = gc.mem_free()
gc.collect()
def printMemory(info=""):
global memory
memory_new = gc.mem_free()
print("[RAM] [{!s}] {!s}".format(info, ... | [
"kevinkk525@users.noreply.github.com"
] | kevinkk525@users.noreply.github.com |
f72325a934916e12a434f42884e773a3cba383ff | 18e10db2ac29420dadf40fc1185091a1e827d6b8 | /tools/auto_freeze.py | 7585016ac6fde70896d9e67ce36bcbfb70d0f881 | [
"Apache-2.0"
] | permissive | liuxiaoliu321/faceboxes-tensorflow | a853fb86b8c1ee895028e4ce35f141f8f3ff158c | 39d12704cf9c1da324bb439b6e8a72c8b4d01d34 | refs/heads/master | 2020-08-08T08:05:57.379527 | 2019-09-25T04:06:25 | 2019-09-25T04:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py |
import os
import tensorflow as tf
os.environ["CUDA_VISIBLE_DEVICES"] = "-1"
model_folder = './model'
checkpoint = tf.train.get_checkpoint_state(model_folder)
##input_checkpoint
input_checkpoint = checkpoint.model_checkpoint_path
##input_graph
input_meta_graph = input_checkpoint + '.meta'
##output_node_names
output_n... | [
"2120140200@mail.nankai.edu.cn"
] | 2120140200@mail.nankai.edu.cn |
6164a6e1eeaf57eb5e6c08c6f244aee8f956ada5 | 36943501114b8c6bfd59d248507140956a0d7c29 | /PSCC20/diagram2.py | 08914fee7ab952f524ee6b2c67f9f772837cc2c6 | [] | no_license | Constancellc/Demand-Model | 9c45ea1a9d9779c9da093f221a5851b168a45eac | e261371b7aa9aea113617a7cbe8176a5c5d9591c | refs/heads/master | 2021-01-13T10:32:40.243847 | 2020-08-21T09:49:14 | 2020-08-21T09:49:14 | 76,476,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,767 | py | import matplotlib.pyplot as plt
import numpy as np
import random
from scenarios import generate
from cvxopt import matrix, spdiag, sparse, solvers, spmatrix
scen = generate(5,10)
def optimise(scen,en):
Q = spdiag([1.0]*48)
p = [0.0]*48
for i in range(len(scen)):
for t in range(48):
... | [
"constancellc@gmail.com"
] | constancellc@gmail.com |
96651c78fdaf73c97fb27cee2bf6e03ac6fc686e | 4fc9c61450de38ce003e20e0452af3e636f28be3 | /language_model/layer/dense.py | 44fac721feea8ae136f6de4d920fb94e1aa7ae72 | [
"Apache-2.0"
] | permissive | SunYanCN/language_model_tf | a6c453c3c3aa1b34ac240cff94674e9eaa679ec9 | d39f335e5410d2bd7a23760dedbfcca36338d591 | refs/heads/master | 2020-05-02T03:58:59.634898 | 2019-05-24T20:31:52 | 2019-05-24T20:31:52 | 177,740,244 | 0 | 0 | Apache-2.0 | 2019-12-30T06:17:43 | 2019-03-26T07:56:25 | Python | UTF-8 | Python | false | false | 12,831 | py | import numpy as np
import tensorflow as tf
from util.default_util import *
from util.language_model_util import *
from layer.basic import *
__all__ = ["Dense", "DoubleDense", "StackedDense", "StackedDoubleDense"]
class Dense(object):
"""dense layer"""
def __init__(self,
unit_dim,
... | [
"mizheng@microsoft.com"
] | mizheng@microsoft.com |
4bb38afed0529d45e57f2e7e834157f55f5bfa9c | c660ae5554a682790061c4ed62a4bc19b4890250 | /PruDigital/Django_project/Testform/student_formapp/views.py | 580578a31939097c7bf71f85a499323d13acb9f1 | [] | no_license | saurabhshukla01/Best-wsbsite | 4a63d8e21307cf7f93e240e7ef871477a23cd912 | 04f5baba1807f71309bebfd2b6675ff408b7e25e | refs/heads/master | 2022-05-30T03:32:03.609791 | 2020-04-21T09:06:23 | 2020-04-21T09:06:23 | 257,498,568 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
'''
def register(request):
return HttpResponse('index form')
'''
def register_student(request):
return render(request,'register_student.html')
def show_student(request):
stu_dict ={}
stu_fname= request.POS... | [
"ss7838094755@gmail.com"
] | ss7838094755@gmail.com |
f72a1cbc16ee408ae31c70d2d7b8fbbc2a467f92 | d5125ccc1ef9915ffd72c575225a620aac5cb347 | /TriAquae/TriAquae/sbin/tri_service.py | 6a274b9873ac6a2e90ebaec04a55f064edb39479 | [] | no_license | yurui829/stefanbo | 2231074e0e4f04438aff647563299ad1947bd760 | 449f862c81a3b4ae3e079ecb4a15b3a5cbcca701 | refs/heads/master | 2021-01-24T23:42:52.064783 | 2014-07-02T03:05:04 | 2014-07-02T03:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,813 | py | #!/usr/bin/env python
import os,sys,time
import logger,tri_config,tri_module
import django
triaquae_path = tri_config.Working_dir
working_dir = logger.cur_dir
status_check_script = 'host_status_check.py'
snmp_monitor_script = 'multiprocessing_snmpMonitor.py'
service_log = '%s/tri_service.log' % tri_config.Log_dir
snmp... | [
"stefan_bo@163.com"
] | stefan_bo@163.com |
3014be40eabec0a1d1eeadd68d766eda03badafa | 6e42ce3512cefa970163bb105a736eba5c9bf902 | /cw/cw_9/cw_9_1_1.py | fa811bd2a26807f7c1b7471c3b21ca19b929c6d0 | [] | no_license | SKO7OPENDRA/gb-algorithm | 32f483e095b57d8c71cd5de9fa9bd2c00f0b6bc1 | 366ae8e58beae267d84baf8a28e6d4055e3a5bdb | refs/heads/master | 2020-12-26T22:40:34.640445 | 2020-02-27T16:16:44 | 2020-02-27T16:16:44 | 237,667,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # Что такое дерево
# Классификация дерева
# Создание деревьев в Python
# Самый простой способ создать дерево - создать свой собственный класс
from binarytree import tree, bst, Node, build
class MyNode:
def __init__(self, data, left=None, right=None):
self.data = data
self.left = left
sel... | [
"58439768+SKO7OPENDRA@users.noreply.github.com"
] | 58439768+SKO7OPENDRA@users.noreply.github.com |
83715fa1d47f3fc83e0b62ba1acc085c58e59ecd | 40c2bce56832d97797c115f60d1e0459fd4ebf93 | /Eclipse_Project_2/Single_Ton_Pattern_Class/test_exampleOne.py | dc3a8820461af7567fb646cf3d32ba7fabdd7054 | [] | no_license | amanoj319319319/Eclipse_Python_LastSeleniumTest | 0be2e7f615160248f329b4df0e9d109612b29560 | 4d0978e4c2dfe9c3a9d4b429f7ff6340278c0252 | refs/heads/master | 2023-04-27T09:14:38.726807 | 2021-05-19T08:18:40 | 2021-05-19T08:18:40 | 267,038,244 | 0 | 0 | null | 2021-05-19T08:17:45 | 2020-05-26T12:35:36 | Python | UTF-8 | Python | false | false | 2,889 | py | #working very fine
'''
import pytest
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
@pytest.mark.usefixtures("setup")
class TestExampleOne:
def test_title... | [
"a.manoj16@gmail.com"
] | a.manoj16@gmail.com |
5f9b268af9cb8089a970308ee8aa501616c68bbc | 6d80ce7a1f44ddf5741fd190ddfe0d9be8e5f162 | /model/detection_model/PSENet/util/__init__.py | 0851e4c84d2992a68efd02e1726176aecf9e3fbb | [
"MIT"
] | permissive | dun933/FudanOCR | dd8830ca4b8ebb08acd31326fcf5aa3c961886a0 | fd79b679044ea23fd9eb30691453ed0805d2e98b | refs/heads/master | 2021-04-03T19:50:47.646099 | 2020-03-16T08:43:59 | 2020-03-16T08:43:59 | 248,391,401 | 1 | 0 | MIT | 2020-03-19T02:23:11 | 2020-03-19T02:23:10 | null | UTF-8 | Python | false | false | 1,335 | py | import log
import dtype
# import plt
import np
import img
_img = img
import dec
import rand
import mod
import proc
# import test
import neighbour as nb
#import mask
import str_ as str
import io as sys_io
import io_ as io
import feature
import thread_ as thread
import caffe_ as caffe
# import tf
import cmd
import ml
imp... | [
"576194329@qq.com"
] | 576194329@qq.com |
1ccd46595657e4e3591261fd55aab390e27ec8a7 | bc68b28995103a45c5050a418a009f5f0c075bdc | /Rosalind1/Prob26/deBruijn.py | 201c46d46d9c2452c65c16307a2d005cd80b2a5e | [] | no_license | kedarpujara/BioinformaticsAlgorithms | 71ca191c18ff8260d9edcd594c337b282b2a7188 | 4a8919d03af767704525e8a5610af5b811d5c873 | refs/heads/master | 2020-03-13T08:41:45.361941 | 2018-04-25T18:39:00 | 2018-04-25T18:39:00 | 131,048,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | class Vertex:
def __init__(self, n):
self.name = n
self.neighbors = list()
def add_neighbor(self, v):
if v not in self.neighbors:
self.neighbors.append(v)
self.neighbors.sort()
class Graph:
vertices = {}
def add_vertex(self, vertex):
if isinstance(vertex, Vertex) and vertex.name not in self.verti... | [
"kedarpujara@gmail.com"
] | kedarpujara@gmail.com |
620070250e2f6b411843401f50a7971be8f365d8 | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp164_2500.py | 576f14d7c5a41ab258af91170ba177c434a68fea | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,793 | py | ITEM: TIMESTEP
2500
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-3.3219773734549278e+00 5.0521977373447719e+01
-3.3219773734549278e+00 5.0521977373447719e+01
-3.3219773734549278e+00 5.0521977373447719e+01
ITEM: ATOMS id type xs ys zs
94 1 0.0295607 0.284641 0.112956
866 1 0.0661487 0.218979 0.102506
1641 1 0.0... | [
"scheuclu@gmail.com"
] | scheuclu@gmail.com |
2cac0ac3790b90127a38572fbc918208c45b1259 | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /buildtools/third_party/libc++abi/libc++abi.gyp | c3e6c07e1f9e77e7a1da0892ab9edadcfe7a0916 | [
"NCSA",
"MIT",
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 1,576 | gyp | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'libc++abi',
'type': 'static_library',
'toolsets': ['host', 'target'],
'dependencies=': [],
... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
6e082aea8360e7905c61b42c01eb77a38ed8b56c | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/documentdb/v20191212/list_database_account_keys.py | f639451de463da06e7decaaaabefad7426574541 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,464 | 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
from ... import _utilities, _tables
__a... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
2337d1dc5879ef718152539d26f659496418ac42 | 7b75735b6d894d0c3bb40d657dc4c4eb436716c1 | /decompiled_code/library/encodings/mac_cyrillic.py | 107b50c3a389093639823c79c0bad8ba23a86f8b | [] | no_license | anton-shipulin/TRISIS-TRITON-HATMAN | fe54fb994214e35f80d39c26fbc5289f0b57b2bd | 1b167a9414b479331fb35a04eace75bb0e736005 | refs/heads/master | 2020-04-06T23:57:38.833044 | 2018-11-16T22:12:01 | 2018-11-16T22:12:01 | 157,886,273 | 3 | 0 | null | 2018-11-16T15:30:59 | 2018-11-16T15:30:58 | null | UTF-8 | Python | false | false | 2,383 | py | # uncompyle6 version 2.14.1
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.12 (default, Nov 19 2016, 06:48:10)
# [GCC 5.4.0 20160609]
# Embedded file name: encodings\mac_cyrillic.pyc
# Compiled at: 2016-06-25 21:46:06
""" Python Character Mapping Codec mac_cyrillic generated from 'MAPPINGS/VENDORS/APPLE/C... | [
"ICSrepo"
] | ICSrepo |
7d2f40e4bd6adcc02a6d9b06df433d2786224b34 | 78a179ad824b6c70a33e0c6885e8d15e91cdbbdc | /correlation_sgd.py | a45a05f571ef8b9b87fc18bf8f728e5ced0288e2 | [] | no_license | bio-ontology-research-group/pgsim | 50ea74c9a0505e1a737a62441833aa6e3f2a8b8c | 4461828923431235fb6bcd65025aff6522fd267b | refs/heads/master | 2020-04-02T02:38:49.243292 | 2017-02-02T11:34:44 | 2017-02-02T11:34:44 | 49,642,348 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | #!/usr/bin/env python
import os
import sys
import numpy as np
from scipy.stats import spearmanr, pearsonr
from data import (
get_total_average_sims,
get_diff_average_sims,
DATA_ROOT)
def get_correlations(measures, filename):
'''
Calculates spearman and pearson correlations for
annotation size ... | [
"coolmaksat@gmail.com"
] | coolmaksat@gmail.com |
8b06cec79bca3f45e98d3df7c4466d5424a30695 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/62/usersdata/261/29578/submittedfiles/ex1.py | a8820f3dba06441ddcf5f5bb2dec3cd767f23e17 | [] | 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 | 333 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = int(input('Digite a: '))
b = int(input('Digite b: '))
c = int(input('Digite c: '))
#COMECE A PARTIR DAQUI!
delta = ((b*b) - (4*a*c))**(1/2)
if delta <0:
print (str("SRR"))
else:
x1 = (-b+delta)/2*a
x2 = (-b-delta)/2*a
print ("x1=",x1)
prin... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
edda0fd39872ba56cf1cbc2084decebee6a9348f | 6737ca32fe093c6ac6b203fc71dbc177853bfaee | /curate_orthogene/scripts/calc_identity_from_orthologs.py | 5d3aa1e3d635a4b1c9a3209b01f684125c133c40 | [] | no_license | lhui2010/bundle | 56a47bcdd2d41718b51da8c8cf23ab43577dfb4e | e31c8f2f65260ceff110d07b530b67e465e41800 | refs/heads/master | 2022-08-31T17:12:26.081984 | 2022-08-03T08:37:38 | 2022-08-03T08:37:38 | 74,002,474 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | #!/usr/bin/env python
import logging
import os
import sys
from multiprocessing import Pool
import argparse
import subprocess
#TODO
#Remove global variable
#OptParser
usage = """Calculate Identity from orthologs
Usage:
{} -o workdir REF_TAG Ortho_File QRY.fa REF.fa >A188.identity
""".format(__file__)
parser = a... | [
"lhui2010@gmail.com"
] | lhui2010@gmail.com |
77674c66ad7d3b0b071716b52e09cf66241e1953 | 7abbcd16dcf2e639e53665d50ec113e1374b79eb | /checkout/urls.py | c05c00460f8ef6e05ed8dd59477e3f5d3f254c8b | [] | no_license | srajsonu/ROIIM-Assignment-Paysafe | ab6f160641adb69cef2f78bde594322f286ff089 | 1d9586e29f1871e4e9577ff2befd594c8a9cbbe4 | refs/heads/main | 2023-01-04T23:42:53.403941 | 2020-10-31T17:17:57 | 2020-10-31T17:17:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from django.urls import path
from . import views
app_name = 'checkout'
urlpatterns = [
path('checkout/', views.checkout, name='checkout'),
path('payment_successful/', views.payment_successful, name='payment_successful')
]
| [
"srajsonu02@gmail.com"
] | srajsonu02@gmail.com |
647f3deda5f5d676971bc2a4b5ae8dc0768e43ac | fcc0ef512e66483d4f14de8363baa79fbe4d4ab5 | /Homework/HW4-Sentiment2/CMP462 HW04 Data/python/NaiveBayesWithNegationFeature.py | e58029d4da9b90ad9065ed59fbba57e8ca274321 | [] | no_license | SeanCherngTW/Stanford-NLP | 0831ee201dcba514dec1011e453888956c07eb40 | 41955ba4d8f5695086ace50c1bbe0cef3f9945f0 | refs/heads/master | 2021-09-07T04:43:41.262922 | 2018-02-17T16:03:21 | 2018-02-17T16:03:21 | 119,244,421 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,695 | py | # NLP Programming Assignment #4
# NaiveBayesWithNegationFeature
# 2012
#
# The area for you to implement is marked with TODO!
# Generally, you should not need to touch things *not* marked TODO
#
# Remember that when you submit your code, it is not run from the command line
# and your main() will *not* be run. To be sa... | [
"seancherng.tw@gmail.com"
] | seancherng.tw@gmail.com |
b29c08e430263fddd494f44cf1aa620f7cdf25de | 5b70fbd53b534306c146ffb98a0f99d2343a948f | /src/Python/Problem99.py | 8e774a09fb35eba85b4bcfd02776deb92c9fcb7f | [] | no_license | aniruddhamurali/Project-Euler | 1f4ff3aa1e9c4efbc2a85026821e19a28b5edf90 | 408b3098fbc98ff3954679602c0468ddb56ea0ac | refs/heads/master | 2020-03-20T23:07:22.178103 | 2018-07-27T01:40:46 | 2018-07-27T01:40:46 | 137,830,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | def max_exp():
name = "Problem99.txt"
file = open(name, 'r')
maxNum = None
track = 1
for line in file:
comma = line.find(',')
base = line[:comma]
exp = line[comma+1:]
base = float(base)
exp = (int(exp))/700000
num = float(base**exp)
if maxNum... | [
"aniruddha.murali@gmail.com"
] | aniruddha.murali@gmail.com |
4c7b091a0abe71c1c798652c3b184644b1afa2b9 | 325bee18d3a8b5de183118d02c480e562f6acba8 | /india/india_c/india/ScriptDir/Initialization.py | 6c7a76d5cc4ccf59d06d3fe9407de58d01d1dac9 | [] | no_license | waynecanfly/spiderItem | fc07af6921493fcfc21437c464c6433d247abad3 | 1960efaad0d995e83e8cf85e58e1db029e49fa56 | refs/heads/master | 2022-11-14T16:35:42.855901 | 2019-10-25T03:43:57 | 2019-10-25T03:43:57 | 193,424,274 | 4 | 0 | null | 2022-11-04T19:16:15 | 2019-06-24T03:00:51 | Python | UTF-8 | Python | false | false | 508 | py | #coding:utf-8
import shutil
import os
class Initialization(object):
def InitializeMain(self):
shutil.rmtree('D:\item\OPDCMS\listed company update\india\data\zip/full')
shutil.rmtree('D:\item\OPDCMS\listed company update\india\data\pdf/full')
print("*"*93)
for i in range(2):
... | [
"1370153124@qq.com"
] | 1370153124@qq.com |
de126b11e439484e7edf1502679f25c9f872f105 | fba9dd10028ae22eadc6da307f6df66d3c658d2e | /Modulo02/Desafio037-Condicoes-Aninhadas.py | 4e3fbc6f1abb423c280f4450d0de158de58b86eb | [] | no_license | GabrielCardoso2019/Curso-de-Python | bbf52330236a5847e6c48fe8ed01efd767a2f92e | 2e3b4066d72d0dc599aa68b8ee2ab2571324a372 | refs/heads/master | 2023-02-25T03:41:35.906086 | 2021-02-01T17:31:57 | 2021-02-01T17:31:57 | 335,028,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | num = int(input('Digite um número inteiro: '))
print('-=-' * 20)
print('''Escolha uma das bases para conversão:
[ 1 ] Converter para BINÁRIO
[ 2 ] Converter para OCTAL
[ 3 ] Converter para HEXADECIMAL''')
opcao = int(input('\nEscolha uma opção: '))
print('-=-' * 20)
if opcao == 1:
print('{} converção para BINÁRI... | [
"gabrielcardososs2016@hotmail.com"
] | gabrielcardososs2016@hotmail.com |
858105027bcf88eca80662380259cb50b100db98 | 9405aa570ede31a9b11ce07c0da69a2c73ab0570 | /aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/DescribeDrdsParamsRequest.py | 1b1483313ef380dd030b344e973375673ae5b08f | [
"Apache-2.0"
] | permissive | liumihust/aliyun-openapi-python-sdk | 7fa3f5b7ea5177a9dbffc99e73cf9f00e640b72b | c7b5dd4befae4b9c59181654289f9272531207ef | refs/heads/master | 2020-09-25T12:10:14.245354 | 2019-12-04T14:43:27 | 2019-12-04T14:43:27 | 226,002,339 | 1 | 0 | NOASSERTION | 2019-12-05T02:50:35 | 2019-12-05T02:50:34 | null | UTF-8 | Python | false | false | 1,523 | 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 ... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
d5ff0cf688e5fbed28f798dfc48819ae4b88c02e | 53d4a3f2ec628c5482c78580064b5a36f85b5a70 | /spider/__init__.py | fb47e17d5503683245603b58b54feaf52009f917 | [
"BSD-2-Clause"
] | permissive | yaoxiaokui/PSpider | e4e883b4c01abd1f40e99473e1164b9f8508799f | 6b1ea034541ea0317aae48d800e348a9a90ff798 | refs/heads/master | 2020-03-21T12:29:21.859903 | 2018-06-13T08:38:37 | 2018-06-13T09:20:45 | 138,554,987 | 0 | 1 | BSD-2-Clause | 2018-06-25T06:55:08 | 2018-06-25T06:55:07 | null | UTF-8 | Python | false | false | 284 | py | # _*_ coding: utf-8 _*_
"""
define WebSpider, WebSpiderDist, and also define utilities and instances for web_spider
"""
__version__ = "1.3.0"
from .utilities import *
from .instances import Fetcher, Parser, Saver, Proxieser
from .concurrent import TPEnum, WebSpider, WebSpiderDist
| [
"qixianhu@qq.com"
] | qixianhu@qq.com |
1736498bb96ef9719b6fdac3e8f5e3b846b361c3 | 947ccd64444a225caec6811a74747bd070a3cfe6 | /shop/models.py | 9f9b9617feb48ca113d8c2ff15c2855bf8743cf7 | [] | no_license | mishaukr7/eschools | a6bca6118f62af6d90badd77848311a7bc3964cf | 5dd5bf07901a6871470b54df763164dda67c5f19 | refs/heads/master | 2020-04-10T00:50:41.555444 | 2019-01-08T09:14:20 | 2019-01-08T09:14:20 | 160,697,869 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | from django.db import models
# Create your models here.
class News(models.Model):
title = models.TextField(max_length=400)
content = models.TextField(max_length=4096)
video = models.URLField(blank=True, null=True)
| [
"mishaukr22@gmail.com"
] | mishaukr22@gmail.com |
9d8166fa1ed04426e1ea570b534c19fd26448bfd | f636e71f45170e6cf197bcfc14a50af45fd828ed | /Lesson 7/examples/example1.py | 50389e99a91e8bbac016e25a61b26af0bf0949bc | [] | no_license | mcgokable/Cources | 872640c62fdb82f19ec7f5d20700fed85c4a3447 | 960ef7d4e72af0ec29c9a78220b44873f2ef2d35 | refs/heads/master | 2022-04-06T23:35:30.477455 | 2019-11-29T13:22:40 | 2019-12-05T07:31:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import smtplib
from email.message import EmailMessage
server = smtplib.SMTP()
server.connect('localhost')
if __name__ == '__main__':
message = EmailMessage()
message['From'] = input('Email From: ')
message['To'] = input('Email To: ')
message['Subject'] = input('Subject: ')
message.set_content(inp... | [
"19941510metalhead@gmail.com"
] | 19941510metalhead@gmail.com |
4fe960c3b3305e438c3d415d14a910f867aea18b | dbb32a7d5b96a94533b27a6ccf2474c660a863b7 | /containers/user/sources/utils/types/component/identity.py | fcfde17dd53b6c70d4fcd4381112bc7db3a823c4 | [] | no_license | ankurhcu/FogBus2 | 772e8346c5e01e2aa8a02da9ef91fd696dd587a7 | 2cefabdd1d131fc8e9015ca31d414665e6014a69 | refs/heads/main | 2023-08-07T15:33:54.039724 | 2021-09-21T05:02:49 | 2021-09-21T05:02:49 | 410,610,212 | 1 | 0 | null | 2021-09-26T16:57:23 | 2021-09-26T16:57:22 | null | UTF-8 | Python | false | false | 2,321 | py | from .role import ComponentRole
from ..basic import Address
class ComponentIdentity:
def __init__(
self,
addr: Address,
role: ComponentRole = ComponentRole.DEFAULT,
hostID: str = None,
componentID: str = None,
name: str = None,
na... | [
"plocircle@live.com"
] | plocircle@live.com |
c4cfc248eac8fcc9673f45a9e0869b6854d36951 | 8eff7e195a9cb4aba3700ff933782240fc5dfacf | /context-managers/change_path_context.py | bd75c25b168780b2de840c23346872b737fa9309 | [] | no_license | ThiaguinhoLS/Code | 58ec668df799f10b245267c3184c138d8434878c | 8b3c6fb9eeb1479ccf92ae05ed578a9c44fa7138 | refs/heads/master | 2020-03-22T01:01:07.081909 | 2018-07-19T04:23:48 | 2018-07-19T04:23:48 | 139,278,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # -*- coding: utf-8 -*-
from contextlib import contextmanager
import os
@contextmanager
def change_path(path):
'''
Altera o path atual e depois do fechamento do contexto retorna o path
Como usar:
with change_path('../'):
do something
'''
actual = os.getcwd()
os.chd... | [
"tthiaguinho638@gmail.com"
] | tthiaguinho638@gmail.com |
4c05bef3beda374eb0b8d163120cc24ec35bae39 | cbbdbdfa3d69a11de5dbd80f860986c97ec10b67 | /test/validate/test_base.py | 279edbf7dd38a809869867722912f8a8cb73961a | [
"MIT"
] | permissive | lokeshmeher/schema | 757cbc837c91f124774d3a1562ceccc255f17026 | 3c7478d27f87a2f1a7f2c2da67beced4a76704cc | refs/heads/master | 2021-06-04T18:50:42.461646 | 2016-02-24T04:15:04 | 2016-02-24T04:15:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,512 | py | # encoding: utf-8
from __future__ import unicode_literals
import re
from marrow.schema import Attribute, Container
from marrow.schema.compat import unicode
from marrow.schema.testing import ValidationTest
from marrow.schema.validate.base import *
class TestAlways(ValidationTest):
validator = Always().validate
va... | [
"alice@gothcandy.com"
] | alice@gothcandy.com |
69056d35e2d53095946c30eb093026ce866e92e3 | 72f37dabe9cddde460c5f5afad802d7d3d972af7 | /data_storage/transform.py | 0ac0ff439cc65b183b2945f6b93d14ac2e70b27c | [
"Apache-2.0"
] | permissive | dbca-wa/data-storage | fdf6de6735f9e18688ad8a3d1755295b3c11fa2d | ff8c93978d78042117a9c04217a31c3d7ecb2a3f | refs/heads/master | 2023-08-28T20:14:47.823353 | 2021-11-05T01:22:33 | 2021-11-05T01:22:33 | 263,812,682 | 0 | 2 | Apache-2.0 | 2021-03-15T03:17:36 | 2020-05-14T04:13:51 | Python | UTF-8 | Python | false | false | 2,554 | py | import tempfile
import os
import json
from .utils import remove_folder,JSONEncoder,JSONDecoder
from .resource import ResourceConstant
def change_metaindex(repository_metadata,f_metaname_code):
"""
Change the index calculating logic of the indexed resource repository
repository_metadata: the current resou... | [
"rocky.chen@dpaw.wa.gov.au"
] | rocky.chen@dpaw.wa.gov.au |
caf3a1cf2802137ee7375b4b494654cf0276b629 | e8cac4db53b22a28f7421ede9089bd3d4df81c82 | /TaobaoSdk/Request/CrmMembersGetRequest.py | 89b1776c4812b806eae050d2d304f1c5622a7feb | [] | no_license | wangyu0248/TaobaoOpenPythonSDK | af14e84e2bada920b1e9b75cb12d9c9a15a5a1bd | 814efaf6e681c6112976c58ec457c46d58bcc95f | refs/heads/master | 2021-01-19T05:29:07.234794 | 2012-06-21T09:31:27 | 2012-06-21T09:31:27 | 4,738,026 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,619 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 查询卖家的会员,进行基本的查询,返回符合条件的会员列表
# @author wuliang@maimiaotech.com
# @date 2012-06-21 17:17:49
# @version: 0.0.0
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.realpath(__f... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
990d08d4e433da42d21d96cc7f21a8a023df6a6b | 81d45c86a32995518ede50bf550e110c22e6cf2c | /vtgs/v1.0/vtgs_trx_1.py | 895dfe01e136b557c60c94f484fd07b9124846f5 | [
"MIT"
] | permissive | otilrac/waveforms-1 | 04ecaa20ed5de63fffe7c789f7ff889ce9ae72b9 | a44638ad79744007cf58aaf54f5d9517742004cc | refs/heads/master | 2021-06-20T18:02:28.628136 | 2017-08-13T04:33:45 | 2017-08-13T04:33:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,990 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: VTGS Rocksat-X 2017 Transceiver v1.0
# Generated: Sat Aug 5 00:47:30 2017
##################################################
if __name__ == '__main__':
import ctypes
import ... | [
"zleffke@vt.edu"
] | zleffke@vt.edu |
e26e05796f0d6099c19bcd248bd8e34c70b566f3 | c5fedd852a93dd20bd1ab4db41997e3eeae64e63 | /sites/dev/settings.py | 3bb980b38c96fc6e417092022163f6ba1fbc5356 | [
"MIT"
] | permissive | rishikant42/django-business-logic | deab4e300f243da6428e19cc7c96d3af16375adc | 6f3d0774d7d30b64dc73ed32736ec045afb5de48 | refs/heads/master | 2020-03-31T07:28:24.664684 | 2018-09-17T13:55:28 | 2018-09-17T13:55:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | from ..settings import *
DEBUG = True
ALLOWED_HOSTS = ['*']
INSTALLED_APPS += [
# 'django_extensions',
'bootstrap3',
'sites.dev.books',
]
ROOT_URLCONF = 'sites.dev.urls'
WSGI_APPLICATION = 'sites.dev.wsgi.application'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
... | [
"dgk@dgk.su"
] | dgk@dgk.su |
2e1c064f2f9ec480216bc2fec17ee9324f1500a7 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/override/methodWithOverloadsInTheSameFile.py | 70f8f8ba8877cc6015e8c1b173c3c5aa3f88a862 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 211 | py | from typing import overload
class Foo:
@overload
def fun(self, s:str) -> str: pass
@overload
def fun(self, i:int) -> int: pass
def fun(self, x):
pass
class B(Foo):
<caret>pass | [
"Semyon.Proshev@jetbrains.com"
] | Semyon.Proshev@jetbrains.com |
e46ebbee527c297550cc6be199c7e3e85394ba22 | 061684e59ba5c816419f763a25629af987f60d52 | /CashAlgo/weighted_rsi_intraday_strategy.py | 61ca7e5b7316c417ea7bfebdcb4aa5cb41feda39 | [] | no_license | wangyouan/PythonTest | 8d798fc5cde3ecaeb64301c3290fe51ea8577523 | 62177829b81e918cadb4a24527c4cdcaff734d7d | refs/heads/master | 2021-06-17T11:18:11.973935 | 2017-03-26T07:07:18 | 2017-03-26T07:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,498 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# File name: weighted_rsi_intraday_strategy
# Author: warn
# Date: 27/12/2015 10:20
import numpy
import talib
import cashAlgoAPI
class Strategy:
long_flag = False
short_flag = False
def __init__(self):
self.close_data = []
self.cnt = 0
... | [
"wangyouan0629@hotmail.com"
] | wangyouan0629@hotmail.com |
f4a3e6d8a542ab88facff6b22770e3ff898d3050 | f6f29c2fa719c53eee73de2acd86db9e1278182e | /design_patterns/observor/event_system.py | 6661d910ed6e4bf7106b6ddb905dac47ca3f201a | [] | no_license | byt3-m3/python_code_practice | ca08320e1778449d30204b65f15903d5830b7975 | 40e215c4d4ab62cf7d55d2456d94550335825906 | refs/heads/master | 2023-07-24T08:29:06.624850 | 2021-09-04T02:39:32 | 2021-09-04T02:39:32 | 256,984,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,369 | py | from dataclasses import dataclass
from enum import Enum
from queue import Queue
from typing import List, Tuple, Any
import asyncio
class RegisteredMethods(Enum):
""""""
message_que = Queue()
@dataclass
class Event:
event_name: str
data: Any
class EventManager:
subscribers = dict()
def __init... | [
"cbaxtertech@gmail.com"
] | cbaxtertech@gmail.com |
7ae1ccf015cbb9f6702d6dbac4c89554e20e7909 | ba9e1fc7797ebc55a61a40ee66c51b467f353ff1 | /web_scraping_with_python_demos/docx-parser.py | d56bc005da5bfc4c2d478182efe0cc74e860b49e | [] | no_license | sanpianye/the-little-python | 77c938164d43cbb120063a6d17d0705cc9e92e93 | c04898bf0812afb53b71567699ee523d1bc56a29 | refs/heads/master | 2021-06-14T01:55:31.452777 | 2017-03-09T13:31:59 | 2017-03-09T13:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
''''''
__author__ = 'Engine'
from zipfile import ZipFile
from urllib.request import urlopen
from io import BytesIO
from bs4 import BeautifulSoup
# 从.docx文件读取xml的步骤
# 1. 读取.docx文件
wordFile = urlopen("http://pythonscraping.com/pages/AWordDocument.docx").read()
# 2. 转... | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
a2a3894ce8cbaf1c0878ecb12053cf13cd82f539 | edfcd96f0010ea068a4c046bdcf7067ff92d3f9b | /Cryptography/Find_Files_5.py | c6fe25661616e3f39926bcb2020522f17adf1491 | [] | no_license | afsanehshu/python-project | a99ff558f375c1f5e17ea6ffc13af9216ec4733f | 48905cfd24df6d1f48460d421ed774f19403cf53 | refs/heads/main | 2023-08-03T01:53:32.812949 | 2021-09-22T19:36:25 | 2021-09-22T19:36:25 | 409,303,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,080 | py | from subprocess import check_output
def find_drive():
drive = ["A:","B:","C:","D:","E:","F:","G:","H:","Z:","N:","K:","L:","X:","P:","U:","J:","S:","R:","W:","Q:","T:","Y:","I:","O:","V:","M:"]
system_drive = []
cmd = check_output("net share",shell=True)
for i in drive:
if i in ... | [
"afsanehshu@gmail.com"
] | afsanehshu@gmail.com |
5bae2dd0b98a698b47ecc1b62c9b3f817edb250c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02706/s376556276.py | 52d2b727b08cf6404ff408485c8063321452bc56 | [] | 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 | 242 | py | def main():
n, m = map(int, input().split())
a_lst = list(map(int, input().split()))
total = sum(a_lst)
if total > n:
ans = -1
else:
ans = n - total
print(ans)
if __name__ == "__main__":
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1c67c11e8d837208916769996d99f60998ebd5a2 | 431963e431a277ec5682973f275f7d43f8b2b4de | /hackrankoj/strings/design_door_mat.py | 85161e85275b6c0c9e950c9dafe9bfb223d3ae88 | [] | no_license | gitter-badger/python_me | 168e1fd126f42c92de7e82833251abce63fe2d0a | 8f31da00530e7132e58d0c1c06b5805a6b0f96e6 | refs/heads/master | 2020-12-03T01:56:38.909715 | 2017-03-15T01:02:04 | 2017-03-15T01:02:04 | 95,884,399 | 0 | 0 | null | 2017-06-30T11:59:27 | 2017-06-30T11:59:27 | null | UTF-8 | Python | false | false | 602 | py |
N, M = map(int,raw_input().split())
#主要是这个输入的,map返回的是一个list,如果只有一个变量接受,那那个变量就是指向一个list,
#如果好几个,那就是unpack赋值,此时list当中元素的个数要和变量个数是一致的!
for i in xrange(1,N,2):
print ('.|.'*i).center(3*N,'-')
print 'WELCOME'.center(3*N,'-')
for i in xrange(N-2,-1,-2): #还有这个,range的范围到-1为止截止,不要和切片里面的-1混淆,好老是想怎么到最后一个元素去了,这里是一个概念么?!!
... | [
"chenye626@gmail.com"
] | chenye626@gmail.com |
0edbee8ebd09aff5b83eced5e5ffea2cae7567eb | 1860aa3e5c0ba832d6dd12bb9af43a9f7092378d | /modules/xlwt3-0.1.2/examples/formulas.py | 460a7b22c17dd8037a1feebf63797f1a29d9c3c6 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | agz1990/GitPython | d90de16451fab9222851af790b67bcccdf35ab75 | 951be21fbf8477bad7d62423b72c3bc87154357b | refs/heads/master | 2020-08-06T18:12:26.459541 | 2015-07-05T14:58:57 | 2015-07-05T14:58:57 | 12,617,111 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,359 | py | #!/usr/bin/env python
# -*- coding: windows-1251 -*-
# Copyright (C) 2005 Kiseliov Roman
from xlwt3 import *
w = Workbook()
ws = w.add_sheet('F')
ws.write(0, 0, Formula("-(1+1)"))
ws.write(1, 0, Formula("-(1+1)/(-2-2)"))
ws.write(2, 0, Formula("-(134.8780789+1)"))
ws.write(3, 0, Formula("-(134.8780789e-10+1)"))
ws.w... | [
"522360568@qq.com"
] | 522360568@qq.com |
cab031ae11fb3718e0a6baeb7ec9c3ccfef1d7e9 | b92e187f60b1bc8bd74eaa0ffc6e1ac50911a08e | /python/randperson.py | 34f0715c975e12cabe2b53093dfeccf3c4ab59a7 | [] | no_license | code-xD/codefundo-hack | ad5b149726188bd15be7476f14adf90f08ff33d7 | f4883015d2d5f4b1b6a493ffa58249c46fc544a1 | refs/heads/master | 2022-12-10T10:41:30.388439 | 2019-08-20T12:06:19 | 2019-08-20T12:06:19 | 195,676,080 | 0 | 1 | null | 2022-05-25T03:12:11 | 2019-07-07T16:56:28 | CSS | UTF-8 | Python | false | false | 1,305 | py | from random import randint
import json
def genper():
randperlist = []
with open("randomdata/names.dat", 'r') as names:
with open("randomdata/address.dat", 'r') as address:
with open("randomdata/pin.dat", 'r') as pins:
for i in range(50):
randpersonDict =... | [
"shivansh586@gmail.com"
] | shivansh586@gmail.com |
2faad1676557dc4b03d872486ecf0b9987f89875 | 9a5b0bcc1302373fc37315e15def172e2d5a8e3a | /demo/libdemo/list_mobiles.py | ce3c4a8aad9f7232493144ebd7556683338cf873 | [] | no_license | srikanthpragada/PYTHON_06_APR_2020 | b74a7d2e80d8a8ffe203ba5bd562484e80b3502b | f999c5ca001137d21b9cd6ca55f3e35dd0e6c3ca | refs/heads/master | 2021-05-25T15:02:38.057653 | 2020-05-07T13:29:01 | 2020-05-07T13:29:01 | 253,799,331 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | f = open("mobiles.txt", "rt")
mobiles = []
for line in f.readlines():
parts = line.strip().split(',')
mobiles.extend(parts)
f.close()
for mobile in sorted(mobiles):
print(mobile)
| [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
2c5cac0cff0f1ded9317a146c18bfbd93283ec12 | b4166044870d1c026e86c95ac41e3e3613ee424f | /python_basic/abc083_b.py | 2601012108b74d5bd9f1837c7d3fee4758f9b704 | [] | no_license | nsakki55/AtCoder | 2cbb785415a7c0b9df9953ddc3706c90a5716a03 | 03c428e8eb8f24b8560d00e2388ba75509619690 | refs/heads/master | 2020-05-31T04:33:06.400697 | 2020-01-19T13:41:41 | 2020-01-19T13:41:41 | 190,099,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | n,a,b=map(int,input().split())
ans=0
for i in range(1,n+1):
if a<=sum(map(int,list(str(i))))<=b:
ans+=i
print(ans) | [
"n.sakki55@gmail.com"
] | n.sakki55@gmail.com |
b2081078ee4bfd2203caa42da05edebc5a56f1d9 | 34bfa980bf04365bde38f30506c4e375a5e40186 | /Question3.py | 60192f77eb5e5a9f96e621ac29b7a136b6039461 | [] | no_license | krishnabojha/Insight_workshopAssignment4 | a797f6fa650c099f3d2f3e86dce82bc670d158e6 | dcc2b9bae8ada46dc440b73406cea7b79796cff8 | refs/heads/master | 2022-11-10T15:12:22.742117 | 2020-07-05T12:55:46 | 2020-07-05T12:55:46 | 277,301,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | ############## find Anagram word of paragraph
from collections import defaultdict
def find_anagram(words):
groupedWords = defaultdict(list)
for word in words:
groupedWords["".join(sorted(word))].append(word)
print("The word and it's anagram : ")
for group in groupedWords.valu... | [
"ojhakrishna010@gmail.com"
] | ojhakrishna010@gmail.com |
11def6de3c772d0ff5c0f3a581b1122036c21c10 | 2f63688febd21dc3ae6b19abfa79ad313c820154 | /0918_Maximum_Sum_Circular_Subarray/try_1.py | d4bcafd84f354962e6ea4f78b507e82d76e60c5c | [] | no_license | novayo/LeetCode | cadd03587ee4ed6e35f60294070165afc1539ac8 | 54d0b3c237e0ffed8782915d6b75b7c6a0fe0de7 | refs/heads/master | 2023-08-14T00:35:15.528520 | 2023-07-30T05:56:05 | 2023-07-30T05:56:05 | 200,248,146 | 8 | 1 | null | 2022-11-19T04:37:54 | 2019-08-02T14:24:19 | Python | UTF-8 | Python | false | false | 653 | py | class Solution:
def maxSubarraySumCircular(self, A: List[int]) -> int:
# Kadane's algorithm : https://www.youtube.com/watch?v=86CQq3pKSUw
def Kadane(A):
cur_max = max_sum = A[0]
cur_min = min_sum = A[0]
sum = A[0]
for i in range(1, len(A)):
... | [
"f14051172@gs.ncku.edu.tw"
] | f14051172@gs.ncku.edu.tw |
799897d2411998aa3a754bb8328495b8a607867c | 74cafb5c10a700fb7aca1447edff45235563b304 | /Exercises_2/loops/l12.py | d2c7ddfe1173577eabb409c9819df25394b2d98b | [] | no_license | marcinpgit/Python_exercises | 68be4e0e731ba5efb48c4d5cf28189ed7df8d179 | 149fc3a811c743c2e32d04960f682f158fd34c1f | refs/heads/master | 2021-07-04T16:07:38.001001 | 2017-09-27T21:42:27 | 2017-09-27T21:42:27 | 104,941,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | # Write a Python program that accepts a sequence of lines (blank line to terminate) as input and
# prints the lines as output (all characters in lower case)
lines = []
while True:
l = input()
if l:
lines.append(l.upper())
else:
break;
for l in lines:
print(l) | [
"marcinp2012@gmail.com"
] | marcinp2012@gmail.com |
0a9067acff6d6d906b49a2d4d1295289d14610ad | d1ad901e1e926d9c92ce4dc7a7ba3c6ee91a65e2 | /tests/portstat/test_portstat.py | 3750cfd7d64c998e2098e254e336ab52960060f4 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | SubhajitPalKeysight/sonic-mgmt | ff59c2c5baf53cc2575aea2d541278fc9cf56977 | e4b308a82572996b531cc09cbc6ba98b9bd283ea | refs/heads/master | 2022-12-31T01:03:47.757864 | 2020-10-15T11:04:37 | 2020-10-15T11:04:37 | 286,815,154 | 1 | 1 | NOASSERTION | 2020-08-11T18:08:34 | 2020-08-11T18:08:33 | null | UTF-8 | Python | false | false | 7,977 | py |
import logging
import pytest
from tests.common.helpers.assertions import pytest_assert
from tests.common.utilities import wait
logger = logging.getLogger('__name__')
pytestmark = [
pytest.mark.topology('any')
]
def parse_column_positions(separation_line, separation_char='-'):
'''Parse the position of each ... | [
"noreply@github.com"
] | SubhajitPalKeysight.noreply@github.com |
b2c183b7fdf094d29b43ebc5e76045156e4d658c | 8930d3c7a4c8441c4129b49fc98c5c88c395fa67 | /deepy/core/disconnected_grad.py | 49a2afa2ff44e3371c9e54710a7d8925594c2d59 | [
"MIT"
] | permissive | degerli/deepy | 2b5d1f456cdd025b609aad4a47eaa55494960bdc | 090fbad22a08a809b12951cd0d4984f5bd432698 | refs/heads/master | 2020-04-15T00:27:30.637696 | 2017-01-10T04:27:39 | 2017-01-10T04:27:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from theano.compile import ViewOp
from theano.gradient import DisconnectedType
class DisconnectedGrad(ViewOp):
def grad(self, args, g_outs):
return [ DisconnectedType()() for g_out in g_outs]
def connection_pattern(self, node):
return [[False]]
... | [
"raphael@uaca.com"
] | raphael@uaca.com |
297e61e05829aff2550077a269e98ab8d80e37cd | a60e81b51935fb53c0900fecdadba55d86110afe | /MachineLearning/Softmax Regression/main.py | 0835b6604536cd468caf7d5d2807bb8b80fecde4 | [] | no_license | FrankieZhen/Lookoop | fab6855f5660467f70dc5024d9aa38213ecf48a7 | 212f8b83d6ac22db1a777f980075d9e12ce521d2 | refs/heads/master | 2020-07-27T08:12:45.887814 | 2019-09-16T11:48:20 | 2019-09-16T11:48:20 | 209,021,915 | 1 | 0 | null | 2019-09-17T10:10:46 | 2019-09-17T10:10:46 | null | UTF-8 | Python | false | false | 4,138 | py | # 2018-9-30
# Softmax Regression
# python 机器学习算法
import numpy as np
import random as rd
import matplotlib.pyplot as plt
def loadData(file_name, skip=True):
"""
载入数据
"""
feature = []
label = []
file = open(file_name)
for line in file.readlines():
feature_tmp = []
label_tmp = ... | [
"33798487+YangXiaoo@users.noreply.github.com"
] | 33798487+YangXiaoo@users.noreply.github.com |
4d9848e2c6c4c0920d5eb8244bab8e9739ce5e48 | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/command_lib/kuberun/flags_test.py | be981d4155210013659894e9e3bedb5c88470db0 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 5,681 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. 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 requir... | [
"actions@github.com"
] | actions@github.com |
840df60864580e08c06aaf11d2f3b0afeb055e6a | 2424063d657d643c1f8ccc6cca343271d6d0f708 | /Project13/Project13/wsgi.py | 4addfcd63c97edcfc6dfdcc82695c6034fef28f0 | [] | no_license | pythonwithnaveen/DjangoExamples | a0a07cbc53564522cf39649c235716ef5c3a4ba0 | 57c7a6302ada4079bd3625481e660587bf8015c6 | refs/heads/main | 2023-07-16T02:36:01.283938 | 2021-08-12T07:26:22 | 2021-08-12T07:26:22 | 371,881,524 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Project13 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"="
] | = |
bf893e679aad51bcabebe58e925f0b2246a3859d | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/exercism/python-exercises-master_with_unittest/clock/solution.py | 3735a17098d16ca49a60887846dc5085ccad67ec | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 442 | py |
c_ Clock(o..
'Clock that displays 24 hour clock that rollsover properly'
___ - , hour, minute
hour hour
minute minute
cleanup()
___ -r
r.. "%02d:%02d" % (hour, minute)
___ -e other
r.. r.. ____ __ r.. (other)
___ add minutes
minute += minutes
... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
fc72438cce4f775b6b03c893d7c78269c6e4ab9d | fb23f54996ff24fb67181fa6535676a0a08ff5d1 | /bank_transactions/bank_transactions/doctype/bank_detail/bank_detail.py | be3bd80f545bee35d03bbb10cb25adffc4144db8 | [] | no_license | reddymeghraj/bank_transactions | 6b0978478f1f825fc82b46ea113f0c9093ed1b9f | 5f0370e2a253431b7d974fceac3e4db8a39fdd0a | refs/heads/master | 2020-12-24T17:26:08.946366 | 2015-06-25T04:08:15 | 2015-06-25T04:08:15 | 38,027,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | # Copyright (c) 2013, WayzonTech and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class BankDetail(Document):
pass
| [
"reddymeghraj@gmail.com"
] | reddymeghraj@gmail.com |
63b8ffaa5f98128433bc67366be0804a8af07ddf | ecb7156e958d10ceb57c66406fb37e59c96c7adf | /Leetcode Exercise/Leetcode387_First Unique Character in a String/mySolution.py | 92de319fd6c8607cbcd19b3a3d878af846188fb4 | [] | no_license | chenshanghao/RestartJobHunting | b53141be1cfb8713ae7f65f02428cbe51ea741db | 25e5e7be2d584faaf26242f4f6d6328f0a6dc4d4 | refs/heads/master | 2020-07-27T17:39:58.756787 | 2019-10-18T06:27:27 | 2019-10-18T06:27:27 | 209,175,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | class Solution:
def firstUniqChar(self, s: str) -> int:
dictCharCount = dict()
for char in s:
if char in dictCharCount:
dictCharCount[char] += 1
else:
dictCharCount[char] = 1
for i in range(len(s)):
if dictCharCount[s[i]] ==... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
6be6b90977548954cbe0794710c83b0e94a6e2af | 626a2e5902972f926a01c58480eb8f162afc5080 | /python/sdft.py | e327c3f2c316856b2a44299ff260ea96e81a4bd5 | [] | no_license | almighty-bungholio/fpga-fft | 9ee83134c844fcd7d8d5eff4dbd52e47a0830781 | 91cf990c765ff06d71d1e2489a25842e19c73623 | refs/heads/master | 2020-04-26T20:50:56.559921 | 2018-06-14T18:36:02 | 2018-06-14T18:36:02 | 173,823,387 | 3 | 0 | null | 2019-03-04T21:21:41 | 2019-03-04T21:21:41 | null | UTF-8 | Python | false | false | 2,116 | py | from __future__ import print_function
# https://stackoverflow.com/questions/6663222/doing-fft-in-realtime
from cmath import cos, sin, pi
from scipy import signal
import numpy as np
# sample history needs to be the same as the number of frequency bins
N = 16
samp_hist = N
coeffs = []
freqs = []
in_s = []
sig_counter =... | [
"matt@mattvenn.net"
] | matt@mattvenn.net |
e34e2b2cffecf229d8e237c2d148c400ca05db49 | 572024902ee45d7246bceff508f1035f8c464693 | /third_party/catapult/telemetry/telemetry/internal/backends/chrome/cros_browser_backend.py | bc3832d99b3786768401ba85772df8913c47cddd | [
"BSD-3-Clause",
"MIT"
] | permissive | mediabuff/Prelude | 539a275a52d65e1bf84dc218772ea24fff384391 | 601507c6dc8cf27999ceffc0fef97afba2bd764d | refs/heads/master | 2020-03-12T16:31:18.951711 | 2018-03-27T13:36:22 | 2018-04-05T19:31:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,937 | py | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import logging
import os
import time
from telemetry.core import exceptions
from telemetry.core import util
from telemetry import decorators
from telemetry.i... | [
"xzwang2005@gmail.com"
] | xzwang2005@gmail.com |
67c098441a88869bf3cf28d12846e54518987ed9 | 2091dc754d0346a345d84dce32177a4d6aa2097b | /Payload_Type/Apollo/mythic/agent_functions/whoami.py | 901b3cc8f3716723efcf65fe64d7d47f55f8f527 | [
"BSD-3-Clause",
"MIT"
] | permissive | dycsy/Apollo | 132d5d5f98ae2951e6c58df796be1dfbc495c03f | 6ec815cbb87379b48c12d2108e6dd669ce5ce37e | refs/heads/master | 2023-04-21T07:30:38.551661 | 2021-04-22T19:53:13 | 2021-04-22T19:53:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | from CommandBase import *
import json
class WhoamiArguments(TaskArguments):
def __init__(self, command_line):
super().__init__(command_line)
self.args = {}
async def parse_arguments(self):
if len(self.command_line) > 0:
raise Exception("whoami takes no command line argume... | [
"djhohnstein@gmail.com"
] | djhohnstein@gmail.com |
c385b92415cd61b11232b74c10796ac7eb295e12 | e562f7e0a51273475e50a7e61d1d377f88775622 | /WebMirror/Engine.py | fb8fdfb9707541db48b9732bb60055b2895aa2a2 | [] | no_license | bloodcurdle/ReadableWebProxy | d1c6ae0220fdb04ea7ab82963c86e776a0dbbfd9 | 10f68f913a78f8b0e47582996d9860a61da55dd6 | refs/heads/master | 2021-05-29T19:58:32.965610 | 2015-11-09T18:25:00 | 2015-11-09T18:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,462 | py |
if __name__ == "__main__":
import logSetup
logSetup.initLogging()
import WebMirror.rules
import WebMirror.SpecialCase
import WebMirror.LogBase as LogBase
import runStatus
import time
import os.path
import os
import sys
import sqlalchemy.exc
from sqlalchemy import desc
from sqlalchemy.sql import text
from sqlalch... | [
"something@fake-url.com"
] | something@fake-url.com |
9c4c9650e44bfe04e59ce5e8c8a18e4c66a162d9 | 22d91f7054c3d32c82ff9a073c5486295f814523 | /setup.py | 40f8f15f242635d636dec6818f229e7159b67ec6 | [
"MIT"
] | permissive | yrestom/erpnext_telegram | a6e2f1be971415c048fe99d07091bec5319c2e74 | d5261a14c01fd936b097eb472add56a2a5c38ac1 | refs/heads/master | 2023-02-16T13:58:04.785346 | 2023-01-20T11:27:17 | 2023-01-20T11:27:17 | 226,947,005 | 87 | 99 | NOASSERTION | 2023-02-14T07:38:14 | 2019-12-09T19:08:52 | Python | UTF-8 | Python | false | false | 596 | py | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('requirements.txt') as f:
install_requires = f.read().strip().split('\n')
# get version from __version__ variable in erpnext_telegram_integration/__init__.py
from erpnext_telegram_integration import __version__ as version
setup(
name='er... | [
"youssefrestom@gmail.com"
] | youssefrestom@gmail.com |
39e3de964b63344d0aabc82d98c460760d2bad19 | c016088a3bdb255d4f5253185d27b5a4c75feb1b | /04_working_with_list/4_12_more_loops.py | ae2a78812a14fbf60235a02cd4da69fef7ecf1e1 | [
"MIT"
] | permissive | simonhoch/python_basics | b0b7c37ff647b653bb4c16a116e5521fc6b438b6 | 4ecf12c074e641e3cdeb0a6690846eb9133f96af | refs/heads/master | 2021-04-03T10:11:10.660454 | 2018-03-13T20:04:46 | 2018-03-13T20:26:25 | 125,107,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | my_foods = ['pizza', 'falafel', 'carrotcake']
friends_foods = my_foods[:]
my_foods.append('cannoli')
friends_foods.append('ice cream')
print("My favoourite foods are :")
for food in my_foods:
print(food)
print("\nMy friend's favorite foods are :")
for food in friends_foods:
print(food)
| [
"simonhoch1@gmail.com"
] | simonhoch1@gmail.com |
20c532e6927dfd77cb291cdf4b10a9c7cf05c294 | 26ef1d2a28a438c5a0eb60d30391d4ff764702e9 | /main/migrations/0002_customusermodel_password_reseted.py | e68f4945bdd671dbfdfb3be239e0d1983dd47e7b | [] | no_license | EH-GD-MOHIT21/BirthDaywisherApi | 249c07c2133555b06d9c1465707dc051bcdae2ef | 0f9405054933b9d0d01aebb4f96fc049a7ddf7f9 | refs/heads/main | 2023-06-14T00:21:44.978716 | 2021-06-29T19:08:49 | 2021-06-29T19:08:49 | 381,467,693 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.2.4 on 2021-06-27 16:49
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='customusermodel',
name='password_Reseted',... | [
"experimentallyf@gmail.com"
] | experimentallyf@gmail.com |
6c6049cac56a1f2ba14af6e3e554c2e99ce3daaa | 50f63963e73a8436bef3c0e6e3be7056291e1e3b | /panda/direct/tkwidgets/WidgetPropertiesDialog.py | 0693a885d116966f0bbc201c0a8aac26eba1ff48 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | MTTPAM/installer | 7f4ad0c29631548345fac29ca7fbfcb38e37a111 | aee7a9b75f1da88fdf6d5eae5cdf24739c540438 | refs/heads/master | 2020-03-09T15:32:48.765847 | 2018-11-13T03:35:50 | 2018-11-13T03:35:50 | 128,861,764 | 1 | 4 | null | 2018-11-13T03:35:50 | 2018-04-10T02:28:29 | Python | UTF-8 | Python | false | false | 8,127 | py | """Undocumented Module"""
__all__ = ['WidgetPropertiesDialog']
from direct.showbase.TkGlobal import *
import Pmw, sys
"""
TODO:
Checkboxes for None?
Floaters to adjust float values
OK and Cancel to allow changes to be delayed
Something other than Return to accept a new value
"""
class WidgetPropertiesDialog... | [
"linktlh@gmail.com"
] | linktlh@gmail.com |
432c9801db53735f2bdfd2a7ff3571bcc8a4e49a | ea21f4dee4a3af5882725fa2a5b8c0aaf755cdf6 | /gsheets/tools.py | 739aa35691df0710d6523bc1e6a24c05c29e4f8d | [
"GPL-1.0-or-later",
"MIT"
] | permissive | nkrishnaswami/gsheets | a903077654b89559f69b139e2cd66bf235191c65 | cefbb8e4f34d1f30d768d4f1d7ee38d7e92aaa11 | refs/heads/master | 2023-04-22T20:01:07.357509 | 2020-07-06T14:26:11 | 2020-07-06T14:26:11 | 275,808,436 | 0 | 0 | MIT | 2021-04-30T21:35:39 | 2020-06-29T12:28:46 | Python | UTF-8 | Python | false | false | 3,206 | py | # tools.py - generic helpers
import collections
__all__ = [
'lazyproperty', 'doctemplate', 'list_view', 'eval_source', 'uniqued',
]
class lazyproperty(object): # noqa: N801
"""Non-data descriptor caching the computed result as instance attribute.
>>> class Spam(object):
... @lazyproperty
.... | [
"sebastian.bank@uni-leipzig.de"
] | sebastian.bank@uni-leipzig.de |
b4ca96a7550e1cbba0c7a4aac33dbe1d00b63430 | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/DesignPointSelectStrategy_20210715110359.py | 458de074dc9d6d681c184895d59628a2bae4f911 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,902 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aerodynamics.Ae... | [
"libao@gatech.edu"
] | libao@gatech.edu |
57d92fa9e354a050c91008bbcf14dbed05ceae23 | f937b8dce0467b13b45e46dae948effce2ef5295 | /network/v2_0/vpn/test_service_integration.py | 12347934c0eb38ace4f46c3eb997751ca682f3f8 | [] | no_license | TerryHowe/oscaft | 946410743635c642bc55dbc43503d438e9ddd926 | d4bce05488e02c9cba989f48fe7d2a5a5aaf723d | refs/heads/master | 2021-01-10T21:45:19.794301 | 2014-03-05T16:36:42 | 2014-03-05T16:36:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,823 | py | # Copyright 2013 OpenStack, LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"terrylhowe@gmail.com"
] | terrylhowe@gmail.com |
f124cc9fc71055e881257d4f7e4a6118f7c307e9 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/4/jq0.py | 2a70ce098ef42fbf1eb5c70da84d1e709d261504 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
fba8f796a41c43d442b43240179a28ee8763ed64 | a574d0c0ebc8e17eb641777f93544c0ae43850c9 | /part_3/4.5.4_modify_dict.py | c2dbfc9fab278145af88ff9543c5680ec080a8c7 | [] | no_license | broepke/GTx | 1e33c97d0f86e95124ceb5f0436f965154822466 | e12143c9b1fc93d4489eb0f6c093637503139bf6 | refs/heads/master | 2020-04-08T09:35:41.884572 | 2020-01-03T03:37:34 | 2020-01-03T03:37:34 | 159,230,824 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | # Write a function called modify_dict. modify_dict takes one
# parameter, a dictionary. The dictionary's keys are people's
# last names, and the dictionary's values are people's first
# names. For example, the key "Joyner" would have the value
# "David".
#
# modify_dict should delete any key-value pair for which the
# ... | [
"broepke@gmail.com"
] | broepke@gmail.com |
eda246aacebf6179f8d8da7e6cd5e0d64c2be0b3 | 2bdedcda705f6dcf45a1e9a090377f892bcb58bb | /src/main/output/month_air/city/woman/world.py | f97a907eecbf688cc6b2b1a09bc9bbfce64f5dff | [] | no_license | matkosoric/GenericNameTesting | 860a22af1098dda9ea9e24a1fc681bb728aa2d69 | 03f4a38229c28bc6d83258e5a84fce4b189d5f00 | refs/heads/master | 2021-01-08T22:35:20.022350 | 2020-02-21T11:28:21 | 2020-02-21T11:28:21 | 242,123,053 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,939 | py | using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
// Install Newtonsoft.Json with NuGet
using Newtonsoft.Json;
namespace translate_sample
{
class Program
{
private const string key_var = "TRANSLATOR_TEXT_SUBSCRIPTION_KEY";
private const string endpoint_var =... | [
"soric.matko@gmail.com"
] | soric.matko@gmail.com |
5bc99ce805369e20b7123860247511801e95408a | a08225934c425be313a12975c9563a72ded58be6 | /round644/spystring.py | ce55548d95836a56223f6329afb0e371f8c94c36 | [] | no_license | marcus-aurelianus/codeforce | 27c966554dee9986f23fb2925bd53e6cceb8b9e9 | 4764df151ade7806e32b6c88283a2de946f99e16 | refs/heads/master | 2023-03-18T09:30:55.042594 | 2021-03-12T18:14:08 | 2021-03-12T18:14:08 | 231,387,022 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | import sys
reader = (s.rstrip() for s in sys.stdin)
input = reader.__next__
def gift():
for _ in range(t):
n,m = list(map(int,input().split()))
arrys=[]
for i in range(n):
kap=list(input())
arrys.append(kap)
diffdic={}
for i in range(n):
f... | [
"marcus.lihao@gmail.com"
] | marcus.lihao@gmail.com |
d111130febd4bb406c6961126dc1ccc74bee080c | 2523b2690fadfccbd56153de011b27faa9c31c61 | /urls.py | 8c77ab489dea24ded6afb1dcaa2ac4aea5f7be80 | [] | no_license | victorhook/django-init | 39cf66a33f7a4e10c86f09ade19934996402906a | e38692467ff2c8093e7803b359934ec182fe4681 | refs/heads/master | 2023-04-05T16:31:17.654905 | 2021-04-16T10:44:46 | 2021-04-16T10:44:46 | 358,564,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | from django.conf.urls.static import static
from django.conf import settings
from django.contrib import admin
from django.urls import path, include
from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('django.contrib.auth.urls')),
path('', views.index, name='inde... | [
"victorkrook96@gmail.com"
] | victorkrook96@gmail.com |
8c2dbaf86f524f55059765161f070307296f1b6a | 4809471274d6e136ac66d1998de5acb185d1164e | /pypureclient/flasharray/FA_2_5/models/remote_protection_group_snapshot_transfer.py | 6739780776fb0f1bc143dee2bc29bf1b53da6baf | [
"BSD-2-Clause"
] | permissive | astrojuanlu/py-pure-client | 053fef697ad03b37ba7ae21a0bbb466abf978827 | 6fa605079950765c316eb21c3924e8329d5e3e8a | refs/heads/master | 2023-06-05T20:23:36.946023 | 2021-06-28T23:44:24 | 2021-06-28T23:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,411 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from .... | [
"hubert.chan@purestorage.com"
] | hubert.chan@purestorage.com |
4486aa023f431fbbf7808e49ae5aa6d05d16892a | 8878700a71196cc33b7be00357b625cf9883043c | /store/models.py | f9f50d892d1ed47c590678476853e180d3cda592 | [
"MIT"
] | permissive | Jerome-Celle/Blitz-API | bc7db966cbbb45b29bbbe944adb954d6cb5a0040 | a0f870d6774abf302886ab70e169572a9d0225ef | refs/heads/master | 2021-06-10T06:05:03.753314 | 2018-11-30T15:40:38 | 2018-11-30T15:46:19 | 165,642,546 | 0 | 0 | MIT | 2019-01-14T10:32:29 | 2019-01-14T10:32:28 | null | UTF-8 | Python | false | false | 6,465 | py | import decimal
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.contenttypes.fields import (
GenericForeignKey, GenericRelation
)
from django.contrib.contenttypes.models import Con... | [
"frank.jeanneau@gmail.com"
] | frank.jeanneau@gmail.com |
0901d4428fc72e6ab7427fe2b0ad71f2f49f8bad | 9bcf722780efec7994bebe2bb476b0784b0a353a | /307-Range-Sum-Query---Mutable/solution.py | f7918453c713753e26ed2787028a1077c52ef1f3 | [] | no_license | wenjie1070116/Leetcode | a1429810513276b845bfb36284bd747308c015b3 | 5f5791b1e7eefa0205cbb6cb8ae2d5320ffcd916 | refs/heads/master | 2020-04-06T06:50:23.762233 | 2016-08-19T19:36:15 | 2016-08-19T19:36:15 | 58,875,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | class SegmentTreeNode(object):
def __init__(self, start, end, Sum):
self.start, self.end, self.Sum = start, end, Sum
self.left = None
self.right = None
class NumArray(object):
def build(self, start, end, nums):
if start > end: return None
root = SegmentTreeNode(star... | [
"wenjie1070116@gmail.com"
] | wenjie1070116@gmail.com |
cc8cd1ec82602764bdcdb0ffa52d5ca1d2deafeb | 7e40c8bb28c2cee8e023751557b90ef7ef518326 | /axb_2019_fmt32/axb_2019_fmt32.py | f6e5ec9ea1fe5058692348efeed119877bb83dff | [] | no_license | 1337536723/buuctf_pwn | b6e5d65372ed0638a722faef1775026a89321fa3 | cca3c4151a50c7d7c3237dab2c5a283dbcf6fccf | refs/heads/master | 2023-08-29T19:35:04.352530 | 2021-11-16T14:06:20 | 2021-11-16T14:06:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | from pwn import *
context.log_level = 'debug'
pn = './axb_2019_fmt32'
#p = process(pn)
p = remote('node4.buuoj.cn', 26960)
elf = ELF(pn)
#libc = ELF('/lib/i386-linux-gnu/libc.so.6')
libc = ELF('libc-2.23.so')
#gdb.attach(p, 'b *0x804874b')
printf_got = elf.got['printf']
read_got = elf.got['read']
#leak libc
payloa... | [
"admin@srmxy.cn"
] | admin@srmxy.cn |
2c4749b55b8632ded80bdbe938e0155072f390c3 | fd453abf8b9b049894ddd7848be7bb5e6f1aa26d | /setup.py | 1cc18dcd8ddbadcb278eb4e7c624ac30f20b794e | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | luzfcb/django-weasyprint-pdf | b9d895f998c467114cfb0e8b7e8ada7ee469d286 | c03ccb8229f317b3492ea7a5e748d4c720a6dd23 | refs/heads/master | 2021-01-23T07:56:38.612731 | 2017-01-31T21:14:19 | 2017-01-31T21:44:26 | 80,524,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,589 | py | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from __future__ import absolute_import
from __future__ import print_function
import io
import re
from glob import glob
from os.path import basename
from os.path import dirname
from os.path import join
from os.path import splitext
from setuptools import find_packages
fro... | [
"bnafta@gmail.com"
] | bnafta@gmail.com |
e2ffe3b3f784c2225d4166221373e5d2d572aa63 | cb6d888dfe457cf4a80c5187da7f74be92453a3f | /HackerEarth/Complete the Syllabus.py | 16020d6070ba82ef2c3fd10d99c70f9faad61620 | [] | no_license | abhaykatheria/cp | 7e7b6ce971fdbb9207cb1cba237a3d4b47cff111 | 62cd3895798b64a4b8d307f94d419abe6e6b702f | refs/heads/master | 2021-05-22T15:23:47.512506 | 2020-10-29T09:17:50 | 2020-10-29T09:17:50 | 252,980,081 | 1 | 7 | null | 2020-10-29T09:17:52 | 2020-04-04T11:34:59 | Python | UTF-8 | Python | false | false | 586 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 8 16:16:09 2018
@author: Mithilesh
"""
def syllabus(k,arr):
arr2=["MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]
top=[]
sum1=0
for i in range(0,7):
sum1+=arr[i]
top.append(sum1)
for j in range(0,7):
if... | [
"shubhamtiwari.tiwari84@gmail.com"
] | shubhamtiwari.tiwari84@gmail.com |
03b1c3aaa4b1a0ecf553a3969d8e37a6882cb547 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D05A/SSRECHD05AUN.py | ad47858fe13c1e7b9f99a99290d03be45c4d3a2b | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,448 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD05AUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 0, MAX: 1},
{ID: 'GEI', MIN: 1, MAX: 1},
{ID: 'RFF'... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
80b7beb89f444ac0b71e10bbaa5697f4458824a9 | fd326562890d4f1987c384fc7c60374938231222 | /OOP/IteratorsAndGenerators/CountdownIterator.py | 154fdb5c0771576a8a4b29805b0a5cc2c3bfb0cf | [] | no_license | miro-lp/SoftUni | cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4 | 283d9328537919de49f7f6a301e58593bae9ca2a | refs/heads/main | 2023-08-23T21:22:07.856226 | 2021-08-25T15:10:18 | 2021-08-25T15:10:18 | 318,134,101 | 2 | 1 | null | 2021-08-10T12:51:54 | 2020-12-03T09:03:08 | Python | UTF-8 | Python | false | false | 368 | py | class countdown_iterator:
def __init__(self, count):
self.count = count
def __iter__(self):
return self
def __next__(self):
value = self.count
if self.count < 0:
raise StopIteration
self.count -= 1
return value
iterator = countdown_iterator(10)... | [
"miro_lp@abv.bg"
] | miro_lp@abv.bg |
bdc796bee4bc8a8d5e9c396427bde2e9c5892227 | f5fffd35eb8870150cfd9f700b398b25dfe3534e | /lingvo2/gui/video/video.py | 30b89711ebd96f728a5588cf3eed6f3c74df65db | [] | no_license | zaswed76/sling | a09e84e0bcc94e83f43d74b769298544627d271b | 22b945983eb94a5a29523ee54e8197fcc4c60a5c | refs/heads/master | 2022-09-20T07:11:25.242353 | 2020-05-25T11:53:01 | 2020-05-25T11:53:01 | 254,921,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | #!/usr/bin/env python3
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import QIcon
from PyQt5.QtWidgets import *
from gui.video.player2 import VideoPlayer
from gui.custom.customwidgets import *
class Video(QFrame):
def __init__(self, main, objectName=None, config=None, *args, **kwargs):
sup... | [
"zaswed76@gmail.com"
] | zaswed76@gmail.com |
5390adbcfe0b2fb0e3b38ef37b9af7675659560b | 4f313d7a5a141584a0f28e93bb1e3c9bffa3daec | /9_7.py | a360953002fa7e711b1a58dcd5c9789f68f85e80 | [] | no_license | GKPython/A-Byte-of-Python | f19ea8f39589dc073d3e599fe14e8172dee87eb3 | a11587b158225363c6ae900da50652046b4ab90d | refs/heads/master | 2021-06-21T20:24:44.582310 | 2017-09-01T09:00:00 | 2017-09-01T09:00:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | # coding=utf-8
name = 'Swaroop'
if name.startswith('S'):
print 'name is started with "S"'
if 'oo' in name:
print 'name contains "oo"'
if name.find('ar') != -1:
print 'name contains "ar"'
delimiter = '_*_'
shoplist = ['apple', 'pear', 'carrot', 'banana']
print delimiter.join(shoplist) | [
"cbb903601682@163.com"
] | cbb903601682@163.com |
37323d7388b9fc2043edebc8b3ee17d9c40753a4 | ec4c8ec5ea3fc7db5a8552687a21ac554dc49d6f | /seatrekking/users/apps.py | dbc9db0c5f458230678d5d0d95f75027640198c6 | [
"MIT"
] | permissive | martin-martin/seatrekking | 57710c298665d771dea0337a470012b7ff82b237 | fc98fb43f50a070624539a93abcbd189726466fe | refs/heads/master | 2020-03-26T23:18:34.829490 | 2018-08-21T08:11:15 | 2018-08-21T08:11:15 | 145,529,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | from django.apps import AppConfig
class UsersAppConfig(AppConfig):
name = "seatrekking.users"
verbose_name = "Users"
def ready(self):
try:
import users.signals # noqa F401
except ImportError:
pass
| [
"breuss.martin@gmail.com"
] | breuss.martin@gmail.com |
c6d48c629d6d9d5f2bb99cb6a1d57f4ddd706ac0 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Event/EventOverlay/EventOverlayJobTransforms/share/BS_Selector_jobOptions.py | cee37f5f9e62ba8c9e9e26053c3a0368e0f760ca | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,245 | py | include( "ByteStreamCnvSvc/BSEventStorageEventSelector_jobOptions.py" )
svcMgr = theApp.serviceMgr()
ByteStreamInputSvc = svcMgr.ByteStreamInputSvc
theApp.EvtMax = 20
theApp.SkipEvents = 0
MessageSvc.OutputLevel = INFO
ByteStreamInputSvc.FullFileName += ["/u/at/ahaas/nfs2/temp/minbias/data10_7TeV.00152845.physics_RND... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
5178891a024ece70b7e141b46dcf6e10125719ca | ee721fac058d6c0472be24f95e3cc8df37f4198d | /Stack/letter.py | 886078dbf96d36aae384663781528a0a8f35af6d | [] | no_license | Horlawhumy-dev/Python_DataStructures | 51af03dcbed86a51009c13657b17584f09d0a40d | c5aad1fe6c6566414c76711a0871abf9529fe04f | refs/heads/master | 2023-06-04T09:32:34.776313 | 2021-07-02T21:43:09 | 2021-07-02T21:43:09 | 377,631,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | py | # Letter Frequency
import math
# You are making a program to analyze text.
# Take the text as the first input and a letter as the second input, and output the frequency of that letter in the text as a whole percentage.
# Sample Input:
# hello
# l
# Sample Output:
# 40
# The letter l appears 2 times in the text hell... | [
"harof.dev@gmail.com"
] | harof.dev@gmail.com |
ab6c198286931579386d1847dbaec01086aabc5d | 7f66c9818b2a22e6dbfa832a6bb4f9f21fbd15da | /semester_1/fp/assignment_06-08/src/tests/test_services.py | 1bab656276fba77c296f87c0febc5cf5ee2ed7da | [] | 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 | 2,911 | py | import unittest
import coverage
from repository import Repository
from services.activity_service import ActivityService, Activity
from services.person_service import PersonService, Person
from data.activity_data import *
from data.person_data import *
from cmdsys.cmdsys import CommandSystem
class TestServices(unitte... | [
"c.paulica@gmail.com"
] | c.paulica@gmail.com |
c4afeca91e73abf6bbd3d9882cfda15357dfd482 | 6136be1772619e92d93d474838b2d9b55071e423 | /testPickler.py | 26ce40b9bde70e0ee9189bcf0f1e7cba8a784ccd | [] | no_license | Anwesh43/python-url-requests | 1aa5314ab1c362db869fbca44605d2631bde17d2 | f26ff5c83beadc3442ae087a47f18553af78c890 | refs/heads/master | 2020-05-15T11:03:44.616768 | 2019-04-19T13:11:46 | 2019-04-19T13:11:46 | 182,210,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | from picklerutil import *
dict1 = loadFromFile('a.pickle')
assert dict1 == {}
dict2 = {}
dict2["a"] = 1
dict2["b"] = 2
saveToFile('a.pkl', dict2)
dict3 = loadFromFile('a.pkl')
assert dict3 == dict2
| [
"anweshthecool0@gmail.com"
] | anweshthecool0@gmail.com |
994deee1e02643256d13d5a378b1b4a3011135f6 | 1afb1fbfeb696a96a7e3cddfe4c74192c770b97d | /trainer.py | 1cb656a38f31ce48a8b43f2a0626505c97134674 | [
"Apache-2.0"
] | permissive | Guanwh/Object_Detection_Tracking | b74dc8c3c1dc9ede06b1d9c36d2e80e5af28bc6f | af7f840915f63ae498c8241e5832a4bf4aabfcc1 | refs/heads/master | 2020-06-03T21:57:43.644703 | 2019-06-10T05:00:14 | 2019-06-10T05:00:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,667 | py | # coding=utf-8
# trainer class, given the model (model has the function to get_loss())
import tensorflow as tf
import sys
from models import assign_to_device
def average_gradients(tower_grads,sum_grads=False):
"""Calculate the average/summed gradient for each shared variable across all towers.
Note that this func... | [
"junweil@cs.cmu.edu"
] | junweil@cs.cmu.edu |
e819a2b88a14f5ede5bdc9836a8c201e69a8ee48 | ff5eea95bb0827cb086c32f4ec1c174b28e5b82d | /gammapy/astro/__init__.py | 015054cb8f5eec0b26a1bd245e06b6d7a5f3664f | [] | no_license | pflaumenmus/gammapy | 4830cc5506a4052658f30077fa4e11d8c685ede0 | 7b5caf832c9950c886528ca107203ce9b83c7ebf | refs/heads/master | 2021-01-15T23:27:46.521337 | 2013-09-25T14:23:35 | 2013-09-25T14:23:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
Astrophysical source and population models
"""
from .pulsar import *
from .pwn import *
from .snr import *
| [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.