blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c5af1b1c066c1a49573ef543d9894567d5909df2 | 9e482a31dd8c1661ad1953d7fbd24a532306f58c | /Plays/Play10/medium_batch_normalization.py | 2d0166d6dce71a2e1ec99d39a56e366341b49c99 | [] | no_license | margaridav27/feup-fpro | 49a66f6643c83adb948ff110f522948f43508519 | e805e08d0fdd273db272300e3e9676c585030f23 | refs/heads/master | 2023-01-23T01:16:11.534704 | 2020-11-25T10:48:00 | 2020-11-25T10:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Dec 4 10:14:35 2019
@author: Margarida Viera
"""
#solution using generator
def batch_norm(alist, batch_size):
while len(alist) > 0:
batch = []
l = alist.copy()
if len(alist) < batch_size:
batch_size = len(alist)
... | [
"up201907907@fe.up.pt"
] | up201907907@fe.up.pt |
79800f0401cbb5ee3dfdafd55b2f0532cd565719 | ab37cdd76b8d4da54ff1ce30b0fa2e3dfadd207f | /1001-1099/1008/1008.py | e2d869f2abde08e4f8eb119987332f9815576b5f | [] | no_license | hay86/timus | b163d94052d3dedd51c82f5c10874402f805c6e1 | 0d06073228c23538ca785938c862d2b5e08bda63 | refs/heads/master | 2023-03-08T06:34:28.707612 | 2021-02-20T14:38:48 | 2021-02-20T14:38:48 | 100,444,783 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py | import sys
img = [[False for i in range(12)] for j in range(12)]
def one():
for i in range(n):
x, y = [int(j) for j in sys.stdin.readline().split()]
img[x][y] = True
if i == 0:
x0, y0 = x, y
v = [[False for i in range(12)] for j in range(12)]
q = [(x0, y0)]
v[x0][y0] = True
print '%d %d' % (x0, y0)
... | [
"xukaifeng1986@gmail.com"
] | xukaifeng1986@gmail.com |
81a081122381d85928f0ad8fb3aab7f699135e78 | aca971629c16f16a4b0360669579d0751fd5da67 | /src/indelPlot.py | f896ef722c39a732f5391609743e33d9627abe56 | [
"MIT"
] | permissive | ngannguyen/referenceViz | 43769ded8cb3c77445391e26233352a61ed72744 | 6990a00739a712ccd1371e996229882252fa8f91 | refs/heads/master | 2021-01-01T06:26:33.975514 | 2012-03-22T21:34:54 | 2012-03-22T21:34:54 | 1,750,339 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,150 | py | #!/usr/bin/env python
"""
Create Snp plots
nknguyen at soe dot ucsc dot edu
Jun 15 2011
"""
import os, sys
from optparse import OptionParser
import xml.etree.ElementTree as ET
#from numpy import *
import libPlotting as libplot
import matplotlib.pyplot as pyplot
import matplotlib.pylab as pylab
from matplotlib.ticker ... | [
"nknguyen@soe.ucsc.edu"
] | nknguyen@soe.ucsc.edu |
d82ed1cfeb3e9cf9432826e65574bb198fceddb4 | 01dad4d1d2ffaf2fa070e99fe828d42f59a9f9d1 | /src/pycrop2ml_ui/packages/SQ_Energy_Balance/src/openalea/Penman.py | ab023da150792ac8a482b0e9d2ed39cd94ea4ed8 | [
"MIT",
"BSD-3-Clause"
] | permissive | AgriculturalModelExchangeInitiative/Pycrop2ml_ui | 5e210facf9689348bb57c16060967118b7c5f49a | 3d5d2b87a74f0be306056b71808286922fef2945 | refs/heads/master | 2023-06-24T13:52:39.933728 | 2023-06-17T00:17:26 | 2023-06-17T00:17:26 | 193,912,881 | 0 | 4 | MIT | 2023-02-25T13:26:57 | 2019-06-26T13:44:34 | Jupyter Notebook | UTF-8 | Python | false | false | 6,614 | py | # coding: utf8
import numpy
from math import *
def model_penman(evapoTranspirationPriestlyTaylor = 449.367,
hslope = 0.584,
VPDair = 2.19,
psychrometricConstant = 0.66,
Alpha = 1.5,
lambdaV = 2.454,
rhoDensityAir = 1.225,
specificHeatCapacityAir = 0.00101,... | [
"ahmedmidingoyi@yahoo.fr"
] | ahmedmidingoyi@yahoo.fr |
07fd478a0c99e3470575c12f1bb74ad945580d0c | e9a083fb04bf9061a2c49871cfbec9b37ff8f71b | /docs/source/conf.py | c609679b4ac4c8100904a33ce92c16726bc46c12 | [] | no_license | olaurino/rama | 7f86223d66f42c639672da6b8979eacaf56b28ed | 2c88ca2263ccbf6d0737fea0ac5dc0341d71c53a | refs/heads/master | 2021-01-25T14:49:32.330753 | 2018-06-04T14:25:27 | 2018-06-04T14:25:27 | 123,731,355 | 0 | 2 | null | 2018-05-08T13:25:28 | 2018-03-03T21:05:53 | Python | UTF-8 | Python | false | false | 5,608 | 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/stable/config
# -- Path setup ------------------------------------------------------------... | [
"olaurino@cfa.harvard.edu"
] | olaurino@cfa.harvard.edu |
2b64d7c87cb71a336307dcbab4db4d5d324b4e43 | 95f1541cac9e356b108fd4a7698dccd469f3996e | /backend/app/misc/tasks.py | 1b2ff7d1a667b0fef02eb0b51a72ae62a22e53c2 | [] | no_license | ramonsaraiva/multiplicae | f98c29e57cf53e358540fd590d55472311d9c382 | 29054abc83bad2309ab66698d7f3f3bbd683d570 | refs/heads/master | 2023-08-15T00:07:51.203417 | 2020-02-19T02:57:24 | 2020-02-19T02:57:24 | 238,992,039 | 2 | 1 | null | 2021-09-22T18:35:52 | 2020-02-07T18:00:24 | JavaScript | UTF-8 | Python | false | false | 114 | py | import dramatiq
@dramatiq.actor(
queue_name='default',
max_retries=1,
)
def healthcheck():
return 0
| [
"ramonsaraiva@gmail.com"
] | ramonsaraiva@gmail.com |
8ed992846cecdd828e575dfa6c66da38336b9797 | acf7457d3a799cb9bff12686d2d616688bcd4b5b | /packages/python/plotly/plotly/validators/scatter/legendgrouptitle/font/_family.py | 630d0965793bea6d3cb6b80383b246586092f423 | [
"MIT"
] | permissive | plotly/plotly.py | f4f61639f08160f16195efc95b5901dc5a937346 | 975a704074f01c078e0fdfa32bdf17130bf89e69 | refs/heads/master | 2023-09-06T06:15:08.340035 | 2023-08-24T12:28:14 | 2023-08-24T12:28:14 | 14,579,099 | 14,751 | 2,989 | MIT | 2023-09-08T19:55:32 | 2013-11-21T05:53:08 | Python | UTF-8 | Python | false | false | 554 | py | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self,
plotly_name="family",
parent_name="scatter.legendgrouptitle.font",
**kwargs,
):
super(FamilyValidator, self).__init__(
plotly_name=pl... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
12c48d5ff16675e2a8f6a2d902504de1ea724719 | 3540272eb4522c637fb293a924a6ad8d7b365718 | /tribune/news/models.py | 33b78f25b5e2b10758918424db9589c053a886ce | [] | no_license | nevooronni/tribune | b0e80a4613758690702fa88eb99f44f4e8e66a30 | 7218d3514277ce408128b4e8c66da5639cf7dec4 | refs/heads/master | 2021-08-14T16:55:46.280863 | 2017-11-16T08:41:18 | 2017-11-16T08:41:18 | 110,561,868 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | from django.db import models#import models class configured to allow us to communicate with the db
import datetime as dt
class Editor(models.Model):#created editor class inherits from model class
first_name = models.CharField(max_length = 30)#charfield is the sql equivalent to varchar a string field for small to l... | [
"nevooronni@gmail.com"
] | nevooronni@gmail.com |
902d047c818eadc130281316b90cfde772634bd0 | 6b1aaded6a6d7ad8133eb93f5570d087b9ecefc0 | /57.py | a778a4be509d89c1f7027528296bead44d2f43f7 | [] | no_license | huangyingw/Leetcode-Python | 53a772e1ecf298c829c0f058faa54c420420b002 | 9513e215d40145a5f2f40095b459693c79c4b560 | refs/heads/master | 2021-07-16T10:10:02.457765 | 2020-07-01T05:35:21 | 2020-07-01T05:35:21 | 192,150,219 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # Definition for an interval.
# class Interval:
# def __init__(self, s=0, e=0):
# self.start = s
# self.end = e
class Solution:
def insert(self, intervals, newInterval):
"""
:type intervals: List[Interval]
:type newInterval: Interval
:rtype: List[Interval]
... | [
"tiant@qualtrics.com"
] | tiant@qualtrics.com |
50d9115c118e9ba2d5ebc6b7d58c98818ecd010c | bd4734d50501e145bc850426c8ed595d1be862fb | /7Kyu - Growth of a Populationdef nb_year-p0- percent- aug- p- count - 0 while-p0-p- p0 - p0 - p0-percent/7Kyu - Growth of a Population.py | 1259b444757fdd602a08df17a598257ae2dcc7d2 | [] | no_license | OrdinaryCoder00/CODE-WARS-PROBLEMS-SOLUTIONS | f61ff9e5268305519ffeed4964589289f4148cfd | 5711114ddcc6a5f22f143d431b2b2e4e4e8ac9fb | refs/heads/master | 2021-10-23T09:09:45.670850 | 2019-03-16T13:24:17 | 2019-03-16T13:24:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | def nb_year(p0, percent, aug, p):
count = 0
while(p0<p):
p0 = p0 + p0*(percent/100) + aug
count = count + 1
return count
| [
"noreply@github.com"
] | OrdinaryCoder00.noreply@github.com |
bfe91353f94b7324769a5908cb44a049673dd6e2 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/287/85098/submittedfiles/testes.py | 890ae53b050f276e8465ffbca31d1de6d83407c7 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | # -*- coding: utf-8 -*-
from minha_bib import*
print(multiplicacao(2,3))
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
57b906c83a2d61619b54bb2afe90bb43616f21ce | 4111ca5a73a22174f189361bef654c3f91c3b7ed | /Lintcode/Ladder_47_BigData/128. Hash Function.py | 6d7607ff24020011e66b6d9c8c4b6774644f2261 | [
"MIT"
] | permissive | ctc316/algorithm-python | 58b541b654509ecf4e9eb8deebfcbdf785699cc4 | ac4580d55e05e93e407c6156c9bb801808027d60 | refs/heads/master | 2020-03-16T06:09:50.130146 | 2019-08-02T02:50:49 | 2019-08-02T02:50:49 | 132,548,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | class Solution:
"""
@param key: A string you should hash
@param HASH_SIZE: An integer
@return: An integer
"""
def hashCode(self, key, HASH_SIZE):
code = 0
for ch in key:
code = (code * 33 + ord(ch)) % HASH_SIZE
return code | [
"mike.tc.chen101@gmail.com"
] | mike.tc.chen101@gmail.com |
3f7c1ecec5f580016a5068bd48f1de2040b2bf6b | 0a801544da5ad2f1969348512f7def8fa9176c7d | /backend/simplicite_23801/urls.py | 25d91cd59bdf8a1ad01544b6a94abcbe42abf6ab | [] | no_license | crowdbotics-apps/simplicite-23801 | 75477b76531c2c53992f74183e9e2e80aefd22e4 | e6a6f569c61449e50988201cf58cc5203d23e039 | refs/heads/master | 2023-02-11T12:27:04.807579 | 2021-01-13T03:01:57 | 2021-01-13T03:01:57 | 329,176,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,668 | py | """simplicite_23801 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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')
Cl... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
c826ef5b94146713cbfb40ea8d2456a72ea50850 | 11137bde91389c04a95df6f6fdaf64f7f49f5f80 | /introduction_MIT/16_2图表会骗人.py | 582608abe22748eee617a7fb4bb7c90df1af46fb | [] | no_license | starschen/learning | cf3c5a76c867567bce73e9cacb2cf0979ba053d9 | 34decb8f9990117a5f40b8db6dba076a7f115671 | refs/heads/master | 2020-04-06T07:02:56.444233 | 2016-08-24T08:11:49 | 2016-08-24T08:11:49 | 39,417,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | #encoding:utf8
#16_2图表会骗人.py
#绘制房价
import pylab
def plotHousing(impression):
'''假设impression是一个字符串,必须是‘flat’, ‘volatile’或者是‘fair’
生成房价随时间变化的图表'''
f=open('midWestHousingPrices.txt','r')
#文件的每一行是年季度价格
#数据来自美国中部区域
labels,prices=([],[])
for line in f:
year,quarter,price=line.split(' '... | [
"stars_chenjiao@163.com"
] | stars_chenjiao@163.com |
1b2a6c3181548e466eacfa3b040cbc883242e73b | 35f1a21affd266e0069bfc5a1c83218847f13802 | /pastie-5073437.py | 9cc5c027ce00562a66e8461c02cfa8768964c92c | [] | no_license | KarenWest/pythonClassProjects | ff1e1116788174a2affaa96bfcb0e97df3ee92da | 5aa496a71d36ffb9892ee6e377bd9f5d0d8e03a0 | refs/heads/master | 2016-09-16T15:20:26.882688 | 2014-02-21T20:07:57 | 2014-02-21T20:07:57 | 17,055,355 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | #balance = 5000
#annualInterestRate = 0.18
#monthlyPaymentRate = 0.02
months = range(1, 13) # 1, 2, ... , 11, 12
owe = balance # It made sense to me to call this total amount oweing
totalPaid = 0
for month in months:
minPay = owe * monthlyPaymentRate # calculate our minimum payment
interest = (owe - minPay) *... | [
"KarenWest15@gmail.com"
] | KarenWest15@gmail.com |
4d909ba4892e6c9c564466ba0ea7fe903b3857ab | 8bc7ba8eb10e30b38f2bcf00971bfe540c9d26b7 | /paxes_cinder/k2aclient/v1/virtualswitch_manager.py | 6d956eb5bdf9ebcdab6aba2f1378e4c6151dbbdc | [
"Apache-2.0"
] | permissive | windskyer/k_cinder | f8f003b2d1f9ca55c423ea0356f35a97b5294f69 | 000ee539ee4842a158071d26ee99d12c7c0a87da | refs/heads/master | 2021-01-10T02:19:51.072078 | 2015-12-08T15:24:33 | 2015-12-08T15:24:33 | 47,629,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,938 | py | #
#
# =================================================================
# =================================================================
"""VirtualSwitch interface."""
from paxes_cinder.k2aclient import base
from paxes_cinder.k2aclient.v1 import k2uom
class VirtualSwitchManager(base.ManagerWithFind):
"""Mana... | [
"leidong@localhost"
] | leidong@localhost |
e463337960661352eec76273356b1323176686ca | 04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29 | /170/Solution.py | 1ece9965f93617191e3d6e484aeefd64c54f0c67 | [] | no_license | zhangruochi/leetcode | 6f739fde222c298bae1c68236d980bd29c33b1c6 | cefa2f08667de4d2973274de3ff29a31a7d25eda | refs/heads/master | 2022-07-16T23:40:20.458105 | 2022-06-02T18:25:35 | 2022-06-02T18:25:35 | 78,989,941 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 2,272 | py | """
Design and implement a TwoSum class. It should support the following operations: add and find.
add - Add the number to an internal data structure.
find - Find if there exists any pair of numbers which sum is equal to the value.
Example 1:
add(1); add(3); add(5);
find(4) -> true
find(7) -> false
Example 2:
add(3... | [
"zrc720@gmail.com"
] | zrc720@gmail.com |
51bacc265849e99d5638fe2aa84fb25204c57781 | a0dda8be5892a390836e19bf04ea1d098e92cf58 | /叶常春视频例题/chap05/5-2-9-生词清单.py | 6c9697103cde9015e7e96499929c29627c18643d | [] | no_license | wmm98/homework1 | d9eb67c7491affd8c7e77458ceadaf0357ea5e6b | cd1f7f78e8dbd03ad72c7a0fdc4a8dc8404f5fe2 | refs/heads/master | 2020-04-14T19:22:21.733111 | 2019-01-08T14:09:58 | 2019-01-08T14:09:58 | 164,055,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | # 例5-2-9 生词清单
new_words = []
for i in range(1, 101):
word = input("输入生词:")
if word == "*":
break # break语句的作用是跳出循环,执行循环后面的语句。
if word not in new_words:
new_words.append(word)
print("生词清单:", new_words) | [
"792545884@qq.com"
] | 792545884@qq.com |
d4e630393d97b23b24b61c540310af9eced66716 | 4d4fcde3efaa334f7aa56beabd2aa26fbcc43650 | /server/src/uds/core/managers/userservice/comms.py | e2b06381d46b8a78ab640c8bf0c609b7fff00dda | [] | no_license | xezpeleta/openuds | a8b11cb34eb0ef7bb2da80f67586a81b2de229ef | 840a7a02bd7c9894e8863a8a50874cdfdbf30fcd | refs/heads/master | 2023-08-21T17:55:48.914631 | 2021-10-06T10:39:06 | 2021-10-06T10:39:06 | 414,489,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,264 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2019-2021 Virtual Cable S.L.U.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright not... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
c886c20cf7de550debdfb0a88d9edcbafb45a992 | 0726db2d56b29f02a884885718deeddbf86df628 | /lienp/visualize.py | af217e55f8ec1524e381eb022bcd47bbb2f01101 | [] | no_license | makora9143/EquivCNP | 515dfd95557d8d3a21d3fc0f295ce885a9deb913 | a78dea12ab672e796c86427823c9f1b2fdd8df8d | refs/heads/master | 2023-03-17T04:34:26.320055 | 2021-03-05T18:02:18 | 2021-03-05T18:02:18 | 254,292,834 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,239 | py | import io
import PIL.Image
import matplotlib.pyplot as plt
import torch
from torchvision.transforms import ToTensor, ToPILImage
from torchvision.utils import make_grid
def mnist_plot_function(target_x, target_y, context_x, context_y):
img = torch.zeros((28, 28, 3))
img[:, :, 2] = torch.ones((28, 28))
i... | [
"makoto.kawano@gmail.com"
] | makoto.kawano@gmail.com |
d019acbd04f6f92c44b1c6b5ef4f6c1d988e6d74 | c50c22c8f814c8d9b697337891904aa0be0edf56 | /shortest_string.py | b26e0a4d78a888e7c2d4a6252bf9b0d4e510728a | [] | no_license | mhiloca/Codewars | a6dc6e8ea5e5c1e97fb4a3d01a059b3120b556b7 | 3155e4b20fbd96c8e7fbe6564014a136d095c079 | refs/heads/master | 2020-07-11T12:41:19.997254 | 2019-11-01T12:44:38 | 2019-11-01T12:44:38 | 204,541,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | """
Simple, given a string of words, return the length of the shortest word(s).
String will never be empty and you do not need to account for different data types.
"""
def find_short(s):
return min(len(x) for x in s) | [
"mhiloca@gmail.com"
] | mhiloca@gmail.com |
c5d4d2f46c24a51bf6824c2c8735e80bc1f67f80 | 3f4464c932403615c1fbbaf82eaec096426b1ef5 | /StartOutPy4/CH6 Files and Exceptions/write_sales.py | ecb7c7a8611babac6e9db4c42a7bbdc92ed31f8e | [] | no_license | arcstarusa/prime | 99af6e3fed275982bf11ada7bf1297294d527e91 | 5f1102aa7b6eaba18f97eb388525d48ab4cac563 | refs/heads/master | 2020-03-22T14:07:08.079963 | 2019-05-09T11:45:21 | 2019-05-09T11:45:21 | 140,154,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | # This program prompts the user for sales amounts
# and writes those amounts to the sales.txt file. 6-8
def main():
# Get the numbers of days.
num_days = int(input('For how many days do ' + 'you have sales? '))
# Open a nuew file named sales.txt.
sales_file = open('sales.txt', 'w')
# Get the amoun... | [
"40938410+edwardigarashi@users.noreply.github.com"
] | 40938410+edwardigarashi@users.noreply.github.com |
ee3ca22e9c0f5e05bbf59b552966f070d8a674d9 | 8613ec7f381a6683ae24b54fb2fb2ac24556ad0b | /20~29/ABC021/honest.py | 9c7f3d43c9ab13670129a435bb52b6b7b42038ab | [] | no_license | Forest-Y/AtCoder | 787aa3c7dc4d999a71661465349428ba60eb2f16 | f97209da3743026920fb4a89fc0e4d42b3d5e277 | refs/heads/master | 2023-08-25T13:31:46.062197 | 2021-10-29T12:54:24 | 2021-10-29T12:54:24 | 301,642,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | n = int(input())
a, b = map(int, input().split())
m = int(input())
x, y = [0] * m, [0] * m
data = [[] for _ in range(n)]
for i in range(m):
x, y = map(int, input().split())
data[x - 1].append(y - 1)
data[y - 1].append(x - 1)
dist = [[-1] * n for i in range(n)]
dist[a - 1][b - 1] = 0 | [
"yuuya15009@gmail.com"
] | yuuya15009@gmail.com |
4bbad83e050e46e0bd882f7147d3faa597ef6614 | 26d6c34df00a229dc85ad7326de6cb5672be7acc | /msgraph-cli-extensions/beta/files_beta/setup.py | 917c1b376b39507335d14d388323f62f011a8a2c | [
"MIT"
] | permissive | BrianTJackett/msgraph-cli | 87f92471f68f85e44872939d876b9ff5f0ae6b2c | 78a4b1c73a23b85c070fed2fbca93758733f620e | refs/heads/main | 2023-06-23T21:31:53.306655 | 2021-07-09T07:58:56 | 2021-07-09T07:58:56 | 386,993,555 | 0 | 0 | NOASSERTION | 2021-07-17T16:56:05 | 2021-07-17T16:56:05 | null | UTF-8 | Python | false | false | 1,858 | py | #!/usr/bin/env python
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
d005e74749c88692012dd32e899d20852ffbc130 | c223e858c9ebf1b734221e4db4b3d594993a5536 | /thespian/system/timing.py | ec5f22afa79083a0f4d2f9c23f08117403194959 | [
"MIT"
] | permissive | jfasenfest/Thespian | 17f9738aff648328a40f94d3225427d82fe27e39 | 5979a2c9791b774fb620253bb62253c95cf7d4b5 | refs/heads/master | 2020-12-26T00:27:09.446001 | 2016-11-28T21:48:20 | 2016-11-28T21:48:20 | 48,067,029 | 0 | 0 | null | 2016-11-21T23:17:52 | 2015-12-15T20:24:12 | Python | UTF-8 | Python | false | false | 6,566 | py | from datetime import datetime, timedelta
###
### Time Management
###
def timePeriodSeconds(basis, other=None):
if isinstance(basis, datetime):
if isinstance(other, datetime):
return timePeriodSeconds(other - basis)
if isinstance(basis, timedelta):
try:
return basis.tot... | [
"kquick@godaddy.com"
] | kquick@godaddy.com |
62604aec9fec8d853af4fd5bdc81a077ae397e7c | 4e567fc53288f53cdcfa37c0f5490a29cf4bc0cd | /projects-inventory/inventory/inventorya.py | dc89e6b234d8d28aaf3a41b5b98a5039f3ac59d3 | [] | no_license | sidarmawan/ansible_training | 3e4bba3bde4557a23c92735314f09328319463c9 | 77d3acb3430143458de07ca2b8257f3a2637f59b | refs/heads/master | 2022-04-08T06:01:31.043044 | 2020-01-16T09:56:41 | 2020-01-16T09:56:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | htttps://materials.example.com/labs/projects-inventory/inventorya.py: Unsupported scheme ‘htttps’.
| [
"student@workstation.lab.example.com"
] | student@workstation.lab.example.com |
65a4c9be5fe8054649cd3ece5dbe367bc18a3e9e | 2dc17d12ff6ea9794177c81aa4f385e4e09a4aa5 | /archive/55JumpGame.py | f503b433be7298c6acd75a571e1e0b2c43dd3322 | [] | no_license | doraemon1293/Leetcode | 924b19f840085a80a9e8c0092d340b69aba7a764 | 48ba21799f63225c104f649c3871444a29ab978a | refs/heads/master | 2022-10-01T16:20:07.588092 | 2022-09-08T02:44:56 | 2022-09-08T02:44:56 | 122,086,222 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 398 | py | # coding=utf-8
'''
Created on 2017�3�7�
@author: Administrator
'''
class Solution(object):
def canJump(self, nums):
"""
:type nums: List[int]
:rtype: bool
"""
mini_true = len(nums) - 1
for i in xrange(len(nums) - 1, -1, -1):
if nums[i] >= (mini_t... | [
"yanhuang1293@gmail.com"
] | yanhuang1293@gmail.com |
db7d00585385b6589b6b11d0e3b16814d349cc17 | a61ebd1507eeaa334aff44800b022ef0a258752a | /Code/CodeChef/remainder.py | 37c511c002d48cc5390d47f937a2ec559c35e257 | [
"MIT"
] | permissive | Jimut123/competitive_programming | 14ce0ab65414e6086763519f95487cddc91205a9 | b4cdebaceee719c1a256921829ebafda11c515f5 | refs/heads/master | 2023-03-05T15:42:57.194176 | 2022-04-08T08:53:26 | 2022-04-08T08:53:26 | 156,541,142 | 1 | 0 | null | 2019-05-29T17:10:28 | 2018-11-07T12:09:55 | C++ | UTF-8 | Python | false | false | 152 | py | #jimutbahanpal@yahoo.com
t = int(input())
l = []
for i in range(t):
m,n = map(int,input().split())
l.append(m%n)
for item in l:
print(item)
| [
"jimutbahanpal@yahoo.com"
] | jimutbahanpal@yahoo.com |
aa9c2bf1b305cc6403a880948c9ce34f01af5268 | 2d19317ab9af09be9e6c8f0a25d4a43d4632b680 | /first_project/urls.py | 44eee9ee4a82b0a41d31cece1c0325b3b2218316 | [] | no_license | rudiq4/first_project | 73837d297b21ccd7c706fc08373473e9e4cd8b29 | ba0e987f863f599da9700c355875af76158b76f0 | refs/heads/master | 2021-01-25T13:41:56.102967 | 2018-03-27T14:15:26 | 2018-03-27T14:15:26 | 123,607,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | """first_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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')
Cl... | [
"rudikvovan@gmail.com"
] | rudikvovan@gmail.com |
6093d2129fcc9b86264e32f2199313f4ee2360fc | bdf86d69efc1c5b21950c316ddd078ad8a2f2ec0 | /venv/Lib/site-packages/twisted/web/_http2.py | 1a425a7729ffd88e8e0c2c4b4f98294cbdc6f975 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | DuaNoDo/PythonProject | 543e153553c58e7174031b910fd6451399afcc81 | 2c5c8aa89dda4dec2ff4ca7171189788bf8b5f2c | refs/heads/master | 2020-05-07T22:22:29.878944 | 2019-06-14T07:44:35 | 2019-06-14T07:44:35 | 180,941,166 | 1 | 1 | null | 2019-06-04T06:27:29 | 2019-04-12T06:05:42 | Python | UTF-8 | Python | false | false | 45,541 | py | # -*- test-case-name: twisted.web.test.test_http2 -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
HTTP2 Implementation
This is the basic server-side protocol implementation used by the Twisted
Web server for HTTP2. This functionality is intended to be combined with the
HTTP/1.1 and HT... | [
"teadone@naver.com"
] | teadone@naver.com |
8d4588530f69c619168a4cc1e6f9fb07ba1e6326 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_RelativeDifference/trend_Lag1Trend/cycle_12/ar_12/test_artificial_128_RelativeDifference_Lag1Trend_12_12_20.py | b92931e266c853cfe294b5ace5bc7d11ca7edc8c | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 280 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "Lag1Trend", cycle_length = 12, transform = "RelativeDifference", sigma = 0.0, exog_count = 20, ar_order = 12); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
89474e153defaaa9938f24de4429e92defcd0542 | d723b9c2dcfc9e3366928fd0ea18ee5ee19c2b3c | /backend/apps/detections/upload_sets.py | 140c2d9bcfbee0781d15cc18a2aab00c879d9188 | [] | no_license | skarzi/yb_hackathon_2019 | ff8266e89ae6fa74d57c61e4117d6fc176dba825 | 83c3d96795f6b14f97683ad5c998579adb3faaf4 | refs/heads/master | 2020-09-11T01:34:55.206979 | 2020-07-19T07:50:16 | 2020-07-19T07:50:16 | 221,895,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from flask import current_app
from flask_uploads import (
IMAGES,
UploadSet,
configure_uploads,
)
detections = UploadSet(name='detections', extensions=IMAGES)
configure_uploads(current_app, (detections,))
| [
"skarzynski_lukasz@protonmail.com"
] | skarzynski_lukasz@protonmail.com |
71402662a43efd9f3ece9bfc6b5fb824add27987 | c676bf5e77ba43639faa6f17646245f9d55d8687 | /tests/ut/python/ops/test_tuple_slice.py | ea5112995c06203210d7c6ca569e2949187c6f26 | [
"Apache-2.0",
"BSD-3-Clause-Open-MPI",
"MPL-2.0-no-copyleft-exception",
"LGPL-2.1-only",
"BSD-3-Clause",
"MPL-2.0",
"MPL-1.0",
"Libpng",
"AGPL-3.0-only",
"MPL-1.1",
"LicenseRef-scancode-proprietary-license",
"MIT",
"IJG",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"Z... | permissive | zhengnengjin/mindspore | 1e2644e311f54a8bd17010180198a46499e9c88f | 544b859bb5f46611882749088b44c5aebae0fba1 | refs/heads/master | 2022-05-13T05:34:21.658335 | 2020-04-28T06:39:53 | 2020-04-28T06:39:53 | 259,522,589 | 2 | 0 | Apache-2.0 | 2020-04-28T03:35:33 | 2020-04-28T03:35:33 | null | UTF-8 | Python | false | false | 4,665 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"leon.wanghui@huawei.com"
] | leon.wanghui@huawei.com |
4b4a097a95f1da6da6dfa3927d7c83d66941ecdf | d8f0761acc94f9f1c0365e5a1716c9e17c6e4e16 | /scrapers/bs4_selectors/selector.py | cabcd3ea0bed6889945755aac7fe5cf0cdf9cd8c | [] | no_license | lesleyfon/one-time-scrapers | 75ca851107d59b4f2b7cd816b2ae46ecd11d6bc0 | 6ee5443497c9e05924abf5704c16112beb740064 | refs/heads/master | 2023-05-02T12:58:21.693133 | 2021-05-21T13:09:57 | 2021-05-21T13:09:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | ##############################
#
# Beautiful Soup cheat sheet
#
# by
#
# Code Monkey King
#
##############################
# Step 1: import packages
import requests
from bs4 import BeautifulSoup
# Step 2: define target URL
url = 'https://podsearch.com/listing/car-talk.html'
# Step 3: make HTTP request... | [
"freesoft.for.people@gmail.com"
] | freesoft.for.people@gmail.com |
3f710f824a9ba3fc05f946ea786168e280edb9f3 | 05040f0dce123be0d88e760808fdf6b1bbf1ac43 | /backend/manage.py | 38f19f1341ecef8ebd95be44a20975de9823d12e | [] | no_license | crowdbotics-apps/mobile-8-dec-dev-16453 | 8026421c163ab200a0106faaf3567faf469b348f | 3cc2feeba0d1a753a98db7167491e5a28d7ae6fe | refs/heads/master | 2023-01-23T10:02:48.817260 | 2020-12-08T15:42:47 | 2020-12-08T15:42:47 | 319,665,608 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 642 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mobile_8_dec_dev_16453.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ec63ed048f6211cd69e8bc2bc40d3e6f418eaf0d | 336cd9225281befde93e01858ede15f70d3e5b47 | /params/cartpole_obs/shm_default copy.py | 2ab5c02726c7c6586d11fff9f5736ea8bffe8c5f | [] | no_license | GuancongLuo/mpc-mpnet-py | 7d6ba9f0c954185a724421091b1b098ec6d148e6 | 3d8d8ef743fd467fd2ffe177021edc6e852fd094 | refs/heads/master | 2023-02-06T03:49:06.072105 | 2020-12-07T11:01:08 | 2020-12-07T11:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | import numpy as np
def get_params():
params = {
'solver_type': "cem",
'n_problem': 1,
'n_sample': 32,
'n_elite': 8,
'n_t': 1,
'max_it': 5,
'converge_r': 0.1,
'dt': 2e-3,
'mu_u': [0],
'sigma_u': [400],
'mu_t': 0.5,
's... | [
"you@example.com"
] | you@example.com |
5d8565f123ea80979f9cd6a4454521fd2ddff15c | b0de612c2f7d03399c0d02c5aaf858a72c9ad818 | /armi/nuclearDataIO/cccc/tests/test_rzflux.py | 93771c4e863ba214363f58516bdda65027c1eb5c | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | wangcj05/armi | 2007e7abf4b422caca0157fc4405b7f45fc6c118 | 8919afdfce75451b291e45ca1bc2e03c044c2090 | refs/heads/master | 2022-12-22T00:05:47.561722 | 2022-12-13T16:46:57 | 2022-12-13T16:46:57 | 277,868,987 | 0 | 0 | Apache-2.0 | 2020-07-07T16:32:40 | 2020-07-07T16:32:39 | null | UTF-8 | Python | false | false | 2,673 | py | # Copyright 2019 TerraPower, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | [
"noreply@github.com"
] | wangcj05.noreply@github.com |
70dd6b6891e4793418f9b327dcf8ddb1de563ef7 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/clouds_20200703183549.py | deecd69a4f52fe13e3dd7c9a278d545d91b636a2 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | def jumpingClouds(c):
i = 0
jumps = 0
while i < len(c)-2:
if c[i] == 0 and c[i+2] == 0:
print('here')
print('c---->',c[i],'i-->',i)
jumps +=1
i +=2
elif c[i] == 0 and c[i+1] == 0:
print('here2')
print('c---->',c[i],'i-... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
2dda85a9ba04d01eb6f79efbf26e1aa3f5fe73a8 | b23f9b54f622032e71a80a497ca2d7dbd48469ad | /setup.py | d7560750ca56a0500f4ae92ea7dba81932711c29 | [] | no_license | h4ck3rm1k3/pycparserext | 15cf0a02429f3fd6bad977cd612e74ca7b20b891 | 489fd9c4804e7b3f17760b0800cf81a930a2ec7e | refs/heads/master | 2021-01-21T08:32:39.114178 | 2016-04-03T05:22:38 | 2016-04-03T05:22:38 | 55,293,358 | 0 | 0 | null | 2016-04-02T12:29:40 | 2016-04-02T12:29:40 | null | UTF-8 | Python | false | false | 893 | py | #!/usr/bin/env python
# -*- coding: latin1 -*-
from setuptools import setup
setup(name="pycparserext",
version="2016.1",
description="Extensions for pycparser",
long_description=open("README.rst", "r").read(),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audien... | [
"inform@tiker.net"
] | inform@tiker.net |
4bbf1ff6013d7a48ce63d817454fb8940a26487f | 7d23fff61314842d6d7d8ca106382d163a04f139 | /watch/models.py | 3a423333ca2230cec766903c543e4a2e444032de | [
"MIT"
] | permissive | GeGe-K/Neighbourhood | 8b71bc789a72d34769436a5a912ffde87b3c014b | 366667dff147141558732e5c6f5004fe4cff221e | refs/heads/master | 2022-12-09T18:26:27.536704 | 2019-01-16T14:13:37 | 2019-01-16T14:13:37 | 165,236,886 | 0 | 0 | MIT | 2022-12-08T01:32:31 | 2019-01-11T12:00:41 | Python | UTF-8 | Python | false | false | 3,462 | py | from django.db import models
from django.contrib.auth.models import User
import datetime as dt
# Create your models here.
class Location(models.Model):
name = models.CharField(max_length=40)
def __str__(self):
return self.name
class Neighbourhood(models.Model):
'''
Neighbourhood cl... | [
"gloriagivondo@gmail.com"
] | gloriagivondo@gmail.com |
3ef2026eb83017aa5c24665674b8d15767fb2008 | 51d8f003828d6ee6e6611f0e133b1e35cf400601 | /ipaxi/ixbr_api/core/tests/use_cases_tests/test_service_use_case.py | 830992ce3f08fe190f0264ea26fd19099f6e8a39 | [
"Apache-2.0"
] | permissive | tatubola/xpto | 23b5f7a42c13c7d39eb321e52b9b4b2d1ef76c4c | 6ed8cec23b06bccb1edf57e6b67af017f9a162d3 | refs/heads/master | 2020-04-02T11:05:24.560009 | 2018-10-23T17:41:10 | 2018-10-23T17:41:10 | 154,370,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | from unittest.mock import patch
from django.core.exceptions import ValidationError
from django.test import TestCase
from model_mommy import mommy
from ...models import ContactsMap, MLPAv4, Tag
from ...use_cases.service_use_case import delete_service_use_case
from ..login import DefaultLogin
class ServiceUseCaseTest... | [
"dmoniz@nic.br"
] | dmoniz@nic.br |
dca84f844680918ece78d15a17c804d7d4f4dc67 | b7683c108e68ee2d28573edf55923eb34cc2f5ee | /3_Image_Processing/9_Contours/1_Intro/1_Contours_on_binary.py | 9be454d9d82d0531c5524d093ed11ff8b9fa6b0f | [] | no_license | aCuissot/openVC_win_py_tutorial | cc42ab1a1fb6eaefe5a91c7e1bb1926a776b0e01 | 7186b629747cb16f2bf42a03d2339d3dc3ea77bd | refs/heads/master | 2020-05-18T12:17:04.619047 | 2019-07-10T13:45:00 | 2019-07-10T13:45:00 | 184,403,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | import numpy as np
import cv2 as cv
im = cv.imread('../../../Data/in/a.jpg')
imgray = cv.cvtColor(im, cv.COLOR_BGR2GRAY)
_, thresh = cv.threshold(imgray, 127, 255, 0)
contours, hierarchy = cv.findContours(thresh, cv.RETR_TREE, cv.CHAIN_APPROX_SIMPLE)
cv.drawContours(im, contours, -1, (0, 255, 0), 3)
"""
pour ne dessine... | [
"harrypotter9752@gmail.com"
] | harrypotter9752@gmail.com |
5656efc34e8254aae61d10bea0f54846789da243 | 338062cc2bb422f1364fd18ad5e721f6f713907a | /30. Библиотеки Python. Встроенные модули/Классная работа/Дни рождения друзей.py | 901cba0c8631ab75c84e2788ce36d59850346786 | [] | no_license | rady1337/FirstYandexLyceumCourse | f3421d5eac7e7fbea4f5e266ebeb6479b89941cf | 0d27e452eda046ddd487d6471eeb7d9eb475bd39 | refs/heads/master | 2022-06-17T03:07:51.017888 | 2020-05-12T22:17:34 | 2020-05-12T22:17:34 | 263,459,364 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 119 | py | import datetime as dtdin = dt.datetime.now()dn = dt.timedelta(days=int(input()))print((din + dn).day, (din + dn).month) | [
"noreply@github.com"
] | rady1337.noreply@github.com |
3da46091f694239b44ce3c59e315748ab9fcae39 | 09efb7c148e82c22ce6cc7a17b5140aa03aa6e55 | /env/lib/python3.6/site-packages/pandas/tests/groupby/test_filters.py | 2ce04fc77408301e12a3a44d30366dafee4d3aad | [
"MIT"
] | permissive | harryturr/harryturr_garmin_dashboard | 53071a23b267116e1945ae93d36e2a978c411261 | 734e04f8257f9f84f2553efeb7e73920e35aadc9 | refs/heads/master | 2023-01-19T22:10:57.374029 | 2020-01-29T10:47:56 | 2020-01-29T10:47:56 | 235,609,069 | 4 | 0 | MIT | 2023-01-05T05:51:27 | 2020-01-22T16:00:13 | Python | UTF-8 | Python | false | false | 20,388 | py | import numpy as np
import pytest
import pandas as pd
from pandas import DataFrame, Series, Timestamp
import pandas.util.testing as tm
def test_filter_series():
s = pd.Series([1, 3, 20, 5, 22, 24, 7])
expected_odd = pd.Series([1, 3, 5, 7], index=[0, 1, 3, 6])
expected_even = pd.Series([20, 22, 24], index=... | [
"griffin.harrisonn@gmail.com"
] | griffin.harrisonn@gmail.com |
a2c28551321a031321b269385b8a40dee9d39c56 | f4434c85e3814b6347f8f8099c081ed4af5678a5 | /sdk/tables/azure-data-tables/azure/data/tables/_generated/aio/operations/_service_operations.py | 4ef1391d9b929f9750111cbb76a4882ccc33b059 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | yunhaoling/azure-sdk-for-python | 5da12a174a37672ac6ed8e3c1f863cb77010a506 | c4eb0ca1aadb76ad892114230473034830116362 | refs/heads/master | 2022-06-11T01:17:39.636461 | 2020-12-08T17:42:08 | 2020-12-08T17:42:08 | 177,675,796 | 1 | 0 | MIT | 2020-03-31T20:35:17 | 2019-03-25T22:43:40 | Python | UTF-8 | Python | false | false | 13,225 | 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"
] | yunhaoling.noreply@github.com |
56c2dc305f24ba5731f349d4284d1ede0e056579 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_1/ebs-default-kms-key-id_modify.py | 9590bdb3b63ab3aa9cd39ae2bf409a3fec3eef4f | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/modify-ebs-default-kms-key-id.html
if __name... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
e30eac1ded6ffcfd4458f5a272fdbbeb01c07f3a | f3a7eae3031bb9afe75116a9b86278490ac4a7e6 | /text/symbols.py | c329f2df647246d4d8e564a02e78e26b68ac2691 | [
"BSD-3-Clause",
"MIT"
] | permissive | LOCS-AI/Multilanguage_Tacotron_2 | ea34c4fb41e8112537529945b5a31cf2e78d0610 | 82c788fb26d93c6735c54c2fe4ae7bcbd0eec69f | refs/heads/master | 2022-12-31T01:39:57.432804 | 2020-10-08T00:04:58 | 2020-10-08T00:04:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | """ from https://github.com/keithito/tacotron """
'''
Defines the set of symbols used in text input to the model.
The default is a set of ASCII characters that works well for English or text that has been run through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details. '''
fr... | [
"thien@locslab.com"
] | thien@locslab.com |
03608d220d4d293c64e7d19d2c5178953574c174 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/Ablation4_ch016_ep003_7/W_w_M_to_C_pyr/pyr_6s/L7/step10_a.py | 6c005ce2d39cf14a6d40bc0a6f470140b0365a40 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942,122 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
1ac1bf0d486a318d12379426563fee9a8f6f22d6 | fe85138c949c6198184c591780831fd2e183a24a | /Address Book.py | 251c32fc6f328cd1f9352bc08e897b68bbe90efc | [] | no_license | valeri1383/Personal-Python-Projects | e98f6b7171298def019db4e28f6d176a709615cc | b7db81cb44668f549a7fd15de84c0cb23654ac3d | refs/heads/main | 2023-05-26T09:02:24.260700 | 2023-05-22T14:40:28 | 2023-05-22T14:40:28 | 337,518,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | from tkinter import *
root = Tk()
root.geometry('400x400')
root.configure(bg='cyan')
root.resizable(1, 1)
root.title('Address Book')
contact_list = [
['John Smith', '07567374343'],
['Terry Adams', '07569984343'],
['Allen Gibson', '07564474743'],
['Grant Foster', '07567396843'],
['Hall... | [
"noreply@github.com"
] | valeri1383.noreply@github.com |
df8348437cb3f52a36143204a8098092a7baae05 | cdd2003610c4c451dc38781d5ece2cf4e8138c27 | /src/convert_rviz.py | cd66d10b1a8cd9aecf17d38b1ef969533384d9a9 | [] | no_license | DLu/rwt_config_generator | 7efb29d773dddae0868be14606ba91893fae806c | 873b1aa0d4c94cdba3b15ef85d46f70c26f6dc86 | refs/heads/master | 2020-12-24T16:24:02.304617 | 2016-03-03T19:04:52 | 2016-03-03T19:04:52 | 39,230,985 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | #!/usr/bin/python
from __future__ import print_function
import sys
import yaml
from rwt_config_generator import *
import argparse
import rospy
def warning(*objs):
print("WARNING: ", *objs, file=sys.stderr)
parser = argparse.ArgumentParser()
parser.add_argument('rviz_config')
parser.add_argument('output_html_f... | [
"davidvlu@gmail.com"
] | davidvlu@gmail.com |
3c36c0d10742f9c25af173e2077d9c835a3e3ff8 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/celery/2015/12/graph.py | d441a54ca1edf2545aaaa16e0d18be8ec8d7318d | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 6,432 | py | # -*- coding: utf-8 -*-
"""
The :program:`celery graph` command.
.. program:: celery graph
"""
from __future__ import absolute_import, unicode_literals
from operator import itemgetter
from celery.datastructures import DependencyGraph, GraphFormatter
from celery.five import items
from .base import Command
__all__... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
4eb09dfed6ad25c8eddd6132f2dc73dff3fcc6a3 | 1933ef2c5b3ec58feeb50dd092d670f58a3ec2bb | /kospeech/models/modules.py | 352b6a0bd0bf59f8861fa3d7e573569560a2ad30 | [
"Apache-2.0"
] | permissive | hephaex/KoSpeech | 68275af311ae5c53548f7c7bc27fe9dd5b1e441b | bf3fa0dc6d50089164fd0b47e02620062718d407 | refs/heads/master | 2022-12-02T02:00:01.164265 | 2020-08-05T08:47:55 | 2020-08-05T08:47:55 | 285,344,731 | 0 | 0 | Apache-2.0 | 2020-08-12T14:53:11 | 2020-08-05T16:22:59 | null | UTF-8 | Python | false | false | 1,579 | py | import torch
import torch.nn as nn
import torch.nn.init as init
from torch import Tensor
class Linear(nn.Module):
"""
Wrapper class of torch.nn.Linear
Weight initialize by xavier initialization and bias initialize to zeros.
"""
def __init__(self, in_features: int, out_features: int, bias: bool = T... | [
"sh951011@gmail.com"
] | sh951011@gmail.com |
525051e2943540875900fe0b6db434ee527c30ba | 80d50ea48e10674b1b7d3f583a1c4b7d0b01200f | /examples/v1/usage-metering/GetUsageNetworkFlows_1239422069.py | 60afb66b6f88d5918aba22ca4b3b72c0ab5be76d | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"MPL-2.0"
] | permissive | DataDog/datadog-api-client-python | 3e01fa630278ad0b5c7005f08b7f61d07aa87345 | 392de360e7de659ee25e4a6753706820ca7c6a92 | refs/heads/master | 2023-09-01T20:32:37.718187 | 2023-09-01T14:42:04 | 2023-09-01T14:42:04 | 193,793,657 | 82 | 36 | Apache-2.0 | 2023-09-14T18:22:39 | 2019-06-25T22:52:04 | Python | UTF-8 | Python | false | false | 599 | py | """
Get hourly usage for Network Flows returns "OK" response
"""
from datetime import datetime
from dateutil.relativedelta import relativedelta
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v1.api.usage_metering_api import UsageMeteringApi
configuration = Configuration()
with ApiClie... | [
"noreply@github.com"
] | DataDog.noreply@github.com |
16ffe2ce0b7d1d05344cc7814fd04b63e4a84196 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_4/hrbmax002/piglatin.py | 32eb09647dd7f6c75cec56edc0b28a10e8811327 | [] | 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 | 998 | py | def toPigLatin(s):
if s[len(s)-1] != " ":
s = s + " "
answer = ""
while len(s)>0:
temp = s[0:s.index(" ")]
s = s[s.index(" ")+1:]
if temp[0].upper() in ["A","E","I","O","U"]:
temp = temp + "way "
else:
temp = temp + "a"
w... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
eb085418aab782c970d7166273fd9b9262c46f5b | c858d9511cdb6a6ca723cd2dd05827d281fa764d | /MFTU/lesson 7/Test work/test_F.py | b6885f38ec053864866d442146f62a2ba115c3a5 | [] | no_license | DontTouchMyMind/education | 0c904aa929cb5349d7af7e06d9b1bbaab972ef95 | 32a53eb4086b730cc116e633f68cf01f3d4ec1d1 | refs/heads/master | 2021-03-12T11:15:02.479779 | 2020-09-17T08:19:50 | 2020-09-17T08:19:50 | 246,616,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Необходимо найти НОД двух чисел, используя алгоритм Евклида.
#
# Формат входных данных
# На вход подаются два натуральных числа, по числу в новой строке.
#
# Формат выходных данных
# Одно число - НОД входных чисел.
def gcd(a, b):
if a == b:
return a
elif a > b:
return gcd(a - b, b)
e... | [
"tobigface@gmail.com"
] | tobigface@gmail.com |
51705550782e5a0f8c41b524d7d0cf60b7edc565 | fcbf3ddca275606830d455a69df73e20ced6546a | /doc/conf.py | 9ca4ca664b3f765a31dd264254f24c060e447023 | [
"Apache-2.0"
] | permissive | KarchinLab/probabilistic2020 | 5f56e30e0c8484ac524081dd022c0159f24508ce | 8e0b1b9578bd8189b1690dd2f17476c3305b98dc | refs/heads/master | 2023-07-26T12:06:28.647117 | 2019-07-28T12:37:50 | 2019-07-28T12:37:50 | 57,408,263 | 8 | 7 | Apache-2.0 | 2023-07-06T21:02:44 | 2016-04-29T19:32:49 | Python | UTF-8 | Python | false | false | 8,727 | py | # -*- coding: utf-8 -*-
#
# 20/20 Permutation Test documentation build configuration file, created by
# sphinx-quickstart on Mon Jul 28 13:53:42 2014.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerate... | [
"collintokheim@gmail.com"
] | collintokheim@gmail.com |
6450073c33cb50db18dc4b145b95d18e75ee47b0 | e2d22f12f8e540a80d31de9debe775d35c3c5c22 | /blousebrothers/confs/migrations/0037_auto_20170117_1535.py | 6841343b2a40c2fbb431ff15ae9ddfd4cd5a80ee | [
"MIT"
] | permissive | sladinji/blousebrothers | 360c3b78ec43379977dbf470e5721e6a695b2354 | 461de3ba011c0aaed3f0014136c4497b6890d086 | refs/heads/master | 2022-12-20T10:24:07.631454 | 2019-06-13T13:17:35 | 2019-06-13T13:17:35 | 66,867,705 | 1 | 0 | NOASSERTION | 2022-12-19T18:15:44 | 2016-08-29T18:04:33 | Python | UTF-8 | Python | false | false | 813 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2017-01-17 15:35
from __future__ import unicode_literals
from decimal import Decimal
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('confs', '0036_auto_20170110_1100'),
]
operations = [
... | [
"julien.almarcha@gmail.com"
] | julien.almarcha@gmail.com |
c8e2155ef68a3eba87ea0e8c4cab9b582c3f5355 | 8bc3e7bd0fa1714b3d0466e940ed801cf9a4c5d4 | /pyvisual/node/io/system_var.py | 2e6dfeaf5a70761d5951b4abff26e7ec2a04eaae | [] | no_license | m0r13/pyvisual | d99b3512fefaf4a2164362a0b7aabd1df9ecee03 | f6b3e2217e647b80f1379716c00e8adb53975bca | refs/heads/master | 2022-02-21T22:24:22.467475 | 2019-06-17T20:38:48 | 2019-06-17T20:38:48 | 140,211,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,802 | py | import json
import os
import time
from collections import defaultdict, OrderedDict
import imgui
from pyvisual.node import dtype, value
from pyvisual.node.base import Node
from pyvisual.editor import widget
SERIALIZATION_WRITE_INTERVAL = 5.0
SERIALIZATION_FILE = "system_vars.json"
# if you add another variable with a... | [
"moritz.hilscher@gmail.com"
] | moritz.hilscher@gmail.com |
1465bbad98fe6c51d22d31a82efaa6fba3362f45 | e8a285cb1dcdae6f1b6d8506b8d25a1d031d6cd7 | /cpptools/tests/test_write_pythia_hepmc3.py | d4e73a3185bc0137d2756b3b3f25a6b491647b97 | [] | no_license | matplo/heppy | f30558e4ff3c1720c63b4d82f739b3f8acadc53e | 88c931e3e7dcf57a3a476ef0a92f0204491cafb9 | refs/heads/master | 2023-07-07T18:17:04.486149 | 2023-06-29T20:45:32 | 2023-06-29T20:45:32 | 201,352,733 | 5 | 8 | null | 2023-07-04T21:57:31 | 2019-08-08T23:33:39 | C | UTF-8 | Python | false | false | 782 | py | #!/usr/bin/env python
import pythia8
import pythiahepmc3
def create_and_init_pythia(config_strings=[]):
pythia = pythia8.Pythia()
for s in config_strings:
pythia.readString(s)
for extra_s in ["Next:numberShowEvent = 0", "Next:numberShowInfo = 0", "Next:numberShowProcess = 0", "Next:numberCount = 0"]:
pythia.re... | [
"ploskon@gmail.com"
] | ploskon@gmail.com |
b1dc9e505c919a677e4ad516ba5eb32f5820c244 | 610dedfb6e21d297e8cdbcba599a4e564bd785cb | /EstruturaDeRepeticao/estruturaderepeticao-09.py | 8b4c1153a41989cbf2047c8067840d6a96441880 | [] | no_license | zumbipy/PythonExercicios | f7b2ddf2376b9ecb2aedc77531e3571dc746a12b | 7a17b78cf927a2889b93238542e90e00810c43e6 | refs/heads/master | 2021-01-23T10:43:47.997462 | 2018-07-22T14:58:44 | 2018-07-22T14:58:44 | 93,086,120 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # Telegram: @ZumbiPy __ _ ___
# /_ / __ ____ _ / / (_) _ \__ __
# / /_/ // / ' \/ _ \/ / ___/ // /
# /___/\_,_/_/_/_/_.__/_/_/ \_, /
# E-mail: zumbipy@gmail.com /___/
"""
09 - Faça um programa que imprima na tela apenas os números
ímpares entre 1 e 50.
"""
# ===============================================... | [
"zumbipy@gmail.com"
] | zumbipy@gmail.com |
dc6940ccab54fe26f6cdd8418152ac93e3a870f6 | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/tpu/feature_column_v2.py | 1a5bddb173a599ee196c98ef4cd8bf3483151377 | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,102 | py | # Copyright 2018 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... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
66f6e4500621285bbbbaf51d4c572120cb3598e7 | 3b1229c458aa232bfcf11cd6da5f1275e9bb3a8f | /python/Python基础/截图和代码/if、while、for/PaxHeader/01-if比较运算符.py | 147895a71cc09ac233a82e6fae85d44e6ae21569 | [] | no_license | sunjianbo/learning | 4fee3ddc5e3d4040a49f2ef3e6f239fd6a67b393 | 384cb4e73cc67e390ee2f4be0da9fe0319d93644 | refs/heads/master | 2021-02-17T16:32:22.557614 | 2020-03-09T05:29:51 | 2020-03-09T05:29:51 | 245,111,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 105 | py | 78 path=Python基础/截图和代码/if、while、for/01-if比较运算符.py
27 mtime=1491131771.711676
| [
"sunjianbo"
] | sunjianbo |
c5b435586383bec7e14c2017d6182ce5f217272e | 449147399b91db8ca3192e9960834a73967cd01d | /pandas-ml-utils/pandas_ml_utils/ml/data/reconstruction/__init__.py | 52b22fdb3e0d667496a779c3c98ac6e25c9b2549 | [
"MIT"
] | permissive | brunoreisportela/pandas-ml-quant | 04b81568b900d226bb7028ccbe81ea97d0c00587 | a80b06aab28f38c3c6cb298e96f497e4fcdb95a5 | refs/heads/master | 2022-12-18T23:51:38.297857 | 2020-09-08T06:14:16 | 2020-09-08T06:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49 | py | from .prediction import assemble_prediction_frame | [
"ch9.ki7@gmail.com"
] | ch9.ki7@gmail.com |
e3bb0a08160c3b5afbb1561fc67f5e5b2b320380 | 43a676d507c9f3e007d46b9335c82f77e35350f6 | /config/wsgi.py | df17ccb416ed061cc0afd7cf24b277bc198a94b4 | [] | no_license | Zoxon470/nekidaem-blog | 79136fd9f4747afd01beb02bfd9d0c524493a6f6 | c2539963d149841397e9eb2d4153a73abea15da2 | refs/heads/master | 2022-05-02T20:14:05.805564 | 2019-06-27T21:50:57 | 2019-06-27T21:50:57 | 194,165,211 | 0 | 2 | null | 2022-04-22T21:53:15 | 2019-06-27T21:25:07 | JavaScript | UTF-8 | Python | false | false | 340 | py | import os
import sys
from django.core.wsgi import get_wsgi_application
app_path = os.path.abspath(os.path.join(
os.path.dirname(os.path.abspath(__file__)), os.pardir))
sys.path.append(os.path.join(app_path, 'nekidaem-blog'))
os.environ.setdefault("DJANGO_SETTINGS_MODULE", 'config.settings.dev')
application = get... | [
"zoxon470@gmail.com"
] | zoxon470@gmail.com |
8001d2f7a9d565237552aea7cbf4fd1650d437b9 | 912196d86c93c29b3b031792e3cf886420a0fbde | /core/rnn/rnn_minibatch_test.py | c8e233c8e50eb5ebf1c20a8a41d63c0c12daa8c2 | [
"Apache-2.0"
] | permissive | brian-lau/guac | fce363745c9a778733f1df765fd9c3b832fdeef4 | c3db6cdbe56a1cb04486650ea5473287ba159ad4 | refs/heads/master | 2020-05-29T11:55:34.494957 | 2015-10-28T02:17:34 | 2015-10-28T02:17:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,065 | py | # adapted from https://github.com/lisa-lab/DeepLearningTutorials
from collections import OrderedDict
import copy
import os
import re
import random
import timeit
from hyperopt import STATUS_OK
import numpy as np
import pandas as pd
from scipy import stats
import theano
from theano import tensor as T
import common
... | [
"dcard@andrew.cmu.edu"
] | dcard@andrew.cmu.edu |
b2cd196a4e77d83e542be25199838e0b8ec80ff9 | ad357cfbec64afb8f4cc4043b212996768f9755c | /api/assessment/automate/formatters.py | dac02f8f9749219cec476cf1e0392f3c9036f96a | [
"MIT"
] | permissive | uktrade/market-access-api | 6b4680e6455eb5c25480ccd3e3d9445654269f36 | 4da26d1be53843d22411577409d9489010bdda09 | refs/heads/master | 2023-08-30T14:47:10.373148 | 2023-08-29T13:58:08 | 2023-08-29T13:58:08 | 131,856,014 | 2 | 3 | MIT | 2023-09-14T08:04:42 | 2018-05-02T13:38:37 | Python | UTF-8 | Python | false | false | 2,065 | py | def rca(import_value, export_value):
if import_value is None or export_value is None:
return "NA"
elif import_value > 0 and export_value > 0:
return "Specialised"
elif import_value < 0 and export_value < 0:
return "Unspecialised"
return "Inconclusive"
def rca_diff(import_value,... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
e706179c11effcfa8f133d63d2655724fca4d1e9 | 0005e05b9d8b8ad0d3c3c0539b2ded9db6e9f1dd | /codechef_client/models/tag.py | 4cdd6e64295823ef02e369ae6ce1a056970ea646 | [] | no_license | termicoder/codechef-client-lib | a3e3de2b300355c5daa5ed3fad03a9859af13d86 | 74d6b21787c75a987e3451751f5554e4cc6cf469 | refs/heads/master | 2020-03-27T17:58:45.298121 | 2018-09-30T18:03:14 | 2018-09-30T18:03:14 | 146,889,644 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,094 | py | # coding: utf-8
"""
CodeChef API
CodeChef API to support different applications. # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class Tag(object):
"""NOTE: This class is auto... | [
"diveshuttamchandani@gmail.com"
] | diveshuttamchandani@gmail.com |
0ee27c2b6c2029409b39052286ba40d81a836616 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/SjShHBJJMM/YW_HBJJMM_SHSJ_067.py | 4cb90cd9223c79893514c907a5e29a58cc20a03f | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from log import *
sys.path.append("/home/yhl2/workspace/xtp_test/MoneyFund/moneyfundservice")
... | [
"418033945@qq.com"
] | 418033945@qq.com |
3e0492db360ce01a76f540ff3bf14d2133ae8153 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_bogies.py | e575bb083362fdfd4e25d0bf21f424dc5070f88d | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
from xai.brain.wordbase.nouns._bogy import _BOGY
#calss header
class _BOGIES(_BOGY, ):
def __init__(self,):
_BOGY.__init__(self)
self.name = "BOGIES"
self.specie = 'nouns'
self.basic = "bogy"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
dffede7cbbfa98929853b8241f6a1e945007f560 | e5fb2d912415c302221604126afa7cbbb0a039c0 | /keras_gym/policies/test_special.py | d19afe8e363fc4399127c8f76a179ab42414bef4 | [
"MIT"
] | permissive | KristianHolsheimer/keras-gym | fc034025a1180b1124fe1a25886b54088d2f3552 | 0296ddcc8685e1ce732c3173caaa0fd25af9ef58 | refs/heads/master | 2021-06-28T21:57:50.122753 | 2020-09-30T04:29:15 | 2020-09-30T04:29:15 | 174,637,157 | 17 | 5 | MIT | 2019-08-02T22:48:41 | 2019-03-09T02:09:03 | Python | UTF-8 | Python | false | false | 1,012 | py | from gym.envs.toy_text.frozen_lake import FrozenLakeEnv, RIGHT, DOWN
from .special import UserInputPolicy
class MockInputFunction:
def __init__(self, return_value=None):
self.return_value = return_value
self._orig_input_fn = __builtins__['input']
def _mock_input_fn(self, prompt):
pri... | [
"kristian.holsheimer@gmail.com"
] | kristian.holsheimer@gmail.com |
097439d4e5e15a04cbe777f77fd0434256fd16d1 | a61ca7b89ef5817b2027239ece9dd175f776c8f3 | /rcsb/app/chem/LogFilterUtils.py | 86c6b9113eaef1e38f51a767d80d66d89057586c | [
"Apache-2.0"
] | permissive | rcsb/py-rcsb_app_chem | 7da2941f6e0d0f8ff0f5a802a3edb689d283659b | 64ca10e6ccf8b604fa3d16ab72406408b22c0aca | refs/heads/master | 2023-08-17T21:33:51.660687 | 2023-01-09T17:30:07 | 2023-01-09T17:30:07 | 245,858,180 | 0 | 0 | Apache-2.0 | 2023-01-09T17:30:08 | 2020-03-08T17:31:37 | Python | UTF-8 | Python | false | false | 866 | py | ##
# File: LogFilterUtils.py
# Date: 29-Jun-2020 jdw
#
# Pre-filter for Gunicorn/Uvicorn health check requests -
##
# pylint: disable=E1101
import logging
logger = logging.getLogger(__name__)
class HealthCheckFilter(logging.Filter):
def filter(self, record):
return record.getMessage().find("/healthcheck"... | [
"john.westbrook@rcsb.org"
] | john.westbrook@rcsb.org |
937ca15e0fcc69c211f17b69de785760dbc1afb7 | 9e87897c988af634c3fddc42113992a65ec006f4 | /sims/repfam_fs/test/metrics_v2.py | e6aeb826dec6e7fd91e6f424c75731b25e4345ea | [
"MIT"
] | permissive | luiarthur/cytof5 | 152eb06030785fdff90220f0d0a244a02204c2e9 | 6b4df5e9fd94bfd586e96579b8c618fdf6f913ed | refs/heads/master | 2021-07-20T13:39:45.821597 | 2021-03-02T23:27:35 | 2021-03-02T23:27:35 | 145,253,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,927 | py | import collections
import os
import sys
import re
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import rcparams
KTRUE = [4, 5]
def parse_Rs(path_to_Rs_csv):
Rs = pd.read_csv(path_to_Rs_csv).rename(columns=dict(mean='Mean'))
return Rs
def get_ks(results_dir):
# Get dir names for e... | [
"luiarthur@gmail.com"
] | luiarthur@gmail.com |
8ef9af340d5e228e081e4752208ca6f0fc86e61c | 45284836ae85685226b1f1e3b83e207e184aee0e | /05_ProbabilityAndStatistics/01_ProbAndStatsInPython_Beginner/01_IntroductionToStatistics/11_MeasuresOfCentralTendency.py | f822187cd0dd31bf9867f58f1fd34ff63b9187d8 | [] | no_license | gaurab123/DataQuest | 5060efc3d3449e6e098cb77d7fed913516aabdbd | a9da9a90fab639d239340edfc7d0b2010edf2b35 | refs/heads/master | 2021-09-14T15:10:13.047034 | 2018-05-02T19:11:23 | 2018-05-02T19:11:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | print("this mission cannot be run locally as the data used is loaded \"behind the scenes\" and I really don't have access to it")
import matplotlib.pyplot as plt
# Let's put a line over our plot that shows the mean.
# This is the same histogram we plotted for skew a few screens ago.
plt.hist(test_scores_nor... | [
"kenneth.kite@gmail.com"
] | kenneth.kite@gmail.com |
c4c6e0af2a87a16415a3f0575945f66d748ea0f4 | 2ed1cccb49ee1549f09747061a2513fb053c707d | /20181004/DProposed_gpu3.py | 91281bf826beb09c8480f4a1812fba4e8869a002 | [] | no_license | hhjung1202/Prob_network | 1c766ef5191727a63a38654622e21f0d986b923e | dedd4e525c9393f15452709dda377ceee9849c15 | refs/heads/master | 2020-03-22T11:42:27.705442 | 2018-11-11T14:29:39 | 2018-11-11T14:29:39 | 139,990,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,940 | py | import torch
from torch.autograd import Variable
import torch.optim as optim
from torchvision import datasets, transforms
from DPmodel import *
import os
import torch.backends.cudnn as cudnn
import time
import utils
os.environ["CUDA_VISIBLE_DEVICES"] = '3'
def main(model_dir, model, dataset, batch_size=128):
util... | [
"hhjung1202@naver.com"
] | hhjung1202@naver.com |
e69f0f7583c1022af9442415e61c2769e37c4122 | dbf770eef8233f7da1850309cc4b7145bd8d67f1 | /PYTHON-ADVANCED-SEPT-2020/PYTHON ADVANCED/03_MULTYDIMENSINAL LISTS/EXERCISE/06_chess.py | 654a9eb872ce75844a3566d42fa88934b8ec214a | [] | no_license | vasil-panoff/PYTHON-ADVANCED-SEPT-2020_repo | 610a37d1681ce9d0aa86628523620e1571b438dd | c63434f91de42d2f1241b6d76a96c7c63711c1d0 | refs/heads/master | 2023-03-22T07:44:53.620221 | 2021-03-15T20:42:14 | 2021-03-15T20:42:14 | 309,829,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | possible_moves = (
(-1, -2),
(-1, 2),
(1, -2),
(1, 2),
(2, -1),
(2, 1),
(-2, 1),
(-2, -1),
)
board_size = int(input())
matrix = [['0'] * board_size for i in range(board_size)]
def is_valid(i, j):
if i < 0 or j < 0 or i >= board_size or j >= board_size:
return False
r... | [
"vasil.panov@gmail.com"
] | vasil.panov@gmail.com |
fdb64336cf73e67d472705398ef382a50c520887 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/kushaldas-retask/allPythonContent.py | d19c699f3ba9cd5827f25619f2fb80dfe0dc8340 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,401 | py | __FILENAME__ = conf
# -*- coding: utf-8 -*-
#
# retask documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 3 14:56:38 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
#... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
00784a17b99b4077db9e72d37bf5cb26749d3043 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_test/_data/sanity/code-smell/changelog.py | 710b10f6c08ec6f6580b2837b46f9a06e6302fd6 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 1,420 | py | #!/usr/bin/env python
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import sys
import subprocess
def main():
paths = sys.argv[1:] or sys.stdin.read().splitlines()
allowed_extensions = ('.yml', '.yaml')
config_path = 'changelogs/config.yaml'
# conf... | [
"sifang@cisco.com"
] | sifang@cisco.com |
9c7efaaa782f42236b3ee163464ef9d613bc033c | 0a5c103662e2ccea7698480bca28fb5c285aeafb | /info/dicom.py | 033a6a5fb0ed810ef20d7d4d98a1b7d9b7f8d109 | [] | no_license | joanshen0508/image_preprocessing | a8b9dc90e92552ca11af8b220a2ce235a558aef1 | 478e63593884d572a049590588df158c59447bab | refs/heads/master | 2022-04-02T17:08:56.559871 | 2019-10-29T15:24:48 | 2019-10-29T15:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | from __future__ import division, print_function
import os
from os.path import join
from pandas import DataFrame
import re
import dicom
from inout.io_common import get_dicom_files_in_folder
class DicomDataSummary():
"""
This function allows the generation of information stored on nrrd files.
"""
def ... | [
"olmozavala@gmail.com"
] | olmozavala@gmail.com |
1d272705faf2bbdc1fdbd6b49ad2bb71b1a70d85 | 810a8ed334a29b81ddd5a4364c06d0272c3aae39 | /clash-of-code/shortest/hexagon.py | 4fd47cf99b5eb0c26472bb476aeafcc46280b64a | [
"MIT"
] | permissive | charlesfranciscodev/codingame | d7bdfc244cb58fa356dec73fb2f2ec5470755dbc | 37b8e269e40f1b4e9807c305874f3b97f7c03a03 | refs/heads/master | 2023-08-16T23:26:20.818882 | 2023-08-16T17:12:06 | 2023-08-16T17:12:06 | 179,561,845 | 53 | 26 | MIT | 2021-05-19T19:36:46 | 2019-04-04T19:16:12 | Python | UTF-8 | Python | false | false | 24 | py | print(6*int(input())**2) | [
"charlesfranciscodev@gmail.com"
] | charlesfranciscodev@gmail.com |
9d1e8ffeefbf7cee1e32d4c38a282759cf4dd220 | 577ba42cbf0a3230966ac66ef60fd401486e4c06 | /website/apps/core/migrations/0021_transfer_year.py | 96778623b064dec78ae6724511bdcd803f81ac46 | [
"Apache-2.0"
] | permissive | shh-dlce/pulotu | 984ca86de3ffe03e83bbb15b0d497f1ebf190ecd | 82acbb8a3b7f3ec3acc76baffd4047265a77f7d3 | refs/heads/master | 2021-01-10T03:51:13.337840 | 2015-12-09T09:46:55 | 2015-12-09T09:46:55 | 46,917,922 | 2 | 0 | Apache-2.0 | 2021-11-16T11:51:48 | 2015-11-26T09:48:42 | Python | UTF-8 | Python | false | false | 8,072 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Don't use "from appname.models imp... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
0cb269eb77b00fc282b0b7a98450a744901f9bee | af4abf0a22db1cebae466c56b45da2f36f02f323 | /parser/fase2/team08/Tytus_SQLPARSER_G8/optimizacion/Instrucciones/C3D/LlamadaC3D.py | dc3d1a8494a7f8ac134381a1aa4f9d6d7c4e705b | [
"MIT",
"BSD-3-Clause"
] | permissive | joorgej/tytus | 0c29408c09a021781bd3087f419420a62194d726 | 004efe1d73b58b4b8168f32e01b17d7d8a333a69 | refs/heads/main | 2023-02-17T14:00:00.571200 | 2021-01-09T00:48:47 | 2021-01-09T00:48:47 | 322,429,634 | 3 | 0 | MIT | 2021-01-09T00:40:50 | 2020-12-17T22:40:05 | Python | UTF-8 | Python | false | false | 594 | py | from optimizacion.Instrucciones.TablaSimbolos.InstruccionC3D import InstruccionC3D
class LlamadaC3D(InstruccionC3D):
def __init__(self, id,linea, columna):
InstruccionC3D.__init__(self,linea,columna)
self.id = id
print("ENTRO A expresiones")
def ejecutar(self, tabla, arbol):
... | [
"michikatrins@gmail.com"
] | michikatrins@gmail.com |
b93260df15ec3b7ec598572a2cee1d41b1db0c22 | 41a672c9505b5b53c58a01d5455acc410949aa24 | /tests/aoutgoing/negative/group/C_39.py | 2f601a227919b3259ac2e7c4da1ce6d2ad77009c | [] | no_license | Alexsorgo/mobile_iOS | b045a0ea058726841c88158be8407b7ae45e893e | 7e298f890b408cedad9db9d0aefeccd9c10d6002 | refs/heads/master | 2022-12-12T17:26:14.039876 | 2020-03-18T06:34:56 | 2020-03-18T06:34:56 | 248,154,882 | 0 | 0 | null | 2021-06-02T01:13:05 | 2020-03-18T06:25:17 | Python | UTF-8 | Python | false | false | 956 | py | from configs import config
from enums import error_enums
from screens.group.group_screen import GroupScreen
from controls.menu import Menu
from tests.aoutgoing.base_test import BaseTest
from utils.logs import log
from utils.verify import Verify
class TestC39(BaseTest):
"""
User has the ability to create group... | [
"oleksii_mishchenko@epam.com"
] | oleksii_mishchenko@epam.com |
255564aec5fbd2217b5838adab632433649e48fb | 4a5f3b26fca176a80ca8eca796bc646bb225b017 | /LSTM/lstm.py | fd4fa6f6352b46b189efd111d6f07ccf1a6d69d2 | [] | no_license | musyoku/NLP | 9a63dc882b07b017f7cfc72d863c4d9e5cbeff5e | 9b040bb960b65fb2a1c330adafa6c52e3284a0c1 | refs/heads/master | 2021-01-21T04:53:57.029200 | 2016-07-10T17:08:03 | 2016-07-10T17:08:03 | 55,848,677 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,963 | py | # -*- coding: utf-8 -*-
import os, time
import numpy as np
import chainer
from chainer import cuda, Variable, optimizers, serializers, function, link
from chainer.utils import type_check
from chainer import functions as F
from chainer import links as L
from bnlstm import BNLSTM
from embed_id import EmbedID
activations... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
9544265ec76e9e6bce081dee8ea03c2ea278a212 | c7e0c86a24521a13c3b06c73244e9f5854f47284 | /smarts/env/tests/test_metrics.py | a9d43943678df687bf3dc894e97b9aeab7c2cbb1 | [
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"CC-BY-NC-4.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-generic-exception",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"BSD-3-Clause",
"MIT",
"LGPL-... | permissive | huawei-noah/SMARTS | 243d1f1fa4d3afe52a1dd8f7c6c500054d4a1a97 | 2ae8bd76a0b6e4da5699629cec0fefa5aa47ce67 | refs/heads/master | 2023-08-31T05:06:29.064270 | 2023-08-28T23:11:31 | 2023-08-28T23:11:31 | 301,903,883 | 824 | 212 | MIT | 2023-08-08T14:52:00 | 2020-10-07T02:11:23 | Python | UTF-8 | Python | false | false | 10,884 | py | # MIT License
#
# 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 th... | [
"noreply@github.com"
] | huawei-noah.noreply@github.com |
0afb5da3c5bf377521020e90704fbd297b46c016 | e5b778a273e3888ad0575a9dada39d458158127a | /students/migrations/0009_lesson_icon.py | a4f54c33999a2c365ea2cd47c5cf66dca551542c | [] | no_license | SevenLines/django-tealeaf | 896784baead7b9514e83edad8c3c2defdcdd060b | 959dbcbdd37a4e8f45de400e71710c5e746a97da | refs/heads/master | 2021-01-23T00:01:43.793383 | 2015-05-15T15:58:52 | 2015-05-15T15:58:52 | 17,891,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import filer.fields.image
class Migration(migrations.Migration):
dependencies = [
('filer', '__first__'),
('students', '0008_auto_20141128_1807'),
]
operations = [
migrations... | [
"mmailm@mail.ru"
] | mmailm@mail.ru |
e7a9408e49112ddd9f5aafdb874c3377f4ad2d1c | 767745e9c6207db9f6a9cf4f0be1af4732e7a111 | /raiden/tests/integration/transfer/test_directransfer_invalid.py | d88e7c9f8a32e7f40677ba8b9fc4c75d7c1a3340 | [
"MIT"
] | permissive | gcarq/raiden | ecc91860b99447028baea7fd171c19996644a5ef | 82241c6da9188c4e029aef3bb42f0ab9f055c0e4 | refs/heads/master | 2020-03-10T03:31:55.174762 | 2018-04-11T19:18:21 | 2018-04-11T19:18:21 | 129,167,527 | 0 | 0 | MIT | 2018-04-11T23:52:12 | 2018-04-11T23:52:12 | null | UTF-8 | Python | false | false | 6,738 | py | # -*- coding: utf-8 -*-
import pytest
from raiden.api.python import RaidenAPI
from raiden.messages import DirectTransfer
from raiden.transfer import channel
from raiden.transfer.state import EMPTY_MERKLE_ROOT
from raiden.tests.utils.blockchain import wait_until_block
from raiden.tests.utils.factories import (
UNIT... | [
"hack.augusto@gmail.com"
] | hack.augusto@gmail.com |
b020ce1d7374b7195c3545ce178c7b9387f9ddd1 | 72b8e2d69cca8b5ecd28e61ef61fef85f9dd0489 | /q190.py | 3bf0f6319123cdb7f2dd25ae44e6f074a9eafef1 | [] | no_license | maples1993/LeetCode | f975bc8570729d998481b097ee04effe5a7c5977 | 032016724564d0bee85f9e1b9d9d6c769d0eb667 | refs/heads/master | 2020-03-27T22:05:07.397746 | 2018-11-07T06:13:56 | 2018-11-07T06:13:56 | 147,203,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | """
Date: 2018/9/6
"""
class Solution:
# @param n, an integer
# @return an integer
def reverseBits(self, n):
n &= 0xFFFFFFFF
print(bin(n))
res = 0 & 0xFFFFFFFF
count = 0
while count < 32:
count += 1
res <<= 1
if n & 1 == 1:
... | [
"panchao1993@126.com"
] | panchao1993@126.com |
e1fc43f35600eb1ab30bcb687acd093d5345c74f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_veritable.py | c4260f18bbed72556a78374e7679857fe6dc69a3 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py |
#calss header
class _VERITABLE():
def __init__(self,):
self.name = "VERITABLE"
self.definitions = [u'used to describe something as another, more exciting, interesting, or unusual thing, as a way of emphasizing its character: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
55eb160926cb77920b63568d4be18c54eeebdb2d | 41b59a9c8381fa3a92f5d2c37c91261afb9c82c4 | /QCDEventShape/2017/MC/test/crab_bin_py8_3200_inf.py | ad911d60a95de92ad286c8ea8f0a46bafbafeab1 | [] | no_license | Sumankkundu/ChargedParticle | c6d4f90b55df49321df2ecd758bb1f39db896f8c | eb5bada24b37a58ded186d6e5d2d7bd00898fefe | refs/heads/master | 2023-07-15T03:34:33.377203 | 2021-08-31T05:01:32 | 2021-08-31T05:01:32 | 231,091,587 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | #from CRABClient.UserUtilities import config, getUsernameFromSiteDB
from CRABClient.UserUtilities import config
config = config()
config.General.requestName ='ESVQCD_UL_Ptbinned_3200toinf_tuneCP5_bin'
#config.General.workArea = 'crab_projects_1'
config.General.workArea = 'crab_projects'
config.General.transferOutputs... | [
"skundu91phys@gmail.com"
] | skundu91phys@gmail.com |
64592d3ee4f2219d3ea1f98f687bdb1984f866da | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02780/s702903623.py | ef5c9f02ab956fe90728da489ecd4bc87f90841f | [] | 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 | 326 | py | n,k = map(int,input().split())
P = list(map(int,input().split()))
P[0] = (P[0]+1.)/2
for i in range(1,len(P)):
P[i] = (P[i]+1.)/2
P[i] = P[i-1]+P[i]
ans = 0.
if n==1:
ans = P[0]
elif len(P)-k==0:
ans = P[k-1]
else:
for i in range(len(P)-k):
ans = max(ans,(P[i+k]-P[i]))
prin... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5208906c09939f76f644bef4f999ef65b8a1cfae | 37438771565238194ea997fa65619bd32c823706 | /catkin_ws/17-11-16/LPH/build/catkin_generated/order_packages.py | 24ce42469160b8cc3411cbaef6a5190b3592e0f2 | [] | no_license | Aaron9477/restore | b040b8be695c513946c0243c4acb735f427d8bba | 8dc13ed7cf0c4e5cde911169d11e330d826f40bd | refs/heads/master | 2021-09-15T10:50:59.969952 | 2018-05-31T03:11:55 | 2018-05-31T03:11:55 | 110,834,815 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # generated from catkin/cmake/template/order_packages.context.py.in
source_root_dir = "/home/zq610/LPH/src"
whitelisted_packages = "".split(';') if "" != "" else []
blacklisted_packages = "".split(';') if "" != "" else []
underlay_workspaces = "/opt/ros/kinetic".split(';') if "/opt/ros/kinetic" != "" else []
| [
"869788668@qq.com"
] | 869788668@qq.com |
310ba0cb9368a175620ca3cbcbd62104bf3f9f8b | edc1f1369794a4a1c499c6e9d5fe49a712657611 | /algorithms/leetcode_all/560.subarray-sum-equals-k/subarray-sum-equals-k.py | 74c28e9996672f15fe435da46bf9edd7cf5ffdc2 | [] | no_license | williamsyb/mycookbook | 93d4aca1a539b506c8ed2797863de6da8a0ed70f | dd917b6eba48eef42f1086a54880bab6cd1fbf07 | refs/heads/master | 2023-03-07T04:16:18.384481 | 2020-11-11T14:36:54 | 2020-11-11T14:36:54 | 280,005,004 | 2 | 0 | null | 2023-03-07T02:07:46 | 2020-07-15T23:34:24 | Python | UTF-8 | Python | false | false | 379 | py | class Solution(object):
def subarraySum(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: int
"""
preSum = ans = 0
visit = {0: 1}
for i, n in enumerate(nums):
preSum += n
ans += visit.get(preSum - k, 0)
... | [
"william_sun1990@hotmail.com"
] | william_sun1990@hotmail.com |
835f35f32d97ac1b55d4dda8b712add353ad0796 | 66052f5ba08ddac0a56ee140af17cf78b1ff1174 | /PLURALSIGHT_BEGINNERS/lib/python3.9/site-packages/holoviews/tests/plotting/matplotlib/testpointplot.py | ad2dbfe315b9cd12e93a78996c55f6e2f0f001f8 | [] | no_license | enriquefariasrdz/Python | 34704ceed001bbe8a23471eebefbe536b00031a5 | b9191f7ad87b709a1b83c5cb3797a866b56aaa0d | refs/heads/master | 2022-12-26T03:06:26.481456 | 2022-04-20T14:09:57 | 2022-04-20T14:09:57 | 27,020,899 | 1 | 1 | null | 2022-12-18T21:02:43 | 2014-11-23T03:33:52 | Python | UTF-8 | Python | false | false | 14,958 | py | import numpy as np
from holoviews.core.overlay import NdOverlay
from holoviews.core.spaces import HoloMap
from holoviews.element import Points
from .testplot import TestMPLPlot, mpl_renderer
from ..utils import ParamLogStream
try:
from matplotlib import pyplot
except:
pass
class TestPointPlot(TestMPLPlot):... | [
"enriquefariasrdz@gmail.com"
] | enriquefariasrdz@gmail.com |
d6b0539a2cd34a3318a634029493799c8d1029ff | 2aec9c5e8c72b731d3abf22f2a407fe09c1cde09 | /ZQZ510/ZQZ510/spiders/zqz.py | 3a4ae2a8fc42615dd7eaaf1a56965897c452c5d3 | [] | no_license | jiangyg/ZWFproject | 8b24cc34970ae0a9c2a2b0039dc527c83a5862b5 | aa35bc59566d92721f23d2dd00b0febd268ac2dd | refs/heads/master | 2020-09-26T17:01:00.229380 | 2019-11-15T13:16:21 | 2019-11-15T13:16:21 | 226,297,631 | 0 | 1 | null | 2019-12-06T09:55:37 | 2019-12-06T09:55:36 | null | UTF-8 | Python | false | false | 5,422 | py | # -*- coding: utf-8 -*-
import scrapy
import time
import json
from ZQZ510.items import Zqz510Item
empty_word = 'null'
class ZqzSpider(scrapy.Spider):
name = 'zqz'
allowed_domains = ['zqz510.com']
start_urls = ['http://login.zqz510.com/judgmentDoc']
def parse(self, response):
url = 'http://a... | [
"34021500@qq.com"
] | 34021500@qq.com |
d72f0e6e1d8aaabc1a02b10a8fbc864b8f6d0b65 | 29345337bf86edc938f3b5652702d551bfc3f11a | /python/src/main/python/pyalink/alink/tests/examples/from_docs/test_totensorstreamop.py | 78c1de91112c783148b8652120fe7425e975fcf9 | [
"Apache-2.0"
] | permissive | vacaly/Alink | 32b71ac4572ae3509d343e3d1ff31a4da2321b6d | edb543ee05260a1dd314b11384d918fa1622d9c1 | refs/heads/master | 2023-07-21T03:29:07.612507 | 2023-07-12T12:41:31 | 2023-07-12T12:41:31 | 283,079,072 | 0 | 0 | Apache-2.0 | 2020-07-28T02:46:14 | 2020-07-28T02:46:13 | null | UTF-8 | Python | false | false | 553 | py | import unittest
from pyalink.alink import *
import numpy as np
import pandas as pd
class TestToTensorStreamOp(unittest.TestCase):
def test_totensorstreamop(self):
df = pd.DataFrame(["FLOAT#6#0.0 0.1 1.0 1.1 2.0 2.1 "])
source = StreamOperator.fromDataframe(df, schemaStr='vec string')
... | [
"shaomeng.wang.w@gmail.com"
] | shaomeng.wang.w@gmail.com |
9ab8c1cfef72c9b54df1a43e0a919da8d13a725c | 9c81c170f03ba925bf3d0682526245c202e384a7 | /superset/cli/test.py | f175acec470cd59f06f6d1ad8de07765a2520901 | [
"Apache-2.0",
"OFL-1.1"
] | permissive | zcong1993/incubator-superset | 2a08177641eff178dee9db852887ad2d19d70d54 | 269c99293f42089958dc98b5d6e5899509fc3111 | refs/heads/master | 2023-08-17T12:24:59.438120 | 2023-08-17T10:50:24 | 2023-08-17T10:50:24 | 209,522,299 | 0 | 0 | Apache-2.0 | 2023-03-06T08:10:31 | 2019-09-19T10:09:21 | TypeScript | UTF-8 | Python | false | false | 2,860 | 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... | [
"noreply@github.com"
] | zcong1993.noreply@github.com |
f4771bd090478972d022ce9b450d530bb2408052 | 6c3ab38e350734f1bc4f0c746ea55a12838ce5ee | /pcserver/mainapp/handlers.py | 93a7d32aa090f9a76b8f6ab1bca16d7d2eda3868 | [] | no_license | joelsemar/Programming-Challenge | 1dd4fb487d02e05ed494e66da99a627970832988 | b8bf8e115dc3c242d62bf696d3268a4b31019592 | refs/heads/master | 2020-05-17T15:16:45.892328 | 2011-08-31T19:17:15 | 2011-08-31T19:17:15 | 2,298,598 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | from webservice_tools.utils import BaseHandler, AutoListHandler
from webservice_tools.decorators import login_required
from mainapp.models import * #@UnusedWildImport
#Create your handlers here
class PhotosHandler(AutoListHandler):
model = Photo
allowed_methods = ('GET',)
extra_fields = ('image_url',)
... | [
"semarjt@gmail.com"
] | semarjt@gmail.com |
43e3f69a4d43e8fd97a6995fa95b1197d002dc0e | 0315255c749b12216a7c8ac26378d8921466284a | /tests/integration/client/standard.py | 969611b4d0a0800f10b1c10258875138538f5b08 | [
"Apache-2.0"
] | permissive | jhutchins/salt | a32de1362c6787ec96df7ce57bf9b98f20eaf30a | 22ec0cee6a8a842ec426b7a3e634723ea7ce7256 | refs/heads/master | 2021-01-21T00:05:05.782149 | 2012-04-06T22:03:19 | 2012-04-06T22:03:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,254 | py | # Import python libs
import subprocess
# Import salt libs
import integration
class StdTest(integration.ModuleCase):
'''
Test standard client calls
'''
def test_cli(self):
'''
Test cli function
'''
cmd_iter = self.client.cmd_cli(
'minion',
... | [
"thatch45@gmail.com"
] | thatch45@gmail.com |
0aa4fad95e735af119da27c643164c508715fe23 | 58c122786263edf8aec4a6b6b4986b2f3d4ff1d5 | /modules/s3/pyvttbl/qsturng.py | 49e432d4a21df43c96c06038b370da50df36ded8 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | andygimma/eden | c9d0819e87ef05ff607cac6120dbddc86e55bc31 | 716d5e11ec0030493b582fa67d6f1c35de0af50d | refs/heads/master | 2021-01-15T21:54:03.240072 | 2012-11-16T05:13:11 | 2012-11-16T05:13:11 | 6,726,106 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,225 | py | # Copyright (c) 2011, Roger Lew [see LICENSE.txt]
# This software is funded in part by NIH Grant P20 RR016454.
"""
Implementation of Gleason's (1999) non-iterative upper quantile
studentized range approximation.
According to Gleason this method should be more accurate than the
AS190 FORTRAN algorithm of Lund ... | [
"dominic@nursix.org"
] | dominic@nursix.org |
11b9bf5a469cbefb5d55ecbc166fdf0b95d5e6a5 | d2bb13cec7faf28e3d268312298f03c99806bd8b | /IPTS-16891-Dy2Ti2O7/norm_mesh_symm_All_rwp_100mK_7.py | d66eaa8f6dc140ec0ed3f53c2db9c0369b379c0f | [] | no_license | rosswhitfield/corelli | 06a91c26556ea788f20f973a1018a56e82a8c09a | d9e47107e3272c4457aa0d2e0732fc0446f54279 | refs/heads/master | 2021-08-07T14:04:24.426151 | 2021-08-03T19:19:05 | 2021-08-03T19:19:05 | 51,771,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,488 | py | from mantid.simpleapi import *
from mantid.geometry import SymmetryOperationFactory
import numpy as np
# about information on where the data are and where to save
iptsfolder= "/SNS/CORELLI/IPTS-16891/"
outputdir="/SNS/users/rwp/corelli/IPTS-16891-Dy2Ti2O7/"
nxfiledir=iptsfolder + "nexus/"
ccfiledir = iptsfolder +"shar... | [
"whitfieldre@ornl.gov"
] | whitfieldre@ornl.gov |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.