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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65518c04be3ea3e6b2d6f9f78c24b1f26c6aeccf | d9b53673b899a9b842a42060740b734bf0c63a31 | /leetcode/python/medium/p148_sortList.py | a1fab9d99943c993b2d7410153673a1f0855f154 | [
"Apache-2.0"
] | permissive | kefirzhang/algorithms | a8d656774b576295625dd663154d264cd6a6a802 | 549e68731d4c05002e35f0499d4f7744f5c63979 | refs/heads/master | 2021-06-13T13:05:40.851704 | 2021-04-02T07:37:59 | 2021-04-02T07:37:59 | 173,903,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def sortList2(self, head: ListNode) -> ListNode:
values = []
while head:
values.append(head.val)
head = head.next
values.sor... | [
"8390671@qq.com"
] | 8390671@qq.com |
b4e18a445e96b8484264b1e8ca42e38ea31d61e6 | a60e81b51935fb53c0900fecdadba55d86110afe | /读书笔记/Python神经网络编程.py | 29e8eab235adb9103fef50a8e17af56bf957b19d | [] | 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 | 214 | py | # Python神经网络编程
# 2018-8-19
【简单的分类器】:
线性分类器
需要正确的实例来帮助调整分类函数的斜率,用来训练预测器或分类的真实实例,称为训练数据。
| [
"33798487+YangXiaoo@users.noreply.github.com"
] | 33798487+YangXiaoo@users.noreply.github.com |
407ec2641e3ef34992361a0d8372b2495a30fdc7 | 4fdb8e90ab2bed9bc534155806314d4b6d0047ae | /MuellesObrero/settings.py | 331fdd7d16781032ac91041624bc29749304ac7b | [] | no_license | gbriones1/MODB | 8ca04df5bc665d5b3dcc3a4f89fa167b21047d7d | b2aa15efe155a1e813917c720107c33cb56eef1b | refs/heads/master | 2021-01-18T23:21:16.545638 | 2016-07-28T15:42:37 | 2016-07-28T15:42:37 | 32,994,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,617 | py | """
Django settings for MuellesObrero project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, .... | [
"gabriel.briones.sayeg@intel.com"
] | gabriel.briones.sayeg@intel.com |
f2cf0fc2c468caeb92f8ce21fff5b85294c5b50b | c8c77f6cc6c032daf179ea2138e4dda5473b426b | /elastictranscoder/JobStatusNotificationSample.py | d4f23522ce847493b94fb98eaa6713b323dc23aa | [] | no_license | arunmastermind/AWS-examples-using-BOTO3 | b411a6c96011ab58a66952a53fa2938cb58d5135 | e8390094374c10902bab016a21caba75ea179b5a | refs/heads/master | 2020-09-30T13:34:33.657621 | 2019-12-11T12:37:44 | 2019-12-11T12:37:44 | 227,297,211 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,614 | py | import time
import boto3
from botocore.exceptions import ClientError
from SqsQueueNotificationWorker import SqsWorker, JobStatus
# Job configuration settings. Set these values before running the script.
pipeline_id = 'PIPELINE_ID' # Set to the ID of an existing Elastic Transcoder pipeline
input_file = 'FILE... | [
"arunmastermind.sci@gmail.com"
] | arunmastermind.sci@gmail.com |
37e27672dbabcfc89471e9235f97beca4390cd86 | e90287b55cab761dc2dbf0f30cc65dbd99dd1d39 | /stem/util/term.py | 42e3fc4e267d80e1209296976f69bcac18f2f83e | [] | no_license | santatic/facebook-registry-python | a5aa7799ee2eb54691bf3d649a67ed2ed0d492e4 | c78012c48dd9eb416846eb13d34356b614b4658b | refs/heads/master | 2021-01-10T04:05:31.144996 | 2015-10-09T04:06:57 | 2015-10-09T04:06:57 | 43,932,247 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,708 | py | # Copyright 2011-2014, Damian Johnson and The Tor Project
# See LICENSE for licensing information
"""
Utilities for working with the terminal.
**Module Overview:**
::
format - wrap text with ANSI for the given colors or attributes
.. data:: Color (enum)
.. data:: BgColor (enum)
Enumerations for foreground or ... | [
"you@example.com"
] | you@example.com |
02f320b2b250ae7af47274b535807d5fc03b770d | 5ebb857895b1c3adc1de0e04ecbb9e081ddef2b1 | /pyot/limiters/core.py | fe51b176a46350a33e9d4647ca7b8fff882378fa | [
"MIT"
] | permissive | cgibson6279/Pyot | b071bef36e0a211323133712035cfbb214fd9a73 | d764498ba756f1b793ab0bd6cdc59a2af15316f6 | refs/heads/master | 2023-02-24T20:23:22.640165 | 2021-01-28T19:43:22 | 2021-01-28T19:43:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,062 | py | import asyncio
from dataclasses import dataclass, field
from datetime import datetime, timedelta
from collections import defaultdict
from logging import getLogger
from typing import List, Any
from dateutil.parser import parse
import pytz
from pyot.utils import MultiDefaultDict
LOGGER = getLogger(__name__)
@dataclas... | [
"paaksingtech@gmail.com"
] | paaksingtech@gmail.com |
5ae5657e693ddb7e59dc27c18b85e8b8d884ef7c | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/cloud/bigquery/connection/v1/bigquery-connection-v1-py/tests/unit/gapic/bigquery_connection_v1/test_connection_service.py | 4ed4037df0c103184351ffcacbdca01ac30f6d02 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122,576 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
720216e5fd9d57c1c403a41ca8c73407d7c3cf39 | 0c4159673b167bd10d1f42bb9983c566380a62b5 | /lv/data/db/tables.py | e69d7a89a4aee763a67a203e8b50aa654da7991a | [] | no_license | EntryDSM/Louis-Vuitton | 7a22ddd61635bf59f83a023338c7010451f61904 | b3890d0e4dc20c85a191f497d953e5a32d28f0d9 | refs/heads/dev | 2020-04-02T05:39:26.532476 | 2019-09-22T06:09:24 | 2019-09-22T06:09:24 | 154,094,936 | 1 | 0 | null | 2019-07-17T01:12:06 | 2018-10-22T06:11:36 | Python | UTF-8 | Python | false | false | 313 | py | from pypika import Table
classification_tbl = Table('classification')
attached_document_tbl = Table('applicant_document')
academic_information_tbl = Table('academic_information')
school_tbl = Table('school')
applicant_score_tbl = Table('applicant_score')
grade_by_semester_tbl = Table('grade_by_semester')
| [
"jerion7474@gmail.com"
] | jerion7474@gmail.com |
da13e4702842a0493e94b43552620a684a16249b | def27d5864764b877b6786835ec97f2bd74c6ba8 | /easy/ContainsDuplicate.py | 1dfb42d6d7af541c3ecfacedee28847080a748fd | [] | no_license | bolan2014/leetcode | f6cf38a49a9250abeb36543ea2498062c58e811d | 1c35fde3a65c4f216218f459736d4c39a29980d5 | refs/heads/master | 2021-04-09T16:59:41.494568 | 2017-05-10T03:47:14 | 2017-05-10T03:47:14 | 46,648,353 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | '''
method: difference of length between set and list
'''
class Solution(object):
def containsDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
return len(nums) != len(set(nums))
| [
"1139217488@qq.com"
] | 1139217488@qq.com |
03aea4c743da91018d89cd62def977931ce32460 | e879f4154c78ff68ca306b7582da8e2989e908ea | /Jets/python/JetCorrection_cff.py | e242172d700d65dfa5b7004cabd695984e66e538 | [] | no_license | jkiesele/PhaseTwoAnalysis | c7dd9667f07c8d537a65a327cae76e76a0797ab3 | 13a02cdf994957abe8a198dc5920f9f9bd2c4ae1 | refs/heads/master | 2021-01-20T03:14:17.878180 | 2018-05-25T12:30:51 | 2018-05-25T12:30:51 | 89,513,813 | 4 | 21 | null | 2018-05-25T12:30:52 | 2017-04-26T18:28:32 | C++ | UTF-8 | Python | false | false | 2,298 | py | import FWCore.ParameterSet.Config as cms
from JetMETCorrections.Configuration.JetCorrectionServicesAllAlgos_cff import *
ak4PFPuppiL1Fastjet = cms.ESProducer(
'L1FastjetCorrectionESProducer',
level = cms.string('L1FastJet'),
algorithm = cms.string('AK4PFPuppi'),
srcRho = cms.InputTag('fix... | [
"aperloff@physics.tamu.edu"
] | aperloff@physics.tamu.edu |
faf9de8443b9a331f1886ffb4d453b22401e17be | 18f7d65bda4e5f55d71f78a69f30dd2e58c2f37b | /plugin.video.hdfilme.net/resources/lib/cfscrape/interpreters/nodejs.py | 1807340fdeec67c6f411dd845b06997190181a72 | [] | no_license | Iph47/kdc_git_repo | 13700d229436a69b4b22e87668154b783aca05cc | 8d903bb5efa7e189f3faaf7eb1637820148f0985 | refs/heads/master | 2022-11-08T11:30:22.323438 | 2020-06-18T01:11:11 | 2020-06-18T01:11:11 | 273,349,618 | 3 | 0 | null | 2020-06-18T22:10:39 | 2020-06-18T22:10:39 | null | UTF-8 | Python | false | false | 1,982 | py | import base64
import subprocess
import sys
from . import JavaScriptInterpreter
from .encapsulated import template
# ------------------------------------------------------------------------------- #
class ChallengeInterpreter(JavaScriptInterpreter):
# ------------------------------------------------------------... | [
"36279834+tox303@users.noreply.github.com"
] | 36279834+tox303@users.noreply.github.com |
fb985aec845c2339e2790e9f48c094bc0b9f2f29 | 8cc24ec353b801dca44ff60c18a7423c7b8a1d28 | /venv/session6e.py | c27744ddfdd879f6ab54a777ca16db72d9fd6007 | [] | no_license | raj9226/session6 | de09fb476a133483e3a165a2cb402514756ea750 | d2be5d3b7567c97b45ff47b46653a3ba941b7cc1 | refs/heads/master | 2020-06-02T12:19:28.350923 | 2019-06-10T12:38:04 | 2019-06-10T12:38:04 | 191,152,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | #Keyword Arguments
def fun(**kwargs):
print(kwargs)
print(type(kwargs))
fun(a=10,b=20,name="John") #key must not be a number | [
"imcoolrajeev9226@gmail.com"
] | imcoolrajeev9226@gmail.com |
e23dd176b86fa18e54b1be0b23e4eaee31e839c6 | 154a99bc6762ee7119cdfadb25f861cfcf74a536 | /SlidingWindow.py | bd3e44bff6ad8bd83d910c015d4cfcd7b0fc25af | [
"Apache-2.0"
] | permissive | ctralie/Math412S2017 | 6e1a7a91132b71bbe4316fbbd10263172a82ef1a | 27b32eabf079a7f8bc5dadf1acbc1e8442cfa639 | refs/heads/master | 2021-01-23T00:07:05.191275 | 2017-07-24T18:42:03 | 2017-07-24T18:42:03 | 85,700,782 | 9 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,525 | py | """
Programmer: Chris Tralie (ctralie@alumni.princeton.edu)
Purpose: Some basic code to do sliding window embeddings of 1D signals
"""
import numpy as np
import scipy.interpolate as interp
import matplotlib.pyplot as plt
from sklearn.decomposition import PCA
def getSlidingWindow(x, dim, Tau, dT):
"""
A functio... | [
"chris.tralie@gmail.com"
] | chris.tralie@gmail.com |
91b45491fd2902d8c90022d7f2929c1d7ffaceab | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/hoework01/gettop10frommaoyam01_20200625171731.py | e4411aa4d47a319e4fd1d2b7988aec2de7cabadd | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 417 | py | # 使用requests,bs4库,爬取猫眼电影top10的电影名称、电影类型、上映时间,并以utf-8的字符集保存到csv文件中
import requests
maoyanUrl = ;
user_agent = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:49.0) Gecko/20100101 Firefox/49.0'
header = {'user-agent' : user_agent}
response = requests.get(maoyanUrl,headers=header)
response.encoding = 'utf-8'
p... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
bd45c4bebab5f0c67ac87470c005574cb73fc2a7 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/fc64ce3e0c82ea8399f939478772df3e9fdfc953-<main>-bug.py | 21ef7b3681843736f137426490096681732c8ba3 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,014 | py |
def main():
module = AnsibleModule(argument_spec=dict(name=dict(type='str', aliases=['service', 'unit']), state=dict(type='str', choices=['reloaded', 'restarted', 'started', 'stopped']), enabled=dict(type='bool'), force=dict(type='bool'), masked=dict(type='bool'), daemon_reload=dict(type='bool', default=False, al... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
3f5cafa692586e45d96d28e7998739e0cd56da70 | a5c986ccfdf7eb38361bd995176b7249fa68f6c0 | /sample_project/sample_app/views.py | ea96a678727e20774396cdb5f643cd0b7fe9c656 | [] | no_license | toddfh/wdc-class-material-4 | ab476b6ae56e5239bb199b3ac0ca809a00ad8c4c | 5d088dc633176e8c17e4915c346e623b9d349331 | refs/heads/master | 2020-03-31T23:49:57.561647 | 2018-08-09T02:11:48 | 2018-08-09T02:11:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | from datetime import datetime
from django.http import HttpResponseNotFound
from django.shortcuts import render, redirect
from django.urls import reverse
from django.contrib import messages
from .models import Author, Book
def index(request):
sort_method = request.GET.get('sort', 'asc')
books = Book.objects.... | [
"santiago.basulto@gmail.com"
] | santiago.basulto@gmail.com |
84391b7b2385d6152dc3f4d9390cda8e08652a24 | 68dec94df1f6335cc06202e10080e152edaf7b66 | /data/voc0712.py | 4a676651f84ddd323716662c31edfb4d0023417c | [
"MIT"
] | permissive | daminiR/ssd-pytorch-custom | 5ddaa71d9ff7b56f48db1400fce5f87f947785a6 | c7248081f5ac7403c52985f8f5ba23bc3a135201 | refs/heads/master | 2020-04-20T17:08:58.398236 | 2018-12-17T16:26:04 | 2018-12-17T16:26:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,574 | py | """VOC Dataset Classes
Original author: Francisco Massa
https://github.com/fmassa/vision/blob/voc_dataset/torchvision/datasets/voc.py
Updated by: Ellis Brown, Max deGroot
"""
# from option.config import HOME
import os.path as osp
import sys
import torch
import torch.utils.data as data
import cv2
import numpy as np
if... | [
"michhar@microsoft.com"
] | michhar@microsoft.com |
a4445869645cef288e793d0116046b6853908cf3 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/225/users/4005/codes/1712_2503.py | 2893202b206b8ef9ea1221166ba21366c4aecf53 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | n = int(input())
c = 0
d = 1
e = 0
aux = 1
while(c < n):
e = e + (aux * (4 / d))
if(aux == 1):
aux = -1
else:
aux = 1
c = c + 1
d = d + 2
print(round(e, 8)) | [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
b97623b4abe52806a847b3d94135dd47aa15a284 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/cs7.py | 7c63775707beca5dc8b3e3ec24233301678e0f58 | [] | 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 |
c2358daef08dd35b5685db56539e46ae8cafbd94 | ad93f7ec7ba4bb97a8691b988647e6b7a4f8e0e9 | /virtual/bin/pyreverse | a56bfa485e95a28dab878b718a067971e70e9607 | [
"MIT"
] | permissive | marknesh/instagram-app | 3f9a167d6ad3002ee7c873ad1760fb6426b46f1d | 514ec6e59ad127857234245b05130431fa3262cc | refs/heads/master | 2021-07-16T19:09:14.935559 | 2020-03-21T15:13:38 | 2020-03-21T15:13:38 | 245,411,109 | 0 | 0 | MIT | 2021-04-08T19:41:15 | 2020-03-06T12:13:43 | Python | UTF-8 | Python | false | false | 252 | #!/home/mike/Documents/ig/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"markmunene.nesh@gmail.com"
] | markmunene.nesh@gmail.com | |
2bd719b7c4857b6b780814d90f679cc7d063a30d | a560269290749e10466b1a29584f06a2b8385a47 | /Notebooks/py/twanifuchi/this-is-my-best-practice-titanic/this-is-my-best-practice-titanic.py | b4389eb2666f033b7242645d73f14d050cfe1df1 | [] | no_license | nischalshrestha/automatic_wat_discovery | c71befad1aa358ae876d5494a67b0f4aa1266f23 | 982e700d8e4698a501afffd6c3a2f35346c34f95 | refs/heads/master | 2022-04-07T12:40:24.376871 | 2020-03-15T22:27:39 | 2020-03-15T22:27:39 | 208,379,586 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 51,736 | py | #!/usr/bin/env python
# coding: utf-8
# # This is my best practice - Titanic
# **2018/07/13**
#
# * [1 Introduction](#ch1)
# * [2 Import libraries](#ch2)
# * [3 EDA(Explanatory Data Analysis)](#ch3)
# * [4 Preproccecing](#ch4)
# * [4-1 Impute](#ch4-1)
# * [4-2 OneHot Encoding](#ch4-2)
# * [4-3 Trai... | [
"bitsorific@gmail.com"
] | bitsorific@gmail.com |
1e13178cf3da63bc6d4db50ac01bc107b0e6af3f | 660e3a2bb5f127908549d52ebc62d0d67725f832 | /Algorithm_python/Stack_ADT_Linked_List.py | 8090bbc937081cf139140f3e1f10934bc9686b78 | [] | no_license | dygksquf5/python_study | b56f8548bea7e31a484301bb97ddefe44d931c80 | 282126b0104dae9f9f8f63e613cc968a2f998ef1 | refs/heads/master | 2023-02-21T03:46:16.673962 | 2021-01-24T14:08:47 | 2021-01-24T14:08:47 | 294,593,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | # 연결 리스트를 이용한 스택 ADT 구현
class Node:
def __init__(self, data, next):
self.data = data
self.next = next
class Stack:
def __init__(self):
self.last = None
def push(self, data):
self.last = Node(data, self.last)
return self.last
def pop(self):
data = self... | [
"66229916+dygksquf5@users.noreply.github.com"
] | 66229916+dygksquf5@users.noreply.github.com |
64cb2025ab98fc9e76541f2d00fc952b06fa4853 | e5755d76e50e902246884310a7781059bd7ff222 | /mongoDB/8.Find.py | da6c1d37f217d179309c2ce9712eb099f35980b4 | [] | no_license | Sens3ii/PP2-2020 | 4f1f9c0588476ca415b0ae2efc0f171e826dd3f8 | 3675aa4860f727ecb26360d8624e396663dfc5b2 | refs/heads/master | 2023-05-29T15:02:17.803095 | 2021-06-14T17:05:52 | 2021-06-14T17:05:52 | 236,768,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | import pymongo
myclient = pymongo.MongoClient("mongodb+srv://students:321321@firstcluster-bxilw.gcp.mongodb.net/test?retryWrites=true&w=majority")
mydb = myclient["mydatabase"]
mycol = mydb["students"]
for x in mycol.find():
print(x)
| [
"noreply@github.com"
] | Sens3ii.noreply@github.com |
cf585ba30b713d8727cffbb97e8a83647548e985 | c1655d6c6c11dafc1c7fa9f771b8e1f99cf7f123 | /venv/lib/python3.6/site-packages/pyomo/core/base/alias.py | 48f9e5d2e8f2f8c8ba8be6b6d05830f2336b9355 | [] | no_license | igorsowa9/vpp | a27520f19a54d7490534016ded9cd66f4ef5385b | ea91e3b2db921e7b1a450d243f39dbcf61231107 | refs/heads/master | 2021-04-30T03:28:56.642244 | 2019-09-16T09:01:49 | 2019-09-16T09:01:49 | 121,514,524 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,031 | py | import weakref
import logging
from copy import deepcopy
from pyomo.util.timing import ConstructionTimer
from pyomo.core.base.component import Component, ComponentData
logger = logging.getLogger('pyomo.core')
__all__ = ['Alias']
#
# Key Points (for now - subject to change):
# - Alias mimics the behavior of weakref... | [
"iso@ubuntu.ubuntu-domain"
] | iso@ubuntu.ubuntu-domain |
c4137a62c7dd29ebfaf5878daa7ea25fd6f3f458 | c3e8bde6485ae24fbbac7a4470889e9246db76e4 | /DJANGO/Books/Books/settings.py | 2b03624f0c52a728e4cf4a98467b3388352c5caa | [] | no_license | jshin07/Python | f1c48c92f44549e6cedd0b892efcf55c60ed3124 | 2b492d905e04c69d76466aacb3f17a7e7c13f437 | refs/heads/master | 2021-01-25T07:49:33.961540 | 2017-06-27T21:16:06 | 2017-06-27T21:16:06 | 93,670,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,115 | py | """
Django settings for Books project.
Generated by 'django-admin startproject' using Django 1.11.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"jshin07@gmail.com"
] | jshin07@gmail.com |
f51a38c8ffb142e39209d74a89c5288e90a4a713 | d068a99fb9c1cff794260ac48d4202182377b254 | /sim1/RankineCycle/output.py | 346ae9877606241724dbbf1c15a757147acca903 | [
"MIT"
] | permissive | sunliping0213/PyRankine | ad4095bccdd2da2a13a87ccb4d0eba5eee84bf4f | e0dc4dd2939030576553e2fb73c338f1a912f5a6 | refs/heads/master | 2020-07-10T17:37:37.081103 | 2019-05-20T15:50:07 | 2019-05-20T15:50:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py |
"""
The Simulator 1: General Abstraction and CSV Textual Model of Rankine Cycle
Author:Cheng Maohua Email: cmh@seu.edu.cn
"""
import sys
import time
def OutFiles(Nodes, Cycle, outfilename=None):
savedStdout = sys.stdout
if (outfilename != None):
datafile = open(outfilename, 'w', encoding='utf-8'... | [
"cmh@seu.edu.cn"
] | cmh@seu.edu.cn |
078fe1f07221d45133bb35a03ba2c5402390e4dd | 045cb1a5638c3575296f83471758dc09a8065725 | /addons/fleet/models/__init__.py | fee48a330b1a0d0740de17963e6dc5a4f9477b2f | [] | no_license | marionumza/saas | 7236842b0db98d1a0d0c3c88df32d268509629cb | 148dd95d991a348ebbaff9396759a7dd1fe6e101 | refs/heads/main | 2023-03-27T14:08:57.121601 | 2021-03-20T07:59:08 | 2021-03-20T07:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # -*- coding: utf-8 -*-
# Part of Harpiya. See LICENSE file for full copyright and licensing details.
from . import fleet_vehicle
from . import fleet_vehicle_cost
from . import fleet_vehicle_model
from . import res_config_settings
from . import res_partner
| [
"yasir@harpiya.com"
] | yasir@harpiya.com |
d0cb7d0bc1437fbdb73d990600fac9744e861e84 | 97d240d40bf9d6b249e953f0cb414e6f07971fc7 | /src/fakeemail/web_server.py | 568a59befaa8b671cf98a14b970a5263a3c20004 | [] | no_license | Jc2k/FakeEmail | 48107e30043297c15a3fbb6f6498b9a6e53f2403 | fe7d3dc861ae1c5eb9889d27ceb77cd9be216944 | refs/heads/master | 2021-01-16T23:00:25.419375 | 2010-10-04T11:21:32 | 2010-10-04T11:21:32 | 960,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | from twisted.web.server import Site
from twisted.web.resource import Resource
from twisted.application import internet, service
class WebMessageDisplay(Resource):
def __init__(self, name, storage):
Resource.__init__(self)
self.name = name
self.storage = storage
def render_GET(self, re... | [
"tom@howrandom.net"
] | tom@howrandom.net |
5da5af948c895ffca41fd06440da6dd259a294bf | 077215f1083e17b309eee9c7002f1c965a0ca2c5 | /代理池/http测试requests版本(1).py | 87ad356206536b5fa6d7de38e3e4846904dddf9d | [] | no_license | cooper-1/Pythonofspider | 8c7cd6344ca11c86d3b7a8b177d17933ff77c2d4 | b33f71c0a6c885b473207a3a78401e2fc4d2399b | refs/heads/master | 2023-08-26T07:33:43.001781 | 2021-11-05T12:55:20 | 2021-11-05T12:55:20 | 420,447,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | import requests
# 如果提示requests出错,可能需要安装request CMD运行 pip install requests
def get_proxy(headers):
proxy_url = 'http://http.9vps.com/getip.asp?username=18819776051&pwd=bae276bac6e33746883cccdc3dd6519d&geshi=1&fenge=1&fengefu=&getnum=1'
# proxy_url = 'http://http.9vps.com/getip.asp?username=test&pwd=test&geshi=... | [
"1274814498@qq.com"
] | 1274814498@qq.com |
a1ca0e47e6d84e5b621cf900139bb4cce5c51462 | 030081481d9443b364d9446c437ba6a4d6c7b9da | /src/old/main.py_ | bc6633f8602c77dd9a1c4f6cad46b17b70e34971 | [
"CC0-1.0"
] | permissive | ytyaru/Python.Pixpeer.KeyPress.DrawPixel.20200515141501 | b9f167567fa3b99a904dcf13557db62a0e5be446 | 8c0e2778d60dafa4f16a20b5eb0fbdda32f17cec | refs/heads/master | 2022-07-08T19:16:49.022722 | 2020-05-15T05:19:31 | 2020-05-15T05:19:31 | 264,102,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,945 | #!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys, os, numpy, PIL, csv
from PySide2 import QtCore, QtGui, QtWidgets
from PIL import Image, ImagePalette, ImageQt, ImageSequence
class Window(QtWidgets.QMainWindow):
def __init__(self):
super(self.__class__, self).__init__()
self.setAcceptDrops(Tru... | [
"yttry0@gmail.com"
] | yttry0@gmail.com | |
13563f8983439165214b7227355fd672e7a49482 | f69b50b831fe7790a8ecf9bd2de3a0a294b2f436 | /03.DeepLearning/07.GAN/01.GAN/01.GAN_02_Z.py | d40d3ce4607128b1b14290124eb330222eaa3625 | [] | no_license | paulzhu8597/BeginnerAI | 315f6b109ea0778f213162210bd034eafcf645e2 | 3807ea63af007d7b77e65ddf17ee8c18df95b644 | refs/heads/master | 2020-03-27T22:55:51.164295 | 2018-08-27T06:18:03 | 2018-08-27T06:18:03 | 147,273,155 | 7 | 3 | null | 2018-09-04T01:48:32 | 2018-09-04T01:48:31 | null | UTF-8 | Python | false | false | 4,467 | py | import torch
from skimage.io import imread
from torch.nn import Module, Linear, BCELoss
from torch.autograd import Variable
from torch.nn.functional import leaky_relu, sigmoid
from torch.optim import Adadelta
from utils.sampler import generate_lut,sample_2d
from utils.visualize import GANDemoVisualizer
from lib.util... | [
"jeffcobile@gmail.com"
] | jeffcobile@gmail.com |
ab1f8e8eae07df459e22f6e26bccb832d885614f | 2c9eadb22d2de54ac06c6731664ed65276fd7062 | /pipeline/engine/migrations/0024_auto_20200224_0308.py | 4af852aef7f63a6834ebfcc81508fc655e0f4116 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | TencentBlueKing/bk-nodeman | 34bba9b217d84bb4dad27e735c29361a5c62789b | 72d2104783443bff26c752c5bd934a013b302b6d | refs/heads/v2.4.x | 2023-08-19T01:27:58.805715 | 2023-08-10T02:59:31 | 2023-08-10T02:59:31 | 385,203,367 | 54 | 49 | MIT | 2023-09-14T06:51:33 | 2021-07-12T10:05:11 | Python | UTF-8 | Python | false | false | 1,558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2020-02-24 03:08
from __future__ import unicode_literals
from django.db import migrations
import pipeline.engine.models.fields
class Migration(migrations.Migration):
dependencies = [
('engine', '0023_status_state_refresh_at'),
]
operatio... | [
"durantzhang@tencent.com"
] | durantzhang@tencent.com |
1d4c14dc58f9893667ab3a72e4114cdf0b9a1613 | 4534148cd3451bbbf331ff5aea3db8ce1e744bcf | /pytorch_privacy/utils/torch_tensor_buffer.py | 3eec0d679a494022ef0c526bfcded2969657edcf | [
"Apache-2.0"
] | permissive | MJHutchinson/PytorchPrivacy | e0e92e0479c68b3e4ce52f857d06619facdd1d65 | b8084914a00b2047054f79d8339609bcdfb9d026 | refs/heads/master | 2023-05-27T07:14:29.212627 | 2019-09-13T14:50:12 | 2019-09-13T14:50:12 | 207,776,503 | 2 | 1 | Apache-2.0 | 2023-05-22T16:18:13 | 2019-09-11T09:40:52 | Python | UTF-8 | Python | false | false | 1,899 | py | import torch
class TensorBuffer(object):
""" Lightweight class to hold series fo tensors of a given shape
in a size adaptive tensor. Utilised via the append method.
"""
def __init__(self, capacity, shape, dtype=torch.float32):
""" Initialise the TensorBuffer
:param capacity: The init... | [
"hutchinson.michael.john@gmail.com"
] | hutchinson.michael.john@gmail.com |
b67bb730ff9b080b3dd804c37edc8b03419258b9 | c80aae4a3d0f3536640995ed1f8b791b52a0a631 | /app/v1/component/user/controller/signup_controller.py | 4401a2f43c5369d4c702fe74bd9df70896a1728e | [] | no_license | vking34/two-football | 1ad0388a2c946d6910d27a76a0848349ac958db8 | c24919dd7cd1b1fd797f8e540d94488a35c1d354 | refs/heads/master | 2022-12-13T23:42:49.304373 | 2019-05-29T05:25:57 | 2019-05-29T05:25:57 | 179,089,662 | 0 | 0 | null | 2022-12-08T05:03:23 | 2019-04-02T13:57:49 | Python | UTF-8 | Python | false | false | 1,625 | py | from flask import jsonify, Blueprint, request, Response
from ..schema.register_form import RegisterFormSchema
from marshmallow import ValidationError
from ..model.user import User
from ..schema.user_schema import UserSchema
from app.v1.generic.response.error_response import SIGNUP_EXISTING_USER_ERROR
from app.v1.generi... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
b697913892a8f9e486081659d6f7dcabacf2679b | 7b099e9577565a2a5f5ccdf80b047f4f48f34933 | /analysis/utils.py | 3da8560ea31399a14ccfa78506cec33d7bde8b66 | [] | no_license | alessiosarullo/KBVRD | 097f19e7659a3745a3bcf732377925596ae24eed | fb00ca1579e3e8443f8b85badbf60afd281ef999 | refs/heads/master | 2023-07-20T09:40:59.710028 | 2020-10-28T14:04:37 | 2020-10-28T14:04:37 | 166,055,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,014 | py | import cv2
import matplotlib
import numpy as np
from matplotlib import pyplot as plt
from matplotlib.colors import LogNorm
from matplotlib.patches import Polygon
from lib.bbox_utils import rescale_masks_to_img
from lib.dataset.hicodet.hicodet import HicoDet
def heatmap(data, row_labels, col_labels, ax=Non... | [
"alessio.sarullo@gmail.com"
] | alessio.sarullo@gmail.com |
a2bdec637bd3a05ec60990e1db6917cd04b0fd54 | 11841e8fb1e44c69ae7e50c0b85b324c4d90abda | /.vscode/geoplotlib/test1.py | d26dce4d6b9a72518993413b70995c3066042c30 | [] | no_license | chenlong2019/python | 1d7bf6fb60229221c79538234ad2f1a91bb03c50 | fc9e239754c5715a67cb6d743109800b64d74dc8 | refs/heads/master | 2020-12-08T11:11:49.951752 | 2020-01-10T04:58:29 | 2020-01-10T04:59:50 | 232,968,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,972 | py | public static string HttpUploadFile(string url,string path, Form1 form1, Form1.UpLoadDelgate upLoadDelgate)
{
System.Net.ServicePointManager.Expect100Continue = false;
HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;
CookieContainer cookieContainer = new Co... | [
"1174650816@qq.com"
] | 1174650816@qq.com |
99ef5d51ce3c47af2f13423869acfde44897ba9e | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/sql/v20210201preview/get_managed_instance_private_endpoint_connection.py | 737c658e3d1ffcc7684e8bc278ae13245f38c161 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 5,718 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
ae8b0615508719c8b54885db6afeb54157645b82 | 11f0768c84c483f993de090087325083f62a754b | /parse.py | 6c74a074a0a138727fb89aa352a1abb4a3f1e4e4 | [] | no_license | dcdanko/MetricEmbed | c4a95baa1e6632bb8b0067c57b4d6c782f18bf69 | 36144de96d191fc1afdba6b9ec0c8f9c0da5bb8b | refs/heads/master | 2020-07-26T18:18:59.905123 | 2016-11-14T19:59:38 | 2016-11-14T19:59:38 | 73,735,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | import sys, math, numpy, operator
embedding = open(sys.argv[1])
word_vecs = {}
total_words = 0
for line in embedding:
vector = line.split()
total_words += 1
word_vecs[vector[0]] = map(lambda x: float(x), vector[1:])
def l2norm(vector):
return numpy.sqrt(numpy.sum(map(lambda x : x * x, vector)))
word_lengths = ... | [
"YOUR EMAIL ADDRESS"
] | YOUR EMAIL ADDRESS |
96def796a0d75b648c6fce8cd2095c005b12fa92 | 6371acdb640e62e4e6addac2ba1aa70002a8c1b1 | /Algorithms/pySINDy/env/lib/python3.6/site-packages/pylint/test/regrtest_data/bad_package/__init__.py | 76f75d3f3dce5e0e0a23602299b3da4e787944a8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | M-Vause/SEED | 263307152ebac1e4f49cd81dcd5207ecbdf51139 | cda94a02a5ef47a1e9a885d330eef2821301ebed | refs/heads/master | 2022-12-13T20:11:58.893994 | 2020-04-27T16:10:09 | 2020-04-27T16:10:09 | 252,790,026 | 3 | 3 | MIT | 2022-12-08T01:52:05 | 2020-04-03T16:55:10 | Jupyter Notebook | UTF-8 | Python | false | false | 38 | py | import missing
raise missing.Missing.. | [
"58262117+M-Vause@users.noreply.github.com"
] | 58262117+M-Vause@users.noreply.github.com |
a278f0bc44fb47cd238503f8912dff1b24e8beb1 | 6a63a3b241e161d1e69f1521077617ad86f31eab | /python/ray/experimental/state/common.py | e7b7924fe0bb763df8cd8d19f2e8e81d27a3bd21 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | jovany-wang/ray | 47a9df67e8ea26337517d625df50eb0b8b892135 | 227aef381a605cb1ebccbba4e84b840634196a35 | refs/heads/master | 2023-09-03T23:53:00.050619 | 2022-08-20T21:50:52 | 2022-08-20T21:50:52 | 240,190,407 | 1 | 1 | Apache-2.0 | 2023-03-04T08:57:04 | 2020-02-13T06:13:19 | Python | UTF-8 | Python | false | false | 34,196 | py | import logging
from abc import ABC
from dataclasses import dataclass, field, fields
from enum import Enum, unique
from typing import Dict, List, Optional, Set, Tuple, Union
import ray
import ray._private.ray_constants as ray_constants
import ray._private.services as services
from ray._private.gcs_utils import GcsClien... | [
"noreply@github.com"
] | jovany-wang.noreply@github.com |
c105719f8aa28daae90c30b42b72d80b23af382a | 473fc28d466ddbe9758ca49c7d4fb42e7d82586e | /app/src/main/java/com/syd/source/aosp/external/trappy/tests/test_ftrace.py | e6f63192d5b2bd06fae71bb14db10175503da3fa | [
"Apache-2.0"
] | permissive | lz-purple/Source | a7788070623f2965a8caa3264778f48d17372bab | e2745b756317aac3c7a27a4c10bdfe0921a82a1c | refs/heads/master | 2020-12-23T17:03:12.412572 | 2020-01-31T01:54:37 | 2020-01-31T01:54:37 | 237,205,127 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 17,711 | py | # Copyright 2015-2017 ARM Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in w... | [
"997530783@qq.com"
] | 997530783@qq.com |
2cc30034a250d2d15900614e4a4462da7b9412bc | 3b1a13edca51449f015086acad1e5a51ae89cba5 | /lang/py/rfc/theme/yield/coroutines/pipeline.py | 08a499de9c9a08471dd2aeab7b9cc1704330de58 | [
"MIT"
] | permissive | ch1huizong/study | 9000042d3ad13b06426b03423ee335aee15fd061 | d3b7c43fc03484839f8bbc7d0d056df1b1eba9cd | refs/heads/master | 2023-09-04T12:45:48.125715 | 2023-08-17T02:49:40 | 2023-08-17T02:49:40 | 162,539,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | #!/usr/bin/env python
# pipeline.py
#
# An example of setting up a processing pipeline with generators
def grep(pattern,lines):
for line in lines:
if pattern in line:
yield line
if __name__ == '__main__':
from follow import follow
# Set up a processing pipe : tail -f | grep python
... | [
"root@k.k.lab"
] | root@k.k.lab |
dc175688edcf4100b51de6e44cf34ecd3170032a | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_123/ch17_2020_03_23_20_00_53_441806.py | a90128eec0df393b5e6257360db2b94766aa2361 | [] | 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 | 171 | py | def eh_bissesto(ano):
if ano%4==0:
return True
elif ano%400==0:
return True
elif ano%100!=0:
return True
else:
return False | [
"you@example.com"
] | you@example.com |
a0a862f4f8c3aeb733054b6b6d474cd8556067dc | 1498148e5d0af365cd7fd16197174174a7fa9800 | /t000771.py | b78cccfa64cdb3a0e24a356fc13a0dca1201ad7c | [] | no_license | feiyanshiren/myAcm | 59a2b80fe7e02787defcb152eee3eae26135322a | 00c7082d5143ddf87aeeafbdb6ce29da46dc8a12 | refs/heads/master | 2023-09-01T12:12:19.866447 | 2023-09-01T09:09:56 | 2023-09-01T09:09:56 | 148,560,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | try:
while 1:
m = input()
s = input()
lm = len(m)
a = ""
for i in range(len(s)):
t = int(m[i % lm]) + ord(s[i])
if t > 122: t = t % 122 + 31
a += chr(t)
print(a)
except: pass | [
"feiyanshiren@163.com"
] | feiyanshiren@163.com |
1499ac03e07eb639fbf9b80351d956b60e3e440c | 3b7b6648b72910046b6a227db30f71aeee2cba9c | /2020-12-20-SRCNN/deeptools/io/HDF5DatasetGenerator.py | ee0d77383c722a86fdba97fdcd1aa74023a78b71 | [] | no_license | ken2190/deep-learning-study | f2abeb1cd302e405a15bbb52188ae44ffb414e2f | f2998be89d0c931176f158ae5f48ca562786e171 | refs/heads/main | 2023-04-02T05:07:08.504212 | 2021-04-11T15:11:22 | 2021-04-11T15:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,718 | py | from tensorflow.keras.utils import to_categorical
import numpy as np
import h5py
class HDF5DatasetGenerator:
def __init__(self, dbPath, batchSize, preprocessors=None, aug=None, binarized=True, n_classes=2):
self.batchSize = batchSize
self.preprocessors = preprocessors
self.aug = aug
... | [
"machingclee@gmail.com"
] | machingclee@gmail.com |
d349529f41e75c88be1b0458b05f6983344037eb | 09dbe6f5f4a01d25df5b5783fcf621d4d4e6acab | /python/workflow/old_workflow_scripts_2015/template_xcorr.py | 55b84b8a92f611cc3b919e2d85ae1fbe89e665cb | [] | no_license | cjhopp/scripts | b2e925b42e3685713475d15cb4a637e62143778a | 89cecfe82532e84a739e26a845b9455df0090ca5 | refs/heads/master | 2023-05-31T06:35:03.638455 | 2023-05-15T18:14:44 | 2023-05-15T18:14:44 | 71,869,887 | 7 | 5 | null | 2017-07-12T13:59:15 | 2016-10-25T07:15:46 | null | UTF-8 | Python | false | false | 5,341 | py | #!/user/bin/python
"""
Take a set of templates and cross-correlate them with each other using obspy.cross_correlation.xcorr
Will be used for identifying multiplets in MRP dataset
"""
import os
import cPickle as pickle
import pylab as pl
from obspy import Stream, read, UTCDateTime
from obspy.signal.cross_correlation i... | [
"cjhopp@mtu.edu"
] | cjhopp@mtu.edu |
7537e21d490ebac31224d4d6f696a7b6154fd994 | 4926667354fa1f5c8a93336c4d6e2b9f6630836e | /1164.py | 39e0dd33dcad41cd70ef217fab0a5b4705cf2f5e | [] | no_license | nascarsayan/lintcode | 343b3f6e7071479f0299dd1dd1d8068cbd7a7d9e | 4da24b9f5f182964a1bdf4beaa8afc17eb7a70f4 | refs/heads/master | 2021-07-13T12:31:45.883179 | 2020-07-20T02:27:53 | 2020-07-20T02:27:53 | 185,825,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | class Solution:
"""
@param nums: the given sequence
@return: the length of the longest subsequence that is a wiggle sequence
"""
def wiggleMaxLength(self, nums):
# Write your code here
size = len(nums)
if size == 0:
return 0
inc = [1] * size
dec = [1] * size
for i in range(1, si... | [
"nascarsayan@iitkgp.ac.in"
] | nascarsayan@iitkgp.ac.in |
9dd0a54b13f545e4de0ddc2b2dc041cab2fb6a6b | d75371f629cf881de3c49b53533879a5b862da2e | /python/roman-to-integer.py | a0b9e6ef4729165ba9143f0ec502e00628a243c5 | [] | no_license | michaelrbock/leet-code | 7352a1e56429bb03842b588ba6bda2a90315a2f4 | 070db59d4e0ded3fb168c89c3d73cb09b3c4fe86 | refs/heads/master | 2020-04-01T05:40:49.262575 | 2019-10-10T22:03:10 | 2019-10-10T22:03:10 | 152,914,631 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | VALUES = {
'I': 1,
'V': 5,
'X': 10,
'L': 50,
'C': 100,
'D': 500,
'M': 1000,
}
class Solution:
def romanToInt(self, s):
"""
:type s: str
:rtype: int
"""
# Strategy:
# Keep running total
# Start an index at 0 and walk through s.
# If s[index] < s[index+1] or index =... | [
"mykel.bock@gmail.com"
] | mykel.bock@gmail.com |
515d049517d94c9fa99473f75397a903193627b0 | 6836a79af4ae88f589a33cb3d2813cb818da2e87 | /venv/bin/pip3 | 37dedeb75f429898c68343a768f9da4f54190e79 | [] | no_license | vatsal-uppal-1997/AutomatedAttendanceSys | 28fdffdc563ca34bfd77d348f062fba9c0374956 | 238666df484691573f8d12d7c297b020698c4540 | refs/heads/master | 2020-03-14T05:41:25.466471 | 2018-05-04T17:08:47 | 2018-05-04T17:08:47 | 131,469,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | #!/root/PycharmProjects/Final/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"root@localhost.localdomain"
] | root@localhost.localdomain | |
c2423929968eb80fcb4b162289e3618081eda55c | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/rjdtas001/question4.py | 2910687c47f964b143e217ed740d03146de1de5c | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 589 | py | one = ""
twoplus = ""
twominus = ""
three = ""
fail = ""
marks = input("Enter a space-separated list of marks:\n")
marks = marks.split(" ")
X = "X"
for i in range (len(marks)):
if eval(marks[i])<50:
fail += X
if 50<=eval(marks[i])<60:
three += X
if 60<=eval(marks[i])<70... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
edf8784364fab1dfa8225f889f08e9caf93d0726 | 0566cf76b456518875edecece15e763a36a4795f | /sandcrawler/scraper/util.py | 12b7b031fa4ca4761d414c6d6a1db74171075ff3 | [] | no_license | theclonedude/Scraping_BeautifulSoup_phantomjs | 684b1f7a993e0d2555daa7a5455cf19bd29b0b1b | faf653feae46c21a72d13b2123cdebdb2f7c05d8 | refs/heads/master | 2023-03-16T19:36:14.867361 | 2018-06-14T14:21:02 | 2018-06-14T14:21:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,731 | py | # -*- coding: utf-8 -*-
import os
import re
import urllib2
import urlparse
IMAGE_MATCH = re.compile('.*(\.jpe?g|\.gif|\.png|\.ico)$', re.IGNORECASE)
IMDB_SEARCH = re.compile('imdb\.com')
YOUTUBE_SEARCH = re.compile('\.youtube\.co')
FACEBOOK_SEARCH = re.compile('\.facebook\.[co|net]')
ASSET_MATCH = re.compile('.*(\.js|... | [
"stryokka@gmail.com"
] | stryokka@gmail.com |
3127cb36b657682cae827bdadbe9b1c2deeae05b | b3c070597742904f963f44414e9195511770520b | /venv/lib/python3.8/site-packages/openapi_client/models/batch_match_personal_first_last_name_in.py | a62d3fc181a95c4d484fcb2a99df1f7737fcb737 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | akshitgoyal/NLP-Research-Project | 7d98cf0bccd8fdfcc13a23e5f17fcc703aa4b565 | 6adf80cb7fa3737f88faf73a6e818da495b95ab4 | refs/heads/master | 2022-12-11T05:51:08.601512 | 2020-09-03T18:05:56 | 2020-09-03T18:05:56 | 270,881,124 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,636 | py | # coding: utf-8
"""
NamSor API v2
NamSor API v2 : enpoints to process personal names (gender, cultural origin or ethnicity) in all alphabets or languages. Use GET methods for small tests, but prefer POST methods for higher throughput (batch processing of up to 100 names at a time). Need something you can't fi... | [
"goyalakshit.ag@gmail.com"
] | goyalakshit.ag@gmail.com |
9a946c0b1e09ad4179ade46f565b38038c806bc6 | dba2c38285fd8669c3fca22434ec1e76a3ef79ef | /agents/dhl/dhl.py | 06851c9e198ce6329ef8771ad2d94562d9f8c577 | [
"MIT"
] | permissive | voiser/zoe-dhl | e4a3752fa980461808d765c368105364158b9f69 | 6e4ed37033d5da91cc89ebbffc0fd36d83e96f62 | refs/heads/master | 2020-05-18T10:08:03.566562 | 2014-11-15T18:42:35 | 2014-11-15T18:42:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,386 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# This file is part of Zoe Assistant - https://github.com/guluc3m/gul-zoe
#
# Copyright (c) 2014 David Muñoz Díaz <david@gul.es>
#
# This file is distributed under the MIT LICENSE
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of thi... | [
"david@gul.es"
] | david@gul.es |
39c577a3fcf36d0817c9268cc9649f5650eefe31 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/get_online_deployment_logs.py | f308945f24f8c2d94843cb6afebff657d33967e1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 2,926 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
7d5cf735f9f5e3ee241d087bbd24a1ec08baf07a | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/synthetic/rtpolicy.py | db9b6cbb397d5d6afff076116269e19f7c7206a5 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,504 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
35c93394821be903299a0215e22cbb1802a86279 | 85169df1604bc381d694946e821e11c97bbd8773 | /sagepaypi/models/card_identifier.py | 5f95d7964890ce1aefee0735d9a06dca611b7ebf | [
"MIT"
] | permissive | AccentDesign/django-sagepaypi | dbf62c569d37201a2c76e4b253cb9e6b6a7dc62b | afb419b25f9819f4a7d09a12a3bb3ac4cd4745c6 | refs/heads/master | 2020-04-21T19:42:35.571754 | 2019-12-11T16:54:49 | 2019-12-11T16:54:49 | 169,816,952 | 0 | 2 | MIT | 2019-03-06T15:03:22 | 2019-02-09T00:32:13 | CSS | UTF-8 | Python | false | false | 3,946 | py | import uuid
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import ugettext_lazy as _
class CardIdentifier(models.Model):
id = models.UUIDField(
default=uuid.uuid4,
editable=False,
primary_key=True
)
created_at = models... | [
"stuart@accentdesign.co.uk"
] | stuart@accentdesign.co.uk |
c86afb8ae89ebcf7021605f17a4e2c7bfff2559f | 5ab43d03001ae459fae26e9bd17b659f2e9decb1 | /web/utils/basehandler.py | b305456031f427fde55c743b44d1900b6b0a0161 | [] | no_license | bradbann/dbops | c022f0bf15e1af3438c4726a57ede139bfcbfc18 | 1097e142ba03406c99ac7d007001f35a2db39fcd | refs/heads/master | 2023-02-05T18:50:55.351188 | 2020-12-28T00:50:22 | 2020-12-28T00:50:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020/1/15 9:02
# @Author : 马飞
# @File : basehandler.py
# @Software: PyCharm
import tornado.web
import time
from tornado.web import HTTPError
from web.model.t_xtqx import check_url
class basehandler(tornado.web.RequestHandler):
def get_current_user(self):
... | [
"zhdn_791005@163.com"
] | zhdn_791005@163.com |
6c2262e0f8d075cdbd99df34d23111bc403b865c | caf88fb0ba26c0f21a13896025af960d0feeed4b | /arcade/examples/shapes.py | 0567e5f800c65a2ab78e884940f5a0df2f759b11 | [
"MIT"
] | permissive | ambarrlite/arcade | 7812a104333ec85b796a5a6334918f2e3b14bd80 | b77e76396c7a2968fe6d55604a9def33dc405104 | refs/heads/master | 2023-06-18T01:13:10.081751 | 2020-08-17T20:57:18 | 2020-08-17T20:57:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,963 | py | """
This simple animation example shows how to use classes to animate
multiple objects on the screen at the same time.
Because this is redraws the shapes from scratch each frame, this is SLOW
and inefficient.
Using buffered drawing commands (Vertex Buffer Objects) is a bit more complex,
but faster.
See http://arcade... | [
"paul@cravenfamily.com"
] | paul@cravenfamily.com |
6d4af576b257e099ce2ef8ebfe7d92d184e169b2 | b33daa42ce3d83a1dedc21ea4d9787c76fc478ac | /circle_settings.py | 05d3f940604d2e0c4c16a1e2eb4ef731ad47c539 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | audacious-software/Passive-Data-Kit-External-Data | 64875016fa0212378775aaa927b67c6f0a552beb | 67d00ffccedcf172a8a259dccbeba625dd30df09 | refs/heads/main | 2023-08-18T07:18:59.773868 | 2023-08-07T17:45:39 | 2023-08-07T17:45:39 | 221,719,207 | 2 | 0 | Apache-2.0 | 2023-09-11T01:13:04 | 2019-11-14T14:41:47 | Python | UTF-8 | Python | false | false | 2,540 | py | # pylint: skip-file
"""
Settings.py for testing on CircleCI.
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
import sys
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'foobar' # nosec
DEBUG = False
ADMINS = [('Chris Karr', 'chris@audacious-... | [
"chris@audacious-software.com"
] | chris@audacious-software.com |
b90a9f2a4004edb37de3e9e4ff1a12dca933123c | d7913f1829aaabdf8d88957c62e16ecc006fc910 | /adapters/TelegramAdapter.py | 9f7e1356553641439f5be4cdeb943d4d7d6ac12f | [] | no_license | zeionara/google-sheets-notifier | c44c5b9d1222a33a6e4eab54c6c14cad92a7599c | 0a1fed64126308a946cad8d9907cb5ddc688d8cb | refs/heads/master | 2022-12-25T01:15:32.935817 | 2020-09-25T16:39:44 | 2020-09-25T16:39:44 | 298,627,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | import telegram
class TelegramAdapter:
def __init__(self, token: str, chat_id: int):
self.bot = telegram.Bot(token=token)
self.chat_id = chat_id
def send(self, message: str):
self.bot.send_message(chat_id=self.chat_id, text=message)
| [
"zeionara@gmail.com"
] | zeionara@gmail.com |
9ac0babda672355469e1b81cfd5de8ae579b4e98 | beb4c1dd9077f11ebd7aca407b272acbc780aa3c | /natureShare/natureShareApp/migrations/0008_organism_user.py | 5d485e73c5a3975fa7a685d75066b7310c32d9cf | [] | no_license | jpchato/nature-share | f89cfc1295648e9a0b03b7281d72d9179357b0be | 2cb952e72ea43c45884cd4a6c4b39c32936fe612 | refs/heads/master | 2023-02-19T06:46:01.213253 | 2021-01-15T19:10:24 | 2021-01-15T19:10:24 | 317,411,534 | 1 | 0 | null | 2021-01-13T20:23:29 | 2020-12-01T03:15:01 | Python | UTF-8 | Python | false | false | 605 | py | # Generated by Django 3.1 on 2020-12-15 02:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('natureShareApp', '0007_aut... | [
"jpchato@gmail.com"
] | jpchato@gmail.com |
b19d5daf520b990192670c82a8c0c077d22b4d75 | 70922de165319283d640821fd42ea1806da402c0 | /supervised_learning/0x03-optimization/2-shuffle_data.py | f807e5e8ff48ebe0fcce908b5d08a552ae65012b | [] | no_license | ikki2530/holbertonschool-machine_learning | bdd8152d575a99281e2cce105cf87442ec07f2fb | 0b56aa0e92d65d4a5832cc994769834fbcfbe0ac | refs/heads/main | 2023-07-07T00:49:03.675328 | 2021-08-11T10:27:56 | 2021-08-11T10:27:56 | 317,352,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | #!/usr/bin/env python3
"""Normalize"""
import numpy as np
def shuffle_data(X, Y):
"""
- Shuffles the data points in two matrices the same way.
- X is the first numpy.ndarray of shape (m, nx) to shuffle,
m is the number of data points and nx is the number of features in X.
- Y is the second numpy.n... | [
"dagomez2530@gmail.com"
] | dagomez2530@gmail.com |
40ad70fe9e1ca5413309d477db706d8cbf1f9f8e | ad59fb12042bfd3f5c43eca057d0f747f9e148cf | /AdvancedFreePlayer/Cleaningfilenames.py | df57b886c649f3de1f81c9a669778b8cc650b550 | [] | no_license | lexlong2007/eePlugins | d62b787100a7069ad5713a47c5688008063b45ec | 167b262fe36901a2d3a2fae6d0f85e2307b3eff7 | refs/heads/master | 2022-03-09T05:37:37.567937 | 2022-02-27T01:44:25 | 2022-02-27T01:44:25 | 253,012,126 | 0 | 0 | null | 2020-04-04T14:03:29 | 2020-04-04T14:03:29 | null | UTF-8 | Python | false | false | 3,841 | py | # -*- coding: utf-8 -*-
import re
from os import path
def cleanFile(text, ReturnMovieYear = True, metaFileName = ''):
if text.endswith('.ts'):
if metaFileName != '' and path.exists(metaFileName):
with open(metaFileName,'r') as descrTXT:
tmpTXT = descrTXT.readline()
... | [
"zdzislaw22@windowslive.com"
] | zdzislaw22@windowslive.com |
fd687350efcd52b7f07764f3e2b57d1f71fc2fc1 | f2658c4bd7f833ace25ac2b63e88317b05f4602d | /2017 November/6/Lash/Lash/st_rdf/model/RelationsGostraight.py | d42f60d61d4815cfabd11371cffe60f9d735935d | [] | no_license | xiaochao00/telanav_diary | e4c34ac0a14b65e4930e32012cc2202ff4ed91e2 | 3c583695e2880322483f526c98217c04286af9b2 | refs/heads/master | 2022-01-06T19:42:55.504845 | 2019-05-17T03:11:46 | 2019-05-17T03:11:46 | 108,958,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,579 | py | #-------------------------------------------------------------------------------
# Name: RelationsGostraight model
# Purpose: this model is used to mapping the
# columns: [ ]
#
# Author: rex
#
# Created: 2016/01/20
# Copyright: (c) rex 2016
# Licence: <your licence>
#-------------... | [
"1363180272@qq.com"
] | 1363180272@qq.com |
d88ea70dcba353e1b993f4a795ededeeb9413314 | b96f1bad8a74d31d8ff79bc955813bfcd17d7b26 | /Longest Valid Parentheses2.py | 584b6d86dbf31c3e95ca317847da18c5d1a149ff | [] | no_license | brianhu0716/LeetCode-Solution | e7177af15e84e833ce8ab05027683ed4ac489643 | 158a4359c90b723545b22c4898047274cc1b80a6 | refs/heads/main | 2023-07-11T05:29:56.783795 | 2021-08-28T12:53:14 | 2021-08-28T12:53:14 | 374,991,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,466 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 6 21:37:21 2021
@author: Brian
"""
import numpy as np
class Solution:
def longestValidParentheses(self, s) -> int:
i = 0
self.s = s
self.pairs = []
self.c = 0
self.flag = []
if len(s) <= 1: # in case s = '','('...
... | [
"85205343+brianhu0716@users.noreply.github.com"
] | 85205343+brianhu0716@users.noreply.github.com |
b41606cc1812557a7b1733273f01b684b4652aa5 | 77900cdd9a815caf1cd04705321ca93f5072179f | /Project/.history/product_20211116164005.py | 86bf19ad179c49d28fa15abf4844785eefbe5527 | [] | no_license | Bom19990111/helloword_python | 717799d994223d65de5adaeabecf396ff2bc1fb7 | 2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7 | refs/heads/master | 2023-09-06T04:17:02.057628 | 2021-11-21T20:00:46 | 2021-11-21T20:00:46 | 407,063,273 | 0 | 1 | null | 2021-11-21T20:00:47 | 2021-09-16T07:18:35 | Python | UTF-8 | Python | false | false | 10,878 | py | import data as list_product
import random
import pandas as pd
# def __init__(self, Id, Product_code, Product_name, Brand, Year, Size):
# self.Id = Id
# self.Product_code = Product_code
# self.Product_name = Product_name
# self.Brand = Brand
# self.Year = Year
# self.Size = Size
# Thêm sản phẩ... | [
"phanthituyngoc1995@gmail.com"
] | phanthituyngoc1995@gmail.com |
27e0ba4628b84a8e4d9502fbbd7e0b4f0fbf901c | 1a809f0f6b639b38eac3ca2b3ca6f385a9bce9d0 | /0x0A-python-inheritance/3-is_kind_of_class.py | 533545a1c5f27f820efce84cd3ef25664bb26c9b | [] | no_license | oscarmrt/holbertonschool-higher_level_programming | 830790c5964e5d4c998f867b73e1e0f77b309e5a | be8319a5748cdc71ffe76f959e8ecd083fafb545 | refs/heads/master | 2020-09-29T06:00:41.391101 | 2020-05-14T20:44:17 | 2020-05-14T20:44:17 | 226,969,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | #!/usr/bin/python3
'''
Write a function that returns True if the object is an instance of,
or if the object is an instance of a class that inherited from,
the specified class; otherwise False.
'''
def is_kind_of_class(obj, a_class):
return isinstance(obj, a_class)
| [
"oscarmrt@hotmail.com"
] | oscarmrt@hotmail.com |
1d11b05015107eb7628fc1d9fffeb73ea778ee2d | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf.0/gsn-edf_ut=3.5_rd=1_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=34/params.py | 4f9615b43d66ace682e09a59ae611de95286a704 | [] | 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 | 252 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.706333',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'GSN-EDF',
'trial': 34,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
3827454a3177296ed86058c99fa7eba9834902d0 | d1d633abb313c235b4c178ccf2939537bd4232b0 | /initpy/users/apps.py | a7194b8ab366a6a0f361d3bf8f21a6efa6e6f27a | [
"MIT"
] | permissive | dcopm999/initpy | ee82229bf5ac311d83297d484012a7048c015a02 | 26aa6bda25947f67ab842d298ce2f121b89616bf | refs/heads/master | 2022-12-01T23:45:35.446225 | 2022-06-09T04:58:26 | 2022-06-09T04:58:26 | 195,928,228 | 0 | 1 | MIT | 2019-07-15T04:13:26 | 2019-07-09T03:47:10 | JavaScript | UTF-8 | Python | false | false | 310 | py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class UsersConfig(AppConfig):
name = "initpy.users"
verbose_name = _("Users")
def ready(self):
try:
import initpy.users.signals # noqa F401
except ImportError:
pass
| [
"dcopm999@gmail.com"
] | dcopm999@gmail.com |
599bed9d17ad5963a09468309eb5a0d617743673 | eeea27393aa91ded7452f8ba3b9e59de34b352e3 | /core/types.py | 78eedb58480ce5ee160225d5edb14628314e2242 | [
"MIT"
] | permissive | timbrel/GitSavvy | 021654f9dba690601f2a2ea4696230ac3c14dc88 | 7f6eae583ba4a38749b14a6e348c6d4fcf6811e8 | refs/heads/master | 2023-09-05T20:02:14.775466 | 2023-07-18T11:17:15 | 2023-07-18T11:17:15 | 29,417,074 | 174 | 32 | MIT | 2023-07-29T15:56:38 | 2015-01-18T05:40:08 | Python | UTF-8 | Python | false | false | 245 | py |
MYPY = False
if MYPY:
# Use LineNo, ColNo for 1-based line column counting (like git or `window.open_file`),
# use Row, Col for 0-based counting like Sublime's `view.rowcol`!
LineNo = int
ColNo = int
Row = int
Col = int
| [
"herr.kaste@gmail.com"
] | herr.kaste@gmail.com |
a5785532dc7304c7a37c77b8415c8b66ac004e5f | 1e4c3ea6fadfd2bcffe900a784009e59c9e33202 | /Launchkey/consts.py | 7cd311bb7023a989179aff0ab77d8a0d04410dcf | [] | no_license | mjimserra/AbletonLive9_RemoteScripts | e762e0c761f0af88fc1b9a8b42ef4dec2df02f72 | d08eb29fbf1ac4d12f73841023375059de5ba29a | refs/heads/master | 2021-05-27T21:34:04.962364 | 2014-08-03T22:49:15 | 2014-08-03T22:49:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | #Embedded file name: /Users/versonator/Jenkins/live/Binary/Core_Release_static/midi-remote-scripts/Launchkey/consts.py
SIZE_QUERY = (240, 126, 127, 6, 1, 247)
SIZE_RESPONSE = (240, 126, 127, 6, 2, 0, 32, 41, 0, 25, 0)
LIVE_MODE_ON = (144, 12, 127)
LIVE_MODE_OFF = (144, 12, 0)
PAD_TRANSLATIONS = ((0, 0, 48, 9),
(1, 0, ... | [
"julien@julienbayle.net"
] | julien@julienbayle.net |
f8574f7cb41f608640ddac3755642bd900573b74 | 1d0cf09539f723d9db597365786e92de0778cace | /bamboo/builds.py | 43a2aa7593fef0da72271e24b71f3976ae0bf3c9 | [] | no_license | ttyS15/bamboo-build-tools | c191ac292ceb8cd7a8de0429a6baaa65c551cdf3 | 0a426e61b63a780210cc52c31291556b9b18dddb | refs/heads/master | 2020-05-19T09:27:52.298336 | 2015-10-14T09:32:20 | 2015-10-14T09:32:20 | 11,276,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,218 | py | # coding: utf-8
# $Id: $
from copy import copy
import json
from jira.client import JIRA, translate_resource_args
from jira.utils import raise_on_error
from bamboo.helpers import parse_config
class Bamboo(JIRA):
def __init__(self, server=None, options=None, basic_auth=None, oauth=None,
validate=... | [
"zimbler@gmail.com"
] | zimbler@gmail.com |
05dab7ce41682ad1bfc35ae78817dd7e2da9c041 | 36dfe29989de2005f5ad8f61b7575e16bc7f46ed | /Orange/Bitwise/Power_of_Two.py | fea270c46c7ae50de0930a2538a4e77fb359630b | [] | no_license | chrislevn/Coding-Challenges | ca17e26476a721ca855fef6e2e1587148758dde5 | dee52baaf5d15046a901b174e8b319deaa1c6107 | refs/heads/master | 2022-03-26T00:05:09.817752 | 2022-02-03T17:37:53 | 2022-02-03T17:37:53 | 242,436,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | def check(item):
if item & (item - 1) == 0:
return True
return False
def getBit(num, index):
return (num >> index) & 1
t = int(input())
for i in range(t):
n = int(input())
arr = list(map(int, input().split()))
flag = False
for l in range(30):
sum_and = 0xFFFFF... | [
"locvicvn1234@gmail.com"
] | locvicvn1234@gmail.com |
cf2ca6990b4e0e8621f693edb9ba0a85845e2e27 | 734f04086455d2f6a7441f763a502f0a52f66de8 | /code/compute_entropy_scores.py | eb3e5bb07be4e6a356b6e8f172e1d9ca2ef34c70 | [] | no_license | Sandy4321/MissenseClassificationUsingAdaBoost | 102df2bf022eedcaf47080ac4bddaf81568cee95 | 66a109cdaa69ae46aa0fe51f5511d9f8a3655959 | refs/heads/master | 2020-03-15T01:17:47.727040 | 2017-12-28T12:33:46 | 2017-12-28T12:33:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,487 | py | ''' This module computes conservation score as the difference
in the Shannon Entropy values after the mutation.
created on: 26th July, 2015
author: Rashmi Balasubramanyam <rashmi.bmanyam@gmail.com>
'''
# required packages and modules
import os
import sys
import multiprocessing as mp
# user-defined modules
import che... | [
"noreply@github.com"
] | Sandy4321.noreply@github.com |
004e7b01aa1b736d09794a9a6041cd4994e51201 | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2009/py02/day02/math_game2.py | ff7c1cae9149251ad6d73b20d79359d478b6e6bb | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,338 | py | from random import randint, choice
def add(x, y):
return x + y
def sub(x, y):
return x - y
def exam():
"用于出题,让用户作答"
funcs = {'+': add, '-': sub}
# 随机生成两个整数
nums = [randint(1, 100) for i in range(2)]
nums.sort(reverse=True) # 降序
# 随机选择加减法
op = choice('+-')
# 计算出标准答案
resul... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
ef4e85b23f2764893546ecc7f9d1cacf8c24f4ef | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/tablechooser/StringColumnDisplay.pyi | e34a207ab48350c311c209f6eeec465eb04b4f90 | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,750 | pyi | import ghidra.app.tablechooser
import java.lang
import java.util
import java.util.function
class StringColumnDisplay(ghidra.app.tablechooser.AbstractComparableColumnDisplay):
def __init__(self): ...
@overload
def compare(self, o1: ghidra.app.tablechooser.AddressableRowObject, o2: ghidra.app.tablech... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
c26e5f9b34f9a2808674ce562c78477fc2287765 | 2b4ba937f6fcf56d4d0b483e69a07a232a5b84c6 | /backend/manage.py | 2d7ff217b8159e82bea68edd10a9178122b06392 | [] | no_license | crowdbotics-apps/whats-new-22296 | a0e728c600e07e694e49ddc4dc6e6575537157d8 | 1db3aa6a509bb63620d694dbf9ecfba1136c4015 | refs/heads/master | 2023-01-04T03:24:00.789831 | 2020-11-04T16:23:26 | 2020-11-04T16:23:26 | 310,055,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'whats_new_22296.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2dd831c9acf9f6e404462aec62fd6d34746ed13b | fa9f4eaaec10cfbe3a316d6cd3b28adc82612ac8 | /DJI_BACKUP_17.3.17/catkin_ws/devel/lib/python2.7/dist-packages/dji_sdk/srv/_MissionHpDownload.py | dee3df35047b63f6e9ac63dfebf7c08658c19960 | [] | no_license | tian-cthit/DJI-Challenge-2016 | ca028fcbbd91e1de30a17bf5d65d995197f3d70c | 4d973e15d133f29bd587b9c7b8657de90adc21d6 | refs/heads/master | 2021-06-27T16:40:59.815674 | 2020-10-26T23:51:34 | 2020-10-26T23:51:34 | 177,417,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,831 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from dji_sdk/MissionHpDownloadRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class MissionHpDownloadRequest(genpy.Message):
_md5sum = "d41d8cd98f00b204e9800998... | [
"43132597+tian-cthit@users.noreply.github.com"
] | 43132597+tian-cthit@users.noreply.github.com |
2245e2360a42c8fb6ec1ec629a34eb8754654a5a | d8e4c9182c83ef781e2b574cd639917ecd38a53a | /make.py | 780c67f12feee755f7534be4340a444bb2727a81 | [] | no_license | mirmik/ralgraph | b98fa39904b1e5cea4cfde9f4e6a81a3b7728999 | a66da89ab85b86b7d68787b8b199267f12c40da7 | refs/heads/master | 2020-07-03T12:20:35.018998 | 2020-04-06T10:00:35 | 2020-04-06T10:00:35 | 201,902,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | #!/usr/bin/env python3
#coding:utf-8
import os
import licant
import licant.install
licant.execute("ralgraph.g.py")
licant.cxx_shared_library("libralgraph.so",
mdepends=[
"ralgraph",
],
cxx_flags="-fPIC",
cc_flags="-fPIC"
)
licant.install.install_library(
tgt="install",
uninstall="uninstall",
libtgt="libral... | [
"mirmikns@yandex.ru"
] | mirmikns@yandex.ru |
a56acaecc5de77cb2768a87b8f1af164829bd8e6 | 580905861e3bdd1990cde76ba2b057c898e6f088 | /intro_tdd/functional_tests/tests.py | 6cdf774a1caea06aa346e9cc22f28f89f8d0feeb | [
"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 | 417 | py | import unittest
from selenium import webdriver
class HomePageTest(unittest.TestCase):
def setUp(self):
self.browser = webdriver.Chrome('functional_tests/chromedriver')
def tearDown(self):
self.browser.quit()
def test_home_page(self):
self.browser.get('http://localhost:8000')
... | [
"mahammad.mamdouh@gmail.com"
] | mahammad.mamdouh@gmail.com |
7ee2bc8121eaea9207501a98edc873a4958f0286 | 027604b3744e5ee4db7748520c7841c3be80f8f8 | /CLASE5_RASPBERRY/rotaciones.py | 51d78f81180e9dffb262455996a780503db7ead2 | [] | no_license | jorgepdsML/raspberry_verano | 2d2561d122e708cae8b4b0009ec56c39af640720 | 8e6e9a71bc509ac6339e70be5a21f53c2c5d95c7 | refs/heads/master | 2020-12-09T21:29:59.566715 | 2020-03-01T23:23:24 | 2020-03-01T23:23:24 | 233,421,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | #RASPBERRY
#importar modulos necesarios
import numpy as np
import cv2
import os
#Leer la imagen de entrada en escala BGR
img=cv2.imread("img1.jpg")
#conseguir las filas ,columnas,capas
forma=img.shape
Nf=forma[0]#LARGO ES IGUAL A FILAS
Nc=forma[1]#ANCHO ES IGUAL A COLUMNAS
#realizar una rotación de 45 grados... | [
"noreply@github.com"
] | jorgepdsML.noreply@github.com |
82dd05ddb78bba081e803912248a311e4a3a5e3d | b3084604bb27ff87149bfc49c16a8a5e6ea5582c | /flspticketsystem/models/category.py | 14b799127590e3538ad70559b6ba1f9d051de7b7 | [] | no_license | odoo-smg/firstlight | 9fe308fb876e80a11ebfda40a442983c9a85ae3e | 4a82cd5cfd1898c6da860cb68dff3a14e037bbad | refs/heads/master | 2022-10-09T10:10:36.108190 | 2022-09-28T16:06:30 | 2022-09-28T16:06:30 | 235,829,864 | 3 | 2 | null | 2022-03-17T19:26:27 | 2020-01-23T15:56:48 | JavaScript | UTF-8 | Python | false | false | 506 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class Category(models.Model):
"""
class_name:Category
model_name: flspticketsystem.category
Purpose: To help in creating the category model for the ticketing system
Date: Sept/4th/2020/Fridays
Author: ... | [
"alexandresousa@smartrend.com"
] | alexandresousa@smartrend.com |
06e96800d79095d553e0766db0e5d2f5b3e9e7c3 | 71da259f71428648d4285b1b4863ec2b7641e58c | /ecom/website/migrations/0022_auto_20200904_1228.py | 4c1f33bf1527cb217b5ca641124bf040db2578c7 | [] | no_license | rafimuhammad01/e-com | 8a58d0ccff27516da260b41c180c703fa22e76b3 | 75d451bfc10075090d88d5a16dbd03f626ff72ef | refs/heads/master | 2023-02-18T08:48:26.144483 | 2021-01-15T08:56:54 | 2021-01-15T08:56:54 | 291,625,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | # Generated by Django 3.1 on 2020-09-04 05:28
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('website', '0021_auto_20200904_1146'),
]
operations = [
migrations.RemoveField(
model_name='order'... | [
"rafi10muhammad@gmail.com"
] | rafi10muhammad@gmail.com |
a7b0b76fc4027d6e2bc5b8a8b26b48921d3fa419 | 5181d3b3ef8fe301ea2d6b095260e9d327c2fd79 | /scripts/iemre/add_daily_var.py | 7f9217bd7bdcca8f9f54dc9e9a7604aed6922859 | [] | no_license | danhreitz/iem | 88113ef9c9c4a2918c9c2abdfd0510d5ca4ec819 | ed490dcd6c2a8359f88cb805ccee8f6707566f57 | refs/heads/master | 2021-01-18T15:27:28.607250 | 2015-08-10T21:33:54 | 2015-08-10T21:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | import netCDF4
import os
import numpy as np
for yr in range(1893, 2016):
fn = "/mesonet/data/iemre/%s_mw_daily.nc" % (yr, )
if not os.path.isfile(fn):
print 'Miss', fn
continue
print fn
nc = netCDF4.Dataset(fn, 'a')
rsds = nc.createVariable('rsds', np.float, ('time', 'lat', 'lon'),
... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
70cff2af2847a6c037c8e9237e892550f63b9907 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1239+439/sdB_PG_1239+439_lc.py | 3f9f604f6ed345a16af320cc8f6ee49d7508c70d | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[190.507417,43.673439], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_1239+439 /sdB_PG_1239+439_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
11496905d0db0805d603776c2012771b022e7509 | 246ec8733c63a28518160af8fc9e21ae04f76649 | /examples/roberta/download_glue_data.py | ee5561ccec0aa281b3fca1ec25b59f3ef1f47951 | [
"MIT"
] | permissive | fyabc/BT4MolGen | 80050dc24031753fa3052ef60a5bea170d9d9c56 | 05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c | refs/heads/master | 2023-05-29T01:38:36.614479 | 2021-06-18T15:56:13 | 2021-06-18T15:56:13 | 370,941,322 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,010 | py | """ Script for downloading all GLUE data.
Note: for legal reasons, we are unable to host MRPC.
You can either use the version hosted by the SentEval team, which is already tokenized,
or you can download the original data from (https://download.microsoft.com/download/D/4/6/D46FF87A-F6B9-4252-AA8B-3604ED519838/MSRParaph... | [
"fyabc@mail.ustc.edu.cn"
] | fyabc@mail.ustc.edu.cn |
07964adb26a40cce107d6416ee82dc919ef12a04 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /C9Hboff46QSMZBRiL_1.py | b906e18f14e2b4b69fd8d584cfb3bc21675d2c6f | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,681 | py | """
Given a set `S` of allowed letters, an S-string is a string written using only
those letters. For example, if `S={"d","g"}` then `"dgggdgdggd"` is an
S-string but `"dag"` is not.
For a fixed set `S` and max string size `M` (chosen so that we need only deal
with finitely many strings) one can order those strings... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
472095abc5bf37c2756a06e1c9ac866689b6d82c | e9c001b12bf5b56e9d1bd21ed836e16397aac60d | /pyatool/extras.py | 39657cb25c77c816d3faace08a4739592c4a0a79 | [
"MIT"
] | permissive | Hanlen520/pyatool | ab3baaf846ab206627325b72bd63a5ad7ae599c1 | 931524a02e53b5b014fc9e268088fbda43b26bfd | refs/heads/master | 2020-04-04T09:46:01.521761 | 2019-05-23T07:50:40 | 2019-05-23T07:50:40 | 155,830,883 | 0 | 0 | MIT | 2019-05-23T07:50:42 | 2018-11-02T07:39:00 | Python | UTF-8 | Python | false | false | 8,865 | py | import requests
import tempfile
import os
import re
import platform
SYSTEM_TYPE = platform.system()
def hello_world(toolkit=None):
"""
test only
:param toolkit:
:return:
"""
# toolkit contains some tools for development
# get device id
device_id = toolkit.device_id
print(device_i... | [
"178894043@qq.com"
] | 178894043@qq.com |
16e5ad2031d46c740ccc64876575d3f01e81df47 | 41a672c9505b5b53c58a01d5455acc410949aa24 | /tests/aoutgoing/acceptance/messaging/group_chat/gallery/C_15395.py | c429a03de8c28931f11444df939923c5ab3e8456 | [] | no_license | Alexsorgo/mobile_iOS | b045a0ea058726841c88158be8407b7ae45e893e | 7e298f890b408cedad9db9d0aefeccd9c10d6002 | refs/heads/master | 2022-12-12T17:26:14.039876 | 2020-03-18T06:34:56 | 2020-03-18T06:34:56 | 248,154,882 | 0 | 0 | null | 2021-06-02T01:13:05 | 2020-03-18T06:25:17 | Python | UTF-8 | Python | false | false | 1,973 | py | from configs import config
from screens.chats.chat_screen import ChatScreen
from screens.chats.storage_screen import StorageScreen
from screens.gallery.gallery_screen import GalleryScreen
from controls.menu import Menu
from screens.group.group_list_screen import GroupListScreen
from screens.other_profile_screen import ... | [
"oleksii_mishchenko@epam.com"
] | oleksii_mishchenko@epam.com |
5ecb29c6d8acb4b42f445760a82775d4e8ce67e4 | d0433e9da37b989cb709c06f3d5985f290ddf91a | /python/guidos-gorgeous-lasagna/lasagna.py | 99f55a347a0ecbb551dabb77ddd832ae1790181a | [] | no_license | erickgnavar/exercism | 4f8eca5ad18d76262b05c5215e08ce67d7e08480 | b9af494ec4cabc9cbafc825fe287e4f6b5967809 | refs/heads/master | 2023-08-16T10:36:46.566462 | 2023-08-10T03:16:26 | 2023-08-10T03:16:26 | 106,373,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | """Functions used in preparing Guido's gorgeous lasagna.
Learn about Guido, the creator of the Python language: https://en.wikipedia.org/wiki/Guido_van_Rossum
"""
EXPECTED_BAKE_TIME = 40
PREPARATION_TIME = 2
def bake_time_remaining(elapsed_bake_time):
"""Calculate the bake time remaining.
:param elapsed_ba... | [
"erick@navarro.io"
] | erick@navarro.io |
c7a93451f30f0e2c42ecbe7f519efc217ab7f515 | 7d3bb039bd1bf72675b930b2e06e3115c5150a19 | /Huawei/96.表示数字.py | c5b29702f1b36f6b7584bcdffac31b919a9e155f | [] | no_license | myf-algorithm/Leetcode | b86e2eedfcf634a200be11d5a2baa22be4dd7395 | 3f4284330f9771037ca59e2e6a94122e51e58540 | refs/heads/master | 2023-04-01T21:48:05.080826 | 2023-03-27T03:42:02 | 2023-03-27T03:42:02 | 239,461,432 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | while True:
try:
a, res, isNum = input(), "", False
for i in a:
if i.isdigit():
if not isNum:
res = res + "*" + i
else:
res += i
isNum = True
else:
if isNum:
... | [
"1332046108@qq.com"
] | 1332046108@qq.com |
22a671f8d9f04e92b1895ddf988f81844d075ef3 | 52e3ea91c8f9eded2f686d13ff583cfe848592c1 | /setup.py | ba24e3913f95811b8dbfe3d71e32492d5ab3c825 | [] | no_license | riquellopes/desafio-captura | 3fdbbe4bc0787e20a3752e11f833d1b94238ae91 | 2a433dd42c12ca38c14a5ca875eec34f3351accd | refs/heads/master | 2021-01-19T11:58:21.467392 | 2018-08-31T23:07:52 | 2018-08-31T23:07:52 | 69,697,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | #!/usr/bin/env python3
import monk
from distutils.core import setup
setup(name='monk',
version=monk.__version__,
description='Monk detective',
package_data={'': ['*.cfg']},
packages=['monk', 'handlers', 'extractors', ])
| [
"riquellopes@gmail.com"
] | riquellopes@gmail.com |
2ca224bb64bddbe49771a65fbefe327634bdd772 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/EvinceDocument/Image.py | b7ed59815b2e2b27f2d90f6292c057802f5aab98 | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 15,656 | py | # encoding: utf-8
# module gi.repository.EvinceDocument
# from /usr/lib64/girepository-1.0/EvinceDocument-3.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
ca8b36cd71441b29f21ab715626b1a27d0221cdc | 7683819c74d0f5e3b8d4e8dcf0b97e99cc88c1e4 | /ecommerce/user/models/user_profile.py | 1bb20d47e7876acd2486a575bd6afc655c134797 | [] | no_license | drsantos20/ecommerce-backend | 9967f3b58badfd5eaf33e5286179b15934dfe833 | cdffbe95820b6b90863d3c5b61576715519b291c | refs/heads/master | 2021-09-25T06:20:50.066416 | 2020-10-25T02:09:43 | 2020-10-25T02:09:43 | 243,107,066 | 2 | 0 | null | 2021-09-22T18:41:19 | 2020-02-25T21:33:19 | Python | UTF-8 | Python | false | false | 511 | py | from django.contrib.auth.models import User
from django.db import models
class UserProfile(models.Model):
USER_TYPE_CHOICES = (
(1, 'customer'),
(2, 'admin'),
)
user = models.OneToOneField(User, on_delete=models.CASCADE)
user_type = models.PositiveSmallIntegerField(choices=USER_TYPE_C... | [
"drsantos20@gmail.com"
] | drsantos20@gmail.com |
65108d09098f4eafd4865f01ab59b5989323fe26 | 06f7ffdae684ac3cc258c45c3daabce98243f64f | /vsts/vsts/test/v4_0/models/test_results_details_for_group.py | e5858e91798d7eb2872c7457e9823451da7fc849 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | kenkuo/azure-devops-python-api | 7dbfb35f1c9637c9db10207824dd535c4d6861e8 | 9ac38a97a06ee9e0ee56530de170154f6ed39c98 | refs/heads/master | 2020-04-03T17:47:29.526104 | 2018-10-25T17:46:09 | 2018-10-25T17:46:09 | 155,459,045 | 0 | 0 | MIT | 2018-10-30T21:32:43 | 2018-10-30T21:32:42 | null | UTF-8 | Python | false | false | 1,490 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"tedchamb@microsoft.com"
] | tedchamb@microsoft.com |
15499d1a82673d85a1d245b0673c1870289c73f2 | a367a015dbc36287ca933955ded1ee58b5a2a61a | /swagger_client/models/mycological_calculator.py | 74f89fe7b919df2814310b9ce745c2ac75c11e9e | [] | no_license | kerniee/inno_intership_1_test_task | 70211e153450011c427df595a02e3574dfe7ed9f | fc0619ef54b00806a3b59f3c07c1c1684682d65b | refs/heads/master | 2023-05-23T02:24:40.083723 | 2021-06-21T16:15:04 | 2021-06-21T16:15:04 | 365,855,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,183 | py | # coding: utf-8
"""
Teleagronom
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
... | [
"karapys.mor@gmail.com"
] | karapys.mor@gmail.com |
d49e23491f3bb0898536b9a563d0e6457ad2d97a | dedb64719eb23bac0425431db07d1cf98f7d5416 | /fullcalender/models.py | 2dbdda28e0d2776ab301ed018fee864f4feb3995 | [] | no_license | sunnam1996/GraytHr | 90908b7c87d13eeea7a1126e534382cfe00c43c5 | e4ff58454326f0b372fbe1057274b7ef4c5b1af5 | refs/heads/master | 2022-12-16T16:30:14.946987 | 2019-11-25T10:31:40 | 2019-11-25T10:31:40 | 223,920,592 | 0 | 0 | null | 2022-12-08T06:56:34 | 2019-11-25T10:21:41 | Python | UTF-8 | Python | false | false | 413 | py | from django.db import models
from django.urls import reverse
class Event(models.Model):
title = models.CharField(max_length=200)
description = models.TextField()
start_time = models.DateTimeField()
end_time = models.DateTimeField()
@property
def get_html_url(self):
url = reverse('cal:... | [
"sunnamr@gmail.com"
] | sunnamr@gmail.com |
a809f7e7830f43525fcf6b9221b5f78a334fda65 | d67bd00f8fe819bd3011ce154c19cbc765d59f1d | /branches/3.2_buildout/il/sapl/skins/cadastros/tramitacao_documento/tramitacao_juntar_pdf.py | 01ad01d8128f6d9d9936847b83f1538845e0e4f3 | [] | no_license | openlegis-br/sagl | 90f87bdbbaa8a6efe0ccb5691ea8424575288c46 | eabf7529eefe13a53ed088250d179a92218af1ed | refs/heads/master | 2023-08-31T12:29:39.382474 | 2023-08-29T16:12:01 | 2023-08-29T16:12:01 | 32,593,838 | 17 | 1 | null | 2023-08-29T06:16:55 | 2015-03-20T16:11:04 | Python | UTF-8 | Python | false | false | 368 | py | ## Script (Python) "tramitacao_juntar_pdf"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=cod_tramitacao
##title=
##
from Products.CMFCore.utils import getToolByName
st = getToolByName(context, 'portal_sapl')
return st.tramitacao_do... | [
"contato@openlegis.com.br"
] | contato@openlegis.com.br |
aa004af7efa4789a9285f5c5c816492e748f1096 | bf15a97a377bc49495a8c278cd247387a08361fd | /intersight/models/appliance_backup_policy_ref.py | 4244273d17dba8d243837a4d17357af40ea79081 | [
"Apache-2.0"
] | permissive | movinalot/intersight-python | ffcb434e5fdf3f6e857dd967c794a64b2d2e05de | cdc3b082d75eac93b74029ab610e16d3008fdd8c | refs/heads/master | 2020-12-18T15:46:06.780834 | 2019-10-29T00:39:49 | 2019-10-29T00:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,729 | py | # coding: utf-8
"""
Intersight REST API
This is Intersight REST API
OpenAPI spec version: 1.0.9-961
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class ApplianceBackupPolicyRef(object):
"""
NOTE: T... | [
"ategaw@cisco.com"
] | ategaw@cisco.com |
cbc8419cfce8de39ead91d6dd0ac9772a2e82c06 | 22b999c70f8868b721823ec1412d6d7b5be6ea69 | /itl/migrations/0004_auto_20170613_0029.py | d3b5eb2f7ab31b4f24761ea41091f383db4fa665 | [] | no_license | shacker/tunedex | 39e37f7086305a8561b72ffd3e01ad2103d0219b | 7a48c778e616ba445fff4263c8463e8506c31c6b | refs/heads/master | 2021-06-18T12:43:53.421530 | 2017-06-27T07:47:07 | 2017-06-27T07:47:07 | 89,203,591 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-13 07:29
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('itl', '0003_auto_20170529_0655'),
]
operations = [
migrations.CreateModel(
... | [
"shacker@birdhouse.org"
] | shacker@birdhouse.org |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.