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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44be92edbd4686e354ce691569964fad2a11f50e | b54ba6923597138d744c890c21f09ceb768ea0ac | /Python 8 to 9AM/BasicExamples/Demo11.py | eb5a3414b5d2f196b98720855020d0c7a65b179c | [] | no_license | ashokreddy7013/python | ad3893e598a827bf520a97ed63e7441ce5ebea62 | e9032166ad32001e5fc89903b62d419d6d68b6d0 | refs/heads/master | 2020-05-01T08:54:19.106039 | 2019-03-24T08:19:18 | 2019-03-24T08:19:18 | 171,410,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py |
class Employee:
def __init__(self):
print("I am Default Const")
Employee()
| [
"45504918+ashokreddy7013@users.noreply.github.com"
] | 45504918+ashokreddy7013@users.noreply.github.com |
dc757c59fdf8ee93aa9bf252e1823c13c8c21ba9 | 9bd82e484b3d32c4059ef57dec70e64bced8dde7 | /OTB/OTB/pipelines.py | 693eeb3a38760be718dbda4b5478b7a5cebc9419 | [
"MIT"
] | permissive | houzw/knowledge-base-data | 8a4df88558edcc5fcc25bac82788c6eb96119854 | 60771e8bf300227e1a26c9e77f56b09d23acd64a | refs/heads/master | 2021-06-02T02:28:09.624790 | 2020-10-21T07:02:26 | 2020-10-21T07:02:26 | 148,170,033 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
class OtbPipeline(object):
def process_item(self, item, spider):
return item
| [
"yesqincheng@sina.com"
] | yesqincheng@sina.com |
e16b8c9808ebc38687cf672a338a6f901cd42936 | 9f1039075cc611198a988034429afed6ec6d7408 | /tensorflow-stubs/contrib/framework/python/framework/checkpoint_utils.pyi | e6e501dad7d3fcdf5bcb59bd42acdb9afc2b5d9c | [] | no_license | matangover/tensorflow-stubs | 9422fbb1cb3a3638958d621461291c315f9c6ec2 | 664bd995ef24f05ba2b3867d979d23ee845cb652 | refs/heads/master | 2020-05-23T12:03:40.996675 | 2019-05-15T06:21:43 | 2019-05-15T06:21:43 | 186,748,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | pyi | # Stubs for tensorflow.contrib.framework.python.framework.checkpoint_utils (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from tensorflow.python.ops import io_ops as io_ops, state_ops as state_ops, variables as variables
from tensorflow.python.platform import gfile as gfile
fr... | [
"matangover@gmail.com"
] | matangover@gmail.com |
0478b50dada5ebde6ba5cc4ed593631ad0a7f72d | 00ee6a3c859362bbc20342c568a27ea2a493e427 | /src/x007007007/djapp/raspberry/net/models/__init__.py | df1ebdbcd68a29e15c124791e2bb900e5e47a5bf | [
"MIT"
] | permissive | x007007007/raspberrypi | 7721b1fde2763fd28db579ca65217b81ee2193ae | 9dfe49666c029b8bb617830a5c5a873a6106d853 | refs/heads/master | 2022-10-04T04:51:29.974216 | 2022-10-03T16:36:00 | 2022-10-03T16:36:00 | 56,951,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | from .. import hook | [
"x007007007@hotmail.com"
] | x007007007@hotmail.com |
22a0ca8e1e08f8516eb0a7d34b276c7390c35474 | c15a28ae62eb94dbf3ed13e2065195e572a9988e | /Cook book/src/8/lazily_computed_attributes/example1.py | a872f26e188323bd9e96e4b786016ffff9d9d6d8 | [] | no_license | xuyuchends1/python | 10798c92840a1a59d50f5dc5738b2881e65f7865 | 545d950a3d2fee799902658e8133e3692939496b | refs/heads/master | 2021-01-25T07:07:04.812140 | 2020-02-28T09:25:15 | 2020-02-28T09:25:15 | 93,647,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | class lazyproperty:
def __init__(self, func):
self.func = func
def __get__(self, instance, cls):
if instance is None:
return self
else:
value = self.func(instance)
setattr(instance, self.func.__name__, value)
return value
if __name__ == ... | [
"xuyuchends@163.com"
] | xuyuchends@163.com |
66ba6597d61378a91d5ee82df352bcc2eba93876 | d8d95b609a103454b408634bc3a61e4c1fb72dd6 | /6주차/my_SIFT for student.py | d29df1b53fb430f6b303991b82775340a443ecd1 | [] | no_license | sglee487/ComputerGraphics | b7d8cb26a93c91bcfa8515807dce5b09a5bf4384 | 5468b807d98589fda5c9effc64740f1963d7550b | refs/heads/master | 2020-07-31T10:03:54.900052 | 2020-04-04T08:07:01 | 2020-04-04T08:07:01 | 210,547,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,154 | py | import cv2
import numpy as np
def get_extrema(DoG, ext):
for i in range(1, 4):
for j in range(1, DoG.shape[0]-1):
for k in range(1, DoG.shape[1]-1):
# 최대값 혹은 최소값인 지점을 extrema로 구해주세요.
DoG1localMax = np.max(DoG[j-1:j+2,k-1:k+2,i-1])
DoG1localMin = n... | [
"sglee487@gmail.com"
] | sglee487@gmail.com |
f1fae0f924c00a9486c0b986eec4af374aa7f501 | ea83e60e2be606813005081a9f1b9516de018c7d | /language/realm/retrieval.py | 7962c9d8ad6fdb8180adf7d556fcee0ec5c34d37 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | optimopium/language | 1562a1f150cf4374cf8d2e6a0b7ab4a44c5b8961 | bcc90d312aa355f507ed128e39b7f6ea4b709537 | refs/heads/master | 2022-04-03T03:51:28.831387 | 2022-03-16T21:41:17 | 2022-03-16T22:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,555 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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 ... | [
"kentonl@google.com"
] | kentonl@google.com |
82303825a36ae127081f7c965f2fa948b36e6fcc | d7ae8db44b31de83eabaf0e286b1452d4ada24ff | /IoT_Domain_Analyst_ECE_3502/Lab_3/Linear_Regression.py | 524229a56949837e42e249dd6a58236604882ea0 | [
"CC0-1.0"
] | permissive | eshan5/VIT-Labs | ae4c6719b86fb5e2f30e0f5a023171597cf33d42 | 5a20b9571a10b4550b886d588969592e595dac1d | refs/heads/main | 2023-08-24T06:50:23.888426 | 2021-10-09T10:18:32 | 2021-10-09T10:18:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | import numpy as np
from sklearn.linear_model import LinearRegression
x = np.array([5, 15, 25, 35, 45, 55]).reshape((-1, 1))
y = np.array([5, 20, 14, 32, 22, 38])
print(x)
print(y)
model = LinearRegression().fit(x, y)
r_sq = model.score(x, y)
print('coefficient of determination:', r_sq)
print('intercept:', model.inter... | [
"aadhityas@gmail.com"
] | aadhityas@gmail.com |
1882e6bd42af8f728c9d7796b25c44164b46c8a0 | d2915ef6ee9c1ea01f47d3468bba8e320a8f5914 | /design_patterns/behavioural/template_method.py | b4d81ca7739be92fcbe5d17b1a54a35d7cf159d6 | [] | no_license | asing177/python_basics | a269adbaf166fb760d2692874601528ef230bbbd | 48ce7d5d6356edbd9bc21f8ebb55ec95787d4340 | refs/heads/main | 2023-01-11T12:11:44.155102 | 2020-11-13T07:24:54 | 2020-11-13T07:24:54 | 300,806,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,123 | py | from test_abc import ABC, abstractmethod
class AbstractClass(ABC):
"""
The Abstract Class defines a template method that contains a skeleton of
some algorithm, composed of calls to (usually) abstract primitive
operations.
Concrete subclasses should implement these operations, but leave the
te... | [
"adityasingh27@hotmail.com"
] | adityasingh27@hotmail.com |
1d4a7962f047e1507edd5b010afde2fc751120b8 | e400d4a141f35bc4240293253048535f1e737d4e | /src/03_IPhreeqcPy/02_phreeqc_mixing_CSH.py | 0ef9294bb86ad1f2be65ad009b6c572debf6e331 | [] | no_license | annavarzina/carbonation | 94416935f92cdfb1874c61407c8d1909178bd6c9 | 030b222f000d79538e9890fb9047d57ced7bad2d | refs/heads/master | 2021-06-23T07:33:20.147869 | 2021-03-02T13:29:34 | 2021-03-02T13:29:34 | 193,922,887 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,356 | py | import numpy as np
import matplotlib.pylab as plt
from mixing import PhreeqcMixing
from kinetics import PhreeqcKinetics
class PhreeqcMixingCSH(PhreeqcMixing):
def __init__(self, n, fraction, csh, database):
self.phase = csh['name']
self.csh = csh
self.steps = n
self.fraction = frac... | [
"varzinaanna@gmail.com"
] | varzinaanna@gmail.com |
913e406199d7adf3fcacb33850752f52a57881fa | 69e5f24fa12346f892b1c907e802286045b3641f | /train.py | c17b2ccaaaaae82b11f58306d9b719d7f6098609 | [] | no_license | hope-yao/failed_adversarial_training | 0cf9d05333767756134db1eb8ea2424ace8449c9 | be87e05b59aaeecec9001c1d6ae69afcf9382c1d | refs/heads/master | 2020-04-01T19:04:32.433080 | 2018-10-17T22:39:48 | 2018-10-17T22:39:48 | 153,532,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,181 | py | """Trains a model, saving checkpoints and tensorboard summaries along
the way."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from datetime import datetime
import json
import os
import shutil
from timeit import default_timer as timer
import tensorflo... | [
"hope-yao@asu.edu"
] | hope-yao@asu.edu |
03fa270be63af49d803b50f06e2f566610bf1159 | 1c962341f3b580f2be0529a2d5804d49804470f6 | /judge_2152.py | a4cdbad8d0c1c0d6e41d3a7a54609469d3035777 | [] | no_license | andersonmarquees/-uri_python | 7bc14b50198bd238f9594b37a86553ecfb277f76 | 379518cd17433725d6a859526de356162b26aa40 | refs/heads/master | 2020-05-05T09:08:51.483638 | 2019-04-14T16:42:24 | 2019-04-14T16:42:24 | 179,892,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | n = int(input())
while n > 0:
number = list(map(int, input().split()))
if number[2] == 0 and number[0] >= 10 and number[1] >= 10:
print("{}:{} - A porta fechou!".format(number[0], number[1]))
elif number[2] == 1 and number[0] >= 10 and number[1] >= 10:
print("{}:{} - A porta abriu!".format(... | [
"anderson_fisico@yahoo.com.br"
] | anderson_fisico@yahoo.com.br |
b189d011d6657ef5e6f9b4e1061f09ba5eb4c1a7 | 3a891a79be468621aae43defd9a5516f9763f36e | /apps/beeswax/gen-py/TCLIService/TCLIService.py | 3bf8cee42c53891d5ab95aa26926dd4078f58c7f | [
"Apache-2.0"
] | permissive | oyorooms/hue | b53eb87f805063a90f957fd2e1733f21406269aa | 4082346ef8d5e6a8365b05752be41186840dc868 | refs/heads/master | 2020-04-15T20:31:56.931218 | 2019-01-09T19:02:21 | 2019-01-09T19:05:36 | 164,998,117 | 4 | 2 | Apache-2.0 | 2019-01-10T05:47:36 | 2019-01-10T05:47:36 | null | UTF-8 | Python | false | true | 104,941 | py | #
# Autogenerated by Thrift Compiler (0.9.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py:new_style
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from ttypes import *
from thrift.Thrift import TProcessor
from thrift.transport import T... | [
"romain@cloudera.com"
] | romain@cloudera.com |
284deb502b460d18389044ea5103890c7f6686d0 | 01a8c5ecea9cb4d40d3e26a1ca08cb1ccc17e98a | /common/prep_terrain_data.py | a35188d77e0eab7d0ba710f5dbfa6d1addca21c6 | [] | no_license | pelinbalci/intro_to_ml | fe570cfe5a556cdd55fccabd1f7096b42124a7a7 | 450ba3cff7d3f2009d94a526527ed76fee6e1fdf | refs/heads/master | 2022-11-15T04:22:29.372686 | 2020-07-12T10:13:05 | 2020-07-12T10:13:05 | 277,359,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | #!/usr/bin/python
import random
def makeTerrainData(n_points=1000):
"""make the toy dataset """
random.seed(42)
grade = [random.random() for i in range(0, n_points)] #[0.63, 0.025, 0.275, 0.223, 0.736, 0.676, 0.89, 0.085, 0.42, 0.029]
bumpy = [random.random() for i in range(0, n_points)] #[0.218, 0.5... | [
"balci.pelin@gmail.com"
] | balci.pelin@gmail.com |
a307d190864c688240df95388d0101710746d094 | 16eff60c29062849d7d2fc035a9fbb4a3f93e206 | /crnn_model/cnn_basenet.py | 4bc2c25734ae536b5105871a303e2fb722471c70 | [] | no_license | marjeylee/text_recognization | 3144d3f3903918d1c9a9e75b14597288b92af8cd | efc7982198cbdea8f330de2f758583be6ba3c23f | refs/heads/master | 2020-03-23T18:09:57.215751 | 2018-07-22T13:07:57 | 2018-07-22T13:07:57 | 141,893,083 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,465 | py | # -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: cnn_basenet
Description :
Author : 'li'
date: 2018/7/22
-------------------------------------------------
Change Activity:
2018/7/22:
--------------------------------------------... | [
"marjey_lee@163.com"
] | marjey_lee@163.com |
c39cc5dda80f909656f9411ff1e0ff395f66ea2f | 9da0798b6f309d2274c65077efa81c3766b78051 | /SearchQuery.py | 398bb743fac51257f35f8c955e13f286be2efd41 | [] | no_license | theriley106/RandomSearchQuery | 09b37c23c3798b873c45db529158b326410d759e | e084a1a63279994fe06ef8dd594d2bc8e1d7b445 | refs/heads/master | 2021-01-13T04:57:56.583001 | 2017-02-07T05:04:07 | 2017-02-07T05:04:07 | 81,155,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | import random
import csv
QueryList = open('QueryList.csv', 'r')
QueryList = csv.reader(QueryList)
QueryList = [row for row in QueryList]
QueryList = [l[0] for l in QueryList]
def Random():
return random.choice(QueryList)
def Multi():
return QueryList | [
"christopherlambert106@gmail.com"
] | christopherlambert106@gmail.com |
4a13e69ae72231f2bbbeccfef203a95165134ed0 | 98fd3275aa34c90c26d1f43d70983ae762c69064 | /floor_division.py | 1f092bde43f669fac26bc9d825a9243c8393537d | [] | no_license | hasnatosman/problem_solving | 62b5eaf6a418ae7f75d187b2c8e1e4b0ab4750fd | 1f33acc6289d322a9e950b6e39185a505159b7e2 | refs/heads/main | 2023-06-17T05:34:33.908078 | 2021-07-15T06:36:45 | 2021-07-15T06:36:45 | 383,810,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | """
PROBLEM 4:
Find the floor division of two numbers.
HINTS:
Just use two // instead of one.
"""
num1 = int(input('Enter the first number: '))
num2 = int(input('Enter the second number: '))
result = num1 // num2
print("Result is: ", result)
"""
Explanation:
When you divide one number by another you g... | [
"noreply@github.com"
] | hasnatosman.noreply@github.com |
c52b322c1c1fb0464674ec1211c34b90dcd6b4b1 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqptdiag/entity.py | 86ae5c47a213aa5ec2540a9fb905cafd8a5403b0 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 6,254 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
615006d06bcf4d93bc93ed9798d73762df416462 | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/clean_code/clean_code_submissions/clean_code_assignment_004/fb_post/utils/reply_to_comment.py | bf2b3191ba7a9a31d3d72f9ff3c6587ad9dd601e | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,914 | py | {"filter":false,"title":"reply_to_comment.py","tooltip":"/clean_code/clean_code_submissions/clean_code_assignment_004/fb_post/utils/reply_to_comment.py","undoManager":{"mark":57,"position":57,"stack":[[{"start":{"row":21,"column":45},"end":{"row":22,"column":0},"action":"insert","lines":["",""],"id":2},{"start":{"row":... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
7f78ff3bbfee0ec659df2d2fe6639af9fe66f59b | 72b00923d4aa11891f4a3038324c8952572cc4b2 | /python/datastruct/dd_oob/pgm06_13.txt | 68d0a171c8d350cdcfdc58f5ebe0b45790150e1e | [] | no_license | taowuwen/codec | 3698110a09a770407e8fb631e21d86ba5a885cd5 | d92933b07f21dae950160a91bb361fa187e26cd2 | refs/heads/master | 2022-03-17T07:43:55.574505 | 2022-03-10T05:20:44 | 2022-03-10T05:20:44 | 87,379,261 | 0 | 0 | null | 2019-03-25T15:40:27 | 2017-04-06T02:50:54 | C | UTF-8 | Python | false | false | 1,058 | txt | #
# This file contains the Python code from Program 6.13 of
# "Data Structures and Algorithms
# with Object-Oriented Design Patterns in Python"
# by Bruno R. Preiss.
#
# Copyright (c) 2003 by Bruno R. Preiss, P.Eng. All rights reserved.
#
# http://www.brpreiss.com/books/opus7/programs/pgm06_13.txt
#
class QueueAsArray... | [
"taowuwen@126.com"
] | taowuwen@126.com |
1ddbfb75321c4a6c9628325701f965d26cc4ace3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03254/s765346849.py | 33081586b65e211540fb56775a50c4be338f79f8 | [] | 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 | 198 | py | n, x = map(int, input().split())
a = list(map(int, input().split()))
a.sort()
ans = 0
for i in range(n-1):
if x >= a[i]:
x -= a[i]
ans += 1
if x == a[-1]:
ans += 1
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4219a4b68fda829e5ffe9f53e3fc479e6f4e4f2f | 26f6313772161851b3b28b32a4f8d255499b3974 | /Python/PseudoPalindromicPathsinaBinaryTree.py | f55438ead603aea16a74885f9461cc385a4c486d | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,315 | py | """
Given a binary tree where node values are digits from 1 to 9. A path in the binary tree is said to be pseudo-palindromic if at least one permutation of the node values in the path is a palindrome.
Return the number of pseudo-palindromic paths going from the root node to leaf nodes.
Example 1:
Input: root = ... | [
"here0009@163.com"
] | here0009@163.com |
4b1e6ff8dcab39ce71d92053b69511dbb5cc419d | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/APPIAN-STRATUM-MIB.py | 06de6f8880fa3548a8b448db96e72c44e32cc272 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 19,741 | py | #
# PySNMP MIB module APPIAN-STRATUM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/APPIAN-STRATUM-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:23:58 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
1b43082d768a96c889d523cd9c34162a613e63b8 | 5c883c87f337be7ffd52f49f0a4e6c72bbd58932 | /apps/almacenes/migrations/0026_auto_20170322_1009.py | 6bc93dfdfc7667e77ff7d1173f2e6f96fe4acf6f | [] | no_license | DARKDEYMON/Tesis-2-Vidaurre-J.C. | f1b0d8e8a593a9d4a585bdd14b21d4809d55ce9f | 4299cea2e990ee798b02724849d747bfd558b97d | refs/heads/master | 2021-06-20T09:25:53.273225 | 2017-05-25T22:20:31 | 2017-05-25T22:20:31 | 65,408,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,348 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-03-22 14:09
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('almacenes', '0025_auto_20161029_1535'),
]
operations = [
migrations.AlterFi... | [
"darkdeymon04@gmail.com"
] | darkdeymon04@gmail.com |
a7a10c869e455f85d0277f3c8391df0683381241 | 742f8aa424b5ef4d9865dee98bebbd5f741a3831 | /tests/test_pregel.py | 8c876136c50ef8db82da2cb79530357b615bc4f3 | [
"MIT"
] | permissive | TZubiri/python-arango | a8be86f2cf9190c2d74d99eb2ef8f5f48b9f45c6 | 232c2d09c7bf9b5e0b71b7ab16fbce6682db383d | refs/heads/master | 2020-04-04T22:24:03.898075 | 2018-11-06T03:59:54 | 2018-11-06T03:59:54 | 156,322,851 | 0 | 0 | null | 2018-11-06T03:51:04 | 2018-11-06T03:51:03 | null | UTF-8 | Python | false | false | 1,823 | py | from __future__ import absolute_import, unicode_literals
from six import string_types
from arango.exceptions import (
PregelJobCreateError,
PregelJobGetError,
PregelJobDeleteError
)
from tests.helpers import (
assert_raises,
generate_string
)
def test_pregel_attributes(db, username):
assert ... | [
"joohwan.oh@outlook.com"
] | joohwan.oh@outlook.com |
6244ec064900b8dd809f7c79a459e071ac1fbc06 | cfa26ab2d83f25f88c61b040e385a8e2b80fad49 | /cmsplugin_cascade/cms_plugins.py | 8f455e4e6ff33669d4cff5e3df130c47f22dc72d | [
"MIT"
] | permissive | jrief/djangocms-cascade | e952ed65c5f8ec14a2d81b424b0797bc5a87413d | 6e4d5ec7d5cbcc076aa1ea9e16b7c55c07f0ef25 | refs/heads/master | 2023-07-07T07:40:20.368478 | 2022-09-13T14:52:53 | 2022-09-13T14:52:53 | 12,973,900 | 143 | 95 | MIT | 2022-05-11T08:16:45 | 2013-09-20T13:20:48 | Python | UTF-8 | Python | false | false | 1,088 | py | import sys
from importlib import import_module
from django.core.exceptions import ImproperlyConfigured
from . import app_settings
for module in app_settings.CASCADE_PLUGINS:
try:
# if a module was specified, load all plugins in module settings
module_settings = import_module('{}.settings'.format(m... | [
"jacob.rief@gmail.com"
] | jacob.rief@gmail.com |
8bdad359dcf597e9a4a118fba408d6d99665be07 | 0102d0999e74deada2aacb8ccfcdc5896a2064a8 | /_request.py | 813f53258f15457ff6a4976a513774c2ea72de36 | [
"Apache-2.0"
] | permissive | CashWin2020/VideoCrawlerEngine | 1b09921add00bb492c8b01dcb0569f5d20c7bed1 | 175bb488dbf29cb0a7d7d15a93536889d022d1fb | refs/heads/master | 2022-10-20T22:24:12.450461 | 2020-06-16T14:32:28 | 2020-06-16T14:32:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,112 | py | from functools import wraps, partial
from inspect import getfullargspec, iscoroutinefunction
from context import impl_ctx
from utils import current_time
from worker import get_worker
from traceback import format_exc
import threading
from queue import Queue
import re
class Request:
""" Request 请求对象是用来描述从脚本的开始到完成过... | [
"zzsaim@163.com"
] | zzsaim@163.com |
7ec4112133d33b3aff667aac27a9a4b8451f92f9 | fbb53a3366a0f10a7eb8070620cacec5101459fb | /company/m-solutions2019/c.py | 16ee9cebc54f31595a786fb0932d2b433b17b306 | [] | no_license | penicillin0/atcoder | 272bf0b9f211907c9f7f2491335f0d34f2dcd43b | 827d5cdc03531d48a44e021bd702f80b305f64d6 | refs/heads/master | 2023-08-05T09:43:50.114694 | 2021-09-20T09:21:07 | 2021-09-20T09:21:07 | 256,395,305 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | N = int(input())
par = [-1] * N # 親だった場合は-(その集合のサイズ)
if N == 1:
print(0)
# xがどのグループに属しているか調べる
def find(x):
if par[x] < 0:
return x
else:
par[x] = find(par[x])
return find(par[x])
# 自分のいるグループの数
def size(x):
return -par[find(x)]
# xとyの属する集合を併合
def unite(x, y):
# 根を探す
... | [
"a_nakamura@a-nakamuras-MacBook-Air-4.local"
] | a_nakamura@a-nakamuras-MacBook-Air-4.local |
3623f7dea2f82a675fd99637d86022f3c7006302 | 41986b7a1b95784f0a6256ae24d5942c70ced4d7 | /prod/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/gkehub/v1/gkehub_v1_messages.py | a3f4adacead73fa41eb1423f39268a2fe43b0d51 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | wakabayashi-seiya/terraform_gcp | ed829a5a21d5d19d6663804ee5d5f7f3d23b4ec4 | f757e56779f33c2fabd8a8eed9c51ff0b897a38f | refs/heads/master | 2021-07-07T21:51:35.993317 | 2020-03-11T05:42:57 | 2020-03-11T05:42:57 | 239,411,772 | 0 | 1 | null | 2021-04-30T21:05:04 | 2020-02-10T02:32:04 | Python | UTF-8 | Python | false | false | 44,251 | py | """Generated message classes for gkehub version v1.
"""
# NOTE: This file is autogenerated and should not be edited by hand.
from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding
from apitools.base.py import extra_types
package = 'gkehub'
class AuditConfig(_messages.Me... | [
"e1517234@soka-u.jp"
] | e1517234@soka-u.jp |
f151e8badd6b1cb50965d9bd65e92835c2ea1db8 | e5abf2028b9e0b39a5bf905f14c401d3645bdb9a | /display.py | 2bcbbfdf5758468c37a0db038d2334e6b808bfba | [
"MIT"
] | permissive | vieirafrancisco/car-adventure | 2d2723e44fcb216f2ea37c1b35a1ec5f6f6fba8a | 79a86d830699f131fd4e4aa2031969aa7eae1a50 | refs/heads/master | 2020-03-30T00:01:11.845899 | 2018-09-28T22:27:57 | 2018-09-28T22:27:57 | 150,501,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | import pygame
class DisplaySurface:
def __init__(self, width, height):
self.width = width
self.height = height
self._size = (self.width, self.height)
self._display_surface = pygame.display.set_mode(self._size, pygame.HWSURFACE | pygame.DOUBLEBUF)
def get_display_surface(self):
... | [
"fvcneto.master98@gmail.com"
] | fvcneto.master98@gmail.com |
6f310f436ac9574a69159a506b99a3faa814ef2b | f9b6c56cec99eb2147777c4448b4b8ad757ff074 | /longest_harmounious_subsequence.py | 1f2b1f59cd7bdf90c4e192bd21e008bf7b4f26d3 | [] | no_license | zhrmrz/longest_harmounious_subsequence | 268676d4c1d7f76cddb10fcaa42fb8718689f3c6 | 71ddac4edd4d3948d462aae430ba7154f4aa921f | refs/heads/master | 2020-08-29T03:39:23.468859 | 2019-10-27T20:34:52 | 2019-10-27T20:34:52 | 217,913,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from collections import Counter
class Sol:
def longest_harmounious_subsequence(self,nums):
max_subarr=0
freq=Counter(nums)
for num,count in freq.items():
if num+1 in freq:
max_subarr=max(max_subarr,count+freq[num+1])
| [
"noreply@github.com"
] | zhrmrz.noreply@github.com |
611a2b09ca927db5d34e83c7de96170e37583a7a | fdc0b72a3782a06952df4d723783dfa1bae65753 | /admin_request_for_information/models/__init__.py | a840dc8f0a87fc036e57720fc0f08c1b21d27938 | [] | no_license | Denbho/vendor_portal | 0878ad82bf3c40d38f6e123f6b25a358bfebce4f | 341a7ca77cbd310f3835d4b43de5012354a307c5 | refs/heads/main | 2023-04-19T21:26:56.115346 | 2021-05-17T04:16:53 | 2021-05-17T04:16:53 | 364,744,567 | 2 | 0 | null | 2021-05-06T04:34:51 | 2021-05-06T00:52:09 | Python | UTF-8 | Python | false | false | 62 | py | # -*- coding: utf-8 -*-
from . import request_for_information
| [
"dennisboysilva@gmail.com"
] | dennisboysilva@gmail.com |
81ca32d7661a077e47039a5f78868c9fc5d381a8 | 66fda6586a902f8043b1f5e9532699babc7b591a | /lib_openshift/models/v1_build_config_status.py | fd78c8cbca2d5966a2f4258b5b0d00f8861062a6 | [
"Apache-2.0"
] | permissive | chouseknecht/lib_openshift | 86eff74b4659f05dfbab1f07d2d7f42b21e2252d | 02b0e4348631e088e72a982a55c214b30a4ab9d9 | refs/heads/master | 2020-12-11T05:23:17.081794 | 2016-07-28T20:15:39 | 2016-07-28T20:15:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,610 | py | # coding: utf-8
"""
OpenAPI spec version:
Generated by: https://github.com/swagger-api/swagger-codegen.git
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
... | [
"jdetiber@redhat.com"
] | jdetiber@redhat.com |
b13f38f3e8d8a5795b2d0d326e3fc93575f01d54 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02577/s751792218.py | eea7ba3706c9f7076b7627d00c4c3aa5626f695a | [] | 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 | 122 | py | N = input()
N_list = []
for i in N:
N_list.append(int(i))
if sum(N_list) % 9 == 0:
print("Yes")
else: print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d080a80308e02553e9baac9420d73834f92a2979 | c026581b6c3855c75e7c9f9c6397acadc7833fb7 | /idm_core/name/urls.py | 5778785362e85f4443b71c0f79b76a31eb6f7cbe | [] | no_license | mans0954/idm-core | 5734fd08a3c8c5deaec62167c9470336f0c6c6ef | 2a3cf326e0bb3db469e2b318b122033a7dd92b83 | refs/heads/master | 2021-07-24T04:13:47.021951 | 2017-11-02T22:09:25 | 2017-11-02T22:09:25 | 109,317,967 | 1 | 0 | null | 2017-11-02T20:56:01 | 2017-11-02T20:55:58 | null | UTF-8 | Python | false | false | 745 | py | from django.conf.urls import url
from . import views
uuid_re = '[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}'
urlpatterns = [
url(r'^name/$',
views.NameListView.as_view(), name='name-list-self'),
url(r'^(?P<identity_type>[a-z-]+)/(?P<identity_id>' + uuid_re + ')/name/$',
... | [
"alexander.dutton@it.ox.ac.uk"
] | alexander.dutton@it.ox.ac.uk |
37d18cddc7cd04f237cb183c58d0244a8489f42e | a9c3c0c958ed33646a6acfe97780d4939e1e0308 | /tensorflow/contrib/distribute/python/estimator_training_test.py | bd643bdbb4f4793433f41577484ae6545ba7d1bf | [
"Apache-2.0"
] | permissive | therladbsgh/tensorflow | 458fa3d34a48449845ded366cc8243fd177bfe49 | 9d5d35bf74c2dd4b65303a76b817fd1cf060df9b | refs/heads/master | 2020-05-15T00:33:30.533332 | 2019-04-18T01:15:45 | 2019-04-18T01:30:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,119 | 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
5ad0428c695af2b019eeb2f0663b66e863d03a50 | c11c27b07086e97c633a833d37787474724bd2d2 | /src/ResNeXt/concateFeature.py | 6d8f98b7b69a10e8dff467812e4cacb8108ba6ef | [
"MIT"
] | permissive | willyspinner/High-Performance-Face-Recognition | d1826a73653dede6b43799439e4fb692f119c70b | c5caad61be97fd20f9c47a727278ff938dc5cc8f | refs/heads/master | 2020-06-22T16:36:29.663302 | 2019-07-19T09:41:47 | 2019-07-19T09:41:47 | 197,746,624 | 0 | 0 | MIT | 2019-07-19T09:42:00 | 2019-07-19T09:41:59 | null | UTF-8 | Python | false | false | 1,953 | py | import scipy.io as sio
import pickle
import numpy as np
import os
import numpy as np
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler
from scipy import spatial
from sklearn.externals import joblib
import time
reducedDim = 2048
pca = PCA(n_components = reducedDim, whiten = True)
p... | [
"noreply@github.com"
] | willyspinner.noreply@github.com |
35f3e6fc87bf0e774aa1fc4dd0a9fff46bc4aee3 | bd4dcd90d41aa228f0384c9ba03edd105a93d7ec | /products/migrations/0101_auto_20200221_2128.py | 40b496b06fcc159e8132ad5c55c7e06b1c94a954 | [] | no_license | deganoth/mu-shop | 0be0bb0cfa635986b37edbe371daf8373f09aefd | dc1a77ecf6217286c005d762b559fe3f61ef2f6d | refs/heads/master | 2023-02-17T08:23:36.339586 | 2023-01-10T17:51:21 | 2023-01-10T17:51:21 | 243,972,792 | 0 | 1 | null | 2023-02-15T23:10:09 | 2020-02-29T13:22:02 | Python | UTF-8 | Python | false | false | 5,567 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.24 on 2020-02-21 21:28
from __future__ import unicode_literals
from django.db import migrations
import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
('products', '0100_auto_20200221_2125'),
]
operations = [
... | [
"oliver.deegan@gmail.com"
] | oliver.deegan@gmail.com |
5762741a29ba36f2c36980cbe7c87cd3d2f89121 | a01e7f87a0088965e2e0a02476d2df12a49a1a18 | /package/tfi_helper/dhcp/hapack/dhcpparser.py | dea3a1526ea3c35f8b80c04e697d0a60a841bed7 | [] | no_license | gsrr/IFT_jerry | 0456a8a1fb98f84ad5c26dc36bdf32e2d85c750c | 4c2f6900dfd7ae7f6b3cc2150b1c1be236b4c95c | refs/heads/master | 2020-04-04T05:30:10.544252 | 2019-08-22T09:12:03 | 2019-08-22T09:12:03 | 48,145,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 686 | py | import argparse
class DHCPParser:
def __init__(self):
self.cmds = ['dhcp_test']
self.parser_dhcp = argparse.ArgumentParser(prog="dhcp", add_help=False)
self.parser_dhcp_test = argparse.ArgumentParser(prog="dhcp_test", add_help=False)
self.parser_dhcp_test.add_argument("-z", nargs="?... | [
"jerry.cheng@infortrend.com"
] | jerry.cheng@infortrend.com |
d3173858f10737bbb574b5291c639096bd42fdb8 | 1ebe5a07e7f6260c2c2ceb6ca00dcf2a0341e544 | /op_impl/built-in/ai_core/tbe/impl/power.py | e29e5eed1d10da730e4062ba4a475b68b162ebd6 | [] | no_license | gekowa/ascend-opp | f5e09905336d85f9974d555d03d37a75cb8185c1 | 5c28a2faf9d2a117ea6f0923efe35fcd53904dd2 | refs/heads/master | 2023-04-09T12:14:40.337104 | 2021-04-19T23:00:59 | 2021-04-19T23:00:59 | 359,620,865 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,024 | py | # Copyright 2019 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... | [
"gekowa@gmail.com"
] | gekowa@gmail.com |
9d82a9d1425b1deae0c45fc833fe73e80449e0b6 | 2b7c7e9b00ed9b2dbbac943ee4b79865a96d10de | /Figure_script/Figure_1.py | 7caa0f0d7080d155e2572b49ddd294af94fa11d9 | [] | no_license | YaojieLu/Plant_traits_inversion | ad973e60bb32717d9d718f774c2ec77433c38ced | ec83642ae2a2e6ef96502e58f8074bffdadfefe8 | refs/heads/master | 2021-06-21T15:22:00.225498 | 2020-12-13T22:12:21 | 2020-12-13T22:12:21 | 140,017,309 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | import pickle
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.lines import Line2D
from scipy import stats
# load traces
ts = pickle.load(open("../Data/45.pickle", "rb"))
params = ['alpha', 'c', 'g1', 'kxmax', 'p50', 'L']
true_values = [0.02, 16, 50, 7, -4.5, 2]
# figure
labels =... | [
"="
] | = |
8f28ab12e6205691d69253b9b16c31e06f857774 | b5cc6d7b5f7ccea36fce4eab961979404414f8b0 | /kent-report/py/beam_distances.py | 2cc89895ad6d3fed6c27470bb32f1dfd505d8989 | [] | no_license | MiroK/cutFEM-beam | adf0c925dbe64b370dab48e82335617450675f5d | 2fb3686804e836d4031fbf231a36a0f9ac8a3012 | refs/heads/master | 2021-01-21T23:54:32.868307 | 2015-02-14T13:14:59 | 2015-02-14T13:14:59 | 25,625,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,537 | py | from __future__ import division
from sympy import sin, cos, pi, sqrt, symbols, lambdify
from sympy.mpmath import quad
import numpy as np
x, y, s = symbols('x, y, s')
def eigen_basis(n):
'''
Return first n eigenfunctions of Laplacian over biunit interval with homog.
Dirichlet bcs. at endpoints -1, 1. Funct... | [
"miroslav.kuchta@gmail.com"
] | miroslav.kuchta@gmail.com |
1bd68140d32eb41f4a7e8552136f8d5ef1080f18 | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/pandas/tests/indexing/test_partial.py | 337ec683ee745d97ace410b4d302af252d40ba04 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 23,869 | py | """
test setting *parts* of objects both positionally and label based
TODO: these should be split among the indexer tests
"""
import numpy as np
import pytest
import pandas as pd
from pandas import DataFrame, Index, Period, Series, Timestamp, date_range, period_range
import pandas._testing as tm
class TestPartialS... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
a728bf9ae2c46a9eeba638b54da02ebb8ac8ddca | a35b24c8c3c5bdf861f3cda9396f2fa6795ec929 | /abc/abc037/a/main.py | bb4c99a18af37578e976b0d53202738d5e7c3592 | [] | no_license | Msksgm/atcoder_msksgm_practice | 92a19e2d6c034d95e1cfaf963aff5739edb4ab6e | 3ae2dcb7d235a480cdfdfcd6a079e183936979b4 | refs/heads/master | 2021-08-18T16:08:08.551718 | 2020-09-24T07:01:11 | 2020-09-24T07:01:11 | 224,743,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | def main():
a, b, c = map(int, input().split())
min_price = min(a, b)
max_price = max(a, b)
ans = (c // min_price)
ans += (c % min_price) // max_price
print(ans)
if __name__ == "__main__":
main()
| [
"4419517@ed.tus.ac.jp"
] | 4419517@ed.tus.ac.jp |
79f7198200be4d319c47ef26eb3c57f5f1be53d5 | 5cd0807f442e6d3890167c5d9c4715c32ee4dfcc | /Hello/product/admin.py | 0ac66c87b29eec67df5f5a9cf675bd28596b0216 | [] | no_license | udoy382/PythonForBeginners | 592b2890a71e6895c2db43dbaf39f08156ef5826 | 686f5e982ae40f149688a76ded53b90c6f17af8a | refs/heads/main | 2023-03-27T05:14:08.705961 | 2021-03-25T14:35:19 | 2021-03-25T14:35:19 | 351,468,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.contrib import admin
from .models import Product
admin.site.register(Product) | [
"srudoy436@gmail.com"
] | srudoy436@gmail.com |
9815087e80c3f0b15bf9a109a3263889e8a125ae | ae2c75fd7f9e86860ee013c8c05416fa9c688f1d | /manage.py | 94f12bedc46b2d514400712c428e7aefc1760406 | [] | no_license | crowdbotics-apps/new-app-chetna-soni--4500 | 733fc277bb085256867f1a8af29d1b444aa9aa86 | 50b03200b0fe8fa6b2b72214634a3beb6c5bf192 | refs/heads/master | 2023-05-27T22:30:32.627736 | 2020-05-13T13:57:29 | 2020-05-13T13:57:29 | 263,645,180 | 0 | 0 | null | 2021-06-12T18:03:30 | 2020-05-13T13:56:59 | Python | UTF-8 | Python | false | false | 645 | 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', 'new_app_chetna_soni__4500.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
13590eb83cedf7e78563f292ee34f03b3d739622 | a0a288a9563ed4519cfe9f9c24ecc41237753dbc | /thechronic/strange.py | 417876af3a2960256bd2b445292b60da0c62abbd | [
"MIT"
] | permissive | iluxonchik/the-chronic | 99b236456efb9c32dfb9e3978f9e2cc28910a03c | 4dd41ea1a96e4c5cb1741de02d55cf09b2e78979 | refs/heads/master | 2021-04-28T22:40:51.993595 | 2018-04-02T13:38:04 | 2018-04-02T13:38:04 | 77,719,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 696 | py | class Strange(object):
"""
Wrapper arround the built-in range() function, which returns str instead of
int on iteration.
Just like a range object, an instance of Srange can be iterated over
multiple times.
"""
def __init__(self, start, stop=None, step=1):
if stop is None:
... | [
"iluxon4ik@hotmail.com"
] | iluxon4ik@hotmail.com |
8a7f44524ce9a081def3a9a9ada89f66644202d9 | 05e634a232574f676434dfa8e4183f3d0a1a4bc9 | /tutorials/mobilenetv3_prod/Step1-5/mobilenetv3_ref/torchvision/transforms/autoaugment.py | d2317602b1e7662fe828258ffcda461867fe541f | [
"Apache-2.0"
] | permissive | PaddlePaddle/models | 67ac00d93c5255ac64a9d80ae5be2e8927e47cee | 8042c21b690ffc0162095e749a41b94dd38732da | refs/heads/release/2.4 | 2023-09-04T15:23:59.543625 | 2023-07-20T11:54:16 | 2023-07-20T11:54:16 | 88,868,842 | 7,633 | 3,597 | Apache-2.0 | 2023-09-05T23:23:54 | 2017-04-20T13:30:15 | Python | UTF-8 | Python | false | false | 12,501 | py | import math
import torch
from enum import Enum
from torch import Tensor
from typing import List, Tuple, Optional
from . import functional as F, InterpolationMode
__all__ = ["AutoAugmentPolicy", "AutoAugment"]
class AutoAugmentPolicy(Enum):
"""AutoAugment policies learned on different datasets.
Available po... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
4baf087e4e4c72d03eb1f4f5b7f52fbbaa305d56 | b71e91d4eb55b6826dbe378180aa7b2b8a717bdf | /Capitulo1/exerc4_3_v5.py | 1058a9e307d85293890de1402b022dd0572ac930 | [] | no_license | gustavopierre/think_python | 49a9ceb50f760b41f6fbac54a07f6b394aa8d637 | a3ad6e660db4e6ce2aa105f5084e585f95936867 | refs/heads/main | 2023-03-24T23:48:29.415573 | 2021-03-15T22:15:30 | 2021-03-15T22:15:30 | 348,137,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 336 | py | import turtle
import math
def arc(t, r, angle):
n = int(2*math.pi*r/10)
x = int(n*angle/360)
for count in range(x):
t.fd(10)
t.lt(360/n)
print(f'r = {r}')
print(f'angle = {angle}')
print(f'n = {n}')
print(f'x = {x}')
bob = turtle.Turtle()
print(bob)
arc(bob, 100, 270)
tu... | [
"gustavopierre@gmail.com"
] | gustavopierre@gmail.com |
6e02a4cd2c2891c084f93dad75871c179905debf | b54097ce251925a82e591a08ae625fa884500b9c | /tests/test_github.py | e942b6bfaabe6db425870e1377356785c841cac2 | [
"BSD-3-Clause"
] | permissive | johnnoone/aiovault | b45b576cfb30570b1bbe9ab018a3247156dbefea | 03e1bfb6f0404dcf97ce87a98c539027c4e78a37 | refs/heads/master | 2021-01-10T19:56:50.715283 | 2015-07-10T21:15:21 | 2015-07-10T21:15:21 | 35,452,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py | from aiovault import Vault, LoginError
from conftest import async_test
import pytest
@async_test
def test_github_raw_loading(dev_server):
client = Vault(dev_server.addr, token=dev_server.root_token)
response = yield from client.read('/sys/auth/github/login',
params={"hel... | [
"clint.northwood@gmail.com"
] | clint.northwood@gmail.com |
d36a0fd44877c71c01b65bf4986938b78a9d64dc | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/remove_invalid_submissions.py | bea3c87a9227a23ef93473ae7d1cd253ca981bc3 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 2,261 | py | import os
from collections import Counter
import shutil
import sys
import argparse
import tempfile
# for example call this script on hamming from exercism_data directory like: python remove_invalid_submissions.py "ruby/hamming/" "filtered-submissions/" "compute"
parser = argparse.ArgumentParser(description='Filter an... | [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
b80cff1f63fc85e2e367363d8d4217c52f1bcb9c | 3e3741d9ea06f1dcd560e27145256bd3177bed14 | /01_py基础/第2周/day01/test05.py | 0b0877d5b07aa6ba958a21bc84e6b7a6d5a0890e | [] | no_license | Lousm/Python | 778bc730db09ab135bf53c7b62af29df2407199a | d3f19600012b3576cd5d58df510c17590fcaec14 | refs/heads/master | 2020-03-26T16:40:01.188306 | 2018-11-06T03:56:20 | 2018-11-06T03:56:20 | 145,116,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | a = [i*10 for i in range(1, 13)]
b = [i*2 for i in range(1, 13)]
def sy(a, b):
c = []
for i in range(len(a)):
c.append(a[i]+b[i])
return c
c = sy(a, b)
print(c)
| [
"mr_lousm@163.com"
] | mr_lousm@163.com |
1b6b591a2a8ad31a5c1bd110be072f800865522b | e838ea567fe5216bd83b72d5cc549363a666ac3d | /community/migrations/0001_initial.py | 756f713d6f763cc2a681b7383369ae2c3dc63f28 | [] | no_license | iuriramos/swim-registry | f7ffee9a57b92021e7066820249092d1558a944d | 7c71d294b5aa7cb40e01ed559e2fcb81d2e1f43a | refs/heads/master | 2021-09-13T20:22:29.624535 | 2018-05-03T21:30:26 | 2018-05-03T21:30:26 | 85,312,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,544 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-05-18 18:20
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):
initial = True
dependencies = [
migratio... | [
"iuri.srb@gmail.com"
] | iuri.srb@gmail.com |
b46422a949e65f9e0a70a77877dc9dc67c456dbf | ff439153e551f58850ecfb32d1b067c9a5d7405d | /krcal/core/ltmaps_test.py | 9a01f3bf67925c9760722ab399af3e8c2dc0ae63 | [] | no_license | jmhaefner/ICAROS | 79d18b9f372e0d8cd180d9c4ba7572d9ec1efcf3 | 4477157abd9ab5df42a28012c167d9e0a9a1ce5a | refs/heads/master | 2021-08-06T14:27:50.179501 | 2021-06-24T19:31:29 | 2021-06-24T19:31:29 | 167,604,724 | 0 | 1 | null | 2019-01-25T19:50:55 | 2019-01-25T19:50:54 | null | UTF-8 | Python | false | false | 8,249 | py | import os
import pandas as pd
import numpy as np
from invisible_cities.io.dst_io import load_dsts
from krcal.core.core_functions import time_delta_from_time
from krcal.core.analysis_functions import kr_event
from krcal.core.analysis_functions import event_map
from krcal.core.analysis_functions import ... | [
"jjgomezcadenas@gmail.com"
] | jjgomezcadenas@gmail.com |
e67dd18e17853bde0845ae57c5ee63c25d10828b | a657283ae5208611351606f35b05f46f63581d5c | /website/routes.py | 83404e7b3b86c06c28d0c50b12f5eb7115140b6e | [] | no_license | rrkas/handwriting-generation-flask | e17c71f0335231a6157c728c78ce4c30d7d6df61 | 049091b1a3d341af0ce50e07d484c1bbf98fd3d8 | refs/heads/master | 2023-07-14T22:12:56.482115 | 2021-08-29T10:14:56 | 2021-08-29T10:14:56 | 391,993,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,975 | py | import io
import os
import uuid
import pywhatkit as kit
from flask import *
from werkzeug.datastructures import FileStorage
from website import app
output_dir = os.path.join('website', 'static', 'output')
if not os.path.exists(output_dir):
os.mkdir(output_dir)
allowed_file_ext = ['txt']
def allowed_file(filen... | [
"rrka79wal@gmail.com"
] | rrka79wal@gmail.com |
611500bc11e4bf0093b270c1e76a4ec33c642061 | e61e664d95af3b93150cda5b92695be6551d2a7c | /vega/security/load_pickle.py | 206511004faf87ad32800052b332f62e12f296b8 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | huawei-noah/vega | 44aaf8bb28b45f707ed6cd4e871ba70fc0c04846 | 12e37a1991eb6771a2999fe0a46ddda920c47948 | refs/heads/master | 2023-09-01T20:16:28.746745 | 2023-02-15T09:36:59 | 2023-02-15T09:36:59 | 273,667,533 | 850 | 184 | NOASSERTION | 2023-02-15T09:37:01 | 2020-06-20T08:20:06 | Python | UTF-8 | Python | false | false | 1,812 | py | # Copyright (C) 2020. Huawei Technologies Co., Ltd. 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... | [
"zhangjiajin@huawei.com"
] | zhangjiajin@huawei.com |
486752af90a81014c8a2c8b798d2c1b5fc1c35eb | 9dbe507104b03275b1ed5dc91a4aaa2ae6af4f51 | /hearthbreaker/cards/minions/shaman.py | 800985cec4d413a7eaac702479486e1dcdcc24bf | [
"MIT"
] | permissive | bussiere/hearthbreaker | 55fc7c77d8ffb37cda2b5d9afb7ccd44c250702c | 074e20de3498d078877e77b3603580b511e8522b | refs/heads/master | 2021-01-16T22:13:32.110626 | 2014-12-17T13:37:32 | 2014-12-17T13:37:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,946 | py | from hearthbreaker.tags.action import ChangeAttack, Draw, ChangeHealth, Damage, Give, Windfury
from hearthbreaker.tags.base import Aura, Effect, Battlecry
from hearthbreaker.tags.condition import Adjacent, HasOverload
from hearthbreaker.tags.event import TurnEnded, CardPlayed
from hearthbreaker.tags.selector import Min... | [
"daniel.yule@gmail.com"
] | daniel.yule@gmail.com |
8277d4f471be2dee3c2676a6bf9cbd30cf236a64 | c0ad282ab743a315e2f252a627933cb168434c1d | /models/agreement/type_prior.py | bde43251219d85d73f078c3d0ba4fad4980ae25c | [
"MIT"
] | permissive | AlexKuhnle/ShapeWorld | 6d1e16adc94e860abae99ade869f72575f573bc4 | e720bf46e57fc01326d04d639fa6133d9c12158f | refs/heads/master | 2021-07-09T00:02:33.808969 | 2021-04-19T11:10:52 | 2021-04-19T11:10:52 | 80,815,972 | 58 | 28 | MIT | 2021-04-19T11:10:53 | 2017-02-03T09:40:19 | Python | UTF-8 | Python | false | false | 2,722 | py | from models.TFMacros.tf_macros import *
def model(model, inputs, dataset_parameters):
caption = Input(name='caption_rpn', shape=dataset_parameters['caption_rpn_shape'], dtype='int', tensor=inputs.get('caption_rpn'))()
caption_length = Input(name='caption_rpn_length', shape=(), dtype='int', tensor=inputs.get(... | [
"aok25@cl.cam.ac.uk"
] | aok25@cl.cam.ac.uk |
952ecae4e414db6b616a055126571c0e7b129cdf | 8b427d0a012d7dbd3b49eb32c279588f9ebd4e6e | /05 排序和搜索/binary_search.py | 33fe499fccf320c9b9bcc7589236e441fdbcd076 | [] | no_license | chenyang929/Problem-Solving-with-Algorithms-and-Data-Structures-using-Python-Notes | e9f1b324d86963333edaf855fdb9e126e59e8542 | aed976e020147fe30a8e0bb708dfbe4bab4c15f7 | refs/heads/master | 2020-03-18T02:46:12.385967 | 2018-07-24T08:24:41 | 2018-07-24T08:24:41 | 134,206,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | # binary_search.py
# 循环版
def binary_search(lst, item):
low = 0
high = len(lst) - 1
while low <= high:
mid = (low + high) // 2
guess = lst[mid]
if item == guess:
return mid
elif item > guess:
low += 1
else:
high -= 1
return -1
... | [
"chenyang929code@gmail.com"
] | chenyang929code@gmail.com |
1c18a6ddc3944da8e2ba5f5ef396825ac6423869 | 6e13f7fdae0144dd0397031c59397b0372f0872a | /horch/layers/_se.py | 43f7469184fbc7b507af7080e15eb8071fc1c974 | [] | no_license | sbl1996/horch | 02e9996f764748c62648464d58318ceff92c87ed | 50d4f4da241a5727e3924a36fbc730dc61284904 | refs/heads/master | 2020-03-20T05:00:43.444092 | 2018-07-27T00:14:45 | 2018-07-27T00:14:45 | 137,201,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | import horch as H
from ._linear import Linear
from ._module import Module
class SE(Module):
"""Squeeze and Excitation Module
"""
def __init__(self, channels, reduction_ratio=16):
super().__init__()
self.channels = channels
self.reduction_ratio = reduction_ratio
reduced_channels =... | [
"sbl1996@126.com"
] | sbl1996@126.com |
ffd7b753f12a8fff9b52468226a6155d9a60a7c9 | 7bd9be7f25be80791f9220b62025f06170273293 | /end-plugins/pycerebro/examples/excel_export.py | 7ccaaa79c69f3f70111f28d64cfa01c407d3180a | [] | no_license | cerebrohq/cerebro-plugins | ab46b4844adcb12c51d14e21f2c0d8b758b0bb57 | e2e0f97b548ef22957e13d614200027ba89215e0 | refs/heads/master | 2021-11-12T16:25:48.228521 | 2021-10-22T11:25:58 | 2021-10-22T11:25:58 | 143,178,631 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 7,156 | py | # -*- coding: utf-8 -*-
"""
Пример экспорта задачи(проекта) со всеми вложенными задачами в Excel.
Этот пример демонстрирует экспорт свойств задачи в Excel.
Для записи в формат Excel используется сторонний пакет xlsxwriter (https://xlsxwriter.readthedocs.org/)
Для преобразования текста в формате html используется сто... | [
"41910371+cerebroSupport@users.noreply.github.com"
] | 41910371+cerebroSupport@users.noreply.github.com |
c478c0d6aed9b07eae4b4ea4776e7c073d3b4ace | e6a5fce33aad4fcba37842e135a51ba441b06f48 | /Python/Errors and Exceptions/Exceptions.py | 5f5278b64b8e82541685d00cec1a244dd307ddce | [
"MIT"
] | permissive | pavstar619/HackerRank | 6710ddd450b06fbb69da5abad9f570e5e26bbbc0 | 697ee46b6e621ad884a064047461d7707b1413cd | refs/heads/master | 2020-06-18T18:53:53.421685 | 2020-02-18T09:35:48 | 2020-02-18T09:35:48 | 196,408,726 | 0 | 0 | MIT | 2019-07-11T14:18:16 | 2019-07-11T14:18:16 | null | UTF-8 | Python | false | false | 438 | py | class Main:
def __init__(self):
self.t = int(input())
for i in range(0, self.t):
try:
self.n, self.m = map(int, input().split())
print(self.n // self.m)
except ZeroDivisionError as e:
print("Error Code:", e)
except V... | [
"mokit.aust@gmail.com"
] | mokit.aust@gmail.com |
7c9e8b7bfead44bee572fa7070396b90066e9a6e | 746a9c1f65674cd5bcdce6dbd1971b6a16345f9d | /account/forms.py | e907a732e6e142794a14079dcb07a70bcd7fc718 | [] | no_license | mazulo/bookmarks | 4dc25dc09772663c65698d3cc9f5b653fd409ba9 | 5c2ce3c3ad811466c63f7b0f3a21bf33a6a28f5e | refs/heads/master | 2021-01-10T07:23:37.185414 | 2016-03-23T06:40:53 | 2016-03-23T05:40:53 | 54,158,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,002 | py | from django import forms
from django.contrib.auth.models import User
from .models import Profile
class LoginForm(forms.Form):
username = forms.CharField()
password = forms.CharField(widget=forms.PasswordInput)
class UserRegistrationForm(forms.ModelForm):
password = forms.CharField(label='Password', w... | [
"pmazulo@gmail.com"
] | pmazulo@gmail.com |
0ae53c0486a272162874ca46f41ecb302e6654f0 | a9d65a3fb6e990c5bb250cfde44220182f6cd430 | /indra/tools/analyze_ontology.py | 2f8bda343d488ebd0f277e9aedab4e858bfe2742 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | dianakolusheva/indra | 66e6c69b762922d4f79757e388b693f76b3fcd56 | 205a719c5b1ff2333e415476b4136e8c57c22949 | refs/heads/master | 2022-03-14T23:10:57.718762 | 2022-02-11T14:58:12 | 2022-02-11T14:58:12 | 170,338,649 | 0 | 0 | BSD-2-Clause | 2019-02-12T15:09:36 | 2019-02-12T15:09:30 | Python | UTF-8 | Python | false | false | 1,402 | py | from collections import Counter, defaultdict
import networkx
from indra.ontology.bio import bio_ontology
def plot_problem(problem):
import matplotlib.pyplot as plt
plt.ion()
plt.figure()
G = bio_ontology.subgraph(problem)
pos = networkx.spring_layout(G)
networkx.draw_networkx(G, pos, node_colo... | [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
d89ebcab0f970fc4bf36d21e6205b3316c25af4a | a8079efec61894fb6082986e66c4c146757fc895 | /src/__main__.py | 03f618d7b50266b668d1b471f5e62afc4edc2244 | [] | no_license | gsdlab/ClaferSMT | aaa5bd0c0c72f6a9b156529a871cced40e006cba | d8240b4503107641d62f7f913ebe50a88182d9a3 | refs/heads/master | 2021-01-16T21:23:22.838308 | 2015-08-20T00:24:54 | 2015-08-20T00:24:54 | 9,037,961 | 2 | 1 | null | 2018-08-21T13:48:02 | 2013-03-26T19:00:12 | TeX | UTF-8 | Python | false | false | 127 | py | '''
Created on Jul 10, 2014
@author: ezulkosk
'''
from front import ClaferRun
if __name__ == '__main__':
ClaferRun.main() | [
"ezulkosk@gsd.uwaterloo.ca"
] | ezulkosk@gsd.uwaterloo.ca |
2e92fd124092bb606c4af2b949bf986b8f0f39e0 | 33c6b5d9f1852ac878aada3eb646ac2eabc6b705 | /junk/users2/signals.py | 490388c9433b9bb4b0c0de06090ea7a91ecbb2b2 | [] | no_license | detalikota/trading2 | 3c0e4308f45a620fe4c034403143cf68dd16db9c | 1aaafb6bf7d304be1896efb5ea0963fc40893b23 | refs/heads/master | 2023-02-04T14:03:10.860410 | 2020-12-17T14:28:12 | 2020-12-17T14:28:12 | 313,858,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | from django.db.models.signals import post_save
from django.contrib.auth.models import User
from django.dispatch import receiver
from .models import Profile2
@receiver(post_save, sender=User) #when the user is saved - send this signal
def create_profile(sender, instance, created, **kwargs):
if created:
Pr... | [
"detalikota@gmail.com"
] | detalikota@gmail.com |
0b34b5732a18165fbcd70164b4c2648ea5eaeeb0 | 661b6c3d0d2344f86ed126d9b4f6f10c0d9c630b | /track/admin.py | 1d2bcc9fdd717c1e4f90db9346add4da60c66ec6 | [] | no_license | Sababa123/activity_tracker | 69eae58dbbf7523dcc144d3f05f6952cc4e4225b | 7c5e2c83e5fc76f8c9a2c5f58569ed92c9eb4421 | refs/heads/master | 2020-06-25T17:43:14.321638 | 2019-08-11T21:45:16 | 2019-08-11T21:45:16 | 199,380,581 | 0 | 0 | null | 2019-07-29T04:53:25 | 2019-07-29T04:53:24 | null | UTF-8 | Python | false | false | 175 | py | from django.contrib import admin
from .models import Activity, ActivityTracker
# Register your models here.
admin.site.register(Activity)
admin.site.register(ActivityTracker) | [
"tahirs95@hotmail.com"
] | tahirs95@hotmail.com |
7b15c3a5d2060f2149607d1ee7ea040fb35c2eb7 | 913fb9ec1e709a5140676ba7b2371b1976afca72 | /seqPeaks/mirrorPeaks.py | db673bb1b55f332087c53b7b17d7dc5e614e6de3 | [] | no_license | cgreer/ResearchScripts | 171cfe9555ea06fdeb91084c12d07d1b45a2335c | 1107803bb1459d6b6e1dfb1a89679d2b6fd49062 | refs/heads/master | 2016-09-05T10:43:19.090247 | 2012-04-12T21:38:11 | 2012-04-12T21:38:11 | 1,673,080 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | import cgPeaks
import compareData as compare
import math
import bioLibCG as cg
knowns = compare.tccFileToList('mouseKnownMirs.tcc', 0)
eLevels = []
for known in knowns:
chrom, strand, start, end = cg.tccSplit(known, True) #text...
if strand == '1':
strand = '-1'
else:
strand = '1'
oppTcc = cg.makeTcc(chrom,... | [
"chrisgreer88@gmail.com"
] | chrisgreer88@gmail.com |
113f2aeb9ba582a085e977d64df0240587c81645 | 5c5e7b03c3373e6217665842f542ca89491290ff | /2016/day18.py | b5a92f12f811a0ccb9b0c88bae32c9802f1ce21c | [] | no_license | incnone/AdventOfCode | 9c35214e338e176b6252e52a25a0141a01e290c8 | 29eac5d42403141fccef3c3ddbb986e01c89a593 | refs/heads/master | 2022-12-21T21:54:02.058024 | 2022-12-15T17:33:58 | 2022-12-15T17:33:58 | 229,338,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | from getinput import get_input
def parse_input(s):
return [True if c == '^' else False for c in s]
def next_trap_row(s):
next_row = [s[1]]
next_row += [(s1 and not s2) or (not s1 and s2) for s1, s2 in zip(s, s[2:])]
next_row += [s[-2]]
return next_row
def generate_traps(init_row, num_rows):
... | [
"incohatus.none+git@gmail.com"
] | incohatus.none+git@gmail.com |
f1da8fb43bb78b4f502b576a1f67c671e6e1abed | 1a4bc1a11fdb3f714f22f5e0e826b47aa0569de2 | /lab/lab04/tests/q1_3.py | 79768f8de727ed291ba49dffc59b456e772584a8 | [] | no_license | taylorgibson/ma4110-fa21 | 201af7a044fd7d99140c68c48817306c18479610 | a306e1b6e7516def7de968781f6c8c21deebeaf5 | refs/heads/main | 2023-09-05T21:31:44.259079 | 2021-11-18T17:42:15 | 2021-11-18T17:42:15 | 395,439,687 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | test = { 'name': 'q1_3',
'points': None,
'suites': [{'cases': [{'code': ">>> disemvowel('datasceince')\n'dtscnc'", 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
| [
"taylorgibson@gmail.com"
] | taylorgibson@gmail.com |
7e2a67db930a6ea17d2bd8cc7a88bf10d46aef32 | 0fde82bf8a529c1045595b0f451dc7005a9d90cf | /generate/test.py | 23d7846f745c166c7e2e9d872e50a0103ee75942 | [
"MIT"
] | permissive | cosinekitty/astronomy | 18ccec1d62bbae24a8424b3eb807f4b3b97c04a1 | 056076b85aa591ba756ef8a24fc017ddb3b3029b | refs/heads/master | 2023-09-04T18:00:34.676849 | 2023-08-28T19:20:08 | 2023-08-28T19:20:08 | 180,022,816 | 305 | 56 | MIT | 2023-08-28T19:20:10 | 2019-04-07T20:55:20 | C | UTF-8 | Python | false | false | 159,205 | py | #!/usr/bin/env python3
import sys
import math
import re
import os
from itertools import chain
sys.path.append('../source/python')
import astronomy
#-----------------------------------------------------------------------------------------------------------
Verbose = False
SECONDS_PER_DAY = 86400.0
MINUTES_PER_DAY = 14... | [
"cosinekitty@gmail.com"
] | cosinekitty@gmail.com |
44c7ea4c09cf76c997f45dc2c463741f3ba3af03 | 5f6425e9d83b57b864e48f227e1dc58356a555c0 | /utils/palettes/personalized/piotr_kozlowski.py | 8f12ab59b92e28ce4bf7bd066c55b145ec16a2f9 | [
"MIT"
] | permissive | jan-warchol/selenized | b374fa7822f281b16aa8b52e34bd1e585db75904 | df1c7f1f94f22e2c717f8224158f6f4097c5ecbe | refs/heads/master | 2023-06-22T09:37:02.962677 | 2022-09-12T20:24:40 | 2022-09-12T20:24:40 | 45,570,283 | 663 | 58 | MIT | 2023-04-18T09:33:22 | 2015-11-04T22:00:52 | Emacs Lisp | UTF-8 | Python | false | false | 217 | py | import selenized_base
name = 'Piotr Kozlowski'
palette = selenized_base.generate_palette(
background=(97, 0, 8),
foreground=(25, -6, -6),
saturation=1.4,
accent_offset=5,
accent_l_spread=30,
)
| [
"jan.warchol@gmail.com"
] | jan.warchol@gmail.com |
dac13f5e5e05cde9a0e794a85a9b310f0cb35528 | bc5f2a7cce6093ba1f5785b02215df34d7e48a68 | /src/YYOwnBlog/settings.py | e80d47fc13792931076af62f165026ea519a18bb | [] | no_license | congyingTech/YYOwnBlog | 5b84bfd1cb7884f323ec76a67ec26bb1afc8a406 | 57718ba3363385ac4da0840f56d7cd15f903d512 | refs/heads/master | 2021-01-20T20:24:43.736682 | 2016-06-17T03:20:36 | 2016-06-17T03:20:36 | 61,342,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,290 | py | """
Django settings for YYOwnBlog project.
Generated by 'django-admin startproject' using Django 1.9.6.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
... | [
"congyingTech@163.com"
] | congyingTech@163.com |
452f266344d14193f6028c183b1c1184c8728329 | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/ltl_maxplus/f3/maxplus_24_91.py | 1be82cb21b86b50ca49efd9cc197df337fc8d3d4 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,763 | py |
from collections import Iterable
from mathsat import msat_term, msat_env
from mathsat import msat_make_true, msat_make_false
from mathsat import msat_make_constant, msat_declare_function
from mathsat import msat_get_rational_type
from mathsat import msat_make_and as _msat_make_and
from mathsat import msat_make_or as _... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
45297b843b717fd571b9a542906a15e1a9b43bb3 | 8b3ca44ee3d990233e74655b7131d616094f70c2 | /experiments/sparsity/methylation_gm/gaussian_truncatednormal_hierarchical.py | 427b535bd7e7c6d03bb77c738acc2c5ee7ee563c | [] | no_license | zshwuhan/BMF_Priors | 8b8c54271285a72d2085a56a9475c0756f375e67 | 6a600da1c41f1ccde2f2ba99298b40e68fb9910a | refs/heads/master | 2021-05-13T19:10:07.203215 | 2017-12-01T13:30:21 | 2017-12-01T13:30:21 | 116,883,181 | 1 | 0 | null | 2018-01-09T23:36:13 | 2018-01-09T23:36:13 | null | UTF-8 | Python | false | false | 1,480 | py | '''
Measure sparsity experiment on the methylation GM dataset, with
the Gaussian + Truncated Normal + hierarchical model.
'''
project_location = "/Users/thomasbrouwer/Documents/Projects/libraries/"
import sys
sys.path.append(project_location)
from BMF_Priors.code.models.bmf_gaussian_truncatednormal_hierarchical impo... | [
"tab43@cam.ac.uk"
] | tab43@cam.ac.uk |
4e6151e08844e9f992a2200fb36b50f34d975023 | 9bff711e7e28f5c3b59d3faa9c0f851719dff4e6 | /blair/__init__.py | cfe408230df1f0ee7935709afce62772cba2fc14 | [] | no_license | crzeller11/Debiasing-Word-Embeddings | e61c46adc7440927030d8436ea9568710423d03a | 70de33a89be147a0091f6fb75c7e688f2db99564 | refs/heads/master | 2020-03-28T16:28:55.082077 | 2019-03-29T17:57:13 | 2019-03-29T17:57:13 | 148,699,831 | 0 | 1 | null | 2019-03-29T17:57:14 | 2018-09-13T21:23:45 | Python | UTF-8 | Python | false | false | 107 | py | from .evaluate import read_dataset_directory, score_embedding
from .src.embeddings import WrappedEmbedding
| [
"justinnhli@gmail.com"
] | justinnhli@gmail.com |
250692130016bd8b68bba47f883404dbe047de02 | c7b1d4037804c809687b6bd839c45f7da0ccaac8 | /proplot/config.py | c218b25feb1503dfe66b98466efde282dd829fa1 | [
"MIT"
] | permissive | gepcel/proplot | af03d4302d6a8cbaf88bc2032368d8240c7d19d3 | afeb7da4cd52f83e34bf3e2f8e781efa1dd2b763 | refs/heads/master | 2022-11-16T00:26:52.142575 | 2020-07-10T03:38:36 | 2020-07-10T03:38:36 | 278,497,577 | 0 | 0 | MIT | 2020-07-10T00:09:13 | 2020-07-10T00:09:12 | null | UTF-8 | Python | false | false | 62,496 | py | #!/usr/bin/env python3
"""
Tools for setting up ProPlot and configuring global settings.
See the :ref:`configuration guide <ug_config>` for details.
"""
# NOTE: The matplotlib analogue to this file is actually __init__.py
# but it makes more sense to have all the setup actions in a separate file
# so the namespace of t... | [
"lukelbd@gmail.com"
] | lukelbd@gmail.com |
77eae7de5545c636d596feec9e0fe110b7b5700a | bc441bb06b8948288f110af63feda4e798f30225 | /architecture_view_sdk/model/flowable_service/bpmn_end_event_pb2.py | 3c2b2fa877b300c5b615c5a2704c5007ff77e7ce | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,097 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: bpmn_end_event.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.proto... | [
"service@easyops.cn"
] | service@easyops.cn |
03bca080a7ade2f5c8e31f19c07701b55b95c6aa | 8f7c595f2b9d075a89417760b7fbf9abb1fecb72 | /tele_twitter.py | 8b5573134e70b914312a9c197b1313e688781062 | [
"MIT"
] | permissive | MainakMaitra/trading-utils | 555ed240a20b26d4876f1490fc8a2d9273231fc5 | 3e73091b4d3432e74c385a9677b7f7ca4192c67f | refs/heads/main | 2023-07-04T09:19:40.122188 | 2021-08-08T09:01:37 | 2021-08-08T09:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,825 | py | """
Twitter -> Telegram
"""
import logging
import os
import time
from argparse import ArgumentParser
from peewee import *
from common import uuid_gen
from common.environment import GROUP_CHAT_ID
from common.logger import init_logging
from common.tele_notifier import send_message_to_telegram
from common.twitter_api im... | [
"575441+namuan@users.noreply.github.com"
] | 575441+namuan@users.noreply.github.com |
3bcd4da0f4a0652b9ceae41db83ea03b41ab9201 | 99bfa15723593ea351191d82fac80e36ab25aab1 | /LeetCode/merge_interval.py | 602b47cb4dc68d07416d23bb801d695654ec3578 | [] | no_license | Kartavya-verma/Python-Projects | f23739ef29eab67a8e25569e3f7bf110e42576cb | 02ffe926a7ed82bc783e4c4034a2fa53d4d1a870 | refs/heads/master | 2023-06-22T07:59:39.595084 | 2021-07-18T15:51:55 | 2021-07-18T15:51:55 | 387,139,965 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | # interval = [[1,3],[2,6],[8,10],[15,18]]
interval = [[1,4],[4,5]]
n = interval.copy()
print(n)
res = []
v = []
for i in range(len(n)-1):
for j in range(len(n)):
print(n[i][1], n[i+1][0])
if n[i][1] > n[i+1][0]:
# print(n[i][1], n[i+1][0])
n[i].pop()
n[i].append(n... | [
"vermakartavya2000@gmail.com"
] | vermakartavya2000@gmail.com |
4df3ceca1f9d06815d43914cad8c76bf3d206085 | cd78d84441e69c1fc40b6a6e9e235e7cf6882454 | /python/48.rotate_image.py | 75ea51649a271ec6a48d11d85c9fa7c4a00e2bc0 | [] | no_license | buy/leetcode | 53a12d4e0298284a5a2034c88353d0dc195aa66c | da0e834e3f2e3016396fffc96ef943ab9ec58ea4 | refs/heads/master | 2021-01-13T01:48:01.176632 | 2015-06-14T06:17:17 | 2015-06-14T06:17:17 | 31,863,627 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # You are given an n x n 2D matrix representing an image.
# Rotate the image by 90 degrees (clockwise).
# Follow up:
# Could you do this in-place?
# /*
# * clockwise rotate
# * first reverse up to down, then swap the symmetry
# * 1 2 3 7 8 9 7 4 1
# * 4 5 6 => 4 5 6 => 8 5 2
# * 7 8 9 1 2 3 9... | [
"cliu@groupon.com"
] | cliu@groupon.com |
2a7ecd17534e9ce6ebfd36b4b2168cfe3d21c7a2 | 03d1982e2d594f13567afb37f2a5cea2f0d631b6 | /setup.py | cde1cd7244e468fc53e94c6fb1355245c8ab6099 | [
"Apache-2.0"
] | permissive | maartendraijer/django-fluent-dashboard | e26f29d434528d3b11360549c6452812176e4ecb | 8a00fa810f001d1a778eada88b8a390f495f9994 | refs/heads/master | 2020-04-03T04:22:38.353890 | 2012-09-26T19:55:18 | 2012-09-26T19:58:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
from os.path import dirname, join
import sys, os
# When creating the sdist, make sure the django.mo file also exists:
try:
os.chdir('fluent_dashboard')
from django.core.management.commands.compilemessages import compile_messages
compile_mess... | [
"vdboor@edoburu.nl"
] | vdboor@edoburu.nl |
65bb65eef08655b1bc9f00fecef269efb447b5c5 | 8e115fc8273fd7123438fa8cb85cd7b7992246f5 | /App_Login/migrations/0003_follow.py | 1e2b7e845c904aeaa10db6c63664e1517b698f1c | [] | no_license | tasim313/Social_Media_django_project | 35160f83fa278acd616f9f952ac5acd3ec6430e6 | 78cf24305a32dfe937d7fcb031ed2f78649a4775 | refs/heads/main | 2023-06-16T00:45:39.025388 | 2021-07-11T06:38:38 | 2021-07-11T06:38:38 | 384,453,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # Generated by Django 2.2.5 on 2021-07-07 13:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('App_Login', '0002_auto_2... | [
"mostasimmahmudtasim@gmail.com"
] | mostasimmahmudtasim@gmail.com |
c321533388cef074c4a7501847d5ddca0b9ae10e | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0838-Push-Dominoes/soln-1.py | b7c9ed30d6e1a5c6ea1654056f23001653264cab | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 1,479 | py | class Solution:
def pushDominoes(self, dominoes: str) -> str:
leftRs = []
left_R = None
n = len(dominoes)
ans = [None] * n
for i, d in enumerate(dominoes):
if d == 'R':
left_R = 0
ans[i] = 'R'
elif d == 'L':
... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
06ebdcbe79fc30e8f7dbeae6f53b24398009b675 | 6df0d7a677129e9b325d4fdb4bbf72d512dd08b2 | /PycharmProjects/my_practice/untitled/1.py | 851d7606c9479fbaebdefa185ba912d562a89abd | [] | no_license | yingxingtianxia/python | 01265a37136f2ad73fdd142f72d70f7c962e0241 | 3e1a7617a4b6552bce4a7e15a182f30e1bae221e | refs/heads/master | 2021-06-14T15:48:00.939472 | 2019-12-13T05:57:36 | 2019-12-13T05:57:36 | 152,200,507 | 0 | 0 | null | 2021-06-10T20:54:26 | 2018-10-09T06:40:10 | Python | UTF-8 | Python | false | false | 102 | py | #!/usr/bin/env python3
# -*-coding: utf8-*-
f = open('1.txt', 'a')
f.write('this is test\n')
f.close() | [
"root@room8pc205.tedu.cn"
] | root@room8pc205.tedu.cn |
76c8f94b2f1120d880d69b6121372442259a80bc | a08409f712dc0b1045f695fd2ffee2bb6cc7835b | /math/0x02-calculus/17-integrate.py~ | 07a15858a238dab1c6d0b0de4984d551527088f4 | [] | no_license | mohsenabedelaal/holbertonschool-machine_learning | d3f2137761e10d620472ca6e5f3288c45898381d | 2765a09ba3064168b024952d18b1a2471952c8a2 | refs/heads/main | 2023-06-02T16:11:55.600921 | 2021-06-10T19:08:13 | 2021-06-10T19:08:13 | 318,244,087 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 754 | #!/usr/bin/env python3
"""derivative poly"""
def poly_integral(poly, C=0):
"""Module for integral"""
if not isinstance(poly, list):
return None
if len(poly) == 0:
return None
if len(poly) == 1:
return [0]
if len(poly) == 2:
return [poly(1)]
else:
integra... | [
"mohsen.abedelaal@gmail.com"
] | mohsen.abedelaal@gmail.com | |
6562ceefb580fe6394f1e927b79291c2063a56c7 | 5692e8a3357f7afe6284b43c4a9770d81957a511 | /student/migrations/0015_auto_20201119_1605.py | 8fc7c2324f4ec87bd9f70cdb6eabaa98d7202789 | [] | no_license | OmarFateh/student-management-system | 49bcfbdf15a631cf7f64ff200d530a44a44409ac | 2c53f81a55fe631406b642365a68de19501c0f17 | refs/heads/master | 2023-07-16T00:02:54.796428 | 2021-08-25T01:54:02 | 2021-08-25T01:54:02 | 355,033,774 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | # Generated by Django 3.1.2 on 2020-11-19 14:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('student', '0014_sessionyear_date_range'),
]
operations = [
migrations.AlterModelOptions(
name='student',
optio... | [
"66747309+OmarFateh@users.noreply.github.com"
] | 66747309+OmarFateh@users.noreply.github.com |
89509c3ebcab0d26460f14bf5810e0a088b1aa54 | 1fa16c1df35fd8247f9274b26a70523a514210f0 | /dependencies/amitools-0.1.0/amitools/vamos/lib/dos/FileManager.py | c9ed60eea544afb45ca4756963bba90fd9cacfbe | [
"GPL-1.0-or-later",
"MIT"
] | permissive | limi/AGSImager | 25a816b1c5b9ce8553cd6e3a47babce574f15119 | d3771800308e61a7a07df4a9b361e5bd5ba9e409 | refs/heads/master | 2023-01-10T11:19:52.248376 | 2020-04-14T19:59:23 | 2020-04-14T19:59:23 | 255,813,813 | 0 | 0 | MIT | 2020-04-15T05:26:57 | 2020-04-15T05:26:56 | null | UTF-8 | Python | false | false | 8,753 | py | import sys
import os.path
import os
import logging
import errno
import stat
from amitools.vamos.Log import log_file
from amitools.vamos.AccessStruct import AccessStruct
from DosStruct import DosPacketDef
from amitools.vamos.lib.lexec.ExecStruct import MessageDef
from Error import *
from DosProtection import DosProtect... | [
"optiroc@gmail.com"
] | optiroc@gmail.com |
91a80f36411eaa0287c81fe0a4414a82d2b3022a | a7104434e0ddb4575ef0a6cd467bac6620570de8 | /hunter108.py | ff44819a2ca4401163bea362d9ae1cf41d6bc5c3 | [] | no_license | GauthamAjayKannan/GUVI-1 | 7b276eef3195bec9671eec8bb6bcc588cb5c970e | fafabab93df55abcc399f6e2664286ed511fd683 | refs/heads/master | 2020-06-25T07:38:08.465414 | 2019-05-17T11:24:53 | 2019-05-17T11:24:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | x = list(input())
list1 = []
out = 0
if len(x) == 1:
out = int(x[0]) * int(x[0])
else:
for i in x:
list1.append(int(i))
for i in range(len(list1)-1):
out += (list1[i] ** list1[i+1])
out += (list1[len(list1)-1] ** list1[0] )
print(out)
| [
"noreply@github.com"
] | GauthamAjayKannan.noreply@github.com |
def3dce5cc56dc5116d525765b8c6bc66cb2e7fa | a44cfbdacdb9d695533f425ee72da86f904232c1 | /bin/summarize-days | 3a7583591a34ce37d84e1baec23fe453d926fdf1 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | sofie-lu/quac | 434d1481949ad0a229e10b7ccc725f54740c2d44 | 03e3bd9691dddd819f629aba628e9fe6d45c2d3b | refs/heads/master | 2020-04-08T09:33:54.217874 | 2014-05-15T20:32:00 | 2014-05-15T20:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | #!/usr/bin/env python
'''Parse the given metadata pickle file and print, TSV format, a summary of
each day's metadata on stdout. Column order matches the metadata field
documentation.'''
# Copyright (c) 2012-2013 Los Alamos National Security, LLC, and others.
import argparse
import sys
import quacpath
import ... | [
"reidpr@lanl.gov"
] | reidpr@lanl.gov | |
25933a755301dda6561a58f195d7462cdc9f384c | a9e3f3ad54ade49c19973707d2beb49f64490efd | /Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/openedx/core/djangoapps/api_admin/api/filters.py | 63d4bf6ec7132ca2326fad9c709142a6713249fd | [
"MIT",
"AGPL-3.0-only",
"AGPL-3.0-or-later"
] | permissive | luque/better-ways-of-thinking-about-software | 8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d | 5809eaca7079a15ee56b0b7fcfea425337046c97 | refs/heads/master | 2021-11-24T15:10:09.785252 | 2021-11-22T12:14:34 | 2021-11-22T12:14:34 | 163,850,454 | 3 | 1 | MIT | 2021-11-22T12:12:31 | 2019-01-02T14:21:30 | JavaScript | UTF-8 | Python | false | false | 432 | py | """
Filters for api_admin api
"""
from rest_framework import filters
class IsOwnerOrStaffFilterBackend(filters.BaseFilterBackend):
"""
Filter that only allows users to see their own objects or all objects if it is staff user.
"""
def filter_queryset(self, request, queryset, view):
if request... | [
"rafael.luque@osoco.es"
] | rafael.luque@osoco.es |
76ea21e0cd0bb9f8f9684fc16048be3713d1df62 | 1cc54d31a4a443230668ca063bcd27179ff096c2 | /store/urls.py | fbf6972755a0e56ef5d0ca947869dfff8b9f903d | [] | no_license | akhmadakhmedov/e-commerce | 8d84f0ae7acd4dc80c8afbe3ab55ed13873ef631 | 6708aa62dec08be9b18fae15125eeef266d869e3 | refs/heads/main | 2023-05-29T21:36:40.354231 | 2021-06-14T13:23:22 | 2021-06-14T13:23:22 | 370,982,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.store, name='store'),
path('category/<slug:category_slug>/', views.store, name='products_by_category'),
path('category/<slug:category_slug>/<product_slug>/', views.product_detail, name='product_detail'),
path('search/', vi... | [
"ahmedov.thy@gmail.com"
] | ahmedov.thy@gmail.com |
53aa1b2409b3fe45fb8cacb3d6c9abc63b5229eb | f6f3ade5a59fcb904a147fa3cf1933a1b225338f | /src/gate_timer.py | 536a3cef3cb573db60d205d844c69d50ccab9872 | [] | no_license | HajimeKawahara/autobop | 3b559011f9dceba68b02e47cd95fdef4fa9ef41e | 2c99625895206d24587db90a2ac03d1e536eb9ca | refs/heads/master | 2021-01-16T01:03:01.351588 | 2018-03-18T09:15:53 | 2018-03-18T09:15:53 | 107,845,791 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 607 | py | #!/usr/bin/python
import sys
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import pylab
import argparse
#import chord_probability as cp
import rest
def gate_stop(mnow,counter,finger=1,width=5.0,c=65.0):
if c==np.inf:
counter=counter+1
return mnow, counter
numres... | [
"divrot@gmail.com"
] | divrot@gmail.com |
55e4a9778ff59c0161d9877f8b727552e30befcb | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5738606668808192_0/Python/Nihilant/p3.py | 9a79afbff433b6e056e4bf1c99769fccfd98c045 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import sys, functools, math
def jc(n, j):
coin_n = 2**(n-1) + 1
for i in range(j):
test = True
while test:
coin = bin(coin_n)[2:]
sol = []
for base in range(2, 11):
num = int(coin, base=base)
k = -1
limit = in... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
3f1ce17c7e56aa343e288281207e4e0013191cf9 | ec53949dafa4b6ad675d679b05ed7c83fef2c69a | /DataStructuresAndAlgo/DynamicProgramming/FibonacciTabulation.py | d691cd1c6b7a1de451aa33b49df8d84df1b3b17e | [] | no_license | tpotjj/Python | 9a5a20a53cd7a6ec14386c1db8ce155e0fc9ab8a | ca73c116ada4d05c0c565508163557744c86fc76 | refs/heads/master | 2023-07-11T16:37:10.039522 | 2021-08-14T11:17:55 | 2021-08-14T11:17:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | def fibTab(n):
tb = [0, 1]
for i in range(2, n):
tb.append(tb[i-1] + tb[i-2])
return tb[n-1]
print(fibTab(6)) | [
"joris97jansen@gmail.com"
] | joris97jansen@gmail.com |
5bcb0760c6c64e527ed4a662ff790c3cb71afad6 | b1ff576cdde5adf698b98446538e0b56d18f070f | /grading/apps.py | b507c75018b33f6f0904ff9ce425d1006d934d9a | [] | no_license | DUMBALINYOLO/gbc_oms | e3cfba17a12f3600b6503fc70cc9f3dcab5cc0e2 | cdea6fd81333088b2db9911140681fec9577132a | refs/heads/main | 2023-08-20T11:48:36.418990 | 2021-10-11T23:25:35 | 2021-10-11T23:25:35 | 322,593,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | from django.apps import AppConfig
class GradingConfig(AppConfig):
name = 'grading'
# def ready(self):
# import grading.signals
| [
"baridzimaximillem@gmail.com"
] | baridzimaximillem@gmail.com |
3cf0e063b91a5be11fd48040ca02637fab5c720d | cb1d0dd68b1136b8a371f7d2b423e45171e98ab7 | /src/xsd_trips/urls.py | 4d153c6902a452d9f38693e3b2a855184692fcd9 | [] | no_license | ScubaJimmE/xSACdb | 86640ab791327392f88eb4993c858aa6d340c758 | 1996ab286ee0446b0a0e38882104bbf8904d8bdc | refs/heads/develop | 2021-07-15T04:47:11.279138 | 2016-05-25T01:44:05 | 2016-05-25T01:44:05 | 62,212,226 | 0 | 0 | null | 2021-03-20T00:40:24 | 2016-06-29T09:09:50 | Python | UTF-8 | Python | false | false | 256 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
from views import *
urlpatterns = patterns('',
url(r'^$', TripList.as_view(), name='TripList'),
url(r'^new/$', TripCreate.as_view(), name='TripCreate'),
)
| [
"will@fullaf.com"
] | will@fullaf.com |
da9e00f2af1599c983cb133c32b539da17ece7fe | 155fa6aaa4ef31cc0dbb54b7cf528f36743b1663 | /Static and Class Methods/Gym/subscription.py | c93a716815e0c338d34e9dadac30833811a61828 | [] | no_license | GBoshnakov/SoftUni-OOP | efe77b5e1fd7d3def19338cc7819f187233ecab0 | 0145abb760b7633ca326d06a08564fad3151e1c5 | refs/heads/main | 2023-07-13T18:54:39.761133 | 2021-08-27T08:31:07 | 2021-08-27T08:31:07 | 381,711,275 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | class Subscription:
_id = 0
def __init__(self, date, customer_id, trainer_id, exercise_id):
Subscription._id += 1
self.date = date
self.customer_id = customer_id
self.trainer_id = trainer_id
self.exercise_id = exercise_id
self.id = Subscription._id
@staticme... | [
"boshnakov.g@gmail.com"
] | boshnakov.g@gmail.com |
cf0bc4a4904ba5ea0b1a33c31385a14eaf269f3c | 02546f99c91e46d66055ba8022f00619dbf9edcf | /lungsc/figures_immune_paper/fig4.py | 7d3f5ff2df49c1e027f182ebf3521fba76bec829 | [
"MIT"
] | permissive | iosonofabio/lung_neonatal_immune | 84a137492242a3946873e567db9eea531a90ecd6 | d0f12d4c24a778d0b7b8febf7accbc46adb7c162 | refs/heads/master | 2022-11-15T15:11:57.574654 | 2020-07-08T00:56:54 | 2020-07-08T00:56:54 | 258,082,671 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,274 | py | # vim: fdm=indent
'''
author: Fabio Zanini
date: 12/07/19
content: Plot panels for Fig 4.
'''
import os
import sys
import glob
import gzip
import pickle
import subprocess as sp
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.lines as mlines
import seaborn as sns
f... | [
"fabio.zanini@fastmail.fm"
] | fabio.zanini@fastmail.fm |
5690b8a65b35121276c3493f5273eae7f9e1b7fb | 609ee4aad38036c29456581f821a9bad4d6b729a | /tests/test_pay.py | 37b2629d535646bc20848fbf05772211f9a8c3b2 | [] | no_license | sdkwe/pywe-pay | 32f14d218b0f8c029fb08a54df99ba70b90374b4 | daf1699c7dafd0960359b0c3f570f32cc906dc5f | refs/heads/master | 2020-05-29T15:13:05.371833 | 2020-04-27T07:32:54 | 2020-04-27T07:32:54 | 62,115,428 | 5 | 4 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # -*- coding: utf-8 -*-
import time
from pywe_pay import WeChatPay
from local_config_example import WechatPayConfig
class TestPayCommands(object):
def test_native_unifiedorder(self):
native = WechatPayConfig.get('JSAPI', {})
wxpay = WeChatPay(native.get('appID'), native.get('apiKey'), native.g... | [
"brightcells@gmail.com"
] | brightcells@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.