blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e9aae6ecf83f0541d2c0ab628bc403914edb04ef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03778/s827210053.py | b534c673f471853f97dac9d2ec1c3c2190d952f1 | [] | 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 | 156 | py | w, a, b = map(int, input().split())
if a <= b and b <= a+w:
print(0)
elif b <= a+w and a <= b:
print(0)
else:
print(min(abs(a-b-w), abs(a+w-b))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
fdbae09df3326771dd0889668815191135ce42f0 | 9c79c683196e0d42b41a831a6e37bb520a75e269 | /TIR/Plank_polynomial.py | 2811bd311ffad31968e04fd369be9c4eedf7c148 | [] | no_license | YutingYao/crater_lakes | 7714cf64cd3649bd93b2c3cafcc8c73b4a3ff05b | b57ac0c18ce37b0f71f59fc8d254fa12890090ee | refs/heads/master | 2023-05-14T08:45:02.290369 | 2017-05-13T00:55:48 | 2017-05-13T00:55:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 901 | py | """
Polynomial fit to Planck function
"""
import numpy as np
from matplotlib import pylab as plt
def polyfit(x,y):
"""
linear fit of x,y (returns linearized y)
"""
fit = np.polyfit(x,y,2)
fit_fn = np.poly1d(fit)
yy = fit_fn(x)
return yy
# constants
h = 6.626068e-34 # planck
c = 2.997925e8 ... | [
"samsammurphy@gmail.com"
] | samsammurphy@gmail.com |
fdc97c939737bb0a058754a393d38ea14187f2be | 4dda92393e178a45b4be36b4e322ac8d99ad19b4 | /src/generative_playground/molecules/train/pg/conditional/v2/train_conditional_v2_5.py | 8696468b3ec927cfdf3f574557bb492489b926b1 | [
"MIT"
] | permissive | JGU-dev/generative_playground | 6567c7eaea4a09c95902c9a8dbc0af479294c8aa | 5c336dfbd14235e4fd97b21778842a650e733275 | refs/heads/master | 2022-03-25T06:11:37.121235 | 2019-12-29T16:00:21 | 2019-12-29T16:00:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,626 | py | try:
import generative_playground
except:
import sys, os, inspect
my_location = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
sys.path.append('../../../../../..')
# sys.path.append('../../../../DeepRL')
# sys.path.append('../../../../../transformer_pytorch')
# from ... | [
"egor.kraev@gmail.com"
] | egor.kraev@gmail.com |
2f36a4c4db18eb111560b7ef06d16bfcf1e35993 | cd3fe9f814bbaab6a14749034e2c34963c9284c9 | /dashboard/src/zone_data.py | f0f88178ff34f6577e26d3e482f4fe27aa201fa1 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | SenHuang19/EnergyPlus-Volttron-Toolkit | 3b9d701238261e075936632b48cd661d42d0a85e | f89e68dc143e9ac01c2b07e975d21d64716bf876 | refs/heads/master | 2020-03-26T10:07:37.638443 | 2018-06-22T23:53:44 | 2018-06-22T23:53:44 | 144,782,102 | 0 | 0 | null | 2018-08-14T23:28:10 | 2018-08-14T23:28:10 | null | UTF-8 | Python | false | false | 3,723 | py | from flask import request
from flask_restful import Resource
import os
import json
import pytz
import sqlite3
import pandas as pd
from utils import *
from eplus_tmpl import EPlusTmpl
class ZoneData(Resource):
def __init__(self):
self.sim_folder_path = get_sim_folder_path()
def get(self, resource_id... | [
"hung.ngo@pnnl.gov"
] | hung.ngo@pnnl.gov |
db088b0337a660eeed9b221e55955beeb099804f | ced2dc1f67830f70bc8449b864a5ddf9858a6f76 | /CMSSW_9_4_12/src/ExoDiBosonResonances/EDBRTreeMaker/test/crab3_analysisM2500_R_0-6.py | c8e2110957bdc86dad3380eb4508dec718e0bab0 | [] | no_license | xdlyu/16_MINIAODV3 | 6e1c455a17e8453974b200c05da18a81386936fe | 5f506cb0e3411fe85bc0b86d6f9477ca7d46eea3 | refs/heads/master | 2020-12-13T03:46:54.895084 | 2020-01-17T14:47:22 | 2020-01-17T14:47:22 | 234,304,490 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | from WMCore.Configuration import Configuration
name = 'WWW'
steam_dir = 'xulyu'
config = Configuration()
config.section_("General")
config.General.requestName = 'M2500_R0-6_off'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Summer... | [
"XXX@cern.ch"
] | XXX@cern.ch |
80b3e3b97299857b84c3fa3ec5f126f0e51d606f | bf06bf980ef359615604d53567d1cc435a980b78 | /data/HW3/hw3_467.py | 71bc221a6c74e9abe3559cf59e4929813b2adcb8 | [] | no_license | am3030/IPT | dd22f5e104daa07a437efdf71fb58f55bcaf82d7 | 6851c19b2f25397f5d4079f66dbd19ba982245c5 | refs/heads/master | 2021-01-23T05:03:53.777868 | 2017-03-09T18:10:36 | 2017-03-09T18:10:36 | 86,270,526 | 0 | 0 | null | 2017-03-26T22:53:42 | 2017-03-26T22:53:42 | null | UTF-8 | Python | false | false | 1,387 | py | def main():
inputTemperture = float(input("Please enter the temperture: "))
typeTemperture = input("Please enter 'C' for Celsius, or 'K' for Kelvin: ")
if typeTemperture == "C":
boilingTemp = 100.0
freezingTemp = 0.0
absoluteZero = -273.0
print("You are using Celius")
... | [
"mneary1@umbc.edu"
] | mneary1@umbc.edu |
ba09952ccfd12bde0638188b7e58b2919c63906f | d7860c67988fb4853add9b3582974390d6073d76 | /setup.py | 3ba56f2396d6b1f11c900837bac201b8ed71dcb8 | [
"MIT"
] | permissive | liyongke/tron-api-python | 93a4c39b8a48846e60fd8610f4ecba2512b7ee15 | a7610b7cf3bffb7af5e535185ea62ef1906934ee | refs/heads/master | 2020-04-15T20:01:05.824872 | 2019-01-09T08:27:51 | 2019-01-09T08:27:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,066 | py | #!/usr/bin/env python
# --------------------------------------------------------------------
# Copyright (c) iEXBase. All rights reserved.
# Licensed under the MIT License.
# See License.txt in the project root for license information.
# --------------------------------------------------------------------
"""
setu... | [
"steein.shamsudin@gmail.com"
] | steein.shamsudin@gmail.com |
871b1aa84f278384f5e5332f23ebf5f96564e695 | 30d8d3c9867cc7cafd6c40a6c9197ceaa6dfbb52 | /Skimmer/ZMuMuSkimmer.py | a6173b4000359ec2967696f71ae93ec74016cf65 | [] | no_license | lucien1011/PyLooper-W3Mu | 72dbdfdd7fe80883846e92ac63618ad7cef8818e | 550c76c2fe4a6993bf1d6c5be0f3515a079cf0d9 | refs/heads/master | 2023-01-12T01:27:32.292794 | 2020-11-18T22:40:40 | 2020-11-18T22:40:40 | 314,075,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import numpy as np
import pickle,os
from PyLooper.common.Module import Module
class SignalRegionSkimmer(Module):
def analyze(self,data,dataset,cfg):
cfg.collector.selection_weight = data["passedZ1LSelection"]
| [
"lucien1011@gmail.com"
] | lucien1011@gmail.com |
1a38b5122921b23c7f660e1cdbcec7dd7ffb8119 | f8ff5c85730d62647fb9ef1e19874e7e35036a18 | /btclib/bech32.py | 159e7cb5723fc77b10f672de184c3868040a2329 | [
"MIT"
] | permissive | eehlers/btclib | 91794c0d0c4e6cd3cb56ef36003c943c1159c0ef | 120e241d59282f33078b5127406d12cc246a1581 | refs/heads/master | 2022-06-17T14:51:30.479248 | 2020-05-10T23:48:16 | 2020-05-10T23:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,126 | py | # Copyright (c) 2017 Pieter Wuille
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distr... | [
"ferdinando@ametrano.net"
] | ferdinando@ametrano.net |
c52b445c4e2b333a2e96f07d6e0b3141d8069bc5 | b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a | /examples/pwr_run/checkpointing/debug/ovhd_profile/job4.py | 501eab8f641ac04f733e09d49926022e8b97085a | [
"MIT"
] | permissive | boringlee24/keras_old | 3bf7e3ef455dd4262e41248f13c04c071039270e | 1e1176c45c4952ba1b9b9e58e9cc4df027ab111d | refs/heads/master | 2021-11-21T03:03:13.656700 | 2021-11-11T21:57:54 | 2021-11-11T21:57:54 | 198,494,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,386 | py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [
"baolin.li1994@gmail.com"
] | baolin.li1994@gmail.com |
4780a09abe9a95b7f3de700f91c9f0f13ba7d1e0 | 880769618025c79a2756c0bbded6ea8ede1e000d | /itss/hsm_cicada.py | 76471029d544841093b2bb671e58531a387ea732 | [
"MIT"
] | permissive | longshines/c-its-itss | 3c7814a47744a6813cfce60b4157438a1cb59a94 | 1026f359f612b95665c093f28eb32a4d92a66e83 | refs/heads/master | 2020-04-08T21:53:30.433492 | 2018-08-16T18:19:21 | 2018-08-16T18:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | import cryptography.hazmat.backends
from .hsm_abc import HSM
class CicadaHSM(HSM):
def __init__(self):
self._PrivateKey = None
self.P11URI = None
backend = cryptography.hazmat.backends.default_backend()
backend._lib.ENGINE_load_dynamic()
engine = backend._lib.ENGINE_by_id(b"dynamic");
backend.openssl_a... | [
"ales.teska@teskalabs.com"
] | ales.teska@teskalabs.com |
78510d78b82201ca0fa8b06f2ad889d21e503499 | ac1fdf53359b53e183fb9b2602328595b07cf427 | /ParlAI/parlai/tasks/webquestions/build.py | 3dc704354522b87b6c107ee3f4eaddb823825796 | [] | no_license | Ufukdogann/MasterThesis | 780410c5df85b789136b525bce86ba0831409233 | b09ede1e3c88c4ac3047800f5187c671eeda18be | refs/heads/main | 2023-01-24T18:09:52.285718 | 2020-11-27T16:14:29 | 2020-11-27T16:14:29 | 312,416,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a78bba05bee31ab9f51d52ad78aaf2a8a28d9cabe031d144d86384c2bdbd4769
size 2362
| [
"134679852Ufuk*"
] | 134679852Ufuk* |
f676555762462a4c8b6b3bc8d0c02a2a2491a9de | 0c5ea2ccd9e63b03b68291258b8e57ea62834efd | /crm/migrations/0005_auto_20160325_0732.py | 5ffe6dc2f0157ba40086ca363971b87a02cf852a | [] | no_license | liangxuCHEN/CRM_systeme | 18b33cfe25b17b88ffd2803341e5083f84756191 | 75e60393cf56be9aa659371f00693bbe494a0bc0 | refs/heads/master | 2020-04-06T05:03:57.508289 | 2017-02-09T06:24:25 | 2017-02-09T06:24:25 | 52,067,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-03-25 07:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('crm', '0004_auto_20160325_0624'),
]
operations = [
migrations.AlterField(
... | [
"chenliangxu68@gmail.com"
] | chenliangxu68@gmail.com |
004ea22cf45802c0d087db27116d64d8be444532 | 68cd659b44f57adf266dd37789bd1da31f61670d | /2019-10/1001/ATM.py | a32243235efa9a1fa402c20d7ea01bc39378d38f | [] | no_license | 01090841589/solved_problem | c0c6f5a46e4d48860dccb3b0288aa5b56868fbca | bbea2f31e5fe36cad100bc514eacd83545fb25b1 | refs/heads/master | 2023-07-02T23:55:51.631478 | 2021-08-04T13:57:00 | 2021-08-04T13:57:00 | 197,157,830 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | N = int(input())
num = list(map(int, input().split()))
num.sort()
result = 0
for i in range(N):
result += num[i]*(N-i)
print(result) | [
"chanchanhwan@naver.com"
] | chanchanhwan@naver.com |
402b26796108ce21c28625f65e817ee3ef145aa5 | e4dc87d5ac55fb390b51363a463352c89ec4d525 | /airport_prediction/preproess2/gbdt_online/gbdt2_4_2_online_feat.py | 4f42aa094d27b6bbcd2f2f09b467756654cf7bcf | [] | no_license | JohnnyDankseed/TC-Airport-Wifi-Prediction-Rank67-Soultion | 3b1d3427d48420015db4e1ddc46258c58a1c68eb | 6466c261d6926de2e6f5f8dfb4389aa7cd459068 | refs/heads/master | 2021-06-19T05:23:23.829911 | 2017-07-14T16:18:24 | 2017-07-14T16:18:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,212 | py |
#-*-coding:utf-8-*-
import csv
import pandas as pd
import os
import cPickle
passengers_count_dict={}
time_count_dict = {}
wifi_name_dict = cPickle.load(open("../wifi_name_dict.pkl","rb"))
simple_hour_dict=cPickle.load(open("../simple_hour_sum.pkl","rb"))
three_hour_dict=cPickle.load(open("../3_hour_sum.pkl","rb"))
hou... | [
"1061926959@qq.com"
] | 1061926959@qq.com |
c73d71d2ba684ad13fdbbfc68d2927fdeb7cd9b9 | 4768f50dd394eb2c5dfdaa0e465857e33c4d2b8c | /gitchecks/main.py | 2cca3d4a8fea507d2409270f806319179bb4e548 | [] | no_license | remram44/gitchecks | fef22692e744e04268f101cae9a11e998685778a | ed06f95a09ae2f3125ace068dec9c03da9a01fae | refs/heads/master | 2016-09-05T18:15:14.048472 | 2013-09-03T03:08:05 | 2013-09-03T03:08:05 | 8,661,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import codecs
import gettext
import locale
import sys
import os
def setup():
app_dir = os.path.dirname(os.path.realpath(__file__))
# Setup gettext
locale.setlocale(locale.LC_ALL, '')
gettext.install('gitchecks', os.path.join(app_dir, 'locales'), True)
# Python tends to f*ck up, make sure it does... | [
"remirampin@gmail.com"
] | remirampin@gmail.com |
e51e73a51b1a4b3011fc08aa2242f6ebf720ad50 | 845e3c428e18232777f17b701212dcbb1b72acc1 | /lib/roi_data_layer/repoolTargetFix.py | 6525f63b1669e996b0c09c0dcc51a531c48776df | [
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | chuanxinlan/ohem-1 | dd10b2f5ff15e81ab9e42e936bb44d98e01c6795 | b7552ceb8ed1e9768e0d522258caa64b79834b54 | refs/heads/master | 2021-09-16T18:31:25.651432 | 2018-06-23T10:09:24 | 2018-06-23T10:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,086 | py | # --------------------------------------------------------
# Fast R-CNN with OHEM
# Licensed under The MIT License [see LICENSE for details]
# Written by Ross Girshick and Abhinav Shrivastava
# --------------------------------------------------------
"""The data layer used during training to train a Fast R-CNN network... | [
"cg@example.com"
] | cg@example.com |
c9b92ec47659c64de598bc80553cf0e83132cfbc | 1e448117119d99b07105137bd90d9905e290ea7a | /transform_images_convert_images-original-stanford-cars.py | 4ba2cc95627a4bb12dcbea2dd499ba6406b98e13 | [] | no_license | TrellixVulnTeam/cnns-auto-comparation_PCSC | abe960647c95499fdbd3df682c713187fea49ab6 | a579d837283253df8214c09a28dea9e306e12354 | refs/heads/main | 2023-06-02T20:49:52.969592 | 2021-06-24T09:07:00 | 2021-06-24T09:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,707 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 31 15:47:23 2021
@author: Adrian
"""
import tarfile
import scipy.io
import numpy as np
import os
import cv2 as cv
from console_progressbar import ProgressBar
def ensure_folder(folder):
if not os.path.exists(folder):
os.makedirs(folder)
... | [
"noreply@github.com"
] | TrellixVulnTeam.noreply@github.com |
571c28079390ec7807145fb50f656c4ccfef3ee5 | a8042cb7f6a4daec26b8cea6b7da2cb7cb880a84 | /919_CompleteBinaryTreeInserter.py | 2ebff8dec9ef32eb1f2758a915839c338ce5308a | [] | no_license | renukadeshmukh/Leetcode_Solutions | 0108edf6c5849946623a75c2dfd57cbf9bb338e4 | 1211eac167f33084f536007468ea10c1a0ceab08 | refs/heads/master | 2022-11-10T20:48:42.108834 | 2022-10-18T07:24:36 | 2022-10-18T07:24:36 | 80,702,452 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,273 | py | '''
919. Complete Binary Tree Inserter
A complete binary tree is a binary tree in which every level, except possibly
the last, is completely filled, and all nodes are as far left as possible.
Write a data structure CBTInserter that is initialized with a complete binary
tree and supports the following operations:
C... | [
"renud1988@gmail.com"
] | renud1988@gmail.com |
97af89beb971c98b8927b6a622288e2f914616ad | 5b2c8b365e782dd59459c2cd0bae407a9d086852 | /cubesurvival.py | 1c6ee16c869d72a90c17d39696c0a5e5edde84b1 | [] | no_license | f-prime/CubeSurvival | 8c8da3dbadaba8d08bc5b47fe367fe1c46f8aa6b | fea6b346ceb92fed56b681e7a5d13f2b6da6e7ed | refs/heads/master | 2021-05-29T04:53:09.545711 | 2014-01-12T19:16:22 | 2014-01-12T19:16:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,034 | py | import pygame
from pygame.locals import *
import random
import os
class zc:
def __init__(self):
self.player = pygame.Rect(400,400, 25,25)
self.enemies = []
self.bullets = []
self.size = (800, 500)
self.level = 2
self.kills = 0
def run(self):
os.e... | [
"max00355@gmail.com"
] | max00355@gmail.com |
8f1a60e1570b61df658b08d22176649e164ed891 | a2211f0ef8297a77200a0b2eec8ba3476989b7e6 | /backup/demo/alien/alien/game_function.py | ceafb55c29ba53b637054b84e5798d64e6dd3f51 | [] | no_license | qq1197977022/learnPython | f720ecffd2a70044f1644f3527f4c29692eb2233 | ba294b8fa930f784304771be451d7b5981b794f3 | refs/heads/master | 2020-03-25T09:23:12.407510 | 2018-09-16T00:41:56 | 2018-09-16T00:42:00 | 143,663,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,962 | py | import sys
from time import sleep
import pygame
from bullet import Bullet
from alien import Alien
def check_keydown_events(event, ai_settings, screen, ship, bullets):
"""键盘按下事件"""
if event.key == pygame.K_RIGHT:
ship.moving_right = True
elif event.key == pygame.K_LEFT:
ship.moving_left = ... | [
"1197977022@qq.com"
] | 1197977022@qq.com |
aa37ffb07e5f2e208f206657d02c323e7b57a8c4 | 5865cc1b70db72b7a9a9a07547f05a1f47959bb1 | /unsupervised_learning/0x00-dimensionality_reduction/8-tsne.py | adf3d8bba220f738b1a4df90a5f8f210a15df860 | [] | no_license | nildiert/holbertonschool-machine_learning | c8cefc3a784348f09128c0f4d82d65b9d56000c5 | 273f81feaa14fe24ac4db5d82be0d13299e857b8 | refs/heads/master | 2020-12-21T12:27:48.280880 | 2020-09-25T17:58:33 | 2020-09-25T17:58:33 | 236,429,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,629 | py | #!/usr/bin/env python3
"""
8. t-SNE
"""
import numpy as np
pca = __import__('1-pca').pca
P_affinities = __import__('4-P_affinities').P_affinities
grads = __import__('6-grads').grads
cost = __import__('7-cost').cost
def tsne(X, ndims=2, idims=50, perplexity=30.0, iterations=1000, lr=500):
""" Function that perform... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
68304a524b89ecdb080a56ee8e8270e3b1c5d552 | 5a9b2bf5b2e1f429fe8ec99d832b17db545ac199 | /19년 8월/day_02/순차검색/순차검색.py | 99eee76db64e24a6892bb5ceb677c54b44453352 | [] | no_license | pp2pppp2/py_L | 290b548e3bea438b16c1d39f43786a18fb178f74 | d72872be3ede5f789103b83a040f2963f7c91d0b | refs/heads/master | 2020-07-13T08:27:25.045600 | 2019-11-15T08:04:45 | 2019-11-15T08:04:45 | 205,044,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | def sequentialSearch(a, n, key):
i = 0
while i < n and a[i] != key:
i = i + 1
if i < n :return i
else: return -1
data = [4, 9, 11, 23, 2, 19, 7]
key = 19
print(sequentialSearch(data, len(data), key)) | [
"pjh9736@gmail.com"
] | pjh9736@gmail.com |
4ee7a864ada9354cdd70bd6f4ade3932eb262df6 | 97e74c893e4da07dc18c8bb8c697ff818352f7ef | /day02/main.py | 5a424153bb7a040809953ec9ac9712a28e730d9d | [] | no_license | wangpeibao/FastApiLearn | f3c843427d42a54a4a42dddeeda65d3c9bbfd739 | 23d31d28457e6859a793a6c657cbc69bf082b59d | refs/heads/master | 2022-09-10T06:11:12.207066 | 2020-06-02T01:39:43 | 2020-06-02T01:39:43 | 266,058,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | from typing import List
import uvicorn
from fastapi import FastAPI
from enum import Enum
app = FastAPI()
@app.get("/param_get1/{param}") # 以大括号包裹,默认是字符串类型,在路径中获取参数
def param_get1(param):
return {"param": param}
@app.get("/param_get2/{param}") # 可以指定数据类型,会进行数据类型转化
def param_get2(param: int):
return {"para... | [
"wangpeibao@troila.com"
] | wangpeibao@troila.com |
caebc96905c867de05d81224bade830c83107c4d | f155033606399eadfb5fe694479af36e14115467 | /search/count-luck.py | 864e7fa09d1fb7d76cbb2459998881d63f70875f | [] | no_license | KadirEmreOto/hackerrank | 7925e5b49f90bbe6fef41cfe4fd980b6ffd9e3f1 | 143d49adc45e4e3e3d9424168b2fdac80b2155d6 | refs/heads/master | 2021-01-11T02:56:03.535273 | 2017-08-11T13:41:55 | 2017-08-11T13:41:55 | 70,905,859 | 10 | 2 | null | 2022-03-16T09:19:13 | 2016-10-14T11:55:02 | Python | UTF-8 | Python | false | false | 1,772 | py |
def PossiblePath(coordinate, previous=(-1,-1)):
paths = []
if coordinate[0] > 0:
x, y = coordinate[0] - 1, coordinate[1]
if matrix[x][y]: paths.append((x,y))
if coordinate[0] < len(matrix) - 1:
x, y = coordinate[0] + 1, coordinate[1]
if matrix[x][y]: paths.append((x,y))
... | [
"emrekadiroto@hotmail.com"
] | emrekadiroto@hotmail.com |
3ebe04477594e70a68b2ff3824aa3b709130096b | c17ca7a7824056f7ad58d0f71abc25670b20c1fc | /spirit/views/comment.py | 44ff77c50c4531c55d98605ee20b44df27545ddf | [
"Apache-2.0"
] | permissive | Si-elegans/Web-based_GUI_Tools | cd35b72e80aa400105593c5c819355437e204a81 | 58a9b7a76bc46467554192a38ff5329a94e2b627 | refs/heads/master | 2023-01-11T09:11:21.896172 | 2017-07-18T11:10:31 | 2017-07-18T11:10:31 | 97,445,306 | 3 | 1 | Apache-2.0 | 2022-12-26T20:14:59 | 2017-07-17T07:03:13 | JavaScript | UTF-8 | Python | false | false | 4,269 | py | #-*- coding: utf-8 -*-
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect, get_object_or_404
from django.views.decorators.http import require_POST
from django.contrib import messages
from django.utils.translation import ugettext as _
from django.conf import settings... | [
"gepelde@vicomtech.org"
] | gepelde@vicomtech.org |
5abd7fd948ee42c0a1f5aad7e6272901fda1b717 | 6147d3da9c7f31a658f13892de457ed5a9314b22 | /array/python/leaders_in_an_array.py | da581bee51336682cf9065a22348a890f6c009de | [] | no_license | ashish-bisht/must_do_geeks_for_geeks | 17ba77608eb2d24cf4adb217c8e5a65980e85609 | 7ee5711c4438660db78916cf876c831259109ecc | refs/heads/master | 2023-02-11T22:37:03.302401 | 2021-01-03T05:53:03 | 2021-01-03T05:53:03 | 320,353,079 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | def leaders_in_an_array(nums):
leaders = [nums[-1]]
max_so_far = nums[-1]
for i in reversed(range(len(nums))):
if max_so_far < nums[i]:
max_so_far = nums[i]
leaders.append(nums[i])
return leaders
print(leaders_in_an_array([16, 17, 4, 3, 5, 2]))
print(leaders_in_an_ar... | [
"ashishbisht723@gmail.com"
] | ashishbisht723@gmail.com |
c569953334a30750a41f8d2c940875dafd72c345 | a8be4698c0a43edc3622837fbe2a98e92680f48a | /SSAFY알고리즘정규시간 Problem Solving/그 외 Problems 및 시험문제/난이도 D1/2070큰놈,작은놈,같은놈.py | 0b7c52214e1da3fa260041a55288f189c1018045 | [] | no_license | blueboy1593/algorithm | fa8064241f7738a12b33544413c299e7c1e1a908 | 9d6fdd82b711ba16ad613edcc041cbecadd85e2d | refs/heads/master | 2021-06-23T22:44:06.120932 | 2021-02-21T10:44:16 | 2021-02-21T10:44:16 | 199,543,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import sys
sys.stdin=open("input.txt", "r")
T = int(input())
def compare(x, y):
if x < y:
return '<'
elif x == y:
return '='
elif x > y:
return '>'
for tc in range(1, T+1):
x, y = map(int, input().split())
print('#%d %s' %(tc, compare(x,y))) | [
"snb0303@naver.com"
] | snb0303@naver.com |
caaef2f7730030cf4ed729244d949d8bcd17575e | 0afc11e9d079c2dfc5cc1b7a856d53075ebd9f6d | /serverless/th.py | 9e5ae4208a83c5d0473d9bd2a780ca1b1fbe12b7 | [] | no_license | luzi82/telegram_hub | 17b4c1a363717f93dc70b094e0bc0edced03ea8f | 86c49b42b022b5529e1c0c5d57ddab4d09238f96 | refs/heads/master | 2021-07-17T12:53:04.485138 | 2021-02-21T14:26:37 | 2021-02-21T14:26:37 | 240,918,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,252 | py | import datetime
import futsu.aws.s3
import futsu.hash
import futsu.storage
import hashlib
import json
import logging
import os
import telegram
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
def listench(chat_id, word_list):
now = int(datetime.datetime.now().timestamp())
err_msg = 'lis... | [
"luzi82@gmail.com"
] | luzi82@gmail.com |
fe8ddd291773d492b0dac92622714eb70182c058 | 3bea736c556024175fff13901bc0e9105adca771 | /help_utils/help_utils.py | 050fc68079b171a3e9dabe799c0af4f60aeb2dbe | [] | no_license | liuguiyangnwpu/R2CNN_FPN_Tensorflow | 69fba96c6ff71490ebb6efeabed96c0dcee6b98c | aa8fcc53d569f87bdd73ecde94d5185d108802ca | refs/heads/master | 2021-09-10T05:34:15.029141 | 2018-03-21T05:46:41 | 2018-03-21T05:46:41 | 126,128,857 | 2 | 0 | null | 2018-03-21T05:42:45 | 2018-03-21T05:42:44 | null | UTF-8 | Python | false | false | 5,934 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
import cv2
from libs.label_name_dict.label_dict import LABEl_NAME_MAP
def show_boxes_in_img(img, boxes_and_label):
'''
:param img:
:param boxes: must be int
:return:
'''
boxes_and_label = boxes_and_label.astype(np.int64)
... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
09b79d5ec8ce71ca3a317ce6e8f3b4d2425827e5 | 2b3bc6b3f489e1b72d6665e933a83b3825b38282 | /api/migrations/0001_initial.py | 0cab112e89899e0cf09a959fb57b77c35d30d0cf | [] | no_license | WilliamColmenares/testrss | 498f029937c56f828610a001cebe1b92dfe4c0a9 | f760bb6cce2b59aa07db0eceb2e19f9bfd3ffde5 | refs/heads/master | 2022-04-30T22:30:53.055727 | 2019-06-01T05:13:33 | 2019-06-01T05:13:33 | 188,421,924 | 0 | 0 | null | 2022-04-22T21:17:51 | 2019-05-24T12:56:20 | Python | UTF-8 | Python | false | false | 507 | py | # Generated by Django 2.2.1 on 2019-05-24 10:53
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='News',
fields=[
('id', models.PositiveInteg... | [
"colmenares.william@gmail.com"
] | colmenares.william@gmail.com |
d7af6dcb22ea2b6de064644dce3204b402ac9d9c | fd44e1d9e52491b87e51037d8edb329ec76927be | /五、读写文本数据/5.9 读取二进制数据到可变缓冲区中.py | 8ccaacee2c6c4cf697f0ee41ff8f12be7b9f9076 | [] | no_license | Vaileung/coobook_test | ff2f685d6237acd5ca93275223f41c023e862548 | 14bd836a5cd559a4ff56bed9104c596e79fd6212 | refs/heads/master | 2021-10-19T21:40:42.061728 | 2019-02-24T08:05:28 | 2019-02-24T08:05:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | import os.path
def read_into_buffer(filename):
buf = bytearray(os.path.getsize(filename))
with open(filename, 'rb') as f:
f.readinto(buf)
return buf | [
"951352875@qq.com"
] | 951352875@qq.com |
64a42e9f391680e0af435f384436f0bf42178044 | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/comparison/test_cond_format07.py | 47ee1ff087c4e9f890168fae13b71d0f845e522b | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,470 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
c5486fde69e1587d828896c82ebbbe85c497cc4d | c452b223adf390edddf4339dd7360fe6de66b8d8 | /common/models/abstract/checkable_model.py | 9115032a42dfa36585583a5af6570268041d7008 | [] | no_license | dev1andriy/creditbase_server | a321b16976c7cfe87d3ee5cfaf700850ea1b689c | 4ee067e175a1cca3f907a61ebc3d369ecdcebd66 | refs/heads/master | 2023-05-13T17:13:23.486966 | 2020-07-16T07:50:56 | 2020-07-16T07:50:56 | 280,089,440 | 0 | 0 | null | 2021-06-10T23:10:15 | 2020-07-16T07:49:41 | Python | UTF-8 | Python | false | false | 255 | py | from django.db import models
class CheckableModel(models.Model):
CheckerId = models.IntegerField(default=None, blank=True, null=True)
CheckDate = models.DateTimeField(default=None, blank=True, null=True)
class Meta:
abstract = True
| [
"dev1@azon5.com"
] | dev1@azon5.com |
f41e7c057be1b5b9684b225db0f785787631f1a2 | e5e9ee9e4db2e400e7f87647501ee412c13d76e5 | /python/python-base/turtle/basic.py | 1ab1dd5cf9d12f51e53dbef2f7be090190e2833d | [] | no_license | beingveera/whole-python | 524441eec44379c36cb1cfeccdbc65bf1c15d2f6 | 3f2b3cb7528afb9605ab6f9d4d2efc856a247af5 | refs/heads/main | 2023-05-15T06:28:03.058105 | 2021-06-05T09:37:47 | 2021-06-05T09:37:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | import turtle as t
import time
ts=t.Turtle()
t.shape('turtle')
t.color('blue','red')
t.bgcolor('black')
for i in range(200):
t.forward(i)
t.left(100)
# time.sleep(.001)
quit() | [
"sharma.lokesh.222001@gmail.com"
] | sharma.lokesh.222001@gmail.com |
408094a9578faa9eaa26ffcaa28113d302d1618e | ffa1a2eb6cc7dc53e2dac529253d063e4a07aba3 | /taobao.py | d08ae6029a342bc176f0f0da42e65b0d8aaa2c8b | [] | no_license | meijida258/python_test | 48ca275538a29a1bf15f5f34f06801e352e72ce0 | 422f5c07ff217d834caa262f87f1c87c04d8cfbb | refs/heads/master | 2021-01-10T07:29:57.084983 | 2017-05-11T12:39:44 | 2017-05-11T12:39:44 | 55,590,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 967 | py | from pyspider.libs.base_handler import *
class Handler(BaseHandler):
crawl_config = {
}
def __init__(self):
self.base_url = 'https://mm.taobao.com/json/request_top_list.htm?page='
self.page_num = 1
self.total_num = 30
@every(minutes=24 * 60)
def on_start(self):
... | [
"meijida123@163.com"
] | meijida123@163.com |
7d2f24b612d8c087a2c6112a0c70409c1770e4d5 | 2eb3a386999f79e1f5488a6fb321e020191f08b4 | /Codility/cyclicRotation.py | 1ab79c05eb4041f08872585eda5c9f80e89d1e4d | [] | no_license | webclinic017/MachineLearning-1 | 8bd17cff10eac6ee4402a94575e2efb2811d89ef | 83c880930fa402950de0fc58186fc588f82b6a77 | refs/heads/master | 2023-03-28T10:56:14.026623 | 2021-03-31T16:36:55 | 2021-03-31T16:36:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | ### Cycle rotation
def cyclicRotation(A,K):
l = len(A)
if(l==0):
return A
K = K%l
if(K==0):
return A
return (A[-K:] + A[:l-K])
| [
"noreply@github.com"
] | webclinic017.noreply@github.com |
9bfba8de728b2bc1a89ec15f47bb4562535a5b8e | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/maps/v20210201/__init__.py | a26edba4485ca997ad881b8aeb2ce52033ddc9ea | [
"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 | 454 | 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! ***
from ... import _utilities
import typing
# Export this package's modules as members:
from ._enums import *
from .account import *
from .creator import ... | [
"noreply@github.com"
] | morrell.noreply@github.com |
1eb570e57034938054230418a83b395859fc3ddd | 3b8fd5b73337b3cd70b283644c266d4ec962ad54 | /2020-2021/DEV1/Chapter 4/BA1.py | 1d107589160dce6677342efc404bbbad580514cf | [] | no_license | Andy00097/hrinf-development | 20f4604ca5637c710d9d25e7e218a2ae1233498b | 464ca039537d6b8ca04bf95ba070b8f1f7b81188 | refs/heads/main | 2023-01-09T03:52:54.214472 | 2020-11-11T10:11:57 | 2020-11-11T10:11:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | money = 100
if money >= 1000000:
millionaire = True
else:
millionaire = False
# Are you a millionaire?
answer = 'That is most definitely ' + str(millionaire)
print() | [
"stijn@kolkies.dev"
] | stijn@kolkies.dev |
5d9700320eacaed2523d4f316585b9ec492a3b76 | 20a9787564f76ae0fcf2332a8655b21bae0646a3 | /30DayLeetcodeChallenge_April/Week1/7_countElements.py | dab7c42f7bba60969ca6c15ecccdab627e88c3e0 | [] | no_license | nidhiatwork/Python_Coding_Practice | 3b33a40c947413c2695d3ee77728fa69430f14cd | 9d5071a8ddcda19181d3db029fb801d4e3233382 | refs/heads/master | 2023-02-08T20:50:47.522565 | 2023-02-04T10:04:10 | 2023-02-04T10:04:10 | 194,607,759 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | '''
Given an integer array arr, count element x such that x + 1 is also in arr.
If there're duplicates in arr, count them seperately.
Example 1:
Input: arr = [1,2,3]
Output: 2
Explanation: 1 and 2 are counted cause 2 and 3 are in arr.
'''
def countElements(arr):
seen = set()
for item in arr:
if i... | [
"nidhi.bhushan123@gmail.com"
] | nidhi.bhushan123@gmail.com |
49519c0f283e35a90d2667836f7ba768b97ae253 | 79ec8c0c3d03eba1eb02e2e1df831b07fd7c0023 | /HeavyIonsAnalysis/JetAnalysis/python/jets/akVs5PFJetSequence_PbPb_data_cff.py | 902cda7bb926fa74554deb36cc6e7e95419bc894 | [] | no_license | enazarova/cmssw | a1febaae0e0d39a1ca3c625ee2cdec56830d10ed | fab2e599665c334ab8c8d0bac8f931c71fa4becb | refs/heads/master | 2021-01-16T22:02:12.424115 | 2013-12-18T13:42:50 | 2013-12-18T13:42:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,334 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
akVs5PFmatch = patJetGenJetMatch.clone(
src = cms.InputTag("akVs5PFJets"),
matched = cms.InputTag("ak5HiGenJetsCleaned")
)
akVs5PFpar... | [
"yetkin.yilmaz@cern.ch"
] | yetkin.yilmaz@cern.ch |
ce5d2cf0e0f7a17fbff6de956fc1eff34941a0ab | dcd30bb8c7935893933a8618fc058d6e442a7908 | /inst/examples/geoquery.py | 2775d85fa2e9de65f644f8ac99ddcb6417fb3313 | [
"MIT"
] | permissive | julianflowers/UKCensusAPI | 0dd146391eaffc725ea610d58948d7efa4e769ef | 38cea3cc419c9bef2e4aa09e06544159fced7329 | refs/heads/master | 2021-09-03T03:58:12.894590 | 2018-01-05T11:16:09 | 2018-01-05T11:16:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,714 | py | #!/usr/bin/env python3
import ukcensusapi.Nomisweb as Api
def main():
api = Api.Nomisweb("/tmp/UKCensusAPI")
print("Nomisweb census data geographical query example")
print("See README.md for details on how to use this package")
# In the previous example we had a predefined query using Leeds at MSOA resoluti... | [
"a.p.smith@leeds.ac.uk"
] | a.p.smith@leeds.ac.uk |
9c7c2fceb543a420f5cf9e302f4bab21b6f24b66 | 9b61b60dd6db1291170b9656c540290c70e3326c | /tensorflow/contrib/layers/python/layers/encoders_test.py | 81c6a66b222eed014565e3abac4943f5f08ce00b | [
"Apache-2.0"
] | permissive | gauravgupta1/tensorflow | dfbbafb68be5a86fd0b18f458f2b94fd7cdda657 | 501b7137a9f5389d2319bc748fec9bd93a5b5940 | refs/heads/master | 2021-01-11T04:57:37.146627 | 2016-11-03T20:37:37 | 2016-11-03T20:37:37 | 72,789,273 | 1 | 0 | null | 2016-11-03T21:39:09 | 2016-11-03T21:39:09 | null | UTF-8 | Python | false | false | 4,969 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
92a1049eea243951ce4f1d8ff0cdc2ad1a86e5ba | b4d2c3bd5def6faed90178f683e853190855b625 | /blog/urls.py | b19156f4bb449400428af1ec86b0bb3bac20637e | [] | no_license | tz2614/my-first-blog | cfe7a26742924efd229dbe43a007d368cb7a7c75 | 41397b651e80256bcaef2748215c73182f266f4f | refs/heads/master | 2021-05-13T11:23:51.655339 | 2018-01-26T17:44:00 | 2018-01-26T17:44:00 | 117,122,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | #from django.urls import path, re_path
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.post_list, name='post_list'),
url(r'^post/(?P<pk>\d+)/$', views.post_detail, name='post_detail'),
url(r'^post/new/$', views.post_new, name='post_new'),
url(r'^post/(?P<pk>\d+)/edit/$', vi... | [
"tony_zheng35@hotmail.com"
] | tony_zheng35@hotmail.com |
7c07cba7a667d0e91b0310f872c1b33047a8ca05 | cbc5e26bb47ae69e80a3649c90275becf25ce404 | /xlsxwriter/test/comparison/test_cond_format11.py | d26271e0299a0be9fb5808e8a412535aed84862b | [
"BSD-2-Clause-Views",
"BSD-3-Clause",
"MIT"
] | permissive | mst-solar-car/kicad-bom-generator | c3549409c3139f787ad28391372b5cb03791694a | 2aae905056d06f3d25343a8d784049c141d05640 | refs/heads/master | 2021-09-07T14:00:40.759486 | 2018-02-23T23:21:13 | 2018-02-23T23:21:13 | 107,868,801 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTest):
"""... | [
"mwrb7d@mst.edu"
] | mwrb7d@mst.edu |
994ff47f96bdf8e35bbdc5761de94deeed01f717 | 8da7b2ea7e64ea307d913aa304847e5a466ff016 | /alchemist.project/trunk/alchemist/project/templates.py | 08629c259154a26dc60b5d80497c1c0ef589ac22 | [] | no_license | BGCX261/zope-alchemist-svn-to-git | 5ac3f6f07fc01a8f114527f553462af157a1a0a0 | 60d6be6e584b433b49c4b681a0a9d48c6d8e6a44 | refs/heads/master | 2020-06-04T04:59:09.581952 | 2015-08-25T15:35:13 | 2015-08-25T15:35:13 | 41,594,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,915 | py | import sys
import os.path
import shutil
from ConfigParser import ConfigParser
from paste.script.templates import var, NoDefault, Template, BasicPackage
HOME = os.path.expanduser('~')
def get_buildout_default_eggs_dir():
default_cfg = os.path.join(HOME, '.buildout', 'default.cfg')
if os.path.isfile(default_cfg... | [
"you@example.com"
] | you@example.com |
411f700d61fbfd535ec1d20defbc59e5d8b04cd9 | de702e4f4a2344c891d396bb8332a90d042b0971 | /Back-End/Django/Django For Beginners/2/pages_3/pages_3/settings.py | 27b8a0ad81e2ec39bd435aefc0cd45fc76c5dd9c | [] | no_license | ScarletMcLearn/Web-Development | 3bf093a261ddad4e83c3ebc6e724e87876f2541f | db68620ee11cd524ba4e244d746d11429f8b55c4 | refs/heads/master | 2022-12-17T10:56:56.238037 | 2021-01-18T14:13:33 | 2021-01-18T14:13:33 | 88,884,955 | 0 | 0 | null | 2022-12-08T06:47:35 | 2017-04-20T16:03:19 | HTML | UTF-8 | Python | false | false | 3,141 | py | """
Django settings for pages_3 project.
Generated by 'django-admin startproject' using Django 2.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
#... | [
"noreply@github.com"
] | ScarletMcLearn.noreply@github.com |
33b57717a14223c1f04080091fb5a073a1dd3895 | 0a973640f0b02d7f3cf9211fcce33221c3a50c88 | /.history/src/easy-money_20210129091444.py | 5f61fdb5f8ad783ef8389abbdc231e31f061af75 | [] | no_license | JiajunChen123/IPO_under_review_crawler | 5468b9079950fdd11c5e3ce45af2c75ccb30323c | 031aac915ebe350ec816c05a29b5827fde588567 | refs/heads/main | 2023-02-26T08:23:09.622725 | 2021-02-04T10:11:16 | 2021-02-04T10:11:16 | 332,619,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,324 | py | # 东方财富网 首发申报
from datetime import datetime,timedelta
from urllib.parse import urlencode
import pandas as pd
import requests
import re
import time
from bs4 import BeautifulSoup
base_url = 'https://datainterface.eastmoney.com/EM_DataCenter/JS.aspx?'
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Ap... | [
"chenjiajun.jason@outlook.com"
] | chenjiajun.jason@outlook.com |
56cfac5f606f2726f69bf7ae855d21d37aa3632f | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/scikits/statsmodels/datasets/sunspots/data.py | 32597f6ba9d11211e494500393368a584cb8155b | [
"Unlicense",
"BSD-3-Clause"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 1,727 | py | """Yearly sunspots data 1700-2008"""
__all__ = ['COPYRIGHT','TITLE','SOURCE','DESCRSHORT','DESCRLONG','NOTE', 'load']
__docformat__ = 'restructuredtext'
COPYRIGHT = """This data is public domain."""
TITLE = __doc__
SOURCE = """
http://www.ngdc.noaa.gov/stp/SOLAR/ftpsunspotnumber.html
The original datas... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
ad5e2da0d6d3e7b4b8498d26e2a59bdd6f027632 | 13696a9691b173d75b11b4aee22b79d4ea6b7c0b | /squareconnect/models/get_employee_wage_response.py | ab9a92e1babbf65858b2d78368c2fa9dc169f295 | [
"Apache-2.0"
] | permissive | square/connect-python-sdk | 410613bc4b04f0f70176275591a16c9e49e25ede | e00e2889b2dd2c55048219cbe64db79962a68633 | refs/heads/master | 2023-06-15T09:24:17.190416 | 2019-08-15T17:44:41 | 2019-08-15T17:44:41 | 64,772,029 | 53 | 45 | Apache-2.0 | 2020-12-20T18:41:31 | 2016-08-02T16:07:17 | Python | UTF-8 | Python | false | false | 4,217 | py | # coding: utf-8
"""
Copyright 2017 Square, Inc.
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 la... | [
"noreply@github.com"
] | square.noreply@github.com |
e54845bac5a479fbcefeca86839768f9e6f5d5ef | 08c837e0e77930f94cd2a6466d38a6d6b38e11ef | /api/urls.py | 641852f464ec89d063fc46f44af29a01a10ba976 | [] | no_license | platzhersh/musicmashup-jukebox-backend | e47d4eaa2ecdea21c20d0a4cc98f8fe1086ac987 | f0fb5d560ff19b0f9298496847e807925be16917 | refs/heads/master | 2021-01-17T14:28:33.095410 | 2016-09-17T14:58:41 | 2016-09-17T14:58:41 | 68,416,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # -*- coding: utf-8 -*-
from django.conf.urls import include, url
from rest_framework.urlpatterns import format_suffix_patterns
from api import utils
from api import views
jukebox = [
url(r'^rooms/?$', views.RoomListView.as_view(), name="eventcategories"),
url(r'^rooms/(?P<pk>[0-9]+)/?$', utils.get_retrievevi... | [
"chregi.glatthard@gmail.com"
] | chregi.glatthard@gmail.com |
7f79643b9684999f72efd9615865d7dd67d8e314 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/codeabbey/_Python_Problem_Solving-master/Random Generator.py | 7d6a95bfd54b47b91cd9d894449ec41c199a573a | [] | 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 | 1,334 | py | #accept the number of the element to generate random numbers
data i..(input
#accept the numbers from which random numbers will be generated
a l.. m..(s..,i.. ).s..()))
#traverse through the list of the numbers
___ i __ a:
#to store the current value of i and this is used if the numbers are repeating then print the ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
22c8ea021a301422c3e6055ded494c2c2ac691af | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03141/s223022597.py | 4b728e329753edf2c4fdd8274948dfacf44ff235 | [] | 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 | 431 | py | def main():
dishes = int(input())
aoki_happiness = []
difference = []
for i in range(dishes):
t, a = map(int, input().split())
aoki_happiness.append(a)
difference.append(t + a)
difference.sort(reverse=True)
answer = -sum(aoki_happiness)
for i in range(dishes):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ed16de2849ffa18e3bb2cfac7efd20a8e82d4f90 | ab0e9b543852bc2d3c828b2351c30d1626f0b321 | /CustomProceduralRiggingTool/CustomProceduralRigTool/rigLib/base/controlShape/SliderControl.py | c9be68cee3e09fa618d2da5c2adc0503578bb9a2 | [] | no_license | tHeBeStXu/CustomProceduralRigTool | 397011b9519a3e5382aec5aee6115f3e6a14a802 | 003fa61b460d8e76c026f47913ebdab5c0cbfef8 | refs/heads/master | 2021-07-13T09:02:07.697909 | 2020-07-09T07:28:27 | 2020-07-09T07:28:27 | 157,082,564 | 15 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,825 | py | import maya.cmds as cmds
def createShape(prefix='', scale=1.0):
curve6 = []
curve6.append(cmds.curve(n=prefix, p =[(2.0, 0.0, 0.0), (2.0, 1.0, 0.0), (-2.0, 1.0, 0.0), (-2.0, 0.0, 0.0), (2.0, 0.0, 0.0)],per = False, d=1, k=[0, 1, 2, 3, 4]))
sel1 = curve6[0]
cmds.setAttr(sel1 + '.s', scale, scale, scale... | [
"328665042@qq.com"
] | 328665042@qq.com |
6c098d5e655be7b827043de2784822653a2260c7 | 52cb25dca22292fce4d3907cc370098d7a57fcc2 | /BAEKJOON/정렬/1431_시리얼 번호.py | d0a14199eab04150f0860531be40f5a286f97b8a | [] | no_license | shjang1013/Algorithm | c4fc4c52cbbd3b7ecf063c716f600d1dbfc40d1a | 33f2caa6339afc6fc53ea872691145effbce0309 | refs/heads/master | 2022-09-16T12:02:53.146884 | 2022-08-31T16:29:04 | 2022-08-31T16:29:04 | 227,843,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | N = int(input())
array = []
for _ in range(N):
n = input()
sum = 0
for i in n:
if i.isdigit():
sum += int(i)
array.append((n, sum))
1. A와 B의 길이가 다르면, 짧은 것이 먼저 온다.
2. 만약 서로 길이가 같다면, A의 모든 자리수의 합과 B의 모든 자리수의 합을 비교해서 작은 합을 가지는 것이 먼저온다.
3. 1, 2번 조건으로도 비교할 수 없으면, 사전순으로 비교한다.
array = so... | [
"shjang113@gmail.com"
] | shjang113@gmail.com |
24d31502914f3b41f15ecb35a206841750e7d298 | 69d407235771f364277f78aeb3a03896804cb690 | /setup.py | 669930846e04f4eeb362c460f252ac27591cd477 | [] | no_license | Hoseung/astroBF | 1bb16de1c867b943751ff0d73dfabc5ab7e723c6 | e04efff26e99886c8b7eba42a897277318338d61 | refs/heads/main | 2023-07-17T12:27:10.184080 | 2021-09-01T05:42:05 | 2021-09-01T05:42:05 | 313,825,096 | 0 | 0 | null | 2021-07-22T15:16:58 | 2020-11-18T04:44:01 | Jupyter Notebook | UTF-8 | Python | false | false | 965 | py | """A setuptools based setup module.
They say, "Always prefer setuptools over distutils
See:
https://github.com/pypa/sampleproject
https://github.com/pypa/sampleproject/blob/master/setup.py
"""
from setuptools import setup, find_packages
import pathlib
here = pathlib.Path(__file__).parent.resolve()
... | [
"hopung@gmail.com"
] | hopung@gmail.com |
99d262fa5ccd06328ab8368b3fc44507adfd9830 | 111b4a8e40afb25fe9c906e89b3d31ccde18447b | /04 - Variabelen/De gestopte klok.py | 75b8511c072d53f4aa614bade996b002b4087d81 | [] | no_license | astilleman/Informatica5 | 722276619b5c2a80e03ad97a6c67bdb25f12bda2 | 9cbd82055c621c25ec372547c179bcf045f6629f | refs/heads/master | 2020-03-28T03:19:12.206052 | 2019-05-16T08:05:54 | 2019-05-16T08:05:54 | 147,637,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,465 | py | #invoer
uur_vertrek_thuis = int(input('Geef uur vertrek thuis: '))
minuten_vertrek_thuis = int(input('Geef minuten vertrek thuis: '))
uur_aankomst_bij_vriendin = int(input('Geef uur aankomst bij vriendin: '))
minuten_aankomst_bij_vriendin = int(input('Geef minuten aankomst bij vriendin: '))
uur_vertrek_van_vriendin = i... | [
"43027764+astilleman@users.noreply.github.com"
] | 43027764+astilleman@users.noreply.github.com |
2e25dd0e11173270d164c356eea4f6b482181bb0 | 6b182d6fc7ffb421ef1614613ce2aeda20fa5dc7 | /rl4circopt/cirq_converter.py | a9fb8256f6765637143f628d47bbb29f5c638358 | [
"Apache-2.0"
] | permissive | KtechB/google-research | 348768d150ffbb0255795ac1cb1b07561c811db3 | a2d9c1b2555682ef4842bbf41ecfaee3761e75a0 | refs/heads/master | 2020-12-21T18:39:21.280371 | 2020-01-27T02:39:57 | 2020-01-27T02:44:34 | 236,524,702 | 1 | 0 | Apache-2.0 | 2020-01-27T15:38:03 | 2020-01-27T15:38:02 | null | UTF-8 | Python | false | false | 4,434 | py | # coding=utf-8
# Copyright 2020 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
004c2e018a751009f967eec07c3a382994381fa3 | 3024cafafbfc75193105af7f225d3b12eb2aea46 | /DjangoProjects/project21/project21/asgi.py | 4493c94e64c71197d7bdabd4b9b3e0422aa3308d | [] | no_license | jaishankarg24/Django-Rest-Framework | 33266f6825d51abb8a512426baedf59f2ee957c8 | 809ee9208ffbef4202a8f4058a84f5322793af52 | refs/heads/master | 2023-03-02T20:56:38.051060 | 2021-02-12T05:37:48 | 2021-02-12T05:37:48 | 338,233,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for project21 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"jaishankarg24@gmail.com"
] | jaishankarg24@gmail.com |
fbc5b25f5e0fbcfd516caa525b16260a788e142a | 5d58a98697a48894639e2117af1656f35f45eb16 | /classify.py | 146909cbfaeccc10929267e720844066151e6909 | [] | no_license | sahiljajodia01/Galaxy-Classification | 443f266a2cf68960d940bb0b48ec92031d20f2a7 | 5d0cbcd79e3da34800f180d177e864a022a7e39f | refs/heads/master | 2020-03-26T02:25:31.160586 | 2018-08-16T14:02:57 | 2018-08-16T14:02:57 | 144,409,625 | 0 | 1 | null | 2019-10-26T17:24:35 | 2018-08-11T18:34:45 | Python | UTF-8 | Python | false | false | 767 | py | import tensorflow as tf
import sys
image_path = sys.argv[1]
image_data = tf.gfile.FastGFile(image_path, 'rb').read()
label_lines = [line.rstrip() for line in tf.gfile.GFile("tf_files/retrained_labels.txt")]
with tf.gfile.FastGFile("tf_files/retrained_graph.pb", "rb") as f:
graph_def = tf.GraphDef()
graph_def.P... | [
"sahil.jajodia@gmail.com"
] | sahil.jajodia@gmail.com |
db83872b18fb3e6fa9bf775b6b7bd738e1c00555 | f12f299984060186ad8422913ed591cac1fd918d | /graph/count_servers_that_communicate.py | 85ea83d9ba7132538d07286d282861c92fcea856 | [] | no_license | pitikdmitry/leetcode | 775f9163850dd5d6cdb971603c6fd4615c7f89d7 | f82a36be6d8dcf842354d759bab98dd915173fd5 | refs/heads/master | 2023-01-23T23:42:01.568390 | 2020-12-07T09:03:45 | 2020-12-07T09:03:45 | 240,458,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,412 | py | '''
You are given a map of a server center, represented as a m * n integer matrix grid,
where 1 means that on that cell there is a server and 0 means that it is no server.
Two servers are said to communicate if they are on the same row or on the same column.
Return the number of servers that communicate with any other... | [
"pitik.dmitry@mail.ru"
] | pitik.dmitry@mail.ru |
7d3eb3957a3618ff4474c1476cc87f6c0b6753c6 | 76462e0a338eea3ef56d46a5e4961cb4ca3dfafe | /test.py | cb7053a0e1145bed321fec76dc6ababd7d670800 | [] | no_license | chengyang317/information_pursuit | 7183f3b893027b014bb4a99c91599af15604489f | c0ccbb7c64bac9ba69e7c0326f6146cf2a39c8fa | refs/heads/master | 2021-01-10T13:36:32.436830 | 2016-04-16T06:50:45 | 2016-04-16T06:50:45 | 55,868,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,984 | py | import os
import numpy as np
caffe_root = '../caffe/' # this file is expected to be in {caffe_root}/examples
import sys
sys.path.insert(0, caffe_root + 'python')
import caffe
def calculate_mean(txt_file, out_path):
crop_dim = (227, 227)
with open(txt_file) as txt_fd:
lines_list = txt_fd.readlines(... | [
"chengyang317@gmail.com"
] | chengyang317@gmail.com |
b44180d326fa9728aebbf715701748983bab301a | 2abefb9b5df4a5fdd782ac43cd1f6e94198fe43a | /B461 Databases/homework3/formatdata.py | 1ef3ab83e3ef2949cba6fcd1faf5d8a96a971111 | [] | no_license | jb1361/Class-files-repo | e63d339fd9c9add23b78571b2258d6c836c329d4 | b29b80a93655348067a5146a6c7d2d5186ba184a | refs/heads/master | 2023-01-30T09:38:45.786561 | 2021-06-14T22:42:04 | 2021-06-14T22:42:04 | 92,340,613 | 0 | 0 | null | 2023-01-06T11:20:52 | 2017-05-24T22:05:32 | Python | UTF-8 | Python | false | false | 1,854 | py | import pandas as pd
import json
import xml
import csv
import xmltodict
inp = str(input())
def open_csv():
jsonfile = open('parsedjsoncsv.json', 'w')
jsonfile.write('{"Tweets": ')
jsonfile.close()
csvf = open(inp, encoding="utf8")
jsonfile = open('parsedjsoncsv.json', 'a')
fields = ('Tweet','ID','QuotedID','R... | [
"justinbutler4@hotmail.com"
] | justinbutler4@hotmail.com |
59b9ade2bf90e8af5c536433d45602e807e86bb9 | 03a2c1eb549a66cc0cff72857963eccb0a56031d | /leetcode/longest-increasing-subsequence.py | 68a1a53b3e33d5361b8717a6a29e2b374dd7b243 | [] | no_license | nobe0716/problem_solving | c56e24564dbe3a8b7093fb37cd60c9e0b25f8e59 | cd43dc1eddb49d6b5965419e36db708c300dadf5 | refs/heads/master | 2023-01-21T14:05:54.170065 | 2023-01-15T16:36:30 | 2023-01-15T16:36:30 | 80,906,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | class Solution(object):
def lengthOfLIS(self, nums):
if len(nums) < 1:
return 0
t = [0] * len(nums)
t[0] = 1
for i in range(1, len(nums)):
v = 0
for j in range(i):
if nums[i] <= nums[j]:
continue
... | [
"sunghyo.jung@navercorp.com"
] | sunghyo.jung@navercorp.com |
5488323da9dcc43e1a7d7efeb4d494c155df037a | 3b3cafd0357a67f1d4b7640e16d50c67d3cf275c | /host/greatfet/peripherals/led.py | 0ed85b8346f0629234ed43d236652cd963e304cf | [
"BSD-3-Clause"
] | permissive | wchill/greatfet | aa82fdbd3a5c4a9d2440f949542ea47768c487a9 | a76e0ccc2794686407840b11093d460a0ba29825 | refs/heads/master | 2020-03-30T04:14:31.002850 | 2018-09-19T04:45:15 | 2018-09-28T02:39:33 | 150,731,978 | 0 | 0 | BSD-3-Clause | 2018-09-28T11:39:18 | 2018-09-28T11:39:18 | null | UTF-8 | Python | false | false | 1,921 | py | #
# This file is part of GreatFET
#
from ..protocol import vendor_requests
from ..peripheral import GreatFETPeripheral
class LED(GreatFETPeripheral):
""" Simple periheral that allows control of an LED through the GreatFET HAL."""
# The LED request codes supported by the GreatFET.
LED_REQUEST_TOGGLE = 0
... | [
"k@ktemkin.com"
] | k@ktemkin.com |
ce6fc5299a3a05141296f93094540620ac7b7456 | 1c492b3f92834bd778839f6f34cd1551de9fdcde | /__init__.py | 5283c431fa62d710a83e1369d657303eea2a8669 | [] | no_license | argeweb/plugin-payment-middle-layer | ecdc20504cd18ba3f3b32aa67d9ba98e9d426a97 | afb143244d42d5e01a225fb01470f59b78477cc0 | refs/heads/master | 2021-01-20T17:12:55.788498 | 2017-08-29T08:57:21 | 2017-08-29T08:57:21 | 90,867,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created with YooLiang Technology (侑良科技).
# Author: Qi-Liang Wen (温啓良)
# Web: http://www.yooliang.com/
# Date: 2017/5/10.
from argeweb import ViewDatastore
from argeweb.core.events import on
from models.payment_type_model import PaymentTypeModel
@on('create_payment')
d... | [
"cwen0708@gmail.com"
] | cwen0708@gmail.com |
5a11b740d6114fc41ea6c68653a27e7cacc5b651 | 94b603a26fd0942181d4a3da2f9f830034c74ce0 | /leetcode/weekly179/3_inform_employees.py | b8c151cc164c59af5d6682a7fd93ead1207fceb7 | [
"Unlicense"
] | permissive | jan25/code_sorted | 55336e10bb9ee74610ce1ba62617db979ddf8e26 | 2a5af4f8c95a66ccca3223a261362a17be05728f | refs/heads/master | 2023-01-25T00:50:56.846461 | 2022-12-21T17:40:30 | 2022-12-21T17:40:30 | 34,155,896 | 3 | 0 | Unlicense | 2019-02-07T23:07:10 | 2015-04-18T06:54:30 | C++ | UTF-8 | Python | false | false | 540 | py | '''
https://leetcode.com/contest/weekly-contest-179/problems/time-needed-to-inform-all-employees/
'''
class Solution:
def numOfMinutes(self, n: int, headID: int, manager: List[int], informTime: List[int]) -> int:
maxt = [-1] * n
maxt[headID] = 0
def dfs(c):
if c... | [
"abhilashgnan@gmail.com"
] | abhilashgnan@gmail.com |
53072fee65af46ce7f28eca762c1ed14c3fbfca1 | 0b0d3246d39974cb8faff7d269da2d539415afab | /problem_python/p114.py | 2b24da6439517a965369798473569b3052a56e05 | [] | no_license | xionghhcs/leetcode | 972e7ae4ca56b7100223630b294b5a97ba5dd7e8 | 8bd43dcd995a9de0270b8cea2d9a48df17ffc08b | refs/heads/master | 2020-03-07T17:18:08.465559 | 2019-09-29T11:11:26 | 2019-09-29T11:11:26 | 127,607,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def flatten(self, root):
"""
:type root: TreeNode
:rtype: void Do not return anything, modify root in-place... | [
"xionghhcs@163.com"
] | xionghhcs@163.com |
336344a4ce71add77a669f93938abd8b351ecfde | dacf092e82b5cc841554178e5117c38fd0b28827 | /day18_v2/conf/setting.py | 04d2da84b121624328d77a7fb280d129e3b731ed | [] | no_license | RainMoun/python_programming_camp | f9bbee707e7468a7b5d6633c2364f5dd75abc8a4 | f8e06cdd2e6174bd6986d1097cb580a6a3b7201f | refs/heads/master | 2020-04-15T11:27:09.680587 | 2019-04-06T02:21:14 | 2019-04-06T02:21:14 | 164,630,838 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | import logging
import os
manager_db = 'C:/Users/Administrator/Desktop/python_programming_camp/day18_v2/db/manager_message.pk'
teacher_db = 'C:/Users/Administrator/Desktop/python_programming_camp/day18_v2/db/teacher_message.pk'
student_db = 'C:/Users/Administrator/Desktop/python_programming_camp/day18_v2/db/student_mes... | [
"775653143@qq.com"
] | 775653143@qq.com |
f6e9aca2fc8616aee3ab9cb63fab22c0f77ab585 | 414b21e4645117e92582fb3ad76026a10c6d00d5 | /Python150Challenges/Random/Challenges 52 - 59/Challenge53.py | d6564b86b72b16307168a090d012afe368bd3cb4 | [] | no_license | srinivasskc/Python-Programming-Learning | 1a8caf1a4fc602ef5b819d6168377fcfe6ba7351 | 4d4523473521b94f76709b204251bd4ef6ab5f1e | refs/heads/master | 2022-11-14T20:10:02.453767 | 2020-07-07T03:58:03 | 2020-07-07T03:58:03 | 272,511,628 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | # 053 Display a random fruit from a list of five fruits.
import random
fruits = random.choice(["Apple","Orange","Grapes","Pineapple","Strawberry"])
print(fruits)
| [
"srinivas.skc30@gmail.com"
] | srinivas.skc30@gmail.com |
41034de98dbf6b88d42a721c8a23bf056c416169 | 325783a2f52acc85490f6191d2f56ee315a1cc7d | /success_project_manager/settings.py | af37c44ad901ccd63d20f018ccbba0a2adb8fce1 | [
"MIT"
] | permissive | DarishkaAMS/Dj_Projects-Success_Project_Manager | 3ef64abf5b7dbac26d5c08dc07bfa261c3f31573 | 5ea78cee729d629a4bc7d1d65d7307dfed6323de | refs/heads/master | 2022-12-17T16:59:05.569736 | 2020-09-20T14:56:53 | 2020-09-20T14:56:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,298 | py | """
Django settings for success_project_manager project.
Generated by 'django-admin startproject' using Django 3.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""... | [
"d.nikolaienko@yahoo.co.uk"
] | d.nikolaienko@yahoo.co.uk |
1ee956601be4c9d84823bd192e5fa73403d2ce12 | b5d968f0436f29a92be7fbaf9b8ee19f698f3b20 | /tree/bottom_view_of_tree.py | 119a41fb25021b628c733c64581681c33548a794 | [] | no_license | asperaa/programming_problems | 35a2504c6f114812c1cb938f7df1486e84a66636 | d055d93dfb9f7945a4250663a58d0dd0231f2353 | refs/heads/master | 2020-06-02T02:20:09.793839 | 2019-12-05T10:14:42 | 2019-12-05T10:14:42 | 191,003,597 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,496 | py | """Bottom view of the tree"""
from collections import deque
class TreeNode:
def __init__(self, val):
self.val = val
self.left = None
self.right = None
class BottomView:
def __init__(self):
self.hd_dict = {}
self.maxx = 0
self.minn = 0
self.node_hd = {}
... | [
"adityaankur44@gmail.com"
] | adityaankur44@gmail.com |
b4551d08221a8ae4bc93f7a7561120e35dc2f8e8 | 523d6d93c8a12e384c5b2794289f004e40451423 | /bdbag/__init__.py | ac9d1371903fcee96c9494cdddd62b1149bf5719 | [] | no_license | kylechard/bdbag | a5fc9af3c1caaadb57f3df860de281a1c996f9ea | 874946ab6f560f4f0184a5fcf8b3341bae6d1d22 | refs/heads/master | 2021-01-17T08:01:57.727158 | 2016-05-10T03:12:48 | 2016-05-10T03:12:48 | 58,425,987 | 0 | 0 | null | 2016-05-10T03:10:25 | 2016-05-10T03:10:25 | null | UTF-8 | Python | false | false | 667 | py | import os
import getpass
DEFAULT_CONFIG_PATH = os.path.join(os.path.expanduser('~'), '.bdbag')
DEFAULT_CONFIG_FILE = os.path.join(DEFAULT_CONFIG_PATH, 'bdbag.json')
DEFAULT_CONFIG = {
'bag_config':
{
'bag_algorithms': ['md5', 'sha256'],
'bag_archiver': 'zip',
'bag_processes': 1,
... | [
"mikedarcy@users.noreply.github.com"
] | mikedarcy@users.noreply.github.com |
0de36f90c3bc010c741c49829338869e15733710 | aab7639fdca115185675c3bceb13fb3cb1d58e62 | /Tree/144. Binary Tree Preorder Traversal (medium).py | 363237d179087d13a2f263dfd13db8153dffa526 | [] | no_license | xilixjd/leetcode | 0cfc9c32e790e88084e484c369d450fb4619c52c | 71a02a2c6bc12e86119502c9c4a4b2047b9f3966 | refs/heads/master | 2021-01-19T15:46:26.554583 | 2018-06-02T05:22:31 | 2018-06-02T05:22:31 | 88,227,638 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # -*- coding:utf-8 -*-
'''
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
\
2
/
3
return [1,2,3].
Note: Recursive solution is trivial, could you do it iteratively?
'''
# Definition for a binary tree node.
class TreeNode(obje... | [
"349729220@qq.com"
] | 349729220@qq.com |
27fe4fa915185e9a264cc810167eb8dedfa98dfe | 5fb7d49fbeada4a44ebe2ae81ef98343af625868 | /problem_28_alternative.py | eb9e1ce3c9b9cb7b1b74aedd8f4faf2bda19766e | [] | no_license | qq854051086/46-Simple-Python-Exercises-Solutions | 575fcfd20a131636d4c3d215f43ca765e9ccf172 | fd1c83e2247322a32aeb89f959043fb42f47a199 | refs/heads/master | 2020-11-28T18:20:29.953521 | 2019-09-10T04:13:46 | 2019-09-10T04:13:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | '''
Write a function find_longest_word()that takes a list of
words and returns the length of the longest one.
Use only higher order functions
'''
def find_longest_word(list_a):
return max(list(map(lambda x:len(x),list_a)))
ab = ['sadswesdf','cat','meaow','to','asdeqw']
print(find_longest_word(ab))
| [
"shovon.sylhet@gmail.com"
] | shovon.sylhet@gmail.com |
ae2dc1722aa7c1d62ad9811c785588b2d39e0f7d | 6f463f598c246faf7127b2fef6c594024324eee3 | /pyaudio3/setup.py | 0ec7c5a1498889659fb8e397c2b4401e376054b7 | [
"CC0-1.0",
"MIT"
] | permissive | totalgood/python-manylinux-demo-pyaudio | e264d96259a4d403759dc88dd87d82bc39ef9bea | a3f347a299d7ad9bc706bde8c693dd04ad588eac | refs/heads/master | 2021-01-24T03:25:15.998053 | 2018-02-26T03:40:25 | 2018-02-26T03:40:25 | 122,888,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | py | """
PyAudio v0.2.11: Python Bindings for PortAudio.
Copyright (c) 2006 Hubert Pham
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to ... | [
"github@totalgood.com"
] | github@totalgood.com |
7ddfd877eb969811f98360c8ab0f34058652c80d | 73c8db3c12be5187b5d8944d4f1c17cb75a8a3c0 | /01_Beginner/bi_service_server_python/src/add_two_ints_server.py | e235189f0e4e188752bfbf28a5df23d06a4b68ff | [] | no_license | wildenali/ROS_Kinetic_Basics | e712885b560aece7c9bfc87d33653bd956f590f5 | 4c2d1d3411f935d627efffe19951abf03c3536dd | refs/heads/master | 2020-04-28T16:18:51.973808 | 2019-06-23T04:22:16 | 2019-06-23T04:22:16 | 175,405,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 644 | py | #!/usr/bin/env python
import rospy
# from bi_service_server_python.srv import AddTwoInts
from rospy_tutorials.srv import AddTwoInts # ini adalah contoh service bawaan si ros
def handle_add_two_ints(req):
result = req.a + req.b
rospy.loginfo("Penjumlahan dari "+ str(req.a) + " dan " + str(req.... | [
"wildeeeeen@gmail.com"
] | wildeeeeen@gmail.com |
b5411a32e1e1d8b15803ef3c570471167eb59cf6 | 41b77a1a17244a727aa6acd95e91e8c674986049 | /leagueOfDrivers_BE/wx_league/migrations/0071_auto_20180902_1140.py | e395cf7a8c585676bf64a05edbc3359ba01bcfe8 | [] | no_license | DataSecretbase/Renjiu | 24424ca1742a3987a395bc5da54afa1e7f34fc84 | aa90d58d92d0c1936b0ee23e4f9c970135b480d5 | refs/heads/master | 2022-12-08T05:28:09.192623 | 2019-03-10T09:44:19 | 2019-03-10T09:44:19 | 140,274,553 | 1 | 2 | null | 2022-12-08T02:21:56 | 2018-07-09T11:15:07 | Python | UTF-8 | Python | false | false | 1,509 | py | # Generated by Django 2.1 on 2018-09-02 11:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wx_league', '0070_auto_20180901_1952'),
]
operations = [
migrations.AddField(
model_name='order',... | [
"2144799613@qq.com"
] | 2144799613@qq.com |
dc224cc7abc0ad0e72896f960a41a0a063cf1cac | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/R2/benchmark/startCirq16.py | 275ba67e4c4756b2a353530a6dec6e751ec234b8 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=2
# total number=6
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for ... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
27df7838fa6eaf545421dacdccf2236d0eb5468f | 4be96ec1670297ae71efa6c5c4a830255f893743 | /Python/Product/Miniconda/Miniconda3-x64/Lib/site-packages/adodbapi/test/adodbapitestconfig.py | e1a36e6676174520d79ca9f3a378e825816c87a4 | [
"BSD-3-Clause",
"MIT",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-python-cwi",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-free-unknown",
"Python-2.0"
] | permissive | zooba/PTVS | 7dbcc0165ded98d077040a6b367fd71a1eb1e6bd | 0c213e901168fee368a32939256174077a8d4dfa | refs/heads/master | 2021-05-23T03:58:11.007138 | 2021-01-26T00:20:40 | 2021-01-26T00:20:40 | 42,481,352 | 1 | 0 | Apache-2.0 | 2018-11-19T19:30:24 | 2015-09-14T22:47:51 | C# | UTF-8 | Python | false | false | 6,597 | py | # Configure this to _YOUR_ environment in order to run the testcases.
"testADOdbapiConfig.py v 2.6.0.A00"
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# # TESTERS:
# #
# # You will need to make numerous modifications to this file
# # to adapt it to your own testing environment.
... | [
"huvalo@microsoft.com"
] | huvalo@microsoft.com |
d1d0251aad2d6029d018d7fb1d3b6f58f7af942b | 55647a80c8b412af9df0ba3f50595cc2f29c25e6 | /res/scripts/client/gui/Scaleform/daapi/view/lobby/server_events/QuestsTab.py | 945792f17302730516208263f4b78c5c64f90281 | [] | no_license | cnsuhao/WOT-0.9.17-CT | 0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb | d1f932d8cabaf8aa21708622e87f83c8d24d6451 | refs/heads/master | 2021-06-08T18:11:07.039293 | 2016-11-19T19:12:37 | 2016-11-19T19:12:37 | null | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 904 | py | # 2016.11.19 19:50:55 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/server_events/QuestsTab.py
from gui.Scaleform.daapi.view.meta.QuestsTabMeta import QuestsTabMeta
from gui.server_events import caches
class QuestsTab(QuestsTabMeta):
def __init__(self):
sup... | [
"info@webium.sk"
] | info@webium.sk |
80d100d75c783f3e7bd19971bb60d6f3b8207fd1 | 321b4ed83b6874eeb512027eaa0b17b0daf3c289 | /91/91.decode-ways.234347632.Accepted.leetcode.py | 7239e92faa9e6c3e82c424c82fe6f04ef63d190a | [] | no_license | huangyingw/submissions | 7a610613bdb03f1223cdec5f6ccc4391149ca618 | bfac1238ecef8b03e54842b852f6fec111abedfa | refs/heads/master | 2023-07-25T09:56:46.814504 | 2023-07-16T07:38:36 | 2023-07-16T07:38:36 | 143,352,065 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 703 | py | class Solution:
def numDecodings(self, s):
n = len(s)
dp = [0] * (n + 1)
dp[0] = 1
if 0 < int(s[0]) <= 26:
dp[1] = 1
else:
dp[1] = 0
for i in range(1, n):
if 0 < int(s[i]) <= 26:
dp[i + 1] += dp[i]
if 0 <... | [
"huangyingw@gmail.com"
] | huangyingw@gmail.com |
d5a2f6439c7e6c62021a22e9a8dfc1239f1668fe | da52c51cbbd97ee30472eeea69d36ab037d68fe5 | /store/online_store/migrations/0007_auto_20210429_1844.py | 43f14ca9b56b4c84fadc14f134ee3084b15320dc | [] | no_license | A-miin/hw_48 | 29ed69a098973661e3e18d32fda59cc7869d138b | 56e4f3e69937ffaf0ca376ecddb822d3da4b8c53 | refs/heads/master | 2023-05-06T10:59:17.342437 | 2021-05-27T12:57:53 | 2021-05-27T12:57:53 | 345,091,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | # Generated by Django 3.1.7 on 2021-04-29 18:44
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),
('online_store', '0006_aut... | [
"zulaykaisaeva@gmail.com"
] | zulaykaisaeva@gmail.com |
7f238fe92b9dbbf74b8bf85c879ade8c231c6aff | 98e79aff0c504ae703df1b4b6a621caedb5be4de | /v1.1/client/tcp_client.py | 708dbcb4ff652a6515f39c70b5481ae830da6f74 | [] | no_license | lotaku/board-game | 26b97b3f6cb241e55852b6d60da3073a9347e4d3 | d90fe5ffabef0cdfa0538be14f69afdc0ca0badc | refs/heads/master | 2020-06-03T05:00:59.617051 | 2014-05-18T14:44:00 | 2014-05-18T14:44:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,309 | py | #!/usr/bin/env python
# encoding: utf-8
from select import select
from socket import socket
from socket import AF_INET, SOCK_STREAM
from recv_packet import RecvPacket
from opccode import handlePacket
class TcpClient:
def __init__(self):
self.connectSocket=socket(AF_INET, SOCK_STREAM)
self.sendDat... | [
"317399510@qq.com"
] | 317399510@qq.com |
e24147247fc053f8a7b844f840adbeb6c81fa259 | 237cc38de0cf7a6e3661ed552ae771bd972d7438 | /base/obj7.py | 9c80b1fb7ecb50c88365ee881d96c268f470f7d0 | [] | no_license | chydream/python | af5ad8a98c78de71e255f7b776f936c4b89c616e | e5bfef53a7770d4f323bd2877f93c8166c563695 | refs/heads/master | 2020-05-07T17:00:33.558178 | 2020-05-05T13:45:19 | 2020-05-05T13:45:19 | 180,708,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,302 | py | # 1.异常处理 异常类 Exception
def test_divide():
try:
5/0
except:
print("报错了,除数不能为0")
def test_div(num1,num2):
return num1 / num2
# 2.自定义异常
class ApiException(Exception):
err_code = ''
err_msg = ''
def __init__(self, err_code = None,err_msg = None):
self.err_code = self.err_co... | [
"yong.chen@doone.com.cn"
] | yong.chen@doone.com.cn |
b03246541ceeba8bf9dc568c3c57610a7d35f600 | bc332a269280b5bd4e1bee65ef397d58aef15884 | /bites/account.py | 18d4c05f27e61b7e10ea163aaecc9746b3cc69c0 | [] | no_license | romu42/practice | 4edfe96421bf580ad17947763a5976b8ca56b2c7 | 08b6b3cc4b1f6cbeabdf09e73a9c55c09c6f8ff1 | refs/heads/master | 2020-09-05T12:14:39.894539 | 2020-01-27T21:39:30 | 2020-01-27T21:39:30 | 220,101,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | #!/usr/bin/env python3
# by rog
class Account:
def __init__(self, name, start_balance=0):
self.name = name
self.start_balance = start_balance
self._transactions = []
@property
def balance(self):
return self.start_balance + sum(self._transactions)
# add dunder methods ... | [
"roger.murray@iis.se"
] | roger.murray@iis.se |
a24dfe14931251116b4294f7b25b61a94229c333 | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/PostenMapping/Model/Post060379901.py | aadd23a35487148bbadd3e8cf0630f668b673929 | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 1,052 | py | # coding=utf-8
from OTLMOW.PostenMapping.StandaardPost import StandaardPost
from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping
# Generated with PostenCreator. To modify: extend, do not edit
class Post060379901(StandaardPost):
def __init__(self):
super().__init__(
nummer... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
2f198c0fae75dbdd5b6821f92c5b94954c6b14c9 | d2a4f3d8d3e95adf869ad0b8e1a3784f3a1254a6 | /DMVProject/DMVProject/urls.py | e2cfe04ad50b15c70038ba0ebda999b37a52c17e | [
"Apache-2.0"
] | permissive | cs-fullstack-2019-fall/django_imageUploader | 3153e8a7ba1fd5d84562b4fd34fbc33c714f3bf4 | 9863f4ac3291bd425c75065dc307d3b80ff4cae5 | refs/heads/master | 2020-08-10T06:03:55.524534 | 2019-10-10T20:39:52 | 2019-10-10T20:39:52 | 214,277,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | """DMVProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"kenn+git@code-crew.org"
] | kenn+git@code-crew.org |
3e4cd6fb9fd110d20cd453edb8077097edd993fd | 22ffa2a2df4218c12d6324fe602ec20617445dc1 | /draw/nn/single_layer/generator.py | 0fc2f7c8b9f97433f2b15ab3d12432d07ffd7fed | [] | no_license | musyoku/convolutional-draw | 367f0269f2df69ac6480d1de7edf2bdf80259ef0 | 3f384feb7b0d1a2138bd758713ed2745c216df3c | refs/heads/master | 2020-03-21T08:55:18.630043 | 2018-10-09T05:19:17 | 2018-10-09T05:19:17 | 138,373,875 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,423 | py | import math
import chainer
import chainer.functions as cf
import chainer.links as nn
import cupy
from chainer.backends import cuda
from chainer.initializers import HeNormal
class LSTMCore(chainer.Chain):
def __init__(self, chz_channels, batchnorm_enabled, batchnorm_steps):
super().__init__()
with... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
17385bde8e8405a61525c7f05836d022b1745cbd | 02b0a37e2b3881e80842d3a638be3c20d70b7392 | /lesson_07/logging_mod.py | 6b701b6b8bd0bb0a3c711706a529d88ab5138cdf | [] | no_license | mr-Robot-777/Python_architecture | e3aec17250a31aec4bd45712471c16359ed3f765 | 5a5dfd6edfd1ca5a4bbb9ffac6d84e54cbeaf009 | refs/heads/master | 2023-04-26T20:58:07.575918 | 2021-05-26T06:31:47 | 2021-05-26T06:31:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | from reuse_patterns.singletones import SingletonByName
import time
# Заметка, можно применить стратегию если добавить стратегию логирования
class Logger(metaclass=SingletonByName):
def __init__(self, name):
self.name = name
def log(self, text):
print('log--->', text)
# декоратор
def debug(... | [
"ershgun@mail.ru"
] | ershgun@mail.ru |
d7d7f19059ff94dd7697cbdcc3fc24ed9f5fcefb | cb2196987bccb39fd75366955b4eb364ffbf7a39 | /atcoder/ABC/057/C.py | f8c6258d76c7c79fbf49bbdd43db13f74efd5700 | [] | no_license | whisper0077/programming-contests | c21332faf54fcef6eb955e9f5837917e10572cf9 | 6e6220ed8c4f51092ea0bb7690ea0fba3e26bec7 | refs/heads/master | 2023-04-27T13:00:37.968467 | 2023-04-15T16:47:48 | 2023-04-15T16:47:48 | 187,431,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import math
N = int(input())
ans = N
for i in range(1, int(math.sqrt(N))+1):
if N % i == 0:
a, b = i, N//i
c = max(a, b)
if c < ans:
ans = c
print(len(str(ans)))
| [
"tubosaki.shun@gmail.com"
] | tubosaki.shun@gmail.com |
8e23a595f660379bb6679eeaa21e410123503d1e | 03f1519986ee2b553a7e07ce3193e9d5eae6abde | /saklient/cloud/errors/accountnotfoundexception.py | 91c1c69462043c27277cbb469969131ce2ffe959 | [
"MIT"
] | permissive | sakura-internet/saklient.python | 4343cdedd24532704d7d4b7dfa0745c50fd6f3be | 96174e0adbd5006c9b9519ca4d5924cc492f4262 | refs/heads/master | 2021-01-01T05:06:06.130497 | 2020-12-16T08:10:03 | 2020-12-16T08:10:03 | 23,689,552 | 8 | 3 | null | 2015-08-20T04:10:24 | 2014-09-05T03:53:44 | Python | UTF-8 | Python | false | false | 791 | py | # -*- coding:utf-8 -*-
# This code is automatically transpiled by Saklient Translator
import six
from ...errors.httpbadrequestexception import HttpBadRequestException
import saklient
str = six.text_type
# module saklient.cloud.errors.accountnotfoundexception
class AccountNotFoundException(HttpBadRequestException):
... | [
"townewgokgok@gmail.com"
] | townewgokgok@gmail.com |
008a8bbf1a3de400dcc891b387c5fc257b1ab0d0 | 7a2ad6c274add0f88cab8f6f89de551ff86597c9 | /AOC2020/days/day12/Day12Puzzle2.py | 9ca0ddbba3bbb95881051e83734da6a9f4587a7e | [] | no_license | Akivashi/AOC | 8b66cecc9c6cf32c318d5b605f7f9ee952aad373 | cbd3a766db1a4b6560c4adcf978ec79b30707032 | refs/heads/master | 2023-01-29T17:57:39.704089 | 2020-12-08T18:41:15 | 2020-12-09T18:55:10 | 318,249,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | import argparse
class Day12Puzzle2(object):
def __init__(self):
self.day = 12
self.puzzle = 2
def solution(self, inputfile):
with open(inputfile,"r") as file:
lines = file.readlines()
for line in lines:
print(line)
return 2
def main():
ap = argparse.ArgumentParser()
ap.add_arg... | [
"rene@infi.nl"
] | rene@infi.nl |
3ab130ab52097b5a1d36e3e88cac8bd5cfd0c76b | 129e65b23a172ea686f220868c923eb4b08493c7 | /python/data_structures/heap/heap.py | 4fa1fb5032298a30573cf82a0329342528b59413 | [] | no_license | urstkj/Python | 8dcf434858f9eb171204e064237bb10d76fe7f16 | 5a41df7c57c1975e0d335f59b528e28ba63cab85 | refs/heads/master | 2023-01-01T14:15:42.833144 | 2020-10-12T15:00:55 | 2020-10-12T15:00:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | py | #!/usr/local/bin/python
#-*- coding: utf-8 -*-
from __future__ import division
from __future__ import print_function
import random
try:
raw_input # Python 2
except NameError:
raw_input = input # Python 3
class Heap:
def __init__(self):
self.h = []
self.currsize = 0
def left... | [
"ricol@opensimsim.com"
] | ricol@opensimsim.com |
647f4ea163e0768784ade751359579ce68071880 | 603d37a05bada0fae1d468cc36d80d6b9d10ac09 | /randlov1998/balance_qlinfa_sep_agent.py | fc789fd691b575eb9f4a5a1e30c32a5f851b85b4 | [
"MIT"
] | permissive | eejd/agent-bicycle | 8b8b5162177e21f27889ca0b89348000c1f724d8 | 1ecc3fcad8504385e9e85ccbc539464cb4e6c4e6 | refs/heads/master | 2020-12-31T06:23:01.487407 | 2013-12-11T04:48:16 | 2013-12-11T04:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | """Using the agent found in the xor example, rather than in linearfa.py.
"""
from pybrain.rl.learners.valuebased.linearfa import Q_LinFA
from pybrain.rl.experiments import EpisodicExperiment
from environment import Environment
from tasks import LinearFATileCoding3456BalanceTask
from training import LinearFATraining
f... | [
"cld72@cornell.edu"
] | cld72@cornell.edu |
e7fdb0f588c2175612d8dd3609718dfafbf2427b | 3e2bc48b1242ea3e5fadb22a62393fc954ee9be9 | /search_2d.py | a6840a7e839d7ff8ff658c9fa32c321bed3e747d | [] | no_license | Cbkhare/Challenges | 397e9c9d50f3408b7a510d68d7484a249afa1968 | 0ae57bfbb2579c8b80af8708cd408d9b858d9d28 | refs/heads/master | 2020-12-18T11:47:27.669359 | 2020-08-22T11:20:46 | 2020-08-22T11:20:58 | 40,669,940 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,221 | py | class Solution:
# @param A : list of list of integers
# @param B : integer
# @return an integer
def searchMatrix(self, A, B):
s = 0
e = len(A)-1
#finding suitable tuple
while s<=e:
m = int((s+e)/2)
if A[m][0]==B or A[m][len(A[m])-1]==B: ... | [
"chitrabasukhare89@gmail.com"
] | chitrabasukhare89@gmail.com |
1fdee976815be3563dbbaa213d2ecc1f47d8190c | 55defa28b5bd395e7ead2f9ca848f378ee2c8b13 | /apps/microtvm/ethosu/convert_labels.py | 0b468b9e069d56cd6793c2537c15352c8bd0edb8 | [
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-2-Clause"
] | permissive | neo-ai/tvm | 456d48c8d80bd7190c91b488b8f9d6cf22918706 | da529bf421fcfddd914b41bbe9bf9d5863671266 | refs/heads/dev | 2023-03-06T03:28:18.303189 | 2022-05-09T04:25:16 | 2022-05-09T04:25:16 | 167,632,700 | 101 | 43 | Apache-2.0 | 2023-02-17T20:49:09 | 2019-01-26T00:35:54 | Python | UTF-8 | Python | false | false | 1,561 | 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... | [
"ylchobe@gmail.com"
] | ylchobe@gmail.com |
daac53d3aec804319fcff6287426b1091abd6940 | 78eb766321c7ed3236fb87bb6ac8547c99d0d1a4 | /oneYou2/oneyou/panels.py | 6a315443121d9470f319f398354f9390cd21a1a9 | [] | no_license | danmorley/nhs-example | 9d7be76116ed962248e1f7e287355a6870534f5d | ae4b5f395d3518ee17ef89348ed756c817e0c08c | refs/heads/master | 2022-12-13T02:13:18.484448 | 2019-02-28T11:05:31 | 2019-02-28T11:05:31 | 203,353,840 | 1 | 0 | null | 2022-12-07T04:29:46 | 2019-08-20T10:30:15 | Python | UTF-8 | Python | false | false | 868 | py | from wagtail.core import blocks
from dctcmsbase.blocks import ImageBlock, SimpleCtaLinkBlock
from dctcmsbase.panels import Panel
from .blocks import ActionChooserBlock
class ActionGroupPanel(Panel):
title = blocks.CharBlock(required=True)
actions = blocks.StreamBlock([
('action_panel', ActionChooser... | [
"yohan.lebret@gmail.com"
] | yohan.lebret@gmail.com |
b6adc14641810224411f49f1df6e5e74fdbf527b | 7b02411227428bb746e7622736dc006ee24ca925 | /fhirclient/models/library.py | 8af0ffebb6ea702791195becb1e25f5376ce5b74 | [] | no_license | NCATS-Tangerine/CPKG | 81c74abaec8de75ad769724e84d893dec117cf97 | 92b6079d61bdb975a0a4bc08879f56b686ff08ef | refs/heads/master | 2022-12-10T17:55:52.586808 | 2019-08-20T20:19:56 | 2019-08-20T20:19:56 | 202,387,355 | 0 | 0 | null | 2022-12-08T06:01:57 | 2019-08-14T16:29:04 | Python | UTF-8 | Python | false | false | 5,148 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.1.0-0931132380 (http://hl7.org/fhir/StructureDefinition/Library) on 2019-08-06.
# 2019, SMART Health IT.
import sys
from dataclasses import dataclass
from typing import ClassVar, Optional, List
from .fhirabstractbase import empty_list
from .atta... | [
"solbrig@jhu.edu"
] | solbrig@jhu.edu |
0b4aee61613cf924c83d7e31c1a763bad5afc4fc | fc3f784c8d00f419b11cbde660fe68a91fb080ca | /algoritm/20하반기 코딩테스트/.Algorithm정리/.Sort/카운팅정렬.py | 8caac0113d01dbcbb04270850a31fc1e1e779773 | [] | no_license | choo0618/TIL | 09f09c89c8141ba75bf92657ac39978913703637 | 70437a58015aecee8f3d86e6bfd0aa8dc11b5447 | refs/heads/master | 2021-06-25T07:01:34.246642 | 2020-12-21T04:57:13 | 2020-12-21T04:57:13 | 163,782,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | import sys
sys.stdin = open('sort.txt','r')
# 카운팅소
# 시간복잡도 O(N)
# 속도는 빠르나 최대값을 구해 카운팅 리스트를 만들어야하므로 숫자가 매우크면 메모리면에서 비효율적이다.
Counting=[0]*10001
N=int(input())
for _ in range(N):
Counting[int(input())]+=1
for i in range(10001):
sys.stdout.write('%s\n'%i*Counting[i]) | [
"choo0618@naver.com"
] | choo0618@naver.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.